links for 2010-01-07
-
music reviews
-
wordpress theme
-
wordpress theme
links for 2010-01-05
Install django using virtualenv in ubuntu
Install virtualenv and pip as system packages.
$ sudo aptitude install python-pip
$ sudo aptitude install python-virtualenv python-setuptools
Virtualenv
Create virtualenv workspace.
$ virtualenv --no-site-packages trackedfm
New python executable in trackedfm/bin/python
Installing setuptools............done.
Django
Install django into the workspace.
$ pip -E trackedfm/ install -U django
Downloading/unpacking django
Downloading Django-1.1.1.tar.gz (5.6Mb): 5.6Mb downloaded
Running setup.py egg_info for package django
Installing collected packages: django
Running setup.py install for django
changing mode of build/scripts-2.6/django-admin.py from 644 to 755
changing mode of /home/paul/workspace/python/trackedfm/bin/django-admin.py to 755
Successfully installed django
Virtualenvwrapper
virtualenvwrapper provides shortcuts for switching between virtual environments. Install virtualenvwrapper using easy_install.
$ sudo easy_install virtualenvwrapper
Configure shell
Add two lines to your .bashrc to set the location where the virtual environments should live and the location of the script installed with this package:
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper_bashrc
Switching between projects
Resources
The country’s new robots.txt file
Here’s a small and nerdy measure of the huge change in the executive branch of the US government today. Here’s the robots.txt file from whitehouse.gov yesterday:
User-agent: *
Disallow: /cgi-bin
Disallow: /search
Disallow: /query.html
Disallow: /omb/search
Disallow: /omb/query.html
Disallow: /expectmore/search
Disallow: /expectmore/query.html
Disallow: /results/search
Disallow: /results/query.html
Disallow: /earmarks/search
Disallow: /earmarks/query.html
Disallow: /help
Disallow: /360pics/text
Disallow: /911/911day/text
Disallow: /911/heroes/text
And it goes on like that for almost 2400 lines! Here’s the new Obamafied robots.txt file:
User-agent: *
Disallow: /includes/
That’s it! BTW, the robots.txt file tells search engines what to include and not include in their indexes.
Getting a grip on Python: six ways to learn online
Awesome comment on TechCruch thread
Wow, he really does have that domain name. What a prick.
Here’s an early Christmas present for you “Guy Dominic” of JohnnyRoyale LLC. in Portland Oregon:
The domain cryharderfaggot.com is officially registered to:
Guy Dominic
JohnnyRoyale LLC
Portland, OR
What’s that? You don’t understand the gift? Try Googling your name or company name in about 24 hours. This page will forever expose your douchebaggery to anyone who wants to look you up. Have fun finding a good job anytime in the next 10 years or so. It’s the gift that keeps on giving.
Have a nice life.
via A Modest Proposal For The Auto Industry: Stop Building Cars
