<?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>web enavu &#187; Tutorials</title>
	<atom:link href="http://web.enavu.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://web.enavu.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 27 Jul 2010 15:47:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Web Forms: Semantic Mark Up in our Forms [part 2]</title>
		<link>http://web.enavu.com/snippets/web-forms-semantic-mark-up-in-our-forms-part-2/</link>
		<comments>http://web.enavu.com/snippets/web-forms-semantic-mark-up-in-our-forms-part-2/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 23:52:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1836</guid>
		<description><![CDATA[Creating forms can be a tricky subject, especially if you go in the table-less path. In this article we discuss the methods of creating semantic forms.]]></description>
			<content:encoded><![CDATA[<p>Creating forms can be a tricky subject, especially if you go in the table-less path. In this article we discuss the methods of creating semantic forms.<span id="more-1836"></span></p>
<p>In the first part of this series we discussed the ways we can help our users to use our forms, today we are going to review how to create forms from the perspective of a Web Developer. I would like to state that this is only one way to accomplish this and there are alternative ways.</p>
<h2>Preface</h2>
<p>Using tables is something I do not like to do unless i am truly forced to by the circumstances (like tabular data). Tables is something you definitely can do without tables, all you need is some good clean html and css. Let&#8217;s create a clean and simple form using pure html and css. And discuss other possible techniques.</p>
<h3>Semantic Form Type 1</h3>
<p>First let us lay down the HTML ground work on which we can start building our form.</p>
<pre class="html" name="code">&lt;form class="form" &gt;
    &lt;fieldset&gt;
		&lt;legend&gt;Semantic Form&lt;/legend&gt;
        &lt;div&gt;
        	&lt;label&gt;First Name:&lt;/label&gt;
            &lt;input type="text" class="field" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;label&gt;Last Name:&lt;/label&gt;
            &lt;input type="text" class="field" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;label&gt;Address:&lt;/label&gt;
            &lt;input type="text" class="field" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;label&gt;Phone:&lt;/label&gt;
            &lt;input type="text" class="field phone" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;input type="submit" value="submit" /&gt;
        &lt;/div&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<p>In the code above you will notice I use div&#8217;s to horizontally separate the fields. You can use unordered/ordered lists, paragraphs or any other block element.</p>
<p>Now let&#8217;s style the simple form.</p>
<pre class="css" name="code">.form { width:250px; margin:50px auto;} /* set a width for our form, and center it with some spacing above */
.form fieldset {border-top:1px solid #ccc;} /* just for styling the top of the fieldset */
.form fieldset legend {font-size:1.2em; font-weight:600; padding:0px 5px 0px 0px;} /* add some styling to form header */
.form div {clear:both; padding:10px 0px;} /*clear the floated label and input */
.form label {display:block; float:left; width:46%;} /* position the labels to the left */
.form input.field {float:left; margin-left:3%; width:47%;} /* position the input */
</pre>
<p>Keep in mind the above code has had a Eric Meyer reset which removed all margins paddings and borders. As you can see i have added a comment for what each line does in the CSS.</p>
<p>That was easy, simple clean form that just works!</p>
<h3>The Other Possible Methods</h3>
<p>The method above is one of many possible solutions. I have seen people use Unordered Lists instead of my div&#8217;s and others use paragraphs they are all block level elements so they will work just fine. In my demo you will notice the labels float to the left of our input fields, you can also create forms with the text being above each field, all you have to do is remove the float and display the label block! Vuala you have a whole new style in 2 steps!</p>
<p>You can also easily create this into a two column form by simply adding a new fieldset that has its own set width and is floated, it&#8217;s as simple as that!</p>
<h3>What&#8217;s Next</h3>
<p>In our next installment of Web Forms we will talk about validation, the good, the bad and the ugly! Stay tuned for a series that will truly talk about every single aspects of Web Forms!</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/snippets/web-forms-semantic-mark-up-in-our-forms-part-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Web Forms: Types of User Assistance [part 1]</title>
		<link>http://web.enavu.com/tutorials/web-forms-types-of-user-assistance-part-1/</link>
		<comments>http://web.enavu.com/tutorials/web-forms-types-of-user-assistance-part-1/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 04:22:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://tutsvalley.com/?p=837</guid>
		<description><![CDATA[In this series we talk about web forms and the best practices we have gathered as experienced web developers. This first part talks about User Assistance.]]></description>
			<content:encoded><![CDATA[<p>In this series we talk about web forms and the best practices we have gathered as experienced web developers. This first part talks about User Assistance.<span id="more-837"></span></p>
<h1>Series Introduction</h1>
<p>If you want to buy something from the internet, or to post a comment on some blog, or buy an airplane ticket, or pay for electricity, or be a part of some social network and so on there is one thing standing in your way, a <strong>web form</strong>.</p>
<p>How many times have you simply given up from something because of that web form? Poor explanations, enormous data you need to fill out (and a part of them they won’t even use), bad organization and many other things that make you give up.</p>
<p><em>In this series of articles we go over all the aspects of creating captivating forms that will help your users.</em></p>
<h2>Introduction</h2>
<p>In this part of the series we’re going to talk about different types of assisting our users in filling out our form, about the pros and cons, and check out how some of the major websites deal with it, and where they might be making mistakes.</p>
<h1>Let’s start.</h1>
<h2>Why to help?</h2>
<p>A form is the only thing standing between you and the potential customer, user, business partner and everybody trying to interact with you. You both want the form to be completed but not everyone completes it, and in most cases that happens because of a poorly created form. A part of a poor form is bad user assistance, improving it will improve the completion rate of your form and that’s what you need.</p>
<h2>When to help?</h2>
<p>Sometimes we don’t really understand what or why we need to fill in some data, that’s where user assistance jumps in to help us resolve our doubts.</p>
<ul>
<li>When you need something filled in a specific format (like phone numbers and dates)</li>
<li>When you need some data unfamiliar to many people (like credit card security number, SWIFT, IBAN)</li>
<li>When you are asking for private data (like credit card – let them know it’s safe, email – let them know it won’t be used for spamming)</li>
<li>When not all the fields are required (simply put the * sign on required fields, it works perfect and users are use to it)</li>
<li>When you are asking for specific information that you need but the user might not be informed about (asking about feedback on a certain subject)</li>
</ul>
<p>At the end it all depends on the forms purpose, and a good way to know what to do is to check how others did it, but don’t copy it, try to use it and you will know what you don’t like about the assistance in their forms, what you think they forgot or added without a need for it and you will get the idea of what assistance your form needs.</p>
<p>After you make it, get some people of different age to test it (friends, family) and they can help you decide <strong>when you really need to help your users.</strong></p>
<h2>Where and How?</h2>
<p>Well the possibilities are enourmous. You can make the help user activated, on field hover activated, on focus activated, inline, inside a modal window, bellow a field,  after a field, bellow a label, on top of a field, before the form after the form (those 2 aren’t suggested if you are referring to a specific field) and many more ways.</p>
<p><strong>Where</strong> depends on the design, the amount of help text, how much space do we have for the help, will it interfere with the rest of the form and so on.</p>
<p><strong>How </strong>really depends on what kind of help are you showing. Is it a rule like “<em>minimum 5 characters”</em> or a tip like <em>“use _ &#8211; . for a more secure password”</em> or maybe a bigger explanation like why we need some information like facebook explains why they need our birthday when we register.</p>
<p>Let’s take a look at some major websites to see how and try to see why they do it the way they do.</p>
<p><strong>GMAIL – Always visible help</strong></p>
<p><em><a href="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-14-at-8.00.21-PM.png"><img class="alignnone size-full wp-image-1831" title="Screen shot 2010-06-14 at 8.00.21 PM" src="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-14-at-8.00.21-PM.png" alt="gmail" width="558" height="252" /></a></em></p>
<p>Gmail did a great job explaining fields that might not be very clear without them. For example this “recovery email” field, i don’t think anybody would know what’s it for without the description.</p>
<p>When to use this type?</p>
<ul>
<li>For fields that most users won’t know what they are for (like the recovery password example)</li>
<li>For fields where the data must be in a special format or have some rules like min characters, characters type and such.</li>
</ul>
<p>When using this type of assistance the best practice is to make the text color lighter than the rest of the form content text (as you can see in the picture above, it makes it easy for our users to focus on the rest of the content).</p>
<p><strong>YAHOO – Help activated on field focus</strong></p>
<p><strong> </strong><strong> </strong></p>
<p><em><a href="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-14-at-8.08.30-PM.png"><img class="alignnone size-full wp-image-1832" title="Screen shot 2010-06-14 at 8.08.30 PM" src="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-14-at-8.08.30-PM.png" alt="yahoo" width="712" height="128" /></a></em></p>
<p>In my opinion the <em>“Capitalization&#8230;”</em> text should have been visible all the time, because it points out a rule we must obey. But thinking about it a bit more made me think they made it because it would attract more attention if it suddenly appears than it would if it was visible all the time. What do you think?</p>
<p>Let’s focus on the second help (for the password strength). It’s only a tip how to <em>make our password more secure </em>and not a rule. After the field becomes inactive that help disappears.</p>
<p>When to use this type?</p>
<ul>
<li>When you want to give your user a tip or suggestion</li>
<li>When you want to ensure that the help captivates the users attention</li>
</ul>
<p><strong>FACEBOOK &#8211; User activated help</strong><strong> </strong></p>
<p><em><a href="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-14-at-8.11.02-PM.png"><img class="alignnone size-full wp-image-1833" title="Screen shot 2010-06-14 at 8.11.02 PM" src="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-14-at-8.11.02-PM.png" alt="facebook" width="674" height="313" /></a></em></p>
<p>User activated + modal window centered on the page</p>
<p>When to use it?</p>
<ul>
<li>For bigger help texts and explanations</li>
<li>For embedding visual effects like the back of a Credit Card for the CVV numver</li>
</ul>
<p><strong>We&#8217;ve seen the good, now let us look at the the bad and the ugly.</strong></p>
<p><strong><a href="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-24-at-9.08.15-PM.png"><img class="alignnone size-full wp-image-1849" title="Screen shot 2010-06-24 at 9.08.15 PM" src="http://web.enavu.com/wp-content/uploads/Screen-shot-2010-06-24-at-9.08.15-PM.png" alt="" width="711" height="322" /></a><br />
</strong></p>
<p>The screenshot above is taken from a very valuable website that offers their users to buy/sell ad spots, and this screenshot is taken from a page for depositing money.</p>
<p>1<sup>st</sup> issue – In which format should I fill my credit card number?</p>
<p>2<sup>nd</sup> issue – What is a security code? Oh, there is a link to find out. Clicking the “What’s this?” link expecting a new window or a JavaScript tooltip to popup but I’m taken back to the index page. I lost the data I entered and I need to find that page again. <em>Screw this I’m not depositing</em>.</p>
<p>3<sup>rd</sup> issue – Do I need to fill in all those fields? Why didn’t you simply put the * on required fields? Are they all required? <em>You’re not helping me in making you money.</em></p>
<p>As I mentioned, that page is for depositing money, and I bet they lost a lot of money because they failed to explain to the user those 3 things. Fixing them would take less than 10 mins and the completion rate of this specific form would increase resulting it the income increase too.</p>
<p><strong>Wrap Up</strong></p>
<p>So we have seen some great examples of websites that just get it right, and an example of where we can find room to improve. We hope if you gather one thing from these series that is forms need to be simple, so simple that your cat can do it. Making your forms simpler will result in more successful customers and clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/web-forms-types-of-user-assistance-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Best Of April &#8211; 10 Web Development Articles And Tutorials</title>
		<link>http://web.enavu.com/tutorials/best-of-april-10-web-development-articles-and-tutorials/</link>
		<comments>http://web.enavu.com/tutorials/best-of-april-10-web-development-articles-and-tutorials/#comments</comments>
		<pubDate>Tue, 11 May 2010 15:58:34 +0000</pubDate>
		<dc:creator>slobodan</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1692</guid>
		<description><![CDATA[This is our monthly roundup of the best web development related tutorials from the past month.]]></description>
			<content:encoded><![CDATA[<h3><a href="http://wpcanyon.com/tipsandtricks/fixing-the-menu-manager-width-issue-in-wordpress-3-0/">Fixing The Menu Manager Width Issue In WordPress 3.0</a></h3>
<div class="image_container"><a href="http://wpcanyon.com/tipsandtricks/fixing-the-menu-manager-width-issue-in-wordpress-3-0/"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril1.png" alt="Fixing The Menu Manager Width Issue In WordPress 3.0" width="600" height="200" /></a></div>
<p>WordPress 3.0 is still in beta, but the latest version has some issues with the new menu manager. This is a great little tutorial on how to fix that issues.</p>
<h3><a href="http://tympanus.net/codrops/2010/04/30/rocking-and-rolling-rounded-menu-with-jquery/">Rocking and Rolling Rounded Menu with jQuery</a></h3>
<div class="image_container"><a href="http://tympanus.net/codrops/2010/04/30/rocking-and-rolling-rounded-menu-with-jquery/"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril2.png" alt="Rocking and Rolling Rounded Menu with jQuery" width="600" height="200" /></a></div>
<p>Tympanus always had fantastic tutorials. This tutorial shows you how to make a fantastic and very inovative menu using jQuery.</p>
<h3><a href="http://tympanus.net/codrops/2010/04/26/elegant-accordion-with-jquery-and-css3/">Elegant Accordion with jQuery and CSS3</a></h3>
<div class="image_container"><a href="http://tympanus.net/codrops/2010/04/26/elegant-accordion-with-jquery-and-css3/"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril3.png" alt="Elegant Accordion with jQuery and CSS3" width="600" height="200" /></a></div>
<p>Another one from Tympanus. In this one he shows us how to make a brilliant accordion using jQuery and CSS3. This is a must see.</p>
<h3><a href="http://www.marcofolio.net/css/3d_animation_using_pure_css3.html">3D Animation Using Pure CSS3</a></h3>
<div class="image_container"><a href="http://www.marcofolio.net/css/3d_animation_using_pure_css3.html"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril4.png" alt="3D Animation Using Pure CSS3" width="600" height="200" /></a></div>
<p>It&#8217;s amazing what CSS3 can do, in this tutorial we learn how to make an awesome 3D animation with it. You&#8217;ll need Safari for the full experience.</p>
<h3><a href="http://www.jankoatwarpspeed.com/post/2010/04/06/windows-7-start-menu-css3.aspx">Create Windows 7 start menu using CSS3 only</a></h3>
<div class="image_container"><a href="http://www.jankoatwarpspeed.com/post/2010/04/06/windows-7-start-menu-css3.aspx"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril5.png" alt="Create Windows 7 start menu using CSS3 only" width="600" height="200" /></a></div>
<p>Janko shows us how to create an exact copy of windows 7 start menu using just CSS3. Except for the icons of course, they&#8217;re images <img src='http://web.enavu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<h3><a href="http://tutorialzine.com/2010/04/simple-banner-rotator-with-php-jquery-mysql/">Simple Banner Rotator With PHP, jQuery &#038; MySQL</a></h3>
<div class="image_container"><a href="http://tutorialzine.com/2010/04/simple-banner-rotator-with-php-jquery-mysql/"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril6.png" alt="Simple Banner Rotator With PHP, jQuery &#038; MySQL" width="600" height="200" /></a></div>
<p>If you ever visited a blog that has ads (the chances are you did, because all webdev blogs have ads) you probably noticed the ads are rotating, they&#8217;re not always on the same place. Well ths tutorial shows you how to do the rotation using PHP.</p>
<h3><a href="http://www.queness.com/post/3157/create-a-simple-interactive-css-button-with-jquery">Create a Simple Interactive CSS Button with jQuery</a></h3>
<div class="image_container"><a href="http://www.queness.com/post/3157/create-a-simple-interactive-css-button-with-jquery"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril7.png" alt="Create a Simple Interactive CSS Button with jQuery" width="600" height="200" /></a></div>
<p>Kevin shows us how to make a interactive button using jQuery and CSS. In this example on form submit the submit button will get a loading animation, which is really useful thing to have.</p>
<h3><a href="http://buildinternet.com/2010/04/automatically-shorten-url-on-page-load-in-wordpress/">Automatically Shorten URL on Page Load in Wordpress</a></h3>
<div class="image_container"><a href="http://buildinternet.com/2010/04/automatically-shorten-url-on-page-load-in-wordpress/"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril8.png" alt="Automatically Shorten URL on Page Load in Wordpress" width="600" height="200" /></a></div>
<p>Automated link shortening is a great thing to have, Zach from buildinternet.com shows us how to make it.</p>
<h3><a href="http://www.smashingmagazine.com/2010/04/28/css3-solutions-for-internet-explorer/">CSS3 Solutions for Internet Explorer</a></h3>
<div class="image_container"><a href="LINK"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril9.png" alt="CSS3 Solutions for Internet Explorer" width="600" height="200" /></a></div>
<p>CSS3 is awesome, but IE&#8217;s don&#8217;t support it. SmashingMagazine has collected quite a few &#8220;hacks&#8221; to achieve some of the most needed CSS3 effects in IE.</p>
<h3><a href="http://css-tricks.com/resolution-specific-stylesheets/">Different Stylesheets for Differently Sized Browser Windows</a></h3>
<div class="image_container"><a href="http://css-tricks.com/resolution-specific-stylesheets/"><img class="alignnone size-full wp-image-1077" title="topapril" src="http://web.enavu.com/wp-content/uploads/topapril10.png" alt="Different Stylesheets for Differently Sized Browser Windows" width="600" height="200" /></a></div>
<p>The usual width of a website is not bigger then 1000px (usualy at 960px), simply because there are a lot of people with 1024px wide resolution, but there are also a lot of those with bigger resolution then 1024px, i have 1366px for example, so there is a lot of unused space on the sides. Chris shows us how to use different stylesheets for different resolutions.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/best-of-april-10-web-development-articles-and-tutorials/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Smart Date Parsing: Natural Language Input (task.fm explained)</title>
		<link>http://web.enavu.com/snippets/php-smart-date-parsing-natural-language-input-task-fm-explained/</link>
		<comments>http://web.enavu.com/snippets/php-smart-date-parsing-natural-language-input-task-fm-explained/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 15:53:00 +0000</pubDate>
		<dc:creator>tpae</dc:creator>
				<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1623</guid>
		<description><![CDATA[Have you ever tried task.fm ? task.fm uses something called &#8220;Natural Language Input,&#8221; and it&#8217;s very interesting. To put it simply, you enter a natural language input such as, &#8220;Pick up my kids from school tomorrow 3pm&#8221; or &#8220;Pool party this Saturday at 4pm.&#8221;
&#8220;Pick up my kids from school tomorrow 3pm&#8221; will be parsed as, [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried <a href="http://task.fm/" target="_blank">task.fm</a> ? task.fm uses something called &#8220;Natural Language Input,&#8221; and it&#8217;s very interesting. To put it simply, you enter a natural language input such as, &#8220;Pick up my kids from school tomorrow 3pm&#8221; or &#8220;Pool party this Saturday at 4pm.&#8221;<span id="more-1623"></span></p>
<p>&#8220;Pick up my kids from school tomorrow 3pm&#8221; will be parsed as, &#8220;Pick up my kids from school&#8221; with date pre-selected. If you&#8217;ve never seen this before, this is pretty interesting stuff. Question is, how do they do it?</p>
<p>There are few ways to do this, just by looking at task.fm application, they allow maximum of 140 characters. Which means, it possibly uses recursive function to go through every possible pair. If we let every word be paired with another word, then three words, then four words, and so on, then we can possibly run every single combination, given that it&#8217;s only 140 characters long.</p>
<p>I would say the most easiest way to do it is to use <a href="http://php.net/manual/en/function.strtotime.php">strtotime()</a> function. The function evaluates the word, if it passes as a string with valid date/time variables, it will return a number. If not, it will return -1.</p>
<p>Let&#8217;s brainstorm: &#8220;I am going to go to the beach at 3pm tomorrow&#8221;</p>
<p>If we run <strong>strtotime()</strong> function on every single word, then it will return -1 on every word except &#8220;3pm&#8221; and &#8220;tomorrow&#8221;</p>
<p>Time to do some coding:</p>
<pre name="code" class="php">function parse_to_date_and_string($parse) {
$exclude = array('i', 'at');
$parse_array = explode(" ", $parse);
$date = array();
$data['text'] = array();
$word_count = count($parse_array);
for($i = 0; $i &lt; $word_count; $i++) {
if (strtotime($parse_array[$i]) &gt; 0 &amp;&amp; !in_array($parse_array[$i], $exclude)) {
$date[] = $parse_array[$i];
} else {
$data['text'][] = $parse_array[$i];
}
}
$data['date'] = strtotime(implode(" ", $date));
return $data;
}</pre>
<p>Looking at the code above, let me explain the general concept. <strong>strtotime()</strong> function returns -1 if the word does not parse into a real date. We check every word whether they are parseable into a date, if they are, we combine them together, then parse it at the end.</p>
<p>What will it look like?</p>
<p><strong>Example</strong>) Tomorrow I have to go see my chiropractor at 12:00pm</p>
<p><strong>Found parseable words</strong>) Tomorrow 12:00pm</p>
<p><strong>Non-parseable words</strong>) have to go see my chiropractor</p>
<p><strong>Outcome</strong>) if we run <strong>strtotime(</strong>&#8220;Tomorrow 12:00pm&#8221;<strong>)</strong>, it should return the correct date.</p>
<p>By the way, certain words will be parseable, such as &#8220;i&#8221;, so had to take that out using <strong>$exclude</strong> array. I also took out the word, &#8220;at&#8221; because if someone enters, &#8220;pick up my kids at 12pm&#8221; then it will be parsed like &#8220;pick up my kids at&#8221; &#8220;12pm&#8221;</p>
<p>There&#8217;s many things we could experiment with, just by using<strong> strtotime() </strong>function. This way, we don&#8217;t necessarily have to have recursive function that checks for all possible combination. The code I&#8217;ve written is still very primitive, but you can experiment further to make something actually usable.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/snippets/php-smart-date-parsing-natural-language-input-task-fm-explained/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fixing the IE7 z-index issue (internet explorer 7 z-index)</title>
		<link>http://web.enavu.com/snippets/fixing-the-ie7-z-index-issue-internet-explorer-7-z-index/</link>
		<comments>http://web.enavu.com/snippets/fixing-the-ie7-z-index-issue-internet-explorer-7-z-index/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 07:22:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1628</guid>
		<description><![CDATA[Even though IE9 was announced and it&#8217;s really going to make our lives easier&#8230; for now we still have to worry about sneaky IE7.

Even though IE9 was announced and it&#8217;s really going to make our lives easier&#8230; for now we still have to worry about sneaky IE7.

In today&#8217;s case i encountered an unfortunate error with [...]]]></description>
			<content:encoded><![CDATA[<p>Even though IE9 was announced and it&#8217;s really going to make our lives easier&#8230; for now we still have to worry about sneaky IE7.<br />
<span id="more-1628"></span></p>
<p>Even though IE9 was announced and it&#8217;s really going to make our lives easier&#8230; for now we still have to worry about sneaky IE7.</li>
<p>
In today&#8217;s case i encountered an unfortunate error with a navigation element that was positioned absolutely (drop-down menu) and unfortunately went<br />
behind the main graphic on my website even though it had a high z-index.
</p>
<p><b>The Problem:</b> IE7 has a problem rendering z-indexes correctly (of course) and in a few rare scenarios you may run into this problem. Off the<br />
top of my head the two main scenarios are a SuckerFish (drop down) menu made with pure CSS that goes over certain content on your page, and a lightbox<br />
that somehow doesn&#8217;t play nice with the elements underneath it.
</p>
<p><b>The Solutions:</b> There are a couple of solutions, let me try to explain both.</p>
<ol>
<li>Make sure the parent of your absolutely positioned element has a higher z-index! Here is a graphic to help you visualize it. <img src="http://images.fzilla.com/images/positioned.jpg" style="border: 0;" alt="image" width="500" height="200" /></li>
<li>Or use this jQuery (did not work for me but a lot of people seem to get it to work for them!
<pre name="code" class="js">
$(function() {
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
});
</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/snippets/fixing-the-ie7-z-index-issue-internet-explorer-7-z-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with cookies using jQuery and JavaScript</title>
		<link>http://web.enavu.com/tutorials/working-with-cookies-using-jquery-and-javascript/</link>
		<comments>http://web.enavu.com/tutorials/working-with-cookies-using-jquery-and-javascript/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 07:18:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1624</guid>
		<description><![CDATA[Overview on using cookies via jQuery or JavaScript.

Today i want to go over a few techniques to easily use cookies via jQuery (much easier) or pure javascript.
What is a cookie?
A cookie is a text string that is included with Hypertext Transfer Protocol (HTTP) requests and responses. Cookies are used to maintain state information as you [...]]]></description>
			<content:encoded><![CDATA[<p>Overview on using cookies via jQuery or JavaScript.<br />
<span id="more-1624"></span></p>
<p>Today i want to go over a few techniques to easily use cookies via jQuery (much easier) or pure javascript.</p>
<h3>What is a cookie?</h3>
<p>A cookie is a text string that is included with Hypertext Transfer Protocol (HTTP) requests and responses. Cookies are used to maintain state information as you navigate different pages on a Web site or return to the Web site at a later time. This article provides information about cookies. </p>
<h3>What do i do with cookies</h3>
<p>Cookies today can be seen used most often for storing user logged in information. That means that with cookies we can allow for our members to set a certain amount of time for their account to stay logged in. Also you use cookies to store very basic temporary information that the website collected from you at one point of time.</p>
<p>Cookies should <b>NOT</b> be used to store information that needs to be accessible by the user or by your website from a variety of places. By places i am referring to different machines and browsers that store the cookies locally.</p>
<h3>How do i actually use them</h3>
<p>Cookies are accessible by all web programming languages. That means, javascript, python, php, and many more. First i want to go over using cookies with jQuery since it is the easiest way to do this.</p>
<p><b>jQuery</b> has a <a href="http://plugins.jquery.com/project/cookie">plugin</a> you use with the jQuery library itself and you can really easily store and access your cookies. So lets look at the code of storing and displaying a cookie.</p>
<pre name="code" class="html">
&lt;html&gt;
&lt;head&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-latest.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.cookie.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function(){
	// set cookie
	$.cookie('my_cookie_name', 'value inside of it');

	// get cookie
	alert($.cookie('my_cookie_name'));

	// delete cookie
	$.cookie('my_cookie_name', null);
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;a class=&quot;setme&quot;&gt;Set Me&lt;/a&gt;
&lt;a class=&quot;tellme&quot;&gt;Tell Me&lt;/a&gt;
&lt;a class=&quot;delete&quot;&gt;DeleteM&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Now let&#8217;s go over the important parts of the code. First of course we embed jQuery itself, then we add the jquery cookie plugin and then we start our beautiful jQuery code.</p>
<p>The set cookie is pretty straight forward, one line of code that will set the cookie &#8220;my_cookie_name&#8221; with the value &#8220;value inside of it&#8221;. We do that by passing in two parameters into our <code>$.cookie()</code> plugin.  You <b>do</b> need the quotes around the name and the value of the cookie, feel free to use single or double quotes as your preference.</p>
<p>The get cookie code is even more straight forward we just pass in the cookie name in out jquery cookie plugin and it has the value we stored in there.</p>
<p>And finally deleting the cookie is almost the exact same as storing the cookie, only difference is we store <code>null</code> inside of it.</p>
<h3>Now let&#8217;s go more advanced</h3>
<p>Now that we have set a cookie, added a value, and deleted the stored value it&#8217;s time to do things like storing the cookie for a certain period of time, or to a certain date!</p>
<pre name="code" class="js">
// cookie expires in 10 days
$.cookie('cookie_name', 'our value', { path: '/', expires: 10 });

// cookie expires in a set JavaScript Date
var date = new Date();
$.cookie('cookie_name', 'our value', { path: '/', expires: date });
</pre>
<p>The first code sets a cookie to expire in 10 days. That&#8217;s it&#8230; it&#8217;s as simple as that. Pass in a third parameter that has the path to where you want to store the cookie in the browser directory, leaving this to / is your best choice. And then you set the expiration days.</p>
<p>The second code we first set a variable date to store the current date and then it will set the cookie to expire to the certain JavaScript date. Putting a real date in there will not work unless you stored a javascript date in a variable called date. Read more about JavaScript dates <a href="http://www.w3schools.com/jS/js_obj_date.asp" target="_blank">here</a>.</p>
<h3>How to do this with JavaScript</h3>
<p>Here is the code to write a cookie with plain JavaScript</p>
<pre name="code" class="js">
function setCookie(key, value) {
   var expires = new Date();
   expires.setTime(expires.getTime() + 31536000000); //1 year
   document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();
   }

function getCookie(key) {
   var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)');
   return keyValue ? keyValue[2] : null;
   }

setCookie('test', '5');
alert(getCookie('test'));
</pre>
<p>We set up two functions setCookie and getCookie. We need to pass in 2 variables into the setCookie the key and the value pair. Currenty the cookie is set to expire in a year but of course you can change that, i have the link on javscript dates above.</p>
<p>I hope i have shed some light on the world of cookies!</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/working-with-cookies-using-jquery-and-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How Famous WebDev Blogs Designs Evolved</title>
		<link>http://web.enavu.com/tutorials/how-famous-webdev-blogs-designs-evolved/</link>
		<comments>http://web.enavu.com/tutorials/how-famous-webdev-blogs-designs-evolved/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 18:11:55 +0000</pubDate>
		<dc:creator>slobodan</dc:creator>
				<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://tutsvalley.com/?p=994</guid>
		<description><![CDATA[An overview of the progression of the famous web development blogs from the past to the present.

The only way to know you&#8217;re moving is to reference the past, and since we learn history so we do not repeat our mistakes today we want to go over the progression of famous web blogs and how they [...]]]></description>
			<content:encoded><![CDATA[<p>An overview of the progression of the famous web development blogs from the past to the present.<br />
<span id="more-994"></span></p>
<p>The only way to know you&#8217;re moving is to reference the past, and since we learn history so we do not repeat our mistakes today we want to go over the progression of famous web blogs and how they have evolved.</p>
<h3><a href="http://alistapart.com" target="_blank">ALISTAPART.COM</a></h3>
<p>Launched: 1998</p>
<p>Interesting links:</p>
<p><a href="http://www.alistapart.com/articles/ala40" target="_blank">A List Apart 4.0</a></p>
<div class="image_holder">
<p>aListApart in 1998 (wow, long time ago)</p>
<p><img class="alignnone size-full wp-image-1011" title="alist98" src="http://web.enavu.com/wp-content/uploads/alist98.png" alt="alistapart 98" width="600" height="600" /></p>
<p>Ahhh, reminiscing in the past where bright colors and loads of awesome gifs made the web what it was, this design (not fully visible as the archive was rather new back then) features a lot of the cliches from the oldern days of the web. Most of you guys didn&#8217;t even own a computer back then <img src='http://web.enavu.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  (or maybe you did).</p>
</div>
<div class="image_holder">
<p>aListApart in 2000</p>
<p><img class="alignnone size-full wp-image-1012" title="alist2000" src="http://web.enavu.com/wp-content/uploads/alist2000.png" alt="alistapart 2000" width="600" height="600" /></p>
<p>In the year 2000 the desing got slimer, with a lot more focus on content and navigation. The colors remain yet for a little while longer.</p>
</div>
<div class="image_holder">
<p>aListApart in 2004</p>
<p><img class="alignnone size-full wp-image-1013" title="alist2004" src="http://web.enavu.com/wp-content/uploads/alist2004.png" alt="alist 2004" width="600" height="600" /></p>
<p>Ahh here is the start of the amazing clarity and simplicity we have come to expect from the great ALA. Keeping the 2 column layout with a navigation element on top, very nice typography readable posts. Overall a very well designed website for its day.</p>
</div>
<div class="image_holder">
<p>aListApart in 2006</p>
<p><img class="alignnone size-full wp-image-1021" title="alist2006" src="http://web.enavu.com/wp-content/uploads/alist2006.png" alt="alistapart 2006" width="600" height="500" /></p>
<p>The design you are most likely used to seeing today. With a very authentic look by using a combination of a very light baige and the always classical look with the Serif fonts.</p>
</div>
<div class="image_holder">
<p>aListApart in 2010. &#8220;A Book Apart&#8221; is still &#8220;coming soon&#8221; lol <img src='http://web.enavu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-1022" title="alist2010" src="http://web.enavu.com/wp-content/uploads/alist2010.png" alt="alistapart 2010" width="600" height="500" /></p>
<p>Not a huge change here as the design didn&#8217;t change just a few of the graphics moved around the site.</p>
</div>
<h3><a href="http://css-tricks.com" target="_blank">CSS-TRICKS.COM</a></h3>
<p>Launched: 2007</p>
<p>Interesting links:</p>
<p><a href="http://css-tricks.com/about-the-css-tricks-redesign/" target="_blank">About the CSS-Tricks Redesign | CSS-Tricks</a></p>
<p><a href="http://css-tricks.com/design-v6/">Design V6</a></p>
<div class="image_holder">
<p>CSS-Tricks in 2007</p>
<p><img class="alignnone size-full wp-image-1031" title="css2007" src="http://web.enavu.com/wp-content/uploads/css2007.png" alt="css tricks 2007" width="570" height="416" /></p>
<p>Very clean tab oriented design. With a repeating background pattern to give the website a nice feel.</p>
</div>
<div class="image_holder">
<p>CSS-Tricks in 2008</p>
<p><img class="alignnone size-full wp-image-1032" title="css2008" src="http://web.enavu.com/wp-content/uploads/css2008.png" alt="css-tricks 2008" width="570" height="416" /></p>
<p>Keeping the overall style and adding visual enhancements, for example the right columnt recieved a lot of attention, and the searchbar was moved lower than the RSS subscriptions&#8230; might it be that to a blogger it is more important that people follow your rss than to search something. The menu goes on top right makes it very common and easy to find.</p>
</div>
<div class="image_holder">
<p>CSS-Tricks in 2009</p>
<p><img class="alignnone size-full wp-image-1033" title="css2009" src="http://web.enavu.com/wp-content/uploads/css2009.png" alt="css-tricks 2009" width="570" height="407" /></p>
<p>Huge change from rounded corner columns to straight edge. The right columnt now huge as it takes in more ads (more ads more money&#8230;) the tabs come back in and the search bar goes on top right. Website background now white instead.</p>
</div>
<div class="image_holder">
<p>CSS-Tricks in 2010</p>
<p><img class="alignnone size-full wp-image-1034" title="css2010" src="http://web.enavu.com/wp-content/uploads/css2010.png" alt="css-tricks 2010" width="570" height="388" /></p>
<p>Very big revamn here, let&#8217;s start with the simplest of things &#8220;videos&#8221; menu item becomes screencasts, a very logical step. Since Screencasts are way less missleading. The right column feels less like a colun and more like a part of the initial columnt with floating elements inside of it. The later articles have a page feel. The footer includes a picture of the owner of CSS-Tricks Chris.</p>
</div>
<h3><a href="http://smashingmagazine.com" target="_blank">SMASHINGMAGAZINE.COM</a></h3>
<p>Launched: 2006</p>
<p>Interesting links:</p>
<p><a href="http://www.smashingmagazine.com/about-us/" target="_blank">About Smashing Magazine</a></p>
<div class="image_holder">
<p>SmashingMagazine in 2006</p>
<p><img class="alignnone size-full wp-image-1037" title="smashing2006" src="http://web.enavu.com/wp-content/uploads/smashing2006.png" alt="smashing 2006" width="600" height="500" /></p>
<p>I would like to believe there were more images than that. Although i&#8217;m a fan of simlicity. Anyways the design is very basic, navigation on the right, huge titles, tiny font size. No logo instead we see a font rendering. Can&#8217;t complain besides it being crazy simple.</p>
</div>
<div class="image_holder">
<p>SmashingMagazine in 2010</p>
<p><img class="alignnone size-full wp-image-1038" title="smashing2010" src="http://web.enavu.com/wp-content/uploads/smashing2010.png" alt="smashing 2010" width="600" height="500" /></p>
<p>Ahh and here is the amazing design we have come to love (it actually changed a little while ago, but smaller improvements). The design is VERY clean, very straight forward, and it&#8217;s simplicity makes it what it is. Literally 2 color pallete of overall design&#8230; so beautiful yet so simple.</p>
</div>
<h3><a href="http://hongkiat.com" target="_blank">HONGKIAT.COM</a></h3>
<div class="image_holder">
<p>HongKiat in 2007</p>
<p><img class="alignnone size-full wp-image-1041" title="hongkiat2007" src="http://web.enavu.com/wp-content/uploads/hongkiat2007.png" alt="hongkiat 2007" width="600" height="500" /></p>
<p>Simple very column oriented design, personally i am not a huge fan of gigantic columns that overwhelm you with information, but overall the design is not bad.</p>
</div>
<div class="image_holder">
<p>HongKiat in 2010</p>
<p><img class="alignnone size-full wp-image-1042" title="hongkiat2010" src="http://web.enavu.com/wp-content/uploads/hongkiat2010.png" alt="hongkiat 2010" width="600" height="500" /></p>
<p>And today hongkiat is very clean, nice big main column (compared to the old design) with a very nice top navigation that allows you to switch through the categories of the website. Clean and to the point!</p>
</div>
<h3><a href="http://designshack.co.uk" target="_blank">DESIGNSHACK.CO.UK</a></h3>
<div class="image_holder">
<p>DesignShack in 2005</p>
<p><img class="alignnone size-full wp-image-1045" title="shack2005" src="http://web.enavu.com/wp-content/uploads/shack2005.png" alt="shack 2005" width="600" height="500" /></p>
<p>The one thing i admire, and have always admired, about DesignShack is their non-comforming designs. In 2005 their website was very gallery-esque.</p>
</div>
<div class="image_holder">
<p>DesignShack in 2007</p>
<p><img class="alignnone size-full wp-image-1046" title="shack2007" src="http://web.enavu.com/wp-content/uploads/shack2007.png" alt="shack 2007" width="600" height="500" /></p>
<p>Personally not a huge fan of dark backgrounds for blogs, but in this case very clean and sexy design.</p>
</div>
<div class="image_holder">
<p>DesignShack in 2010</p>
<p><img class="alignnone size-full wp-image-1047" title="shack2010" src="http://web.enavu.com/wp-content/uploads/shack2010.png" alt="shack 2010" width="600" height="500" /></p>
<p>Their current design has a very well created multi-column layout that includes a lot of easy to read content. Keeping with their unorthodox designs.</p>
</div>
<p>What are we seeing from the blogs above&#8230; we see a movememnt towards simplicity and ease of use. This can be accomplished by great typography, or a light load of graphics to accomplish more. Even though its easy to get caught in a zone where you want to add everything in one little box because its all amazing stuff, but being able to analyze what is vital and what can take the bleachers is one of the most important thigns you will learn in web design. Hope this post helps you see the progression of the web <img src='http://web.enavu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  signing out, yours truly Angel Grablev.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/how-famous-webdev-blogs-designs-evolved/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Coding/Slicing Websites using Images vs. CSS3 &amp; HTML5</title>
		<link>http://web.enavu.com/tutorials/codingslicing-websites-using-images-vs-css3-html5/</link>
		<comments>http://web.enavu.com/tutorials/codingslicing-websites-using-images-vs-css3-html5/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 05:23:33 +0000</pubDate>
		<dc:creator>agrublev</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.webdevmania.com/?p=542</guid>
		<description><![CDATA[With the upcoming uses of CSS3 allowing you to forgo the usual image slicing for a much nicer cleaner way of accomplishing the same thing once wonders what to use CSS for and what to do with images.
I have said this before and i feel i should keep repeating it, you should always spend time [...]]]></description>
			<content:encoded><![CDATA[<p>With the upcoming uses of CSS3 allowing you to forgo the usual image slicing for a much nicer cleaner way of accomplishing the same thing once wonders what to use CSS for and what to do with images.</p>
<p><span id="more-542"></span>I have said this before and i feel i should keep repeating it, you should always spend time to learn more about your visitors. This means what browser they use, what is their resolution, and even what operating system they are using. Well there are quite a few more things to be known of your visitors behavior but for today&#8217;s article we will try and go over the things that matter when evaluating whether to use CSS or a sliced image.</p>
<p>For this blog i have used various CSS3 techniques instead of spending loads of time on slicing my initial photoshop design, why was I able to do this? Well simply because a web development blog has 60% Firefox (95% of those use the newest 3.6.x version) then another 20% goes to chrome, and the rest is distributed to IE, Safari, and of course Opera. What this means is that 90% of our users will see the website exactly as intended, and the rest will see a very slightly different version which looks great. The other great benefit to this is much faster load times, less graphics is always a benefit to a high traffic web development blog, or to really any website with 100k+ page views. Here is the difference between IE and Firefox:</p>
<p><img src="http://images.fzilla.com/images/ffie.jpg" alt="comparing ie to ff" /></p>
<p>The tricky part comes when you have to be careful and distinguish functionality with appearance. You should never ignore functionality when using advanced CSS techniques to accomplish certain effects. As a web developer you already know to test your websites in most modern browsers, personally i test on IE7/IE8, Firefox, Chrome, and Opera. But never let functionality struggle because you wanted to save time slicing your design. Things like Rounded Corners, Drop Shadows, and other styling techniques are usually a safe bet of things being only different visually. Text-Shadow can cause text to appear harder to read when the browser does not support text-shadows.</p>
<p>Using HTML5 is awesome, it allows you to create websites with a lot of bells and whistles with little to no effort. However things like HTML5 validation do not work in all browsers so you need to make sure you have a back-up. I have created an HTML5 CSS3 framework that has a lot of cool features that are okay to use with all browsers. Check it out <a href="http://52framework.com">52framework</a>.</p>
<p>In conclusion I strongly suggest and support web developers to try using the new technologies that make our lives easier as long as you have made sure that it does not cripple your websites. </p>
<p>Checkout the following websites to help you use these amazing technologies:</p>
<p><a href="http://52framework.com">52framework.com</a><br />
<a href="http://css3generator.com">css3generator.com</a><br />
<a href="http://www.modernizr.com/">modernizr.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/codingslicing-websites-using-images-vs-css3-html5/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Best Of February &#8211; 10 Web Development Articles And Tutorials</title>
		<link>http://web.enavu.com/tutorials/best-of-february-10-web-development-articles-and-tutorials/</link>
		<comments>http://web.enavu.com/tutorials/best-of-february-10-web-development-articles-and-tutorials/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 10:27:43 +0000</pubDate>
		<dc:creator>slobodan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[roundup]]></category>

		<guid isPermaLink="false">http://tutsvalley.com/?p=1076</guid>
		<description><![CDATA[I handpicked 10 webdev articles an tutorials i consider to be the best from February 2010. Hope you like my selection.]]></description>
			<content:encoded><![CDATA[<h3><a href="http://wpcanyon.com/tutorials/how-to-use-the-post-thumbnail-feature-in-wordpress-2-9/">How To Use The Post Thumbnail Featured In WordPress 2.9</a></h3>
<div class="image_container"><a href="http://wpcanyon.com/tutorials/how-to-use-the-post-thumbnail-feature-in-wordpress-2-9/"><img class="alignnone size-full wp-image-1077" title="topfeb1" src="http://web.enavu.com/wp-content/uploads/topfeb1.png" alt="How to Use The Post Thumbnail Feature" width="600" height="150" /></a></div>
<p>Step by step tutorial on how to use the new thumbnail feature in wordpress 2.9. In this tutorial you will learn how to activate the feature, add a thumbnail and show it on your blog or website.</p>
<h3><a href="http://tympanus.net/codrops/2010/02/24/grungy-random-rotation-menu-with-jquery-and-css3/">Grungy Random Rotation Menu with jQuery and CSS3</a></h3>
<p><a href="http://tympanus.net/codrops/2010/02/24/grungy-random-rotation-menu-with-jquery-and-css3/"> </a></p>
<div class="image_container"><a href="http://tympanus.net/codrops/2010/02/24/grungy-random-rotation-menu-with-jquery-and-css3/"> </a><a href="http://tympanus.net/codrops/2010/02/24/grungy-random-rotation-menu-with-jquery-and-css3/"><img class="alignnone size-full wp-image-1104" title="top2" src="http://web.enavu.com/wp-content/uploads/top21.png" alt="Grungy Random Rotation Menu with jQuery and CSS3" width="600" height="150" /></a></div>
<p>Nicely explained tutorial on creating a really nice menu that has random rotation.</p>
<h3><a href="http://www.queness.com/post/2294/useful-and-practical-jquery-image-tooltips-tutorial">Useful and Practical jQuery Image ToolTips Tutorial</a></h3>
<p><a href="http://www.queness.com/post/2294/useful-and-practical-jquery-image-tooltips-tutorial"> </a></p>
<div class="image_container"><a href="http://www.queness.com/post/2294/useful-and-practical-jquery-image-tooltips-tutorial"> </a><a href="http://www.queness.com/post/2294/useful-and-practical-jquery-image-tooltips-tutorial"><img class="alignnone size-full wp-image-1090" title="top3" src="http://web.enavu.com/wp-content/uploads/top3.png" alt="Useful and Practical jQuery Image ToolTips Tutorial" width="600" height="150" /></a></div>
<p>Kevin wrote an amazing tutorial on creating image tooltips using jQuery.</p>
<h3><a href="http://www.webdeveloperjuice.com/2010/02/22/create-simple-jquery-right-click-cross-browser-vertical-menu/">Create Simple Jquery Right Click Cross browser Vertical Menu</a></h3>
<p><a href="http://www.webdeveloperjuice.com/2010/02/22/create-simple-jquery-right-click-cross-browser-vertical-menu/"> </a></p>
<div class="image_container"><a href="http://www.webdeveloperjuice.com/2010/02/22/create-simple-jquery-right-click-cross-browser-vertical-menu/"> </a><a href="http://www.webdeveloperjuice.com/2010/02/22/create-simple-jquery-right-click-cross-browser-vertical-menu/"><img class="alignnone size-full wp-image-1092" title="top4" src="http://web.enavu.com/wp-content/uploads/top4.png" alt="Create Simple Jquery Right Click Cross browser Vertical Menu" width="600" height="150" /></a></div>
<p>Very interesting effect. Same as when you right click but with this you can create your own right click menu.</p>
<h3><a href="http://www.marcofolio.net/webdesign/pure_css3_bokeh_effect_with_some_jquery_help.html">Pure CSS3 bokeh effect with some jQuery help</a></h3>
<p><a href="http://www.marcofolio.net/webdesign/pure_css3_bokeh_effect_with_some_jquery_help.html"> </a></p>
<div class="image_container"><a href="http://www.marcofolio.net/webdesign/pure_css3_bokeh_effect_with_some_jquery_help.html"> </a><a href="http://www.marcofolio.net/webdesign/pure_css3_bokeh_effect_with_some_jquery_help.html"><img class="alignnone size-full wp-image-1094" title="top5" src="http://web.enavu.com/wp-content/uploads/top5.png" alt="Pure CSS3 bokeh effect with some jQuery help" width="600" height="150" /></a></div>
<p>Very nice and detailed tutorial on making bokeh effect (the circles on the image above) using CSS3 with a bit of jQuery help.</p>
<h3><a href="http://wpcanyon.com/tutorials/10-effective-ways-to-secure-your-wordpress-blog/">10 Effective Ways To Secure Your WordPress Blog</a></h3>
<p><a href="http://wpcanyon.com/tutorials/10-effective-ways-to-secure-your-wordpress-blog/"> </a></p>
<div class="image_container"><a href="http://wpcanyon.com/tutorials/10-effective-ways-to-secure-your-wordpress-blog/"> </a><a href="http://wpcanyon.com/tutorials/10-effective-ways-to-secure-your-wordpress-blog/"><img class="alignnone size-full wp-image-1095" title="top6" src="http://web.enavu.com/wp-content/uploads/top6.png" alt="10 Effective Ways To Secure Wordpress" width="600" height="150" /></a></div>
<p>Every version comes with improvements, but until we get a completely secure WordPress version we have to find ways to improve the security ourselves. This tutorial shows 10 effective ways to do that.</p>
<h3><a href="http://www.jankoatwarpspeed.com/post/2010/02/26/table-ui-patterns.aspx">Ultimate guide to table UI patterns</a></h3>
<p><a href="http://www.jankoatwarpspeed.com/post/2010/02/26/table-ui-patterns.aspx"> </a></p>
<div class="image_container"><a href="http://www.jankoatwarpspeed.com/post/2010/02/26/table-ui-patterns.aspx"> </a><a href="http://www.jankoatwarpspeed.com/post/2010/02/26/table-ui-patterns.aspx"><img class="alignnone size-full wp-image-1097" title="top7" src="http://web.enavu.com/wp-content/uploads/top7.png" alt="Ultimate guide to table UI patterns" width="600" height="150" /></a></div>
<p>Awesome article on tables in user interface with some cool examples.</p>
<h3><a href="http://tutorialzine.com/2010/02/html5-css3-website-template/">Coding a CSS3 &amp; HTML5 One-Page Website Template</a></h3>
<p><a href="http://tutorialzine.com/2010/02/html5-css3-website-template/"> </a></p>
<div class="image_container"><a href="http://tutorialzine.com/2010/02/html5-css3-website-template/"> </a><a href="http://tutorialzine.com/2010/02/html5-css3-website-template/"><img class="alignnone size-full wp-image-1099" title="top8" src="http://web.enavu.com/wp-content/uploads/top8.png" alt="Coding a CSS3 HTML5 OnePage Website Template" width="600" height="150" /></a></div>
<p>Take a look at this great step by step tutorial on coding a template using HTML5 and CSS3.</p>
<h3><a href="http://net.tutsplus.com/tutorials/html-css-techniques/design-a-prettier-web-form-with-css-3/">Design a Prettier Web Form with CSS 3</a></h3>
<p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/design-a-prettier-web-form-with-css-3/"> </a></p>
<div class="image_container"><a href="http://net.tutsplus.com/tutorials/html-css-techniques/design-a-prettier-web-form-with-css-3/"> </a><a href="http://net.tutsplus.com/tutorials/html-css-techniques/design-a-prettier-web-form-with-css-3/"><img class="alignnone size-full wp-image-1100" title="top9" src="http://web.enavu.com/wp-content/uploads/top9.png" alt="Design a Prettier Web Form with CSS 3" width="600" height="150" /></a></div>
<p>Want to make your forms a little less boring? You simply must check out this outstanding tutorial.</p>
<h3><a href="http://sixrevisions.com/user-interface/best-practices-for-hints-and-validation-in-web-forms/">Best Practices for Hints and Validation in Web Forms</a></h3>
<p><a href="http://sixrevisions.com/user-interface/best-practices-for-hints-and-validation-in-web-forms/"> </a></p>
<div class="image_container"><a href="http://sixrevisions.com/user-interface/best-practices-for-hints-and-validation-in-web-forms/"> </a><a href="http://sixrevisions.com/user-interface/best-practices-for-hints-and-validation-in-web-forms/"><img class="alignnone size-full wp-image-1101" title="top10" src="http://web.enavu.com/wp-content/uploads/top10.png" alt="Best Practices for Hints and Validation in Web Forms" width="600" height="150" /></a></div>
<p>Another article/tutorial about forms. Check out what&#8217;s considered as best practices in helping out the user completing a form.</p>
<h3>Final Words</h3>
<p>Hope you like my selection for the top 10 webdev articles and tutorials from last month. Let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/best-of-february-10-web-development-articles-and-tutorials/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>10 Awesome jQuery and JavaScript Snippets</title>
		<link>http://web.enavu.com/tutorials/10-awesome-jquery-and-javascript-snippets/</link>
		<comments>http://web.enavu.com/tutorials/10-awesome-jquery-and-javascript-snippets/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 01:46:04 +0000</pubDate>
		<dc:creator>slobodan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[roundup]]></category>

		<guid isPermaLink="false">http://tutsvalley.com/?p=1056</guid>
		<description><![CDATA[Awesome collection of jQuery and JavaScript snippets. Enjoy.]]></description>
			<content:encoded><![CDATA[<h3>Make HTML5 work in older IE browsers</h3>
<pre name='code' class='js'>
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.length;while(i--){document.createElement(e[i])}})()
</pre>
<p>You can also link to the original javascript file.</p>
<pre name='code' class='html'>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</pre>
<h3>Detect browser</h3>
<pre name='code' class='js'>
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(c/a))+String.fromCharCode(c%a+161)};while(c--){if(k[c]){p=p.replace(new RegExp(e(c),'g'),k[c])}}return p}('Ö ¡(){® Ø={\'¥\':¡(){¢ £.¥},\'©\':{\'±\':¡(){¢ £.©.±},\'¯\':¡(){¢ £.©.¯}},\'¬\':¡(){¢ £.¬},\'¶\':¡(){¢ £.¶},\'º\':¡(){¢ £.º},\'Á\':¡(){¢ £.Á},\'À\':¡(){¢ £.À},\'½\':¡(){¢ £.½},\'¾\':¡(){¢ £.¾},\'¼\':¡(){¢ £.¼},\'·\':¡(){¢ £.·},\'Â\':¡(){¢ £.Â},\'³\':¡(){¢ £.³},\'Ä\':¡(){¢ £.Ä},\'Ã\':¡(){¢ £.Ã},\'Å\':¡(){¢ £.Å},\'¸\':¡(){¢ £.¸}};$.¥=Ø;® £={\'¥\':\'¿\',\'©\':{\'±\':²,\'¯\':\'¿\'},\'¬\':\'¿\',\'¶\':§,\'º\':§,\'Á\':§,\'À\':§,\'½\':§,\'¾\':§,\'¼\':§,\'·\':§,\'Â\':§,\'³\':§,\'Ä\':§,\'Ã\':§,\'Å\':§,\'¸\':§};Î(® i=0,«=».ì,°=».í,¦=[{\'¤\':\'Ý\',\'¥\':¡(){¢/Ù/.¨(°)}},{\'¤\':\'Ú\',\'¥\':¡(){¢ Û.³!=²}},{\'¤\':\'È\',\'¥\':¡(){¢/È/.¨(°)}},{\'¤\':\'Ü\',\'¥\':¡(){¢/Þ/.¨(°)}},{\'ª\':\'¶\',\'¤\':\'ß Ñ\',\'¥\':¡(){¢/à á â/.¨(«)},\'©\':¡(){¢ «.¹(/ã(\\d+(?:\\.\\d+)+)/)}},{\'¤\':\'Ì\',\'¥\':¡(){¢/Ì/.¨(«)}},{\'¤\':\'Í\',\'¥\':¡(){¢/Í/.¨(°)}},{\'¤\':\'Ï\',\'¥\':¡(){¢/Ï/.¨(«)}},{\'¤\':\'Ð\',\'¥\':¡(){¢/Ð/.¨(«)}},{\'ª\':\'·\',\'¤\':\'å Ñ\',\'¥\':¡(){¢/Ò/.¨(«)},\'©\':¡(){¢ «.¹(/Ò (\\d+(?:\\.\\d+)+(?:b\\d*)?)/)}},{\'¤\':\'Ó\',\'¥\':¡(){¢/æ|Ó/.¨(«)},\'©\':¡(){¢ «.¹(/è:(\\d+(?:\\.\\d+)+)/)}}];i<¦.Ë;i++){µ(¦[i].¥()){® ª=¦[i].ª?¦[i].ª:¦[i].¤.Õ();£[ª]=É;£.¥=¦[i].¤;® ­;µ(¦[i].©!=²&#038;&#038;(­=¦[i].©())){£.©.¯=­[1];£.©.±=Ê(­[1])}ê{® Ç=Ö ë(¦[i].¤+\'(?:\\\\s|\\\\/)(\\\\d+(?:\\\\.\\\\d+)+(?:(?:a|b)\\\\d*)?)\');­=«.¹(Ç);µ(­!=²){£.©.¯=­[1];£.©.±=Ê(­[1])}}×}};Î(® i=0,´=».ä,¦=[{\'ª\':\'¸\',\'¤\':\'ç\',\'¬\':¡(){¢/é/.¨(´)}},{\'¤\':\'Ô\',\'¬\':¡(){¢/Ô/.¨(´)}},{\'¤\':\'Æ\',\'¬\':¡(){¢/Æ/.¨(´)}}];i<¦.Ë;i++){µ(¦[i].¬()){® ª=¦[i].ª?¦[i].ª:¦[i].¤.Õ();£[ª]=É;£.¬=¦[i].¤;×}}}();',77,77,'function|return|Private|name|browser|data|false|test|version|identifier|ua|OS|result|var|string|ve|number|undefined|opera|pl|if|aol|msie|win|match|camino|navigator|mozilla|icab|konqueror|Unknown|flock|firefox|netscape|linux|safari|mac|Linux|re|iCab|true|parseFloat|length|Flock|Camino|for|Firefox|Netscape|Explorer|MSIE|Mozilla|Mac|toLowerCase|new|break|Public|Apple|Opera|window|Konqueror|Safari|KDE|AOL|America|Online|Browser|rev|platform|Internet|Gecko|Windows|rv|Win|else|RegExp|userAgent|vendor'.split('|')))
</pre>
<p><strong>Usage</strong></p>
<pre name='code' class='js'>
var browser = $.browser.browser();
</pre>
<p>For more info check <a href='http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/' target='_blank'>jQBrowser</a>.</p>
<h3>Display last tweet</h3>
<pre name='code' class='js'>
$.getJSON("http://twitter.com/statuses/user_timeline/username.json?callback=?", function(data) {
     $("#twitter").html(data[0].text);
});
</pre>
<p><a href='http://css-tricks.com/snippets/jquery/display-last-tweet/' target='_blank'>Reference URL</a>.</p>
<h3>Load jQuery only if it's not already loaded</h3>
<pre name='code' class='js'>
var jQueryScriptOutputted = false;
function initJQuery() {

    //if the jQuery object isn't available
    if (typeof(jQuery) == 'undefined') {

        if (! jQueryScriptOutputted) {
            //only output the script once..
            jQueryScriptOutputted = true;

            //output the script (load it from google api)
            document.write("<scr" + "ipt type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></scr" + "ipt>");
        }
        setTimeout("initJQuery()", 50);
    } else {

        $(function() {
            //do anything that needs to be done on document.ready
        });
    }

}
initJQuery();
</pre>
<p><a href='http://weblogs.asp.net/joelvarty/archive/2009/05/07/load-jquery-dynamically.aspx' target='_blank'>Reference URL</a>.</p>
<h3>Get mouse coordinates inside a box</h3>
<pre name='code' class='js'>
$(function() {
$("#demo-box").click(function(e) {

  var offset = $(this).offset();
  var relativeX = (e.pageX - offset.left);
  var relativeY = (e.pageY - offset.top);

  alert("X: " + relativeX + "  Y: " + relativeY);

});
});
</pre>
<p><a href='http://css-tricks.com/snippets/jquery/get-x-y-mouse-coordinates/' target='blank'>Reference URL</a></p>
<h3>Random HEX color</h3>
<pre name='code' class='js'>
'#'+Math.floor(Math.random()*16777215).toString(16);
</pre>
<p><a href='http://paulirish.com/2009/random-hex-color-code-snippets/' target='blank'>Reference URL</a></p>
<h3>Do ... to an element when it comes into the view by scrolling</h3>
<pre name='code' class='js'>
$(document).ready(function() {
    function isScrolledIntoView(elem) {
        var docViewTop = $(window).scrollTop();
        var docViewBottom = docViewTop + $(window).height();

        var elemTop = $(elem).offset().top;
        var elemBottom = elemTop + $(elem).height();

        return ((elemBottom >= docViewTop) &#038;&#038; (elemTop <= docViewBottom));
    }

    var myelement = $('#formcontainer'); // the element to act on if viewable
    $(window).scroll(function() {
        if(isScrolledIntoView(myelement)) {
            // do something when element is scrolled to and viewable
        } else {
            // do something when element is not viewable
        }
    });
});
</pre>
<p><a href='http://stackoverflow.com/questions/625143/change-div-based-on-how-far-down-the-page-you-have-scrolled' target='_blank'>Reference URL</a></p>
<h3>Email validation</h3>
<pre name='code' class='js'>
function checkMail(email){
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(email)) {
		return true;
	}
	return false;
}
</pre>
<p><a href='http://snipplr.com/view/814/email-javascript-validation/' target='_blank'>Reference URL</a></p>
<h3>Verticaly center an image inside it's parent</h3>
<pre name='code' class='js'>
$(window).load(function(){
    var parent_height = $('#the_image').parent().height();
    var image_height = $('#the_image').height();
    var top_margin = (parent_height - image_height)/2;
    $('#the_image').css( 'margin-top' , top_margin);
});
</pre>
<p><a href='http://web.enavu.com/daily_tip/verticaly-center-an-image-inside-a-div/' target='_blank'>Reference URL</a></p>
<h3>Open external links in new window</h3>
<pre name='code' class='js'>
$('a').each(function() {
   var a = new RegExp('/' + [removed].host + '/');
   if(!a.test(this.href)) {
       $(this).click(function(event) {
           event.preventDefault();
           event.stopPropagation();
           window.open(this.href, '_blank');
       });
   }
});
</pre>
<p>That's it, i hope you like my selection of jQuery and javascript snippets.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/10-awesome-jquery-and-javascript-snippets/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
