<?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>Learning is bateru &#187; Javascript</title>
	<atom:link href="http://bateru.com/news/reviews/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://bateru.com/news</link>
	<description>Writing software and articles to help improve understanding. - Larry Battle</description>
	<lastBuildDate>Sun, 29 Jan 2012 06:12:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Code of the Day: Sentence Scrambler</title>
		<link>http://bateru.com/news/2012/01/code-of-the-day-sentence-scrambler/</link>
		<comments>http://bateru.com/news/2012/01/code-of-the-day-sentence-scrambler/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 06:59:30 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[code of the day]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=889</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2012/01/code-of-the-day-sentence-scrambler/" title="Code of the Day: Sentence Scrambler"></a>Task: There was a study going out a few years ago that said people can read words that are scrambled if the first and last character are left in place. So to help me practice Test Driven Development, I decided &#8230;<p class="read-more"><a href="http://bateru.com/news/2012/01/code-of-the-day-sentence-scrambler/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2012/01/code-of-the-day-sentence-scrambler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improved Code for Javascript Decimal to Fraction</title>
		<link>http://bateru.com/news/2011/11/improved-code-for-javascript-decimal-to-fraction/</link>
		<comments>http://bateru.com/news/2011/11/improved-code-for-javascript-decimal-to-fraction/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 03:53:23 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code of the day]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=778</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/11/improved-code-for-javascript-decimal-to-fraction/" title="Improved Code for Javascript Decimal to Fraction"></a>This post improves the code at &#8220;Code of the Day Javascript Decimal to fraction&#8221; by using Euclid&#8217;s Algorithm to find the Great Common Factor or GCF, aka GCD. This method provides a speed up of 10x when compared to the &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/11/improved-code-for-javascript-decimal-to-fraction/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/11/improved-code-for-javascript-decimal-to-fraction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code of the Day: Javascript Decimal To Fraction</title>
		<link>http://bateru.com/news/2011/11/code-of-the-day-javascript-decimal-to-fraction/</link>
		<comments>http://bateru.com/news/2011/11/code-of-the-day-javascript-decimal-to-fraction/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 00:40:34 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code of the day]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=754</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/11/code-of-the-day-javascript-decimal-to-fraction/" title="Code of the Day: Javascript Decimal To Fraction"></a>Source: mivk from StackOverflow.com Code /** @function dec2frac @returns string @purpose Convert a decimal to a fraction */ function dec2frac&#40;d&#41; &#123; var df = 1, top = 1, bot = 1; var limit = 1e5; //Increase the limit to get &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/11/code-of-the-day-javascript-decimal-to-fraction/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/11/code-of-the-day-javascript-decimal-to-fraction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code of the day: Javascript convert bytes to KB, MB, GB, etc</title>
		<link>http://bateru.com/news/2011/08/code-of-the-day-javascript-convert-bytes-to-kb-mb-gb-etc/</link>
		<comments>http://bateru.com/news/2011/08/code-of-the-day-javascript-convert-bytes-to-kb-mb-gb-etc/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 22:58:46 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code of the day]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=711</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/08/code-of-the-day-javascript-convert-bytes-to-kb-mb-gb-etc/" title="Code of the day: Javascript convert bytes to KB, MB, GB, etc"></a>/** * @function: getBytesWithUnit() * @purpose: Converts bytes to the most simplified unit. * @param: (number) bytes, the amount of bytes * @returns: (string) */ var getBytesWithUnit = function&#40; bytes &#41;&#123; if&#40; isNaN&#40; bytes &#41; &#41;&#123; return; &#125; var units &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/08/code-of-the-day-javascript-convert-bytes-to-kb-mb-gb-etc/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/08/code-of-the-day-javascript-convert-bytes-to-kb-mb-gb-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code of the day: Check to see if a element has a event.</title>
		<link>http://bateru.com/news/2011/08/code-of-the-day-check-to-see-if-a-element-has-a-event/</link>
		<comments>http://bateru.com/news/2011/08/code-of-the-day-check-to-see-if-a-element-has-a-event/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 05:31:26 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code of the day]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=693</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/08/code-of-the-day-check-to-see-if-a-element-has-a-event/" title="Code of the day: Check to see if a element has a event."></a>// hasEvent checks to see if a element contains a event. // @requires jQuery 1.3.2+ // @params el: string, jQuery object, node element. // @params eventName: string, name of the event. // @returns boolean var hasEvent = function&#40; el, eventName &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/08/code-of-the-day-check-to-see-if-a-element-has-a-event/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/08/code-of-the-day-check-to-see-if-a-element-has-a-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuizMe Example: Simple Math Quiz</title>
		<link>http://bateru.com/news/2011/05/jquizme-example-simple-math-quiz/</link>
		<comments>http://bateru.com/news/2011/05/jquizme-example-simple-math-quiz/#comments</comments>
		<pubDate>Wed, 04 May 2011 04:28:10 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[questions and answers]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to use]]></category>
		<category><![CDATA[jquizme]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=604</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/05/jquizme-example-simple-math-quiz/" title="jQuizMe Example: Simple Math Quiz"></a>Here&#8217;s an example of jQuizMe. Goal: Make a quiz for Addition, Subtraction and Multiplication for two digit numbers. Steps: Make a random number generator. Make a function to form a question and answers. Form the quiz. Call jQuizMe Step 1: &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/05/jquizme-example-simple-math-quiz/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/05/jquizme-example-simple-math-quiz/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Code of the Day: Javascript Fibonacci Numbers the fast way</title>
		<link>http://bateru.com/news/2011/04/code-of-the-day-javascript-fibonacci-numbers/</link>
		<comments>http://bateru.com/news/2011/04/code-of-the-day-javascript-fibonacci-numbers/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 04:51:07 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=583</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/04/code-of-the-day-javascript-fibonacci-numbers/" title="Code of the Day: Javascript Fibonacci Numbers the fast way"></a>1 2 3 4 5 6 7 8 //Programmer: Larry Battle //Date: April 18, 2011 //Purpose: Get Fibonacci numbers in O(1) time. var getFibonacciNum = function&#40; n &#41;&#123; var s5 = Math.sqrt&#40;5&#41;; var phi1 = &#40;1+s5&#41;/2, phi2 = &#40;1-s5&#41;/2; return &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/04/code-of-the-day-javascript-fibonacci-numbers/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/04/code-of-the-day-javascript-fibonacci-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code of the Day: Javascript Significant Figures</title>
		<link>http://bateru.com/news/2011/04/code-of-the-day-javascript-significant-figures/</link>
		<comments>http://bateru.com/news/2011/04/code-of-the-day-javascript-significant-figures/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 04:59:18 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=553</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/04/code-of-the-day-javascript-significant-figures/" title="Code of the Day: Javascript Significant Figures "></a>Did you know that JavaScript automatically trims off trailing zeros on numbers with decimals? Well now you do, and in order to save precision you must wrap the number inside a string. Example: 1 2 3 4 5 6 var &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/04/code-of-the-day-javascript-significant-figures/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/04/code-of-the-day-javascript-significant-figures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code of the Day: Javascript Detect Internet Explorer</title>
		<link>http://bateru.com/news/2011/04/code-of-the-day-javascript-detect-internet-explorer/</link>
		<comments>http://bateru.com/news/2011/04/code-of-the-day-javascript-detect-internet-explorer/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 08:14:50 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=549</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/04/code-of-the-day-javascript-detect-internet-explorer/" title="Code of the Day: Javascript Detect Internet Explorer"></a>How many hours have you spent wasted on getting your site to run or display properly on Internet Explorer? Do you want to cheat and use browser stiffing instead of feature detection? 1 2 // isIE is your key to &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/04/code-of-the-day-javascript-detect-internet-explorer/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/04/code-of-the-day-javascript-detect-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieve Facebook password using javascript buffer overload attack.</title>
		<link>http://bateru.com/news/2011/04/retrieve-facebook-password-using-javascript-buffer-overload-attack/</link>
		<comments>http://bateru.com/news/2011/04/retrieve-facebook-password-using-javascript-buffer-overload-attack/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 20:20:45 +0000</pubDate>
		<dc:creator>Larry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[amazing]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://bateru.com/news/?p=527</guid>
		<description><![CDATA[<a href="http://bateru.com/news/2011/04/retrieve-facebook-password-using-javascript-buffer-overload-attack/" title="Retrieve Facebook password using javascript buffer overload attack."></a>Hey Everyone, I found a problem with the way most browsers handle the document.cookie global variable. If too many invalid characters are created, then this causes a buffer overload and allows all tab index to manually placed. So if you &#8230;<p class="read-more"><a href="http://bateru.com/news/2011/04/retrieve-facebook-password-using-javascript-buffer-overload-attack/">Read more &#187;</a></p>]]></description>
		<wfw:commentRss>http://bateru.com/news/2011/04/retrieve-facebook-password-using-javascript-buffer-overload-attack/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

