Categories
Mastering Development

Xcode 11.4. Navigation’s Title Color gone BLACK from storyboard

I recently updated my Xcode to 11.4. When I run the app on the device, i’ve noticed that all my navigations item’s titles gone fully black when being set from storyboard. You can’t change neither from code, the following line of code doesn’t work anymore self.navigationController?.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.white] I only make it work using […]

Categories
Mastering Development

SemVer collision: How to release bug fix over the last stable version if there are some alpha/beta/rc versions and the work is in progress?

I’m maintaining some js library. Releases follow SemVer. Current stable version is 1.5.0. I’m working on 1.5.1 and have 1.5.1-beta.2 which is published at npm with “next” tag. Today I got bug report, discovered the issue and ready to fix it. The thing is that 1.5.1 is not going to be finished during nearest days, […]

Categories
CMS Magento Mastering Development

Removing products from the database using datapatch

I am removing products from the database using datapatch but changes are not made in the database. When debugging, everything works fine. My data patch is: <?php declare(strict_types=1); namespace DevAll\ExtensionSettingConfig\Setup\Patch\Data; use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Exception\NoSuchEntityException; use Magento\Framework\Exception\StateException; use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Api\AttributeRepositoryInterface; use Magento\Catalog\Model\ProductRepositoryIn; use Magento\Framework\Api\SearchCriteriaBuilder; use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Framework\App\Area; use Magento\Framework\App\State; class […]

Categories
Mastering Development System & Network

Is my server drive on SATA2 or SATA3 based on this output?

smartctl output: # smartctl -a /dev/sda | grep SATA SATA Version is: SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s) dmesg output (empty): # dmesg | grep SATA hdparm output: # hdparm -I /dev/sda | grep SATA Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0 For some […]

Categories
Mastering Development System & Network

Using Amazon S3, why do I have inter-region transfers when replication is turned off?

I have an S3 bucked in the Asia Pacific (Sydney) region and have users from Australia using that bucket. By far my largest charge is for AWS Data Transfer APS2-USE1-AWS-Out-Bytes Asia Pacific (Sydney) data transfer to US East (Northern Virginia). However I do not have replication turned on for the Sydney bucket. I do have […]

Categories
Mastering Development System & Network

404 error for static files after running certbot

I am setting up a Django project in production mode. When I was serving files over HTTP, everything appeared normal, CSS, JS and everything. However, as soon as I ran certbot, the styling and scripts disappeared and navigating to them resulted in a 404 error. Switching my configuration back to HTTP after running sudo certbot […]

Categories
Ask Mathematics

Transmission rate of SIS model. Simulation

With this Corona virus malarky going on, I stumbled onto this page, which gives a basic overview of tranmission simulations, and lets you play around by changing the transmission rate. However, the 3rd interactive example, which illustrates SIS, under section “SIR vs. SIS” caught my eye. (illustration below) While playing around, I noticed that the […]

Categories
Apple User Help

Help: Console on infinite loop with error about (com.apple.powerd.swd)

i’ve been getting this error on system.log for a couple of days: com.apple.xpc.launchd1 (com.apple.powerd.swd): Service only ran for 0 seconds. Pushing respawn out by 30 seconds. My iMac is a Late 2012 model, 8GB RAM, Mac OSX 10.14.6 (Mojave). I think is causing some freezes on some moments i use a lot of apps. Anyone […]

Categories
Ask Mathematics

A non nuclear $C^*$ algebra $A$ whose algebraic tensor product $A\otimes A$ admits a unique $C^*$ norm

Is there a non nuclear $C^*$ algebra $A$ for which the minimum and maximum $C^*$ norms on $A\otimes A$ coincide? A somewhat [similar question is discussed here:] (Can nuclearity be determined by tensoring with a single C*-algebra?)

Categories
Game Creation Mastering Development

How do I rotate a Fan Sprite with a very low resolution? (I dont know how to draw a rotated fan)

So, I have a fan image: Upscaled: And I want to rotate it for a texture Im working with, specifically a computer fan cooling a server box in a game model. Im having trouble getting a good look with “rotating it”. I managed to get a few good results for a few specific angles… However, […]