I ran into an issue installing the MySQLdb module.
>>> import MySQLdb /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg/_mysql.pyc, but /Users/jhaddad/Downloads/MySQL-python-1.2.3 is being added to sys.path Traceback (most recent call last): File "", line 1, in File "MySQLdb/__init__.py", line 19, in import _mysql File "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 7, in File "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 6, in __bootstrap__ ImportError: dlopen(/var/root/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib Referenced from: /var/root/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so Reason: image not found I fixed it by doing the following:
mac
- About 4 years ago I decided to write a little GUI tool for manually testing API calls. Put it on the top of my blog, people have downloaded it, and I haven’t touched it since then. Last updated timestamp was 2007. I don’t know if anyone wants it, but it could be useful as a starting point, or to understand how Cocoa apps were written… 4 years ago… I don’t know.
- I like running VirtualBox headless on my Mac. It doesn’t show up in the Dock, and feels like it’s a remote server. First, figure out which VMs you have on your machine. haddad-work:~ jhaddad$ VBoxManage list vms Oracle VM VirtualBox Command Line Management Interface Version 3.2.6 (C) 2005-2010 Oracle Corporation All rights reserved. "WebServer" {2c61a180-e098-4926-b09a-27e431791c88} Then start it using VBoxHeadless nohup VBoxHeadless -s WebServer -vrdp on & I’m using Cord for RDP.
- _As of a few hours after this post, I’ve given up trying to get Puppet Master running on Snow Leopard. There appears to be an issue with the SSL certificates generated that’s preventing puppetd from getting it’s recipes. There doesn’t appear to be any way to disable this. I have switched to a CentOS VM, which worked perfectly the first time. The Unixy underpinnings of my Mac seem to be getting less and less useful every day.
- NumPy is a requirement to work with PyTables. This is the second step in the install process, after getting HDF5 set up. These instructions are based on the ones found on the NumPy site, but I’m summarizing things for my own use later on. First, you’ll need to install the Fortran compiler for OSX (gFortran). Fortunately there’s a Fortran universal binary installer. Next, get the NumPy source. You can find it on Sourceforge.
- I finally got fed up enough to look into this. I’ve previously used Samba mounts, but this in theory should be better. http://www.turingtarpit.com/2009/04/mounting-remote-filesystems-on-osx-leopard-using-sshfs-macfuse-and-macfusion/ If you’re using Snow Leopard, the drive will not be able to mount. You can get around this by deleting /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so
- When I get a new Mac, I go through the same steps every time. Yes I use a Mac as a dev box. Software Xcode Adium Launchbar iTerm - change defaults to black background. (edit bookmarks, default, background) Apache HTTP Server (source) MySQL (source) PHP (source) Eclipse PDT Omnigraffle Fluid BBEdit SubEthaEdit Git SVN Memcached Tweaks Remove everything from Dock. Fix the look of the dock. defaults write com.apple.dock no-glass -boolean YES killall Dock
- I found this pretty amusing… me: i’m terrible w/ cocoa i don’t particularly like objective-c it’s to verbose **matt: ** [me putonSock:blueOne onFoot:rightFoot ignoringHangNail:YES]
- I’ve tried so many times to use Spaces, and I keep failing. As useful as it should be, it just never was. And I’ve finally realized why. Most of what I do is in a web browser. And spaces just wasn’t made for that. I want Gmail to always be in space 3. Facebook on 4. It just wasn’t meant for that. I’ve recently discovered Fluid. Fluid brings creates Site Specific Browsers.