<?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>His Deeds Are Dust &#187; Linux</title>
	<atom:link href="http://hisdeedsaredust.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://hisdeedsaredust.com</link>
	<description>surveying sub-optimal solutions</description>
	<lastBuildDate>Wed, 02 May 2012 13:16:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>No, Kindle Previewer, you may not auto update</title>
		<link>http://hisdeedsaredust.com/2012/01/no-kindle-previewer-you-may-not-auto-update/</link>
		<comments>http://hisdeedsaredust.com/2012/01/no-kindle-previewer-you-may-not-auto-update/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 13:50:31 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Ebooks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[kindle]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=237</guid>
		<description><![CDATA[Kindle Previewer is a great time saver for checking formatting, and I&#8217;m very pleased that it runs under Wine, as I&#8217;m currently running Fedora 16 (Verne). However, this morning when I ran it, it auto-updated to the latest version, and that crashes. Auto updating is bad enough when you know you have a set of [...]]]></description>
			<content:encoded><![CDATA[<p>Kindle Previewer is a great time saver for checking formatting, and I&#8217;m very pleased that it runs under Wine, as I&#8217;m currently running Fedora 16 (Verne).</p>
<p>However, this morning when I ran it, it auto-updated to the latest version, and that crashes. Auto updating is bad enough when you know you have a set of software that works exactly as you like, but updating to a version that won&#8217;t run is just bloody rude.</p>
<p>I bet that there&#8217;s a cute SELinux trick that could be used to stop Kindle Previewer having network access, but a simple stop-gap is to reinstall the old version, go to the directory where you installed it, and prevent autoupdate.jar from being used. In my case, that&#8217;s these two lines:</p>
<pre>
 $ cd ~/.wine/drive_c/Program\ Files/kindle\ previewer
 $ chmod 0 autoupdate.jar
</pre>
<p>Kindle Previewer now moans that it can&#8217;t access that jar file when it runs (duh), but pressing &#8220;OK&#8221; allows the rest of it to run just fine. I&#8217;ll investigate more when I decide I want to see how things look on the Kindle Fire, and <em>that&#8217;s</em> not going to be until they&#8217;re available in the UK.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2012/01/no-kindle-previewer-you-may-not-auto-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Private failing in Segment14</title>
		<link>http://hisdeedsaredust.com/2011/06/a-private-failing-in-segment14/</link>
		<comments>http://hisdeedsaredust.com/2011/06/a-private-failing-in-segment14/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 15:57:55 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=212</guid>
		<description><![CDATA[My first upload to the reborn Open Font Library was Segment14, and it failed badly as a web font in Firefox 3.6.17 on Fedora, not displaying at all. Christopher Adams confirmed that it worked on the WebKit-based browsers Safari and Midori, and it works on my HTC Desire. After some minor, unrelated, cleanups, FontForge gave [...]]]></description>
			<content:encoded><![CDATA[<p>My first upload to the reborn <a href="http://openfontlibrary.org/">Open Font Library</a> was <a href="http://openfontlibrary.org/font/segment14">Segment14</a>, and it failed badly as a web font in Firefox 3.6.17 on Fedora, not displaying at all.</p>
<p>Christopher Adams confirmed that it worked on the WebKit-based browsers Safari and Midori, and it works on my HTC Desire.</p>
<p>After some minor, unrelated, cleanups, <a href="http://fontforge.sourceforge.net/">FontForge</a> gave both the SFD and OTF files a clean bill of health, but it still wasn&#8217;t working in Firefox, so I took a deeper look and found that <a href="http://www.mozilla.org/security/announce/2010/mfsa2010-78.html">Mozilla had added the OTS font sanitizing library to Firefox</a> from version 3.6.13, back in December 2010.</p>
<p><a href="http://code.google.com/p/ots/">OTS</a> is mainly designed to be added as a font condom for OpenType-consuming applications, as Firefox apply it, but it also has a standalone checker called <tt>ot-serialize</tt>. OTS isn&#8217;t packaged in Fedora yet, so I collected it from upstream and ran it over my font, with these results:</p>
<pre style="white-space:normal">ERROR at /home/paul/projects/ots/ots-read-only/src/cff.cc:377 (bool<unnamed>::ParsePrivateDictData(const uint8_t*, size_t, size_t, size_t, </unnamed><unnamed>::DICT_DATA_TYPE, ots::OpenTypeCFF*))</unnamed></pre>
<p>Ugly. Still, it&#8217;s a &#8220;yes/no&#8221; tool, so I&#8217;m prepared to do a little hunting through the source to find out exactly why it hates me.</p>
<p>The answer is that my FontForge source had a definition of BlueValues in the Type 1 Private dictionary. I don&#8217;t remember how it got there, because it is optional, but I had put one in, and I had <b>defined it as an empty array</b>. OTS decided that, if arrays exist in the Private dictionary, they must not be empty. With a quick snip, my font works again.</p>
<p>I&#8217;ll certainly be adding OTS to my fonty toolchain, and it strikes me that this would be a useful tool for packaging and using in font reviews. You wouldn&#8217;t want to fail a review because of it, but it would certainly help to know whether a font will fail on the Web, which must be a large part of users&#8217; expectations now.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2011/06/a-private-failing-in-segment14/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Samsung X120 custom kernel</title>
		<link>http://hisdeedsaredust.com/2011/03/samsung-x120-custom-kernel/</link>
		<comments>http://hisdeedsaredust.com/2011/03/samsung-x120-custom-kernel/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 17:58:53 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[samsung]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=199</guid>
		<description><![CDATA[I have a Samsung X120 notebook. Commiserate with me, please, for ever since F13&#8242;s kernel went from 2.6.33 to 2.6.34, I&#8217;ve been without ACPI. Anything other than acpi=off in the boot settings produced a giant stack trace that scrolled off the tiny screen so fast and so early in the boot that only videoing the [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Samsung X120 notebook. Commiserate with me, please, for ever since F13&#8242;s kernel went from 2.6.33 to 2.6.34, I&#8217;ve been without ACPI. Anything other than <tt>acpi=off</tt> in the boot settings produced a giant stack trace that scrolled off the tiny screen so fast and so early in the boot that only videoing the screen would have enabled me to transcribe it. Even <tt>boot_delay</tt> didn&#8217;t work, because that won&#8217;t delay <em>every</em> line of output when the kernel is curling up in a corner and dying.</p>
<p>It&#8217;s a bug in the Samsung BIOS no doubt, and it has an upstream <a href="https://bugzilla.kernel.org/show_bug.cgi?id=16548">kernel report</a>, but the bisect points to a sane commit that&#8217;s good for everyone else.</p>
<p>Running without ACPI isn&#8217;t a realistic option on a laptop. I wouldn&#8217;t know when to plug it back into the mains, and shutting down requires rather more persuasion than should be necessary, so last night it was time to patch the kernel.</p>
<p><a href="https://fedoraproject.org/wiki/">Fedora Wiki</a> to the rescue. I followed the instructions on <a href="https://fedoraproject.org/wiki/Building_a_custom_kernel">building a custom kernel</a> to the letter, and eleven hours later, I had a functioning laptop. I&#8217;ll break that down, lest you think me hard of understanding: five minutes to read the page, 20 minutes to grab the kernel src.rpm and make the appropriate patch, and 10 hours and 35 minutes to compile the entire thing on the laptop. I went to bed for the last bit, after ensuring that the mains was plugged in and on so that my laptop wouldn&#8217;t do the same.</p>
<p>So, to everyone who has had a hand in that page on the wiki, thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2011/03/samsung-x120-custom-kernel/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Serafettin, part two</title>
		<link>http://hisdeedsaredust.com/2010/08/serafettin-part-two/</link>
		<comments>http://hisdeedsaredust.com/2010/08/serafettin-part-two/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 15:27:16 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=192</guid>
		<description><![CDATA[Wow, that was a meaty piece of work. Serafettin Cartoon fonts now builds with the latest release of FontForge, as well as CVS head, and taught me quite a bit about FontForge in the process. Serafettin had a bunch of glyphs with self-intersection problems, and these were causing FontForge to crash on the Expand Stroke [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, that was a meaty piece of work. <a href="http://serafettin.sourceforge.net/">Serafettin Cartoon fonts</a> now builds with the latest release of <a href="http://fontforge.sourceforge.net/">FontForge</a>, as well as CVS head, and taught me quite a bit about FontForge in the process.</p>
<p>Serafettin had a bunch of glyphs with self-intersection problems, and these were causing FontForge to crash on the Expand Stroke operation. Because Serafettin uses scripts to build the different weights, it was hard to see where the problem was until I made FontForge a lot more verbose about which glyphs it was processing.</p>
<p>Even so, if a glyph self-intersects, it might be impossible to spot how the intersection is happening until you zoom right in and see that what you thought was a sharp corner turns out to be a little twisted triangle of points. If the points are right on top of each other, you won&#8217;t see the problem at any zoom level, so you&#8217;ll need to trust the Simplify operation.</p>
<p>After all that work, I now have another FontForge bug to report. Try typing a some text ending in &#8216;+&#8217;, like &#8216;GPLv2+&#8217; into the the TTF name fields. Save your work and observe that the UTF-7 (yes -7, not -8) encoding of the SFD turns this into &#8216;GPLv2+-&#8217;. Now read in the SFD and see that your license field says &#8216;GPLv2+-&#8217;, and subsequent saves will add another &#8216;-&#8217; every time. Boo, hiss.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2010/08/serafettin-part-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serafettin, part one</title>
		<link>http://hisdeedsaredust.com/2010/08/serafettin-part-one/</link>
		<comments>http://hisdeedsaredust.com/2010/08/serafettin-part-one/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 15:48:04 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=187</guid>
		<description><![CDATA[I&#8217;ve recently been triaging FontForge bugs on Fedora, and hit a problem with bug 600108, in which the latest version of FontForge crashes while building Serafettin. I patched FontForge locally, so I could identify the glyphs that caused it to crash, but I&#8217;ve now come to the conclusion that Serafettin itself is the problem, and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been triaging <a href="http://fontforge.sourceforge.net">FontForge</a> bugs on <a href="http://fedoraproject.org">Fedora</a>, and hit a problem with <a href="https://bugzilla.redhat.com/show_bug.cgi?id=600108">bug 600108</a>, in which the latest version of FontForge crashes while building <a href="http://serafettin.sourceforge.net/">Serafettin</a>.</p>
<p>I patched FontForge locally, so I could identify the glyphs that caused it to crash, but I&#8217;ve now come to the conclusion that Serafettin itself is the problem, and FontForge&#8217;s validation says as much, in these lines:</p>
<ul>
<li>Two glyphs have the same name.</li>
<li>Two glyphs have the unicode.</li>
</ul>
<p>I&#8217;ve never met these errors before. Sure enough, close examination of Serafettin reveals that there are three copies of some of the glyphs in the font, with the same name and Unicode point. Now that Orcan has given me access to the Subversion repository, I&#8217;m currently working on removing the incorrect copies of glyphs, before simplifying the outlines of the rest, to allow it to build again.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2010/08/serafettin-part-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

