<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <title>linux | Two 〈Foo〉s Walk into a 〈Bar〉</title>
  
  <updated>2009-01-07T22:09:00-05:00</updated>
  <author>
    <name>Chris Povirk</name>
    <email>beigetangerine@gmail.com</email>
    <uri>http://twofoos.org/</uri>
  </author>
  <link rel="alternate" type="application/xhtml+xml" hreflang="en" href="http://twofoos.org/tag/linux/"/>
  <link rel="self" type="application/atom+xml" href="http://twofoos.org/tag/linux/feed/"/>
  <rights>Copyright © 2003–2015 Chris Povirk.  All Rights Reserved.</rights>
  <id>http://twofoos.org/</id>
  <generator uri="http://twofoos.org/content/splat/" version="1.0">SPLAT</generator>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
<entry>
    <updated>2009-01-07T22:09:00-05:00</updated>
    <summary>
            New: Packages for the bonus merchants and Near Infinity.</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Baldur's Gate II ebuilds</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/bg2-ebuilds/#update_2009-01-07T22:09:00-05:00"/>
    <id>http://twofoos.org/content/bg2-ebuilds/#update_2009-01-07T22:09:00-05:00</id>
    <category term="linux"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>initial posting</strong>
        <div>

    <xhtml:h3>General Information</xhtml:h3>
    <div>
      <p>These ebuilds work with <a href="http://forums.gentoo.org/viewtopic-t-243593.html">Voltago's Black‐Isle‐RPG ebuilds</a>.  You must set up a portage overlay for those ebuilds and install Baldur's Gate II before using them</p>
    </div>

    <xhtml:h3>Bonus Merchants</xhtml:h3>
    <div>
      <p>The Bonus and Collector's Edition CDs added merchants with items from Icewind Dale and Planescape: Torment.  Those merchants have since been made publically available.</p>
      <ul><li><a href="/resources/bonusmerchants-0.ebuild"><code>bonusmerchants-0.ebuild</code></a></li></ul>
    </div>

    <xhtml:h3>Near Infinity</xhtml:h3>
    <div>
      <p><a href="http://www.idi.ntnu.no/~joh/ni/">Near Infinity</a> is a browser/editor for Baldur's Gate II and other Infinity Engine games.  (If you just want to edit saved games and characters, I'd recommend <a href="http://www.mud-master.com/shadowkeeper/index.html">Shadow Keeper</a>, which works well under Wine.</p>
      <ul>
        <li><a href="/resources/nearinfinity-1.32.ebuild"><code>nearinfinity-1.32.ebuild</code></a></li>
        <li><a href="/resources/infinity.Closeable.patch"><code>infinity.Closeable.patch</code></a> (for <code>files</code> directory)</li>
        <li><a href="/resources/nearinfinitylowercasebiff.patch"><code>nearinfinitylowercasebiff.patch</code></a> (for <code>files</code> directory)</li>
      </ul>
    </div>

  </div>
      </div>
    </content>
  </entry><entry>
    <updated>2008-12-06T15:57:00-05:00</updated>
    <summary>
            Update: updated window‐title blinking patch for xfwm4 4.4.3</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">XFCE Patches</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/xfce-patches/#update_2008-12-06T15:57:00-05:00"/>
    <id>http://twofoos.org/content/xfce-patches/#update_2008-12-06T15:57:00-05:00</id>
    <category term="linux"/>
    <category term="patches"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>updated window‐title blinking patch for xfwm4 4.4.3</strong>
        <div>
          <a href="/resources/windowmanagernoblink.4.4.3.patch" title="Stop window‐title blinking for xfwm4 4.4.3">xfwm4 4.4.3</a>
        </div>
      </div>
    </content>
  </entry><entry>
    <updated>2008-07-07T22:06:00-05:00</updated>
    <summary>
            New: Because typing mplayer -playlist instrumental is so much harder than typing instrumental.</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Self‐Playing Playlists</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/self-playing-playlist/#update_2008-07-07T22:06:00-05:00"/>
    <id>http://twofoos.org/content/self-playing-playlist/#update_2008-07-07T22:06:00-05:00</id>
    <category term="linux"/>
    <category term="scripts"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>initial posting</strong>
        <div>

    <xhtml:h3>Playlists</xhtml:h3>
    <div>
      <p>Create a playlist file as normal.  A playlist is just a text document with one file on each line.  There's no need to escape odd characters like spaces, apostrophes, and ampersands.  You can include comments by starting the line with <code>#</code>.  Here is a sample playlist, which I've put in a file named <code>instrumental</code>:</p>
      <pre># Instrumental songs
/music/NickelCreek/Why Should the Fire Die/Scotch &amp; Chocolate.mp3
/music/John Williams/Figrin D'an and the Modal Notes/Cantina Band #1.mp3</pre>

      <p>You can play this playlist by typing <code>mplayer -playlist instrumental</code> or, if you want it to be shuffled, <code>mplayer -shuffle -playlist instrumental</code>.  But why not make it executable so that I can just type <code>instrumental</code>?  And why not default to shuffle for certain playlists if that's what I want?</p>
    </div>

    <xhtml:h3>Self‐Playing Playlists</xhtml:h3>
    <div>
      <p>By using <a href="http://en.wikipedia.org/wiki/Shebang_(Unix)">shebang notation</a>, we can tell the <abbr>OS</abbr> how to "execute" our playlist.  Instead of picking a script interpreter like <code>/usr/bin/python</code>, we'll use <code>/usr/bin/mplayer</code>, along with a flag to tell it that the file is a playlist.  (If <code>mplayer</code> is located elsewhere on your system, running <code>which mplayer</code> should find it.)  Here is our modified playlist:</p>
      <pre>#!/usr/bin/mplayer -playlist
# Instrumental songs
/music/NickelCreek/Why Should the Fire Die/Scotch &amp; Chocolate.mp3
/music/John Williams/Figrin D'an and the Modal Notes/Cantina Band #1.mp3</pre>
      <p>Since the line we added starts with <code>#</code>, it is treated as a comment when <code>mplayer</code> reads the playlist.  If you <code>chmod +x instrumental</code> and move it to a directory in your <code>PATH</code>, you should be able to type <code>instrumental</code> to play the playlist.</p>
      <p>Note that you can always type <code>mplayer -shuffle -playlist instrumental</code> or any other command if you wish to play the playlist with a different set of command‐line flags.</p>

      <xhtml:h4>Self‐Playing, Self‐Shuffling Playlists</xhtml:h4>
      <div>
        <p>Maybe you'd like you playlist to play in shuffled order by default.  The command‐line argument to accomplish this is <code>-shuffle</code>, so you might try this:</p>
        <pre>#!/usr/bin/mplayer -shuffle -playlist
# Instrumental songs
/music/NickelCreek/Why Should the Fire Die/Scotch &amp; Chocolate.mp3
/music/John Williams/Figrin D'an and the Modal Notes/Cantina Band #1.mp3</pre>
        <p>It won't work.  When you execute the playlist, you'll get an error:</p>
        <pre>Unknown option on the command line: -shuffle -playlist</pre>
        <p>When running the script, the <abbr>OS</abbr> passes the entire string "<code>-shuffle -playlist</code>" as a single argument, not the two separate arguments that we want.  We need some way to split a string into two pieces.  Sounds like a job for a notoriously cryptic, Turing‐complete language:</p>
        <pre>#!/usr/bin/perl -esystem('/usr/bin/mplayer', '-shuffle', '-playlist', @ARGV)
# Instrumental songs
/music/NickelCreek/Why Should the Fire Die/Scotch &amp; Chocolate.mp3
/music/John Williams/Figrin D'an and the Modal Notes/Cantina Band #1.mp3</pre>
        <p>The <code>-e</code> tells Perl to execute the given expression.  That expression runs <code>mplayer</code> with three arguments: <code>-shuffle</code>, <code>-playlist</code>, and the remaining command‐line arguments, i.e., the playlist.  In a fun twist, our original problem, that the remainder of the line is treated as a single argument, becomes part of our solution, as we can pass an expression containing spaces to Perl without requiring any quoting.</p>
        <p>Again, you are free to run <code>mplayer -playlist instrumental</code> if you want to override the shuffle.</p>
      </div>

    </div>

  </div>
      </div>
    </content>
  </entry><entry>
    <updated>2008-06-07T20:35:00-05:00</updated>
    <summary>
            New: Cross‐platform editor for the old NES game.</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">General Manager for Tecmo Super Bowl</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/gmtsb/#update_2008-06-07T20:35:00-05:00"/>
    <id>http://twofoos.org/content/gmtsb/#update_2008-06-07T20:35:00-05:00</id>
    <category term="football"/>
    <category term="linux"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>initial posting</strong>
        <div>

    <img src="/resources/gmtsb-overall.png" style="width: 500px; height: 500px;" alt=""/>

    <xhtml:h3>Features</xhtml:h3>
    <p>Most of what you'd expect from a Tecmo Super Bowl editor.  This list starts with the more unusual features that <acronym>GM</acronym> for <acronym>TSB</acronym> offers and then moves on to the standard ones.</p>
    <ul>
      <li>Works for Windows, Linux, and Mac</li>
      <li>Drag and drop to move players and teams</li>
      <li>Ability to save more players and teams than fit in the <acronym>ROM</acronym> without requiring a special "export" phase</li>
      <li>Automatic calculation of simulation codes</li>
      <li>Rearranging players doesn't break Pro Bowl teams or returners</li>
      <li>All a team's receivers grouped together, even for 3‐WR and 4‐WR formations (and similarly for running backs and tight ends)</li>
      <li>A 2‐TE pseudo‐formation that allows you to group TE's together while presenting one as a WR in a 3‐WR formation to the game</li>
      <li>Team player‐data background color</li>
      <li>Ability to attach notes to any player or team</li>
      <li>Automatic abbreviation of first names when necessary</li>
      <li>Team run‐pass ratio</li>
      <li>Uniform editing, including which uniform to wear against each team</li>
      <li>Sortable lists of all players at a position</li>
      <li>Formation and playbook editing</li>
      <li>Pro Bowl players</li>
      <li>Return men</li>
      <li>Team names</li>
      <li>Player names, numbers, faces, and attributes</li>
    </ul>

    <xhtml:h3>Missing</xhtml:h3>
    <p>In an ideal world, I would add all of these, but I wouldn't recommend that you wait around for it.</p>
    <ul>
      <li>Editing of the 32‐team ROM (Use <a href="http://www.knobbe.org/mx/viewtopic.php?f=34&amp;t=6941&amp;start=141">TSBToolSupreme</a>)</li>
      <li>Import from text files (Use <a href="http://www.knobbe.org/mx/viewtopic.php?f=34&amp;t=6941&amp;start=141">TSBToolSupreme</a>)</li>
      <li>Schedule editing (Use <a href="http://www.tecmobowl.org/index.php5?title=Programs_Available#TSB_Rom_Editing_Tools">Tecmo Super Bowl Manager</a>)</li>
      <li>Play editing (You might try <a href="http://www.knobbe.org/phpBB2/viewtopic.php?f=34&amp;t=9094">TSB Playermaker</a> or <a href="http://www.knobbe.org/phpBB2/viewtopic.php?t=4417">TSB Play Editor</a>, though I have little knowledge this)</li>
      <li>Editing of year, league name, conference names, or division names (Use a hex editor or <a href="http://www.tecmobowl.org/index.php5?title=Programs_Available#TSB_Rom_Editing_Tools">Tecmo Super Bowl Manager</a>)</li>
      <li>Championship‐screen uniform colors (Use <a href="http://www.tecmobowl.org/index.php5?title=Programs_Available#TSB_Rom_Editing_Tools">Tecmo Super Bowl Manager</a>)</li>
      <li>Helmet editing (You might try <a href="http://www.knobbe.org/phpBB2/viewtopic.php?p=40546">Helment Editor for TSB</a>)</li>
      <li>Assorted other tweaks (Use a hex editor to follow the instructions at <a href="http://www.knobbe.org/phpBB2/viewtopic.php?t=8342">bruddog's Links for most common hacking requests</a>)</li>
    </ul>

    <xhtml:h3>Download and Run</xhtml:h3>
    <ol>
      <li><a href="http://www.java.com/en/download/index.jsp">Install Java</a> if you do not already have version 5.0 or newer.</li>
      <li><a href="/resources/gmtsb-standalone-0.9.jar">Download <acronym>GM</acronym> for <acronym>TSB</acronym>.</a></li>
      <li>Double‐click the downloaded file to run.</li>
    </ol>
    <p>Please make frequent backups of your <acronym>ROM</acronym>.  I have been using <acronym>GM</acronym> for <acronym>TSB</acronym> for my editing for about the last two years of its development without incident, but there can never be a guarantee that this program won't trash all your work.  This is even more true when you take into consideration the different computers and different usage patterns that new users bring.</p>

    <xhtml:h3>Source and Dependencies</xhtml:h3>
    <p>Unless you want to compile the program yourself, you can ignore this section.  All required libraries are included in the download above.</p>
    <ul>
      <li><a href="/resources/gmtsb-0.9-src.tar.gz"><acronym>GM</acronym> for <acronym>TSB</acronym> source</a></li>
      <li><a href="http://developer.apple.com/samplecode/AppleJavaExtensions/AppleJavaExtensions.zip">Apple Java Extensions</a></li>
      <li><a href="/resources/colors.txt"><acronym>TSBM</acronym> <code>colors.txt</code></a></li>
      <li><a href="http://google-collections.googlecode.com/files/google-collect-snapshot-20080321-bundle.jar">Google Collections</a></li>
      <li><a href="http://sourceforge.net/project/downloading.php?group_id=109298&amp;filename=jarjar-0.9.jar">Jar Jar Links</a></li>
      <li><a href="http://mirrors.isc.org/pub/apache/xerces/j/Xerces-J-bin.2.9.1.zip">Xerces 2</a></li>
    </ul>

    <xhtml:h3>Thanks</xhtml:h3>
    <p>I primarily would like to thank Emuware for its Tecmo Super Bowl editors and bruddog for his documentation of the file format.  While I created this editor to address some shortcomings of existing editors, I could not have created this program without learning from them.  See Help | About in the program for additional acknowledgements.</p>

    <xhtml:h3>Legal</xhtml:h3>
    <p>Copyright 2008 Chris Povirk.</p>
    <p>General Manager for Tecmo Super Bowl is free software: you can redistribute it and/or modify it under the terms of <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">version 2 of the GNU General Public License</a> as published by the Free Software Foundation.</p>
    <p>General Manager for Tecmo Super Bowl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>


    <p>
    </p>

  </div>
      </div>
    </content>
  </entry><entry>
    <updated>2008-03-20T21:45:00-05:00</updated>
    <summary>
            Update: Firefox 3 network‐error page links</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Firefox Patches</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/firefox-patches/#update_2008-03-20T21:45:00-05:00"/>
    <id>http://twofoos.org/content/firefox-patches/#update_2008-03-20T21:45:00-05:00</id>
    <category term="firefox"/>
    <category term="linux"/>
    <category term="patches"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>Firefox 3 network‐error page links</strong>
        <div>
          <a href="/resources/neterrorcachelinks_3.0.patch">Add cache links to network‐error pages (Firefox 3)</a>
        </div>
      </div>
    </content>
  </entry><entry>
    <updated>2008-02-09T23:49:00-05:00</updated>
    <summary>
            Update: patches for prebuilt binaries</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Firefox Patches</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/firefox-patches/#update_2008-02-09T23:49:00-05:00"/>
    <id>http://twofoos.org/content/firefox-patches/#update_2008-02-09T23:49:00-05:00</id>
    <category term="firefox"/>
    <category term="linux"/>
    <category term="patches"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>patches for prebuilt binaries</strong>
        <div>
          <p>If you use the patches for the prebuilt binaries, you'll have to unpack the appropriate JAR files (<code>toolkit.jar</code> for the patch to the network‐error page; <code>browser.jar</code> for the other two), apply the patches, and jar them back up.  I recommend using the source patches if you're already compiling Firefox.</p>
        </div>
        <div>
          <a href="/resources/editpreferencestotoolsoptions_2.0-bin.patch">Change Edit | Preferences to Tools | Options (Firefox 2 prebuilt binary)</a>
        </div>
        <div>
          <a href="/resources/removesearchaccelerator-bin.patch">Unmap CTRL+J search accelerator (prebuilt binary)</a>
        </div>
      </div>
    </content>
  </entry><entry>
    <updated>2007-12-02T00:45:02-05:00</updated>
    <summary>
            New: Stop task list blinking; stop window‐title blinking; make task list buttons expand to fill available space.</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">XFCE Patches</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/xfce-patches/#update_2007-12-02T00:45:02-05:00"/>
    <id>http://twofoos.org/content/xfce-patches/#update_2007-12-02T00:45:02-05:00</id>
    <category term="linux"/>
    <category term="patches"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>initial posting</strong>
        <div>

    <xhtml:h3>General Information</xhtml:h3>
    <div>
      <p>I've uses these patches with XFCE 4.4.0, 4.4.1, 4.4.2, and 4.4.3.</p>
    </div>

    <xhtml:h3>Stop task list blinking</xhtml:h3>
    <div>
      <p>The lack of blinking of taskbar buttons was one of the things I liked about XFCE over Gnome and Windows.  Then they added it.  This patch removes it.  Patches libxfcegui4.</p>
      <ul><li><a href="/resources/tasklistnoblink.patch">Stop task list blinking</a></li></ul>
    </div>

    <xhtml:h3>Stop window‐title blinking</xhtml:h3>
    <div>
      <p>Window title bars should not blink, either.  Patches xfwm4.</p>
      <ul>
        <li><a href="/resources/windowmanagernoblink.patch" title="Stop window‐title blinking for xfwm4 4.4.0, 4.4.1, or 4.4.2">xfwm4 4.4.0, 4.4.1, or 4.4.2</a></li>
        <li><a href="/resources/windowmanagernoblink.4.4.3.patch" title="Stop window‐title blinking for xfwm4 4.4.3">xfwm4 4.4.3</a></li>
      </ul>
    </div>

    <xhtml:h3>Make task list buttons expand to fill available space</xhtml:h3>
    <div>
      <p>Another thing I liked about XFCE was that if you had only a couple windows open, their taskbar buttons still were wide enough to cover the width of the screen.  Why cut off information for no reason?  Then they changed that, too.  This patch restores the old behavior.  Patches libxfcegui4.</p>
      <ul><li><a href="/resources/taskbarbuttonwidthsexpandtofillallspace.patch">Make task list buttons expand to fill available space</a></li></ul>
    </div>

  </div>
      </div>
    </content>
  </entry><entry>
    <updated>2007-12-02T00:45:01-05:00</updated>
    <summary>
            New: Clear formatting after sending a message; unmap CTRL+L.</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Pidgin Patches</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/pidgin-patches/#update_2007-12-02T00:45:01-05:00"/>
    <id>http://twofoos.org/content/pidgin-patches/#update_2007-12-02T00:45:01-05:00</id>
    <category term="linux"/>
    <category term="patches"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>initial posting</strong>
        <div>

    <xhtml:h3>General Information</xhtml:h3>
    <div>
      <p>I created these patches somewhere around Gaim 2.0, and they still work as of Pidgin 2.4.1.</p>
    </div>

    <xhtml:h3>Clear formatting after sending a message</xhtml:h3>
    <div>
      <p>I can sort of understand why the Pidgin developers decided that colors, italics, etc. should persist from message to message:  It means there doesn't need to be a separate UI for configuring the defaults.  But I'd much prefer that there be a "use this as default formatting" button for the people who want it and that the formatting reset to that default every time a message is sent.  This patch doesn't bother with the button (though "Reset formatting" is now available in Pidgin itself), but it does automatically reset your formatting each time you send a message.</p>
      <ul><li><a href="/resources/pidgin_clearformattingonsendim.patch">Clear formatting after sending a message</a></li></ul>
    </div>

    <xhtml:h3>Unmap CTRL+L</xhtml:h3>
    <div>
      <p>CTRL+L clears a conversation history from the window.  I never want this, but I occasionally press it when I mistakenly believe that Firefox has focus.</p>
      <ul><li><a href="/resources/unmapcontroll.patch">Unmap CTRL+L</a></li></ul>
    </div>

  </div>
      </div>
    </content>
  </entry><entry>
    <updated>2007-12-02T00:45:00-05:00</updated>
    <summary>
            New: Change Edit | Preferences to Tools | Options; remove CTRL+J search accelerator; add cache links to network‐error page.</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Firefox Patches</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/firefox-patches/#update_2007-12-02T00:45:00-05:00"/>
    <id>http://twofoos.org/content/firefox-patches/#update_2007-12-02T00:45:00-05:00</id>
    <category term="firefox"/>
    <category term="linux"/>
    <category term="patches"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>initial posting</strong>
        <div>

    <xhtml:h3>General Information</xhtml:h3>
    <div>
      <p>I've used some patches since Firefox 1.5, but I know I had to make some changes for 2.0, which is what most of these patches have been tested the most with.  I'm currently using them with Firefox 3 Beta 3.</p>
      <p>If you use the patches for the prebuilt binaries, you'll have to unpack the appropriate JAR files (<code>toolkit.jar</code> for the patch to the network‐error page; <code>browser.jar</code> for the other two), apply the patches, and jar them back up.  I recommend using the source patches if you're already compiling Firefox.</p>
    </div>

    <xhtml:h3>Change Edit | Preferences to Tools | Options</xhtml:h3>
    <div>
      <p><strong>"Edit" is a text‐manipulation menu.</strong>  I feel strongly about this.  "Tools" isn't a terrific place for the Options item, either, but it's an improvement.  I will concede that this is one thing the Mac does better with its application menu.</p>
      <ul>
        <li><a href="/resources/editpreferencestotoolsoptions_2.0.patch">Change Edit | Preferences to Tools | Options (Firefox 2 source build)</a></li>
        <li><a href="/resources/editpreferencestotoolsoptions_2.0-bin.patch">Change Edit | Preferences to Tools | Options (Firefox 2 prebuilt binary)</a></li>
        <li><a href="/resources/editpreferencestotoolsoptions.patch">Change Edit | Preferences to Tools | Options (Firefox 1.5 source build)</a></li>
      </ul>
    </div>

    <xhtml:h3>Unmap CTRL+J search accelerator</xhtml:h3>
    <div>
      <p>I use <a href="/content/quicksearches/">quicksearches</a> for my search needs, so I've hidden the search bar.  This has the undesirable effect of causing CTRL+J to open a window when I bump it by mistake.</p>
      <ul>
        <li><a href="/resources/removesearchaccelerator.patch">Unmap CTRL+J search accelerator (source build)</a></li>
        <li><a href="/resources/removesearchaccelerator-bin.patch">Unmap CTRL+J search accelerator (prebuilt binary)</a></li>
      </ul>
    </div>

    <xhtml:h3>Add cache links to network‐error page</xhtml:h3>
    <div>
      <p>When a page doesn't load because the server is down, I usually reach for Google Cache, the Wayback Machine, or Coral Cache.  This patch adds links to those sites' caches of a page when the page fails to load.</p>
      <ul>
        <li><a href="/resources/neterrorcachelinks.patch">Add cache links to network‐error pages (Firefox 2 and less)</a></li>
        <li><a href="/resources/neterrorcachelinks_3.0.patch">Add cache links to network‐error pages (Firefox 3)</a></li>
      </ul>
    </div>

  </div>
      </div>
    </content>
  </entry><entry>
    <updated>2007-02-14T00:00:00-05:00</updated>
    <summary>
            Update: Gentoo ebuild and non‐Pitt information</summary>
    <title type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Printing to Lab Printers from Dorms/Home</div>
    </title>
    <link rel="alternate" type="application/xhtml+xml" href="http://twofoos.org/content/labprinting/#update_2007-02-14T00:00:00-05:00"/>
    <id>http://twofoos.org/content/labprinting/#update_2007-02-14T00:00:00-05:00</id>
    <category term="linux"/>
    <category term="pitt"/>
    <content type="xhtml" xml:base="http://twofoos.org/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <strong>Gentoo ebuild and non‐Pitt information</strong>
        <div>
    <xhtml:h5>Gentoo ebuild</xhtml:h5>
    <div>
    <p>If you're using Gentoo and don't mind dealing with <a href="http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&amp;chap=5#doc_chap2">Portage overlays</a>, you can download a Gentoo ebuild and throw it in your overlay, probably under <code>net-print</code>.  Pitt users will want to set the <code>pitt</code> <span class="caps">USE</span> flag so that the ebuild will install a Pitt printer–setup script you can run to add all the campus printers easily.  The ebuild will pull in <acronym>CUPS</acronym> and Expect if necessary.  Just <code>emerge sshlpd</code> and follow the post‐install instructions for information about how to add the printers.</p>

    <ul>
      <li><a href="/resources/sshlpd-1.ebuild"><code>sshlpd-1.ebuild</code></a></li>
    </ul>
    </div>
    </div>
        <div>
    <xhtml:h4>Non‐Pitt Users</xhtml:h4>
    <div>
    <p>I was surprised to hear from someone outside of the university who found a use for <code>sshlpd</code>.  The code is designed to be fairly general, so if you need <acronym>LPD</acronym> over S<acronym>SH</acronym>, you may find the script useful.  There are, however, a couple of changes that need to be made.</p>
    <ul>
      <li>The location of <code>lpr</code> on the remote computer is hard‐coded.  You must edit <code>$REMOTE_LPR</code> in the <code>sshlpd</code> script to point to the <code>sshlpd</code> executable.  I should find a better way of doing this, but nothing immediately came to mind, so you'll need to edit the Perl script for now.</li>
      <li>The company I heard from uses <acronym>SSH</acronym> key‐based authentication, which allows <acronym>SSH</acronym> connections to be securely created without requiring the user to enter a password at each connection.  (Ideally the Pitt version would function this way, but it appears that the university has turned off key‐based authentication on the server.)  In any case, key‐based authentication makes Expect, <code>/etc/sshpassword</code>, and a little bit of Perl code unnecessary.  If you have key‐based authentication set up and want to use <code>sshlpd</code>, then you will want to install Stephen DeGabriele's <a href="/resources/keybasedauthentication.patch">patch to remove Expect password‐handling</a>.</li>
    </ul>
    </div>
    </div>
      </div>
    </content>
  </entry></feed>
