<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Teddy A Jasin</title>
	
	<link>http://www.jasin.biz</link>
	<description>my little nest on the net</description>
	<pubDate>Wed, 30 Jul 2008 14:33:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/teddyjasin" type="application/rss+xml" /><feedburner:emailServiceId>1906873</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>enabling keypress in fields</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/350598961/</link>
		<comments>http://www.jasin.biz/2008/07/30/enabling-keypress-in-fields/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 14:33:01 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[ExtJS]]></category>

		<category><![CDATA[enableKeyEvents]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=92</guid>
		<description><![CDATA[in extjs API docs at http://www.extjs.com/deploy/dev/docs it's mentioned you can attach key events, however in config it never list the enableKeyEvents parameters (forgot about it??). So basically what you need to do is add the parameter then attach the events as such:
var field = new Ext.form.TextField&#40;&#123;
	enableKeyEvents: true
&#125;&#41;;
field.on&#40;'keypress', function&#40;&#41; &#123;
//set code
&#125;&#41;;
thats all... if your keypress still [...]]]></description>
			<content:encoded><![CDATA[<p>in extjs API docs at <a href="http://www.extjs.com/deploy/dev/docs/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.extjs.com');">http://www.extjs.com/deploy/dev/docs</a> it's mentioned you can attach key events, however in config it never list the enableKeyEvents parameters (forgot about it??). So basically what you need to do is add the parameter then attach the events as such:</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> field = <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #006600;">form</span>.<span style="color: #006600;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>
	enableKeyEvents: <span style="color: #003366; font-weight: bold;">true</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
field.<span style="color: #006600;">on</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'keypress'</span>, <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #009900; font-style: italic;">//set code</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>thats all... if your keypress still not working, just ensure you are working on ext 2.1 <img src='http://www.jasin.biz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=Apy9jD"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=Apy9jD" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/07/30/enabling-keypress-in-fields/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/07/30/enabling-keypress-in-fields/</feedburner:origLink></item>
		<item>
		<title>rpl a handy shell find and replace strings in file</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/346765413/</link>
		<comments>http://www.jasin.biz/2008/07/27/rpl-a-handy-shell-find-and-replace-strings-in-file/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 16:53:10 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[System Administration]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[files]]></category>

		<category><![CDATA[find]]></category>

		<category><![CDATA[recursive]]></category>

		<category><![CDATA[replace]]></category>

		<category><![CDATA[rpl]]></category>

		<category><![CDATA[search]]></category>

		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=90</guid>
		<description><![CDATA[I had 16000 over static html files in my server that I wanted to edit. Most of guides for doing this through shell command lines all pointed to either find, sed, awk or grep command, I found this very handy utility called "rpl". Well basically sed can do what rpl does, however when i tried [...]]]></description>
			<content:encoded><![CDATA[<p>I had 16000 over static html files in my server that I wanted to edit. Most of guides for doing this through shell command lines all pointed to either find, sed, awk or grep command, I found this very handy utility called "rpl". Well basically sed can do what rpl does, however when i tried with html tags i always got error :(, yeah cos I don't know how to use the sed syntax :).</p>
<p>anyway just apt-get it (apt-get install rpl) and it's ready to run...</p>
<p>a simple command from rpl thats saves me lotsa of time <img src='http://www.jasin.biz/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  :</p>
<pre class="bash">&nbsp;
rpl -R -x .php -x .html -x .htm <span style="color: #ff0000;">'&lt;/body&gt;'</span> <span style="color: #ff0000;">'&lt;?php include &quot;myads.php&quot;; ?&gt;&lt;/body&gt;'</span> *
&nbsp;</pre>
<p>as you see, I was trying to insert php tags just before the body html tags, thats it, much simpler than sed :).</p>
<p>anyway just curious to all bashers out there, how would you guys do it in awk, sed or grep?...</p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=J2XDwB"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=J2XDwB" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/07/27/rpl-a-handy-shell-find-and-replace-strings-in-file/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/07/27/rpl-a-handy-shell-find-and-replace-strings-in-file/</feedburner:origLink></item>
		<item>
		<title>JSONstore on XTemplate</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/334092188/</link>
		<comments>http://www.jasin.biz/2008/07/13/jsonstore-on-xtemplate/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 06:17:05 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[ExtJS]]></category>

		<category><![CDATA[Programming &amp; Web Devt]]></category>

		<category><![CDATA[Search Engine &amp; Optimisation]]></category>

		<category><![CDATA[json]]></category>

		<category><![CDATA[jsonreader]]></category>

		<category><![CDATA[jsonstore]]></category>

		<category><![CDATA[xtemplate]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=89</guid>
		<description><![CDATA[I can't find any samples using XTemplate usinng JSONstore directly without using dataview or other component. I just wanted to use XTemplate with JSONstore loaded from the server directly... thats it :).
Somehow i always got path error when rendering xtemplate with jsonstore in a dataview, if not 'path' error then I will get 'values' has [...]]]></description>
			<content:encoded><![CDATA[<p>I can't find any samples using XTemplate usinng JSONstore directly without using dataview or other component. I just wanted to use XTemplate with JSONstore loaded from the server directly... thats it :).<br />
Somehow i always got path error when rendering xtemplate with jsonstore in a dataview, if not 'path' error then I will get 'values' has no property error :(.</p>
<p>anyway managed to create the XTemplate using jsonstore without using dataview.</p>
<pre class="javascript">&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> tpl = <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #006600;">XTemplate</span><span style="color: #66cc66;">&#40;</span>
<span style="color: #3366CC;">'
&lt;table id=&quot;history-table&quot;&gt;'</span>,
<span style="color: #3366CC;">'
&lt;tr class=&quot;heading&quot;&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;Membership&lt;/td&gt;
&lt;td&gt;Issue Date&lt;/td&gt;
&lt;td&gt;Expiry Date&lt;/td&gt;
&lt;/tr&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'&lt;tpl for=&quot;.&quot;&gt;'</span>,
<span style="color: #3366CC;">'&lt;tpl if=&quot;Ext.isEmpty(values.FIELD_1) == false&quot;&gt;'</span>,
<span style="color: #3366CC;">'
&lt;tr class=&quot;{[xindex % 2 === 0 ? &quot;odd&quot; : &quot;even&quot;]}&quot;&gt;'</span>,
<span style="color: #3366CC;">'
&lt;td&gt;{#}&lt;/td&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'
&lt;td&gt;{FIELD_1}&lt;/td&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'
&lt;td&gt;{FIELD_2}&lt;/td&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'
&lt;td&gt;{FIELD_3}&lt;/td&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'&lt;/tr&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'&lt;/tpl&gt;'</span>,
<span style="color: #3366CC;">'&lt;tpl if=&quot;Ext.isEmpty(values.FIELD_1) == true&quot;&gt;'</span>,
<span style="color: #3366CC;">'
&lt;tr class=&quot;{[xindex % 2 === 0 ? &quot;even&quot; : &quot;odd&quot;]}&quot;&gt;'</span>,
<span style="color: #3366CC;">'
&lt;td colspan=&quot;4&quot;&gt;No membership found&lt;/td&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'&lt;/tr&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'&lt;/tpl&gt;'</span>,
<span style="color: #3366CC;">'&lt;/tpl&gt;'</span>,
<span style="color: #3366CC;">'&lt;/table&gt;
&nbsp;
'</span>,
<span style="color: #3366CC;">'
&lt;div class=&quot;x-clear&quot;&gt;&lt;/div&gt;
&nbsp;
'</span>
<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> store = <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #006600;">data</span>.<span style="color: #006600;">JsonStore</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>
	url: <span style="color: #3366CC;">'index.php?page=data&amp;entity=table1&amp;search[ID]=20'</span>,
	root: <span style="color: #3366CC;">'rows'</span>,
	autoLoad: <span style="color: #003366; font-weight: bold;">true</span>,
	fields: <span style="color: #66cc66;">&#91;</span>
    <span style="color: #66cc66;">&#123;</span><span style="color: #000066;">name</span>: <span style="color: #3366CC;">'counter'</span><span style="color: #66cc66;">&#125;</span>,
    <span style="color: #66cc66;">&#123;</span><span style="color: #000066;">name</span>: <span style="color: #3366CC;">'ID'</span>,type :<span style="color: #3366CC;">'string'</span>,sortType:<span style="color: #3366CC;">'asText'</span><span style="color: #66cc66;">&#125;</span>,
	<span style="color: #66cc66;">&#123;</span><span style="color: #000066;">name</span>: <span style="color: #3366CC;">'FIELD_1'</span>,type :<span style="color: #3366CC;">'string'</span>,sortType:<span style="color: #3366CC;">'asText'</span><span style="color: #66cc66;">&#125;</span>,
	<span style="color: #66cc66;">&#123;</span><span style="color: #000066;">name</span>: <span style="color: #3366CC;">'FIELD_2'</span>,type :<span style="color: #3366CC;">'string'</span>,sortType:<span style="color: #3366CC;">'asText'</span><span style="color: #66cc66;">&#125;</span>,
	<span style="color: #66cc66;">&#123;</span><span style="color: #000066;">name</span>: <span style="color: #3366CC;">'FIELD_3'</span>,type :<span style="color: #3366CC;">'string'</span>,sortType:<span style="color: #3366CC;">'asText'</span><span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#93;</span>
	,listeners: <span style="color: #66cc66;">&#123;</span>
		<span style="color: #3366CC;">'load'</span>: <span style="color: #66cc66;">&#123;</span>fn: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
			tpl.<span style="color: #006600;">overwrite</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'20-membershipinfo'</span>,store.<span style="color: #006600;">reader</span>.<span style="color: #006600;">jsonData</span>.<span style="color: #006600;">rows</span>, <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>as you see, the xtemplate data only applied after load using the listeners event. If I don't do using listeners, example execute store.load() followed by tpl.overwrite('20-handheldinfo',store.reader.jsonData.rows, true); I will always get values error... seems the data is not loaded immediately after the load() functions... anyway this code will be better without using extra component like dataview just to show this data <img src='http://www.jasin.biz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=XWUzz9"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=XWUzz9" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/07/13/jsonstore-on-xtemplate/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/07/13/jsonstore-on-xtemplate/</feedburner:origLink></item>
		<item>
		<title>oh spider don’t come visit me please!</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/325880005/</link>
		<comments>http://www.jasin.biz/2008/07/03/oh-spider-dont-come-visit-me-please/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 14:30:09 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[Search Engine &amp; Optimisation]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[System Administration]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[bots]]></category>

		<category><![CDATA[rapid fire]]></category>

		<category><![CDATA[robots.txt]]></category>

		<category><![CDATA[spider]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=88</guid>
		<description><![CDATA[I do love web spiders, you know those search engines spiders that crawls to your website and visit each of your links so that it will be indexed by the search engine... well for the last two days I had a hell from one of the spider... IT BRINGS MY SITE DOWN!!!
Last two days i [...]]]></description>
			<content:encoded><![CDATA[<p>I do love web spiders, you know those search engines spiders that crawls to your website and visit each of your links so that it will be indexed by the search engine... well for the last two days I had a hell from one of the spider... IT BRINGS MY SITE DOWN!!!</p>
<p>Last two days i received an email alert from my own scripts that monitor my sites availability. My server was very slow for the past two days and when I checked the server processes there were so many process. I was thinking that the same incident happened like <a href="http://www.jasin.biz/2006/01/11/evasive-help-my-day/">before</a>, but it was not!, it is what the term called <a href="http://www.robotstxt.org/faq/rapidfire.html" onclick="javascript:pageTracker._trackPageview ('/outbound/www.robotstxt.org');">"rapid fire"</a>.</p>
<p><span id="more-88"></span></p>
<p>After checking each of my websites' logs in apache, I found out this was because a seach engine spider (Sosospider+), was crawling to my websites. The spider was crawling too frequent within the short time to get info from my websites. Banning the spider using robots.txt would not immediately stop the crawler.</p>
<p>Thankfully for me, the company responsible for the spider responded immediately after I sent them email regarding the problem and immediately stop and decrease their spider visit to my websites....</p>
<p>Now,  I am just thinking out loud... this only help me for that spider only at this time, what about in future where there will be new search engines and new spider (I'm sure!) ? they will crawl again and causing the same problem and I will need to do the same again? Why can't we have some syntax (in robots.txt maybe) that says only <a href="http://www.robotstxt.org/db.html" onclick="javascript:pageTracker._trackPageview ('/outbound/www.robotstxt.org');">active  bots</a> allowed to crawl... or better yet syntax that says only certain bots can crawl (yeah then I will put only major search engines bots - oh no, this will alienated the rest of the search engines! well what the heck, go and crawl the major search engines!).</p>
<p>anyway whatever it is we'll need a better robots.txt or watsoever....</p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=XKYdHH"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=XKYdHH" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/07/03/oh-spider-dont-come-visit-me-please/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/07/03/oh-spider-dont-come-visit-me-please/</feedburner:origLink></item>
		<item>
		<title>Extracting RAR file with password</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/308857273/</link>
		<comments>http://www.jasin.biz/2008/06/10/extracting-rar-file-with-password/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 13:12:34 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[Linux &amp; Open Source]]></category>

		<category><![CDATA[System Administration]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[password]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[unrar]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=87</guid>
		<description><![CDATA[I have many password protected archives. Just to remind myself on the linux command to extract the archive with the password:
&#160;
unrar e -p &#91;filename&#93;
&#160;
once entered, the password will be prompted, and there it is
]]></description>
			<content:encoded><![CDATA[<p>I have many password protected archives. Just to remind myself on the linux command to extract the archive with the password:</p>
<pre class="bash">&nbsp;
unrar e -p <span style="color: #7a0874; font-weight: bold;">&#91;</span>filename<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;</pre>
<p>once entered, the password will be prompted, and there it is</p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=swGHD7"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=swGHD7" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/06/10/extracting-rar-file-with-password/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/06/10/extracting-rar-file-with-password/</feedburner:origLink></item>
		<item>
		<title>GoogleMap using postal code in Singapore</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/303773825/</link>
		<comments>http://www.jasin.biz/2008/06/03/googlemap-using-postal-code-in-singapore/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 13:45:26 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[address]]></category>

		<category><![CDATA[googlemap]]></category>

		<category><![CDATA[postal code]]></category>

		<category><![CDATA[singapore]]></category>

		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=86</guid>
		<description><![CDATA[It's a mistake!
I thought I could do googlemapping just based on postal code. Well, it does can do google mapping based on postal code but not yet on Singapore!.
Reason? I think simply singapore postal code is not made publicly available by singpost. If you want it, you need to get it from Singpost and pay [...]]]></description>
			<content:encoded><![CDATA[<p>It's a mistake!<br />
I thought I could do googlemapping just based on postal code. Well, it does can do google mapping based on postal code but not yet on Singapore!.<br />
Reason? I think simply singapore postal code is not made publicly available by singpost. If you want it, you need to get it from Singpost and pay for the <a href="http://singpost.com/singpost_02_01mail_6digit.htm" onclick="javascript:pageTracker._trackPageview ('/outbound/singpost.com');">subscription fee</a>.</p>
<p><span id="more-86"></span></p>
<p>A quick enquiry I made, the price for the subscription is:</p>
<p><span style="font-family: Arial; font-size: x-small;">Monthly update -  $1,019.05  (per annum)</span><br />
<span style="font-family: Arial; font-size: x-small;">Quarterly update -   $509.52  (per annum)</span><br />
<span style="font-family: Arial; font-size: x-small;">Half-yearly update - $305.71 (per annum)</span><br />
<span style="font-family: Arial; font-size: x-small;">One-time update -   $203.81</span></p>
<p>That's just the data and if you want their "Address Manager" software, it costs you another $132.48.</p>
<p>For me, just a hobyst developer, forking out the amount Its quite hefty amount. Why can't Singpost provide free API for anyone to get their postal code data? <img src='http://www.jasin.biz/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>So is there any other alternative?</p>
<p>Found out couple websites that can do mapping by postal code.</p>
<ol>
<li><a href="http://www.street-directory.com/vmcom/brochure_pdf/WhitePaper.html" onclick="javascript:pageTracker._trackPageview ('/outbound/www.street-directory.com');">Street Directory Web Based Map API</a>. I think the site already down. Even the site is not down I believe the API will show the map instead of giving you the coresponding address.</li>
<li><a href="http://www.best.sg/mash/sggeocoder.jsp" onclick="javascript:pageTracker._trackPageview ('/outbound/www.best.sg');">Singapore Geocoder</a>. It seems the one I wanted. However I tried, but the xml seems not to work. Requested the key but until now I have never receive it, tried contacting them - no reply <img src='http://www.jasin.biz/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
</ol>
<p>So any other way to get the address by just using postal code in Singapore?<br />
Ohhh... don't let me take out the money just to get the postal code and fulfill my development thirst <img src='http://www.jasin.biz/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=AduDGu"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=AduDGu" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/06/03/googlemap-using-postal-code-in-singapore/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/06/03/googlemap-using-postal-code-in-singapore/</feedburner:origLink></item>
		<item>
		<title>A blogging contest with $9000 worth of prize</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/300305717/</link>
		<comments>http://www.jasin.biz/2008/05/29/a-blogging-contest-with-9000-worth-of-prize/#comments</comments>
		<pubDate>Thu, 29 May 2008 03:52:33 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[fun stuffs]]></category>

		<category><![CDATA[contest]]></category>

		<category><![CDATA[dnxpert]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=85</guid>
		<description><![CDATA[I stumbled upon DNXPERT page which currently organising blogging contest, which they called "Greatest Domain Blogging Contest Ever". The prize? $8979.13 worth of prizes consisting of cash, material goods and good quality products that every blogger or even internet marketeer dream of.
Take a look at some of the prizes that they are offering:

$700 in cash [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon <a href="http://www.dnxpert.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">DNXPERT</a> page which currently organising blogging contest, which they called <em><a href="http://www.dnxpert.com/2008/05/19/greatest-domaining-blogging-contest-ever/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">"Greatest Domain Blogging Contest Ever"</a></em>. The prize? $8979.13 worth of prizes consisting of cash, material goods and good quality products that every blogger or even internet marketeer dream of.</p>
<p>Take a look at some of the prizes that they are offering:</p>
<ul style="font-size:12px">
<li>$700 in cash from <a href="http://www.webuildpages.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.webuildpages.com');">We Build Pages</a> who offer <a href="http://www.webuildpages.com/consulting/link-consulting.htm" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.webuildpages.com');">Link Building Services</a>. 	($700 value)</li>
<li>$200 credit deposited into NameDrive domain parking account courtesy of <a href="http://www.dnxpert.com/recommends/namedrive" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">NameDrive.com</a>. 	($200 value)</li>
<li>$100 Godaddy Gift card from <a href="http://instantdomaintool.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/instantdomaintool.com');">instantdomaintool.com</a>. 	($100 value)</li>
<li>$100 credit in <a href="http://www.dnxpert.com/recommends/bidvertiser" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Bidvertiser</a> account.    ($100 value)</li>
<li>$100 cash from <a href="http://www.wordpressfreelance.com" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.wordpressfreelance.com');">WordPressFreelance</a>.    ($100 value)</li>
<li>$50 cash from <a href="http://www.adesblog.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.adesblog.com');">Ades blog</a> ($50 value)</li>
<li>$35 Cash from Tim Schroeder of <a href="http://www.emonetized.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.emonetized.com');">eMonetized.com</a>. 	($35 value)</li>
<li>$35 Cash from <a href="http://www.webhostingresourcekit.com/compare-web-hosting-packages.php" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.webhostingresourcekit.com');">Web Hosting Reviews</a>. 	($35 value)</li>
<li>$30 Cash from <a href="http://www.lifeiscolourful.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.lifeiscolourful.com');">Life is colourful</a>.  ($30 value)</li>
<li>1 <a href="http://www.dnxpert.com/recommends/marketleverage" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Market Leverage</a> promo pack consisting of: MarketLeverage iFlip (digital camera), MLRewards card ($50), MarketLeverage USB Pen, MarketLeverage Polo and hat, MarketLeverage/Nike duffelbag. 	($350 value)</li>
<li>2 x <a href="http://www.dnxpert.com/recommends/marketleverage" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Market Leverage</a> promo pack consisting of MLRewards card ($25), MarketLeverage USB Pen, MarketLeverage Polo and hat, MarketLeverage/Nike duffelbag. 	(2 x $220 value)</li>
<li>3 x <a href="http://www.dnxpert.com/recommends/marketleverage" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Market Leverage</a> USB Pens with $10 ML Rewards card. 	(3 x $35 value)</li>
<li>6 months subscription to MarketMotive.com <a href="http://www.marketmotive.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.marketmotive.com');">top internet marketing minds</a>. 	($1794 value)</li>
<li>1 hour of SEO Consulting from Todd Malicoat from <a href="http://www.stuntdubl.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.stuntdubl.com');">seo consulting</a>. 	($500 value)</li>
<li>1 year’s PRO Subscriptions membership to <a href="http://www.freshdrop.net/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.freshdrop.net');">FreshDrop.net</a>. 	($395.40 value)</li>
<li>5 x 1 license of the software product <a href="http://www.dnxpert.com/recommends/domainnamepro" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Domain Name Pro</a> (5 x $64.95 value)</li>
<li>3 months membership at Aaron Wall’s <a href="http://www.dnxpert.com/recommends/seobook" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">SeoBook</a> course. 	($300 value)</li>
<li>3 x 1 copy of the <a href="http://www.dnxpert.com/recommends/domain-graduate" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Domain Graduate</a> ebook. 	(3 x $87 value)</li>
<li>5 x 1 exclusive list of 100 expired domains from <a href="http://www.dnxpert.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">DNXpert.com</a> (5 x $50 value)</li>
<li>6 months premium clustered hosting at <a href="http://www.imountain.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.imountain.com');">iMountain.com</a> (6 x $39.95 value)</li>
<li>2 months VIP membership at <a href="http://www.dnxpert.com/recommends/clickmojo" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">ClickMojo</a> ($200 value)</li>
<li>15 minute one on one phone coaching session with Simon Johnson from <a href="http://www.domainerincome.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.domainerincome.com');">Domainer Income</a> ($200 value)</li>
<li>2 year subscription to <a href="http://www.dnsstuff.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnsstuff.com');">DNSstuff pro tools</a>. 	($139 value)</li>
<li>1 x 100 domain parking account at <a href="http://www.dnxpert.com/recommends/whypark" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">WhyPark.com</a> ($99.95 value)</li>
<li>1 copy of the <a href="http://www.dnxpert.com/recommends/revenue-domains-exposed" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Revenue Domains Exposed</a> ebook 	($97 value)</li>
<li>2 month subscription at <a href="http://www.dnxpert.com/recommends/wordze" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Wordze.com</a> ($90 value)</li>
<li>3 x 1 copy of the <a href="http://www.domainingmanifesto.com/discount" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.domainingmanifesto.com');">Domaining Manifesto ebook</a>. 	(3 x $27 value)</li>
<li>1 copy of <a href="http://www.dnxpert.com/recommends/wordze" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Wordze</a>’s Guide to Keyword Research &amp; Niche Wealth Building! 	($80 value)</li>
<li>1 copy of a single use license of Brian Gardner’s <a href="http://www.dnxpert.com/recommends/revolution" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Revolution blog theme</a> of the winners’ choice 	($79.99 value)</li>
<li>1 copy of <a href="http://www.dnxpert.com/recommends/wpoptincomments" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Optin Comments WP plugin</a>. 	($77 value)</li>
<li>1 <a href="http://www.dnxpert.com/recommends/dnforum" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">DNForum.com</a> Platinum membership. 	($59.95 value)</li>
<li>1 yearly subscription to Gold Account at <a href="http://www.dnxpert.com/recommends/iwebtool" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">iwebtool.com</a> ($59 value)</li>
<li>3 x 1 copy of the <a href="http://www.dailyblogtips.com/killer-domains-my-first-ebook-is-available-now/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dailyblogtips.com');">Killer Domains ebook</a> (3 x $17 value)</li>
<li>2 x 50 available domains from <a href="http://www.dnxpert.com/recommends/wordfuse" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">WordFuse.com</a> (2 x $24.95 value)</li>
<li>1 featured listing on <a href="http://www.dnxpert.com/recommends/sedo" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">Sedo’s homepage</a> for 1 domain. 	(worth $39)</li>
<li>1 <a href="http://www.dnxpert.com/recommends/dnforum" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">DNForum.com</a> Gold membership 	($19.95 value)</li>
<li>1 Month <a href="http://www.domainnews.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.domainnews.com');">DomainNews.com</a> Newsletter Sponsorship - Top Position Advertizing 	($500 value)</li>
<li>2 months 160×90 ad on <a href="http://www.clickfire.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.clickfire.com');">ClickFire.com</a> homepage 	(2 x $200 value)</li>
<li>1 Month text link on <a href="http://www.justdropped.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.justdropped.com');">JustDropped.com</a> search pages 	($100 value)</li>
<li>1 month text link at <a href="http://www.domainnamewire.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.domainnamewire.com');">DomainNameWire.com</a> ($60 value)</li>
<li>1 month of 125×125 banner advertising on <a href="http://www.winningtheweb.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.winningtheweb.com');">Winning the Web</a> ($50 value)</li>
<li>1 month 125×125 banner advertising at <a href="http://www.dnxpert.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">DNXpert.com</a> ($50 value)</li>
<li>1 month 125×125 banner advertising at <a href="http://www.dotsauce.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dotsauce.com');">DotSauce.com</a> ($40 value)</li>
<li>1 month text link on <a href="http://www.blogaboutyourblog.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.blogaboutyourblog.com');">blogaboutyourblog.com</a> ($10 value)</li>
<li>1 copy of Darren Rowse's <a href="http://www.dnxpert.com/recommends/probloggerbook" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/www.dnxpert.com');">ProBlogger ebook</a> ($16.49 value)</li>
</ul>
<p>Cool prizes huh?</p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=mopzuY"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=mopzuY" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/05/29/a-blogging-contest-with-9000-worth-of-prize/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/05/29/a-blogging-contest-with-9000-worth-of-prize/</feedburner:origLink></item>
		<item>
		<title>Flash remoting with xaraya flashservices</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/299975889/</link>
		<comments>http://www.jasin.biz/2008/05/28/flash-remoting-with-xaraya-flashservices/#comments</comments>
		<pubDate>Tue, 27 May 2008 16:16:49 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming &amp; Web Devt]]></category>

		<category><![CDATA[Xaraya]]></category>

		<category><![CDATA[amfphp]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[flashservices]]></category>

		<category><![CDATA[remoting]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=80</guid>
		<description><![CDATA[I wanted to create some flash applications that interacts with my database. As usual, I am using Xaraya for my framework.
I knew there's flash remoting for PHP called AMFPHP. As in the documentaion, its said that AMFPHP able to be run as standalone or integrated with other framework.
So for this, I wanted to try to [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to create some flash applications that interacts with my database. As usual, I am using <a href="http://www.xaraya.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.xaraya.com');">Xaraya</a> for my framework.<br />
I knew there's flash remoting for PHP called <a href="http://www.amfphp.org/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amfphp.org');">AMFPHP</a>. As in the documentaion, its said that AMFPHP able to be run as standalone or <a href="http://www.amfphp.org/frameworks.html" onclick="javascript:pageTracker._trackPageview ('/outbound/www.amfphp.org');">integrated with other framework</a>.</p>
<p>So for this, I wanted to try to integrate with Xaraya. A quick search on xaraya's extension, there's a flashservices module for xaraya.<br />
According to the flashservices module description, it is also using AMFPHP. The module, allows flash application to access data remotely using AMF (actionscript message format).<br />
However, again, I couldn't find any documentation on how to use the module.</p>
<p><span id="more-80"></span></p>
<p>Spent almost a day to figure out how to use the module. Though I manage to create my flash calls the module's remoting service, I'm still not sure whether this is the best way to do.<br />
Anyway, this is how I done that. If anyone had experience on this module, do let me know.</p>
<p><b>Tools</b><br />
* Flash 8 or other flash ide like flex builder</p>
<p><b>Notes</b><br />
* For Flash 8 development you need to install flash remoting components from: [http://www.adobe.com/products/flashremoting/downloads/components/ Adobe]<br />
* Once you installed, you will see the components from Window -> Common Libraries -> Remoting</p>
<h2>Action Scripting</h2>
<p><b>Enabling flash remoting in AS</b><br />
* import all the remoting components</p>
<pre class="actionscript">&nbsp;
<span style="color: #808080; font-style: italic;">//import remoting components</span>
<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">remoting</span>.<span style="color: #006600;">*</span>;
<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">*</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//import and initialise netdebugger</span>
<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">remoting</span>.<span style="color: #006600;">debug</span>.<span style="color: #006600;">NetDebug</span>;
NetDebug.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p><b>Setting the service</b></p>
<pre class="actionscript">&nbsp;
<span style="color: #808080; font-style: italic;">//set the gateway for flash remoting</span>
<span style="color: #000000; font-weight: bold;">var</span> gatewayUrl:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;http://localhost/xaraya/ws.php?type=flashremoting&quot;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">//set service</span>
<span style="color: #000000; font-weight: bold;">var</span> _service:Service = <span style="color: #000000; font-weight: bold;">new</span> Service<span style="color: #66cc66;">&#40;</span>gatewayUrl, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #ff0000;">'xarServices'</span>, <span style="color: #000000; font-weight: bold;">null</span> , <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<ol>
<li>The 'xarServices' refers to the modules/flashservices/services/xarServices.php</li>
<li>The xarServices has two method currently: xarModApiService and xarModFuncService</li>
<li>xarModApiService method will call the xaraya's xarModAPIFunc function</li>
<li>xarModFuncService method will call the xaraya's xarModFunc function</li>
</ol>
<p><b>Calling the service's method</b></p>
<pre class="actionscript">&nbsp;
<span style="color: #808080; font-style: italic;">//set the arguments to call for the module to call</span>
<span style="color: #808080; font-style: italic;">//this will call flashservices_userapi_test</span>
<span style="color: #000000; font-weight: bold;">var</span> myargs		= <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
myargs<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> 	= <span style="color: #ff0000;">&quot;flashservices&quot;</span>;
myargs<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span> 	= <span style="color: #ff0000;">&quot;user&quot;</span>;
myargs<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span> 	= <span style="color: #ff0000;">&quot;test&quot;</span>;
<span style="color: #808080; font-style: italic;">//the parameters set to the function called above</span>
<span style="color: #808080; font-style: italic;">//notice that object is used as we might need to use the key for the function</span>
<span style="color: #000000; font-weight: bold;">var</span> parameters 		= <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
parameters.<span style="color: #0066CC;">message</span> 	= <span style="color: #ff0000;">&quot;Welcomeeeeeeeeeee!&quot;</span>;
myargs<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#93;</span> 	= parameters;
&nbsp;
<span style="color: #808080; font-style: italic;">//call the service</span>
<span style="color: #808080; font-style: italic;">//you can call xaraya service also by using xarModFuncService instead of xarModAPIService</span>
<span style="color: #000000; font-weight: bold;">var</span> pc:PendingCall = _service.<span style="color: #006600;">xarModApiService</span><span style="color: #66cc66;">&#40;</span>myargs<span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<ol>
<li>myargs is an array containing the function to be called. In this case will call module/flashservices/userapi/flashservices_userapi_test.php</li>
<li>parameters is the arguments to be passed into the function</li>
</ol>
<p><b>Handling flashservice return module</b></p>
<pre class="actionscript">&nbsp;
<span style="color: #808080; font-style: italic;">//do the respon processing</span>
pc.<span style="color: #006600;">responder</span> = <span style="color: #000000; font-weight: bold;">new</span> RelayResponder<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #ff0000;">&quot;handleResult&quot;</span>, <span style="color: #ff0000;">&quot;handleError&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>handleResult is a function in the action script that will handle the event once the service method is successfully called.</p>
<pre class="actionscript">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> handleResult<span style="color: #66cc66;">&#40;</span>re:ResultEvent<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #808080; font-style: italic;">//will set the flash label text's property to the result string</span>
	mylabel.<span style="color: #0066CC;">text</span> = re.<span style="color: #006600;">result</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>handleError is an error handler function in the action script that will handle errors returned from the service.</p>
<pre class="actionscript">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> handleError<span style="color: #66cc66;">&#40;</span>fe:FaultEvent<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'There has been an error '</span> + fe.<span style="color: #006600;">fault</span>.<span style="color: #006600;">faultstring</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><b>Flashservice module</b><br />
Now, this is where I'm not sure the correct way, I had to change the following to make my flash remoting work:<br />
- Edit modules/flashservices/classes/app/Executive.php somewhere in line 340, change the:</p>
<pre class="php">&nbsp;
<span style="color: #b1b100;">return</span> <a href="http://www.php.net/call_user_func_array"><span style="color: #000066;">call_user_func_array</span></a> <span style="color: #66cc66;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span>&amp;<span style="color: #0000ff;">$this</span>-&gt;_classConstruct, <span style="color: #0000ff;">$this</span>-&gt;_methodname<span style="color: #66cc66;">&#41;</span>, <span style="color: #0000ff;">$a</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// do the magic</span>
&nbsp;</pre>
<p>to</p>
<pre class="php">&nbsp;
<span style="color: #b1b100;">return</span> <a href="http://www.php.net/call_user_func_array"><span style="color: #000066;">call_user_func_array</span></a> <span style="color: #66cc66;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span>&amp;<span style="color: #0000ff;">$this</span>-&gt;_classConstruct, <span style="color: #0000ff;">$this</span>-&gt;_methodname<span style="color: #66cc66;">&#41;</span>, <span style="color: #0000ff;">$a</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// do the magic</span>
&nbsp;</pre>
<p>this is because $a will contain multidimensional array, so need to set the first element of $a</p>
<p><b>Debugging Tips</b><br />
* in actionscript you can use 'trace' command to show to the debugger, example in handleError:</p>
<pre class="actionscript">&nbsp;
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'There has been an error '</span> + fe.<span style="color: #006600;">fault</span>.<span style="color: #006600;">faultstring</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>* in xaraya's php function, you can use 'trigger_error' function so that the error will be returned to the flash's actionscript. example:</p>
<pre class="php">&nbsp;
<a href="http://www.php.net/trigger_error"><span style="color: #000066;">trigger_error</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;There's an error!&quot;</span>,<span style="color: #000000; font-weight: bold;">E_USER_ERROR</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>* in debugging, ensure you can allow the http access, a securitty pop up will usually show if you open the html file directly (not from http address). click on settings to manage this.<br />
** go to website privacy settings<br />
** click on your website address<br />
** change to allow then restart the browser<br />
<a href="http://www.jasin.biz/wp-content/uploads/2008/05/flashsettings.png" class="highslide" onclick="return hs.expand(this)"><img src="http://www.jasin.biz/wp-content/uploads/2008/05/flashsettings-300x208.png" alt="" title="flashsettings" width="300" height="208" class="alignnone size-medium wp-image-81" /></a></p>
<p>That's all. Hopefully I can see more Flash with Xaraya applications in future....</p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=a31LCm"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=a31LCm" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/05/28/flash-remoting-with-xaraya-flashservices/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/05/28/flash-remoting-with-xaraya-flashservices/</feedburner:origLink></item>
		<item>
		<title>Ubuntu backing up to DVD media</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/291409645/</link>
		<comments>http://www.jasin.biz/2008/05/16/ubuntu-backing-up-to-dvd-media/#comments</comments>
		<pubDate>Fri, 16 May 2008 04:02:44 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[Linux &amp; Open Source]]></category>

		<category><![CDATA[System Administration]]></category>

		<category><![CDATA[backup]]></category>

		<category><![CDATA[dvd]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=84</guid>
		<description><![CDATA[I wanted to backup some files on my server on to DVD media.
Here's what I did....

Use command 'lshw -C disk' to see the dvd writer location
tjasin@home:~/BACKUP$ sudo lshw -C disk
*-disk
description: ATA Disk
product: ST3320620A
vendor: Seagate
physical id: 0
bus info: ide@0.0
logical name: /dev/hda
version: 3.AAE
serial: 9QF4XQ4N
size: 298GB
capabilities: ata dma lba iordy smart security pm partitioned partitioned:dos
configuration: mode=udma5 smart=on
*-volume:0
description: Linux [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to backup some files on my server on to DVD media.</p>
<p>Here's what I did....</p>
<p><span id="more-84"></span><br />
Use command 'lshw -C disk' to see the dvd writer location</p>
<pre class="bash">tjasin@home:~/BACKUP$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> lshw -C disk
*-disk
description: ATA Disk
product: ST3320620A
vendor: Seagate
physical <span style="color: #c20cb9; font-weight: bold;">id</span>: <span style="color: #000000;">0</span>
bus info: ide@<span style="color: #000000;">0.0</span>
logical name: /dev/hda
version: <span style="color: #000000;">3</span>.AAE
serial: 9QF4XQ4N
<span style="color: #c20cb9; font-weight: bold;">size</span>: 298GB
capabilities: ata dma lba iordy smart security pm partitioned partitioned:dos
configuration: <span style="color: #007800;">mode=</span>udma5 <span style="color: #007800;">smart=</span>on
*-volume:<span style="color: #000000;">0</span>
description: Linux filesystem partition
physical <span style="color: #c20cb9; font-weight: bold;">id</span>: <span style="color: #000000;">1</span>
bus info: ide@<span style="color: #000000;">0.0</span>,<span style="color: #000000;">1</span>
logical name: /dev/hda1
capacity: 297GB
capabilities: primary bootable
*-volume:<span style="color: #000000;">1</span>
description: Extended partition
physical <span style="color: #c20cb9; font-weight: bold;">id</span>: <span style="color: #000000;">2</span>
bus info: ide@<span style="color: #000000;">0.0</span>,<span style="color: #000000;">2</span>
logical name: /dev/hda2
capacity: 729MB
capabilities: extended partitioned partitioned:extended
*-cdrom
description: DVD writer
product: TSSTcorpCD/DVDW TS-H552U
physical <span style="color: #c20cb9; font-weight: bold;">id</span>: <span style="color: #000000;">1</span>
bus info: ide@<span style="color: #000000;">1.1</span>
logical name: /dev/hdd
version: US06
capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio cd-r cd-rw dvd dvd-r
configuration: <span style="color: #007800;">mode=</span>udma2
*-disc
physical <span style="color: #c20cb9; font-weight: bold;">id</span>: <span style="color: #000000;">0</span>
logical name: /dev/hdd</pre>
<p>/dev/hdd is where my dvd writer is...</p>
<p>then simply :</p>
<pre class="bash">&nbsp;
tjasin@home:~/BACKUP$ growisofs -Z /dev/hdd -R -J *
&nbsp;</pre>
<p>that will burn all the files recursively into my dvd <img src='http://www.jasin.biz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I tried format my dvd rw media using 'dvd+rw-format', but always having error saying ":-( mounted media doesn't appear to be DVD'RW or DVD-RAM".<br />
Did i do something wronggg?</p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=IpOYKA"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=IpOYKA" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/05/16/ubuntu-backing-up-to-dvd-media/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/05/16/ubuntu-backing-up-to-dvd-media/</feedburner:origLink></item>
		<item>
		<title>What a funny adsense !</title>
		<link>http://feeds.feedburner.com/~r/teddyjasin/~3/291043982/</link>
		<comments>http://www.jasin.biz/2008/05/15/what-a-funny-adsense/#comments</comments>
		<pubDate>Thu, 15 May 2008 15:55:56 +0000</pubDate>
		<dc:creator>Teddy Jasin</dc:creator>
		
		<category><![CDATA[fun stuffs]]></category>

		<category><![CDATA[adsense]]></category>

		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.jasin.biz/?p=82</guid>
		<description><![CDATA[Hah I can't wait to show you a funny adsense advertisement that showed up on one of my page while I was managing my site.

Take a look at the screenshot that i took. The ads title was "Edison Chen Scandal" and the message was "Learning from Edison Chen affair for data storage managers in Asia". [...]]]></description>
			<content:encoded><![CDATA[<p>Hah I can't wait to show you a funny adsense advertisement that showed up on one of my page while I was managing my site.</p>
<p><a href="http://www.jasin.biz/wp-content/uploads/2008/05/funny-adsense.jpg" class="highslide" onclick="return hs.expand(this)"><img style="margin: 10px; float: left;" title="funny adsense" src="http://www.jasin.biz/wp-content/uploads/2008/05/funny-adsense-300x213.jpg" alt="funny adsense" width="133" height="94" /></a></p>
<p>Take a look at the screenshot that i took. The ads title was "Edison Chen Scandal" and the message was "Learning from Edison Chen affair for data storage managers in Asia". I really couldn't stop smiling; "What Edison got to do with data storage anyway?". Security? yah could be.... New marketing strategy? absolutely! I wonder, what's the CTR the advertiser get? hmm...</p>

<p><a href="http://feeds.feedburner.com/~a/teddyjasin?a=kiadwd"><img src="http://feeds.feedburner.com/~a/teddyjasin?i=kiadwd" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasin.biz/2008/05/15/what-a-funny-adsense/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jasin.biz/2008/05/15/what-a-funny-adsense/</feedburner:origLink></item>
	</channel>
</rss>
