<?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>robotgeek &#187; code</title>
	<atom:link href="http://www.robotgeek.org/blog/topics/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.robotgeek.org/blog</link>
	<description>Still only human</description>
	<lastBuildDate>Fri, 20 Aug 2010 01:31:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>USB Booting for Bios Update</title>
		<link>http://www.robotgeek.org/blog/2008/06/22/usb-booting-for-bios-updates/</link>
		<comments>http://www.robotgeek.org/blog/2008/06/22/usb-booting-for-bios-updates/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 20:36:22 +0000</pubDate>
		<dc:creator>robotgeek</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://www.robotgeek.org/blog/?p=187</guid>
		<description><![CDATA[I bought some extra RAM for my machine (it has 4GB of RAM now). However, the computer would not recognize the extra RAM. So, off I went to my motherboard manufacturer&#8217;s site and looked up possible BIOS updates. And then, the question is&#8230;how do you update your bios without a floppy disk. I did not [...]]]></description>
			<content:encoded><![CDATA[<p>I bought some extra RAM for my machine (it has 4GB of RAM now). However, the computer would not recognize the extra RAM. So, off I went to my motherboard manufacturer&#8217;s site and looked up possible BIOS updates. </p>
<p>And then, the question is&#8230;how do you update your bios without a floppy disk. I did not have cd-rw&#8217;s at hand, so I had to get it working with a usb flash drive. </p>
<p>After lot of research, I found a </p>
<ol>
<li><a href="http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&#038;cc=us&#038;swItem=MTX-UNITY-I23839&#038;jumpid=reg_R1002_USEN">HP Drive Key Booting Utility</a>
</li>
<li>A bootable cdrom image from bootdisk.com</li>
</ol>
<p>Installed the utility, and picked the bootable image (.img format). And I was off to the races&#8230;.</p>
<p>I wish I had run into <a href="http://www.bootdisk.com/pendrive.htm">this page</a> earlier. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.robotgeek.org/blog/2008/06/22/usb-booting-for-bios-updates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stats</title>
		<link>http://www.robotgeek.org/blog/2006/05/12/stats/</link>
		<comments>http://www.robotgeek.org/blog/2006/05/12/stats/#comments</comments>
		<pubDate>Fri, 12 May 2006 20:06:32 +0000</pubDate>
		<dc:creator>robotgeek</dc:creator>
				<category><![CDATA[Free software]]></category>
		<category><![CDATA[Geek Speak]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://robotgeek.org/blog/2006/05/12/stats/</guid>
		<description><![CDATA[You might or might not know that I work on EasyUbuntu. Anyways, we released a beta on April 25th. Since then, we have about 3237 downloads in April, and 4580 downloads in May! A total of 7817 (and counting) downloads in 17 days! Makes you feel nice, doesn&#8217;t it BTW, this beta of EasyUbuntu supports [...]]]></description>
			<content:encoded><![CDATA[<p>You might or might not know that I work on <a href="http://easyubuntu.freecontrib.org">EasyUbuntu</a>. </p>
<p>Anyways, we released a beta on April 25th. Since then, we have about 3237 downloads in April, and 4580 downloads in May! A total of 7817 (and counting) downloads in 17 days! </p>
<p>Makes you feel nice, doesn&#8217;t it <img src='http://www.robotgeek.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>BTW, this beta of EasyUbuntu supports Breezy/Dapper, Ubuntu/Kubuntu/Xubuntu and X86/PowerPC/Amd64 architectures. Go on, download away!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robotgeek.org/blog/2006/05/12/stats/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Python Code Example</title>
		<link>http://www.robotgeek.org/blog/2005/04/29/python-code-example/</link>
		<comments>http://www.robotgeek.org/blog/2005/04/29/python-code-example/#comments</comments>
		<pubDate>Fri, 29 Apr 2005 19:50:42 +0000</pubDate>
		<dc:creator>robotgeek</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://robotgeek.freefronthost.com/blog/?p=59</guid>
		<description><![CDATA[10 print "hello, world!" 
20 goto 10]]></description>
			<content:encoded><![CDATA[<p>I wrote a piece of python code. It&#8217;s a generalised summation function, it sums up arbitrary functions (simple ones alteast!), for an arbitrary number of summations. Inspired by Nikhil&#8217;s lisp code, and a &#8220;Can I do this in Python attitude!&#8221;</p>
<p>Here it is:</p>
<pre>
def list_inc(list_begin,list_end,list_cur):
	if list_cur ==[ ]:
		return list_cur
	if list_cur[-1] < list_end[-1]:
		list_cur[-1] = list_cur[-1] + 1
		return list_cur
	list_cur= list_inc(list_begin[:-1],list_end[:-1],list_cur[:-1])
	list_cur.append(list_begin[-1])
	return list_cur

def summation(function,list_begin,list_end):
	sum = 0
	list_cur = list_begin
	while (list_cur != list_end):
		sum = sum + apply (function,list_cur)
		list_cur =  list_inc (list_begin,list_end,list_cur)
	sum = sum + apply (function,list_end)
	return sum

 #Arbitrary function, ranges
print summation(lambda x,y,z:x*y*z,[1,1,1],[2,3,5])       
</pre>
<p>Btw, I think I might have to read up on how to format the code properly while using wordpress. I did use the < "code"> thing, but it's not very impressive. A  < "pre"> tag might be good.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.robotgeek.org/blog/2005/04/29/python-code-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Labview Programming</title>
		<link>http://www.robotgeek.org/blog/2005/04/01/labview-programming/</link>
		<comments>http://www.robotgeek.org/blog/2005/04/01/labview-programming/#comments</comments>
		<pubDate>Fri, 01 Apr 2005 14:06:48 +0000</pubDate>
		<dc:creator>robotgeek</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://robotgeek.freefronthost.com/blog/?p=42</guid>
		<description><![CDATA[Been doing a lot of that lately...]]></description>
			<content:encoded><![CDATA[<p>I spend a lot of time on programming in Labview nowadays. It&#8217;s a very interesting programming language. Very simple to use, and lot of documentation. </p>
<p>How does it look?? Here goes&#8230;</p>
<p><a href="http://www.robotgeek.org/blog/wp-content/labview1.jpg"><img src='http://www.robotgeek.org/blog/wp-content/thumb-labview1.jpg' alt='Labview Screenshot' /></a></p>
<p>I am currently trying to get a Data Acquisition system which acquires data from 12 strain-gages to work nicely with Labview. Looks like I am going to have to read up on serial communication.</p>
<p>This will be my first foray into Labview drivers, and low-level stuff in Labview. Previously, I have worked on motion control and image processing in Labview, but they were mostly high-level stuff. Looks like I&#8217;m gonna have to read up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robotgeek.org/blog/2005/04/01/labview-programming/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
