When you make the Mac go to sleep but it just stays on with the screen black, you can use the
pmset -g
to display you current power management settings and see the entry for sleep that will tell you the problem causing process PID
Never relearn twice
When you make the Mac go to sleep but it just stays on with the screen black, you can use the
pmset -g
to display you current power management settings and see the entry for sleep that will tell you the problem causing process PID
I asked this question on Superuser.com after experiencing this problem. Now it’s accessible to everyone.
When something goes wrong and you run out of memory on Mac OS X, the system puts your existing applications to pause to prevent the system from becoming unstable. After taking care of the problem and freeing more memory, you might notice that the applications you had are still frozen. To unpause them, find their PID using ps and use the kill command to revive it (irony)
kill -CONT 111
Of course, 111 here is replaced with the PID you found with ps
I bought a new hard drive. My Windows setup already had extensive amount of software and configurations on it that I didn’t want to remake. It worked well, which was rare, so I wanted to keep it.
Winclone is an excellent free tool that lets you do just that! Unfortunately there wasn’t much confirmation on the inter-web that it has been done with Snow Leopard and Windows 7 64-bit. So I tried just that and it worked flawlessly! Continue reading
Notes to self because I never remember
To arpspoof, turn on IP forwarding:
echo 1 > /proc/sys/net/ipv4/ip_forward
with Linux (might need su) or more permanently,
net.ipv4.ip_forward = 1in /etc/sysctl.conf
Continue reading
Spooler simply stops every time you try to print or add a printer or something? You can keep restarting it but will never be able to print something? I won’t pretend to know your problem since it depends on potentially so many things but if you have a MacBook, one thing worth investigating is have you been running VMWare Fusion? The ThinPrint drivers of the VMWare Tools seem to be able to cause this problem when you run the same machine in BootCamp mode. Unfortunately, you can’t just uninstall it. Uninstalling VMWare Tools from inside virtual mode seems to solve this problem
There are some 64-bit related issues when using PyQt and Snow Leopard. There’s the way to resolve it by reverting to 32-bits:
python configure.py --arch i386python configure.py --use-arch=i386export VERSIONER_PYTHON_PREFER_32_BIT=yes
to your .bash_profile in your home directory
arch -i386 python
This bugged me today so here’s the one line solution
open .
So after applying the Perfect Visor from my previous blog post, this can be even faster to navigate to awkward Mac style directories than remembering the even more awkward Finder key combo to “Go to Folder”
open ~/Library/Logs/CrashReporter/
Because you can tab-complete or to go hidden folders
Update: Visor Terminal is now TotalTerminal. It’s a lot easier to configure so you can just download TotalTerminal and perform the steps below starting at 6.
The Visor Terminal, one of my most used hack-features. This guide helps you put your Mac Terminal to the zenith of usability and convenience.

Visor Terminal
The drop-down Quake-style terminal window is extremely convenient to run commands without disrupting the current workflow. Unfortunately the default install is very messy. It needs an open terminal program running in the background which can’t be closed and takes up valuable Dock space. Continue reading