<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Eitan Suez's Home: Category Linux</title>
    <link>http://u2d.com/articles/category/linux</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Virtues of Window Managers</title>
      <description>&lt;p&gt;I have been using linux on the desktop for about a year now.  I do love it.&lt;/p&gt;

&lt;p&gt;Like most people, I do have a penchant for a great desktop and lots of critical opinions about what makes a good desktop.&lt;/p&gt;

&lt;p&gt;I must admit recalling using windows with joy a decade ago and how productive I could be in that environment (windows 3.1, windows 95).&lt;/p&gt;

&lt;p&gt;The two virtues I look for in a good window manager are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;performance&lt;/li&gt;
&lt;li&gt;stays out of your way, allowing you to be productive&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ok, now that I think of it:  keyboard accessibility is also &lt;em&gt;very&lt;/em&gt; important to me.&lt;/p&gt;

&lt;p&gt;As I try to rate Gnome and KDE against these qualities, I find that Gnome has had less than perfect performance but has done a good job staying out of your way.  I also rank it highly on keyboard accessibility.&lt;/p&gt;

&lt;p&gt;With KDE the opposite seems to be true:  the performance is great, but I found myself continually futzing with it, being distracted from the work I actually needed to do.&lt;/p&gt;

&lt;p&gt;So I have been a Gnome user, and a happy one at that.  I'm also looking forward to Gnome 2.14 and Dapper Drake, which will improve the performance of the window manager.&lt;/p&gt;

&lt;p&gt;I'm also looking forward to a year from now where Core Duo notebook prices will be lower, and the improved performance that will come with it.&lt;/p&gt;

&lt;p&gt;I suppose I should also say a word about the MacOS.  It stays out of your way nicely and it's fast.  The problem is that it ran on hardware that was slower than a snail (the G4).  They fooled a lot of people into thinking the G4 was a fast processor.  Anyhow I digress and Apple is not what this blog entry is about.&lt;/p&gt;

&lt;p&gt;So I am writing this as I download Xubuntu:  Ubuntu + Xfce window manager.  I don't know why I overlooked Xfce before.  I just checked out the screenshots and the movies and it &lt;em&gt;appears&lt;/em&gt; to be what I have been looking for all these years.  The price of ignorance is indeed high.  I hope in a future blog to recount how things go between me and Xfce.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Apr 2006 12:46:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:c45c94dc3bdd5beeec3c30b7c8a6a08c</guid>
      <author>Eitan</author>
      <link>http://u2d.com/articles/2006/04/07/virtues-of-window-managers</link>
      <category>Linux</category>
    </item>
    <item>
      <title>I give up!</title>
      <description>&lt;p&gt;..on Linux for doing presentations.&lt;/p&gt;

&lt;p&gt;First there's no support for dynamic video mirroring.  I can get over that.&lt;/p&gt;

&lt;p&gt;But the presentation software landscape is so unbelievably barren..I tried Open Office 2 but to say that it is terrible would be giving it too much credit.  KDE usually really is on top of things but KPresenter is much worse than OO2.  I mean, I don't think anyone's tried to do a presentation using that software.&lt;/p&gt;

&lt;p&gt;What does that say about people who use Linux?  Does no one give presentations?  Maybe there's a magic distribution.  I thought I was taking it pretty safe when I decided to go with Ubuntu, as far as I can tell, is the most popular distribution, according to distrowatch.org.&lt;/p&gt;

&lt;p&gt;I guess I'll be giving S5 a whirl next..&lt;/p&gt;</description>
      <pubDate>Tue, 24 Jan 2006 18:16:03 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:9919853d050d511aa4f70d87a08a8e59</guid>
      <author>eitan</author>
      <link>http://u2d.com/articles/2006/01/24/i-give-up</link>
      <category>Linux</category>
    </item>
    <item>
      <title>Open Sesame</title>
      <description>&lt;p&gt;One of the small little but valuable features I used to like on macosx (before switching to Ubuntu last Summer) was the command-line &lt;code&gt;open&lt;/code&gt; command.  You could just type &lt;code&gt;open index.html&lt;/code&gt; and the file would pop up in the a web browser.  I used it all the time.&lt;/p&gt;

&lt;p&gt;I'm not "guru of the universe" and surely something like this exists for linux but for some reason thirty minutes searching the synaptic package manager did not yield anything.&lt;/p&gt;

&lt;p&gt;So one day I finally decided to turn on my brain for a change and in five minutes hacked this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  #!/usr/bin/ruby -w

  def suffix(file_name)
    file_name.split(".").last()
  end

  map = {
           "pdf" =&amp;gt; "kpdf",
           "directory" =&amp;gt; "nautilus",
           "html" =&amp;gt; "epiphany",
           "htm" =&amp;gt; "epiphany",
           "xls" =&amp;gt; "gnumeric",
           "csv" =&amp;gt; "gnumeric",
           "txt" =&amp;gt; "kate",
           "gif" =&amp;gt; "eog",
           "jpg" =&amp;gt; "eog",
           "png" =&amp;gt; "eog",
           "xml" =&amp;gt; "gedit"
         }

  file_name = ARGV[0]
  key = (File.directory?(file_name)) ? "directory" : suffix(file_name)
  app_name = map[key]

  fork do
    puts "invoking #{app_name}..\n"
    exec "#{app_name} #{file_name}"
  end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I've been using it daily for a while now and I like it.  Over time I've built myself a few other little utilities.  A recent one is merge for merging data with an erb template.  I use 'show' a lot.  It breaks down a path-like structure into multiple line entries so one can actually read the foresaken string.  I use it like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  eitan@ubuntu:~/bin$ show path
  PATH:
  /usr/local/bin
  /usr/local/sbin
  /sbin
  /usr/sbin
  /bin
  /usr/bin
  ...
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;.. or &lt;code&gt;show classpath&lt;/code&gt; etc..&lt;/p&gt;

&lt;p&gt;Another one that is a real time saver when the time comes to import a new project into subversion is &lt;code&gt;svnize&lt;/code&gt; which will automatically restructure your project in the trunk/tags/branches hierarchy suitable for doing the import. &lt;/p&gt;</description>
      <pubDate>Tue, 17 Jan 2006 16:38:59 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b1eef7a2b667d4ab90ca99ab442fcf58</guid>
      <author>eitan</author>
      <link>http://u2d.com/articles/2006/01/17/open-sesame</link>
      <category>Programming</category>
      <category>Linux</category>
    </item>
    <item>
      <title>NetworkManager</title>
      <description>&lt;p&gt;I just installed &lt;a href="http://www.gnome.org/projects/NetworkManager/"&gt;NetworkManager&lt;/a&gt; on my &lt;a href="http://www.ubuntulinux.org/"&gt;Ubuntu&lt;/a&gt; laptop.&lt;/p&gt;

&lt;p&gt;I can't stop saying it:  I love this environment.  It keeps getting better and better.  It was no big deal for me up until now to invoke a script to update my wifi network settings that did something like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;iwconfig eth2 essid "new one"
sudo dhclient eth2
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Anyhow, now it's old history.  Now on my gnome desktop I've got a nice little wifi GUI that allows me to switch networks.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Dec 2005 09:21:40 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:decb94a6ebfb05565393eb91ebaac651</guid>
      <author>eitan</author>
      <link>http://u2d.com/articles/2005/12/20/networkmanager</link>
      <category>Linux</category>
    </item>
  </channel>
</rss>
