<?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>Barefoot Liam</title>
	<atom:link href="http://www.barefootliam.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.barefootliam.org</link>
	<description>Don't hurt your feet on the pointy brackets!</description>
	<lastBuildDate>Mon, 01 Feb 2010 08:03:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ephemeral Inserts</title>
		<link>http://www.barefootliam.org/oldbooks/20100201-ephemeral-inserts</link>
		<comments>http://www.barefootliam.org/oldbooks/20100201-ephemeral-inserts#comments</comments>
		<pubDate>Mon, 01 Feb 2010 08:02:30 +0000</pubDate>
		<dc:creator>barefootliam</dc:creator>
				<category><![CDATA[Working with old books]]></category>
		<category><![CDATA[Chalmers Biographical Dictionary]]></category>
		<category><![CDATA[ephemera]]></category>
		<category><![CDATA[old books]]></category>
		<category><![CDATA[pressed flowers]]></category>

		<guid isPermaLink="false">http://www.barefootliam.org/?p=33</guid>
		<description><![CDATA[I was reading (as one does) my copy of Thomas Harwood&#8217;s Grecian Antiquities from 1801, when I came across some small papers and a flower, pressed between the pages. One of the papers appears to be a fragment of an envelope, covered front and back with writing. Another is a small slip of paper, with [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading (as one does) my copy of Thomas Harwood&#8217;s <em>Grecian Antiquities</em> from 1801, when I came across some small papers and a flower, pressed between the pages.</p>
<p>One of the papers appears to be a fragment of an envelope, covered front and back with writing.  Another is a small slip of paper, with some words and numbers written on it, and then of course there is the flower.  I also found an old bookseller&#8217;s catalogue entry.</p>
<p>I wonder if anyone can identify the thing that looks to me like a postmark?</p>
<p><span id="more-33"></span></p>
<div id="attachment_35" class="wp-caption alignnone" style="width: 780px"><img class="size-full wp-image-35 " src="http://www.barefootliam.org/wp-content/uploads/2010/01/Harwood-GrecianAntiquities-envelope-front-q75-770x700.jpg" alt="A fragment of an envelope was used for a long division sum" width="770" height="700" /><p class="wp-caption-text">A fragment of an envelope was used for a long division sum</p></div>
<p>Here is the back of the envelope, which has not a calculation but a list of titles:</p>
<div id="attachment_34" class="wp-caption alignnone" style="width: 797px"><img class="size-full wp-image-34" src="http://www.barefootliam.org/wp-content/uploads/2010/01/Harwood-GrecianAntiquities-envelope-back-787x700.jpg" alt="The other side of the fragment of paper was used to write a list" width="787" height="700" /><p class="wp-caption-text">The other side of the fragment of paper was used to write a list</p></div>
<p>I am not good at reading this sort of handwriting, which fell out of fashion in England many years before I was born, but here is an attempt to transcribe it; contact me with errors and I&#8217;ll update it.</p>
<ol>
<li>Clergymans Assistant</li>
<li>Haddon on the Creed</li>
<li>Stillingfleet&#8217;s Orig. Sacr.</li>
<li>Burnet on the Art</li>
<li>??? on the Gospels</li>
<li>Ridley&#8217;s Sermons</li>
<li>Barrows Sermons 2 Vols</li>
<li>Homilies</li>
<li>Potters Theological Works</li>
<li>Burtons Sermons</li>
<li>Hornes Works 7 Vols</li>
</ol>
<p>Since I have been making an online edition of Chalmers&#8217; Biographical Dictionary (1812—1818, 32 vols), I thought I&#8217;d look these up.</p>
<p>The Clergyman&#8217;s Assistant could be <em>The Sick Man’s Companion or the Clergyman’s Assistant in visiting the Sick; with a Dissertation on Prayer</em> by <a href="http://words.fromoldbooks.org/Chalmers-Biography/d/dodwell-william.html">William Dodwell</a>; there are other possibilities, but the long ess indicates a likely time before 1830 (it was mostly discontinued in printed books in Britain some time before 1810, but one has to imagine that people did not immediately revise their handwriting)</p>
<p>Haddon on the Creed, I think may actually be Peasson, I&#8217;m not sure.  I can&#8217;t read it.</p>
<p>The Origines Sacræ is by <a href="http://words.fromoldbooks.org/Chalmers-Biography/s/stillingfleet-edward.html">Bishop Edward Stillingfleet</a>.</p>
<p>Burnet on the Art is probably <a href="http://words.fromoldbooks.org/Chalmers-Biography/b/burnet-gilbert.html">Gilbert Burnet</a> and his <em>Exposition of The Thirty-nine Aryicles of the Church of England</em>, on the Articles of Faith, an early Working-Group compromise.</p>
<p>Ridley&#8217;s Sermons is possibly <a href="http://words.fromoldbooks.org/Chalmers-Biography/r/ridley-nicholas.html">Nicholas Ridley</a>, the famous contemporary of Cranmer, but I see that <a href="http://words.fromoldbooks.org/Chalmers-Biography/r/ridley-dr-gloster.html">Dr. Gloster Ridley</a> gave Eight Sermons at Lady Moyer&#8217;s Lecture, published in 1742.</p>
<p>Barrow&#8217;s Sermons are probably by <a href="http://words.fromoldbooks.org/Chalmers-Biography/b/barrow-isaac-1.html">Isaac Barrow</a>, 1678.  Chalmers (c. 1812) says that <em>Dr. Barrow’s sermons are yet admired for the style and<br />
moral sentiment.</em> (see linked page).</p>
<p>Homilies, I have no idea.</p>
<p>Potter&#8217;s Theological Works are the collected writings of <a href="http://words.fromoldbooks.org/Chalmers-Biography/p/potter-john.html">Archbishop John Potter</a> (no relation of Harry I think), published in 1753 as <em>The Theological Works of Dr. John Potter &amp;c. containing his Sermons, Charges, Discourse of Church-government, and Divinity Lectures.</em> Short titles ftw.</p>
<p>Burton&#8217;s Sermons would probably be <a href="http://words.fromoldbooks.org/Chalmers-Biography/b/burton-john.html">John Burton</a>, whose <em>Sermons</em> were published in 1764 and 1766 respectively.</p>
<p>Wow, almost done!</p>
<p>Bishop <a href="http://words.fromoldbooks.org/Chalmers-Biography/h/horne-george.html">George Horne</a> &#8216;s <em>Works</em> were collected in 7 volumes and published by one <a href="http://words.fromoldbooks.org/Chalmers-Biography/ij/jones-william-1.htlm">Jones of Nayland</a> in 7 vols in 1799.</p>
<p>Hmm, and I mentioned the pressed flower:</p>
<div id="attachment_37" class="wp-caption alignnone" style="width: 160px"><img class="size-thumbnail wp-image-37 " src="http://www.barefootliam.org/wp-content/uploads/2010/01/Harwood-GrecianAntiquities-pressed-flower-q75-475x500-150x150.jpg" alt="The perssed flower" width="150" height="150" /><p class="wp-caption-text">The pressed flower</p></div>
<p>And finally, here&#8217;s the obverse of the pressed flower:</p>
<div id="attachment_36" class="wp-caption alignnone" style="width: 160px"><img class="size-thumbnail wp-image-36" src="http://www.barefootliam.org/wp-content/uploads/2010/01/Harwood-GrecianAntiquities-pressed-flower-obverse-q75-500x495-150x150.jpg" alt="pressed flower, the other side up." width="150" height="150" /><p class="wp-caption-text">pressed flower, the other side up.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.barefootliam.org/oldbooks/20100201-ephemeral-inserts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unobtrusive Namespaces</title>
		<link>http://www.barefootliam.org/xml/20091111-unobtrusive-namespaces</link>
		<comments>http://www.barefootliam.org/xml/20091111-unobtrusive-namespaces#comments</comments>
		<pubDate>Thu, 12 Nov 2009 00:55:11 +0000</pubDate>
		<dc:creator>barefootliam</dc:creator>
				<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.barefootliam.org/?p=31</guid>
		<description><![CDATA[Unobtrusive Namespaces and Imaginary Namespaces, a two-part proposal to improve XML namespaces and at the same time make a way to define the proposed HTML 5 behaviour.]]></description>
			<content:encoded><![CDATA[<p>The HTML 5 draft has the idea that, in HTML, certain elements can automatically introduce a new default namespace.  Currently these elments are html, svg and math, although it&#8217;s easy to imagine others being added in the future.</p>
<p>This idea is not currently compatible with the way namespaces work. in XML, you have to do one of two things to introduce a new namespace; either:</p>
<ol>
<li>Use an xmlns pseudo-attribute on the element you want to introduce the new namespace, or,</li>
<li>Use a DTD to supply such an attribute, by giving it a default (or fixed) value.</li>
</ol>
<p>Now, HTML 5 gets rid of the idea of a DTD: there&#8217;s no DOCTYPE declaration, for example, with SYSTEM and/or PUBLIC identifiers. And there&#8217;s no sign that the browser vendors are willing to revisit that decision.  So that leaves us with an explicit xmlns pseudo-attribute, and that also doesn&#8217;t sit well with the HTML 5 people.</p>
<p>Jumping up and down and yelling at HTML 5 people to use more syntax so that HTML 5 looks more like XML isn&#8217;t working. But wait, can we change XML in some way so that we have a way to describe this default namespace behaviour? Let&#8217;s say it&#8217;s OK to do this in XML, and find a way to make it OK, and then it won&#8217;t bea problem, right?</p>
<p>Well, namespace declarations are not the only issue, it turns out, but bear with me for a moment, let&#8217;s see how far we get with Unobtrusive Namespaces, and then we&#8217;ll take it even further and make Imaginary Namespaces, which address this need of HTML 5.</p>
<p>The idea of <strong>Unobtrusive Namepsaces</strong>, then, is to take away as much of the syntax as possible—ideally, all of the syntax—from the document, much as Unobtrusive Javascript did. Let&#8217;s imagine that an XML processor (I&#8217;ll come back to HTML browsers in a moment) understands an attribute <tt>nsd="svg"</tt>, and that the meaning of this attribute is that a particular <em>namespace definition</em> is to be used. That namespace definition is a URI (a relative URI here), with the understanding that the well-known URI for the HTML namespace definition is built in to the Web browser and need never be loaded. But what does it do?</p>
<p>A namespace definition can do any of:</p>
<ol>
<li>give a list of elements, and associate namespace URIs with them</li>
<li>define an element/attribute pair, to put the named attribute into a different namespace (this is to work round what I see as a deficiency of XLink, as used e.g. in SVG)</li>
<li>refer to another namespace definition</li>
</ol>
<p>This combination of features lets you make <em>namespace mashups</em>; it also is enough that we can define the HTML 5 behaviour. Even better, you can define your own extensions, use them with no explicit namespace prefix, and, if they later become part of HTML, your documents will continue to work unchanged! How cool is that?</p>
<p>Of course, a Web browser doesn&#8217;t <em>want</em> to fetch an extra file. This is where the concept of <strong>Imaginary Namespaces</strong> comes in.  With Imaginary Namepsaces, we write into a spec such as HTML 5 the namespace definition file that an implementation must use, or must behave as if it uses. But the user agent doesn&#8217;t actually need to load the file. After all, the whole idea was to change XML rather than asking HTML to change.</p>
<p>So, I&#8217;m proposing the following:</p>
<ol>
<li>A default namespace definition file for HTML 5 to be mentioned in the HTML 5 specification.</li>
<li>Web browsers continue to behave in the same way as now.</li>
<li>For added brownie points, Web browsers would fetch namespace definition files if they are mentioned (and are not in the browser&#8217;s cache, of course). However, such files would only ever <em>augment</em> the standard definition, so that the browser could render the document up to the first unknown attribute or element without waiting for the namespace definition file to load.</li>
<li>XML processors could load the namespace definition files, or, one could use XSLT (or XQuery) to read the namespace definition file and produce XSLT that, when ran, would add the correct namespace nodes to a document. In this way, one could validate the document and process it with existing XML tools.</li>
<li>Existing namespace syntax is in no way affected by this proposal. Existing XML documents would continue to work exactly as they do now.</li>
<li>Ideally, Web browsers should also understand XML namespace syntax in documents, for the sake of people using e.g. mathml or SVG editors, or trying to serve XHTML as text/html for compatibility (= broken software workaround) reasons. But my proposal isn&#8217;t about existing namespace syntax, it&#8217;s about Unobtrusive (and Imaginary) namespaces.</li>
<li>If a namespace definition file actually listed <em>all</em> the names in a given namespace, you could use it to validate your use of a namespace in some way. That&#8217;s not a deliberate goal of this proposal, but it&#8217;s a way that some people have said they&#8217;d like to use it, as a sort of very light-weight schema language.</li>
</ol>
<p><strong>Finally</strong>, what should a namespace definition file actually look like? Here is one proposal; I&#8217;m open to other syntax, <em>as long as people working with namespace definitions do not need to understand traditional XML namespace syntax</em>! It&#8217;s this requirement, for example, which seems to rule out the related ISO DSRL draft.</p>
<pre>&lt;nsd&gt;
    &lt;html&gt;
        &lt;uri&gt;http://www.w3.org/1999/xhtml&lt;/uri&gt;
        &lt;svg&gt;
            &lt;uri&gt;http://www.w3.org/2000/svg&lt;/uri&gt;
            &lt;attribute&gt;
                &lt;name&gt;href&lt;/name&gt;
                &lt;uri&gt;http://www.w3.org/1999/xlink&lt;/uri&gt;
            &lt;/attribute&gt;
        &lt;/svg&gt;
    &lt;/html&gt;
&lt;/nsd&gt;</pre>
<p>I&#8217;m not committed to this syntax; I&#8217;ve tried to make it simple, reasonably redundant so that you can get good error messages, and only just powerful enough to do what&#8217;s needed. The syntax I proposed at Balisage in Montreal was slightly more complex; you can see it linked to one of <a href="http://www.w3.org/2009/Talks/08-quin-balisage-namespaces/">the slides I used</a><a> (</a>that presentation was aimed at suggesting to an XML audience that we could improve namespaces by making them useful and practical, but it was not written for Web developers, who don&#8217;t need to be persuaded that there are problems with namespaces today, and perhaps do need to be persuaded that it&#8217;s worth having consistent rules between HTML and XML).</p>
<p>So that&#8217;s it. It won&#8217;t affect JavaScript APIs, it won&#8217;t give Web browsers ways to understand unknown markup if they don&#8217;t have any underlying code, but it does give a way to identify extension points in a way that lets them become part of the standard in the future, and, for authors, it reduces the cost of using namespaces.</p>
<p>Thoughts?</p>
<p>[note: comments are moderated for spam control  purposes only]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barefootliam.org/xml/20091111-unobtrusive-namespaces/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>From point-and-shoot to dSLR</title>
		<link>http://www.barefootliam.org/photography/20090608-from-point-and-shoot-to-dslr</link>
		<comments>http://www.barefootliam.org/photography/20090608-from-point-and-shoot-to-dslr#comments</comments>
		<pubDate>Tue, 09 Jun 2009 02:29:51 +0000</pubDate>
		<dc:creator>barefootliam</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[cameras]]></category>
		<category><![CDATA[equipment]]></category>

		<guid isPermaLink="false">http://www.barefootliam.org/?p=25</guid>
		<description><![CDATA[About two and a half years ago I got my first digital single-lens reflex camera (a dSLR, or digital SLR), having used a point-and-shoot consumer-level Casio digital camera for several years, and a similar Canon point-and-shoot film camera before that. I had to do a lot of learning, and there were some really obvious things [...]]]></description>
			<content:encoded><![CDATA[<p>About two and a half years ago I got my first digital single-lens reflex camera (a dSLR, or digital SLR), having used a point-and-shoot consumer-level Casio digital camera for several years, and a similar Canon point-and-shoot film camera before that.</p>
<p>I had to do a lot of learning, and there were some really obvious things that the manuals didn&#8217;t say, but that had me baffled for a while, so I thought I&#8217;d share some of those basics!</p>
<h2>What on earth is a dSLR?</h2>
<p>In my case it was easy because I was given a gift certificate for Future Shop, and they only sold one digital SLR camera, the Canon Digital Rebel.  Luckily this is a really good camera, and an excellent first choice, and I happend to know that already.</p>
<p>More likely, you&#8217;ll be faced with a bewildering choice.</p>
<p>The SLR has three main features that set it apart. The first is that when you look through the viewfinder, you&#8217;re looking through the actual lens. Newer dSLR cameras have &#8220;live view&#8221; in which the LCD display also looks through the lens, although usually you can&#8217;t have both live view and the viewfinder work at the same time, because the SLR uses a moving mirror to choose whether the light from the lens goes into the viewfinder or onto the sensor (the digital &#8220;film&#8221;). For professional shots, it&#8217;s essential that you get a good idea of what&#8217;s going to be in the photograph, so this feature is really important.</p>
<p>The second feature of the SLR is that you can swap lenses.  The entire lens unmounts and you put on a different one.  There are literally hundreds of lenses to choose from, which of course paralyses me totally.  It does mean you can get a telephoto (long-distance) lens, and also a macro lens; the point-and-shoot Casio camera had fabulous macro (close-up) performance, but absolutely terrible long-distance results.</p>
<p>The third feature is that the lens is bigger, and so is the sensor.  Some of the newer point-and-shoot cameras are changing this, but what it means for now is that the pictures from a dSLR are massively clearer and sharper than you&#8217;d ever imagine possible.  Of course, you can go up from the dSLR to a medium or large format camera and get even better, but that&#8217;s another story!</p>
<p>So, a digital single-lens-reflex is an SLR camera, so that you look into the viewfinder and see through the lens. It has interchangeable lenses, and it usually has much higher picture quality than a point-and-shoot camera.  It&#8217;s also usually much bigger and heavier, and you&#8217;ll be noticed more, and you might find you can&#8217;t take it into rock concerts, or that you <em>can</em> take it into museums because they trust you to turn off the flash.</p>
<h2>Choosing a dSLR</h2>
<p>The first thing to say here is, for all intents and purposes, if you are not a professional photographer, forget about &#8220;megapixels,&#8221; &#8220;auto-red-eye-elimination,&#8221; &#8220;face detection&#8221; and all the other features touted by the tiny cameras.  Buy a dSLR so that you can take professional-quality photographs, and so that you can do photographic art, but not so that you can quickly whip out a camera and snap a high-school friend on the bus.  A lot of pro photographers carry something like a Casio Exilim pocket camera for exactly that pupose!</p>
<p>The main entry-level dSLR cameras all have roughly comparable image quality. You can make an A4/US letter-sized print with any of them: 8 megapixels is about enough for that.  The advantage of more pixels is that you can use your favourite image editor (e.g. gimp) to choose a smaller portion of an image, and print that instead. You can also do more processing without degrading the quality.</p>
<p>The main things to look for are</p>
<ol>
<li>Someone local who can repair the camera, sell you accessories, and make you feel inferior.</li>
<li>Compatibility with other equipment.</li>
</ol>
<p>Let&#8217;s take these one at a time. first, someone local. It&#8217;s usually best to buy from a local shop, because you help the local economy, you help keep the shop in business, and the shopkeeper probably knows more about the camera than someone working in some big box chain. Cameras are hard to buy by mail order because shipping can damage them, so for my part I&#8217;d always go somewhere local, although, as I said at the start, I actually bought mine at a big box store. At least it was a local franchise.</p>
<p>Second, compatibility. Often people have older SLR cameras, and want to use the lenses.  It turns out that if you want to use a variety of lenses from other cameras, especially film cameras, your best bet is likely a Canon dSLR. You can use Nikon, Olympus, Canon, Pentax, and many more lens brands, by getting adaptors.  You might think this would work for any camera, but it turns out not to. You can only get a useable adaptor to go from a larger camera to a smaller one. The technical bit is the distance from the end of the lens to the film (or sensor in a digital camera). You have to end up with the right distance, or the lens won&#8217;t focus properly.  The Canon Digital Rebel series (EOS), for example, has a smaller distance between lens and sensor than the Nikon digital cameras. This means that if you use a Nikon lens on a Canon, the adaptor is a couple of mm (about a tenth of an inch) thick, and spaces the lens properly, as well as containing electronics to make the focusing work better.  But if you tried to use a canon lens on a Nikon, the Nicon camera is too big, and the lens can&#8217;t get close enough to the sensor without some serious modifications to the camera.  It&#8217;s possible to correct for this with glass,but that reduces the image quality and makes the whole thing pointless in most cases.</p>
<p>So if you&#8217;re after the ability to use lots of lenses, right now Canon is the best bet, it seems.  But, is that really important? The newer dSLR lenses have image stabilisation, which counteracts movements of your hand when you&#8217;re taking the picture, and helps reduce blur.  Some digital cameras have image stabilization built in, but the higher-end manufacturers point out that different lenses need different stabilisation, put the technology in the lenses, and charge you more money for a better result.  So with a Canon, with image stabilisation in the lens, you&#8217;re much less likely to want to use an older lens, than with a Pentax with image stabilisation in the camera.</p>
<h2>Choosing a Lens</h2>
<p>When you buy your camera, it will probably come with a dreadfully cheap plastic lens.  If you find a good dealer, you can get the camera with an upgraded lens, or without a lens at all, and buy the lens separately. Do it!</p>
<p>Lenses have three main things you need to know.</p>
<ol>
<li>The maximum aperture</li>
<li>The focal length</li>
<li>The quality (including whether it&#8217;s stabilised)</li>
</ol>
<p>The <strong>aperture</strong> is described as a ratio, with lower numbers meaning a wider ratio and a better lens.  You should aim to get at least one lens with a ratio of 2.8:1 or better (i.e. lower, 2.8:1 is much better than 3.5:1). These are also called f-stops, and 2.8:1 is written as f/2.8, so look for an f/2.8 lens.  I&#8217;ll explain why in a bit.</p>
<p>The <strong>focal length</strong> is the zoominess.  An 18-180 mm lens is a 10× zoom.  The kit lens is usually 18-55mm, which is about a 3× zoom.  A 300mm lens starts to be useful for photographing wildlife, although you&#8217;ll also want a tripod and a remote shutter control so that you can be out of sight.</p>
<p>The 50mm f/1.8 lens that both Canon and Nikon sell is the best value lens.  With a really wide aperture, you can get good shots in low light (even moonlight, with a long exposure) and you can also play with &#8220;depth of field&#8221; to get the subject in focus and a blurry background, excellent for portraits.</p>
<p>On lens <strong>quality</strong>, you generally get what you pay for, but read some reviews.  The Nikon Nikkor lenses, and the Canon &#8220;L&#8221; series lenses, are fabulous, but expect to pay over a thousand dollars for one lens. Image Stabilisation is essential (i&#8217;d say) for a walk-about lens, and less important for macro photography or with a tripod.</p>
<p>So, I&#8217;d get the 50mm f/1.8 lens, and maybe one of the third party &#8220;super zoom&#8221; lenses that go from 18 to 180 or even 18 to 300mm, to start with, today.  I actually have the canon 17-85mm lens with image stabilisation, because it&#8217;s the best I could afford; I also have the 70-300 mm lens, although I&#8217;d like to upgrade that one day, and the 50mm f/1.8 lens. The 50mm lens was about $100, and i got the 17-85mm lens used at a camera store (Peace Camera, in Raleigh, NC, in fact).  The super-zooms with image stabilisation from Tamron and Sigma are new since I bought my camera, though.</p>
<h2>Taking a Shot</h2>
<p>OK, so you&#8217;ve got the camera, and you want to take a shot, what do you do? The manual for my camera didn&#8217;t say, really, and I had to work it out!</p>
<ol>
<li>Take off the lens cap!</li>
<li>Turn on the camera (I leave my camera on for weeks at a time; the batteries last for ages) and, for now, put it in &#8220;Programmed&#8221; or &#8220;Auto&#8221; mode, &#8220;P&#8221;.</li>
<li>Point the camera at something interesting, such as a friend&#8217;s ankle.</li>
<li>Look through the viewfinder</li>
<li>If you want to zoom, you turn the big ribbed part of the lens with your hand. This really stumped me at first, I was looking for a button, and the manual never said how to zoom with a digital SLR! All you do is turn that part of the lens, and it zooms (if it&#8217;s a zoom lens: the 50mm f/1.8 I mentioned earlier does not zoom at all!)</li>
<li>Press the shutter button half-way</li>
<li>You should see one or more red dots light up in the viewfinder. This is showing you that the picture is in focus where the dot is lit.</li>
<li>Holding the camera steady (elbows together can help), press the shutter button down the rest of the way. The loud click is not a recorded sound: it is because an SLR camera has a mirror or prism in it to make the light go into the viewfinds, and that must be moved out of the way to take the photo.</li>
</ol>
<p>Of course, there&#8217;s a bit more to it than this when you get technical, but you can take really good photos like this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barefootliam.org/photography/20090608-from-point-and-shoot-to-dslr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scanning: How to Fix Colour Registration Errors</title>
		<link>http://www.barefootliam.org/oldbooks/20090506-correcting</link>
		<comments>http://www.barefootliam.org/oldbooks/20090506-correcting#comments</comments>
		<pubDate>Thu, 07 May 2009 02:18:39 +0000</pubDate>
		<dc:creator>barefootliam</dc:creator>
				<category><![CDATA[Working with old books]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[old books]]></category>
		<category><![CDATA[scanning]]></category>

		<guid isPermaLink="false">http://www.barefootliam.org/?p=16</guid>
		<description><![CDATA[OK, So you scanned a colour image, and you&#8217;ve got lots of little dots: There are three things I&#8217;ll need to do to make this image useful: smooth out all those dots, scale down the image, and get rid of that yellow fringe. We must actually do them in the opposite order: first the fringe, [...]]]></description>
			<content:encoded><![CDATA[<p>OK, So you scanned a colour image, and you&#8217;ve got lots of little dots:</p>
<div id="attachment_17" class="wp-caption alignright" style="width: 326px"><img class="size-full wp-image-17" src="http://www.barefootliam.org/wp-content/uploads/2009/05/halftoned-1.jpg" alt="colour image as scanned (detail)" width="316" height="274" /><p class="wp-caption-text">colour image as scanned (detail)</p></div>
<p>There are three things I&#8217;ll need to do to make this image useful: smooth out all those dots, scale down the image, and get rid of that yellow fringe.</p>
<p>We must actually do them in the opposite order: first the fringe, then smooth the dots, and then finally scale down.   That&#8217;s because you must always work at the highest resolution so you don&#8217;t lose detail, and because the smoothing will make it harder to fix the fringe.</p>
<p>The yellow fringe is only on one side of this brave warrior&#8217;s head.  He stands there oblivious to the fact he has been badly printed!</p>
<p>To understand what&#8217;s going on, we need to remember how colour printing like this works.  Four separate images were printed on top of each other: a black one (called K), a red one (called M, for Magenta), a Yellow one (Y) and a blue one (called C, for Cyan).  Four images, each printed with a single colour.  The names of these four images, shuffled around, give us CMYK, the name for four-colour images.  The inks have interacted with each other a little, but we will pretend they don&#8217;t, and use GIMP&#8217;s Colours/Components/Decompose menu item, choose CMYK, and end up with a new image with four black layers, one for each of the four colours.</p>
<p>That was a lot of words to describe something simple, but it&#8217;s easier to remember how to do this if you understand what&#8217;s going on.</p>
<p>Now we have our four black layers, we can move the yellow layer down a little.  You can do this using the sample image in this blog posting if you want to try it.  Go to GIMP&#8217;s layers dialogue (you can go to Windows/Dockable Dialogues/Layers if it is not showing).  Hold down shift and click on the eye to the left of the <strong>yellow-k</strong> layer, and then click on the name of the layer next to it, the <strong>yellow-k</strong>, so it&#8217;s selected.  Choose the Move Tool from the toolbox (or press the lower-case <strong>m</strong> key) and then, to move the yellow layer down 10 pixels, press the down-arrow key ten times.</p>
<p>You could try Colours/Components/Recompose now, but it wouldn&#8217;t work, so wait just a moment. First, we must right-click on that <strong>yellow-k</strong> layer in the layers dialogue, and when the menu pops up, choose Layer to Image Size.  This will add some transprent pixels to the top of the yellow layer and chop off the bottom, so that when we recompose, it will be lower.  Otherwise, GIMP shifts the layers back when it does the recompose.  OK, now you can do Colours/Components/Recompose.</p>
<p>The resultimg image is much better.  If you also move the magenta layer a little, you can get to something like this:</p>
<div id="attachment_18" class="wp-caption alignright" style="width: 326px"><img class="size-full wp-image-18" src="http://www.barefootliam.org/wp-content/uploads/2009/05/halftoned-2.jpg" alt="After adjusting the separated CMYK layers and recomposing" width="316" height="274" /><p class="wp-caption-text">After adjusting the separated CMYK layers and recomposing</p></div>
<p>It&#8217;s still not perfect, but because the images are overprinted, moving the yellow layer won&#8217;t really make bits of yellow suddenly appear from underneath red: there will just be a bit of a smudge where the inks blended.</p>
<p>You might also wonder if the individual mis-aligned images might be rotated slightly.  if you wondered this you would be right, but we cant fix that here. If you try, you will generate lots of unwanted patterns because the little dots will make interference patterns and moiré effects. So move them only horizontally and vertically for now.  Later you get a chance to fix rotation, but it is much less effective.</p>
<p>The next steps are easy, and are just like normal scanning: use Filters/Gaussian Blur to get rid of the individual dots.  There&#8217;s some mathematics behind this, but for our purposes all that matters is that the dots vanish in the preview.</p>
<div id="attachment_19" class="wp-caption alignright" style="width: 326px"><img class="size-full wp-image-19" src="http://www.barefootliam.org/wp-content/uploads/2009/05/halftoned-3.jpg" alt="After blurring." width="316" height="274" /><p class="wp-caption-text">After blurring.</p></div>
<p>I used a radius of 9 pixels on this image, which was scanned at 800dpi (or 800ppi for confused pedants). Now I&#8217;ve got a really blurry soldier, perhaps after a few beers, but after I scale him down he will be sharp again.</p>
<p>Note that if you still have colour fringing from <em>rotated</em> mis-printing, you can now try separating into CMYK, rotating the offending layer or layers, using Layer to Image Size on the layer or layers you rotated, and then recomposing.  The blur that we just did will make it safe to rotate, but the separation won&#8217;t be as clean, so depending on the image, it might not work.</p>
<p>You might also want to improve the colours now &#8211; e.g. reducing saturation.</p>
<p>Back to getting smaller. To get a sharp image after a blur radius of 9, you&#8217;ll really need to scale to 33% of the original size or smaller.  I wanted to make a screen background at 1600&#215;1200 pixels in this case, so that was about 30%, although smaller sizes will be sharper.</p>
<div id="attachment_20" class="wp-caption alignright" style="width: 326px"><img class="size-full wp-image-20" src="http://www.barefootliam.org/wp-content/uploads/2009/05/halftoned-4.jpg" alt="After making it smaller, you can see more of it!" width="316" height="274" /><p class="wp-caption-text">After making it smaller, you can see more of it!</p></div>
<p>Here is the result &#8211; since the image is smaller, rather than a small thumbnail I&#8217;ve included more of it, but if you&#8217;re using these images for practice, sadly you won&#8217;t get more of the picture come in from the edges when you scale down <img src='http://www.barefootliam.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  so yours will look a little different.At this size you can&#8217;t really see any remaining colour fringing from misaligned colour separations.</p>
<p>We can still improve ths colour in this image by reducing saturation (it&#8217;s actually best to do that before scaling down usually, of course), but all I&#8217;m going to do right now is Filters/Sharpen, to get a final result like this:</p>
<div id="attachment_21" class="wp-caption alignleft" style="width: 326px"><img class="size-full wp-image-21" src="http://www.barefootliam.org/wp-content/uploads/2009/05/halftoned-5.jpg" alt="After sharpening" width="316" height="274" /><p class="wp-caption-text">After sharpening</p></div>
<p>There&#8217;s still a bit of a magenta fringe above people&#8217;s heads in this example, so moving magenta down may have been worth it.</p>
<p>I used a Sharpness of 65, because a higher value brings back the rosettes a little.  It&#8217;s a tradeoff, but if you see dots again at this stage, you have to use undo right back to the blur, and redo the blur with a larger radius.  Note that Sharpen is likely to give better results than the unsharp mask that many people love. Unsharp mask tends to introduce halo effects around the lines in illustrations like this, but works well for some kinds of photograph. Try them both and see which works best for you.</p>
<p>The final image is (or will soon be) on <a href="http://www.fromoldbooks.org/Marshall-AnIslandStory/">www.fromoldbooks.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barefootliam.org/oldbooks/20090506-correcting/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to scan colour images from old books, with Gimp, in 18 easy steps</title>
		<link>http://www.barefootliam.org/oldbooks/20090213-scanning-colour-images</link>
		<comments>http://www.barefootliam.org/oldbooks/20090213-scanning-colour-images#comments</comments>
		<pubDate>Sat, 14 Feb 2009 03:37:50 +0000</pubDate>
		<dc:creator>barefootliam</dc:creator>
				<category><![CDATA[Working with old books]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[old books]]></category>
		<category><![CDATA[scanning]]></category>

		<guid isPermaLink="false">http://www.barefootliam.org/?p=9</guid>
		<description><![CDATA[How to scan colour images from old books, with Gimp, in 18 easy steps. Some people report that a piece of opaque green paper placed behind the page will help reduce show-through; either that or black card seems to help. Look at the image, using a magnifying glass if necessary, and see if it is [...]]]></description>
			<content:encoded><![CDATA[<p>How to scan colour images from old books, with Gimp, in 18 easy steps.</p>
<ol>
<li>Some people report that a piece of <em>opaque green</em> paper placed behind the page will help reduce show-through; either that or black card seems to help.</li>
<li>Look at the image, using a magnifying glass if necessary, and see if it is made of lots of small dots, or is printed with solid areas of dots.  If the book is from before 1850 or so, colours are likely either to have been added by hand, perhaps with a water-colour brush, or in separate print runs of solid colour. If the book is after 1860 or so, there will probably be dots.  You&#8217;ll need this information later.  You might also want to note down the page number.</li>
<li>Make sure the page is flat on the scanner&#8217;s glass!  If necessary, weigh it down a little with another book. If you bend the book back somewhat you can loosen the binding a little, which helps.</li>
<li>If you are using <a href="http://www.gimp.org/">Gimp</a>, you can scan the image by going to the File menu and choosing Create, and under that xsane.  If you are using Photoshop it&#8217;s most likely under the File/Acquire menu.   For an image made of dots (<em>screened</em>) you will need much higher resolution than you might expect, because capturing the exact size and shape of each of those dots determines the amount of detail you will get in your final image.  You can experiment, but I find there is often a noticeable difference between 600 and 1200dpi, and always a noticeable difference between 300 and 600.</li>
<li>When you choose the area to scan (usually by dragging a rectangle), make the area a little larger than the image all round.  There&#8217;s no need to go wild here, as scanning too much will just eat up memory and disk space, but you want enough extra to give you room to rotate the image to make it perfectly level afterwards, and to make sure you don&#8217;t accidentally miss a bit if the preview isn&#8217;t accurate.</li>
<li>Your scanning software (e.g. <em>xsane</em>) will probably have a button to auto-adjust levels, and you should press it.  You want the darkest part of the picture to be black and the lightest part to be white (or nearly white) in the output.  I find that I have to increase the gamma to about 1.2 with xsane, though, to keep the detail.</li>
<li>Once you have scanned the image, you will want to save a copy.  I always include the page number, but since the book is still sitting on the scanner at this point, you can see why I suggested remembering the number!  I tend to use filenames like 0314-Taj-Mahal-raw.png for the original and 0314-Taj-mahal-cleaned.png for the version after I have processed it (which I am about to describe).</li>
<li>Now you have saved the image, you need to make it look like something you want to keep.  The first step is to check the colour range; in Gimp this is colours/levels, and you can use the <em>auto</em> button on that dialogue box to get a good first attempt.  It&#8217;s probably good enough for now, but if the colours go weird, choose <em>reset</em> and instead move the little triangles so they point to the upper and lower ends of the histagram. Now you have an image with colour values spanning the whole range; that&#8217;s important because as we process the image it means we won&#8217;t lose as much detail.</li>
<li>Next we remove the dots.  You can do that with a Gaussian blur.  (if there were no dots, you can skip this step).  Choose Filters/Blur/Gaussian Blur.  When the dialogue appears, make sure the preview is ticked, and move the slider to about 11.  For 1200dpi or higher you may need it to be 17 or higher.  Your goal is to find the <em>smallest</em> number at which you can&#8217;t see any dots in the preview.  Use the scrollbars (and resize the filter window too) until you find a part of the image that&#8217;s fairly light in colour, as the dots are most visible there.  Usually the dots are in clusters, called <em>rosettes</em>, and you need to blue enough that the rosettes are gone too.  Once you find that number, go one or two higher, so, if the rosettes (or at least the dots if you can&#8217;t see rosettes) are gone with a bur radius of 12 in the preview, you&#8217;ll increase the radius to 13 or 14.   Then press OK to blur the image.  It may take a while.<br />
<strong>Note:</strong> If your image has black line art and screened colour, you can experiment using <em>selective gaussian blur</em> to keep the black sharp.</li>
<li>Once the image is blurred, you can rotate it, if needed, so it&#8217;s upright.  This is easiest in <em>gimp</em> using the Rotate tool with the tool options set to reverse/corrective and the preview set to grid; then you can move the grid so it lines up with something horizontal or vertical in the image.   You can change the spacing of the grid lines in tool options to help the grid line up.  Choose <em>Cubic</em> for the rotation algorithm, because you don&#8217;t want to preserve detail here that is just a remnant of the dots.<br />
<strong>Note</strong>: if you rotate <em>before</em> you descreen, you will introduce new artefacts that are difficult to remove. So you do the blur first and then the rotate.</li>
<li>After rotating, flatten the image (rotate introduces transparency, which we don&#8217;t want here).</li>
<li>We are nearly done, don&#8217;t worry.  At this point, I&#8217;d save a new copy of the image with the -cleaned- in its filename, because we&#8217;ve done enough work that we&#8217;d be cross if there was a power failure and we had to start over.</li>
<li>Make sure the image fits in your window (c0ntrol-shift-E in <em>Gimp</em>) and decide how bad the colours look.  Use Colours/Curves and experiment a little.  Or use Colours/levels and use the &#8220;white point&#8221; eye dropper to click on part of the image outside the picture, where there is plain paper.  Your goal now is to get something that looks roughly like the printed original.</li>
<li>Optional step, but very wise: go over the image slowly, at 50% magnification, looking for things like dead insects or hairs or other things you want to fix, and use the clone tool as needed (with a soft brush) to get rid of them.</li>
<li> When you&#8217;re happy, save the file again.  Use PNG, because it&#8217;s lossless.</li>
<li>Now you have a nice clean descreened image, but it&#8217;s blurry and it&#8217;s too big.  No problem: scale it down!  Use image/Scale Image, and go down to, say, 25%, and the image will look much better.  If you want a really sharp image, scale down further, but remember to keep that <em>cleaned</em> PNG file at fill size.  Now, we&#8217;re nearly done!</li>
<li>After you downsize an image you often need to sharpen it, using Filters/Enhance/Sharpen.  Some people prefer unsharp mask, but I find that&#8217;s best for photographs rather than scans of screened prints of photographs. I also prefer to be subtle with sharpening, but again it&#8217;s a matter of preference.</li>
<li>You can save the smaller scaled-down image as JPEG; I find if there are isolated blobs of red that I need to use the 1&#215;1 subsampling to keep the colour right.</li>
</ol>
<p>With practice you can do all this fairly quickly. I find the slowest part is usually fixing any problems like hairs or stuff that falls out of the binding of some older books.  You know, $10,000 bills and ancient Roman golden rings. Or more likely tiny pieces of paper, string or leather.  Wipe the scanner glass between scans with a clean piece of kitchen paper, wiping <em>gently</em> always in the same direction, so that pieces of grit don&#8217;t make scratches.</p>
<p>Oh. If your image did <em>not</em> have tiny dots, but was printed solid, or if there was detail in the black</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barefootliam.org/oldbooks/20090213-scanning-colour-images/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Blog With A Home</title>
		<link>http://www.barefootliam.org/uncategorized/20090206-a-blog-with-a-home</link>
		<comments>http://www.barefootliam.org/uncategorized/20090206-a-blog-with-a-home#comments</comments>
		<pubDate>Sat, 07 Feb 2009 01:13:01 +0000</pubDate>
		<dc:creator>barefootliam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.barefootliam.org/uncategorized/20090206-a-blog-with-a-home</guid>
		<description><![CDATA[I decided it was time to have a single home for blogging/writing and not multiple social networking sites. I&#8217;ll also be moving over my XML-related blog entries from W3C.]]></description>
			<content:encoded><![CDATA[<p>I decided it was time to have a single home for blogging/writing and not multiple social networking sites.</p>
<p>I&#8217;ll also be moving over my XML-related blog entries from W3C.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barefootliam.org/uncategorized/20090206-a-blog-with-a-home/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
