<?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 &#187; Linux</title>
	<atom:link href="http://www.stokebloke.com/wordpress/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stokebloke.com/wordpress</link>
	<description></description>
	<lastBuildDate>Sun, 08 Jan 2012 15:52:11 +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>Enabling bootchart with Fedora 16</title>
		<link>http://www.stokebloke.com/wordpress/2012/01/08/enabling-bootchart-with-fedora-16/</link>
		<comments>http://www.stokebloke.com/wordpress/2012/01/08/enabling-bootchart-with-fedora-16/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 15:47:08 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bootchart]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=1054</guid>
		<description><![CDATA[To install bootchart under fedora simply run yum install bootchart Once installed you simply need to enable a grub entry to call it.  You just need to add the init=/sbin/bootchartd string to the end of the kernel settings. I actually copied the existing kernel entry and added it (incase I mistyped something) title Fedora (3.1.6-1.fc16.i686.PAE) [...]]]></description>
			<content:encoded><![CDATA[<p>To install bootchart under fedora simply run</p>
<pre>yum install bootchart</pre>
<p>Once installed you simply need to enable a grub entry to call it.  You just need to add the init=/sbin/bootchartd string to the end of the kernel settings.</p>
<p>I actually copied the existing kernel entry and added it (incase I mistyped something)</p>
<pre>title Fedora (3.1.6-1.fc16.i686.PAE) with bootchart
    root (hd2,0)
    kernel /vmlinuz-3.1.6-1.fc16.i686.PAE ro root=/dev/md126 rd_NO_LUKS rd_NO_LVM rd_NO_DM    LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 \
          KEYTABLE=de-latin1-nodeadkeys rhgb \
          quiet nouveau.modeset=0 rdblacklist=nouveau \
          <b>init=/sbin/bootchartd</b>
    initrd /initramfs-3.1.6-1.fc16.i686.PAE.img</pre>
<p>Now when I reboot and select this grub entry a bootchart file is written to <code>/var/log/bootchart.tgz</code></p>
<p>Then run the bootchart command to generate an image of the results.</p>
<p><a href="http://www.stokebloke.com/wordpress/wp-content/uploads/2012/01/bootchart.png"><img class="aligncenter size-medium wp-image-1055" title="bootchart fedora 16" src="http://www.stokebloke.com/wordpress/wp-content/uploads/2012/01/bootchart-139x300.png" alt="Bootchart results from my fedora 16 installation" width="139" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2012/01/08/enabling-bootchart-with-fedora-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora enable memtest</title>
		<link>http://www.stokebloke.com/wordpress/2012/01/05/fedora-enable-memtest/</link>
		<comments>http://www.stokebloke.com/wordpress/2012/01/05/fedora-enable-memtest/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 08:38:47 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[memtest]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=1047</guid>
		<description><![CDATA[Well I started to have some strange crashes from some programs and this morning my PC just turned itself off. I really expected it to be a memory problem so I needed to enable memtest86+ on my new fedora installation. I quickly found http://fooninja.net/2011/05/05/loading-memtest-from-grub-fedora/ This is still valid. Simply append title Memtest86+ (4.10) root (hd0,4) [...]]]></description>
			<content:encoded><![CDATA[<p>Well I started to have some strange crashes from some programs and this morning my PC just turned itself off.</p>
<p>I really expected it to be a memory problem so I needed to enable <a href="http://www.memtest.org/">memtest86+ </a>on my new fedora installation.</p>
<p>I quickly found <a href="http://fooninja.net/2011/05/05/loading-memtest-from-grub-fedora/">http://fooninja.net/2011/05/05/loading-memtest-from-grub-fedora/</a></p>
<p>This is still valid.</p>
<p>Simply append</p>
<pre>title Memtest86+ (4.10)
    root (hd0,4)
    kernel --type=netbsd /elf-memtest86+-4.10</pre>
<p>to the end of the <code>/boot/grub/grub.conf</code> and reboot</p>
<p>Voilà errors <a href="http://www.stokebloke.com/wordpress/wp-content/uploads/2012/01/memtest.jpg"><img class="aligncenter size-medium wp-image-1048" title="Memtest failure" src="http://www.stokebloke.com/wordpress/wp-content/uploads/2012/01/memtest-300x200.jpg" alt="Memtest86+ screen shot" width="300" height="200" /></a>now I just need to figure out which memory to take out <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/2012/01/05/fedora-enable-memtest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable resize grip in Ubuntu 11.04</title>
		<link>http://www.stokebloke.com/wordpress/2011/05/17/disable-resize-grip-in-ubuntu-11-04/</link>
		<comments>http://www.stokebloke.com/wordpress/2011/05/17/disable-resize-grip-in-ubuntu-11-04/#comments</comments>
		<pubDate>Tue, 17 May 2011 16:00:59 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=1040</guid>
		<description><![CDATA[If you don&#8217;t like the big resize grip on emacs, firefox and many other applications you can disable them in Ubuntu 11.04. See http://www.omgubuntu.co.uk/2011/05/disable-the-resize-grip-in-ubuntu-11-04/ You simply need to add style "default-style" { GtkWindow::resize-grip-height = 0 GtkWindow::resize-grip-width = 0 } class "GtkWidget" style "default-style" to your ~/.gtkrc-2.0 file.]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t like the big resize grip on emacs, firefox and many other applications you can disable them in Ubuntu 11.04.</p>
<p>See<br />
<a href="http://www.omgubuntu.co.uk/2011/05/disable-the-resize-grip-in-ubuntu-11-04/">http://www.omgubuntu.co.uk/2011/05/disable-the-resize-grip-in-ubuntu-11-04/</a></p>
<p>You simply need to add</p>
<pre>style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"</pre>
<p>to your <code>~/.gtkrc-2.0<code> file.</code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2011/05/17/disable-resize-grip-in-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Overlay Scrollbars in Ubuntu 11.04</title>
		<link>http://www.stokebloke.com/wordpress/2011/04/30/disable-overlay-scrollbars-in-ubuntu-11-04/</link>
		<comments>http://www.stokebloke.com/wordpress/2011/04/30/disable-overlay-scrollbars-in-ubuntu-11-04/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 10:29:52 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=1030</guid>
		<description><![CDATA[I updated my Ubuntu to 11.04 yesterday and really didn&#8217;t like the new scroll bars. After a little searching I found http://www.worthytips.com/14681/easily-disable-overlay-scrollbars.html http://www.matbra.com/en/2011/04/28/remover-ou-desabilitar-a-barra-de-rolagem-overlay-ubuntu-11-04/ and many more. Simply add the string &#8220;export LIBOVERLAY_SCROLLBAR=0&#8243; into the /etc/X11/Xsession.d/80overlayscrollbars file. E.g perform the following as root echo "export LIBOVERLAY_SCROLLBAR=0" &#62; /etc/X11/Xsession.d/80overlayscrollbars]]></description>
			<content:encoded><![CDATA[<p>I updated my Ubuntu to 11.04 yesterday and really didn&#8217;t like the new scroll bars.</p>
<p>After a little searching I found</p>
<ul>
<li>http://www.worthytips.com/14681/easily-disable-overlay-scrollbars.html</li>
<li>http://www.matbra.com/en/2011/04/28/remover-ou-desabilitar-a-barra-de-rolagem-overlay-ubuntu-11-04/</li>
<li>and many more.</li>
</ul>
<p>Simply add the string &#8220;export LIBOVERLAY_SCROLLBAR=0&#8243; into the /etc/X11/Xsession.d/80overlayscrollbars file.</p>
<p>E.g perform the following as root</p>
<pre>echo "export LIBOVERLAY_SCROLLBAR=0" &gt; /etc/X11/Xsession.d/80overlayscrollbars</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2011/04/30/disable-overlay-scrollbars-in-ubuntu-11-04/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>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>7</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>1</slash:comments>
		</item>
		<item>
		<title>Home and End key with rxvt</title>
		<link>http://www.stokebloke.com/wordpress/2009/03/31/home-and-end-key-with-rxvt/</link>
		<comments>http://www.stokebloke.com/wordpress/2009/03/31/home-and-end-key-with-rxvt/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:18:38 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[rxvt]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=291</guid>
		<description><![CDATA[I use cygwins rxvt at work and have had problems with the End and Home key not working. the good german dvd I also had the same issue at home using rxvt-unicode download bug dvd on gentoo. download angels fall movie порно с малолетками фото After lots of search last night I finally found the [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://www.cygwin.org">cygwin</a>s rxvt at work and have had problems with the End and Home key not working.</p>
<ul style="display:none">
<li><a href="http://www.thunderstruck.org/?the_good_german">the good german dvd</a></li>
</ul>
<p>I also had the same issue at home using <a href="http://en.gentoo-wiki.com/wiki/Rxvt-Unicode">rxvt-unicode</a></p>
<ul style="display:none">
<li><a href="http://www.oca-gla.org/?bug">download bug dvd</a></li>
</ul>
<p>  on gentoo.</p>
<p> <em style="display:none"></em></p>
<ul style="display:none">
<li></li>
</ul>
<p>
<div style="display:none"><a href="http://www.oca-gla.org/?angels_fall">download angels fall movie</a></p>
<div style="display:none"><a href="http://wranmsq.co.cc/main/porno_s_maloletkami_foto.html">порно с малолетками фото</a></div>
</p>
</div>
<p> After lots of search last night I finally found the fix for urxvt.</p>
<p>Simply add this to your ~/.inputrc file</p>
<pre># home and end keys for rxvt
"\e[7~":beginning-of-line
"\e[8~":end-of-line</pre>
<p> <strong style="display:none"><a href="http://www.investorsunited.com/ask-ian-blog/?when_harry_met_sally">when harry met sally movie download</a></strong>  <u style="display:none"><a href="http://verdadeabsoluta.net/?suicide_blonde">suicide blonde movie download</a></u> </p>
<p>I then tried this at work this morning and found it works on cygwins rxvt too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2009/03/31/home-and-end-key-with-rxvt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH and rsync through a socks proxy</title>
		<link>http://www.stokebloke.com/wordpress/2008/12/17/ssh-and-rsync-through-a-socks-proxy/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/12/17/ssh-and-rsync-through-a-socks-proxy/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 12:17:51 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[socks]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=141</guid>
		<description><![CDATA[I&#8217;ve been using Dropbox for quite some time to transfer files from work to my home PCs. This is worked well for months, but I finally filled my dropbox account. watch life less ordinary a online As I have a linux box at work and a linux box at home I decided to try and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.getdropbox.com/">Dropbox</a> for quite some time to transfer files from work to my home PCs.  This is worked well for months, but I finally filled my dropbox account.</p>
<p> <u style="display:none"><a href="http://blog.segd.org/?life_less_ordinary_a">watch life less ordinary a online</a></u> As I have a linux box at work and a linux box at home I decided to try and setup some simply one way mirroring system.  I.e. mirror documents from work to my home PC.</p>
<p>I looked at using <a href="http://www.cis.upenn.edu/~bcpierce/unison/">unison</a>, which I used to mirror many other directories but I couldnt get it to connect out from my work PC.   It appears to lack socks support.  I know I could use <a href="http://alliance.seas.upenn.edu/~bcpierce/wiki/index.php?n=Main.UnisonFAQTips">ssh port forwarding to sync</a> via sockets but this would be more complicated.</p>
<p>I decided to use <a href="http://en.wikipedia.org/wiki/Rsync">rsync </a></p>
<p style="display:none"><a href="http://www.thunderstruck.org/?dreamland">dreamland online download</a></p>
<p> via ssh.</p>
<p>There was one main issue though, I needed to get ssh to work over our proxies.  We have a few http proxies and 1 socks proxy.  The http proxies will not connect to arbitrary ports so I ended up using the socks server.</p>
<p> <strong style="display:none"><a href="http://artsinbushwick.org?religulous">download religulous dvd</a></strong></p>
<ul style="display:none">
<li><a href="http://blog.pdma.org?missing_lynx">download missing lynx</a></li>
</ul>
<p>I knew the socks server worked as I&#8217;ve used it with <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">putty</a> <strong style="display:none"><a href="http://blog.pdma.org?hannah_montana_the_movie">watch hannah montana the movie online</a></strong>  for years, so I just needed to figure out how to setup ssh to use it.</p>
<p>After lots of search and finding articles regarding port forwarding and nothing about using a socks proxy I found <a href="http://blog.paulbetts.org/index.php/2008/04/08/getting-ssh-to-connect-through-a-socks-proxy/">1 good article</a>.</p>
<p>I use gentoo linux so I emerged <a href="http://www.gentoo-portage.com/net-misc/connect">net-misc/connect</a> which supports socks servers.</p>
<pre>emerge -auv net-misc/connect</pre>
<p>Once I had the connect utility installed I needed to edit my ssh config file.  I only have 1 user configured on my linux box at work so I edited the ~/.ssh/config file.</p>
<p>This is what I added</p>
<pre>Host stokebloke.com
ProxyCommand connect -S user@socks-server:1080 %h %p

Host www.stokebloke.com
ProxyCommand connect -S user@socks-server:1080 %h %p

Host homebox.homelinux.net
ProxyCommand connect -S user@socks-server:1080 %h %p</pre>
<p>You can also do the same thing with cygwin too.  Instead of using connect program its called <a href="http://cygwin.com/packages/connect-proxy/connect-proxy-1.100-1">connect-proxy</a> in the network section of the cygwin installer.</p>
<p>After I got this far I needed to configure rsync to work via this ssh connection which, it turns out, is very simple.</p>
<pre>rsync --progress -avrz -e ssh src_dir/ user@homebox.homelinux.net:~/dest_dir/</pre>
<p>This results in the src_dir existing inside the dest_dir.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/12/17/ssh-and-rsync-through-a-socks-proxy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AVI to FLV with ffmpeg</title>
		<link>http://www.stokebloke.com/wordpress/2008/06/09/avi-to-flv-with-ffmpeg/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/06/09/avi-to-flv-with-ffmpeg/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 08:35:53 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flowplayer]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=50</guid>
		<description><![CDATA[I used to have all my videos on my website as divx or xvid encoded AVI. This is a pain as you have to download the files to play them. I found FlowPlayer and it works really well. I used to use flvtool to encode videos as flv files but it is not part of [...]]]></description>
			<content:encoded><![CDATA[<p>I used to have all my videos on my website as divx or xvid encoded AVI.  This is a pain as you have to download the files to play them.</p>
<p>I found <a href="http://flowplayer.org/">FlowPlayer </a>and it works really well.  I used to use <a href="http://www.inlet-media.de/flvtool2">flvtool</a> to encode videos as flv files but it is not part of gentoo and I had to keep manually downloading and building it all the time to get the updates.</p>
<p><div style="display:none"><a href="http://artsinbushwick.org?kismat_konnection">kismat konnection movie</a></div>
<p> I recently found <a href="http://www.db75.com/blog/archives/000177.html">this article</a> which shows how to use <a href="http://ffmpeg.mplayerhq.hu/">ffmpeg </a>to encode videos as flv files.</p>
<p><code>ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320x256 video.flv</code></p>
<p> <strong style="display:none"><a href="http://pie-flex.com/album/?outlaw_trail_the_treasure_of_butch_cassidy">download outlaw trail the treasure of butch cassidy</a> <strong style="display:none"><a href="http://constantinessword.com?doctor_zhivago">download doctor zhivago dvd</a></strong> </strong> </p>
<p>I then use the flv with FlowPlayer like this</p>
<pre>&lt;object type="application/x-shockwave-flash"
    data="/include/FlowPlayer.swf"
    width="320"
    height="284"
    id="FlowPlayer1"&gt;
  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
  &lt;param name="movie" value="/include/FlowPlayer.swf" /&gt;
  &lt;param name="quality" value="high" /&gt;
  &lt;param name="scale" value="noScale" /&gt;
  &lt;param name="wmode" value="transparent" /&gt;
  &lt;param name="allowNetworking" value="all" /&gt;

  &lt;param name="flashvars" value="config={
		autoPlay: false,
		loop: false,
		initialScale: 'scale',
		showLoopButton: false,
		showPlayListButtons: false,
		playList: [
			{ url: '/media/tux_07.flv' }
		]
		}" /&gt;
&lt;/object&gt;</pre>
<p>See <a href="/media/tux_07.php">Hintertux 2007</a> for an example.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/06/09/avi-to-flv-with-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

