Featured Posts

Facebook Connect Facebook Connect ဘယ္လိုလုပ္မလဲ။ အရင္ဆံုး api key ရရိွေအာင္ register လုပ္ဖုိ႕ လိုအပ္ပါတယ္။ http://developers.facebook.com/connect.php မွာ...

Readmore

Read Json with Jquery Jquery မွာ json ဘယ္လို ဖတ္ရမလဲဆိုတာကို ေရးျပထားပါတယ္။ ဒီ code ကို မဖတ္ခင္ json ဆိုတာ ဘာလဲဆိုတာကိုေတာ့...

Readmore

AntiUsbHidden 1.1 အခု version မွာ autorun.inf ကိုပါ ဖ်က္ထားတယ္။ ေနာက္ျပီး coding ပိုင္းကို သပ္သပ္ရပ္ရပ္ျဖစ္ေအာင္...

Readmore

Antiusb Hidden (GUI) Antiusb Hidden ကို console နဲ႕ေရးထားျပီး အခု version က GUI နဲ႕လုပ္ထားပါတယ္။ Drive List ကို ထုတ္ထားတဲ့အဆင့္...

Readmore

Programming ေလ့လာရာဝယ္ ကိုသာသာ ေရးထားတာေလးကို အျခား programmer ေတြ developer ေတြ programming ကို ေလ့လာေနသူေတြ ဖတ္သင့္တယ္ထင္လုိ႕...

Readmore

  • Prev
  • Next

Month Num to Month Name

Posted on : 04-02-2010 | By : saturngod | In : PHP

Tags:

0

<?php
//$month_num is 1 to 12
date("F", mktime(0, 0, 0, $month_num, 10));

?>

Facebook Connect

Posted on : 18-01-2010 | By : saturngod | In : PHP

Tags: ,

0

Facebook Connect ဘယ္လိုလုပ္မလဲ။

အရင္ဆံုး api key ရရိွေအာင္ register လုပ္ဖုိ႕ လိုအပ္ပါတယ္။

http://developers.facebook.com/connect.php

မွာ Web , Mobile , iPhone ဘယ္အတြက္ လုပ္မလဲဆိုတာကို ေရြးျပီး စတင္ႏိုင္ပါတယ္။ Web အတြက္ start building လုပ္လိုက္တာနဲ႕ အဆင့္ဆင့္ လုပ္ေဆာင္သြားရင္ ေနာက္ဆံုး API နဲ႕ secret key ရပါလိမ္႔မယ္။ ကိုယ္လုပ္ထားတဲ့ API key ေတြ ျပန္ၾကည့္ခ်င္ရင္ေတာ့

http://www.facebook.com/developers/apps.php

မွာ သြားျပီး ကိုယ္႔ App ရဲ႕ API key ကို ၾကည့္ႏိုင္ပါတယ္။ Developer Wiki မွာ facebook connect နဲ႕ ပတ္သက္ျပီး ဘယ္လုိေရးရမလဲဆိုတာကို ေလ့လာႏိုင္ပါတယ္။

PHP အတြက္ ဘယ္လိုေရးမလဲ။

http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platform.tar.gz

ကို အရင္ဆံုး download ခ်လိုက္ပါ။ ျဖည္လုိက္ရင္ php ဆိုတဲ့ folder ေတြ႕ရပါလိမ္႔မယ္။ အဲဒါက facebook library ပါပဲ။ ဘယ္လုိ အသံုးျပဳရမလဲဆိုတာကို ေအာက္က php code ကို download ခ်လိုက္ရင္ ေတြ႕မွာပါ။ အဲဒီ code က PHP ဆိုတဲ့ folder ကို facebook လို႕ျပင္ထားပါတယ္။

Facebook Connect with PHP Sample Code

FB style message share

Posted on : 12-12-2009 | By : saturngod | In : Jquery

Tags:

1

Facebook မွာလို message share လုိက္ရင္ fadeIn ေလးနဲ႕ ဝင္လာတဲ့ code ေလးပါ။

Screen shot 2009-12-12 at PM 06.58.44Download

        $(document).ready(function(){
            $("#submit").click(function(){
                html='
'; html+=''; html +=''+$("#message").val()+''; //FadeIn Effect $("#status_message").prepend(html).children(':first').hide().fadeIn(1500); /// Slide Down Effect //$("#status_message").prepend(html).children(':first').hide().slideDown(500); return false; }); });

Google Map route

Posted on : 22-10-2009 | By : saturngod | In : javascript

Tags: , ,

0

Screen shot 2009-10-22 at PM 05.06.07

Google Map ကို အသံုးျပဳျပီး ဘယ္လို route လုပ္လို့ရလဲဆိုတာ ေရးထားတာပါ။

<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>Google Maps JavaScript API Example: Simple Directions</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<script src="jquery.js"></script>
<script src="http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAx7usLuV6Sad32xMlAFXpHhQJCBv2UIT7jRqait5DVA72by8fFxTgDNiQIRVqhNTcxCLEibS36E-Q2A"
type="text/javascript"></script>
<script type="text/javascript">
// Create a directions object and register a map and DIV to hold the
// resulting computed directions

var map;
var directionsPanel;
var directions;

function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
var geocoder = new GClientGeocoder();

from="Blk 726,#03-346,Clementi West Street 2, Singapore 120729 ";
to="8 Prince George's Park Singapore 118407";

//  map.setCenter(new GLatLng(42.351505,-71.094455), 15);
directionsPanel = document.getElementById("route");
directions = new GDirections(map, directionsPanel);
directions.load("from: "+from+" to: "+to);
}
</script>
</head>

<body >

<div id="map_canvas" style="width: 70%; height: 480px; float:left; border: 1px solid black;"></div>
<div id="route" style="width: 25%; height:480px; float:right; border; 1px solid black;"></div>

<br/>
</body>
</html>

EnableTools

Posted on : 25-09-2009 | By : SYKO | In : Article

1

Enable Tools လုိ႔ အမည္ေပးထားပါတယ္။ က်ေနာ့္ရဲ႕ ပထမဆုံးေသာ Windows Application တစ္ခုၿဖစ္ပါတယ္။ ေရးခဲ့ဖူးတုန္းကေတာ့ VB 2005 နဲ႔ ၿဖစ္ၿပီး အခု 2008 ကို ေၿပာင္းၿပီး Compile လုပ္ထားပါတယ္။
အရမ္း လြယ္လြန္းပါတယ္။ က်ေနာ္လည္း ပထမဆုံးေရးခဲ့ဖူးတာ ၿဖစ္ၿပီးေတာ့ လြယ္လြယ္ေလးနဲ႔ အစမ္းေရးထားတာပါ။

My.Computer.Registry.SetValue("Key လမ္းေၾကာင္း", "Key အမည္", Key တန္ဖိုး)

တကယ္ေတာ့ အဲဒီ့ Code တစ္မ်ိဳးထဲသံုးသြားတာပါ။ Registry ၅ မ်ိဳးထဲကို ၿပဳၿပင္ထားတာပါ။

Download

ProcessKiller

Posted on : 25-09-2009 | By : SYKO | In : VB.NET

Tags: ,

0

ကို ေစတန္ ေရးထားတဲ့ Close Process and Run Process လုိ မ်ိဳးပံုစံတူေလးပါ။ ဒါေပမယ့္ C# နဲ႔ ေတာ့ မဟုတ္ဘူးဗ်။ က်ေနာ္ေရးခဲ့တာေတာ့ ၾကာၿပီ။ အဲဒီ့တုန္းက VB 2005 နဲ႔ ေရးထားခဲ့တာ။ အခုေတာ့ 2008 နဲ႔ Compile လုပ္ၿပီးေတာ့ ၿပန္တင္ေပးလိုက္ပါတယ္။

က်ေနာ္ ဒီလုိမ်ိဳး Code ေတြၿပန္ရွဲဖို႔ ေနရာရွာခဲ့တာၾကာၿပီဗ်... ေတြ႔တဲ့ေနရာေတြကလည္း ႏိုင္ငံၿခားသားေတြရွဲေနၾကတဲ့ ဖိုရမ္ေတြ ၿဖစ္ေနတယ္။ က်ေနာ္ ေရးခဲ့ဖူးတာ အမ်ားစုက ၿမန္မာလိုေတြပါေတာ့ သူတုိ႔နဲ႔ ၿပန္ရွဲဖို႔ကအဆင္မေၿပဘူးဗ်။ သူတို႔ဆီက Comment ၿပန္မလာဘူး။ အခုေတာ့ ဒီေနရာေလးကို ေရာက္လာတာ ေတာ္ေတာ္ အဆင္ေၿပသြားၿပီ။ က်ေနာ့္ထက္၀ါအမ်ားၾကီးရင့္တဲ့ သူေတြဆီကလည္း ေလ့လာခြင့္ရၿပီၿဖစ္သလို က်ေနာ္ရဲ႕ Code ေတြကိုမွာလည္း Feedback ေတြ Comment ေတြနဲ႔ ၿပန္လည္ၿဖည့္စြက္ခ်က္ေတြ ရလာလိမ့္မယ္လို႔ထင္ပါတယ္။

ဒီေနရာမွာ ပထမဆုံးတင္ေပးတာ ၿဖစ္လို႔ Intro နည္းနည္းရွည္သြားရင္ခြင့္လႊတ္ေပးပါ။ ေနာက္ Post ေတြမွာေတာ့ မပါေတာ့ပါဘူး။

Process Killer Download Link

Upload with PHP

Posted on : 07-09-2009 | By : saturngod | In : PHP

Tags:

0

sample.html

<form enctype="multipart/form-data" action="upload.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

upload.php

<?php
  $target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
  echo "The file ".  basename( $_FILES['uploadedfile']['name']). " has been uploaded";
  } else{
  echo "There was an error uploading the file, please try again!";
  }
  ?>

Jsearch with Paging

Posted on : 07-09-2009 | By : saturngod | In : Jquery

Tags: ,

0

Jsearch ကို ျပန္ျပီးေတာ့ paging ေလးအတြက္ simple ထည့္ထားတာပါ။
jsearch-paging

AJAX Search data when Inputbox Change

Posted on : 11-08-2009 | By : saturngod | In : Jquery, PHP

0

Inputbox မွာ စာရိုက္ထည့္လုိက္တာနဲ့ စာသြားရွာဖို့အတြက္ ကြ်န္ေတာ္ example ေလးေရးျပထားပါတယ္။ ajax search အတြက္ jquery ရဲ့ load() function ကို ယူသံုးထားျပီး php ကို query string နဲ့ ျပန္ပို့ထားပါတယ္။ code ကိုေတာ့ ေအာက္မွ download ခ်နိုင္ပါတယ္။
Download

Read Json with Jquery

Posted on : 18-07-2009 | By : saturngod | In : Jquery

Tags:

1

Jquery မွာ json ဘယ္လို ဖတ္ရမလဲဆိုတာကို ေရးျပထားပါတယ္။ ဒီ code ကို မဖတ္ခင္ json ဆိုတာ ဘာလဲဆိုတာကိုေတာ့ သိထားရပါမယ္။

Source Code