latest entries
-
Tech Behind Red Robot Studios Part 2: Versioned Media and Expires Headers in Django posted by Andrew
Read more...We try to make our sites as responsive as possible, and as part of our testing, we realised that we should do the right thing and add Expires Headers to our static media. Our web servers are configured so when a client requests an image, stylesheet or JavaScript file, it is returned along with a far-future expires header. This tells the client not to ask for that file again, but to cache it for a month or more.
Encouraging Caching ...
-
Tech Behind Red Robot Studios Part 1: Handling Subdomains in Django posted by Andrew
Read more...This is the first part of our series on some of the more interesting tech we've developed for Red Robot Studios. We're working from webserver up, so we thought that subdomains would be a good place to start.
Subdomains are useful when you want to host multiple sites with the same code and different data. For example, providing websites for clubs where each club has its own subdomain. In Django, you could have a
Clubmodel and some ... -
Upcoming Series: The Django Tech Behind Red Robot Studios posted by Andrew
Read more...We're proud to announce that we've just launched a new development company: Red Robot Studios. We're really excited, and have a great feeling about the things we'll be able to do with the company over the coming months.
Red Robot Studios, (and it's products) all run on Django, Python, Postgres and Nginx. So, with that in mind, and over the next couple of weeks, we'll be writing some articles on the most interesting aspects ...
-
Remote/telecommuting Gig Filtering posted by Andrew
Read more...We have finally gotten around to adding simple filtering of remote/telecommuting gigs to the site. A significant number of people expressed the desire for the feature and we couldn't let them down, so thought we'd better get going and add it. The changes also extend to the feed generator, so you can now get a purely remote gig feed as well as what we had before.
As the site has increased in popularity tremendously over the last ...
-
SquirrelFish Extreme posted by Andrew
Read more...First there was SquirrelFish, now there is SquirrelFish Extreme. The exact nature of what SquirrelFish Extreme is isn't quite clear at the moment given that it hasn't yet been announced by the WebKit team. However, some initial benchmarks against TraceMonkey are beginning to appear.
Rummaging around in the source, there is clearly indication of more advanced code generation. It was only merged to trunk in r36244 and is apparently enabled in the latest nightlies - not sure about Windows ...
-
V8 and JavaScriptCore Compared posted by Andrew
Read more...Following on from the release of Google's new Chrome browser and their corresponding V8 Javascript engine, I thought I'd see how WebKit's JavascriptCore compares to V8 using Google's benchmark suite.
Since I'm running on a Mac, I can't use the browser to run the test suite, so I built the V8 engine and it's shell, and compared it to the latest WebKit build available (at the time of writing r36013), and used the ...
-
Apple's Shell Interface to JavaScriptCore posted by Andrew
Read more...After scanning through some of the most recent changesets over at Apple's WebKit trac, I noticed a few references to a shell interface to the javascript interpreter which allows you to execute javascript using JavaScriptCore directly. I know there are many exising tools SpiderMonkey, Rhino and others for example, but I though it was enough of a development to mention.
To try it out you'll have to download a WebKit nightly, and open the Terminal and
cdin ... -
Djangogigs First Sponsor posted by Andrew
Read more...Just a quick note to say thanks to Brian Chow from Full Factor Technologies for becoming the first to sponsor Djangogigs.
-
ValuesQuerySet changes POST-qs-rf merge posted by Andrew
Read more...Update: As Malcolm has commented below, the issue described here was in fact a bug which has now been fixed.
Just a quick note regarding of one area of change since the merge of the queryset-refactor branch into the trunk which has broken a specific use-case of the
ValuesQuerySet.To reduce the number of queries which are executed when accessing related items from a model I have one particular view which uses
values()to returnValuesQuerySetrepresenting the associated instance ... -
Djangogigs and the feedgenerator module posted by Andrew
Read more...Update: Sorry about the escaped markup in the community feed. That's what happens when upgrading your working copy in a rush and not testing everything thoroughly.
It's been a while since I've written any kind of django-related post, but since djangogigs got a good mention by Adrian at PyCon08 I thought I'd better talk about some of the updates - some old, some new - to djangogigs and other django-related things.
A while ago we implemented two commonly ...
-
Mootools iPhoto-like Image Scrubber posted by Andrew
Read more...I'm working on a project at the moment where I wanted the ability to flick through a set of images quickly without resorting to either a full-blown gallery or a rather passé Lightbox. Instead, I looked to iPhoto '08 for inspiration. I particularly liked the way that photos are automatically grouped into an icon which represents the photo set, and by moving your mouse from left to right over the set, iPhoto will skim through all of its photos ...
-
Djangogigs - New Features posted by Andrew
Read more...Just a quick post to outline some of the new features we've added to djangogigs. After a number of requests we've now provided developers with the ability to edit their profile, and also provided a contact form for both gigs and developers as a way to help protect users' email addresses from harvesting by bots.
We decided to try out a token-based URL scheme to authorize editing so people don't have to create an account and remember ...
-
Djangogigs.com Downtime posted by Andrew
Read more...As some have noticed, django gigs was down for most of yesterday after the 123-reg.co.uk DNS servers went down for about 12 hours. Scott has now moved the domain to zoneedit.com which is a free DNS service, and hopefully the change will have propagated to most DNS servers by now and normal service have been resumed.
And just as we were going to release a load of new features - typical isn't it?
-
djangogigs.com - From Idea to Release in 6 Hours posted by Andrew
Read more...Yesterday afternoon around 2 p.m, Scott and I had an idea to develop a job/gig board for people looking for Django developers. I know there's the Developers for Hire page which shows some projects, and there are also some posted in the Google groups but there didn't seem to be a good dedicated site just for this purpose, so we thought we'd give it a go.
Since we're both freelance developers and used to ...
-
Hijaxing Form Submission: Writing The View posted by Andrew
Read more...After writing about how to use Mootools to hijax form submission I thought I should follow it up with how to integrate this with the backend code. In this case it's Django, so all of the code is contained in a view which will simply return HTML in response to a regular POST and JSON to a XMLHttpRequest. Below is some sample code which demonstrates the idea:
def contact(request): """Sample view to demonstrate using newforms with both hijaxed ...
