<?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>Kirrus' Blog</title>
	<atom:link href="http://kirrus.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://kirrus.co.uk</link>
	<description>MindDump. Photos. And random ramblings.</description>
	<lastBuildDate>Sat, 21 Apr 2012 14:22:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Quote of the Day</title>
		<link>http://kirrus.co.uk/2012/04/quote-of-the-day/</link>
		<comments>http://kirrus.co.uk/2012/04/quote-of-the-day/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 14:22:00 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[gold]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[terry pratchett]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=712</guid>
		<description><![CDATA[But in truth it had not exactly been gold, or even the promise of gold, but more like the fantasy of gold, the fairy dream that the gold is there, at the end of the rainbow, and will continue to be there for ever provided, naturally, that you don&#8217;t go and look. This is known [...]]]></description>
			<content:encoded><![CDATA[<p>But in truth it had not exactly been gold, or even the promise of gold, but more like the fantasy of gold, the fairy dream that the gold is there, at the end of the rainbow, and will continue to be there for ever provided, naturally, that you don&#8217;t go and look.</p>
<p>This is known as Finance.</p>
<p>- Terry Pratchett</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/04/quote-of-the-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Linux CLI command execution</title>
		<link>http://kirrus.co.uk/2012/03/mysql-linux-cli-command-execution/</link>
		<comments>http://kirrus.co.uk/2012/03/mysql-linux-cli-command-execution/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 18:08:42 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=706</guid>
		<description><![CDATA[As another aid to my memory, you can run mysql commands on the command line like this: mysql -u user -p[password] database -e "SELECT * FROM orders;". &#160; You can also send the mysql client commands on stdin: echo "SELECT * FROM orders" &#124; mysql -u user -p[password] database &#160; Or read them in with [...]]]></description>
			<content:encoded><![CDATA[<p>As another aid to my memory, you can run mysql commands on the command line like this:</p>
<pre>mysql -u user -p[password] database -e "SELECT * FROM orders;".</pre>
<p>&nbsp;</p>
<p>You can also send the mysql client commands on stdin:</p>
<pre>echo "SELECT * FROM orders" | mysql -u user -p[password] database</pre>
<p>&nbsp;</p>
<p>Or read them in with a file redirection</p>
<pre>mysql -u user -p[password] database &lt; /home/kirrus/orders.sql</pre>
<p>That last one is really handy for reading MySQL dumps back into MySQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/03/mysql-linux-cli-command-execution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL GRANT syntax oddity, show views</title>
		<link>http://kirrus.co.uk/2012/02/mysql-grant-syntax-oddity-show-views/</link>
		<comments>http://kirrus.co.uk/2012/02/mysql-grant-syntax-oddity-show-views/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 19:44:58 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Remember This]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=701</guid>
		<description><![CDATA[So that I don&#8217;t forget: Despite what the documentation says, being unclear (links always have an underscore over there, so it&#8217;s hard to tell difference between a linked underscore linked item, and one merely space-separated), you should grant &#8216;SHOW VIEW&#8217;, not &#8216;SHOW_VIEW&#8217;. Additionally, &#8216;SHOW VIEW&#8217; really needs SELECT permissions as well.]]></description>
			<content:encoded><![CDATA[<p>So that I don&#8217;t forget: Despite what the documentation says, being unclear (links always have an underscore over there, so it&#8217;s hard to tell difference between a linked underscore linked item, and one merely space-separated), you should grant &#8216;SHOW VIEW&#8217;, not &#8216;SHOW_VIEW&#8217;. Additionally, &#8216;SHOW VIEW&#8217; really needs SELECT permissions as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/mysql-grant-syntax-oddity-show-views/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remember this: find recursion</title>
		<link>http://kirrus.co.uk/2012/02/remember-this-find-recursion/</link>
		<comments>http://kirrus.co.uk/2012/02/remember-this-find-recursion/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 18:31:37 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=698</guid>
		<description><![CDATA[I keep forgetting. To limit find&#8217;s recursion, use: find . -maxdepth X Where X is the recursion number. Maxdepth must be before any search selection stuff (type, name, mtime, perm etc).]]></description>
			<content:encoded><![CDATA[<p>I keep forgetting. To limit find&#8217;s recursion, use:</p>
<pre>find . -maxdepth X</pre>
<p>Where X is the recursion number. Maxdepth must be before any search selection stuff (type, name, mtime, perm etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/remember-this-find-recursion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting lots of tiny files really really quickly</title>
		<link>http://kirrus.co.uk/2012/02/deleting-lots-of-tiny-files-really-really-quickly/</link>
		<comments>http://kirrus.co.uk/2012/02/deleting-lots-of-tiny-files-really-really-quickly/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 16:19:06 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=691</guid>
		<description><![CDATA[This is the second half of that magento issue. Mainly, after having got a directory with millions of files in it, you can do one of two things. mv sessions sessions_full &#38;&#38; mkdir sessions &#38;&#38; chown www-data:www-data sessions rm -rfv sessions_full Or find /loc/of/sessions -ctime +1 -type f -exec rm -v {} \;]]></description>
			<content:encoded><![CDATA[<p>This is the second half of that magento issue. Mainly, after having got a directory with millions of files in it, you can do one of two things.</p>
<pre>mv sessions sessions_full &amp;&amp; mkdir sessions &amp;&amp; chown www-data:www-data sessions</pre>
<pre>rm -rfv sessions_full</pre>
<p>Or</p>
<pre>find /loc/of/sessions -ctime +1 -type f -exec rm -v {} \;</pre>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/deleting-lots-of-tiny-files-really-really-quickly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bind refuses to restart, debian squeeze</title>
		<link>http://kirrus.co.uk/2012/02/bind-refuses-to-restart-debian-squeeze/</link>
		<comments>http://kirrus.co.uk/2012/02/bind-refuses-to-restart-debian-squeeze/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 13:34:13 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=681</guid>
		<description><![CDATA[After an upgrade, I&#8217;ve noticed a few times that bind has refused to restart or reload, saying: Stopping domain name service: namedrndc: connect failed: connection refused This seems to be a permissions bug in debian, quite a long lasting one. In order to cheat-fix it quickly, I do the following: chown bind:root /etc/bind/rndc.key chmod 660 [...]]]></description>
			<content:encoded><![CDATA[<p>After an upgrade, I&#8217;ve noticed a few times that bind has refused to restart or reload, saying:</p>
<pre>Stopping domain name service: namedrndc: connect failed: connection refused</pre>
<p>This seems to be a permissions bug in debian, quite a long lasting one. In order to cheat-fix it quickly, I do the following:</p>
<pre>chown bind:root /etc/bind/rndc.key</pre>
<pre>chmod 660</pre>
<pre>/etc/init.d/bind9 restart</pre>
<p>That seems to fix it well enough. I think it&#8217;s a problem in that bind starts as one user, but runs as another. It may be that 440 are all the perms that are necessary. The debian bug report is here: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=169577">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=169577</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/bind-refuses-to-restart-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Session Files</title>
		<link>http://kirrus.co.uk/2012/02/magento-session-files/</link>
		<comments>http://kirrus.co.uk/2012/02/magento-session-files/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 12:40:19 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=679</guid>
		<description><![CDATA[Magento (the popular open-source online shop system) likes to store its PHP session files in ~/public_html/var/session/ Most debian servers don&#8217;t have that in their cron job that deletes old session files. So, you probably want to set it to store it&#8217;s session files in the default location (/var/lib/php5) or alter your cron job (/etc/cron.d/php5) Fun!]]></description>
			<content:encoded><![CDATA[<p>Magento (the popular open-source online shop system) likes to store its PHP session files in ~/public_html/var/session/</p>
<p>Most debian servers don&#8217;t have that in their cron job that deletes old session files.</p>
<p>So, you probably want to set it to store it&#8217;s session files in the default location (/var/lib/php5) or alter your cron job (/etc/cron.d/php5)</p>
<p>Fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/02/magento-session-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The wind is not your friend</title>
		<link>http://kirrus.co.uk/2012/01/the-wind-is-not-your-friend/</link>
		<comments>http://kirrus.co.uk/2012/01/the-wind-is-not-your-friend/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 19:56:31 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=660</guid>
		<description><![CDATA[Cycling home tonight, I had just left work&#8217;s place, onto a stretch  of road with no streetlights. Picture the scene, it&#8217;s just stopped bucketing it down with rain, now spitting. I&#8217;m in wet-weather gear, and it&#8217;s dark. Quite dark. My backpack has a reflective cover, and I&#8217;ve a reflectctive jacket, with a particually annoying LED [...]]]></description>
			<content:encoded><![CDATA[<p>Cycling home tonight, I had just left work&#8217;s place, onto a stretch  of road with no streetlights. Picture the scene, it&#8217;s just stopped bucketing it down with rain, now spitting. I&#8217;m in wet-weather gear, and it&#8217;s dark. Quite dark. My backpack has a reflective cover, and I&#8217;ve a reflectctive jacket, with a particually annoying LED flashing backlight. (I&#8217;m paranoid &#8211; shortly will have red LED flashing in my helmet.)</p>
<p>Got out safely, clipped my feet in fine (I now have special shoes that clip onto my pedals), accelerating towards my average 15-17mph on that particular bit of road, the wind decided to push me, hard, towards the edge of the road. A very small shallow there, with a grassy bank. Wheels in the culvert, uncontrollable de-acceleration, equals me flat across the A road, with one car passing me and another just behind it.</p>
<p>Promtly to the sound of car-horns telling me just how close I&#8217;d come to getting run over, I dragged myself off the road *sharpish*, and dragged my bike off as quick as I could after I was off. I&#8217;ve a couple of very minor abrasions on my ankles. Lucky. Very lucky.</p>
<p>Note to self. When it&#8217;s wet and windy, piss drivers off by sticking a meter off from the side. It&#8217;s far better than getting run over.</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2012/01/the-wind-is-not-your-friend/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Invalid method in request \x16\x03\x01</title>
		<link>http://kirrus.co.uk/2011/10/invalid-method-in-request-x16x03x01/</link>
		<comments>http://kirrus.co.uk/2011/10/invalid-method-in-request-x16x03x01/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 15:02:00 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=651</guid>
		<description><![CDATA[So, ran into this one. Firefox is throwing this error, along with &#8216;SSL_ERROR_RX_RECORD_TOO_LONG&#8217;. Turns out, apache was serving plain HTTP on port 443, as it hadn&#8217;t been given a default SSL config. Other causes may be: Corrupted SSL cert (rare). Mis-configured proxy. Not adding &#8220;SSLEngine On&#8221; after configuring an SSL cert. But mostly, you&#8217;re trying [...]]]></description>
			<content:encoded><![CDATA[<p>So, ran into this one. Firefox is throwing this error, along with &#8216;SSL_ERROR_RX_RECORD_TOO_LONG&#8217;. Turns out, apache was serving plain HTTP on port 443, as it hadn&#8217;t been given a default SSL config.</p>
<p>Other causes may be: Corrupted SSL cert (rare). Mis-configured proxy. Not adding &#8220;SSLEngine On&#8221; after configuring an SSL cert. But mostly, you&#8217;re trying to talk HTTPS to an HTTP serving webserver.</p>
<p>`a2ensite default-ssl` (on debian) fixed it. Well, fixed in in that the default server now has a snake-oil self-signed cert, but, you know, fixed it. <img src='http://kirrus.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2011/10/invalid-method-in-request-x16x03x01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Possible missing firmware on debian squeeze</title>
		<link>http://kirrus.co.uk/2011/10/possible-missing-firmware-on-debian-squeeze/</link>
		<comments>http://kirrus.co.uk/2011/10/possible-missing-firmware-on-debian-squeeze/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 12:55:06 +0000</pubDate>
		<dc:creator>Kirrus</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Remember This]]></category>
		<category><![CDATA[Ubuntu-UK Planet]]></category>

		<guid isPermaLink="false">http://kirrus.co.uk/?p=648</guid>
		<description><![CDATA[If you get these errors: W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169 Do this as root (or using sudo): #  aptitude install [...]]]></description>
			<content:encoded><![CDATA[<pre>If you get these errors:</pre>
<pre>W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169</pre>
<p>Do this as root (or using sudo):</p>
<pre>#  aptitude install firmware-realtek</pre>
<p>Win!</p>
]]></content:encoded>
			<wfw:commentRss>http://kirrus.co.uk/2011/10/possible-missing-firmware-on-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

