saturngod

  • Snow Lepoard ရဲ့ funny cover design http://gizmodo.com/5350412/snow-leopard-box-redesign-gallery/gallery?selectedImage=48 Really Useful Tools For PHP Developers http://www.w3avenue.com/2009/08/26/really-useful-tools-for-php-developers/ PHP Framework တွေအတွက် IDE http://www.nusphere.com/products/php_frameworks.htm Debugging CodeIgniter using PhpEd http://forums.zuggsoft.com/forums/weblog_entry.php?p=139820 JqueryTouch For Mobile http://www.w3avenue.com/2009/09/01/jqtouch-jquery-plugin-for-mobile-web-development/ http://www.jqtouch.com/ CKE Editor http://ckeditor.com

  • TSV 2009 http://ornagai.googlecode.com/svn/trunk/tsv/ TSV 2008 http://ornagai.googlecode.com/svn/trunk/tsv(2008)/

  • Source code For Zawgyi 2008 TO Zawgyi 2009 Python import sys,re ENC=’utf8′ def zawgyi2new(d): m=open(“zawgyi2new_replace.ini”).read().strip().decode(‘utf8’).replace(“-“,”).replace(‘ ‘,”).split(“\n”) for x in m: x=x.split(“\t”) if x[0]in d: d=d.replace(x[0],x[1]) return d if __name__==’__main__’: infile=sys.argv[1] d=open(infile).read().decode(ENC) d=zawgyi2new(d) outfile=infile[:infile.rfind(“.”)]+”_out.txt” open(outfile,”wb”).write(d.encode(ENC)) PHP $time_start = microtime(true); // get contents of a file into a string $filename = $argv[1]; $handle = fopen($filename, “r”); $d=…

  • Same Algorithm, Same Logic, နဲ့ရေးထားပြီး 30 MB text file ကို PHP နဲ့ပြောင်းတာ second 29 ကြာပေမယ့် python နဲ့ကတော့ 1 seconds ပဲကြာတယ်။ searching တွေအတွက် crawling တွေအတွက် Giga Bytes လောက်ရှိတဲ့ Filesize တွေ အတွက် PHP ထက် Python က ပိုသင့်တောှတယ်။ Python ကို လေ့လာဖို့တော့ လိုလာပြီ ?????

  • Integer ပေါင်းနှုတ်မြှောက်စား ကိစ္စတွေအတွက် အသုံးပြုတယ်။ Strings စာတွေ text တွေအတွက် အသုံးပြုတယ်။ $str=”Hello World”; Booleans True or Flase condition တွေအတွက် အသုံးပြုတယ်။ Compound Data Types အခြား ထပ်မံပါဝင်တဲ့ data types တွေကတော့ Arrays – variable တစ်ခုထက် ပိုတာတွေကို သိမ်းတယ်။ နောက်ပိုင်း Arrary အပိုင်းမှာ ပါမှာပါ။ Objects – data ကော code ကော နှစ်ခု လုံးပါဝင်ပါတယ်။ Other Data Types NULL – ဘာမှ မရှိတဲ့ value။ No value ပေါ့။…

  • zawgyi 2008 ကို 2009 ပြောင်းပေးတယ်။ normalization လုပ်ပေးတယ်။ syllable breaking လုပ်ပေးတယ်။ 2008 -> 2009 နဲ့ normalization က ကိုစိုးမင်းရဲ့ python ကိုပဲ ဖတ်ပြီး PHP နဲ့ရေးထားတာ။ syllable breaking ကတော့ python code ကို သေချာနားမလည်လို့ အရင်က ဟာပဲ ပြန်သုံးထားတယ်။ http://code.google.com/p/zgnorsb/

  • Intro XAMPP PHP ကို ကိုယ့်စက်ထဲမှာ run ဖို့အတွက် xampp သွင်းထားဖို့လိုတယ်။ xampp သွင်းပြီးရင် C:\xampp\htdocs\ အောက်မှာ PHP file ကို သိမ်းရပါမယ်။ browser မှာ http://localhost/filename.php ဆိုပြီး ပြန်ခေါ်နိုင်ပါတယ်။ Chapter 1 PHP Basic (PHP: Hypertext Preprocessor) Syntax C langauage , Perl Language နဲ့ တူပါတယ်။ အခုနောက်ပိုင်း OOP ပုံစံ အသုံးပြုလာပြီး အချို့ပိုင်းတွေမှာ Java syntax နဲ့လည်း ဆင်ပါတယ်။ PHP syntax ဟာ language တော်တော်များများ ကို remix လုပ်ထားပြီး ရိုးရှင်းလွယ်ကူပြီး…

  • ကျွန်တော့် လက်ရှိ blog မှာ အသုံးပြုထားတဲ့ code ပါ။ google bot တစ်ခုကိုပဲ allow လုပ်ထားတယ်။ wordpress မှာဆိုရင်တော့ အောက်က code ကို copy ကူးပြီးတော့ Apperance > Theme > header.php မှာ ထိပ်ဆုံးနေရာမှာ paste လုပ်လိုက်ရင် ရပါပြီ။ <?php if(isset($_POST[‘submit_dos’])) { setcookie(“checkhuman”, “process”, time()+3600); header(“Location:”.$_SERVER[‘HTTP_REFERER’ ]); } function chkcookies() { if(isset($_COOKIE[“checkhuman”])) { if($_COOKIE[“checkhuman”]==”process”) { return true; } else { return false; } } else…