<?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>chrishorsnell.co.uk &#187; Geeking</title>
	<atom:link href="http://www.chrishorsnell.co.uk/category/geeking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrishorsnell.co.uk</link>
	<description>The ramblings of a techie / geek</description>
	<lastBuildDate>Mon, 24 May 2010 14:08:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Regular Expression for variable names</title>
		<link>http://www.chrishorsnell.co.uk/2010/05/regular-expression-for-variable-names/</link>
		<comments>http://www.chrishorsnell.co.uk/2010/05/regular-expression-for-variable-names/#comments</comments>
		<pubDate>Mon, 24 May 2010 14:08:53 +0000</pubDate>
		<dc:creator>mort</dc:creator>
				<category><![CDATA[Geeking]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.chrishorsnell.co.uk/?p=78</guid>
		<description><![CDATA[So I needed to grab all variables from a script to do various things with, and spent a while tracking down the regular expression to grab valid variable names. The official page on Regular Expression for variable names states &#8216;A     valid variable name starts with a letter or underscore, followed  [...]]]></description>
			<content:encoded><![CDATA[<p>So I needed to grab all variables from a script to do various things with, and spent a while tracking down the regular expression to grab valid variable names. The official page on <a href="http://docs.php.net/manual/en/language.variables.basics.php">Regular Expression for variable names</a> states &#8216;A     valid variable name starts with a letter or underscore, followed     by any number of letters, numbers, or underscores.&#8217;, which is purely the labeling rules for everything after the $.</p>
<p>As well as this we need to also tell it to look for the $ itself, and to output an array of the variables and just the variable names.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://docs.php.net/manual/en/language.variables.basics.php</div>
<p><code>$string = '$Lorem ipsum dolor sit $amet, consectetur '$adipiscing' elit. Vestibulum nulla magna, tristique sit amet tempor ornare, iaculis ut sapien.';<br />
preg_match_all('/[\$]([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/',$</code><code>string</code><code>,$matches);<br />
print_r($matches);</code></p>
<p>This should output:<br />
<code>Array ( [0] =&gt; Array ( [0] =&gt; $Lorem [1] =&gt; $amet [2] =&gt; $adipiscing ) [1] =&gt; Array ( [0] =&gt; Lorem [1] =&gt; amet [2] =&gt; adipiscing ) ) </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrishorsnell.co.uk/2010/05/regular-expression-for-variable-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favourite Firefox plugins</title>
		<link>http://www.chrishorsnell.co.uk/2008/09/favourite-firefox-plugins/</link>
		<comments>http://www.chrishorsnell.co.uk/2008/09/favourite-firefox-plugins/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 15:49:55 +0000</pubDate>
		<dc:creator>mort</dc:creator>
				<category><![CDATA[Geeking]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.chrishorsnell.co.uk/?p=20</guid>
		<description><![CDATA[Web Developer Toolbar
https://addons.mozilla.org/en-US/firefox/addon/60 
Session Manager
https://addons.mozilla.org/en-US/firefox/addon/2324
Forecastfox
https://addons.mozilla.org/en-US/firefox/addon/398
Firefox Showcase
https://addons.mozilla.org/en-US/firefox/addon/1810
Adblock Plus
https://addons.mozilla.org/en-US/firefox/addon/1865
Flash Block
https://addons.mozilla.org/en-US/firefox/addon/433
Download Statusbar
https://addons.mozilla.org/en-US/firefox/addon/26 
Down Them All
https://addons.mozilla.org/en-US/firefox/addon/201
Scrapbook
https://addons.mozilla.org/en-US/firefox/addon/427
VideoDownloader
https://addons.mozilla.org/en-US/firefox/addon/2390
Flashgot
https://addons.mozilla.org/en-US/firefox/addon/220
Downthemall
https://addons.mozilla.org/en-US/firefox/addon/201
Mouse Gestures
https://addons.mozilla.org/en-US/firefox/addon/39


]]></description>
			<content:encoded><![CDATA[<p><span class="postbody"><span style="font-weight: bold;">Web Developer Toolbar</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/60</a> </span></p>
<p><span class="postbody"><span style="font-weight: bold;">Session Manager</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/2324" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/2324</a></span></p>
<p><span style="font-weight: bold;">Forecastfox</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/398" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/398</a></p>
<p><span style="font-weight: bold;">Firefox Showcase</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/1810" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/1810</a></p>
<p><span style="font-weight: bold;">Adblock Plus</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/1865" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/1865</a></p>
<p><span style="font-weight: bold;">Flash Block</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/433" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/433</a></p>
<p><span class="postbody"><span style="font-weight: bold;">Download Statusbar</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/26" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/26</a> </span></p>
<p><span class="postbody"><span style="font-weight: bold;">Down Them All</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/201" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/201</a></span></p>
<p><span style="font-weight: bold;">Scrapbook</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/427" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/427</a></p>
<p><span style="font-weight: bold;">VideoDownloader</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/2390" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/2390</a></p>
<p><span style="font-weight: bold;">Flashgot</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/220" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/220</a></p>
<p><span style="font-weight: bold;">Downthemall</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/201" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/201</a></p>
<p><span style="font-weight: bold;">Mouse Gestures</span><br />
<a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/39" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/39</a></p>
<p><span style="font-weight: bold;"><br />
</span><a class="postlink" href="https://addons.mozilla.org/en-US/firefox/addon/433" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrishorsnell.co.uk/2008/09/favourite-firefox-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Asus EEE 1000 Perfect install with Ubuntu</title>
		<link>http://www.chrishorsnell.co.uk/2008/09/asus-eee-1000-perfect-install-with-ubuntu/</link>
		<comments>http://www.chrishorsnell.co.uk/2008/09/asus-eee-1000-perfect-install-with-ubuntu/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 18:38:37 +0000</pubDate>
		<dc:creator>mort</dc:creator>
				<category><![CDATA[Geeking]]></category>
		<category><![CDATA[eee]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://chrishorsnell.co.uk/?p=3</guid>
		<description><![CDATA[After having owned my EEE 1000 (linux version) for a few weeks now, I have become obsessed with getting the perfect setup.
The onboard OS Xandros is ok, but I got bored with it after 5 minutes and just didnt feel as nice as Ubuntu has on my other machines. The boot time is pretty good [...]]]></description>
			<content:encoded><![CDATA[<p>After having owned my EEE 1000 (linux version) for a few weeks now, I have become obsessed with getting the perfect setup.</p>
<p>The onboard OS Xandros is ok, but I got bored with it after 5 minutes and just didnt feel as nice as Ubuntu has on my other machines. The boot time is pretty good and it &#8216;just works&#8217;, but thats about all it does.</p>
<p><strong>Instructions</strong></p>
<p>First thing you will need is a USB stick (pref 1gb+) and a way of getting Ubuntu onto it. The distro I went for was Ubuntu eee (Hardy Heron 8.04), but you could use stock Ubuntu(Gnome), Xbuntu (XFCE), etc.</p>
<p>Once the ISO is downloaded, use something like unetbootin to make the USB stick bootable and copy it over. More instructions for this can be found <a title="Get Ubuntu EEE" href="http://www.ubuntu-eee.com/index.php5?title=Get_Ubuntu_Eee" target="_self">here.</a></p>
<p>When you have a bootable stick, reboot and hit escape at startup to get the boot menu, choose USB and wait for it to load up.</p>
<p>Once in you get a desktop (as this is a live distro after all), with a single &#8216;install&#8217; icon. Run this and click through until you reach the partition section. You can either wipe the lot so its just ubuntu, or keep xandros on there for the other half / incase you break anything.</p>
<p>Then setup your user account and press go. It will now start to partition and install.</p>
<p>Once that has done, reboot and you have a fresh copy of Ubuntu. Unfortunately not everything will work, you are initially without working wireless and ethernet, amongst a few other things.</p>
<p>The eeeuser.com community seems to think the easiest way to get it all up and running is to install a <a title="Experimental EeePC 901/1000 kernel modules; ready for testing!" href="http://forum.eeeuser.com/viewtopic.php?id=38030" target="_self">custom kernel</a>.</p>
<p>To do this we need to manually download the  two packages</p>
<ol>
<li><a href="http://www.array.org/ubuntu/dists/hardy/eeepc/binary-i386/linux-image-2.6.24-21-eeepc_2.6.24-21.39eeepc1_i386.deb" target="_blank">linux-image-2.6.24-21-eeepc_2.6.24-21.39eeepc1_i386.deb</a></li>
<li><a href="http://www.array.org/ubuntu/dists/hardy/eeepc/binary-i386/linux-ubuntu-modules-2.6.24-21-eeepc_2.6.24-21.30eeepc3_i386.deb" target="_blank">linux-ubuntu-modules-2.6.24-21-eeepc_2.6.24-21.30eeepc3_i386.deb</a></li>
</ol>
<p>and put them onto the eee and run them. Using the terminal, navigate to the directory where you saved the two     .deb packages and use this command.</p>
<p><code>sudo dpkg -i linux-image*.deb linux-ubuntu-modules*.deb</code></p>
<p>Reboot, and you should have a new entry in your GRUB selection. Choose this. When you are booted up you should have net access, so now its time to update your repositories.</p>
<p><code>wget http://www.array.org/ubuntu/array.list</code></p>
<p><code>sudo mv -v array.list /etc/apt/sources.list.d/</code></p>
<p>Install the Array.org repository public key:</p>
<p><code>wget http://www.array.org/ubuntu/array-apt-key.asc</code></p>
<p><code>sudo apt-key add array-apt-key.asc</code></p>
<p><code>sudo apt-get update</code></p>
<p>Finally you need to install the remaining eeepc-optimized kernel components</p>
<p><code>sudo apt-get install linux-eeepc linux-headers-eeepc</code></p>
<p>This should have pretty much everything working except the Fn hotkeys, so see <a href="http://wiki.eeeuser.com/hardy_on_eee901#buttons_activated_by_the_fn_key">how to activate them here.</a> That page has some other useful bits on it too.</p>
<p>Once you have a good working install, back everything up with info from <a title=" Howto: Backup and restore your system!" href="http://ubuntuforums.org/showthread.php?t=35087" target="_self">here<br />
</a></p>
<p>Things that now work</p>
<ul>
<li>Sound</li>
<li>Shutdown bug</li>
<li>Compiz</li>
<li>Webcam</li>
<li>Wireless</li>
<li>Ethernet</li>
<li>Fn keys</li>
<li>Multitouch</li>
</ul>
<p>Things that dont</p>
<ul>
<li>Microphone</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.chrishorsnell.co.uk/2008/09/asus-eee-1000-perfect-install-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
