Satyajit Ranjeev

My rants on development and design

Configuring a Git server

leave a comment »

There are many ways to set up a Git server. In this article I am going to show you how you can do it using the SSH protocol. First I am assuming you have a UNIX or GNU/Linux machine with you. I am not very sure if this works well on windows, I am assuming it would.

Read the rest here

Written by Ranjeev Satyajit

November 19, 2011 at 6:19 am

Posted in General

Creating Abstract Base class in Mongoengine

leave a comment »

I guess some how they missed it in the documentation or I have overlooked it. We had a situation where we needed to create an abstract base class. It is quite a simple process. Create the base class with meta, abstract: true.

Read the rest here

Written by Ranjeev Satyajit

November 19, 2011 at 6:18 am

Posted in Tweaks

Moved to Tumblr.

leave a comment »

Its been a difficult shift, but with many things in mind I decided to move to Tumblr. My new blog : http://blog.ranjeev.in. Hope I see you folks there.

Thanks for all the comments and appreciation.

Written by Ranjeev Satyajit

October 7, 2011 at 12:45 pm

Posted in Uncategorized

Django, JQuery and CSRF

leave a comment »

Just a note:

The page in django docs , for  sending a POST request with a CSRF token does well in explaining how to do so, but I feel it fails to point out that using JQuery 1.5 does not work, you need to update to > 1.5.1.

Written by Ranjeev Satyajit

May 6, 2011 at 11:59 am

Posted in Django

Django Managers

with one comment

I have been working with Django for more than a year now and the more I learn about it the more it gets better. I do have a few hiccups but there are solutions for them, mostly. Any ways one thing I find very interesting is the model’s manager. Objects  of a model, or a few objects, can be retrieved using these methods: Read the rest of this entry »

Written by Ranjeev Satyajit

January 11, 2011 at 7:06 am

Posted in Django

Samba stuck on service smb start

with one comment

I had set up a CentOS server last year, if you remember with a RAID setup. Things had been going on very well for more than a year and a half. A few weeks back one of the hard disks issue warning that it had bad sectors and needed replacement. Thus we bought a new hard disk and replaced it. And thankfully to the RAID system I did not have to get it offline.  Read the rest of this entry »

Written by Ranjeev Satyajit

December 13, 2010 at 8:34 am

Posted in Trouble-shooting

Vim an alternative for Django IDE

with 2 comments

My search for a Django IDE led me to stumble upon Vim. I have used Vim from the days of my RHCE training. To think of it I used it the very first time I used Linux. All the command line tweaking and editing of files that had to be done were shown in vi. Then my ignorant mind did not comprehend the ‘:’, esc and all. It just seemed so weird.
Read the rest of this entry »

Written by Ranjeev Satyajit

November 26, 2010 at 4:57 pm

Posted in Reviews

Follow

Get every new post delivered to your Inbox.