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

<channel>
	<title>KISS... me. Please?</title>
	<atom:link href="http://gonun13.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gonun13.wordpress.com</link>
	<description>Trying to make my web dev world... simple.</description>
	<lastBuildDate>Tue, 22 Mar 2011 11:38:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gonun13.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>KISS... me. Please?</title>
		<link>http://gonun13.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gonun13.wordpress.com/osd.xml" title="KISS... me. Please?" />
	<atom:link rel='hub' href='http://gonun13.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A useful tip for TAR (pattern matching &amp; file globbing)</title>
		<link>http://gonun13.wordpress.com/2011/03/22/a-useful-tip-for-tar-pattern-matching-file-globbing/</link>
		<comments>http://gonun13.wordpress.com/2011/03/22/a-useful-tip-for-tar-pattern-matching-file-globbing/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 11:37:26 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/?p=89</guid>
		<description><![CDATA[I&#8217;ll admit it. I&#8217;m a little lazy with this tip sharing effort. No excuses. Anyhow, the other day I came across a situation when trying to compact a group of files. At first glance seemed really simple but proved to be a little more challenging. Problem: I wanted to tar all the .ini files from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=89&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll admit it. I&#8217;m a little lazy with this tip sharing effort. No excuses. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Anyhow, the other day I came across a situation when trying to compact a group of files. At first glance seemed really simple but proved to be a little more challenging.</p>
<p><strong><em>Problem:</em></strong><br />
I wanted to tar all the .ini files from a certain folder. From anywhere. <strong>Without full paths</strong>.</p>
<blockquote><p><code>tar -jcvf backup.tar.bz2 <em>full_path</em>/*.ini</code></p>
<p><span style="color:#ff0000;"><strong>NOPE! Full paths!</strong></span></p></blockquote>
<p>Lets try the -C option to switch to the relevant path before gobbling so that we only get the files without the path.</p>
<blockquote><p><code>tar -jcvf backup.tar.bz2 -C <em>full_path</em> *.ini</code></p>
<p><span style="color:#ff0000;"><strong>NOPE! No files found!</strong></span></p></blockquote>
<p>Well, it seems that when you&#8217;re using -C, tar expects a list of files. And while pattern matching should be possible you&#8217;re not actually in the right path when trying to get the list of files. Get it? Tar is there expecting files from that path but the CLI is not.</p>
<p><strong><em>Solution:</em></strong><br />
So after few too many tries to find a <strong>simple</strong> solution I arrived at this:</p>
<blockquote><p>tar -jcvf backup.tar.bz2 -C <em>full_path</em> `(cd <em>full_path</em>; ls *.ini)`</p></blockquote>
<p>Not so pretty but this way you might even apply other gobbling commands like <em>find</em> to better suit your needs. I bet sysadmins were already in on this issue but developers trying to code backup or conversion utilities might find it useful. Well, did you&#8230; punk?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=89&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2011/03/22/a-useful-tip-for-tar-pattern-matching-file-globbing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript debug with Firebug (console.log)</title>
		<link>http://gonun13.wordpress.com/2010/09/29/javascript-debug-with-firebug-console-log/</link>
		<comments>http://gonun13.wordpress.com/2010/09/29/javascript-debug-with-firebug-console-log/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 13:50:40 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/?p=75</guid>
		<description><![CDATA[Do you waste countless hours debugging Javascript trying to figure out what it is happening? Alert much? Sometimes the simplest solutions are hidden in plain sight. Look no more, just use this in your code&#8230; console.log('so easy...:', yourVarObjectWhatever); Then, just open up your Firebug console (you&#8217;re using it right?) and marvel at the wondreous info [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=75&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Do you waste countless hours debugging Javascript trying to figure out what it is happening? Alert much? Sometimes the simplest solutions are hidden in plain sight.</p>
<p>Look no more, just use this in your code&#8230;</p>
<blockquote><p><code>console.log('so easy...:', yourVarObjectWhatever);</code></p></blockquote>
<p>Then, just open up your Firebug console (you&#8217;re using it right?) and marvel at the wondreous info you were looking for all along. In a way it&#8217;s similar to a var_dump from PHP.</p>
<p>Yep, I didn&#8217;t know either. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=75&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2010/09/29/javascript-debug-with-firebug-console-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
		<item>
		<title>Short HTML5 Presentation</title>
		<link>http://gonun13.wordpress.com/2010/07/23/short-html5-presentation/</link>
		<comments>http://gonun13.wordpress.com/2010/07/23/short-html5-presentation/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 22:36:03 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/?p=76</guid>
		<description><![CDATA[Almost forgot I have a blog&#8230; here are the slides from a presentation about HTML5 I did more than a month ago. Here it is [google].<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=76&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Almost forgot I have a blog&#8230; here are the slides from a presentation about HTML5 I did more than a month ago.</p>
<p><a href="http://docs.google.com/present/view?id=dcdk3w8w_25c6hcxcdx" target="_blank">Here it is</a> [google].</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=76&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2010/07/23/short-html5-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
		<item>
		<title>Presentation about HTML5 (Portuguese)</title>
		<link>http://gonun13.wordpress.com/2010/03/07/presentation-about-html5-portuguese/</link>
		<comments>http://gonun13.wordpress.com/2010/03/07/presentation-about-html5-portuguese/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 10:38:56 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/?p=67</guid>
		<description><![CDATA[Here are the slides I made for a HTML5 presentation at the riapt event. Might draft a better document and translate it someday. Slides HTML5 (Portuguese)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=67&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are the slides I made for a HTML5 presentation at the riapt event. Might draft a better document and translate it someday.</p>
<p><a href="http://docs.google.com/present/view?id=dcdk3w8w_19cbr65scc&amp;interval=5">Slides HTML5</a> (Portuguese)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=67&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2010/03/07/presentation-about-html5-portuguese/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick domain name lookup?</title>
		<link>http://gonun13.wordpress.com/2010/02/26/quick-domain-name-lookup/</link>
		<comments>http://gonun13.wordpress.com/2010/02/26/quick-domain-name-lookup/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 16:15:52 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dnslookup]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/?p=56</guid>
		<description><![CDATA[Until further notice, this is the fastest and simpler way to find free domain names&#8230; dig domain_name +short Just type it in your linux/unix/os x console or exec from your script. If this returns an IP address, then it&#8217;s taken. If it comes out empty, then it&#8217;s most likely available.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=56&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Until further notice, this is the fastest and simpler way to find free domain names&#8230;</p>
<blockquote><p>dig <em>domain_name</em> +short</p></blockquote>
<p>Just type it in your linux/unix/os x console or exec from your script.</p>
<p>If this returns an IP address, then it&#8217;s <span style="color:#ff0000;">taken</span>.</p>
<p>If it comes out empty, then it&#8217;s <em>most likely</em> <span style="color:#339966;">available</span>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=56&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2010/02/26/quick-domain-name-lookup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
		<item>
		<title>display: inline-block</title>
		<link>http://gonun13.wordpress.com/2010/01/30/display-inline-block/</link>
		<comments>http://gonun13.wordpress.com/2010/01/30/display-inline-block/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 14:32:38 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/?p=22</guid>
		<description><![CDATA[If you have ever done any web design with CSS and are trying to move away from tables, I bet you had to face this issue before. Let&#8217;s say you need to have 2 nice boxes, side by side: I&#8217;m box 1 I&#8217;m box 2 Crap. They are not side by side. This happens because [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=22&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you have ever done any web design with CSS and are trying to move away from tables, I bet you had to face this issue before.</p>
<p>Let&#8217;s say you need to have 2 nice boxes, side by side:</p>
<div style="text-align:center;margin-left:40%;margin-right:40%;">
<div style="border:2px solid black;background-color:#ffcc66;width:100px;height:40px;padding:10px;">I&#8217;m box 1</div>
<div style="border:2px solid black;background-color:#55aa66;width:100px;height:40px;padding:10px;">I&#8217;m box 2</div>
</div>
<p>Crap. They are not side by side. This happens because I used a div, a block element, that always adds a new line to elements. Well, to avoid this you add the property <em><strong>display:inline </strong></em>to the boxes. This will tell the two elements that they should display in the same line.</p>
<div style="text-align:center;padding:1em;">
<div style="border:2px solid black;background-color:#ffcc66;width:100px;height:40px;display:inline;padding:10px;">I&#8217;m box 1</div>
<div style="border:2px solid black;background-color:#55aa66;width:100px;height:40px;display:inline;padding:10px;">I&#8217;m box 2</div>
</div>
<p>Ok, they are in the same line now. But wait&#8230; those don&#8217;t look like the same boxes anymore. Yep, that&#8217;s because when you add <em><strong>display:inline</strong></em> you lose the ability to control <strong>margin</strong>, <strong>width</strong> and <strong>height</strong>. Nightmare ensues. You already want to go back to tables. But wait&#8230; there is the best of both worlds: <em><strong>display:inline-block</strong></em></p>
<div style="text-align:center;">
<div style="border:2px solid black;background-color:#ffcc66;width:100px;height:40px;display:inline-block;padding:10px;">I&#8217;m box 1</div>
<div style="border:2px solid black;background-color:#55aa66;width:100px;height:40px;display:inline-block;padding:10px;">I&#8217;m box 2</div>
</div>
<p>Done! It is this simple. No more fancy stuff required.</p>
<p>Some of you might go &#8220;Duh, that one was obvious.&#8221; but many others will say &#8220;Doh, never try that one before.&#8221;. That makes it worthwhile to mention, specially because not all browsers supported this correctly in the past. So, more excuses to use tables for formatting.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=22&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2010/01/30/display-inline-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
		<item>
		<title>Loader Images, Animated GIFs&#8230; and changing them.</title>
		<link>http://gonun13.wordpress.com/2010/01/29/loader-images-animated-gifs-and-changing-them/</link>
		<comments>http://gonun13.wordpress.com/2010/01/29/loader-images-animated-gifs-and-changing-them/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 13:08:20 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Animated GIFs]]></category>
		<category><![CDATA[GDlibrary]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[Loaders]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/?p=5</guid>
		<description><![CDATA[Well, you know those little helpful images that show you when something is loading? They are usually found around AJAX calls and they are named preloaders. There are some very useful websites for creating them like Ajaxload, Loadinfo and my favourite Preloaders. Problem: Yet, I wanted to be able to change their background, dynamically, to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=5&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, you know those little helpful images that show you when something is loading? They are usually found around AJAX calls and they are named preloaders. There are some very useful websites for creating them like <a title="Ajaxload" href="http://www.ajaxload.info/">Ajaxload</a>, <a href="http://www.loadinfo.net">Loadinfo</a> and my favourite <a href="http://www.preloaders.net/">Preloaders</a>.</p>
<p><strong><em>Problem:</em></strong></p>
<p>Yet, I wanted to be able to change their background, dynamically, to adjust to themes being used on a web app. As you might know, images need to be contrasted accordingly to their background or they will end up jagged, blocky and you know&#8230; looking bad. And, with animated GIFs the problem is even worst. So, I created a preloader image with a transparent background (made from white) and went on to see how I could solve my problem.</p>
<p><strong><em>Solution:</em></strong></p>
<p>The first thing that comes to mind is, how do they do it? Since those websites already customize those images to your liking, what they&#8217;re using would solve my problem. Drawing from experience, I knew that they were using some kind of server side image manipulation library to achieve that outcome. So on I went to <a href="http://www.php.net">PHP</a> and the old faithful <a href="http://www.boutell.com/gd/">GD graphic library</a>.</p>
<p><strong><span style="color:#ff0000;">ERROR</span>. </strong>Well, a little delving into the docs and some quick searches later, I was getting nowhere. GD supports animated gifs but only after 2.0, still the bundled lib that comes with PHP is not the same. And still the solution using GD wasn&#8217;t elegant at all.</p>
<p style="text-align:left;"><span style="color:#339966;"><strong>SUCESS</strong></span>. Finally giving up, I explored the other libraries. In its favor, PHP has support for many more. Highly recommend from the <a href="http://perl.org">PERL</a> world, comes <a href="http://www.imagemagick.org/">ImageMagick</a>. So I quickly set it up on my server and scrimmage the fix based on an example from the PHP docs, A couple of tries and here is the result:</p>
<ul>
<div style="background-color:#f3f2db;border:1px solid black;padding:5px;">
<pre>$path = '/path/to/your/animated.gif';
$img = new Imagick($path);
$color = new ImagickPixel("#E2E1EE"); // your color
// resize and colorize all frames
foreach ($img as $frame)
{
   $frame-&gt;thumbnailImage(24, 22);
   $frame-&gt;setImagePage(24, 22, 0, 0);
   $frame-&gt;borderImage($color,1,1);
}
header("Content-Type: image/gif");
echo $img-&gt;getImagesBlob();
exit;</pre>
</div>
</ul>
<p><strong><em>Bonus Tip:</em></strong></p>
<p>You might ask why the resize? Well, if you get the preloader image in a larger size the resize algorithm will take care of adjusting the transition pixels to match the background color of your choice. Great, huh?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=5&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2010/01/29/loader-images-animated-gifs-and-changing-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Fix Sharing</title>
		<link>http://gonun13.wordpress.com/2010/01/29/quick-fix-sharing/</link>
		<comments>http://gonun13.wordpress.com/2010/01/29/quick-fix-sharing/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:37:17 +0000</pubDate>
		<dc:creator>gonun13</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[First Post]]></category>

		<guid isPermaLink="false">http://gonun13.wordpress.com/2010/01/29/quick-fix-sharing/</guid>
		<description><![CDATA[Well, it&#8217;s time to start giving something back. I will use this space to share my solutions with the web dev world. Problems usually have a quick solution and sometimes it&#8217;s just a matter of finding the right one. If what I post helps anyone, than it was worth doing it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=3&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s time to start giving something back. I will use this space to share my solutions with the web dev world. Problems usually have a quick solution and sometimes it&#8217;s just a matter of finding the right one. If what I post helps anyone, than it was worth doing it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gonun13.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gonun13.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gonun13.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gonun13.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gonun13.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gonun13.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gonun13.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gonun13.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gonun13.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gonun13.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gonun13.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gonun13.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gonun13.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gonun13.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gonun13.wordpress.com&amp;blog=11727345&amp;post=3&amp;subd=gonun13&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gonun13.wordpress.com/2010/01/29/quick-fix-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d51a1795150c545e78e1c7d97df90d8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gonun13</media:title>
		</media:content>
	</item>
	</channel>
</rss>
