<?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>dom111.co.uk &#187; Coding</title>
	<atom:link href="http://www.dom111.co.uk/blog/category/coding/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dom111.co.uk/blog</link>
	<description>Move along. Nothing to see here.</description>
	<lastBuildDate>Wed, 14 Jul 2010 19:30:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Gallery 0.1</title>
		<link>http://www.dom111.co.uk/blog/coding/gallery-0-1/245</link>
		<comments>http://www.dom111.co.uk/blog/coding/gallery-0-1/245#comments</comments>
		<pubDate>Wed, 14 Jul 2010 19:28:08 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[simple gallery]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=245</guid>
		<description><![CDATA[I recently took it upon myself to create a very small gallery project to easily display images from a folder structure in a fairly pleasing way&#8230; This is the result! You can get the script here]]></description>
			<content:encoded><![CDATA[<p>I recently took it upon myself to create a very small gallery project to easily display images from a folder structure in a fairly pleasing way&#8230;</p>
<p><a href="/gallery">This is the result!</a></p>
<p><a href="/files/gallery/gallery-0.1.tar.gz">You can get the script here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/gallery-0-1/245/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minify CSS &#8211; Shrink your CSS down to size</title>
		<link>http://www.dom111.co.uk/blog/coding/minify-css-shrink-your-css-down-to-size/238</link>
		<comments>http://www.dom111.co.uk/blog/coding/minify-css-shrink-your-css-down-to-size/238#comments</comments>
		<pubDate>Fri, 16 Apr 2010 18:07:11 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[minified css]]></category>
		<category><![CDATA[minify css]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=238</guid>
		<description><![CDATA[I know there are probably many services offering it already out there, and it&#8217;s not too hard to run right in TextMate, but I haven&#8217;t been able to find it in 30 seconds of Googling (well, I couldn&#8217;t at work, but I&#8217;ve since found this&#8230; Oh well!), so I set up a quick script to [...]]]></description>
			<content:encoded><![CDATA[<p>I know there are probably many services offering it already out there, and it&#8217;s not too hard to run right in TextMate, but I haven&#8217;t been able to find it in 30 seconds of Googling (well, I couldn&#8217;t at work, but I&#8217;ve since found <a href="http://www.cssdrive.com/index.php/main/csscompressor/">this</a>&#8230; Oh well!), so I set up a quick script to do it for me:</p>
<p><a href="http://www.dom111.co.uk/files/minifycss/">http://www.dom111.co.uk/files/minifycss/</a></p>
<p>If it&#8217;s useful, I might set up a memorable URL, let me know in the comments <img src='http://www.dom111.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I did set up <a href="http://marijn.haverbeke.nl/codemirror/">syntax highlighting, using codemirror</a>, which looked pretty nice, but made the minification (on large-ish files) take far too long. I haven&#8217;t really tested on any huge files, so try this at your own risk, but it seems faster that TextMate was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/minify-css-shrink-your-css-down-to-size/238/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; Persistent Input Labels</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-persistent-input-labels/236</link>
		<comments>http://www.dom111.co.uk/blog/coding/jquery-persistent-input-labels/236#comments</comments>
		<pubDate>Thu, 01 Apr 2010 08:03:58 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[User Interaction]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[input hint]]></category>
		<category><![CDATA[input label]]></category>
		<category><![CDATA[persistent input hint]]></category>
		<category><![CDATA[persistent input label]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=236</guid>
		<description><![CDATA[Do you forget whats supposed to go in the field the second you tab onto it? Are you concerned your users will too? Never fear! This simple plugin places an element of the same type underneath the current element and shows the contents of the title attribute (or whatever attribute you decide to use) as [...]]]></description>
			<content:encoded><![CDATA[<p>Do you forget whats supposed to go in the field the second you tab onto it?</p>
<p>Are you concerned your users will too?</p>
<p>Never fear! This simple plugin places an element of the same type underneath the current element and shows the contents of the title attribute (or whatever attribute you decide to use) as a label until you type text into the box!</p>
<p>It&#8217;s a very early version, and probably has a few bugs, but I&#8217;ve implemented enough to make it fairly useful I think. Unfortunately when you resize a textarea in webkit, it doesn&#8217;r fire the resize event, so I&#8217;ve added a workaround using mousemove (I tried to only capture mousemove if a mousedown had been detected, but to no avail&#8230;)</p>
<p>You can <a href="/files/jquery-inputLabelPersist">see a demo here</a>, and <a href="/files/jquery-inputLabelPersist/jquery.inputLabelPersist-0.1.tar.gz">get the files here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jquery-persistent-input-labels/236/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Entities in PHP</title>
		<link>http://www.dom111.co.uk/blog/coding/xml-entities-in-php/224</link>
		<comments>http://www.dom111.co.uk/blog/coding/xml-entities-in-php/224#comments</comments>
		<pubDate>Mon, 15 Feb 2010 20:34:35 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[utf8]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xmlentities]]></category>
		<category><![CDATA[xml_entitiy_decode]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=224</guid>
		<description><![CDATA[Because htmlentities() doesn&#8217;t even come close. This small file contains 4 functions (2 of which are taken from the PHP manual, credit given!) which will allow you to encode and decode entities from ASCII/unicode strings in either decimal or hexadecimal format for use in valid XML documents. The xml_entity_decode() function accepts an optional second parameter [...]]]></description>
			<content:encoded><![CDATA[<p>Because <code lang="php">htmlentities()</code> doesn&#8217;t even come close.</p>
<p>This small file contains 4 functions (2 of which are taken from the PHP manual, credit given!) which will allow you to encode and decode entities from ASCII/unicode strings in either decimal or hexadecimal format for use in valid XML documents.</p>
<p>The <code lang="php">xml_entity_decode()</code> function accepts an optional second parameter to allow non-standard XML entities (that may have been specified in your schema) in the format:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
  <span style="color: #666666; font-style: italic;">// 'entity' =&gt; 'char'</span>
  <span style="color: #0000ff;">'amp'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&amp;'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'lt'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'gt'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'apos'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'\''</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'quot'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&quot;'</span>
<span style="color: #009900;">&#41;</span></pre></div></div>

<p>Example usage:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'funcs.xmlentities.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$s</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;strong&gt;This&lt;/strong&gt; should be safe, but don\'t assume!&lt;br/&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">print</span> <span style="color: #0000ff;">'&lt;Field&gt;'</span><span style="color: #339933;">.</span>xmlentities<span style="color: #009900;">&#40;</span><span style="color: #000088;">$s</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/Field&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// outputs: &lt;Field&gt;&amp;lt;strong&amp;gt;This&amp;lt;/strong&amp;gt; should be safe, but don&amp;apos;t assume!&amp;lt;br/&amp;gt;&lt;/Field&gt;</span></pre></div></div>

<p>You can <a href="/files/xmlentities/funcs.xmlentities.tar.gz">get the script here</a>, or there&#8217;s <a href="/files/xmlentities/">a demo here too</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/xml-entities-in-php/224/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropdownify &#8211; Minimal effort dropdown</title>
		<link>http://www.dom111.co.uk/blog/coding/dropdownify-minimal-effort-dropdown/218</link>
		<comments>http://www.dom111.co.uk/blog/coding/dropdownify-minimal-effort-dropdown/218#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:19:38 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[drop-down]]></category>
		<category><![CDATA[drop-down menu]]></category>
		<category><![CDATA[drop-down navigation]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[top nav]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=218</guid>
		<description><![CDATA[So recently I was asked to change a navigation style of an existing site to drop-down menus. Simple, I thought, just use one of the many existing drop-down plugins. I tried many, but most seemed to use hardcoded styles and I had a few problems (some of which I encountered again, writing this). So I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>So recently I was asked to change a navigation style of an existing site to drop-down menus.</p>
<p>Simple, I thought, just use one of the many existing drop-down plugins. I tried many, but most seemed to use hardcoded styles and I had a few problems (some of which I encountered again, writing this).</p>
<p>So I&#8217;ve made this, I think it&#8217;s fairly robust, but I&#8217;m sure there&#8217;ll be problems with embedded objects (flash) and select boxes (in <= IE6), but for my needs, it sufficed, so I thought I'd share, in case anyone else needs a simple script to manage drop-downs.</p>
<p>To use, create a nest of elements like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul id=&quot;top&quot;&gt;
  &lt;li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>or something similar (any elements, <strong><em>should</em></strong> work) and call:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// jQuery:</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ul#top'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dropdownify</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// mootools</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'top'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dropdownify</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Which should create a simple drop-down.</p>
<p>There are a couple of examples, <a href="/files/dropdownify/jquery">one for jQuery</a> and <a href="/files/dropdownify/mootools">one for mootools</a>, and the files can downloaded <a href="/files/dropdownify/jquery.dropdownify-0.1.tar.gz">here</a> and <a href="/files/dropdownify/dropdownify-0.1.tar.gz">here</a>.</p>
<p>I did encounter a problem with IE, mainly due to z-index faults, so with HTML code like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;nav-wrapper&quot;&gt;
  &lt;ul id=&quot;top&quot;&gt;
    &lt;li&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;</pre></div></div>

<p>I used the following CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div.nav-wrapper<span style="color: #00AA00;">,</span>
div<span style="color: #6666ff;">.nav-wrapper</span> ul<span style="color: #00AA00;">,</span>
div<span style="color: #6666ff;">.nav-wrapper</span> ul li <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">static</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/dropdownify-minimal-effort-dropdown/218/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Breaking down large CSV files</title>
		<link>http://www.dom111.co.uk/blog/coding/breaking-down-large-csv-files/214</link>
		<comments>http://www.dom111.co.uk/blog/coding/breaking-down-large-csv-files/214#comments</comments>
		<pubDate>Thu, 17 Dec 2009 13:53:51 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[large csv]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=214</guid>
		<description><![CDATA[Today I received a 45Mb CSV file for importing into a database&#8230; Needless to say the application we were importing to didn&#8217;t seem to like the size of the file, for what ever reason&#8230; So I knocked up a quite bash script to create smaller &#8216;chunks&#8217; defined as a number of lines, to make importing [...]]]></description>
			<content:encoded><![CDATA[<p>Today I received a 45Mb CSV file for importing into a database&#8230; Needless to say the application we were importing to didn&#8217;t seem to like the size of the file, for what ever reason&#8230; So I knocked up a quite bash script to create smaller &#8216;chunks&#8217; defined as a number of lines, to make importing simpler.</p>
<p>I&#8217;m sure there&#8217;s many way in which is can be simplified, so if you know any I&#8217;d like the contributions!</p>
<p>It&#8217;s run like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ .<span style="color: #000000; font-weight: bold;">/</span>csv-chunk.sh large-data.csv <span style="color: #000000;">5000</span></pre></div></div>

<p>The first argument being the filename and the second argument the maximum number of lines for each &#8216;chunk&#8217;. From that 45Mb megalith, 38 files of around 1.2Mb were produced which didn&#8217;t seem to break the other end!</p>
<p><span id="more-214"></span>Here&#8217;s the script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> <span style="color: #7a0874; font-weight: bold;">help</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage:&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;  $0 &lt;csv filename&gt; &lt;number of lines&gt;=5000&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">help</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #007800;">chunk</span>=<span style="color: #000000;">5000</span>
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #007800;">chunk</span>=$<span style="color: #000000;">2</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">file</span></span>=$<span style="color: #000000;">1</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$file</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;File <span style="color: #007800;">$file</span> not found!&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">5</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">header</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">1</span> <span style="color: #007800;">$file</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">max</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$file</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">x</span>=<span style="color: #000000;">1</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Breaking down <span style="color: #007800;">$file</span> (<span style="color: #007800;">$max</span> lines into <span style="color: #007800;">$chunk</span> lined files)&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #007800;">i</span>=<span style="color: #000000;">1</span>; i<span style="color: #000000; font-weight: bold;">&lt;</span>=<span style="color: #007800;">$max</span>; i+=<span style="color: #007800;">$chunk</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #007800;">chunkfile</span>=<span style="color: #ff0000;">&quot;chunk-<span style="color: #007800;">$x</span>-<span style="color: #007800;">$file</span>&quot;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$chunkfile</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$chunkfile</span> already exists!&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">2</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$chunkfile</span><span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$header</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$chunkfile</span>
&nbsp;
  <span style="color: #007800;">start</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">expr</span> <span style="color: #007800;">$i</span> + <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #007800;">end</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">expr</span> <span style="color: #007800;">$i</span> + <span style="color: #007800;">$chunk</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #007800;">$start</span>,<span style="color: #007800;">$end</span>\<span style="color: #000000; font-weight: bold;">!</span>d <span style="color: #007800;">$file</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$chunkfile</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
  <span style="color: #007800;">x</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">expr</span> <span style="color: #007800;">$x</span> + <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Created <span style="color: #007800;">$x</span> files&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/breaking-down-large-csv-files/214/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Message &#8211; Letting the user know what&#8217;s going on</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-message-letting-the-user-know-whats-going-on/209</link>
		<comments>http://www.dom111.co.uk/blog/coding/jquery-message-letting-the-user-know-whats-going-on/209#comments</comments>
		<pubDate>Mon, 14 Dec 2009 09:40:14 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[User Interaction]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[notification]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=209</guid>
		<description><![CDATA[Recently I&#8217;ve seen a few implementation of Growl in Javascript and basically just thought I&#8217;d have a go too. Everyone&#8217;s doing it, or so it seems! This simple implementation is styled using pure CSS and you should be to easily modify it to suit your needs! I&#8217;ve set up a demo page and the files [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-medium wp-image-211 aligncenter" title="Screenshot" src="http://www.dom111.co.uk/blog/wp-content/2009/12/Screen-shot-2009-12-14-at-09.44.16-300x209.png" alt="Screenshot" width="300" height="209" /></p>
<p>Recently I&#8217;ve seen a few implementation of Growl in Javascript and basically just thought I&#8217;d have a go too. Everyone&#8217;s doing it, or so it seems!</p>
<p>This simple implementation is styled using pure CSS and you should be to easily modify it to suit your needs!</p>
<p>I&#8217;ve <a href="/files/jquery-message/">set up a demo page</a> and the <a href="/files/jquery-message/jquery-message-0.1.tar.gz">files can be grabbed from here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jquery-message-letting-the-user-know-whats-going-on/209/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP CSV Reader</title>
		<link>http://www.dom111.co.uk/blog/coding/php-csv-reader/201</link>
		<comments>http://www.dom111.co.uk/blog/coding/php-csv-reader/201#comments</comments>
		<pubDate>Wed, 07 Oct 2009 19:08:22 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[csv]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=201</guid>
		<description><![CDATA[I&#8217;ve never really built a definitive CSV reader and end up building a quick implementation of one any time I need one. But after working on the chunk script I decided that next time I build a CSV class I&#8217;d do it properly. This is the result: &#60;?php require&#40;'class.csv.php'&#41;; &#160; header&#40;'Content-type: text/plain'&#41;; &#160; $csv = [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never really built a definitive CSV reader and end up building a quick implementation of one any time I need one.</p>
<p>But after working on the chunk script I decided that next time I build a CSV class I&#8217;d do it properly.</p>
<p><a href="/files/csv/csv.tar.gz">This is the result</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'class.csv.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-type: text/plain'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$csv</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> CSV<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test.csv'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$csv</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">read</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span></pre></div></div>

<p><a href="/files/csv/">There&#8217;s an information page here</a>, and <a href="/files/csv/csv.tar.gz">the script is here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/php-csv-reader/201/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Ajaxify &#8211; Update</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-ajaxify-update/191</link>
		<comments>http://www.dom111.co.uk/blog/coding/jquery-ajaxify-update/191#comments</comments>
		<pubDate>Thu, 24 Sep 2009 14:17:56 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ajax form]]></category>
		<category><![CDATA[ajaxify]]></category>
		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=191</guid>
		<description><![CDATA[I&#8217;ve been doing more work on the jQuery AJAXify plugin, it&#8217;s now a lot more robust (I think&#8230;) and I&#8217;ve squashed a few bugs that were in the previous version (with help from Andrea Battaglia) along with adding in a few new features (with their own bugs no doubt!). Theres an updated test page and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing more work on the jQuery AJAXify plugin, it&#8217;s now a lot more robust (I think&#8230;) and I&#8217;ve squashed a few bugs that were in the previous version (with help from Andrea Battaglia) along with adding in a few new features (with their own bugs no doubt!).</p>
<p>Theres an <a href="/files/ajaxify/0.4/">updated test page</a> and as ever <a href="/files/ajaxify/0.4/jquery.ajaxify-0.4.tar.gz">a direct link to download here</a>.</p>
<p>Check out the <a href="/files/ajaxify/0.4/">test page</a> to see the new features!</p>
<p><strong>Edit</strong>: Further updates, all links have been updated to version 0.3b. Added (and documented existing) callbacks as requested by Sebioff! And a further fix for the &#8216;append&#8217; option. Also fixed IE6 compatibility.</p>
<p><strong>Further Update</strong>: Another update after the comment from David Lee about $(&#8216;form&#8217;).serialize();</p>
<p><strong>Another Further Update</strong>: I have <a href="http://ajaxify.googlecode.com/">set up a Google Code repository for this plugin,</a> which states that this code is released under the MIT license.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jquery-ajaxify-update/191/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>DNS Issues</title>
		<link>http://www.dom111.co.uk/blog/coding/dns/dns-issues/189</link>
		<comments>http://www.dom111.co.uk/blog/coding/dns/dns-issues/189#comments</comments>
		<pubDate>Thu, 24 Sep 2009 08:08:22 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=189</guid>
		<description><![CDATA[Looks like this blog&#8217;s been down for a few days&#8230; I&#8217;ve moved my DNS over to 123-reg and have had a few issues getting all the DNS records to work as expected&#8230; Hopefully I&#8217;ve fixed it now&#8230;]]></description>
			<content:encoded><![CDATA[<p>Looks like this blog&#8217;s been down for a few days&#8230;</p>
<p>I&#8217;ve moved my DNS over to 123-reg and have had a few issues getting all the DNS records to work as expected&#8230;</p>
<p>Hopefully I&#8217;ve fixed it now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/dns/dns-issues/189/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
