November 21st, 2014
What’s the optimal layout for your Django applications, settings files, and various other associated directories?
When Django 1.4 was released it included an updated project layout which went a long way to improving the default Django project’s layout, but here are some tips for making it even better.
This is a question we get asked all of the time so I wanted to take a bit of time and write down exactly ...
October 21st, 2014
A quick howto guide on setting up modern front-end development tools to improve your day to day work flow.
You'll learn how to:
- Setup gulp to orchestrate everything
- Install gulp plugins to combine, minify and otherwise transform your files
- Use bower a package manager for "web things". It helps you install, track and manage CSS frameworks, JS libraries and other tools
- Add LiveReload so your browser window(s) auto-refresh when you make changes to anything ...
July 12th, 2014
Do you find yourself re-doing the same Python shell stuff?
I know I do. I'm constantly doing it and replaying some of my IPython history isn't cutting it for me anymore. IPython has profiles but they're not terribly easy to get working with Django and your typical
manage.py shell command.
Site wide is easy, but what about per project?
You can load things and execute code for ALL your Python shells ...
February 19th, 2014
So this is one of those little things where you think, why the hell didn't I think of this years ago?
I'm sure many Django developers end up doing this on a fairly regular basis. You're working on a site, go to the production/staging version, navigate around and then want to view the same URL path but on your local development server.
If you're like me you cut-n-paste the current ...
March 5th, 2009
I'm very pleased to announce that Jacob Kaplan-Moss has joined Revolution Systems to head up a new line of services around the ever growing Django web development framework. First up are commercial Django Support Plans, but look for more Django related offerings in the near future.
Jacob has been a good friend of mine since before Django was even released. It was a pleasure to work with him at our previous day jobs and ...
August 5th, 2007
I was invited to a wonderful dinner party (I swear it wasn't too spicy Sarah!) with some St. Louis Perl peoples this week while I'm here on business. At one point we were talking about hiring programmers, specifically Perl programmers.
We agreed on the following:
- Finding good programmers is hard in any language. And that a good programmer can be as effective as 5-10 average programmers.
- Average pay rates between equivalent ...
May 31st, 2007
I have been meaning to talk about one of my new favorite Perl modules, MIME::Lite::TT::HTML , for quite a while now. As I mentioned in a previous post, there are a bazillion different ways to send an Email message from Perl. This one is just my new favorite.
Here is a short list as to why:
- Can be used for complex multi-part messages and handles attachments easily
- Built upon the equally ...
May 16th, 2007
I see this problem pop up in the #postgresql IRC channel so often I felt it was necessary to blog about it. This problem trips up so many new users it might even be worth changing the default error message to indicate what is going on. The error message happens when the user tries to run psql for the first time:
psql: FATAL: database "root" does not exist
Where "root" is the current Unix username ...
March 12th, 2007
I recently came across several blog posts about the declining state of E-mail due to spam. Specifically these:
- Spam Volumes at accidental-DOS Levels
- Another War We Aren't Winning: Us vs Spam
- E-mail as we know it is doomed
I've been running E-mail servers for myself and others for over 10 years now and I have to agree that with the current version of SMTP we all use, there isn't much that ...
July 25th, 2006
I have recently been using DBIx::Class instead of the more popular Class::DBI. It has many advantages over Class::DBI that I won't go into here, but if you haven't used it yet you should definitely check it out.
One thing I found the other day is how to setup a special LEFT OUTER join query. If you have a situation where you need to do a LEFT OUTER join on your ...
January 6th, 2006
Several months ago I wrote an article on tuning your PostgreSQL database for performance that has gained a lot of attention. While I think the article covers most of the basic to intermediate level options you can use to better tune your database server, it is by no means all you're ever going to need to know. If you use PostgreSQL often I strongly suggest you at least scan the posts on the ...
January 3rd, 2006
A materialized view is defined as a table which is actually physically stored on disk, but is really just a view of other database tables. In PostgreSQL, like many database systems, when data is retrieved from a traditional view it is really executing the underlying query or queries that build that view. This is great for better representation of data for users, but does not do anything to help performance.
Materialized views are different in ...
January 2nd, 2006
One of the things people find difficult about Sendmail is virtual users. These are defined in the virtusertable file ( usually in /etc/mail/virtusertable ). This file instructs Sendmail to translate a "virtual" user into a real user or alias. The reason I mention aliases here is because, with Sendmail, you can have a virtual user that translates into a alias for multiple local and/or remote E-mail accounts.
A situation some people run into ...