Menu

Tuesday, October 29, 2013

[Batch Script] คำสั่งและตัวเลือกสำหรับบราวเซอร์ Chrome
[Batch Script] Chrome Browser Command Line

สมมติว่า ;C:\Program Files (x86)\Google\Chrome\Application ถูกเพิ่มไปยัง system path (ตาม วิธีการเพิ่มค่าใหม่ใน System Path)
Suppose that ;C:\Program Files (x86)\Google\Chrome\Application is added to system path (follow How to Add New Values to System Path)

เพื่อเปิดบราวเซอร์ Chrome ใช้คำสั่ง
To open Chrome browser, use command
start chrome

เพื่อเปิด URL ที่ต้องการด้วยบราวเซอร์ Chrome ใช้คำสั่ง
To open Chrome browser with specified URL, use command
start chrome "url"

[Batch Script] วิธีการหาพาธของแฟ้มของไฟล์ Batch ที่กำลังประมวลผล
[Batch Script] How to Get Directory Path of Executing Batch File

เพื่อเข้าไปยังแฟ้มของไฟล์ batch ที่กำลังประมวลผล ใช้คำสั่ง
To get into directory path of executing batch file, use command
cd /d %~dp0

Friday, October 25, 2013

[FFmpeg] วิธีการติดตั้ง FFmpeg สำหรับ Windows 7
[FFmpeg] How to Install FFmpeg for Windows 7

ขั้นแรก ดาวน์โหลด FFmpeg จาก http://ffmpeg.zeranoe.com/builds/
First, download FFmpeg from http://ffmpeg.zeranoe.com/builds/ 

แตกไฟล์ที่ดาวน์โหลดมาด้วย 7-zip ไว้ที่ C:/
Extract downloaded file with 7-zip to C:/

เปลี่ยนชื่อแฟ้มที่ได้จากการแตกไฟล์เป็น ffmpeg
Rename extracted folder to ffmpeg


Tuesday, October 22, 2013

[EmguCV] วิธีการตั้งค่า EmguCV สำหรับ Visual C#
[EmguCV] How to Set EmguCV for Visual C#

ดาวน์โหลด EmguCV จาก http://sourceforge.net/projects/emgucv/ แล้วติดตั้ง
Download EmguCV from http://sourceforge.net/projects/emgucv/ then install

สร้างโปรเจคใหม่เป็น Windows Form Application
Create new Window Form Application project

เพิ่มไลบรารี่ EmguCV โดยไปที่ Solution Explorer คลิกขวาที่แฟ้ม References แล้วเลือกAdd Reference…
Add EmguCV Library by right click on References within Solution Explorer then select Add Reference... 

[VirtualBox] วิธีแก้ไขปัญหา "Attempting to load 64 bit however this CPU is not compatible with 64 bit mode" สำหรับการลง Window 7 64 bit
[VirtualBox] How to Fix Problem: "Attempting to load 64 bit however this CPU is not compatible with 64 bit mode" on Window 7 64 bit Installation

ปัญหานี้จะแสดงดังภาพด้านล่างหลังจากพยายามลง Window 7 64 bit
This problem is shown as image below after attempting to install Window 7 64 bit


การแก้ข้อผิดพลาด คือ เข้าไป enable virtualization ใน BIOS
To fix error, enable virtualization setting inside BIOS