Quick Python/Developer tips for OSX Lion
jessenoller.com
jessenoller.com
Also, full disk encryption is amazing
I had errors when I ran `brew update`. Looks like it might hit most people who have installed it recently, so possibly all new clean-install Lion users (I haven't checked the commit history to see when it might have started, and it could be related to a version of Git anyway).
edit: and thanks for the write-up! I found a few things I didn't know about :)
Merely using encryption on your home folder is obviously going to leak information to unencrypted portions of the disk (not to mention spotlight indexing); but more insidious is default safe sleep (which will write out your encryption key to disk) and DMA enabled ports.
The implementation in Lion is amazingly good; I do hope they close the DMA port issue though.
2) Install Alfred, disable the spotlight hotkey and assign Alfred to Command+Space
3) Install Witch, a better command tab switcher that handles minimized windows.
Alfred -> If you don't have this installed before upgrading to Lion, which the article is about, then I think you might have something wrong with you :)
Witch -> Never used it.
And for a lone time, Terminal.app before Lion only supports 16 colors, which is a big reason for me to switch to someone better. iTerm2 fits the bill.
I'm not running dual screen - just 1900x1200 and 1440x900 depending on where I am. Like I said, it's a workflow thing. I didn't even notice the increase in terminal colors - all my good coloring is in mac vim, not in the terminal.
I have personally had an unreasonable amount of trouble installing and using Python libraries and environments on Snow Leopard. I think right now I have at least 3 different versions of Python installed, each with various and disparate libraries. Has this been addressed in Lion? Getting Numpy, Scipy, etc to work is a chore; especially when comparing it to the Linux experience.
Setting up development environment in Linux seems more sane not just for Python but for almost everything else (Java, Ruby, typical LAMP stack) except if you're doing iOS development.
So, I disagree that it's "more sane" - I spend plenty of time chasing down crazy outdated versions of Python libraries the apt/yum repos contain, etc, and well, I don't like spending my time in linux window managers (I dislike the UI) so it's a wash, and getting a linux dev environment setup on my mac is as simple as booting a VM and swapping it into fullscreen.
But to each their own. If I wasn't running OSX, I'd be running Linux. I just prefer one OS' aesthetics over another.
See also Vagrant (http://vagrantup.com/) - runs off of virtualbox if VMWare isn't your thing.
On the other hand, I thought people install Python libraries either directly downloading the distributions or via easy_install? I never install modules from apt/yum.
ps. easy_install is bad for you, use pip! http://www.pip-installer.org/en/latest/index.html
1) OSX version vs public version 2) Java SE API source code (you have to do some tinkering before you can browse the source code of JDK classes using your favourite short-cut keys provided by your favourite IDE).