Plugin conflict! If you have both Ultisnips and NeoComplete then you cannot use the same key for expansion. I used to have tab mapped out to both for completion with AutoComplPop and Ultisnips. I had tab set for g:UltiSnipsJumpForwardTrigger but NeoComplete still doesn’t like it. So now, that’s changed to Control + Tab and things are good again. let g:UltiSnipsExpandTrigger="<C-CR>" let g:UltiSnipsJumpForwardTrigger="<C-tab>" let g:UltiSnipsJumpBackwardTrigger="<s-tab>" Only wish one NeoComplete OR Ultisnips makers see this and make it work without conflict

Read more →

Programming in Python So I’ve mostly used python for one off scripts and tools and at one point for a serious foray into Django - but never came into a situation where I’d thought of publishing anything. Hmm - crossed that bridge over this weekend - and its been a fun journey. I’m writing this post with what I wrote :) Things I’ve picked up Code Better understanding into Python modules, classes and code organization for libraries.

Read more →

The problem I have a TP-Link WN722N USB Wifi dongle. Linux Mint picked it up during install and seemed like all was good. Then the other day, noticed that sometimes WiFi would be flaky like hell - all I’d get is the password prompt. Turns out that this is a common problem with USB Wifi. After a few days, the pattern appeared to be a recurring problem after putting the computer sleep.

Read more →

Moving from wordpress So I moved my blog from its old home at http://niftybits.wordpress.com to I’ve also moved out of wordpress.com to blogger. For quite some time, I’ve not been happy with Wordpress’s abilities for a tech blog. It’s a commercial endeavour and so if you need additional features/tweakability you’ve got to fork out the good stuff. Anyway, I was intending to get my own domain and wordpress hosting that would give me full control over the blog engine and the ability to install any addons that I wanted.

Read more →

Additional fixes post installation SSH connection refused So today I tried ssh’ing into the desktop and no go. I was getting a connection refused and thought it had to do with either SSH not being installed or being blocked by the firewall. Later on when I checked, OpenSSH server was installed and the service was also running sudo service status ssh ssh start/running, process 2709 Hmm - this is weird.

Read more →

In my last post on unit testing, I had written about a technique I’d learnt forhttp://niftybits.wordpress.com/2013/08/14/unit-tests-simplifying-test-setup-with-builders/[simplifying test set ups with the builder pattern.] It provides a higher level, more readable API resulting in DAMP tests. Implementing it though presented a few interesting issues that were fun to solve and hopefully, instructive as well. I for one will need to look it up if I spend a few months doing something else - so got to write it down :).

Read more →

Had some fun at work today. The web portal to Scheduler service is written in ASP.NET MVC4. As such we have a lot of controllers and of course there are unit tests that run on the controllers. Now, while ASP.NET MVC4 apparently did have testability as a goal, it still requires quite a lot of orchestration to test controllers. Now all this orchestration and mock setups only muddies the waters and gets in the way test readability.

Read more →

Well not really - but I have your attention now…​ So in my last post, I talked about moving my home computer from Win 7 to Linux Mint KDE. That went ok for the most part other than some minor issues. Fast-forward a day and I hit my first user issue :)…​ wife’s workplace has some video content that is distributed as DRM protected swf files that wil play only through a player called HaiHaiSoft player!

Read more →

So after suffering tons of crashes (likely due to AMD drivers) and general system lagginess, I finally decided to ditch windows and move to linux full time. This is on my home desktop which is more a family computer than something that only I would use. I was a little apprehensive with driver support as usual and tricky stuff like suspend to ram (s3) which always seems highly driver dependent and problematic on Linux (it is still a pain on my XBMCBuntu box).

Read more →

So I was looking at this vim tip for finding in files from within Vim - while it looks helpful, there are a number of possible improvements: Why a static binding? being able to tweak the patterns or the files to search is quite common - so much more value if you could have the command printed in the command line, ready to be edited to your heart’s content or just go ahead and execute the search with Enter.

Read more →