Using Access-Control-Allow-Origin to make cross domain POST requests from javsacript
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 ...
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 ...
If you have an existing HTTP application that you want to enable SSL for, nginx provides a convenient reverse proxy mode. In this mode, nginx is just respon...
Facebook recently started enforcing OAuth 2.0 on app developers. Supposedly this was slated for Oct 1, 2011, but in practice it seems to have not started un...
This jQuery snippet will turn an INPUT element into a hashtag input control. For example, if the user type "jobs business networking", it will translate it ...
Whenever I get up from my desk, I reflexively lock my workstation. Ever since upgrading to Ubuntu 11.10, this has failed to put my monitors into suspend mod...
One of the great things about Django's caching framework is that you can cache complex objects. Say you have a list of dictionaries representing favorite mo...
Running a java JAR as a daemon in Linux is fairly easy, but it took me some digging to figure out how. This is using the new upstart init script functionali...
What if gmail went away tomorrow, or at least deleted all your mail? It may not be as far fetched as you think. It's always prudent to have a backup.