<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="WordPress/2.6.2" --><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>Wed, 15 Oct 2008 04:15: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" /><item>
		<title>Rounding to a Certain Significant Figures in JavaScript</title>
		<description><![CDATA[A recent question at stackoverflow.com prompted me to take a stab at implementing a function for rounding a given decimal number to a given number of significant figures (or digits).

function sigFigs(n, sig) {
    var mult = Math.pow(10,
        sig - Math.floor(Math.log(n) / Math.LN10) - 1);
  [...]]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/421196902/</link>
			<feedburner:origLink>http://magnetiq.com/2008/10/14/rounding-to-a-certain-significant-figures-in-javascript/</feedburner:origLink></item>
	<item>
		<title>Repeating or Padding Strings in JavaScript</title>
		<description><![CDATA[Here&#8217;s a nice trick for repeat a string a given number of times. Let&#8217;s say you want to create string with the characters &#8220;ABC&#8221; repeated 5 times. The most straightforward approach that you could use is to set up a for loop to append &#8220;ABC&#8221; to a string 5 times:

var s = "";
for (var i [...]]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/419203482/</link>
			<feedburner:origLink>http://magnetiq.com/2008/10/13/repeating-or-padding-strings-in-javascript/</feedburner:origLink></item>
	<item>
		<title>JavaScript Date Formatting - An Unorthodox Way</title>
		<description><![CDATA[Most date formatting implementations use format strings where format specifiers like &#8220;mm&#8221;, &#8220;mmm&#8221;, &#8220;HH&#8221;, etc. are used for selecting different components of a date. Here&#8217;s a different approach that allows you to use more human-readable format specifiers (while being rather verbose).

Date.prototype.format = function (fmt) {
	var date = this;

	return fmt.replace(
		/\{([^}:]+)(?::(\d+))?\}/g,
		function (s, comp, pad) {
			var fn = [...]]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/381667477/</link>
			<feedburner:origLink>http://magnetiq.com/2008/09/02/javascript-date-formatting-an-unorthodox-way/</feedburner:origLink></item>
	<item>
		<title>Subpixel Scrolltext in JavaScript</title>
		<description><![CDATA[After having it in my to-do list (the &#8220;what if?&#8221; section) for a long time, I&#8217;ve finally managed to spend some time on a JavaScript implementation of a very tiny scrolltext; using a 5&#215;5 font with subpixel rendering (aka ClearType). Knowing what subpixel-rendered static letters look like on an LCD, I wanted to see the [...]]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/357074596/</link>
			<feedburner:origLink>http://magnetiq.com/2008/08/05/subpixel-scrolltext-in-javascript/</feedburner:origLink></item>
	<item>
		<title>Adobe (Photoshop) Color Book Specification in HTML Format</title>
		<description><![CDATA[I finally sat down and created a friendlier, HTML version of the <a href="/2006/04/18/the-unofficial-photoshop-color-book-file-format-specification/">Unofficial Adobe Color Book Specification</a> by updating the original post. This obsoletes the <a href="/docs/PhotoshopColorBook.txt">80-column plain-text version</a> that I wrote up in 2003.]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/315647068/</link>
			<feedburner:origLink>http://magnetiq.com/2008/06/18/adobe-photoshop-color-book-specification-in-html-format/</feedburner:origLink></item>
	<item>
		<title>A Boulder Dash Clone in Only 20 Lines of JavaScript</title>
		<description><![CDATA[This was my very first entry for the quasi-regular, friendly <a href="http://ozoneasylum.com/29836">20-line JavaScript competition</a> over at <a href="http://ozoneasylum.com/">OZONE Asylum</a>, for the month of January 2008.]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/315647069/</link>
			<feedburner:origLink>http://magnetiq.com/2008/06/18/a-boulder-dash-clone-in-only-20-lines-of-javascript/</feedburner:origLink></item>
	<item>
		<title>Generating “Unified Diff” Files with ClearCase</title>
		<description><![CDATA[In my company, we recently migrated from <a href="http://en.wikipedia.org/wiki/Concurrent_Versions_System">CVS</a> to <a href="http://en.wikipedia.org/wiki/Clearcase">ClearCase</a>. We were a bit thrown off by the fact that ClearCase doesn't readily provide <a href="http://en.wikipedia.org/wiki/Diff">diff</a> files that span multiple files. We have all been used to reviewing CVS diff files which do so. People here had to come up with their own scripts to remedy this issue.]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/154309935/</link>
			<feedburner:origLink>http://magnetiq.com/2007/09/07/generating-unified-diff-files-with-clearcase/</feedburner:origLink></item>
	<item>
		<title>ACB2XML 2.0b - Export Adobe Color Book Data as XML</title>
		<description><![CDATA[Here's a freeware tool that I had written back in 2003, shortly after reverse-engineering the <a href="/2006/04/18/the-unofficial-photoshop-color-book-file-format-specification/">Adobe Color Book Format</a>. This command-line Windows application extracts color data from color book files and generates XML.]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/115234538/</link>
			<feedburner:origLink>http://magnetiq.com/2007/05/08/acb2xml/</feedburner:origLink></item>
	<item>
		<title>Burrito 1.0b - FTP to POP3 Protocol Translator</title>
		<description><![CDATA[With Burrito you can read and manage your e-mails with any FTP client! It acts as a POP3/FTP protocol translator -- it's actually an FTP server that translates FTP commands to POP3 commands and serves your e-mail messages as individual files. You can view, delete and copy your e-mail messages as if they were files on an FTP server.]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/114698048/</link>
			<feedburner:origLink>http://magnetiq.com/2007/05/07/burito-10b-ftp-to-pop3-protocol-translator/</feedburner:origLink></item>
	<item>
		<title>Verifying the Integrity of an Easynews Download without a Checksum File</title>
		<description><![CDATA[Suppose you had to download a huge file from <a href="http://easynews.com/">Easynews</a> as a single piece because a multiple archive version wasn't available. Here's a method I came up with for verifying the integrity of an ISO image file that didn't come with a checksum.]]></description>
		<link>http://feeds.feedburner.com/~r/magnetiq_rss092/~3/87426718/</link>
			<feedburner:origLink>http://magnetiq.com/2007/02/06/verifying-the-integrity-of-an-easynews-download-without-a-checksum-file/</feedburner:origLink></item>
</channel>
</rss>
