How to install Windows XP over Windows 7 in a dual boot ?

ติดตั้ง 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

How To Perform a Startup Repair in 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

VS2010: IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds

สร้าง 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) แต่ไม่ใช่ตัวหนา

ตรวจสอบหารายชื่อ email จาก text

import re
email = re.findall("\w+\@\w+\.\w+", text)
if m:
    print m
# return list
ที่มา: http://docs.python.org/library/re.html

Writing MySQL Scripts with Python DB-API

 
 

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/

 

set environment in eclipse (MySQL environment)

menu Run > Run Configurations...
or right click at the project and select Properties > Run / Debug Settings
select environment tab > new button
ที่มา:desy.de/

Syndicate content