Browsing AuthorCelso

Finding python’s site-packages directory

Python modules or packages that you install yourself are installed in a directory called site-packages. The location of this directory is subdivided into the specific python version you are running and is also different for each platform for obvious reasons. To determine your system’s site-packages directory, run this from the command line:

python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"

Enabling AirDrop on older systems

You can enable AirDrop for many older Lion systems at the Terminal command line. Enter:

defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1

After setting the defaults, you’ll need to restart Finder:

killall Finder

Ejecting a stuck CD or DVD on a Mac

If you have a stuck CD or DVD on your Mac, and the desktop icon for the media has disappeared from the desktop so that you can no longer drag it to the trash, you can manually eject the media without rebooting the machine by executing the following command from the Terminal:

drutil tray eject

dyld: shared cached was built against a different libSystem.dylib, ignoring cache

I just upgraded my MacBook Pro’s hard drive to one with a bigger capacity. After restoring the contents from the old drive to the new one using an image created by SuperDuper!, I keep on getting this error every time I launch the Terminal application:

dyld: shared cached was built against a different libSystem.dylib, ignoring cache

After googling around, I found this discussion thread from Apple’s Support Forum on how to fix the error:
sudo update_dyld_shared_cache -force

Wish you were here!

… but this is probably the next best thing! 🙂 Took some panorama shots of the front and back yards today. It’s been a while since I’ve done my last panoramas, so it’s almost like learning from the beginning once again. Anyway, here’s the result and pardon some of the photo misalignments.


Frontyard


Backyard

Note:This requires the Flash Player to view the panoramas. For more information about Flash Player, please visit http://www.macromedia.com/software/flash/about/.If you cannot view the panorama, please download and install the latest version of Flash 10 player.