<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>geekomatic</title>
  <link>http://geekomatic.ch/</link>
  <description>Stu Thompson&#039;s Digital Meanderings Exposed</description>
  <language>en</language>
  <copyright>Stu Thompson</copyright>
  <lastBuildDate>Fri, 25 Nov 2011 13:13:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Colorized Apache Ant Output at the OSX Bash Prompt</title>
    <link>http://geekomatic.ch/2011/11/25/1322226780000.html</link>
    
      
        <description>
          &lt;p&gt;&lt;img src=&#034;http://ant.apache.org/images/project-logo.gif&#034; align=&#034;right&#034; /&gt;For years I&#039;ve wanted colorized output from &lt;a href=&#034;http://ant.apache.org/&#034;&gt;Apache Ant&lt;/a&gt; when compiling my Java projects.  Until today I never really look into it.  But a quick Google search lead me to Stack Overflow: &lt;a href=&#034;http://stackoverflow.com/questions/1790827/problem-with-ants-ansicolorlogger-in-snow-leopard/8269641&#034;&gt;Problem with Ant&#039;s AnsiColorLogger in Snow Leopard&lt;/a&gt;.  While the existing answer works, it was slightly inellegant in its need for two changes:
&lt;ol&gt;
&lt;li&gt; creation of an ant wrapper script&lt;/li&gt;
&lt;li&gt;adding an alias for ant to point to the wrapper script&lt;/li&gt;
&lt;/ol&gt;
&lt;/p&gt;
&lt;p&gt;By harnessing the raw power of &lt;a href=&#034;http://tldp.org/LDP/abs/html/functions.html&#034;&gt;Bash Functions&lt;/a&gt; (!) we can do this with a single line in the .profile file.  No need to have a wrapper script.
&lt;/p&gt;
&lt;code&gt;
&lt;pre&gt;ant () { command ant  -logger org.apache.tools.ant.listener.AnsiColorLogger &#034;$@&#034; | sed &#039;s/2;//g&#039; ; }&lt;/pre&gt;
&lt;/code&gt;
&lt;p&gt;Ta da!  Looks great!&lt;/p&gt;
&lt;center&gt;&lt;img src=&#034;/images/osx-bash-ant-color.png&#034; /&gt;&lt;/center&gt;

        </description>
      
      
    
    
    
    <comments>http://geekomatic.ch/2011/11/25/1322226780000.html#comments</comments>
    <guid isPermaLink="true">http://geekomatic.ch/2011/11/25/1322226780000.html</guid>
    <pubDate>Fri, 25 Nov 2011 13:13:00 GMT</pubDate>
  </item>
  
  <item>
    <title>HP 2910al CPU spike due to &#039;Debug &amp; Test&#039; process</title>
    <link>http://geekomatic.ch/2011/11/08/1320736080000.html</link>
    
      
        <description>
          &lt;p&gt;Last night our &lt;a href=&#034;http://cacti.net&#034; target=&#034;_blank&#034;&gt;Cacti&lt;/a&gt; monitoring system sent out a bunch of warnings regarding the CPU usage on our &lt;a href=&#034;http://h17007.www1.hp.com/us/en/products/switches/HP_2910_al_Switch_Series/index.aspx&#034;  target=&#034;_blank&#034;&gt;HP ProCurve 2910al&lt;/a&gt; switch.  The CPU utilization climbed to nearly 100%, and was well above 50% for a few hours.  This had never occurred before.
&lt;/p&gt;
&lt;center&gt;&lt;img src=&#034;/images/hp-2910al-cpu-spike-debug-and-test.png&#034;&gt;&lt;/center&gt;
&lt;p&gt;I logged onto the switch to discover what process was sucking up so much CPU.&lt;/p&gt;
&lt;code&gt;&lt;pre&gt;HP2910al# show cpu

88 percent busy, from 119 sec ago
1 sec ave: 87 percent busy
5 sec ave: 88 percent busy
1 min ave: 88 percent busy


Task usage for last 9 sec
 % CPU | Description
-------+--------------------------
   9.5 | Idle
  90.5 | Debug &amp; Test
&lt;/pre&gt;&lt;/code&gt;

&lt;p&gt;Interesting.  My Google searches found nothing valuable, other than this had occurred to other people too.  No authoritative information seems to be out there.  If it happens again I&#039;ll make a call out our HP rep.&lt;/p&gt;
&lt;p&gt;Things that make you go hmmm....&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://geekomatic.ch/2011/11/08/1320736080000.html#comments</comments>
    <guid isPermaLink="true">http://geekomatic.ch/2011/11/08/1320736080000.html</guid>
    <pubDate>Tue, 08 Nov 2011 07:08:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Jumping on the &#039;Klout is Stupid&#039; train...</title>
    <link>http://geekomatic.ch/2011/10/28/1319792400000.html</link>
    
      
        <description>
          &lt;p&gt;&lt;img align=&#034;right&#034; src=&#034;/images/klout.png&#034; /&gt;I first learned of &lt;a href=&#034;http://klout.com&#034; &gt;Klout&lt;/a&gt; a few months ago.  &lt;em&gt;&#034;Might be interesting&#034;&lt;/em&gt;, I thought...and signed up.  Fast forward to today, and there is a lot of noise about Klout, their recent algorithm changes, and all the &lt;a href=&#034;http://www.business2community.com/social-media/a-klout-upside-the-head-072898&#034; target=&#034;_blank&#034;&gt;snake-oil pawners with knickers in a twist&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In mid-August I noticed someone in my &#034;Influences&#034; that I did not know.  That&#039;s strange.  So I posed a &lt;a href=&#034;http://support.klout.com/customer/portal/questions/26247-how-can-i-be-influenced-by-someone-i-am-not-following-and-have-never-heard-of-&#034; target=&#034;_blank&#034;&gt;question&lt;/a&gt; on the Klout community forums:&lt;/p&gt;

&lt;blockquote&gt;How can I be influenced by someone I am not following and have never heard of? On my &#034;Influenced by&#034; list is one person I don&#039;t know and don&#039;t follow. How is this possible?&lt;/blockquote&gt;

&lt;p&gt;Megan, a Klout Employee answers with &lt;a href=&#034;http://en.wikiquote.org/wiki/The_Fog_of_War#Robert_McNamara&#034;&gt;Robert McNamara&#039;s ol&#039; Fog of War approach&lt;/a&gt;: &lt;em&gt;Never answer the question that is asked of you. Answer the question that you wish had been asked of you.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;You can remove anyone from your influenced by list by hitting the &#034;x&#034; next to the person you want to remove in your influencers tab.&lt;/blockquote&gt;


&lt;p&gt;Question closed.  Today that person is gone from my list.  Whether it was an explicate action by Megan, or an algorithm change I don&#039;t know.  But why were they ever there?  Maybe its the leader of the illuminati who is influencing me and I didn&#039;t even know it.  (Sarcasm.) &lt;/p&gt;

&lt;p&gt;More entertaining are the topics people are allegedly influential on.

&lt;ul&gt;
&lt;li&gt;My wife is reportedly influential on only one topic: Germany.  Really?  She&#039;s been there once, for a weekend getaway to see old friends of mine in &lt;a href=&#034;Kaiserslautern&#034; target=&#034;_blank&#034;&gt;Kaiserslautern&lt;/a&gt;.  Maybe Klout is grouping Switzerland in with Germany because it is sort of the same to many I-don&#039;t-get-out-much thinking folks. (We live in Zurich.)&lt;br/&gt;&lt;br/&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&#034;https://twitter.com/#!/lstoll&#034;&gt;Lincoln Stoll&lt;/a&gt;, a code wrangling buddy of mine, is influential about teeth.  Wha???  He has no idea why.
&lt;center&gt;&lt;img src=&#034;/images/klout-linc.png&#034;&gt;&lt;/center&gt;
&lt;br/&gt;
&lt;/li&gt;

&lt;li&gt;&lt;a href=&#034;https://twitter.com/#!/pomeranian99&#034;&gt;Clive Thompson&lt;/a&gt; (no relation), a technology author I follow on Twitter is, to his surprise, influential about &lt;a href=&#034;https://twitter.com/#!/pomeranian99/status/129595414054838272/photo/1&#034; target=&#034;_blank&#034;&gt;anthropology and the taliban&lt;/a&gt;.&lt;/ul&gt;

&lt;center&gt;&lt;img src=&#034;/images/klout-clive-thompson.png&#034;&gt;&lt;/center&gt;
&lt;/ul&gt;
&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&#034;Klout measures influence online&#034;&lt;/em&gt; says the website.  Ummm...maybe not so much.  I&#039;m officially jumping on the &lt;a href=&#034;http://www.google.com/search?q=klout+is+stupid&#034; target=&#034;_blank&#034;&gt;&#034;Klout is stupid&#034;&lt;/a&gt; train.  
&lt;/p&gt;

        </description>
      
      
    
    
    
    <comments>http://geekomatic.ch/2011/10/28/1319792400000.html#comments</comments>
    <guid isPermaLink="true">http://geekomatic.ch/2011/10/28/1319792400000.html</guid>
    <pubDate>Fri, 28 Oct 2011 09:00:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Discrete Windows 7 Workstation for the Living Room</title>
    <link>http://geekomatic.ch/2011/10/23/1319376780000.html</link>
    
      
        <description>
          &lt;p&gt;We have had a need for a small, out of the way computer for some time.  My wife&#039;s netbook runs Ubuntu, but she misses some of the Windows-based applications like the software updater for her Android phone.  And the netbook can be painfully slow at times.  We also had a list of other requirements, beyond running windows:

&lt;ul&gt;&lt;li&gt;&lt;b&gt;Small footprint:&lt;/b&gt; our flat is very small, we didn&#039;t want to waste space in our living area&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Quiet:&lt;/b&gt; The sound of a fan running while we&#039;re not using the machine would be irritating&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Low power:&lt;/b&gt; While our electricity is inclusive, efficiency is important for an always on machine&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Low key:&lt;/b&gt; My wife and I have an almost pathological desire to hide all of the technology in our apartment &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Quick:&lt;/b&gt; We are both impatient with slow user interfaces&lt;/li&gt;

&lt;/ul&gt;


With this in mind, I set out to build a family workstation.  After some research and consideration, the parts list below came together:

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Mobo:&lt;/b&gt; &lt;a href=&#034;http://www.intel.com/content/www/us/en/motherboards/desktop-motherboards/desktop-board-d525mw.html&#034; target=&#034;_blank&#034;&gt;Intel D525MW&lt;/a&gt;, Atom D525 Dual Core, Mini-ITX &lt;em&gt;(SFr.75)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Case:&lt;/b&gt; &lt;a href=&#034;http://www.jj-computer.com/Products/Cases/Mini_pc/Nu057wi/&#034; target=&#034;_blank&#034;&gt;Jou Jye NU-057Wi&lt;/a&gt;, Mini-ITX, Vesa Halterung, 250 Watt &lt;em&gt;(SFr.104)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;System Drive:&lt;/b&gt; &lt;a href=&#034;http://www.intel.com/content/www/us/en/solid-state-drives/solid-state-drives-320-series.html&#034; target=&#034;_blank&#034;&gt;Intel SSD 320 Series 40GB&lt;/a&gt;, SATA-II, 2.5 Zoll &lt;em&gt;(SFr.99)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Data Drive:&lt;/b&gt; &lt;a href=&#034;http://www.samsung.com/global/business/hdd/productmodel.do?group=72&amp;type=94&amp;subtype=99&amp;subSubType=125&amp;model_cd=666&#034; target=&#034;_blank&#034;&gt;Samsung HN-M101MBB&lt;/a&gt;, M8, 5400rpm, 8MB, 2.5 Zoll, 1TB, SATA &lt;em&gt;(SFr.99)&lt;/em&gt;&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Memory:&lt;/b&gt; Kingston ValueRAM, 2 GB, DDR3-1066, CL7, SODIMM &lt;em&gt;(SFr.32)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;OS:&lt;/b&gt; Microsoft Windows 7 Home Premium 32bit, OEM &lt;em&gt;(SFr.94)&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

Total damage?  ~SFr.510.

&lt;/p&gt;

&lt;p&gt;The Intel Atom motherboard was selected because of both the low cost and the passively cooled CPU heat sink.  While the case Jou Jye is not cheap it did offer the most interesting option to reduce the technical clutter in our living space.  Even with the relatively slow Atom CPU, the 4GB of RAM and SSD system drive make this puppy feel as fast as any workhorse system...as long as you are not running FFmpeg or any other CPU intensive application.&lt;/p&gt;

&lt;center&gt;&lt;img src=&#034;/images/win7-atom-closeup-small.jpg&#034; /&gt;&lt;/center&gt;
&lt;center&gt;&lt;a href=&#034;/images/win7-atom-closeup.jpg&#034; /&gt;&lt;em&gt;(larger picture)&lt;/em&gt;&lt;/a&gt;&lt;/center&gt;

&lt;p&gt;Matching this new kit with existing keyboard, mouse, and monitor gives us a working system.  

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Keyboard &amp; Mouse: &lt;/b&gt;A Logitec keyboard that has been laying around for ages, and a company mouse from xtendx&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Monitor: &lt;/b&gt;A 19&#034; &lt;a href=&#034;http://reviews.cnet.com/lcd-monitors/nec-multisync-lcd-1980sx/4505-3174_7-30382511.html&#034; target=&#034;_blank&#034;&gt;NEC 1980SX&lt;/a&gt; (1280x1024) which I bought off  ebay.co.uk in 2003 ago for £400.  It was a professional photography display back then so it still looks better than average even today.&lt;/li&gt;
&lt;/ul&gt;

Add in a some time down at the local hardware store, a jigsaw, and a bit of elbow grease...and presto!  A nice and tidy workstation.  The desk is 40cm x 75cm at its widest, with a footprint of under 1/3rd of a meter.  The computer case itself is built into the lower shelf.  All of the cords are secured to the underside the the shelf including the power strip and ethernet cable.
&lt;/p&gt;

&lt;center&gt;&lt;img src=&#034;/images/win7-atom-workstation-small.jpg&#034; /&gt;&lt;/center&gt;
&lt;center&gt;&lt;a href=&#034;/images/win7-atom-workstation.jpg&#034; /&gt;&lt;em&gt;(larger picture)&lt;/em&gt;&lt;/a&gt;&lt;/center&gt;

&lt;p&gt;Sweet.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://geekomatic.ch/2011/10/23/1319376780000.html#comments</comments>
    <guid isPermaLink="true">http://geekomatic.ch/2011/10/23/1319376780000.html</guid>
    <pubDate>Sun, 23 Oct 2011 13:33:00 GMT</pubDate>
  </item>
  
  <item>
    <title>How to configure Ethernet Bonding with LACP on Debian Squeeze Linux</title>
    <link>http://geekomatic.ch/2011/09/23/1316778300000.html</link>
    
      
        <description>
          &lt;p&gt;&lt;em&gt;Quick update: I built a Debian Squeeze box recently and initially used the same configuration as &lt;a href=&#034;http://geekomatic.ch/2010/05/20/1274341560000.html&#034;&gt;on my Debian Lenny box&lt;/a&gt;, which seemed to work.  But problems developed afterwards.  Specifically, the net-agent process would both multiple into many processes and take up every more CPU cycles over time.  A &#034;process leak&#034;, if you will.  After months of monitoring, diagnostics, Googling and debate we found a solution which involves a different NIC configuration.  Here it is...&lt;/em&gt;&lt;/p&gt;
&lt;img src=&#034;/stuff/debian.png&#034; align=&#034;right&#034;&gt;&lt;p&gt;So you need a fat network connection on your Debian 6 server, but a 10 GoE infrastructure is not in your budget?  No fear!  &lt;a href=&#034;http://en.wikipedia.org/wiki/Link_aggregation&#034; target=&#034;_blank&#034;&gt;Link Aggregation Control Protocol&lt;/a&gt; is here to save the day!&lt;p&gt;&lt;/p&gt;
This was both the problem I had, and the solution I learned to implement thanks to a question posted on serverfault.com (&lt;a href=&#034;http://serverfault.com/questions/8512/multiplexed-1-gbps-ethernet&#034; target=&#034;_blank&#034;&gt;Multiplexed 1 Gbps Ethernet?&lt;/a&gt;) and some hours of research &amp; experimentation.  
&lt;/p&gt;
&lt;p&gt;Here&#039;s what I did:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Purchase a NIC capable of LACP with solid Linux driver support.  I went with an &lt;a href=&#034;http://www.intel.com/products/server/adapters/pro1000pt-quadport/pro1000pt-quadport-overview.htm&#034; target=&#034;_blank&#034;&gt;Intel PRO/1000 PT Quad Port Server Adapter&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Purchase a Switch capable of LACP.  It should be more than capable of handeling the bandwidth.  We opted for an &lt;a href=&#034;http://h10010.www1.hp.com/wwpc/uk/en/sm/WF06b/12883-12883-3445275-427605-427605-3356807-3757516.html&#034; target=&#034;_blank&#034;&gt;HP ProCurve 2510G-24&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Install &lt;a href=&#034;http://linux.die.net/man/8/ifenslave&#034; target=&#034;_blank&#034;&gt;ifenslave-2.6&lt;/a&gt;: &lt;code&gt;apt-get install ifenslave-2.6&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Purchase some network cables.  Cat 6 if you can, Cat 5e if not.&lt;/li&gt;
&lt;li&gt;Load the module, so we can proceed.  &lt;code&gt;modprobe bonding&lt;/code&gt;.  There should be no errors.  Confirm it is loaded with &lt;code&gt;modprobe  -l | grep bond&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit &lt;a href=&#034;http://www.debian.org/doc/manuals/reference/ch05.en.html#_the_basic_syntax_of_etc_network_interfaces&#034; target=&#034;_blank&#034;&gt;&lt;code&gt;/etc/network/interfaces&lt;/code&gt;&lt;/a&gt; to look something like this:&lt;br&gt;
&lt;pre&gt;&lt;code&gt;# The loopback network interface
auto lo
iface lo inet loopback

auto  bond0
iface bond0 inet static
    bond-mode 4
    bond-miimon 100
    bond_xmit_hash_policy layer2+3
    bond_lacp_rate slow
    slaves eth1 eth2 eth3 eth4
    address     192.168.1.131
    gateway     192.168.1.1
    netmask     255.255.255.0


&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Plug in the network cables&lt;br&gt;
&lt;center&gt;&lt;br&gt;&lt;img src=&#034;/stuff/lacp-with-HP-ProCurve-2510G-24-and-Intel-Pro-1000-PT-Quad-Port.jpg&#034; alt=&#034;lacp with HP ProCurve 2510G-24 and Intel Pro/1000 PT Quad Port Adapter.jpg&#034;&gt;&lt;/center&gt;&lt;br&gt;&lt;/li&gt;
&lt;li&gt;Restart the network: &lt;code&gt;/etc/init.d/network restart&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Configure the switch to use the four ports as a single trunk.  Here&#039;s how for an HP ProCurve:&lt;/li&gt;&lt;/ul&gt;

&lt;img src=&#034;/stuff/procurve-setup-lacp-trunk.gif&#034;&gt;

&lt;ul&gt;
&lt;li&gt;Confirm that there are no errors
  &lt;ol&gt;
  &lt;li&gt;The NIC and switch LEDs should be active&lt;/li&gt;
  &lt;li&gt;&lt;code&gt;dmesg&lt;/code&gt; will show what the kernal thinks of your new configuration&lt;/li&gt;
  &lt;li&gt;&lt;code&gt;ifconfig&lt;/code&gt; should show your bond0 interface up&lt;/li&gt;
  &lt;li&gt;The interface should be pingable both internally and from other computer&lt;/li&gt;
  &lt;/ol&gt;
  &lt;li&gt;Note: you should not be adding an alias to &lt;code&gt;/etc/modprobe.d/arch/X86_64.conf&lt;/code&gt; or &lt;code&gt;/etc/modules&lt;/code&gt;, like you would with Lenny.&lt;/li&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ta da!&lt;/p&gt;

        </description>
      
      
    
    
    
    <comments>http://geekomatic.ch/2011/09/23/1316778300000.html#comments</comments>
    <guid isPermaLink="true">http://geekomatic.ch/2011/09/23/1316778300000.html</guid>
    <pubDate>Fri, 23 Sep 2011 11:45:00 GMT</pubDate>
  </item>
  
  </channel>
</rss>

