Blog
During the course of the day I encounter lots of challenges, some of which take minutes to solve and others that take much longer. My goal for this section is to keep track of these challenges and their solutions. I will turn the longer ones into articles, while the shorter ones will stay as blog entries. You can expect topics to range from very specific programming challenges to broader topics like life.
Below is a list of the recent blog entries. You can also browse the blog by using the tags on the right side, or if you know what you are looking for then you can use the search box at the top right.
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.
You had brew
ed PostgreSQL and can’t get it to start after the Yosemite upgrade? Check the logs and see if you get the following error.
|
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.
|
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.
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.
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.
- 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
apt-get update
apt-get upgrade
do-release-upgrade
- Rinse and repeat for 13.10 to 14.04.1
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.
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.
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...
I thought this was a hilarious video that depicted conference calls very well. Enjoy! 🙂
I recently accidentally messed up a Cisco 3750 switch while upgrading the firmware on it. I ended up with a non-booting switch with the typical fast flashing SYST light. After finding a computer old enough with a serial port I got to uploading the .bin image, but the at the default baud rate of 9600 the 12M or so bin file would have take quite some time. After searching on google I found out that the following IOS command would set a higher baud rate.
Still not fast enough, but an improvement. Some people have suggested using tftpdnld
in rommon mode, but this was fast enough that I didn’t want to deal with rommon.
Remember to reset the baud rate after you are done.
I have published an updated version of the Play Button iTunes Patch that now correctly kills the remote control daemon after patching it. Thanks to @quicksnap for helping troubleshoot. Here is a link to the issue on github.