testing facebook apps with ssh reverse tunnels
If you're writing a Facebook app, you may have to jump through hoops to test it out against your local development machine. Facebook requires that you confi...
If you're writing a Facebook app, you may have to jump through hoops to test it out against your local development machine. Facebook requires that you confi...
A common pattern for less than instantaneous ajax calls is to show the user a "loading" animation while the ajax response is pending. If your animation is a...
In my last Django project, we had a set of helper functions that we used a lot. The most used was helpers.first, which takes a query set and returns the fir...
This week we had a hackathon to develop a better internal dashboard page that shows things like records added to the system over time. Not having generated ...
It's not uncommon for me to call my product manager over to my desk half a dozen times on a given day to look at what I'm working on. To speed things up, I ...
At work, I have a set of long-term goals I'm supposed to be making progress on over the year. As a way to remind myself about them, I have a cron job setup ...
I'm in the middle of writing a bookmarklet to screen scrape web pages. My back-end piece is having trouble parsing pages with lots of script tags. Since I d...
Making ajax calls from javascript, even without a framework like jQuery, is pretty trivial. However, once you try to make the same request cross-domain, it ...
In Python, class attributes are evaluated and put into memory when the class is defined (or imported). For example, if you run the following code in an inte...
Django handles database connections transparently in almost all cases. It will start a new connection when your request starts up, and commit it at the end ...