<?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>Saturngod &#187; api</title>
	<atom:link href="http://www.saturngod.net/tag/api/feed" rel="self" type="application/rss+xml" />
	<link>http://www.saturngod.net</link>
	<description>What&#039;s on my mind</description>
	<lastBuildDate>Sat, 31 Jul 2010 05:47:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>subscriber count , follower count with PHP</title>
		<link>http://www.saturngod.net/knowledgebase/subscriber-count-follower-count-with-php?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=subscriber-count-follower-count-with-php</link>
		<comments>http://www.saturngod.net/knowledgebase/subscriber-count-follower-count-with-php#comments</comments>
		<pubDate>Thu, 06 May 2010 16:47:21 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[Knowledgebase]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2751</guid>
		<description><![CDATA[subscriber count ကို feed burner ကေန ယူခ်င္တာနဲ႕ API ေလး စမ္းျဖစ္သြားတယ္။ feed burner api မလုပ္ခင္ api ကို allow လုပ္ေပးဖို႕လိုတယ္။ login your feedburner and go to your feed. Go to Publicize tag Go to Awareness Api and active it. code ကေတာ့ ေအာက္က အတိုင္းပဲ။ ဒါေပမယ့္ uri ဆိုတဲ့ေနရာမွာ ကိုယ့္ uri ေလး ထည့္ေပးဖို႕လုိပါတယ္။ &#60;?php //get cool feedburner count $toopen="http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=saturngod"; $ch [...]]]></description>
			<content:encoded><![CDATA[<p>subscriber count ကို feed burner ကေန ယူခ်င္တာနဲ႕ API ေလး စမ္းျဖစ္သြားတယ္။ feed burner api မလုပ္ခင္ api ကို allow လုပ္ေပးဖို႕လိုတယ္။</p>
<ol>
<li>login your feedburner and go to your feed.</li>
<li>Go to <strong>Publicize</strong> tag</li>
<li>Go to Awareness Api and active it.</li>
</ol>
<p><span id="more-2751"></span><br />
code ကေတာ့ ေအာက္က အတိုင္းပဲ။ ဒါေပမယ့္ uri ဆိုတဲ့ေနရာမွာ ကိုယ့္ uri ေလး ထည့္ေပးဖို႕လုိပါတယ္။</p>
<pre class="brush: php">
&lt;?php
//get cool feedburner count
$toopen="http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=saturngod";

$ch = curl_init(); /// initialize a cURL session
curl_setopt($ch, CURLOPT_URL, $toopen );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$content = curl_exec ($ch);//end get cool feedburner count
curl_close($ch);

$dom = new DOMDocument();
$dom-&gt;preserveWhiteSpace = false;
$dom-&gt;loadXML($content);
$count=$dom-&gt;getElementsByTagName("entry")-&gt;item(0)-&gt;getAttribute("circulation");
echo $count;
?&gt;
</pre>
<p>Twitter ကေတာ့ ေတာ္ေတာ္လြယ္ပါ့။ screen_name မွာ twitter account name ထည့္လိုက္ရံုပဲ။</p>
<pre class="brush: php">
&lt;?php

$toopen="http://twitter.com/users/show.xml?screen_name=saturngod ";

$ch = curl_init(); /// initialize a cURL session
curl_setopt($ch, CURLOPT_URL, $toopen );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$content = curl_exec ($ch);//end get cool feedburner count
curl_close($ch);

$dom = new DOMDocument();
$dom-&gt;preserveWhiteSpace = false;
$dom-&gt;loadXML($content);
$count=$dom-&gt;getElementsByTagName("followers_count")-&gt;item(0)-&gt;nodeValue;
$twitt=$dom-&gt;getElementsByTagName("text")-&gt;item(0)-&gt;nodeValue;

?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/knowledgebase/subscriber-count-follower-count-with-php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Play in the playground</title>
		<link>http://www.saturngod.net/knowledgebase/play-in-the-playground?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=play-in-the-playground</link>
		<comments>http://www.saturngod.net/knowledgebase/play-in-the-playground#comments</comments>
		<pubDate>Sun, 31 Jan 2010 13:54:24 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[Knowledgebase]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[oauth]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2295</guid>
		<description><![CDATA[Play in the playground ဆိုလို႕ သူငယ္ျပန္သြားတယ္လို႕ ထင္ကုန္ၾကအံုးမယ္။ မေန႕ညက oAuth ကို ဘယ္လိုလုပ္ရမလဲ မသိလို႕ရွာရင္း ရွာရွင္းကေန playground ထဲကို ေရာက္သြားတာပဲ။ webdeveloper forum က playground ထဲမွာ ရိွတယ္ဆိုလို႕ playground ထဲ အေျပးသြားၾကည့္ရတာပဲ။ playground ထဲေရာက္မွ woww... ဆိုျပီး သေဘာက်စရာေတြ အျပည့္ပဲဗ်။ ေဆာ့စရာေတြက မ်ားမွ မ်ား။ ခက္တာက ကိုယ္လိုအပ္ေနတာပဲ အရင္ေဆာ့ရတာေပါ့။Playground ဆိုတာက Google Code Playground ကိုေျပာတာပါ။ Google က ထုတ္ထားတဲ့ API ေတြကို example နဲ႕ စုေဆာင္းထားတဲ့ေနရာေလးပါ။ Google API ကို ဘယ္လိုအသံုးျပဳရမလဲ မသိတဲ့သူေတြအတြက္ [...]]]></description>
			<content:encoded><![CDATA[<p>Play in the playground ဆိုလို႕ သူငယ္ျပန္သြားတယ္လို႕ ထင္ကုန္ၾကအံုးမယ္။ မေန႕ညက oAuth ကို ဘယ္လိုလုပ္ရမလဲ မသိလို႕ရွာရင္း ရွာရွင္းကေန playground ထဲကို ေရာက္သြားတာပဲ။ webdeveloper forum က playground ထဲမွာ ရိွတယ္ဆိုလို႕ playground ထဲ အေျပးသြားၾကည့္ရတာပဲ။ playground ထဲေရာက္မွ woww... ဆိုျပီး သေဘာက်စရာေတြ အျပည့္ပဲဗ်။ ေဆာ့စရာေတြက မ်ားမွ မ်ား။ ခက္တာက ကိုယ္လိုအပ္ေနတာပဲ အရင္ေဆာ့ရတာေပါ့။<span id="more-2295"></span>Playground ဆိုတာက Google Code Playground ကိုေျပာတာပါ။ Google က ထုတ္ထားတဲ့ API ေတြကို example နဲ႕ စုေဆာင္းထားတဲ့ေနရာေလးပါ။ Google API ကို ဘယ္လိုအသံုးျပဳရမလဲ မသိတဲ့သူေတြအတြက္ အရမ္းအဆင္ေျပတယ္။ http://code.google.com/apis/ajax/playground/ မွာ သြားၾကည့္လုိ႕ရတယ္။ အဲဒီ playground ကေတာ့ javascript နဲ႕ၾကီးပဲ။ ကၽြန္ေတာ္လိုခ်င္ေနတဲ့ oAuth ကေတာ့ http://googlecodesamples.com/ အဲဒီမွာ ရိွတာပါ။ တစ္ခါတစ္ခါ google ကို သေဘာက်မိတယ္။ အမ်ားအားျဖင့္ေတာ့ စိတ္ညစ္တယ္။ Google က သံုးတဲ့ နည္းပညာေတြက ေနာက္ဆံုးေတြ သံုးတာ မ်ားေတာ့ ကိုယ္လည္း လိုက္မဖတ္ႏိုင္ရင္ သူေျပာတာေတြကို နားလည္ဖို႕မလြယ္ဘူး။ သူ႕ထက္စာရင္  paypal api တို႕twitter တို႕က ပိုလြယ္တယ္။ ဒါေပမယ့္ google က playground ရိွေတာ့ ေလ့လာရတာလြယ္တာေပါ့။ ေနာက္ျပီး forum support ရိွေပမယ့္ အဲေလာက္ သံုးလုိ႕မေကာင္းဘူး။ အမ်ားအားျဖင့္ ျပန္မေျဖတာမ်ားတယ္။ ျပန္ေျဖရင္လည္း အမ်ားအားျဖင့္ စိတ္ေက်နပ္စရာအေျဖရေအာင္ မေပးႏိုင္ဘူး။ webdeveloper forum က web development အတြက္ ေမးရတာ ေတာ္ေတာ္ေကာင္းတဲ့ forum ပဲ။ oAuth ကို stackoverflow ကို ေမးေပမယ့္ ေတာ္ေတာ္မ်ားမ်ားက ေက်နပ္တဲ့အေျဖမရဘူး။ ဥပမာ။။ အခုလုိ playground လိပ္စာေပးတာမ်ဳိးေပါ့။ Stackoverflow မွာက PHP developer နည္းတာလည္း ပါလိမ့္မယ္ထင္တာပဲ။ ေမးေနက် webdeveloper forum ကိုပဲ သံုးလုိက္ေတာ့ ေတာ္ေတာ္အဆင္ေျပသြားျပီ။ အခုေတာ့ playground ေၾကာင့္ ပထမ အဆင့္ေတာ့ ရသြားျပီ။ ေနာက္ဆံုး ၂ ဆင့္ျဖတ္ျပီးရင္ oAuth access ရျပီ။ ျပီးရင္ GET,POST,PUT,DELETE ကို စမ္းဖို႕ပဲ က်န္ေတာ့တယ္။</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/knowledgebase/play-in-the-playground/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>မသိျခင္းမ်ား</title>
		<link>http://www.saturngod.net/knowledgebase/%e1%80%99%e1%80%9e%e1%80%ad%e1%80%bb%e1%80%81%e1%80%84%e1%80%b9%e1%80%b8%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=%25e1%2580%2599%25e1%2580%259e%25e1%2580%25ad%25e1%2580%25bb%25e1%2580%2581%25e1%2580%2584%25e1%2580%25b9%25e1%2580%25b8%25e1%2580%2599%25e1%2580%25ba%25e1%2580%25ac%25e1%2580%25b8</link>
		<comments>http://www.saturngod.net/knowledgebase/%e1%80%99%e1%80%9e%e1%80%ad%e1%80%bb%e1%80%81%e1%80%84%e1%80%b9%e1%80%b8%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:22:31 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[Knowledgebase]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2286</guid>
		<description><![CDATA[အခုမွ သိလိုက္တယ္။ ကၽြန္ေတာ္ မသိပဲ ေျပာင္းလဲသြားတာ အမ်ားၾကီး ျဖစ္သြားတာပဲ။ ကၽြန္ေတာ့္အေနနဲ႕ အမ်ားၾကီး ေနာက္က်ေနမွန္း အခုတေလာမွ သိလိုက္ရတာေတြ ရိွတယ္။ အဓိကေတာ့ ေျပာင္းလဲမႈေတြကို မ်က္ေျခမျပတ္မလုိက္ႏိုင္လိုက္တာလဲပါတာေပါ့။ ကၽြန္ေတာ္ မသိပဲ ျဖစ္သြားတာေတြက API ရန္ကုန္မွာေနတုန္းက API ဆိုလို႕ Google Map API ပဲသံုးဖူးတယ္။ အျခား API ေတြ သံုးရေအာင္လည္း သံုးစရာ ေနရာမရိွသလို သံုးဖို႕လည္း မစဥ္းစားမိဘူး။ သံုးဖုိ႕လည္း လိုခ်င္မွ လိုလိမ့္မယ္လို႕ ထင္မိေနတာလားေတာ့ မသိဘူး။ API ေလာက ဘာေတြ ေျပာင္းလဲသြားျပီဆိုတာကို လံုးဝလံုးဝကို မသိလိုက္ဘူး။ Google IO ပြဲေတြကိုလည္း ေစာင့္မၾကည့္တတ္တာပါပါတယ္။ ေနာက္ျပီး web related conference ေတြလည္း [...]]]></description>
			<content:encoded><![CDATA[<p>အခုမွ သိလိုက္တယ္။ ကၽြန္ေတာ္ မသိပဲ ေျပာင္းလဲသြားတာ အမ်ားၾကီး ျဖစ္သြားတာပဲ။ ကၽြန္ေတာ့္အေနနဲ႕ အမ်ားၾကီး ေနာက္က်ေနမွန္း အခုတေလာမွ သိလိုက္ရတာေတြ ရိွတယ္။ အဓိကေတာ့ ေျပာင္းလဲမႈေတြကို မ်က္ေျခမျပတ္မလုိက္ႏိုင္လိုက္တာလဲပါတာေပါ့။ ကၽြန္ေတာ္ မသိပဲ ျဖစ္သြားတာေတြက</p>
<p><span id="more-2286"></span><strong>API</strong></p>
<p>ရန္ကုန္မွာေနတုန္းက API ဆိုလို႕ Google Map API ပဲသံုးဖူးတယ္။ အျခား API ေတြ သံုးရေအာင္လည္း သံုးစရာ ေနရာမရိွသလို သံုးဖို႕လည္း မစဥ္းစားမိဘူး။ သံုးဖုိ႕လည္း လိုခ်င္မွ လိုလိမ့္မယ္လို႕ ထင္မိေနတာလားေတာ့ မသိဘူး။ API ေလာက ဘာေတြ ေျပာင္းလဲသြားျပီဆိုတာကို လံုးဝလံုးဝကို မသိလိုက္ဘူး။ Google IO ပြဲေတြကိုလည္း ေစာင့္မၾကည့္တတ္တာပါပါတယ္။ ေနာက္ျပီး web related conference ေတြလည္း မတက္ဘူးဖူး။ ေနာက္ဆိုရင္ေတာ့ register ဖိုးေပးရေပမယ့္ တက္မယ္လို႕ေတာ့ ဆံုးျဖတ္ထားတယ္။ အရင္တုန္းက SOAP အသံုးမ်ားခဲ့ပါတယ္။ အခုအခ်ိန္မွာေတာ့ SOAP ဟာ ေခတ္မရိွေတာ့ဘူးလို႕ေတာင္ ဆိုရမလုိျဖစ္သြားျပီ။ REST နဲ႕ oAuth ဟာ အရမ္းကို ေအာင္ျမင္လာပါတယ္။ REST နဲ႕ oAuth ေျပာင္းလဲခဲ့တာလည္း ေတာ္ေတာ္ၾကာခဲ့ပါျပီ။ ဒါေပမယ့္ အဲဒါကို မသိလုိက္ဘူး။ oAuth နဲ႕ တူတဲ့ Filckr Auth , Google's AuthSub, Yahoo' BBAuth, Facebook Auth ေတြရိွပါတယ္။ Google's AuthSub ကိုေတာ့ GET ပိုင္းကိုေတာ့ စမ္းခဲ့ျပီးပါျပီ။ ဒါေပမယ့္ POST,PUT, DELETE ကို စမ္းတာ မေအာင္ျမင္ေသးဘူး။ AuthSub က session token ေၾကာင့္ grand access အျမဲလိုေနတာကိုေတာ့ သေဘာမက်ဘူး။ GET,POST ကို သာမာန္ web developer ေတြသိေပမယ့္ PUT,DELETE ကို ေတာ့ သိၾကမယ္မထင္ဘူး။ PUT,DELET က HTTP 1.1 မွာ ပါလာတာပါ။</p>
<p><strong>Facebook Connect</strong></p>
<p>ေနရာတိုင္းမွာ facebook connect ျဖစ္လာျပီ။ ဒါကိုေတာ့ အရင္ကတည္းက သတိထားမိတယ္။ Facebook Connect ဆိုတာ ဘယ္လိုေရးမွန္း မသိခဲ့ေပမယ့္ ေနာင္တခ်ိန္ ေအာင္ျမင္ႏိုင္မလား မေအာင္ျမင္ဘူးလားဆိုေတာ့ ေဝခြဲမရဘူး။ ရန္ကုန္မွာတုန္းက facebook ကို စိတ္ညစ္တယ္။ facebook connect သံုးလိုက္ေပမယ့္ အရမ္းၾကာတယ္။ Connection မေကာင္းလုိ႕လားေတာ့ မသိဘူး။ ရန္ကုန္မွာက dial-up ပဲ သံုးျဖစ္တာကို။ Access Kit နဲ႕ေလ။ အလုပ္စလုပ္ေတာ့ client ေတာ္ေတာ္မ်ားမ်ားကိုက facebook connect ကို အလိုရိွၾကတယ္။ ဟုတ္မွာေပါ့။ connect လုပ္တာက register လုပ္တာထက္ေတာင္ ျမန္ေသး။ web ေလာကရဲ႕ ေျပာင္းလဲေနျပီ ေျပာင္းလဲသြားျပီဆုိတာကို ေျပာင္းလဲေတာ့မယ္လို႕ ထင္ျပီး က်န္ခဲ့ဘူးတာပဲလို႕ သိလုိက္ရတယ္။</p>
<p><strong>Google App Premier Edition</strong></p>
<p>အရင္တုန္းကေတာ့ ထင္တယ္။ Premier Edition ကို ဘယ္သူေတြ သံုးမွာလဲေပါ့။ ေစ်းကလည္း ၾကီးပါ့။ ဘာမ်ားေကာင္းမွာမို႕လဲဆိုျပီးေတာ့။ Standard သံုးရင္ ရေနတာပဲလို႕ ထင္ခဲ့တယ္။ သို႕ေသာ္ အထင္နဲ႕ လြဲခဲ့တယ္ဆိုတာ ထပ္သိတာပဲ။ Premier Edition ကို သံုးေနတဲ့ company ေတြ အမ်ားၾကီးပါ။ ကၽြန္ေတာ္တုိ႕company ကလည္း Reseller ျဖစ္သာေၾကာင့္လည္း ပါပါတယ္။ Premier Edition ကို သံုးရင္ အရင္ mail ေတြအကုန္ merging လုပ္လို႕ရတယ္။ Google App Premier Edition မွာ domain share contact ပါတယ္။ အဲဒါေတာ္ေတာ္ေလးမိုက္တယ္။ Premier Edition အေၾကာင္း အရင္တုန္းကေျပာဘူးပါတယ္။ အဓိက standard ထက္ သာတာကေတာ့ API နဲ႕ Postini ပဲ။</p>
<p><strong>Gogole Solution Market</strong></p>
<p>Google က သူတို႕တင္ ေငြယူတာမဟုတ္ဘူး။ အျခား Reseller ေတြ developer ေတြကိုလည္း ေငြဝင္လမ္းဖန္တီးေပးထားတယ္။ Google App က API ေတြထုတ္ေပးေပမယ့္ သာမာန္ user ေတြအေနနဲ႕က ေဝးလြန္းတယ္။ company မွာက email ပို႕မယ္။ Gtalk သံုးမယ္။ ေနာက္ျပီး Google Doc သံုးမယ္။ စတာေတြေလာက္ပဲ သံုးတတ္ၾကတဲ့သူေတြပါ။ အဲဒီအတြက္ Developer ေတြက သူတုိ႕ Google ေပးထားတာထက္ ပိုလိုခ်င္လာတာေတြကို ဖန္တီးေပးရတယ္။ ဥပမာ။။ Outlook နဲ႕ Google Apps Contact ကို Sync လုပ္ခ်င္တာတုိ႕  ေနာက္ျပီး doc ကို offline, online sync လုပ္ခ်င္တာတို႕ စတာေတြကို user ေတြလိုခ်င္တဲ့အခါ Developer ေတြက ျပန္ေရးေပးရတယ္။ ေနာက္ျပီး user ေတြလိုခ်င္တာေတြက ေရးျပီးသားရိွေနတတ္တယ္။ Google Solution Marketplace မွာ ရွာလိုက္ရင္ရပါတယ္။ Marketplace ကေတာ့ အၾကီးၾကီးမဟုတ္ေပမယ့္ မေသးတာေတာ့ အမွန္ပဲ။ နည္းနည္းျခင္းနဲ႕ တအိအိစားေနတာ။ by monthly ေပးေဆာင္ရတာေတြ မ်ားတယ္။ အဲဒီအတြက္ client အတြက္လည္း ေငြတစ္ခါတည္း အမ်ားၾကီးမကုန္သြားသလို သူ႕အေနနဲ႕လည္း အလုပ္လုပ္ရတာ အဆင္ေျပတယ္။ အဲလို marketplace ေတြ ရိွမယ္လို႕ မသိလိုက္တာလည္း ဆိုးတယ္။</p>
<p><strong>Synchronize with cloud computing</strong></p>
<p>Cloud computing ေခတ္စားလာမယ္ဆိုတာ ၾကိဳတင္ေတာ့ သိေပမယ့္ Synchronize လည္း အေရးပါလာမယ္ဆိုတာကို သိပ္ျပီး သတိမထားမိဘူး။ အစက အကုန္ web ေပၚမွာ အလုပ္လုပ္ၾကမယ္ေပါ့။ အဲလို ထင္မိတာ။ တကယ္တန္းေတာ့ အဲလို မဟုတ္ဘူး။ end user ေတြအကုန္လံုးက အခုခ်ိန္ထိ offline ကို မက္ေမာေနတုန္းပဲ။ အင္တာနက္မရိွလည္း သူတုိ႕ အလုပ္ေတြလုပ္လို႕ရေအာင္ ဖန္တီးထားခ်င္တယ္။ အင္တာနက္မရိွလို႕ data ေတြ access လုပ္လုိ႕မရမွာ ေၾကာက္ၾကတယ္။ အဲဒီအတြက္ Synchronize က အေရးပါလာတယ္။ ခုနက ကၽြန္ေတာ္ေျပာထားခဲ့သလိုေပါ့။ Google Doc က online ေပမယ့္ offline ကို လိုခ်င္ၾကတုန္းပဲ။ ဒါေၾကာင့္ Synchronize လုပ္ေပးတဲ့ program ေတြ ေပၚလာတာေပါ့။ ဥပမာ။။ evernote ဆိုရင္ အေကာင္းဆံုး ဥပမာပဲ။ iPhone,iPodTouch,Blackberry,Windows Mobiles,Android ေပၚေတြမွာလည္းရတယ္။ ကိုယ့္ computer ေပၚမွာလည္းရတယ္။ အဲ.. mac နဲ႕windows ပဲရတယ္။ Linux ေပၚမွာေတာ့ မရေသးဘူး။ ေနာက္ျပီး web ေပၚမွာလည္းရတယ္။ အျမဲ Synchronize လုပ္ေပးေနတယ္။ အဲဒီအတြက္ သူတို႕က Synchronize bandwidth ကို monthly အရ ဘယ္ေလာက္ပဲ လုပ္ခြင့္ရိွတယ္ေပါ့။ ဒီထက္ပိုလုပ္ခ်င္ရင္ ပိုက္ပိုက္ေပးပဲ။ ဒါကလည္း cloud computing ေခတ္ၾကီးထဲမွာ ေငြရွာနည္း တစ္နည္းပဲ။ Drop box လည္း ဘာထူးလဲ။ Synchronize လုပ္ေပးတယ္။  ကိုယ့္ စက္ထဲမွာေကာ  online မွာပါ access လုပ္လုိ႕ရတယ္။ အဲ... space ျပည့္သြားရင္ေတာ့ ဝယ္ဖို႕ စဥ္းစားေပါ့။</p>
<p><strong>YoutTube</strong></p>
<p>ရန္ကုန္မွာ ၾကားရျပီး မခံစားခဲ့ရတဲ့အထဲမွာ youtube ပါတယ္။ youtube သံုးတဲ့ bandwidth က ေၾကာက္ဖို႕ေကာင္းတာလည္း ပါတယ္။ ဆိုင္မွာ တစ္ေယာက္က youtube ဖြင့္လိုက္ရင္ အျခားစက္ေတြပါ connection ေလးသြားတယ္။ ဘာေၾကာင့္ ျဖစ္သြားမွန္းေတာ့ မသိဘူး။ ဒီမွာေတာ့ ကိစၥမရိွဘူး။ youtube streaming က အရမ္းျမန္တယ္။ အျခား video site ေတြ streaming နဲ႕ ယွဥ္ရင္ ျမန္တယ္လို႕ ဆုိလို႕ရမယ္။ အဲဒါကေတာ့ အဓိက ေအာင္ျမင္တဲ့ အခ်က္မဟုတ္ေသးဘူး။ အဓိက ေအာင္ျမင္သြားေစတဲ့အခ်က္က API နဲ႕ converting ပဲ။ သူ႕ API ေၾကာင့္ video recording ေတြကေန တစ္ခါတည္း တန္းတင္လို႕ရတယ္။ ဥပမာ။။ iShowU HD ကေန record လုပ္ထားတာကို တစ္ခါတည္း youtube ကို တန္းတင္လုိ႕ရတယ္။ mov file ကို တစ္ခါတည္း flv size အမ်ဳိးမ်ဳိး သူ႕ဘာသာသူ online မွာေျပာင္းတယ္။ MP4 ကိုလည္း တစ္ခါတည္းေျပာင္းေပးတယ္။ hardware ေကာင္းလို႕ ျမန္တာကိုေတာ့ ခ်ီးက်ဴးစရာမရိွေပမယ့္ movie format အမ်ဳိးမ်ဳိးကို flv size ၃ မ်ဳိးနဲ႕ MP4 ကို သူ႕ဘာသာသူေျပာင္းေပးတာကိုေတာ့ သေဘာက်တယ္။ တနည္းေျပာရင္ user အေနနဲ႕ upload တင္လုိက္ရံုပဲေလ။ user ကို အဆင့္အမ်ားၾကီးလုပ္စရာမလုိပဲ လြယ္လြယ္ေလးနဲ႕ ျပီးေအာင္ ျပဳလုပ္ေပးထားျခင္းက အဓိကေအာင္ျမင္ျခင္း ေသာ့ခ်က္ပဲ။</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/knowledgebase/%e1%80%99%e1%80%9e%e1%80%ad%e1%80%bb%e1%80%81%e1%80%84%e1%80%b9%e1%80%b8%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Webservice, Web API</title>
		<link>http://www.saturngod.net/knowledgebase/webservice-web-api?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=webservice-web-api</link>
		<comments>http://www.saturngod.net/knowledgebase/webservice-web-api#comments</comments>
		<pubDate>Fri, 22 Jan 2010 14:28:01 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[Knowledgebase]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2248</guid>
		<description><![CDATA[MZ မွာေမးထားတာေလးကို blog မွာလည္း အျခားသူေတြ သိေအာင္ ထပ္ေျဖေပးလိုက္ပါတယ္။ က်ေတာ္က ဒီလိုနားလည္ ထားတယ္... ဥပမာ . Facebook မွာဆိုရင္ Game ေတြ အမ်ားၾကီးပါတယ္။ အဲဒီ Game ေတြက သာမာန္ web programming နဲ႔ ေရးလို႔ မရဘူးဗ်ာ။ အဲဒါကို တျခား java ျဖစ္ျဖစ္ c ျဖစ္ျဖစ္ ေရးထားမယ္ေပါ့။ အဲဒီ အေျခေနမွာဆုိရင္ ကို ေရးလိုက္တဲ့ဟာက my application ျဖစ္သြားျပီေပါ့။ အဲဒါကုိမွ web site မွာတင္ခ်င္တယ္ဆိုေတာ့ my application ကေန web application ကိုေျပာင္းဖို႔ အတြက္ web service ကို အသံုးျပဳတာလို႔ [...]]]></description>
			<content:encoded><![CDATA[<p>MZ မွာေမးထားတာေလးကို blog မွာလည္း အျခားသူေတြ သိေအာင္ ထပ္ေျဖေပးလိုက္ပါတယ္။</p>
<blockquote><p>က်ေတာ္က ဒီလိုနားလည္ ထားတယ္...<br />
ဥပမာ . Facebook မွာဆိုရင္ Game ေတြ အမ်ားၾကီးပါတယ္။ အဲဒီ Game ေတြက သာမာန္  web programming နဲ႔ ေရးလို႔ မရဘူးဗ်ာ။ အဲဒါကို တျခား java ျဖစ္ျဖစ္ c  ျဖစ္ျဖစ္ ေရးထားမယ္ေပါ့။ အဲဒီ အေျခေနမွာဆုိရင္ ကို ေရးလိုက္တဲ့ဟာက my  application ျဖစ္သြားျပီေပါ့။ အဲဒါကုိမွ web site မွာတင္ခ်င္တယ္ဆိုေတာ့ my  application ကေန web application ကိုေျပာင္းဖို႔ အတြက္ web service ကို  အသံုးျပဳတာလို႔ က်ေတာ္က နားလည္ ထားတယ္။ အဲဒီ အေတြးက မွန္ပါသလား။</p>
<p>ခင္မင္စြာျဖင့္ စိုင္းထက္</p></blockquote>
<p>အဲလိုမဟုတ္ပါဘူး။</p>
<p>facebook မွာေရးခ်င္တယ္ဆို၇င္ fbml ကို သံုးျပီးေတာ့ ေရးရမယ္။  အဆင္အေျပဆံုးကေတာ့ PHP နဲ႕fbml ကို တြဲသံုးျပီး ေရးတာေပါ့။  အဲလိုေရးဖို႕အတြက္ အရင္ဆံုး facebook မွာ API key ယူရတယ္။ API key  ရျပီးေတာ့မွ PHP ကေနဆုိရင္ facebook phplibrary နဲ႕ fbml ကို သံုးျပီးေရးရတယ္။ app  run တာကေတာ့ ကိုယ့္ host မွာ။ ျပတာကေတာ့ facebook ကေနေပါ့။ API နဲ႕ FBML က  အလုပ္လုပ္သြားေပးတာပါ။ API ဆိုတာက facebook နဲ႕ ကိုယ္ေရးထားတဲ့ API ကို  ၾကားခံေဆာင္ရြက္ေပးတာပါ။ အဲလို ေဆာင္ရြက္ေပးဖုိ႕အတြက္ ကိုယ္က facebook site  မွာ app register လုပ္ရတယ္။ အဲဒီ အခါ API key ရလာမယ္။ API key ရမွ  ဆက္သြယ္လုိ႕ရမယ္။ API key ဆိုတာက security သေဘာမ်ဳိးနဲ႕ သံုးတာပါ။ ဥပမာ API  ကို အသံုးျပဳျပီး facebook မွာ ၅ မိနစ္ တစ္ခါ post ေတြ  အလိုအေလ်ာက္တင္ေနလို႕ရတယ္။ အဲဒီအခါ facebook က ခြင့္မျပဳဘူးဆုိရင္ ဘယ္ API က  လာတယ္။ အဲဒီ API ကို ဘယ္ user က register လုပ္ထားလဲဆိုတာကို သိျပီး ban  လုိက္လို႕ရတယ္။</p>
<p>oAuth က နည္းနည္းရႈပ္တယ္။ နည္းနည္းပိုရွင္းတဲ့ AuthSub ကို ေျပာတာ  ပိုေကာင္းမယ္။ AuthSub ဆုိတာက google ရဲ႕ နည္းပညာပါ။ oAuth ကို  အေျခခံထားတာပဲ။ user ေတြရဲ႕ contact list ကို site တစ္ခုကေန  ယူေတာ့မယ္ဆိုပါဆုိ႕။ အဲဒီလိုအခါမွာ user ရဲ႕ username နဲ႕ pwd ထည့္ရမယ္။  အဲဒီ site က ယံုၾကည္စိတ္ခ်ရမႈ ရိွခ်င္မွရိွမယ္။ အဲလိုမ်ဳိးေတြအတြက္ oAuth  ေပၚလာတာပါ။ AuthSub က oAuth ထက္ ပိုရွင္းေအာင္ လုပ္ထားေပးတယ္။</p>
<p>Google Contact list ကို web site က request လုပ္လုိက္ရင္ google website  ကိုေရာက္သြားမယ္။ google website မွာ user က login ဝင္။ ဝင္ျပီးတဲ့အခါမွ  google က ဒီ site က contact list ကို ေတာင္းေနျပီ။ မင္းေပးမွာလားလုိ႕  ေမးေရာ။ ကိုယ္က ေပးလိုက္လို႕ေျပာတဲ့အခါမွ google ကေန ေပးလုိက္တာ။ အဲဒီ  အခါမွာ လာခဲ့တဲ့ site ကိုေရာက္သြားေရာ။ အဲဒီအတြက္ session token  ပို႕လိုက္တယ္။ username နဲ႕ pwd ေတာ့ မပို႕ဘူး။ session token ျဖစ္တဲ့အတြက္  အခ်ိန္အၾကာၾကီးမရတဲ့အတြက္ username နဲ႕ pwd ကို site က ခိုးလုိ႕မရေတာ့ဘူး။  user အတြက္လည္း စိတ္ခ်ရတယ္။ site အတြက္လည္း user ရဲ႕ ယံုၾကည္မႈကိုရတယ္။</p>
<p>တနည္းေျပာရင္ သာမာန္ web programming နဲ႕ပဲ ေရးရတာပဲ။ facebook app လည္း  သာမာန္ web programming နဲ႕ပဲေရး၇တာပဲ။ သက္ဆိုင္ရာ API function ေတြကိုေတာ့  ယူသံုးရတယ္။ ဥပမာ။ facebook API function ကေန friendlist ေတြရႏိုင္တယ္။  user information ေတြရႏိုင္တယ္။ register လုပ္တယ္ဆိုတာက user information  ရဖို႕ပဲ။ facebook connect သံုးလိုက္ေတာ့ user လည္း register  လုပ္စရာမလုိေတာ့ဘူး site ကလည္း information ရတယ္။ အဲလိုမ်ဳိး web service  ေတြက အလုပ္လုပ္ေပးတာ။</p>
<p>ဥပမာ။ ။ ကၽြန္ေတာ္ လက္ရိွေရးေနတဲ့ ornagai ဆိုပါဆို႕။ API ကေတာ့ ေရးေနဆဲ  မျပီးေသးဘူး။ API register လုပ္ထားတဲ့သူက ornagai ရဲ႕ စာလံုးေတြကို အျခား  site ကေန retrieve လုပ္လုိ႕ရတယ္။ ကၽြန္ေတာ့္ site ကို လာစရာမလုိပဲနဲ႕ API  function ေခၚျပီး retrieve လုပ္လို႕ရမယ္။ အဲဒီအတြက္ အျခား site ေတြကလည္း  စာလံုးတစ္ခုကို mouse ေထာက္လိုက္တာနဲ႕ ornagai dictionary API ကို ယူျပီး  ornagai ကေန စာလံုးရွာျပီး return ျပန္လာမယ္။ ျပန္လာတဲ့စာလံုးကို ေရးထားတဲ့ app ကေန ရယူျပီး ျပန္ျပီးေပးတယ္။</p>
<p>Google Map API ကို အသံုးျပဳျပီးေတာ့ ေျမပံုေပၚမွာ ပံုေတြထည့္တာ point  ေတြထည့္တာ စတာေတြလုပ္လုိ႕ရတယ္။</p>
<p>http://map.etelegram.net.mm</p>
<p>ဆိုရင္ Google Map API သံုးျပီးေတာ့ ျမန္မာႏိုင္ငံက ျမိဳ႕ေတြကို point  ေတြနဲ႕ ခ်ထားတာ။ အဲလိုလုပ္ဖုိ႕ google map api key ကို အရင္ဆံုး ယူရတယ္။  API key တစ္ခုက register လုပ္ထားတဲ့ site ကပဲ ေခၚလို႕ရတယ္။  http://map.etelegram.net.mm/ က API key ကို http://map.mymap.com.mm ကေန  ေခၚလို႕မရဘူး။  API key တစ္ခု ရယူဖုိ႕က တစ္ခုနဲ႕ တစ္ခုမတူဘူး။ Google Map  ဆိုရင္ site ပဲလိုေပမယ့္ facebook ဆိုရင္ facebook user ျဖစ္ရမယ္။ သံုးမယ္  website လည္းလိုတယ္။</p>
<p>ဒါေပမယ့္ Twitter အသံုးျပဳတဲ့ REST လိုက်ေတာ့ ဘာမွ မလုိျပန္ဘူး။ oAuth  လုိတဲ့အပိုင္းရိွသလို မလိုတဲ့ အပိုင္းရိွတယ္။ user တစ္ေယာက္ရဲ႕ tweet  ေတြကို ထုတ္ၾကည့္ခ်င္ရင္ twitter ကေပးထားတဲ့ REST web service ကေန  ထုတ္လိုက္လို႕ရတယ္။ ဘယ္ site ကေန ျဖစ္ျဖစ္ ဘယ္ app ကေန ျဖစ္ျဖစ္  ထုတ္ယူလို႕ရပါတယ္။ ဒါေပမယ့္ ကိုယ့္ status တင္ေတာ့မယ္ဆိုရင္ oAuth  လိုအပ္ပါတယ္။ oAuth သေဘာတရားက AuthSub သေဘာတရားနဲ႕ ဆင္တူပါတယ္။ SOAP ဆိုတာက  ထပ္ရိွေသးတယ္။ SOAP ကေတာ့ အခုခ်ိန္မွာ ေခတ္သိပ္မရိွေတာ့ဘူး။ သံုးတဲ့လူလည္း  ေတာ္ေတာ္နည္းသြားျပီ။</p>
<p>API ေတြ web service ေတြေၾကာင့္ ဘာလုပ္လို႕ရလဲဆိုေတာ့ sync ေတြ  လုပ္လုိ႕ရလာတယ္။ ဥပမာ Google Calendar ဆိုပါဆုိ႕။ Google Calendar က online  ပဲရတယ္။ App တစ္ခုေရးျပီး Google Clanedar API ကို ယူသံုးလိုက္ျပီး data  ေတြ အကုန္ဆြဲခ်လိုက္လို႕ရတယ္။ ေနာက္ျပီးေတာ့ APP မွာ ထည့္ထားတာေတြကို  Google Calendar API ကေန တင္ေပးလိုက္လုိ႕ရတယ္။ Syn လုပ္ျပီးသြားရင္ Google  Calendar မွာရိွတာေတြနဲ႕ ကိုယ့္ app မွာရိွတာေတြနဲ႕ အတူတူျဖစ္သြားျပီ။</p>
<p>ဒီေလာက္ဆို၇င္ web service , web API ေတြအေၾကာင္း နားလည္ျပီလို႕ ထင္ပါတယ္။</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/knowledgebase/webservice-web-api/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ကၽြႏ္ုပ္ညံ့သည္</title>
		<link>http://www.saturngod.net/%e1%80%85%e1%80%ad%e1%80%90%e1%80%b9%e1%80%a1%e1%80%81%e1%80%ba%e1%80%a5%e1%80%b9%e1%80%b1%e1%80%95%e1%80%ab%e1%80%80%e1%80%b9%e1%80%99%e1%82%88%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8/%e1%80%80%e1%81%bd%e1%80%bc%e1%82%8f%e1%80%b9%e1%80%af%e1%80%95%e1%80%b9%e1%80%8a%e1%80%b6%e1%80%9e%e1%80%8a%e1%80%b9?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=%25e1%2580%2580%25e1%2581%25bd%25e1%2580%25bc%25e1%2582%258f%25e1%2580%25b9%25e1%2580%25af%25e1%2580%2595%25e1%2580%25b9%25e1%2580%258a%25e1%2580%25b6%25e1%2580%259e%25e1%2580%258a%25e1%2580%25b9</link>
		<comments>http://www.saturngod.net/%e1%80%85%e1%80%ad%e1%80%90%e1%80%b9%e1%80%a1%e1%80%81%e1%80%ba%e1%80%a5%e1%80%b9%e1%80%b1%e1%80%95%e1%80%ab%e1%80%80%e1%80%b9%e1%80%99%e1%82%88%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8/%e1%80%80%e1%81%bd%e1%80%bc%e1%82%8f%e1%80%b9%e1%80%af%e1%80%95%e1%80%b9%e1%80%8a%e1%80%b6%e1%80%9e%e1%80%8a%e1%80%b9#comments</comments>
		<pubDate>Tue, 19 Jan 2010 17:35:05 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[စိတ္အခ်ဥ္ေပါက္မႈမ်ား]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Gdata]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2228</guid>
		<description><![CDATA[ကြ်ႏု္ပ္ web service ဆိုသည္မွာကို ျမန္မာမႈမျပဳတတ္ျခင္းမွာ ကၽြႏု္ပ္ညံ့ျခင္းသာ ျဖစ္ေပေတာ့သည္။ Web service ႏွင့္ web api ဘာမွ မကြာေခ်။ သို႕ေသာ္ မတူေခ်။ ထိုအေၾကာင္းကိုလည္း ေသခ်ာေအာင္ မရွင္းျပတတ္ျခင္းမွာလည္း ထပ္ညံ့ျပန္ေလသည္။ oAuth ႏွင့္ AuthSub ကြာသည္။ ဘယ္လိုကြာေၾကာင္း စာႏွင့္ေရးျပီး မရွင္းတတ္ေသးေသာေၾကာင့္ ေသခ်ာမသိေၾကာင္း သိသာလွေပသည္။ ထို႕ေၾကာင့္ REST ကို သံုးဖူးေသာ္လည္း REST ဆိုသည္မွာ အဘယ္နည္းဟု ေမးေသာအခါ အဓိပၸာယ္ျပည့္စံုစြာ မေျဖၾကားႏိုင္ေသာေၾကာင့္ စာေမးပြဲဆိုလွ်င္ ကၽြႏ္ုပ္က်ေလျပီ။ Google ကေတာင္ ညႊန္းဆိုေသာ Zend Framework အား အခုခ်ိန္ထိ မသြင္းတတ္ေသးသည္မွာ ကၽြႏ္ုပ္၏ ေလ့လာမႈ အားနည္းျခင္းကို ေဖာ္ျပေနေလသည္။ REST server [...]]]></description>
			<content:encoded><![CDATA[<p>ကြ်ႏု္ပ္ web service ဆိုသည္မွာကို ျမန္မာမႈမျပဳတတ္ျခင္းမွာ ကၽြႏု္ပ္ညံ့ျခင္းသာ ျဖစ္ေပေတာ့သည္။ Web service ႏွင့္ web api ဘာမွ မကြာေခ်။ သို႕ေသာ္ မတူေခ်။ ထိုအေၾကာင္းကိုလည္း ေသခ်ာေအာင္ မရွင္းျပတတ္ျခင္းမွာလည္း ထပ္ညံ့ျပန္ေလသည္။ oAuth ႏွင့္ AuthSub ကြာသည္။ ဘယ္လိုကြာေၾကာင္း စာႏွင့္ေရးျပီး မရွင္းတတ္ေသးေသာေၾကာင့္ ေသခ်ာမသိေၾကာင္း သိသာလွေပသည္။ ထို႕ေၾကာင့္ REST ကို သံုးဖူးေသာ္လည္း REST ဆိုသည္မွာ အဘယ္နည္းဟု ေမးေသာအခါ အဓိပၸာယ္ျပည့္စံုစြာ မေျဖၾကားႏိုင္ေသာေၾကာင့္ စာေမးပြဲဆိုလွ်င္ ကၽြႏ္ုပ္က်ေလျပီ။</p>
<p>Google ကေတာင္ ညႊန္းဆိုေသာ Zend Framework အား အခုခ်ိန္ထိ မသြင္းတတ္ေသးသည္မွာ ကၽြႏ္ုပ္၏ ေလ့လာမႈ အားနည္းျခင္းကို ေဖာ္ျပေနေလသည္။ REST server အတြက္ code အသင့္ရိွေသာ္လည္း တစ္ခါမွမေရးဖူးသည့္အတြက္ မသိပဲ ေအာ္ေနေသာ္ လူညံ့တစ္ေယာက္ ပမာျဖစ္ေပေတာ့သည္။ ကၽြႏ္ုပ္၏ ညံျ့ပန္ေလသည္။ Zend Library ျဖင့္ Gdata ကို လြယ္ကူစြာ သံုးတတ္ေသာ္လည္း AuthSub မွ AuthSub ျဖစ္ေနေသာ ကၽြႏ္ုပ္စိတ္အား ကၽြႏ္ုပ္ေျပာင္းလဲ ႏိုင္စြမ္းမရိွေသာေၾကာင့္ ကၽြႏ္ုပ္၏ စိတ္အင္အားဟာလည္း ညံလွေပသည္။ AuthSub ႏွင့္ oAuth ၂ ခု အား ၄ ရက္တိုင္တိုင္ ေလ့လာခဲ့ေသာ္လည္း AuthSub ၏  GET ျဖင့္သာ data ယူႏုိင္ခဲ့ျခင္းမွာ ကၽြႏ္ုပ္၏ ညံ့ဖ်င္းမႈေၾကာင့္လို႕ ဆိုႏိုင္ေလသည္။ PHP Library မရိွေသာအခါ Python ကို background ထားကာ အလုပ္လုပ္ျခင္းမွာ ကၽြႏ္ုပ္၏ ညံ့ဖ်င္းမႈပင္။ API အတြက္ PHP Library ကိုယ္တိုင္ လြယ္လင့္တကူ ခ်က္ျခင္းေကာက္မေရးႏိုင္ျခင္းမွာ ကၽြႏ္ုပ္၏ ေလ့လာမႈ စြမ္းအား အေတာ့္ကို အားနည္းသည္ျခင္းကို ေဖာ္ျပရာ ေရာက္ေလ၏။ </p>
<p>ကၽြႏ္ုပ္မသိပဲႏွင့္ မ်ားမ်ားေျပာေနမိျပန္သည္။ ထို႕ေၾကာင့္ ကၽြႏ္ုပ္သည္ ကၽြႏ္ုပ္ထင္တာထက္ ပိုညံ့ေၾကာင္း ျပဆိုေနေလသည္။ ထို႕ေၾကာင့္ ကြ်ႏ္ုပ္ အခုအိပ္ျပီ။</p>
<p>စာၾကြင္း :: ပညာတစ္ခုအား ဟပ္ခ်ေလာင္းဆိုတာနဲ႕ ခ်က္ျခင္းမက်လာေၾကာင္းကို ကြ်ႏ္ုပ္မ်က္ဝါးထင္ထင္ ၾကံဳေတြ႕ခဲ့ရေလသည္။</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/%e1%80%85%e1%80%ad%e1%80%90%e1%80%b9%e1%80%a1%e1%80%81%e1%80%ba%e1%80%a5%e1%80%b9%e1%80%b1%e1%80%95%e1%80%ab%e1%80%80%e1%80%b9%e1%80%99%e1%82%88%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8/%e1%80%80%e1%81%bd%e1%80%bc%e1%82%8f%e1%80%b9%e1%80%af%e1%80%95%e1%80%b9%e1%80%8a%e1%80%b6%e1%80%9e%e1%80%8a%e1%80%b9/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Get Contact List XML from Google Contact with AuthSub</title>
		<link>http://www.saturngod.net/%e1%80%85%e1%80%ad%e1%80%90%e1%80%b9%e1%80%a1%e1%80%81%e1%80%ba%e1%80%a5%e1%80%b9%e1%80%b1%e1%80%95%e1%80%ab%e1%80%80%e1%80%b9%e1%80%99%e1%82%88%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8/get-contact-list-xml-from-google-contact-with-authsub?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=get-contact-list-xml-from-google-contact-with-authsub</link>
		<comments>http://www.saturngod.net/%e1%80%85%e1%80%ad%e1%80%90%e1%80%b9%e1%80%a1%e1%80%81%e1%80%ba%e1%80%a5%e1%80%b9%e1%80%b1%e1%80%95%e1%80%ab%e1%80%80%e1%80%b9%e1%80%99%e1%82%88%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8/get-contact-list-xml-from-google-contact-with-authsub#comments</comments>
		<pubDate>Tue, 19 Jan 2010 16:12:48 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[စိတ္အခ်ဥ္ေပါက္မႈမ်ား]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[AuthSub]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2226</guid>
		<description><![CDATA[oAuth နဲ႕ AuthSub ၾကားမွာ မူးသြားတာပဲ။ AuthSub နဲ႕ေတာ့ ရျပီ။ oAuth က ေနာက္ေတာ့မွ twitter နဲ႕စမ္းရမယ္။ google က အျပည့္အဝ support မေပးဘူး။ example ေတြက AuthSub ေတြနဲ႕ ၾကီးပဲဆိုေတာ့။ အခု code ေတာင္ မနည္းမနည္းပဲ။ ေနာက္ဆံုးေတာ့ http://www.alexc.me/using-the-google-analytics-api-getting-total-number-of-page-views/74/#step2 အဲဒီကေန ေတြ႕သြားလို႕ အဆင္ေျပသြားတာ။ token ရျပီးရင္ token ထပ္ယူရမွာကို မသိလုိက္တာ ဆုိးသြားတာ။ &#60;?php function make_api_call($url, $token) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $curlheader[0] = sprintf("Authorization: [...]]]></description>
			<content:encoded><![CDATA[<p>oAuth နဲ႕ AuthSub ၾကားမွာ မူးသြားတာပဲ။ AuthSub နဲ႕ေတာ့ ရျပီ။ oAuth က ေနာက္ေတာ့မွ twitter နဲ႕စမ္းရမယ္။ google က အျပည့္အဝ support မေပးဘူး။ example ေတြက AuthSub ေတြနဲ႕ ၾကီးပဲဆိုေတာ့။ အခု code ေတာင္ မနည္းမနည္းပဲ။ ေနာက္ဆံုးေတာ့ http://www.alexc.me/using-the-google-analytics-api-getting-total-number-of-page-views/74/#step2 အဲဒီကေန ေတြ႕သြားလို႕ အဆင္ေျပသြားတာ။ token ရျပီးရင္ token ထပ္ယူရမွာကို မသိလုိက္တာ ဆုိးသြားတာ။</p>
<pre name="code" class="php">
&lt;?php

function make_api_call($url, $token)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$curlheader[0] = sprintf("Authorization: AuthSub token=\"%s\"/n", $token);
curl_setopt($ch, CURLOPT_HTTPHEADER, $curlheader);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}

function get_session_token($onetimetoken) {
$output = make_api_call("https://www.google.com/accounts/AuthSubSessionToken", $onetimetoken);

if (preg_match("/Token=(.*)/", $output, $matches))
{
$sessiontoken = $matches[1];
} else {
echo "Error authenticating with Google.";
exit;
}
return $sessiontoken;
}

if(isset($_GET['token']))
{
$sessiontoken=get_session_token($_GET['token']);
$accountxml = make_api_call("http://www.google.com/m8/feeds/contacts/yourmail@gmail.com/full", $sessiontoken);
print_r($accountxml);

}
else
{
$next=urlencode("http://www.mysteryzillion.org/gdata/index.php");
$scope=urlencode("http://www.google.com/m8/feeds/contacts/yourmail@gmail.com/full");
?&gt;
&lt;a href="https://www.google.com/accounts/AuthSubRequest?next=&lt;?= $next ?&gt;&amp;scope=&lt;?= $scope ?&gt;&amp;secure=0&amp;session=1"&gt;Click here to authenticate through Google.&lt;/a&gt;

&lt;?
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/%e1%80%85%e1%80%ad%e1%80%90%e1%80%b9%e1%80%a1%e1%80%81%e1%80%ba%e1%80%a5%e1%80%b9%e1%80%b1%e1%80%95%e1%80%ab%e1%80%80%e1%80%b9%e1%80%99%e1%82%88%e1%80%99%e1%80%ba%e1%80%ac%e1%80%b8/get-contact-list-xml-from-google-contact-with-authsub/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress , Drupal , Google Apps API</title>
		<link>http://www.saturngod.net/nothing/wordpress-drupal-google-apps-api?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-drupal-google-apps-api</link>
		<comments>http://www.saturngod.net/nothing/wordpress-drupal-google-apps-api#comments</comments>
		<pubDate>Sat, 16 Jan 2010 04:46:50 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[nothing]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2202</guid>
		<description><![CDATA[အခုတေလာ WordPress , Drupal , Google Apps API ေတြနဲ႕ ပဲ ရႈပ္ေနတာပဲ။ WordPress wordpress ကေတာ့ ျပႆနာမရိွဘူး။ ဒါေပမယ့္ လုပ္လုိက္ေတာ့ ပိုသေဘာက်ျပီး ပိုလုပ္တတ္သြားတယ္။ wordpress customization တစ္ခုလံုးက template ကစားသြားတာပဲ။လုိအပ္တဲ့ plugins ေတြ ထပ္ေရးေနတာထက္ template ေလး တစ္ခုေဆာက္တာက ပိုျပီး ထိေရာက္ျမန္ဆန္တယ္။ template ေလးကစားသြားလုိက္ရံုနဲ႕ ေတာ္ေတာ္ေလးကို ထိထိေရာက္ေရာက္ ျဖစ္သြားတာပဲ။ wordpress မွာလည္း သူ႕ function ေတြ ေခၚယူျပီးေတာ့ စိတ္ၾကိဳက္ျပဳျပင္လုိ႕ရတာေတာ့ ေတာ္ေတာ္မိုက္တယ္။ function ေတြလည္း ျပည့္ျပည့္စံုစံုေပးထားေတာ့ အဆင္ေျပတယ္။ ဟိုတစ္ခါက MZ မွာ emo ေမးထားဘူးတယ္။ wordpress [...]]]></description>
			<content:encoded><![CDATA[<p>အခုတေလာ WordPress , Drupal , Google Apps API ေတြနဲ႕ ပဲ ရႈပ္ေနတာပဲ။ </p>
<p><strong>WordPress</strong></p>
<p>wordpress ကေတာ့ ျပႆနာမရိွဘူး။ ဒါေပမယ့္ လုပ္လုိက္ေတာ့ ပိုသေဘာက်ျပီး ပိုလုပ္တတ္သြားတယ္။ wordpress customization တစ္ခုလံုးက template ကစားသြားတာပဲ။လုိအပ္တဲ့ plugins ေတြ ထပ္ေရးေနတာထက္ template ေလး တစ္ခုေဆာက္တာက ပိုျပီး ထိေရာက္ျမန္ဆန္တယ္။ template ေလးကစားသြားလုိက္ရံုနဲ႕ ေတာ္ေတာ္ေလးကို ထိထိေရာက္ေရာက္ ျဖစ္သြားတာပဲ။ wordpress မွာလည္း သူ႕ function ေတြ ေခၚယူျပီးေတာ့ စိတ္ၾကိဳက္ျပဳျပင္လုိ႕ရတာေတာ့ ေတာ္ေတာ္မိုက္တယ္။ function ေတြလည္း ျပည့္ျပည့္စံုစံုေပးထားေတာ့ အဆင္ေျပတယ္။ ဟိုတစ္ခါက MZ မွာ emo ေမးထားဘူးတယ္။ wordpress က page ေနာက္တစ္ခုအတြက္ template ပံုစံေျပာင္းလုိ႕မရဘူးတဲ့။ အဲဒါေတာ့ ဟုတ္ပါတယ္။ ဟုတ္လည္း မဟုတ္ျပန္ဘူး။ ကိုယ့္ဘာသာကိုယ္ template page တစ္ခု ထပ္ျဖည့္လိုက္ျပီး လုိအပ္တဲ့ ပံုစံေျပာင္းလို႕ရတယ္။ ကိုယ္လုိခ်င္တဲ့ file ေတြကိုလည္း include ေတြနဲ႕ ထပ္ျဖည့္လိုက္ျပီး လိုသလို ေျပာင္းလို႕ရပါတယ္။ ေရးရတာလည္း မခက္ပါဘူး။</p>
<pre name="code" class="c-sharp">
&lt;?php
/*
Template Name: Snarfer
*/
?&gt;
</pre>
<p>ဆုိရင္ template တစ္ခုျဖစ္သြားျပီး ကိုယ္လိုသလို page မွာ ေခၚျပီး ေျပာင္းလဲေရးလို႕ရပါတယ္။ codex မွာ အျပည့္အစံု ရိွပါတယ္။ WordPress ကိုေတာ့ အရင္ ကတည္းက crazy ဆိုေတာ့ wordpress ပိုင္းလုပ္ရတာ သိပ္ခက္ခဲလွတယ္မဟုတ္ဘူး။ အားရင္ေတာ့ plugins ေလးတစ္ခု ထပ္စမ္းေရးၾကည့္အံုးမယ္။ admin panel setting ပါတဲ့ plugins မေရးဘူးေသးဘူးဆိုေတာ့ အဲဒါေလး စမ္းၾကည့္မယ္။ ဘယ္လိုေရးရမလဲဆိုတာ စာေတြ႕ပဲရိွတယ္။ အျခား admin panel setting မပါတာေတြေတာ့ ေရးဘူးတယ္။</p>
<p><strong>Drupal</strong><br />
အရင္ကတည္းက မၾကိဳက္။ အခုေတာ့ ပိုဆိုးေပါ့။ Drupal အစစ္ၾကီးဆိုလည္းထားလုိက္။ အခုက သူက ကၽြန္ေတာ္တို႕wordpress မွာ လုပ္သလို template ကစားထားတာကို ျပန္ျပင္ေနရတာ။ လုပ္သြားတဲ့သူက Drupal ကို ေတာ္ေတာ္ေလး ကၽြမ္းက်င္တယ္။ Admin Panel တစ္ခုလံုးလည္း ေျပာင္းခ်သြားတယ္။ ကိုယ္ပိုင္ module ေတြလည္း ထပ္ျဖည့္သြားေတာ့ ဘယ္ဟာကို ဘယ္မွာ ျပင္ရမွန္းမသိပဲ ျဖစ္ကုန္ေရာ။ online မွာလည္း ရွာမရနဲ႕။ ဒီလိုပဲ စမ္းတဝါးဝါးနဲ႕ လုပ္ရင္း ေတာ္ေတာ္အဆင္ေျပလာတာပဲ။ Drupal လည္း ေတာ္ေတာ္ေကာင္းတယ္။ သူ႕ကို ကၽြမ္းက်င္ရင္ ေတာ္ေတာ္ေလးကို လုပ္လို႕ရတာပဲ။ စိတ္ၾကိဳက္ ဖန္တီးလုိ႕ရတယ္။ သူလည္း wordpress လိုမ်ဳိးပဲ။ သူက wordpress ထက္သာတဲ့ အပိုင္းေတြ အမ်ားၾကီးပဲ။ သူက ေကာင္းေပမယ့္ ရႈပ္လြန္းတယ္။ function ေတြ မ်ားေတာ့ GUI လည္း ရႈပ္ကုန္ေကာ။ သူ႕ရဲ႕ သေဘာတရားနားမလည္လို႕လား မသိဘူး။ သူက နည္းနည္းရႈပ္ေထြးတယ္။ CMS သေဘာတရားကို အျပည့္အဝသံုးထားျပီး block ေတြဘာေတြနဲ႕ စနစ္တက်ေတာ့ ရိွတယ္။ wordpress က CMS လံုးလံုးကို မဟုတ္ေပမယ့္ လုပ္ၾကံျပီး အျမင္မွာ CMS ထင္ေအာင္ ေတာ့ ဖန္တီးႏိုင္တယ္ေလ။</p>
<p><strong>Google Apps API</strong><br />
ေခါင္းအစားဆံုး အပိုင္းပဲ။ Zend အတြက္ပဲ support ရိွတယ္။ Zend framework မသံုးပဲ Zend Library အျပည့္အဝ သံုးလိုက္ရင္ေတာ့ ရတယ္။ ဒါေပမယ့္ Domain share contact က .NET အတြက္ရိွတယ္။ python အတြက္ရိွတယ္။ PHP Native အတြက္ မရိွျပန္ဘူး။ Protocol သံုးရင္ေတာ့ အေကာင္းဆံုးဆိုျပီး သံုးဖုိ႕လုပ္ျပန္ေကာ။ oAuth , AuthSub ေတြကေတာ့ PHP Native နဲ႕ အဆင္မေျပျပန္ဘူး။ oAuth က သီးသန္႕ ထပ္သြင္းရအံုးမယ္။ oAuth သြင္းဖို႕အတြက္ကလည္း အထက္ကို report လုပ္ရအံုးမယ္။ ဒါေတာင္ စမ္းဖုိ႕။ အခ်ိန္ကလည္း သိပ္မရေတာ့ ေနာက္ဆံုး python ကို background ထားျပီး PHP နဲ႕ front end လုပ္ပလိုက္တယ္။ Domain share contact ကလည္း 24 hours ၾကာတယ္။ contact ထဲကို ဝင္ဖုိ႕ အဲေလာက္ေတာင္ ေစာင့္ရတယ္။ လူေတြကလည္း သိတဲ့အတုိင္း အခုထည့္ အခုျမင္လုိခ်င္ၾကတာ။ ဒါေပမယ့္ domain share contact က မရေတာ့လည္း ဘယ္တတ္ႏိုင္မလဲ။ export ကလည္း တစ္ခါတစ္ေလ မထြက္။ </p>
<p>Google Map API လုပ္ထားတာေတာ္ေတာ္ေကာင္းသေလာက္ google apps api လုပ္ထားတာကို သိပ္သေဘာမက်ဘူး။ လူအသံုးမ်ားတာကို support မလုပ္ပဲ အဆင့္ေတြ အမ်ားၾကီးနဲ႕ ရႈပ္ေနတယ္လုိ႕ ထင္တာပဲ။ facebook connect လိုမ်ဳိး api ဆိုလည္း ေတာ္ေတာ္ေလးေကာင္းတယ္။ ရိုးတယ္။ ရွင္းတယ္။ လြယ္တယ္။ Google Apps Engine ကေတာ့ java နဲ႕ python ပဲ။ Google Apps အဖြဲ႕တစ္ခုလံုးက အဓိက python ပဲ သံုးတယ္ထင္တယ္။ PHP ပိုင္းကို သီးသန္႕ library မထုတ္ေပးဘူး။ Zend နဲ႕ တြဲထုတ္ေပးေတာ့ ဆင္ဖိုးထက္ ခြ်န္းဖိုးက ပိုဆိုးျဖစ္ေနတာေပါ့။ လုပ္ခ်င္တာက ေသးေသးေလး။ အဲဒီအတြက္ Zend Framework ၾကီးပါ upload တင္ရတာ အလကား အလုပ္ရႈပ္တာပဲ။</p>
<p>ဘာပဲေျပာေျပာ oAuth, AuthSub ေတြေတာ့ ဖတ္ျဖစ္လုိက္တယ္။ လက္ေတြ႕ေတာ့ အခုထက္ထိ စမ္းတာ အဆင္မေျပေသးဘူး။</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/nothing/wordpress-drupal-google-apps-api/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Gtalk Bot လုပ္မလား</title>
		<link>http://www.saturngod.net/knowledgebase/php-gtalk-bot-%e1%80%9c%e1%80%af%e1%80%95%e1%80%b9%e1%80%99%e1%80%9c%e1%80%ac%e1%80%b8?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php-gtalk-bot-%25e1%2580%259c%25e1%2580%25af%25e1%2580%2595%25e1%2580%25b9%25e1%2580%2599%25e1%2580%259c%25e1%2580%25ac%25e1%2580%25b8</link>
		<comments>http://www.saturngod.net/knowledgebase/php-gtalk-bot-%e1%80%9c%e1%80%af%e1%80%95%e1%80%b9%e1%80%99%e1%80%9c%e1%80%ac%e1%80%b8#comments</comments>
		<pubDate>Fri, 25 Dec 2009 13:30:29 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[Knowledgebase]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Bot]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Gtalk]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=2089</guid>
		<description><![CDATA[လြယ္ခ်က္ကေတာ့ ကမ္းကုန္ပဲ။ http://www.imified.com/ ကို register လုပ္။ bot create လုပ္။ ျပီးရင္ PHP code တစ္ခုေရး။ &#60;?php echo $_REQUEST['msg']; ?&#62; အဲဒါဆိုရင္ user ကရိုက္လုိက္တဲ့ဟာကို ရမယ္။ အဲဒါကို တေနရာမွာ host ထိုင္။ bot ရဲ႕ address ကို အဲဒါေပးလိုက္။ ျပီးရင္ gmail username နဲ႕ password ထည့္။ active လုပ္။ ျပီးျပီ။ စိတ္ပ်က္ဖို႕ေကာင္းေလာက္ေအာင္ လြယ္တာ။ External Link : http://www.labnol.org/internet/tutorial-create-bot-for-gtalk-yahoo-messenger/4354/]]></description>
			<content:encoded><![CDATA[<p>လြယ္ခ်က္ကေတာ့ ကမ္းကုန္ပဲ။ http://www.imified.com/ ကို register လုပ္။ bot create လုပ္။ ျပီးရင္ PHP code တစ္ခုေရး။ </p>
<pre name="code" class="php">
&lt;?php
echo $_REQUEST['msg'];
?&gt;
</pre>
<p>အဲဒါဆိုရင္ user ကရိုက္လုိက္တဲ့ဟာကို ရမယ္။ အဲဒါကို တေနရာမွာ host ထိုင္။ bot ရဲ႕ address ကို အဲဒါေပးလိုက္။ ျပီးရင္ gmail username နဲ႕ password ထည့္။ active လုပ္။ ျပီးျပီ။ စိတ္ပ်က္ဖို႕ေကာင္းေလာက္ေအာင္ လြယ္တာ။</p>
<p>External Link : </p>
<p>http://www.labnol.org/internet/tutorial-create-bot-for-gtalk-yahoo-messenger/4354/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/knowledgebase/php-gtalk-bot-%e1%80%9c%e1%80%af%e1%80%95%e1%80%b9%e1%80%99%e1%80%9c%e1%80%ac%e1%80%b8/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Fixed For IE not work onclick</title>
		<link>http://www.saturngod.net/nothing/fixed-for-ie-not-work-onclick?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=fixed-for-ie-not-work-onclick</link>
		<comments>http://www.saturngod.net/nothing/fixed-for-ie-not-work-onclick#comments</comments>
		<pubDate>Tue, 12 May 2009 04:04:23 +0000</pubDate>
		<dc:creator>saturngod</dc:creator>
				<category><![CDATA[Knowledgebase]]></category>
		<category><![CDATA[nothing]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://www.saturngod.net/?p=1257</guid>
		<description><![CDATA[အခု Project တစ္ခုကို ၃ ရက္ေလာက္နဲ့ အျပီးေရးလိုက္ရတယ္။ Google Map API ေလး သံုးျပီး ေရးရတာ။ google api ကေတာ့ အံဩဖို႔ေကာင္းေလာက္ေအာင္ documentation ျပည့္စံုတာပဲ။ အကုန္လံုးကို ျပည့္ျပည့္စံုစံုနဲ့လုပ္ထားေပးတယ္။ ကြ်န္ေတာ္က အဲလိုမ်ိဳး Open Technology ေလးလုပ္ခ်င္တယ္။ ကြ်န္ေတာ္ လုပ္ထားတဲ့ code ေတြအေၾကာင္းကို ျပည့္ျပည့္စံုစံုေလး ရွင္းျပခ်င္တယ္။ ခက္တာက အခ်ိန္မရိွဘူး ျဖစ္ေနတယ္ ။ အဲမွာ ဘာတစ္ခု သြားေတြကလည္းဆိုေတာ့ IE မွာ onclick မရဘူးဗ်။ T TEST TEST အဲမွာ option မွာ onclick ကို အလုပ္မလုပ္တာကို ေတြ႕ရတယ္။ ေတာ္ေတာ္ေလး ေခါင္းစားသြားတယ္။ ဒါနဲ့ [...]]]></description>
			<content:encoded><![CDATA[<p>အခု Project တစ္ခုကို ၃ ရက္ေလာက္နဲ့ အျပီးေရးလိုက္ရတယ္။ Google Map API ေလး သံုးျပီး ေရးရတာ။ google api ကေတာ့ အံဩဖို႔ေကာင္းေလာက္ေအာင္ documentation ျပည့္စံုတာပဲ။ အကုန္လံုးကို ျပည့္ျပည့္စံုစံုနဲ့လုပ္ထားေပးတယ္။ ကြ်န္ေတာ္က အဲလိုမ်ိဳး Open Technology ေလးလုပ္ခ်င္တယ္။ ကြ်န္ေတာ္ လုပ္ထားတဲ့ code ေတြအေၾကာင္းကို ျပည့္ျပည့္စံုစံုေလး ရွင္းျပခ်င္တယ္။ ခက္တာက အခ်ိန္မရိွဘူး ျဖစ္ေနတယ္ <img src='http://www.saturngod.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ။ အဲမွာ ဘာတစ္ခု သြားေတြကလည္းဆိုေတာ့ IE မွာ onclick မရဘူးဗ်။<br />
<span id="more-1257"></span></p>
<pre name="code" class="xhtml">
<html>
<head>
</head>
<body>
<a href="#" onclick="alert('test')">T</a>
<select>
<option name="test" value="1" onclick="alert('test2')">TEST</option>
<option name="test" value="2" onclick="alert('test2')">TEST</option>
</select>

</body>
</html>
</pre>
<p>အဲမွာ option မွာ onclick ကို အလုပ္မလုပ္တာကို ေတြ႕ရတယ္။ ေတာ္ေတာ္ေလး ေခါင္းစားသြားတယ္။ ဒါနဲ့ အရင္က သင္ဘူးတဲ့ စာေတြကို မနည္းျပန္စဥ္းစားရတယ္။ firefox မွာေတာ့ အဆင္ေျပတယ္။ ေနာက္ေတာ့ select မွာ onchange ေလးကို စမ္းၾကည့္မယ္ဆိုျပီး လုပ္လိုက္တာ အဆင္ေျပသြားတယ္။ အဲမွာ တစ္ခုထပ္ စဥ္းစားရျပန္တယ္။ onclick မွာ fucntion ကို parameter ေတြနဲ့ ပို႔လို႔ရမယ္။ ဒါေပမယ္႔ onchange ဆိုရင္ ခက္ျပီ။ ဒီေတာ့ value ကို , နဲ့ ကိုယ္ထည့္ခ်င္တဲ့ parameter ကို ထည့္ေရးလိုက္ျပီး ျပီးမွ split ျပန္လုပ္လိုက္တယ္။ ေတာ္ေတာ္ေလးကို အဆင္ေျပသြားတယ္။</p>
<pre name="code" class="xhtml">

<html>
<head>
</head>
<body>
<script>
function testfun(a)
{
i=a.split(",");
alert(i[1]);
}
</script>
<a href="#" onclick="alert('test')">T</a>
<select onchange="testfun(this.value)">
<option name="test" value="1" >TEST</option>
<option name="test" value="2,3" >TEST</option>
</select>

</body>
</html>
</pre>
<p>အဲမွာဆို onchange ကေန function ေခၚျပီး this.value ကို ျပန္ပို႔လိုက္တယ္ေလ။ parameter ေတြကို split ျပန္ခဲြျပီး သီးသန္႔ function နဲ့ ျပန္ပို႔ရံုပဲ။ ၂ ဆင့္ျဖစ္သြားေပမယ္႔ IE ေကာ FF ပါ အဆင္ေျပသြားတာေပါ႔။</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saturngod.net/nothing/fixed-for-ie-not-work-onclick/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
