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 ...

Good bye python-mode

May 9, 2015, 12:15 p.m. vim , python , pydev

Having recently decided to use vim for all python work I struggled with a nasty bug for nearly two hours and still couldn't figure it out. Then I started up eclipse/pydev, ran it through the debugger and had it fixed in 3 minutes (including eclipse start up time). Ok, maybe it's because I ha ...

Postgresql streaming replication

May 8, 2015, 5:48 a.m. postgresql , streaming , replication , repmgr , roadlk

On Monday road.lk was offline for nearly an hour. It was due to the primary database server crashing, no data was lost but the automatic failover hadn't kicked into action automatically. For nearly two years road.lk operated with just log shipping WAL archives. We took a pg_basebackup about once ...

Taking on side on the vim vs emacs debate

May 4, 2015, 6:30 a.m. python , vim , emacs

I have been on linux full time for more than 15 years now and never took part in a vim vs emacs battle. Life is incomplete!! — raditha dissanayake (@e4c5) April 23, 2015 it started with a casual comment on twitter. Then at Gaveen's suggestion I decided to finally take a side. After usin ...