raditha.com, The Site With The LAMP is dedicated to Linux, Apache, Mysql and Python (formerly PHP). It's the work of Raditha Dissanayake, who has an affinity for these technologies as well as several other non redmond technologies such as Java
These photos are from my infrequently updated photo blog

Vim and python debug

May 19, 2015, 12:30 a.m. vim , python , django , debug

Vebugger This is the first VIM based connection that I managed setup. Vebugger will stop at break points and I can use it's commands to inspect variables but it's somewhat tedious because it doesn't have an interactive shell like pdb does. For python debug what this actually does is ...

Which PostGIS function to use?

May 16, 2015, 4:11 a.m. postgis , python , road.lk

Which PostGIS function or operator do you use if you wanted to find the overlap between different lines? There are several candidates with ~, && , ST_Overlaps and and ST_Intersect being amongst the most prominent. They all do the job in different way and take different amounts of time a ...

Configure the vim plugins and other stuff.

May 13, 2015, 5:15 a.m. vim , plugins

Right-o now it's time to configure the plugins that were installed the other day. Let's start with minibufexpl they haven't made any key mappings so if you want to use it you need to keep typing in long commands or you need to create a map in your .vimrc file. Before doing that you ...

Vim Autocomplete for Django

May 11, 2015, 12:12 p.m. vim , python , django

How do you auto import requiements in vim? Apparently rope has that feature but having already given up on rope in favour of jedi, I decided to swim with the tide and see what other options are available. Vimpy seems the most likely but it wasn't so easy Error detected while processing /home/rad ...