Entries published November, 2009
Github, the premier social coding site, has a new REST API. I've written a small API client in Python to handle retrieving data on repos, commits, and gists.
When I interviewed for my first web development job one of the first questions was "Are you comfortable using linux?" I thought "Why would I need to know how to use that?" -- newb mistake.
17
Hooking into django's login and logout - two approaches
2 Comments | Tags: authentication django
Hooking into django's authentication system using two approaches: a custom authentication_backend and signals.
14
How-to work around your home server's dynamic IP
0 Comments | Tags: ddclient dyndns home-server
DynDNS provides an awesome free service - a hostname that points at your home server. Most of us have a dynamic IP provided by our internet service provider, and running a home server can be a pain whenever your IP address should happen to change. DynDNS allows you to create a hostname that will point to your dynamic IP.
13
Remove profanity (or any words) with a regular expression
0 Comments | Tags: python regular-expressions snippets
If you have comments on your site, or allow use generated content to appear in prominent places, it's a good idea to remove profanity. This regular expression matches case-insensitive for any bad words, and strips the entire word to the leading and trailing whitespace.
One of the biggest barriers to entry on the web might be the "register -> check email -> login -> remember account info" paradigm. At work I recently developed a proof-of-concept app that allows a single login to work with multiple sites. How? iframe
04
Merges from the Crypt - or, how I learned to stop worrying and love SQL
0 Comments | Tags: django databases postgresql
Outlining how I merged two databases for django-powered sites using a combination of SQL, django-multidb, and pg_dump.
03
Describing Relationships: Django's ManyToMany Through
0 Comments | Tags: django python databases many-to-many
How to implement many-to-many relationships with extra fields, or, Many-to-Many Through. Covers django models and admin.
