3 Blog Entries tagged: mac os x
Installing Django on Leopard (Mac OS 10.5)
I wrote these step-by-step instructions for my work for our new Mac desktop machines. I'm posting here as well in the case that they're useful...
MacPorts
Get MacPorts with the version 10.5 in it:
http://svn.macosforge.org/repository/macports/downloads/MacPorts-1.5.0/MacPorts-1.5.0-10.5.dmg
Install it, and follow this command line history...
First check if Macports has any updates...
$ sudo port selfupdate
Python
Install Python 2.4 with readline support. I chose Python 2.4 because it's the default in MacPorts when installed other libraries...
$ sudo port install readline $ sudo port ...
MacPorts and removing fink
I discovered MacPorts (nee DarwinPorts) this weekend and for some reason I like the way DarwinPorts works over how Fink works. So I set out to remove Fink and install MacPorts. Then ran into some troubles...
First was how to uninstall Fink? I found this blog post which got me most of the way. I ran this command found there to remove most packages successfully:
fink list | perl -lne '/^\s*i\s+(\S+)/ and print $1' | xargs fink purge
When that completed, I simply removed the /sw directory:
sudo rm -rf /sw
Next I installed MacPorts and attempted to selfupdate ...
Safari's Hidden Debug Menu
I just discovered that Safari has a hidden debug menu that you can enable with the following command in Terminal:
defaults write com.apple.safari IncludeDebugMenu -bool true
After restarting Safair there is now a "Debug" menu with lots of functionality. Things like:
- Show DOM tree
- Turn On/Off RSS Support
- Log Javascript Exceptions
- Show Javascript Console
-
A bookmark to the Shortcuts page at
file:///Applications/Safari.app/Contents/Resources/Shortcuts.html - Import bookmarks from NS/IE/Mozilla
- Open page with an alternate browser
- User Agent settings
- Change the supported protocols (http:, ftp:, etc)