Upload a directory to Rackspace Cloud Files from command line

Wed 02 January 2013 by Thejaswi Puthraya

Here's a simple bash script that uploads a directory to Rackspace Cloud Files and may later on be served as a static website.

First we have to authenticate to get the authentication token that has to be passed for every request:

$ curl -v -X GET -H "X-Auth-User: <username>" -H "X-Auth-Key …
read more

The missing documentation for django.utils.datastructures

Thu 01 November 2012 by Thejaswi Puthraya

Cross posted from my work blog.

Note

django.utils.datastructures is intentionally not documented by the django core devs because it is an internal API and is liable to change without any notice. This file is not governed by django's lenient backwards-compatible policy. You have been sufficiently warned!

With the …

read more

Dissecting Phonegap's architecture

Thu 06 September 2012 by Thejaswi Puthraya

Cross-posted from my work blog.

Apache Cordova is a open source cross-platform framework for building native mobile applications using HTML, CSS and JavaScript. It started off as Phonegap, a project of Nitobi Software before it was acquired by Adobe Systems. The code for the platform was donated to the Apache …

read more

Dropbox file upload handler for django

Tue 17 July 2012 by Thejaswi Puthraya

Cross posted from work blog.

Dropbox announced new pro plans last week and some accounts have had their storage size doubled. Wouldn't it be wonderful if we could upload all our files to dropbox from our django webapp?

In this post, I write a custom file upload handler that will …

read more

Using Ubuntu cloud images in KVM

Mon 16 July 2012 by Thejaswi Puthraya

Cross posted from work blog.

Quite a few of our clients are powered by Amazon EC2 or Rackspace and we use Ubuntu LTS releases for our servers. Canonical provides EC2 AMIs and Openstack images for all their releases. By using these JeOS images on the server as well as on …

read more

Libvirt and KVM

Mon 25 June 2012 by Thejaswi Puthraya

Cross-posted from my work blog.

Libvirt and KVM

"But it works on my local setup!" We have heard or probably said this tens of times after something that we deployed to the production server breaks. After fire fighting for hours we learn that a particular package's version varies from the …

read more

Using D-Link DWL-G132 from Linux

Fri 23 March 2012 by Thejaswi Puthraya

A couple of weeks back, my wireless card on my laptop first started dropping more than half the packets and then stopped working. Since the laptop is 4 years old, I was not too keen to spend to replace the wireless card (if stock was available). I had a DWL-G132 …

read more

Developing android applications from command line

Tue 20 March 2012 by Thejaswi Puthraya

Cross posted from my work blog.

Here at Agiliq, we also develop cross-platform HTML5 mobile applications. Using Eclipse to create an android project (one time task) and edit html and javascript files for an android app is an overkill. Wouldn't it be great, if you could use your favourite text …

read more

Behind the Scenes: From request to response

Mon 02 January 2012 by Thejaswi Puthraya

Cross posted from my work blog.

In the previous installment of "Behind the Scenes", we saw how the control flows from Form to File Storage. Today, we are going to see how the application reacts from request to response.

In this post, we are going to assume that we are …

read more

Sencha Touch vs jQuery Mobile

Thu 15 December 2011 by Thejaswi Puthraya

Generally, I don't like to do a comparison of technologies or products in a single post because each deserves a dedicated post. But such type of posts get obsolete fast and the effort put into writing (not researching) them goes waste.

Before I start off the comparison, I need to …

read more