<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tudor Barbu&#039;s professional blog &#187; bugs</title>
	<atom:link href="http://blog.motane.lu/tag/bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.motane.lu</link>
	<description>Ramblings about software development</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:38:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The &#8220;August&#8221; error</title>
		<link>http://blog.motane.lu/2009/09/17/the-august-error/</link>
		<comments>http://blog.motane.lu/2009/09/17/the-august-error/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 20:34:44 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fun stuff]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=1018</guid>
		<description><![CDATA[I&#8217;ve just came back from Wurbe, where I&#8217;ve enjoyed a late evening snack (consisting of beer, Pepsi and pizza) and chated with other fellow developers on a large range of subjects, raging from current trends in development to Klingon grammar. Bodgan Lucaciu told us a funny story about a strange bug. It&#8217;s like this: in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just came back from <a href="http://wurbe.ro/" title="Wurbe's website - romanian" class="outgoing">Wurbe</a>, where I&#8217;ve enjoyed a late evening snack (consisting of beer, Pepsi and pizza) and chated with other fellow developers on a large range of subjects, raging from current trends in development to <a href="http://en.wikipedia.org/wiki/Klingon_language" title="Klingon Language article in Wikipedia" class="outgoing">Klingon grammar</a>.</p>
<p><a href="http://www.wiz.ro/" title="Bodgan Lucaciu's blog" class="outgoing">Bodgan Lucaciu</a> told us a funny story about a strange bug. It&#8217;s like this: in Javascript, when you parse a number from a string &#8211; let&#8217;s say a month&#8217;s index like 07 &#8211; with <strong><em>parseInt </em></strong> you must be very careful,  because, for <strong><em>parseInt</em></strong>, the leading 0 is an indicator that the number is written in octal instead of decimal. </p>
<pre class="brush: jscript; title: ; notranslate">
alert(parseInt('07')); // for July - will echo 7
alert(parseInt('08')); // for August - will echo 0 as there is no 08 in octal
</pre>
<p>So if your application mysteriously stops working on the first of August, this might be your problem. Although this &#8220;feature&#8221; is marked as deprecated, it&#8217;s still present in many modern browsers, so one can never be too careful. Also keep in mind that by default, numbers starting with <strong><em>0x</em></strong> are considered to be hexadecimals.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.motane.lu/2009/09/17/the-august-error/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

