<?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>atomiku</title>
	<atom:link href="http://atomiku.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://atomiku.com</link>
	<description></description>
	<lastBuildDate>Thu, 16 May 2013 00:30:32 +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>
		<item>
		<title>Easiest way to get Lat/Long GPS coordinates from Google Maps API with PHP</title>
		<link>http://atomiku.com/2012/12/get-gps-coordinates-from-google-api-with-php/</link>
		<comments>http://atomiku.com/2012/12/get-gps-coordinates-from-google-api-with-php/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 18:42:22 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=417</guid>
		<description><![CDATA[<p>So I built a properties rental website and they wanted to show a marker on a google map for where the property was. Well before I could start plotting markers I needed to get the coordinates from the supplied address. Easy! Below is a handy function with simple usage. You&#8217;ll need to go and sign [...]</p><p>The post <a href="http://atomiku.com/2012/12/get-gps-coordinates-from-google-api-with-php/">Easiest way to get Lat/Long GPS coordinates from Google Maps API with PHP</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>So I built a properties rental website and they wanted to show a marker on a google map for where the property was. Well before I could start plotting markers I needed to get the coordinates from the supplied address. Easy! Below is a handy function with simple usage. You&#8217;ll need to go and sign up for a free API key from: <a href="https://developers.google.com/maps/documentation/javascript/tutorial#api_key" target="_blank">https://developers.google.com/maps/documentation/javascript/tutorial#api_key</a>.</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> getCoordinates<span style="color: #009900;">&#40;</span><span style="color: #000088;">$address</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$apiKey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YOUR_KEY_HERE'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$address</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/urlencode"><span style="color: #990000;">urlencode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$address</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://maps.google.com/maps/geo?q='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$address</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;output=csv&amp;key='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$apiKey</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> getURL<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//return default data</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Now, just a quick bit of information on how to use this function. You can supply almost any type of address, postcode or country that you would normally be able to do on maps.google.com. For instance: getCoordinates(&#8217;140 Shaftesbury Avenue, London, Greater London WC2H 8HD&#8217;);</p>
<p>The getCoordinates function returns an array. 0 = lat, 1 = lng, 2 = accuracy and 3 = status. The easiest way to deal with the return array would be to use list, though.</p>
<p><code class="codecolorer php mac-classic"><span class="php"><a href="http://www.php.net/list"><span style="color: #990000;">list</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lat</span><span style="color: #339933;">,</span> <span style="color: #000088;">$lng</span><span style="color: #339933;">,</span> <span style="color: #000088;">$accuracy</span><span style="color: #339933;">,</span> <span style="color: #000088;">$status</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> getCoordinates<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Address'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code></p>
<p>I advise you use some error checking in your system, based on $status. Here are the available status codes that Google may return:</p>
<blockquote><p>
200 &#8211; Success<br />
500 – Server Error<br />
602 – Unknown Address<br />
610 – Bad API key<br />
620 – Too many queries
</p></blockquote>
<p>You are limited to around 25,000 API queries a day &#8211; that should be more than enough. (You can see your API usage in the Google API console.)</p>
<p>Credits to <a href="http://www.havlena.net/en/programming/php-google-maps-how-to-get-gps-coordinates-for-an-address/" target="_blank" rel="nofollow external">havlena.net</a> for the original idea and code.</p>
<p>The post <a href="http://atomiku.com/2012/12/get-gps-coordinates-from-google-api-with-php/">Easiest way to get Lat/Long GPS coordinates from Google Maps API with PHP</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/12/get-gps-coordinates-from-google-api-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contact Form Hijacking &#8211; How to secure your PHP contact forms from header injection</title>
		<link>http://atomiku.com/2012/12/contact-form-hijacking-how-to-secure-your-contact-forms/</link>
		<comments>http://atomiku.com/2012/12/contact-form-hijacking-how-to-secure-your-contact-forms/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 14:12:35 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=200</guid>
		<description><![CDATA[<p>When coding contact forms in PHP, most people don&#8217;t realize that unless they&#8217;ve taken the necessary measures, it will probably be vulnerable to header injections. This basically means that the attacker can put his own To and From into the email headers using the textarea or inputs in the contact form. Why do people do [...]</p><p>The post <a href="http://atomiku.com/2012/12/contact-form-hijacking-how-to-secure-your-contact-forms/">Contact Form Hijacking &#8211; How to secure your PHP contact forms from header injection</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>When coding contact forms in PHP, most people don&#8217;t realize that unless they&#8217;ve taken the necessary measures, it will probably be vulnerable to header injections. This basically means that the attacker can put his own <b>To</b> and <b>From</b> into the email headers using the textarea or inputs in the contact form. Why do people do this? For sending email spam. I found an article on anders.com, it explains this very well. As quoted from <a href="http://anders.com/projects/sysadmin/formPostHijacking/" rel="external nofollow">http://anders.com/projects/sysadmin/formPostHijacking/</a>:</p>
<address>Spammers are constantly being blacklisted and kicked off of networks. Because of this, tricking a non-spamming website into sending spam has become a high priority. One way for spammers to find vulnerable webservers is to test for CGI applications that would allow the spammer to enslave the webserver. Once a vulnerable webserver is found, the spammer can mask the true source of his spam while the enslaved webserver does the bulk of the work.</address>
<p>The article also gives a technical explanation as to how headers can be injected and why it even works in the first place. Look for &#8220;<i>I want a more technical explanation with an example!</i>&#8220;.</p>
<p>The simplest way to protect contact forms against hijacking / header injection would be to strip <strong>\r</strong> and <strong>\n</strong> from all inputs that are placed within the mail function. You can use regex for that:</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/<span style="color: #000099; font-weight: bold;">\r</span>|<span style="color: #000099; font-weight: bold;">\n</span>/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/<span style="color: #000099; font-weight: bold;">\r</span>|<span style="color: #000099; font-weight: bold;">\n</span>/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'message'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/<span style="color: #000099; font-weight: bold;">\r</span>|<span style="color: #000099; font-weight: bold;">\n</span>/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'message'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//And then you can safely use the above variables in the mail() function.</span></div></td></tr></tbody></table></div>
<p>The post <a href="http://atomiku.com/2012/12/contact-form-hijacking-how-to-secure-your-contact-forms/">Contact Form Hijacking &#8211; How to secure your PHP contact forms from header injection</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/12/contact-form-hijacking-how-to-secure-your-contact-forms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mac: Don&#8217;t like pressing ALT+3 to do a hash #? Bind the \ backspace key to hash just like on Windows!</title>
		<link>http://atomiku.com/2012/11/mac-dont-like-pressing-alt3-to-do-a-hash-bind-the-backspace-key-to-hash-just-like-on-windows/</link>
		<comments>http://atomiku.com/2012/11/mac-dont-like-pressing-alt3-to-do-a-hash-bind-the-backspace-key-to-hash-just-like-on-windows/#comments</comments>
		<pubDate>Thu, 29 Nov 2012 21:35:54 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=528</guid>
		<description><![CDATA[<p>I like my Macbook. Great for coding and internet browsing. I can&#8217;t really game on it, but who cares when you&#8217;ve got a gaming machine for those times? One small thing that annoys me is having to press ALT + 3 every time I need a hash #. Whether it be for CSS ids or [...]</p><p>The post <a href="http://atomiku.com/2012/11/mac-dont-like-pressing-alt3-to-do-a-hash-bind-the-backspace-key-to-hash-just-like-on-windows/">Mac: Don&#8217;t like pressing ALT+3 to do a hash #? Bind the \ backspace key to hash just like on Windows!</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>I like my Macbook. Great for coding and internet browsing. I can&#8217;t really game on it, but who cares when you&#8217;ve got a gaming machine for those times? One small thing that annoys me is having to press ALT + 3 every time I need a hash #. Whether it be for CSS ids or hex colors, my thumb has to perform an awkward maneuver to reach that ALT key while my middle finger presses 3.</p>
<p>Only after a year have I ever thought about binding the backslash key to hash for ease of use. But what about doing backslashes if the key is bound to hash? Well you can press FN + \ to do a backspace.</p>
<p>Here&#8217;s how to bind your keys:</p>
<p><strong>1)</strong> Download and Install <strong>KeyRemap4MacBook</strong><br />
From: <a href="http://pqrs.org/macosx/keyremap4macbook/" target="_blank" rel="external nofollow">http://pqrs.org/macosx/keyremap4macbook/</a></p>
<p><strong>2)</strong> Add an additional entry to the key binding&#8217;s XML file<br />
Go to System Preferences, click KeyRemap4Macbook, then go to the Misc &amp; Uninstall tab.<br />
Click &#8216;Open private.xml&#8217;. You&#8217;ll want to open this in TextEdit or something similar.<br />
Now add the following &lt;item&gt; so your private.xml looks like this:</p>
<div class="codecolorer-container xml mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;root<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Backslash(\) to Hash # (Alt+3)<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;appendix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>(+Alt+Backslash to Backslash)<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/appendix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;identifier<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>remap.iso_backslash_to_hash_option_backslash_to_backslash<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/identifier<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;autogen<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>--KeyToKey-- KeyCode::BACKSLASH, VK_OPTION, KeyCode::BACKSLASH<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/autogen<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;autogen<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>--KeyToKey-- KeyCode::BACKSLASH, ModifierFlag::NONE, KeyCode::KEY_3, ModifierFlag::OPTION_L<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/autogen<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/root<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></td></tr></tbody></table></div>
<p>After adding that, save the file, close, then go to the &#8216;Change Key&#8217; tab on the KeyRemap4Macbook window and click &#8216;ReloadXML&#8217;.</p>
<p><strong>3)</strong> Enable the key binding:<br />
First, check &#8216;Backslash(\) to Hash # (Alt+3)&#8217;.</p>
<p>There, you&#8217;re done. The hash # is now easily inserted by pressing the backslash key. If you need to do a backslash, press ALT+\, or if you need a pipe | just use SHIFT+ALT+\.</p>
<p>If you found this useful, share on facebook, twitter, or just make a comment. I&#8217;d appreciate the comment, actually <img src='http://atomiku.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The post <a href="http://atomiku.com/2012/11/mac-dont-like-pressing-alt3-to-do-a-hash-bind-the-backspace-key-to-hash-just-like-on-windows/">Mac: Don&#8217;t like pressing ALT+3 to do a hash #? Bind the \ backspace key to hash just like on Windows!</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/11/mac-dont-like-pressing-alt3-to-do-a-hash-bind-the-backspace-key-to-hash-just-like-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery HTML5 Placeholder Input Fallback (for browsers that do not support the placeholder attribute)</title>
		<link>http://atomiku.com/2012/11/jquery-html5-placeholder-input-fallback-for-browsers-that-do-not-support-the-placeholder-attribute/</link>
		<comments>http://atomiku.com/2012/11/jquery-html5-placeholder-input-fallback-for-browsers-that-do-not-support-the-placeholder-attribute/#comments</comments>
		<pubDate>Thu, 29 Nov 2012 14:05:07 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=523</guid>
		<description><![CDATA[<p>Hey, placeholder is a really useful HTML5 feature but unfortunately not all browsers support it. So here is a small jQuery script that will replicate placeholder functionality for older browsers. Read more for the code. Here is an input with a placeholder attribute: And here is the code: 1234567891011121314151617181920212223$&#40;document&#41;.ready&#40;function&#40;&#41;&#123; &#160; &#160; $&#40;'[placeholder]'&#41;.focus&#40;function&#40;&#41; &#123; &#160; &#160; [...]</p><p>The post <a href="http://atomiku.com/2012/11/jquery-html5-placeholder-input-fallback-for-browsers-that-do-not-support-the-placeholder-attribute/">jQuery HTML5 Placeholder Input Fallback (for browsers that do not support the placeholder attribute)</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Hey, placeholder is a really useful HTML5 feature but unfortunately not all browsers support it. So here is a small jQuery script that will replicate placeholder functionality for older browsers. Read more for the code.<span id="more-523"></span></p>
<p>Here is an input with a placeholder attribute: <input type="text" placeholder="This is placeholder text, edit me!" /></p>
<p>And here is the code:</p>
<div class="codecolorer-container javascript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'[placeholder]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> input <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>input.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> input.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'placeholder'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'placeholder'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">blur</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> input <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>input.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span> <span style="color: #339933;">||</span> input.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> input.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'placeholder'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'placeholder'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span>input.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'placeholder'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">blur</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'[placeholder]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parents</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'form'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'[placeholder]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> input <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>input.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> input.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'placeholder'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>The post <a href="http://atomiku.com/2012/11/jquery-html5-placeholder-input-fallback-for-browsers-that-do-not-support-the-placeholder-attribute/">jQuery HTML5 Placeholder Input Fallback (for browsers that do not support the placeholder attribute)</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/11/jquery-html5-placeholder-input-fallback-for-browsers-that-do-not-support-the-placeholder-attribute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>atoChat v1.0.1 preview video</title>
		<link>http://atomiku.com/2012/11/atochat-v1-0-1-preview-video/</link>
		<comments>http://atomiku.com/2012/11/atochat-v1-0-1-preview-video/#comments</comments>
		<pubDate>Thu, 08 Nov 2012 00:07:55 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[atoChat]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=513</guid>
		<description><![CDATA[<p>The video can be seen at http://atomiku.com/files/atochat/preview.html atoChat needs beta testers so please email me via the contact page if you&#8217;re interested in the free beta and leave me your email address so I can get back to you. Thanks. (atoChat v1.0.1 release imminent!).</p><p>The post <a href="http://atomiku.com/2012/11/atochat-v1-0-1-preview-video/">atoChat v1.0.1 preview video</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The video can be seen at <a href="http://atomiku.com/files/atochat/preview.html" target="_blank">http://atomiku.com/files/atochat/preview.html</a></p>
<p>atoChat needs beta testers so please email me via the contact page if you&#8217;re interested in the free beta and leave me your email address so I can get back to you. Thanks. (atoChat v1.0.1 release imminent!).</p>
<p>The post <a href="http://atomiku.com/2012/11/atochat-v1-0-1-preview-video/">atoChat v1.0.1 preview video</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/11/atochat-v1-0-1-preview-video/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>My pastebin site is back online</title>
		<link>http://atomiku.com/2012/11/my-pastebin-site-is-back-online/</link>
		<comments>http://atomiku.com/2012/11/my-pastebin-site-is-back-online/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 23:57:10 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=510</guid>
		<description><![CDATA[<p>After 2 years of the site being offline and the code hidden away on an old development machine, I decided to dig it up and put it online again. You can paste code at: http://paste.atomiku.com/. It has Private/Public Posts, Syntax Highlighting for almost every language and the ability to set an expiry time. Enjoy.</p><p>The post <a href="http://atomiku.com/2012/11/my-pastebin-site-is-back-online/">My pastebin site is back online</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>After 2 years of the site being offline and the code hidden away on an old development machine, I decided to dig it up and put it online again. You can paste code at: <a href="http://paste.atomiku.com/">http://paste.atomiku.com/</a>. It has Private/Public Posts, Syntax Highlighting for almost every language and the ability to set an expiry time. Enjoy.</p>
<p>The post <a href="http://atomiku.com/2012/11/my-pastebin-site-is-back-online/">My pastebin site is back online</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/11/my-pastebin-site-is-back-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP function for Resizing and/or Cropping images with GD</title>
		<link>http://atomiku.com/2012/11/php-function-for-resizing-and-cropping-images-with-gd/</link>
		<comments>http://atomiku.com/2012/11/php-function-for-resizing-and-cropping-images-with-gd/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 22:50:31 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=497</guid>
		<description><![CDATA[<p>There are a number of classes or functions available on the internet for resizing or cropping images, but none of them suited me for one reason or another&#8230; so here is my function. It supports JPG, PNG and GIF. It can resize an image by width, or create a cropped fixed size image. This will [...]</p><p>The post <a href="http://atomiku.com/2012/11/php-function-for-resizing-and-cropping-images-with-gd/">PHP function for Resizing and/or Cropping images with GD</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>There are a number of classes or functions available on the internet for resizing or cropping images, but none of them suited me for one reason or another&#8230; so here is my function. It supports JPG, PNG and GIF. It can resize an image by width, or create a cropped fixed size image. This will preserve aspect ratio.</p>
<p><b>Please note:</b> it doesn&#8217;t yet preserve transparency; resized/cropped images will have a white or black background. I will update the resize_image function in the near future to support PNG/GIF transparency.</p>
<p><span id="more-497"></span></p>
<p>Resizing then cropping to a 200px square:<br />
<code class="codecolorer php mac-classic"><span class="php">resize_image<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'source_image.jpg'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'image_cropped.jpg'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code></p>
<p>Resizing to width of 200px:<br />
<code class="codecolorer php mac-classic"><span class="php">resize_image<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'source_image.jpg'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'image_resized'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code></p>
<p>Download link: <a href="http://atomiku.com/files/resize_image.php.zip">http://atomiku.com/files/resize_image.php.zip</a></p>
<p>Any feedback, suggestions or improvements would be greatly appreciated so leave a comment if you have anything to say, thanks!</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> resize_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span> <span style="color: #000088;">$destination</span><span style="color: #339933;">,</span> <span style="color: #000088;">$w</span><span style="color: #339933;">,</span> <span style="color: #000088;">$h</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Get the original image dimensions + type</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/list"><span style="color: #990000;">list</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$source_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$source_height</span><span style="color: #339933;">,</span> <span style="color: #000088;">$source_type</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/getimagesize"><span style="color: #990000;">getimagesize</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Figure out if we need to create a new JPG, PNG or GIF</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$ext</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/pathinfo"><span style="color: #990000;">pathinfo</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span> PATHINFO_EXTENSION<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;jpg&quot;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;jpeg&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_gdim</span><span style="color: #339933;">=</span><a href="http://www.php.net/imagecreatefromjpeg"><span style="color: #990000;">imagecreatefromjpeg</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;png&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_gdim</span><span style="color: #339933;">=</span><a href="http://www.php.net/imagecreatefrompng"><span style="color: #990000;">imagecreatefrompng</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;gif&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_gdim</span><span style="color: #339933;">=</span><a href="http://www.php.net/imagecreatefromgif"><span style="color: #990000;">imagecreatefromgif</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Invalid file type? Return.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//If a width is supplied, but height is false, then we need to resize by width instead of cropping</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$w</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$h</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ratio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$w</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$source_width</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_width</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$w</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_height</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$source_height</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$ratio</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$desired_gdim</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecreatetruecolor"><span style="color: #990000;">imagecreatetruecolor</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$temp_height</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/imagecopyresampled"><span style="color: #990000;">imagecopyresampled</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$desired_gdim</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_gdim</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$temp_height</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$source_height</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_aspect_ratio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$source_width</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$source_height</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$desired_aspect_ratio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$w</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$h</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$source_aspect_ratio</span> <span style="color: #339933;">&gt;</span> <span style="color: #000088;">$desired_aspect_ratio</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/*<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Triggered when source image is wider<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_height</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$h</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_width</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> int <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$source_aspect_ratio</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/*<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Triggered otherwise (i.e. source image is similar or taller)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_width</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$w</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_height</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> int <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$w</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$source_aspect_ratio</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/*<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Resize the image into a temporary GD image<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_gdim</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecreatetruecolor"><span style="color: #990000;">imagecreatetruecolor</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$temp_height</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/imagecopyresampled"><span style="color: #990000;">imagecopyresampled</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_gdim</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_gdim</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$temp_height</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$source_width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$source_height</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/*<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Copy cropped region from temporary image into the desired GD image<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$x0</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_width</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$w</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$y0</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$temp_height</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$h</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$desired_gdim</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/imagecreatetruecolor"><span style="color: #990000;">imagecreatetruecolor</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$w</span><span style="color: #339933;">,</span> <span style="color: #000088;">$h</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/imagecopy"><span style="color: #990000;">imagecopy</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$desired_gdim</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$temp_gdim</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$x0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$y0</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$w</span><span style="color: #339933;">,</span> <span style="color: #000088;">$h</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/*<br />
&nbsp; &nbsp; &nbsp;* Render the image<br />
&nbsp; &nbsp; &nbsp;* Alternatively, you can save the image in file-system or database<br />
&nbsp; &nbsp; &nbsp;*/</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;jpg&quot;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;jpeg&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/imagejpeg"><span style="color: #990000;">ImageJpeg</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$desired_gdim</span><span style="color: #339933;">,</span><span style="color: #000088;">$destination</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;png&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/imagepng"><span style="color: #990000;">ImagePng</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$desired_gdim</span><span style="color: #339933;">,</span><span style="color: #000088;">$destination</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ext</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;gif&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/imagegif"><span style="color: #990000;">ImageGif</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$desired_gdim</span><span style="color: #339933;">,</span><span style="color: #000088;">$destination</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.php.net/imagedestroy"><span style="color: #990000;">ImageDestroy</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$desired_gdim</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>The post <a href="http://atomiku.com/2012/11/php-function-for-resizing-and-cropping-images-with-gd/">PHP function for Resizing and/or Cropping images with GD</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/11/php-function-for-resizing-and-cropping-images-with-gd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TotalFinder: Tabbed Mac Finder, Sort Folders on Top, and more</title>
		<link>http://atomiku.com/2012/11/totalfinder-tabbed-mac-finder-sort-folders-on-top-and-more-mac-osx/</link>
		<comments>http://atomiku.com/2012/11/totalfinder-tabbed-mac-finder-sort-folders-on-top-and-more-mac-osx/#comments</comments>
		<pubDate>Tue, 06 Nov 2012 16:55:14 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=488</guid>
		<description><![CDATA[<p>Sometimes while working on a project I would have 3 or 4 finder windows open at a time and things could get messy quite quickly. Trying to find a particular finder window that had been hidden under Firefox or Thunderbird for instance. The finder is very useful but I felt it was missing something&#8230; This [...]</p><p>The post <a href="http://atomiku.com/2012/11/totalfinder-tabbed-mac-finder-sort-folders-on-top-and-more-mac-osx/">TotalFinder: Tabbed Mac Finder, Sort Folders on Top, and more</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Sometimes while working on a project I would have 3 or 4 finder windows open at a time and things could get messy quite quickly. Trying to find a particular finder window that had been hidden under Firefox or Thunderbird for instance. The finder is very useful but I felt it was missing something&#8230; This is where TotalFinder comes in.</p>
<p>TotalFinder is a utility that allows you to have multiple tabs, plus a few extra handy features such as easily being able to Show/Hide hidden files, and my favourite: <strong>showing folders at top.</strong> I never liked the way the Finder would sort the files. There was the standard options such as sorting by Name or File Size but it would mix the files and folders together, which is annoying when you&#8217;re traversing through directories. Having folders first <em>then</em> files seems much more logical to me. Luckily <strong>TotalFinder</strong> answered my prayers on that one. So here&#8217;s a screenshot of it in action, and you can download it from <a href="http://totalfinder.binaryage.com/" target="_blank" rel="external nofollow">http://totalfinder.binaryage.com/</a>. I recommend this to absolutely every Mac user.</p>
<p><img class="alignnone  wp-image-492" title="totalfinder" src="http://atomiku.com/wordpress/wp-content/uploads/2012/11/totalfinder.png" alt="" style="width:100%;" /></p>
<p>The post <a href="http://atomiku.com/2012/11/totalfinder-tabbed-mac-finder-sort-folders-on-top-and-more-mac-osx/">TotalFinder: Tabbed Mac Finder, Sort Folders on Top, and more</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/11/totalfinder-tabbed-mac-finder-sort-folders-on-top-and-more-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show CPU / Memory / Network stats and more in the Mac OS X menubar with iStat Menus</title>
		<link>http://atomiku.com/2012/10/show-cpu-memory-network-battery-stats-in-mac-osx/</link>
		<comments>http://atomiku.com/2012/10/show-cpu-memory-network-battery-stats-in-mac-osx/#comments</comments>
		<pubDate>Fri, 26 Oct 2012 10:51:12 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=457</guid>
		<description><![CDATA[<p>Hey, just thought I&#8217;d share a nifty application I recently discovered for Mac. It&#8217;s called iStat Menus and it allows you to view a wide range of different stats straight from the menu bar. Every menu such as network, CPU usage or memory have a number of customization options. Primarily the Color and Display Format [...]</p><p>The post <a href="http://atomiku.com/2012/10/show-cpu-memory-network-battery-stats-in-mac-osx/">Show CPU / Memory / Network stats and more in the Mac OS X menubar with iStat Menus</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Hey, just thought I&#8217;d share a nifty application I recently discovered for Mac. It&#8217;s called iStat Menus and it allows you to view a wide range of different stats straight from the menu bar.</p>
<p><img class="alignnone size-full wp-image-464" title="one" src="http://atomiku.com/wordpress/wp-content/uploads/2012/10/one.png" alt="" width="568" height="132" /></p>
<p>Every menu such as network, CPU usage or memory have a number of customization options. Primarily the Color and Display Format (Pie/Graph/xx% view).  Clicking a menu item will show a nice drop-down containing a lot of useful information. Check out the memory drop-down for instance:</p>
<p><img class="alignnone size-full wp-image-481" title="two" src="http://atomiku.com/wordpress/wp-content/uploads/2012/10/two.png" alt="" width="640" height="419" /></p>
<p><img class="wp-image-466 alignright" title="three" src="http://atomiku.com/wordpress/wp-content/uploads/2012/10/three.png" alt="" width="278" height="318" /></p>
<p>Typically, Firefox is using the most ram &#8211; but that goes without saying really. iStat Menus has a replacement menu for the clock, too. I never liked the default clock menu because it didn&#8217;t show me a calendar which can be handy at times.</p>
<p><strong>Hint</strong>: You can drag to reorder the menus by holding CMD before you drag a menu item. You can also remove items this way, too, by dragging it off the bar.</p>
<p>You can buy iStat Menus for $16 from <a href="http://bjango.com/mac/istatmenus/" target="_blank" rel="external nofollow">http://bjango.com/mac/istatmenus/</a>. Sixteen dollars might seem a little steep for an app that just displays info but you can tell a lot of effort went into this and it&#8217;s only the same price as 3 pints of Lager! Have a think about <em>that</em> next time you&#8217;re at the pub.</p>
<hr style="margin-bottom: 10px;" />
<p><a href="http://atomiku.com/wordpress/wp-content/uploads/2012/10/istat.png"><img class="alignnone  wp-image-469" title="istat" src="http://atomiku.com/wordpress/wp-content/uploads/2012/10/istat.png" alt="" style="width:100%;" /></a></p>
<p>Next: Tabbed Mac Finder (literally the best productivity app I&#8217;ve used).</p>
<p>The post <a href="http://atomiku.com/2012/10/show-cpu-memory-network-battery-stats-in-mac-osx/">Show CPU / Memory / Network stats and more in the Mac OS X menubar with iStat Menus</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/10/show-cpu-memory-network-battery-stats-in-mac-osx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Brilliant HTML/CSS3 form, input and validation styles</title>
		<link>http://atomiku.com/2012/10/brilliant-htmlcss3-form-input-and-validation-styles/</link>
		<comments>http://atomiku.com/2012/10/brilliant-htmlcss3-form-input-and-validation-styles/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 20:53:18 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=439</guid>
		<description><![CDATA[<p>Below are a few excellent form designs I stumbled across while looking for inspiration. I will be adding more here as I stumble across them. Where possible, there are links to the tutorials or articles &#8211; the rest are just screenshots. WebTuts A great article / tutorial on how to design and develop a form [...]</p><p>The post <a href="http://atomiku.com/2012/10/brilliant-htmlcss3-form-input-and-validation-styles/">Brilliant HTML/CSS3 form, input and validation styles</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Below are a few excellent form designs I stumbled across while looking for inspiration. I will be adding more here as I stumble across them. Where possible, there are links to the tutorials or articles &#8211; the rest are just screenshots.</p>
<h2>WebTuts</h2>
<p>A great article / tutorial on how to design and develop a form and make it look nice with CSS3. What I like about this is the validation class style, click a field to see what I mean. <a href="http://webdesign.tutsplus.com/tutorials/site-elements/bring-your-forms-up-to-date-with-css3-and-html5-validation/" target="_blank" rel="external nofollow">Visit here</a>.</p>
<p><a href="http://atomiku.com/wordpress/wp-content/uploads/2012/10/form-webtuts.png"><img class="alignnone  wp-image-440" title="form-webtuts" src="http://atomiku.com/wordpress/wp-content/uploads/2012/10/form-webtuts.png" alt="" width="444" height="244" /></a></p>
<hr />
<h2>JetPack</h2>
<p><a href="http://atomiku.com/wordpress/wp-content/uploads/2012/10/form-jetpak.jpg"><img class="alignnone  wp-image-446" title="form-jetpak" src="http://atomiku.com/wordpress/wp-content/uploads/2012/10/form-jetpak.jpg" alt="" width="444" height="260" /></a></p>
<hr />
<h2>Lore</h2>
<p><a href="http://atomiku.com/wordpress/wp-content/uploads/2012/10/form-lore.jpg"><img class="alignnone  wp-image-448" title="form-lore" src="http://atomiku.com/wordpress/wp-content/uploads/2012/10/form-lore.jpg" alt="" width="445" height="255" /></a></p>
<p>The post <a href="http://atomiku.com/2012/10/brilliant-htmlcss3-form-input-and-validation-styles/">Brilliant HTML/CSS3 form, input and validation styles</a> appeared first on <a href="http://atomiku.com">atomiku</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/10/brilliant-htmlcss3-form-input-and-validation-styles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
