<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.12-alpha" -->
<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/"
	>

<channel>
	<title>False Prophets</title>
	<link>http://weblog.false.org/weblog</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Thu, 03 Apr 2008 13:10:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>
	<language>en</language>
			<item>
		<title>LiveJournal to RSS</title>
		<link>http://weblog.false.org/weblog/2008/tech/livejournal-to-rss.html</link>
		<comments>http://weblog.false.org/weblog/2008/tech/livejournal-to-rss.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 13:10:59 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2008/tech/livejournal-to-rss.html</guid>
		<description><![CDATA[Inspired by a question from Zack, I&#8217;ve published the hacked-up script I use to read LiveJournal entries using liferea: ljfriendfeed-local.

]]></description>
			<content:encoded><![CDATA[<p>Inspired by a question from Zack, I&#8217;ve published the hacked-up script I use to read LiveJournal entries using liferea: <a href="http://www.false.org/~drow/ljfriendfeed-local/">ljfriendfeed-local</a>.
</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2008/tech/livejournal-to-rss.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Seeking Alan Curry</title>
		<link>http://weblog.false.org/weblog/2008/tech/seeking-alan-curry.html</link>
		<comments>http://weblog.false.org/weblog/2008/tech/seeking-alan-curry.html#comments</comments>
		<pubDate>Sun, 09 Mar 2008 21:46:40 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2008/tech/seeking-alan-curry.html</guid>
		<description><![CDATA[I&#8217;m trying to reach Alan Curry, pacman@TheWorld.com, about some GDB work he did last year.  That address now bounces.  He&#8217;s a regular Debian bug submitter, though none of his bugs have a newer address for him listed.  So the best idea I could come up with was to ask the lazyweb - [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to reach Alan Curry, pacman@TheWorld.com, about some GDB work he did last year.  That address now bounces.  He&#8217;s a regular Debian bug submitter, though none of his bugs have a newer address for him listed.  So the best idea I could come up with was to ask the lazyweb - Alan, are you out there?  Or does anyone else reading Planet Debian know how to reach him?  Leave a comment or send me email if you do.  Thanks.</p>
<p>Updated: Yes, I did try Google.  Thanks to all those who pointed out world.std.com (alias for TheWorld.com), and clss.net (most recently used in 2005; no active nameservers); sorry I forgot to mention that.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2008/tech/seeking-alan-curry.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Debian package for uni8&#215;16 font</title>
		<link>http://weblog.false.org/weblog/2007/tech/debian-package-for-uni8x16-font.html</link>
		<comments>http://weblog.false.org/weblog/2007/tech/debian-package-for-uni8x16-font.html#comments</comments>
		<pubDate>Mon, 17 Dec 2007 03:08:08 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2007/uncategorized/debian-package-for-uni8x16-font.html</guid>
		<description><![CDATA[An anonymous reader asked for a Debian package of the font I recently posted about.  One is now available here should you want it.  I&#8217;m not planning to upload this to the archive, although if anyone wants to add it to an existing fonts package you are more than welcome to.
I am considering [...]]]></description>
			<content:encoded><![CDATA[<p>An anonymous reader asked for a Debian package of the <a href="http://weblog.false.org/weblog/2007/tech/an-adventure-in-unicode-pc-fonts.html">font I recently posted about</a>.  One is now available <a href="http://www.false.org/~drow/unifont/">here</a> should you want it.  I&#8217;m not planning to upload this to the archive, although if anyone wants to add it to an existing fonts package you are more than welcome to.</p>
<p>I am considering merging this with <a href="www.czyborra.com/unifont/">GNU Unifont</a>, so that the many missing characters show up looking out-of-place and non-matching instead of completely blank.</p>
<p>Also, see <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456236">xterm bug 456236</a>, which should be fixed in unstable soon.  Or mostly fixed, anyway; it still seems to glitch once in a while but it&#8217;s harder to reproduce now.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2007/tech/debian-package-for-uni8x16-font.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>An adventure in Unicode PC fonts</title>
		<link>http://weblog.false.org/weblog/2007/tech/an-adventure-in-unicode-pc-fonts.html</link>
		<comments>http://weblog.false.org/weblog/2007/tech/an-adventure-in-unicode-pc-fonts.html#comments</comments>
		<pubDate>Thu, 25 Oct 2007 13:47:46 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2007/tech/an-adventure-in-unicode-pc-fonts.html</guid>
		<description><![CDATA[I have always had some trouble with my eyes.  One bizarre side effect of this is that switching fonts is very unpleasant.  I recently got fed up with fighting things to live in the stone age of pre-Unicode fonts and locales and started hunting for a new console font.  First I looked [...]]]></description>
			<content:encoded><![CDATA[<p>I have always had some trouble with my eyes.  One bizarre side effect of this is that switching fonts is very unpleasant.  I recently got fed up with fighting things to live in the stone age of pre-Unicode fonts and locales and started hunting for a new console font.  First I looked for nice new ones already designed for Unicode, with a selection of accented characters and so forth.  The nicest I found was <a href="http://www.is-vn.bg/hamster/jimmy-en.html">Terminus</a>, but I&#8217;ve had trouble adjusting to it.  So eventually I decided to stick with the font I&#8217;d been using - at least for now.</p>
<p>I have been using the same font for my consoles since before 1997.  This is, or at least was, the default Linux console font back when I did all my work on a VT on Linux/PPC: <code>/usr/share/consolefonts/default8x16.psf.gz</code>.  When I started using X routinely I missed it quite a lot.  Mostly that was because I used BitchX, and BitchX is written for an IBM437 code page set of line drawing characters.  So I opened up that console font in xmbdfed and converted it to a PCF file.  If you have Debian&#8217;s BitchX package installed, you&#8217;ve got a copy of this work in <code>/usr/share/fonts/X11/misc/default8x16.pcf.gz</code>.</p>
<p>So I&#8217;ve done the same trick again.  Here&#8217;s the steps I followed:</p>
<ul>
<li>Open the PCF font file in <a href="http://fontforge.sourceforge.net">FontForge</a>.</li>
<li>Choose Add Enconding Name&#8230; from the Encoding menu.</li>
<li>Enter IBM437, which is the iconv name for the traditional PC ROM character set.</li>
<li>Choose Force Encoding and select IBM437.</li>
<li>Choose Reencode and select ISO 10646 (BMP).</li>
<li>Choose Generate Fonts&#8230; and save it as a BDF file, since PCF wasn&#8217;t an option.</li>
<li>Create a fonts.dir file by running mkfontdir.</li>
<li>Add the directory to the font path using xset +fp.</li>
<li>Attempt to start an xterm.</li>
</ul>
<p>Actually, after all that I was having trouble with the font&#8217;s name and eventually getting scary resource errors from X.  I opened the font in gbdfed and saved it, which added some attributes and modified the bitmaps.  Then I tried again and it worked.</p>
<p>And now, I can use a UTF-8 locale and gcc&#8217;s error messages come out with `foo&#8217; (&#8221;angled&#8221; quotes) instead of display corruption!</p>
<p>The resulting font is <a href="http://www.false.org/~drow/unifont/">uni8&#215;16</a>, if anyone else would like it.  I have switched to using it for all my terminals other than the one I run BitchX in; BitchX still needs the IBM437 version in order to display correctly.</p>
<p>Of course, as soon as I finished this Paul Brook informed me that Konsole includes basically the same sort of font.  I do not know the origins of KDE&#8217;s console8&#215;16, but I do know that it&#8217;s a slightly different font (the @ has a smaller center, for example).  And I know that I&#8217;m mighty annoyed it didn&#8217;t get added to my font path correctly when I installed konsole ages ago, since I might otherwise have found it!</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2007/tech/an-adventure-in-unicode-pc-fonts.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It&#8217;s (still) alive!</title>
		<link>http://weblog.false.org/weblog/2007/tech/its-still-alive.html</link>
		<comments>http://weblog.false.org/weblog/2007/tech/its-still-alive.html#comments</comments>
		<pubDate>Sun, 12 Aug 2007 18:49:54 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2007/tech/its-still-alive.html</guid>
		<description><![CDATA[The gloom from my last entry has more or less lifted.  To refresh, my desktop died shortly after a lightning storm; no definite cause and effect relationship, but a strong correlation.  I shut it down, and after the next reboot I got scary errors all over the place, starting with this disclaimer:

HARDWARE ERROR. [...]]]></description>
			<content:encoded><![CDATA[<p>The gloom from my <a href="http://weblog.false.org/weblog/2007/tech/so-much-for-that-computer.html">last entry</a> has more or less lifted.  To refresh, my desktop died shortly after a lightning storm; no definite cause and effect relationship, but a strong correlation.  I shut it down, and after the next reboot I got scary errors all over the place, starting with this disclaimer:</p>
<pre>
HARDWARE ERROR. This is *NOT* a software problem!
Please contact your hardware vendor
</pre>
<p>Now, that may be true, or it may not be.  Certainly the disclaimer is sensible, since machine checks are usually caused by failing components.  And it persisted for most of a day every time I tried to boot the machine, but there was quickly a new addition: different scary errors on ata1.  And it got rapidly worse.  On Friday morning, having let the machine cool and relax overnight, I brought it up on a rescue CD and could get at /boot (a separate partition), but not at /etc (from inside my RAID/LVM setup).  I went out and bought a new SATA drive and attempted to recover /boot onto it, but I had waited too long; at this point I could still get at the partition table, but not the contents of /boot.</p>
<p>Some things to note here.</p>
<ul>
<li>As far as I know, you still need a separate /boot if your root uses RAID + LVM.</li>
<li>Therefore your /boot is obviously not backed up by your carefully constructed RAID.</li>
<li>But that&#8217;s fine because all that really mattered was your kernels, and you have them still lying around on your mirrored disk.  Right?</li>
<li>Of course, right.  But dynamically generated initrds, while technically awesome, are awkward to recreate from a rescue CD.  Especially a 32-bit rescue CD when your root filesystem is all 64-bit.</li>
<li>It can&#8217;t be hard to find a rescue CD with a 64-bit kernel, right?  No, not right either.  I did eventually find a 50MB Gentoo install CD that worked serviceably well.</li>
<li>Your laptop has a convenient CD burner, right?  No, not right, turns out it doesn&#8217;t write CDs after all.  Oh well, Windows file sharing plus the wireless plus the Mac Mini in the other room&#8230; there you go.</li>
<li>You didn&#8217;t need anything else from /boot, right?  Like your carefully constructed voodoo incantation to boot Windows&#8230; whoops&#8230; hopefully you remember how that worked&#8230;</li>
</ul>
<p>So, after some futzing around I was able to boot the Gentoo rescue CD, partition the new hard drive, mount the remaining disk in degraded mode, reinstall the handy Debian packages of my kernels, have it magically recreate ramdisks, and then reinstall grub.  By the way, <code>--no-floppy</code> obviously means something different to grub than it does to me, as most of the reinstalling grub process was still spent waiting for my non-existant fd0 to time out.  Then I added the new disk to the array, let it reconstruct for two hours, and rebooted.</p>
<p>Lo and behold&#8230; no more machine checks!  I am a happy camper.  Despite the tribulations above I came out remarkably well, since I seem to have lost nothing but my grub menu.lst file.  And now I have rdiff-backup configured to back up /boot onto the array in case I ever need to do this again.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2007/tech/its-still-alive.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>So much for that computer&#8230;</title>
		<link>http://weblog.false.org/weblog/2007/tech/so-much-for-that-computer.html</link>
		<comments>http://weblog.false.org/weblog/2007/tech/so-much-for-that-computer.html#comments</comments>
		<pubDate>Thu, 09 Aug 2007 20:28:48 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2007/uncategorized/so-much-for-that-computer.html</guid>
		<description><![CDATA[My desktop seems to have melted something precious in this morning&#8217;s lightning storm, despite the recent and rather hefty UPS sitting behind it.  I am, to say the least, annoyed.  It was a nice self-built Shuttle system from 2005, but now all it is is a machine check generator:

HARDWARE ERROR. This is *NOT* [...]]]></description>
			<content:encoded><![CDATA[<p>My desktop seems to have melted something precious in this morning&#8217;s lightning storm, despite the recent and rather hefty UPS sitting behind it.  I am, to say the least, annoyed.  It was a nice self-built <a href="http://www.shuttle.com">Shuttle</a> system from 2005, but now all it is is a machine check generator:</p>
<pre>
HARDWARE ERROR. This is *NOT* a software problem!
Please contact your hardware vendor
CPU 0 4 northbridge TSC 6eb92ec370b
  Northbridge Watchdog error
       bit57 = processor context corrupt
       bit61 = error uncorrected
  bus error 'generic participation, request timed out
      generic error mem transaction
      generic access, level generic'
STATUS b200000000070f0f MCGSTATUS 4
</pre>
<p>It&#8217;s not even bad RAM or a bad RAM socket, the way most memory errors seem to be; I had two DIMMs in two sockets so I was able to try for both possibilities.  Unless it fried both somehow, of course.  It seems to boot a little further when left cold for a while, and not as far just after crashing.  I am inclined to suspect the motherboard.</p>
<p>I think I&#8217;m going to have to write it off as a loss.  Which means I need a replacement.  I can get by with just my laptop for a little while, but not indefinitely.</p>
<p>Are there any good options for pre-built Linux systems yet?  I was somewhat underwhelmed by Dell&#8217;s.  I usually build from parts, so looking at pre-built systems always has a certain amount of sticker shock.  My main concerns are CPU / memory performance (a lot of compiling here), room for at least three hard drives, and reasonably quiet.</p>
<p>Otherwise it&#8217;s off to <a href="http://www.newegg.com">newegg</a> again&#8230;</p>
<p>Or I could always buy an equivalent computer to my current one, for a fraction of the original price, at a local consumer electronics megastore!  How&#8217;s that for a different idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2007/tech/so-much-for-that-computer.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I want my big-bitted beans!</title>
		<link>http://weblog.false.org/weblog/2007/tech/i-want-my-big-bitted-beans.html</link>
		<comments>http://weblog.false.org/weblog/2007/tech/i-want-my-big-bitted-beans.html#comments</comments>
		<pubDate>Mon, 16 Jul 2007 01:23:22 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2007/uncategorized/i-want-my-big-bitted-beans.html</guid>
		<description><![CDATA[I was checking idly this morning whether there was a 64-bit version of Macromedia Flash yet (there isn&#8217;t but they claim to be working on one; yes, I do know about gnash).  While searching I learned about nspluginwrapper, which was quite gratifying; I have always thought that ought to be possible, but the one [...]]]></description>
			<content:encoded><![CDATA[<p>I was checking idly this morning whether there was a 64-bit version of Macromedia Flash yet (there isn&#8217;t but they claim to be working on one; yes, I do know about gnash).  While searching I learned about nspluginwrapper, which was quite gratifying; I have always thought that ought to be possible, but the one time I took a stab at it I got hopelessly lost in the plugin API and had to be evacuated by helicopter.</p>
<p>If nspluginwrapper works, it will kill two of the reasons I run a 32-bit firefox on my amd64 desktop (flash and the Acrobat plugin).  I have firefox working quite nicely using schroot, but there are some inconveniences - like having to mount my sshfs filesystems once outside the chroot where I want them and once inside the chroot so that I can access them in firefox.  And having to keep a ton of stuff installed in the chroot, too.</p>
<p>Of course that leaves the one other gaping omission: there&#8217;s no official 64-bit Sun Java browser plugins yet.  Blackdown had a 64-bit browser plugin, but there were a number of reports of its crashiness.  And there was a lot of ambiguity in the web pages I found about whether IBM&#8217;s JRE had one or not.  So I fought with IBM&#8217;s registration today (their database server must&#8217;ve been horked this morning&#8230;) and downloaded their Jave 5 JRE.  Well, it doesn&#8217;t.  No plugin except for IA32 and PPC32.  I&#8217;m guessing from the links in the documentation that the guts of their browser plugin still come from Sun.  Sun claims that JDK 1.7 will have such a plugin, but no one seems to have seen it yet.</p>
<p>I think the only realistic way this will work out is to try building one from OpenJDK, and that&#8217;s more work than I have time for this evening.  Back to the chroot for now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2007/tech/i-want-my-big-bitted-beans.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New hosting</title>
		<link>http://weblog.false.org/weblog/2007/tech/new-hosting.html</link>
		<comments>http://weblog.false.org/weblog/2007/tech/new-hosting.html#comments</comments>
		<pubDate>Tue, 22 May 2007 15:54:27 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2007/uncategorized/new-hosting.html</guid>
		<description><![CDATA[The machine (formerly) hosting this blog was a dedicated server.  I&#8217;ve got nothing bad to say about the hosting company, but it had the usual pitfalls of dedicated hosting.  It was very expensive, which is why I split the service with two friends.  We underutilized it.  They didn&#8217;t provide backup services, [...]]]></description>
			<content:encoded><![CDATA[<p>The machine (formerly) hosting this blog was a dedicated server.  I&#8217;ve got nothing bad to say about the hosting company, but it had the usual pitfalls of dedicated hosting.  It was very expensive, which is why I split the service with two friends.  We underutilized it.  They didn&#8217;t provide backup services, so I ran my own using rdiff-backup - I won&#8217;t tell you how long I ran it before I bothered to set that up, though.  And when something went wrong it could take quite a while to get the machine fixed and running again.  Fortunately that only happened twice in all the time we were there.  Anyway, our contract with them was up in February, and we decided not to renew.  Since all of us were insanely busy at the time we decided to pay the higher monthly rate for three months to give us some time to migrate off.  Which of course I left to the last minute.</p>
<p>This blog is one of the first services I&#8217;ve moved to my new hosting at <a href="http://www.slicehost.com">Slicehost</a>.  I don&#8217;t have a lot to say about these guys yet, since I haven&#8217;t had any trouble.  The only downside was catching them at a somewhat turbulent and resource-starved time as they dealt with a wait list for orders, so it took a month for me to get one.  They&#8217;re working on that problem, though.  Towards the end I was checking every two days or so how long it said I&#8217;d have to wait.  Note to everyone, progress bars that don&#8217;t progress are just infuriating.  But I happened to check one day during the five minute window between when they sent me confirmation and when my mail client checked for new mail, and <em>poof</em> there it was.</p>
<p>This is virtual hosting - Etch on Xen - thus the &#8220;slice&#8221; naming.  They&#8217;re a heavy on automation shop, which fits right in with my style.  And there is something so viscerally awesome about entering your credit card number, clicking OK, having their software allocate and create a virtualized disk, bootstrapping Etch onto it, and showing you its IP and root password.  It doesn&#8217;t get much better than that.  So far I&#8217;m happy.</p>
<p>I took the opportunity to move to <a href="http://wordpress.org">WordPress</a>, away from my old <a href="http://weblog.false.org/weblog/2006/tech/i-have-a-blog.html">hacked up Blosxom installation</a>.  WordPress imported entries easily, although I had to manually fudge the RSS file to prevent it from inserting a log of bogus &lt;br&gt; tags that I didn&#8217;t want in the middle of my paragraphs.  I probably could have gotten comments imported too, but I didn&#8217;t bother - sorry folks, well, it&#8217;s not like there were a whole lot of them.  The Debian WordPress packages work fine, although the configuration is a bit messy; my biggest complaints were the centralized upload and themes directories so that I had to mess around with symlinks in /usr to get everything going.</p>
<p>Maybe I&#8217;ll actually use it more :-)  I hacked up the GUIDs a bit by hand, so this shouldn&#8217;t flood planet, but here&#8217;s hoping.</p>
<p>Next step: migrating email service to the new system.  Always a joy.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2007/tech/new-hosting.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Triumph over emacs at last</title>
		<link>http://weblog.false.org/weblog/2006/tech/emacs-happy-meta.html</link>
		<comments>http://weblog.false.org/weblog/2006/tech/emacs-happy-meta.html#comments</comments>
		<pubDate>Tue, 28 Nov 2006 19:39:00 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2006/tech/emacs-happy-meta.html</guid>
		<description><![CDATA[I do about half my text editing in joe, and half of it in emacs.  It&#8217;s just what I&#8217;ve gotten used to; for a year or two I used primarily joe, and I gradually migrated until I did most of my programming in emacs instead, but I still do random text files in joe. [...]]]></description>
			<content:encoded><![CDATA[<p>I do about half my text editing in joe, and half of it in emacs.  It&#8217;s just what I&#8217;ve gotten used to; for a year or two I used primarily joe, and I gradually migrated until I did most of my programming in emacs instead, but I still do random text files in joe.  I&#8217;ve been gradually trying to migrate to emacs; not least because upgrading joe has gotten to be such a pain.</p>
<p>I use jpico rather than joe, you see.  But I started using it a long time ago, probably around when joe 2.8 was current in Debian.  And the jpico key bindings keep changing!  Which is infuriating, so I keep having to rewrite my keybindings to stay mostly the way I like them.</p>
<p>I like that emacs is such a smart editor.  Especially since it defaults to all sorts of nice GNU-ish settings and most of my C is for GNU projects.  But when I work on other things, I have to learn how to make it either disable smarts or use appropriate ones, so in self defence I keep learning new things about emacs&#8230;</p>
<p>One things I&#8217;ve been annoyed at before is the binding for scroll-other-window.  You can split a window into two (C-x 2). I often do that while writing a changelog up top of a patch file, whether I&#8217;m using joe or emacs at the moment.  An advantage of emacs is that you can scroll the window that the cursor isn&#8217;t in, paging down through the text you&#8217;re describing while keeping the cursor where you&#8217;re writing.  But it&#8217;s bound by default to C-M-v and C-S-M-v (control-meta and control-shift-meta).  Hard to hit C-M-v, and impossible to enter C-S-M-v; you can not distinguish Control and Control-Shift in a vt100 terminal (like, say, inside of screen).</p>
<p>Fortunately, you say, it&#8217;s also bound to M-next and M-prior (meta-page down and meta-page up)?  Well, yes&#8230; but&#8230; you can&#8217;t type that either at a terminal.  Normally.  I can now though.</p>
<p>Fixing it took two parts.  First, I discovered that Meta-next sent the same sequence as plain next, in my xterms.  I think I&#8217;ve convinced myself this is a bug in xterm.  My keymap, which is a pretty standard pc(pc105)+us+altwin(meta_win), has Super_L and Hyper_L bound to modifier 4 along with Meta_L and Meta_R.  xterm sees these strange keys and decides that mod4 must be some sort of &#8220;other&#8221; modifier, in code that looks like it&#8217;s for handling num lock.  Fortunately, I can work around this easily.  I don&#8217;t have a Super or Hyper key, so I deleted the bindings by adding this to my .xsession:</p>
<pre>
  xmodmap -e 'remove mod4 = Super_L'
  xmodmap -e 'remove mod4 = Hyper_L'</pre>
<p><strong>UPDATE:</strong> This will be fixed in xterm #223, since Thomas Dickey agreed it was a bug.</p>
<p>Next, I discovered that emacs didn&#8217;t recognize the sequence produced after that fix.  It didn&#8217;t recognize C-next or A-next either.  So I added this to my .emacs:</p>
<pre>
  ; Key magic.  Emacs nor terminfo normally have bindings for these.
  ; The meta binding in particular takes a bit of X magic also; see
  ; the xmodmap call in /.xsession.
  (define-key function-key-map "e[6;5~" '[C-next])
  (define-key function-key-map "e[6;9~" '[M-next])
  (define-key function-key-map "e[6;3~" '[A-next])
  (define-key function-key-map "e[5;5~" '[C-prior])
  (define-key function-key-map "e[5;9~" '[M-prior])
  (define-key function-key-map "e[5;3~" '[A-prior])</pre>
<p>That really should be conditionalized on the terminal type, but I didn&#8217;t want to mess with it any more.  And now it works.  Woohoo!</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2006/tech/emacs-happy-meta.html/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fun (and un-Fun) with qemu</title>
		<link>http://weblog.false.org/weblog/2006/tech/playing-with-qemu.html</link>
		<comments>http://weblog.false.org/weblog/2006/tech/playing-with-qemu.html#comments</comments>
		<pubDate>Thu, 12 Oct 2006 22:00:00 +0000</pubDate>
		<dc:creator>drow</dc:creator>
		
		<category>tech</category>

		<guid isPermaLink="false">http://weblog.false.org/weblog/2006/tech/playing-with-qemu.html</guid>
		<description><![CDATA[We have started using qemu for automated testing at work.  Right now we only have one kernel and disk image that I threw together by hand (for ARM), so I spent a big chunk of this afternoon trying to figure out how to do it and document the process.  When I did it [...]]]></description>
			<content:encoded><![CDATA[<p>We have started using qemu for automated testing at work.  Right now we only have one kernel and disk image that I threw together by hand (for ARM), so I spent a big chunk of this afternoon trying to figure out how to do it and document the process.  When I did it last time, I needed major kernel hacks and qemu patches and debian-installer tweaks, because the ARM emulation didn&#8217;t have anything capable of working as a hard drive; so I took some code that Paul had written to use the Angel RDI semihosting operations as a &#8220;virtual block device&#8221; that talked to the host system.  I added support for this hack to qemu and forced d-i to install even though there was only a single non-partitionable device.</p>
<p>Since then, Paul added real PCI support to the ARM qemu.  So I expected everything to be much easier.  I took Aur�lien Jarno&#8217;s <a href="http://www.aurel32.net/info/debian_arm_qemu.php">excellent writeup</a> and prepared to try again.  But since we already had a functional ARM disk image, that was lower priority&#8230; I decided to try MIPS.  I helped get the MIPS softmmu port working about a year ago, but it hasn&#8217;t been receiving a whole lot in the way of care (though there&#8217;s a bunch of unreviewed patches for it).</p>
<p>First I discovered that I&#8217;d never gotten initrds implemented last time I worked on qemu-system-mips.  So I hacked that together. Then I needed a drive; I used root NFS in my last setup, but the whole point of this experiment was to avoid that.  So I added the emulated ISA IDE controller.  Good news: both of those worked easily!  And the d-i session starts up OK, and even writes to the disk OK; partition tables were discovered at next boot.  I&#8217;ve posted some patches for these.</p>
<p>Bad news: it hangs during formatting the swap partition, consuming endless CPU.  It&#8217;s definitely doing _something_ in userspace, but I&#8217;m not sure what, and it&#8217;s hard to find out.  I&#8217;ve heard other reports of faulty MIPS emulation recently, too.  I know how to debug this sort of thing, but it&#8217;s really more time-consuming than I can manage now :-(</p>
<p>While waiting for builds in that, I resolved to try reproducing a nasty kernel bug in qemu for x86-64: since I booted into 2.6.19-rc1 all my coredumps have been truncated very short.  My normal hardware kernel boots OK, but if I rebuild the kernel with the default config and debug info, it doesn&#8217;t:</p>
<blockquote><p>  checking if image is initramfs&#8230;it isn&#8217;t (bad gzip magic numbers); looks like an initrd<br />
  Freeing initrd memory: 5498k freed<br />
  *hang*</p></blockquote>
<p>And the other thing that&#8217;s apparently not been getting a lot of love lately is the debugging stub; if I attach GDB, it dies much earlier, so I can&#8217;t set a breakpoint at initramfs detection to see what&#8217;s going on.</p>
<p>Overall result for the day: Argh!</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.false.org/weblog/2006/tech/playing-with-qemu.html/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
