macos

apple

Hibernating in OSX Lion

In OSX Lion (might also be the case for older versions to), there is no direct way to hibernate a laptop except running out of battery power. The only available option is sleep, which will wake from memory; so it keeps draining the battery. It is possible to change this default behavior with the utility "pmset".

Read
apple

Restore sparsebundle extended attributes after rsync

If you rsync a sparse bundle disk image to another Mac without the -E flag (or if you copy it to a non Mac system), you will loose the ability to double click on it in the Finder to mount it. This is because the extended attributes telling the Finder the folder is actually a bundle are lost in the transfer.

Read
technology

Make OSX's top behave like Linux's top

OSX's "top" program doesn't quite behave like its Linux counterpart out of the box. For me, the two biggest problems are that processes aren't sorted by CPU usage and the top program itself uses 10% of the CPU because it calculates all sorts of statistics about memory and shared library usage that I personally don't care about.

Read
web

SQLite3, php5 and MAMP

The version of php5 bundled with MAMP doesn't come with sqlite3 support built-in out of the box. Here's how to add it, considering the following setup.

Read