<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SW Rat's Blog</title>
	<atom:link href="http://swrat.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://swrat.wordpress.com</link>
	<description>Outlet for my inner geek.</description>
	<lastBuildDate>Mon, 14 Feb 2011 05:54:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='swrat.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>SW Rat's Blog</title>
		<link>http://swrat.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://swrat.wordpress.com/osd.xml" title="SW Rat&#039;s Blog" />
	<atom:link rel='hub' href='http://swrat.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Python, SOAP, and Magento</title>
		<link>http://swrat.wordpress.com/2011/02/13/python-soap-and-magento/</link>
		<comments>http://swrat.wordpress.com/2011/02/13/python-soap-and-magento/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 05:51:51 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[soap]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=84</guid>
		<description><![CDATA[Well, this is a niche topic. But I document stuff here for myself to look up in the future. If this benefits others on the web, then it&#8217;s a plus. Just drop me a note if it does. I&#8217;d like to know. If you ever need to connect to a Magento E-Commerce system to export [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=84&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, this is a niche topic. But I document stuff here for myself to look up in the future. If this benefits others on the web, then it&#8217;s a plus. Just drop me a note if it does. I&#8217;d like to know.</p>
<p>If you ever need to connect to a Magento E-Commerce system to export or import data, you may come across documentation about its SOAP interface. A lot of the provided documentation assumes that you are using PHP, however, the SOAP interface is not limited to just PHP, but other languages can also interface with it. My current favorite language happens to be Python, so I started to look, but haven&#8217;t found much.</p>
<p>Here&#8217;s a quick snippet of code to help you get started. I am using Python 2.7 and a SOAP module called suds. A few assumptions: the server name will be &#8216;<strong>server</strong>&#8216;, the user will be &#8216;<strong>swrat</strong>&#8216; and the password will be &#8216;<strong>password</strong>&#8216;. Be sure to replace those with the appropriate values in your environment.</p>
<p><code><br />
import suds<br />
from suds.client import Client<br />
wsdl_file = 'http://server/api/v2_soap?wsdl=1'<br />
user = 'swrat'<br />
password = 'password'<br />
client = Client(wsdl_file)  # load the wsdl file<br />
session = client.service.login(user, password)  # login and create a session<br />
# Let's dump the category tree hiearchy, using node id = 2 as the root (which should be the Default Category)<br />
root = 2<br />
tree = client.service.catalogCategoryTree(session, root)<br />
# print it out, this should show the full data structure returned in soap<br />
print tree<br />
</code></p>
<p>This is a quick post, so I will stop here. This shows you how to use python to talk to Magento and obtain some product category data. Compare this with the API documentation and you should be able to see how this works and extend the code to call other APIs.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=84&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2011/02/13/python-soap-and-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
		<item>
		<title>Tomboy is available on Windows</title>
		<link>http://swrat.wordpress.com/2010/09/13/tomboy-is-available-on-windows/</link>
		<comments>http://swrat.wordpress.com/2010/09/13/tomboy-is-available-on-windows/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 06:56:22 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Tomboy]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=56</guid>
		<description><![CDATA[This may be old news to some, but it&#8217;s news to me. Tomboy is now available for Windows! Free open source software ported to Windows makes it so much more bearable Anyway, go download it now, follow the instructions here: http://live.gnome.org/Tomboy/Installing/Windows<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=56&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This may be old news to some, but it&#8217;s news to me. Tomboy is now available for Windows! Free open source software ported to Windows makes it so much more bearable <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, go download it now, follow the instructions here:</p>
<p><a href="http://live.gnome.org/Tomboy/Installing/Windows">http://live.gnome.org/Tomboy/Installing/Windows</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=56&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2010/09/13/tomboy-is-available-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting Up PuTTY for everyday use</title>
		<link>http://swrat.wordpress.com/2010/09/13/setting-up-putty-for-everyday-use/</link>
		<comments>http://swrat.wordpress.com/2010/09/13/setting-up-putty-for-everyday-use/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 06:20:31 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[PuTTY]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=54</guid>
		<description><![CDATA[PuTTY is a great free terminal tool for Windows. It beats many commercial products. When you start it up normally it will prompt you to enter a host, then when connected, the host will prompt you for a user and a password. That&#8217;s a lot of typing and us programmers are lazy so I started [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=54&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> is a great free terminal tool for Windows. It beats many commercial products.</p>
<p>When you start it up normally it will prompt you to enter a host, then when connected, the host will prompt you for a user and a password. That&#8217;s a lot of typing and us programmers are lazy so I started looking for ways to cut that down.</p>
<p>So let&#8217;s set out to do this, with a goal to have an shortcut or quick launch button that will automatically get you into your host and allow you to work right away without any typing at all. Obviously, this only makes sense to have on your personal desktop. You would not want to have this on a public or shared machine.</p>
<p>So here&#8217;s goes:</p>
<h3>1. Public and Private key generation</h3>
<p>We know that SSH supports key-based authentication. You will need to generate a set of keys, private and public. Place the public key on the host where you are connecting to. If you already have preexisting keys, you can skip this step.</p>
<p>So start up PuTTY gen (which is installed along with PuTTY if you had grabbed the whole package).</p>
<p>Adjust the key settings if you like. I like to use 2048-bit keys to be more secure. But let&#8217;s stick with defaults for now, it&#8217;s inconsequential to this post. Now click on Generate.</p>
<p><a href="http://swrat.files.wordpress.com/2010/09/puttygen.jpg"><img class="alignnone size-medium wp-image-59" title="PuTTYGen1" src="http://swrat.files.wordpress.com/2010/09/puttygen.jpg?w=300&#038;h=288" alt="" width="300" height="288" /></a></p>
<p>It will ask for you to randomly move the mouse to get some randomness for the key generation, which is very important.</p>
<p><a href="http://swrat.files.wordpress.com/2010/09/puttygen2.jpg"><img class="alignnone size-medium wp-image-61" title="PuTTYGen2" src="http://swrat.files.wordpress.com/2010/09/puttygen2.jpg?w=300&#038;h=288" alt="" width="300" height="288" /></a></p>
<p>Type in a pass phrase + confirmation for the private key. Then click both &#8216;Save public key&#8217; and &#8216;Save private key&#8217;. Place the keys in a safe directory. Let&#8217;s name them key.pub and key.ppk.</p>
<p><a href="http://swrat.files.wordpress.com/2010/09/puttygen3.jpg"><img class="alignnone size-medium wp-image-60" title="PuTTYGen3" src="http://swrat.files.wordpress.com/2010/09/puttygen3.jpg?w=300&#038;h=288" alt="" width="300" height="288" /></a></p>
<p>Note the top box &#8220;Public key for pasting into OpenSSH authorized_keys file&#8221;. Do a select-all in that box, and copy it.</p>
<h3>2. Now, let&#8217;s add that public key into your authorized_keys file on your host.</h3>
<p>Open up a PuTTY session to your host and type in your user name and password (soon we won&#8217;t have to do this step!). Now, go to your ~/.ssh directory and edit the authorized_keys file with your favorite editor. Create the file if it doesn&#8217;t exist.</p>
<p style="padding-left:30px;">vi ~/.ssh/authorized_keys</p>
<p>Paste the public key that you had just copied into your clipboard into this file. Add it to the end of the file, on its own line.  Be sure to append this new key into the file. Do not remove the other existing keys (if any) unless that&#8217;s your real intention.</p>
<p>Alternatively, you can copy the key.pub file we had saved above into the host and then append it to the authorized_keys file. However, the key.pub file contains line breaks within the MIME64 encoded string, which needs to be removed. With the line breaks, the SSH server will not recognize the key as a valid key.</p>
<p>You should test that the keys are working by starting up a Pageant (spelling error?), and adding your private key. You will see the pagent as a tray icon after starting it.</p>
<p><a href="http://swrat.files.wordpress.com/2010/09/puttypagent.jpg"><img class="alignnone size-full wp-image-71" title="PuTTYPagent" src="http://swrat.files.wordpress.com/2010/09/puttypagent.jpg?w=640" alt=""   /></a></p>
<p>Then fire up a new PuTTY session to your host. It should log you in after just typing in your username.</p>
<h3>3. Setting up PuTTY sessions</h3>
<p>Now we need to create a PuTTY session that contains all your preferences that can be reloaded in the future. Bring up the PuTTY configuration screen, which should pop up by default when you start PuTTY.</p>
<p>Adjust all your preferences (you can come back to fine tune more later). Then type in a session name under &#8220;Saved Sessions&#8221;, and click Save. I named my session &#8216;server&#8217; here to access my host named&#8230; &#8220;server&#8221;.</p>
<p><a href="http://swrat.files.wordpress.com/2010/09/puttyconfig.jpg"><img class="alignnone size-medium wp-image-70" title="PuTTYConfig" src="http://swrat.files.wordpress.com/2010/09/puttyconfig.jpg?w=300&#038;h=286" alt="" width="300" height="286" /></a></p>
<h3>4. Set up the shortcuts</h3>
<p>We are almost done. Now we need to set up the shortcuts to do the right thing, so we&#8217;ll get our one-click convenience.</p>
<p>First, make a copy of the PuTTY shortcut from the start menu and paste it on to your desktop. Then right click on the shortcut and select Properties to start editing the properties.</p>
<p><a href="http://swrat.files.wordpress.com/2010/09/puttyshortcut1.jpg"><img class="alignnone size-medium wp-image-76" title="PuTTYShortCut1" src="http://swrat.files.wordpress.com/2010/09/puttyshortcut1.jpg?w=239&#038;h=300" alt="" width="239" height="300" /></a></p>
<p>From the PuTTY <a href="http://the.earth.li/~sgtatham/putty/0.60/puttydoc.txt">documentation</a> you will find that PuTTY accepts a few commandline arguments. What we care about are the -load switch and the -l switch.</p>
<p>The -load switch allows you to specify which session to use. So in our case, we would specify -load &#8220;server&#8221;.</p>
<p>The -l switch allows you to specify the user name on the host. Put the appropriate username here for yourself. I will use -l swrat.</p>
<p>Putting it together, we have:</p>
<p style="padding-left:30px;">&#8220;C:\Program Files\PuTTY\putty.exe&#8221; -load &#8220;server&#8221; -l swrat</p>
<p>So place this in your shortcut properties.</p>
<p><a href="http://swrat.files.wordpress.com/2010/09/puttyshortcut2.jpg"><img class="alignnone size-medium wp-image-77" title="PuTTYShortCut2" src="http://swrat.files.wordpress.com/2010/09/puttyshortcut2.jpg?w=239&#038;h=300" alt="" width="239" height="300" /></a></p>
<p>Now the shortcut should work correctly when you click on it, taking you directly to your server without having to type in the servername, your login name, or your password. Place this short cut on your desktop, in your start menu, or on your quick launch bar. Wherever you want.</p>
<p>But we are not quite done yet. There is one more step. Remember we had to start pageant and manually add your private key? Lets make that step semi-automatic too. You will only need to type in the password for your private key once.</p>
<p>Repeat steps 2-4 for each host that you would like to set up one-click login for. If you would like to use more than one public-private key pair, repeat step 1.</p>
<h3>5. Setting up pageant</h3>
<p>Make a copy of the pageant shortcut from the start menu and copy it to your desktop. And start editing its properties, like the previous step for the PuTTY short cut.</p>
<p>Pageant can be started with the private key(s) that you want to use loaded w/o having to manually add the keys. The syntax is simple:</p>
<p style="padding-left:30px;">&#8220;C:\Program Files\PuTTY\pageant.exe&#8221; &lt;path to key 1&gt; [&lt;path to key 2&gt; ...]</p>
<p>So simply edit the target in the shortcut properties and add the full path to where you saved your private key file, I had named it key.ppk. For example:</p>
<p style="padding-left:30px;">&#8220;C:\Program Files\PuTTY\pageant.exe&#8221; &#8220;C:\Documents and Settings\Swrat\My Documents\sshkey\key.ppk&#8221;</p>
<p>This will obviously vary for each individual.</p>
<p>Now place this shortcut in your Start Menu -&gt; Startup menu. Now during Windows startup, Pageant will prompt you for your private key password.</p>
<p>For more information, refer to the PuTTY <a href="http://the.earth.li/~sgtatham/putty/0.60/puttydoc.txt">documentation</a>. Everything is (buried) in there! Pageant information is in section 9. We haven&#8217;t even scratched the surface of what can be done with this wonderful software.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=54&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2010/09/13/setting-up-putty-for-everyday-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>

		<media:content url="http://swrat.files.wordpress.com/2010/09/puttygen.jpg?w=300" medium="image">
			<media:title type="html">PuTTYGen1</media:title>
		</media:content>

		<media:content url="http://swrat.files.wordpress.com/2010/09/puttygen2.jpg?w=300" medium="image">
			<media:title type="html">PuTTYGen2</media:title>
		</media:content>

		<media:content url="http://swrat.files.wordpress.com/2010/09/puttygen3.jpg?w=300" medium="image">
			<media:title type="html">PuTTYGen3</media:title>
		</media:content>

		<media:content url="http://swrat.files.wordpress.com/2010/09/puttypagent.jpg" medium="image">
			<media:title type="html">PuTTYPagent</media:title>
		</media:content>

		<media:content url="http://swrat.files.wordpress.com/2010/09/puttyconfig.jpg?w=300" medium="image">
			<media:title type="html">PuTTYConfig</media:title>
		</media:content>

		<media:content url="http://swrat.files.wordpress.com/2010/09/puttyshortcut1.jpg?w=239" medium="image">
			<media:title type="html">PuTTYShortCut1</media:title>
		</media:content>

		<media:content url="http://swrat.files.wordpress.com/2010/09/puttyshortcut2.jpg?w=239" medium="image">
			<media:title type="html">PuTTYShortCut2</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make a reliable system from unreliable parts?</title>
		<link>http://swrat.wordpress.com/2010/03/06/how-to-make-a-reliable-system-from-unreliable-parts/</link>
		<comments>http://swrat.wordpress.com/2010/03/06/how-to-make-a-reliable-system-from-unreliable-parts/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 07:22:08 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=51</guid>
		<description><![CDATA[At work, I am tasked to create a reliable system from unreliable parts. This is a really hard problem, and I want to document my research here. The first thing I did was to google this topic and I can across this short article. In it, it discusses how to make a system safe, which [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=51&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At work, I am tasked to create a reliable system from unreliable parts. This is a really hard problem, and I want to document my research here.</p>
<p>The first thing I did was to google this topic and I can across this short <a href="http://http://dobbscodetalk.com/index.php?option=com_myblog&amp;show=Safe-Systems-from-Unreliable-Parts.html&amp;Itemid=29">article</a>. In it, it discusses how to make a system safe, which is a bit different from making a system reliable. But it is going in the right direction (for me). It suggested using a backup system that is completely <strong>independent</strong> of the primary system, which is also a difficult task.  The current problem at my work is that when the primary system fails, it also takes damages the backup. Which is really bad. I must approach this problem differently. Stay tuned.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=51&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2010/03/06/how-to-make-a-reliable-system-from-unreliable-parts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
		<item>
		<title>Please help Haiti! Here&#8217;s one option.</title>
		<link>http://swrat.wordpress.com/2010/01/20/48/</link>
		<comments>http://swrat.wordpress.com/2010/01/20/48/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:10:06 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=48</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=48&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="https://donate.doctorswithoutborders.org/SSLPage.aspx?pid=197&amp;hbc=1&amp;source=ADQ1001E1D01"><img src="http://www.doctorswithoutborders.org/images/donate/button-emergency-relief-160.png" width="160" height="200" border="none" alt="Support Doctors Without Borders in Haiti" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=48&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2010/01/20/48/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>

		<media:content url="http://www.doctorswithoutborders.org/images/donate/button-emergency-relief-160.png" medium="image">
			<media:title type="html">Support Doctors Without Borders in Haiti</media:title>
		</media:content>
	</item>
		<item>
		<title>AuthLogic for Ruby on Rails</title>
		<link>http://swrat.wordpress.com/2009/08/17/43/</link>
		<comments>http://swrat.wordpress.com/2009/08/17/43/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 04:04:13 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[authlogic]]></category>
		<category><![CDATA[binarylogic]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=43</guid>
		<description><![CDATA[AuthLogic by Ben Johnson of BinaryLogic is a great plugin for Ruby on Rails to do authentication, also see rail cast #160. While setting it up, I ran into this error message: &#8220;uninitialized constant Authlogic&#8221; I also had my config/environment.rb set up correctly with: config.gem &#8220;authlogic&#8221; The gem is in the directory where it should [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=43&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/binarylogic/authlogic/tree/master">AuthLogic</a> by Ben Johnson of <a href="http://www.binarylogic.com">BinaryLogic</a> is a great plugin for Ruby on Rails to do authentication, also see <a href="http://railscasts.com/episodes/160-authlogic">rail cast #160</a>.</p>
<p>While setting it up, I ran into this error message:</p>
<p>&#8220;uninitialized constant Authlogic&#8221;</p>
<p>I also had my config/environment.rb set up correctly with:</p>
<p>config.gem &#8220;authlogic&#8221;</p>
<p>The gem is in the directory where it should be, so I was pretty confused for a while. But it turned out to be very simple to solve. All these time my Webrick server was running, and it turns out that all I needed was to restart the server. For some reason the server won&#8217;t pick up new gems that you installed. Anyway, I thought I&#8217;d make a quick post here in case this will help anyone struggling w/ this problem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=43&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2009/08/17/43/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
		<item>
		<title>ManGo to the rescue</title>
		<link>http://swrat.wordpress.com/2009/08/03/mango-to-the-rescue/</link>
		<comments>http://swrat.wordpress.com/2009/08/03/mango-to-the-rescue/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 02:17:06 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=41</guid>
		<description><![CDATA[Found an iPhone application &#8211; Mango Store Locator &#8211; that was really useful (and free!).  I was able to locate a Subway for sandwiches today. And used it several times to find a Starbucks. This App is well worth your time of checking it out. Plus it&#8217;s free anyway. I read some reviews that says [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=41&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Found an iPhone application &#8211; Mango Store Locator &#8211; that was really useful (and free!).  I was able to locate a Subway for sandwiches today. And used it several times to find a Starbucks. This App is well worth your time of checking it out. Plus it&#8217;s free anyway. I read some reviews that says it&#8217;s just a glorified Google Maps. Perhaps it is, but I wouldn&#8217;t have been able to use Google Maps (and type in subway) while I am driving and looking for lunch today.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=41&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2009/08/03/mango-to-the-rescue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
		<item>
		<title>Blog from the iphone!</title>
		<link>http://swrat.wordpress.com/2009/05/05/blog-from-the-iphone/</link>
		<comments>http://swrat.wordpress.com/2009/05/05/blog-from-the-iphone/#comments</comments>
		<pubDate>Tue, 05 May 2009 06:20:42 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/2009/05/05/blog-from-the-iphone/</guid>
		<description><![CDATA[The coolness factor using wordpress on the iPhone is very high. But the practicality of it is not so good. But accessing my blog on the go is cool, especially when I put a lot of my notes and reminders here for quick access. Actually, i am learning to type faster and faster using two [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=40&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The coolness factor using wordpress on the iPhone is very high. But the practicality of it is not so good. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But accessing my blog on the go is cool, especially when I put a lot of my notes and reminders here for quick access. Actually, i am learning to type faster and faster using two fingers now than just a few minutes ago. One has to realize that the point of contact with the screen is not the tip of your finger or thumb, but somewhere a few mm in.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=40&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2009/05/05/blog-from-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
		<item>
		<title>AIG Bonuses Outrage!</title>
		<link>http://swrat.wordpress.com/2009/03/18/aig-bonuses-outrage/</link>
		<comments>http://swrat.wordpress.com/2009/03/18/aig-bonuses-outrage/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 06:14:20 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[AIG]]></category>
		<category><![CDATA[bonus]]></category>
		<category><![CDATA[corruption]]></category>
		<category><![CDATA[non-software engineering]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/2009/03/18/aig-bonuses-outrage/</guid>
		<description><![CDATA[Alright, I have to post a non-software engineering post tonight. Just some food for thought: If (and a big IF) congress does pass a rule to tax the executive bonuses and are able to enforce it, HOW are we, the people, going to see any proof that these executives are taxed? Will they release the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=33&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Alright, I have to post a non-software engineering post tonight. Just some food for thought:</p>
<p>If (and a big IF) congress does pass a rule to tax the executive bonuses and are able to enforce it, HOW are we, the people, going to see any proof that these executives are taxed? Will they release the tax return forms of these executives? What about future bonus payments from AIG to these executives to &#8220;make up&#8221; for 2008&#8242;s lost bonuses?</p>
<p>AIG insured the congress&#8217;s pension funds and was a major contributor of campaign funds for many congressmen. You betcha they &#8212; the top brass of AIG, are in bed with the congress, that&#8217;s why they even DARED to make the bonus payouts. I serious doubt any real action will take place. I scream CORRUPTION!! Start writing to your senators and representatives to demand for tangible proof! (I hope not all of them are corrupt.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=33&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2009/03/18/aig-bonuses-outrage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
		<item>
		<title>Rule of thumb for cost of electricity</title>
		<link>http://swrat.wordpress.com/2009/03/06/rule-of-thumb-for-cost-of-electricity/</link>
		<comments>http://swrat.wordpress.com/2009/03/06/rule-of-thumb-for-cost-of-electricity/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 05:10:16 +0000</pubDate>
		<dc:creator>swrat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[energy]]></category>
		<category><![CDATA[rule of thumb]]></category>

		<guid isPermaLink="false">http://swrat.wordpress.com/?p=29</guid>
		<description><![CDATA[When you look at a light bulb and its watts rating, do you think about how bright it is or do you think about how much it will cost you per month? For me, it also depends on the shape of the bulb If its round and bulging, I can already imagine dollars flying away. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=29&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you look at a light bulb and its watts rating, do you think about how bright it is or do you think about how much it will cost you per month?</p>
<p>For me, it also depends on the shape of the bulb <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If its round and bulging, I can already imagine dollars flying away. Luckily, I already replaced the most often used bulbs in my house with compact flash bulbs. Also the easy to reach ones. The other less used incandescent bulbs, unless its broken, I probably won&#8217;t switch them out. My main motive is to lower costs, so it won&#8217;t make sense to spend money on bulbs that I rarely turn on.</p>
<p>To get a sense of how much it costs to run a 100W bulb 24/7 for a month, I just calculate how many kWH that is: 100W * 24Hr/Day * 30 days / 1000 W/KW = 72KWH. If a kWH costs 14 cents, that&#8217;s $10.08 a month.</p>
<p><strong>So 100W running all the time is roughly $10 a month. </strong>(Your real cost may be a little different, but this should be in the ballpark.)</p>
<p>You might have to come up with your own rule of thumb if you are dealing in another currency or if your costs are not the same (e.g. if it depends on peak/non-peak hours).</p>
<p>Of course this can be applied to any appliance. 100 watts is 100 watts, it doesn&#8217;t matter what device it is. To know how much electricity your devices use, you can turn off everything in your house, and run that device alone for a month, and see what the electricity bill is. Or&#8230; you can purchase a kill-a-watt device to measure it. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here&#8217;s a run-down of some of the devices that I&#8217;ve measured:</p>
<p>My 1st-gen Core Duo MacBook busy crunching a distributed.net key: 44 W<br />
My server with Phenom 9350e Quad Core 2.0GHz processor also busy crunching: 70W<br />
My workstation with Phenom 9850 2.5Ghz 100% utilization: 180W (I&#8217;m not happy about this one.)</p>
<p>(More devices to come.)</p>
<p>As you can see applying this rule of thumb can quickly allow me to gauge how much my bill will be if I add an additional server, or if I decided to upgrade to a crossfire setup for some real gaming. Or if you decided to contribute to folding@home.</p>
<p>A little off topic: a lot of distributed computing projects were started on the basis of harvesting idle cycles of processors. This is from a time when processors do not have power savings mode and runs at full throttle whether it is doing work or not. If you have a modern CPU (anything made within the last 5 years), your CPU most likely will throttle down to use less power when its idle. The newer the processor, the more sophisticated is its power saving mode(s). If your computer has to be on all the time, the extra load may not be significant relative to the overall power it is drawing from the wall. You will have to measure it to really know. With that said, I think some of the projects out there is still worthy of your contribution. And there are ones that I believe are a waste, but I will refrain from naming them since that is just my own personal opinion.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/swrat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/swrat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/swrat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/swrat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/swrat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/swrat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/swrat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/swrat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/swrat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/swrat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/swrat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/swrat.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/swrat.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/swrat.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=swrat.wordpress.com&amp;blog=6616678&amp;post=29&amp;subd=swrat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://swrat.wordpress.com/2009/03/06/rule-of-thumb-for-cost-of-electricity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c6cfb5b2328231bbdae6fd1050c5d2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">swrat</media:title>
		</media:content>
	</item>
	</channel>
</rss>
