วันพฤหัสบดีที่ 26 มีนาคม พ.ศ. 2558

เรียกใช้ ControlCenter3 ไม้ได้

Printer Brother Software

ปัญหา
- เรียกใช้ ControlCenter3 ไม้ได้

วิธีแก้
- ลง Flash Player (IE activeX)

jQuery event for dynamic content

code
$.ajax({
$('body').on('click','.some-selector',function(){
  //do something
});

$(document).on('click','.some-selector',function(){
  //do something
});

วันอังคารที่ 24 มีนาคม พ.ศ. 2558

jQuery(jsonp) + PHP

javascript code
$.ajax({
   url: "http://example.com/load_data.php",
   dataType: "jsonp",
   jsonpCallback: 'jsonCallback',
   success: function(data){
      alert("success");
   },
   error:function(){
      alert("failure");
   }
});


PHP code
header("Content-Type: application/json");
require_once "connect_db.php";
$sql = "select * from Table";

 $res = mysql_query($sql) or die(mysql_error());
 $data = array();
 while($row = mysql_fetch_array($res)){
  array_push($data,$row);
 }
 echo $_GET['callback'].'('.json_encode($data).')';

วันอังคารที่ 3 มีนาคม พ.ศ. 2558

เปลี่ยนสีพื้นหลัง Windows Photo Viewer


- ไปที่ Run พิมพ์ Regedit

- เมื่อเปิด Registry Editor ขึ้นมาไปที่
HKEY_CURRENT_USER\Software\Microsoft\Windows Photo Viewer\Viewer

- จากนั้นสร้าง DWORD 32bit

วันจันทร์ที่ 24 พฤศจิกายน พ.ศ. 2557

ทำให้เสียงออกพร้อมกันทั้ง jack หน้า และ jack หลัง (Realtek)


  1. เปิดโปรแกรม Realtek HD Audio Manager (ส่วนใหญ่จะอยู่ใน tray icon)
  2. เลือก Connector Settings (รูปแฟ้มสีเหลือง ขวาบน)
  3. ทำเครื่องหมายถูกที่หัวข้อ Disable front panel jack detection


ภาพประกอบ