Nikola

Recent Blog Comments By Nikola

I wanted to truncate decimal zeros where 20.123000 would be 20.123. So, I wrote a small function to loop over the reversed string and keep removing zeros... Then I realized I could have just done numberWithoutTrailingZeros = numberWithTrailingZeros * 1; Damn!... read more »

Christoph's suggesing did not work for me. I had to use SET NO COUNT ON: <cfquery name="qry" datasource="#myDSN"> SET NOCOUNT ON INSERT INTO myTable (myField) SELECT yourField FROM yourTable WHERE ID < 5 SET NOCOUNT OFF SELECT @@rowcount as numOfRecs </cfquery> <cfdump var="#... read more »

This regex IS awesome. Off to http://www.regular-expressions.info/lookaround.html to learn more... Apparently -- Ben, please correct me if I'm wrong -- Ben is using a "positive lookahead" to match at least one and at most 120 consecutive characters followed by an "acceptable word boundry". An "... read more »

This post helped a lot. I'm parsing NOOA ATOM and CAP Watches, Warnings, and Advisories feeds. Their times (for cap:effective and cap:expires) are in this format. Finding out what the format was called was the hard part. Once I found that, out your post came up 1st on Google. Thanks!... read more »