When Double.TryParse fails in international sites.

Today I had a very bizarre bug in which latitudes and longitudes that needed to be parsed from string to double was failing. The code was simple:

double checklat;
bool isValidLat = Double.TryParse(currentLocation.latitude, out checklat);
if(isValidLat) {
     //do something
View Post

Writing a task based Gulp plugin

Gulp is such an amazing workflow tool, it can automate aspects of the most complex workflows so you can focus more on programming your project and less on managing it. It called “The streaming build system” by its developers. Is has similar capabilities as Grunt, however, for anyone who uses Grunt currently, I strongly suggest looking into making the switch. But that is another discussion.

Gulp is written using the node.js framework and its managed by the powerful node package manager (npm). For those who are not familiar with node.js, in a nutshell I like to think of it as server side, real time, javascript. Although that description alone is not enough to fully quantify all that its capable of.

What this means is when your developing your Gulp-based work flow, you have not just the thousands of Gulp plugins available, but you can also leverage the power of the thousands of plugins available for node.js through npm.

View Post