I ran into a problem today I hadn’t experienced in a long time.  I was trying to get mysql-python installed when running the .dmg for MySQL and it kept giving the following error:

EnvironmentError: mysql_config not found

After a bit of refreshing my memory I remembered that it was actually pretty simple to fix.  The mac is a little different in where it stores the mysql_config file.  Just run the following command from and all is good:

$ export PATH=/usr/local/mysql/bin/:$PATH

You will then need to add a symlink to the libmysqlclient in /usr/lib:

$ sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib

Then you can run pip install mysql-python.

Nice morning in uptown Charlotte. (at CPCC Central Campus)

There are a couple of wordpress sites that I maintain. The nice thing about wordpress is that most of the time it is pretty easy to maintain and manage upgrades. The key is “most” of the time. I purchased a custom theme for a website that I manage called Eclipse. Unfortunately it does not seem to be maintained any longer and when I upgraded the site to wordpress 3.5, it broke. Word for the wise, backup your wordpress database before a seemingly minor upgrade. Yes, I know I should have done a backup. The Eclipse theme breaks when trying to use the Attachments plugin. Even if you upgrade the plugin, the theme is still broken. I did find a quick way to fix the problem. Just wrap the call for the attachments plugin in page.php and single.php with the following function:

This will then check for the plugin before trying to run the code. This is not a perfect fix, but has bought me a bit of time until I troubleshoot the root problem. I thought it may be a useful bit of information for someone like me, a non-php guy (python guy) who happens to manage a couple of small sites with wordpress.

Nice day in Tampa and Educause. #serc12 (Taken with instagram)

I just returned from a two week trip to Israel.  What an amazing trip and great place to visit and take pictures. I just returned from a two week trip to Israel.  What an amazing trip and great place to visit and take pictures. I just returned from a two week trip to Israel.  What an amazing trip and great place to visit and take pictures. I just returned from a two week trip to Israel.  What an amazing trip and great place to visit and take pictures. I just returned from a two week trip to Israel.  What an amazing trip and great place to visit and take pictures. I just returned from a two week trip to Israel.  What an amazing trip and great place to visit and take pictures.

I just returned from a two week trip to Israel.  What an amazing trip and great place to visit and take pictures.