<?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>Ace on Tech</title>
	<atom:link href="http://aceontech.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://aceontech.com</link>
	<description>Tech Inspired Ramblings</description>
	<lastBuildDate>Mon, 12 Jul 2010 14:01:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Free Checkered Web Design Pattern: Carbon Fiber</title>
		<link>http://aceontech.com/2010/07/12/free-checkered-web-design-pattern-carbon-fiber/</link>
		<comments>http://aceontech.com/2010/07/12/free-checkered-web-design-pattern-carbon-fiber/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 13:43:34 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Web Development & Design]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1390</guid>
		<description><![CDATA[Another free pattern, a checkered shiny one this time, designed by RubelCreative from Brusheezy. ]]></description>
			<content:encoded><![CDATA[<p>Simple but good: checkered Photoshop design patterns. I found this one on <a title="Brusheezy" href="http://www.brusheezy.com">Brusheezy</a> and was created by <a title="RubelCreative, user at Brusheezy" href="http://www.brusheezy.com/members/RubelCreative">RubelCreative</a>. It&#8217;s a simple set of three patterns in different styles: (1) plain, (2) shiny and (3) slanted. I wouldn&#8217;t use these as-is, because a harsh pattern like these can become pretty eye-diverting. The way I implemented the shiny pattern was to set its <strong>blend mode</strong> to Overlay with a solid color underneath. Turn down the<strong> opacity or fill </strong>a notch for good measure.</p>
<p style="text-align: center;"><a href="http://aceontech.com/wp-content/uploads/2010/07/Carbon-fiber-pattern.gif" rel="lightbox[1390]"><img class="size-full wp-image-1391 alignnone" title="Carbon Fiber Pattern" src="http://aceontech.com/wp-content/uploads/2010/07/Carbon-fiber-pattern.gif" alt="Carbon Fiber Pattern" width="300" height="220" /></a></p>
<p style="text-align: center;"><a href="http://aceontech.com/wp-content/uploads/2010/07/Carbon-fiber-pattern.gif" rel="lightbox[1390]"></a>Download this pattern <a title="Checkered Carbon Fiber Patterns" href="http://www.brusheezy.com/patterns/986-Checkered-Carbon-Fiber-Patterns">here</a> (Brusheezy link).</p>
<p>One piece of advice, maybe: please don&#8217;t use this as the general background for your web designs, unless it&#8217;s toned down somehow. Moderation usually bodes well <img src='http://aceontech.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2010/07/12/free-checkered-web-design-pattern-carbon-fiber/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Photoshop Brushes: Watercolor Splatters</title>
		<link>http://aceontech.com/2010/07/08/free-photoshop-brushes-watercolor-splatters/</link>
		<comments>http://aceontech.com/2010/07/08/free-photoshop-brushes-watercolor-splatters/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 22:03:23 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Web Development & Design]]></category>
		<category><![CDATA[brushes]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1382</guid>
		<description><![CDATA[Take a look at this free set of artistic &#038; hi-res brushes featuring watercolor splatters for use in your web designs. Highly recommended.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re trying to spruce up your web designs with creative touches, Photoshop brushes are an oft-regarded solution. Many digital artists publish free brushes and when used wisely, they can give your designs that little extra oomph. Free brushes are especially nice for people like me, digital art novices. While I was perusing the great <a title="Brusheezy.com" href="http://www.brusheezy.com">Brusheezy</a> (aggregator of free Photoshop patterns, brushes and textures), I came across this great set of <strong>watercolor splatters</strong> for use on my portfolio page.</p>
<p style="text-align: center;"><a href="http://aceontech.com/wp-content/uploads/2010/07/300x220.jpeg" rel="lightbox[1382]"><img class="aligncenter size-full wp-image-1383" title="Watercolor Splatters Preview" src="http://aceontech.com/wp-content/uploads/2010/07/300x220.jpeg" alt="Watercolor Splatters Preview" width="300" height="220" /></a></p>
<p style="text-align: center;">Find the download page <a title="Watercolor Splatters on Brusheezy" href="http://www.brusheezy.com/brushes/2772-Watercolor-Splatters">here</a> (Brusheezy).</p>
<p>The set contains <strong>32 hi-res textures with resolutions up to 1250 and 2500 pixels</strong>. The artist doesn&#8217;t require attribution, so these brushes can be used freely in a variety of ways. I personally scaled the splatters down to function as backgrounds to my navigation links.</p>
<p>Nite and enjoy <img src='http://aceontech.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2010/07/08/free-photoshop-brushes-watercolor-splatters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smoothly scroll to anchor links with LocalScroll</title>
		<link>http://aceontech.com/2010/07/06/smoothly-scroll-to-anchor-links-with-localscroll/</link>
		<comments>http://aceontech.com/2010/07/06/smoothly-scroll-to-anchor-links-with-localscroll/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 21:42:38 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Web Development & Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1375</guid>
		<description><![CDATA[Use this free jQuery plugin to create a smooth scrolling effect when clicking on links to anchors on a page.]]></description>
			<content:encoded><![CDATA[<p>This is another one of the great finds I made while designing my portfolio website. Because of its nature, all of the content for this website fits on a single (yet long) page. This page is accompanied by a navigation section on the side containing links to anchors on the page. I wanted a sexy effect when a user clicked on one of the aforementioned links, and finally went with a nice scrolling effect.</p>
<p>Instead of writing this myself, I opted for the <strong>free jQuery plugin</strong> called <strong><a title="LocalScroll page on jQuery" href="http://plugins.jquery.com/project/LocalScroll">LocalScroll</a></strong>, which was skillfully created by <a title="Ariel Flesler" href="http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html">Ariel Flesler</a>. This script is very, very simple to implement but adds a high degree of <em>cachet </em>to your page. It&#8217;s certainly a nice touch to vanity sites like portfolios or resumes.</p>
<p>Download the plugin <a title="LocalScroll jQuery Plugin" href="http://plugins.jquery.com/project/LocalScroll">here</a>. To make this work, you will need a recent version of <a title="jQuery Homepage" href="http://jquery.com/">jQuery</a> running on your page <strong>and another</strong> plugin by Ariel Flesler called <a title="ScrollTo jQuery Plugin" href="http://plugins.jquery.com/project/ScrollTo">ScrollTo</a> (LocalScroll is based on ScrollTo and requires it to function correctly).</p>
<p>An <strong>example HTML header</strong>:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://aceontech.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/head.html"><span class="kw2">head</span></a>&gt;</span>
	<span class="sc2">&lt;<a href="http://december.com/html/4/element/meta.html"><span class="kw2">meta</span></a> <span class="kw3">charset</span><span class="sy0">=</span>utf-<span class="nu0">8</span> <span class="sy0">/</span>&gt;</span>
	<span class="sc2">&lt;<a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>Scrolling Page<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>
	<span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;lib/jquery-1.4.2.js&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">charset</span><span class="sy0">=</span><span class="st0">&quot;utf-8&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span>
	<span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;lib/jquery.scrollTo-min.js&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">charset</span><span class="sy0">=</span><span class="st0">&quot;utf-8&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span>
	<span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;lib/jquery.localscroll-min.js&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">charset</span><span class="sy0">=</span><span class="st0">&quot;utf-8&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/head.html"><span class="kw2">head</span></a>&gt;</span></pre></div></div>
<p>Now all you need to do is <strong>create some anchor links </strong>and link to them. To make the smooth scrolling work, you need to write a bit of JavaScript.</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://aceontech.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;resume&quot;</span>&gt;</span>Resume<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;portfolio&quot;</span>&gt;</span>Portfolio<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;</span></pre></div></div>
<p>Your document ready function should look something like this:</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://aceontech.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
	$.<span class="me1">localScroll</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
		<span class="kw3">stop</span><span class="sy0">:</span> <span class="kw2">true</span>
	<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>And.. That&#8217;s it. Refer to the plugin&#8217;s documentation for all of its options.<br />
Happy scrolling!</p>
]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2010/07/06/smoothly-scroll-to-anchor-links-with-localscroll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Free Grunge Webdesign Textures</title>
		<link>http://aceontech.com/2010/07/05/5-free-grunge-webdesign-textures/</link>
		<comments>http://aceontech.com/2010/07/05/5-free-grunge-webdesign-textures/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 20:54:00 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Web Development & Design]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[textures]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1101</guid>
		<description><![CDATA[Here are 5 free grunge textures for use on your website. Includes how to customize the textures and implement it on your site.]]></description>
			<content:encoded><![CDATA[<p>In recent weeks, I started designing my portfolio website at <a href="http://alex.manarpies.com">alex.manarpies.com</a>. For this site, I aimed for a neutral, yet “designy” feel and ended up with a grungy blue and brown theme featuring custom typefaces and letter-pressed headings.</p>
<p>I’d like to share the excellent <em>free</em> background textures I used for alex.manarpies.com. It was created by <a href="http://www.deviantart.com">DeviantArt</a> user <a href="http://princess-of-shadows.deviantart.com/"><em>‘Princess-of-Shadows</em></a> and was compiled from scans of actual materials.</p>
<p>Find the original page <a href="http://princess-of-shadows.deviantart.com/art/vintage-grunge-textures-79040200">here</a>.</p>
<p style="text-align: center;"><a href="http://aceontech.com/wp-content/uploads/2010/07/vintage_grunge_textures_by_Princess_of_Shadows.jpg" rel="lightbox[1101]"><img class="size-medium wp-image-1102  aligncenter" title="Vintage Grunge Textures by Princess_of_Shadows" src="http://aceontech.com/wp-content/uploads/2010/07/vintage_grunge_textures_by_Princess_of_Shadows-300x240.jpg" alt="Vintage Grunge Textures Preview" width="300" height="240" /></a></p>
<p>The image pack features <strong>5 distinct textures</strong> with varying degrees of <em>grunginess</em>. You can use them as-is, or bestow some Photoshop wizardry upon them to cook up some custom coloring and effects. I went for the latter approach:</p>
<p style="text-align: center;"><a href="http://aceontech.com/wp-content/uploads/2010/07/portfolio_bg_texture.jpg" rel="lightbox[1101]"><img class="size-full wp-image-1103  aligncenter" title="My version of the grunge texture" src="http://aceontech.com/wp-content/uploads/2010/07/portfolio_bg_texture.jpg" alt="My version of the grunge texture" width="250" height="250" /></a></p>
<p><strong>Here’s how I achieved this effect:</strong></p>
<ol>
<li>Set the texture layer to <strong>black and white</strong>.</li>
<li>Set the texture layer’s <strong>blend mode</strong> to <strong>Overlay</strong>.</li>
<li>Set the texture layer’s <strong>opacity</strong> to <strong>70%</strong>.</li>
<li>Create a <strong>new layer </strong><em>under</em> the texture layer and <strong>fill it with a color</strong>, perhaps a shade of pale blue.</li>
</ol>
<p>It may have come to your attention that the textures won’t repeat especially well when used as a background. However, as they are pretty hi-res, you could give the backgrounds a <strong>fixed background</strong> position. For instance (CSS):</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://aceontech.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;"><span class="kw1">background-color</span><span class="sy0">:</span> <span class="re0">#d2e0dd</span><span class="sy0">;</span>
<span class="kw1">background-image</span><span class="sy0">:</span> <span class="kw2">url</span><span class="br0">&#40;</span><span class="co2">bg_site_blue.jpg</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">background-attachment</span><span class="sy0">:</span> <span class="kw2">fixed</span><span class="sy0">;</span></pre></div></div>
<p>Grungy background patterns seem to be in vogue lately, and there’s a lot to be had of them on the net &#8211; too.<br />
But, please, don’t kill the effect by mere overzealousness. Moderation in everything, my friend.</p>
<p>Have fun with them and report back with your creation <img src='http://aceontech.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2010/07/05/5-free-grunge-webdesign-textures/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Namespaces in JavaScript: How To</title>
		<link>http://aceontech.com/2010/07/04/namespaces-in-javascript-how-to/</link>
		<comments>http://aceontech.com/2010/07/04/namespaces-in-javascript-how-to/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 21:03:34 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Web Development & Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[OO]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1093</guid>
		<description><![CDATA[A concise how-to article on namespacing your JavaScript so it's prettier and more OO-like.]]></description>
			<content:encoded><![CDATA[<p>Writing JavaScript code can rapidly become messy because of its procedural nature (Object-based as opposed to Object-Oriented). Generally you create variables at the top of your .js-file, followed by functions below. Besides general ugliness, you must remember that such variables are <strong>globally accessible</strong> from other scripts. This practice implies serious security and privacy issues. To amend this, you can turn to <strong>namespaces in JavaScript</strong>, and here&#8217;s how it works.</p>
<p>Conceptually, namespaces in JavaScript involve creating a <strong>stored function</strong>. This function subsequently contains private variables, private functions and public functions by means of the <strong>return construct</strong>:</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://aceontech.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;"><span class="kw2">var</span> SomeNamespacedObject <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
	<span class="co1">// private vars</span>
	<span class="co1">///////////////</span>
	<span class="kw2">var</span> somePrivateVar<span class="sy0">;</span>
	<span class="kw2">var</span> anotherPrivateVar<span class="sy0">;</span>
&nbsp;
	<span class="co1">// private functions</span>
	<span class="co1">////////////////////</span>
	<span class="kw2">function</span> doSomethingPrivate<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
		<span class="co1">// private business goes here</span>
	<span class="br0">&#125;</span>
&nbsp;
	<span class="co1">// public functions</span>
	<span class="co1">///////////////////</span>
	<span class="kw1">return</span> <span class="br0">&#123;</span>
		doPublicStuff <span class="sy0">:</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
			<span class="co1">// public business goes here</span>
		<span class="br0">&#125;</span><span class="sy0">,</span>
		doMorePublicStuff <span class="sy0">:</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
			<span class="co1">// more public business</span>
		<span class="br0">&#125;</span>
	<span class="br0">&#125;</span>
<span class="br0">&#125;</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>You can now <strong>reference</strong> your namespaced object like so:</p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://aceontech.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;">SomeNamespacedObject.<span class="me1">doPublicStuff</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>Namespacing introduces some pros and cons, but I generally namespace my JS code, sometimes only for the sake of making it look more object oriented. Also, it makes me sleep better at night knowing not all of my variables are being broadcast publicly and I&#8217;m not polluting the global variable space.</p>
<p>Pros:</p>
<ul>
<li>Cleaner</li>
<li>Encourages code reuse</li>
<li>Encourages encapsulation (private vs. public)</li>
<li>Prevents overwriting of existing functions</li>
</ul>
<p>Cons:</p>
<ul>
<li>Verbose</li>
<li>Perhaps a bit confusing to JS newbies</li>
</ul>
<p>My advice? <em>Namespace that JavaScript, my friend.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2010/07/04/namespaces-in-javascript-how-to/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>About this blog in 2010</title>
		<link>http://aceontech.com/2010/05/27/about-this-blog-in-2010/</link>
		<comments>http://aceontech.com/2010/05/27/about-this-blog-in-2010/#comments</comments>
		<pubDate>Thu, 27 May 2010 21:30:26 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1082</guid>
		<description><![CDATA[Welcome, once more, to my online scratchpad. It&#8217;s been forever since I&#8217;ve updated this site with new content, and admittedly, I&#8217;ve always had trouble blogging consistently. However &#8211; as ever &#8211; I&#8217;m going to try again. With my starting career as a web developer in mind, I&#8217;d like to lay down and share my findings [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome, once more, to my online scratchpad. It&#8217;s been forever since I&#8217;ve updated this site with new content, and admittedly, I&#8217;ve always had trouble blogging consistently. However &#8211; as ever &#8211; I&#8217;m going to try again. With my starting career as a web developer in mind, I&#8217;d like to lay down and share my findings with a wide range of technologies, including Web MVC Frameworks, JavaScript frameworks like jQuery, Web Design and more recent additions to my resume: Mobile Web Development and Mobile Application Development for Apple iPhone and perhaps in the near future, Google Android.</p>
<p>As you can imagine, these are quite an amount of technologies to master, and fast-moving ones at that. So, ultimately, this blog should serve as a sharing platform to fellow web developers and a personal documentation archive for myself. Feel free to contribute in the comments, or via Twitter (via<a href="http://www.twitter.com/aceontech">@aceontech</a>).</p>
<p>I&#8217;ll be posting more code samples here and will use <a href="https://github.com/">GitHub</a> and Gist to share sample code and code snippets. I have created a GitHub open source repository, available here:</p>
<ul>
<li>Website:<a href="http://github.com/aceontech/iphonedev">http://github.com/aceontech/iphonedev</a></li>
<li>Read-only git repo:<a href="http://git://github.com/aceontech/iphonedev.git">git://github.com/aceontech/iphonedev.git</a></li>
</ul>
<p>Thanks to <a href="http://www.ndesign-studio.com/">ndesign studio</a> for the intermediary use of their WordPress theme. I&#8217;m currently working on a more specialized blogging platform, which will include a new design, thus I&#8217;ll be replacing WordPress with my own system soon.</p>
<p><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Twitter" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Slashdot" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/instapaper?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Instapaper" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/instapaper.png" width="16" height="16" alt="Instapaper"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Digg" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Facebook" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Mixx" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Delicious" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Reddit" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010" title="Evernote" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F05%2F27%2Fabout-this-blog-in-2010%2F&amp;linkname=About%20this%20blog%20in%202010"><img src="http://aceontech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2010/05/27/about-this-blog-in-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex/AIR: DynamicEvent</title>
		<link>http://aceontech.com/2010/01/10/flexair-dynamicevent/</link>
		<comments>http://aceontech.com/2010/01/10/flexair-dynamicevent/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:40:02 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Web Development & Design]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1074</guid>
		<description><![CDATA[Applies to: Adobe Flex &#38; AIR A DynamicEvent is a type of custom event in Flex that is easier and quicker to set up than the full-blown approach. By applying the latter method, you normally go through the following steps: Define a subclass from flash.events.Event Make the event available to other ActionScript (through addEventListenter()) components or [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Applies to:</strong> Adobe Flex &amp; AIR</p>
<p>A DynamicEvent is a type of custom event in Flex that is easier and quicker to set up than the full-blown approach. By applying the latter method, you normally go through the following steps:</p>
<ol>
<li>Define a subclass from flash.events.Event</li>
<li>Make the event available to other ActionScript (through addEventListenter()) components or MXML components (using the [Event] metatag)</li>
<li>Dispatch the event, using dispatchEvent()</li>
</ol>
<p>Full documentation on custom events can be found in Adobe&#8217;s LiveDocs, <a title="LiveDocs article on Custom Event Dispatching" href="http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html">here</a>.</p>
<p>Generally one uses the above approach when you need to pass arguments to the code that&#8217;s targeted by the event. When you don&#8217;t require this, however, you can opt for the DynamicEvent. It&#8217;s not necessary to go through the whole rigamarole of subclassing; all you need is a name for the event, like so:</p>
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://aceontech.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://aceontech.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript3" style="font-family:monospace;"><span class="kw2">var</span> yourEvent<span class="sy0">:</span>DynamicEvent = <span class="kw1">new</span> DynamicEvent<span class="br0">&#40;</span><span class="st0">&quot;yourEventName&quot;</span><span class="sy0">,</span> <span class="kw1">true</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw7">dispatchEvent</span><span class="br0">&#40;</span>yourEvent<span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>The second argument set to true means the event will bubble.</p>
<p><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Twitter" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Slashdot" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/instapaper?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Instapaper" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/instapaper.png" width="16" height="16" alt="Instapaper"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Digg" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Facebook" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Mixx" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Delicious" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Reddit" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent" title="Evernote" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faceontech.com%2F2010%2F01%2F10%2Fflexair-dynamicevent%2F&amp;linkname=Flex%2FAIR%3A%20DynamicEvent"><img src="http://aceontech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2010/01/10/flexair-dynamicevent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3: How to set focus to an empty textfield</title>
		<link>http://aceontech.com/2009/12/30/as3-how-to-set-focus-to-an-empty-textfield/</link>
		<comments>http://aceontech.com/2009/12/30/as3-how-to-set-focus-to-an-empty-textfield/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 21:41:25 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Web Development & Design]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1072</guid>
		<description><![CDATA[Bent your mind over how to set focus to a textfield in ActionScript 3? The solution.]]></description>
			<content:encoded><![CDATA[<p><strong>Applicable to:</strong> Adobe ActionScript 3, Adobe Flex, Adobe AIR</p>
<p>This simple operation isn&#8217;t very obvious in ActionScript 3. The <code>TextInput</code> element has a boolean property called <code>focusEnabled</code>, but this doesn&#8217;t seem to do anything (it&#8217;s probably meant for other purposes, didn&#8217;t take the time to check).</p>
<p>The way achieve this is two-fold:</p>
<p><code>stage.focus = yourTextField;<br />
yourTextField.setSelection(0,0);</code></p>
<p>If your textfield contains text and you wish to place the caret to the end, you would probably go about it like so:</p>
<p><code>stage.focus = yourTextField;<br />
yourTextField.setSelection(0, yourTextField.length);</code></p>
<p>Makes sense now you know about it, huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2009/12/30/as3-how-to-set-focus-to-an-empty-textfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7: Deleting, 3 hours remaining</title>
		<link>http://aceontech.com/2009/09/16/windows-7-deleting-3-hours-remaining/</link>
		<comments>http://aceontech.com/2009/09/16/windows-7-deleting-3-hours-remaining/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 20:08:45 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://aceontech.com/2009/09/16/windows-7-deleting-3-hours-remaining/</guid>
		<description><![CDATA[Okay, I just had to post this: Yes. Seriously. How is this possible? I’m just deleting some folders on my NAS…]]></description>
			<content:encoded><![CDATA[<p>Okay, I just had to post this:</p>
<p><a href="http://aceontech.com/wp-content/uploads/2009/09/Capture.png" rel="lightbox[1048]"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Deleting, 3 hours remaining" border="0" alt="Deleting, 3 hours remaining" src="http://aceontech.com/wp-content/uploads/2009/09/Capture_thumb.png" width="400" height="251" /></a> </p>
<p>Yes. Seriously. How is this possible? I’m just deleting some folders on my NAS…</p>
<p><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Twitter" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Slashdot" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/instapaper?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Instapaper" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/instapaper.png" width="16" height="16" alt="Instapaper"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Digg" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Facebook" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Mixx" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Delicious" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Reddit" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining" title="Evernote" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F16%2Fwindows-7-deleting-3-hours-remaining%2F&amp;linkname=Windows%207%3A%20Deleting%2C%203%20hours%20remaining"><img src="http://aceontech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2009/09/16/windows-7-deleting-3-hours-remaining/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Help: &#8220;The network bridge on device /dev/vmnet0 is not running&#8221;</title>
		<link>http://aceontech.com/2009/09/15/help-the-network-bridge-on-device-devvmnet0-is-not-running/</link>
		<comments>http://aceontech.com/2009/09/15/help-the-network-bridge-on-device-devvmnet0-is-not-running/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 19:42:53 +0000</pubDate>
		<dc:creator>Ace</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://aceontech.com/?p=1043</guid>
		<description><![CDATA[This error message occurs sometimes in VMWare Fusion on the Mac when using a certain networking setting. This setting, in particular, is the “bridge” function. “Bridge”, as opposed to “NAT”, means the Virtual Machine gets its own IP-address on your local area network. The “NAT” (Network Address Translation) option, however, makes your Mac act like [...]]]></description>
			<content:encoded><![CDATA[<p>This error message occurs sometimes in <strong>VMWare Fusion on the Mac</strong> when using a certain networking setting. This setting, in particular, is the “bridge” function. “Bridge”, as opposed to “NAT”, means the Virtual Machine gets its own IP-address on your local area network. The “NAT” (Network Address Translation) option, however, makes your Mac act like a router behind which the VM resides. This makes the VM inaccessible to the outside LAN, but it still has access to the outer LAN or Internet.</p>
<p>Bridging for VMs is nice because this is a way you can set up a VM to act as a server &#8211; serving printers, web resources, media and files. But sometimes, VMWare Fusion behaves awry, throwing up the dreaded exception:</p>
<blockquote><p>“The network bridge on device /dev/vmnet0 is not running”</p>
</blockquote>
<p>This will cause the VM to be disconnected from the network. There’s no real indication what causes this. Neither does it allude to how to fix it. “<a href="http://blog.maccarocks.com/2007/12/13/vmware-fusion-and-network-bridging/">Just a Blog</a>” provides a solution:</p>
<ol>
<li>Close the ailing VM </li>
<li>Open the “Terminal” from Applications/Utilities </li>
<li>Type:      <br /><strong>cd /Library/Application\ Support/VMWare\ Fusion/</strong> </li>
<li>Type:      <br /><strong>sudo boot.sh –restart</strong> </li>
<li>You may get a message warning you of the perils of sudo. Proceed.</li>
<li>Re-open the VM and make sure network bridging is re-enabled through the Fusion’s “Settings” interface. </li>
</ol>
<p>You should now be able to access the network through the respective VM. It may occur that this error crops up again. It seems to me that it happens arbitrarily. I wonder why Fusion can’t execute this command by itself, either. </p>
<p>I hope this helped <img src='http://aceontech.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Twitter" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Slashdot" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/instapaper?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Instapaper" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/instapaper.png" width="16" height="16" alt="Instapaper"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Digg" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Facebook" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/mixx?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Mixx" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/mixx.png" width="16" height="16" alt="Mixx"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Delicious" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Reddit" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B" title="Evernote" rel="nofollow" target="_blank"><img src="http://aceontech.com/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Faceontech.com%2F2009%2F09%2F15%2Fhelp-the-network-bridge-on-device-devvmnet0-is-not-running%2F&amp;linkname=Help%3A%20%26ldquo%3BThe%20network%20bridge%20on%20device%20%2Fdev%2Fvmnet0%20is%20not%20running%26rdquo%3B"><img src="http://aceontech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://aceontech.com/2009/09/15/help-the-network-bridge-on-device-devvmnet0-is-not-running/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
