<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel><generator>http://textpattern.com/?v=4.0.5</generator>
<title>cole007.net [Cole Henley] - Blog</title>
<link>http://cole007.net/</link>
<description>jack of all trades, doctor of one</description>
<pubDate>Thu, 25 Jun 2009 09:29:00 GMT</pubDate>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Cole007net-Blog" type="application/rss+xml" /><item><title>The Fat Slogs [4]</title>
<description>
<![CDATA[<p>Earlier today <a href="http://twitter.com/cole007/status/2118348293">I asked</a> for some feedback on twitter on how best to markup multiple inputs in a <span class="caps">HTML</span> form that may theoretically/logically share a single label. The most apparent example is a date form with separate inputs for DD/MM/YYYY.</p>]]>
</description>
<content:encoded>
<![CDATA[<p>Earlier today <a href="http://twitter.com/cole007/status/2118348293">I asked</a> for some feedback on twitter on how best to markup multiple inputs in a <span class="caps">HTML</span> form that may theoretically/logically share a single label. The most apparent example is a date form with separate inputs for DD/MM/YYYY.</p>

	<p>In usual, dependable fashion answers were forthcoming from accessibility stalwarts (if that is the right term) <a href="http://twitter.com/patrick_h_lauke/status/2118434078">Patrick H. Lauke</a> and <a href="http://twitter.com/brucel/status/2118373112">Bruce Lawson</a> who offered the following responses respectively:</p>

	<blockquote>
		<p>@cole007 fieldset, legend &#8220;date of birth&#8221;, hidden labels &#8220;day&#8221;, &#8220;month&#8221;, &#8220;year&#8221;</p>
	</blockquote>

	<blockquote>
		<p>@cole007 3 separate inputs, each with a unique title, no label, in a fieldset with legend &#8220;Date&#8221; </p>
	</blockquote>

	<p>These two solutions are perfect for my example of day/month/year, but what about less obvious examples and what about inputs that might have no obvious label or title. </p>

	<p>At <a href="http://www.netresources.co.uk/">Net Resources</a>, we are currently working on a search form for a client to query against a database on tartans. </p>

	<p>One of the criteria you can search against is &#8216;slog&#8217; which is to do with the thread count of a particular tartan. In official tartan parlance, a slog comprises of two three letter groups divided by a colon, eg. <span class="caps">BGK</span>:WRK. The logical break in the data means that the query input should ideally be broken into two divided with a colon, eg:</p>

	<p><label>Slog <input type="text" size="3" /> : <input type="text" size="3" /></label></p>

<pre>
<code>
&lt;label&gt;Slog &lt;input type=&quot;text&quot; size=&quot;3&quot; /&gt; : &lt;input type=&quot;text&quot; size=&quot;3&quot; /&gt;&lt;/label&gt;
</code>
</pre>

	<p>However, these slog fields do not have obvious names that can be applied through a title or hidden label, so my question is this. How best would you mark a form with these two inputs divided by a colon? <br />
What &#8211; in your opinion &#8211; would be the most accessible, semantic, dogs bollocks approach to marking up this particular part of the form?</p>]]>
</content:encoded>
<link>http://cole007.net/blog/58/the-fat-slogs</link>
<pubDate>Thu, 11 Jun 2009 16:40:27 GMT</pubDate>
<dc:creator>Cole Henley</dc:creator>
<guid isPermaLink="false">tag:cole007.net,2009-06-11:2dad5af76a50892f0b86580433b980d3/c96b7bcb6a1029d83dd5f81c86673830</guid>
</item>
<item><title>on not giving up  [2]</title>
<description>
<![CDATA[<p>with the small exception of a brief hiatus in 1998 i have been a bonafide member of the Gentleman&#8217;s Smoking Club&trade; since i first puffed on a cigarette as a spotty oik of a lad in the early nineties (when change from a pound could be had from 10 Malboro lights and a box of matches). </p>]]>
</description>
<content:encoded>
<![CDATA[<p>with the small exception of a brief hiatus in 1998 i have been a bonafide member of the Gentleman&#8217;s Smoking Club&trade; since i first puffed on a cigarette as a spotty oik of a lad in the early nineties (when change from a pound could be had from 10 Malboro lights and a box of matches). </p>

	<p>since then being a smoker has been a large part of my identity, rarely venturing far without a packet of rolling tobacco to hand. i would readily admit that i am addicted to a bunch of chemicals which are primarily poisonous but i would also say &#8211; despite this knowledge &#8211; that i enjoy smoking. the act of rolling a cigarette, the act of sharing a cigarette, the sense of camaradre shared by those who huddle round the ashtray on cold, wet autumn evenings outside the pub.  </p>

	<p>however, today marks a whole week &#8211; that&#8217;s a whopping 168 hours &#8211; without smoking which is pretty much the longest i have been without nicotine since my early teenage days (except for the aforementioned hiatus). i&#8217;m not sure when or even if i will ever have another cigarette but one thing i can be sure of is that i haven&#8217;t given up. i&#8217;m just taking a break.</p>

	<p>so why the break? well three factors really. one the birth of a son, the other a death of father-in-law, the last a killer hangover. for the past few months i have certainly been acutely aware that i have been smoking too much. psychologically, smoking has been a valiant ally in times of stress in my adult life and since january i have embarked on a series of new (and unfamiliar) experiences: a new job, taken on more freelance work than i perhaps should&#8217;ve and seen the arrival of our youngest, Felix (as well as contend with the competing affections and emotions from our eldest, Gethin).</p>

	<p>in the past 6 months smoking has become more than a habit and i was not particularly happy with how something that i had enjoyed was having such an impact on my life (and to some, lesser extent also my wallet).</p>

	<p>this sense was exacerbated with the sad and relatively sudden passing of my wife&#8217;s father two weeks ago. the idea that i could make a decision now which might affect the amount of time i have to spend with my children (and their children) was something really powerful and made me think for the first time in a long time about not smoking. </p>

	<p>i have tried to give up before but always failed: bad timing, bad planning, bad willpower. the two things i knew were:</p>

	<ol>
		<li>that there is never a perfect time to give up smoking, and</li>
		<li>that I would know when the time was right.</li>
	</ol>

	<p>last Wednesday the time was right. the night before &#8211; at my father-in-laws wake &#8211; i had indulged in a few gins too many and as a result the following day was spent in a state of utter self-pity, without caffeine or nicotine: the two biggest vices in my life (the third being <a href="http://twitter.com/cole007">twitter</a>, which I also somehow managed to abstain from). </p>

	<p>am now back on the caffeine and twitter but have somehow managed to stay off the fags. each day since last Wednesday i have said to myself &#8220;no, i won&#8217;t smoke today&#8221;. if i thought to myself i had given up i think there would be too much pressure but as long as it is just taking a break then i can take one day at a time and hope that tomorrow, is just another day when i feel like having a break&#8230;</p>]]>
</content:encoded>
<link>http://cole007.net/blog/57/on-not-giving-up</link>
<pubDate>Wed, 10 Jun 2009 06:00:00 GMT</pubDate>
<dc:creator>Cole Henley</dc:creator>
<guid isPermaLink="false">tag:cole007.net,2009-06-10:2dad5af76a50892f0b86580433b980d3/e4fdf7a40a8c28709abf834efe2d1294</guid>
</item>
<item><title>It's a Cron shot but it might just work [6]</title>
<description>
<![CDATA[<p>With a synchronous web of data being the norm in this day and age it is no longer good enough to update a website on a per request basis. </p>]]>
</description>
<content:encoded>
<![CDATA[<p>With a synchronous web of data being the norm in this day and age it is no longer good enough to update a website on a per request basis. Users expect the content and data on a website to be relevant and readily available and whereas daily and less regular updates would have been acceptable a few years ago users are now expecting relevant content to be made available by the hour, if not by the minute. However there is clearly a considerable overhead in processing data for display on-the-fly as requested by your visiting public.</p>

	<p>For anyone running their own data-driven site this would traditionally be achieved through running a <a href="http://en.wikipedia.org/wiki/Cron">cron job</a> &#8211; a task scheduled to be performed on a regular basis on a server irrespective of whether that site is being visited or not. However, running cron jobs feature two complexities:</p>

	<ol>
		<li>the cost in learning how to configure and manage them (though having never done them it could be a piece of piss), and</li>
		<li>the cost associated with hosting a site that has cron capabilities (this functionality is chargeable as extra on <a href="http://www.1and1.co.uk/?k_id=6535757">my hosting account</a>)</li>
	</ol>

	<p>So what about a compromise &#8211; scheduling visits to your site to take place periodically rather than scheduling the server to perform task at regular intervals?</p>

	<p>This was something I set about figuring out when I realised that a technology already existed which periodically checks a website: <a href="http://cole007.net/blog/18/know-your-rss-from-your-elbow"><span class="caps">RSS</span></a>.  If we can set up an <span class="caps">RSS</span> feed to process a script as it is requested could we harness the power of <span class="caps">RSS</span> to semi-automate updates on your website? Hell yeah!</p>

	<p>Setting up a test script on a server, I created an empty <span class="caps">RSS</span> feed and then subscribed to the feed using <a href="http://www.google.com/reader">Google Reader</a>. Everytime the feed was requested the time was logged in a separate text file. Like clockwork it transpires Google Reader (other feed readers are available boys and girls) was requesting the feed every three hours on the dot. So it might freak out if more complex scripts are attempted but in principal this might prove one way of scheduling relatively simple scripts to run on your server with relative frequency if you don&#8217;t have access to running cron jobs on your server.</p>]]>
</content:encoded>
<link>http://cole007.net/blog/55/its-a-cron-shot-but-it-might-just-work</link>
<pubDate>Thu, 26 Mar 2009 15:40:11 GMT</pubDate>
<dc:creator>Cole Henley</dc:creator>
<guid isPermaLink="false">tag:cole007.net,2009-03-26:2dad5af76a50892f0b86580433b980d3/bbe6574488eb48b3f3ad895f96f6c110</guid>
</item>
<item><title>Selling out beloved Fiat Panda :(</title>
<description>
<![CDATA[<p>After almost 5 years of good service, we are sadly selling our reliable ol&#8217; Fiat Panda to make room for our new arrival (as lovely as the Panda is it just doesn&#8217;t have the capacity for a family of four). </p>]]>
</description>
<content:encoded>
<![CDATA[<p>After almost 5 years of good service, we are sadly selling our reliable ol&#8217; Fiat Panda to make room for our new arrival (as lovely as the Panda is it just doesn&#8217;t have the capacity for a family of four). </p>

	<p>So, as a habitual web-tinkerer have set up a wee website to promote the car at <a href="http://panda.cole007.net/">http://panda.cole007.net/</a></p>

	<p>If you are in central Scotland and looking for a wee runner (and I&#8217;m not talking about <a href="http://en.wikipedia.org/wiki/Shane_Williams">Shane Williams</a>) then this one comes heartily recommended and a mere snip at <strong>£1800</strong> sterling (which is about the same as a packet of crisps at the current exchange rate).  Bargainous!</p>

	<p>Am sorely tempted to get myself yet more <a href="http://www.moo.com/">moo cards</a></p>]]>
</content:encoded>
<link>http://cole007.net/blog/54/selling-out-beloved-fiat-panda</link>
<pubDate>Sun, 01 Mar 2009 20:02:57 GMT</pubDate>
<dc:creator>Cole Henley</dc:creator>
<guid isPermaLink="false">tag:cole007.net,2009-03-01:2dad5af76a50892f0b86580433b980d3/b61c751e014623df7343f836f3b0e59c</guid>
</item>
<item><title>A Geniune Felix Lighter [2]</title>
<description>
<![CDATA[<p>In the wee hours of this morning on Monday the 23rd of February 2008 &#8211; after 8 hours of labour, a healthy natural water birth and some oustanding hard work from Peta &#8211; our wee son Felix Edward Donald Henley was born.</p>]]>
</description>
<content:encoded>
<![CDATA[<p>In the wee hours of this morning on Monday the 23rd of February 2008 &#8211; after 8 hours of labour, a healthy natural water birth and some outstanding hard work from Peta &#8211; our wee son Felix Edward Donald Henley was born.</p>

	<p>It was especially sporting of someone who&#8217;s namesake is a regular <a href="http://en.wikipedia.org/wiki/Felix_Leiter">feature of Bond films</a> to have decided to make an appearance at 0.07 hours. </p>

	<p>Young Felix is in fine company, sharing a birthday with <a href="http://en.wikipedia.org/wiki/Samuel_Pepys">Samuel Pepys</a>, <a href="http://en.wikipedia.org/wiki/George_Frideric_Handel">Handel</a>, <a href="http://en.wikipedia.org/wiki/Peter_Fonda">Peter Fonda</a>, <a href="http://en.wikipedia.org/wiki/Plutonium">plutonium</a>, <a href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization"><span class="caps">ISO</span></a> and the <a href="http://en.wikipedia.org/wiki/Gutenberg_Bible">Gutenburg bible</a>, the first Western book printed from movable type.</p>

	<p>True to form, it is nice to see that <a href="http://www.theelmores.org.uk/">Felix&#8217;s Gramps</a> has already adopted the pseudonym Teddy for him. 10 hours old and already has an alias.</p>

	<p>Images and more to follow on the soon to be resurrected <a href="http://bairn.cole007.net/">bairn blog</a> shortly</p>

	<p>PS bonus points if you can name the film quoted in this blog title ;)</p>]]>
</content:encoded>
<link>http://cole007.net/blog/53/a-geniune-felix-lighter</link>
<pubDate>Mon, 23 Feb 2009 10:11:13 GMT</pubDate>
<dc:creator>Cole Henley</dc:creator>
<guid isPermaLink="false">tag:cole007.net,2009-02-23:2dad5af76a50892f0b86580433b980d3/0b1ed2bc9398df32859b8f6378cab5d3</guid>
</item></channel>
</rss>
