<?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>thorx.net &#187; computer</title>
	<atom:link href="http://blog.thorx.net/tag/computer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thorx.net</link>
	<description>...to confuse &#38; unexpect?</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:15:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
  <link>http://blog.thorx.net</link>
  <url>http://blog.thorx.net/wp-uploads/2009/06/sunriselogo_32_white.png</url>
  <title>thorx.net</title>
</image>
		<item>
		<title>new $HOME days 3-6: Desktop Distro Distractions</title>
		<link>http://blog.thorx.net/2012/01/new-home-days-3-6-desktop-distro-distractions/</link>
		<comments>http://blog.thorx.net/2012/01/new-home-days-3-6-desktop-distro-distractions/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 16:18:45 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[$HOME]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[nemo]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=359</guid>
		<description><![CDATA[Like I said, KDE has grown on me, but I'm not quite sure yet if it's a beauty spot, or merely a wart. <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2012/01/new-home-days-3-6-desktop-distro-distractions/">new $HOME days 3-6: Desktop Distro Distractions</a></span>]]></description>
			<content:encoded><![CDATA[<p><em>﻿rebuilding $HOME: Days 3 through 6</em></p>
<p>I was intending on building up my zsh(1) and mutt(1) configs before tackling the rebuild of my desktop &#8211;  the original catalyst of the idea.</p>
<p>But since I was rebuilding my account from across a nearby spare account, I thought I&#8217;d use it to take a peek at gnome3 and Unity, and so did &#8220;apt-get dist-upgrade&#8221; my Ubuntu 11.04 install.</p>
<p>&#8230;</p>
<p>A broken update later, I figured I&#8217;d install from scratch, and have gotten distracted these last few days with exploring XFCE, LXDE, Unity, Gnome3 and KDE. I&#8217;m testing them in a spare account, so as to not clutter up my main $HOME with cruft too quickly while I learn the ropes.</p>
<p>I gotto say, KDE has grown on me. I think its interface is a horrible hodgepodge when it comes to usability &#8211; especially out-of-the-box usability, but behind the stab-your-eyes-out bling, it&#8217;s really quite feature rich, and I&#8217;m all but thinking I&#8217;ll be moving to it. The real question for me is how many of my existing gnome-ish apps do I bring with me (eg: rhythmbox, pidgin), and how many will I adopt the KDE equivalents (konsole probably, dolphin&#8230;</p>
<p>Assuming I *do* go with KDE, mind you&#8230;</p>
<p>Like I said, KDE has grown on me, but I&#8217;m not quite sure yet if it&#8217;s a beauty spot, or merely a wart. (or indeed, a tumor.<em> Itz not a toomaaaa!!</em></p>
<p>Interesting times indeed&#8230; full reviews will come later? =)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2012/01/new-home-days-3-6-desktop-distro-distractions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new $HOME day 1: restoring my files</title>
		<link>http://blog.thorx.net/2011/12/new-home-day-1-restoring-my-files/</link>
		<comments>http://blog.thorx.net/2011/12/new-home-day-1-restoring-my-files/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 00:49:30 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[$HOME]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[nemo]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=352</guid>
		<description><![CDATA[<p>rebuilding $HOME: Days 1 and 2</p> <p>The first thing to do with a new clean (empty) $HOME, is to populate it with my actual files. Not the configuration cruft that is of concern, but my actual &#8220;stuff&#8221;. </p> <p>For my own use, these consist of a variety of directories that are a mix of <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2011/12/new-home-day-1-restoring-my-files/">new $HOME day 1: restoring my files</a></span>]]></description>
			<content:encoded><![CDATA[<p><em>rebuilding $HOME: Days 1 and 2</em></p>
<p>The first thing to do with a new clean (empty) $HOME, is to populate it with my actual files. Not the configuration cruft that is of concern, but my actual &#8220;stuff&#8221;. <span id="more-352"></span></p>
<p>For my own use, these consist of a variety of directories that are a mix of traditional unix system style directory names (eg: etc, lib, var, bin, public_html, Maildir, sin (for <span style="text-decoration: line-through;">tempting</span> tmp files) &#8211; with expected purposes, and more modern GUI styled names (eg: Photos, Videos, Public, Desktop), as well as a few of my own naming (verb, ketchup (for <span style="text-decoration: line-through;">sauce</span> src files <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>Restoring these has largely been a matter of a paranoid comparison between my old recovered $HOME and the last nightly backup (I now have many ~/*/.md5sums files!)</p>
<p>In many cases both versions of a directory were the same, so restore was easy. In a few cases, they were different and a series of `diff -r` between the backup and recovered directories clarified that the changes were only new files, not the corruption of old ones.</p>
<p>Without too much difficulty, some 218 of the 221gig of my original $HOME was restored.</p>
<p>Regarding dotfiles&#8230; I moved a few over quickly &#8211; .ssh .cliverc and .tmux.conf for example (the latter two moving into ~/etc with symlinks), and a few others were created in opening usages (.selected_editor, .lesshst, .cache</p>
<p>Once I start using a GUI again, the dotfile population will explode. I hope I have a greater measure of sanity before then.</p>
<p>Coming soon: shell and email configurations&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2011/12/new-home-day-1-restoring-my-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>but that was my $HOME</title>
		<link>http://blog.thorx.net/2011/12/but-that-was-my-home/</link>
		<comments>http://blog.thorx.net/2011/12/but-that-was-my-home/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 02:47:03 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[$HOME]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[nemo]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=342</guid>
		<description><![CDATA[This is my $HOME. There are many like it, but this one is mine. I'm rebuilding it.  <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2011/12/but-that-was-my-home/">but that was my $HOME</a></span>]]></description>
			<content:encoded><![CDATA[<ul>
<li>I&#8217;m a linux user &#8230;In fact, I&#8217;ve been using linux for a long time &#8211; my first account on a Linux box was at least a year before 1.0 came out.</li>
</ul>
<ul>
<li>I&#8217;m a bit of a hoarder &#8230;arguably more than a &#8220;bit&#8221;, actually.</li>
</ul>
<p>Combine these two points, and I can point to dotfiles in my $HOME directory that date back over a decade. In fact, the oldest four date to 2001&#8230;<span id="more-342"></span></p>
<p>How has this come about? Well, as I&#8217;ve upgraded machines over the years, I&#8217;ve carried my $HOME with me. After all, it has my stuff in it!  Including my customisations. The .bash_profile (2001) for instance, contains the last iteration of my bash prompt before I moved to zsh. (my current zsh prompt can trace it&#8217;s derivation through bash in 2001, all the way back to a <a href="http://en.wikipedia.org/wiki/4DOS">4DOS</a> prompt configuration that I set up around 1994. For the record, I&#8217;ve searched for my old 4DOS configurations, but failed to find them.)</p>
<p>I have dotfiles from obscure chat programs that I no longer use (.goofeypw &#8211; 2002), from apps I&#8217;ve forgotten I ever used (.coldsyncrc &#8211; 2003), apps I&#8217;ve long avoided using (.lynxrc &#8211; 2005), and so on. In some cases they&#8217;re newer files from a utility I still use, but which has changed where it keeps it&#8217;s dotfile data:</p>
<pre>-rw-r--r-- 23 nemo 24576 Oct  6  2009 .clivecache
-rw-r--r-- 23 nemo    43 Oct  6  2009 .clivelast

-rw-r--r-- 2 nemo 364544 Dec 19 22:16 .cache/clive/cache
-rw-r--r-- 2 nemo     26 Dec 19 22:17 .cache/clive/last</pre>
<p>Worst though, is that some of this dotfile cruft causes issues with current apps, since they sometimes attempt to maintain backwards compatibility with older configurations. Notably, I once had competing flash plugins in firefox &#8211; which had the effect that one flash-video based website would refuse to play videos and tell me I had to upgrade to flash 9, whilst about:plugins would happily announce that I HAD flash9. From memory, it was fixed when I found and removed an old flash8 .so that I found sitting in ~/.netscape. Ouch! Other similar oddities have crept into my Gnome2 configuration also, but have as yet resisted resolution.</p>
<p>All of this has driven me to ask&#8230;</p>
<blockquote><p>Am considering a complete $HOME dotfile cruft purge. Reconfigure from scratch all but vitals (eg: .ssh) Anyone else done this? !lazyweb<br />
— <a href="http://identi.ca/conversation/76497802#notice-79056239">@nemo / identi.ca &#8211; July 2011</a></p></blockquote>
<hr />
Now fast forward to Christmas 2011. Now. A system drive crashed and whilst the two RAID1s that constitute the basis of my $HOME LVM were not lost, one did seem a little funny, so I&#8217;ve taken the opportunity to wipe both, and to restore my $HOME from backups.</p>
<p>&#8230;and in doing so, to also clear my dotfile cruft &#8211; only importing what I need, and taking the effort to clean up the configuration of apps which have spaghetti conf files. (mutt, I&#8217;m looking at you especially!)</p>
<p><strong>This is my $HOME. There are many like it, but this one is mine.</strong></p>
<p><strong>&#8230;and I&#8217;m rebuilding it.</strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>This is my story. </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2011/12/but-that-was-my-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi quality JPEG hack</title>
		<link>http://blog.thorx.net/2011/07/multi-quality-jpeg-hack/</link>
		<comments>http://blog.thorx.net/2011/07/multi-quality-jpeg-hack/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 05:55:50 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=284</guid>
		<description><![CDATA[<p>tl;dr: In which I attempt to montage jpeg which comprises areas of differing internal jpeg quality, for fun and, er&#8230; artistic geeky interest. You see, once upon a time, I was thinking about lossless jpeg editing. The sort that jpegtran can do.</p> jpegtran (1) - lossless transformation of JPEG files <p>Specifically, jpegtran can (with <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2011/07/multi-quality-jpeg-hack/">Multi quality JPEG hack</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>tl;dr:</strong> In which I attempt to montage jpeg which comprises areas of differing <strong>internal jpeg quality</strong>, for fun and, er&#8230;<span style="text-decoration: line-through;"> artistic</span> geeky interest.<br />
<span id="more-284"></span>You see, once upon a time, I was thinking about lossless jpeg editing. The sort that jpegtran can do.</p>
<pre>jpegtran (1)         - lossless transformation of JPEG files</pre>
<p>Specifically, jpegtran can (with some understandable limits) rotate/flip and mirror losslessly, and also crop &#8211; for values of &#8220;lossless&#8221; that only apply to the cropped image data.</p>
<p>I soon got to wondering if the reverse could also be true. If jpeg image data can be cropped losslessly; then it must not rely on surrounding data and so surely paste is equally possible.</p>
<p>I researched some and found&#8230; <a href="http://www.imagemagick.org/Usage/formats/#jpg_lossless">http://www.imagemagick.org/Usage/formats/#jpg_lossless</a>. If you scroll down to the &#8216;Mixed JPEG Quality&#8217; section it&#8217;s suggested:</p>
<blockquote><p>* use jpegtran to merge the q60 on top of the q100</p></blockquote>
<p>&#8220;So&#8221;, I thinks to myself, &#8220;&#8230;jpegtran can do that, huh?&#8221;</p>
<p>Turns out that it can&#8217;t. Not the version currently in Debian anyway.</p>
<p>&#8230;But an experimental version can. See the version that the chaps have here: <a href="http://jpegclub.org/jpegtran/">http://jpegclub.org/jpegtran/</a></p>
<div id="attachment_285" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-285" href="http://blog.thorx.net/2011/07/multi-quality-jpeg-hack/kwalitee/"><img class="size-medium wp-image-285" title="kwalitee" src="http://blog.thorx.net/wp-uploads/2011/06/kwalitee-300x192.jpg" alt="Multi Quality JPEG" width="300" height="192" /></a><p class="wp-caption-text">Only the original 1600x1024 is a true quality hybrid</p></div>
<p>The information on that page indicates to me that the &#8216;drop&#8217; option has been experimental since 2000 at least&#8230; and I wonder why it&#8217;s not mainstream then. But, let&#8217;s take a look anyway. There are helpful binaries and a sample script provided, but I had something a bit more fun in mind.</p>
<p>One download later, and some fiddling around&#8230; and here is this! IMAG KWALITEE for all!</p>
<p>Counting from the bottom where it&#8217;s most evident, the rows of 80 pixels high each are of quality 1, 4, 5, 6, 7, 8, 9, 10, 15, 20, 50, and the final 144 pixels at the top are original (ie, camera sourced jpeg with text composited in and saved at quality 100).</p>
<p>The resulting image is 153k in size. In this example, a normal save of the source (captioned) image at a quality of 72 results in an image of equivalent size.</p>
<p>Speaking of size, since the cropped rows exist as images on their own, I can also see how much space each quality section uses.  So the  q1 row (80pixels high &#8211; or about 8% of the final image) is just a tad  over 3k in size &#8211; that is, about 2% of the bytes, and even the quality 50  stripe is only 8k &#8211; 5.5% of the bytes. However, the q100 stripe at the  top &#8211; 144 pixels comprising 14% of the pixel space, and is a whopping 66% of  the bytes!</p>
<p>In another example image, I discovered that you cannot drop a  colour segment onto a greyscale image (but you CAN drop a greyscale  segment onto a colour image, and then subsequently drop a colour segment  within the greyscale. The resulting possum is shown, but I wont go into the making-of here.</p>
<h3>Additional notes</h3>
<p>In creating this, I found a few caveats&#8230;</p>
<div id="attachment_296" class="wp-caption alignright" style="width: 310px"><a rel="attachment wp-att-296" href="http://blog.thorx.net/2011/07/multi-quality-jpeg-hack/possum_final/"><img class="size-medium wp-image-296" title="Possum with border" src="http://blog.thorx.net/wp-uploads/2011/06/possum_final-300x200.jpg" alt="Jpeg multi-quality hack of a possum " width="300" height="200" /></a><p class="wp-caption-text">This tree is terrible! It has a monotone border bits AND bad compression</p></div>
<ul>
<li> Make sure the crops and drops are aligned on the jpeg iMCU  boundaries, or headaches ensue since the crop size will be silently  altered in position (as, I think, is the drop). I made all my changes on  the boundary of 16&#215;16 blocks, though 8&#215;8 is also possible (I believe this may depend on  the jpeg)</li>
<li> I had to set the caption text to a light grey after I found that pure white  would cause jpeg errors when dropping (DCT coefficient out of range). I  don&#8217;t know if this is a bug, or just a limitation in what&#8217;s possible due  to jpeg encoding.</li>
<li> A colour jpeg loses it&#8217;s colour when dropped onto a greyscale jpeg. Specifically:
<ol>
<li> crop &#8216;cropped.jpg&#8217; from colour source.jpg</li>
<li> also create greyscale.jpg from source.jpg</li>
<li> drop &#8216;cropped.jpg&#8217; back onto the original location within greyscale.jpg to create merged.jpg</li>
<li> merged.jpg is not a grey-with-colour-segment jpeg, but is all grey. in fact, it&#8217;s so grey that merged.jpg and greyscale.jpg are binary identical!</li>
</ol>
<ul>
<li> note: tested just once :)</li>
</ul>
</li>
<li> real-world practical applications of this? <a href="http://www.photopla.net/wwp0703/stripes.php">http://www.photopla.net/wwp0703/stripes.php</a> &#8230;that&#8217;s probably about it. Any stylistic effect from this is likely achievable with less effort via a standard photo editor (The GIMP, etc) with the cost of a few % in filesize when saving at a high enough quality to ensure actual jpeg artifacts don&#8217;t spoil the effect.</li>
</ul>
<p>This page is derived from my wiki notes on the subject, which include additional information/updates for the inquisitive.</p>
<p>See: <a href="http://wiki.thorx.net/wiki/JPEGhack">http://wiki.thorx.net/wiki/JPEGhack</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2011/07/multi-quality-jpeg-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>my experiment in custom iPhone ringtones via linux</title>
		<link>http://blog.thorx.net/2010/08/my-experiment-in-custom-iphone-ringtones-via-linux/</link>
		<comments>http://blog.thorx.net/2010/08/my-experiment-in-custom-iphone-ringtones-via-linux/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 15:04:06 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=194</guid>
		<description><![CDATA[<p>thanks to recent nautilus (I assume is responsible &#8211; as seen in Ubuntu Lucid Lynx) ability to view the iPhones file paths, we can try this (typing this as I go, so this is draft on-the-fly quality notes)</p> <p>* create an m4a file (I made mine exactly 40seconds according to audacity and saved as <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2010/08/my-experiment-in-custom-iphone-ringtones-via-linux/">my experiment in custom iPhone ringtones via linux</a></span>]]></description>
			<content:encoded><![CDATA[<p>thanks to recent nautilus (I assume is responsible &#8211; as seen in Ubuntu Lucid Lynx) ability to view the iPhones file paths, we can try this (typing this as I go, so this is draft on-the-fly quality notes)<span id="more-194"></span></p>
<p>* create an m4a file (I made mine exactly 40seconds according to audacity and saved as a .wav, then used faac to convert to m4a (faac in.wav &#8211;title &#8220;ringtone experiment&#8221; -o tone.m4a ; mv tone.m4a tone.m4r)</p>
<p>* copy tone into iPhone://iTunes_Control/Ringtones/tone.m4r</p>
<p>* edit iPhone://iTunes_Control/iTunes/Ringtones.plist to add in the details of the new ringtone. Fortunately I had an existing one already, so I just copied that &#8211; updating the GUID (I changed one character), the Name (&#8220;funky new ringtone&#8221;) and the Total Time (40000) fields.</p>
<p>&#8230;and bingo, the ringtone is visible in the settings (selectable, plays), but does not lock in as the ringtone to use! ok, clearly some work needed.</p>
<p>incidentally, this is a 32GB iPhone 3Gs with iOS4.0.2, never been jailbroken or anything underhanded done to it before. It was unlocked from the carrier a few days ago (thanks .au law) and that required a lengthy restore, but otherwise smooth.</p>
<p>&#8230;ok, so back to it: plugged it into iTunes (Mac) &#8211; it couldn&#8217;t read from the device (an error!)</p>
<p>&#8230;rebooted phone &#8211; and the new ring tone now works correctly. YAY! =)  is this success?</p>
<p>&#8230;plugging it into iTunes again and&#8230; it&#8217;s all &#8220;Verifying iPhone&#8221; at me &#8211; something I don&#8217;t generally recall. &#8230;ok, it&#8217;s backing up as normal now&#8230;</p>
<p>and the ringtone tab in iTunes tells me it doesn&#8217;t know about the tone I added in, it&#8217;s syncing, so I suspect it&#8217;ll delete my added tone&#8230;</p>
<p>&#8230;and checking in my iPhone after it&#8217;s done, what do you know &#8211; my custom added ringtone is all gone. Checking back via linux &#8211; and the tone.m4r file has been deleted, Ringtones.plist has been completely rewritten.</p>
<p>So, I assume (not surprisingly at all) that iTunes needs to know about it, as the authorative master, and tell the iPhone how it&#8217;s gonna be. This fits with my observed philosophy of the iPhone &#8211; as an adjunct to the master information on the computer.</p>
<p>&#8230;</p>
<p>so, round 2&#8230; I add the m4r into the iTunes library &#8211; it automatically adds it in as a ringtone &#8211; that&#8217;s nice. I assume iTunes assumed it was a ringtone by the file extension. And in the iPhone tab it shows up as available to be sync&#8217;d&#8230; and bingo. it works.</p>
<p>ok, so not a pure linux solution &#8211; unless you never sync your phone to iTunes anyway &#8211; but it DOES let you make a custom ringtone without requiring garageband. That&#8217;s something isn&#8217;t it?</p>
<p>And I assume the method would work under windows too&#8230; anyone want to give it a go and get back to me? <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2010/08/my-experiment-in-custom-iphone-ringtones-via-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>building a better atq</title>
		<link>http://blog.thorx.net/2010/06/building-a-better-atq/</link>
		<comments>http://blog.thorx.net/2010/06/building-a-better-atq/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 05:27:02 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[interface]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=175</guid>
		<description><![CDATA[<p>I was frustrated at the poor information available by atq (what&#8217;s that? You&#8217;ll tell me WHEN you&#8217;re running stuff, but not WHAT you&#8217;re running? This seems a little out of order!)</p> <p>In fact, atq is literally out of order &#8211; I guess the idea is that you pipe it through sort. very very old-school <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2010/06/building-a-better-atq/">building a better atq</a></span>]]></description>
			<content:encoded><![CDATA[<p>I was frustrated at the poor information available by atq (what&#8217;s that? You&#8217;ll tell me WHEN you&#8217;re running stuff, but not WHAT you&#8217;re running? This seems a little out of order!)</p>
<p>In fact, atq is literally out of order &#8211; I guess the idea is that you pipe it through sort. very very old-school thinking <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>At the other end of the scale, <code>at -c</code> provides an information overload of EVERYTHING about the job. (60+ lines of env? yikes. I don&#8217;t need to know that most of the time!)</p>
<p>So where is the simple and useful summary that I&#8217;d genuinely expect of atq?<br />
ie, not only the queued command times, but WHAT those commands are &#8211; one per line.</p>
<p>As a result, here is my simple &#8220;batq&#8221; &#8211; a better atq <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre>#!/bin/bash

# a better atq
#
# returns the original atq output in bold
# AND IN ADDITION, ALSO:
# * returns items sorted
# * the intended working directory
# * the command to be run
#
        # TODO:
        # $command is not robust - will fail on multiple lines

function do_extraqinfo() {
    while read job ; do
        jobid=$(echo $job | awk '{print $1}')
        detail=$(at -c $jobid)
        dir=$(echo "$detail" | egrep ^cd | sed -e 's/cd \(.*\) || {/\1/g')
        command=$(echo "$detail" | tail -1)
        # alter the following line if the bold offends you
        tput bold ; echo -n "$job" ; tput sgr0
        echo "  $dir    $command"
    done
} 

atq | sort | do_extraqinfo</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2010/06/building-a-better-atq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>as hot as&#8230; summer of &#8217;10</title>
		<link>http://blog.thorx.net/2010/03/as-hot-as-summer-of-10/</link>
		<comments>http://blog.thorx.net/2010/03/as-hot-as-summer-of-10/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 14:43:11 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=150</guid>
		<description><![CDATA[<p>So once again, my quarterly report on the temperature range outside my rack at knee level, and inside my rack at shoulder level &#8211; above two machines. </p> <p>To summarise the previous posts&#8230;</p> Winter: <p>The room: 14 – 30.5C</p> <p>The rack: 23.3 – 43.4C</p> Spring: <p>The room: 14.4 – 33.8C</p> <p>The rack: 22.6 – <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2010/03/as-hot-as-summer-of-10/">as hot as&#8230; summer of &#8217;10</a></span>]]></description>
			<content:encoded><![CDATA[<p>So once again, my quarterly report on the temperature range outside my rack at knee level, and inside my rack at shoulder level &#8211; above two machines. <span id="more-150"></span></p>
<p>To summarise the previous posts&#8230;</p>
<h3><a href="http://blog.thorx.net/2009/09/as-hot-as/">Winter</a>:</h3>
<p>The room: 14 – 30.5C</p>
<p>The rack: 23.3 – 43.4C</p>
<h3><a href="http://blog.thorx.net/2009/12/as-hot-as-end-spring-edition/">Spring</a>:</h3>
<p>The room: 14.4 – 33.8C</p>
<p>The rack: 22.6 – 45C</p>
<p>And newly&#8230;</p>
<h2>Summer:</h2>
<p>The room:<strong> 19.6 &#8211; 34.9C</strong><br />
The rack: <strong>27.9 &#8211; 45.7C</strong></p>
<p>The seasonal trend is there. Not unexpected for it to be there, just nice to know what it is, quantitatively. <strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2010/03/as-hot-as-summer-of-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>augmented thinking</title>
		<link>http://blog.thorx.net/2010/02/augmented-thinking/</link>
		<comments>http://blog.thorx.net/2010/02/augmented-thinking/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 12:32:24 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[invent]]></category>
		<category><![CDATA[nemo]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=145</guid>
		<description><![CDATA[<p>Now this, I am sure you will agree, is a damn cool presentation of some excellent ideas.</p> <p>http://www.ted.com/talks/blaise_aguera.html</p> <p>If you haven&#8217;t seen it, then do so now.</p> <p>If you have, proceed&#8230; </p> <p>So if I can be allowed to blow my own horn for a moment, I&#8217;d like to boast that I occasionally seem <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2010/02/augmented-thinking/">augmented thinking</a></span>]]></description>
			<content:encoded><![CDATA[<p>Now this, I am sure you will agree, is a damn cool presentation of some excellent ideas.</p>
<p><a href="http://www.ted.com/talks/blaise_aguera.html">http://www.ted.com/talks/blaise_aguera.html</a></p>
<p>If you haven&#8217;t seen it, then do so now.</p>
<p>If you have, proceed&#8230; <span id="more-145"></span></p>
<p>So if I can be allowed to blow my own horn for a moment, I&#8217;d like to boast that I occasionally seem to have quite marvelous ideas independently or others. Admittedly, others who were lucky enough to think of it earlier enough and/or had resources enough to make something of it. But my claim is that I sometimes think of these things _independently_.</p>
<p>And it has has been said of inventing &#8211; the best inventions are obvious, which is why it&#8217;s so humbling to remember that one didn&#8217;t think of these &#8216;obvious&#8217; things themselves.</p>
<p>But in my case, can I finally &#8220;prove&#8221; that I did&#8230;?</p>
<p>Back to the video &#8211; I&#8217;d like to draw your attention to a point approximately 3:45 in: &#8220;<em>&#8230;time travel. I&#8217;m not going to show you some of the wonderful historic imagery in here &#8211; there&#8217;s some in here with horses and carriages as well [...] it also is the foundation for augmented reality</em>&#8220;.</p>
<p>Now compare with an email of mine to a friend, where I wrote this:</p>
<blockquote><p>What would be kind of cool: augmented reality goggles (this is one of those ideas I had years before I knew there was a word for it) that show recreated historical versions of the world&#8230; but, instead of just showing a certain era, you see the &#8216;prettiest&#8217; building at any given location. Making a best-of-all-possible-eras virtual world <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p>So as far as I can tell (can anyone confirm?), this talk was made on Feb 11 or 12 (based on dated video comments afterwards). My email has a date stamp of: 10 Feb 2010 15:17:07 +1000). And, frankly, even if the video was recorded first, I sure didn&#8217;t see it till today <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="padding-left: 30px;">As an aside, my email was prompted by a rather ugly house I see regularly in town, and my own wonderings if it used to be pretty&#8230;</p>
<ul style="padding-left: 30px;">
<li>
<ul>
<li><a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;q=Brunswick+St+%26+Harcourt+St,+New+Farm+Queensland+4006,+Australia&amp;sll=-27.461548,153.038886&amp;sspn=0.002727,0.003567&amp;ie=UTF8&amp;cd=1&amp;geocode=FVL4XP4dJDAfCQ&amp;split=0&amp;hq=&amp;hnear=Brunswick+St+%26+Harcourt+St,+Queensland,+Australia&amp;ll=-27.461548,153.038886&amp;spn=0.00128,0.003567&amp;t=h&amp;z=18&amp;layer=c&amp;cbll=-27.46155,153.038884&amp;panoid=OvEa6_G-rsGUP_lyJfVLJA&amp;cbp=11,190.56,,0,-5.02">Contemporary Google maps street view</a></li>
<li><a href="http://www.qm.qld.gov.au/features/qldhouse/evolution.asp">Sometime pre 1994, it was ugly then too</a></li>
<li><a href="http://www.qm.qld.gov.au/features/qldhouse/evo-build.asp">Circa 1930s &#8211; it was gorgeous. </a></li>
</ul>
</li>
</ul>
<p style="padding-left: 30px;">I especially love how you get basically the same angle on all three &#8211; which was, of course, the key to my own inspiration <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So clearly, the next thing for me to work out is real time travel &#8211; at which point I can begin to start sending these <a href="http://wiki.thorx.net/">ideas of mine</a> back to people in the past with the resources to make them a reality asap! =)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2010/02/augmented-thinking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>as hot as, end of spring edition</title>
		<link>http://blog.thorx.net/2009/12/as-hot-as-end-spring-edition/</link>
		<comments>http://blog.thorx.net/2009/12/as-hot-as-end-spring-edition/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 14:12:55 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=136</guid>
		<description><![CDATA[<p>Previously I posted winter temperature ranges in the ThorxBlog post: as hot as&#8230;</p> <p>Here are the spring results</p> <p>So in 3 months of spring, the ‘indoor’ (outside the rack) temperatures: 14.4 – 33.8C</p> <p>And the “outdoor” (inside the rack) for the same winter season: 22.6 – 45C</p> <p>So in short &#8211; not too different <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2009/12/as-hot-as-end-spring-edition/">as hot as, end of spring edition</a></span>]]></description>
			<content:encoded><![CDATA[<p>Previously I posted winter temperature ranges in the ThorxBlog post: <a href="/2009/09/as-hot-as/">as hot as&#8230;</a></p>
<p>Here are the spring results</p>
<p>So in 3 months of spring, the ‘indoor’ (outside the rack) temperatures:<strong> 14.4 – 33.8C</strong></p>
<p>And the “outdoor” (inside the rack) for the same winter season: <strong>22.6 – 45C</strong></p>
<p>So in short &#8211; not too different from winter&#8230; a couple of degrees warmer all around&#8230; though I bet a bellcurve plot of common temperatures would show a slightly different bias to the story too.</p>
<p>Thermometer reset, and into summer&#8230; hello summer!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2009/12/as-hot-as-end-spring-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux UI: crippling itself?</title>
		<link>http://blog.thorx.net/2009/10/linux-ui-crippling-itself/</link>
		<comments>http://blog.thorx.net/2009/10/linux-ui-crippling-itself/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 06:52:37 +0000</pubDate>
		<dc:creator>nemo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://blog.thorx.net/?p=95</guid>
		<description><![CDATA[<p>I was recently talking with a friend about commandline prompt gadgetry, and our tangent conversations drifted to 256colour support in X terminal emulators. xterm. gnome-terminal, and presumably kterm and others also, though only the first two have I looked at.</p> <p>256 colour support is there. It&#8217;s in the code. It works. It&#8217;s nice. And <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.thorx.net/2009/10/linux-ui-crippling-itself/">Linux UI: crippling itself?</a></span>]]></description>
			<content:encoded><![CDATA[<p>I was recently talking with a friend about commandline prompt gadgetry, and our tangent conversations drifted to 256colour support in X terminal emulators. xterm. gnome-terminal, and presumably kterm and others also, though only the first two have I looked at.</p>
<p>256 colour support is there. It&#8217;s in the code. It works. It&#8217;s nice. And it&#8217;s&#8230; not only not enabled by default, there is no clear and simple way of enabling it even if you WANTED TO.</p>
<p>I was going to blog more about this, but the following IRC fragment I think says it all. Any questions?<br />
<span id="more-95"></span></p>
<pre>&lt;nemo&gt; it'd be sure nice for a distro to set itself up with no self-crippling
        for ancient stuff that, frankly, nobody is using anymore
&lt;nemo&gt; (or if they do, then it's being used by people savvy enough (probably)
        to work out the compatibility issues themselves
&lt;nemo&gt; ubuntu does a good step, I think, but probably not enough
&lt;nemo&gt; 256colours should be the GLOBAL DEFAULT these days
&lt;Screwtape&gt; Every time somebody suggests that, they get shouted down by people
        who say things like 'BUT WHAT HAPPENS WHEN I SSH TO MY
        FreeBSD/OpenBSD/Solaris/Dragonfly/Xenix MACHINE!'
&lt;Screwtape&gt; We can't even figure out whether backspace should be ^H or ^? <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />
&lt;nemo&gt; [a] don't use this distro then
&lt;Screwtape&gt; It's hardly global domination if everybody stops using it. <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />
&lt;nemo&gt; it's hardly global domination if we're compromising ourselves for the
        compatibility of those who DON'T use it
&lt;nemo&gt; [b] have a nifty 'set_maximum_compatibility' script, which backwardsify
        everything

...

&lt;nemo&gt; so, what else has potential, but is held back by... historical compatibility?
&lt;nemo&gt; and by 'potential', I mean "it's there on your system now, just waiting for
        you to apply the correct settings'
&lt;nemo&gt; I am identifying terminal colours, and default prompts
&lt;nemo&gt; (terminal colours, and all the terminals, applications (screen, elinks, etc),
        etc that go with.
&lt;Screwtape&gt; I.. can't think of anything else off the top of my head, sadly. <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />
&lt;Screwtape&gt; Or perhaps luckily.
...</pre>
<p style="text-align: left;">
<p style="text-align: left;">In fairness, it&#8217;s not like it&#8217;s not been noticed before:</p>
<pre>...
&lt;nemo&gt; https://bugzilla.gnome.org/show_bug.cgi?id=121800
&lt;nemo&gt; 2003... status new
&lt;nemo&gt; wtf
&lt;nemo&gt; https://bugzilla.gnome.org/show_bug.cgi?id=115750
&lt;nemo&gt; amuses me that my no-X11 server has terminfo for 'gnome' and 'gnome-256color',
        but my ubuntu desktop does not
...</pre>
<p style="text-align: left;">
<p style="text-align: left;">And in case anyone wants to bring their terminal into the 21st century with 256colours instead of 8 (&#8220;<tt>tput colors</tt>&#8221; will tell you what yours can do), Screwtape has a nice little writeup here:</p>
<pre>...
&lt;Screwtape&gt; <a href="http://screwtape.jottit.com/automatic_%24term_selection">http://screwtape.jottit.com/automatic_%24term_selection</a> &lt;-- Here's my
        automatic $TERM hack.</pre>
<p style="text-align: left;">
<p style="text-align: center;">&#8230;</p>
<p style="text-align: left;">PS: As a final note: Shortly after this conversation, Screwtape filed the following debian bug report for vim&#8217;s syntax handling of sh scripts:  <a href=" http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552108">vim-runtime: sh syntax highlighting should default to POSIX.</a></p>
<p style="text-align: center;">&#8230;</p>
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;"><em>PPS: Originally blogged to: <a href="http://blog.thorx.net/2009/10/linux-ui-crippling-itself">http://blog.thorx.net/2009/10/linux-ui-crippling-itself</a>. Please consider leaving comments at the blog rather than facebook or other social media side that this post may be propagated to. Thankyou <img src='http://blog.thorx.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thorx.net/2009/10/linux-ui-crippling-itself/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

