<?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>Sun, 16 Dec 2012 01:15:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<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>django-meio-easytags 0.4 released!</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/djZHmu5kNio/</link>
		<comments>http://www.meiocodigo.com/2011/03/02/django-meio-easytags-0-4-released/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 04:53:32 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[template filters]]></category>
		<category><![CDATA[template tags]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=519</guid>
		<description><![CDATA[I just released the version 0.4 of the django-meio-easytags. I added a subclass of django&#8217;s default template tags Library. And now it&#8217;s easier to create a template tag. Take a look. Projects page Read the Docs Download from Github]]></description>
				<content:encoded><![CDATA[<p>I just released the version 0.4 of the django-meio-easytags. I added a subclass of django&#8217;s default template tags Library. And now it&#8217;s easier to create a template tag. Take a look.</p>

<p><a href="http://meiocodigo.com/projects/django-meio-easytags/">Projects page</a></p>

<p><a href="http://readthedocs.org/docs/django-meio-easytags/en/latest/index.html">Read the Docs</a></p>

<p><a href="https://github.com/vbmendes/django-meio-easytags">Download from Github</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2011/03/02/django-meio-easytags-0-4-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2011/03/02/django-meio-easytags-0-4-released/</feedburner:origLink></item>
		<item>
		<title>django-meio-easytags 0.3 released!</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/1Do0btCZLnE/</link>
		<comments>http://www.meiocodigo.com/2011/02/26/django-meio-easytags-0-3-released/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 02:25:49 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[template filters]]></category>
		<category><![CDATA[template tags]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=513</guid>
		<description><![CDATA[I released today the version 0.3 of django-meio-easytags. Now it supports template tags that accepts positional arguments (&#42;args) and keyword arguments (&#42;&#42;kwargs). If you don&#8217;t know how to use this, take a look at Python FAQ. In this release I included some documentation and created a page for the project. Any doubts, suggestions, feature requests, [...]]]></description>
				<content:encoded><![CDATA[<p>I released today the version 0.3 of django-meio-easytags. Now it supports template tags that accepts positional arguments (&#42;args) and keyword arguments (&#42;&#42;kwargs). If you don&#8217;t know how to use this, take a look at <a href="http://docs.python.org/faq/programming#how-can-i-pass-optional-or-keyword-parameters-from-one-function-to-another">Python FAQ</a>. In this release I included some <a href="http://django-meio-easytags.readthedocs.org/en/latest/index.html">documentation</a> and created a <a href="http://meiocodigo.com/projects/django-meio-easytags/">page for the project</a>.</p>

<p>Any doubts, suggestions, feature requests, feel free to mail me, open an issue at Github or leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2011/02/26/django-meio-easytags-0-3-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2011/02/26/django-meio-easytags-0-3-released/</feedburner:origLink></item>
		<item>
		<title>django-meio-easytags released!</title>
		<link>http://feedproxy.google.com/~r/meiocodigo/~3/aq9SC_92jeU/</link>
		<comments>http://www.meiocodigo.com/2011/02/21/django-meio-easytags-released/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 04:41:03 +0000</pubDate>
		<dc:creator>vbmendes</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.meiocodigo.com/?p=503</guid>
		<description><![CDATA[django-meio-easytags An easy way to create and parse custom template tags for Django's templating system.]]></description>
				<content:encoded><![CDATA[<p>I just released a project I have been working today. A long time ago, I was tired of parsing my template tags by hand, then I created a BaseNode to do this work for me and all I had to do was subclass it and define the method to render the context.</p>

<p>Last friday, my friend <a href="http://www.diegofleury.com.br/">Diego Fleury</a> asked me for some help developing a template tag and I talked to him about my old BaseNode. When I showed the code to him, he didn&#8217;t understand it so did I. So I wanted to make it cleaner and developed the project django-meio-easytags. It&#8217;s hosted at Github (<a href="http://github.com/vbmendes/django-meio-easytags/">http://github.com/vbmendes/django-meio-easytags/</a>).</p>

<p>It&#8217;s very easy to create your own template tags with it. Take a look: <a href="https://github.com/vbmendes/django-meio-easytags/blob/master/README">https://github.com/vbmendes/django-meio-easytags/blob/master/README</a></p>

<p>Any comments and contributions are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meiocodigo.com/2011/02/21/django-meio-easytags-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.meiocodigo.com/2011/02/21/django-meio-easytags-released/</feedburner:origLink></item>
		<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>0</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 [...]]]></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>11</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 [...]]]></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 you apply keydown, keypress or [...]]]></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>3</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 [...]]]></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 [...]]]></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>
	</channel>
</rss><!-- Dynamic page generated in 3.745 seconds. --><!-- Cached page generated by WP Super-Cache on 2013-05-16 14:19:37 --><!-- super cache -->
