I had a post a long time ago describing the usage of directory hardlinks in order to easily access, backup and restore the container of your application on the iOS Simulator: Persistent application container directories in iOS Simulator. Obviously now it’s an APFS era (enforced by apple) and I’m not sure if it has directory hardlinks anymore. So I have another, simpler way to backup app containers.
As I mentioned in the previous post about a git hook to insert ticket numbers into commit message, it integrates well with another script of mine that allows me to check out a PR easily.
Updated on 2021-06-02: An extended version of the script is described here: Checkout PR script.
We have a rule on the project where every commit (and PR) should include the ticket number that it’s related to; by convention, it goes at the beginning of the commit message’s title, e.g. “US123: Display relative date when it’s closer than one day”. The rule also extends to the branch name, e.g.
userStory/US123_display_relative_date. This makes it convenient to automate the insertion of the ticket number into the commit message, which is possible to do locally using
This small blog post is about the “analytics” on this blog, or rather lack thereof.
A small note about an annoying bug I encountered about a year ago.
I think this was new to OS X 10.14. When I locked the screen (using
Caps Lock+S that ran a service to launch screen saver from the command line, where
Caps Lock is mapped to
Cmd+Ctrl+Opt+Shift with Karabiner-Elements; yes, it’s that complicated on OSX, there is no system shortcut to launch screen saver) and sometimes the password field couldn’t be focused, I couldn’t type anything. No key combinations or hot corners worked. The mouse cursor flickered when I moved it, it wanted to hide all the time, but moving made it visible. And this happened pretty often, a couple times a week on average.
It might have been an issue with XScreensavers; I didn’t use other screensavers at the time, so I don’t know if they had the same issue.
I worked on an iOS application that used the Google Maps SDK and noticed a bunch of logging when I backgrounded the application complaining that it couldn’t connect to some server:
1 2 3 4 5 6 7 8 9
And this is just one instance of it; typically it would be repeated a dozen times.
I’ve found some old notes about rooting a Motorola G4 Android phone and a puzzling issue I stumbled upon then. It may be useful to someone even though I couldn’t reproduce it now and don’t remember all the details.
I had a Moto G4 phone and it’s possible to officially unlock its bootloader in order to root it, remove some preinstalled (goog’s) crap and possibly install another firmware (Android is notoriously bad with software updates, Motorola was not very bad, they had occasional security updates). I followed one of the unlocking and rooting guides online: backed up as much stuff as I could (which is not much on a non-rooted phone), unlocked the bootloader by getting a code from Motorola, replaced the boot image, flashed TWRP, installed SuperSU, and replaced the kernel with ElementalX G4 because something didn’t work with the stock one.
Then I installed ABBYY Lingvo in the new system, but it was crashing on startup. I discovered that its directory on the internal storage (which I believe was in
/sdcard/Android/) was empty and was trying to
adb push it from the backup, but got “permission denied”. In fact, I couldn’t create any directory on
/sdcard/. The permissions and owner on the directory were correct. Searching online didn’t find a solution, I tried a number of things, even editing
platform.xml to change a setting. However when I booted into TWRP, I could write files to SD card fine.
I have previously posted a script to save Glacier webcam pictures. Since then I’ve made a few improvements and would like to describe them in this small post.
Do you still want to move away useless built-in apps on OS X 10.15? It has changed the OS layout on the filesystem so that the built-in applications are in
/System/Applications/ instead of
/Applications/ now. That area is also more protected, so we’ll need to add an extra step to move away that crap.
OS X is a nice and (mostly) stable operating system overall. However Apple puts so much crap and junk that may not be for everyone and that cannot be officially uninstalled. There is a bunch of standard applications and there is also a lot of standard daemons, some of which are trying to get network access to contact Apple (
I don’t like having unnecessary stuff in my system and would prefer to get rid of it. I’m not sure about removing built-in applications completely, unfortunately that may have bad consequences to the stability of the system. But at least when I open the
/Applications/ directory, I don’t want to see them. So a simple solution is to move them to
The set of applications that are useless (junk) for you is your personal choice. For example: FaceTime, Home, Messages, News, Photo Booth, Siri, Stickies, Stocks. This post is how to move them away.