<?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"
	>

<channel>
	<title>The Exploits of Plouj</title>
	<atom:link href="http://www.plouj.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.plouj.com/blog</link>
	<description>A blog by Michael Ploujnikov</description>
	<pubDate>Wed, 03 Dec 2008 16:15:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Quick Picasa evaluation</title>
		<link>http://www.plouj.com/blog/2008/12/02/quick-picasa-evaluation/</link>
		<comments>http://www.plouj.com/blog/2008/12/02/quick-picasa-evaluation/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 03:35:20 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[review]]></category>

		<category><![CDATA[tools]]></category>

		<category><![CDATA[criticism]]></category>

		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[photography]]></category>

		<category><![CDATA[picasa]]></category>

		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=144</guid>
		<description><![CDATA[This is a quick, biased, un-authoritative and incomplete evaluation of Google&#8217;s photo manager Picasa. In total, I&#8217;ve spent no more than a couple of hours using Picasa. I&#8217;ve already chosen to use Digikam as my photo manager so I was going to blatantly ignore its many faults and ruthlessly criticise Picasa. Don&#8217;t read this post [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick, biased, un-authoritative and incomplete evaluation of Google&#8217;s photo manager <a href="http://picasa.google.com/">Picasa</a>. In total, I&#8217;ve spent no more than a couple of hours using Picasa. I&#8217;ve already chosen to use <a href="http://www.digikam.org/">Digikam</a> as my photo manager so I was going to blatantly ignore its many faults and ruthlessly criticise Picasa. Don&#8217;t read this post to learn about Picasa. Download it yourself or <a href="http://www.google.ca/search?hl=en&amp;q=google+picasa+review">look for more comprehensive reviews</a> elsewhere on the &#8216;net. I&#8217;m writing this because I promised a friend at work to look at Picasa and later I decided to put my observations in writing. You&#8217;ve been warned.</p>
<h3>What I liked</h3>
<ul>
<li>importing images into the gallery using a separate and (seemingly) lower priority thread makes  the UI usable right from the start.</li>
<li>it hasn&#8217;t crashed on me while importing 11,000+ pictures into the gallery</li>
<li>cute, but useless timeline display application<a href="http://www.plouj.com/blog/wp-content/uploads/2008/12/timeline-app.png"><img class="alignnone size-medium wp-image-172" title="timeline-app" src="http://www.plouj.com/blog/wp-content/uploads/2008/12/timeline-app-300x240.png" alt="" width="300" height="240" /></a></li>
<li>Google provided an RPM repository which makes installing, upgrading and un-installing very easy for me</li>
</ul>
<h3>What I disliked</h3>
<ul>
<li>simplified colour tuning controls. They might be OK for beginners, but they don&#8217;t appeal to someone like me who has used colour curves before.<a href="http://www.plouj.com/blog/wp-content/uploads/2008/12/tuning-controls.png"><img class="alignnone size-medium wp-image-164" title="tuning-controls" src="http://www.plouj.com/blog/wp-content/uploads/2008/12/tuning-controls-235x300.png" alt="" width="235" height="300" /></a></li>
<li>at first launch, Picasa started to import images from my whole home directory, which is huge and has tonnes of pictures. This only made me realize just how many images I have (mostly application icons and game project textures) that really don&#8217;t belong in a photo catalogue. I also couldn&#8217;t find a way to tell Picasa to stop and only look in certain directories.</li>
<li>Picasa froze when I first tried the &#8220;tools &gt; folder manager&#8221;. It worked on the second attempt, and I realized that this is the tool used to tell Picasa exactly what directories to include when searching for images.</li>
<li>the &#8220;Tools &gt; Experimental &gt; show duplicate pictures&#8221; function was indeed experimental. It seemed to just give me a list of images without indicating what the duplicate pairs (or groups) were.</li>
<li>the search results for the &#8220;show duplicate pictures&#8221; also showed a strange status bar at the top of the main window. I never figured out the meaning of the constantly changing seconds value or what GPixel was referring to.<a href="http://www.plouj.com/blog/wp-content/uploads/2008/12/top-status-bar.png"><img class="size-medium wp-image-160 alignnone" title="top-status-bar" src="http://www.plouj.com/blog/wp-content/uploads/2008/12/top-status-bar-300x29.png" alt="" width="300" height="29" /></a></li>
<li>the &#8220;importing indicator&#8221;, although neat (it showed what picture was being imported in real time), was rather useless. Most importantly, it did not show the total progress percentage. When I tried to close it, it seemed to just re-appear in a different location along the side of the main Picasa window. Then it simply started sliding up and down without explanation.<a href="http://www.plouj.com/blog/wp-content/uploads/2008/12/annoying-thing.png"><img class="alignnone size-medium wp-image-163" title="annoying-thing" src="http://www.plouj.com/blog/wp-content/uploads/2008/12/annoying-thing.png" alt="" width="270" height="49" /></a></li>
<li>after a lot of clicking, I managed to loose the album list view in the left pane and had to re-start Picasa</li>
<li>ugly dithered splash screen image - c&#8217;mon, we&#8217;re not in the 1990&#8217;s anymore!</li>
<li>the scrollbar in the main view controls the view scroll speed, not the actual movement of the view - annoying and misleading. It didn&#8217;t let me get near the bottom right away, and I got dizzy every time I scrolled. However, I think the search result view actually changed the scroll bar function to the usual scroll bar for reasons beyond me.</li>
<li>I somehow totally failed to find the familiar <a href="http://flickr.com/photos/vdemeester/425291448/">timeline</a>/<a href="http://www.flickr.com/photos/digikam/2603260875/">calendar view</a> of my photos. Does Picasa really not have a way to organize photos in this manner?<a href="http://www.flickr.com/photos/digikam/2603260875/"><br />
</a></li>
<li>this is <a href="http://www.gnu.org/philosophy/categories.html#ProprietarySoftware">proprietary</a> software from Google. I actually like a lot of stuff that comes from Google, but when it comes to software licensing, I don&#8217;t play favourites. I simply try to avoid non-<a href="http://www.gnu.org/philosophy/free-sw.html">Free</a> software as much as I can.</li>
</ul>
<h3>What I ignored</h3>
<ul>
<li>uploading to and syncing with various web services</li>
<li>ordering prints</li>
<li>printing to a local/personal printer</li>
<li>picture backup feature - rsync is fine for me</li>
<li>passport photo function - what the heck?</li>
<li>the ability to store video flies, which I consider to be outside of the scope of this program</li>
<li>anything else I haven&#8217;t mentioned, obviously</li>
</ul>
<h3>Final thoughts</h3>
<p>In conclusion, I&#8217;ve used my experience with Picasa to re-inforced my decision to stick with Digikam - a Free/OpenSource Software photo manager.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/12/02/quick-picasa-evaluation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quake1 demo recorded on the Wii</title>
		<link>http://www.plouj.com/blog/2008/08/19/quake1-demo-recorded-on-the-wii/</link>
		<comments>http://www.plouj.com/blog/2008/08/19/quake1-demo-recorded-on-the-wii/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 03:12:40 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[fun]]></category>

		<category><![CDATA[games]]></category>

		<category><![CDATA[hacks]]></category>

		<category><![CDATA[demo]]></category>

		<category><![CDATA[homebrew]]></category>

		<category><![CDATA[quake]]></category>

		<category><![CDATA[wii]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=87</guid>
		<description><![CDATA[I wastedspent today&#8217;s evening playing around with Quake1 which I installed on my brother&#8217;s Wii through the Homebrew channel. One cool thing that I managed to get working relatively painlessly was demo recording. 
Since there is no keyboard support in Quake1 yet, I had to add the following bind to the /id1/config.cfg file on the [...]]]></description>
			<content:encoded><![CDATA[<p>I <del datetime="2008-08-20T02:56:34+00:00">wasted</del>spent today&#8217;s evening playing around with <a href="http://code.google.com/p/quake-gamecube/">Quake1</a> which I <a href="http://wiibrew.org/w/index.php?title=Twilight_Hack">installed</a> on my brother&#8217;s <a href="http://www.amazon.ca/gp/product/B0009VXBAQ?ie=UTF8&#038;tag=plouj-20&#038;linkCode=as2&#038;camp=15121&#038;creative=330641&#038;creativeASIN=B0009VXBAQ">Wii</a><img src="http://www.assoc-amazon.ca/e/ir?t=plouj-20&#038;l=as2&#038;o=15&#038;a=B0009VXBAQ" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> through the <a href="http://hbc.hackmii.com/">Homebrew channel</a>. One cool thing that I managed to get working relatively painlessly was demo recording. </p>
<p>Since there is <a href="http://code.google.com/p/quake-gamecube/issues/detail?id=11">no keyboard support in Quake1 yet</a>, I had to add the following bind to the <code>/id1/config.cfg</code> file on the SD card using a desktop computer:</p>
<pre>
bind "UPARROW" "disconnect; skill 3; record wii; map e1m1"
</pre>
<p>This allowed me to simply press the up arrow button on the Wii remote and Quake1 would start recording a demo of me playing the <a href="http://www.google.ca/search?q=e1m1">first level of the first episode</a> on Nightmare difficulty.</p>
<p>So far, I haven&#8217;t been able to play the game as quickly and as precisely as I can on a computer with a mouse. Not that I&#8217;m a great Quake player to begin with. However, I still had a lot of fun, especially after I started using the <a href="http://www.amazon.ca/gp/product/B000W5Y49G?ie=UTF8&#038;tag=plouj-20&#038;linkCode=as2&#038;camp=15121&#038;creative=330641&#038;creativeASIN=B000W5Y49G">Wii Zapper</a><img src="http://www.assoc-amazon.ca/e/ir?t=plouj-20&#038;l=as2&#038;o=15&#038;a=B000W5Y49G" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />. It gave me a nice sensation of holding boom stick, but didn&#8217;t improve my aim.</p>
<p>Here is the actual <a href='http://www.plouj.com/blog/wp-content/uploads/2008/08/wiidem.bz2'>demo bzip2 archive</a> for those who really want to watch me get owned by zombies from another dimension for a few minutes. This demo should be playable with most Quake1 engines and original (full version or demo) game data from ID. I personally used <a href="http://icculus.org/twilight/darkplaces/">Darkplaces</a>:</p>
<p><a href="http://www.plouj.com/blog/wp-content/uploads/2008/08/000831_dp000018.jpg"><img src="http://www.plouj.com/blog/wp-content/uploads/2008/08/000831_dp000018-300x240.jpg" alt="" title="wii demo shot 1" width="300" height="240" class="alignnone size-medium wp-image-125" /></a><br />
<a href="http://www.plouj.com/blog/wp-content/uploads/2008/08/dp000020.jpg"><img src="http://www.plouj.com/blog/wp-content/uploads/2008/08/dp000020-300x240.jpg" alt="" title="wii demo shot 2" width="300" height="240" class="alignnone size-medium wp-image-91" /></a>.<br />
These screenshots sort-of show that I&#8217;m shooting at stuff which is not directly under my cross-hair because of the way Wii remote look works. In the actual Wii Quake, the gun model also moves around the screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/08/19/quake1-demo-recorded-on-the-wii/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Michael Phelps - New Chuck Norris</title>
		<link>http://www.plouj.com/blog/2008/08/19/michael-phelps-new-chuck-norris/</link>
		<comments>http://www.plouj.com/blog/2008/08/19/michael-phelps-new-chuck-norris/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 14:15:18 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[fun]]></category>

		<category><![CDATA[olympics]]></category>

		<category><![CDATA[chucknorris]]></category>

		<category><![CDATA[phelps]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=82</guid>
		<description><![CDATA[What a great way to start the morning: http://ianweller.org/2008/08/19/michael-phelps-is-the-new-chuck-norris/
I wonder if this is the kind of stuff/legends/myths/tales we&#8217;ll be telling our grand kids about.
]]></description>
			<content:encoded><![CDATA[<p>What a great way to start the morning: <a href="http://ianweller.org/2008/08/19/michael-phelps-is-the-new-chuck-norris/">http://ianweller.org/2008/08/19/michael-phelps-is-the-new-chuck-norris/</a><br />
I wonder if this is the kind of stuff/legends/myths/tales we&#8217;ll be telling our grand kids about.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/08/19/michael-phelps-new-chuck-norris/feed/</wfw:commentRss>
		</item>
		<item>
		<title>War Photographs from South Ossetia</title>
		<link>http://www.plouj.com/blog/2008/08/15/war-photographs-from-south-ossetia/</link>
		<comments>http://www.plouj.com/blog/2008/08/15/war-photographs-from-south-ossetia/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 00:35:03 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[war]]></category>

		<category><![CDATA[georgia]]></category>

		<category><![CDATA[mirror]]></category>

		<category><![CDATA[ossetia]]></category>

		<category><![CDATA[photographs]]></category>

		<category><![CDATA[russia]]></category>

		<category><![CDATA[world]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=63</guid>
		<description><![CDATA[I&#8217;ve put up a mirror of a forum post full of photographs from South Ossetia:
http://plouj.com/war-in-south-ossetia-almanac-art-of-war-www.navoine.ru/
Note:The photographs contain real blood and gore and therefore definitely not recommended for children.
The photos were taken by Аркадий Бабченко and now belong to the &#8220;Art of War&#8221; Almanac.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve put up a mirror of a <a href="http://www.navoine.ru/forum/viewtopic.php?t=112">forum post</a> full of photographs from <a href="http://en.wikipedia.org/wiki/South_Ossetia">South Ossetia</a>:</p>
<p><a href="http://plouj.com/war-in-south-ossetia-almanac-art-of-war-www.navoine.ru/">http://plouj.com/war-in-south-ossetia-almanac-art-of-war-www.navoine.ru/</a></p>
<p><strong>Note:</strong>The photographs contain real blood and gore and therefore definitely not recommended for children.</p>
<p>The photos were taken by Аркадий Бабченко and now belong to the <a href="http://www.navoine.ru">&#8220;Art of War&#8221; Almanac</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/08/15/war-photographs-from-south-ossetia/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TAP that DHCP bridge for some Qemu TUN in Fedora</title>
		<link>http://www.plouj.com/blog/2008/07/29/tap-that-dhcp-bridge-for-some-qemu-tun-in-fedora/</link>
		<comments>http://www.plouj.com/blog/2008/07/29/tap-that-dhcp-bridge-for-some-qemu-tun-in-fedora/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 23:22:40 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[HOWTO]]></category>

		<category><![CDATA[networking]]></category>

		<category><![CDATA[bridge]]></category>

		<category><![CDATA[DHCP]]></category>

		<category><![CDATA[fedora]]></category>

		<category><![CDATA[hacks]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[Qemu]]></category>

		<category><![CDATA[Redhat]]></category>

		<category><![CDATA[sysconfig]]></category>

		<category><![CDATA[TAP]]></category>

		<category><![CDATA[TUN]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=20</guid>
		<description><![CDATA[The other day I needed to setup bridged networking for a Qemu virtual machine. Although I found a rather well written generic TAP interfaces guide on Wikibooks. It only explained how to configure a network bridge on a host machine with a static IP. I wanted to do this on a host that used DHCP. [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I needed to setup bridged networking for a Qemu virtual machine. Although I found a rather well written generic <a href="http://en.wikibooks.org/wiki/QEMU/Networking#TAP_interfaces">TAP interfaces guide on Wikibooks</a>. It only explained how to configure a network bridge on a host machine with a static IP. I wanted to do this on a host that used DHCP. Plus I wanted to keep all configuration in Fedora specific places. Having discovered a good way to do this through experimentation after a few fruitless Google searches I thought it would be useful for myself and others to have the configuration documented here.</p>
<h1>ifcfg-eth0</h1>
<p>First, I changed the host&#8217;s (auto-generated) <code>/etc/sysconfig/network-scripts/ifcfg-eth0</code> script from this:</p>
<pre># Attansic Technology Corp. L1 Gigabit Ethernet Adapter
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:1D:60:35:A7:64
ONBOOT=yes
</pre>
<p>to this:</p>
<pre># Attansic Technology Corp. L1 Gigabit Ethernet Adapter
DEVICE=eth0
TYPE=Ethernet
BRIDGE=br0
ONBOOT=yes
</pre>
<p>This turns off DHCP on the physical Ethernet device and just specifies that it will be connected to or a part of a bridge.</p>
<h1>ifcfg-br0</h1>
<p>Second, I created <code>/etc/sysconfig/network-scripts/ifcfg-br0</code>, which will be called to setup a bridge device:</p>
<pre>DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
HWADDR=00:1D:60:35:A7:64
ONBOOT=yes
DELAY=0
STP=off
</pre>
<p>As you can see, most of this configuration is copied from eth0 plus the bridge configuration as per the Qemu Wikibook.</p>
<h1>qemu-ifup/down</h1>
<p>Third, I shortened the <code>/etc/qemu-ifup</code> and <code>/etc/qemu-ifdown</code> from Wikibooks to get this:</p>
<p><code>/etc/qemu-ifup</code>:</p>
<pre>#!/bin/sh
USER=$(id -un)
sudo /usr/sbin/openvpn --mktun --dev $1 --user "$USER"
sudo /sbin/ifconfig $1 0.0.0.0 promisc up
sudo /usr/sbin/brctl addif br0 $1
</pre>
<p><code>/etc/qemu-ifdown</code>:</p>
<pre>#!/bin/sh
sudo /sbin/ifconfig $1 down
sudo /usr/sbin/brctl delif br0 $1
sudo /usr/sbin/openvpn --rmtun --dev $1
</pre>
<p>Here I basically removed all of the configuration that is taken care of in the sysconfig scripts. I also made explicit use of sudo simply because that is my preference.</p>
<h1>Final steps</h1>
<p>Now I can simply run <code>/etc/qemu-ifup tap0</code> once to create a TAP device, and use something like: <code>qemu-kvm -hda /virtual-machines/fedora9.disk -m 512 -net nic -net tap,ifname=tap0,script=no</code> to start a virtual machine. When I&#8217;m done running the virtual machine, I can run <code>/etc/qemu-ifdown tap0</code> to remove the TAP device.<br />
It sounds simple now that it&#8217;s working, but initially it took a lot of guessing on my part so I&#8217;m documenting it here for the future.</p>
<p>I would appreciate it if someone can point me to the official Redhat/Fedora documentation on editing <code>/etc/sysconfig/network-scripts/</code> scripts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/07/29/tap-that-dhcp-bridge-for-some-qemu-tun-in-fedora/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I can has ZENN car?</title>
		<link>http://www.plouj.com/blog/2008/07/29/i-can-has-zenn-car/</link>
		<comments>http://www.plouj.com/blog/2008/07/29/i-can-has-zenn-car/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 16:12:22 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[activism]]></category>

		<category><![CDATA[green]]></category>

		<category><![CDATA[Canada]]></category>

		<category><![CDATA[environment]]></category>

		<category><![CDATA[gas]]></category>

		<category><![CDATA[legal]]></category>

		<category><![CDATA[politics]]></category>

		<category><![CDATA[transportation]]></category>

		<category><![CDATA[vehicles]]></category>

		<category><![CDATA[ZENN]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=31</guid>
		<description><![CDATA[I just want to spread some awareness about the all-electric ZENN car and its legalization problems in Canada.
]]></description>
			<content:encoded><![CDATA[<p>I just want to spread some awareness about the all-electric <a href="http://en.wikipedia.org/wiki/ZENN">ZENN car</a> and its <a href="http://www.edge.ca/Blogs/BTsBlog/BlogEntry.aspx?BlogEntryID=10002959">legalization problems</a> in <a href="http://taxfreesee.net/news/7069">Canada</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/07/29/i-can-has-zenn-car/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lexmark E250DN IPP Printing in CUPS</title>
		<link>http://www.plouj.com/blog/2008/06/22/lexmark-e250dn-ipp-printing-in-cups/</link>
		<comments>http://www.plouj.com/blog/2008/06/22/lexmark-e250dn-ipp-printing-in-cups/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 01:14:24 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[hacks]]></category>

		<category><![CDATA[cups]]></category>

		<category><![CDATA[fedora]]></category>

		<category><![CDATA[ipp]]></category>

		<category><![CDATA[lexmark]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=19</guid>
		<description><![CDATA[I just finished setting up my newly purchased monochrome duplex network printer - Lexmark E250DN. It took me a while to figure out how to configure CUPS on my GNU/Linux/Fedora machines to communicate with this printer. The problem was that I just didn&#8217;t know what URI to use for the printer. Unsurprisingly, the PDF and [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished setting up my newly purchased monochrome duplex network printer - Lexmark E250DN. It took me a while to figure out how to configure CUPS on my GNU/Linux/Fedora machines to communicate with this printer. The problem was that I just didn&#8217;t know what URI to use for the printer. Unsurprisingly, the PDF and HTML documents that came with the printer didn&#8217;t mention such information. After all, why would Windows users need to know that if they can simply run the printer-specific utility to configure everything for them? Sheesh&#8230; Anyways. The CUPS manual was actually quite useful in listing <a href="http://localhost:631/help/network.html?QUERY=lexmark#TABLE1">common printer URIs</a>. It turned out that the Lexmark URI <code>lpd://printer-address/ps</code> and a Generic PostScript driver worked quite well. In fact, the &#8220;/ps&#8221; part seems to be irrelevant, so simply <code>lpd://printer.lan</code> worked for me. However, the CUPS manual also suggested <a href="http://localhost:631/help/network.html?QUERY=lexmark#LPD">avoiding the LPD protocol</a> if the printer supported other protocols. Using nmap I confirmed that my printer has at least something running on the IPP port (631):</p>
<pre>
$ nmap printer.lan

Starting Nmap 4.53 ( http://insecure.org ) at 2008-06-22 20:39 EDT
Interesting ports on printer.lan (10.1.1.7):
Not shown: 1705 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
79/tcp    open  finger
80/tcp    open  http
515/tcp   open  printer
631/tcp   open  ipp
5001/tcp  open  commplex-link
8000/tcp  open  http-alt
9100/tcp  open  jetdirect
10000/tcp open  snet-sensor-mgmt

Nmap done: 1 IP address (1 host up) scanned in 0.396 seconds
</pre>
<p>After a bit of trial and error, I discovered that simply using the <code>http://printer.lan:631</code> or <code>ipp://printer.lan</code> URI and a Generic PostScript driver worked without problems with E250DN.</p>
<p>Apart from these initial pains I am quite happy to be able to print double-sided black-and-white documents from all of my home computers.</p>
<h1>Side Note:</h1>
<p>During the investigation process, I noticed that Fedora&#8217;s system-config-printer utility prints the following information to the terminal when I tell it the IPP printer hostname:</p>
<pre>
...
printer.lan: /usr/lib/cups/backend/snmp "${HOST}" 2>/dev/null
printer.lan: hp-makeuri -c "${HOST}" 2> /dev/null
No ID match for device ipp://printer.lan:
&lt;manufacturer&gt;Lexmark&lt;/manufacturer&gt;
  &lt;model&gt;E250dn 6216N4G LE.PM.P121 -- Part Number -&lt;/model&gt;
  &lt;description&gt;Lexmark E250dn 6216N4G LE.PM.P121 -- Part Number -&lt;/description&gt;
  &lt;commandset&gt;&lt;/commandset&gt;
Using textonly.ppd
...
</pre>
<p>I wonder how I could get that XML-ish output myself. It doesn&#8217;t seem to come from hp-makeuri.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/06/22/lexmark-e250dn-ipp-printing-in-cups/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google Summer of Code turned down for a Job</title>
		<link>http://www.plouj.com/blog/2008/05/19/google-summer-of-code-turned-down-for-a-job/</link>
		<comments>http://www.plouj.com/blog/2008/05/19/google-summer-of-code-turned-down-for-a-job/#comments</comments>
		<pubDate>Mon, 19 May 2008 23:51:11 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[career]]></category>

		<category><![CDATA[books]]></category>

		<category><![CDATA[choices]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[gsoc]]></category>

		<category><![CDATA[job]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[soma]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=14</guid>
		<description><![CDATA[In April I was privileged to be one of the 1125 students who got selected for the Google Summer of Code (GSoC) 2008 program. I was accepted to work on a project to implement Panorama Viewing in VLC. This summer was my last chance to participate in GSoC as a student because of my graduation [...]]]></description>
			<content:encoded><![CDATA[<p>In April I was privileged to be one of the 1125 students who got selected for the Google Summer of Code (GSoC) 2008 program. I was accepted to work on a project to implement <a href="http://code.google.com/soc/2008/videolan/appinfo.html?csaid=D235E2286B710C5F">Panorama Viewing</a> <a href="http://wiki.videolan.org/SoC_2008/PanoramaViewing">in VLC</a>. This summer was my last chance to participate in GSoC as a student because of my graduation date so I was very excited to have this once in a lifetime opportunity. More recently, I received an offer for a full-time &#8220;Linux Application and OS Developer&#8221; position at <a href="http://www.somanetworks.com/">SOMA Networks</a> - a company in downtown Toronto. Given the importance of a permanent job and having read the <a href="http://code.google.com/opensource/gsoc/2008/faqs.html#0.1_student_time">advice</a> from previous GSoC participants, it didn&#8217;t take me long to decide to cancel the GSoC project and focus on the new job. Due to timing, however, I still managed to receive an acceptance gift from Google. The gift is a book called <a href="http://www.amazon.ca/gp/product/0596510047?ie=UTF8&#038;tag=httpploujcom-20&#038;linkCode=as2&#038;camp=15121&#038;creative=330641&#038;creativeASIN=0596510047">Beautiful Code: Leading Programmers Explain How They Think</a>. Apart from being an interesting read, it&#8217;s a nice souvenir to keep in memory of the many hours I spent preparing for GSoC by choosing a project to apply for and writing multiple proposals.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/05/19/google-summer-of-code-turned-down-for-a-job/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fedora 9 Jigdo</title>
		<link>http://www.plouj.com/blog/2008/05/14/fedora-9-jigdo/</link>
		<comments>http://www.plouj.com/blog/2008/05/14/fedora-9-jigdo/#comments</comments>
		<pubDate>Wed, 14 May 2008 20:55:00 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[tools]]></category>

		<category><![CDATA[download]]></category>

		<category><![CDATA[fedora]]></category>

		<category><![CDATA[jigdo]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=13</guid>
		<description><![CDATA[So Fedora 9 has been released upon the masses yesterday. I won&#8217;t be able to try it for a while, but I decided to start downloading it now anyways. On the download page I noticed a curious new option of using Jigdo. After reading a bit about Jigdo it looks like it could fit me [...]]]></description>
			<content:encoded><![CDATA[<p>So <a href="http://docs.fedoraproject.org/release-notes/f9/">Fedora 9</a> has been released upon the masses yesterday. I won&#8217;t be able to try it for a while, but I decided to start downloading it now anyways. On the download page I noticed a curious new option of using <a href="http://atterer.net/jigdo/">Jigdo</a>. After reading a bit about Jigdo it looks like it could fit me well. I have, what I consider to be, a fast (5Mbit download) Internet connection, but I don&#8217;t like the idea of straining mirror download servers of Free Software projects which usually exist on a volunteer basis (A recent check shows that the main Fedora mirror is indeed overloaded). Plus, my bittorrent download keeps going inactive so I&#8217;m currently downloading Fedora 9 with Jigdo.</p>
<p>In Fedora 8, Jigdo was easy to install:<br />
<code># yum install jigdo</code></p>
<p>From the jgdo manpage I discovered that the command line <strong>client</strong> version of jigdo is actually called &#8220;jigdo-lite&#8221;. Using this client turned out to be as easy as telling it which &#8220;.jigdo&#8221; file to use:</p>
<p><code>$ jigdo-lite http://www.muug.mb.ca/pub/fedora/linux/releases/9/Fedora/x86_64/jigdo/Fedora-9-x86_64-DVD.jigdo</code></p>
<p>Jigdo was nice enough to ask me to enter a path to previous installation media (presumably Fedora) to check for files which can be reused. To my amusement it turned out that the Fedora 7 x86_64 DVD contained no such files while the Fedora 8 x86_64 DVD contained 116 of the 2691 files required by the template.</p>
<p>Resuming jigdo was an interesting process. I canceled the first attempt with Ctrl-C. Then I simply re-ran the original jigdo command and it told me:</p>
<p><code>The temporary directory `Fedora-9-x86_64-DVD.iso.tmpdir' already exists. Its contents<br />
ARE GOING TO BE DELETED (possibly after having been copied to the<br />
image, if they are of interest for it). If you do not want this<br />
to happen, press Ctrl-C now. Otherwise, press Return to proceed.</code></p>
<p>This puzzled me because it didn&#8217;t say what is the meaning of the files in the *.tmpdir directory. Without knowing that I shouldn&#8217;t be expected to assess the importance of the directory and make a decision about deleting it. My initial guess was that it contained <strong>everything</strong> that jigdo has downloaded in the previous session. I checked the &#8220;jigdo&#8221; and &#8220;jigdo-lite&#8221; mangpages but they did not mention resuming. Thankfully, the documentation on the website was more helpful. The <a href="http://atterer.net/jigdo/debian-jigdo-mini-howto/x205.html#DOWNLOADINGOFTHEISO">Downloading Of The ISO</a> section made it clear that I shouldn&#8217;t fear to loose Fedora-9-x86_64-DVD.iso.tmpdir after all. Apparently it simply stores files which have <strong>just</strong> been downloaded but haven&#8217;t been merged into the temporary image (which is called Fedora-9-x86_64-DVD.iso.tmp). I checked that currently Fedora-9-x86_64-DVD.iso.tmpdir is much smaller than Fedora-9-x86_64-DVD.iso.tmp so I feel confident in letting jigdo delete that dir:</p>
<p><code>$ ls -lah<br />
total 3.9G<br />
drwxrwxr-x  3 plouj plouj 4.0K 2008-05-14 15:48 .<br />
drwxr-xr-x 25 plouj plouj 4.0K 2008-05-14 11:16 ..<br />
-rw-rw-r--  1 plouj plouj 314K 2008-05-14 11:30 Fedora-9-x86_64-DVD.iso.list<br />
-rw-rw-r--  1 plouj plouj 3.9G 2008-05-14 15:47 Fedora-9-x86_64-DVD.iso.tmp<br />
drwxrwxr-x  4 plouj plouj 4.0K 2008-05-14 15:47 Fedora-9-x86_64-DVD.iso.tmpdir<br />
-rw-rw-r--  1 plouj plouj 211K 2008-05-12 13:11 Fedora-9-x86_64-DVD.jigdo<br />
-rw-rw-r--  1 plouj plouj  12M 2008-05-12 11:38 Fedora-9-x86_64-DVD.template<br />
-rw-rw-r--  1 plouj plouj 3.0M 2008-05-14 11:30 jigdo-file-cache.db<br />
$ du -sh Fedora-9-x86_64-DVD.iso.tmpdir<br />
7.5M	Fedora-9-x86_64-DVD.iso.tmpdir</code></p>
<p>Find confirms the same:</p>
<p><code>$ find Fedora-9-x86_64-DVD.iso.tmpdir -type f<br />
Fedora-9-x86_64-DVD.iso.tmpdir/gulus.usherbrooke.ca/pub/distro/fedora/linux/releases/9/Fedora/x86_64/os/Packages/lucene-contrib-2.3.0-1jpp.0.fc9.x86_64.rpm<br />
Fedora-9-x86_64-DVD.iso.tmpdir/gulus.usherbrooke.ca/pub/distro/fedora/linux/releases/9/Fedora/x86_64/os/Packages/libpng-1.2.24-1.fc9.x86_64.rpm<br />
Fedora-9-x86_64-DVD.iso.tmpdir/gulus.usherbrooke.ca/pub/distro/fedora/linux/releases/9/Fedora/x86_64/os/Packages/lftp-3.6.3-2.fc9.i386.rpm<br />
Fedora-9-x86_64-DVD.iso.tmpdir/www.muug.mb.ca/pub/fedora/linux/releases/9/Fedora/x86_64/os/Packages/glibc-2.8-3.x86_64.rpm</code></p>
<p>After I pressed &#8220;Return&#8221;, jigdo happily resumed downloading my Fedora 9 DVD. Some time later, the download finished successfully and the resulting image passed the SHA1SUM check.</p>
<p>In addition to the resuming confusion I noticed a few other problems with Jigdo. Firstly, it just takes a long time to download and check all the files. It has been running for over 3 hours and at 500KB/s (the average speed I get from good servers) the whole DVD image (3970.8 MB) would have been downloaded by now. Secondly, the name is hard to spell correctly. I&#8217;ve gone from &#8220;Jingo&#8221; to &#8220;Jidgo&#8221; to &#8220;Figdo&#8221;.</p>
<p>To be fair, I have to admit that the coolness of what jigdo does in the background outweighs its shortcomings and I am happy with it in the end.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/05/14/fedora-9-jigdo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>shell history meme</title>
		<link>http://www.plouj.com/blog/2008/04/30/shell-history-meme/</link>
		<comments>http://www.plouj.com/blog/2008/04/30/shell-history-meme/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 23:10:43 +0000</pubDate>
		<dc:creator>plouj</dc:creator>
		
		<category><![CDATA[fun]]></category>

		<category><![CDATA[geek]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[meme]]></category>

		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.plouj.com/blog/?p=9</guid>
		<description><![CDATA[On my home desktop machine:
$ history &#124; awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'&#124;sort -rn&#124;head
2835 ls
1624 cd
1246 ssh
964 svn
801 su
521 screen
479 man
472 rm
471 less
402 yum

same, but as root:

# history &#124; awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'&#124;sort -rn&#124;head
842 yum
317 ls
173 vim
107 mdadm
102 mount
80 man
73 ./secure-data2.sh
68 tail
63 dmesg&#124;tail
62 umount

Yay for [...]]]></description>
			<content:encoded><![CDATA[<p>On my home desktop machine:</p>
<pre>$ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
2835 ls
1624 cd
1246 ssh
964 svn
801 su
521 screen
479 man
472 rm
471 less
402 yum
</pre>
<p>same, but as root:</p>
<pre>
# history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
842 yum
317 ls
173 vim
107 mdadm
102 mount
80 man
73 ./secure-data2.sh
68 tail
63 dmesg|tail
62 umount
</pre>
<p>Yay for my system-wide setting of HISTSIZE=&#8221;50000&#8243;.<br />
./secure-data2.sh is a script I use to mount an encrypted file from a USB stick.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plouj.com/blog/2008/04/30/shell-history-meme/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
