1.The Old New Thing, it's a book too!
I should establish my TO-READ book list ...
Book list(illuminative):
1. Code Complete
2. Pragmatic Programmer
3. The 7 Habits of Highly Effective Teens
4. The Innovator's Dilemma
5. Concrete Mathematics
Book list(Fun):
1. The Old New Thing
Book list(Technical):
1. Programming Ruby
2. Agile Web Developement
3. 深入淺出設計模式
4. Test-driven development by example
5. Haskell
6.
My TODO book list:
第一次就說對話
Presentation Zen
My TODO book list(Physics):
Oh, my! I think I was a physicist.
Jan 31, 2008
Interesting blogs
Posted by Lono at 01:45 2 comments
Labels: Listmania
Jan 30, 2008
Windows Driver Testing Methods
1.PREfast for Drivers ( included in WDK):
Help you find out memory leak problem, wrong pool tags and other problems by analysis of your source codes.
2.Verifier (included in Windows OS):
Check initialization errors, IRP stack errors, and memory leak. Check your driver at run time.
3.Static Driver Verifier:
Check the execution path of your driver, erroneous branch conditions, and other errors like calling IoCompleteRequest twice. Works for C code only.
4.WinDBG (Windows Debug Tool):
A kernel debugger provided by Microsoft.
Posted by Lono at 23:13 0 comments
Windows Crash Dump file is located at....
%SystemRoot%\minidump
Open .dmp file with WinDbg.exe (File -> Open Crash Dump ...)
Posted by Lono at 00:13 0 comments
Jan 29, 2008
DTM Setting
When I try to connect DTM server from DTM studio running on WinXP, I got the following error message:
error: 40 - Could not open a connection to SQL Server
Solution:
In client machine ( which DTM studio is installed)
Type: c:\windows\system32\cliconfg.exe
Open NamedPipe and TCP/IP from the options.
If this doesn't work, check if NamePipe and TCP/IP is open on the DTM server settings
Jan 26, 2008
Realtek ALC262 (Intel 82801G) on Leopard
I have successfully installed the sound card driver on my Leopard.
The sound card of my Fujitsu S7111 is Realtek ALC 262(TODO: Intel 8?)
Here is how:
1. Install Package on your Kalway Leopard DVD:
The package is located at "System/Installation/Packages/Azilia_out.pkg"
2. Open the terminal and type:
cd /System/Library/Extensions
sudo nano AppleAzaliaAudio.kext/Contents/Info.plist
Search "IOHDAudioCodecVendorID"
and you should find something like:
change it to
3.Save and exit
4.Modify AppleAzaliaController.kext
Open terminal and type:
sudo nano AppleAzaliaAudio.kext/Contents/PlugIns/AppleAzaliaController.kext/Contents/Info.plist
Search for "IOPCIPrimaryMatch"
You shuold find:
Change
Save and exit
5. Type:
sudo rm -r /System/Library/Extensions.mkext
diskutil repairpermissions /
reboot
6.When rebooting, press F8 and type "-x -v"
It should work now.
Posted by Lono at 18:44 0 comments
Marvell Yukon 88E8055 on Leopard
The network card of my Fujitsu laptop is Marvell Yukon 88E8055. By default, it's not supported by Leopard. However, I still got it worked( All thanks to InsanelyMac Forum)
The steps:
1. Type "sudo nano /System/Library/Extensions/IONetworkingFamily.kext
/Contents/PlugIns/AppleYukon.kext/Contents/Info.plist"
2. Find:
<key>IOPCIPrimaryMatch</key>
<string>0x436211AB</string>
Replace with:
<key>IOPCIPrimaryMatch</key>
<string>0x436311AB</string>
"4363" is Device ID and "11AB" is Vendor ID. You can see the number by Everest.
3. Type "sudo rm -r /System/Library/Extensions.mkext"
4. Type "diskutil repairPermissions /"
5. Type "reboot", Press F8 on startup, Type "-x -v" to enter safe mode
It should work now.
Posted by Lono at 08:58 0 comments
Jan 25, 2008
ToH Setup
TODO:
problems:
1.network card driver
2.Turn of sleep mode, it just won't wake up
System Preference-> Energy Savor-> Select "Never"
3.Audio
4.Wireless
Posted by Lono at 20:44 0 comments
ToH Leopard
I have tried ToH RC2 Leopard today.
To install ToH's Leopard, you may encounter much more troubles than Kalway's.
The Steps:
1.Mark the partition where you want to install ToH active
Kalway does this for you, but ToH does not.
2.Boot from ToH DVD and Install
There are no partiular options here. Just install it.
3.After reboot, you shall see a flashing cursor(blinking cursor) at boot if you are unlucky like me
Here is the solution 1 for step 3:
1. Boot from ToH DVD
2. In the installation program, click "Utilities" in the Menu Bar, then select Terminal
3. Type "/usr/misc/script.sh Mac"
Replace "Mac" with the name of the partition where you install Leopard
4. Type "reboot", and see if works
However, it did not work for me.
Here comes the solution 2 for step 3, and it did work for me!!!
1. Boot from ToH DVD
2. In the installation program, click "Utilities" in the Menu Bar, then select Terminal
3. Type"diskutil unmount /Volumes/Mac"
Replace "Mac" with the name of the partition where you install Leopard
4. Type "dd if=/usr/standalone/i386/boot1h of=/dev/rdisk0s1 bs=512 count=1"
Replace "rdisk0s1" with the disk number and the partition number of your Leopard Installation. Disk number starts from 0 and partition number starts from 1. For example, "rdisk0s1" represents the first partition of the first disk. "rdisk1s3" represents the third partition of the second disk.
5.Type "/usr/misc/startupfiletool /dev/rdisk0s1 /usr/standalone/i386/boot".
Replace "rdisk0s1" with correct number.
6.Type "/usr/misc/
bless24 -device /dev/disk0s1 -setBoot -verbose"
Replace "disk0s1" with correct number. Beware it's "disk0s1", not "rdisk0s1"
7. Type "diskutil mount /dev/disk0s1"
Replace "disk0s1" with correct number.
8.Type "
/usr/misc/
bless24
-mount "/Volumes/Mac" -setBoot -verbose
Replace "Mac" with the name of the partition where you install Leopard
9.Type "reboot"
You shall succeed now or try Google "flashing cursor toh boot" or "blinking cursor toh boot"
Posted by Lono at 20:09 0 comments
Jan 24, 2008
Leopard and Vista dual boot guide
It's possible to install XP, Vista, Leopard, Tiger, ubuntu, and other OS which supports X86 in ANY ORDER on your PC. Actually, the order is not important at all.
However, I only give Leopard and Vista dual boot guide here:
TODO:
1.Leopard fix boot
2.Vista fix boot( repair disk)
3.Leopard Timeout
4.Vista: chain0, tboot, easybcd
5.Acronis True image, Ghost 12, USB HDD
Vista Recovery Disc
Since Fujitsu does not provide a Vista installation program but just a disk image, you cannot repair your Vista Installtion by inserting the Fujistu recovery disc. Neosmart provides such a tool to do this work for you:
http://tinyurl.com/yta9oa
Burn the Neosmart Vista Recovery Disc and then boot from it. Select Repair then reboot.
Leopard(Mac OS X) fix boot (also known as HFS+ Parition error)
1. Insert your Leopard Installation DVD and boot from DVD-ROM.
2. Press "F8" on startup.
3. Type -s to enter single mode.
4. In prompt mode, type "fdisk -e /dev/rdisk0", rdisk0 means the first HDD in your computer.
5. Type "flag 1" if your Leopard is in first partition. It will mark parition 1 as active.
6. Type "update" to fix your Leopard boot
7. Type "write"
8. Type "quit"
9. Type "reboot"
Jan 23, 2008
WinDbg Settings
This is my WinDbg notes. WinDbg is a debugger which is used for Windows kernel mode program debugging.
Remote Debugging Settings On Guest OS:
1.Boot XP in debug mode:
Add this to c:\boot.inimulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional-DEBUG" /fastdetect /debug /debugport=COM1 /baudrate=115200
It would make your XP boot in Debug mode.
I am not sure if "/debug" is necessary or not.
2.Always boot in "Last Known Good Configuration":
Add this:multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional-Good" /lastknowngood
WinDbg Startup Settings: windbg -k com:port=com1,baud=115200
Symbol path settings: SRV*c:\Symbols*http://msdl.microsoft.com/download/symbols
Useful Commands:
Set a breakpoint on the entry of FunctionNamebp DriverName ! FunctionName
list all breakpointsbl
disable the #3 breakpointbd 3
3.Boot Vista in debug mode:
In Vista, Microsoft introduce a very hard-to-use boot loader setting tool called "bcdedit". You can use "easybcd" instead, but here I will show how to do it without third party tool.
3.1 Change serial port setting:bcdedit /dbgsettings serial baudrate:115200 debugport:1
3.2 Create new debug entry:bcdedit /copy {current} /d DebugEntry
3.3 List all entry:bcdedit /enum osloader
3.4 Set debug option on:bcdedit /debug {ID} on
ID is the DebugEntry ID found at step 3.
3.5 Set DebugEntry as default choice:bcdedit /default {ID}
3.6 Turn LastKnownGood option onbcdedit /set {ID} lastknowngood on
3.7 Set Timeout value to 5 secondsbcdedit /timeout 5
3.8 No signing checks ( driver without sign can be installed)bcdedit –set nointegritychecks ON
3.9 Set driver test mode ( accept test sign)bcdedit /set testsigning Yes
Posted by Lono at 21:35 0 comments
Labels: Driver
Leopard is running
After my success with Tiger(TODO: in 4GB thumb drive), my Fujistu laptop is now running Leopard. I will give detailed instructions here. TODO: put pics here.
The steps:
1.Get a hacked Leopard Image: Since Apple supports Mac only, we need a hacked Leopard DVD to get Leopard runnig on cheap X86 PC. Use your favorite torrent finder to get the seeds or just Google "Kalway Leopard".
2.Burn the Leopard DVD: After you get the image file, burn it on DVD.
3.Parition hard disk: You can use partition magic or Hiren's Boot CD to partion your disk. I give 30G for Vista and another 30G for Leopard. The first partition is NTFS, and the next is HFS( MAC Extended Journel)
4.Boot from DVD and just install it! There are many options in Kalay Leopard, but I only enabled BOOT_MBR option in installation setup. Please don't enable BOOT_GUID option(sadly, it's the default option of Kalway) or your Leopard won't boot.
5.Fix the drivers issue: After installation, your Leopard should run on normally. If not, try OSX86 forum to get community support. However, Apple does not support generic X86 PC. After installation, my audio, ethernet and wireless cards do not function at all. Currently, I can only fix my ethernet card. My ethernet card is Marvell Yukon 88E8055, the fix is(TODO).
6.Fix the terrible-looking icons(sorry Kalway): Kalway did change some icons of Leopard. If you don't like them, you can use Candy3 to restore the icons to Leopard default. The
orange background of Finder does not fit my taste, too. To change the background of Finder, just right-click on the orange area and click View..., you will see the option.
7.Turn off trackpad when mouse is used: This is for laptop. If I know how to do this, I will tell ya.
My computer always goes wrong
The morden technology is so unreliable that I have spent near all of my life(excluding eating & zzZ) on fixing my computer. In MS-DOS age, I had to try to get 602KB main memory in order to get my PC games running. And it's not the most difficult part. Some PC games even need 630KB main memory to get my SoundBlaster working or I had to play my games with no music and sound effect. That's so terrible. The old x86 PCs had merely 640KB main memory!!! Where should I put my OS?
However, all of the tips&tricks about how to get 630KB free main memory are lost. These are only achievement during my childhood. I regret, I repent, and I need a place to record my life--a life which is full of computers' fixme. This is a place for me, and it's the place with life-long journey to fix my computer.
Posted by Lono at 08:46 0 comments
I got my blog open!!
It is so exciting. I got my first blog open!!! WOOOOW!!
If you see this post, it means I am success on my first post.
I am success.
I am success.
I am success.
Posted by Lono at 08:35 0 comments