Reference the blog from here

To save a memory range to a file use WinDbg .writemem command:

.writemem d2p-range.bin 00800000 0085e000

or

.writemem d2p-range.bin 00400000 L20000

1. Insert CD/DVD source

2. Fire up a Terminal, you can then determine the device that is you CD/DVD drive using the following command:

$ drutil status
 Vendor   Product           Rev
 MATSHITA DVD-R   UJ-835E   GAND

           Type: DVD-ROM              Name: /dev/disk1
      Cur Write:    8x DVD          Sessions: 1
      Max Write:    8x DVD            Tracks: 1
   Overwritable:   00:00:00         blocks:        0 /   0.00MB /   0.00MiB
     Space Free:   00:00:00         blocks:        0 /   0.00MB /   0.00MiB
     Space Used:  364:08:27         blocks:  1638627 /   3.36GB /   3.13GiB
    Writability:
      Book Type: DVD-ROM

3. Umount the disk with the following command:

$ diskutil unmountDisk /dev/disk1
Disk /dev/disk1 unmounted

4. Create the ISO file with the dd utility (may take some time):

$ dd if=/dev/disk1 of=file.iso bs=2048

5. Test the ISO image by mounting the new file (or open with Finder):

$ hdid file.iso

6. The ISO image can then be burnt to a blank CD/DVD.

After using VirtralBox, I was starting to find the widescreen solution. Because of the original VGA driver in XP VM doesn’t support 1280×800 or 1440×900.
I spend a few time to find out the correct step in Internet. I record here to avoid I forget.

Step:
1. Start the VM (ex. run XP)
2. Open the terminal and type:

VBoxManage controlvm “Windows XP” setvideomodehint “1440″ “900″ “32″

Windows XP is the name of VM
This command is change the resolution to 1440×900 32bit color

Kernel memory is used to save the OS kernel information, such as AV scan pattern. You can enlarge this value to enhance your computer speed.

Please change the registry key in:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Key Name:
PagedPoolSize
Change value from zero to FFFFFFFF. Then your computer can run more quickly.

今天為了找一個能夠幫忙在Linux下detect memoryleak的tool,問了問google大神,看來有個網頁不錯,值得參考,如果學會了再來弄個教學好了^_^呵呵

11th Apr, 2006

[家有喜事]訂婚囉~~

嘿嘿,終於訂婚了。該怎麼說呢,直到我牽著老婆的手入場,走向主桌,接受所有人起立鼓掌的同時,我才感覺到我要訂婚了。這是種很奇妙的感覺耶,從男女朋友到決定要結婚,是一段不短的路程,但是真正走到婚姻的時候,才會覺得這個決定對自己也好對另外一伴也好,都是十分重要而且會改變一生的決定。從準備結婚到現在,我真的體會到人家說的”結婚不是兩個人的事,而是兩個家族的事”,常常很多你認為理所當然的事情,但是站在對方的立場來想就不盡然可以完全接受。不過也是這樣,讓我可以了解家人更多,讓互動也更多,總之,經過這次的磨鍊我想我會更進步,更成熟^_^

這是攝影大大振宇的照片link
http://www.wretch.cc/album/album.php?id=ss874819&book=24

30th Mar, 2006

[Blog]Wan’s Comic Blog

因為很想幫自己找一些可愛的MSN顯示圖片而逛到這個網站,超讚的。裡面有很多很有趣的東西,讓我覺得會畫漫畫也是件很有趣的事情,可以用另外一種方式來發表自己的部落格,就一個字,酷。我想我一定也會常常去看,也可以思考另一種部落格的形式^_^,真有趣。

這是彎彎的Blog網址
http://www.wretch.cc/blog/cwwany
彎彎Blog

27th Mar, 2006

TOIEC是什麼鬼?

唉,該來的是躲不過,終於要被要求有TOIEC的分數了。沒想到進了公司還要玩這個,我得要好好計劃一下,看看怎麼唸唸書,來通過標準。
我想來想去還是自修好了,去補習只是浪費時間跟浪費金錢而已。
在網路上找了一下TOIEC的自修方式,這個好像還滿有用的。

16th Mar, 2006

DOS file v.s. UNIX file

今天的小發現,有一支shell script怎麼執行都不能執行(:bad interpreter bad: No such file or directory),後來發現現是DOS file 的 0D 0A 惹的禍。因為一開始的
#!/bin/sh
就沒辦法讀。真是烏龍~~

原文
正如文章內所述,並不是每個軟體開發的工程師都接受過所謂”編寫安全程式碼”(Writing Security Code)的課程或者是有類似個觀念。既使說有上過,了解過,又誰能保證完全沒有任何安全上的顧慮??在商業競爭的環境下,軟體公司的Schedule已經緊的讓開發者的時間愈來越緊迫,光是把功能開發完成就已經不容易。有一些基本防止安全問題的好習慣更是不容易,但是也無法100%保證安全無虞,就如同要微軟出一款沒有BUG的OS一樣困難。所以,建立基本安全觀念是必要,但是系統管理者亦可以由系統的安全下手。我相信,能夠盡量的減低損失,就非常棒了。

Categories