Using Django with Virtualenv and PIP

Recently, I have switched over to using Virtualenv and PIP for all my python devolopment, and I am totally convinced that is the way to go. I will not get into why we should use those, instead will outline how to set this up with Django for development as well as deployment.

 

1. Install Basic Tools like Git, PhpMyadmin, MySQL, Mercurial etc

 apt-get install curl sox mysql-server mysql-client libmysqlclient16-dev git-core apache2 libexpat1 ssl-cert unixodbc-dev libmyodbc phpmyadmin mercurial 

Read the rest of this post »

My new editor - Geany

I have been using the default text editor in Ubuntu, Gedit, and have modified it to work it like an IDE. It worked good, but still lacked a lot of features which a good IDE would have (like code folding, symbols browser etc). Lately, I saw a blog post with a mention of few new IDEs around which are as light wieght as G-Edit. That is when i first heard of Geany.

Geany is a lightweight but surprisingly powerful GTK-based IDE. I am totaly sold over it and it has become my default IDE in just 2 hours of playing around. Works beautifully with Python, Django, HTML, JS, CSS and FreeSWITCH C source files. Thats all i need for my coding. But Im sure it plays well with other languages too. It has advanced features of an IDE and remains very light weight.

Read the rest of this post »

Setup Mercurial GUI Client on Ubuntu 10.10

Recently Bitbucket  introduced new plans, which allows unlimited private repositories for startups (Less than 5 contributors). This works really well for me, when I decide to use a dvcs and want to avoid the Github paid plans for private repo hosting.

 

Command line is nice, but somehow, I still prefer a GUI client to see my diffs, as its more productive for me. So Lets get started..

(All the commands are for the terminal/shell)

Read the rest of this post »

Replace OpenJDK with Oracle-SunJDK on Ubuntu 10.10

By default Ubuntu 10.10 (32-bit) installs OpenJDK for JRE, JDK. Since OpenJDK tries to replace the properietry pieces of Sun-JDK, this is a nice project, however, there is still time before it grasps all the specs and works flawlessly.

Before we begin, type: java -version, at the command prompt, and you will see that the version is a Open-JDK version.

 

To Replace Sun-JDK with Open-JDK follow the setps below:

Read the rest of this post »