1. แก้ไข Theme Functions File

ใน Theme ของเรานั้นจะมีไฟล์ functions.php อยู่ทุก Theme เลยครับ ให้เปิดไฟล์ขึ้นมาแล้วแทรกคำสั่งนี้ลงไปบนสุดครับ

@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );

Read More

Dump mySQL db from Remote Database to Local Database

ในกรณีที่เราต้องการ Backup Database จาก Remote Database หรือทำการอัพเดทฐานข้อมูลจากฐานข้อมูลหลักมาเก็บไว้ที่ Local Server บทความนี้อาจจะช่วยแก้ปัญหาและลดเวลาการทำงานได้ไม่มากก็น้อย
เรื่องของเรื่องก็คือผมได้รับ Assign งานเกี่ยวกับการ Sync-up ฐานข้อมูล Requirement คือ การอัพเดทข้อมูลจากฐานข้อมูลหลักมาที่ Local Database เพราะฐานข้อมูลหลัก หรือ Remote Database นั้นจะช้าถ้าเรา Connect เข้าไปใช้งานโดยตรง หรือเพื่อนๆอยากจะเอาไปใช้ในกรณีที่ต้องการ Backup ฐานข้อมูลก็ได้นะ

Read More

ว่าด้วยเรื่องการ Replication ของ MySQL เพื่อทำการ replicate ข้อมูลในฐานข้อมูล (database) จากเครื่องหลัก (Master) ไปยังเครื่องสำรอง (Slave) ได้

หลังจากที่คอนฟิก Replication ถูกต้องเรียบร้อย เมื่อมีการเปลี่ยนแปลงข้อมูลในฐานข้อมูลบนเครื่องหลัก (Master) ไม่ว่าจะเป็นการ INSERT, UPDATE, DELETE หรือ แก้ไข table การเปลี่ยนแปลงนี้จะถูกส่งต่อ (replicate) ไปยังเครื่องสำรอง (Slave) โดยอัตโนมัติ

การคอนฟิก Replication ส่วนใหญ่จะเป็นการ ทำเพือกระจายโหลดการทำงาน จากเครื่องหลัก ด้านการ Select ข้อมูล ไปยังเครื่อง Slave เพราะโดยธรรมชสติของการใช้งานแล้วเรามักจะใช้งานด้านการ Select มากกว่าการ INSERT, UPDATE, DELETE อยู่แล้ว ซึ่งในจุด นี้ ต้องเขียนให้ตัวซอฟแวร์สามารถรับรู้รองรับการแยกการ Select เครื่องด้วยน่ะครับ

Read More

วิธีเช็คเบอร์ตัวเอง AIS

  • กด *545# แล้วกดโทรออก

วิธีเช็คเบอร์ตัวเอง Dtac

  • กด *102# แล้วกดโทรออก

วิธีเช็คเบอร์ตัวเอง Truemove-H

  • กด *933# แล้วกดโทรออก

วิธีเช็คเบอร์ตัวเอง my by CAT

  • กด *99# แล้วกดโทรออก

วิธีเช็คเบอร์ตัวเอง TOT3G

  • กด *153# แล้วกดโทรออก จากนั้นกด 1

The following is a step by step process as to how you can use wireless internet without taking out your ethernet cable out.

  1. Open Network and Sharing Centre.
  2. Go to change Adapter Settings.
  3. Goto properties of Local Area Network.
  4. Click on Internet Protocol version 4 and go to it’s properties.
  5. Click on Advanced
  6. You will see a block checked there by the name of “Automatic Metric”.
  7. Uncheck it and then enter 2 in that section.
  8. Now, Do the same for the wireless network but enter 1.

Save the setting and you’ll be able to use wifi even when your ethernet cable is connected to the LAN.

Android and OkHttp (HTTP LIB:Library) อีก Library ตัวหนึ่งในการเขียน Android App ที่น่าสนใจไว้สำหรับการจัดการในการเชื่อมต่อกับ Http คือ OkHttp โดยไลบรารี่ตัวนี้ค่อนข้างจะทำงานได้ดีในระดับหนึ่ง ความสามารถพื้นฐานรองรับการการรับ-ส่งข้อมูลในรูปแบบ Get และ Post สามารถส่งได้ทั้งที่เป็น String , Multipart File , Streaming และอื่น ๆ อีกหลายฟีเจอร์ สั่งความสามารถพิเศษที่น่าจะสนใจ คือจะใช้ Gson ทั้งการ รับและส่ง ได้เช่นเดียวกัน

Android and OkHttp

Read More

Hi guys! Today we are going to code on how to send data from Android to PHP server. This is an example app that can post a file and text data to a web server with PHP file as a receiver. Having the ability to (do HTTP Post Request) post data from android app to remote server is required for most apps. Here are some example use of this functionality:

1. You want to get statistics on how your app is being used (you have to tell your user and they must agree of course!)
2. Your app has an upload file feature.
3. A user should register on your database before using more features of your app.

DOWNLOAD SOURCE CODE

Read More