15 ส.ค. 2558

How to block and unblock Bittorrent of mikrotik.

1. IP > Firewall > Layer7 Protocols
กด " + " เพื่อสร้าง Firewall L7 Protocol
ใส่ "^(\x13bittorrent protocol|azver\x01$|get /scra
pe\?info_hash=get /announce\?info_hash=|get /client/bitcomet/|GET /dat
a\?fid=)|d1:ad2:id20:|\x08'7P\)[RP]"

9 ส.ค. 2558

การเปลี่ยน default character set ของเว็บไซต์เป็น tis-620


สร้างไฟล์ .htaccess ขึ้นมา จากนั้นก็เพิ่มข้อมูลในไฟล์เข้าไปดังนี้
AddDefaultCharset tis-620
จากนั้นจึงทำการ Upload ไฟล์ .htaccess เข้าไปใน /htdocs ซึ่งเป็น Directory Path เริ่มต้นของเว็บไซต์

6 ส.ค. 2558

Jquery plugin create calendar Thailand the datepicker.

1. Download Jquery Plugin And add
  1. <script src="js/jqueryui_datepicker_thai.js"></script>  
2. add
  1. <?php    
  2. $jquery_ui_v="1.8.5";    
  3. $theme=array(    
  4.     "0"=>"base",    
  5.     "1"=>"black-tie",    
  6.     "2"=>"blitzer",    
  7.     "3"=>"cupertino",    
  8.     "4"=>"dark-hive",    
  9.     "5"=>"dot-luv",    
  10.     "6"=>"eggplant",    
  11.     "7"=>"excite-bike",    
  12.     "8"=>"flick",    
  13.     "9"=>"hot-sneaks",    
  14.     "10"=>"humanity",    
  15.     "11"=>"le-frog",    
  16.     "12"=>"mint-choc",    
  17.     "13"=>"overcast",    
  18.     "14"=>"pepper-grinder",    
  19.     "15"=>"redmond",    
  20.     "16"=>"smoothness",    
  21.     "17"=>"south-street",    
  22.     "18"=>"start",    
  23.     "19"=>"sunny",    
  24.     "20"=>"swanky-purse",    
  25.     "21"=>"trontastic",    
  26.     "22"=>"ui-darkness",    
  27.     "23"=>"ui-lightness",    
  28.     "24"=>"vader"    
  29. );    
  30. $jquery_ui_theme=$theme[22];    
  31. ?>    
  32. <link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/<?=$jquery_ui_v?>/themes/<?=$jquery_ui_theme?>/jquery-ui.css" />    
  33. <style type="text/css">    
  34. /* ปรับขนาดตัวอักษรของข้อความใน tabs   
  35. สามารถปรับเปลี่ยน รายละเอียดอื่นๆ เพิ่มเติมเกี่ยวกับ tabs  
  36. */    
  37. .ui-tabs{    
  38.     font-family:tahoma;    
  39.     font-size:11px;    
  40. }    
  41. </style>    
  42. <style type="text/css">  
  43. /* Overide css code กำหนดความกว้างของปฏิทินและอื่นๆ */  
  44. .ui-datepicker{  
  45.     width:220px;  
  46.     font-family:tahoma;  
  47.     font-size:11px;  
  48.     text-align:center;  
  49. }  
  50. </style>  
3. add

2 ส.ค. 2558

Internet Sharing on Windows 8,8.1

1. cmd >> Run as administration
2. Type the command "netsh wlan show drivers".
3. Next, type the command "netsh wlan set hostednetwork mode = allow ssid = <network name> key = <passkey>".
4. Start WIFI type the command " netsh wlan start hostednetwork "  
5visit Network and Internet –> Network Connections,--> Properties --> sharing