How to fix HP scanning errors in MacOS

If you made the mistake of buying an HP printer and encountered one of the following symptoms: Scanner does not work. Both HP Easy Scan and the OSX Printers and Scanners utilities fail. Printing might still work. In HP Easy Scan, you get a message that says Scanner reported an error: An error occurred while […]

How to clear Terminal output on Mac

If you want to delete all previous output in an OS X terminal window, just press Cmd + K. This will clear the output, but it won’t kill the currently running tasks. I often use this command to remove thousands of lines of logs, so that the new output is easier to search. If you […]

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 […]