<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="wordpress/2.3.2" --><rss 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/" version="2.0">

<channel>
	<title>a Freelance Web Developer</title>
	<link>http://www.fernandoguillen.info/es/blog</link>
	<description>software development as an artistic expression</description>
	<pubDate>Wed, 03 Mar 2010 09:46:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/unDesarrolladorWebFreelance" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="undesarrolladorwebfreelance" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>iPhone Verb Conjugations</title>
		<link>http://www.fernandoguillen.info/es/blog/2010/03/01/iphone-verb-conjugations/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2010/03/01/iphone-verb-conjugations/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 11:00:53 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[iphone]]></category>

		<category><![CDATA[orgullo artesano]]></category>

		<category><![CDATA[programando]]></category>

		<category><![CDATA[software libre]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2010/03/01/iphone-verb-conjugations/</guid>
		<description><![CDATA[
VerbConjugations is simple iPhone application that tries to help the people that is learning Spanish to find out how a verb is conjugated. 
With this application you can ask for any infinitive verb and you&#8217;ll obtain how this verb is conjugated is different tenses and persons.
The application also has an offline mode so you can [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin-bottom: 10px" src="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2010/03/iphoneverbsconjugation_header_final.jpg" alt="iPhone Verb Conjugations" /></p>
<p><a href="http://itunes.apple.com/es/app/verb-conjugations/id359089808?mt=8" title="Verb Conjugations on the Apple Store"><strong>VerbConjugations</strong></a> is simple <strong>iPhone application</strong> that tries to help the people that is learning Spanish to find out how a verb is conjugated.<a href="javascript:void(0)" id="file-link-351" title="iPhone Verb Conjugations" class="file-link image"> </a></p>
<p>With this application you can ask for any infinitive verb and you&#8217;ll obtain how this verb is conjugated is different tenses and persons.</p>
<p>The application also has an offline mode so you can check the verbs already searched without Internet connection.</p>
<p>The application works on any iPhone/iPod with <strong>SDK 3.0</strong> or higher.</p>
<p>Let it a try, <strong>it is free</strong>, and leave a review, it is my first iPhone app and I would love to receive any kind of comment or issue.</p>
<p>The license is completely opened and you can check/download the code on the <a href="http://github.com/fguillen/iPhoneVerbConjugations" title="iPhone Verb Conjugations GitHub Repository">iPhoneVerbConjugations GitHub repository</a>.</p>
<p><a href="http://itunes.apple.com/es/app/verb-conjugations/id359089808?mt=8" title="Verb Conjugations on the Apple Store"><img  style="margin: 10px 0px 10px 0px" src="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2010/03/app_store_badge_en_resized.png" alt="Available on Apple Store" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2010/03/01/iphone-verb-conjugations/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How many lentils are there in the jar?</title>
		<link>http://www.fernandoguillen.info/es/blog/2010/02/16/how-many-lentils-are-there-in-the-jar/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2010/02/16/how-many-lentils-are-there-in-the-jar/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 15:56:29 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2010/02/16/how-many-lentils-are-there-in-the-jar/</guid>
		<description><![CDATA[Asking for a development estimation without minimal specification info is like guess how many lentils are there on a jar without even see it,
... offering specification info, then you can see the jar, and you have to guess how many lentils are there in it without open it
... let me the jar, and I&#8217;ll keep [...]]]></description>
			<content:encoded><![CDATA[<p>A<span class="status-body"><span class="entry-content">sking for a development estimation without minimal specification info is like guess how many lentils are there on a jar without even see it,</span></span></p>
<p>.<span class="status-body"><span class="entry-content">.. offering specification info, then you can see the jar, and you have to guess how many lentils are there in it without open it</span></span></p>
<p>.<span class="status-body"><span class="entry-content">.. let me the jar, and I&#8217;ll keep you informed of how many lentils are there in it as I&#8217;m counting them.</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2010/02/16/how-many-lentils-are-there-in-the-jar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Conferencia Rails 2009, just around the corner</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/09/27/conferencia-rails-2009-just-around-the-corner/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/09/27/conferencia-rails-2009-just-around-the-corner/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:54:14 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[RoR]]></category>

		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[conferencia]]></category>

		<category><![CDATA[evento]]></category>

		<category><![CDATA[madrid]]></category>

		<category><![CDATA[noticias]]></category>

		<category><![CDATA[orgullo artesano]]></category>

		<category><![CDATA[profesión]]></category>

		<category><![CDATA[programando]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[software libre]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/09/27/conferencia-rails-2009-just-around-the-corner/</guid>
		<description><![CDATA[ 
Another year, another conference, the conference that opened my eyes to the amazing word of Ruby, there on 2007, is just tuning the last details.
Conferencia Rails 2009, this year bigger, more impressive, with new venue, bigger organization team, more energy, and asking to the english spoken community  to meet us with talks.
This year I am [...]]]></description>
			<content:encoded><![CDATA[<p> <a href="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2009/09/conferencia_rails_2008_cutted.jpg" title="Conferencia Rail 2008"><img src="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2009/09/conferencia_rails_2008_cutted.jpg" alt="Conferencia Rail 2008" /></a></p>
<p>Another year, another conference, the conference that opened my eyes to the amazing word of Ruby, there on 2007, is just tuning the last details.</p>
<p><a href="http://www.conferenciarails.org" title="Conferencias Rails 2009">Conferencia Rails 2009</a>, this year bigger, more impressive, with new venue, bigger organization team, more energy, and asking to the english spoken community  to meet us with talks.</p>
<p>This year I am not being to much helpful on the organization team, I know they are not missing me: a big and strong bunch of people is helping this year with new energy and ideas. I am on the register application support one more year. You can check the code and help sending patches here on <a href="http://github.com/fguillen/ConfRoR2009" title="the ConfRor2009 github repository">the ConfRor2009 github repository</a>.</p>
<p>As more news arrive to me about the Conferencia Rails 2009 more sad I feel, this is because this year I will not can assists to the event, <a href="http://www.fernandoguillen.info/es/blog/2009/09/13/coding-on-new-york-city/" title="coding on new york">I will be on New York</a> on an weird adventure.</p>
<p>The <strong>&#8216;</strong><a href="http://www.conferenciarails.org/2009/09/call-for-papers-2009-for-proposals-in-english/" title="call for papers Conferencia Rails 2009">Call for Papers</a><strong>&#8216;</strong> is almost closed. Be hurry and <a href="http://app.conferenciarails.org/talks/new?locale=en" title="Add a new Talk to the Conferencia Rails 2009">propose your talk to Conferencia Rails 2009 on the registration app</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/09/27/conferencia-rails-2009-just-around-the-corner/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Coding on New York City</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/09/13/coding-on-new-york-city/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/09/13/coding-on-new-york-city/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 09:18:44 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[RoR]]></category>

		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[felicidad]]></category>

		<category><![CDATA[orgullo artesano]]></category>

		<category><![CDATA[profesión]]></category>

		<category><![CDATA[programando]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/09/13/coding-on-new-york-city/</guid>
		<description><![CDATA[
It&#8217;s done, I&#8217;ll be traveling with my angel to New York City next October. It won&#8217;t be a very short visit: 3 months. All the Autumn on New York.
I&#8217;m very excited, very stressed and very nervous, I know not one of this sensations is a pleasure sensation, but this is my way, I am a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2009/09/coding_nyc_02.jpg" title="Coding on NYC"><img src="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2009/09/coding_nyc_02.jpg" alt="Coding on NYC" /></a></p>
<p>It&#8217;s done, I&#8217;ll be traveling with my <a href="http://www.flickr.com/photos/d2clon/3238089405/in/set-72157600516649923/">angel</a> to New York City next October. It won&#8217;t be a very short visit: 3 months. All the Autumn on New York.</p>
<p>I&#8217;m very excited, very stressed and very nervous, I know not one of this sensations is a pleasure sensation, but this is my way, I am a guy that likes to feel at home, and NYC is definitely not my home. But I know at the moment I&#8217;ll know where the bakery is and a good place to take a relaxing coffee I&#8217;ll start to feel at home.</p>
<p>This is a very great experience, a personal one, but I&#8217;ll like to turn it on an important professional experience too.</p>
<p>I don&#8217;t want to make telecommuting on NYC, I don&#8217;t want to work at home. I can to keep working for my actual clients on the same way I am doing it here on my house at Mallorca (Spain), but I need something different, I want to work close to other coders, I want to work close to New Yorker coders.</p>
<p>I have spoken with the managers of one of my most important actual projects, and the development team I am deeper working with: <a href="http://lacoctelera.com" title="La Coctelera">LaCoctelera</a>, I exposed my concerns and they are absolutely agree with me, I have to take this opportunity, I will stop coding and committing for this project for a while, and on my return we will see if I am still helpful for them.</p>
<p>So now I have time, but I don&#8217;t have any idea if my skills will be desirable there on USA.</p>
<p>What I&#8217;m looking for is kind of simple: a Ruby on Rails project, with a development team of at least three persons, with hi coding level, comfortable office space, where a ten agile fingers and a bright mind could be helpful.</p>
<p>The money is not a problem, I&#8217;m chasing the experience and the knowledge I could acquire, so if your budget is not weight but your team is amazing I would be proud to work on it. The contract isn&#8217;t a problem either, as a Freelance I own my own software company, so this&#8217;ll be not a employment contract but a international companies relationship.</p>
<p>But if I can&#8217;t access to any kind of refundable job <strong>I am also opened to volunteer work</strong>.</p>
<p>If you know or are part of something like what I am looking for, please don&#8217;t hesitate to contact me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/09/13/coding-on-new-york-city/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Rails Rumble Experience</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/08/28/the-rails-rumble-experience/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/08/28/the-rails-rumble-experience/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 17:12:47 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[RoR]]></category>

		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[equipo]]></category>

		<category><![CDATA[evento]]></category>

		<category><![CDATA[opinión]]></category>

		<category><![CDATA[orgullo artesano]]></category>

		<category><![CDATA[profesión]]></category>

		<category><![CDATA[programando]]></category>

		<category><![CDATA[visión]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/08/28/the-rails-rumble-experience/</guid>
		<description><![CDATA[Software development is a box of wonderful surprises and the community I have found around Ruby on Rails is the most passionate I have never met.
The last crazy geek stuff I have been involved in was the RailsRumble. A contest where small web development teams have to show what they are able to build in [...]]]></description>
			<content:encoded><![CDATA[<p>Software development is a box of wonderful surprises and the community I have found around Ruby on Rails is the most passionate I have never met.</p>
<p>The last crazy geek stuff I have been involved in was the <a href="http://blog.railsrumble.com/overview" title="RailsRumble">RailsRumble</a>. A contest where small web development teams have to show what they are able to build in only 48 hours. Of course the web framework to use is Ruby on Rails, which other can you use to implement something almost finished in only this bunch of hours?</p>
<p>The experience, besides being a technology challenge, is a very enriching personal experience</p>
<p>Our group was formed by <a href="http://raimondgarcia.com/" title="Raimond Garcia">Raimond Garcia</a>, <a href="http://iamfelipe.com/" title="Felipe Talavera">Felipe Talavera</a>, <a href="http://c.matallin.com" title="Carlos Matallín">Carlos Matallín</a> and <a href="http://fernandoguillen.info" title="Fernando Guillen">me</a>.</p>
<p><a href="http://www.flickr.com/photos/d2clon/sets/72157622168506254/" title="RailsRumble Mallorca Team"><img src="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2009/08/three_header.jpg" alt="RailsRumble Mallorca Team" /></a></p>
<p>Within a few days of cross mailing conversation we had an approximate idea of what we were gonna build. The 3 developers get together at my <a href="http://www.flickr.com/photos/d2clon/sets/72157616586695511/" title="Mallorca house">house in Mallorca</a>, our designer and front developer, Carlos Matallín, could not enjoy physically the experience with us, but was on continuous contact through mail, skype and video conference.</p>
<p>The previous night was the discussion time.. a few cups of coffee and a lot of pen and paper, our idea was incredibly simple and could become something incredibly helpful, but it was full of small details and possible solutions that should be decided before work started.</p>
<p><a href="http://www.flickr.com/photos/d2clon/3864615055/in/set-72157622168506254/" title="Functional Paper Doc"><img src="http://www.fernandoguillen.info/es/blog/wp-content/uploads/2009/08/paper.jpg" alt="Functional Paper Doc" style="border: 1px solid black; margin-right: 10px" align="left" /></a>2am, Day D -2, Hour H -48, the time of the first commit, just a very concise README.md file and go to sleep.</p>
<p>When I waked up in the morning my partner Felipe had already the server standing up and our most important tool working: <strong>the mail digester</strong>.</p>
<p>The day was very pleasing, not any pressure stressed us, our code was responding our expectations incredibly well, Raimond was concentrated on the integration <strong>test layer</strong> of our application, Carlos was sending us very correct <strong>designs</strong> time at a time, Felipe working here and there knowing <strong>all the stack</strong> of the application and me focusing on <strong>the mail parser</strong>. Time at a time we reset our bodies with a very cold dip up on our small swimming-pool.</p>
<p>At the end of the first day our application was working. Not on any casuistic worked well, but it was working.</p>
<p>The second and last day supposed to be only to correct details and test any problematic casuistics, I don&#8217;t know if it was for overconfidence or because the problems to resolve were too hard to resolve but the last commit was exactly at 2am on Sunday, that means Hour H on Day D.</p>
<p>The supposed objective of the RailsRumble is to convince the expert judges that our application developed on 48 hours is above the rest of them.. Our project was judged as the <strong>#57</strong> of more than <strong>200 applications</strong>. Not available to pass to the next level: the public vote. That suppose to mean that we failed. Nothing further from the truth. We built something very transgressor, very innovative and also very simple, we were congratulated for one of the most known Ruby on Rail gurus: <a href="http://obiefernandez.com/" title="Obei Fernandez">Obie Fernandez</a>, we enjoyed ourself a wonderful geek weekend and we have decided to improve the code and to expose it to the community to see if it becomes as helpful as we think.</p>
<p>And over all we were full up of new inspiration and energized passion towards our profession.</p>
<p>What was that we were working this weekend? &#8230; :), the new mailing bot to help your mailing list with informal votes: <a href="http://letsdecide.us" title="LetDecide.us">LetsDecide.us</a>. I&#8217;ll talk more concise about it on future post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/08/28/the-rails-rumble-experience/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OneOfZombies a brutal stupid 2D game</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/08/12/oneofzombies-a-brutal-stupid-2d-game/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/08/12/oneofzombies-a-brutal-stupid-2d-game/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 17:54:16 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[artesano]]></category>

		<category><![CDATA[gosu]]></category>

		<category><![CDATA[orgullo artesano]]></category>

		<category><![CDATA[programando]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/08/12/oneofzombies-a-brutal-stupid-2d-game/</guid>
		<description><![CDATA[OneOfZombies is an experiment proyect.
Don&#8217;t come here looking for game development knowledge or very pretty Ruby code design. This is just me playing with Ruby and with Gosu.
After a few weeks working and studding on my free time I can show you this brutal stupid 2D game.




This is not a quality project, this is not [...]]]></description>
			<content:encoded><![CDATA[<p><strong>OneOfZombies</strong> is an experiment proyect.</p>
<p>Don&#8217;t come here looking for game development knowledge or very pretty Ruby code design. This is just me playing with Ruby and with Gosu.</p>
<p>After a few weeks working and studding on my free time I can show you this brutal stupid 2D game.</p>
<p><object width="499" height="283">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5025754&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5025754&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="499" height="283"></embed></object></p>
<p>This is not a quality project, this is not a professional stuff.</p>
<p>I am just enjoying my self and having fun, and by the way I hope you will have fun too!.</p>
<p>The game is very stupid, and the code is very ugly and dirty, I just wanted to test the Gosy library, and I have not experience on game development.</p>
<p>It is the first time I put my self on a pure Ruby project with more of one class. I have had such an experience with Rails and still learning! and I realize that I have got no idea about Ruby.</p>
<p>If you want you can go to the <a href="http://oneofzombies.com" title="OneOfZombies official site">OneOfZombies official site</a> and try to understand what is all of this about. You can also <a href="http://oneofzombies.com/#downloads" title="OneOfZombies downloads">download the Mac OSX version, or the source code</a>, so you will can test it on your own keyboard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/08/12/oneofzombies-a-brutal-stupid-2d-game/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jQuery: deleting the last word from textarea’s cursor</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-deleting-the-last-word-from-textareas-cursor/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-deleting-the-last-word-from-textareas-cursor/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 17:33:52 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[programando]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-deleting-the-last-word-from-textareas-cursor/</guid>
		<description><![CDATA[Following with the completor suggestor I was playing, I had the need to delete the last word from cursor before the completor writes the suggestion selected.
Thanks to the previous function textarea.lastWord() it was  very easy:

jQuery.fn.deleteLastWord = function&#40;&#41; &#123;
  this.each&#40;function&#40;&#41;&#123;
    if &#40;this.selectionStart &#124;&#124; this.selectionStart == '0'&#41; &#123;
      [...]]]></description>
			<content:encoded><![CDATA[<p>Following with the <a href="http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-returning-the-last-word-from-textareas-cursor/" title="textarea last word from cursor jquery function">completor suggestor I was playing</a>, I had the need to delete the last word from cursor before the completor writes the suggestion selected.</p>
<p>Thanks to the previous function <a href="http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-returning-the-last-word-from-textareas-cursor/" title="textarea last word from cursor jquery function">textarea.lastWord()</a> it was  very easy:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript">jQuery.<span style="color: #006600;">fn</span>.<span style="color: #006600;">deleteLastWord</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;">this</span>.<span style="color: #006600;">each</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>
    <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;">selectionStart</span> <span style="color: #66cc66;">||</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionStart</span> == <span style="color: #3366CC;">'0'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> startPos = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionStart</span>;
      <span style="color: #003366; font-weight: bold;">var</span> endPos = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionEnd</span>;
      <span style="color: #003366; font-weight: bold;">var</span> scrollTop = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">scrollTop</span>;
&nbsp;
      <span style="color: #003366; font-weight: bold;">var</span> lastWord = $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">lastWord</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
      startPos = startPos - lastWord.<span style="color: #006600;">length</span>;
&nbsp;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">value</span> =
          <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">value</span>.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span>, startPos<span style="color: #66cc66;">&#41;</span> +
          <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">value</span>.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span>endPos, <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">value</span>.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #000066;">focus</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionStart</span> = startPos;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionEnd</span> = startPos;
      <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">scrollTop</span> = scrollTop;
    <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;deleteLastWord not supported on this navigator&quot;</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>;
<span style="color: #66cc66;">&#125;</span>;</pre></div></div>

<p>Example of use:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#my_textarea'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">deleteLastWord</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p><strong>Don&#8217;t copy and paste from here</strong>, WP does weird stuff with code, <strong>download from here</strong>: <a href="http://gist.github.com/143808" title="textarea delete last word from cursor jquery function">http://gist.github.com/143822</a></p>
<p>This script is almost not tested, it works for me on FireFox 3.0.11 and Safari 4.0.1, so use it under your own responsability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-deleting-the-last-word-from-textareas-cursor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jQuery: returning the last word from textarea’s cursor</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-returning-the-last-word-from-textareas-cursor/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-returning-the-last-word-from-textareas-cursor/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 17:18:24 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[programando]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-returning-the-last-word-from-textareas-cursor/</guid>
		<description><![CDATA[I was enjoying trying to develop a kind of completor suggestor on a textarea, I wanted it to jump when the tab key was pressed, that what easy with capturing the keydown event and the help of event.preventDefault.
But the thing what wasn&#8217;t such easy was the capturing the last word on the textarea from the [...]]]></description>
			<content:encoded><![CDATA[<p>I was enjoying trying to develop a kind of completor suggestor on a textarea, I wanted it to jump when the <em>tab</em> key was pressed, that what easy with capturing the <em>keydown</em> event and the help of <em>event.preventDefault</em>.</p>
<p>But the thing what wasn&#8217;t such easy was the capturing the last word on the textarea <strong>from the cursor</strong>.</p>
<p>But with the help of the code of the <a href="http://alexking.org/blog/2003/06/02/inserting-at-the-cursor-using-javascript" title="Insert At Care jquery plugin">insertAtCaret</a> function I was abble to obtain it:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript">jQuery.<span style="color: #006600;">fn</span>.<span style="color: #006600;">lastWord</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: #003366; font-weight: bold;">var</span> buffer = <span style="color: #3366CC;">''</span>;
&nbsp;
  <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">each</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>
    <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;">selectionStart</span> <span style="color: #66cc66;">||</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionStart</span> == <span style="color: #3366CC;">'0'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> startPos = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionStart</span>;
      <span style="color: #003366; font-weight: bold;">var</span> endPos = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">selectionEnd</span>;
      <span style="color: #003366; font-weight: bold;">var</span> scrollTop = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">scrollTop</span>;
&nbsp;
      <span style="color: #003366; font-weight: bold;">var</span> index = <span style="color: #CC0000;">0</span>;
      <span style="color: #003366; font-weight: bold;">var</span> new_char = <span style="color: #3366CC;">''</span>;
&nbsp;
      <span style="color: #000066; font-weight: bold;">do</span><span style="color: #66cc66;">&#123;</span>
        index += <span style="color: #CC0000;">1</span>;
        buffer = new_char + buffer;
        new_char = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">value</span>.<span style="color: #006600;">substr</span><span style="color: #66cc66;">&#40;</span>startPos - index, <span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#41;</span>;
      <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">while</span><span style="color: #66cc66;">&#40;</span> new_char.<span style="color: #006600;">search</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066FF;">/^<span style="color: #66cc66;">&#40;</span>\w<span style="color: #66cc66;">|</span>\.<span style="color: #66cc66;">&#41;</span>$<span style="color: #66cc66;">/|</span>> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">!</span>= <span style="color: #CC0000;">-1</span> <span style="color: #66cc66;">&#41;</span>
&nbsp;
    <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;lastWord not supported on this navigator&quot;</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;
  <span style="color: #000066; font-weight: bold;">return</span> buffer;
<span style="color: #66cc66;">&#125;</span>;</pre></div></div>

<p>Example of use:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span> <span style="color: #3366CC;">&quot;last word from cursor: &quot;</span> + $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#my_textarea'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">lastWord</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p><strong>Don&#8217;t copy and paste from here</strong>, WP does weird stuff with code, <strong>download from here</strong>: <a href="http://gist.github.com/143808" title="textarea last word from cursor jquery function">http://gist.github.com/143808</a></p>
<p>This script is almost not tested, it works for me on FireFox 3.0.11 and Safari 4.0.1, so use it under your own responsability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/07/09/jquery-returning-the-last-word-from-textareas-cursor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Show me where am I</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/06/29/show-me-where-am-i/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/06/29/show-me-where-am-i/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 22:24:03 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[programando]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/06/29/show-me-where-am-i/</guid>
		<description><![CDATA[
puts lambda {}
]]></description>
			<content:encoded><![CDATA[<pre style="font-size: 20px" lang="ruby">
puts lambda {}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/06/29/show-me-where-am-i/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Show me what is inside you</title>
		<link>http://www.fernandoguillen.info/es/blog/2009/06/28/show-me-what-is-inside-you/</link>
		<comments>http://www.fernandoguillen.info/es/blog/2009/06/28/show-me-what-is-inside-you/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 21:35:28 +0000</pubDate>
		<dc:creator>fguillen</dc:creator>
		
		<category><![CDATA[programando]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.fernandoguillen.info/es/blog/2009/06/28/show-me-what-is-inside-you/</guid>
		<description><![CDATA[
puts class &#60;&#60; self; self; end
]]></description>
			<content:encoded><![CDATA[<pre style="font-size: 20px" lang="ruby">
puts class &lt;&lt; self; self; end</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoguillen.info/es/blog/2009/06/28/show-me-what-is-inside-you/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
