thoughtherder
-
Why’s (Poignant) Guide to Ruby
Sunday, April 18, 2010 11:47 p.m.
-
Gary Taubes Speaks at UC Berkeley
Wednesday, April 7, 2010 11:46 p.m.
-
dvtm
Friday, March 26, 2010 11:45 p.m.
dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console.
-
Django Advent 1.2
Friday, February 26, 2010 11:43 p.m.
Articles about the new features in django 1.2 and the techniques they make possible, often written by the feature’s author.
-
Migrating a Django Project from SQLite to MySQL / PostgreSQL
Tuesday, February 23, 2010 midnight
Should you ever be tasked with migrating a django project running on an sqlite database to postgresql or mysql, the following are some of the steps I took.
The project was already in production, so I needed all the data to come along with it. This caused some problems that django, sadly, wasn’t equipped to handle.
./manage.py dumpdata > mydumpfile.json ./manage.py dumpdata --indent=n > mydumpfileindent.json grep myword mydumpfileindent.json grep -A 10 -B 10 -n myword mydumpfileindent.json mysql -u root -p mysql> drop database dbname; mysql> create database dbname -> character set utf8 collate utf8_general_ci; mysql> grant all on dbname.* to dbuser@localhost -> identified by dbpass; mysql> exit; sudo -u postgres dropdb dbname; sudo -u postgres createdb dbname -E utf8 -O dbuser; ./manage.py syncdb ./manage.py sqlflush | mysql -u dbuser -p dbname ./manage.py sqlflush | sudo -u postgre psql dbname mysql -u dbuser -p dbname mysql> alter table tablename modify -> columnname columntype; mysql> alter table tablename add -> columnname columntype after othercolumn; ./manage.py loaddata mydumpfile.jsonosx utilities:
- SQLite Database Browser
- Sequel Pro for MySQL database management.
-
Curried JavaScript Functions
Saturday, February 20, 2010 11:42 p.m.
No, not curried spicy, but curried lambda-calculus-like.
-
django-rosetta
Friday, February 12, 2010 11:42 p.m.
A django application that eases the translation process of your django projects.
-
virtualenvwrapper
Friday, February 12, 2010 11:41 p.m.
Extensions to Ian Bicking’s virtualenv tool.
-
The Unicorns - I Was Born A Unicorn
Friday, February 12, 2010 11:41 p.m.
-
How Do We Kick Our Synchronous Addiction?
Tuesday, February 9, 2010 11:40 p.m.
