<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Fabiano Soriani&#039;s Weblog</title>
	<atom:link href="http://fabianosoriani.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabianosoriani.wordpress.com</link>
	<description>Dev the tools, build I.T.</description>
	<lastBuildDate>Sat, 31 Oct 2009 19:11:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='fabianosoriani.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/32a63a9cc9f684da95c7216283992474?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Fabiano Soriani&#039;s Weblog</title>
		<link>http://fabianosoriani.wordpress.com</link>
	</image>
			<item>
		<title>piriri</title>
		<link>http://fabianosoriani.wordpress.com/2009/10/26/piriri/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/10/26/piriri/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 03:38:44 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/2009/10/26/piriri/</guid>
		<description><![CDATA[pom pom
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=189&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>pom pom</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/189/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=189&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/10/26/piriri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple getter and OO in Javascript</title>
		<link>http://fabianosoriani.wordpress.com/2009/10/22/simple-getter-and-oo-in-javascript/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/10/22/simple-getter-and-oo-in-javascript/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 19:07:56 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[diagram-statemachine]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[getter]]></category>
		<category><![CDATA[oo]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=184</guid>
		<description><![CDATA[Had a little drawback developing dia2statemachine because JS weird way of being poo Object Oriented.
Just so people know, there are setters and getters in DECENT BROWSERS , but of course IE doesn´t use them! They can significantly simplify the code, but what the helll, let´s keep it compatible at this time&#8230;
I was having lot´s of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=184&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Had a little drawback developing dia2statemachine because JS weird way of being <span style="text-decoration:line-through;">poo</span> Object Oriented.</p>
<p>Just so people know, <strong>there are setters and getters in DECENT BROWSERS , but of course IE doesn´t use them</strong>! They can significantly simplify the code, but what the helll, let´s keep it compatible<em> at this time&#8230;</em></p>
<p>I was having lot´s of trouble to get a value out of a class in JS, turn´s out that, if there is a <strong>var a = true;</strong> inside a class I don´t have access to it from outside from calling, <strong>object.a</strong> -&gt; (undefined), in the other hand, if it is declared inside the class as <strong>this.a = true </strong>, then I have access outside (set and get) but that is not O.O.</p>
<p>So a very simple way to make getters is&gt;</p>
<p><a href="http://fabianosoriani.files.wordpress.com/2009/10/js-snip-d2s.png"><img class="aligncenter size-full wp-image-185" title="snipp d2s" src="http://fabianosoriani.files.wordpress.com/2009/10/js-snip-d2s.png?w=488&#038;h=424" alt="snipp d2s" width="488" height="424" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=184&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/10/22/simple-getter-and-oo-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>

		<media:content url="http://fabianosoriani.files.wordpress.com/2009/10/js-snip-d2s.png" medium="image">
			<media:title type="html">snipp d2s</media:title>
		</media:content>
	</item>
		<item>
		<title>A little delay d2s</title>
		<link>http://fabianosoriani.wordpress.com/2009/10/15/a-little-delay-d2s/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/10/15/a-little-delay-d2s/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 20:20:26 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[pessoal]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=182</guid>
		<description><![CDATA[I had a visit some very special friends so I had a great break for a week =)
So.. now I have to finish up Aikido Londrina´s report and student system, another week or so and I´ll be back to my Lab =)
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=182&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I had a visit some very special friends so I had a great break for a week =)</p>
<div class="wp-caption aligncenter" style="width: 394px"><a href="http://images.orkut.com/orkut/photos/OgAAAEom3mQ01OxcxGe8nvZ1mThBZwYeP9fdnwnSuvoTpiIKuV0wA_iNHvhJV5A277WqEDgJ8YtptEHxJ5GA2_RJ0FwAm1T1UEe2Mw8EnQCc93lyTjjFLNfImXyU.jpg"><img src="http://images.orkut.com/orkut/photos/OgAAAEom3mQ01OxcxGe8nvZ1mThBZwYeP9fdnwnSuvoTpiIKuV0wA_iNHvhJV5A277WqEDgJ8YtptEHxJ5GA2_RJ0FwAm1T1UEe2Mw8EnQCc93lyTjjFLNfImXyU.jpg" alt="" width="384" height="288" /></a><p class="wp-caption-text">Pool!</p></div>
<div class="wp-caption aligncenter" style="width: 490px"><a href="http://images.orkut.com/orkut/photos/OgAAAIrv681gcjJgxJE-yMK5l7G7F6s-WwrLuuROJKC2mDIvszAfY65uJCIdzQd42IXR4KhufdfecRx7vEEXF7Js5-4Am1T1UIhYlMUUPJSKCF3OH9Z0xtN8Bptw.jpg"><img class=" " src="http://images.orkut.com/orkut/photos/OgAAAIrv681gcjJgxJE-yMK5l7G7F6s-WwrLuuROJKC2mDIvszAfY65uJCIdzQd42IXR4KhufdfecRx7vEEXF7Js5-4Am1T1UIhYlMUUPJSKCF3OH9Z0xtN8Bptw.jpg" alt="friends on the beach" width="480" height="360" /></a><p class="wp-caption-text">friends on the beach</p></div>
<p>So.. now I have to finish up Aikido Londrina´s report and student system, another week or so and I´ll be back to my Lab =)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=182&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/10/15/a-little-delay-d2s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>

		<media:content url="http://images.orkut.com/orkut/photos/OgAAAEom3mQ01OxcxGe8nvZ1mThBZwYeP9fdnwnSuvoTpiIKuV0wA_iNHvhJV5A277WqEDgJ8YtptEHxJ5GA2_RJ0FwAm1T1UEe2Mw8EnQCc93lyTjjFLNfImXyU.jpg" medium="image" />

		<media:content url="http://images.orkut.com/orkut/photos/OgAAAIrv681gcjJgxJE-yMK5l7G7F6s-WwrLuuROJKC2mDIvszAfY65uJCIdzQd42IXR4KhufdfecRx7vEEXF7Js5-4Am1T1UIhYlMUUPJSKCF3OH9Z0xtN8Bptw.jpg" medium="image">
			<media:title type="html">friends on the beach</media:title>
		</media:content>
	</item>
		<item>
		<title>dev Dia -&gt; ruby Statemachine part 1</title>
		<link>http://fabianosoriani.wordpress.com/2009/10/05/dev-dia-ruby-statemachine-part-1/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/10/05/dev-dia-ruby-statemachine-part-1/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 23:13:02 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[diagram-statemachine]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=172</guid>
		<description><![CDATA[Having so much fun right now! There´s been long before i had any fun on programming anything like I´m enjoying now    the code is pretty nice so far!

Object Oriented JS
Prototype Lib
XML.ObjTree (JSAN) Lib
TDD ( i believe  )
Aptana Studio

Some Snippets:
To get the XML into HTML I built a really small ruby script that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=172&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Having so much fun right now! There´s been long before i had any fun on programming anything like I´m enjoying now <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   the code is pretty nice so far!</p>
<ul>
<li><a href="http://www.codeproject.com/KB/aspnet/JsOOP1.aspx">Object Oriented JS</a></li>
<li><a href="http://www.sergiopereira.com/articles/prototype.js.html" target="_blank">Prototype Lib</a></li>
<li><a href="http://www.openjsan.org/doc/k/ka/kawasaki/XML/ObjTree/0.24/lib/XML/ObjTree.html" target="_blank">XML.ObjTree (JSAN) Lib</a></li>
<li>TDD ( i believe <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</li>
<li>Aptana Studio</li>
</ul>
<p>Some Snippets:</p>

<a href='http://fabianosoriani.wordpress.com/2009/10/05/dev-dia-ruby-statemachine-part-1/ds-code-preview1/' title='ds code preview1'><img width="150" height="117" src="http://fabianosoriani.files.wordpress.com/2009/10/ds-code-preview1.png?w=150&#038;h=117" class="attachment-thumbnail" alt="" title="ds code preview1" /></a>
<a href='http://fabianosoriani.wordpress.com/2009/10/05/dev-dia-ruby-statemachine-part-1/ds-code-preview2/' title='ds code preview2'><img width="150" height="53" src="http://fabianosoriani.files.wordpress.com/2009/10/ds-code-preview2.png?w=150&#038;h=53" class="attachment-thumbnail" alt="" title="ds code preview2" /></a>
<a href='http://fabianosoriani.wordpress.com/2009/10/05/dev-dia-ruby-statemachine-part-1/ds-code-preview3/' title='ds code preview3'><img width="150" height="50" src="http://fabianosoriani.files.wordpress.com/2009/10/ds-code-preview3.png?w=150&#038;h=50" class="attachment-thumbnail" alt="" title="ds code preview3" /></a>
<a href='http://fabianosoriani.wordpress.com/2009/10/05/dev-dia-ruby-statemachine-part-1/ds-site-preview1/' title='ds site preview1'><img width="104" height="150" src="http://fabianosoriani.files.wordpress.com/2009/10/ds-site-preview1.png?w=104&#038;h=150" class="attachment-thumbnail" alt="Early Result" title="ds site preview1" /></a>

<p>To get the XML into HTML I built a really small ruby script that convert the file into a JS var and considering using the same script on the website to remove some of the &#8216;garbage&#8217; out of the XML and print it on the page.</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:0;width:1px;height:1px;">http://www.openjsan.org/doc/k/ka/kawasaki/XML/ObjTree/0.24/lib/XML/ObjTree.html</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=172&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/10/05/dev-dia-ruby-statemachine-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>
	</item>
		<item>
		<title>Dia-&gt;Statemachine: The tools</title>
		<link>http://fabianosoriani.wordpress.com/2009/10/02/dia-statemachine-the-tools/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/10/02/dia-statemachine-the-tools/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 22:03:03 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[diagram-statemachine]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=163</guid>
		<description><![CDATA[First of all, download DIA! =D
Select UML for the sheet pallet. Only a reduced set of the tools will be interpretated, the X´s will be ignored.
These is the selection of tools available:
Ok! A quick note about the arrows, is that the 3 of those can be used under any TRANSITION circunstances (since all connect state [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=163&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>First of all, <a href="http://projects.gnome.org/dia/" target="_blank">download DIA</a>! =D</p>
<p>Select <strong>UML</strong> for the <strong>sheet</strong> pallet. Only a reduced set of the tools will be interpretated, the <strong><span style="color:#ff0000;">X</span></strong>´s will be ignored.</p>
<p>These is the selection of tools available:</p>
<div class="wp-caption aligncenter" style="width: 508px"><a href="http://fabianosoriani.files.wordpress.com/2009/10/tools.png"><img class=" " title="dia - rubystatemachine" src="http://fabianosoriani.files.wordpress.com/2009/10/tools.png?w=498&#038;h=475" alt="dia - rubystatemachine" width="498" height="475" /></a><p class="wp-caption-text">dia -&gt; ruby statemachine</p></div>
<p>Ok! A quick note about the arrows, is that the 3 of those can be used under any TRANSITION circunstances (since all connect state with state), but you will see if you try, some arrows fit better in the indicated manner.</p>
<div id="attachment_169" class="wp-caption aligncenter" style="width: 327px"><img class="size-full wp-image-169" title="simple ex" src="http://fabianosoriani.files.wordpress.com/2009/10/simples-ex.png?w=317&#038;h=421" alt="simple ex" width="317" height="421" /><p class="wp-caption-text">simple ex</p></div>
<ul>
<li>So that is a very basic example, it is valid, notice that you need to indicate a BEGINNING connected with a STATE since the XML has no defined order among the elements.</li>
<li>Not all TRANS are required to declare an action,  the EVENT alone is ok, but if your going to declare both  use  <strong>/</strong> to separate &lt;  <strong><em>event_name / run_action</em></strong> &gt;</li>
<li>On STATES you may use the fields: <strong><em>Entry action</em></strong> and <strong><em>Exit action</em></strong> they will trigger respectively <strong><em>on_enter</em></strong>,<strong><em> on_exit</em></strong></li>
</ul>
<p><em><br />
</em></p>
<p><strong><em>Soon part 2</em></strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=163&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/10/02/dia-statemachine-the-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>

		<media:content url="http://fabianosoriani.files.wordpress.com/2009/10/tools.png" medium="image">
			<media:title type="html">dia - rubystatemachine</media:title>
		</media:content>

		<media:content url="http://fabianosoriani.files.wordpress.com/2009/10/simples-ex.png" medium="image">
			<media:title type="html">simple ex</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting Dia diagram to Ruby StateMachine =)</title>
		<link>http://fabianosoriani.wordpress.com/2009/10/02/converting-dia-diagram-to-ruby-statemachine/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/10/02/converting-dia-diagram-to-ruby-statemachine/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 16:58:53 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[diagram-statemachine]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=155</guid>
		<description><![CDATA[Hello !!!
After a loooong while I decided to dev something just so I don´t get too rusty!
The concept is: Statemachine is a fine implementation of FSM for ruby (act_as_state_machine is also an option). The author  wrote a nice guide for layperson (or forgetful like me  ) BUT still something is missing! In all examples [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=155&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hello !!!</p>
<p>After a loooong while I decided to dev something just so I don´t get too rusty!</p>
<p><strong><span style="color:#333399;">The concept<span style="color:#333399;"> is</span></span><span style="color:#333399;">:</span></strong> <a href="http://statemachine.rubyforge.org/" target="_blank">Statemachine</a> is a fine implementation of FSM for ruby (<em><a href="http://blog.aizatto.com/2007/05/24/ruby-on-rails-finite-state-machine-plugin-acts_as_state_machine/" target="_blank">act_as_state_machine</a> is also an option</em>). The author  wrote a <a href="http://blog.8thlight.com/statemachine">nice guide </a>for layperson (or forgetful like me <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ) BUT <strong>still something is missing</strong>! In all examples there are diagrams, those are very necessary for us to understand what to implement in the machine, but a huge one´s mat get really confusing. <strong>The solution</strong> would be to convert the Diagram into Ruby code!</p>
<p><strong><span style="color:#333399;">The plan:</span></strong> Dia is a great and easy to use diagramming tool, <em>win and linux able</em>, it´s save file is in XML.What i´m gonna do is make a JS that is able to parse it´s code and generate ruby =)</p>
<p><strong><span style="color:#333399;">Execution:</span></strong></p>
<ol>
<li>Make a definition of the simbols accepted by the conversion. Document it (blog).</li>
<li>Understand the <em>.dia</em> XML, what is gonna be used inside?</li>
<li>Make a website that receives a file <em>.dia</em></li>
<li>Make a response page with the contents</li>
<li>In this page, JS will read, convert (the XML inside <em><span style="text-decoration:underline;">.dia</span></em>) and return a ruby code for the <a href="http://statemachine.rubyforge.org/" target="_blank">statemachine</a> in a <em>textarea</em>.</li>
<li>In future (<em>since the future is unknown this may never happen..</em>) there will be no upload to the server, a Flash reads the content and return to JS.</li>
</ol>
<p><strong><span style="color:#333399;">Purpose:</span></strong> I love ruby lang, every Computer Science student must at least once use a <strong>Finite State Machine</strong>, <em>maybe</em> this interface will make things more attractive so he have a taste of ruby programming..</p>
<p>Long automata&#8217;s description may be very boring and error prone this should make the assembly easier.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=155&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/10/02/converting-dia-diagram-to-ruby-statemachine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>
	</item>
		<item>
		<title>Contagem de posts por mês, ou alfabeticamente em mySQL</title>
		<link>http://fabianosoriani.wordpress.com/2009/07/23/contagem-de-posts-por-mes-ou-alfabeticamente-sql/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/07/23/contagem-de-posts-por-mes-ou-alfabeticamente-sql/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 05:34:11 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=147</guid>
		<description><![CDATA[Para que situação isso se aplica??
Sistema de blog ou artigos, ou essencialmente qualquer tela semelhante a tela abaixo!
Sem muitas delongas o caminho do pote de ouro:
MES&#124;ANO &#124;TOTAL = &#8220;SELECT MONTH(created_at) as mes, YEAR(created_at) as ano, COUNT(*) as total
FROM artigos
GROUP BY MONTH(created_at), YEAR(created_at)
ORDER BY created_at ASC&#8221;
LETRA&#124; TOTAL = &#8220;SELECT left(titulo, 1) as letra, COUNT(*) as total
FROM [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=147&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Para que situação isso se aplica??</p>
<p>Sistema de blog ou artigos, ou essencialmente qualquer tela semelhante a tela abaixo!</p>
<div id="attachment_151" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-151" title="Tela de Artigos" src="http://fabianosoriani.files.wordpress.com/2009/07/artigos2.png?w=500&#038;h=389" alt="Tela de Artigos" width="500" height="389" /><p class="wp-caption-text">Tela de Artigos</p></div>
<p>Sem muitas delongas o caminho do pote de ouro:</p>
<p>MES|ANO |TOTAL =<strong> &#8220;SELECT MONTH(created_at) as mes, YEAR(created_at) as ano, COUNT(*) as total<br />
FROM artigos<br />
GROUP BY MONTH(created_at), YEAR(created_at)<br />
ORDER BY created_at ASC&#8221;</strong></p>
<p><strong></strong>LETRA| TOTAL =<strong> &#8220;SELECT left(titulo, 1) as letra, COUNT(*) as total<br />
FROM artigos<br />
where left(titulo, 1) &gt;= &#8216;A&#8217; AND left(titulo, 1) &lt;=&#8217;Z&#8217;<br />
GROUP BY left(titulo, 1)<br />
ORDER BY titulo ASC&#8221;</strong></p>
<p><strong></strong>NUMERO| TOTAL =<strong>&#8220;SELECT left(titulo, 1) as numero, COUNT(*) as total<br />
FROM artigos<br />
where left(titulo, 1) &gt;= &#8216;0&#8242; AND left(titulo, 1) &lt;=&#8217;9&#8242;<br />
GROUP BY left(titulo, 1)<br />
ORDER BY titulo ASC&#8221;</strong></p>
<p>Minha lógica de impressão foi para mes/ano:</p>
<p>se houve mais de <strong>0</strong> registros na consula faça:</p>
<p>do primeiro registo até o ano atual faça:</p>
<p>de 1 a 12 faça (i):</p>
<p>vai desempilhando os registros caso o mes caso do primeiro registro esteja no topo da lista seja == i</p>
<p>caso nao seja o mesmo mes, nao desempilhe, somente imprima o nome do mes</p>
<p>fim. fim. fim.</p>
<p>Não sei se funciona em outros BDs fora mysql, mas eh provavel que sim.<strong> Espero ter sido util!</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=147&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/07/23/contagem-de-posts-por-mes-ou-alfabeticamente-sql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>

		<media:content url="http://fabianosoriani.files.wordpress.com/2009/07/artigos2.png" medium="image">
			<media:title type="html">Tela de Artigos</media:title>
		</media:content>
	</item>
		<item>
		<title>Satisfaction II &#8211; javascript field focus</title>
		<link>http://fabianosoriani.wordpress.com/2009/04/23/satisfaction-ii-javascript-field-focus/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/04/23/satisfaction-ii-javascript-field-focus/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 19:27:29 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=139</guid>
		<description><![CDATA[I  Happiness to share  
You know when users gotta insert a lot of records into the DB, it is cool if the programmer always set the first field of a Form with focus! Or else they could get really annoyed..
First of all, this is a Rails solution but can be done in any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=139&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I  Happiness to share <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>You know when users gotta insert a lot of records into the DB, it is cool if the programmer always set the first field of a Form with focus! <em>Or else they could get really annoyed..</em></p>
<p>First of all, this is a Rails solution but can be done in any other language.. if you know what page your user is visiting..</p>
<p>snippet..</p>
<pre class="brush: jscript;">
	function start_up(){
&lt;% if controller.action_name == 'criar' -%&gt;
		(document.forms[0])[1].focus();
&lt;% elsif controller.action_name == 'alterar' -%&gt;
		(document.forms[0])[2].focus();
&lt;% end -%&gt;
return true;
 }
</pre>
<p>then call the function on BODY onload= &#8217;start_up&#8217;</p>
<p>This if elsif is required because in Rails a &#8216;new&#8217; form have 1 hidden field and a &#8216;edit&#8217; form have 2 hidden fields, if your form is in PHP C# and have no hidden fields, you are likely to use <code>(document.forms[0])[0].focus();</code> for the very first field on the very first form.</p>
<p><strong>Conclusion:</strong><br />
So COOL !! This function becomes something different depending on the page the user is visiting <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><em>Sorry the syntax is messed up is because of word press post security is kinda paranoid.. </em></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=139&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/04/23/satisfaction-ii-javascript-field-focus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>
	</item>
		<item>
		<title>How close a iframe in thickbox from within</title>
		<link>http://fabianosoriani.wordpress.com/2009/04/01/how-close-a-iframe-in-thickbox-from-within/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/04/01/how-close-a-iframe-in-thickbox-from-within/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 21:44:23 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ThickBox]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=136</guid>
		<description><![CDATA[Probably this info is well known diffused on the web, but since i´m loving to use ThickBox..  
You are using Thickbox to open a iFrame in your site, but don´t have control of it from inside the frame?! Let´s close it as if it were a Ajax box, but calling it from the parent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=136&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Probably this info is well known diffused on the web, but since i´m loving to use ThickBox.. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>You are using <strong>Thickbox </strong>to open a <strong>iFrame</strong> in your site, but don´t have control of it from inside the frame?! Let´s close it as if it were a Ajax box, but calling it from the parent (you may also use <em>parent.eval()</em>to run any other function known to the parent)</p>
<pre class="brush: jscript;">
&lt;a onclick=&quot; parent.eval('tb_remove()')&quot; &gt; [X] &lt;/a&gt;
</pre>
<p>You may use this code inside a <strong>link</strong> along other JS, or in a <strong>Form </strong>&#8216;onsubmit=&#8217;, or a <strong>Button </strong>&#8216;onclick=&#8217;<br />
<strong>Done!</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=136&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/04/01/how-close-a-iframe-in-thickbox-from-within/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby script to remove svn folders</title>
		<link>http://fabianosoriani.wordpress.com/2009/03/19/ruby-script-to-remove-svn-folders/</link>
		<comments>http://fabianosoriani.wordpress.com/2009/03/19/ruby-script-to-remove-svn-folders/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 22:53:52 +0000</pubDate>
		<dc:creator>fabianosoriani</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://fabianosoriani.wordpress.com/?p=133</guid>
		<description><![CDATA[This code is so useful and pretty easy too when we want to remove recursively recursive the .svn folders from a project we want to send.
The credit of the original code is @HelgeG guy
This was only enhanced to make a warning first and count the kills, still under testing.

require 'find'
require 'fileutils'

puts &#34;\n\t\t\t! WARNING !\n\nYou are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=133&subd=fabianosoriani&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This code is so useful and pretty easy too when we want to remove recursively recursive the .svn folders from a project we want to send.</p>
<p>The credit of the original code is <a href="http://codesnippets.joyent.com/user/HelgeG">@HelgeG</a> guy</p>
<p>This was only enhanced to make a warning first and count the kills, still under testing.</p>
<pre class="brush: ruby;">
require 'find'
require 'fileutils'

puts &quot;\n\t\t\t! WARNING !\n\nYou are about to remove .SVN from this folder and all sub-folders&quot;
puts &quot;# This program is to be used on a backup folder, no way back! \nCONTINUE?&quot;
resp = gets

if resp.include?('s') || resp.include?('y')
	i = 0
	Find.find('./') do |path|
	  if File.basename(path) == '.svn'
		FileUtils.remove_dir(path, true)
		i += 1
		Find.prune
	  end
	end
	puts &quot;#{i} .svn folders were deleted along with their juice..&quot;
	sleep 3
end
puts &quot;Bye&quot;
sleep 1
</pre>
<p><strong>Use on your own Risk!</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fabianosoriani.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fabianosoriani.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fabianosoriani.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fabianosoriani.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fabianosoriani.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fabianosoriani.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fabianosoriani.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fabianosoriani.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fabianosoriani.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fabianosoriani.wordpress.com/133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fabianosoriani.wordpress.com&blog=3656200&post=133&subd=fabianosoriani&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://fabianosoriani.wordpress.com/2009/03/19/ruby-script-to-remove-svn-folders/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/922c9fdc02ec0531cd152ca7cadb33bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fabianosoriani</media:title>
		</media:content>
	</item>
	</channel>
</rss>