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

<channel>
	<title>Webmista Freetalkers</title>
	<atom:link href="http://www.webmista.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmista.com/blog</link>
	<description>Webmista.. freetalkers inflamáveis</description>
	<lastBuildDate>Sat, 08 Oct 2011 15:39:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Target blank links with Jquery</title>
		<link>http://www.webmista.com/blog/2011/10/target-blank-links-with-jquery/</link>
		<comments>http://www.webmista.com/blog/2011/10/target-blank-links-with-jquery/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 15:38:46 +0000</pubDate>
		<dc:creator>Rodolfo Martinez</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.webmista.com/blog/?p=798</guid>
		<description><![CDATA[Sometimes I need just to update a site and the document type is in Strict mode, for me in the beggining I used to use target=blank on links, but the XHTML 1.0 in Strit mode don´t allow us to use this attribute. So how to do a site with no warning and errors in the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I need just to update a site and the document type is in Strict mode, for me in the beggining I used to use target=blank on links, but the XHTML 1.0 in Strit mode don´t allow us to use this attribute.<br />
So how to do a site with no warning and errors in the html without tagert=blank? Simple let´s take Jquery do it for us.</p>
<p>The example above I use the rel element, but you can use a class or a id if you want, rel element is more semantic.</p>
<p><strong>Javascript</strong></p>
<pre class="wp-code-highlight prettyprint linenums:1">$('a[@rel$='external']').click(function(){
this.target = &quot;_blank&quot;;
});</pre>
<p><strong>Html</strong></p>
<pre class="wp-code-highlight prettyprint linenums:1">&lt;a href=&quot;http://www.webmista.com&quot; rel=&quot;external&quot;&gt;webmista&lt;/a&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmista.com/blog/2011/10/target-blank-links-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>convert unixtime to timestamp</title>
		<link>http://www.webmista.com/blog/2011/10/convertento-unixtime-para-timestamp-e-vice-versa/</link>
		<comments>http://www.webmista.com/blog/2011/10/convertento-unixtime-para-timestamp-e-vice-versa/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 15:12:20 +0000</pubDate>
		<dc:creator>Rodolfo Martinez</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[unixtime]]></category>

		<guid isPermaLink="false">http://www.webmista.com/blog/?p=790</guid>
		<description><![CDATA[This for me has always been an annoying thing, data is to be made of days, months and years and not a few numbers that have to be converted all the time. I want to take a look at the database and say &#8220;son of a beautiful mother, he made the change and is now [...]]]></description>
			<content:encoded><![CDATA[<p>This for me has always been an annoying thing, data is to be made of days, months and years and not a few numbers that have to be converted all the time.<br />
I want to take a look at the database and say &#8220;son of a beautiful mother, he made the change and is now he´s saying that he did it three days ago.&#8221;<br />
I hope you enjoy.</p>
<p>So there is the php version to convert</p>
<p><strong>Normal date to UNIXTIME</strong></p>
<pre class="wp-code-highlight prettyprint linenums:1">
&lt;?php
echo 'date in unixtime :: '.strtotime('1th December 2011 11:12:34 PM (GMT)');
?&gt;
</pre>
<p>So if you want other type of conversions, for example, just the day or without the time take a look at the<a href="http://php.net/manual/function.date.php" title="funcao php de data" target="_blank"> php manual to see the many kind of uses</a></p>
<p><strong>UNIXTIME for default time</strong></p>
<pre class="wp-code-highlight prettyprint linenums:1">
&lt;?php
echo 'Default date and time ::'.date('jS F Y h:i:s A (T)', '1256512354');
?&gt;
</pre>
<p><strong>Mysql version</strong></p>
<pre class="wp-code-highlight prettyprint linenums:1">

mysql&gt; SELECT UNIX_TIMESTAMP();
        -&gt; 1196440210
mysql&gt; SELECT UNIX_TIMESTAMP('2007-11-30 10:30:19');
        -&gt; 1196440219

mysql&gt; SELECT UNIX_TIMESTAMP('2005-03-27 03:00:00');
+---------------------------------------+
| UNIX_TIMESTAMP('2005-03-27 03:00:00') |
+---------------------------------------+
|                            1111885200 |
+---------------------------------------+
mysql&gt; SELECT UNIX_TIMESTAMP('2005-03-27 02:00:00');
+---------------------------------------+
| UNIX_TIMESTAMP('2005-03-27 02:00:00') |
+---------------------------------------+
|                            1111885200 |
+---------------------------------------+
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmista.com/blog/2011/10/convertento-unixtime-para-timestamp-e-vice-versa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check all checkboxes with Jquery</title>
		<link>http://www.webmista.com/blog/2011/10/check-todos-checkboxes-com-jquery/</link>
		<comments>http://www.webmista.com/blog/2011/10/check-todos-checkboxes-com-jquery/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 14:28:41 +0000</pubDate>
		<dc:creator>Rodolfo Martinez</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[checkbox]]></category>

		<guid isPermaLink="false">http://www.webmista.com/blog/?p=768</guid>
		<description><![CDATA[I´ve been working with Jquery for a loooong time, so I will share some experiences. Above an example how to select all checkboxes with one single checkbox. It´s a very simple example an then you could made a lot of modifications. html &#60;div&#62; &#60;ul&#62; &#60;li&#62;&#60;input class=&#34;chkAll&#34; type=&#34;checkbox&#34; name=&#34;&#34; value=&#34;all&#34; /&#62; Select All &#60;/li&#62; &#60;li&#62;&#60;input class=&#34;chk&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>I´ve been working with Jquery for a loooong time, so I will share some experiences.<br />
Above an example how to select all checkboxes with one single checkbox.<br />
It´s a very simple example an then you could made a lot of modifications.</p>
<p><strong>html</strong></p>
<pre class="wp-code-highlight prettyprint linenums:1">
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;input class=&quot;chkAll&quot; type=&quot;checkbox&quot; name=&quot;&quot; value=&quot;all&quot; /&gt; Select All &lt;/li&gt;
&lt;li&gt;&lt;input class=&quot;chk&quot; type=&quot;checkbox&quot; name=&quot;&quot; value=&quot;1&quot; /&gt; item 1&lt;/li&gt;
&lt;li&gt;&lt;input class=&quot;chk&quot; type=&quot;checkbox&quot; name=&quot;&quot; value=&quot;2&quot; /&gt; item 2&lt;/li&gt;
&lt;li&gt;&lt;input class=&quot;chk&quot; type=&quot;checkbox&quot; name=&quot;&quot; value=&quot;3&quot; /&gt; item 3&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</pre>
<p><strong>js</strong></p>
<pre class="wp-code-highlight prettyprint linenums:1">
$(&quot;.chkAll&quot;).click(function(){//remember that this will work in the element whith the class chkAll
if( $(this).is(':checked') ){
$(this).parent().parent().find(':checkbox').attr('checked', true);
}else{
$(this).parent().parent().find(':checkbox').attr('checked', false);
}
})</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmista.com/blog/2011/10/check-todos-checkboxes-com-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

