<?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"?><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/" 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Meio Código</title>
	
	<link>http://www.meiocodigo.com</link>
	<description>A peça que faltava para seu código.</description>
	<lastBuildDate>Mon, 19 Jul 2010 19:11:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/meiocodigo" /><feedburner:info uri="meiocodigo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Domain redirect keeping the URL path with .htaccess</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/71ahHfjb-30/</link>
		<comments>http://www.meiocodigo.com/2010/07/16/domain-redirect-keeping-the-url-path-with-htaccess/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 20:07:46 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[HTTP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=486</guid>
		<description><![CDATA[I had a site hosted at a domain and the client asked me to change the domain. But it&#8217;s a very bad idea to simply change a site&#8217;s address without thinking about all the users who have bookmarked the old site. It means losing all of them. So I thought that i could do a [...]]]></description>
			<content:encoded><![CDATA[<p>I had a site hosted at a domain and the client asked me to change the domain. But it&#8217;s a very bad idea to simply change a site&#8217;s address without thinking about all the users who have bookmarked the old site. It means losing all of them. So I thought that i could do a redirect from the old domain to the new one. This redirect should be using HTTP status code 301 to identify that the site has moved permanently. There are many ways to do such a thing. But one took my attention. Why not use Apache .htaccess file associated with mod_rewrite? Most of the hosting services supports this. Firstly I tried this:</p>

<p><pre class="brush: plain">
RewriteEngine On
RewriteBase /
Redirect 301 / http://mynewdomain.com/
</pre></p>

<p>This way, all requests to the root of my old domain get redirected to the root of my new domain. But what if I try yo access some path inside my old domain? It would raise a 404 error because it does not have the content anymore. I want that if the user access http://myolddomain.com/path/ it redirects him to http://mynewdomain.com/path/. So I ended up with this:</p>

<p><pre class="brush: plain">
RewriteEngine On
RewriteBase /
RedirectMatch 301 (.*)$ http://mynewdomain.com$1
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2010/07/16/domain-redirect-keeping-the-url-path-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2010/07/16/domain-redirect-keeping-the-url-path-with-htaccess/</feedburner:origLink></item>
		<item>
		<title>get_first_object_or_none shortcut for Django</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/PdNmsnmWm1c/</link>
		<comments>http://www.meiocodigo.com/2010/03/28/get_first_object_or_none-shortcut-for-django/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 13:48:30 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[queryset]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=476</guid>
		<description><![CDATA[I will talk about a shortcut I developed for the Django framework and always use in my apps. This code is aimed in making a quik shortcut to obtain the first object of a queryset if it exists or None otherwise.

It&#8217;s very useful when you want to display the last news in the first page [...]]]></description>
			<content:encoded><![CDATA[<p>I will talk about a shortcut I developed for the <a href="http://www.djangoframework.com/">Django framework</a> and always use in my apps. This code is aimed in making a quik shortcut to obtain the first object of a queryset if it exists or <code>None</code> otherwise.</p>

<p>It&#8217;s very useful when you want to display the last news in the first page of your website, but don&#8217;t want it to break if there isn&#8217;t one to show. It&#8217;s just a use case for such a code, but there are many more.</p>

<p>In the past I used to write something like this:</p>

<p><pre class="brush: python">
try:
    first_user = User.objects.all()[:1][0]
except IndexError:
    first_user = None
</pre></p>

<p>This is four lines to do a very simple task and I wanted to evolve this to use only one line of code. So I developed a function that do this to me. It&#8217;s inspired in the <code>django.shortcuts.get_object_or_404</code>. Let&#8217;s take a look at the code:</p>

<p><pre class="brush: python">
def get_first_object_or_none(queryset):
    try:
        return queryset[:1][0]
    except IndexError:
        return None
</pre></p>

<p>I&#8217;ve put this code in a module called <code>shortcuts</code> inside my project and now everytime I want to use it I can write this code:</p>

<p><pre class="brush: python">
from shortcuts import get_first_object_or_none
first_user = get_first_object_or_none(User.objects.all())
</pre></p>

<p>I think it&#8217;s a very good result and helps a lot in my coding. It also made my code more legible and easy to understand. It increased my productivity and I am publishing to increase others productivity also. Any doubts, questions os suggestions, please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2010/03/28/get_first_object_or_none-shortcut-for-django/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2010/03/28/get_first_object_or_none-shortcut-for-django/</feedburner:origLink></item>
		<item>
		<title>Meio.Autocomplete, Mootools Autocomplete plugin</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/N4woa_hSF6Q/</link>
		<comments>http://www.meiocodigo.com/2010/03/15/meio-autocomplete-mootools-autocomplete-plugin/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 02:15:49 +0000</pubDate>
		<dc:creator>fabiomcosta</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mootools]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=466</guid>
		<description><![CDATA[Meio.Autocomplete Docs and Demos

Yeah, we haven&#8217;t posted for a while, but it&#8217;s time to show you some great code I&#8217;ve been working on these days.

I&#8217;ve been searching for a good auto-complete plugin for a while. Found some good ones but none of them is perfect and I sometimes had to change their codes to get [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.meiocodigo.com/projects/meio-autocomplete/">Meio.Autocomplete Docs and Demos</a></p>

<p>Yeah, we haven&#8217;t posted for a while, but it&#8217;s time to show you some great code I&#8217;ve been working on these days.</p>

<p>I&#8217;ve been searching for a good auto-complete plugin for a while. Found some <a href="http://digitarald.de/project/autocompleter/">good</a> <a href="http://docs.jquery.com/Plugins/Autocomplete">ones</a> but none of them is perfect and I sometimes had to change their codes to get what I wanted on my projects. So I got tired and decided that I should do my own. My &#8220;perfect&#8221; one.</p>

<p>Basically I wanted an auto-complete plugin that would act as a select DOM element, which means, when I select a value on the auto-complete list the id of this option is setted somewhere (a hidden field for example) and I needed to have access to the &#8220;select&#8221; and &#8220;deselect&#8221; events, that would be fired when I select and deselect an option, respectively.</p>

<p>Meio.Autocomplete does all these simple tasks and more. It&#8217;s full of options and I made it in a way that it would be easy to set it up. I really recommend you to take a look at its documentation and see the demos to understand how it works. You can change the demos code too if you wish and run the resulting code, thanks to <a href="http://mootools.net/shell">Mooshell</a>.</p>

<p>I&#8217;m open to new ideas, bug fixes, new options etc&#8230;
Feel free to comment and ask anything (help included) on the documentations page.</p>

<p><a href="http://www.meiocodigo.com/projects/meio-autocomplete/">Meio.Autocomplete Docs and Demos</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2010/03/15/meio-autocomplete-mootools-autocomplete-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2010/03/15/meio-autocomplete-mootools-autocomplete-plugin/</feedburner:origLink></item>
		<item>
		<title>New changed event</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/MijAVOrVvgU/</link>
		<comments>http://www.meiocodigo.com/2009/08/13/new-changed-event/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 03:02:55 +0000</pubDate>
		<dc:creator>fabiomcosta</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mootools]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=398</guid>
		<description><![CDATA[Have you ever had problems with the &#8216;change&#8217; event? I did, in particular on text-inputs.

I&#8217;ll list the crazy behaviors i don&#8217;t like about it:


    If you change the value of a text input and submit the actual form by pressing enter, on Opera the change event won&#8217;t fire!;
    If [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had problems with the &#8216;change&#8217; event? I did, in particular on text-inputs.</p>

<p>I&#8217;ll list the crazy behaviors i don&#8217;t like about it:</p>

<ul>
    <li>If you change the value of a text input and submit the actual form by pressing enter, on Opera the change event won&#8217;t fire!;</li>
    <li>If you apply keydown, keypress or keyup and any of them returns false (this is used on meioMask and most of the plugins that filters the input from the user), the change event won&#8217;t fire!;</li>
    <li>If you focused on a text input and some script you made changes the value from this input, when you blur it the change even&#8217;t won&#8217;t fire!;</li>
    <li>On IE, if you choose one of the native auto-complete options that is shown when you focus without typing anything, change event won&#8217;t fire!</li>
</ul>

<p>That&#8217;s why i created this new glossy &#8216;changed&#8217; event, which is the change event but fixing all these problems i listed. It uses the power of the <a title="Mootools.net!" href="http://mootools.net" target="_blank">Mootools</a> <a title="Mootools Custom Events" href="http://demos.mootools.net/CustomEvents" target="_blank">custom events</a> to create this new event that can be used like any other event.</p>

<p><a title="changed event working" href="http://www.meiocodigo.com/examples/mootools-changed-event/">I&#8217;ve created a page to show it working</a>.</p>

<p><pre class="brush: javascript">
/**
 * @author Fábio Miranda Costa &lt;fabiomcosta [at] gmail [dot] com&gt;
 * 09-07-2009
 * http://www.meiocodigo.com
 * Changed Event for Mootools 1.2.x
 */&lt;/p&gt;

&lt;p&gt;(function(){&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var $ = document.id || $;
var STORAGE_VALUE = &#039;changed-event-value-storage&#039;;
var lastFocused = null;
var focusFunc = function(){
    lastFocused = this;
    this.store(STORAGE_VALUE, this.get(&#039;value&#039;));
};
var submitFunc = function(e){
    if(check.call(lastFocused)){
        lastFocused.fireEvent(&#039;changed&#039;);
    }
};
var check = function(e){
    var storedValue = this.retrieve(STORAGE_VALUE);
    // this happens when you focus the input before adding the changed event on the input
    if(storedValue === null) return false;
    return this.value !== storedValue;
};

Element.Events.changed = {
    base: &#039;blur&#039;,
    onAdd: function(){
        var evts = this.retrieve(&#039;events&#039;);
        if(!(evts &amp;amp;&amp;amp; evts.focus &amp;amp;&amp;amp; evts.focus.keys.contains(focusFunc))){
            this.addEvent(&#039;focus&#039;, focusFunc);
            var formEl = $(this.form), fevts = formEl.retrieve(&#039;events&#039;);
            if(!(fevts &amp;amp;&amp;amp; fevts.submit &amp;amp;&amp;amp; fevts.submit.keys.contains(submitFunc))){
                formEl.addEvent(&#039;submit&#039;, submitFunc);
            }
        }
    },
    condition: function(e){
        e.type = &#039;changed&#039;;
        return check.call(this, e);
    },
    onRemove: function(){
        var evts = this.retrieve(&#039;events&#039;);
        if(!evts.changed.keys.length){
            this.removeEvent(&#039;focus&#039;, focusFunc);
            if(lastFocused == this) lastFocused = null;
            if(!submitInputs.length){
                $(this.form).removeEvent(&#039;submit&#039;, submitFunc);
            }
        }   
    }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;})();
</pre></p>

<p>I&#8217;m sorry about the entities errors on the code, its this f&#8230;. s&#8230;. blog system that simply can&#8217;t do it right. If anybody know how to solve this, please let me know.</p>

<p>It won&#8217;t hurt if i remember that it should only be used on text inputs (it wont work as expected on radiobuttons and checkboxes) and you should apply the event before you focus the element (its kind of obvious but as i said, it won&#8217;t hurt).</p>

<p>Did i tell you that Mootools rocks? <img src='http://www.meiocodigo.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2009/08/13/new-changed-event/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2009/08/13/new-changed-event/</feedburner:origLink></item>
		<item>
		<title>meioMask 1.1.3 version released!</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/UtgSN_q6jNs/</link>
		<comments>http://www.meiocodigo.com/2009/06/29/meiomask-1-1-3-version-released/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 23:49:35 +0000</pubDate>
		<dc:creator>fabiomcosta</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=391</guid>
		<description><![CDATA[meioMask 1.1.3 is out! sorry for this little interval between the versions but the last one would break on IE on a certain situation, explained below on the changelog.

Everyone that has 1.1.2  working ok is hardly encouraged to change to 1.1.3.

meioMask for jQuery

meioMask for Mootools!

meioMask’s page at jquery.com

meioMask’s Git project page

Features


    [...]]]></description>
			<content:encoded><![CDATA[<p>meioMask 1.1.3 is out! sorry for this little interval between the versions but the last one would break on IE on a certain situation, explained below on the changelog.</p>

<p>Everyone that has 1.1.2  working ok is <strong>hardly</strong> encouraged to change to 1.1.3.</p>

<p><a title="meioMask for jQuery" href="/projects/meiomask/">meioMask for jQuery</a></p>

<p><a title="meioMask for Mootools!" href="/projects/moomeiomask">meioMask for Mootools!</a></p>

<p><a title="meioMask's page at jquery.com" href="http://plugins.jquery.com/project/meiomask">meioMask’s page at jquery.com</a></p>

<p><a title="meioMask's Git project page" href="http://github.com/fabiomcosta/jquery-meiomask/tree/master">meioMask’s Git project page</a></p>

<h3>Features</h3>

<ul>
    <li>Accepts paste event;</li>
    <li>Has fixed, reverse (currency) and repeat mask types;</li>
    <li>You can still use your hot keys and others (ex: ctrl+t, ctrl+f5, TAB …);</li>
    <li>Supports <a href="http://docs.jquery.com/Plugins/Metadata/metadata" target="_blank">metadata</a> plugin;</li>
    <li>Works with iPhone;</li>
    <li>Allow default values;</li>
    <li>Has callbacks for invalid inputs, valid and overflow;</li>
    <li>Has function to mask strings;</li>
    <li>Support for positive and negative numbers on reverse masks;</li>
        <li>Can auto-focus the next form element when the current input is completely filled.</li>
</ul>

<h3>Changelog</h3>

<p>v1.1.3</p>

<ul>
  <li>a minor bug on _keyPressReverse that may break 1.1.2 on ie when a char is typed in a text input that had its content selected by any range;</li>
  <li>FIxed the onchange event on ie in masks that have type fixed.</li>
</ul>

<p>v1.1.2</p>

<ul>
  <li>Set defaultValue property of the input. This fixes the behavior of the reset button on forms. Now the value will be reseted to the masked value;</li>
  <li>âêô were added to the &#8216;@&#8217; rule;</li>
  <li>Fix for the auto-tab feature, it now focus just on visible form elements;</li>
  <li>Added setSize option. It sets the input size based on the length of the mask (work with fixed and reverse masks only).</li>
</ul>

<p>v1.1.1</p>

<ul>
  <li>Fixed caret bug on &#8216;repeat&#8217; masks;</li>
  <li>Fixed keyup event on fixed masks, it is now firing propertly;</li>
  <li>Added selectCharsOnFocus option;</li>
  <li>Added textAlign option.</li>
</ul>

<p>v1.1</p>

<ul>
    <li>Mask type &#8216;infinite&#8217; is now called &#8216;repeat&#8217; (using &#8216;infinite&#8217; still works but it is deprecated). It now allows a maxLenght value to be set. MaxLength can be set by the maxLength attribute of the element or the maxLength option;</li>
    <li>You can easily set an autoTab option that will focus the next form element when the masked input is totally filled. It is true by default but you can put a jQuery selector string to match the next element you want to be focused.</li>
    <li>Deprecated &#8216;unmaskVal&#8217; function. This function is too buggy&#8230; works for most cases but not all. The best way to unmask a value is by doing it yourself;</li>
        <li>The fixedChars option is not global anymore, giving more flexibility for the masks;</li>
    <li>&#8216;phone-us&#8217; mask is now &#8216;(999) 999-9999&#8242;;</li>
    <li>Correctly fires the onChange event on reverse masked inputs.</li>
</ul>

<p>You can see the plugin page <a title="meioMask" href="/projects/meiomask/">here</a>. It contains documentation and examples. Please tell me any bug, new feature, english errors on documentation…. anything! I’ll be glad to hear your feedback and make the fixes. Hope it helps you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2009/06/29/meiomask-1-1-3-version-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2009/06/29/meiomask-1-1-3-version-released/</feedburner:origLink></item>
		<item>
		<title>meioMask 1.1.2 version released!</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/ftrNeEN84Z8/</link>
		<comments>http://www.meiocodigo.com/2009/06/28/meiomask-1-1-2-version-released/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 19:01:29 +0000</pubDate>
		<dc:creator>fabiomcosta</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=386</guid>
		<description><![CDATA[meioMask 1.1.2 is out! It basically adds some sugar to the 1.1.1 version. See the changelog on this post for more info.

Added 1 new options:


  setSize (default=false): sets the input size based on the length of the mask (work with fixed and reverse masks only).


Everyone that has 1.1.1 working ok is encouraged to change [...]]]></description>
			<content:encoded><![CDATA[<p>meioMask 1.1.2 is out! It basically adds some sugar to the 1.1.1 version. See the changelog on this post for more info.</p>

<p>Added 1 new options:</p>

<ul>
  <li><strong>setSize <em>(default=false)</em>: </strong>sets the input size based on the length of the mask (work with fixed and reverse masks only).</li>
</ul>

<p>Everyone that has 1.1.1 working ok is encouraged to change to 1.1.2.</p>

<p><a title="meioMask for jQuery" href="/projects/meiomask/">meioMask for jQuery</a></p>

<p><a title="meioMask for Mootools!" href="/projects/moomeiomask">meioMask for Mootools!</a></p>

<p><a title="meioMask's page at jquery.com" href="http://plugins.jquery.com/project/meiomask">meioMask’s page at jquery.com</a></p>

<p><a title="meioMask's Git project page" href="http://github.com/fabiomcosta/jquery-meiomask/tree/master">meioMask’s Git project page</a></p>

<h3>Features</h3>

<ul>
    <li>Accepts paste event;</li>
    <li>Haves fixed, reverse (currency) and repeat mask types;</li>
    <li>You can still use your hot keys and others (ex: ctrl+t, ctrl+f5, TAB …);</li>
    <li>Supports <a href="http://docs.jquery.com/Plugins/Metadata/metadata" target="_blank">metadata</a> plugin;</li>
    <li>Works with iPhone;</li>
    <li>Allow default values;</li>
    <li>Haves callbacks for invalid inputs, valid and overflow;</li>
    <li>Haves function to mask strings;</li>
    <li>Support for positive and negative numbers on reverse masks;</li>
        <li>Can auto-focus the next form element when the current input is completely filled.</li>
</ul>

<h3>Changelog</h3>

<p>v1.1.2</p>

<ul>
  <li>Set defaultValue property of the input. This fixes the behavior of the reset button on forms. Now the value will be reseted to the masked value;</li>
  <li>âêô were added to the &#8216;@&#8217; rule;</li>
  <li>Fix for the auto-tab feature, it now focus just on visible form elements;</li>
  <li>Added setSize option. It sets the input size based on the length of the mask (work with fixed and reverse masks only).</li>
</ul>

<p>v1.1.1</p>

<ul>
  <li>Fixed caret bug on &#8216;repeat&#8217; masks;</li>
  <li>Fixed keyup event on fixed masks, it is now firing propertly;</li>
  <li>Added selectCharsOnFocus option;</li>
  <li>Added textAlign option.</li>
</ul>

<p>v1.1</p>

<ul>
    <li>Mask type &#8216;infinite&#8217; is now called &#8216;repeat&#8217; (using &#8216;infinite&#8217; still works but it is deprecated). It now allows a maxLenght value to be set. MaxLength can be set by the maxLength attribute of the element or the maxLength option;</li>
    <li>You can easily set an autoTab option that will focus the next form element when the masked input is totally filled. It is true by default but you can put a jQuery selector string to match the next element you want to be focused.</li>
    <li>Deprecated &#8216;unmaskVal&#8217; function. This function is too buggy&#8230; works for most cases but not all. The best way to unmask a value is by doing it yourself;</li>
        <li>The fixedChars option is not global anymore, giving more flexibility for the masks;</li>
    <li>&#8216;phone-us&#8217; mask is now &#8216;(999) 999-9999&#8242;;</li>
    <li>Correctly fires the onChange event on reverse masked inputs.</li>
</ul>

<p>You can see the plugin page <a title="meioMask" href="/projects/meiomask/">here</a>. It contains documentation and examples. Please tell me any bug, new feature, english errors on documentation…. anything! I’ll be glad to hear your feedback and make the fixes. Hope it helps you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2009/06/28/meiomask-1-1-2-version-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2009/06/28/meiomask-1-1-2-version-released/</feedburner:origLink></item>
		<item>
		<title>MeioCódigo now in Twitter</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/zW0-9aCpw6U/</link>
		<comments>http://www.meiocodigo.com/2009/06/25/meiocodigo-now-in-twitter/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 00:26:38 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=382</guid>
		<description><![CDATA[We have created a profile for MeioCódigo in Twitter. We will twitt all our blog posts and something related to the blog&#8217;s topics. If you like MeioCódigo, start following our twitter.
]]></description>
			<content:encoded><![CDATA[<p>We have created a <a href="http://twitter.com/meiocodigo">profile for MeioCódigo</a> in <a href="http://twitter.com/">Twitter</a>. We will twitt all our blog posts and something related to the blog&#8217;s topics. If you like MeioCódigo, start following <a href="http://twitter.com/meiocodigo">our twitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2009/06/25/meiocodigo-now-in-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2009/06/25/meiocodigo-now-in-twitter/</feedburner:origLink></item>
		<item>
		<title>MeioUpload project created at github</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/yyipEzHFbUo/</link>
		<comments>http://www.meiocodigo.com/2009/06/08/meioupload-project-created-at-github/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 13:02:37 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Behavior]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[meioupload]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=380</guid>
		<description><![CDATA[Juan Basso created a project hosted at github. I am unable to keep working on this behavior an he is making some updates to the code. I think github is a great tool because you can simply fork the project and make your own changes. Go check his work: http://github.com/jrbasso/MeioUpload/tree/master
]]></description>
			<content:encoded><![CDATA[<p>Juan Basso created a project hosted at github. I am unable to keep working on this behavior an he is making some updates to the code. I think github is a great tool because you can simply fork the project and make your own changes. Go check his work: <a href="http://github.com/jrbasso/MeioUpload/tree/master">http://github.com/jrbasso/MeioUpload/tree/master</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2009/06/08/meioupload-project-created-at-github/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2009/06/08/meioupload-project-created-at-github/</feedburner:origLink></item>
		<item>
		<title>meioMask 1.1.1 version released!</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/Vht6fF231sw/</link>
		<comments>http://www.meiocodigo.com/2009/05/03/meiomask-111-version-released/#comments</comments>
		<pubDate>Sun, 03 May 2009 19:59:21 +0000</pubDate>
		<dc:creator>fabiomcosta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=366</guid>
		<description><![CDATA[meioMask 1.1.1 s out!

It doesn&#8217;t change a lot of things, but i needed to realease it since there a little bug on the fixed and &#8216;repeat&#8217; mask (old &#8216;infinite&#8217;). Basically the caret was buggy on &#8216;repeat&#8217; inputs that accepts more characters than it should (i don&#8217;t know how to explain this).
Fixed masks weren&#8217;t firing the [...]]]></description>
			<content:encoded><![CDATA[<p>meioMask 1.1.1 s out!</p>

<p>It doesn&#8217;t change a lot of things, but i needed to realease it since there a little bug on the fixed and &#8216;repeat&#8217; mask (old &#8216;infinite&#8217;). Basically the caret was buggy on &#8216;repeat&#8217; inputs that accepts more characters than it should (i don&#8217;t know how to explain this).
Fixed masks weren&#8217;t firing the onkeyup event properly, causing little bugs, but it is now ok.</p>

<p>Added 2 new options:</p>

<ul>
  <li><strong>selectCharsOnFocus <em>(default=true)</em>: </strong>will select all the chars from the input when you focus it;</li>
  <li><strong>textAlign <em>(default=true)</em>: </strong>will let you control if you want to apply text-align or not on the input. This is usefull if you don&#8217;t want to align-right the inputs on reversed masks;</li>
</ul>

<p>To end changes, the project is being hosted now at <a href="http://github.com">github</a>, witch is kind of better than the old one.</p>

<p>Everyone that has 1.1 working ok is encouraged to change to 1.1.1.</p>

<p><a title="meioMask for jQuery" href="/projects/meiomask/">meioMask for jQuery</a></p>

<p><a title="meioMask for Mootools!" href="/projects/moomeiomask">meioMask for Mootools!</a></p>

<p><a title="meioMask's page at jquery.com" href="http://plugins.jquery.com/project/meiomask">meioMask’s page at jquery.com</a></p>

<p><a title="meioMask's Git project page" href="http://github.com/fabiomcosta/jquery-meiomask/tree/master">meioMask’s Git project page</a></p>

<h3>Features</h3>

<ul>
    <li>Accepts paste event;</li>
    <li>Haves fixed, reverse (currency) and repeat mask types;</li>
    <li>You can still use your hot keys and others (ex: ctrl+t, ctrl+f5, TAB …);</li>
    <li>Supports <a href="http://docs.jquery.com/Plugins/Metadata/metadata" target="_blank">metadata</a> plugin;</li>
    <li>Works with iPhone;</li>
    <li>Allow default values;</li>
    <li>Haves callbacks for invalid inputs, valid and overflow;</li>
    <li>Haves function to mask strings;</li>
    <li>Support for positive and negative numbers on reverse masks;</li>
        <li>Can auto-focus the next form element when the current input is completely filled.</li>
</ul>

<h3>Changelog</h3>

<p>v1.1.1</p>

<ul>
  <li>Fixed caret bug on &#8216;repeat&#8217; masks;</li>
  <li>Fixed keyup event on fixed masks, it is now firing propertly;</li>
  <li>Added selectCharsOnFocus option;</li>
  <li>Added textAlign option.</li>
</ul>

<p>v1.1</p>

<ul>
    <li>Mask type &#8216;infinite&#8217; is now called &#8216;repeat&#8217; (using &#8216;infinite&#8217; still works but it is deprecated). It now allows a maxLenght value to be set. MaxLength can be set by the maxLength attribute of the element or the maxLength option;</li>
    <li>You can easily set an autoTab option that will focus the next form element when the masked input is totally filled. It is true by default but you can put a jQuery selector string to match the next element you want to be focused.</li>
    <li>Deprecated &#8216;unmaskVal&#8217; function. This function is too buggy&#8230; works for most cases but not all. The best way to unmask a value is by doing it yourself;</li>
        <li>The fixedChars option is not global anymore, giving more flexibility for the masks;</li>
    <li>&#8216;phone-us&#8217; mask is now &#8216;(999) 999-9999&#8242;;</li>
    <li>Correctly fires the onChange event on reverse masked inputs.</li>
</ul>

<p>You can see the plugin page <a title="meioMask" href="/projects/meiomask/">here</a>. It contains documentation and examples. Please tell me any bug, new feature, english errors on documentation…. anything! I’ll be glad to hear your feedback and make the fixes. Hope it helps you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2009/05/03/meiomask-111-version-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2009/05/03/meiomask-111-version-released/</feedburner:origLink></item>
		<item>
		<title>Arquivos do Mini curso de Django disponibilizados</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/qyg25fwwB70/</link>
		<comments>http://www.meiocodigo.com/2009/04/26/arquivos-do-mini-curso-de-django-disponibilizados/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 02:04:35 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[flisol]]></category>
		<category><![CDATA[mini-curso]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=361</guid>
		<description><![CDATA[No dia 24 de abril de 2009, no SENAC em Natal/RN, ocorreu o FLISOL. Neste evento, eu ministrei um mini curso de django. Então estou disponibilizando tanto os arquivos_mini_curso desenvolvido durante o curso, como os slides.

Mini curso introdutório ao DjangoView more presentations from vbmendes.
]]></description>
			<content:encoded><![CDATA[<p>No dia 24 de abril de 2009, no SENAC em Natal/RN, ocorreu o FLISOL. Neste evento, eu ministrei um mini curso de django. Então estou disponibilizando tanto os <a href="http://www.meiocodigo.com/wp-content/uploads/2009/04/arquivos_mini_curso.zip">arquivos_mini_curso</a> desenvolvido durante o curso, como os <a href="http://www.slideshare.net/vbmendes/mini-curso-introdutrio-ao-django-1345709">slides</a>.</p>

<div style="width:425px;text-align:left" id="__ss_1345709"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/vbmendes/mini-curso-introdutrio-ao-django-1345709?type=powerpoint" title="Mini curso introdutório ao Django">Mini curso introdutório ao Django</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mini-curso-slides-090426210203-phpapp01&#038;stripped_title=mini-curso-introdutrio-ao-django-1345709" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mini-curso-slides-090426210203-phpapp01&#038;stripped_title=mini-curso-introdutrio-ao-django-1345709" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/vbmendes">vbmendes</a>.</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2009/04/26/arquivos-do-mini-curso-de-django-disponibilizados/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2009/04/26/arquivos-do-mini-curso-de-django-disponibilizados/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.293 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-01 22:43:04 -->
