<?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>The CodeUnit of Craig</title>
	<atom:link href="http://www.codeunit.co.za/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeunit.co.za</link>
	<description>Software, Code, Technology and Tutorials</description>
	<lastBuildDate>Thu, 11 Mar 2010 07:01:11 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Download a Full Facebook Photo Album in Firefox</title>
		<link>http://www.codeunit.co.za/2010/03/11/download-a-full-facebook-photo-album-in-firefox/</link>
		<comments>http://www.codeunit.co.za/2010/03/11/download-a-full-facebook-photo-album-in-firefox/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 07:01:11 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Software & Websites]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[album]]></category>
		<category><![CDATA[arthur sabintsev]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[downloader]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facepad]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[lazyrussian]]></category>
		<category><![CDATA[photo]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=2076</guid>
		<description><![CDATA[Allows you to download all the photos and images from either a FaceBook friend, event or group's photo album en masse, i.e. all in one foul swoop.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeunit.co.za/wp-content/uploads/2010/02/facepad-logo.png"><img class="alignright size-full wp-image-2077" title="facepad-logo" src="http://www.codeunit.co.za/wp-content/uploads/2010/02/facepad-logo.png" alt="" width="140" height="140" /></a>Yet another cool little Firefox extension, add-on from LazyRussian, Arthur Sabintsev. FacePAD, Facebook Photo Album Downloader is a brilliant little addition to your Firefox arsenal in that it allows you to download all the photos and images from either a Facebook friend, event or group&#8217;s photo album en masse, i.e. all in one fell swoop.</p>
<p>Gone are the days of opening an album, clicking on a photo and downloading each and every image one by one! (Needless to say, you should already be seeing the enormous time saver implications here)</p>
<p>Install FacePAD as you would any normal Firefox add-on/extension and once installed, set the language preference under Options on the Firefox Add-ons page. Now all that is left is to browse to Facebook, find an album you wish to download, right-click and select &#8220;Download with FacePAD&#8221;.</p>
<p>If your default download path in Firefox is set, you&#8217;ll get a javascript prompt to confirm and after clicking yes, all the photos contained in the set will be added to Firefox&#8217;s normal download manager and start downloading.</p>
<p>Couldn&#8217;t be any simpler! :)</p>
<p>Download Link: https://addons.mozilla.org/en-US/firefox/addon/8442</p>
<p>Related Link: http://lazyrussian.com/my-projects/facepad-facebook-photo-album-downloader-2/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/11/download-a-full-facebook-photo-album-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photoshop: Text Tool Keyboard Shortcuts</title>
		<link>http://www.codeunit.co.za/2010/03/10/photoshop-text-tool-keyboard-shortcuts/</link>
		<comments>http://www.codeunit.co.za/2010/03/10/photoshop-text-tool-keyboard-shortcuts/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 07:01:52 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Software & Websites]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[text tool]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=1982</guid>
		<description><![CDATA[In order to speed up your work using Photoshop's powerful but sometimes quite frustrating text tool, here are a couple of handy keyboard shortcuts you might like to remember...]]></description>
			<content:encoded><![CDATA[<p>In order to speed up your work using Photoshop&#8217;s powerful but sometimes quite frustrating text tool, here are a couple of handy keyboard shortcuts you might like to remember:</p>
<ul>
<li>Commit text changes by pressing <strong>CTRL+Enter</strong>. (Pressing Enter on its own will just start a new line obviously!)</li>
<li>With all text selected, you can hide the selection colour with <strong>CTRL+H</strong> to see an accurate preview. Useful when working with colour in particular!</li>
<li><strong>CTRL+Shift+Left or Right</strong> arrow keys selects the whole next or previous word.</li>
<li><strong>CTRL+Shift+&lt; or &gt; </strong>decreases or increases the font-size by 2 points.</li>
<li><strong>CTRL+Shift+ALT+&lt; or &gt; </strong>decreases or increases the font-size by 10 points.</li>
<li><strong>CTRL+ALT+Left or Right</strong> arrow keys increase or decrease letter kerning by 100.</li>
<li><strong>ALT+Left or Right</strong> arrow keys increase or decrease letter kerning by 20.</li>
<li><strong>CTRL+ALT+Up or Down</strong> arrow keys move the text baseline up or down by 10.</li>
<li><strong>ALT+Up or Down</strong> arrow keys move the text baseline up or down by 2.</li>
<li><strong>CTRL+Shift+L, R or C</strong> aligns the paragraph of text left, right or center.</li>
</ul>
<p>Finally, and although not a keyboard shortcut, double clicking on the <strong>T </strong>icon in the layers panel will actually select all text in that layer.</p>
<p>Useful.</p>
<p><a href="http://www.codeunit.co.za/wp-content/uploads/2010/02/photoshop-text-tool.jpg"><img class="aligncenter size-full wp-image-1983" title="photoshop-text-tool" src="http://www.codeunit.co.za/wp-content/uploads/2010/02/photoshop-text-tool.jpg" alt="" width="515" height="445" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/10/photoshop-text-tool-keyboard-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send Highlighted Text and Link via Email Fast!</title>
		<link>http://www.codeunit.co.za/2010/03/09/send-highlighted-text-and-link-via-email-fast/</link>
		<comments>http://www.codeunit.co.za/2010/03/09/send-highlighted-text-and-link-via-email-fast/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 07:01:31 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Software & Websites]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[arthur sabintsev]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email this!]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[highlight text]]></category>
		<category><![CDATA[lazyrussian]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=2069</guid>
		<description><![CDATA[Allows you to right-click on any selected text on any webpage your are currently browsing and then send the highlight text, title plus link to an email recipient]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeunit.co.za/wp-content/uploads/2010/02/email-this-logo.jpg"><img class="alignright size-full wp-image-2070" title="email-this-logo" src="http://www.codeunit.co.za/wp-content/uploads/2010/02/email-this-logo.jpg" alt="" width="150" height="100" /></a>Arthur Sabintsev (aka LazyRussion) brings to us the brilliant little Firefox add-on named <a href="https://addons.mozilla.org/en-US/firefox/addon/3102" target="_blank">Email This!</a> which basically allows you to right-click on any selected text on any webpage your are currently browsing and then send the highlight text, title plus link to an email recipient using GMail, Google Apps GMail, Yahoo or even standalone mail clients like Outlook Express or Thunderbird.</p>
<p>The amount of times I want to send an email to myself containing the exact data I just mentioned above for later reference is a lot, so this little add-on is certainly proving to be one hell of an effort saver! :)</p>
<p>To use, simply install as normal and once installed, set the necessary mailer preferences by clicking on the Options button under the Email This! entry on the add-ons page. Once set up, Email This! now becomes usable via either a toolbar entry or a right-click context menu option.</p>
<p>All that, all that is left is now to browse to a page, highlight a passage of text and click send! Brilliant I tell you! :)</p>
<p>Add to Firefox: https://addons.mozilla.org/en-US/firefox/addon/3102</p>
<p>Related Link: http://lazyrussian.com/my-projects/email-this-firefox-extension/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/09/send-highlighted-text-and-link-via-email-fast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force Your Script to Run Longer than Maximum Execution Time</title>
		<link>http://www.codeunit.co.za/2010/03/08/force-your-script-to-run-longer-than-maximum-execution-time/</link>
		<comments>http://www.codeunit.co.za/2010/03/08/force-your-script-to-run-longer-than-maximum-execution-time/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 07:01:39 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Technology & Code]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[infinite execution]]></category>
		<category><![CDATA[maximum execution time]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[set time limit]]></category>
		<category><![CDATA[timeout]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=2053</guid>
		<description><![CDATA[So how does one go about forcing a script to stay alive infinitely until it eventually finishes its job?]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeunit.co.za/wp-content/uploads/2009/12/analog-clock.jpg"><img class="alignright size-full wp-image-1646" title="analog-clock" src="http://www.codeunit.co.za/wp-content/uploads/2009/12/analog-clock.jpg" alt="" width="150" height="150" /></a>I have to process some large CSV files that generate a lot of SQL statements that need to be executed. Naturally, trying to parse any of the files almost always results in my script spitting back that horrible maximum execution time exceeded error message, even though I&#8217;ve adjusted the maximum execution time setting in the php.ini file to as large as I dare go.</p>
<p>So how does one go about forcing a script to stay alive infinitely until it eventually finishes its job?</p>
<p>(Note: You really don&#8217;t want to apply what follows to an infinite loop snippet of code!)</p>
<p>Well, PHP does hand us the nifty <em>set_time_limit()</em> function that basically restarts PHP&#8217;s built in timeout counter, setting it to zero and then changing the new timeout value to the number of seconds specified in the function call. So for example, if the timeout default is 30 seconds and you call <em>set_time_limit(20)</em> 25 seconds into script execution, the script will now be able to run 45 seconds before timing out.</p>
<p>Now calling the function with a seconds parameter of zero is said to remove the time limit altogether, though in practice you may find that this doesn&#8217;t always work exactly how it should.</p>
<p>If for example your long-running script is based on a long loop operation, the easiest way to ensure your script doesn&#8217;t time out is to call the <em>set_time_limit</em> function with a specified timeout duration of say 20 seconds for each and every loop iteration.</p>
<p>This will in essence keep resetting the timeout counter and extending the maximum execution time, thus resulting in a script that has a potential to run just about forever! :)</p>
<p><em>[Unless of course you are running your script under II7 on a Windows Server 2008 machine where you'll have to adjust some additional Windows Environment parameters! Something to note though is that this function won't work if you are running PHP in SAFE mode. Unfortunately there doesn't seem to be a workaround for this instance! :(</em> ]</p>
<p>Related Link: http://php.net/manual/en/function.set-time-limit.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/08/force-your-script-to-run-longer-than-maximum-execution-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Convert an UTF-16 File to an UTF-8 file using PHP</title>
		<link>http://www.codeunit.co.za/2010/03/07/how-to-convert-an-utf-16-file-to-an-utf-8-file-using-php/</link>
		<comments>http://www.codeunit.co.za/2010/03/07/how-to-convert-an-utf-16-file-to-an-utf-8-file-using-php/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 07:01:06 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Technology & Code]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[andrew walker]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[file convert]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[string encoding]]></category>
		<category><![CDATA[utf-16]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=2043</guid>
		<description><![CDATA[Taking Andrew Walker's previously mentioned handy little UTF-16 to UTF-8 string converter function, we now have in our means a particularly easy way in which to craft a simple UTF-16 to UTF-8 file converter.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeunit.co.za/wp-content/uploads/2010/01/kung-fu-php-logo.png"><img class="alignright size-full wp-image-1829" title="kung-fu-php-logo" src="http://www.codeunit.co.za/wp-content/uploads/2010/01/kung-fu-php-logo.png" alt="" width="135" height="175" /></a>Taking <a href="http://www.moddular.org/" target="_blank">Andrew Walker&#8217;s</a> previously <a href="/2010/03/05/php-convert-a-utf-16-string-to-a-utf-8-string/" target="_self">mentioned</a> handy little UTF-16 to UTF-8 string converter function, we now have in our means a particularly easy way in which to craft a simple UTF-16 to UTF-8 file converter, useful as I have found in the past for those silly little cases like when someone is spitting out Microsoft SQL Server generated CSV files (which are by default encoded in UTF-16) at you for example.</p>
<p>So let&#8217;s put down the code then shall we?</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> utf16_to_utf8<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$c0</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$c1</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c0</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFE</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$c1</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFF</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$be</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c0</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFF</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$c1</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFE</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$be</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$str</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$len</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$dec</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #000088;">$len</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$c</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$be</span><span style="color: #009900;">&#41;</span> ? <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">8</span> <span style="color: #339933;">|</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
                <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">8</span> <span style="color: #339933;">|</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #208080;">0x0001</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span> <span style="color: #208080;">0x007F</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #208080;">0x07FF</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0xE0</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #208080;">0x0F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0x80</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span>  <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0x80</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span>  <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0xC0</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span>  <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #208080;">0x1F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0x80</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>gt<span style="color: #339933;">;</span>  <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$dec</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> convert_file_to_utf8<span style="color: #009900;">&#40;</span><span style="color: #000088;">$csvfile</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$utfcheck</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$csvfile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$utfcheck</span> <span style="color: #339933;">=</span> utf16_to_utf8<span style="color: #009900;">&#40;</span><span style="color: #000088;">$utfcheck</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$csvfile</span><span style="color: #339933;">,</span><span style="color: #000088;">$utfcheck</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To convert a file simply call the <em>convert_file_to_utf8()</em> function and pass to it the file path of the file you wish to convert. The function then uses the PHP function <em>file_get_contents()</em> to pack the input file&#8217;s contents into a string variable which is then passed to the main converter function which converts the string from UTF-16 to UTF-8 encoding if necessary. Finally, we use <em>file_put_contents() </em>to stuff the resulting string back into the original file, overwriting the original file contents.</p>
<p>Nice and simple really.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/07/how-to-convert-an-utf-16-file-to-an-utf-8-file-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inserting Backslashes into a Database Table with PHP</title>
		<link>http://www.codeunit.co.za/2010/03/06/inserting-backslashes-into-a-database-table-with-php/</link>
		<comments>http://www.codeunit.co.za/2010/03/06/inserting-backslashes-into-a-database-table-with-php/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 07:01:31 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Technology & Code]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[backslash]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[escape]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=2050</guid>
		<description><![CDATA[Sometimes you need to store things like file paths into a database table during your PHP script's execution. However, on going back to the database after running your script, you might come across your path with all of its backslashes (\) missing!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeunit.co.za/wp-content/uploads/2010/01/kung-fu-php-logo.png"><img class="alignright size-full wp-image-1829" title="kung-fu-php-logo" src="http://www.codeunit.co.za/wp-content/uploads/2010/01/kung-fu-php-logo.png" alt="" width="135" height="175" /></a>Sometimes you need to store things like file paths into a database table during your PHP script&#8217;s execution. However, on going back to the database after running your script, you might come across your path with all of its backslashes (\) missing!</p>
<p>So just what is going on here?</p>
<p>In most cases you will be using a string construct to send your SQL command, in other words, <em>mysql_query()</em> will be sending along a string SQL statement to be processed by the database. However, recall that backslashes usually need to be escaped in order to display a backslash, and in PHP for example, escaping characters is done by using a backslash &#8211; so in other words to display a backslash in a string, you actually need to put down two of the things: \\</p>
<p>However, when pushing your escaped string through to the database, remember that mySQL also needs to escape the backslashes it receives via your SQL statement, meaning that in actual fact you need to be double escaping your escaped backslashes!</p>
<p>To make this simpler to understand, you want to use this in your SQL string: \\\\. So what happens now is that the PHP script escapes the above to \\ which is then passed along to mySQL which then further escapes it to \, leaving you with a nice shiny backslash in your record as a result.</p>
<p>Got it?</p>
<p>Anyway, naturally PHP makes things a little easier for us by providing the handy <em>mysql_real_escape_string()</em> function which will handle the escaping of all special characters for use in a SQL statement, even taking into account the current character set of the connection specified!</p>
<p>Now you know.</p>
<p>Related Link: http://www.php.net/manual/en/function.mysql-real-escape-string.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/06/inserting-backslashes-into-a-database-table-with-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: Convert a UTF-16 String to a UTF-8 String</title>
		<link>http://www.codeunit.co.za/2010/03/05/php-convert-a-utf-16-string-to-a-utf-8-string/</link>
		<comments>http://www.codeunit.co.za/2010/03/05/php-convert-a-utf-16-string-to-a-utf-8-string/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 07:01:07 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Technology & Code]]></category>
		<category><![CDATA[andrew walker]]></category>
		<category><![CDATA[byte order mark]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[utf-16]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=2038</guid>
		<description><![CDATA[Andrew Walker crafted this handy little PHP function which can convert a UTF-16 encoded string into a more PHP-friendly UTF-8 encoded string.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeunit.co.za/wp-content/uploads/2009/11/20080715_PHP.jpg"><img class="alignright size-full wp-image-1528" title="PHP tutorial logo" src="http://www.codeunit.co.za/wp-content/uploads/2009/11/20080715_PHP.jpg" alt="" width="100" height="100" /></a><a href="http://www.moddular.org/" target="_blank">Andrew Walker</a> crafted this handy little PHP function which can convert a UTF-16 encoded string into a more PHP-friendly UTF-8 encoded string.</p>
<p>The function first checks to see if the string passed to it is prefixed with a Byte Order Mark (BOM), and if the necessary BOM exists, the function continues to convert the rest of the string to its more compact UTF-8 format.</p>
<p>Obviously if no BOM is present, the function leaves the input string unchanged.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> utf16_to_utf8<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$c0</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$c1</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c0</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFE</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$c1</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFF</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$be</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c0</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFF</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$c1</span> <span style="color: #339933;">==</span> <span style="color: #208080;">0xFE</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$be</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$str</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$len</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$dec</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$len</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$c</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$be</span><span style="color: #009900;">&#41;</span> ? <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">8</span> <span style="color: #339933;">|</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
                <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #cc66cc;">8</span> <span style="color: #339933;">|</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&gt;=</span> <span style="color: #208080;">0x0001</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$c</span> <span style="color: #339933;">&lt;=</span> <span style="color: #208080;">0x007F</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&gt;</span> <span style="color: #208080;">0x07FF</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0xE0</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&gt;&gt;</span> <span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x0F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0x80</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&gt;&gt;</span>  <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0x80</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&gt;&gt;</span>  <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0xC0</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&gt;&gt;</span>  <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x1F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$dec</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0x80</span> <span style="color: #339933;">|</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">&gt;&gt;</span>  <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span> <span style="color: #208080;">0x3F</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$dec</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Thanks Andrew, this was exactly what I was looking for! :)</p>
<p>Related Link: http://www.moddular.org/log/utf16-to-utf8</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/05/php-convert-a-utf-16-string-to-a-utf-8-string/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting the First Object Returned by a jQuery Selector</title>
		<link>http://www.codeunit.co.za/2010/03/04/getting-the-first-object-returned-by-a-jquery-selector/</link>
		<comments>http://www.codeunit.co.za/2010/03/04/getting-the-first-object-returned-by-a-jquery-selector/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 07:01:43 +0000</pubDate>
		<dc:creator>Craig Lotter</dc:creator>
				<category><![CDATA[Technology & Code]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[:first]]></category>
		<category><![CDATA[eq(0)]]></category>
		<category><![CDATA[first element]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[selector]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.codeunit.co.za/?p=2033</guid>
		<description><![CDATA[If for instance you have just used a jQuery selector to grab a whole lot of objects and now realize that in actual fact you only want to effect the first object that the selector returned to you, you can rest easy in the knowledge that jQuery as per usual has you covered.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeunit.co.za/wp-content/uploads/2009/12/jquery-logo.jpg"><img class="alignright size-full wp-image-1702" title="jquery-logo" src="http://www.codeunit.co.za/wp-content/uploads/2009/12/jquery-logo.jpg" alt="" width="150" height="150" /></a>If for instance you have just used a jQuery selector to grab a whole lot of objects and now realize that in actual fact you only want to effect the first object that the selector returned to you, you can rest easy in the knowledge that jQuery as per usual has you covered.</p>
<p>Now jQuery 1.4 has gone and simplified the logic for us by supplying us with a function neatly named first(), which when in action looks something like this:</p>
<blockquote><p>$(&#8216;li&#8217;).first()<span style="color: #808000;"> &#8230;</span></p></blockquote>
<p>However, if you are not up and running on the 1.4 library just yet, there is an older way of doing this, using either the built in selector :first or by making use of the specific object selector function, namely eq().</p>
<p>Using the built in selector method, your code would look like this:</p>
<blockquote><p>$(&#8216;li :first&#8217;)<span style="color: #808000;"> &#8230;</span></p></blockquote>
<p>On the other hand, using the eq() function will leave you with this:</p>
<blockquote><p>$(&#8216;li&#8217;).eq(0)<span style="color: #c0c0c0;"><span style="color: #808000;"> &#8230; (where 0 is basically the beginning index of the returned object array)</span><br />
</span></p></blockquote>
<p>In any event, using either one of these three methods will result in jQuery returning only one object, namely the first object it encountered when applying the initial selector value.</p>
<p>Useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeunit.co.za/2010/03/04/getting-the-first-object-returned-by-a-jquery-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
