<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="WordPress/2.8.4" --><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="0.92">
<channel>
	<title>magnetiq.com</title>
	<link>http://magnetiq.com</link>
	<description>Ates Goral's Personal Playground and Project Repository</description>
	<lastBuildDate>Thu, 23 Jul 2009 04:10:18 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/magnetiq_rss092" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>When semicolons are NOT optional in JavaScript</title>
		<description><![CDATA[An inadvertently skipped semicolon recently left me scratching my head over a runtime error. The code looked something like this:

// Add a new function to an existing namespace
some.namespace.doSomething = function () {
    // ...
}

// Define more functions inside a closure to hide some helpers
(function () {
    // ...
})();

This was [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/2eW6DSwFxkU/</link>
			<feedburner:origLink>http://magnetiq.com/2009/07/22/when-semicolons-are-not-optional-in-javascript/</feedburner:origLink></item>
	<item>
		<title>Parsing query string parameters into a collection</title>
		<description><![CDATA[A little something about the classic problem of parsing out the query parameters from a URL&#8230; There are a lot of implementations out there. Some completely lack URL-decoding, some are way too long and some are inefficient utility functions that grab values one by one. Here&#8217;s what I&#8217;ve been using in my own projects. I [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/ufGxR33CQfo/</link>
			<feedburner:origLink>http://magnetiq.com/2009/07/08/parsing-query-string-parameters-into-a-collection/</feedburner:origLink></item>
	<item>
		<title>Turkish letter escape bookmarklet for dotSUB</title>
		<description><![CDATA[I&#8217;ve created a bookmarklet to temporarily solve a very specific problem at hand: I&#8217;m translating a TED video into Turkish, but I don&#8217;t currently have a Turkish keyboard hooked up to my computer (it&#8217;s in a box somewhere in the basement).
TED uses dotSUB for video translation. Peeking at the HTML source of dotSUB&#8217;s translation interface, [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/iK3wI2nF5no/</link>
			<feedburner:origLink>http://magnetiq.com/2009/06/25/turkish-lette-escape-bookmarklet-for-dotsub/</feedburner:origLink></item>
	<item>
		<title>Creating Todoist items with voice using reQall</title>
		<description><![CDATA[Todoist is an awesome, minimalistic task management service. The voice-to-web service reQall, which is a free alternative to Jott, also does a fairly good job at task management. However, I wanted to stick to Todoist and bring voice input capabilities to it. I used reQall&#8217;s e-mail forwarding along with Todoist&#8217;s HTTP API and my awesome [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/rE2Hes9VjsY/</link>
			<feedburner:origLink>http://magnetiq.com/2009/06/02/creating-todoist-items-with-voice-using-reqall/</feedburner:origLink></item>
	<item>
		<title>A quick and dirty XML generator in JavaScript</title>
		<description><![CDATA[Here&#8217;s a quick XML generator (pure-string, no DOM involved) that I originally wrote for converting a jsUnity test result into JSUnit format, but which can serve a more general purpose. Without even bothering to write a new class, I simply extend an Array instance with a few helpers:

Note: I simply did this because using one [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/zQ_zoF_cL18/</link>
			<feedburner:origLink>http://magnetiq.com/2009/06/02/a-quick-and-dirty-xml-generator-in-javascript/</feedburner:origLink></item>
	<item>
		<title>JavaScript function definition inside a with() block: Firefox is the oddball</title>
		<description><![CDATA[I came across yet another browser discrepancy with a rather obscure scenario: A function declaration within a with block:

var obj = { a: 1 };

with (obj) {
    function foo() {
        return typeof a;
    }
}

alert(foo()); // alerts "number" on Firefox, "undefined" on others

This [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/xjSgw4NO9iQ/</link>
			<feedburner:origLink>http://magnetiq.com/2009/02/14/function-definition-inside-with/</feedburner:origLink></item>
	<item>
		<title>Browser discrepancies when calling toString() on a JavaScript function with comments</title>
		<description><![CDATA[I&#8217;ve been working on extracting some text out of a given JavaScript function when I realized that toString() may return parts of the original comments, depending on the browser. I&#8217;ve done a quick test to capture the behaviour of popular browsers. Here&#8217;s my test script:

function/*post-keyword*/fn/*post-name*/()/*post-parens*/{
    /*inside*/
}

document.write(fn.toString());

And here are the results I got [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/M8epkE0UdGs/</link>
			<feedburner:origLink>http://magnetiq.com/2009/02/06/tostring-on-function-with-comments/</feedburner:origLink></item>
	<item>
		<title>browsersize.com updates</title>
		<description><![CDATA[Last night I touched some code that hadn&#8217;t been touched for years. I refactored the plug-in detection code at whatsmy.browsersize.com and added detection for the Microsoft Silverlight plug-in. I also added bookmarklet support for setmy.browsersize.com and brought back to life a feature that had been broken long ago: specifying arbitrary URLs in the form http://setmy.browsersize.com/1024x768 [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/Bl1PX8TcaaI/</link>
			<feedburner:origLink>http://magnetiq.com/2008/12/22/browsersizecom-updates/</feedburner:origLink></item>
	<item>
		<title>Automatic Table of Contents Generation</title>
		<description><![CDATA[Here&#8217;s a JavaScript snipplet for automatically generating a table of contents based on headings in a document. It will traverse all &#60;h1&#62;, &#60;h2&#62;, &#60;h3&#62;, etc. elements, add anchors (&#60;a&#62;) to them and generate nested unordered lists (&#60;ul&#62;, &#60;li&#62;) with links to the now anchored headings. The nesting honors the hierarchy of the headings.
For example, for [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/choBQ9hS7VI/</link>
			<feedburner:origLink>http://magnetiq.com/2008/10/19/automatic-table-of-contents-generation/</feedburner:origLink></item>
	<item>
		<title>Timing Code Accurately</title>
		<description><![CDATA[The most common approach to time a function or a segment of code is to repeat it a lot of times in a loop, measure the time the entire loop takes and then divide that number with the number of iterations. Illustrating this with JavaScript (although this method applies to all languages):

var start = new [...]]]></description>
		<link>http://feedproxy.google.com/~r/magnetiq_rss092/~3/fDE-0iXibto/</link>
			<feedburner:origLink>http://magnetiq.com/2008/10/19/timing-code-accurately/</feedburner:origLink></item>
</channel>
</rss>
