<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>:maohao:</title>
	<atom:link href="http://maohao.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://maohao.wordpress.com</link>
	<description>by maohao.com</description>
	<pubDate>Wed, 25 Jun 2008 01:19:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>firefox shortcut keys</title>
		<link>http://maohao.wordpress.com/2008/06/24/firefox-shortcut-keys/</link>
		<comments>http://maohao.wordpress.com/2008/06/24/firefox-shortcut-keys/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 01:17:16 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=120</guid>
		<description><![CDATA[firefox shortcut keys
Firefox Keyboard and Mouse Shortcuts
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a title="firefox shortcut keys" href="http://ubuntu-tutorials.com/2008/06/22/firefox-shortcut-keys/" target="_blank">firefox shortcut keys</a></p>
<p><a title="Firefox Keyboard and Mouse Shortcuts" href="http://www.mouserunner.com/FF_Shortcuts1Printable.html" target="_blank">Firefox Keyboard and Mouse Shortcuts</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/120/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/120/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=120&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/06/24/firefox-shortcut-keys/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Firefox search box type-suggest/autocomplete</title>
		<link>http://maohao.wordpress.com/2008/06/23/firefox-search-box-type-suggestautocomplete/</link>
		<comments>http://maohao.wordpress.com/2008/06/23/firefox-search-box-type-suggestautocomplete/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 17:29:55 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=118</guid>
		<description><![CDATA[Firefox addressbar: &#8220;about:config&#8221; -&#62; double click &#8220;browser.search.suggest.enabled&#8221; to toggle the setting
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Firefox addressbar: &#8220;about:config&#8221; -&gt; double click &#8220;browser.search.suggest.enabled&#8221; to toggle the setting</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/118/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/118/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=118&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/06/23/firefox-search-box-type-suggestautocomplete/feed/</wfw:commentRss>
		</item>
		<item>
		<title>dataprovider for datagrid</title>
		<link>http://maohao.wordpress.com/2008/06/19/dataprovider-for-datagrid/</link>
		<comments>http://maohao.wordpress.com/2008/06/19/dataprovider-for-datagrid/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 22:32:54 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[ActionScript 3]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=116</guid>
		<description><![CDATA[&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;vertical&#8221; viewSourceURL=&#8221;../src/Layout02.mxml&#8221;&#62;
&#60;mx:Script&#62;
&#60;![CDATA[
private function myLabelFunc(item:Object, dataField:DataGridColumn):String
{
var p:String = item.Price? item.Price: "N/A";
return item.Year+" / " +p;
}
]]&#62;
&#60;/mx:Script&#62;
&#60;mx:ArrayCollection id=&#8221;dgPD&#8221;&#62;
&#60;mx:source&#62;
&#60;mx:Object Artist1=&#8221;Pavement&#8221; Album1=&#8221;Slanted and Enchanted&#8221; Price1=&#8221;11.99&#8243; Year=&#8221;2003&#8243;/&#62;
&#60;mx:Object Artist=&#8221;Finches&#8221; Album=&#8221;Daniel&#8217;s Song&#8221; Price2=&#8221;11.99&#8243; Year=&#8221;2007&#8243;/&#62;
&#60;mx:Object Artist=&#8221;Pavarotti&#8221; Album=&#8221;Twilight&#8221; Price=&#8221;11.99&#8243; Year=&#8221;1999&#8243;/&#62;
&#60;mx:Object Artist=&#8221;Other&#8221; Album=&#8221;Other&#8221; Price=&#8221;5.99&#8243; Year=&#8221;2002&#8243;/&#62;
&#60;/mx:source&#62;
&#60;/mx:ArrayCollection&#62;
&#60;mx:VBox&#62;
&#60;mx:Label text=&#8221;Data matter!&#8221;/&#62;
&#60;mx:DataGrid id=&#8221;myDG&#8221; width=&#8221;400&#8243; rowCount=&#8221;10&#8243; dataProvider=&#8221;{dgPD}&#8221;&#62;
&#60;mx:columns&#62;
&#60;mx:DataGridColumn headerText=&#8221;ARTIST&#8221; dataField=&#8221;Artist&#8221;/&#62;
&#60;mx:DataGridColumn headerText=&#8221;ALBUM&#8221; dataField=&#8221;Album&#8221;/&#62;
&#60;mx:DataGridColumn headerText=&#8221;YEAR &#38;amp; PRICE&#8221; labelFunction=&#8221;myLabelFunc&#8221;/&#62;
&#60;!&#8211;&#60;mx:DataGridColumn headerText=&#8221;PRICE&#8221; dataField=&#8221;Price&#8221;/&#62;&#8211;&#62;
&#60;/mx:columns&#62;
&#60;/mx:DataGrid&#62;
&#60;/mx:VBox&#62;
&#60;/mx:Application&#62;
  [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;vertical&#8221; viewSourceURL=&#8221;../src/Layout02.mxml&#8221;&gt;<br />
&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
private function myLabelFunc(item:Object, dataField:DataGridColumn):String<br />
{<br />
var p:String = item.Price? item.Price: "N/A";<br />
return item.Year+" / " +p;<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;<br />
&lt;mx:ArrayCollection id=&#8221;dgPD&#8221;&gt;<br />
&lt;mx:source&gt;<br />
&lt;mx:Object Artist1=&#8221;Pavement&#8221; Album1=&#8221;Slanted and Enchanted&#8221; Price1=&#8221;11.99&#8243; Year=&#8221;2003&#8243;/&gt;<br />
&lt;mx:Object Artist=&#8221;Finches&#8221; Album=&#8221;Daniel&#8217;s Song&#8221; Price2=&#8221;11.99&#8243; Year=&#8221;2007&#8243;/&gt;<br />
&lt;mx:Object Artist=&#8221;Pavarotti&#8221; Album=&#8221;Twilight&#8221; Price=&#8221;11.99&#8243; Year=&#8221;1999&#8243;/&gt;<br />
&lt;mx:Object Artist=&#8221;Other&#8221; Album=&#8221;Other&#8221; Price=&#8221;5.99&#8243; Year=&#8221;2002&#8243;/&gt;<br />
&lt;/mx:source&gt;<br />
&lt;/mx:ArrayCollection&gt;</p>
<p>&lt;mx:VBox&gt;<br />
&lt;mx:Label text=&#8221;Data matter!&#8221;/&gt;<br />
&lt;mx:DataGrid id=&#8221;myDG&#8221; width=&#8221;400&#8243; rowCount=&#8221;10&#8243; dataProvider=&#8221;{dgPD}&#8221;&gt;<br />
&lt;mx:columns&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;ARTIST&#8221; dataField=&#8221;Artist&#8221;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;ALBUM&#8221; dataField=&#8221;Album&#8221;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;YEAR &amp;amp; PRICE&#8221; labelFunction=&#8221;myLabelFunc&#8221;/&gt;<br />
&lt;!&#8211;&lt;mx:DataGridColumn headerText=&#8221;PRICE&#8221; dataField=&#8221;Price&#8221;/&gt;&#8211;&gt;<br />
&lt;/mx:columns&gt;<br />
&lt;/mx:DataGrid&gt;<br />
&lt;/mx:VBox&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/116/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/116/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=116&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/06/19/dataprovider-for-datagrid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>click on marker always show the last entry of data</title>
		<link>http://maohao.wordpress.com/2008/06/14/click-on-marker-always-shows-the-last-entry-of-data/</link>
		<comments>http://maohao.wordpress.com/2008/06/14/click-on-marker-always-shows-the-last-entry-of-data/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 23:17:58 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[JavaScript;Ajax]]></category>

		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=114</guid>
		<description><![CDATA[This is a question from a co-worker of my last job. His is using gcliendGeocoder within a for-loop to dynamically get lat/lng and creating makers on Google maps. The problem is each time you click on a marker, the html text in the info window is always the one that should be for the last [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a question from a co-worker of my last job. His is using gcliendGeocoder within a for-loop to dynamically get lat/lng and creating makers on Google maps. The problem is each time you click on a marker, the html text in the info window is always the one that should be for the last marker in the for-loop.</p>
<p>His code:</p>
<blockquote><p>for (id = 0; id &lt; addresses.length; id++)<br />
{<br />
var description = addresses[id];<br />
var myBiz = biz[id];<br />
geocoder.getLatLng(<br />
description,<br />
function(point)<br />
{<br />
var marker = new GMarker(point);<br />
GEvent.addListener(marker, &#8216;click&#8217;,function(){marker.openInfoWindowHtml(description);});<br />
map.addOverlay(marker);<br />
}<br />
);<br />
}</p></blockquote>
<p>The point here is &#8220;geocoder.getLatLng&#8221; is an &#8220;asynchronous&#8221; callback. That means when the &#8220;for-id-loop&#8221; reaches its end, the very first &#8220;getLatLng&#8221; may not get back yet. That&#8217;s why you always get the last description in the array. The fix is to add an additional counter inside the call back of &#8220;getLatLng&#8221;, and assign it as a dynamic property to the marker that gets returned from the callback, and then increment the counter by one at the end of the callback. When you handle the click, you always do a lookup on the marker using the id to find the right marker and the description.</p>
<blockquote><p>var markers = [];<br />
var closureID = 0;</p>
<p>for (id = 0; id &lt; addresses.length; id++) {<br />
var description = addresses[id];</p>
<p>geocoder.getLatLng(<br />
description,<br />
function(point) {<br />
if(point)<br />
{<br />
var marker = new GMarker(point);<br />
marker.id = closureID;<br />
markers[closureID]=marker;<br />
GEvent.addListener(marker, &#8216;click&#8217;,<br />
function()<br />
{<br />
markers[marker.id].openInfoWindowHtml(addresses[marker.id]);<br />
}<br />
);<br />
map.addOverlay(marker);<br />
++closureID;<br />
}<br />
}<br />
);</p>
<p>}</p></blockquote>
<p>To see it in action, here is what happens &#8220;<a title="Restaurant-before" href="http://maohao.com/blogs/wordpress/restaurants_before.html" target="_blank">before</a>&#8220;, and &#8220;<a title="Restaurant-after" href="http://maohao.com/blogs/wordpress/restaurants_after.html" target="_blank">after</a>&#8220;:</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/114/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/114/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=114&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/06/14/click-on-marker-always-shows-the-last-entry-of-data/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to get your YouTube API?</title>
		<link>http://maohao.wordpress.com/2008/06/14/how-to-get-your-youtube-api/</link>
		<comments>http://maohao.wordpress.com/2008/06/14/how-to-get-your-youtube-api/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 17:32:22 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=113</guid>
		<description><![CDATA[http://www.youtube.com/my_profile_dev
Look for &#8220;Developer ID&#8221; on top of the &#8220;profile&#8221; box
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>http://www.youtube.com/my_profile_dev</p>
<p>Look for &#8220;Developer ID&#8221; on top of the &#8220;profile&#8221; box</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/113/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/113/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=113&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/06/14/how-to-get-your-youtube-api/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS bar graphs</title>
		<link>http://maohao.wordpress.com/2008/05/21/css-bar-graphs/</link>
		<comments>http://maohao.wordpress.com/2008/05/21/css-bar-graphs/#comments</comments>
		<pubDate>Wed, 21 May 2008 22:26:06 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=112</guid>
		<description><![CDATA[Examples


&#8220;&#60;table&#62;&#8221; is rendered row by row(&#8221;&#60;td&#62;&#8221;) top to bottom;
Inside &#8220;&#60;tr&#62;&#8221; you can nest &#8220;&#60;th&#62;&#8221; or &#8220;&#60;td&#62;&#8221;;
&#8220;&#60;td&#62;&#8221; and &#8220;&#60;th&#62;&#8221; don&#8217;t need to have close tags;
Nested table must be inside a &#8220;&#60;td&#62;&#8221; node;
&#8220;&#60;table&#62;&#8221; tries to equalize widths of all cells(&#8221;&#60;td&#62;&#8221;) of the same column.
The 2nd table in the preceding examples uses a nested table to create variant [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a title="Simple table graphs" href="http://maohao.com/blogs/wordpress/tablegraph1.html" target="_blank">Examples</a></p>
<div>
<ul>
<li>&#8220;&lt;table&gt;&#8221; is rendered row by row(&#8221;&lt;td&gt;&#8221;) top to bottom;</li>
<li>Inside &#8220;&lt;tr&gt;&#8221; you can nest &#8220;&lt;th&gt;&#8221; or &#8220;&lt;td&gt;&#8221;;</li>
<li>&#8220;&lt;td&gt;&#8221; and &#8220;&lt;th&gt;&#8221; don&#8217;t need to have close tags;</li>
<li>Nested table must be inside a &#8220;&lt;td&gt;&#8221; node;</li>
<li>&#8220;&lt;table&gt;&#8221; tries to equalize widths of all cells(&#8221;&lt;td&gt;&#8221;) of the same column.<br />
The 2nd table in the preceding examples uses a nested table to create variant widths.</li>
</ul>
</div>
<p><a title="Vertical bar graphs using CSS" href="http://www.terrill.ca/design/vertical_bar_graphs/" target="_blank">Vertical bar graphs using css</a></p>
<p><a title="Real world bar graphs with some CSS" href="http://www.khmerang.com/index.php?p=118" target="_blank">Real world bar graphs (with some CSS)</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/112/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/112/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=112&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/05/21/css-bar-graphs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Use swc in flex</title>
		<link>http://maohao.wordpress.com/2008/05/05/swc-flex/</link>
		<comments>http://maohao.wordpress.com/2008/05/05/swc-flex/#comments</comments>
		<pubDate>Mon, 05 May 2008 19:19:45 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[ActionScript 3]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=111</guid>
		<description><![CDATA[Scenario 1: You need to compile ActionScript code as a reusable component in Flex Builder.
Solutions: Follow the steps (FB plugin v3):
Step 1. Compile swc. First you will need to create a new &#8220;Flex Library Project&#8221;. Then copy all the actionscript code into the top folder of your project file, retaining the package/namespace structure (fig. 1)

In [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Scenario 1: You need to compile ActionScript code as a reusable component in Flex Builder.</p>
<p>Solutions: Follow the steps (FB plugin v3):</p>
<p>Step 1. Compile swc. First you will need to create a new &#8220;Flex Library Project&#8221;. Then copy all the actionscript code into the top folder of your project file, retaining the package/namespace structure (fig. 1)</p>
<p><img style="margin-top:12px;margin-bottom:12px;vertical-align:middle;" src="http://maohao.com/blogs/wordpress/swc_flex_01.jpg" alt="The file structure and xml manifest file in Flex Library Project" width="720" height="235" /></p>
<p>In &#8220;src&#8221; folder, you would need a xml-manifest.xml file where you declare the class and id (optional, default to the class name anyways) (fig 1). Thirdly, you would need to define your namespace for the class that&#8217;s going to be referenced in MXML (or Flash?) like so: <strong>In the AS class fine, inside the class definition, just like the way as you declare a variable, add &#8220;public namespace fc;</strong>&#8221; (substitue &#8220;fc&#8221; with whatever your choice of namespace). If you&#8217;ve enabled &#8220;build automatically&#8221; (under &#8220;Project&#8221; menu command), FB will instantaneously  build the deploy files for you the time you save the AS file. The result is the complied .swc file, which you can find in the &#8220;bin&#8221; folder in your library project.</p>
<p>Step 2. Use swc in your Flex project. You either need to copy the swc file(s) into the library-path folders as defined in your <a title="flex-config.xml" href="http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_09.html" target="_blank">flex-config.xml</a>, or explicitly tell Flex to use the swc you want in your current project. To do so, go to &#8220;Project properties&#8221;-&gt;&#8221;Flex Build Path&#8221;-&gt;&#8221;Library Path&#8221;-&gt;&#8221;Add SWC&#8221;. You can simply navigate to the swc file in the Flex library project as defined in Step 1. After Flex compiled the project, you can use the component as defined in your ActionScript code. Here is an extract:</p>
<p><code>&lt;mx:HBox&gt;<br />
&lt;mx:Label text=&#8221;Search by last name: &#8220;/&gt;<br />
&lt;fc:AutoComplete id=&#8221;lastNameSrchAC&#8221; dataProvider=&#8221;{listInfo}&#8221; labelField=&#8221;lastName&#8221;/&gt;<br />
&lt;/mx:HBox&gt;</code></p>
<p>See also:<a title="Namespaces in Flex and Soprano" href="http://flex.sys-con.com/read/335194.htm" target="_blank"> Namespaces in Flex and Soprano</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/111/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/111/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=111&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/05/05/swc-flex/feed/</wfw:commentRss>
	
		<media:content url="http://maohao.com/blogs/wordpress/swc_flex_01.jpg" medium="image">
			<media:title type="html">The file structure and xml manifest file in Flex Library Project</media:title>
		</media:content>
	</item>
		<item>
		<title>How to update everyone&#8217;s profile page at facebook (same content for everyone)?</title>
		<link>http://maohao.wordpress.com/2008/05/02/how-to-update-everyones-profile-page-at-facebook-for-same-content/</link>
		<comments>http://maohao.wordpress.com/2008/05/02/how-to-update-everyones-profile-page-at-facebook-for-same-content/#comments</comments>
		<pubDate>Fri, 02 May 2008 23:07:28 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[PHP / MySQL]]></category>

		<category><![CDATA[social media]]></category>

		<category><![CDATA[social networking]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=110</guid>
		<description><![CDATA[How To Set Up A Facebook RSS Feed Reader Application For Your Blog - Page 5
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a title="How to set up a Facebook RSS feed reader" href="http://howtoforge.com/rss_facebook_app_php_p5" target="_blank">How To Set Up A Facebook RSS Feed Reader Application For Your Blog - Page 5</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/110/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/110/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=110&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/05/02/how-to-update-everyones-profile-page-at-facebook-for-same-content/feed/</wfw:commentRss>
		</item>
		<item>
		<title>scroll datagrid by actionscript (flex 3)</title>
		<link>http://maohao.wordpress.com/2008/04/30/scroll-datagrid-by-actionscript-flex-3/</link>
		<comments>http://maohao.wordpress.com/2008/04/30/scroll-datagrid-by-actionscript-flex-3/#comments</comments>
		<pubDate>Thu, 01 May 2008 04:01:08 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[ActionScript 3]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=109</guid>
		<description><![CDATA[//Highlight the itemrender
dgPeopleList.selectedIndex = 212;
//validateNow needs to be called before verticalScrollPosition is set.
dgPeopleList.validateNow();
dgPeopleList.verticalScrollPosition = 212;
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><code>//Highlight the itemrender<br />
dgPeopleList.selectedIndex = 212;</code></p>
<p><code>//validateNow needs to be called before verticalScrollPosition is set.<br />
dgPeopleList.validateNow();</code></p>
<p><code>dgPeopleList.verticalScrollPosition = 212;</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/109/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/109/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=109&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/04/30/scroll-datagrid-by-actionscript-flex-3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ScrollPane doesn&#8217;t clip loaded content</title>
		<link>http://maohao.wordpress.com/2008/04/17/scrollpane-doesnt-clip-loaded-content/</link>
		<comments>http://maohao.wordpress.com/2008/04/17/scrollpane-doesnt-clip-loaded-content/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 22:05:50 +0000</pubDate>
		<dc:creator>maohao</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://maohao.wordpress.com/?p=108</guid>
		<description><![CDATA[When a ScrollPane is used to load media (Flash 8 IDE), sometimes the loaded  content didn&#8217;t get clipped (it either sits on top of the scrollpane or goes underneath it).
Cause: An absolute URL is used (such as &#8220;myScrollPane.contentPath = &#8216;http://www.mydomain.com/img/image.jpg&#8217;&#8221;) for the loaded content.
Solution: Change the absolute URL to relative URL (&#8221;img/image.jpg&#8221;). Of course [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When a ScrollPane is used to load media (Flash 8 IDE), sometimes the loaded  content didn&#8217;t get clipped (it either sits on top of the scrollpane or goes underneath it).</p>
<p>Cause: An absolute URL is used (such as &#8220;myScrollPane.contentPath = &#8216;http://www.mydomain.com/img/image.jpg&#8217;&#8221;) for the loaded content.</p>
<p>Solution: Change the absolute URL to relative URL (&#8221;img/image.jpg&#8221;). Of course you should be able to put the loading swf file and the loaded contents on the same domain.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maohao.wordpress.com/108/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maohao.wordpress.com/108/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maohao.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maohao.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maohao.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maohao.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maohao.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maohao.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maohao.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maohao.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maohao.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maohao.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maohao.wordpress.com&blog=202301&post=108&subd=maohao&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maohao.wordpress.com/2008/04/17/scrollpane-doesnt-clip-loaded-content/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>