8th
(via yimmyayo)
(via yimmyayo)
Please do me a small favor and click to vote for Mixcloud in a Paypal competition here: http://bit.ly/mixcloud-comp and Reblog this, Thx!
I upgraded to Snow Leopard last week and hard to re-install my development setup from scratch. In the interest of sharing I though I’d post the steps here (the MySQLdb setup can be a really headache). Non-tech geeks turn away now!
===
MySQL SETUP
1. Make sure Xcode is installed
2. Download the correct MySQL (64 bit for Snow Leopard) from: http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg
3. Run DMG and package installer. Run MySQL.prefPane on the disc image to add pref pane to your Mac Settings (and turn MySQL on at bootup)
4. Download the correct MySQLdb from: http://sourceforge.net/projects/mysql-python/
5. Open the setup_posix.py file in an editor. Change the line: mysql_config.path = “mysql_config” TO mysql_config.path = “/usr/local/mysql/bin/mysql_config”
6. Navigate to the MySQLdb folder you downloaded which contains setup_posix.py and run: sudo python setup.py clean
7. Run: sudo python setup.py build
8. Run: sudo python setup.py install
NAVICAT
1. Get the free Navicat lite for MySql from Navicat site
2. Create a new connection called localhost. Right click to set properties: connection name and host name: localhost, port 3306, username: root, password null, and auto connect
3. Connect and create a new “ABC” database. Character set UTF8, Collation UTF8 Unicode
4. Select database and click on “manage users” and “add user”
5. Username: XYZ, host: localhost, passwrd: ***
6. Select that new user and give all priveleges and click “save”
GIT SETUP
1. Download and run the git installer (works on leopard and snow leopard) at: http://code.google.com/p/git-osx-installer/
2. Run the pkg installs
3. In terminal type git help to see if it’s working
4. Follow github instructions to add a public key: http://help.github.com/mac-key-setup/
5. Setup your configuration with Github by following this: http://help.github.com/git-email-settings/
EASY INSTALLER:
1. Download the “Python setup tools” easy installer for your version of python at: http://pypi.python.org/pypi/setuptools#files
2. Run it as if it were a shell script, e.g. sh setuptools-0.6c9-py2.6.egg
CELERY
1. To get “PIP” which is another Python installer needed to install celery, run: sudo easy_install PIP
2. Run: sudo PIP install celery
PIL (helped by http://proteus-tech.com/blog/cwt/install-pil-in-snow-leopard/)
1. Tricky, depends on Python & OS X you’re running. For 2.6.1 and Snow Leopard: get latest libjpeg library at http://www.ijg.org/files/jpegsrc.v7.tar.gz
2. Unzip. Go into folder, run: ./configure —enable-shared —enable-static
3. Run: make
4. Run: sudo make install
5. Download the latest PIL Imaging-1.1.X.tar.gz from http://effbot.org/downloads/
6. Go into folder and in setup.py set JPEG_ROOT = None and then it to JPEG_ROOT = libinclude(“/usr/local”)
7. Run: python setup.py build
8. Run: python setup.py install —optimize=1
MEMCACHE (helped by http://blog.ajohnstone.com/archives/installing-memcached/)
1. Memcache needs libevent to install, get it here: http://www.monkey.org/~provos/libevent/
2. In the libevent folder run: ./configure then: make then: sudo make install
3. Download memcached from http://code.google.com/p/memcached/downloads/list
4. In the memcached folder run: ./configure then: make then: sudo make install
5. Run: sudo PIP install python-memcached
PYTHON PATH
1. Create a file named includes.pth and put it in your python/2.6/site-packages directory
2. Have 2 lines pointing to your libs and website folder
When reality was more surreal than Hollywood.
via ckck:
NYPD aerial photographs of 9/11. Full gallery.