Configuring a Git server
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
Creating Abstract Base class in Mongoengine
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
Moved to Tumblr.
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.
Django, JQuery and CSRF
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.
Django Managers
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 »
Samba stuck on service smb start
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 »
Vim an alternative for Django IDE
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 »
Fedora 9 common problems
I needed to change my menu, consisting of my pages. This post seemed to be outdated as Fedora is in its 14th release. The old post: Read the rest of this entry »
Changing samba password using Django
Necessity is the mother of all invention they say and so was my case for developing a simple front end for changing samba passwords using django. I am not sure if this is the safest way of doing it and would love if someone would help me in implementing this better. I have listed out the procedure of development and the scripts. This might just well be used as a script. Read the rest of this entry »
Django IDE
I started programming on Python a couple of months back and am currently shifting my web application stack to Django. Django is simply amazing, with the power of Python it just does wonders. Well on the road of migration I desperately needed an IDE. Read the rest of this entry »