<?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>Stokebloke Blog</title>
	<atom:link href="http://www.stokebloke.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stokebloke.com/wordpress</link>
	<description></description>
	<lastBuildDate>Sun, 29 Aug 2010 14:58:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>T Online DNS server is pants</title>
		<link>http://www.stokebloke.com/wordpress/2010/08/29/t-online-dns-server-is-pants/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/08/29/t-online-dns-server-is-pants/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 14:58:49 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[tonline]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=953</guid>
		<description><![CDATA[For the last few days random DNS lookups have failed and returned t onlines stupid dns error page.   T Online hasnt really been that bad, but I never liked these error pages from the ISP. http://downforeveryoneorjustme.com/ showed that in every case the website was up. Today I got a google dns error. I mean google [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few days random DNS lookups have failed and returned t onlines stupid dns error page.   T Online hasnt really been that bad, but I never liked these error pages from the ISP.</p>
<p><a href="http://downforeveryoneorjustme.com/">http://downforeveryoneorjustme.com/</a> showed that in every case the website was up.</p>
<p>Today I got a google dns error.  I mean google for f**ks sake.</p>
<p><a href="http://www.stokebloke.com/wordpress/wp-content/uploads/2010/08/tonline_problem.jpg"><img class="aligncenter size-medium wp-image-954" title="tonline_problem" src="http://www.stokebloke.com/wordpress/wp-content/uploads/2010/08/tonline_problem-300x285.jpg" alt="" width="300" height="285" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/08/29/t-online-dns-server-is-pants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another one bites the dust.</title>
		<link>http://www.stokebloke.com/wordpress/2010/08/20/another-one-bites-the-dust/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/08/20/another-one-bites-the-dust/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 11:25:39 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=951</guid>
		<description><![CDATA[I have now finished another web site. I&#8217;m supposed to be on holiday but I have been setting up another web site for my brother. Design Seating is a fairly simple site but they wanted it to be kept clean and simple. I think is came out quite well.]]></description>
			<content:encoded><![CDATA[<p>I have now finished another web site.</p>
<p>I&#8217;m supposed to be on holiday but I have been setting up another web site for my brother.</p>
<p><a href="http://www.designseating.net">Design Seating</a> is a fairly simple site but they wanted it to be kept clean and simple.</p>
<p>I think is came out quite well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/08/20/another-one-bites-the-dust/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>just 4 kidz &#8211; up and running</title>
		<link>http://www.stokebloke.com/wordpress/2010/06/30/just-4-kidz-up-and-running/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/06/30/just-4-kidz-up-and-running/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 17:17:28 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=944</guid>
		<description><![CDATA[After quite a lot of effort and illnesses, which caused many lost weeks of work, www.just4kidz.org.uk is up and running and taking orders. Its a website my brother and his girlfriend are running to sell great children&#8217;s clothes at great prices. I&#8217;m sure I never had anything like this Thomas The Tank Engine jeans when [...]]]></description>
			<content:encoded><![CDATA[<p>After quite a lot of effort and illnesses, which caused many lost weeks of work, <a href="http://www.just4kidz.org.uk">www.just4kidz.org.uk</a> is up and running and taking orders.</p>
<p>Its a website my brother and his girlfriend are running to sell great children&#8217;s clothes at great prices.</p>
<p>I&#8217;m sure I never had anything like this <a href="http://www.just4kidz.org.uk/list.php?dir=trousers">Thomas The Tank Engine jeans</a> when I was young and I think I have seen Sam wearing a T-Shirt like the <a href="http://www.just4kidz.org.uk/list.php?dir=tops">Spider Man T-Shirt.</a></p>
<p>Steve was the great artist who came up with the logo.  Its a bit over the top but they wanted the website to be bright.  Its simply a combination of 3 images from <a href="http://www.openclipart.org">openclipart.org</a> merged together in Inkscape.</p>
<p>The original website they were given looked like something from the 90s with anim gifs and flash everywhere.</p>
<p>They had flash images on the page which were the main menus links, unfortunately each one opened a different named target (i.e new tab/browser) <img src='http://www.stokebloke.com/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I have no idea how people can get away will doing such rubbish.</p>
<p>I now want to add a simple admin section for my brother to add new items and remove items when they are out of stock, but this shouldn&#8217;t take long now.  Then I shouldn&#8217;t have to do anything too it again.</p>
<p>I also had to fix a lightbox problem because of the length of the page.  E.g on the <a href="http://www.just4kidz.org.uk/dungarees.htm">Dungarees</a> page.  You can see my previous post <a href="/wordpress/2010/06/18/lightbox-v2-problem-with-the-positioning-on-long-pages/">here</a>.</p>
<p>I think the items need more close up images of the childrens logos too.  Like on the thomas the tank engine jeans, they should have a close up of thomas logo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/06/30/just-4-kidz-up-and-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightbox v2 problem with the positioning on long pages</title>
		<link>http://www.stokebloke.com/wordpress/2010/06/18/lightbox-v2-problem-with-the-positioning-on-long-pages/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/06/18/lightbox-v2-problem-with-the-positioning-on-long-pages/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 07:55:45 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[lightbox]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=939</guid>
		<description><![CDATA[I have recently been integrating Lightbox v2 into a few websites, but on one if these I started to see something very strange. On pages which were long there was a problem with the Lightbox &#8216;window&#8217; appearing very low on the page or ever off the bottom of the page. The problem gets worse the [...]]]></description>
			<content:encoded><![CDATA[<p>
I have recently been integrating <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox v2</a> into a few websites, but on one if these I started to see something very strange.
</p>
<p>
On pages which were long there was a problem with the Lightbox &#8216;window&#8217; appearing very low on the page or ever off the bottom of the page.
</p>
<p>
The problem gets worse the further down the page you go.  So at the top of the page the lightbox location is correct, half way down the page it was only about 100 pixels off, but by the end of the page the top of the lightbox window is below the centre of the screen and ends below the bottom of the browser.
</p>
<p>
After some searching I found a few other pages with the same problem.  One being <a href="http://www.huddletogether.com/forum/comments.php?DiscussionID=4345">here</a>.
</p>
<p>
The problem is caused by a bit of code in the <code>lightbox.js</code> file.  For some reason the top of the lightbox is calculated based on the height of the view port.  I don&#8217;t know why this is done, but it doesnt work.
</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> lightboxTop <span style="color: #339933;">=</span> arrayPageScroll<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">viewport</span>.<span style="color: #660066;">getHeight</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>
I simply wanted the lightbox to appear in the same location regardless of how far the user has scrolled down the page.  I changed the line to be this :
</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> lightboxTop <span style="color: #339933;">=</span> <span style="color: #CC0000;">50</span> <span style="color: #339933;">+</span> arrayPageScroll<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p>
This makes the lightbox &#8216;window&#8217; appear 50 pixels from the top of the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/06/18/lightbox-v2-problem-with-the-positioning-on-long-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lego Piste Basher</title>
		<link>http://www.stokebloke.com/wordpress/2010/05/26/lego-piste-basher/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/05/26/lego-piste-basher/#comments</comments>
		<pubDate>Wed, 26 May 2010 09:03:15 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Toys]]></category>
		<category><![CDATA[basher]]></category>
		<category><![CDATA[Lego]]></category>
		<category><![CDATA[piste]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=934</guid>
		<description><![CDATA[I&#8217;m too excited. My Lego Piste Basher has just arrived. I&#8217;m just a big kid]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m too excited.</p>
<p>My Lego Piste Basher has just arrived.</p>
<p><a href="http://www.stokebloke.com/wordpress/wp-content/uploads/2010/05/lego_piste_basher.jpg"><img src="http://www.stokebloke.com/wordpress/wp-content/uploads/2010/05/lego_piste_basher-300x204.jpg" alt="" title="lego_piste_basher" width="300" height="204" class="aligncenter size-medium wp-image-936" /></a></p>
<p><a href="http://www.stokebloke.com/wordpress/wp-content/uploads/2010/05/lego_piste_basher2.jpg"><img src="http://www.stokebloke.com/wordpress/wp-content/uploads/2010/05/lego_piste_basher2-300x202.jpg" alt="" title="lego_piste_basher2" width="300" height="202" class="aligncenter size-medium wp-image-935" /></a></p>
<p>I&#8217;m just a big kid <img src='http://www.stokebloke.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/05/26/lego-piste-basher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blender and the Space Navigator under Gentoo</title>
		<link>http://www.stokebloke.com/wordpress/2010/05/22/blender-and-the-space-navigator-under-gentoo/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/05/22/blender-and-the-space-navigator-under-gentoo/#comments</comments>
		<pubDate>Sat, 22 May 2010 13:37:21 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Blender]]></category>
		<category><![CDATA[Graphical]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=918</guid>
		<description><![CDATA[I have used Blender for some years now and I recently began to think about buying a 3dconnexion Space Navigator. I read that Blender and the Space Navigator worked under Linux and managed to borrow a Space Navigator from work over this long weekend. I downloaded the 32bit drivers (3DxWare for Linux (i386)) from http://www.3dconnexion.com/service/drivers.html [...]]]></description>
			<content:encoded><![CDATA[<p>I have used <a href="http://www.blender.org">Blender</a> for some years now and I recently began to think about buying a <a href="http://www.3dconnexion.com">3dconnexion</a> <a href="http://www.3dconnexion.com/products/spacenavigator.html">Space Navigator</a>.</p>
<p><a href="/wordpress/wp-content/uploads/2010/05/space_naviagator.jpg"><img class="aligncenter size-medium wp-image-919" title="space_naviagator" src="/wordpress/wp-content/uploads/2010/05/space_naviagator-300x280.jpg" alt="" width="300" height="280" /></a></p>
<p>I read that <a href="http://www.blender.org">Blender</a> and the <a href="http://www.3dconnexion.com/products/spacenavigator.html">Space Navigator</a> worked under Linux and managed to borrow a Space Navigator from work over this long weekend.</p>
<p>I downloaded the 32bit drivers (<a title="Download Driver" onclick="wiredminds.count('3dxware-linux-v1-4-3.i386.tar.gz');" href="http://www.3dconnexion.com/index.php?eID=sdl&amp;ext=tx_iccsoftware&amp;oid=b9f5aba7-3671-2c8d-238f-4afd600256b2&amp;filename=3dxware-linux-v1-4-3.i386.tar.gz&amp;ap1=SpaceNavigator&amp;ap2=Linux&amp;ap3=">3DxWare  for Linux (i386)</a>) from <a href="http://www.3dconnexion.com/service/drivers.html">http://www.3dconnexion.com/service/drivers.html</a> as well as the &#8220;<a title="Download Driver" onclick="wiredminds.count('3DxBlender2_47-Linux-i386.zip');" href="http://www.3dconnexion.com/index.php?eID=sdl&amp;ext=tx_iccsoftware&amp;oid=27237638-d168-4cc6-bc67-4b1fe78de7c4&amp;filename=3DxBlender2_47-Linux-i386.zip&amp;ap1=SpaceNavigator&amp;ap2=Linux&amp;ap3=">Blender  plug-in for Linux i386 (beta)</a>&#8220;</p>
<h3>Installing the Space Navigator driver</h3>
<p>I extracted the 3dxware-linux-v1-4-3.i386.tar.gz file to /tmp/3d/</p>
<pre>tar -xvzf 3dxware-linux-v1-4-3.i386.tar.gz -C /tmp/3d/
cd /tmp/3d/
sudo ./install-3dxunix.sh</pre>
<p>I then recieved an error saying libXm.so.3 was missing.</p>
<p><code>/etc/3DxWare/daemon/3dxsrv: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory</code></p>
<p>I pressed CTRL-C to abort the script.</p>
<p>After a little checking I found that I have libXm.so.4 but not 3, so I created a symbolic link from libXm 4 to 3.</p>
<pre>sudo ln -s /usr/lib/libXm.so /usr/lib/libXm.so.3</pre>
<p>I then re-ran the install script again.</p>
<p>This time it all worked.  I did not configure it to auto start though.</p>
<p>Now I simply started the driver via</p>
<pre>sudo /etc/3DxWare/daemon/3dxsrv -d usb</pre>
<p>and was greeted by the blue lights on the Space Navigator and the messages</p>
<pre>3DxWareUNIX = V1.4.3
Device      = SpaceNavigator
Firmware    = V3.17</pre>
<p>there was also a minimised window called 3DxWare 1.4.3, which appears the be the settings dialog (like the Windows Control Panel control)</p>
<p><a href="/wordpress/wp-content/uploads/2010/05/3dxware.jpg"><img class="aligncenter size-medium wp-image-921" title="3dxware" src="/wordpress/wp-content/uploads/2010/05/3dxware-300x270.jpg" alt="" width="300" height="270" /></a></p>
<p>I then ran the xcube example from /tmp/3d/ and the space navigator worked great.  I changed a few settings as I prefer pressing and pulling to be zoom in and out.</p>
<h3>Installing the Blender plugin</h3>
<p>I was a little surprised by this, as the forums said I should have a ~/.blender/ directory and I didnt.</p>
<p>I decided that creating the directory couldn&#8217;t cause any problems so I created a directory</p>
<pre>mkdir -p ~/.blender/plugins/</pre>
<p>and copied the 3DxNdofBlender.plug file into it.  The new NDOF icons appeared at the bottom of the viewport.  See <a href="http://www.blender.org/development/release-logs/blender-246/ndof-support/">http://www.blender.org/development/release-logs/blender-246/ndof-support/</a></p>
<p><a href="/wordpress/wp-content/uploads/2010/05/blender_ndof.jpg"><img class="aligncenter size-full wp-image-922" title="blender_ndof" src="/wordpress/wp-content/uploads/2010/05/blender_ndof.jpg" alt="" width="240" height="201" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/05/22/blender-and-the-space-navigator-under-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deviant Art Portfolio</title>
		<link>http://www.stokebloke.com/wordpress/2010/04/09/deviant-art-portfolio/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/04/09/deviant-art-portfolio/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 09:14:06 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Graphical]]></category>
		<category><![CDATA[photographs]]></category>
		<category><![CDATA[Snowboarding]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=472</guid>
		<description><![CDATA[I have been using DeviantArt for some years now.  See http://neilwightman.deviantart.com/ Recently they added new portfolio section which I really like.  I have only added a few photos to my portfolio @ http://neilwightman.daportfolio.com/]]></description>
			<content:encoded><![CDATA[<p>I have been using DeviantArt for some years now.  </p>
<p>See <a href="http://neilwightman.deviantart.com/">http://neilwightman.deviantart.com/</a></p>
<p>Recently they added new portfolio section which I really like.  I have only added a few photos to my portfolio @ <a href="http://neilwightman.daportfolio.com/">http://neilwightman.daportfolio.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/04/09/deviant-art-portfolio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Alt-Right click to resize</title>
		<link>http://www.stokebloke.com/wordpress/2010/04/09/ubuntu-alt-right-click-to-resize/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/04/09/ubuntu-alt-right-click-to-resize/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 09:06:19 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[window manager]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=880</guid>
		<description><![CDATA[I recently moved my laptop from a Gentoo Linux distribution to Ubuntu. This was mainly that the rebuild time was very slow and updating my laptop, with gentoo, would take hours if not days. I decided to move to a binary distribution and chose Ubuntu. There was no real reason I chose Ubuntu over any [...]]]></description>
			<content:encoded><![CDATA[<p>I recently moved my laptop from a Gentoo Linux distribution to Ubuntu.   This was mainly that the rebuild time was very slow and updating my laptop, with gentoo, would take hours if not days.  I decided to move to a binary distribution and chose Ubuntu.  There was no real reason I chose Ubuntu over any other though.</p>
<p>Most of the setup was easy, the only issue I found was that Ubuntu uses Alt-Middle Mouse to resize the windows.  I have used xfce for years and I just couldn&#8217;t get used to this change in Ubuntu.</p>
<p>I did alot of searching and could not find out how to change it.</p>
<p>&#8230;. some hours later &#8230;</p>
<p>Well I finally managed to get Ubuntu to resize with Alt-Right Click (button3).</p>
<p>By default Ubuntu resizes with Alt-Middle Mouse Button, my laptop mouse has a very small middle mouse button.  I use xfce on my other linux boxes and I wanted all the Window Managers to function the same.</p>
<p>I tried installing the CompizConfig Settings Manager.  I then disabled the Window Menu which was using Alt-Button 3 and went to the resize window setting and made that Alt-Button3.   This seemed to be ok, until I tested it.  The Alt-Button 3 was still showing the Window Menu.</p>
<p>I tried disabling the Window Menu totally, but the settings simply wouldnt stay.</p>
<p>After a bit of searching I found this.<br />
<a href="https://bugs.launchpad.net/ubuntu/+source/compizconfig-settings-manager/+bug/146736">https://bugs.launchpad.net/ubuntu/+source/compizconfig-settings-manager/+bug/146736</a><br />
where it says:</p>
<blockquote><p>open ccsm, go to Preferences, and if gconf is selected as a back-end, then make sure that the checkbox &#8220;Enable integration into the desktop environment&#8221; is unchecked.<br />
Now you change change the bindings.</p></blockquote>
<p>I&#8217;m not 100% what the &#8220;Enable integration into the desktop environment&#8221; checkbox provides, but everything seems to work ok with this checkbox disabled.</p>
<p>Also see <a href="http://wiki.compiz.org/CCSM#Backends_and_Integration">http://wiki.compiz.org/CCSM#Backends_and_Integration</a></p>
<p>This workaround only works when you have the visual affects no though.  If you turn off the visual affect then compiz isnt controlling the right click any more and it goes straight back to opening the Window Menu.   </p>
<p>I&#8217;m still trying to get the window manager to resize on right click without the visual effects being enabled.  If anyone know, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/04/09/ubuntu-alt-right-click-to-resize/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Lech 2010</title>
		<link>http://www.stokebloke.com/wordpress/2010/04/02/lech-2010/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/04/02/lech-2010/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 14:23:20 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Snowboarding]]></category>
		<category><![CDATA[holiday]]></category>
		<category><![CDATA[mountain]]></category>
		<category><![CDATA[photographs]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=885</guid>
		<description><![CDATA[Steve and I had a great time in Lech. The weather was really nice and sunny, good enough to snowboard in a T-shirt. I took lots of photographs which are in the Lech 2010 gallery. Like this I also created some new panoramic images. These are here We didnt take much video, that may be [...]]]></description>
			<content:encoded><![CDATA[<p>Steve and I had a great time in Lech.  The weather was really nice and sunny, good enough to snowboard in a T-shirt.</p>
<p>I took lots of photographs which are in the <a href="/gallery.php?dir=photographs/Lech 2010">Lech 2010</a> gallery.</p>
<p>Like this <a href="/view.php?file=photographs/Lech%202010/dsc01300.jpg"><img src="/photographs/Lech 2010/dsc01300_s.jpg"></a></p>
<p>I also created some new panoramic images.  These are <a href="/gallery.php?dir=pano/gallery/Lech 2010">here</a></p>
<p>We didnt take much video, that may be a good thing as I still have hours of videos from other trips which I have not processed yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/04/02/lech-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indent/Format the whole buffer in Emacs</title>
		<link>http://www.stokebloke.com/wordpress/2010/02/08/indentformat-the-whole-buffer-in-emacs/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/02/08/indentformat-the-whole-buffer-in-emacs/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:48:12 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=873</guid>
		<description><![CDATA[I have had an indent-buffer command like this for some time, which formats the whole current buffer. I used it for java, c++, css, html, xml and lisp. &#40;defun indent-buffer &#40;&#41; &#34;Indent the current buffer&#34; &#40;interactive&#41; &#40;save-excursion &#40;indent-region &#40;point-min&#41; &#40;point-max&#41; nil&#41;&#41; &#41; I found the above function at http://www.emacswiki.org/cgi-bin/wiki/ReformatBuffer Recently I noticed that it was [...]]]></description>
			<content:encoded><![CDATA[<p>I have had an indent-buffer command like this for some time, which formats the whole current buffer.  I used it for java, c++, css, html, xml and lisp.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> indent-buffer <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Indent the current buffer&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion <span style="color: #66cc66;">&#40;</span>indent-region <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>I found the above function at <a href="http://www.emacswiki.org/cgi-bin/wiki/ReformatBuffer">http://www.emacswiki.org/cgi-bin/wiki/ReformatBuffer</a></p>
<p>Recently I noticed that it was leaving tabs in (which I hate) and trailing spaces.  It was simply just indenting the buffer.</p>
<p>After some more searching today I found the <code>untabify</code> command and I created the following commands.  Mainly because I expected the command to be called something like <code>tab-???</code></p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> untabify-buffer <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Untabify current buffer&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion <span style="color: #66cc66;">&#40;</span>untabify <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> tab-to-spaces <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Convert tab to spaces&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion <span style="color: #66cc66;">&#40;</span>untabify <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>I then found this page, <a href="http://emacsblog.org/2007/01/17/indent-whole-buffer/">http://emacsblog.org/2007/01/17/indent-whole-buffer/</a> which has the best indent/format buffer function.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> indent-buffer-<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Indent the buffer 2&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion
        <span style="color: #66cc66;">&#40;</span>delete-trailing-whitespace<span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#40;</span>indent-region <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#40;</span>untabify <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/02/08/indentformat-the-whole-buffer-in-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
