<?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>umkk.eu</title>
	<atom:link href="http://umkk.eu/feed/" rel="self" type="application/rss+xml" />
	<link>http://umkk.eu</link>
	<description>you can also go there !</description>
	<lastBuildDate>Fri, 25 Jun 2010 16:00:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>how to save a life !</title>
		<link>http://umkk.eu/how-to-save-a-life/06/</link>
		<comments>http://umkk.eu/how-to-save-a-life/06/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 06:20:47 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=316</guid>
		<description><![CDATA[Yesterday morning.... just before leaving to work I open the balcony door... in there i see hiding a scared baby bird... it seems that it's a baby dove bird, it's to small to fly, it fell of from a nest near by I assume... i can't let it die... so I created a small "shelter" [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Yesterday morning.... just before leaving to work I open the balcony door... in there i see hiding a scared baby bird... it seems that it's a baby dove bird, it's to small to fly, it fell of from a nest near by I assume... i can't let it die... so I created a small "shelter" for it... a cardboard box will do it for now, i hope that it will not take too long until the little bird can fly away.</p>
<p>I created a ustream channel to monitor the bird while not at home and to show it to others.... unfortunate the bird is not eating yet... i put in there some bread and some corn flour but does not seem to be very attracted by it, if you have any ideas  please let me know because a life it's at stake here, and any soul matters.</p>
<p>I almost forgot, here is the ustream video :</p>
<p><object id="utv168706" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="320" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="autoplay=false&amp;brand=embed&amp;cid=4715571&amp;locale=en_US" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.ustream.tv/flash/live/1/4715571" /><param name="name" value="utv_n_78170" /><embed id="utv168706" type="application/x-shockwave-flash" width="400" height="320" src="http://www.ustream.tv/flash/live/1/4715571" name="utv_n_78170" allowscriptaccess="always" allowfullscreen="true" flashvars="autoplay=false&amp;brand=embed&amp;cid=4715571&amp;locale=en_US"></embed></object><a style="padding: 2px 0px 4px; width: 400px; background: none repeat scroll 0% 0% #ffffff; display: block; color: #000000; font-weight: normal; font-size: 10px; text-decoration: underline; text-align: center;" href="http://www.ustream.tv/" target="_blank">Online video chat by Ustream</a></p>
<p>Also if you want to help, you can make donations here, every penny you give will be used for the bird, take it to a vet.... buying food, etc...</p>
<form style="text-align: center;" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="3172364" />
<input name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG_global.gif" type="image" /></form>
<form style="text-align: center;" action="https://www.paypal.com/cgi-bin/webscr" method="post"> </form>
<form style="text-align: left;" action="https://www.paypal.com/cgi-bin/webscr" method="post"> </form>
<form style="text-align: center;" action="https://www.paypal.com/cgi-bin/webscr" method="post"> </form>
<form style="text-align: left;" action="https://www.paypal.com/cgi-bin/webscr" method="post"> </form>
<p>But first if you have any idea how to feed the bird please let me know ASAP !!!!</p>
<p><b>UPDATE!!!</b></p>
<p>Seems like the pidgin loves parrot food... so the problem with the feeding is solved, it may stand a chance!</p>
<p>Right now the box is opened on the balcony, in case it may have visitors or it decides to fly... either works for me, if the bird is gone my job here is done!</p>
<p><b>UPDATE 2</b><br />
Looks like its parents  did not abandon it, a big pidgin it's coming to feed it !!!, so it has some chances !</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/how-to-save-a-life/06/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/how-to-save-a-life/06/&amp;title=how+to+save+a+life+%21" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/how-to-save-a-life/06/&amp;title=how+to+save+a+life+%21" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/how-to-save-a-life/06/&amp;title=how+to+save+a+life+%21&amp;desc=Yesterday%20morning....%20just%20before%20leaving%20to%20work%20I%20open%20the%20balcony%20door...%20in%20there%20i%20see%20hiding%20a%20scared%20baby%20bird...%20it%20seems%20that%20it%27s%20a%20baby%20dove%20bird%2C%20it%27s%20to%20small%20to%20fly%2C%20it%20fell%20of%20from%20a%20nest%20near%20by%20I%20assume...%20i%20can%27t%20let%20it%20die...%20so%20I%20created%20a%20small%20%22shelter%22%20for%20it...%20a%20cardboard%20bo" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/how-to-save-a-life/06/&amp;t=how+to+save+a+life+%21" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=how+to+save+a+life+%21&amp;body=Link: http://umkk.eu/how-to-save-a-life/06/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Yesterday%20morning....%20just%20before%20leaving%20to%20work%20I%20open%20the%20balcony%20door...%20in%20there%20i%20see%20hiding%20a%20scared%20baby%20bird...%20it%20seems%20that%20it%27s%20a%20baby%20dove%20bird%2C%20it%27s%20to%20small%20to%20fly%2C%20it%20fell%20of%20from%20a%20nest%20near%20by%20I%20assume...%20i%20can%27t%20let%20it%20die...%20so%20I%20created%20a%20small%20%22shelter%22%20for%20it...%20a%20cardboard%20bo" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/how-to-save-a-life/06/&amp;title=how+to+save+a+life+%21" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/how-to-save-a-life/06/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/how-to-save-a-life/06/&amp;bm_description=how+to+save+a+life+%21&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/how-to-save-a-life/06/&amp;title=how+to+save+a+life+%21" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/how-to-save-a-life/06/&amp;title=how+to+save+a+life+%21" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/how-to-save-a-life/06/&amp;title=how+to+save+a+life+%21" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/how-to-save-a-life/06/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+save+a+life+%21+-+http://b2l.me/6g6f6&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/how-to-save-a-life/06/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stepper motor controller</title>
		<link>http://umkk.eu/stepper-motor-controller/01/</link>
		<comments>http://umkk.eu/stepper-motor-controller/01/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:43:06 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[cnc]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=289</guid>
		<description><![CDATA[Hi, in this post i will explain the stepper motor controller, the "smart" part of the driver also called ROAR HB brain module.
There are a few things that should be noted here, this is not just a simple stepper controller it's a smart controller which can be easily updated and changed.
Some advantages of the driver [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hi, in this post i will explain the stepper motor controller, the "smart" part of the driver also called ROAR HB brain module.</p>
<p>There are a few things that should be noted here, this is not just a simple stepper controller it's a smart controller which can be easily updated and changed.</p>
<p>Some advantages of the driver :</p>
<ul>
<li>more drive modes selectable by jumpers or program (normal, half step,  high torque)</li>
<li>power saving mode</li>
<li>ability to add temperature sensors, limit sensors to protect the machine</li>
</ul>
<p>The driver is built around a pic16f84 microcontroller, basically the circuit is a tension stabilizer, an oscillator for the pic microcontroller, some components to set pin B0 as interrupt and all the ports pins are connected to pins so they can be easily connected.</p>
<p><strong>WARNING</strong>: to create this you will need to program the pic microcontroller, and for that you need a programmer, you can see how to build one on this blog, here : <a href="http://umkk.eu/pic-16f84-jdm-programmer/03/" target="_self">pic 16f84 jdm programmer</a></p>
<p>Here is a picture with the final product :</p>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6333.jpg"><img class="size-medium wp-image-291" title="stepper driver front view" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6333-300x200.jpg" alt="stepper driver front view" width="300" height="200" /></a><p class="wp-caption-text">stepper driver front view</p></div>
<div id="attachment_292" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6337.jpg"><img class="size-medium wp-image-292" title="stepper driver back view" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6337-300x200.jpg" alt="stepper driver back view" width="300" height="200" /></a><p class="wp-caption-text">stepper driver back view</p></div>
<div id="attachment_294" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6562.jpg"><img class="size-medium wp-image-294" title="2 controllers in an 2 axis driver" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6562-300x249.jpg" alt="2 controllers in an 2 axis driver" width="300" height="249" /></a><p class="wp-caption-text">2 controllers in an 2 axis driver</p></div>
<p>For the pcb design i used the eagle software (great software) to create first a schematic then the board and then the print files,</p>
<p>here is the schematic :</p>
<div id="attachment_295" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1301.png"><img class="size-medium wp-image-295" title="Stepper controller schematic" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1301-300x258.png" alt="Stepper controller schematic" width="300" height="258" /></a><p class="wp-caption-text">Stepper controller schematic</p></div>
<p>The huge advantage for this is that you have all the port pins connected to pins, and all of them except the pin b0 (which is made to be kept low or high) can be used for anything.</p>
<p>In this case we have pins bo - tact, pin b1 - direction, pins b2- b5 as phases selection.</p>
<p>And now here are the designs for this schematic :</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1306.png"><img class="size-medium wp-image-301" title="bottom view" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_1306-300x297.png" alt="bottom view" width="300" height="297" /></a><p class="wp-caption-text">bottom view</p></div>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_13061.png"><img class="size-medium wp-image-302" title="top view" src="http://umkk.eu/wp-content/uploads/2010/01/2010-01-19_13061-300x297.png" alt="top view" width="300" height="297" /></a><p class="wp-caption-text">top view</p></div>
<p>And here is the file ready to be printed, this file is at the actual dimensions :</p>
<div id="attachment_303" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/HB-brain-to-print-copy.jpg"><img class="size-medium wp-image-303" title="HB brain.brd" src="http://umkk.eu/wp-content/uploads/2010/01/HB-brain-to-print-copy-300x141.jpg" alt="stepper controller print" width="300" height="141" /></a><p class="wp-caption-text">stepper controller print</p></div>
<p>In the above image the top layer is already mirrored so all you have to do is print it and follow the instructions from this post : <a title="How to create PCB’s using toner transfer method" href="http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/" target="_self">How to create PCB’s using toner transfer method</a></p>
<p>All you have to do now is to program the pic, here is the compiled version : <a href="../wp-content/uploads/2010/01/vic.zip">Compiled program</a></p>
<p>The program is compiled using ccs compiler, if you are interested here is the  source code : <a href="http://umkk.eu/wp-content/uploads/2010/01/vic.c">source code</a></p>
<p>And this is is.... have fun.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/stepper-motor-controller/01/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller&amp;desc=Hi%2C%20in%20this%20post%20i%20will%20explain%20the%20stepper%20motor%20controller%2C%20the%20%22smart%22%20part%20of%20the%20driver%20also%20called%20ROAR%20HB%20brain%20module.%0D%0A%0D%0AThere%20are%20a%20few%20things%20that%20should%20be%20noted%20here%2C%20this%20is%20not%20just%20a%20simple%20stepper%20controller%20it%27s%20a%20smart%20controller%20which%20can%20be%20easily%20updated%20and%20changed.%0D%0A%0D%0ASome%20ad" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/stepper-motor-controller/01/&amp;t=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Stepper+motor+controller&amp;body=Link: http://umkk.eu/stepper-motor-controller/01/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hi%2C%20in%20this%20post%20i%20will%20explain%20the%20stepper%20motor%20controller%2C%20the%20%22smart%22%20part%20of%20the%20driver%20also%20called%20ROAR%20HB%20brain%20module.%0D%0A%0D%0AThere%20are%20a%20few%20things%20that%20should%20be%20noted%20here%2C%20this%20is%20not%20just%20a%20simple%20stepper%20controller%20it%27s%20a%20smart%20controller%20which%20can%20be%20easily%20updated%20and%20changed.%0D%0A%0D%0ASome%20ad" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/stepper-motor-controller/01/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/stepper-motor-controller/01/&amp;bm_description=Stepper+motor+controller&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/stepper-motor-controller/01/&amp;title=Stepper+motor+controller" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/stepper-motor-controller/01/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Stepper+motor+controller+-+File: /data/app/webapp/functions.php<br />Line: 7<br />Message: Too many connections&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/stepper-motor-controller/01/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mood light</title>
		<link>http://umkk.eu/mood-light/01/</link>
		<comments>http://umkk.eu/mood-light/01/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 18:46:47 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[c programming]]></category>
		<category><![CDATA[leds]]></category>
		<category><![CDATA[Light-emitting diode]]></category>
		<category><![CDATA[Lighting]]></category>
		<category><![CDATA[mood light]]></category>
		<category><![CDATA[RGB color model]]></category>
		<category><![CDATA[tricolor]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=268</guid>
		<description><![CDATA[I wanted to build this for o long time... and today I finally had the "mood" and the time to do it... it's a mood light created with a tricolor led and a laptop with a parallel port.
I did this to see what is required to create a mood light, because the plan is to [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I wanted to build this for o long time... and today I finally had the "mood" and the time to do it... it's a mood light created with a tricolor led and a laptop with a parallel port.<br />
I did this to see what is required to create a mood light, because the plan is to create one with a pic microcontroller and use it as a digital candle.<br />
Here is the youtube movie with it :<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/vKtDyY8Z22o&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/vKtDyY8Z22o&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>As you can see I created a paper cube and inserted the led into it to have a diffuse light, or else the 3 basic colors  will appear as 3 red circles, and we don't want that.</p>
<p>Here are some pictures too :</p>
<div id="attachment_275" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6466.jpg"><img class="size-medium wp-image-275" title="IMG_6466" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6466-300x199.jpg" alt="Mood light" width="300" height="199" /></a><p class="wp-caption-text">Mood light</p></div>
<div id="attachment_276" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6467.jpg"><img class="size-medium wp-image-276" title="mood ligt cube" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6467-300x199.jpg" alt="the paper cube inside which the led is inserted" width="300" height="199" /></a><p class="wp-caption-text">the paper cube inside which the led is inserted</p></div>
<div id="attachment_277" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2010/01/IMG_6469.jpg"><img class="size-medium wp-image-277" title="IMG_6469" src="http://umkk.eu/wp-content/uploads/2010/01/IMG_6469-300x199.jpg" alt="the rgb led" width="300" height="199" /></a><p class="wp-caption-text">the rgb led</p></div>
<p>And if you are interested in building the paper cube here is the plan (print on an A4 sheet of paper) :</p>
<div id="attachment_279" class="wp-caption aligncenter" style="width: 222px"><a href="http://umkk.eu/wp-content/uploads/2010/01/cuba4.jpg"><img class="size-medium wp-image-279" title="paper_cube" src="http://umkk.eu/wp-content/uploads/2010/01/cuba4-212x300.jpg" alt="Paper cube" width="212" height="300" /></a><p class="wp-caption-text">Paper cube</p></div>
<p><strong>If you are interested here is some theory :</strong></p>
<p>Each color is build using 3 base colors : red, green and blue, the led has 4 pins, a comon one and one for each color, so you can individualy turn on and off each color, so we will use 4 pins from the paralel port.</p>
<p>In my program (which is not yet optimized) each component (rgb) can have a value between 0 and 255, to do this we have a huge while cycle where we show the colors, here is a diagram to make it easier.</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/13f62357-4b4a-43ca-be6b-2008dd6426cc/2010-01-02_2038.png"><img title="Diagram" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/13f62357-4b4a-43ca-be6b-2008dd6426cc/2010-01-02_2038.png" alt="Diagram" width="400" height="300" /></a><p class="wp-caption-text">Diagram</p></div>
<p>So from diagram is pretty clear, based on each color value we show that color an amount of time, as bigger the value, more the time and brighter the color, a resolution of 255 values for each color is more then enough for this case.</p>
<p>There are more things in the program, for example you can increase or decrease the value for each color using the keyboard to see how diferent colors look like.</p>
<p>Also from the setR, setG, setB functions you can customize what to do for each color, in case you use diferent pins i used pin0: red, pin1:common, pin2: blue, pin3: green, feel free to use any other combination but remember to change those functions.</p>
<p>Any questions are welcome.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/mood-light/01/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light&amp;desc=I%20wanted%20to%20build%20this%20for%20o%20long%20time...%20and%20today%20I%20finally%20had%20the%20%22mood%22%20and%20the%20time%20to%20do%20it...%20it%27s%20a%20mood%20light%20created%20with%20a%20tricolor%20led%20and%20a%20laptop%20with%20a%20parallel%20port.%0D%0AI%20did%20this%20to%20see%20what%20is%20required%20to%20create%20a%20mood%20light%2C%20because%20the%20plan%20is%20to%20create%20one%20with%20a%20pic%20microcontrol" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/mood-light/01/&amp;t=Mood+light" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Mood+light&amp;body=Link: http://umkk.eu/mood-light/01/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20wanted%20to%20build%20this%20for%20o%20long%20time...%20and%20today%20I%20finally%20had%20the%20%22mood%22%20and%20the%20time%20to%20do%20it...%20it%27s%20a%20mood%20light%20created%20with%20a%20tricolor%20led%20and%20a%20laptop%20with%20a%20parallel%20port.%0D%0AI%20did%20this%20to%20see%20what%20is%20required%20to%20create%20a%20mood%20light%2C%20because%20the%20plan%20is%20to%20create%20one%20with%20a%20pic%20microcontrol" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/mood-light/01/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/mood-light/01/&amp;bm_description=Mood+light&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/mood-light/01/&amp;title=Mood+light" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/mood-light/01/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Mood+light+-+http://b2l.me/6hn7k&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/mood-light/01/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to create PCB&#8217;s using toner transfer method</title>
		<link>http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/</link>
		<comments>http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 11:00:04 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=233</guid>
		<description><![CDATA[The PCB or printed circuit board is easier to make than you think, even professionally looking ones, on this short tutorial i will explain how to create very nice pcbs starting from a schematic. Each step will be described in details and I also made lots of pictures to document the process and make it [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The PCB or printed circuit board is easier to make than you think, even professionally looking ones, on this short tutorial i will explain how to create very nice pcbs starting from a schematic. Each step will be described in details and I also made lots of pictures to document the process and make it easier to understand.</p>
<p>Tools you will use (this is what i used)</p>
<ul>
<li>soldering gun or iron</li>
<li>a laser printer</li>
<li>old magazine</li>
<li>some tape</li>
<li>needles (around 10)</li>
<li>permanent marker</li>
<li>multimeter (or something to check for short circuits)</li>
<li>a cutter</li>
<li>drilling machine (or a motor) and 1mm drill, if you don't have a drilling machine find a way to attach the drill to the motor axis and drill some 1mm holes.</li>
</ul>
<p>In this tutorial I used the schematics and the pcb design of the ROAR MPP brain module, but all the other images are from the ROAR HB power module, i hope that this is not confusing for you.  Unfortunate when i created the power module (the h bridge) i created the board directly without creating a schematic first... my mistake, so now I only have the board for that no schematic, the schematic is only on paper.</p>
<p>The steps you will need to complete until the competition of the pcb are.</p>
<p>1.  Install <a title="eagle" href="http://www.cadsoft.de/" target="_blank">eagle </a>if  you don't already have it.</p>
<p>2. Create you schematics using the circuit design mode in eagle, after that is completed you should have something like this :</p>
<p style="text-align: center;"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/e63c2b55-4999-4d5c-a99e-875fca35c15c/2009-11-17_1411.png"><img class="aligncenter" title="Eagle schematic" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/e63c2b55-4999-4d5c-a99e-875fca35c15c/2009-11-17_1411.png" alt="" width="424" height="327" /></a></p>
<p style="text-align: center;">
<p>3. still using eagle convert this schematic to board, the easiest way to do this is to click the "board" button, that is the 5th button in the top, next to print and cam buttons. Eagle will just put your components there, but now you can drag them around to place them however you want them on the board, I ended with something like this :</p>
<div class="wp-caption aligncenter" style="width: 465px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/e2cd3089-c7fa-422d-ba29-27bb0df68d57/2009-11-17_1414.png"><img title="board design" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/e2cd3089-c7fa-422d-ba29-27bb0df68d57/2009-11-17_1414.png" alt="board design" width="455" height="414" /></a><p class="wp-caption-text">board design</p></div>
<p>After you have the board and the pcb design (routed) you have to print separately the 2 faces of the design. You can do this very easy, using the layers option of eagle, so you should export both sides and print them, you should have something like this :</p>
<div class="wp-caption aligncenter" style="width: 324px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/ab6e1fc1-aca8-45b3-9ea1-d4631f24ca45/2009-11-19_1214.png"><img title="Front sizwe" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/ab6e1fc1-aca8-45b3-9ea1-d4631f24ca45/2009-11-19_1214.png" alt="ROAR HB power module front" width="314" height="300" /></a><p class="wp-caption-text">ROAR HB power module front</p></div>
<div class="wp-caption aligncenter" style="width: 399px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/c13f26f9-e2ba-4a9f-83dc-53d31ce23376/2009-11-19_1217.png"><img title="ROAR HB power module bottom" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/c13f26f9-e2ba-4a9f-83dc-53d31ce23376/2009-11-19_1217.png" alt="ROAR HB power module bottom" width="389" height="374" /></a><p class="wp-caption-text">ROAR HB power module bottom</p></div>
<p><strong>WARNING</strong> : those images are just representative do not use them in any board, if you want the board for the ROAR HB power module go to the specific post.</p>
<p>4. Print those images on a pice of magazine, it has to be thin glossy paper, you can also process the images first in some program to make them black, so the maximum of toner will be used, also if your printer has some tonner saving settings disable them, before printing remember to mirror the back image. After you print them, cut the excess of paper aout leaving a margin of about 5mm.</p>
<div id="attachment_244" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6273.JPG"><img class="size-medium wp-image-244" title="IMG_6273" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6273-300x199.jpg" alt="Printed circuit board" width="300" height="199" /></a><p class="wp-caption-text">Printed circuit board</p></div>
<p>5. Now cut a pice of the board to match the biggest of the 2 prints, also leave a margin of about 2 mm on each side, we leave all those margins to make sure that both of the prints will fit on the board after we align the holes.</p>
<div id="attachment_245" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6276.JPG"><img class="size-medium wp-image-245" title="IMG_6276" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6276-300x199.jpg" alt="bread board, getting the size" width="300" height="199" /></a><p class="wp-caption-text">bread board, getting the size</p></div>
<p>6. After you cut the board to the required size, clean it very well first with acetone and alcohol and then i used some special material used to cleat cooper pipes, this works perfectly and makes the board very clean and shiny, this is important because the toner will stick much better to the board.</p>
<div id="attachment_246" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6280.JPG"><img class="size-medium wp-image-246" title="IMG_6280" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6280-300x199.jpg" alt="the cleaned board" width="300" height="199" /></a><p class="wp-caption-text">the cleaned board</p></div>
<p>7. Now secure on of the prints (the one with the most lines on it) on the board using some tape</p>
<div id="attachment_248" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6282.JPG"><img class="size-medium wp-image-248" title="IMG_6282" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6282-300x199.jpg" alt="the print secured" width="300" height="199" /></a><p class="wp-caption-text">the print secured</p></div>
<p>8. Now with the iron on the highest setting press the paper on the board for a few seconds (around 30), just press it do not move it, after this interval you can move the iron on all directions to make sure that all the surface is covered very well and the paper is sticking to the board, pres and iron it until you see that the paper is starting to get a yellow, brown color, this means that is starting to get burned.</p>
<div id="attachment_249" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6286.JPG"><img class="size-medium wp-image-249" title="IMG_6286" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6286-300x199.jpg" alt="ironing the paper" width="300" height="199" /></a><p class="wp-caption-text">ironing the paper</p></div>
<div id="attachment_250" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6287.JPG"><img class="size-medium wp-image-250" title="IMG_6287" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6287-300x199.jpg" alt="ready paper" width="300" height="199" /></a><p class="wp-caption-text">ready paper</p></div>
<p>9. Put the board in war water, be very care full the board is extremely hot you can get burned very very easy because cooper is a very good head conducting material.</p>
<div id="attachment_251" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6288.JPG"><img class="size-medium wp-image-251" title="IMG_6288" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6288-300x199.jpg" alt="move the hot board" width="300" height="199" /></a><p class="wp-caption-text">move the hot board</p></div>
<div id="attachment_252" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6290.JPG"><img class="size-medium wp-image-252" title="IMG_6290" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6290-300x199.jpg" alt="board is soaking" width="300" height="199" /></a><p class="wp-caption-text">board is soaking</p></div>
<p>10. Let it soak for about 30 minutes, or as much is necessary to get all the paper soaked, you can also boil the water if you want to hurry up the process. After that try to see how easy the paper is coming of, you can remove the pices that are coming off easy</p>
<div id="attachment_253" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6293.JPG"><img class="size-medium wp-image-253" title="IMG_6293" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6293-300x199.jpg" alt="paper coming of" width="300" height="199" /></a><p class="wp-caption-text">paper coming of</p></div>
<p>11. Repeat the process, soak-&gt;remove paper, until all the paper is off</p>
<div id="attachment_254" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6295.JPG"><img class="size-medium wp-image-254" title="IMG_6295" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6295-300x199.jpg" alt="all paper is removed" width="300" height="199" /></a><p class="wp-caption-text">all paper is removed</p></div>
<p>12. Now using something with a sharp end, remove all excess paper, make sure that there is no paper left where is no toner, make sure that there are no connections made between routes, because if you leave any will be harder to correct after this.</p>
<div id="attachment_256" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6296.JPG"><img class="size-medium wp-image-256" title="IMG_6296" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6296-300x199.jpg" alt="cleaning execess paper" width="300" height="199" /></a><p class="wp-caption-text">cleaning execess paper</p></div>
<p>13. Cover the other end of the board with some plastic tape (insulating tape used in electric installations is perfect, leave about 2-3 mm excess of tape on each side</p>
<div id="attachment_257" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6298.JPG"><img class="size-medium wp-image-257" title="IMG_6298" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6298-300x199.jpg" alt="back covered with tape" width="300" height="199" /></a><p class="wp-caption-text">back covered with tape</p></div>
<p>14. Enter the board in corrosive solution</p>
<div id="attachment_258" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6304.JPG"><img class="size-medium wp-image-258" title="IMG_6304" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6304-300x199.jpg" alt="board in solution" width="300" height="199" /></a><p class="wp-caption-text">board in solution</p></div>
<p>15. You can agitate the solution once in a while, and check regularly if the excess cooper has gone away.</p>
<div id="attachment_259" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6305.JPG"><img class="size-medium wp-image-259" title="IMG_6305" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6305-300x199.jpg" alt="checking if the board is ok" width="300" height="199" /></a><p class="wp-caption-text">checking if the board is ok</p></div>
<p>16 . Get the board out and clean it really well with water, lots of water, because the solution is highly corrosive and can damage your pipes, after that remove the tape from the back.</p>
<div id="attachment_265" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6307.JPG"><img class="size-medium wp-image-265" title="IMG_6307" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6307-300x199.jpg" alt="cleaning the pcb" width="300" height="199" /></a><p class="wp-caption-text">cleaning the pcb</p></div>
<div id="attachment_266" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6308.JPG"><img class="size-medium wp-image-266" title="IMG_6308" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6308-300x199.jpg" alt="removing the tape" width="300" height="199" /></a><p class="wp-caption-text">removing the tape</p></div>
<p>17. Now, you have to check again to see if there are any mistakes from the original print, check if there is any cooper left where should not be, and clean it wit something, this may be harder but needs to be done :</p>
<div id="attachment_282" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6311.JPG"><img class="size-medium wp-image-282" title="IMG_6311" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6311-300x199.jpg" alt="celaning excess cooper" width="300" height="199" /></a><p class="wp-caption-text">cleaning excess cooper</p></div>
<p>18. We drill some holes on the board, this holes will be used to insert the components, but at this point we need them to align the 2 faces of the board. To make drilling easier we mark the point with something with a rounded tip, just give it 2 hits with a light hammer.<br />
<div id="attachment_284" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6312.JPG"><img src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6312-300x199.jpg" alt="marking the holes" title="IMG_6312" width="300" height="199" class="size-medium wp-image-284" /></a><p class="wp-caption-text">marking the holes</p></div></p>
<p>19. We align the second face based on the holes :<br />
<div id="attachment_285" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6315.JPG"><img src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6315-300x199.jpg" alt="align faces" title="IMG_6315" width="300" height="199" class="size-medium wp-image-285" /></a><p class="wp-caption-text">align faces</p></div></p>
<p>20. repeat steps 8 to 17 for the second face, and be care full not to miss one because you board can be compromised.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;title=How+to+create+PCB%27s+using+toner+transfer+method" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;title=How+to+create+PCB%27s+using+toner+transfer+method" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;title=How+to+create+PCB%27s+using+toner+transfer+method&amp;desc=The%20PCB%20or%20printed%20circuit%20board%20is%20easier%20to%20make%20than%20you%20think%2C%20even%20professionally%20looking%20ones%2C%20on%20this%20short%20tutorial%20i%20will%20explain%20how%20to%20create%20very%20nice%20pcbs%20starting%20from%20a%20schematic.%20Each%20step%20will%20be%20described%20in%20details%20and%20I%20also%20made%20lots%20of%20pictures%20to%20document%20the%20process%20and%20make%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;t=How+to+create+PCB%27s+using+toner+transfer+method" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=How+to+create+PCB%27s+using+toner+transfer+method&amp;body=Link: http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A The%20PCB%20or%20printed%20circuit%20board%20is%20easier%20to%20make%20than%20you%20think%2C%20even%20professionally%20looking%20ones%2C%20on%20this%20short%20tutorial%20i%20will%20explain%20how%20to%20create%20very%20nice%20pcbs%20starting%20from%20a%20schematic.%20Each%20step%20will%20be%20described%20in%20details%20and%20I%20also%20made%20lots%20of%20pictures%20to%20document%20the%20process%20and%20make%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;title=How+to+create+PCB%27s+using+toner+transfer+method" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;bm_description=How+to+create+PCB%27s+using+toner+transfer+method&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;title=How+to+create+PCB%27s+using+toner+transfer+method" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;title=How+to+create+PCB%27s+using+toner+transfer+method" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/&amp;title=How+to+create+PCB%27s+using+toner+transfer+method" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+create+PCB%27s+using+toner+transfer+method+-+http://b2l.me/6hn7m&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/how-to-create-pcbs-using-toner-transfer-method/11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stepper motor inteligent driver and controller</title>
		<link>http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/</link>
		<comments>http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 08:50:48 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[pic16f84]]></category>
		<category><![CDATA[board]]></category>
		<category><![CDATA[Electric motors]]></category>
		<category><![CDATA[pcb]]></category>
		<category><![CDATA[pcb tutorial]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[toner transfer]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=212</guid>
		<description><![CDATA[Now, i'm sure that each one of you has some stepper motors laying around and wanted to test them at a given time but never had the time to build a driver or to buy one. I had the same problem until i decided that is the time to build that cnc machine that am [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Now, i'm sure that each one of you has some stepper motors laying around and wanted to test them at a given time but never had the time to build a driver or to buy one. I had the same problem until i decided that is the time to build that cnc machine that am dreaming about, for this i will need at least 3 stepper motors and of course  3 drivers... or one for 3 motors.<br />
I decided to build a separate driver for each axis, will be easier to change if something goes wrong and will be more flexible.</p>
<p>The driver is composed from 2 parts, 2 separates modules the power module (ROAR HB power module)  which contains the H bridges and the control module (ROAR MPP brain module) which will send signals to the power module.</p>
<p>The power module is pretty straight forward, will need 4 input pins, 4 output pins, and in pins for logic supply and power supply. As i was going to use the driver maybe in future robots also i decided to put some leds on the board 2 red led for each supply and 1 led for each input pin, so a total of 6 leds, i also added some pins for the cooling fan for the h bridge as the motor can suck a lot of power the bridge gets pretty hot.</p>
<p>Here is the full driver (the power module and the brain module, and a cooling fan)</p>
<div id="attachment_229" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/11/IMG_6319.jpg"><img class="size-medium wp-image-229" title="full driver" src="http://umkk.eu/wp-content/uploads/2009/11/IMG_6319-300x200.jpg" alt="full driver" width="300" height="200" /></a><p class="wp-caption-text">full driver</p></div>
<p>Here is my final version of the power module a.k.a ROAR HB power module</p>
<div id="attachment_213" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/10/IMG_6227.JPG"><img class="size-medium wp-image-213" title="ROAR HB power module" src="http://umkk.eu/wp-content/uploads/2009/10/IMG_6227-300x199.jpg" alt="ROAR HB power module" width="300" height="199" /></a><p class="wp-caption-text">ROAR HB power module</p></div>
<p>The huge advantage of this module is that it can use on a multitude of circuits all inputs and outputs are connected to pins. This can also be used to control a robot with 2 motors (control speed and direction for each one).  All the plans and logic you need to build it is available on this web page, if you don't have the time, the mood or the tools to build it, you can post a comment and i'll build one for you on a very good price... 25$ let's say.</p>
<p>The construction pf the power module can be seen in detail on a diferent post. (i'm working on it right now)</p>
<p>Here is the components list for the ROAR HB power module :</p>
<ul>
<li>1 * L298N (dual full h bridge)</li>
<li>6 * 1k resistor</li>
<li>12 * 1N5819 (fast diode, you can use any fast diode that can handle 30V/1A)</li>
<li>2 * red leds</li>
<li>4 * green leds</li>
<li>19 * pins</li>
<li>2 * jumpers</li>
</ul>
<p>And finally here is the ROAR MPP brain module :</p>
<div id="attachment_237" class="wp-caption aligncenter" style="width: 310px"><a href="http://umkk.eu/wp-content/uploads/2009/10/IMG_6338.jpg"><img class="size-medium wp-image-237" title="IMG_6338" src="http://umkk.eu/wp-content/uploads/2009/10/IMG_6338-300x200.jpg" alt="the driver brain module" width="300" height="200" /></a><p class="wp-caption-text">the driver ROAR MPP brain module</p></div>
<p>This module is also very usefull in lots of application because it's fully customizable, on this board is everything the pic needs to run, the pin B0 seted to be used as an interrupt... and a power led.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller&amp;desc=Now%2C%20i%27m%20sure%20that%20each%20one%20of%20you%20has%20some%20stepper%20motors%20laying%20around%20and%20wanted%20to%20test%20them%20at%20a%20given%20time%20but%20never%20had%20the%20time%20to%20build%20a%20driver%20or%20to%20buy%20one.%20I%20had%20the%20same%20problem%20until%20i%20decided%20that%20is%20the%20time%20to%20build%20that%20cnc%20machine%20that%20am%20dreaming%20about%2C%20for%20this%20i%20will%20need%20at%20l" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;t=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Stepper+motor+inteligent+driver+and+controller&amp;body=Link: http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Now%2C%20i%27m%20sure%20that%20each%20one%20of%20you%20has%20some%20stepper%20motors%20laying%20around%20and%20wanted%20to%20test%20them%20at%20a%20given%20time%20but%20never%20had%20the%20time%20to%20build%20a%20driver%20or%20to%20buy%20one.%20I%20had%20the%20same%20problem%20until%20i%20decided%20that%20is%20the%20time%20to%20build%20that%20cnc%20machine%20that%20am%20dreaming%20about%2C%20for%20this%20i%20will%20need%20at%20l" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;bm_description=Stepper+motor+inteligent+driver+and+controller&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/&amp;title=Stepper+motor+inteligent+driver+and+controller" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Stepper+motor+inteligent+driver+and+controller+-+http://b2l.me/6hn7p&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
<li><a href='http://umkk.eu/testing-my-controller-and-software/10/' rel='bookmark' title='Permanent Link: Testing my stepper motor driver and software'>Testing my stepper motor driver and software</a></li>
<li><a href='http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/' rel='bookmark' title='Permanent Link: My CNC machine, the beginnings, the X axis working'>My CNC machine, the beginnings, the X axis working</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery popups wizard, web 2.0 ideea and usability</title>
		<link>http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/</link>
		<comments>http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 11:58:22 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[dialog wizards]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery dialog]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=199</guid>
		<description><![CDATA[in this post, which i'll try to keep it short i'll explain something about web 2.0 concept and how to make pop ups wizards with jQuery, by popup wizards i understand a series a popup, pretty much like the wizards on your desktop when you install an application.
Web 2.0 is more about user experience and [...]


Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>in this post, which i'll try to keep it short i'll explain something about web 2.0 concept and how to make pop ups wizards with jQuery, by popup wizards i understand a series a popup, pretty much like the wizards on your desktop when you install an application.</p>
<p>Web 2.0 is more about user experience and seeing the web as a platform, make the user feel like he is using a very complex, fast and easy to use at the same time application, and for that wizards are great.</p>
<p>In this tutorial i will explain the basic concepts and give an basic wizard example for user authentication and sign up, here is how i wanted the wizard to work :</p>
<div id="attachment_201" class="wp-caption aligncenter" style="width: 573px"><a href="http://umkk.eu/wp-content/uploads/2009/10/2009-10-23_1227.png"><img class="size-full wp-image-201" title="Wizard steps" src="http://umkk.eu/wp-content/uploads/2009/10/2009-10-23_1227.png" alt="Wizard steps" width="563" height="361" /></a><p class="wp-caption-text">Wizard steps</p></div>
<p>this wizard will only have 3 pop ups, here they are, to be more clear :</p>
<div class="wp-caption aligncenter" style="width: 327px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/97faf5c9-ebc6-4b39-982a-a2493f241c39/2009-10-23_1300.png"><img title="Wizard starts" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/97faf5c9-ebc6-4b39-982a-a2493f241c39/2009-10-23_1300.png" alt="Wizard starts" width="317" height="175" /></a><p class="wp-caption-text">Wizard starts</p></div>
<div class="wp-caption aligncenter" style="width: 329px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/5872c6ba-89fc-4a7f-9dfd-6331f9d54452/2009-10-23_1432.png"><img title="Login popup on wizard" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/5872c6ba-89fc-4a7f-9dfd-6331f9d54452/2009-10-23_1432.png" alt="Login popup on wizard" width="319" height="210" /></a><p class="wp-caption-text">Login popup on wizard</p></div>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 327px"><a href="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/cfb00551-e914-42bd-9cf8-94a9eb3e2e77/2009-10-23_1433.png"><img title="Create account in wizard" src="http://content.screencast.com/users/rsergiu2003/folders/Jing/media/cfb00551-e914-42bd-9cf8-94a9eb3e2e77/2009-10-23_1433.png" alt="Create account in wizard" width="317" height="313" /></a><p class="wp-caption-text">Create account in wizard</p></div>
<p>As you can see each popup is clear and you can navigate back and forward between them.</p>
<p>Now, some of the advantages of using those wizards :</p>
<ul>
<li>no extra html is loaded when the page loads, all popups are loaded dinamicaly</li>
<li>no extra load on browser to create all the popups at load time</li>
<li>all have the same style</li>
<li>they are very easy to open (just call a function with the popup name)</li>
<li>they are stored in a xml file and very easy to change</li>
<li>they are very user frendly</li>
<li>popups are destroyed on close so no extra load on browser</li>
</ul>
<p>There are also a lot o feature that i want to implement but they are missing...</p>
<p>So here how it's done in a few easy steps</p>
<p>1. make sure that you added jquery, and jqueryUI with the dialog functionality</p>
<p>2. create a custom jQuery theme, just in case you want to change the design at a later date.</p>
<p>3. create the function that loads and shows a popup,<a href="http://umkk.eu/wp-content/uploads/2009/10/popupManager.js"> here is the entire file</a>. Just make sure that you change the APP_URL in the file with the url to your project.</p>
<p>4. Create the php file which will send the data to the client (in my case that file is index.php) also you can send more parameters to that if you want only name is mandatory in my case, the name must be the same as the .xml file in which the popup is stored (i'll show the xml file later). Here is the php code which wil generate the data for the javascript part, this is json data :</p>
<pre class="php">&nbsp;
<span style="color: #0000ff;">$content</span> = <a href="http://www.php.net/file_get_contents"><span style="color: #000066;">file_get_contents</span></a> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;popups/&quot;</span>.<span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'name'</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #ff0000;">&quot;.xml&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$xml</span> =  <span style="color: #000000; font-weight: bold;">new</span> SimpleXMLElement<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$content</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$res</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'count'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #0000ff;">$vars</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'count'</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'title'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$xml</span>-&gt;<span style="color: #006600;">title</span>;
&nbsp;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$xml</span>-&gt;<span style="color: #006600;">body</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;{[&quot;</span>,<span style="color: #ff0000;">&quot;&lt;&quot;</span>,<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;]}&quot;</span>,<span style="color: #ff0000;">&quot;&gt;&quot;</span>,<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'buttons'</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$xml</span>-&gt;<span style="color: #006600;">buttons</span>-&gt;<span style="color: #006600;">button</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$button</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'buttons'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;label&quot;</span>=&gt;trim<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$button</span>-&gt;<span style="color: #006600;">label</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #ff0000;">&quot;action&quot;</span>=&gt;trim<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>string<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$button</span>-&gt;<span style="color: #006600;">action</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<a href="http://www.php.net/die"><span style="color: #000066;">die</span></a><span style="color: #66cc66;">&#40;</span>json_encode<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$res</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>As you can see here the xml files are stored in a separate folder to make them easier to organize. Also you need to have the simpleXML (php extension) installed on your server but this is there on 99% of the cases, so no need to worry.</p>
<p>5. The last thing is the xml file that will store the popup, this is my login popup :</p>
<pre class="xml">&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">'1.0'</span> <span style="color: #000066;">standalone</span>=<span style="color: #ff0000;">'yes'</span><span style="font-weight: bold; color: black;">?&gt;</span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;content<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;body<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		{[div class='error' id='login_errors']}{[/div]}
		Enter your credentials here :
		{[form]}
			{[div class='form_line']}{[div class='form_label']}Username:{[/div]}{[input type='text' id='login_username' class='form_input'/]}{[/div]}
			{[div class='form_line']}{[div class='form_label']}Password:{[/div]}{[input type='password' id='login_password' class='form_input'/]}{[/div]}
		{[/form]}
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/body<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;title<span style="font-weight: bold; color: black;">&gt;</span></span></span>Login<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/title<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;buttons<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Login<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
				data = new Object();
&nbsp;
				data.action = &quot;User::auth&quot;;
				data.username = $('#login_username').val();
				data.password = $('#login_password').val();
				data.ajax = 1;
&nbsp;
				$.post(APP_URL+&quot;index.php&quot;,data,function(data){
					$('#login_errors').html(data.content);
				},&quot;json&quot;);
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Close<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;action<span style="font-weight: bold; color: black;">&gt;</span></span></span>$(this).dialog('close')<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Back<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
				DialogsManager.getInstance().loadDialog('auth_method');
				$(this).dialog('close');
			<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/action<span style="font-weight: bold; color: black;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/buttons<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/content<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;</pre>
<p>One problem with this is that you can't use "&lt;" and "&gt;" in your xml so you need to replace them, i used "{[" and "]}" so a &lt;div&gt; now it's {[div]}.</p>
<p>And this is it, you should try it and let me know if there are any problems.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability&amp;desc=in%20this%20post%2C%20which%20i%27ll%20try%20to%20keep%20it%20short%20i%27ll%20explain%20something%20about%20web%202.0%20concept%20and%20how%20to%20make%20pop%20ups%20wizards%20with%20jQuery%2C%20by%20popup%20wizards%20i%20understand%20a%20series%20a%20popup%2C%20pretty%20much%20like%20the%20wizards%20on%20your%20desktop%20when%20you%20install%20an%20application.%0D%0A%0D%0AWeb%202.0%20is%20more%20about%20user%20experien" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;t=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability&amp;body=Link: http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A in%20this%20post%2C%20which%20i%27ll%20try%20to%20keep%20it%20short%20i%27ll%20explain%20something%20about%20web%202.0%20concept%20and%20how%20to%20make%20pop%20ups%20wizards%20with%20jQuery%2C%20by%20popup%20wizards%20i%20understand%20a%20series%20a%20popup%2C%20pretty%20much%20like%20the%20wizards%20on%20your%20desktop%20when%20you%20install%20an%20application.%0D%0A%0D%0AWeb%202.0%20is%20more%20about%20user%20experien" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;bm_description=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/&amp;title=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=jQuery+popups+wizard%2C+web+2.0+ideea+and+usability+-+http://b2l.me/6hn7q&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greasemonkey, create a options panel using jQuery</title>
		<link>http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/</link>
		<comments>http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 07:06:20 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[javascript cookie]]></category>
		<category><![CDATA[javascript json]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[mousehunt]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=181</guid>
		<description><![CDATA[Hi, this tutorial is also based on the mouse hunt script "facebook mousehunt improvements" created by me, and in this one i will explain how to create an options panel (only check boxes at this time) and save it.
Here is my final result with this script :
If you want to try this, remember to load [...]


Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_197" class="wp-caption aligncenter" style="width: 263px"><a href="http://umkk.eu/wp-content/uploads/2009/10/2009-10-22_1010.png"><img class="size-full wp-image-197" title="2009-10-22_1010" src="http://umkk.eu/wp-content/uploads/2009/10/2009-10-22_1010.png" alt="greasemonkey options panel with jquery" width="253" height="222" /></a><p class="wp-caption-text">greasemonkey options panel with jquery</p></div>
<p>Hi, this tutorial is also based on the mouse hunt script "facebook mousehunt improvements" created by me, and in this one i will explain how to create an options panel (only check boxes at this time) and save it.</p>
<p>Here is my final result with this script :</p>
<p>If you want to try this, remember to load jquery correctly as described in <a title="how to load jquery in greasemonkey" href="http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/" target="_self">this post</a> at number #4.</p>
<p>First of all, the data is saved in a cookie as JSON, i have an object where i save all my data and i save that object as JSON on a cookie. Because javascript does not know to convert an object to a json string i used a class which does that, the class is not created by me, I just use it as it is, here is the fie : <a href="http://umkk.eu/wp-content/uploads/2009/10/json.js">json </a><br />
I copied the content of the file inside my script so i don't have to load it remotely, anyway it's just a line <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , so you should also copy this at the beginning of your greasemonkey script.</p>
<p>As i said the data is saved as cookie, here is the functions which will create, and read a cookie :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> createCookie<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">name</span>,value,days<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>days<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> date = <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		date.<span style="color: #006600;">setTime</span><span style="color: #66cc66;">&#40;</span>date.<span style="color: #006600;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #66cc66;">&#40;</span>days*<span style="color: #CC0000;">24</span>*<span style="color: #CC0000;">60</span>*<span style="color: #CC0000;">60</span>*<span style="color: #CC0000;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #003366; font-weight: bold;">var</span> expires = <span style="color: #3366CC;">&quot;; expires=&quot;</span>+date.<span style="color: #006600;">toGMTString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #003366; font-weight: bold;">var</span> expires = <span style="color: #3366CC;">&quot;&quot;</span>;
	document.<span style="color: #006600;">cookie</span> = <span style="color: #000066;">name</span>+<span style="color: #3366CC;">&quot;=&quot;</span>+value+expires+<span style="color: #3366CC;">&quot;; path=/&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> readCookie<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">name</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> nameEQ = <span style="color: #000066;">name</span> + <span style="color: #3366CC;">&quot;=&quot;</span>;
	<span style="color: #003366; font-weight: bold;">var</span> ca = document.<span style="color: #006600;">cookie</span>.<span style="color: #006600;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">';'</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000066; font-weight: bold;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i=<span style="color: #CC0000;">0</span>;i &amp;lt; ca.<span style="color: #006600;">length</span>;i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> c = ca<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
		<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #66cc66;">&#40;</span>c.<span style="color: #006600;">charAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>==<span style="color: #3366CC;">' '</span><span style="color: #66cc66;">&#41;</span> c = c.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">1</span>,c.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>c.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span>nameEQ<span style="color: #66cc66;">&#41;</span> == <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> c.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span>nameEQ.<span style="color: #006600;">length</span>,c.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">null</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Also in my program i read the cookie when the script starts so the data object "myData" in my case will be populated and available in the entire script :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> myData = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>readCookie<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_data&quot;</span><span style="color: #66cc66;">&#41;</span>!=<span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		myData = JSON.<span style="color: #006600;">parse</span><span style="color: #66cc66;">&#40;</span>readCookie<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_data&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #009900; font-style: italic;">//if there is no cookie we initialize it</span>
		initCookie<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>err<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	initCookie<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>In my case gm_pl_data is the name of the cookie in which i save the data. Here is the initCookie() function, this will just initialize the objects inside the myData object :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> initCookie <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	myData = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	myData.<span style="color: #006600;">allLogs</span> = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	myData.<span style="color: #006600;">allChese</span> = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	savePersistentData<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">//will be valid 1000000 days</span>
<span style="color: #003366; font-weight: bold;">function</span> savePersistentData <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	createCookie<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_data&quot;</span>,JSON.<span style="color: #006600;">stringify</span><span style="color: #66cc66;">&#40;</span>myData<span style="color: #66cc66;">&#41;</span>,<span style="color: #CC0000;">1000000</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>I let in there all my init objects so io can see how to initialize them if you have more.  You can also notice the savePersistentData function which will update the cookie and save the persistent data <img src='http://umkk.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Until here we only had generic information about how data is saved and the functions which save the data. Now I'll go in more details for the actual options panel. The panel is actually a div in which you can enter any thing you want, but the values of the check boxes will be saved  and their status restored when the page reloads.</p>
<p>So here is how my panel looks like :</p>
<pre class="javascript">jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Show the timer
&lt;input id=&quot;</span>gm_pl_check_show_timer<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Automaticaly sound the horn
&lt;input id=&quot;</span>gm_pl_check_sound_horn<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;&lt;strong&gt;Kings rewared options&lt;/strong&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Play youtube on kings reward
&lt;input id=&quot;</span>gm_pl_play_sound_on_reward<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Play midi on kings reward
&lt;input id=&quot;</span>gm_pl_play_sound_midi_on_reward<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
	jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Show alert on kings rewared
&lt;input id=&quot;</span>gm_pl_show_alert_on_reward<span style="color: #3366CC;">&quot; type=&quot;</span>checkbox<span style="color: #3366CC;">&quot; /&gt;
&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	setOptions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container input&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>saveOptions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>in this case the id of the div inside which i enter the options is "gm_pl_options_container", and i you can see that setOptions() is called, this will set the default options for the check boxes based on the myData object, here's the code :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> setOptions <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #3366CC;">&quot;object&quot;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">for</span><span style="color: #66cc66;">&#40;</span>i <span style="color: #000066; font-weight: bold;">in</span> myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#&quot;</span>+i<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;checked&quot;</span>,myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p>In my case the options are saved in myData["options"] the myData object is the main script object and all the scripts data is saved there, not just the options.</p>
<p>And after the setOptions function is called we also have an intresting line, this will add an onclick function to each input on that div, and in this function we call saveOptions(), this function will get all the inputs in that div, and save the values in myData['options'] object, and also write the cookie to make sure that the values are not lost on page refresh :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> saveOptions <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>!<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #3366CC;">&quot;object&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
	jQuery.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span>jQuery<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_options_container input&quot;</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">checked</span> == <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">id</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #003366; font-weight: bold;">true</span>;
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">else</span>
		<span style="color: #66cc66;">&#123;</span>
			myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">id</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #003366; font-weight: bold;">false</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
	savePersistentData<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Every thing you have to do now is use those options, there are 2 ways to do this, you can check the status of the check box or you can get the value from the myData['options'] object, they are the same, i use the object :</p>
<pre class="javascript"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>myData<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">&quot;options&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">'gm_pl_show_alert_on_reward'</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;You have a king's reward!&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span></pre>
<p>And this is it, if you have any questions let me know, and remember, if you use mouse hunt don't forget to use my script :<a href="http://userscripts.org/scripts/show/57446" target="_blank"> Facebook mousehunt improvements</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery&amp;desc=%0D%0A%0D%0AHi%2C%20this%20tutorial%20is%20also%20based%20on%20the%20mouse%20hunt%20script%20%22facebook%20mousehunt%20improvements%22%20created%20by%20me%2C%20and%20in%20this%20one%20i%20will%20explain%20how%20to%20create%20an%20options%20panel%20%28only%20check%20boxes%20at%20this%20time%29%20and%20save%20it.%0D%0A%0D%0AHere%20is%20my%20final%20result%20with%20this%20script%20%3A%0D%0A%0D%0AIf%20you%20want%20to%20try%20this%2C%20remember%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;t=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Greasemonkey%2C+create+a+options+panel+using+jQuery&amp;body=Link: http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0A%0D%0AHi%2C%20this%20tutorial%20is%20also%20based%20on%20the%20mouse%20hunt%20script%20%22facebook%20mousehunt%20improvements%22%20created%20by%20me%2C%20and%20in%20this%20one%20i%20will%20explain%20how%20to%20create%20an%20options%20panel%20%28only%20check%20boxes%20at%20this%20time%29%20and%20save%20it.%0D%0A%0D%0AHere%20is%20my%20final%20result%20with%20this%20script%20%3A%0D%0A%0D%0AIf%20you%20want%20to%20try%20this%2C%20remember%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;bm_description=Greasemonkey%2C+create+a+options+panel+using+jQuery&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/&amp;title=Greasemonkey%2C+create+a+options+panel+using+jQuery" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Greasemonkey%2C+create+a+options+panel+using+jQuery+-+http://b2l.me/6hn7t&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My CNC machine, the beginnings, the X axis working</title>
		<link>http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/</link>
		<comments>http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 05:56:10 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[cnc]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[Milling machine]]></category>
		<category><![CDATA[Stepper motor]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=170</guid>
		<description><![CDATA[A while ago I started working on a CNC machine (milling machine or 3d plotter), something very simple, very cheap, something that can be built with the stuff you find at local stores, without using very expensive and complicated parts.
The frame of the machine is build from wood and use furniture rails as guides for [...]


Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A while ago I started working on a CNC machine (milling machine or 3d plotter), something very simple, very cheap, something that can be built with the stuff you find at local stores, without using very expensive and complicated parts.</p>
<p>The frame of the machine is build from wood and use furniture rails as guides for the moving parts. The stepper motors are from old printers on floppy disk units and they are very different one from each other. The driver motor drivers are build by me from scratch using L298n (i'll ost about the driver later) and a pic micro controller to command the driver (i'll also post about that later).</p>
<p>I'll just post a video with the x axis working and detail each part in later posts.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/cuVLnjRid30&hl=en&fs=1&color1=0x006699&color2=0x54abd6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/cuVLnjRid30&hl=en&fs=1&color1=0x006699&color2=0x54abd6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;title=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;title=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;title=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+&amp;desc=A%20while%20ago%20I%20started%20working%20on%20a%20CNC%20machine%20%28milling%20machine%20or%203d%20plotter%29%2C%20something%20very%20simple%2C%20very%20cheap%2C%20something%20that%20can%20be%20built%20with%20the%20stuff%20you%20find%20at%20local%20stores%2C%20without%20using%20very%20expensive%20and%20complicated%20parts.%0D%0A%0D%0AThe%20frame%20of%20the%20machine%20is%20build%20from%20wood%20and%20use%20furniture" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;t=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+&amp;body=Link: http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A A%20while%20ago%20I%20started%20working%20on%20a%20CNC%20machine%20%28milling%20machine%20or%203d%20plotter%29%2C%20something%20very%20simple%2C%20very%20cheap%2C%20something%20that%20can%20be%20built%20with%20the%20stuff%20you%20find%20at%20local%20stores%2C%20without%20using%20very%20expensive%20and%20complicated%20parts.%0D%0A%0D%0AThe%20frame%20of%20the%20machine%20is%20build%20from%20wood%20and%20use%20furniture" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;title=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;bm_description=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;title=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;title=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/&amp;title=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working+" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=My+CNC+machine%2C+the+beginnings%2C+the+X+axis+working++-+http://b2l.me/6hn7u&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/stepper-motor-inteligent-driver-and-controller/10/' rel='bookmark' title='Permanent Link: Stepper motor inteligent driver and controller'>Stepper motor inteligent driver and controller</a></li>
<li><a href='http://umkk.eu/stepper-motor-controller/01/' rel='bookmark' title='Permanent Link: Stepper motor controller'>Stepper motor controller</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/my-cnc-machine-the-beginnings-the-x-axis-working/10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</title>
		<link>http://umkk.eu/autoupdate-on-greasemonkey-script/10/</link>
		<comments>http://umkk.eu/autoupdate-on-greasemonkey-script/10/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 09:29:34 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[auto update]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mousehunt]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=153</guid>
		<description><![CDATA[As you can see on my previews post, i created a great mouse hunt script using grease monkey and jQuery, in this post i will explain how the update is done.
The idea behind this is, that the user will install the script and most probably will never go back and check if there is an [...]


Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As you can see on my previews post, i created a great mouse hunt script using grease monkey and jQuery, in this post i will explain how the update is done.</p>
<p>The idea behind this is, that the user will install the script and most probably will never go back and check if there is an update to that script, so you, the developer, will have to fix this problem for the user. I didn't wanted to automatically install software or updates on a users PC so i'm notifying the user that there is an update available, so he can install it by hand (only click on the link).</p>
<p>There are 2 parts for this, the Javascript part (inside the greasemokney script) and the server part (php in my case). The principle is simple, we have a variable inside the gresemonkey script which will contain the version of that script :</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> cVersion = <span style="color: #3366CC;">&quot;1.14b&quot;</span>;</pre>
<p>and we have a function which will call an url giving that version as a parameter :</p>
<pre class="javascript"><span style="color: #009900; font-style: italic;">//check if a new version is availble.</span>
	GM_xmlhttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>
method: <span style="color: #3366CC;">'GET'</span>,
url: <span style="color: #3366CC;">'http://path.to.your.script.php?version='</span>+cVersion,
headers: <span style="color: #66cc66;">&#123;</span>
<span style="color: #3366CC;">'User-agent'</span>: <span style="color: #3366CC;">'Mozilla/4.0 (compatible) Greasemonkey'</span>,
<span style="color: #3366CC;">'Accept'</span>: <span style="color: #3366CC;">'application/atom+xml,application/xml,text/xml'</span>,
<span style="color: #66cc66;">&#125;</span>,
<span style="color: #000066;">onload</span>: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>responseDetails<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_version_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>responseDetails.<span style="color: #006600;">responseText</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>What this function does is pretty straight forward, will call an url (passing the script's version as a parameter) and put all the returning content (presumed html) inside a div.</p>
<p>Now, we have the server script, which we called earlier. This script also has a variable inside :</p>
<pre class="php"><span style="color: #0000ff;">$local_version</span> = <span style="color: #ff0000;">&quot;1.14b&quot;</span>;</pre>
<p>which contains the latest version of the script. This script is also pretty straight forward, will compare the latest version of the script, defined here, with the version provided as a parameter, and based on that will return an html, here is the entire script :</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$local_version</span> = <span style="color: #ff0000;">&quot;1.14b&quot;</span>;
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'version'</span><span style="color: #66cc66;">&#93;</span>!= <span style="color: #0000ff;">$local_version</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;
&lt;div style='padding:3px'&gt;
	A new version of this script is available.&lt;br&gt;
	Click &lt;a href='http://userscripts.org/scripts/source/57446.user.js'&gt;here to upgrade&lt;/a&gt;
	&lt;/div&gt;
&nbsp;
	&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #66cc66;">&#123;</span>
	<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;your script is up to date ($local_version)&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p>And this is it.<br />
If you don't want to use Jquery, no problem you will have to replace this :</p>
<pre class="javascript"> $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;#gm_pl_version_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>responseDetails.<span style="color: #006600;">responseText</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>with :</p>
<pre class="javascript">document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gm_pl_version_container&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span><span style="color: #66cc66;">&#40;</span>responseDetails.<span style="color: #006600;">responseText</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>where gm_pl_version_container is the id of the element where you want to insert the content.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/autoupdate-on-greasemonkey-script/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.&amp;desc=As%20you%20can%20see%20on%20my%20previews%20post%2C%20i%20created%20a%20great%20mouse%20hunt%20script%20using%20grease%20monkey%20and%20jQuery%2C%20in%20this%20post%20i%20will%20explain%20how%20the%20update%20is%20done.%0D%0A%0D%0AThe%20idea%20behind%20this%20is%2C%20that%20the%20user%20will%20install%20the%20script%20and%20most%20probably%20will%20never%20go%20back%20and%20check%20if%20there%20is%20an%20update%20to%20that%20s" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;t=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.&amp;body=Link: http://umkk.eu/autoupdate-on-greasemonkey-script/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A As%20you%20can%20see%20on%20my%20previews%20post%2C%20i%20created%20a%20great%20mouse%20hunt%20script%20using%20grease%20monkey%20and%20jQuery%2C%20in%20this%20post%20i%20will%20explain%20how%20the%20update%20is%20done.%0D%0A%0D%0AThe%20idea%20behind%20this%20is%2C%20that%20the%20user%20will%20install%20the%20script%20and%20most%20probably%20will%20never%20go%20back%20and%20check%20if%20there%20is%20an%20update%20to%20that%20s" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;bm_description=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/autoupdate-on-greasemonkey-script/10/&amp;title=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script." rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/autoupdate-on-greasemonkey-script/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Autoupdate+on+greasemonkey+script%2C+example+from+%22mousehunt+improvements%22+script.%5B..%5D+-+http://b2l.me/6hmcD&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/' rel='bookmark' title='Permanent Link: GreaseMonkey, Jquery and the greatest mouse hunt script.'>GreaseMonkey, Jquery and the greatest mouse hunt script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/autoupdate-on-greasemonkey-script/10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GreaseMonkey, Jquery and the greatest mouse hunt script.</title>
		<link>http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/</link>
		<comments>http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 06:35:09 +0000</pubDate>
		<dc:creator>sergiu</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mousehunt]]></category>

		<guid isPermaLink="false">http://umkk.eu/?p=145</guid>
		<description><![CDATA[I started using mouse hunt a while ago... and really enjoy it, i loved when i got a new trap and i could buy more cheese, more traps... and craft more items, but as time passed along i got bored with that and I just wanted to catch as many mice as possible, and be [...]


Related posts:<ol><li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I started using mouse hunt a while ago... and really enjoy it, i loved when i got a new trap and i could buy more cheese, more traps... and craft more items, but as time passed along i got bored with that and I just wanted to catch as many mice as possible, and be fast in what i do, also i wanted to have a script that sounds the horn and let me know when a king's reward has appeared, so i decided to create my own mouse hunt script, the greatest mouse hunt script ever created...</p>
<p>I started working on ma spare time in this... was not easy because some things ware hard to test... bunt eventually i did it.</p>
<p>You can see the script here : http://userscripts.org/scripts/show/57446 the script has been around  for about a month and already has 1200 installs and going up, and it's becoming "the mouse hunt script" <img src='http://umkk.eu/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Now i will explain some of the problems i encountered on creating the script.</p>
<p>1. Saving persistent data, grease monkey does not have a very good way for this, so i decided to create an object where i save all the data and then save the object as JSON in a cookie</p>
<p>2. Updates, i was thinking that it would be nice to notify users when an update is available,  so i did this by creating a .php file in a server and store there the latest version number, the script checks that version with it's current version and if is different will show a message</p>
<p>3. Passing parameters on a function attached to an event, this was the most tricky one... was pretty complicated... here is the solution :</p>
<pre class="javascript">$.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;.huntername&quot;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span>i,o<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
			<span style="color: #003366; font-weight: bold;">var</span> id = <span style="color: #CC0000;">0</span>;
			<span style="color: #003366; font-weight: bold;">var</span> childs = $<span style="color: #66cc66;">&#40;</span>o<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">children</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #003366; font-weight: bold;">var</span> link = $<span style="color: #66cc66;">&#40;</span>childs<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">attr</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #003366; font-weight: bold;">var</span> <span style="color: #000066;">name</span> = $<span style="color: #66cc66;">&#40;</span>childs<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			id = link.<span style="color: #006600;">substr</span><span style="color: #66cc66;">&#40;</span>link.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #CC0000;">+1</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			$<span style="color: #66cc66;">&#40;</span>o<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span>o<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #3366CC;">&quot;&lt;a id=&quot;</span>gmpl_af_&amp;quot;+i+&amp;quot;<span style="color: #3366CC;">&quot; onclick=&quot;</span><span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #3366CC;">&quot; href=&quot;</span>#<span style="color: #3366CC;">&quot;&gt;(add to links)&lt;/a&gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
			_e<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;gmpl_af_&quot;</span>+i+<span style="color: #3366CC;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;click&quot;</span>,<span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>gmpl_addFriend<span style="color: #66cc66;">&#40;</span>id,<span style="color: #000066;">name</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span>,<span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>4. How to use jquery in a grese monkey script, actually for this i fond the solution somewhere on the internet... : http://joanpiedra.com/jquery/greasemonkey/</p>
<pre class="javascript"><span style="color: #009900; font-style: italic;">// Add jQuery</span>
    <span style="color: #003366; font-weight: bold;">var</span> GM_JQ = document.<span style="color: #006600;">createElement</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #66cc66;">&#41;</span>;
    GM_JQ.<span style="color: #006600;">src</span> = <span style="color: #3366CC;">'http://jquery.com/src/jquery-latest.js'</span>;
    GM_JQ.<span style="color: #006600;">type</span> = <span style="color: #3366CC;">'text/javascript'</span>;
    document.<span style="color: #006600;">getElementsByTagName</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">appendChild</span><span style="color: #66cc66;">&#40;</span>GM_JQ<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #009900; font-style: italic;">// Check if jQuery's loaded</span>
    <span style="color: #003366; font-weight: bold;">function</span> GM_wait<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> unsafeWindow.<span style="color: #006600;">jQuery</span> == <span style="color: #3366CC;">'undefined'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> window.<span style="color: #006600;">setTimeout</span><span style="color: #66cc66;">&#40;</span>GM_wait,<span style="color: #CC0000;">100</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span>
    <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span> $ = unsafeWindow.<span style="color: #006600;">jQuery</span>; letsJQuery<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span>
    <span style="color: #66cc66;">&#125;</span>
    GM_wait<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #009900; font-style: italic;">// All your GM code must be inside this function</span>
    <span style="color: #003366; font-weight: bold;">function</span> letsJQuery<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">// check if the dollar (jquery) function works</span>
    <span style="color: #66cc66;">&#125;</span></pre>
<p>And all your code should go where the alert($) is. Only if you have some functions you should put them outside that function.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-caring">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.&amp;desc=I%20started%20using%20mouse%20hunt%20a%20while%20ago...%20and%20really%20enjoy%20it%2C%20i%20loved%20when%20i%20got%20a%20new%20trap%20and%20i%20could%20buy%20more%20cheese%2C%20more%20traps...%20and%20craft%20more%20items%2C%20but%20as%20time%20passed%20along%20i%20got%20bored%20with%20that%20and%20I%20just%20wanted%20to%20catch%20as%20many%20mice%20as%20possible%2C%20and%20be%20fast%20in%20what%20i%20do%2C%20also%20i%20wanted%20to" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;t=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.&amp;body=Link: http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20started%20using%20mouse%20hunt%20a%20while%20ago...%20and%20really%20enjoy%20it%2C%20i%20loved%20when%20i%20got%20a%20new%20trap%20and%20i%20could%20buy%20more%20cheese%2C%20more%20traps...%20and%20craft%20more%20items%2C%20but%20as%20time%20passed%20along%20i%20got%20bored%20with%20that%20and%20I%20just%20wanted%20to%20catch%20as%20many%20mice%20as%20possible%2C%20and%20be%20fast%20in%20what%20i%20do%2C%20also%20i%20wanted%20to" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;bm_description=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/&amp;title=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script." rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=GreaseMonkey%2C+Jquery+and+the+greatest+mouse+hunt+script.+-+http://b2l.me/6hkkv&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://umkk.eu/autoupdate-on-greasemonkey-script/10/' rel='bookmark' title='Permanent Link: Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.'>Autoupdate on greasemonkey script, example from &#8220;mousehunt improvements&#8221; script.</a></li>
<li><a href='http://umkk.eu/greasemonkey-create-a-options-panel-using-jquery/10/' rel='bookmark' title='Permanent Link: Greasemonkey, create a options panel using jQuery'>Greasemonkey, create a options panel using jQuery</a></li>
<li><a href='http://umkk.eu/jquery-popups-wizard-web-2-0-ideea-and-usability/10/' rel='bookmark' title='Permanent Link: jQuery popups wizard, web 2.0 ideea and usability'>jQuery popups wizard, web 2.0 ideea and usability</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://umkk.eu/greasemonkey-jquery-and-the-greatest-mouse-hunt-script/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
