ลองเล่นกับตัวแปรแบบแปลกๆ

PHP 1 Comment (166 views)

ลองเล่นแปลกๆ กันดูกับตัวแปรใน PHP

$DeliveryType		=	"Mail";
#$DeliveryType		=	"Messenger";
 
$MailCharge		=	10;
$MessengerCharge	=	50;
 
echo ${$DeliveryType."Charge"};

ผลลัพท์ ของ script ด้านบนจะเป็น
Read the rest...

XmlDocument

VB.Net & Aspx No Comments (104 views)
Dim myXmlDoc As XmlDocument = New XmlDocument()
'myXmlDoc.LoadXml(strXml) ' load from string
'myXmlDoc.Load(Server.MapPath("path/to/xml.xml"))
myXmlDoc.Load("http://domain/xml.xml")
Dim UserIdNode As XmlNodeList	=	myXmlDoc.GetElementsByTagName("UserId")
Dim FirstNameNode As XmlNodeList	=	myXmlDoc.GetElementsByTagName("FirstName")
 
Dim UserId As String	=	Convert.ToString(UserIdNode(0).InnerText)
Dim FirstName As String	=	Convert.ToString(FirstNameNode(0).InnerText)

Read the rest...

rebuild icon cache

Memo No Comments (93 views)

ในบางครั้งใช้ windows xp ไปนานๆ แล้วมีปัญหา icon เริ่มแปลกๆ หรือเป็น icon อันอื่นมาแทน icon ของ program ที่ควรจะเป็น วิธีแก้แบบง่ายๆ คือให้ลบไฟล์ icon cache ทิ้งโดยที่อยู่ของไฟล์อยู่ตามนี้

C:/Documents and Settings/***Username***/Local Settings/Application Data/IconCache.db

To enable/disable Just-In-Time debugging

VB.Net & Aspx No Comments (66 views)
  1. On the Tools menu, click Options.
  2. In the Options dialog box, select the Debugging folder.
  3. In the Debugging folder, select the Just-In-Time page.
  4. In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types: Managed, Native, or Script.To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
  5. Click OK.

ตั้งเวลา backup ข้อมูลอัตโนมัติด้วย SyncBack

Software No Comments (278 views)

ทำงานกับ computer เรื่องการ backup นั้นสำคัญ แปรผันตามความสำคัญของข้อมูล ผมว่าทุกคนล้วนแต่อยากจะ backup หรือ สำรองข้อมูลทุกครั้งที่คิดได้ แต่รู้อะไรไหม พอคิดว่าจะ backup แต่ละทีต้องมาเลือก folder บ้างเลือก drive บ้างมันช่างเสียเวลาเหลือเกิน

Read the rest...

Kiosk full screen shortcut

Memo 1 Comment (148 views)

สร้าง Shortcut เปิด IE full screen
คลิกขวา เลือก New -> Shortcut

"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -K http://sixhead.com

Page 3 of 8«12345»...Last »