<?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>Jabba Rants &#187; Apps</title>
	<atom:link href="http://justindow.com/category/apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://justindow.com</link>
	<description>Another day in the life of… well, me!</description>
	<lastBuildDate>Fri, 30 Jul 2010 14:04:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Irssi and Screen and Growl, oh my!</title>
		<link>http://justindow.com/2010/03/26/irssi-screen-and-growl-oh-my/</link>
		<comments>http://justindow.com/2010/03/26/irssi-screen-and-growl-oh-my/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 17:50:56 +0000</pubDate>
		<dc:creator>jabba</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://justindow.com/?p=146</guid>
		<description><![CDATA[Over the last few weeks, I&#8217;ve been getting accustomed to my new job here at Mozilla. Something that is used very extensively here is IRC chat. Since the last time I used IRC for work was about two jobs ago, back when I was solely working on linux desktops, I didn&#8217;t really have much experience [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few weeks, I&#8217;ve been getting accustomed to my new job here at Mozilla. Something that is used very extensively here is <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC chat</a>. Since the last time I used IRC for work was about two jobs ago, back when I was solely working on linux desktops, I didn&#8217;t really have much experience with the various IRC clients available for Mac. <a href="http://colloquy.info/">Colloquy</a> is pretty nice, but I couldn&#8217;t figure out how to make it store my channel passwords, such that the client will automatically reconnect after waking the computer from sleep. <a href="http://www.uplinklabs.net/~tycho/projects/xchat-aqua/">X-Chat Aqua</a> was also pretty nice and had some good features as well as being very customizable. I would recommend this to anyone that wants to really tweak their IRC experience.</p>
<p>However, one feature that neither client offered is, of course, staying connected to the IRC server when the computer is asleep. It is quite useful for me to be able to log into the IRC channels that my colleagues are on and be able to scroll back a ways to see what the current conversation is about, or to see if I missed anything that is important to me. The obvious solution here is to use an IRC client running on a remote machine that is always running. Most people I&#8217;ve talked to use the Irssi running in a screen session on a shell server somewhere. This is a perfect solution to the stated problem.</p>
<p>Using this method to connect to the IRC does bring up one whole new problem. Since I am in anywhere from 7 to 10 different IRC channels at a time and have work to do that doesn&#8217;t involve watching all channels all the time, I&#8217;ve relied on Growl notifications to alert me whenever someone mentions my nick. This is one feature that most people have to give up on in order to stay connected using Irssi in a Screen session. Well, I did some research and found a couple of pages on the internet that provided very useful information to make possible using Irssi in a screen session on a remote server and still get Growl notifications anytime your nick is mentioned! Here is how to do it:</p>
<p>First of all, I won&#8217;t go into setting up Irssi or Screen. There is more than enough documentation on the web to help with doing that. Also, I don&#8217;t want to take credit for figuring out how to do this. Most of the information came from <a href="http://andy.delcambre.com/2008/12/06/growl-notifications-with-irssi.html">this page</a>.</p>
<p>First step:<br />
Download <a href="http://justindow.com/Download/fnotify.zip">this script</a>, unzip it and place it in your ~/.irssi/scripts/autorun/ folder (create this directory if it doesn&#8217;t exist yet).</p>
<p>Second step:<br />
Make sure your SSH public key is on the remote server where you will be running your irssi instance.</p>
<p>Third step:<br />
Create a script on your local computer. I named it &#8220;growl_irc.sh&#8221; and placed it in my ~/bin/ directory, which I have added to my PATH variable.</p>
<blockquote>
<pre><code>
#!/bin/bash</code></pre>
<pre># Kill all current fnotify sessions
ps | awk '{if($0 ~ /fnotify/ &amp;&amp; $1 ~ /[0-9]+/ &amp;&amp; $4 !~ /awk/) print $1}' |
while read id; do
kill $id
done</pre>
<pre># SSH to host, clear file and listen for notifications
(ssh username@hostname -o PermitLocalCommand=no \
"&gt; .irssi/fnotify; tail -f .irssi/fnotify" |
while read heading message; do
growlnotify -t "${heading}" -m "${message}";
done)&amp;</pre>
<pre></pre>
</blockquote>
<p>Fourth Step:<br />
Download and install growlnotify. It is in the DMG in a directory called Extras that you can download from <a href="http://growl.info/">http://growl.info/</a></p>
<p>Fifth Step:<br />
Write a simple script, which opens an SSH session to the remote host and also starts the growl_irc.sh script. I call it &#8220;irc&#8221; and put it in my ~/bin/ directory:</p>
<blockquote>
<pre><code>
#!/bin/bash
~/bin/growl_irc.sh
ssh user@hostname</code></pre>
<pre></pre>
</blockquote>
<p>Sixth Step:<br />
On the remote server, I wrote another little wrapper script to resume the screen session. It just has one line:</p>
<blockquote>
<pre><code>screen -raAd
</code></pre>
<pre></pre>
</blockquote>
<p>This can also be called &#8220;irc&#8221; or this line could be added to the .bash_profile file, if that is all the remote server will be used for.</p>
<p>So now my workflow is as follows: Open a terminal, type irc, once logged into the remote server, type irc again and I have my Irssi up and running with working growl notifications. Enjoy!</p>
<p>Extra tips:<br />
Since I don&#8217;t want my irssi window to get lost among all the other terminal windows I have open, I use Terminal.app for regular terminal work and iTerm for Irssi. This way I can have default window sizes and colors for Irssi be different than for other terminal stuff.</p>
<p>You can configure the growlnotify Application in the Growl Preference Pane to make changes to how long the notification stays on screen, etc.</p>
<p>If you read the manpage for growlnotify, you can find ways to tweak the notification&#8217;s icon, etc.</p>
<p>Look at the scripts available on <a href="http://www.irssi.org/scripts">http://www.irssi.org/scripts</a> to find how to change the appearance of Irssi, i.e. to get colored nicks and a list of active nicks in a channel on the sidebar, reminiscent of X-Chat or other GUI clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://justindow.com/2010/03/26/irssi-screen-and-growl-oh-my/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Awesome Application: YaKuake</title>
		<link>http://justindow.com/2007/04/08/awesome-application-yakuake/</link>
		<comments>http://justindow.com/2007/04/08/awesome-application-yakuake/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 18:12:25 +0000</pubDate>
		<dc:creator>jabba</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://justindow.com/2007/04/08/awesome-application-yakuake/</guid>
		<description><![CDATA[I&#8217;ve decided I will start blogging about some of my favorite applications that may be not-so-well known. So today I&#8217;m going to start off with my recently discovered new favorite application: YaKuake. This little app is simply yet another terminal emulator for the KDE desktop, but the thing that is so cool about it, is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided I will start blogging about some of my favorite applications that may be not-so-well known.  So today I&#8217;m going to start off with my recently discovered new favorite application:  <a href="http://yakuake.uv.ro/" title="YaKuake">YaKuake</a>.  This little app is simply yet another terminal emulator for the KDE desktop, but the thing that is so cool about it, is that it just kind of runs in the background and it gives you an instant terminal, which drops down from the top of the screen, at the press of a button.  It is completely configurable for how big you want the terminal window to be and whether you want it to disappear when it loses focus, etc.  It is much more convenient than navigating through my applications menu just to find old trusty Konsole just to type in a quick command like <em>df</em>.  In Kubuntu, just <em>sudo apt-get install yakuake</em>.  Then find it in your K Menu under System.  I just dragged it from there into my /home/jabba/.kde/Autostart folder and created a link to it there.  Now from the time I log in, anytime I need a terminal I just hit F12 and I have a terminal.  Awesome!!!  I am not a GNOME user, but I hear you get similar awesomeness from <a href="http://tilda.sourceforge.net/" title="Tilda">Tilda</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://justindow.com/2007/04/08/awesome-application-yakuake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
