<?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; bash shell</title>
	<atom:link href="http://lachlan.rogers.name/tag/bash-shell/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>
	</channel>
</rss>

