<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/wordpress-mu-1.2.1" -->
<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/"
	>

<channel>
	<title>Random Thoughts By Mr 337</title>
	<link>http://mr337.thecoderblogs.com</link>
	<description>Ramble about 10% Microsoft, 10% Linux.... 80% Random Stuff?</description>
	<pubDate>Thu, 26 Jun 2008 04:56:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=wordpress-mu-1.2.1</generator>
	<language>en</language>
			<item>
		<title>Presenting The Desktop</title>
		<link>http://mr337.thecoderblogs.com/archives/31</link>
		<comments>http://mr337.thecoderblogs.com/archives/31#comments</comments>
		<pubDate>Thu, 26 Jun 2008 04:56:04 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/31</guid>
		<description><![CDATA[There are several times I needed to present stuff on the desktop. Also working internationally it was hard to present live at four in the morning. I love my sleep  
So I looked for desktop recording. There has to be something so I can present my stuff and email it or post it online. [...]]]></description>
			<content:encoded><![CDATA[<p>There are several times I needed to present stuff on the desktop. Also working internationally it was hard to present live at four in the morning. I love my sleep <img src='http://mr337.thecoderblogs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So I looked for desktop recording. There has to be something so I can present my stuff and email it or post it online. Over time I have came across a couple of products and would like to share what I know.</p>
<p><a href="http://www.debugmode.com/wink/">Wink</a>  -  This has become my favorite screen capture software. It works in a weird way by taking many screen shots. This allows you to make edits and also add stuff like captions or notes/call outs. Then Wink will compile all the pictures into a video format of your choice. I was really surprised on how well it works. Also exports so you can embed video into in your web pages. Works for Windows and Linux which is a big plus for me. Also a free download.</p>
<p><a href="http://camstudio.org/">Camstudio</a> -This is a open source Windows recorder. Looking through it seems this was the original code Camtasia Studio was built upon. You can see some strong similarities. I have used it and it works well. One thing Camtasia Studio does that Camstudio doesn&#8217;t is the ability to edit your recording and add callouts. You can do captions but they can sometimes be tricky. Don&#8217;t forget to install the Lossless Codec for good file compression.</p>
<p><a href="http://www.techsmith.com/camtasia.asp?CMP=KgoogleCStmhome">Camtasia Studio</a> -  This is sort of the nicest software to record, edit, and produce . It&#8217;s super good stuff but comes with quite a hefty price. I have used the demo and wanted to purchase a license but don&#8217;t have that kind of money laying around.</p>
<p>So for a conclusion, if this needs one, is I like Wink. It&#8217;s a free tool that can be used on both  Windows and Linux which is a big plus for me.</p>
<p>Also I am still working on the air freshener but trying to design a way to use common parts because I don&#8217;t have a setup to machine custom parts.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/31&amp;title=Presenting+The+Desktop" title="Add 'Presenting The Desktop' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'Presenting The Desktop' to Del.icio.us" alt="Add 'Presenting The Desktop' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/31&amp;title=Presenting+The+Desktop" title="Add 'Presenting The Desktop' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'Presenting The Desktop' to digg" alt="Add 'Presenting The Desktop' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/31" title="Add 'Presenting The Desktop' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'Presenting The Desktop' to Technorati" alt="Add 'Presenting The Desktop' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/31&amp;title=Presenting+The+Desktop" title="Add 'Presenting The Desktop' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'Presenting The Desktop' to Google Bookmarks" alt="Add 'Presenting The Desktop' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/31" title="Add 'Presenting The Desktop' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'Presenting The Desktop' to Squidoo" alt="Add 'Presenting The Desktop' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/31&amp;title=Presenting+The+Desktop" title="Add 'Presenting The Desktop' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'Presenting The Desktop' to Blogmarks" alt="Add 'Presenting The Desktop' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/31/feed</wfw:commentRss>
		</item>
		<item>
		<title>BASH Delete All In A Folder</title>
		<link>http://mr337.thecoderblogs.com/archives/28</link>
		<comments>http://mr337.thecoderblogs.com/archives/28#comments</comments>
		<pubDate>Tue, 03 Jun 2008 15:57:47 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/28</guid>
		<description><![CDATA[I know it&#8217;s been a while since I have blogged, haven&#8217;t really came across anything exciting to tell you all.  
Anyways there is a command that I always forget that help me with delete all folders and files  in a directory. Such as a jump drive&#8230;lame example but you get the idea.
rm * [...]]]></description>
			<content:encoded><![CDATA[<p>I know it&#8217;s been a while since I have blogged, haven&#8217;t really came across anything exciting to tell you all. <img src='http://mr337.thecoderblogs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyways there is a command that I always forget that help me with delete all folders and files  in a directory. Such as a jump drive&#8230;lame example but you get the idea.</p>
<div class="codesnip-container" >rm * -r -f</div>
<p>I will break it down.</p>
<p>1. The &#8220;rm&#8221; is the remove command</p>
<p>2. The &#8220;*&#8221; means delete all, not including directories I believe.</p>
<p>3. The  &#8220;-r&#8221; means recursive, to go into all folders in folders</p>
<p>4. The &#8220;-f&#8221; is to force it to delete other wise it will ask you if you want to delete every file, file my file (can be slow)</p>
<p>Be careful where you use this command. It works fast and without asking questions.</p>
<p>Note: Dominic pointed out a good question that I completely over looked. What about hidden files? Well after looking <a href="http://www2.themanualpage.org/unix/rm.php3">here</a> I found a special spot for this.</p>
<blockquote><p>Note to handle hidden files: hidden files are deleted only when they explicitly named (rm .file, rm .*). The only case when hidden files are deleted is when we ask rm to delete a complete directory with the -r option (rm -r directory).</p></blockquote>
<p>So in short it&#8217;s just easier to delete the folder and recreate it. Thanks Dominic for pointing that out!</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/28&amp;title=BASH+Delete+All+In+A+Folder" title="Add 'BASH Delete All In A Folder' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'BASH Delete All In A Folder' to Del.icio.us" alt="Add 'BASH Delete All In A Folder' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/28&amp;title=BASH+Delete+All+In+A+Folder" title="Add 'BASH Delete All In A Folder' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'BASH Delete All In A Folder' to digg" alt="Add 'BASH Delete All In A Folder' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/28" title="Add 'BASH Delete All In A Folder' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'BASH Delete All In A Folder' to Technorati" alt="Add 'BASH Delete All In A Folder' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/28&amp;title=BASH+Delete+All+In+A+Folder" title="Add 'BASH Delete All In A Folder' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'BASH Delete All In A Folder' to Google Bookmarks" alt="Add 'BASH Delete All In A Folder' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/28" title="Add 'BASH Delete All In A Folder' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'BASH Delete All In A Folder' to Squidoo" alt="Add 'BASH Delete All In A Folder' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/28&amp;title=BASH+Delete+All+In+A+Folder" title="Add 'BASH Delete All In A Folder' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'BASH Delete All In A Folder' to Blogmarks" alt="Add 'BASH Delete All In A Folder' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/28/feed</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu Server + LAMP + SSH</title>
		<link>http://mr337.thecoderblogs.com/archives/27</link>
		<comments>http://mr337.thecoderblogs.com/archives/27#comments</comments>
		<pubDate>Wed, 21 May 2008 19:28:37 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/27</guid>
		<description><![CDATA[I have tinked with Linux here and there but needed to &#8220;expand my horizons&#8221; lol. So I do what I always do with any OS, get the server editions and abuse them. I poked around and looked at a couple distros but Ubuntu come on top because of the big selection of packages via aptitude.
So [...]]]></description>
			<content:encoded><![CDATA[<p>I have tinked with Linux here and there but needed to &#8220;expand my horizons&#8221; lol. So I do what I always do with any OS, get the server editions and abuse them. I poked around and looked at a couple distros but Ubuntu come on top because of the big selection of packages via aptitude.</p>
<p>So I downloaded the iso, burned it, and poped in the CD tray.  The installation came up and it was easy as pie. Then during the process it had the selection of configuring different types of systems, for me I selected LAMP + Openssh. So in a matter of about 15 minutes my server was up and running. Did the old point a browser to the server IP and apache was working from the beginning. How cool is that? I have setup LAMP without the &#8220;L&#8221; on a windows server before and it was about two hours of frustration. Even longer if you want to use IIS instead of apache.</p>
<p>Well my server was an old dell desktop that now doesn&#8217;t have anything hooked up to it(moitor, keyboard, mouse, etc..). So I started digging around and found SSH. By default SSH was already setup on the Ubuntu server so I issued a connect command.</p>
<div class="codesnip-container" >ssh ipaddress</div>
<p>Was prompted for the password and bam I was in. At this point I was giddy. No extra installs or config, bam was in just like that. I messed around a few different things like scp and running x windows through ssh.</p>
<p>On my mandriva I had KDE so I wanted to play with gnome (see what all the talk was about) which was installed on the Ubuntu server.  Should I use ttightvncserver or something else? Nope found another cool command. I found it <a href="https://help.ubuntu.com/community/SSHHowto">here</a>.</p>
<p>1. You need  to switch to another terminal. (Ctrl+Alt+F1).<br />
2. Log in and issue
<div class="codesnip-container" >xinit -e ssh -XCT ipaddress gmome-session &#8211;:1</div>
<p>3. You should be automatically forwarded to another terminal, if not do Ctrl+Alt+F8<br />
4. Enter password and the gnome session will start up.</p>
<p>(if you want to go back to your original X terminal issue Ctrl+Alt+F7)</p>
<p>Once again in another giddy state!</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/27&amp;title=Ubuntu+Server+%2B+LAMP+%2B+SSH" title="Add 'Ubuntu Server + LAMP + SSH' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'Ubuntu Server + LAMP + SSH' to Del.icio.us" alt="Add 'Ubuntu Server + LAMP + SSH' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/27&amp;title=Ubuntu+Server+%2B+LAMP+%2B+SSH" title="Add 'Ubuntu Server + LAMP + SSH' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'Ubuntu Server + LAMP + SSH' to digg" alt="Add 'Ubuntu Server + LAMP + SSH' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/27" title="Add 'Ubuntu Server + LAMP + SSH' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'Ubuntu Server + LAMP + SSH' to Technorati" alt="Add 'Ubuntu Server + LAMP + SSH' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/27&amp;title=Ubuntu+Server+%2B+LAMP+%2B+SSH" title="Add 'Ubuntu Server + LAMP + SSH' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'Ubuntu Server + LAMP + SSH' to Google Bookmarks" alt="Add 'Ubuntu Server + LAMP + SSH' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/27" title="Add 'Ubuntu Server + LAMP + SSH' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'Ubuntu Server + LAMP + SSH' to Squidoo" alt="Add 'Ubuntu Server + LAMP + SSH' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/27&amp;title=Ubuntu+Server+%2B+LAMP+%2B+SSH" title="Add 'Ubuntu Server + LAMP + SSH' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'Ubuntu Server + LAMP + SSH' to Blogmarks" alt="Add 'Ubuntu Server + LAMP + SSH' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/27/feed</wfw:commentRss>
		</item>
		<item>
		<title>Air Freshener Under Way</title>
		<link>http://mr337.thecoderblogs.com/archives/25</link>
		<comments>http://mr337.thecoderblogs.com/archives/25#comments</comments>
		<pubDate>Sat, 17 May 2008 02:11:18 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Robotics]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/25</guid>
		<description><![CDATA[

Well now that finals are done with I can get back to blogging and working on my pet projects.
I blogged earlier about my first robotic project: the air freshener.  After some ebay action (win some, lose some) I finally got a servo for about 5 dollars. It&#8217;s a fairly simple robot so the servo [...]]]></description>
			<content:encoded><![CDATA[<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/hPmJsn41O4c" width="425" height="355" wmode="transparent">
<param name="movie" value="http://www.youtube.com/v/hPmJsn41O4c" /></object>
<p>Well now that finals are done with I can get back to blogging and working on my pet projects.</p>
<p>I blogged earlier about my first robotic project: the <a href="http://mr337.thecoderblogs.com/archives/22">air freshener</a>.  After some ebay action (win some, lose some) I finally got a servo for about 5 dollars. It&#8217;s a fairly simple robot so the servo was the only thing I needed.</p>
<p><a href="http://mr337.thecoderblogs.com/files/2008/05/pic_0025.jpg" title="Servo"><img src="http://mr337.thecoderblogs.com/files/2008/05/pic_0025.jpg" alt="Servo" /></a></p>
<p>I did a little wiring and since I am such a newbie looked had to get a little help know which wires were what. <a href="http://www.societyofrobots.com/actuators_servos.shtml">Society Of Robots</a> is a good resource for newbies like me <img src='http://mr337.thecoderblogs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So after wiring to the Arduino some programming needed to be dealt with. I found some servo code <a href="http://principialabs.com/arduino-serial-servo-control/">here</a>. Great code with a bunch of comments. Perfect for me. Whalala copy, paste, and uploaded to the Arduino. To talk to the Arduino I used the screen to connect via USB.</p>
<div class="codesnip-container" >screen /dev/ttyUSB0 9600</div>
<p>At first it didn&#8217;t work. So I had to tweak the original code to disregard the left and right arrow keys and just used &#8220;u&#8221; and &#8220;d&#8221; to increment/decrement the pulse width sent to the server. Or to change to angle of the servo.</p>
<div class="codesnip-container" >// Adjust these values for your servo and setup, if necessary<br />
int servoPin     =  6;    // control pin for servo motor<br />
int minPulse     =  540;  // minimum servo position<br />
int maxPulse     =  2370; // maximum servo position<br />
int turnRate     =  100;  // servo turn rate increment (larger value, faster rate)<br />
int refreshTime  =  20;   // time (ms) between pulses (50Hz)</div>
<p>// The Arduino will calculate these values for you<br />
int centerServo;         // center servo position<br />
int pulseWidth;          // servo pulse width<br />
int moveServo;           // raw user input<br />
long lastPulse   = 0;    // recorded time (ms) of the last pulse</p>
<p>int intTest;</p>
<p>void setup() {<br />
pinMode(servoPin, OUTPUT);  // Set servo pin as an output pin<br />
centerServo = maxPulse - ((maxPulse - minPulse)/2);<br />
pulseWidth = centerServo;   // Give the servo a starting point (or it floats)<br />
Serial.begin(9600);<br />
Serial.println(&#8221;      Arduino Serial Servo Control&#8221;);<br />
Serial.println(&#8221;Press  to move, spacebar to center&#8221;);<br />
Serial.println();<br />
}</p>
<p>void loop()<br />
{<br />
// wait for serial input<br />
if (Serial.available() &gt; 0)<br />
{<br />
// read the incoming byte:<br />
moveServo = Serial.read();</p>
<p>if(moveServo == &#8216;u&#8217;)<br />
{<br />
pulseWidth = pulseWidth + 10;<br />
Serial.println(&#8221;Increasing Width&#8221;);<br />
Serial.println(pulseWidth);<br />
}</p>
<p>if(moveServo == &#8216;d&#8217;)<br />
{<br />
pulseWidth = pulseWidth - 10;<br />
Serial.println(&#8221;Decreasing Width&#8221;);<br />
Serial.println(pulseWidth);<br />
}</p>
<p>if(pulseWidth &lt; minPulse)<br />
{<br />
pulseWidth = minPulse;<br />
}<br />
if(pulseWidth &gt; maxPulse)<br />
{<br />
pulseWidth = maxPulse;<br />
}</p>
<p>}<br />
// pulse the servo every 20 ms (refreshTime) with current pulseWidth<br />
// this will hold the servo&#8217;s position if unchanged, or move it if changed<br />
if (millis() - lastPulse &gt;= refreshTime)<br />
{<br />
digitalWrite(servoPin, HIGH);   // start the pulse<br />
delayMicroseconds(pulseWidth);  // pulse width<br />
digitalWrite(servoPin, LOW);    // stop the pulse<br />
lastPulse = millis();           // save the time of the last pulse<br />
}<br />
}</p>
<p>This also was a good way to find out the min and max pulse of the servo I got. Oh also side note if anyone happens to buy a AE A1903 servo the above settings are perfect.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/25&amp;title=Air+Freshener+Under+Way" title="Add 'Air Freshener Under Way' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'Air Freshener Under Way' to Del.icio.us" alt="Add 'Air Freshener Under Way' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/25&amp;title=Air+Freshener+Under+Way" title="Add 'Air Freshener Under Way' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'Air Freshener Under Way' to digg" alt="Add 'Air Freshener Under Way' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/25" title="Add 'Air Freshener Under Way' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'Air Freshener Under Way' to Technorati" alt="Add 'Air Freshener Under Way' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/25&amp;title=Air+Freshener+Under+Way" title="Add 'Air Freshener Under Way' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'Air Freshener Under Way' to Google Bookmarks" alt="Add 'Air Freshener Under Way' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/25" title="Add 'Air Freshener Under Way' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'Air Freshener Under Way' to Squidoo" alt="Add 'Air Freshener Under Way' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/25&amp;title=Air+Freshener+Under+Way" title="Add 'Air Freshener Under Way' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'Air Freshener Under Way' to Blogmarks" alt="Add 'Air Freshener Under Way' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/25/feed</wfw:commentRss>
		</item>
		<item>
		<title>Schematic Drawing On Linux</title>
		<link>http://mr337.thecoderblogs.com/archives/23</link>
		<comments>http://mr337.thecoderblogs.com/archives/23#comments</comments>
		<pubDate>Sun, 04 May 2008 18:02:28 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Robotics]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/23</guid>
		<description><![CDATA[Hi All,
Well once again I have been looking for a program that will allow me to draw and save my schematics on Linux. There is a couple of different solutions out there but one that did catch my attention is Quite Universal Circuit Simulator(QUCS). So I downloaded and compiled a it seems to work great. [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>Well once again I have been looking for a program that will allow me to draw and save my schematics on Linux. There is a couple of different solutions out there but one that did catch my attention is <a href="http://qucs.sourceforge.net/index.html" target="_blank"><em>Quite Universal Circuit Simulator(QUCS)</em>. </a>So I downloaded and compiled a it seems to work great. I will be the first to admit I am not a expert on circuits but in a couple of minutes I &#8220;think&#8221; I drew a simple voltage divider.</p>
<p>The QUCS project seems to be very alive and still producing updates. It is not yet complete so still in &#8220;beta&#8221; but so far my experience with compiling and using have been great.</p>
<p><a href="http://mr337.thecoderblogs.com/files/2008/05/qucs.jpg" title="QUCS Voltage Divider"><img src="http://mr337.thecoderblogs.com/files/2008/05/qucs.jpg" alt="QUCS Voltage Divider" /></a></p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/23&amp;title=Schematic+Drawing+On+Linux" title="Add 'Schematic Drawing On Linux' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'Schematic Drawing On Linux' to Del.icio.us" alt="Add 'Schematic Drawing On Linux' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/23&amp;title=Schematic+Drawing+On+Linux" title="Add 'Schematic Drawing On Linux' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'Schematic Drawing On Linux' to digg" alt="Add 'Schematic Drawing On Linux' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/23" title="Add 'Schematic Drawing On Linux' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'Schematic Drawing On Linux' to Technorati" alt="Add 'Schematic Drawing On Linux' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/23&amp;title=Schematic+Drawing+On+Linux" title="Add 'Schematic Drawing On Linux' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'Schematic Drawing On Linux' to Google Bookmarks" alt="Add 'Schematic Drawing On Linux' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/23" title="Add 'Schematic Drawing On Linux' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'Schematic Drawing On Linux' to Squidoo" alt="Add 'Schematic Drawing On Linux' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/23&amp;title=Schematic+Drawing+On+Linux" title="Add 'Schematic Drawing On Linux' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'Schematic Drawing On Linux' to Blogmarks" alt="Add 'Schematic Drawing On Linux' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/23/feed</wfw:commentRss>
		</item>
		<item>
		<title>First Robot</title>
		<link>http://mr337.thecoderblogs.com/archives/22</link>
		<comments>http://mr337.thecoderblogs.com/archives/22#comments</comments>
		<pubDate>Tue, 29 Apr 2008 20:47:09 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Robotics]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/22</guid>
		<description><![CDATA[Well I have decided what my first robot it going to be. I know after I tell you my idea there might be a good chance you will be laughing. Keep in mind I wanted my first robot to be simple. It will let me know get my hands dirty with a little bit of [...]]]></description>
			<content:encoded><![CDATA[<p>Well I have decided what my first robot it going to be. I know after I tell you my idea there might be a good chance you will be laughing. Keep in mind I wanted my first robot to be simple. It will let me know get my hands dirty with a little bit of micro controller programming (as shown earlier with python) and dc electronics.</p>
<p>So without further adu my next robot will be a air freshener.</p>
<p><img src="http://www.apexdistributiongroup.com/uploaded_files/products/personalothumb_6b048b6ca759c32dc57534b7cae4a9f5.jpg" alt="Simple air freshener" align="absmiddle" height="300" width="300" /></p>
<p>Yup you read it right a simple air freshener. Basically I will take a can of Axe or something similar and have one motor to press the spray valve for a second or two then release. At first I will have it set up for every 30 minutes or something.</p>
<p>The next version after that will have a button to change the time modes, 10, 15, 30, 60 minutes. Depending how comfortable I am I might throw in a LCD to tell the time remaining. So yup there is my idea. It&#8217;s sort of sad isn&#8217;t it?</p>
<p>Well shortly I will be releasing some blueprint drawings, circuit diagrams, and pictures (once I find or buy a digital camera) to share and show my progress.</p>
<p>Wish me luck!</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/22&amp;title=First+Robot" title="Add 'First Robot' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'First Robot' to Del.icio.us" alt="Add 'First Robot' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/22&amp;title=First+Robot" title="Add 'First Robot' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'First Robot' to digg" alt="Add 'First Robot' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/22" title="Add 'First Robot' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'First Robot' to Technorati" alt="Add 'First Robot' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/22&amp;title=First+Robot" title="Add 'First Robot' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'First Robot' to Google Bookmarks" alt="Add 'First Robot' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/22" title="Add 'First Robot' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'First Robot' to Squidoo" alt="Add 'First Robot' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/22&amp;title=First+Robot" title="Add 'First Robot' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'First Robot' to Blogmarks" alt="Add 'First Robot' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/22/feed</wfw:commentRss>
		</item>
		<item>
		<title>Wifi Router</title>
		<link>http://mr337.thecoderblogs.com/archives/21</link>
		<comments>http://mr337.thecoderblogs.com/archives/21#comments</comments>
		<pubDate>Fri, 25 Apr 2008 21:53:32 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/21</guid>
		<description><![CDATA[I just came across a cool piece of software and wanted to share. I have a Windows Mobile 6 phone. There is a feature called Internet Sharing Connection (ISC). With XP or Vista you can plug in the phone and fire up ICS and a new network connection will be connected and you have internet [...]]]></description>
			<content:encoded><![CDATA[<p>I just came across a cool piece of software and wanted to share. I have a Windows Mobile 6 phone. There is a feature called Internet Sharing Connection (ISC). With XP or Vista you can plug in the phone and fire up ICS and a new network connection will be connected and you have internet via your cell. It comes in handy time to time.</p>
<p>Well if you run Linux your beat or as far as I can tell. The little utility I found is called <a href="http://www.wmwifirouter.com/">WMWifiRouter</a>. It&#8217;s a little utility that will take the wireless connection and the cellular data connection and bridge them making the cellphone a wireless internet access point.  Then simply use your favorite distro and connect to the cell phone via wireless and just like that you have internet.</p>
<p>So far it has worked on my phone without a hitch and right now writing this on Mandriva via my cell phone in the middle of a park. Luckily I have broad band on my cell here so it&#8217;s really fast.</p>
<p>If anybody does click the above link they will find that it now has become a commercial product. It used to be shareware/freeware and there is still copies of it floating around the internet. If you can find a shareware version that works on your phone then cool. If not you might try and then buy the commercial version. The shareware didn&#8217;t work on my phone but the commercial version does. So in short the commercial version is more stable and more compatible with various phone.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/21&amp;title=Wifi+Router" title="Add 'Wifi Router' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'Wifi Router' to Del.icio.us" alt="Add 'Wifi Router' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/21&amp;title=Wifi+Router" title="Add 'Wifi Router' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'Wifi Router' to digg" alt="Add 'Wifi Router' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/21" title="Add 'Wifi Router' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'Wifi Router' to Technorati" alt="Add 'Wifi Router' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/21&amp;title=Wifi+Router" title="Add 'Wifi Router' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'Wifi Router' to Google Bookmarks" alt="Add 'Wifi Router' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/21" title="Add 'Wifi Router' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'Wifi Router' to Squidoo" alt="Add 'Wifi Router' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/21&amp;title=Wifi+Router" title="Add 'Wifi Router' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'Wifi Router' to Blogmarks" alt="Add 'Wifi Router' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/21/feed</wfw:commentRss>
		</item>
		<item>
		<title>Read / Wite To Ext2 &#38; Ext3 Partitions in Vista</title>
		<link>http://mr337.thecoderblogs.com/archives/19</link>
		<comments>http://mr337.thecoderblogs.com/archives/19#comments</comments>
		<pubDate>Thu, 24 Apr 2008 22:05:41 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/19</guid>
		<description><![CDATA[Well since my laptop is dual boot (MS &#38; Linux) there is some times when you want to be able to read and write on each other&#8217;s partitions. For my example is running VBox on Vista and now I want to run it under Linux or my Mandriva.
The distro I use is Mandriva and out [...]]]></description>
			<content:encoded><![CDATA[<p>Well since my laptop is dual boot (MS &amp; Linux) there is some times when you want to be able to read and write on each other&#8217;s partitions. For my example is running VBox on Vista and now I want to run it under Linux or my Mandriva.</p>
<p>The distro I use is Mandriva and out of the box I was able to mount the NTFS partition used by Vista. Vista though doesn&#8217;t support Ext2 and Ext3 paritions used most the time by Linux as far as I have seen. Still a newbie&#8230;</p>
<p>Anyways I came across a cool little utility called <a href="http://www.fs-driver.org/index.html">Ext2 IFS For Windows.</a>  Once installed it gave me a couple of options to allow the driver the ability to write (I selected yes) and the ability to support large files just in case running a older kernel which will put the partition into read only (I selected yes, kernel 2.6).</p>
<p>Viola mounted and right now transferring a 15 gig Vbox image from NTFS to the Ext2 partition without a problem. Here is my proof <img src='http://mr337.thecoderblogs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://mr337.thecoderblogs.com/files/2008/04/ext2-parition.JPG" title="Ext2 Properties Dialog In Windows"><img src="http://mr337.thecoderblogs.com/files/2008/04/ext2-parition.JPG" alt="Ext2 Properties Dialog In Windows" /></a></p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/19&amp;title=Read+%2F+Wite+To+Ext2+%26amp%3B+Ext3+Partitions+in+Vista" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Del.icio.us" alt="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/19&amp;title=Read+%2F+Wite+To+Ext2+%26amp%3B+Ext3+Partitions+in+Vista" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to digg" alt="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/19" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Technorati" alt="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/19&amp;title=Read+%2F+Wite+To+Ext2+%26amp%3B+Ext3+Partitions+in+Vista" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Google Bookmarks" alt="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/19" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Squidoo" alt="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/19&amp;title=Read+%2F+Wite+To+Ext2+%26amp%3B+Ext3+Partitions+in+Vista" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Blogmarks" alt="Add 'Read / Wite To Ext2 &amp; Ext3 Partitions in Vista' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/19/feed</wfw:commentRss>
		</item>
		<item>
		<title>First Python code to use new Arduino Code</title>
		<link>http://mr337.thecoderblogs.com/archives/18</link>
		<comments>http://mr337.thecoderblogs.com/archives/18#comments</comments>
		<pubDate>Wed, 23 Apr 2008 05:53:44 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/18</guid>
		<description><![CDATA[Well my previous post was about the Arduino C code used to turn off and on a LED via transistor. Well even though I am tired as heck I was too excited to just go to sleep. So I dove into Python.
Well after obtaining a serial library called pySerial and downloading it here it was [...]]]></description>
			<content:encoded><![CDATA[<p>Well my previous post was about the Arduino C code used to turn off and on a LED via transistor. Well even though I am tired as heck I was too excited to just go to sleep. So I dove into Python.</p>
<p>Well after obtaining a serial library called pySerial and downloading it <a href="http://pyserial.sourceforge.net/">here</a> it was easy as pie. I even made the python script do a simple blink. Disclaimer: My first python script so be easy on me.</p>
<div class="codesnip-container" ></div>
<p>#import libraries<br />
import serial<br />
import time</p>
<p>#create serial object and open<br />
ser = serial.Serial(port=&#8217;/dev/ttyUSB0&#8242;, baudrate=19200, bytesize=8, parity=&#8217;N', stopbits=1, timeout=None, xonxoff=0, rtscts=0)<br />
ser.open()</p>
<p>#bool value ? maybe as integer<br />
a = 0<br />
#infinite loop, if a == 0 -&gt; turn off LED, flush command,<br />
#sleep 1 second, set a to 1, elif does the same thing but turns LED on<br />
while 1 == 1:<br />
if a == 0:<br />
ser.write(&#8221;0&#8243;)<br />
ser.flushOutput()<br />
time.sleep(1)<br />
a = 1<br />
elif a ==1:<br />
ser.write(&#8221;1&#8243;)<br />
ser.flushOutput()<br />
time.sleep(1)<br />
a = 0</p>
<p>#if loop ever finishes of manual break, turn of LED, flush, and close serial<br />
ser.write(&#8221;0&#8243;)<br />
ser.flushOutput()<br />
ser.close()<br />
Well I think Python is growing on me so expect to see more of it on my blog.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/18&amp;title=First+Python+code+to+use+new+Arduino+Code" title="Add 'First Python code to use new Arduino Code' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'First Python code to use new Arduino Code' to Del.icio.us" alt="Add 'First Python code to use new Arduino Code' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/18&amp;title=First+Python+code+to+use+new+Arduino+Code" title="Add 'First Python code to use new Arduino Code' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'First Python code to use new Arduino Code' to digg" alt="Add 'First Python code to use new Arduino Code' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/18" title="Add 'First Python code to use new Arduino Code' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'First Python code to use new Arduino Code' to Technorati" alt="Add 'First Python code to use new Arduino Code' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/18&amp;title=First+Python+code+to+use+new+Arduino+Code" title="Add 'First Python code to use new Arduino Code' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'First Python code to use new Arduino Code' to Google Bookmarks" alt="Add 'First Python code to use new Arduino Code' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/18" title="Add 'First Python code to use new Arduino Code' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'First Python code to use new Arduino Code' to Squidoo" alt="Add 'First Python code to use new Arduino Code' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/18&amp;title=First+Python+code+to+use+new+Arduino+Code" title="Add 'First Python code to use new Arduino Code' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'First Python code to use new Arduino Code' to Blogmarks" alt="Add 'First Python code to use new Arduino Code' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/18/feed</wfw:commentRss>
		</item>
		<item>
		<title>First Arduino Sketch</title>
		<link>http://mr337.thecoderblogs.com/archives/17</link>
		<comments>http://mr337.thecoderblogs.com/archives/17#comments</comments>
		<pubDate>Wed, 23 Apr 2008 04:37:18 +0000</pubDate>
		<dc:creator>blacklocist</dc:creator>
		
		<category><![CDATA[Robotics]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mr337.thecoderblogs.com/archives/17</guid>
		<description><![CDATA[Well I finally got had some free time on my hands so I decided to play with my Arduino  
Well here is a simple sketch that reads the serial for a &#8216;0&#8242; or &#8216;1&#8242; and does something based on the input. For me it was to trip (if proper terminology) a transistor to turn [...]]]></description>
			<content:encoded><![CDATA[<p>Well I finally got had some free time on my hands so I decided to play with my Arduino <img src='http://mr337.thecoderblogs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well here is a simple sketch that reads the serial for a &#8216;0&#8242; or &#8216;1&#8242; and does something based on the input. For me it was to trip (if proper terminology) a transistor to turn on a LED. I will put a little motor instead of a LED once I can get my hands on one.</p>
<p>(I found a good example of Arduino Serial <a href="http://www.windmeadow.com/node/38">here</a>. I adapted the code to fit my needs.)</p>
<div class="codesnip-container" ></div>
<p>char incomingByte;              // for incoming serial data<br />
int intdigitOut = 7;</p>
<p>void setup ()<br />
{<br />
beginSerial (19200);<br />
pinMode(intdigitOut, OUTPUT);<br />
digitalWrite (13, HIGH);      //turn on debugging LED<br />
}</p>
<p>//  MAIN CODE<br />
void loop ()<br />
{<br />
// send data only when you receive data:<br />
if (Serial.available () &gt; 0)<br />
{<br />
// read the incoming byte:<br />
incomingByte = Serial.read ();</p>
<p>//turn of power to base pin on transistor = no led ground<br />
//ASCII 48 = 0<br />
if(incomingByte == 48)<br />
{<br />
digitalWrite(intdigitOut, LOW);<br />
Serial.println(incomingByte, DEC);<br />
}</p>
<p>//apply voltage to transistor = led ground available<br />
//ASCII 49 = 1<br />
if(incomingByte == 49)<br />
{<br />
digitalWrite(intdigitOut, HIGH);<br />
Serial.println(incomingByte, DEC);<br />
}<br />
}</p>
<p>}</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><p align=left><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://mr337.thecoderblogs.com/archives/17&amp;title=First+Arduino+Sketch" title="Add 'First Arduino Sketch' to Del.icio.us"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/delicious.png" title="Add 'First Arduino Sketch' to Del.icio.us" alt="Add 'First Arduino Sketch' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://mr337.thecoderblogs.com/archives/17&amp;title=First+Arduino+Sketch" title="Add 'First Arduino Sketch' to digg"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/digg.png" title="Add 'First Arduino Sketch' to digg" alt="Add 'First Arduino Sketch' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://mr337.thecoderblogs.com/archives/17" title="Add 'First Arduino Sketch' to Technorati"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/technorati.png" title="Add 'First Arduino Sketch' to Technorati" alt="Add 'First Arduino Sketch' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://mr337.thecoderblogs.com/archives/17&amp;title=First+Arduino+Sketch" title="Add 'First Arduino Sketch' to Google Bookmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/google.png" title="Add 'First Arduino Sketch' to Google Bookmarks" alt="Add 'First Arduino Sketch' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://mr337.thecoderblogs.com/archives/17" title="Add 'First Arduino Sketch' to Squidoo"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/squidoo.png" title="Add 'First Arduino Sketch' to Squidoo" alt="Add 'First Arduino Sketch' to Squidoo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://mr337.thecoderblogs.com/archives/17&amp;title=First+Arduino+Sketch" title="Add 'First Arduino Sketch' to Blogmarks"><img src="http://mr337.thecoderblogs.com/wp-content/plugins/social-bookmarks/bmarks.png" title="Add 'First Arduino Sketch' to Blogmarks" alt="Add 'First Arduino Sketch' to Blogmarks" /></a></p></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://mr337.thecoderblogs.com/archives/17/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
