Author: farhan

New Article – Migrating a Linode VM to a Parallels VM

Linode Logo

I recently had the need for migrating a Linode virtual machine to a local Parallels virtual machine. After spending a lot of time searching around I didn’t find a guide that documented all the necessary steps. So, here is my attempt at documenting all the steps.

Play Button iTunes Patch GUI App is Live!

Play Button iTunes Patch GUI app is live!

Read full post...

Play Button iTunes Patch GUI App Almost Ready to Go Live

Play Button iTunes Patch GUI app is almost ready to go. You can download the beta version from the project page. Source code is in the gui branch.

The new interface

Migrating Play Button iTunes Patch to a GUI App

I am working on migrating the Play Button iTunes Patch to a GUI app. Here is a sneak peak of what it looks like so far. You can see the source code in github.

This has been an interesting project because I have had to learn about elevated privileges in OS X, which apparently isn’t a very common use case. I am hoping that this version will be simpler and minimize the xcode command line tool installation.

Alpha Version

PostgreSQL not starting after Yosemite upgrade?

You had brewed PostgreSQL and can’t get it to start after the Yosemite upgrade? Check the logs and see if you get the following error.

1
FATAL:  could not open directory "pg_tblspc": No such file or directory

If so, then you need to create a few directories that went missing as part of the upgrade.

1
2
cd /usr/local/var/postgres
mkdir pg_tblspc pg_twophase pg_stat_tmp

After running the above commands try starting PostgreSQL and it should start. Thanks to this Stack Overflow post for the details.

The most unknown iphone feature: Undo!

The Undo dialog

There is a 90% chance that you don’t know about this. The iPhone has an undo feature! If you accidentally make a change that you would like to undo (e.g. deleting some text) then you can get it back by literally shaking the phone!

See this post for an animation.

iPhone 6

Upgrading an End of Life Ubuntu Release

I had a Ubuntu on an older end-of-life (EOL) release that I hadn’t had a chance to upgrade. I finally took the time tonight to upgrade it, but starting out I start getting 404 errors because of the EOL status. Here are my notes for upgrading an EOL Ubuntu from 12.10 to 14.04.1.

  1. Update all references in /etc/apt/sources.lst and replace http://archive.ubuntu.com or http://us.archive.ubuntu.com with http://old-releases.ubuntu.com
  2. apt-get update
  3. apt-get upgrade
  4. do-release-upgrade
  5. Rinse and repeat for 13.10 to 14.04.1

Spark Core

Spark Core

I just bought a Spark Core for a personal project to monitor some devices around the house. This thing is awesome as it makes it really easy to interface with hardware based devices. I went for the Maker Kit because it comes with a few common sensors and motors known to easily work with the Spark Core. Time to start brushing up on my electronics skills.

OS X 10.9.3 update resets Play Button iTunes Patch

Apple released the 10.9.3 update recently and I noticed that it installed a new version of rcd, breaking the Play Button iTunes Patch. If you experience this, please delete the backup first and then run the patch so it uses the most recent file. To delete the previous backup use the following command.

rm /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd_backup*

And then run the patch.

Wow, a swelled MacBook Pro battery

The batter after I disconnected it.

A few days ago I noticed that the trackpad on my older (mid-2010 model) MacBook Pro was a little “raised.” Not making a big deal of it I started using it, but after using it for half an hour I noticed it actually started rising. At that point I knew that something was not right. So I quickly unplugged it, turned it off and opened the bottom plate to see what may be going on. I was really surprised to see that the battery had bloated and was almost twice the size that it should have been.

Read full post...