Fixing Tunnelblick disconnecting in OS X 10.10 Yosemite

If you have just upgraded to Yosemite, you might have run into issues with Tunnelblick. First, it will connect properly, then disconnect immediately after. To fix this, open the Tunnelblick connection settings, click “Advanced settings” and uncheck “Flush DNS cache after connecting or disconnecting”.

Knowing the difference between mtime, ctime and atime

If you are dealing with files, you might wonder what the difference is between mtime, ctime and atime. mtime, or modification time, is when the file was last modified. When you change the contents of a file, its mtime changes. ctime, or change time, is when the file’s property changes. It will always be changed […]

Solving AirPort Extreme FTP issues

Recently, I’ve been having tons of problems when using FTP at home. I have a Macbook Pro, an Airport Extreme and use Cyberduck to access my remote FTP servers. It appears that the latest firmware (7.6.x) for the Airport Extreme has issues with FTP connections. In my case, the router would randomly crash while using […]

How to create big test files in OS X and Linux

If you need to have large files to test your application, there is a command in OS X and Linux that allows you to create a file of an arbitrary size. We already know that you can create an empty file by using touch: touch myfile.ext You can also create files with a preset size […]

Missing UX: Improperly ejected flash drives in Windows

If you are using Windows, you are certainly familiar with this dialog: This is the dialog that shows up when you reinsert a flash drive that was not safely ejected using the awkward task bar dialog. There are several problems with this dialog. First, it’s needlessly threatening. It sounds like your drive is broken, and […]

Can’t output OS X audio to AirPlay? Here’s the fix.

Once in a while, I won’t be able to output my Macbook’s audio to my Apple TV. The solution is rather simple: you need to kill coreaudiod. You can achieve this from Activity Monitor or enter the following command in Terminal: sudo kill `ps -ax | grep ‘coreaudiod’ | grep ‘sbin’ |awk ‘{print $1}’`

Add some color to the OSX Terminal

If you find the OS X Terminal’s lack of color hard on the eyes, here’s how to set the colors. To get this color scheme, open ~/.bash_profile and add this: export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced export PS1=”\[\033[36m\]\u\[\033[m\]\[\033[32m\]:\[\033[33;1m\]\W\[\033[m\]\$ ” alias ls=’ls -GFh’ The first line enables colors, the second sets the colors for ls and the last […]

OS X Terminal: Open the current folder in Finder

If you use the OS X terminal, you are probably familiar with the open command. Essentially, it opens the given file with the default application, or with the application specified with the -a parameter. For example, open hello.txt will open hello.txt using TextEdit or your default text editor. You can also use this command to […]

How to disable the Chrome notification icon in OS X

In a recent Chrome update, a new bell icon popped up in the OS X notification bar. You can disable this icon in 3 easy steps: Open chrome://flags Disable “Enable Rich Notifications” Restart Chrome It’s gone! May 2014 update: It’s now called “Notification Center behavior”, and you must set it to “Never show” There is […]

OS X: Get a voice notification when commands finish running

If you are like me, you might get distracted while waiting for your unit tests to complete, and only return to your IDE several minutes later. On OS X, there is a nifty say command that makes your Mac say anything you want using text-to-speech. By appending it at the end of a long-running command, […]