<?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>Borgar.net &#187; code</title>
	<atom:link href="http://borgar.net/tagged/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://borgar.net</link>
	<description>All the wisdom of the rainbow.</description>
	<lastBuildDate>Tue, 23 Mar 2010 23:12:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-RC1-15022</generator>
		<item>
		<title>CSS :target</title>
		<link>http://borgar.net/s/2009/08/css-target/</link>
		<comments>http://borgar.net/s/2009/08/css-target/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 23:24:23 +0000</pubDate>
		<dc:creator>Borgar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://borgar.net/?p=1455</guid>
		<description><![CDATA[jQuery (or Sizzle) supports :target in browsers where it runs querySelectorAll to handle the work. In older browsers, it doesn&#8217;t offer fallback support. I guess that this is simply because :target is such an uncommon selector? I have no idea why you would want to use it, but because I have this selector extension and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.jquery.com/Selectors">jQuery</a> (or <a href="http://sizzlejs.com/">Sizzle</a>) supports <code>:target</code> in browsers where it runs <a href="http://www.w3.org/TR/selectors-api/">querySelectorAll</a> to handle the work. In older browsers, it doesn&#8217;t offer fallback support. I guess that this is simply because <code>:target</code> is such an uncommon selector?</p>
<p>I have no idea why you would want to use it, but because I have this selector extension and nowhere to put it, here it is:</p>
<pre><code>jQuery.expr[':'].target = function ( a, h ) {
  return (a.id &#038;&#038; (h = document.location.hash) &#038;&#038; h === '#' + a.id)
};</pre>
<p></code></p>
<p>Updated 6. aug. 2009: <a href="http://twitter.com/maranomynet/status/3156396467">Optimized by @maranomynet</a></p>]]></content:encoded>
			<wfw:commentRss>http://borgar.net/s/2009/08/css-target/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON for old PHP installations</title>
		<link>http://borgar.net/s/2008/06/simplejson/</link>
		<comments>http://borgar.net/s/2008/06/simplejson/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 14:30:07 +0000</pubDate>
		<dc:creator>Borgar</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://borgar.undraland.com/?p=1014</guid>
		<description><![CDATA[I use PHP a lot. Mostly to work with existing products, or to create mockups of things that will get replaced with something else later. The great thing about PHP is that it is present in some form on nearly all servers. If you&#8217;re careful to avoid version 5 features then you can pretty much [...]]]></description>
			<content:encoded><![CDATA[<p>I use <acronym title="Hypertext PreProcessing">PHP</acronym> a lot. Mostly to work with <a href="http://wordpress.org/" title="WordPress">existing products</a>, or to create mockups of things that will get replaced with something else later.</p>
<p>The great thing about <acronym title="Hypertext PreProcessing">PHP</acronym> is that it is present in some form on nearly all servers. If you&#8217;re careful to avoid version 5 features then you can pretty much expect your code to run wherever.</p>
<p>For a recent prototype I needed <a href="http://www.json.org/">JSON</a> (which wasn&#8217;t introduced to <acronym title="Hypertext PreProcessing">PHP</acronym> until version 5) on a 4.3 system. Being a relentless do-it-yourself&#8217;er I have written a tiny JSON functionality &#8220;library&#8221; for older versions of <acronym title="Hypertext PreProcessing">PHP</acronym>.</p>
<p>It&#8217;s about 5k of mostly comments. Available under MIT licence from <a href="http://code.google.com/p/simplejson-php/" title="Simple JSON for PHP">Google code</a>. Have fun.</p>]]></content:encoded>
			<wfw:commentRss>http://borgar.net/s/2008/06/simplejson/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
