// archives

Development

This category contains 5 posts

How to influence the query plan in Lucene / Solr?

I was looking through Luence’s source code today (okay - night) to find whether you could provide hints to Lucene to change the clause precedence during query execution. Unfortunately, I found that Lucene does not support users to supply any such hint (I was looking at ConjunctionScorer).
At work, we have a use case, where we [...]

django-reviews - Generic ratings and review application for django projects

django-reviews - A generic review application for Django projects, which allows association of a number of reviews with any Model instance and makes retrieval of reviews simple.

I dug around the django space and couldn’t find a generic review application that would allow users to add a review (including ratings) to an entity. So, I decided [...]

Django - Login with email or username

This snippet allows you to login with either username or email in your Django applications. All you have to do is add the middleware and combine it in the authentication backends.

Running Hadoop on Mac

For those of you who want to run map reduce jobs using Hadoop on your Mac - here is a great article that guides you through a step by step process.

Scriptify your Django deployments using Fabric

Anyone who has worked on a decent size product where Django is serving as the web front, understands how monotonous the update / deployment procedure gets. Especially, when you have more than a couple of servers serving your user base. And if you are one of the companies who have embraced the cloud computing platform [...]