<?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>stoimen&#039;s web log &#187; featured</title>
	<atom:link href="http://www.stoimen.com/blog/category/featured/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stoimen.com/blog</link>
	<description>about web development</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Zend Framework &#8211; Disable Zend Layout</title>
		<link>http://www.stoimen.com/blog/2009/04/21/zend-framework-disable-zend-layout/</link>
		<comments>http://www.stoimen.com/blog/2009/04/21/zend-framework-disable-zend-layout/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 05:50:41 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[disable layout]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[zend_layout]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=536</guid>
		<description><![CDATA[Zend Framework - Disable Zend Layout <a href="http://www.stoimen.com/blog/2009/04/21/zend-framework-disable-zend-layout/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/04/27/accessing-the-layout-in-zend-framework/' rel='bookmark' title='Accessing the layout() in Zend Framework'>Accessing the layout() in Zend Framework</a></li>
<li><a href='http://www.stoimen.com/blog/2009/06/19/zend-framework-quick-tutorial-part-3-front-controller-plugins/' rel='bookmark' title='Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins'>Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins</a></li>
<li><a href='http://www.stoimen.com/blog/2010/07/07/default-error-handling-in-zend-framework/' rel='bookmark' title='Default Error Handling in Zend Framework'>Default Error Handling in Zend Framework</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>What&#8217;s Zend Layout</h2>
<p>Everybody knows that sometimes you need header and footer for almost every page. In Zend Framework you don&#8217;t need to include them in every template page, as it will be if you were using Smarty for instance. You just need to use Zend_Layout. It&#8217;s easy and it&#8217;s helpful.</p>
<h2>What if you don&#8217;t need layout for a controller action?</h2>
<p>Well if you have to have a given controller action with no use of Zend_Layout, you just need to disable it.</p>
<h2>How &#8230;</h2>
<p>&#8230; simply by placing this line in you controller action:</p>
<blockquote><p>$this-&gt;_helper-&gt;layout-&gt;disableLayout();</p></blockquote>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/04/27/accessing-the-layout-in-zend-framework/' rel='bookmark' title='Accessing the layout() in Zend Framework'>Accessing the layout() in Zend Framework</a></li>
<li><a href='http://www.stoimen.com/blog/2009/06/19/zend-framework-quick-tutorial-part-3-front-controller-plugins/' rel='bookmark' title='Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins'>Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins</a></li>
<li><a href='http://www.stoimen.com/blog/2010/07/07/default-error-handling-in-zend-framework/' rel='bookmark' title='Default Error Handling in Zend Framework'>Default Error Handling in Zend Framework</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/21/zend-framework-disable-zend-layout/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;</title>
		<link>http://www.stoimen.com/blog/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/</link>
		<comments>http://www.stoimen.com/blog/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 05:31:34 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=504</guid>
		<description><![CDATA[IE6 fails to display correctly nested <a> tags. Why and how to find a workaround? <a href="http://www.stoimen.com/blog/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/' rel='bookmark' title='a tag doesn&#8217;t apply hover on IE6'>a tag doesn&#8217;t apply hover on IE6</a></li>
<li><a href='http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/' rel='bookmark' title='Flex 3 HSlider thumb gap issue'>Flex 3 HSlider thumb gap issue</a></li>
<li><a href='http://www.stoimen.com/blog/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/' rel='bookmark' title='Scroll an IFRAME Content to a Predefined Position'>Scroll an IFRAME Content to a Predefined Position</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>The Problem</h2>
<p>Well it may look strange to want to do that exaclty. Who wants to have a &lt;a&gt; tag in another. It really looks semanticaly incorrect, but however, every normal A grade browser&#8217;s displaing it correctly, except .. IE6.</p>
<h2>The Case</h2>
<p>The Microsoft team may be too much semanticaly involved in that problem, I should guess, but that&#8217;s really impossible.</p>
<h2>The Workaround</h2>
<p>The workaround is trivial. You just put the &lt;a&gt; tags one after another and adjust them with relative position and margin with negative values.</p>
<h2>&#8230; and The Example</h2>
<blockquote><p>&lt;a href=&#8221;#&#8221;&gt;link here&lt;/a&gt;</p>
<p>&lt;a href=&#8221;#&#8221; style=&#8221;margin:-10px 0 0; position : relative;&#8221;&gt;link there&lt;/a&gt;</p></blockquote>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/' rel='bookmark' title='a tag doesn&#8217;t apply hover on IE6'>a tag doesn&#8217;t apply hover on IE6</a></li>
<li><a href='http://www.stoimen.com/blog/2009/04/25/flex-3-hslider-thumb-gap-issue/' rel='bookmark' title='Flex 3 HSlider thumb gap issue'>Flex 3 HSlider thumb gap issue</a></li>
<li><a href='http://www.stoimen.com/blog/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/' rel='bookmark' title='Scroll an IFRAME Content to a Predefined Position'>Scroll an IFRAME Content to a Predefined Position</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>load flash .swf in hidden div</title>
		<link>http://www.stoimen.com/blog/2009/04/14/load-flash-swf-in-hidden-div/</link>
		<comments>http://www.stoimen.com/blog/2009/04/14/load-flash-swf-in-hidden-div/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 05:23:21 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[loading]]></category>
		<category><![CDATA[ready]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=526</guid>
		<description><![CDATA[How you can load a flash file in the background, and show it only if it's completely loaded... <a href="http://www.stoimen.com/blog/2009/04/14/load-flash-swf-in-hidden-div/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/' rel='bookmark' title='Flash doesn&#8217;t load in div with display:none style'>Flash doesn&#8217;t load in div with display:none style</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/05/flex-3-import-swf-symbols/' rel='bookmark' title='Flex 3 import swf symbols'>Flex 3 import swf symbols</a></li>
<li><a href='http://www.stoimen.com/blog/2009/07/24/javascript-detect-browser-speed-and-load-the-slow-connection-site/' rel='bookmark' title='javascript: detect browser speed and load the &#8220;slow connection&#8221; site version'>javascript: detect browser speed and load the &#8220;slow connection&#8221; site version</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Well let&#8217;s assume you&#8217;ve a &lt;div&gt; and like to load a .swf flash file into it. We suppose you&#8217;re using swfobject or any other library or even if you don&#8217;t use library that should be a simple thing to do.</p>
<p>But what happens if the &lt;div&gt; has the style property &#8220;display:none&#8221;. Than unfortunately the flash file does not load. You get the file from the server, but when you set the &lt;div&gt; to be &#8220;display:block&#8221;-ed the flash starts the play from the very beggining.</p>
<p>Actually that&#8217;s supposed to be default action. In fact the workaround is like so. You put the &lt;div&gt;, not to be hidden with that &#8220;display:none&#8221;, but to be with 0px width and height. something like that:</p>
<blockquote><p>&lt;div style=&#8221;width:0px;height:0px;overflow:hidden;&#8221;&gt;&lt;/div&gt;</p></blockquote>
<p>The overflow is important &#8211; cause you&#8217;d like to load the swf file into the &lt;div&gt; and if the swfobject.crateSWF or embedSWF is with 100% width and height, the flash will result with zero height and zero width.</p>
<p>So you may put the flash to load in something like that:</p>
<blockquote><p>&lt;div style=&#8221;width:800px;height:600px;&#8221;&gt;&lt;/div&gt;</p></blockquote>
<p>and put that one into the div with overflow hidden. Than the outer &lt;div&gt; will be ivisible but present to the page and the inner one will be with fixed width and height.</p>
<p>Now when the flash loads, or if the user clicks on some part of the page or fires some event, you can simply reset the width and height of the outer &lt;div&gt;. The resulting piece of code will look like:</p>
<blockquote><p>&lt;div style=&#8221;width:800px;height:600px;overflow:hidden;&#8221;&gt;</p>
<p>&lt;div style=&#8221;width:800px;height:600px;&#8221;&gt; the flash goes here with 100% width and height &lt;/div&gt;</p>
<p>&lt;/div&gt;</p></blockquote>
<p>With jQuery that should look as follows:</p>
<blockquote><p>$(document).ready(function() {</p>
<p>$(&#8216;#outer-div&#8217;).css({ width: &#8217;800px&#8217;, height : &#8217;600px&#8217; });</p>
<p>});</p></blockquote>
<p>Now you can load the flash in background, even you can start loading it after everything else is loaded &#8211; i.e. on document ready event of jQuery, so if you have havy computations in that flash you can simple show something else to the user till the flash loads.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/' rel='bookmark' title='Flash doesn&#8217;t load in div with display:none style'>Flash doesn&#8217;t load in div with display:none style</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/05/flex-3-import-swf-symbols/' rel='bookmark' title='Flex 3 import swf symbols'>Flex 3 import swf symbols</a></li>
<li><a href='http://www.stoimen.com/blog/2009/07/24/javascript-detect-browser-speed-and-load-the-slow-connection-site/' rel='bookmark' title='javascript: detect browser speed and load the &#8220;slow connection&#8221; site version'>javascript: detect browser speed and load the &#8220;slow connection&#8221; site version</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/14/load-flash-swf-in-hidden-div/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Optimize your images &#8211; improve the performance</title>
		<link>http://www.stoimen.com/blog/2009/04/07/optimize-your-images-improve-the-performance/</link>
		<comments>http://www.stoimen.com/blog/2009/04/07/optimize-your-images-improve-the-performance/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 05:39:19 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[alphaimageloader]]></category>
		<category><![CDATA[baseline]]></category>
		<category><![CDATA[gif]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[png32]]></category>
		<category><![CDATA[png8]]></category>
		<category><![CDATA[progressive]]></category>
		<category><![CDATA[transparency]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=473</guid>
		<description><![CDATA[Learn the differences between image formats <a href="http://www.stoimen.com/blog/2009/04/07/optimize-your-images-improve-the-performance/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/' rel='bookmark' title='When you should use base64 for images'>When you should use base64 for images</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/13/optimizing-the-web-start-with-the-images/' rel='bookmark' title='Optimizing the web. Start with the images!'>Optimizing the web. Start with the images!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/07/01/replace-the-broken-images-with-a-default-image-with-javascript/' rel='bookmark' title='Replace the Broken Images with a Default Image with JavaScript'>Replace the Broken Images with a Default Image with JavaScript</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Overview</h2>
<p>In a series of articles I&#8217;ll share what&#8217;s my experience with image optimization. Of course the most images you have the most page weight you have. That&#8217;s why optimizing your images should be your primary task.</p>
<h2>Image Formats</h2>
<p>First, I&#8217;m gonna mention several formats, which everyone of the webdevs are using widely. There are GIF, JPEG and PNG, where PNG can be either PNG8 and PNG24 (PNG32 is also available as name of that format).</p>
<p>What are the differences between them and when to use one or another?</p>
<p>Well some of us just use one or another even without knowing the difference or without thinking about the optimization. I remember when I just put the images in JPEG with no idea what are the other formats before.</p>
<p>In fact all the formats has pros and cons.</p>
<h2>JPEG</h2>
<p>The JPEG format can be either progressive or baseline. The difference is that the progressive JPEG can be loaded directly in the browser with very low quality and then to load with better quality. Some experts insist that this is old school, but I don&#8217;t think so. When the image is not the required one (think of a wallpaper preview) the user can skip and go to another without waiting the hole image. The baseline JPEG is loading the good quality image but starting from top to bottom. With portions of the image.</p>
<h3>IE and progressive JPEGs</h3>
<p>Of course the Internet Explorer 6 don&#8217;t support the progressive downloading of an JPEG even if it&#8217;s progressive. Well this is no issue till the IE loads the image like a baseline JPEG.</p>
<h3>Which JPEG is progressive and which is baseline</h3>
<p>You can certainly make some test to determine which JPEG is progressive and which is baseline, from the loading behaviour in your browser. If you&#8217;d like to convert an image to a progressive JPEG or baseline you can use a free open source programs out there in the wild online space. Once they are converted to one or another format you can use them widely. Because most of the tools are comand line open source tools you can automate them on the server where the user uploads it&#8217;s images. Now every big image can be converted to be progressive.</p>
<h3>When to use progressive and baseline JPEGs?</h3>
<p>Well the tests show that for images small than 10 K best compression you get with baseline, and for bigger images the small size you get is with progressive JPEGs. There&#8217;s the rule use the baseline for thumbs and progressive for any other big image.</p>
<h2>GIF</h2>
<p>This format is well known from the early ages of the web. It allows transparency and animation. Actually the problem with the GIF images is that they don&#8217;t support semi-transparency which is a problem nowadays. Today the web users are used to good quality images and somehow the GIF is not suitable. But it&#8217;s still the most used format for icons and of course animations.</p>
<h3>When should I use GIF?</h3>
<p>Well as I&#8217;ll mention in a while the PNG8 is a better format than GIF for transparent small icons. But if you should use some kind of an animation like ajax loading circle (or bar) the GIF format is suitable for you. Than you must use a GIF.</p>
<h2>PNG</h2>
<p>As I said PNG can be either PNG8 or PNG24 (which is also called PNG32). Actually PNG8 acts just like GIF, with the important exception that it supports semi-transparency, but yet again on every browser except IE6. In IE6 the PNG8 is just the same like GIF which is not so bad. If you&#8217;d like to use GIF for an icon, you should make it PNG8. There are semi-transparent pixels (except IE6 and above) and you get better experience on other browsers than GIF.</p>
<h3>PNG32 transparency?</h3>
<p>In fact PNG32 is not transparent on IE6 (on transparent pixels IE puts some kind of gray pixels). There you can use AlphaImageLoader filter, but that can dramaticaly slow down your browser, so it&#8217;s not a good idea.</p>
<p>You should avoid the PNG32 transparent images and the usage of AlphaImageLoader filter.</p>
<h2>Conclusion</h2>
<p>For every of these formats there lots of tools that remove system information from the image crash and crunch the files so that they become smaller. They can be automated and used on the server.</p>
<p>Now when you use different formats you can be aware of the differences between them and to use the appropriate ones.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/' rel='bookmark' title='When you should use base64 for images'>When you should use base64 for images</a></li>
<li><a href='http://www.stoimen.com/blog/2010/01/13/optimizing-the-web-start-with-the-images/' rel='bookmark' title='Optimizing the web. Start with the images!'>Optimizing the web. Start with the images!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/07/01/replace-the-broken-images-with-a-default-image-with-javascript/' rel='bookmark' title='Replace the Broken Images with a Default Image with JavaScript'>Replace the Broken Images with a Default Image with JavaScript</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/07/optimize-your-images-improve-the-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FireUnit &#8211; the missing extension for Firefox</title>
		<link>http://www.stoimen.com/blog/2009/04/02/fireunit-the-missing-extension-for-firefox/</link>
		<comments>http://www.stoimen.com/blog/2009/04/02/fireunit-the-missing-extension-for-firefox/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 05:41:59 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fireunit]]></category>
		<category><![CDATA[john resig]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=466</guid>
		<description><![CDATA[Fireunit extension <a href="http://www.stoimen.com/blog/2009/04/02/fireunit-the-missing-extension-for-firefox/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/03/firebugs-console-profile-vs-console-time/' rel='bookmark' title='Firebug&#8217;s console.profile vs console.time'>Firebug&#8217;s console.profile vs console.time</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/02/profiling-javascript-with-firebug-console-profile-console-time/' rel='bookmark' title='Profiling JavaScript with Firebug. console.profile() &amp; console.time()!'>Profiling JavaScript with Firebug. console.profile() &#038; console.time()!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/02/firebugs-console-time-accuracy/' rel='bookmark' title='Firebug&#8217;s console.time() accuracy'>Firebug&#8217;s console.time() accuracy</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>With the <a title="FireUnit" href="http://fireunit.org/" target="_blank">FireUnit</a>, extension for Firefox, written by John Resig, the author of jQuery library, you can profile your javascript application, which helps a lot the work with FireBug and Firefox.</p>
<p>Enjoy!</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/02/03/firebugs-console-profile-vs-console-time/' rel='bookmark' title='Firebug&#8217;s console.profile vs console.time'>Firebug&#8217;s console.profile vs console.time</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/02/profiling-javascript-with-firebug-console-profile-console-time/' rel='bookmark' title='Profiling JavaScript with Firebug. console.profile() &amp; console.time()!'>Profiling JavaScript with Firebug. console.profile() &#038; console.time()!</a></li>
<li><a href='http://www.stoimen.com/blog/2010/02/02/firebugs-console-time-accuracy/' rel='bookmark' title='Firebug&#8217;s console.time() accuracy'>Firebug&#8217;s console.time() accuracy</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/02/fireunit-the-missing-extension-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; accessing a child element</title>
		<link>http://www.stoimen.com/blog/2009/04/01/jquery-accessing-a-child-element/</link>
		<comments>http://www.stoimen.com/blog/2009/04/01/jquery-accessing-a-child-element/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 05:20:03 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[childNode]]></category>
		<category><![CDATA[first-child]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=454</guid>
		<description><![CDATA[How to access the first child elements of multiple DOM elements with jQuery. <a href="http://www.stoimen.com/blog/2009/04/01/jquery-accessing-a-child-element/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/07/29/cancel-bubbling-on-element-click-with-jquery/' rel='bookmark' title='cancel bubbling on element click with jQuery'>cancel bubbling on element click with jQuery</a></li>
<li><a href='http://www.stoimen.com/blog/2009/12/30/jquery-live-vs-bind-performance/' rel='bookmark' title='jQuery live() vs bind() performance'>jQuery live() vs bind() performance</a></li>
<li><a href='http://www.stoimen.com/blog/2009/07/08/jquery-check-for-element-visibility/' rel='bookmark' title='jQuery check for element visibility'>jQuery check for element visibility</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s assume you have a &lt;div&gt; element with 20 &lt;a&gt; tags inside, and each &lt;a&gt; tag has a &lt;span&gt; somewhere inside it. If you&#8217;d like to access all those spans you should use this jQuery line:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first-child'</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>Common mistake is to query like that:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div a:first-child'</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>but that is completely other thing, and will return the first &lt;a&gt; tag, not the &lt;span&gt; inside all of them.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/07/29/cancel-bubbling-on-element-click-with-jquery/' rel='bookmark' title='cancel bubbling on element click with jQuery'>cancel bubbling on element click with jQuery</a></li>
<li><a href='http://www.stoimen.com/blog/2009/12/30/jquery-live-vs-bind-performance/' rel='bookmark' title='jQuery live() vs bind() performance'>jQuery live() vs bind() performance</a></li>
<li><a href='http://www.stoimen.com/blog/2009/07/08/jquery-check-for-element-visibility/' rel='bookmark' title='jQuery check for element visibility'>jQuery check for element visibility</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/04/01/jquery-accessing-a-child-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex 3 Custom Timeline Component</title>
		<link>http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/</link>
		<comments>http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 05:57:22 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=450</guid>
		<description><![CDATA[Flex 3 custom timeline component <a href="http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/02/06/flex-3-custom-preloader/' rel='bookmark' title='Flex 3 Custom Preloader'>Flex 3 Custom Preloader</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/flex-3-custom-datechooser-2/' rel='bookmark' title='Flex 3 Custom DateChooser'>Flex 3 Custom DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve actually made a custom timeline component wich I&#8217;ll post recently.</p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/02/06/flex-3-custom-preloader/' rel='bookmark' title='Flex 3 Custom Preloader'>Flex 3 Custom Preloader</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/flex-3-custom-datechooser-2/' rel='bookmark' title='Flex 3 Custom DateChooser'>Flex 3 Custom DateChooser</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/' rel='bookmark' title='Download Custom Flex 3 DateChooser'>Download Custom Flex 3 DateChooser</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/03/31/flex-3-custom-timeline-component/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dependency Injection</title>
		<link>http://www.stoimen.com/blog/2009/03/31/dependency-injection/</link>
		<comments>http://www.stoimen.com/blog/2009/03/31/dependency-injection/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 05:25:24 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[dependency injection]]></category>
		<category><![CDATA[fabien potencier]]></category>
		<category><![CDATA[martin fowler]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=440</guid>
		<description><![CDATA[What is dependency injection - learn from the Fabien Potencier's blog. <a href="http://www.stoimen.com/blog/2009/03/31/dependency-injection/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2008/08/11/zend-framework-quick-tutorial-part-2-directory-layout-and-bootstrapping/' rel='bookmark' title='Zend Framework &#8211; quick tutorial (part 2)'>Zend Framework &#8211; quick tutorial (part 2)</a></li>
<li><a href='http://www.stoimen.com/blog/2010/04/24/all-the-site-in-one-request/' rel='bookmark' title='All the Site in &#8230; One Request'>All the Site in &#8230; One Request</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #800000;"><span style="text-decoration: underline;"><em>Fabien Potencier writes about the Dependency Injection</em></span></span></h2>
<p>With a series of interesting posts <a href="http://fabien.potencier.org/">Fabien Potencier</a> explains what is a dependency injection and how to use it. Actually as the author says almost everyone of us has used it without even know it&#8217;s called &#8216;dependency injection&#8217;. Follow these two links to understand this technique by a given collection of very good examples:</p>
<ol>
<li><a title="What is dependency injection" href="http://fabien.potencier.org/article/11/what-is-dependency-injection" target="_blank">What is dependency injection</a></li>
<li><a title="Do you need a dependency injection container" href="http://fabien.potencier.org/article/12/do-you-need-a-dependency-injection-container" target="_blank">Do you need a dependency injection container?</a></li>
</ol>
<h2><span style="color: #800000;"><span style="text-decoration: underline;"><em><strong>Related Links</strong></em></span></span></h2>
<ol>
<li><a title="Martin Fowler" href="http://www.martinfowler.com/articles/injection.html" target="_blank">Martin Fowler &#8211; Inversion of Control Containers and the Dependency Injection pattern</a></li>
</ol>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2008/08/11/zend-framework-quick-tutorial-part-2-directory-layout-and-bootstrapping/' rel='bookmark' title='Zend Framework &#8211; quick tutorial (part 2)'>Zend Framework &#8211; quick tutorial (part 2)</a></li>
<li><a href='http://www.stoimen.com/blog/2010/04/24/all-the-site-in-one-request/' rel='bookmark' title='All the Site in &#8230; One Request'>All the Site in &#8230; One Request</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/03/31/dependency-injection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lambda functions in PHP?</title>
		<link>http://www.stoimen.com/blog/2009/03/31/lambda-functions-in-php/</link>
		<comments>http://www.stoimen.com/blog/2009/03/31/lambda-functions-in-php/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 05:24:50 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[lambda functions]]></category>
		<category><![CDATA[namespaces]]></category>
		<category><![CDATA[php 5.3.]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=443</guid>
		<description><![CDATA[What's new in PHP 5.3. <a href="http://www.stoimen.com/blog/2009/03/31/lambda-functions-in-php/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/09/17/5-php-string-functions-you-need-to-know/' rel='bookmark' title='5 PHP String Functions You Need to Know'>5 PHP String Functions You Need to Know</a></li>
<li><a href='http://www.stoimen.com/blog/2010/05/22/php-functions-realpath/' rel='bookmark' title='PHP Functions: realpath()'>PHP Functions: realpath()</a></li>
<li><a href='http://www.stoimen.com/blog/2011/05/30/object-oriented-javascript-inheritance/' rel='bookmark' title='Object Oriented JavaScript: Inheritance'>Object Oriented JavaScript: Inheritance</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2><em><span style="color: #800000;"><span style="text-decoration: underline;">What&#8217;s new in PHP 5.3.</span></span></em></h2>
<p>When I heart about the new PHP 5.3 feature &#8211; the lambda functions I was really surprised. Yes really after we have in JavaScript such a powerfull tool, why not having it in PHP. Other new feature, waited so much, are the namespaces.</p>
<h2><span style="color: #800000;"><em><span style="text-decoration: underline;">Anonymous Functions?</span></em></span></h2>
<p>The anonymous functions is really a functional programming language feature such as scheme. There are lots of talks about the functional nature of JavaScript, but PHP was really different.</p>
<h2><span style="color: #800000;"><em><span style="text-decoration: underline;">What about anonymous objects</span></em></span></h2>
<p>I&#8217;d like to see anonymous objects, yet again like in JS, in PHP. This is really powerfull, I hope more programmers would like to see such features in PHP.</p>
<h2><span style="color: #800000;"><span style="text-decoration: underline;"><em>Related Links</em></span></span></h2>
<ol>
<li><a title="Namespaces has PHP 5.3." href="http://blog.agoraproduction.com/index.php?/archives/51-Namespaces-has-PHP-5.3-Or-the-other-way-around.html" target="_blank">Namespaces has PHP 5.3. (Or the other way around)</a></li>
<li><a title="What's new in PHP 5.3." href="http://blog.felho.hu/whats-new-in-php-53-part-1-namespaces.html" target="_blank">What&#8217;s new in PHP 5.3.</a></li>
<li><a title="Lambda functions are coming to PHP" href="http://dev.juokaz.com/php/lambda-function-coming-to-php" target="_blank">Lambda functions are coming to PHP</a></li>
</ol>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2010/09/17/5-php-string-functions-you-need-to-know/' rel='bookmark' title='5 PHP String Functions You Need to Know'>5 PHP String Functions You Need to Know</a></li>
<li><a href='http://www.stoimen.com/blog/2010/05/22/php-functions-realpath/' rel='bookmark' title='PHP Functions: realpath()'>PHP Functions: realpath()</a></li>
<li><a href='http://www.stoimen.com/blog/2011/05/30/object-oriented-javascript-inheritance/' rel='bookmark' title='Object Oriented JavaScript: Inheritance'>Object Oriented JavaScript: Inheritance</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/03/31/lambda-functions-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS color units</title>
		<link>http://www.stoimen.com/blog/2009/03/20/css-color-units/</link>
		<comments>http://www.stoimen.com/blog/2009/03/20/css-color-units/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 06:30:05 +0000</pubDate>
		<dc:creator>stoimen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[rgb]]></category>
		<category><![CDATA[unit]]></category>

		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=272</guid>
		<description><![CDATA[What is a CSS color unit? How to set up a color using CSS. <a href="http://www.stoimen.com/blog/2009/03/20/css-color-units/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/11/04/jquery-css-selectors-change-one-or-more-css-properties/' rel='bookmark' title='jQuery CSS selectors. Change one or more CSS properties!'>jQuery CSS selectors. Change one or more CSS properties!</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/04/dom-element-size-in-px-pt-em-or-percentage/' rel='bookmark' title='DOM element size in px, pt, em or %'>DOM element size in px, pt, em or %</a></li>
<li><a href='http://www.stoimen.com/blog/2009/08/07/change-the-sea-ocean-color-of-openlayers-osm-map/' rel='bookmark' title='Change the sea/ocean color of OpenLayers (OSM) map'>Change the sea/ocean color of OpenLayers (OSM) map</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #800000;"><em><span style="text-decoration: underline;">What is a color unit?</span></em></span></h2>
<p>By saying CSS units some may guess this is related to the mesurement units. In fact beside the mesurment there is also a color units defined in CSS.</p>
<p>The most used is the<strong> #rrggbb</strong>, where the three channels red, green and blue are represented with hexadecimals, i.e. <strong>#fa03cd</strong>, or the short way <strong>#rgb</strong>. In fact <strong>#cc00cc</strong> will be the same with <strong>#c0c</strong>, but <strong>#cc02ca</strong> is not like<strong> #c0c</strong>.</p>
<h1 style="background:#fa03cd">Some purple #FA03CD</h1>
<p>Actually there are other ways to set a color on an element. Such a way is to set the <strong>rgb(255,255,255)</strong>, which is white. You can easyly transform the hexadecimals to decimals, it&#8217;s obvious that xFF is 255 in decimals.</p>
<h2></h2>
<h2><span style="color: #800000;"><em><span style="text-decoration: underline;">There are five ways to set up a color with CSS</span></em></span></h2>
<p>In general there are five ways to set up color with CSS:</p>
<p><strong>#rrggbb</strong> ( for red, green and blue as mentioned &#8211; <strong>#FF00FA</strong> )</p>
<p><strong>#rgb</strong> ( short way to say #rrggbb &#8211; <strong>#CC3</strong> )</p>
<p><strong>rgb( x, y, z )</strong> &#8211; ( where <strong>x</strong>, <strong>y</strong> and <strong>z</strong> are numbers between 0 and 255 &#8211; <strong>rgb( 255, 255, 255)</strong> )</p>
<p><strong>rgb( x, y, z )</strong> &#8211; ( where <strong>x</strong>, <strong>y</strong> and <strong>z</strong> are percents between 0 and 100 &#8211; <strong>rgb( 100%, 20%, 23%)</strong> )</p>
<h2></h2>
<h2><span style="color: #800000;"><span style="text-decoration: underline;"><em>The Windows palette</em></span></span></h2>
<p>There is a fift way to set a color on a element with CSS, with predefined colors corresponding to the MS Windows VGA palette, and they are:</p>
<p><strong class="css"><span style="background: white none repeat scroll 0% 0%; color: aqua;">aqua</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: black;">black</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: blue;">blue</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: fuchsia;">fuchsia</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: gray;">gray</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: green;">green</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: lime;">lime</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: maroon;">maroon</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: navy;">navy</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: olive;">olive</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: purple;">purple</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: red;">red</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: silver;">silver</span></strong>, <strong class="css"><span style="background: white none repeat scroll 0% 0%; color: teal;">teal</span></strong>, <strong class="css"><span style="background: silver none repeat scroll 0% 0%; color: white;">white</span></strong>, and <strong class="css"><span style="background: silver none repeat scroll 0% 0%; color: yellow;">yellow</span></strong></p>
<p>Related posts:<ol>
<li><a href='http://www.stoimen.com/blog/2009/11/04/jquery-css-selectors-change-one-or-more-css-properties/' rel='bookmark' title='jQuery CSS selectors. Change one or more CSS properties!'>jQuery CSS selectors. Change one or more CSS properties!</a></li>
<li><a href='http://www.stoimen.com/blog/2009/03/04/dom-element-size-in-px-pt-em-or-percentage/' rel='bookmark' title='DOM element size in px, pt, em or %'>DOM element size in px, pt, em or %</a></li>
<li><a href='http://www.stoimen.com/blog/2009/08/07/change-the-sea-ocean-color-of-openlayers-osm-map/' rel='bookmark' title='Change the sea/ocean color of OpenLayers (OSM) map'>Change the sea/ocean color of OpenLayers (OSM) map</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.stoimen.com/blog/2009/03/20/css-color-units/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

