Gets to Terminal is so much faster now!
Category: osx
Service Battery: Uh oh
Finally getting the Service Battery sign on the MacBook Air 2014. I tend to think Big Sur is much more resource heavy compared to Catalina. Fans pretty much spin all the time on Big Sur for me…
Lost refind? Here’s (my way) of getting it back
- Load mac Recovery onto a usb stick (Get it from dosdude1 if you need to)
2. Start up the mac with the usb stick inserted and holding down the Option key
3. Execute /Volumes/<username>/local/src/refind-<version>/refind-install
4. Reboot
Why is it so fucking difficult to tile two windows side by side, Apple!
Could you have made it any more difficult?
Do I need to jump through hoops of fire before tiling windows side by side?
(Update) Time Machine incompatibility
My Mojave machines have successfully backed up to Time Machines, though the message on the Time Machine application says 0 of 0 updated. As such, my initial understanding was incorrect and i stand corrected.
TIL Mojave does not connect to Time Machines which were initially connected to Catalina.
HTTPS and Geolocation with web browsers
I’ve starting coding apps to get a javascript geolocation refresher. Switching between OSX and W10 was quite a pain because:
- Safari does not support geolocation over HTTP (no idea why http://localhost/ is considered an issue with Safari).
- W10 Edge supports geolocation over HTTP.
After some experimenting, I discovered Chrome and Brave both support geolocation over HTTP on OSX. Chrome definitely was doing WiFi triangulation because it could return my exact lat/lng whereas Brave was returning the midtown lat/lng coordinates.
Problems starting Eclipse after updating JDK on OSX
I came across this problem when updating jdk via brew. Somehow brew removed openjdk-12 and replaced it with 14. Pesky.
After some checks, I figured the Eclipse 2020-06 executable was relying on a hardcoded openjdk path.
To rectify this, I’ve done the following:
- Determine the jvm available on osx by dropping to command line and running ‘/usr/libexec/jvm_home -V’
Below is a screen capture of the available openjdks on my OSX. (openjdk-12 was removed somehow). Remember the location of the openjdk directory you wish to use.

2. Edit the openjdk path in eclipse.ini. The path to eclipse.ini is as follows:

Note: I have mine in $HOME/eclipse/java-2020-06. Yours could be in the Applications directory (ie /Applications/Eclipse)
Run ‘nano eclipse’
3. To get this:

4. Amend the folder name to the openjdk directory that you’ve determined in Step 1.

5. Ready to start Eclipse by running the eclipse executable.
Adjust Time Machine backup frequency
I managed to get a oldish 3Tb Time Capsule off Carousell for experimenting. It was pretty alright for the first day until I got tired of the hourly loudish HDD spin up.
There must be a way to adjust the hourly backup frequency to every 6 hours. Given this is a oldish EOLed device, I also want to preserve its longevity – as much as i can.
To do so, determine the new backup frequency you want it to be, knowing the backup daemon reads in the backup frequency in seconds.
If you want to adjust to a 12 hour backup, the new number would be 60 seconds * 60 minutes * 12 hours = 43,200
For a 6 hour backup frequency, the new number would be 60 seconds * 60 minutes * 6 hours = 21,600
Next,
- Go to the macOS terminal app and do the following:
- Unload the backup daemon using “sudo launchctl unload /System/Library/LaunchDaemons/com.apple.backupd-help.plist“
- Change frequency on the the following file /System/Library/LaunchDaemons/com.apple.backupd-helper.plist using “sudo nano /System/Library/LaunchDaemons/com.apple.backupd-helper.plist“
- Look for the line that says “<key>Interval</key><integer>3600</integer>“, change the integer value to the newly calculated value above without the comma.
- It should read the following with a 12 hour backup frequency “<key>Interval</key><integer>43200</integer>“
- Save the file with Ctrl-X.
- Then reload the plist using “sudo launchctl load /System/Library/LaunchDaemons/com.apple.backupd-help.plist“
You will only hear the HDD storage startup only twice a day, and extend the HDD’s life!
PS – The above was verified to work on Mojave.
PPS – You will need to do this for every macOS device.
Another good reason for using macOS (Resetting router password)
I got stuck resetting a router’s administrative password. While I had the required Cisco cable (console to serial) and a Usb to Serial adapter, Windows 10 wasn’t too happy with the Usb to Serial adapter I had.
Windows 10 said the Usb to Serial adapter was too old and wanted me to “CONTACT THE DEVELOPER”. No kidding, that’s what was written on the Devices page.
Switching to the MBP, I connected the Usb end of the Usb – Serial cable and did a
screen /dev/tty.usbserial
And I got a response from the router immediately.
Local firewall for Windows and MacOS
I’ve been on the MacOS platform for over 8 years now and am quite pleased with Little Snitch. I’ve got to look for another one which works with Windows, now that I’m switching over to Windows 10 for work. These are some which I have found.
- TinyWall (https://tinywall.pados.hu)
- NetLimiter 4 (https://netlimiter.com/docs/user-gui-client)
- OpenSnitch (https://www.opensnitch.io/) – Looks dead
From what I’ve read, it appears NetLimiter 4 is the only one that allows you to allow/deny individual connection, like Little Snitch. I’ll be installing it to test out. The screenshots on the Netlimiter page makes me just want to head back to MacOS. 🙁