<?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>bhaviksBlog &#187; Linux</title>
	<atom:link href="http://bhaviksblog.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://bhaviksblog.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Nov 2009 20:25:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Replace Gnome-Panel with Tint2</title>
		<link>http://bhaviksblog.com/04/replace-gnome-panel-with-tint2/</link>
		<comments>http://bhaviksblog.com/04/replace-gnome-panel-with-tint2/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 08:15:38 +0000</pubDate>
		<dc:creator>Bhavik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[desktop eye candy]]></category>
		<category><![CDATA[gnome panel]]></category>
		<category><![CDATA[task panel]]></category>
		<category><![CDATA[taskbar]]></category>
		<category><![CDATA[tint2]]></category>

		<guid isPermaLink="false">http://bhaviksblog.com/?p=153</guid>
		<description><![CDATA[Tint2 is a fully customizable taskbar that you can replace gnome-panel with. You can edit a config file to make it look exactly the way you want. Make your linux desktop look even more incredible with Tint2!]]></description>
			<content:encoded><![CDATA[<p>Hey guys, Today we&#8217;re going to get rid of gnome-panel and replace it with something much better looking&#8230;</p>
<p>Tint2 is a a fully customizable taskbar that can add some more eyecandy to your linux desktop. It features custom color and transparency on fonts, icons, borders and background. It also has a clock you can setup.</p>
<p>To get it, download it <a href="http://code.google.com/p/tint2/downloads/list">from this link.</a> Save it to your desktop and open up a terminal. Type in the following commands to extract and install tint2 (your folders may be different if you downloaded a different version)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> Desktop<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> tint2-<span style="color: #000000;">0.7</span>-beta1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> tint2-<span style="color: #000000;">0.7</span>-beta1.tar.gz<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> src<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>After the install, I tried to run it in my terminal and got this error&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tint2: error <span style="color: #000000; font-weight: bold;">while</span> loading shared libraries: libImlib2.so.1: cannot open shared object <span style="color: #c20cb9; font-weight: bold;">file</span>: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory</pre></div></div>

<p>This can be fixed by installing the libimlib2 library. You can look for it in synaptic or type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libimlib2</pre></div></div>

<p><span id="more-153"></span><br />
Now you need to play with the config file to get your desired look. The default config file should be under /etc/xdg/tint2/tint2rc. I was going for a transparent style with each open task as a floating element. Here is my tint2rc with a screenshot under it (tint2 is the bottom panel).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># TINT CONFIG FILE</span>
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># PANEL</span>
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
panel_mode = multi_monitor
panel_monitor = <span style="color: #000000;">1</span>
panel_position = bottom center
panel_size = <span style="color: #000000;">900</span> <span style="color: #000000;">28</span>
panel_margin = <span style="color: #000000;">15</span> <span style="color: #000000;">0</span>
panel_padding = <span style="color: #000000;">9</span> <span style="color: #000000;">3</span>
font_shadow = <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># PANEL BACKGROUND AND BORDER</span>
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
panel_rounded = <span style="color: #000000;">7</span>
panel_border_width = <span style="color: #000000;">1</span>
panel_background_color = <span style="color: #666666; font-style: italic;">#000000 60</span>
panel_border_color = <span style="color: #666666; font-style: italic;">#ffffff 18</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># TASKS</span>
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
task_text_centered = <span style="color: #000000;">1</span>
task_width = <span style="color: #000000;">120</span>
task_margin = <span style="color: #000000;">2</span>
task_padding = <span style="color: #000000;">6</span>
task_icon_size = <span style="color: #000000;">13</span>
task_font = sans <span style="color: #000000;">7</span>
task_font_color = <span style="color: #666666; font-style: italic;">#ffffff 70</span>
task_active_font_color = <span style="color: #666666; font-style: italic;">#ffffff 85</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># TASK BACKGROUND AND BORDER</span>
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
task_rounded = <span style="color: #000000;">5</span>
task_background_color = <span style="color: #666666; font-style: italic;">#ffffff 30</span>
task_active_background_color = <span style="color: #666666; font-style: italic;">#ffffff 50</span>
task_border_width = <span style="color: #000000;">0</span>
task_border_color = <span style="color: #666666; font-style: italic;">#ffffff 18</span>
task_active_border_color = <span style="color: #666666; font-style: italic;">#ffffff 70</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># CLOCK</span>
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
time1_format = <span style="color: #000000; font-weight: bold;">%</span>H:<span style="color: #000000; font-weight: bold;">%</span>M
time1_font = sans <span style="color: #000000;">8</span>
time2_format = <span style="color: #000000; font-weight: bold;">%</span>A <span style="color: #000000; font-weight: bold;">%</span>d <span style="color: #000000; font-weight: bold;">%</span>B
time2_font = sans <span style="color: #000000;">6</span>
clock_font_color = <span style="color: #666666; font-style: italic;">#ffffff 76</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># MOUSE ACTION ON TASK</span>
<span style="color: #666666; font-style: italic;">#---------------------------------------------</span>
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify</pre></div></div>

<p><strong><a href="http://bhaviksblog.com/wp-content/uploads/2009/02/tint2_screenshot.png">Screenshot:</a></strong><br />
<a href="http://bhaviksblog.com/wp-content/uploads/2009/02/tint2_screenshot.png"><img src="http://bhaviksblog.com/wp-content/uploads/2009/02/tint2_screenshot-150x150.png" alt="tint2_screenshot" title="tint2_screenshot" width="150" height="150" class="alignnone size-thumbnail wp-image-300" /></a></p>
<p>Hope this helps make your desktop look even more incredible <img src='http://bhaviksblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bhaviksblog.com/04/replace-gnome-panel-with-tint2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Have Conky Check Your Email!</title>
		<link>http://bhaviksblog.com/03/have-conky-check-your-email/</link>
		<comments>http://bhaviksblog.com/03/have-conky-check-your-email/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 19:43:44 +0000</pubDate>
		<dc:creator>Bhavik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bhaviksblog.com/?p=265</guid>
		<description><![CDATA[A python script that logs into an IMAP mail server, retrieves your mailbox info and displays it in conky. Shows the number of unread and total messages. Tested to work with gmail but should work with any IMAP server. Check it out!]]></description>
			<content:encoded><![CDATA[<p>So I think it&#8217;s pretty clear that I don&#8217;t like doing things in my browser that a script can do for me. <a href="http://bhaviksblog.com/02/woot-item-of-the-day-on-your-desktop/">Woot.com</a>, <a href="http://bhaviksblog.com/02/stock-quotes-on-your-desktop-with-conky/">Stock Quotes</a> and <a href="http://bhaviksblog.com/02/nhl-scoreboard-right-on-your-desktop/">NHL Scores</a> have all been taken care of. Now if only conky could tell me if I have new mail. This would save me from logging in and checking manually&#8230;</p>
<p>Thanks to python&#8217;s easy to use IMAP library this is a piece of cake. The script should work with any IMAP mail server. I have tested it with my Gmail and Drexel University accounts. Your mail server info should be publicly available. Google has theirs under the gmail settings >> imap/pop3 tab (You may have to enable imap under this tab). Best bet is to search google.</p>
<p>The script shows you the total number of messages in your inbox and the number that are unread.</p>
<p>To get it working edit your .conkyrc file. Add the following line under the TEXT section. Change the path to where your script is</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #800000;">${execi 60 python /path/to/script/imap.py}</span></pre></div></div>

<p>This&#8217;ll make obsessive email checking much easier&#8230;no need to login manually <img src='http://bhaviksblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-265"></span><br />
<strong>Screenshot</strong><br />
<a href="http://bhaviksblog.com/wp-content/uploads/2009/03/gmail_imap_email_conky.png"><img src="http://bhaviksblog.com/wp-content/uploads/2009/03/gmail_imap_email_conky-150x150.png" alt="gmail_imap_email_conky" title="gmail_imap_email_conky" width="150" height="150" class="alignnone size-thumbnail wp-image-267" /></a></p>
<p><a href='http://bhaviksblog.com/wp-content/uploads/2009/03/imap.py'>Download IMAP.py here</a> (Right click and Save link as&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://bhaviksblog.com/03/have-conky-check-your-email/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Woot.com Item of the Day on your Desktop</title>
		<link>http://bhaviksblog.com/02/woot-item-of-the-day-on-your-desktop/</link>
		<comments>http://bhaviksblog.com/02/woot-item-of-the-day-on-your-desktop/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 20:14:37 +0000</pubDate>
		<dc:creator>Bhavik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[item]]></category>
		<category><![CDATA[woot]]></category>
		<category><![CDATA[woot.com]]></category>

		<guid isPermaLink="false">http://bhaviksblog.com/?p=245</guid>
		<description><![CDATA[The first thing I check in my browser everyday is what&#8217;s for sale on woot.com. Its a site that features one deal per day and charges 5 bucks for shipping no matter what the product is. This morning I decided to write a script to stick the deal in my conky. Having it sit on [...]]]></description>
			<content:encoded><![CDATA[<p>The first thing I check in my browser everyday is what&#8217;s for sale on <a href="http://www.woot.com">woot.com</a>. Its a site that features one deal per day and charges 5 bucks for shipping no matter what the product is.</p>
<p>This morning I decided to write a script to stick the deal in my conky. Having it sit on my desktop means one less thing to manually check in my browser <img src='http://bhaviksblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you don&#8217;t know what conky is <a href="http://bhaviksblog.com/02/awesome-system-monitoring-with-conky">here&#8217;s my conky tutorial</a><br />
I used the same method as I do in the rest of my scripts&#8230;set flags around our data, extract the info between the flags and shoot it out to conky.<br />
<span id="more-245"></span><br />
To get it working add this line to your .conkyrc under the TEXT section</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #800000;">${execi 12000 python /path/to/script/woot.py}</span></pre></div></div>

<p>Now you&#8217;ll know what&#8217;s on Woot as soon as you turn on your computer <img src='http://bhaviksblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Screenshot</strong><br />
<a href="http://bhaviksblog.com/wp-content/uploads/2009/02/wootcom_item_conky.png" target="_blank"><img src="http://bhaviksblog.com/wp-content/uploads/2009/02/wootcom_item_conky-150x150.png" alt="wootcom_item_conky" title="wootcom_item_conky" width="150" height="150" class="alignnone size-thumbnail wp-image-252" /></a></p>
<p><a href='http://bhaviksblog.com/wp-content/uploads/2009/03/woot.py'>Download woot.py here</a> (Right click and Save link as&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://bhaviksblog.com/02/woot-item-of-the-day-on-your-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stock Quotes on your Desktop with Conky</title>
		<link>http://bhaviksblog.com/02/stock-quotes-on-your-desktop-with-conky/</link>
		<comments>http://bhaviksblog.com/02/stock-quotes-on-your-desktop-with-conky/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 20:09:22 +0000</pubDate>
		<dc:creator>Bhavik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[stock widget]]></category>
		<category><![CDATA[stocks]]></category>
		<category><![CDATA[stocks on desktop]]></category>
		<category><![CDATA[ticker]]></category>

		<guid isPermaLink="false">http://bhaviksblog.com/?p=235</guid>
		<description><![CDATA[A script that pulls stock quotes from yahoo finance and displays them inside conky right on your desktop!]]></description>
			<content:encoded><![CDATA[<p>I wrote another script today to save me from needing to open up a browser.<br />
The old process for stock quotes was, go to yahoo, type in each stock, get the price.<br />
The new process involves only directing my attention to the bottom right corner of my desktop. All stocks of interest are lined up inside my conky. They auto refresh every 2 minutes for me. I can see the current value, what it opened at, and the change.</p>
<p>If you don&#8217;t know what conky is <a href="http://bhaviksblog.com/awesome-system-monitoring-with-conky">click here</a> for my conky tutorial.</p>
<p>To get it working, download the script and add the following line to your .conkyrc<br />
<span id="more-235"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #800000;">${execi 120 python /path/to/script/stocks.py stock1 stock2 stock3}</span></pre></div></div>

<p>Replace 120 with your interval, use your path to the script, and change the stocks to actual stock quotes.<br />
Example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>execi <span style="color: #000000;">120</span> python <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>bhavik<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>stocks.py goog msft aapl<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Hope it helps any of the linux users out there that also like to trade =)</p>
<p><strong>Changes:</strong><br />
3/5/09 &#8211; Removed decimal conversion to float&#8230;<br />
            If the market was closed the value was N/A.<br />
            Since you can&#8217;t convert a string to float it was getting errors.<br />
            Should be good now.</p>
<p><strong>Screenshot</strong><br />
<a href="http://bhaviksblog.com/wp-content/uploads/2009/02/conky_stocks_screenshot.png"><img src="http://bhaviksblog.com/wp-content/uploads/2009/02/conky_stocks_screenshot-150x150.png" alt="conky_stocks_screenshot" title="conky_stocks_screenshot" width="150" height="150" class="alignnone size-thumbnail wp-image-237" /></a><br />
<a href='http://bhaviksblog.com/wp-content/uploads/2009/02/stocks.py'>Download Stocks.py Here</a> (Right click and Save link as&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://bhaviksblog.com/02/stock-quotes-on-your-desktop-with-conky/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>NHL Scoreboard Right On Your Desktop!</title>
		<link>http://bhaviksblog.com/02/nhl-scoreboard-right-on-your-desktop/</link>
		<comments>http://bhaviksblog.com/02/nhl-scoreboard-right-on-your-desktop/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 21:11:03 +0000</pubDate>
		<dc:creator>Bhavik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[hockey]]></category>
		<category><![CDATA[NHL]]></category>
		<category><![CDATA[refresh scores]]></category>
		<category><![CDATA[scoreboard]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://bhaviksblog.com/?p=164</guid>
		<description><![CDATA[This script pulls the scoreboard information from the NHL's website and puts it onto your screen. You can use it with conky to have an updated scoreboard on your desktop. It works with any NHL team! The script is written in python.]]></description>
			<content:encoded><![CDATA[<p>I LOVE the Philadelphia Flyers. Any time they play, I need to know the score at least every two minutes. If I&#8217;m somewhere without a TV, clicking the refresh button for the scoreboard every two minutes is just too much work. So I made python do the work for me.</p>
<p>The script goes to the Flyers (or any other NHL team) website, pulls out the scoreboard and prints it to the screen. Once you add it to conky you&#8217;ll have a scoreboard on your desktop. No need for a browser or clicking that refresh button. When the game is in progress the script will update the score automatically, when it&#8217;s not in progress it&#8217;ll show the date and time of the next game.</p>
<p>The basic idea of the script is:<br />
Set two flags (one before the scoreboard and one after)<br />
Store the substring between the flags into a variable<br />
Break this substring into tokens (Team name, date, time, etc&#8230;)<br />
Each token is displayed as the scoreboard</p>
<p>Side Note:<br />
The bad thing about this script is it&#8217;ll break anytime the NHL changes their scoreboards HTML. I&#8217;ll try to keep it as updated as possible. If they change the HTML i&#8217;ll fix it and upload another version. I doubt they&#8217;ll be changing it often though. <strong>Also, Im using Python version 2.5.2. I havent tested with any other version</strong></p>
<p>If you don&#8217;t know what conky is check out my <a href="http://bhaviksblog.com/02/awesome-system-monitoring-with-conky/" target="_blank">Conky Tutorial</a></p>
<p>Theres two things you need to add to your .conkyrc file after you download this script.<br />
1. This should go into the TEXT section of the .conkyrc<br />
120 is the interval in seconds for it to update (so every 2 minutes)<br />
Call python and then your scripts location and your teams name as an argument</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #800000;">${execi 120 python /path/to/your/script.py flyers}</span></pre></div></div>

<p>2. This needs to go in the parameter section before TEXT.<br />
If you leave this out the script output will look cut off in conky.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">text_buffer_size <span style="color: #000000;">512</span></pre></div></div>

<p><span id="more-164"></span><br />
You can either supply your teams name as an argument or change it manually in the code. The team name should always be one word. If you enter an incorrect team name the errors will look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">bhavik<span style="color: #000000; font-weight: bold;">@</span>bdesktop:~<span style="color: #000000; font-weight: bold;">/</span>Desktop$ python scoreboard.py crap
Traceback <span style="color: #7a0874; font-weight: bold;">&#40;</span>most recent call <span style="color: #c20cb9; font-weight: bold;">last</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  File <span style="color: #ff0000;">&quot;scoreboard.py&quot;</span>, line <span style="color: #000000;">60</span>, <span style="color: #000000; font-weight: bold;">in</span>
    html = urllib2.urlopen<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'http://'</span> + team + <span style="color: #ff0000;">'.nhl.com/index.html'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #666666; font-style: italic;">#open site</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.5/urllib2.py&quot;</span>, line <span style="color: #000000;">124</span>, <span style="color: #000000; font-weight: bold;">in</span> urlopen
    <span style="color: #7a0874; font-weight: bold;">return</span> _opener.open<span style="color: #7a0874; font-weight: bold;">&#40;</span>url, data<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.5/urllib2.py&quot;</span>, line <span style="color: #000000;">381</span>, <span style="color: #000000; font-weight: bold;">in</span> open
    response = self._open<span style="color: #7a0874; font-weight: bold;">&#40;</span>req, data<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.5/urllib2.py&quot;</span>, line <span style="color: #000000;">399</span>, <span style="color: #000000; font-weight: bold;">in</span> _open
    <span style="color: #ff0000;">'_open'</span>, req<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.5/urllib2.py&quot;</span>, line <span style="color: #000000;">360</span>, <span style="color: #000000; font-weight: bold;">in</span> _call_chain
    result = func<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">*</span>args<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.5/urllib2.py&quot;</span>, line <span style="color: #000000;">1107</span>, <span style="color: #000000; font-weight: bold;">in</span> http_open
    <span style="color: #7a0874; font-weight: bold;">return</span> self.do_open<span style="color: #7a0874; font-weight: bold;">&#40;</span>httplib.HTTPConnection, req<span style="color: #7a0874; font-weight: bold;">&#41;</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.5/urllib2.py&quot;</span>, line <span style="color: #000000;">1082</span>, <span style="color: #000000; font-weight: bold;">in</span> do_open
    raise URLError<span style="color: #7a0874; font-weight: bold;">&#40;</span>err<span style="color: #7a0874; font-weight: bold;">&#41;</span>
urllib2.URLError:</pre></div></div>

<p>If you do it correctly the output should look like this</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">bhavik<span style="color: #000000; font-weight: bold;">@</span>bdesktop:~<span style="color: #000000; font-weight: bold;">/</span>Desktop$ python scoreboard.py flyers
&nbsp;
          Thu Feb <span style="color: #000000;">19</span>, <span style="color: #000000;">2009</span> <span style="color: #000000;">7</span>:00 PM
&nbsp;
       Teams   1st   2nd   3rd  Total
       <span style="color: #660033;">------------------------------</span>
     Buffalo     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>
Philadelphia     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span></pre></div></div>

<p><strong>Screenshot</strong><br />
<a href="http://bhaviksblog.com/wp-content/uploads/2009/02/nhl_scoreboard_conky__script.jpg"><img src="http://bhaviksblog.com/wp-content/uploads/2009/02/nhl_scoreboard_conky__script-150x150.jpg" alt="nhl_scoreboard_conky__script" title="nhl_scoreboard_conky__script" width="150" height="150" class="alignnone size-thumbnail wp-image-181" /></a></p>
<p><strong><a href="http://bhaviksblog.com/wp-content/uploads/2009/02/scoreboard.py">Download the script here</a></strong></p>
<p>And of course after all that I came across a website that just streams the entire game for you live&#8230; <a href="http://www.hockeywebcasts.com" target="_blank">www.hockeywebcasts.com</a></p>
<p>The script still comes in handy when I&#8217;m too busy to actually watch the game or if the feeds on that site are down. Try it out and tell me what you think. If you have a cool conky setup, post it in the comments!</p>
<p>Enjoy!</p>
<p>EDIT: Script is broken during the off-season&#8230;The Flyers have lost, I don&#8217;t know if I can go on&#8230;I&#8217;ll fix the script once I recover  <img src='http://bhaviksblog.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bhaviksblog.com/02/nhl-scoreboard-right-on-your-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
