0

HTML5 audio

Posted May 15th, 2010 in Knowledgebase by saturngod

html5 video ကို လုပ္ၾကည့္ရင္း audio ကို စမ္းခ်င္တာနဲ႕ စမ္းျဖစ္သြားတယ္။ ေနာက္ျပီး playlist လုပ္ခ်င္တာနဲ႕ jqueyr ui နဲ႕ တြဲျပီး code ပါေရးျဖစ္လိုက္တယ္။

အခုက တစ္ပုဒ္ျပီး တစ္ပုဒ္ေတာ့ မေျပာင္းေသးဘူး။ နည္းနည္းထပ္ေရးရအံုးမယ္။

Demo

http://www.saturngod.net/project/html5audio/

Soure

http://github.com/saturngod/html5audio-jquery_ui

0

HTML5 Video

Posted May 15th, 2010 in Knowledgebase by saturngod

HTML5 video ကိုေတာ့ မေန႕တုန္းက video.saturngod.net အတြက္ စမ္းျဖစ္လိုက္တယ္။ ပံုမွန္ သမာရိုးက်ကေတာ့

<video width="100%" height="422" controls="controls" preload="none" tabindex="0" style="background-color:#111111" poster="http://video.saturngod.net/video/2019MS_Health.jpg"" >
<source type="video/mp4" src="http://video.saturngod.net/video/2019MS_Health.mp4"></source>
<source type="video/ogg" src="http://video.saturngod.net/video/2019MS_Health.ogg"></source>
</video>

အဲဒါေလးပဲ။ mp4 က safari နဲ႕ chrome တို႕အတြက္ေပါ့။ webkit က mp4 မွ အလုပ္လုပ္တယ္။ ogg နဲ႕ogv ကေတာ့ firefox , opera တုိ႕အတြက္ေပါ့။ တကယ္လို႕ video.saturngod.net မွာလုိ ျဖစ္ခ်င္ရင္ေတာ့

<script type="text/javascript"  src="http://html5.kaltura.org/js"  > </script>

ဆိုတာေလး ထည့္ေပးလုိက္ရံုပဲ။ ေနာက္ျပီး video tag မွာ class="kskin" လို႕ ထည့္ေပးလိုက္ရင္ရပါတယ္။ မူရင္းကေတာ့ jquery UI skin ကို သံုးထားတာပါ။ အဲဒီ skin ထက္ kskin ကို ပိုသေဘာက်တယ္။ button နည္းျပီး ရွင္းလုိ႕ပါ။

HTML5 က ogg က flv ထက္စာရင္ size ေသးျပီး loading က ပိုျမန္တဲ့အတြက္ ကၽြန္ေတာ္ကေတာ့ flv ထက္စာရင္ html5  video ကို သေဘာက်တာ အမွန္ပဲ။ HTML5 video က android 2.0 မွာေတာ့ မရေသးဘူး။ iPhone , iPodTouch ေတြမွာေတာ့ ေကာင္းေကာင္း အလုပ္လုပ္ပါတယ္။

0

Ubuntu 10.04 Sound Problem

Posted May 12th, 2010 in Knowledgebase by saturngod

တကယ္လုိ႕ Ubuntu 10.04 မွာ sound မရရင္

terminal ကို သြား။ ျပီးလွ်င္

$sudo rm -rf .pulse

လို႕ရိုက္ျပီး restart ခ်လုိက္ပါ။

အဲဒါေတာင္ မရေသးရင္

$sudo apt-get install --reinstall plusaudio

လို႕ရိုက္ျပီး restart ျပန္ခ်ၾကည့္ပါ။

sound preference က waiting for sound system to repond ျဖစ္ေနရင္ေတာ့ sound preference setting က လက္ရိွ သံုးထားတဲ့ sound card အတြက္ preference မရိွလို႕ပါ။ အျခား GUI preference ကို သြင္းေပးရပါတယ္။

$sudo apt-get install gnome-alsamixer

ကို သြင္းေပးျပီး Applications > Sound & Video > Gnome ALSA Mixer ကေန ခ်ိန္ညိွႏိုင္ပါတယ္။

0

OpenSSH

Posted May 11th, 2010 in Knowledgebase by saturngod

OpenSSH က Ubuntu  Server မွာ သြင္းလုိက္တာနဲ႕ ပါျပီးသားပါ။ Ubuntu Desktop မွာ မပါေသးရင္

$sudo apt-get install ssh-client ssh-server

ဆိုျပီး သြင္းႏိုင္ပါတယ္။

Open SSH က SFTP နဲ႕ SSH ကို အသံုးျပဳဖို႕ပါ။ SFTP နဲ႕ SSH ရဲ႕ username နဲ႕ password ကေတာ့ Ubuntu account username နဲ႕ password နဲ႕ အတူတူပါပဲ။ SFTP မွာ permission မရလုိ႕ဝင္မရရင္

/etc/ssh/sshd_config  မွာ

RSAAuthentication no
PasswordAuthentication yes

အဲဒီ ၂ ခုျပင္ရသည္။ SSH ကို windows မွာ putty သံုးလို႕ရပါတယ္။ တနည္းေျပာရင္ Ubuntu Server တင္ထားျပီးေတာ့ Ubuntu server ကို မသြားပဲ putty ကေန Ubuntu Server ကို လွမ္းျပီး command ေတြကို ပို႕လုိ႕ရတယ္။ file တင္ခ်င္ရင္ download ဆြဲခ်င္ရင္ SFTP ကို filezilla နဲ႕ ခ်ိတ္ျပီးေတာ့ တင္လို႕ရတယ္။ download ဆြဲလို႕ရတယ္။ server ဆီ သီးသန္႕သြားေနစရာမလိုေတာ့ဘူး။ အဲဒါက လက္ရိွ VPS server ေတြ decided server ေတြမွာ အလုပ္လုပ္ေနၾကတဲ့ ပံုပါပဲ။ SFTP နဲ႕ SSH ၂ ခု ရိွရင္ server တစ္ခုလံုး ထိန္းလို႕ရပါျပီ။

6

Enough

Posted May 7th, 2010 in Knowledgebase by saturngod

ကၽြန္ေတာ္တို႕ေတြဟာ ေတာ္ေတာ္ေလးကို ေလာဘၾကီးတယ္ဗ်။ ေလာဘၾကီးတယ္ဆိုတာက ပညာ ေလာဘၾကီးက်တာ။ ဒါေပမယ့္ ကိုယ့္ဘာသာကိုယ္ ေလာဘၾကီးမွန္းလည္း ကိုယ္တိုင္လည္း မသိက်တာမ်ားတယ္။ ကၽြန္ေတာ္ ရန္ကုန္မွာတုန္းကဆို စာေတာ္ေတာ္မ်ားမ်ား ဖတ္ျဖစ္တယ္။ သတင္းေတြလည္း အတတ္ႏိုင္ဆံုးဖတ္တယ္။ ROR ဆိုလည္း လုပ္လုိက္တာပဲ။ python လည္း စမ္း။ php လည္းခ်။ java , c# လည္း လုပ္တာပဲ။ စာအုပ္ေတြလည္း အကုန္ဖတ္ပဲ။ ဒီေရာက္ေတာ့ အဲလို မလုပ္ႏိုင္ေတာ့ဘူး။ ရံုးဆင္းခ်ိန္ ၈ နာရီေလာက္ အိမ္ျပန္ေရာက္ေတာ့ ပင္ပန္းေနျပီ။ news ေတြလည္း weekend မွ ေပါင္းဖတ္ပဲ။ ညဘက္ေရာက္ေတာ့ ကိုယ္စိတ္ဝင္စားတာေလးေတြ လုပ္ေပါ့။ ( Anime ဇာတ္လမ္းတြဲေတြ ၾကည့္တာမ်ားတယ္ ) ရံုးက ျပန္ေရာက္လာရင္ ေခါင္းက ဘာမွ စဥ္းစားလို႕မရေတာ့ဘူး။ ေခါင္းေအးေအးေလးနဲ႕ ကိုယ္လက္လႈပ္ရွားစရာမလိုပဲ ျငိမ့္ျငိမ့္ေလးျဖစ္တဲ့ သီခ်င္းနားေထာင္တာတုိ႕ ရုပ္ရွင္ၾကည့္တာတုိ႕ေလာက္ပဲ လုပ္ျဖစ္ေတာ့တယ္။
Continue Reading »

4

subscriber count , follower count with PHP

Posted May 7th, 2010 in Knowledgebase by saturngod

subscriber count ကို feed burner ကေန ယူခ်င္တာနဲ႕ API ေလး စမ္းျဖစ္သြားတယ္။ feed burner api မလုပ္ခင္ api ကို allow လုပ္ေပးဖို႕လိုတယ္။

  1. login your feedburner and go to your feed.
  2. Go to Publicize tag
  3. Go to Awareness Api and active it.

Continue Reading »

3

Why need to develop own php framework ?

Posted May 4th, 2010 in Knowledgebase by saturngod

တကယ္လို႕ PHP developer တစ္ေယာက္က PHP ကို ကြ်မ္းက်င္ေနျပီလို႕ ယူဆရင္ေတာ့ php framework တစ္ခုေလာက္ ေဆာက္ၾကည့္သင့္တယ္။ phpframework ေတြက နည္းတာ မဟုတ္ဘူး ဘာလို႕ framework ေရးမွာလည္း။ သူမ်ား ေရးထားတာပဲ ယူသံုးမွာေပါ့လို႕ ဆိုေကာင္းဆိုမယ္။ ဟုတ္ပါတယ္။ http://www.phpframeworks.com/ မွာ ျပထားတဲ့ framework ေတြေတာင္ မနည္းပါဘူး။ ဒါဆိုဘာလို႕ ကိုယ္ပိုင္ PHP framework ေရးဖို႕လိုတာလဲ။ skill and knowledge အတြက္ပါ။

Continue Reading »

3

How to make your own dictionary ?

Posted May 3rd, 2010 in Knowledgebase by saturngod

Dictionary တစ္ခုလုပ္ဖို႕ အတြက္ အေရးၾကီးဆံုးက data ပါပဲ။ Dictionary လုပ္ဖို႕ software ေတြက

Babylon Glossary Builder

Bayblon Dictionary အတြက္ add-on dictionary တစ္ခုတည္ေဆာက္ခ်င္ရင္ေတာ့ babylon glossary builder  ကို အသံုးျပဳႏိုင္ပါတယ္။ အသံုးျပဳဖုိ႕အတြက္ data ေတြကို  excel file နဲ႕ ရိုက္သြင္းရပါတယ္။ အသံုးျပဳပံု အဆင့္ဆင့္ကိုေတာ့

http://www.babylon.com/support/step-by-step/quick-guide/glossary-builder.html

မွာ ရွင္းျပထားပါတယ္။ Excel မွာ data ေတြ သိမ္းျပီး babylone dictionary ကို လြယ္ကူစြာ ျပဳလုပ္ႏိုင္ပါတယ္။

More...

0

Glob

Posted April 30th, 2010 in Knowledgebase by saturngod

အရင္က image ေတြကို folder တစ္ခုေအာက္မွာထားျပီး အကုန္လံုး ဘယ္လို ဆြဲေခၚထုတ္ရမွန္းမသိျဖစ္ဖူးတယ္။ ေနာက္ျပီးေတာ့ library folder ထဲက php ေတြကို ဆြဲထုတ္တာလည္း မသိဘူးျဖစ္ေနတယ္။ အခုမွ သိတယ္။ glob ဆိုတဲ့ function ကို ေခၚလိုက္ရင္ ေတာ္ေတာ္လြယ္တာပဲ။

<?php
foreach (glob("*.txt") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
?>

အရင္က မသိခဲ့လိုက္လို႕ ၂ ေၾကာင္းေလာက္နဲ႕ ျပီးမွဟာကို ရွည္ရွည္ ေဝးေဝးေတြ ေရးလိုက္ရေသးတယ္။ Image Gallery လိုမ်ဳိး site ေတြ , php file ေတြကို include နဲ႕ လွမ္းေခၚရတာမ်ားမယ့္ဟာေတြကို glob သံုးလုိက္ရင္ ေတာ္ေတာ္အဆင္ေျပတာပဲ။ ေနာက္ဆိုရင္ေတာ့ ေရးရတာ နည္းနည္းသက္သာျပီေပါ့။

PHP က function ေတြ အမ်ားၾကီးရိွေတာ့ အကုန္လံုးကို သိရင္ေတာင္ ဘယ္မွာ ဘယ္လိုသံုးရမလဲဆိုတာသိခ်င္မွ သိမယ္။ ဥပမာ။။ array_shift ဆိုတဲ့ function ကို ဘယ္မွာ သံုးရမွန္းမသိေပမယ့္ address segment ျဖတ္တဲ့ ေနရာမွာေတာ့ ေတာ္ေတာ္အသံုးဝင္တယ္။

0

Time to go android development

Posted April 25th, 2010 in Knowledgebase by saturngod

Android ဆိုတာကိုေတာ့ ေထြေထြထူးထူးေျပာစရာမရိွပါဘူး။ Android စထြက္ကာစက iPhone ကို ယွဥ္ႏိုင္ေလာက္တဲ့ အရည္အေသြးေတြ မရိွေပမယ့္ အခုအခ်ိန္ Android 2.1 မွာ ေတာ္ေတာ္ေလးကို ျပီးျပည့္စံုလာသလို SDK ကလည္း ေတာ္ေတာ္ေလးကို ေကာင္းမြန္လာပါတယ္။ ကၽြန္ေတာ္တုိ႕ ျမန္မာႏိုင္ငံမွာ Mobile Development ဆိုတာက တျခား Sotware Development ထက္စာရင္ ပိုျပီး ေအာင္ျမင္တဲ့ ေစ်းကြက္လုိ႕ ဆိုရမယ္။ လူတိုင္း Computer မသံုးတတ္ ၊ မသံုးႏိုင္ေပမယ့္ လူတိုင္းနီးပါး ဖုန္းဝယ္သံုးၾကတယ္။ ေနာက္ျပီး Mobile Software အတြက္ ပိုက္ဆံကို မႏွေျမာက်တာလည္း ေတြ႕ရပါတယ္။ Software အေခြေတြဟာ ခိုးကူးေခြေတြေၾကာင့္ တစ္ေခြ ၁၀၀၀ နဲ႕ ေပါေပါ ရေပမယ့္ လူတိုင္း Mobile Application ေတြကုိ မသြင္းတတ္တာက တစ္ေၾကာင္း ေနာက္ျပီး Mobile Application crack ေတြကို အင္တာနက္မွာ download ခ်ျပီး သြင္းလို႕ရတယ္ဆိုတာကို မသိတာက တစ္ေၾကာင္း တုိ႕ေၾကာင့္ mobile application ေတြကို ဆုိင္မွာ သြင္းခိုင္းၾကတာမ်ားတယ္။ ေနာက္ျပီး software ေတြကိုလည္း ဝယ္သံုးလုိက္ၾကတာမ်ားတယ္။ လက္ရိွ လူသံုးမ်ားတဲ့ mobile ကေတာ့ Nokia ပဲေပါ့။ Continue Reading »

Page 5 of 25« First...345671020...Last »