<?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>Richy&#039;s Random Ramblings &#187; Snippet</title>
	<atom:link href="http://blog.rac.me.uk/category/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rac.me.uk</link>
	<description>Random ramblings and ravings of Richy C</description>
	<lastBuildDate>Mon, 16 Jan 2012 12:16:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Snippet: Predicted Caffeine Intake</title>
		<link>http://blog.rac.me.uk/2009/12/21/snippet-predicted-caffeine-intake/</link>
		<comments>http://blog.rac.me.uk/2009/12/21/snippet-predicted-caffeine-intake/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 10:00:48 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Life: Personal]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[bawls]]></category>
		<category><![CDATA[caffeine]]></category>
		<category><![CDATA[drink]]></category>
		<category><![CDATA[mana]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1586</guid>
		<description><![CDATA[Today I&#8217;m probably going to be consuming: 2x Mars Mochachino Hazlenut coffees (caffeine value unknown &#8211; one already drunk) 1x Mana Health Potion (160milligrams of caffeine) 1x Bawls G33k B33r (64milligrams of caffeine 1x Cherry Lucozade (46milligrams of caffeine) At least 1 cup of tea Total: At least 270milligrams Why? Well, just to try and [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;m probably going to be consuming:</p>
<ul>
<li>2x Mars Mochachino Hazlenut coffees (caffeine value unknown &#8211; one already drunk)</li>
<li>1x Mana Health Potion (160milligrams of caffeine)</li>
<li>1x Bawls G33k B33r (64milligrams of caffeine</li>
<p>1x Cherry Lucozade (46milligrams of caffeine)</li>
<li>At least 1 cup of tea</li>
<li>Total: At least 270milligrams</li>
</ul>
<p>Why? Well, just to try and keep me awake and warm. According to my other half <a href="http://www.whatkatydid.org/2006/12/all-you-ever-wanted-to-know-about-137-trimethylxanthine-and-more-besides/">10grams of caffeine</a> is lethal: so I&#8217;ll have less than a twentieth of a lethal dose (just 0.27grams).</p>
<p>Giggity-giggity watch me turn to goo <img src='http://blog.rac.me.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/12/21/snippet-predicted-caffeine-intake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: Ok, who thinks I&#8217;m dead&#8230;</title>
		<link>http://blog.rac.me.uk/2009/03/20/snippet-ok-who-thinks-im-dead/</link>
		<comments>http://blog.rac.me.uk/2009/03/20/snippet-ok-who-thinks-im-dead/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 17:07:46 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1487</guid>
		<description><![CDATA[I was just looking up the dates of one of my namesakes who committed suicide (don&#8217;t ask), so I searched on Google for &#8220;richard chiswell suicide&#8221; (as you do): and my Twitter page came up as first result! The word &#8220;suicide&#8221; doesn&#8217;t appear on my twitter feed (Google admits it only &#8220;appears in links pointing [...]]]></description>
			<content:encoded><![CDATA[<p>I was just looking up the dates of one of my namesakes who committed suicide (don&#8217;t ask), so I searched on Google for &#8220;richard chiswell suicide&#8221; (as you do): and my <a href="http://twitter.com/rchiswell">Twitter page</a> came up as first result!</p>
<p>The word &#8220;suicide&#8221; doesn&#8217;t appear on my twitter feed (Google admits it only &#8220;appears in links pointing to this page&#8221;), so I want to know just who thinks I&#8217;m dead!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/03/20/snippet-ok-who-thinks-im-dead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>News Snippet: Mythbuster Kari Byron is Pregnant</title>
		<link>http://blog.rac.me.uk/2009/02/25/news-snippet-mythbuster-kari-byron-is-pregnant/</link>
		<comments>http://blog.rac.me.uk/2009/02/25/news-snippet-mythbuster-kari-byron-is-pregnant/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:56:49 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Life: News Commentary]]></category>
		<category><![CDATA[Life: TV and Movies]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[adam savage]]></category>
		<category><![CDATA[kari byron]]></category>
		<category><![CDATA[mythbusters]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1317</guid>
		<description><![CDATA[News just off the press direct from Mythbuster Adam Savage: Girl Geek Cutie Kari Byron is pregnant: there&#8217;s no word yet as to when the kid will be joining the Mythbusters team or in what capacity (Buster replacement or team member). Update: There&#8217;s a video available (of the &#8220;official announcement&#8221;: not a &#8220;making of&#8221;! &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>News just off the press direct from Mythbuster Adam Savage: Girl Geek Cutie <a href="http://twitter.com/donttrythis/status/1250542710">Kari Byron is pregnant</a>: there&#8217;s no word yet as to when the kid will be joining the Mythbusters team or in what capacity (Buster replacement or team member).</p>
<p><strong>Update:</strong><br />
There&#8217;s a <a href="http://dsc.discovery.com/videos/mythbusters-kari-announces-big-news.html">video available</a> (of the &#8220;official announcement&#8221;: not a &#8220;making of&#8221;! &#8211; oooh, you are awful!)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/02/25/news-snippet-mythbuster-kari-byron-is-pregnant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: It is two cups, one ball &#8211; not&#8230;</title>
		<link>http://blog.rac.me.uk/2009/02/25/snippet-it-is-two-cups-one-ball-not/</link>
		<comments>http://blog.rac.me.uk/2009/02/25/snippet-it-is-two-cups-one-ball-not/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 09:48:29 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1312</guid>
		<description><![CDATA[Why oh why when I was writing a couple of paragraphs about probability, did I not write &#8220;there are two cups and one ball&#8230;&#8221; but instead typed &#8220;there are two girls and one cup&#8230;&#8221;: what was my mind thinking???]]></description>
			<content:encoded><![CDATA[<p>Why oh why when I was writing a couple of paragraphs about probability, did I not write &#8220;there are two cups and one ball&#8230;&#8221; but instead typed &#8220;there are two girls and one cup&#8230;&#8221;: what was my mind thinking???</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/02/25/snippet-it-is-two-cups-one-ball-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: ClickCartPro: Extracting VAT Exempt orders</title>
		<link>http://blog.rac.me.uk/2009/02/21/snippet-clickcartpro-extracting-vat-exempt-orders/</link>
		<comments>http://blog.rac.me.uk/2009/02/21/snippet-clickcartpro-extracting-vat-exempt-orders/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 18:16:26 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Life: Work and Techy]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[clickcartpro]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[greenbarnweb]]></category>
		<category><![CDATA[kryptonic]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[vat]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1279</guid>
		<description><![CDATA[If you are looking for a way of listing all orders in Greenbarnweb/Kryptonic&#8217;s ClickCartPro software that is exempt from European/UK VAT, then you may find the following SQL query useful: SELECT `id` , `dateday` , `datemonth` , `dateyear` , `ordertotal`, `eutaxrefundtotal` , `country` FROM `gbu0_orders` WHERE STATUS = 'C' AND (eutaxrefundtotal >0) ORDER BY dateyear [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking for a way of listing all orders in Greenbarnweb/Kryptonic&#8217;s ClickCartPro software that is exempt from European/UK VAT, then you may find the following SQL query useful:<br />
<code>SELECT `id` , `dateday` , `datemonth` , `dateyear` , `ordertotal`, `eutaxrefundtotal` , `country` FROM `gbu0_orders` WHERE STATUS = 'C' AND (eutaxrefundtotal >0) ORDER BY dateyear DESC , datemonth DESC</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/02/21/snippet-clickcartpro-extracting-vat-exempt-orders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: Parallel Processing in PHP</title>
		<link>http://blog.rac.me.uk/2009/02/20/snippet-parallel-processing-in-php/</link>
		<comments>http://blog.rac.me.uk/2009/02/20/snippet-parallel-processing-in-php/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 13:13:05 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Net: Techy: PHP]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[parallel processing]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1277</guid>
		<description><![CDATA[*snippet* This is just a quick &#8220;bookmark&#8221; style post to remind me to look at the potential for utilising Parallel Processing in PHP using the &#8220;divide and conquer&#8221; method which may help in compiling/comparing stats in an application I&#8217;m working on.]]></description>
			<content:encoded><![CDATA[<p>*snippet* This is just a quick &#8220;bookmark&#8221; style post to remind me to look at the potential for utilising <a href="http://phplens.com/phpeverywhere/?q=node/view/254">Parallel Processing in PHP</a> using the <a href="http://phplens.com/phpeverywhere/?q=node/view/255">&#8220;divide and conquer&#8221; method</a> which may help in compiling/comparing stats in an application I&#8217;m working on.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/02/20/snippet-parallel-processing-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: What Microsoft Can Learn About Retail from Apple and Best Buy</title>
		<link>http://blog.rac.me.uk/2009/02/13/snippet-what-microsoft-can-learn-about-retail-from-apple-and-best-buy/</link>
		<comments>http://blog.rac.me.uk/2009/02/13/snippet-what-microsoft-can-learn-about-retail-from-apple-and-best-buy/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 21:43:44 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Life: News Commentary]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[best buy]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[retail]]></category>
		<category><![CDATA[scoble]]></category>
		<category><![CDATA[scobleizer]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1252</guid>
		<description><![CDATA[Robert Scoble ( @scobleizer ) has an interesting post on FastCompany about What Microsoft Can Learn About Retail from Apple and Best Buy and there&#8217;s quite a few pointers there.]]></description>
			<content:encoded><![CDATA[<p>Robert Scoble ( <a href="http://twitter.com/Scobleizer">@scobleizer</a> ) has an interesting post on FastCompany about <a href="http://www.fastcompany.com/blog/robert-scoble/robert-scobles-innovators-and-geeks-blog/what-microsoft-can-learn-about-retail-ap">What Microsoft Can Learn About Retail from Apple and Best Buy</a> and there&#8217;s quite a few pointers there.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/02/13/snippet-what-microsoft-can-learn-about-retail-from-apple-and-best-buy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: London Underground &#8220;Tube&#8221; &#8211; Oyster or Travelcard</title>
		<link>http://blog.rac.me.uk/2009/01/13/snippet-london-underground-tube-oyster-or-travelcard/</link>
		<comments>http://blog.rac.me.uk/2009/01/13/snippet-london-underground-tube-oyster-or-travelcard/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 16:57:29 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Life: Work and Techy]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[london]]></category>
		<category><![CDATA[london underground]]></category>
		<category><![CDATA[oyster]]></category>
		<category><![CDATA[tfl]]></category>
		<category><![CDATA[transport for london]]></category>
		<category><![CDATA[tube]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1153</guid>
		<description><![CDATA[I&#8217;ve suspected it, but it&#8217;s nice to have confirmation -it is cheaper for me to use Oyster Pay as you go then a Transport For London (TfL) travel code for my commutes between Zone 5 and Zone 1. Is it cheaper for you? (by looks of things, only if you regularly travel in to London [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve suspected it, but it&#8217;s nice to have confirmation -it is <a href="http://www.prepayortravelcard.com/">cheaper for me to use Oyster Pay as you go</a> then a Transport For London (TfL) travel code for my commutes between Zone 5 and Zone 1. Is it cheaper for you? (by looks of things, only if you regularly travel in to London during the weekend is it even worth considering a TravelCard).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/01/13/snippet-london-underground-tube-oyster-or-travelcard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snippet: Weird Pricing on TheCloud</title>
		<link>http://blog.rac.me.uk/2009/01/13/snippet-weird-pricing-on-thecloud/</link>
		<comments>http://blog.rac.me.uk/2009/01/13/snippet-weird-pricing-on-thecloud/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 11:41:15 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Life: Work and Techy]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[internet access]]></category>
		<category><![CDATA[london]]></category>
		<category><![CDATA[techy]]></category>
		<category><![CDATA[the cloud]]></category>
		<category><![CDATA[wi-fi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1142</guid>
		<description><![CDATA[I&#8217;m just helping somebody find temporary wireless internet access (ideally free wireless in London), and I remembered The Cloud. Their pricing is a bit odd: for Pay as you go access, the price if &#163;6.99 for 3 hours or &#163;9.99 for 24 hours, or you can go for their subscription wireless access, it&#8217;s &#163;6.99 for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just helping somebody find temporary wireless internet access (<a href="http://londonist.com/2007/05/free_wifi_in_lo.php">ideally free wireless in London</a>), and I remembered <a href="http://www.thecloud.net/">The Cloud</a>. Their pricing is a bit odd: for <a href="http://www.thecloud.net/for-you/pay-as-you-go">Pay as you go</a> access, the price if &pound;6.99 for 3 hours or &pound;9.99 for 24 hours, or you can go for their <a href="http://www.thecloud.net/for-you/subscriptions">subscription wireless access</a>, it&#8217;s &pound;6.99 for a whole month.</p>
<p>There must be a snag there &#8211; who would pay for 24 hours access, when it&#8217;s cheaper to get 30 days?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2009/01/13/snippet-weird-pricing-on-thecloud/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Snippet: PHP, MySQL and IDN Email addresses</title>
		<link>http://blog.rac.me.uk/2008/11/20/snippet-php-mysql-and-idn-email-addresses/</link>
		<comments>http://blog.rac.me.uk/2008/11/20/snippet-php-mysql-and-idn-email-addresses/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 16:58:30 +0000</pubDate>
		<dc:creator>Richy C.</dc:creator>
				<category><![CDATA[Net: Techy: PHP]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://blog.rac.me.uk/?p=1012</guid>
		<description><![CDATA[Here&#8217;s something to look out for if you are building an international website where you are handling email addresses&#8230; Email addresses, as you are probably aware, comprise of two parts. The &#8220;local part&#8221; (the bit before the @ sign) and the &#8220;domain part&#8221; (the bit after the @ sign). Therefore with the email address richard@example.invalid [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s something to look out for if you are building an international website where you are handling email addresses&#8230;</p>
<p>Email addresses, as you are probably aware, comprise of two parts. The &#8220;local part&#8221; (the bit before the @ sign) and the &#8220;domain part&#8221; (the bit after the @ sign). Therefore with the email address richard@example.invalid , &#8220;richard&#8221; is the local part and &#8220;example.invalid&#8221; is the domain part.</p>
<p>The domain part of the email address can actually be 255 characters in length theoretically (it&#8217;s 63 characters for the actually domain name, then the TLD: however, you could have sub domains in force which can take it up to the 255 limit.</p>
<p>The local part of the email address can be 64 characters: bringing the count up to 319 characters. Allow an extra one for the &#8220;@&#8221; sign and 320&#8230; Just slightly too big to fit within the standard 255/256 character string field that has tended to be used. I&#8217;ve seen rumours that this section may be expanded to 128 characters, so plan for 383 characters.</p>
<p>Oh &#8211; don&#8217;t forget that Internationalised/<a href="http://en.wikipedia.org/wiki/Internationalized_domain_name">Internationalized Domain Names</a> are becoming popular in some countries and unless you want to handle conversion to/from Punycode or another storage format for the IDNs, then you&#8217;ll need to make your database store the email address in Unicode&#8230; However, that appears to cause a problem in some version of MySQL if you store it all in a Varchar field.</p>
<p>So in your programming language (such as PHP), you&#8217;re going to have to keep all the above in mind and then split the email address into two parts for storing in the database for sanity.</p>
<p>See <a href="http://www.faqs.org/rfcs/rfc2821.html">http://www.faqs.org/rfcs/rfc2821.html</a>, <a href="http://en.wikipedia.org/wiki/E-mail_address">http://en.wikipedia.org/wiki/E-mail_address</a>, <a href="http://www.santosj.name/general/stop-doing-email-validation-the-wrong-way/" class="broken_link">http://www.santosj.name/general/stop-doing-email-validation-the-wrong-way/</a> and <a href="http://askville.amazon.com/maximum-length-allowed-email-address/AnswerViewer.do?requestId=1166932">http://askville.amazon.com/maximum-length-allowed-email-address/AnswerViewer.do?requestId=1166932</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rac.me.uk/2008/11/20/snippet-php-mysql-and-idn-email-addresses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

