Mar 11, 2008

微軟正黑體

1.you need activate clear type
2.copy 微軟正黑體 Bold from your font directory in Vista
3.Don't copy 微軟正黑體, but "微軟正黑體 Bold" since it looks better
4.If you copy 微軟正黑體 too, Windows will think "微軟正黑體 Bold" is same as 微軟正黑體, and you cannot use "微軟正黑體 Bold" anymore

Disable .NTAMD64 requirement of inf file

1.Establish the key
HKLM\Software\Microsoft\Windows\CurrentVersion\Setup
DisableDecoratedModelsRequirement:REG_DWORD

set it to 1

Console 2 Unicode
繁體中文 日本語 支援

1. Delete key "Console2 command window" in registry
2. Import the following data into windows registry:

For Chinese(中文) Windows XP & Vista:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console\Console2 command window]
"CodePage"=dword:000003a8
"FontSize"=dword:000a0000
"FontFamily"=dword:00000036
"FontWeight"=dword:00000190
"FaceName"="細明體"
"HistoryNoDup"=dword:00000000


For Japanese(日本語) Windows XP & Vista:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Console\Console2 command window]
"CodePage"=dword:000003a8
"FontSize"=dword:000a0000
"FontFamily"=dword:00000036
"FontWeight"=dword:00000190
"FaceName"="MS 明朝"
"HistoryNoDup"=dword:00000000


If you don't know what I am talking about, get console2 here .

Mar 10, 2008

How to self sign 64 bit driver on Vista 64 for driver testing

1.install Microsoft Winqual Submission Tool
2.Find Inf2Cat.exe in Microsoft Winqual Submission Tool
3.execute
Inf2Cat.exe /driver:"U:\MyDriver" /os:Vista_X64

4.Find makecert.exe in WDK
Makecert -r -pe -ss PrivateCertStore -n "CN=TestCertforWDK" TestCert.cer

5.Use Signtool.exe in WDK to sign the cat file
Signtool sign /v /s PrivateCertStore /n TestCertForWDK /t http://timestamp.verisign.com/scripts/timestamp.dll "U:\MyDriver\MyDriver.cat"

6.Use Signtool.exe in WDK to sign the driver
Signtool sign /v /s PrivateCertStore /n TestCertForWDK /t http://timestamp.verisign.com/scripts/timestamp.dll "U:\MyDriver\MyDriver.sys"

7.Verify the sign for driver
Signtool verify /pa /v MyDriver.sys

8.Verify the sign for cat file
Signtool verify /pa /v /c MyDriver.cat MyDriver.inf

9.On test computer, import the certificate:
certmgr.exe /add TestCert.cer /s /r localMachine root
certmgr.exe /add TestCert.cer /s /r localMachine trustedpublisher

reference: Kernel-Mode Code Signing Walkthrough

Mar 9, 2008

How to set up keyboard mapping for OSX86 and Windows XP

1.In System Preference of Mac OS X, exchange Command and Control key

2.If you are using VMware Fusion like me
Open ~/Library/Preferences/VMware Fusion/config

Add following line:
mks.keyboard.swapAlt = TRUE

3.In you Win XP
Get KeyAssigner.exe from
http://ftp.isu.edu.tw/pub/Windows/softking/soft/tw/k/KeyAssigner.exe

Add mapping from CTRL to ALT and ALT to CTRL

It is done. Now you can use CTRL+V for paste and CTRL+C for copy on both Mac and XP.

Viola

Mar 6, 2008

Presentation Skills

1.The architecture should involve the parts which user are familiar with and other parts which you would like to introduce.
for example, if you want to introduce webcam driver, you should include the total flow diagram from Skype to usb web camera. Introduce each component involved.

For each operation involved, it should include what user does to skype, and what the effect is on webcam driver.

2.The relationship between each slide should be clear. From the brief flow intro to the detail of each function, there should be a clear relationship presented to the audience.

3.Slides design is same as the design of GUI. From Joel( Joel On software) famous book, the audience don't read any text on slides. They just see the picture ( even the lecturer too). It's important to illustrate every idea and even details by drawing.

Mar 4, 2008

How to change color or transparency settings of Visor?

1. Restart Leopard (important!!)
2. Don't do anything but open VTerminal
3. Open Visor
4. Right click on Visor, choose "Window Settings"
5. Do anything you want
6. Don't choose save as default setting, or your VTerminal will be very wide(as your Visor)

 
TEMPLATE HACKS AND TWEAKS BY [ METAMUSE ] BLACKCAT 1.1
/scripts/shBrushJScript.js'/>