Vim and python 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?
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.
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
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
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 ...