Category Archives: Programming

Remove remote branch info locally from git

You use git for version control. You got a new feature to write. You do the work and push your work into a new feature branch. Open a PR for your work either on bitbucket or github or anything else. … Continue reading

Posted in Programming | Leave a comment

Selenium WebDriver and starting Safari in a clean session state

I first used selenium on a java project a while back and selenium has grown by leaps and bounds. With continued support and a myriad of bindings, it’s a tool to go to for automated testing. However, it does sometimes … Continue reading

Posted in Programming | Leave a comment

Responsive is the flavour of the month

You don’t have mobile and desktop anymore. You have devices! Small devices equates to mobile, medium ones to tablets, large to desktops and extra large to retinas. I understand the whole responsive thing to an extent but in order to … Continue reading

Posted in Programming | Tagged | Leave a comment

Convert SVG to PNG on Mac OS X

Android’s WebView is very primitive in terms of rendering SVG images as the background. I decided to convert them into PNGs and test their rendering. I don’t have photoshop, and I could have used ImageMagick to convert SVGs to PNGs, … Continue reading

Posted in Programming, Tech | Leave a comment

Test Google Places API locally

Yesterday I had a chance to try out Google Places API. Quite detailed as you’d expect from Google. But, before integrating it with the code you really want to try it out. When I say try it out, I mean … Continue reading

Posted in Programming | Leave a comment

CSS issues in Android WebView prior to 4.4(kitkat)

Should you venture into developing a hybrid app for Android WebView in versions before 4.4? NO. Unless you liked fixing bugs for IE6 when you knew that IE8 or IE9 were a bit better and people should just upgrade their … Continue reading

Posted in Programming | Tagged | Leave a comment

With koudoku, integrating Stripe payments in Rails is a doddle

Most, if not all, SASS applications need some sort of payment integration to charge customers for subscriptions and repeatedly do it every month (or year or any time interval). if you are looking for one such payment-subscription solution, then Stripe … Continue reading

Posted in Programming | Tagged , , | 3 Comments

Writing a Cordova plugin for iOS

There are a tons of articles out there to help you in writing a plugin. Cordova’s documentation is detailed and very helpful too, but it’s easy for you to get buried under the documentation and go right past the nifty … Continue reading

Posted in Programming | Tagged , , | Leave a comment

cucumber-js, appium, WebDriverJs and Javascript Promises

I have mixed feelings for Appium. At times, it works beautifully, and then suddenly falls flat on it’s face, leaving you frustrated. Nevertheless, once you know how it’s wired up with other related tech, you feel comfortable and willing to … Continue reading

Posted in Programming | Tagged , | Leave a comment

Grep, Sed and Grasp: Replace strings in files

This week, I was refactoring some of the Javascript code, which involved renaming files, and then amending the code that was requiring those files. The project uses requirejs, so the filename is kinda pivotal. I had read about Grasp and … Continue reading

Posted in Programming | Leave a comment