ติดตั้ง Windows 7 และ Windows XP ตัวเต็มในเครื่องเดียวกัน โดยสามารถเลือกได้ว่าจะใช้งาน OS ตัวไหน
1. Windows 7 บน Drive C
2. Windows XP บน Drive D โดยหลังจาก Restart เครื่อง จะ boot เข้า Windows XP เพราะ bootloader ของ Windows XP ทำการเขียนทับ bootloader ของ Windows 7
1. Boot From the Windows 7 DVD
2. Wait for Windows 7 to Load Files
3. Choose Windows 7 Setup Language and Other Settings
OpenCV Project page
http://opencv.willowgarage.com/wiki/
Download OpenCV
http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.1/
OpenCV Project page
http://opencv.willowgarage.com/wiki/
Download OpenCV
http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.2/
สร้าง Project ใหม่แบบ MFC และเลือก Shared Library พอสั่งรันแล้วเกิด Error ดังนี้
IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds
ให้แก้ไขโดยคลิกขวาที่ Project เลือก properties > Configuration Properties > C/C++ > Code Generation
จากนั้นให้ดูที่ Runtime Libraryจะมีค่า default เป็น Multi-threaded Debug DLL (/MDd) แต่ไม่ใช่ตัวหนา
import re
email = re.findall("\w+\@\w+\.\w+", text)
if m:
print m
# return list
ที่มา: http://docs.python.org/library/re.html
import MySQLdb
conn = MySQLdb.connect (host = "localhost",
user = "testuser",
passwd = "testpass",
db = "test")
cursor = conn.cursor ()
cursor.execute ("SELECT VERSION()")
row = cursor.fetchone ()
print "server version:", row[0]
cursor.close ()
conn.close ()
ที่มา: kitebird.com/
menu Run > Run Configurations...
or right click at the project and select Properties > Run / Debug Settings
select environment tab > new button
ที่มา:desy.de/