<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0.2" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>peteg's blog   2006-01-12-Xorg.autumn</title>
    <link>http://peteg.org/blog</link>
    <description></description>
    <language>en</language>

  <item>
    <title>Doing battle with &lt;a href=&quot;http://www.adobe.com/products/acrobat/readstep2.html&quot;&gt;Adobe Reader&lt;/a&gt;.</title>
    <link>http://peteg.org/blog/2006/12/19#2006-12-19-Adobe</link>
    <category>/hacking</category>
    <description>
&lt;p&gt;

&lt;a href=&quot;http://www.cs.cmu.edu/~dst/Adobe/Gallery/&quot;&gt;&lt;img src=&quot;http://peteg.org//static/adobe-sicle.gif&quot; height=&quot;48&quot; width=&quot;56&quot; style = &quot;border-style: none;
margin-right: 10px; margin-bottom: 5px; float: left&quot; alt=&quot;Adobe
sicle&quot;/&gt;&lt;/a&gt;This application is just plain broken. It wants to be an
operating system: from the look of &lt;a
href=&quot;http://www.macnn.com/articles/06/12/06/free.acrobat.8.reader/&quot;&gt;Version
8&lt;/a&gt; Adobe has tried to shoehorn most of the &lt;a href=&quot;http://www.apple.com/macosx/&quot;&gt;Mac OS X&lt;/a&gt; desktop into their
proprietary web-browser-of-sorts. Hmm... perhaps this is what the &lt;a href=&quot;http://www.microsoft.com/&quot;&gt;Windows&lt;/a&gt; people have been dealing with all these years. unnecessary,
unwanted feature-creep and integration.

&lt;/p&gt;
&lt;p&gt;

The updater is broken. Just download the latest version. Oh wait, you need
to get the &quot;Download Manager&quot; to download it for you. Grrr. And you sure do
a lot of waiting on all these bloody programs... and then it tries to do the
update thing anyway! Screw it, too much trouble.

&lt;/p&gt;
&lt;p&gt;

Now, down to business: the instant-gratification eBook I rashly bought
yesterday only lets me print 20 pages of it per month, which seems to me to
be a strange compromise between the real world (fair use?) and what's
possible with electronic authoritarianism. I found this mechanism is indeed
easy to defeat.

&lt;/p&gt;
&lt;p&gt;

A moment's reflection tells you that it is common (UNIX) courtesy for an
application to only fiddle with stuff in your home directory, which you (of
course) have free access to. (It could do nasty things if it's SUID or using
OS DRM services, and that's surely in the post.) The hope is that by
swapping some files we can reset the print counter, and that is indeed the
case. On &lt;a href=&quot;http://www.apple.com/macosx/&quot;&gt;Mac OS X&lt;/a&gt;, simply, if inconveniently:

&lt;/p&gt;
&lt;ol&gt;

&lt;li&gt; Kill Adobe Reader. I assume you haven't used any of your print quota.
&lt;/li&gt;
&lt;li&gt; Copy your &lt;code&gt;~/Library/Acrobat User Data&lt;/code&gt; somewhere safe. It
seems to be a bit sensitive to a few things, so I suggest:

&lt;pre&gt;
cd ~/Library
tar cfv ~/AUD.tar Acrobat\ User\ Data/
&lt;/pre&gt;
&lt;/li&gt;

&lt;li&gt; Fire up Adobe reader, print as much as you're allowed to.
&lt;/li&gt;

&lt;li&gt; Kill Adobe Reader, save the new state and extract the old:

&lt;pre&gt;
cd ~/Library
mv Acrobat\ User\ Data/ /tmp/AUD.old
tar xfv ~/AUD.tar
&lt;/pre&gt;
&lt;/li&gt;

&lt;li&gt;Go back to step 3.
&lt;/li&gt;

&lt;/ol&gt;

&lt;p&gt;

If things screw up you can move your saved state back into place and things
should work as they did before. The standard disclaimer applies to all of
this: it worked for me, I hope it works for you, don't sue me if it doesn't.

&lt;/p&gt;
&lt;p&gt;

&lt;a
href=&quot;http://lists.grok.org.uk/pipermail/full-disclosure/2002-July/000177.html&quot;&gt;I
see I'm not the first to think of this.&lt;/a&gt;

&lt;/p&gt;</description>
  </item>
  <item>
    <title>&lt;a href=&quot;http://www.apple.com/ipodshuffle/&quot;&gt;iPod Shuffle&lt;/a&gt; Gripes</title>
    <link>http://peteg.org/blog/2006/12/18#2006-12-18-iPod-Gripes</link>
    <category>/hacking/mac</category>
    <description>
OK, I've owned the damn thing for about a month, time to put the boot
in. :-)

What I like:

&lt;ul&gt;

 &lt;li&gt;Unplugging the headphones makes it pause. Perhaps all &lt;a href=&quot;http://www.apple.com/ipod/&quot;&gt;iPod&lt;/a&gt;s do
 this, but my &lt;a href=&quot;http://www.iriver.com/&quot;&gt;iRiver&lt;/a&gt; didn't.
 &lt;/li&gt;

 &lt;li&gt;The control is much better designed than my old &lt;a href=&quot;http://www.iriver.com/&quot;&gt;iRiver&lt;/a&gt;.
 &lt;/li&gt;

&lt;/ul&gt;

What I'd like:

&lt;ul&gt;

 &lt;li&gt;Some audible warning that it's out of juice. The little all-purpose LED
 glows red, I think, and that's that.
 &lt;/li&gt;

 &lt;li&gt;A way to delete songs on the player itself, so I can fill it up with
 random crap and on-the-spot nuke the annoying stuff, rather than having to
 tediously go through it afterwards in &lt;a href=&quot;http://www.apple.com/itunes/&quot;&gt;iTunes&lt;/a&gt; at home.
 &lt;/li&gt;

&lt;/ul&gt;

What I don't like:

&lt;ul&gt;

 &lt;li&gt;The dinky dock. My old &lt;a href=&quot;http://www.iriver.com/&quot;&gt;iRiver&lt;/a&gt; had a standard mini-&lt;a href=&quot;http://www.usb.org/&quot;&gt;USB&lt;/a&gt; port,
 which happened to be the same as my &lt;a href=&quot;http://canon.com/&quot;&gt;Canon&lt;/a&gt; &lt;a href=&quot;http://consumer.usa.canon.com/ir/controller?act=ModelDetailAct&amp;amp;fcategoryid=145&amp;amp;modelid=9828&quot;&gt;PowerShot A75&lt;/a&gt;. One cable
 was all I needed. Moreover I have no way to recharge it without having the
 &lt;a href=&quot;http://www.apple.com/ibook/&quot;&gt;iBook&lt;/a&gt; plugged in &lt;em&gt;and running&lt;/em&gt; &amp;mdash; there's no juice on the
 &lt;a href=&quot;http://www.usb.org/&quot;&gt;USB&lt;/a&gt; bus when it's suspended.
 &lt;/li&gt;

&lt;/ul&gt;

&lt;a href=&quot;http://arstechnica.com/reviews/hardware/shuffle.ars&quot;&gt;Ars
Technica&lt;/a&gt; killed theirs by running a car over it. &lt;a
href=&quot;http://shuffle-db.sourceforge.net/&quot;&gt;This program&lt;/a&gt; may yet liberate
me from &lt;a href=&quot;http://www.apple.com/itunes/&quot;&gt;iTunes&lt;/a&gt; inanity.</description>
  </item>
  <item>
    <title>Powering the &lt;a href=&quot;http://www.apple.com/ibook/&quot;&gt;iBook&lt;/a&gt; from the car.</title>
    <link>http://peteg.org/blog/2006/12/16#2006-12-16-PowertechPlusCarPowerAdaptor</link>
    <category>/hacking/mac</category>
    <description>
&lt;p&gt;

I trudged all over Sydney CBD today looking for a new pair of &lt;a href=&quot;http://www.drmartens.com/&quot;&gt;Docs&lt;/a&gt; and
something that would let me recharge the &lt;a href=&quot;http://www.apple.com/ibook/&quot;&gt;iBook&lt;/a&gt; from the car. It seems
the old &lt;a href=&quot;http://www.drmartens.com/&quot;&gt;Docs&lt;/a&gt; shop on Pitt St Mall has folded, and the joint down George
St that for years proudly advertised cut-price &lt;a href=&quot;http://www.drmartens.com/&quot;&gt;Docs&lt;/a&gt; has gone for the
factory- (China-) direct brand instead. I'd forgotten what a hassle it is
shopping on the street.

&lt;/p&gt;
&lt;p&gt;

Anyway, to cut a long ramble short, I ended up buying a &quot;Powertech Plus
Cat. MP-3463 3.5 Amp Universal Step-up DC/DC Converter for Notebook
Computer&quot; from &lt;a href=&quot;http://www.jaycar.com.au/&quot;&gt;Jaycar&lt;/a&gt; on York St for &lt;$40 /&gt;. The sealed-in cardboard says
it was made in China and is distributed by &lt;a
href=&quot;http://electusdistribution.com.au/&quot;&gt;Electus Distribution&lt;/a&gt;, and I
can guarantee you that the cardboard was printed there too. I can't find it
in either of their catalogues. There is also a 6 Amp version for those who
have something hefty.

&lt;/p&gt;
&lt;p&gt;

It works, with one small wrinkle: the &lt;a href=&quot;http://www.apple.com/ibook/&quot;&gt;iBook&lt;/a&gt;-sized plug adaptor is wired
backwards! Fortunately the &lt;a href=&quot;http://www.apple.com/ibook/&quot;&gt;iBook&lt;/a&gt; is up to that game, simply ignoring a
reverse-polarity 24 volts. The solution is to wedge the plug adaptor onto
the cable backwards. For the curious &lt;a
href=&quot;http://www.faqintosh.com/risorse/en/guides/hw/ibook/pjack/&quot;&gt;these
Italians&lt;/a&gt; have the details, or you can try to figure out what &lt;a
href=&quot;http://developer.apple.com/qa/qa2001/qa1266.html&quot;&gt;Apple is on
about&lt;/a&gt;.

&lt;/p&gt;</description>
  </item>
  <item>
    <title></title>
    <link>http://peteg.org/blog/2006/11/29#2006-11-29-Terminator</link>
    <category>/hacking/mac</category>
    <description>&lt;a href=&quot;http://www.algorithm.com.au/&quot;&gt;Andr&amp;eacute;&lt;/a&gt; pointed out &lt;a href=&quot;http://software.jessies.org/terminator/&quot;&gt;Terminator&lt;/a&gt; to me, a cross-platform terminal
emulator written in &lt;a href=&quot;http://java.sun.com/&quot;&gt;Java&lt;/a&gt;. It sounds promising; the only things
tying me to &lt;a href=&quot;http://x.org/&quot;&gt;X.org&lt;/a&gt; are &lt;a href=&quot;http://www.xemacs.org/&quot;&gt;XEmacs&lt;/a&gt;, a DVI viewer and &lt;a href=&quot;http://dickey.his.com/xterm/xterm.html&quot;&gt;xterm&lt;/a&gt;.
</description>
  </item>
  <item>
    <title>Easing into the 21st Century.</title>
    <link>http://peteg.org/blog/2006/11/20#2006-11-20-iPod</link>
    <category>/hacking/mac</category>
    <description>
Met up with &lt;a href=&quot;http://www.algorithm.com.au/&quot;&gt;Andr&amp;eacute;&lt;/a&gt; in Newtown for a coffee and some lunch, and being the
unpaid ambassador for &lt;a href=&quot;http://www.apple.com/&quot;&gt;Apple&lt;/a&gt; that he is, we ended up in the &lt;a
href=&quot;http://www.nextbyte.com.au/&quot;&gt;Apple store on Broadway&lt;/a&gt; and I parted
with &lt;$119 /&gt; for an &lt;a href=&quot;http://www.apple.com/ipodshuffle/&quot;&gt;iPod Shuffle&lt;/a&gt;, a replacement for my venerable 256Mb &lt;a href=&quot;http://www.iriver.com/&quot;&gt;iRiver&lt;/a&gt; iFP-390T I bought in Boston at the end of 2003. I can't see why it
needs an on/off switch.</description>
  </item>
  <item>
    <title>Backups at &lt;a href=&quot;http://www.cse.unsw.edu.au/&quot;&gt;CSE&lt;/a&gt;.</title>
    <link>http://peteg.org/blog/2006/08/06#2006-08-06-Backups</link>
    <category>/hacking</category>
    <description>
&lt;p&gt;

I was very proud of myself when I cooked up the following to backup and
encrypt my email to &lt;a href=&quot;http://www.cse.unsw.edu.au/&quot;&gt;CSE&lt;/a&gt;'s shiny new &lt;code&gt;selfbackup&lt;/code&gt; server in a
streaming manner. Assuming you've set up &lt;a href=&quot;http://www.gnupg.org/&quot;&gt;GPG&lt;/a&gt; and your environment sets
&lt;code&gt;&lt;/code&gt; and &lt;code&gt;&lt;/code&gt; appropriately, this will encrypt
a &lt;code&gt;tar&lt;/code&gt; archive of &lt;code&gt;~/Library/Mail&lt;/code&gt; using your public
key:

&lt;/p&gt;

&lt;pre&gt;
tar c ~/Library/Mail/ |
   gpg -e -r  |
   ssh selfstore.cse.unsw.edu.au &quot;cat - &gt; /backups//.mail.gpg &amp;amp;&amp;amp;
      mv /backups//.mail.gpg /backups//mail.gpg&quot;
&lt;/pre&gt;

&lt;p&gt;

Decryption is just a matter of &lt;code&gt;gpg -d | tar x&lt;/code&gt;.

&lt;/p&gt;</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/02/28#2006-02-28</link>
    <category>/hacking/mindstorms</category>
    <description>
Wow, a &lt;a
href=&quot;http://www.brickshelf.com/cgi-bin/gallery.cgi?f=170126&quot;&gt;computer-controlled
back hoe&lt;/a&gt;.</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/02/04#2006-02-04</link>
    <category>/hacking/mindstorms</category>
    <description>
I tried building one of the pneumatic pumps in &lt;a
href=&quot;http://www.fifth-r.com/cssoh1/compress.htm&quot;&gt;CSSoh&lt;/a&gt; catalogue but
was sorely disappointed by the lack of pressure I got out of it. It's
possible that my Nickel-Metal-Hydride rechargeables do not provide enough
voltage to make the motor run quickly enough. There's plenty of torque, just
not enough air pressure...</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/01/30#2006-01-30</link>
    <category>/hacking/mindstorms</category>
    <description>
&lt;p&gt;

My big haul (in a little box) of &lt;a href=&quot;http://www.lego.com/&quot;&gt;Lego&amp;trade;&lt;/a&gt; bits turned up. I bought them from
the &lt;a href=&quot;http://www.bricklink.com/store.asp?p=gtg128b&quot;&gt;Brick Artist
Depot&lt;/a&gt;, run by a very pleasant and accommodating bloke in Atlanta. Very
happy. Go and make him a rich man.

&lt;/p&gt;
&lt;p&gt;

I now own another two motors that look identical to those that come with the
&lt;a href=&quot;http://www.mindstorms.com/&quot;&gt;Lego&amp;trade; Mindstorms&lt;/a&gt; kit. Slightly worrying is that these are &lt;a
href=&quot;http://news.lugnet.com/robotics/?n=24484&amp;amp;t=i&amp;amp;v=a&quot;&gt;known to
fail&lt;/a&gt;. Conversely the four turntables should come in quite handy.

&lt;/p&gt;</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/01/28#2006-01-28</link>
    <category>/hacking/mindstorms</category>
    <description>
Allen Smith recently released an updated version of &lt;a
href=&quot;http://bricksmith.sourceforge.net/&quot;&gt;Bricksmith&lt;/a&gt;. It's an excellent
&lt;a href=&quot;http://www.lego.com/&quot;&gt;Lego&amp;trade;&lt;/a&gt; CAD tool for &lt;a href=&quot;http://www.apple.com/macosx/&quot;&gt;Mac OS X&lt;/a&gt;.</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/01/23#2006-01-23</link>
    <category>/hacking/mindstorms</category>
    <description>
&lt;p&gt;

This looks interesting: a &lt;a href=&quot;http://wikipedia.org/&quot;&gt;Wikipedia&lt;/a&gt;-style collaborative &lt;a
href=&quot;http://www.roble.info/&quot;&gt;robotics textbook&lt;/a&gt;. Sounds like a great
idea.

&lt;/p&gt;
&lt;p&gt;

A &lt;a href=&quot;http://www.last-outpost.com/~malakai/lego/&quot;&gt;three speed automatic
transmission&lt;/a&gt; built out of &lt;a href=&quot;http://www.lego.com/&quot;&gt;Lego&amp;trade;&lt;/a&gt;. Wow.

&lt;/p&gt;</description>
  </item>
  <item>
    <title>Isn't &lt;a href=&quot;http://darcs.net/&quot;&gt;darcs&lt;/a&gt; great?</title>
    <link>http://peteg.org/blog/2006/01/18#2006-01-18-darcs</link>
    <category>/hacking</category>
    <description>
&lt;p&gt;

I've put off trying out &lt;a href=&quot;http://darcs.net/&quot;&gt;darcs&lt;/a&gt; for ages, indeed, longer than I've been
putting off checking my stuff into a crusty old &lt;a href=&quot;http://www.gnu.org/software/cvs/&quot;&gt;CVS&lt;/a&gt; repository. My main
operations are diffing (to see if I've screwed things up more than I'm aware
of) and finding that little bit of code from ten revisions back that hacked
around that little problem that came back. &lt;code&gt;pcl-cvs&lt;/code&gt; in &lt;a href=&quot;http://www.xemacs.org/&quot;&gt;XEmacs&lt;/a&gt; was
good for the former, and I just dug around in the repository itself for the
latter.

&lt;/p&gt;
&lt;p&gt;

It seems there's a &lt;code&gt;pcl-cvs&lt;/code&gt;-equivalent for &lt;a href=&quot;http://darcs.net/&quot;&gt;darcs&lt;/a&gt; in the pipeline, and
moreover is being actively hacked. Find the repo &lt;a
href=&quot;http://chneukirchen.org/repos/darcsum/&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;http://darcs.net/&quot;&gt;darcs&lt;/a&gt;'ed, of
course.

&lt;/p&gt;
&lt;p&gt;

Well, it works, and that's a good start. A &lt;a href=&quot;http://haskell.org/&quot;&gt;Haskell&lt;/a&gt; program doing useful
things? Unheard of!

&lt;/p&gt;</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/01/12#2006-01-12-Xorg</link>
    <category>/hacking</category>
    <description>
&lt;p&gt;

I've been meaning to get a new X-server for a long time now, as the one I
have is bug ridden. I thought I'd managed to upgrade it in the past, as the
build process for these &lt;a href=&quot;http://x.org/&quot;&gt;X.org&lt;/a&gt; servers continues after fatal errors... and
restarting with &lt;code&gt;make World&lt;/code&gt; kicks off a big clean, which makes
this behaviour both misleading and somewhat useless to non-hardcore hackers.

&lt;/p&gt;&lt;p&gt;

The short story is that at this point in time &lt;a href=&quot;http://x.org/&quot;&gt;X.org&lt;/a&gt; R6.9.0 does not
readily compile on &lt;a href=&quot;http://www.apple.com/macosx/&quot;&gt;Mac OS X&lt;/a&gt; 10.4 (using &lt;a href=&quot;http://gcc.gnu.org/&quot;&gt;GCC&lt;/a&gt; 4.0), but R6.8.2 does
after you do some fiddling. Most of the trick is to replace the files that
fail to compile with their updated selves in a R6.9.0 tree, and the rest is
a small tweak to &lt;code&gt;darwinKeyboard.c&lt;/code&gt;. &lt;a href=&quot;http://peteg.org/blog/hacking/patch-Xorg-R6.8.2-OSX-10.4.3-GCC-4.0.1&quot;&gt;Here's a patch&lt;/a&gt; that does it
for you. Apply it with:

&lt;/p&gt;

&lt;pre&gt;
patch -p1 &amp;lt; patch-Xorg-R6.8.2-OSX-10.4.3-GCC-4.0.1
&lt;/pre&gt;

&lt;p&gt;

in your &lt;code&gt;&amp;lt;build-dir&amp;gt;/xc/&lt;/code&gt; directory.

&lt;/p&gt;&lt;p&gt;

Thanks to Torrey Lyons for the pointers.

&lt;/p&gt;</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/01/11#2006-01-11</link>
    <category>/hacking/mindstorms</category>
    <description>
&lt;a href=&quot;http://www.lego.com/&quot;&gt;Lego&amp;trade;&lt;/a&gt; pneumatics: &lt;a href=&quot;http://www.fifth-r.com/cssoh1/index.htm&quot;&gt;what
else could be said?&lt;/a&gt; The extensive survey of compressors is great.</description>
  </item>
  <item>
    <title>&lt;!-- -*- HTML -*- --&gt;</title>
    <link>http://peteg.org/blog/2006/01/06#2006-01-06</link>
    <category>/hacking/mindstorms</category>
    <description>
&lt;a href=&quot;http://www.lego.com/&quot;&gt;Lego&amp;trade;&lt;/a&gt; intends to release a new version of &lt;a href=&quot;http://www.mindstorms.com/&quot;&gt;Lego&amp;trade; Mindstorms&lt;/a&gt; in the third
quarter of 2006 &amp;mdash; &lt;a
href=&quot;http://mindstorms.lego.com/press/Whats%20NXT%20LEGO%20Group%20Unveils%20LEGO%20MINDSTORMS%20NXT%20Robotics%20Toolset%20at%20Consumer%20Electronics%20Show.aspx&quot;&gt;here's
the press release&lt;/a&gt;, and &lt;a
href=&quot;http://games.slashdot.org/article.pl?sid=06/01/05/1328229&amp;amp;tid=159&amp;amp;tid=156&amp;amp;tid=10&quot;&gt;Slashdot
has some links&lt;/a&gt;.</description>
  </item>
  </channel>
</rss>
