<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Colin Harrington &#187; General</title>
	<atom:link href="http://colinharrington.net/blog/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://colinharrington.net/blog</link>
	<description>Technologist, Consultant, Software Engineer, Entrepreneur and Musician</description>
	<lastBuildDate>Tue, 06 Jul 2010 21:50:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OSX Mouse Acceleration</title>
		<link>http://colinharrington.net/blog/2010/07/osx-mouse-acceleration/</link>
		<comments>http://colinharrington.net/blog/2010/07/osx-mouse-acceleration/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 21:50:24 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mouse Acceleration]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/?p=175</guid>
		<description><![CDATA[
I dual-boot OSX and Ubuntu, but primarily live, work and play in Ubuntu.  The only reasons that I boot up into OSX these days are to sync an iPhone, or more recently play some Steam Games (Go Steam for Releasing an OSX Client!  A Linux client shouldn&#8217;t be too far behind right?).  Windows is now [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Mouse on Fire" src="http://www.colinharrington.net/images/mouse_on_fire.png" alt="Mouse on Fire" width="160" height="100" /></p>
<p>I dual-boot <a title="Mac OSX" href="http://en.wikipedia.org/wiki/Mac_OS_X">OSX</a> and <a title="Ubuntu" href="http://www.ubuntu.com/">Ubuntu</a>, but primarily live, work and play in <a title="Ubuntu" href="http://colinharrington.net/blog/category/linux/ubuntu-linux/">Ubuntu</a>.  The only reasons that I boot up into OSX these days are to sync an <a title="iPhone" href="http://www.apple.com/iphone/">iPhone</a>, or more recently play some Steam Games (Go <a title="Steam Released an OSX Client!" href="http://store.steampowered.com/browse/mac">Steam for Releasing an OSX Client</a>!  A Linux client shouldn&#8217;t be too far behind right?).  Windows is now relinquished to a VM for IE testing &amp; other software that is stuck on that platform.</p>
<p>I&#8217;ve always been bothered by mice in OSX, they never felt good and didn&#8217;t handle as I had expected.  This is especially important when doing some intricate work with Photoshop, or in a computer game.  I don&#8217;t have much time to play games on the computer, but I&#8217;ve been able to get a few hours in recently and really noticed that the mouse acceleration was unusable/unreliable for fast-paced action&#8230;</p>
<p style="text-align: left;">A little googling turned up the &#8220;<a title="Mouse Acceleration Preference Pane" href="http://triq.net/mac/mouse-acceleration-preference-pane-mac-os-x" target="_blank">Mouse Acceleration Preference Pane</a>&#8221; for Mac OSX by <a title="Christian Suckschwerdt" href="http://triq.net/content/about" target="_blank">Christian Zuckschwerdt</a>.</p>
<p style="text-align: left;">I downloaded version 1.1 and then had this preference pane is my System Preferences<img class="alignleft" style="margin: 0px; border: 0pt none;" title="System Preferences Icon" src="http://www.colinharrington.net/images/SystemPreferencesIcon-small.png" alt="System Preferences Icon" width="24" height="24" />:<br />
<img class="aligncenter" title="System Preferences" src="http://www.colinharrington.net/images/mouse-acceleration-pref-pane-system-preferences.png" alt="System Preferences" width="400" height="102" /></p>
<p style="text-align: left;">Which then lets me configure the acceleration for both the mouse and trackpad.<br />
<img class="aligncenter" title="Mouse Acceleration Pref Pane" src="http://www.colinharrington.net/images/mouse-acceleration-pref-pane-400px.png" alt="Mouse Acceleration Pref Pane" width="400" height="256" /></p>
<p>Even better, I could turn off acceleration all-together!</p>
<p><img class="aligncenter" title="Enable at Login" src="http://www.colinharrington.net/images/mouse-acceleration-pref-pane-enable-at-login.png" alt="Enable at Login" width="268" height="33" />From <a href="http://triq.net/mac/mouse-acceleration-preference-pane-mac-os-x">Christian Zuckschwerdt&#8217;s site</a>:</p>
<blockquote><p><strong>Extented mouse settings</strong></p>
<p>&#8220;The Mouse Acceleration PrefPane is a GUI and startup item to <a href="http://www.knockknock.org.uk/mac/">Richard Bentley&#8217;s MouseFix</a>.  You can set up extended speed parameters and acceleration curves for your mouse.&#8221;</p></blockquote>
<p>Good work Christian!</p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2010/07/osx-mouse-acceleration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome CPU Frequency Scaling Monitor Authorization Policy</title>
		<link>http://colinharrington.net/blog/2010/03/gnome-cpu-frequency-scaling-authorization-policy/</link>
		<comments>http://colinharrington.net/blog/2010/03/gnome-cpu-frequency-scaling-authorization-policy/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 03:42:13 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[cpufreq-applet]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/?p=163</guid>
		<description><![CDATA[After setting up a laptop with Ubuntu, one of the things that I typically like to do is add a the CPU Frequency Scaling Monitor applet (cpufreq-applet) to my main Gnome panel.

I typically work running large web applications (Grails&#8230;) that typically use a lot of CPU power when running tests, launching the apps or refactorings [...]]]></description>
			<content:encoded><![CDATA[<p>After setting up a laptop with Ubuntu, one of the things that I typically like to do is add a the <a href="http://library.gnome.org/users/cpufreq-applet/stable/cpufreq-applet-introduction.html.en">CPU Frequency Scaling Monitor applet</a> (cpufreq-applet) to my main Gnome panel.</p>
<p><img class="aligncenter" title="Gnome CPU Frequency Scaling In action" src="http://www.colinharrington.net/images/gnome-cpu-frequency.png" alt="" width="390" height="296" /></p>
<p>I typically work running large web applications (Grails&#8230;) that typically use a lot of CPU power when running tests, launching the apps or refactorings within an IDE.  I like the ability to quickly adjust the CPU &#8216;govenor&#8217; which governs how the CPU is utilized from a power/performance perspective (see <a href="http://idebian.wordpress.com/2008/06/22/cpu-frequency-scaling-in-linux/">CPU Frequency Scaling in Linux</a> for more).</p>
<p>Ubuntu 9.10 (Karmic Koala) uses Gnome 2.28.1 which requires authorization to change the CPU Frequency (which makes sense).  Earlier versions did not require this authorization since it is new in Gnome 2.28.</p>
<p>With policykit-1 (also new in Ubuntu 9.10) you can grant yourself authorization for the cpufreq-applet based on a user or group by creating a policy file (at /var/lib/polkit-1/localauthority/50-local.d/org.gnome.cpufreqselector.pkla for example) that looks something like this:<br />
<code>[org.gnome.cpufreqselector]<br />
Identity=unix-user:<em><strong>YourUser</strong></em><br />
Action=org.gnome.cpufreqselector<br />
ResultAny=no<br />
ResultInactive=no<br />
ResultActive=yes</code></p>
<p>Thanks to <a href="http://bbs.archlinux.org/viewtopic.php?id=82670">this post/discussion</a> for pointing this out <img src='http://colinharrington.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   be sure you change <em>YourUser</em> to your username or group that you wish to have authorized.</p>
<p>I don&#8217;t know of a policy GUI that works with policykit-1 yet, so let me know if you find something.</p>
<p>I also replaced the icons in the /usr/share/pixmaps/cpufreq-applet/ with something I found on  <a href="http://gnome-look.org/content/show.php/CPU+Frequency+Scaling+icon+collection?content=113148">gnome-look.org</a></p>
<p style="text-align: center;"><img class="aligncenter" title="cpufreq humanity v1.6 discrete color" src="http://colinharrington.net/images/cpufreq-discrete-grey.png" alt="" width="142" height="24" /></p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2010/03/gnome-cpu-frequency-scaling-authorization-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hulu Desktop for Linux! 32 &amp; 64bit versions for Ubuntu &amp; Fedora</title>
		<link>http://colinharrington.net/blog/2009/10/hulu-desktop-for-linux/</link>
		<comments>http://colinharrington.net/blog/2009/10/hulu-desktop-for-linux/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 04:44:31 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Streaming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Hulu]]></category>
		<category><![CDATA[Hulu-Desktop]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/?p=116</guid>
		<description><![CDATA[Hulu Desktop (currently Beta) is now available on Linux!&#160; A&#160;friend tipped me off to an article on TechCrunch about it.&#160;

Downloading it and setting it up was pretty easy.&#160; I went to Hulu Desktop and selected download for linux.&#160; From there It gave me choices for Fedora and Ubuntu (both 32 &#38; 64bit versions!)&#160; Since I&#160;run [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http:// http://www.hulu.com/labs/hulu-desktop">Hulu Desktop</a> (currently Beta) is now available on Linux!&nbsp; A&nbsp;friend tipped me off to an <a href="http://www.techcrunch.com/2009/10/08/hulu-labs-cooks-up-linux-support-for-hulu-desktop-new-publisher-tools/">article on TechCrunch</a> about it.&nbsp;</p>
<p style="text-align: center;"><a href="http://www.colinharrington.net/images/hulu-desktop-linux-heroes1-1920x1200.png"><img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/hulu-desktop-linux-heroes1.png" alt="Wohoo Hulu Desktop on Linux" /></a></p>
<p>Downloading it and setting it up was pretty easy.&nbsp; I went to <a href="http://www.hulu.com/labs/hulu-desktop">Hulu Desktop</a> and selected <a href="http:// http://www.hulu.com/labs/hulu-desktop-linux">download for linux</a>.&nbsp; From there It gave me choices for Fedora and Ubuntu (both 32 &amp; 64bit versions!)&nbsp; Since I&nbsp;run Ubuntu I downloaded and installed the deb &#8211; easy enough.</p>
<p>When you first launch it it asks you to accept the EULA.</p>
<p style="text-align: center;"><a href="http://www.colinharrington.net/images/hulu-desktop-linux-eula.png"><img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/hulu-desktop-linux-eula-512.png" alt="Eula" /></a></p>
<p>The first time I launched Hulu Desktop I&nbsp;got an error, that &quot;<em>Hulu Desktop could not locate the Flash plugin.&nbsp; If you do not have it installed, please modify ~/.huludesktop with the correct location of libflashplayer.so.</em>&quot; (remember the beta sticker?)</p>
<p style="text-align: center;"><img vspace="4" hspace="4" border="0" alt="Hulu Desktop error : Flash Plugin" src="http://www.colinharrington.net/images/hulu-desktop-linux-flashplugin-error.png" /></p>
<p>I had to edit the <code>~/.huludesktop</code> file to use the wrapped version of the Flash plugin <code>/var/lib/flashplugin-installer/npwrapper.libflashplayer.so</code> and it worked like a charm!</p>
<p style="text-align: center;"><img vspace="4" hspace="4" border="0" alt=".huludesktop" src="http://www.colinharrington.net/images/hulu-desktop-linux-.huludesktop.png" /></p>
<p>Playback worked great, probably better than the in-browser experience.&nbsp; The interface is slick, better than the web-interface and more along the lines of Boxee.&nbsp; Fullscreen worked well for me.</p>
<p style="text-align: center;"><a href="http://www.colinharrington.net/images/hulu-desktop-linux-screenshot-heroes-1024.png"><img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/hulu-desktop-linux-screenshot-heroes-512.png" alt="Hulu Desktop -&gt; Heroes menu" /></a></p>
<p>Props to Hulu for providing a Linux version.&nbsp; The Linux desktop is a first class citizen.&nbsp; Skype has a <a href="http://www.skype.com/download/skype/linux/choose/">Beta version</a> that rocks on Linux.&nbsp; <a href="http://dev.chromium.org/getting-involved/dev-channel">Google Chrome</a>, Firefox, etc. Who is next? Adobe?&nbsp; CS5?&nbsp; I&#8217;d pay for Adobe CS5 on Linux.</p>
<p>So far its been pretty good stuff for Beta Software!&nbsp; I&#8217;ll definitely be using Hulu more now.&nbsp;</p>
<p>Here is a shot of the opening screen:</p>
<p style="text-align: center;"><a href="http://www.colinharrington.net/images/hulu-desktop-linux-openingscreen-1920x1200.png"><img vspace="4" hspace="4" border="0" alt="Opening Image" src="http://www.colinharrington.net/images/hulu-desktop-linux-openingscreen-512.png" /></a></p>
<p>And another of the Menu (while watching media):</p>
<p style="text-align: center;"><a href="http://www.colinharrington.net/images/hulu-desktop-linux-popular-menu-1024.png"><img vspace="4" hspace="4" border="0" alt="Popular menu" src="http://www.colinharrington.net/images/hulu-desktop-linux-popular-menu-512.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2009/10/hulu-desktop-for-linux/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Windows Vista = Slow^3</title>
		<link>http://colinharrington.net/blog/2009/07/windows-vista-slow3/</link>
		<comments>http://colinharrington.net/blog/2009/07/windows-vista-slow3/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 18:58:26 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/?p=96</guid>
		<description><![CDATA[Yep that&#8217;s a snail on a turtle with a Vista tattoo to illustrate how Vista = slow3.&#160; I threw this together to console a friend who was going through an upgrade to Windows Vista SP3.&#160; It took them weeks(so far) to roll it out at his work; and it still isn&#8217;t complete.&#160; The pic is [...]]]></description>
			<content:encoded><![CDATA[<p>Yep that&#8217;s a snail on a turtle with a Vista tattoo to illustrate how <kbd>Vista = slow<sup>3</sup></kbd>.&nbsp; I threw this together to console a friend who was going through an upgrade to Windows Vista SP3.&nbsp; It took them weeks(so far) to roll it out at his work; and it still isn&#8217;t complete.&nbsp; The pic is adapted <a href="http://icanhascheezburger.com/2009/06/22/funny-pictures-get-us-killed/">from an icanhazcheezburger.com post</a>.</p>
<p style="text-align: center;"><img vspace="4" hspace="4" align="middle" border="0" alt="OMG SLOW DOWN! with a Vista Tattoo" src="http://www.colinharrington.net/images/OMG-SLOW-DOWN-vista-tattoo.png" /></p>
<p>Maybe I&#8217;ve been spoiled with the speed of a Linux desktop without intrusive &#8216;virus protection&#8217;, but everytime I&nbsp;use a Vista machine, I find myself frustrated.&nbsp; I guess I get sick of the waiting, double confirmations, the &quot;I told you to shutdown, why are you installing updates&#8230; &quot;, etc.</p>
<p>I have professionally developed on all major desktop OSs (Windows[98,2k,XP,Vista], OSX, and Linux) as well as used many others over the years (RHEL, CentOS, Fedora, Solaris, HPUX, Windows[2k3,2008], etc.) &nbsp;&nbsp;So when I started my current contract, I had a bad dream the night before.&nbsp; I dreampt that I was forced to use Windows Vista.&nbsp; I&#8217;m not going to call it a nightmare, but it came close <img src='http://colinharrington.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> &nbsp; (They ended up giving me an XP box)</p>
<p>This is my OS&nbsp;Preference as it stands today:<br />
<a href="http://en.wikipedia.org/wiki/Windows_Vista">Vista</a> &lt;&nbsp;<a href="http://en.wikipedia.org/wiki/Windows_XP">XP</a> &lt; <a href="http://en.wikipedia.org/wiki/Windows_7">Windows 7</a> &lt; <a href="http://en.wikipedia.org/wiki/OSX">OSX</a> &lt;&nbsp;Linux (<a href="http://en.wikipedia.org/wiki/Ubuntu">Ubuntu</a>, <a href="http://en.wikipedia.org/wiki/Gentoo">Gentoo</a>, etc.)</p>
<p>I honestly expected more from Vista seeing that it was coming from the largest/wealthiest  software company/OS&nbsp;vendor in the world.&nbsp; Using Vista isn&#8217;t the end of the world, but you don&#8217;t know better until you get a taste of freedom <img src='http://colinharrington.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> &nbsp; To be fair, Microsoft has put a lot of effort behind Windows and it is a big responsibility when you take the OS&nbsp;Market in the 90&#8217;s and into the 2000s.&nbsp; MacOS was saved by OSX; can Microsoft follow suit?&nbsp; Either way, good competition makes for a better Operating System landscape.&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2009/07/windows-vista-slow3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Grails Growl-like notifications in Linux (Ubuntu, 9.04)</title>
		<link>http://colinharrington.net/blog/2009/05/grails-growl-like-notifications-in-linux-ubuntu-904/</link>
		<comments>http://colinharrington.net/blog/2009/05/grails-growl-like-notifications-in-linux-ubuntu-904/#comments</comments>
		<pubDate>Sun, 24 May 2009 22:30:12 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Groovy-Grails]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Growl]]></category>
		<category><![CDATA[Jaunty]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/?p=86</guid>
		<description><![CDATA[When I was developing on OSX, a fellow developer&#160;Ted Naleid tipped me off to a script that does Growl notifications for Grails events that Marc Palmer had written.&#160;&#160; The Growl notifications were handy, but now that I&#8217;ve been working on Linux, I&#8217;ve definitely missed them.
I first used a tool called Mumbles, which attempted to be [...]]]></description>
			<content:encoded><![CDATA[<p>When I was developing on OSX, a fellow developer&nbsp;<a href="http://naleid.com/blog/">Ted Naleid</a> tipped me off to a script that does <a href="http://www.anyware.co.uk/2005/2007/06/08/some-grails-055-script-enhancements/">Growl notifications for Grails events</a> that Marc Palmer had written.&nbsp;&nbsp; The Growl notifications were handy, but now that I&#8217;ve been working on Linux, I&#8217;ve definitely missed them.</p>
<p>I first used a tool called <a href="http://www.mumbles-project.org/">Mumbles</a>, which attempted to be a clone of <a href="http://growl.info/">Growl</a>, but I later realized that the built in notification system is probably the way to go.&nbsp; After I learned of Ubuntu 9.04 (Jaunty Jackalope) had some major visualization enhancements to the notifications, I thought that it was definitely the way to go.&nbsp;</p>
<p style="text-align: left;">This is what I currently have with Ubuntu 9.04:</p>
<p style="text-align: center;">
<img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/jaunty-grails-plugins.png" alt="Jaunty Grails notification Plugins" /></p>
<p style="text-align: center;"><img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/jaunty-grails-final.png" alt="Jaunty Grails notification final" /></p>
<p style="text-align: left;">Implementing this is very simple, you simply create an <code>_Events.groovy</code> file in your <code>~/.grails/scripts</code>&nbsp; directory (create it if it doesn&#8217;t exist) with the following contents (modified from the Growl Script):</p>
<p style="text-align: left;"><code>eventStatusFinal = { msg -&gt;<br />
&nbsp;&nbsp;&nbsp; libNotify('Final status', msg)<br />
}<br />
eventStatusUpdate = { msg -&gt;<br />
&nbsp;&nbsp;&nbsp; libNotify('Status', msg)<br />
} <br />
eventCreatedFile = { fileName -&gt;<br />
&nbsp;&nbsp;&nbsp; //libNotify('Created file', fileName)<br />
}<br />
eventStatusError = { message -&gt;<br />
&nbsp;&nbsp;&nbsp; libNotify('Error', message)<br />
}<br />
eventExiting = { code -&gt;<br />
&nbsp;&nbsp;&nbsp; libNotify('Exit', &quot;Return code $code&quot;)<br />
}<br />
eventCreatedArtefact = { type, file -&gt;<br />
&nbsp;&nbsp;&nbsp; libNotify('Created artefct', &quot;$type with name $file&quot;)<br />
}<br />
eventCompileStart = { kind -&gt;<br />
&nbsp;&nbsp;&nbsp; //libNotify('Compiling', &quot;Compiling $kind&quot;)<br />
}<br />
eventCompileEnd = { kind -&gt;<br />
&nbsp;&nbsp;&nbsp; //libNotify('Compilation complete', &quot;Compiled $kind&quot;)<br />
}<br />
eventPluginInstalled = { pluginName -&gt;<br />
&nbsp;&nbsp;&nbsp; libNotify('Plugin installed', pluginName)<br />
}<br />
// Do the notification<br />
void libNotify(title, message) {<br />
&nbsp;&nbsp;&nbsp; def cmd = [<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'notify-send',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; message,<br />
&nbsp;&nbsp;&nbsp; '-i',<br />
&nbsp;&nbsp;&nbsp; 'grails'<br />
&nbsp;&nbsp;&nbsp; ]<br />
&nbsp;&nbsp;&nbsp; cmd.execute()<br />
}</code></p>
<p>It is simply using Groovy to execute &quot;<code>notify-send $title $message -i grails</code>&quot;.&nbsp;&nbsp; if you don&#8217;t have <code>notify-send</code>, it is part of libnotify so <code>sudo apt-get install libnotify-bin</code> will get you what you need.&nbsp; If I get some time I&#8217;d like to find a way to take advantage of a <a href="http://dbus.freedesktop.org/doc/dbus-java/">Java Dbus implementation</a> to talk to the notification system without having to go through libnotify.</p>
<p>If you want mumbles notifications just do something like this:</p>
<p><code>void mumblesNotify(title, message) {<br />
&nbsp;&nbsp;&nbsp; def cmd = [<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;mumbles-send&quot;,<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &quot;-l&quot;,<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; title,<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; message<br />
&nbsp;&nbsp;&nbsp; ]<br />
&nbsp;&nbsp;&nbsp; cmd.execute()<br />
}</code></p>
<p>Occasionally I&#8217;ll get a failure that there are too many files open (using .execute() in Groovy) and that should be cleared up by using a Java implementation of the DBus notifications.</p>
<p>Let me know what you think.&nbsp; Anything that could be done better?</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2009/05/grails-growl-like-notifications-in-linux-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Customizing rEFIt (an EFI Bootloader &#8211; Intel Macs) Slick!</title>
		<link>http://colinharrington.net/blog/2009/05/customizing-refit-an-efi-bootloader-intel-macs-slick/</link>
		<comments>http://colinharrington.net/blog/2009/05/customizing-refit-an-efi-bootloader-intel-macs-slick/#comments</comments>
		<pubDate>Tue, 05 May 2009 21:07:57 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Logo]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[rEFIt]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/?p=62</guid>
		<description><![CDATA[I recently installed Ubuntu 9.04(Jaunty Jackalope) on a 17&#34; Macbook pro and as a part of that process, I had to install a bootloader called rEFIt.&#160; You could think of EFI&#160;is just a next-gen BIOS.
Even though the bootloader looks decent, I don&#8217;t like the look of silver/grey color, so I decided to customize it. &#160;The [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed <a href="http://ubuntu.com">Ubuntu 9.04</a>(<a href="http://en.wikipedia.org/wiki/History_of_Ubuntu#Ubuntu_9.04_.28Jaunty_Jackalope.29">Jaunty Jackalope</a>) on a 17&quot; Macbook pro and as a part of that process, I had to install a bootloader called <a href="http://refit.sourceforge.net/">rEFIt</a>.&nbsp; You could think of <a href="http://en.wikipedia.org/wiki/Extensible_Firmware_Interface">EFI</a>&nbsp;is just a next-gen <a href="http://en.wikipedia.org/wiki/BIOS">BIOS</a>.</p>
<p>Even though the bootloader looks decent, I don&#8217;t like the look of <a href="http://refit.sourceforge.net/screen.html">silver/grey</a> color, so I decided to customize it. &nbsp;The process to customize rEFIt was relatively straight forward and the result is beautiful.</p>
<p>This is what I came up with:</p>
<p style="text-align: center;"><a target="_blank" href="http://www.colinharrington.net/images/refit-screen.png"><img vspace="4" hspace="4" border="0" alt="background" src="http://www.colinharrington.net/images/refit-2-icons-500px.png" style="border: 1px solid rgb(255, 255, 255);" /></a></p>
<p>This is what it looks like with a Windows Partition:</p>
<p style="text-align: center;"><a target="_blank" href="http://www.colinharrington.net/images/refit-3-icons-1920x1200.png"><img vspace="4" hspace="4" border="0" alt="boot screen with 3 icons" src="http://www.colinharrington.net/images/refit-screen-500px.png" style="border: 1px solid rgb(255, 255, 255);" /></a></p>
<p>I love the simplicity of it!!</p>
<p>Here is a closeup of the icons / OS&nbsp;Choices:</p>
<p style="text-align: center;"><img vspace="4" hspace="4" border="0" alt="" src="http://www.colinharrington.net/images/refit-choices.png" /></p>
<p>&nbsp;</p>
<p>I don&#8217;t really know where the icons came from, but they look tasty <img src='http://colinharrington.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  &nbsp;On Linux there is a <a href="http://icns.sourceforge.net/">decent package</a> for working with mac icons (.icns) or <code><strong>sudo apt-get install icnsutils</strong></code>&nbsp; which will get you some useful tools (png2icns and icns2png)</p>
<p>I did have to make a few modifications to the Tux icon [<a href="http://www.colinharrington.net/images/os_linux.icns">os_linux.icns</a>] to give him a &#8216;glow&#8217; so that he doesn&#8217;t fade into the black on black:</p>
<p style="text-align: center;"><img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/os_linux.png" alt="Tux Crystal Modified by Colin" /></p>
<p style="text-align: left;">This windows Icon [<a href="http://www.colinharrington.net/images/os_win.icns">os_win.icns</a>] is the stock version I think (send me a link to the author if you know):</p>
<p style="text-align: center;">&nbsp;<img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/os_win.png" alt="" /></p>
<p style="text-align: left;">I did add a slight &#8216;glow&#8217; to the apple icon [<a href="http://www.colinharrington.net/images/os_mac.icns">os_mac.icns</a>] (send me a link to the author if you know):</p>
<p style="text-align: center;"><img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/os_mac.png" alt="" /></p>
<p>I tried a number of custom &#8217;selected&#8217; themes but gradients didn&#8217;t look right, so I went with the simple plan.&nbsp; The selection bitmap can be found <a href="http://www.colinharrington.net/images/refit-background-ring.bmp">here</a>:</p>
<p style="text-align: center;"><img vspace="4" hspace="4" border="0" src="http://www.colinharrington.net/images/refit-background-ring.bmp" alt="selection_big.bmp" /></p>
<p>&nbsp;</p>
<p>the process is simple once rEFIt is installed:&nbsp; modify the refit.conf with the icons in place, and you are done!</p>
<p>Here is what I came up with for my refit.conf (comments removed):</p>
<p><code>timeout 5<br />
banner hostname.bmp<br />
selection_big&nbsp;&nbsp; selection-big-ring.bmp<br />
hideui tools shell funcs hdbadges label<br />
legacyfirst</code></p>
<p>The original comments in the refit.conf file are helpful!&nbsp; Its straight forward if you can read <img src='http://colinharrington.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<ul>
<li>timeout = the number of seconds before it automatically chooses for you</li>
<li>banner = the bitmap of the upper part of the screen (top left pixel = background color)</li>
<li>selection_big = the grey &#8216;ring&#8217; that indicated the selection</li>
<li>hideui = Hide elements of rEFIt so we can get a clean interface</li>
<li>legacyfirst = Legacy OS first (Linux)</li>
</ul>
<p>Use at your own risk!!</p>
<p>If I had the time, it would be fun to build/enhance rEFIt to have an all-black fill instead of the grey/silver.</p>
<p>I&#8217;ve had a good experience with Ubuntu 9.04 on a 17&quot;&nbsp;Macbook Pro, and I&#8217;ll Blog about it &#8211; and see what I can do to help update the documentation &#8211; look for an upcoming post.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2009/05/customizing-refit-an-efi-bootloader-intel-macs-slick/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Greasemonkey + live.gizmodo.com</title>
		<link>http://colinharrington.net/blog/2009/03/greasemonkey-livegizmodocom/</link>
		<comments>http://colinharrington.net/blog/2009/03/greasemonkey-livegizmodocom/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 18:48:11 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2009/03/17/greasemonkey-livegizmodocom/</guid>
		<description><![CDATA[The Keynote for iPhone 3.0 just got over and I thought I should share a tiny greasemonkey script that I put together to reload http://live.gizmodo.com/ much sooner than the 90 seconds that one would wait.
It is too bad that macrumorslive.com is out of buisiness since they got hacked this past January.&#160; Their application wasn&#8217;t too [...]]]></description>
			<content:encoded><![CDATA[<p><img vspace="4" hspace="4" align="right" src="http://www.colinharrington.net/images/iphone2-200x215.png" alt="iphone2" />The Keynote for iPhone 3.0 just got over and I thought I should share a tiny <a href="https://addons.mozilla.org/en-US/firefox/addon/748">greasemonkey</a> script that I put together to reload <a href="http://live.gizmodo.com/">http://live.gizmodo.com/</a> much sooner than the 90 seconds that one would wait.</p>
<p>It is too bad that <a href="http://macrumorslive.com">macrumorslive.com</a> is out of buisiness since <a href="http://gadgets.boingboing.net/2009/01/07/macrumorslivecom-key.html">they got hacked</a> this past January.&nbsp; Their application wasn&#8217;t too hard to mashup either.&nbsp; It was simply changing a timout var in one version and then changing an obfuscated function later.</p>
<p>So the Greasemonkey script is really a breeze, it simply loads jQuery, hides the banner/space-waster and sets a timer to reload the page after 15 seconds (15000 milliseconds&#8230;)&nbsp;</p>
<pre class="code">
// ==UserScript==
// @name           live.gizmodo.com
// @namespace      live.gizmodo.com
// @description    live.gizmodo.com
// @include        http://live.gizmodo.com/
// ==/UserScript==

// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);

// Check if jQuery's loaded
function GM_wait() {
    if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_wait();

// All your GM code must be inside this function
function letsJQuery() {
	$('#header_container').hide()
    setTimeout(function(){ window.location.reload(true);}, 15000);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2009/03/greasemonkey-livegizmodocom/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Overnight Website Challenge + Grails</title>
		<link>http://colinharrington.net/blog/2009/02/overnight-website-challenge-grails/</link>
		<comments>http://colinharrington.net/blog/2009/02/overnight-website-challenge-grails/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 18:42:13 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[OWC]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2009/02/27/overnight-website-challenge-grails/</guid>
		<description><![CDATA[Sierra Bravo is putting on an overnight website challenge tomorrow featuring 12 teams and 12 non-profits.&#160; The challenge is a great way to give back and strut our stuff.
I&#8217;m on a team called the Groovy Goolies and we plan to use Grails to deliver a powerful web-app.&#160; Our team has an excellent lineup with a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sierra-bravo.com/"><img vspace="4" hspace="4" border="0" align="left" src="http://www.colinharrington.net/images/grails-128x128-icon.png" alt="Grails" />Sierra Bravo</a> is putting on an <a href="http://www.f1webchallenge.com/">overnight website challenge</a> tomorrow featuring <a href="http://www.f1webchallenge.com/teams">12 teams</a> and <a href="http://www.f1webchallenge.com/nonprofits">12 non-profits</a>.&nbsp; The challenge is a great way to give back and strut our stuff.</p>
<p>I&#8217;m on a team called the <a href="http://www.f1webchallenge.com/teams/38-Groovy-Goolies">Groovy Goolies</a> and we plan to use <a href="http://grails.org">Grails</a> to deliver a powerful web-app.&nbsp; Our team has an excellent lineup with a broad range of experience and talent.&nbsp; I&#8217;m sure we&#8217;ll do great &#8211; we&#8217;ll definitely get to beat my friends on the <a href="http://www.inetium.com">Inetium</a> <a href="http://www.f1webchallenge.com/teams/37-Team-Inetium">Team</a>.&nbsp;&nbsp; The rich set of <a href="http://www.grails.org/Plugins">Grails plugins</a>, <a href="http://www.grails.org/Plugins#Testing">excellent testing support</a> and the power of <a href="http://groovy.codehaus.org/">Groovy</a> will go a long way.</p>
<p>Checkout <a href="http://hawesome.wordpress.com/2009/02/27/f1-overnight-web-challenge-less-than-24hrs-away/">another post</a> from another team-member or <a href="http://twitter.com/groovygoolies">follow us</a> on twitter.</p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2009/02/overnight-website-challenge-grails/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>F3 = Fat FireFox</title>
		<link>http://colinharrington.net/blog/2008/08/f3-fat-firefox/</link>
		<comments>http://colinharrington.net/blog/2008/08/f3-fat-firefox/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 20:49:31 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/08/28/f3-fat-firefox/</guid>
		<description><![CDATA[Why is everything so slow?&#160; Why does it take forever for the laptop to go to sleep?&#160;
Holy thrashing platters Batman &#8212; Firefox is taking up 1.25GB of Memory.&#160; I guess it is partially my fault.&#160; Having 126 Tabs open isn&#8217;t the nicest thing that you can do, but thats what I did during some intense [...]]]></description>
			<content:encoded><![CDATA[<p><img align="left" src="http://www.colinharrington.net/images/firefox-148x148.png" alt="FireFox Logo" />Why is everything so slow?&nbsp; Why does it take forever for the laptop to go to sleep?&nbsp;</p>
<p>Holy thrashing platters Batman &#8212; <a href="http://www.mozilla.com/firefox/">Firefox</a> is taking up 1.25GB of Memory.&nbsp; I guess it is partially my fault.&nbsp; Having 126 Tabs open isn&#8217;t the nicest thing that you can do, but thats what I did during some intense research.&nbsp; After I brought it down to about 30 tabs, it still held 1GB.&nbsp; That is a little too much if you ask me.&nbsp;</p>
<p>I&#8217;ve been a fan of Firefox for a while.&nbsp; Its attractive because of its extensibility, flexibility, W3C dom, and rendering standards.&nbsp; I&#8217;ve been a fan of good add ons like greasemonkey, Firebug, Better Gmail, View Source Chart, Fullerscreen.&nbsp; I enjoy using these tools regularly.</p>
<p>I use IE7, and Safari 3, and rarely opera.&nbsp; Usually its just to make sure my css and javascript are cross-browser compatible.&nbsp; Each one has it&#8217;s strength&#8217;s and weaknesses.&nbsp; Obviously with Firefox, Memory usage is not its strength <img src='http://colinharrington.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> &nbsp;</p>
<p><a href="http://dotnetperls.com/Content/Browser-Memory.aspx">http://dotnetperls.com/Content/Browser-Memory.aspx</a></p>
<p>I&#8217;m hoping that Firefox 3 will help with the Memory usage.&nbsp; I hope they can adhere to a different model; Weak references please?</p>
<p>I&#8217;m also excited to see what the IE8 team is cooking up.</p>
<p><b>Update</b>:&nbsp; I&#8217;m not so excited to see what IE8 is cooking up for Microsoft&#8217;s business plan.&nbsp; Firefox 3 is Doing great on Mac, Windows and Linux for me.&nbsp; Yea I wrote this a while ago, but thought it was still worth putting out there.&nbsp; I don&#8217;t use Opera or IE7 much anymore now that I am primarily on Linux (home) &amp; OSX (work) </p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2008/08/f3-fat-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restarting MySQL from the Command Line :: Russell to the Rescue</title>
		<link>http://colinharrington.net/blog/2008/08/restarting-mysql-from-the-command-line-russell-to-the-rescue/</link>
		<comments>http://colinharrington.net/blog/2008/08/restarting-mysql-from-the-command-line-russell-to-the-rescue/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 03:40:06 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/08/21/restarting-mysql-from-the-command-line-russell-to-the-rescue/</guid>
		<description><![CDATA[I&#8217;m trying to restart MySQL from the command line in Mac OSX.&#160; The GUI tool in the Preference Pane wouldn&#8217;t work for me, so its time to go back to the Command Line roots.&#160; I knew that there was a way to restart MySQL from the commandline, but I was looking in all of the [...]]]></description>
			<content:encoded><![CDATA[<p><img vspace="4" hspace="4" align="left" alt="" src="http://www.colinharrington.net/images/stones.jpg" style="padding: 4px;" />I&#8217;m trying to restart <a href="http://mysql.com/">MySQL</a> from the command line in Mac OSX.&nbsp; The GUI tool in the Preference Pane wouldn&#8217;t work for me, so its time to go back to the Command Line roots.&nbsp; I knew that there was a way to restart MySQL from the commandline, but I was looking in all of the wrong places, (no /etc/init.d/ or others).&nbsp; I fired off a few quick Web Searches with <a href="http://www.google.com">Google</a> and found many hints.</p>
<p>Most of the articles I found online were not very helpful.&nbsp; They all contained information that didn&#8217;t work for me and OSX 10.5.3 with MySQL 5.0.51a MySQL Community Server (GPL). Maybe Mysql changed their installer recently, maybe its a Mac Update thing, but the I ended up finding the solution in a comment of <a href="http://www.simplisticcomplexity.com/2007/10/27/start-and-stop-mysql-in-mac-os-x-105-leopard/">this article</a>.&nbsp; A comment by someone named <a href="http://www.simplisticcomplexity.com/2007/10/27/start-and-stop-mysql-in-mac-os-x-105-leopard/#comment-3665">Russell</a> proved to be very helpful.</p>
<p>Basically it came down to knowing where to find these commands:</p>
<p><span><span><span><span>Start &#8211; <code>sudo /usr/local/mysql/support-files/mysql.server start</code><br />
Stop &#8211; <code>sudo /usr/local/mysql/support-files/mysql.server stop</code></span></span></span></span></p>
<p>Thanks Russell &#8211; You rock!!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://colinharrington.net/blog/2008/08/restarting-mysql-from-the-command-line-russell-to-the-rescue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
