<?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>Lachlan.Rogers.name &#187; GNU/Linux</title>
	<atom:link href="http://lachlan.rogers.name/tag/gnulinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://lachlan.rogers.name</link>
	<description>An online home</description>
	<lastBuildDate>Mon, 04 Jul 2011 12:54:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Renaming photos to give attribution</title>
		<link>http://lachlan.rogers.name/2010/02/renaming-photos-to-give-attribution/</link>
		<comments>http://lachlan.rogers.name/2010/02/renaming-photos-to-give-attribution/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 10:44:43 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=585</guid>
		<description><![CDATA[At ASA Convention, a number of us took many photographs.  Late on the last night, I helped compile the highlights into a souvenir data DVD.  Using the nifty little exiv2 utility, I was able to adjust the image timestamps and retrospectively synchronise the clocks in every camera.  This makes for very enjoyable photo browsing, as [...]]]></description>
			<content:encoded><![CDATA[<p>At ASA Convention, a number of us took many photographs.  Late on the last night, I helped compile the highlights into a souvenir data DVD.  Using the nifty little <code>exiv2</code> utility, I was able to adjust the image timestamps and retrospectively synchronise the clocks in every camera.  This makes for very enjoyable photo browsing, as you can view chronologically regardless of which camera was used.</p>
<p>Unfortunately I was too rushed to place attribution in the filenames, and so it is not obvious who took each photo.  Luckily we all used different camera models, and that information is still present in the exif metadata.  I used this to split the photos into directories and embed the photographer in both metadata and filename.</p>
<p>I was shooting on my Nikon D200, and so was able to separate my photos by:</p>
<p><code>for ii in *.jpg; do if grep -q "NIKON D200" $ii ; then mv $ii lachlan/ ; fi ; done</code></p>
<p>This says: for each jpg file, check if it contains &#8220;NIKON D200&#8243; in the exif metadata and if it does then move it to the subdirectory lachlan/</p>
<p>All you need to do is find the camera model string to search for (my friends with Canons had things like &#8220;Canon EOS 30D&#8221;).  Now I&#8217;m going to append photographer names to the filenames, and then return them to their original chronological directories.</p>
<p>[<em>For Facebook Notes readers: this post is redirected from my personal website <a title="Lachlan.Rogers.name &gt;&gt; Renaming photos to give attribution" href="http://lachlan.rogers.name/2010/02/renaming-photos-to-give-attribution/">lachlan.rogers.name</a></em>]</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2010/02/renaming-photos-to-give-attribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Producing handout with LaTeX Beamer</title>
		<link>http://lachlan.rogers.name/2009/11/producing-handout-with-latex-beamer/</link>
		<comments>http://lachlan.rogers.name/2009/11/producing-handout-with-latex-beamer/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 12:23:52 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[bash shell]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=489</guid>
		<description><![CDATA[I jotted this down a year ago when I needed to produce a set of handout notes for a 3rd year physics lecture I took. Just last week, after taking a similar set of lectures, I wanted to find it but couldn&#8217;t. Murphy&#8217;s Law has come into effect, and my jotted note has turned up [...]]]></description>
			<content:encoded><![CDATA[<p>I jotted this down a year ago when I needed to produce a set of handout notes for a 3rd year physics lecture I took.  Just last week, after taking a similar set of lectures, I wanted to find it but couldn&#8217;t.  Murphy&#8217;s Law has come into effect, and my jotted note has turned up now that my need for it has passed.</p>
<p>The Beamer class for LaTeX is a great way to produce very nice presentation slides with useful features such as automatic progress markers and internal hyperlinks.  Being LaTeX, it is also possible to completely change the output formatting by simply altering certain document settings.  This allows me to produce slides that have black backgrounds for better projection onto a screen, and then change a single line (specifying the colour theme) to get a white-background version optimised for printing on paper.</p>
<p>To make it even more efficient to print, I used the following command to fit 3 slides to an A4 page:</p>
<p><code>pdfnup  --frame false --nup 1x3 --paper a4paper --orient auto --pages all --trim "0 0 0 0" --delta "1cm 1cm" --offset "0 0" --scale 0.91 --turn true --noautoscale false --openright false --column false --columnstrict false --tidy true --outfile main3up.pdf main.pdf</code></p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2009/11/producing-handout-with-latex-beamer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting video files for playback on Android Google Phone</title>
		<link>http://lachlan.rogers.name/2009/09/converting-video-files-for-playback-on-android-google-phone/</link>
		<comments>http://lachlan.rogers.name/2009/09/converting-video-files-for-playback-on-android-google-phone/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 05:53:50 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=565</guid>
		<description><![CDATA[A few months ago I purchased a &#8220;Google Phone&#8221;: a HTC Magic running the Linux-based Android operating system. I am incredibly pleased with this device. Today I wanted to convert some video that I recorded on a Nikon Coolpix camera into a format that would play nicely on my Android phone. The resolution needed to [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I purchased a &#8220;Google Phone&#8221;: a HTC Magic running the Linux-based Android operating system.  I am incredibly pleased with this device.</p>
<p>Today I wanted to convert some video that I recorded on a Nikon Coolpix camera into a format that would play nicely on my Android phone.  The resolution needed to be scaled down for the small screen, and I knew that h264 was the best video codec.  After some searching online, and a bit of experimenting, I found that this worked wonderfully:</p>
<p><code>ffmpeg -i input.avi -aspect 3:2 -s 400x300 -vcodec libx264 -b 480k -r 30 -acodec libfaac -ac 1 -ab 32k -padtop 10 -padbottom 10 -padleft 40 -padright 40 -sameq -pass 1 output.mp4</code></p>
<p><span id="more-565"></span>This is a two-pass process, and so this command should be repeated a second time with the last option changed to &#8220;-pass 2&#8243;.</p>
<p>The &#8220;pad&#8221; options are to make the geometry work.  The screen on the HTC Magic has a resolution of 480&#215;320 pixels, which is a 3:2 aspect ratio.  The video I was converting had an aspect ratio of 4:3, and so it conveniently scaled to 400&#215;300.  The paddings fill the video out to the full 480&#215;320, ensuring that the aspect ratio is right during playback.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2009/09/converting-video-files-for-playback-on-android-google-phone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photo file-management with raw and jpg</title>
		<link>http://lachlan.rogers.name/2009/06/photo-file-management-with-raw-and-jpg/</link>
		<comments>http://lachlan.rogers.name/2009/06/photo-file-management-with-raw-and-jpg/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 11:58:12 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=524</guid>
		<description><![CDATA[Even when shooting images in raw format, it is typically easier to do simple sorting and sharing with jpg files. With Nikon *.nef raw files, it is possible to extract a full-resolution jpg image using the nefextract script. However, exif metadata is not automatically copied to this extracted jpg. The tool that I use to [...]]]></description>
			<content:encoded><![CDATA[<p>Even when shooting images in raw format, it is typically easier to do simple sorting and sharing with jpg files.  With Nikon *.nef raw files, it is possible to extract a full-resolution jpg image using the <code>nefextract</code> script.  However, exif metadata is not automatically copied to this extracted jpg.</p>
<p>The tool that I use to manipulate my images according to their exif metadata is <code><a href="http://www.exiv2.org/" title="Exiv2 - Image metadata library and tools">exiv2</a></code>, and I can quite simply copy metadata from raw files to their corresponding jpgs (matching filenames, and all in the one working directory) with:</p>
<p><code>exiv2 insert -l./ -S.nef *.jpg</code></p>
<p>After sorting through the jpgs and deleting all but those worth keeping, I wanted to automatically remove the raw files of those deleted images.  Sure enough, this is easily done with some bash shell magic:</p>
<p><code>for file in *??.jpg; do mv raw/${file%%.jpg}.nef 2> /dev/null rawKeep/ ; done</code></p>
<p>This command says &#8220;for each jpg file you find here, move the matching nef file from the subdirectory raw/ to the subdirectory rawKeep/&#8221;.  I can then delete any files left in the raw/ subdirectory, as they mustn&#8217;t have a matching jpg.</p>
<p>People often ask my why I persevere with the &#8220;command line&#8221; (more technically the &#8220;shell&#8221;).  It seems that they assume tools with graphical interfaces are more powerful and faster.  These two routine tasks demonstrate yet again that the shell really is the most efficient way to do many common jobs.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2009/06/photo-file-management-with-raw-and-jpg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicating DVDs</title>
		<link>http://lachlan.rogers.name/2009/01/duplicating-dvds/</link>
		<comments>http://lachlan.rogers.name/2009/01/duplicating-dvds/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 01:32:48 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=501</guid>
		<description><![CDATA[Last week I had reason to duplicate some video DVDs.  Yes, it was legitimate; I wanted copies of personal video footage to share with family.  After fiddling around a bit I found a very straighforward way to do this task using simple GNU/Linux tools. The first step is to copy the DVD to the hard [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I had reason to duplicate some video DVDs.  Yes, it was legitimate; I wanted copies of personal video footage to share with family.  After fiddling around a bit I found a very straighforward way to do this task using simple GNU/Linux tools.</p>
<p>The first step is to copy the DVD to the hard drive (I only have one DVD drive).<br />
<code>cat /dev/sr0 &gt; dvd.iso</code><br />
where /dev/sr0 is my DVD device.</p>
<p>Then, after changing to a blank DVD, simply<br />
<code>growisofs -dvd-compat -Z /dev/dvd=dvd.iso</code><br />
and it worked.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2009/01/duplicating-dvds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Un-deleting files on my ext3 &#8220;backup&#8221; partition</title>
		<link>http://lachlan.rogers.name/2008/08/un-deleting-files-on-my-ext3-backup-partition/</link>
		<comments>http://lachlan.rogers.name/2008/08/un-deleting-files-on-my-ext3-backup-partition/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 04:31:19 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/?p=451</guid>
		<description><![CDATA[Last week I learnt a very important lesson: a &#8220;backup&#8221; is not actually a backup if it is the only copy you have, it is at most an archive. In the process of tidying up the files on my external &#8220;backup&#8221; hard disk I deleted a few directories of photos from the beginning of this [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I learnt a very important lesson: <span class="pullquote">a &#8220;backup&#8221; is not actually a <em>backup</em> if it is the only copy you have</span>, it is at most an archive.  In the process of tidying up the files on my external &#8220;backup&#8221; hard disk I deleted a few directories of photos from the beginning of this year.  As I pressed the Enter key I was sure that I had a copy of those photos still on my laptop; but fractions of a second later I experienced a piercing wave of doubt.  It was already too late.</p>
<p>After checking my laptop and finding that the doubt was justified, I remembered with relief that before <a title="Lachlan.Rogers.name &gt;&gt; At Sydney on the way to Germany" href="http://lachlan.rogers.name/2008/03/at-sydney-on-the-way-to-germany/">heading over to Europe</a> I had copied all my photos onto DVDs and left them in my office at uni (just in case something our house burnt down or something).  I went to sleep mostly certain that I my accidentally deleted files were safe on discs at uni.</p>
<p>As you probably suspect, I did not have a copy of the photos on DVD.  My DVD backups only went to the end of 2007, and I had deleted files from the first 2 months of 2008.</p>
<p>It is not a tragedy, as the main photos of consequence were from ASA Convention and I do have the best of my photos on the official DVD.  However, it provided me with significant incentive to learn about data recovery on ext3 formatted partitions.  I&#8217;ve included some of my discoveries below.<span id="more-451"></span></p>
<p>The first thing that I came across was not encouraging; the <a title="Ext3 FAQ" href="http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html">official ext3 FAQ</a> says that it is impossible to un-delete files.  However, a number of people have defied this statement and I quickly found <a title="HOWTO recover deleted files on an ext3 file system" href="http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html">a tool called ext3grep</a>.</p>
<p>I have my external hard disk divided into 2 partitions and so I was able to use the empty half as a playground to store any recovered files.  This turned out to be very useful, because running the command <code>ext3grep /dev/sdb1 --restore-all --after=1218027000</code> did not &#8220;only process entries deleted on or after&#8221; Wed Aug  6 22:50:00 EST 2008, but seemed to &#8220;recover&#8221; every file on the partition.  It took all night.</p>
<p>Happily, the full directory structure of my deleted &#8220;2008&#8243; folder was recovered.  Unfortunately, not all of the jpeg files were found, but it was nice to have some of them back again.</p>
<p>Looking a little bit further I found <a title="Linux.com :: For those Oops moments: ext3undel" href="http://www.linux.com/feature/141074">an article on Linux.com about a tool called ext3undel</a>, which apparently uses <a title="Foremost homepage" href="http://foremost.sourceforge.net/">Foremost</a> and <a title="PhotoRec - CGSecurity" href="http://www.cgsecurity.org/wiki/PhotoRec">PhotoRec</a> to do the work.  This article also explained fairly clearly why data recovery on ext3 partitions is difficult.  I also stumbled across <a title="Recover Deleted Files with Foremost | Tombuntu" href="http://tombuntu.com/index.php/2008/04/09/recover-deleted-files-with-foremost/">a guide to using foremost</a>, and so decided to skip straight to this command-line utility.</p>
<p>I installed Foremost and gave it a try, and the results seemed impressive.<br />
<code><br />
52661:  388052408.jpg          1 MB      198682832896<br />
Foremost version 1.5.3 by Jesse Kornblum, Kris Kendall, and Nick Mikus<br />
Audit File</code></p>
<p><code>Foremost started at Fri Aug  8 18:23:52 2008<br />
Invocation: foremost -t jpeg -i /dev/sdb1<br />
Output directory: /mnt/tmp/output<br />
Configuration file: /etc/foremost.conf<br />
------------------------------------------------------------------<br />
File: /dev/sdb1<br />
Start: Fri Aug  8 18:23:52 2008<br />
Length: 186 GB (200005876224 bytes)</code></p>
<p><code>Num      Name (bs=512)         Size      File Offset     Comment</code></p>
<p><code>0:      00690176.jpg           1 MB       353370112<br />
1:      00692792.jpg           1 MB       354709504<br />
2:      00695328.jpg           1 MB       356007936<br />
.<br />
.<br />
.<br />
52662:  388055280.jpg          1 MB      198684303360<br />
52663:  388058248.jpg          1 MB      198685822976<br />
52664:  388061320.jpg        536 KB      198687395840<br />
Finish: Fri Aug  8 20:36:15 2008</code></p>
<p><code>52665 FILES EXTRACTED</code></p>
<p><code>jpg:= 52665<br />
------------------------------------------------------------------</code></p>
<p><code>Foremost finished at Fri Aug  8 20:36:16 2008</code></p>
<p>I&#8217;ve left out a <em>lot</em> of lines in the middle, but you can see the important details: about 2 and a quarter hours with a total of 52665 jpg files extracted (a total of 23 GB)!  Sadly, almost all of these files were not complete recoveries of the images.<img src="http://lachlan.rogers.name/wordpress/wp-content/uploads/2008/08/20080208_asa_convention_recovered_1854-40.jpg" alt="Group at ASA Convention" width="575" class="attachment wp-att-453 left" style="visibility: hidden" id="img886775806" onclick="enlargerScaleImg('img886775806', 120, 0)" onload="enlargerScaleImg('img886775806', 120, 1)" /><noscript><img src="http://lachlan.rogers.name/wordpress/wp-content/uploads/2008/08/20080208_asa_convention_recovered_1854-40.jpg" alt="Group at ASA Convention" width="575" class="attachment wp-att-453 left" id="120" /></noscript><img src="http://lachlan.rogers.name/wordpress/wp-content/uploads/2008/08/20080208_asa_convention_recovered_1941-33.jpg" alt="Special item at ASA Convention" width="575" class="attachment wp-att-454 right " style="visibility: hidden" id="img887324977" onclick="enlargerScaleImg('img887324977', 120, 0)" onload="enlargerScaleImg('img887324977', 120, 1)"/><noscript><img src="http://lachlan.rogers.name/wordpress/wp-content/uploads/2008/08/20080208_asa_convention_recovered_1941-33.jpg" alt="Special item at ASA Convention" width="575" class="attachment wp-att-454 right " id="120"/></noscript>  The data corruption and partial recovery, however, did give rise to some very intriguing artistic effects, and I&#8217;ve included some samples here.  I couldn&#8217;t help thinking it was rather analogous to accidental light-damage back in the film era of photography.</p>
<p>I also gave PhotoRec a go, and it can also be told to only look for jpg files.  It found a lot of images, but most of them were merely thumbnails from what appeared to be web-caches hidden in my backed up directories.</p>
<p>So of the three I found ext3grep to give me the best results as far as un-deleting my jpg files, however it also took the longest and produced the most storage-consuming recovery output.  Its a bit disappointing that I have not yet been able to recover all the images I foolishly deleted, but I&#8217;ve certainly learnt about the value of true backups &#8211; storing files in at least 2 different places.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2008/08/un-deleting-files-on-my-ext3-backup-partition/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Backing up data to DVD</title>
		<link>http://lachlan.rogers.name/2008/03/backing-up-data-to-dvd/</link>
		<comments>http://lachlan.rogers.name/2008/03/backing-up-data-to-dvd/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 20:40:32 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/2008/03/backing-up-data-to-dvd/</guid>
		<description><![CDATA[In preparation for my trip to Europe, I needded to free up some space on my hard disk. It was a great opportunity to find out how to burn data DVDs. I found this DVD creation article on the Gentoo wiki, and the following command worked brilliantly for me: growisofs -dvd-compat -Z /dev/sr0 -joliet-long -R [...]]]></description>
			<content:encoded><![CDATA[<p>In preparation for my trip to Europe, I needded to free up some space on my hard disk.  It was a great opportunity to find out how to burn data DVDs.</p>
<p>I found this <a href="http://gentoo-wiki.com/HOWTO_Create_a_DVD:Burn" title="HOWTO Create a DVD:Burn - Gentoo Linux Wiki">DVD creation article on the Gentoo wiki</a>, and the following command worked brilliantly for me:<br />
<code><br />
growisofs -dvd-compat -Z /dev/sr0 -joliet-long -R -V "&lt;volume_name&gt;" dvd/<br />
</code><br />
where /dev/sr0 is my device and dvd/ the directory containing the desired contents of the DVD.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2008/03/backing-up-data-to-dvd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Advanced command history in bash</title>
		<link>http://lachlan.rogers.name/2008/02/advanced-command-history-in-bash/</link>
		<comments>http://lachlan.rogers.name/2008/02/advanced-command-history-in-bash/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 04:14:31 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/2008/02/good-guides-to-bash/</guid>
		<description><![CDATA[I am an avid user of bash, the standard command line environment (technically &#8220;shell&#8221;) for GNU/Linux. In today&#8217;s graphical-rich computing culture, many people notice my command terminal and assume I must be a stubborn nostalgist of the digital dark ages. The truth is that the command line allows many regular tasks to be performed more [...]]]></description>
			<content:encoded><![CDATA[<p>I am an avid user of bash, the standard command line environment (technically &#8220;shell&#8221;) for GNU/Linux.  In today&#8217;s graphical-rich computing culture, many people notice my command terminal and assume I must be a stubborn nostalgist of the digital dark ages.  The truth is that the command line allows many regular tasks to be performed more efficiently, and makes some things possible that are simply not available any other way.</p>
<p>The extra power of the command line comes at the cost of learning its ways, which are not always obvious or self-explanatory.  Today I found a very good <a href="http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet/" title="Bash vi editing mode">guide to increasing bash productivity using vi editing commands</a>, and <a href="http://www.catonmat.net/blog/the-definitive-guide-to-bash-command-line-history/" title="Definitive guide to bash command line history">leveraging the command line history to save time and effort</a>.  Both of these articles have very good downloadable cheat-sheets.</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2008/02/advanced-command-history-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenMoko and Neo1973 in real life</title>
		<link>http://lachlan.rogers.name/2007/08/openmoko-and-neo1973-in-real-life/</link>
		<comments>http://lachlan.rogers.name/2007/08/openmoko-and-neo1973-in-real-life/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 15:06:25 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Free as in Speech]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/wordpress/?p=48</guid>
		<description><![CDATA[Last night I went along to the Canberra Linux User Group meeting and saw a FIC Neo1973 running OpenMoko. I got to touch it, play with it, listen to it, drool at it, and the end result was basically a mixture of raw excitement and desire. Not long ago I first heard about OpenMoko and [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I went along to the <a title="CLUG Homepage" href="http://clug.org.au/">Canberra Linux User Group</a> meeting and saw a <a title="OpenMoko wiki - Neo1973" href="http://wiki.openmoko.org/wiki/Neo1973">FIC Neo1973</a> running <a title="OpenMoko" href="http://www.openmoko.com/">OpenMoko</a>.  I got to touch it, play with it, listen to it, drool at it, and the end result was basically a mixture of raw excitement and desire.<span id="more-48"></span></p>
<p>Not long ago <a title="Lachlan.Rogers.name - Iphone, or I free my phone" href="http://lachlan.rogers.name/?p=38">I first heard about</a> OpenMoko and liked the concept.  The Phase 1 phones (still in the development stage) were released in July and Dr Shayne Flint had his here in Canberra by early August.</p>
<p><img src="/wordpress/wp-content/uploads/2007/08/neo1973_and_iphone.jpg" alt="" /></p>
<p>There are some remarkable differences between the Neo1973 (shown on the left) and the Iphone (click on image to enlarge).    The Neo1973 has a full vga display of 640&#215;480 pixels, which is twice the Iphone&#8217;s 320&#215;480.  It also has an SD slot for expandable storage, which the Iphone does not.  Although not in the Phase 1 development version, the user version of the Neo1973 will have a GPS built in (yet to come for the Iphone).  The Iphone has an accelerometer which allows the screen to automatically switch between portrait and landscape modes depending on how it is being held.  The user Neo1973 will have <em>two</em> accelerometers, allowing game action like the Wii.</p>
<p>But the best difference is that while opening up the Iphone voids the warranty, the Neo1973 comes with a screwdriver!</p>
<p>As Dr Flint discussed at the CLUG meeting last night, the fully free (as in freedom) phone is driving innovation into a frenzy.  Imagine being able to call a taxi simply by browsing <a title="OpenStreetMap Wiki" href="http://wiki.openstreetmap.org">OpenStreetMap</a> and clicking on the screen where you want to go.  The phone&#8217;s GPS knows where you are, and sends the appropriate information to the taxi service.  One-click call-a-cab!</p>
<p>Or what about having your phone automatically switch to silent mode when it knows you are in or near a library or lecture theatre.  How about having it remotely disabled by you when you loose it?  Even better &#8211; get it to tell you where it is!</p>
<p>Everything that you thought was Sci-Fi will be one step closer to reality when the Neo1973 lands OpenMoko in userland a few months from now.  Are you ready?</p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2007/08/openmoko-and-neo1973-in-real-life/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy systematic rename of .jpg and .nef photos</title>
		<link>http://lachlan.rogers.name/2007/07/easy-systematic-rename-of-jpg-and-nef-photos/</link>
		<comments>http://lachlan.rogers.name/2007/07/easy-systematic-rename-of-jpg-and-nef-photos/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 22:00:05 +0000</pubDate>
		<dc:creator>Lachlan</dc:creator>
				<category><![CDATA[Hacks and Tricks]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://lachlan.rogers.name/wordpress/?p=40</guid>
		<description><![CDATA[For a while now I&#8217;ve been giving all my digital photos filenames that are meaningful to browse, useful to organise and easy (automated) to implement. The date is used to facilitate easy sorting, a few keywords are added to ease browsing, and the timestamp is added to ensure uniqueness. Thus, I end up with filenames [...]]]></description>
			<content:encoded><![CDATA[<p>For a while now I&#8217;ve been giving all my digital photos filenames that are meaningful to browse, useful to organise and easy (automated) to implement.  The date is used to facilitate easy sorting, a few keywords are added to ease browsing, and the timestamp is added to ensure uniqueness.  Thus, I end up with filenames like 20070731_a_great_photo_1425-39.jpg.<span id="more-40"></span></p>
<p>I use a nifty command-line utility called <a href="http://www.sentex.net/~mwandel/jhead/" title="jhead homepage">jhead</a> to automatically assign filenames based on the exif metadata tag that contains the information about when the photo was taken:</p>
<p><code>jhead -n%Y%m%d__%H%M-%S *.jpg</code></p>
<p>Having recently purchased a Nikon D70 digital SLR, I am playing with Nikon&#8217;s <a href="http://en.wikipedia.org/wiki/RAW_image_format%20title=">raw</a> file format.  To automatically rename the .nef (Nikon Electronic Format) files I have found <a href="http://www.exiv2.org/" title="Exiv2 Homepage">Exiv2</a> that can be used as follows.</p>
<p><code>exiv2 -r'%Y%m%d__%H%M-%S' rename *.nef</code></p>
<p>This utility can also be used for jpeg files, and may end up superseding jhead for me.  To insert human-meaningful keywords into the filenames, I use the rename command:</p>
<p><code>rename __ _a_great_photo_ 20070731*</code></p>
<p>-----</p><br />
<p>(<em>This post was published on my <a href="http://lachlan.rogers.name">Lachlan.Rogers.name website</a>.  If you are reading this on Facebook Notes or Google Buzz or another RSS import, please consider commenting on the original post to keep the conversation accessible to everyone.</em>)</p>                  ]]></content:encoded>
			<wfw:commentRss>http://lachlan.rogers.name/2007/07/easy-systematic-rename-of-jpg-and-nef-photos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

