test environment virtualbox 4.2.6 xp sp3 install
1. use xpsp3 cdrom
x:\i386\winnt32.exe /cmdcons
2. copy A:\symmpi.sys c:\cmdcons
3. attrib -h -r -s c:\cmdcons\txtsetup.sif
notepad c:\cmdcons\txtsetup.sif
in [scsi.load] add
symmpi = symmpi.sys
in [HardwareIdsDatabase]
PCI\VEN_1000&DEV_0030 = "symmpi"
after above setup , you never need to press F6 at recover console booting
2013年3月2日 星期六
2012年4月24日 星期二
workaround to let meld 1.5.2 tab/space re-arrange
modify below two place , use control-p to let tab-space re-arrange
src/meld-1.5.2/meld/meldwindow.py
("Preferences", gtk.STOCK_PREFERENCES, _("Prefere_nces"),"[control]P", _("Configure the application"),
self.on_menu_preferences_activate),("ChangesMenu", None, _("_Changes")),
### None ---"[control]
src/meld-1.5.2/meld/preferences.py
class PreferencesDialog(gnomeglade.Component):
self.fontpicker.set_font_name( self.prefs.custom_font )
self.spinbutton_tabsize.set_value( self.prefs.tab_size )
+old_tab_value = self.prefs.tab_size
+self.prefs.tab_size = 8
+self.prefs.tab_size = old_tab_value
if srcviewer.gsv is not None:
2012年4月21日 星期六
build filedisk 1.7 using 2003sp1_ddk
[1] build environment windows xp sp3
[2] ddk 1830_usa_ddk.iso --> grep from ms (2003sp1 ddk)
[3] install ddk to host , say X:\WINDDK
cd X:\WINDDK\BIN
setenv X:\WINDDK fre WXP
[4] grep filedisk-17.zip source code & extract to X:\filedisk
cd X:\filedisk\exe
build
cd X:\filedisk\sys\src
build
[5] you get filedisk.sys and filedisk.exe
[2] ddk 1830_usa_ddk.iso --> grep from ms (2003sp1 ddk)
[3] install ddk to host , say X:\WINDDK
cd X:\WINDDK\BIN
setenv X:\WINDDK fre WXP
[4] grep filedisk-17.zip source code & extract to X:\filedisk
cd X:\filedisk\exe
build
cd X:\filedisk\sys\src
build
[5] you get filedisk.sys and filedisk.exe
build spfdisk
[1] you must grep the source code, Spf2K3vO.7z
[2] turboC 2.0, masm6.1x , tasm2.0
c:\tc\
c:\min_masm\bin\
c:\tasm\
[3] add below asm.bat
@echo off
echo tc2.0 install in c:\tc
echo tasm20 install in c:\tasm
echo masm6.x install in c:\min_masm
pause
copy include\*.h .
path=%path%;c:\tasm;c:\tc
tcc -mm -c bootmgr.c
path=%path%;c:\min_masm\bin
masm bootsect.asm
masm int13.asm
masm int24.asm
masm loader.asm
masm pre_load.asm
echo -----------------
echo In tc you select spfdisk.prj
echo compile model: medium , code 186/286 , use float processor
echo obj debug info:off
echo link option ignore case sensitive link
echo source debug:off
echo build all
echo -----------------
pause
tc
[4] add below spfdisk.prj
bootfile.c
bootget.c
bootinst.c
bootmenu.c
bootrec.c
chg_disk.c
chk_disk.c
diskdrv.c
diskop.c
dostools.c
fdisk.c
fd_comm.c
fd_menu.c
findspac.c
getobj.c
global.c
help.c
input.c
main.c
message.c
output.c
partnadj.c
partnchg.c
partndel.c
partnid.c
partnmak.c
partnmnu.c
partnobj.c
partnsav.c
platform.c
proc_err.c
proc_fil.c
proc_pic.c
qkformat.c
safearea.c
selemenu.c
showsect.c
sortpart.c
undo.c
bootsect.obj
int13.obj
int24.obj
loader.obj
pre_load.obj
bootmgr.obj
[5] run asm.bat in command line ,
then follow echo instruction run tc to get spfdisk.exe
[2] turboC 2.0, masm6.1x , tasm2.0
c:\tc\
c:\min_masm\bin\
c:\tasm\
[3] add below asm.bat
@echo off
echo tc2.0 install in c:\tc
echo tasm20 install in c:\tasm
echo masm6.x install in c:\min_masm
pause
copy include\*.h .
path=%path%;c:\tasm;c:\tc
tcc -mm -c bootmgr.c
path=%path%;c:\min_masm\bin
masm bootsect.asm
masm int13.asm
masm int24.asm
masm loader.asm
masm pre_load.asm
echo -----------------
echo In tc you select spfdisk.prj
echo compile model: medium , code 186/286 , use float processor
echo obj debug info:off
echo link option ignore case sensitive link
echo source debug:off
echo build all
echo -----------------
pause
tc
[4] add below spfdisk.prj
bootfile.c
bootget.c
bootinst.c
bootmenu.c
bootrec.c
chg_disk.c
chk_disk.c
diskdrv.c
diskop.c
dostools.c
fdisk.c
fd_comm.c
fd_menu.c
findspac.c
getobj.c
global.c
help.c
input.c
main.c
message.c
output.c
partnadj.c
partnchg.c
partndel.c
partnid.c
partnmak.c
partnmnu.c
partnobj.c
partnsav.c
platform.c
proc_err.c
proc_fil.c
proc_pic.c
qkformat.c
safearea.c
selemenu.c
showsect.c
sortpart.c
undo.c
bootsect.obj
int13.obj
int24.obj
loader.obj
pre_load.obj
bootmgr.obj
[5] run asm.bat in command line ,
then follow echo instruction run tc to get spfdisk.exe
2012年4月19日 星期四
virtualbox slp , install oem xp sp2
[1] test on VBOX 4.1.12 , XPSP2
[2] in linux use dmidecode to get relative information
sudo dmidecode -t0
sudo dmidecode -t1
[3] in host , create an VM name "XP_OEM" , cmd line input below command.
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "XX-CORP"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "F.10"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "06/03/2010"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" 15
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" 16
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" 11
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" 30
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "XX-CORP"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "XX Model"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "F.10"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "ABC1234D5E"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "ur' uuid"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "NNNA_NNNNAA"
[2] in linux use dmidecode to get relative information
sudo dmidecode -t0
sudo dmidecode -t1
[3] in host , create an VM name "XP_OEM" , cmd line input below command.
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "XX-CORP"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "F.10"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "06/03/2010"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" 15
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" 16
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" 11
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" 30
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "XX-CORP"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "XX Model"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "F.10"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "ABC1234D5E"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "ur' uuid"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "NNNA_NNNNAA"
2012年4月12日 星期四
extra step to stop autorun when double click drive letter
[stop double click] drive autorun
(virus may autorun , even you use gpedit.msc to stop drive autorun)
[1]
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"
[2] delete below registry tree about autorun & shell subkey
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
(virus may autorun , even you use gpedit.msc to stop drive autorun)
[1]
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"
[2] delete below registry tree about autorun & shell subkey
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
install/remove in XP/SAVE MODE
[1] In XP SAFEMODE
[2] c:\>REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
[3] c:\>net start msiserver
[4] you can install/remove msi in xp/save mode
[2] c:\>REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
[3] c:\>net start msiserver
[4] you can install/remove msi in xp/save mode
change grub boot sequence
[1] /boot/grub/grub.cfg find entry # 0 base
[2] /etc/default/grub --> change default # from step[1]
[3] update-grub
test on Ubuntu 10.04
[2] /etc/default/grub --> change default # from step[1]
[3] update-grub
test on Ubuntu 10.04
let winpe boot from usb
[1] using virtualbox 4.1.2
[2] make a usb raw disk vmdk --> usb.vmdk [the key is \\.\PhysicalDriveN]
VBoxManage internalcommands createrawvmdk -filename usb.vmdk -rawdisk \\.\PhysicalDriveN
[3] make an new VM
[C] usb.vmdk
[cdrom 1] winxpsp2_pe
[cdrom 2] winxpsp2
[4] boot from winxp_sp2_pe
[5] format c:
[6] boot from winxpsp2
[7] recover --> fixmbr fixboot
[8] boot from winxpsp2_pe
[9] cd winxpsp2\i386\
[10] winnt32 /cmdcons
[11] copy /e winxpsp2_pe\i386\*.* c:\minint\
[12] c: cd \
[13] copy cmldr ntldr
[14] copy minint\winbom.ini \
[15] your usbstick had winpe bootable ability
[2] make a usb raw disk vmdk --> usb.vmdk [the key is \\.\PhysicalDriveN]
VBoxManage internalcommands createrawvmdk -filename usb.vmdk -rawdisk \\.\PhysicalDriveN
[3] make an new VM
[C] usb.vmdk
[cdrom 1] winxpsp2_pe
[cdrom 2] winxpsp2
[4] boot from winxp_sp2_pe
[5] format c:
[6] boot from winxpsp2
[7] recover --> fixmbr fixboot
[8] boot from winxpsp2_pe
[9] cd winxpsp2\i386\
[10] winnt32 /cmdcons
[11] copy /e winxpsp2_pe\i386\*.* c:\minint\
[12] c: cd \
[13] copy cmldr ntldr
[14] copy minint\winbom.ini \
[15] your usbstick had winpe bootable ability
2012年4月11日 星期三
Let WINPE boot from harddisk
[1] win xpsp2 intall on harddisk
[2] from xpsp2 cd-rom , cmd line run: x:\i386\winnt32 /cmdcons
[3] in c: below item will renew
cmdcons\
cmldr
boot.ini --> will add one line at buttom of startup menu
[4] copy winpe_xp cdrom x:\i386\*.* to c:\minint\*.*
[5] copy c:\minint\winobm.ini to c:\
[6] edit boot.ini last 2 lines as below
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows PE"
[2] from xpsp2 cd-rom , cmd line run: x:\i386\winnt32 /cmdcons
[3] in c: below item will renew
cmdcons\
cmldr
boot.ini --> will add one line at buttom of startup menu
[4] copy winpe_xp cdrom x:\i386\*.* to c:\minint\*.*
[5] copy c:\minint\winobm.ini to c:\
[6] edit boot.ini last 2 lines as below
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows PE"
2012年4月7日 星期六
install win98Se on virtualbox 4.1.12
[1] hw settings: enableVT,nestPaging, system PIIx3, IDE PIIx4,
SCSI busLogic no check use host iocache, audio SB16,
[2] setup /pj --> force use ACPI ,
[2.1] add two vdi, first one for boot , second for System.
[3] Display driver --> use Sci tech display doctor 7.0.0.340beta
[4] unicows.exe + kernelex 4.52 + instmia.exe + jre1.5.022 + jre1.6.031=freecol 0.10.5 playable
[5] dosbox0.74 work fine in guest, zsnes1.5w work fine
[6] shrink vdi:
[6.1] use Sdelete.exe -z ; to clean free sector,
[6.2] use Vboxmanage modifyhd --compact d:ooxx.vdi
[7] In 98VM settings, enable absolute pointing device,
[7.1] In host command line : Vboxmanage setextradata VMname "VboxInternal/USB/HidMouse/0/Config/CoordShift" 0
[7.2] reboot 98 will need install Tablet input device,
[7.3] You have mouse pointing seamless switch between host & 98
[8] file share with network neighbor
[8.1] In 98VM settings select Network attach to "host-only-adaptor"
[8.2] In 98 NetHood , check file& printer share,
[8.3] in 98 command>ipconfg --> get your 98_IP
[8.4] in 98 explorer create one folder name "share" , right-click share it
[8.5] in host , run> \\98_IP\
[8.6] you can see the shareFolder from host
SCSI busLogic no check use host iocache, audio SB16,
[2] setup /pj --> force use ACPI ,
[2.1] add two vdi, first one for boot , second for System.
[3] Display driver --> use Sci tech display doctor 7.0.0.340beta
[4] unicows.exe + kernelex 4.52 + instmia.exe + jre1.5.022 + jre1.6.031=freecol 0.10.5 playable
[5] dosbox0.74 work fine in guest, zsnes1.5w work fine
[6] shrink vdi:
[6.1] use Sdelete.exe -z ; to clean free sector,
[6.2] use Vboxmanage modifyhd --compact d:ooxx.vdi
[7] In 98VM settings, enable absolute pointing device,
[7.1] In host command line : Vboxmanage setextradata VMname "VboxInternal/USB/HidMouse/0/Config/CoordShift" 0
[7.2] reboot 98 will need install Tablet input device,
[7.3] You have mouse pointing seamless switch between host & 98
[8] file share with network neighbor
[8.1] In 98VM settings select Network attach to "host-only-adaptor"
[8.2] In 98 NetHood , check file& printer share,
[8.3] in 98 command>ipconfg --> get your 98_IP
[8.4] in 98 explorer create one folder name "share" , right-click share it
[8.5] in host , run> \\98_IP\
[8.6] you can see the shareFolder from host
2010年2月17日 星期三
最少公式完成3x3x3魔術方塊.
最少公式完成魔術方塊.
1. 3x3x3 方塊由 中心塊(被八個塊圍著), 角塊(有三個顏色), 邊塊(有兩個顏色).
2. 完成白十字 , 而且十字的四個邊要和四個臨面的中心塊顏色相同.
3. 完成白色剩下的四個角, 每個白色的角要和相臨的兩個白邊顏色相合.
4. (現在你已經完成一面一環) 把白色面朝下, 黃色面朝上.
5. 要完成第二環需要2個公式 (其實互為鏡像公式)
右手公式一 :
URU'R' (會把右下角的白色塊和 面對你 上前方的中心塊結合成一對)
U'F'UF (會把浮在黃色層的白色領頭的一對,塞回白色那一層)
左手公式二 :
U'L'UL
UFU'F'
6. 用以上兩個邊塊移動的公式,即可完成一面二環. 並不是本教學重點, 開個頭大略帶過而已.
1. 3x3x3 方塊由 中心塊(被八個塊圍著), 角塊(有三個顏色), 邊塊(有兩個顏色).
2. 完成白十字 , 而且十字的四個邊要和四個臨面的中心塊顏色相同.
3. 完成白色剩下的四個角, 每個白色的角要和相臨的兩個白邊顏色相合.
4. (現在你已經完成一面一環) 把白色面朝下, 黃色面朝上.
5. 要完成第二環需要2個公式 (其實互為鏡像公式)
右手公式一 :
URU'R' (會把右下角的白色塊和 面對你 上前方的中心塊結合成一對)
U'F'UF (會把浮在黃色層的白色領頭的一對,塞回白色那一層)
左手公式二 :
U'L'UL
UFU'F'
6. 用以上兩個邊塊移動的公式,即可完成一面二環. 並不是本教學重點, 開個頭大略帶過而已.
| 7. 完成一面二環. 需要公式: 2個互為鏡像公式 , 若拆成組 pair , 入槽 , 最長步數為 4步. 8. 完成黃十字. 最長步數 三步. R U R' R U' R 當 pair 白色朝西時用的 F' + 黃色面的轉動 + F (用來翻黃色面) 9. 完成黃色十字後.用 R U R' R U' R' 黃色面的轉動 把黄色的四個邊,對齊四個 (非黃非白的)中心塊. 10. 用以下兩個公式 一次翻兩個黄角向上. (目標是黃色面完成) R' D D R , 翻個面, 讓白色不要朝自己 L D D L' 翻動黃色面, 把不對的角 對準第二層的白色塊. L D D L' , 翻個面, 讓白色不要朝自己 R' D D R 11. 用 以下這個步驟 , 完成換角. R' D D R 翻動黃色面 12. 最長的步數,如果因數化的話, 最多四步. 公式的數量 : (四步以上) F2L --> 兩個 (互為鏡像) OLL --> 兩個 (互為鏡像) PLL --> 一個 (且 OLL 已學過) 13. 若是鏡像公式不算,四步以上的公式只要 兩個,就可以完成六面了. |
訂閱:
文章 (Atom)
英文字母 代表 倉頡字根 (記法): C 金 戒指, D 木 切半, E 水支流 , F 火fire, G 土ground, H 竹節, i 戈點, J 十,K 大去頭倒地, l 中, M 一螃蟹横行, N 弓,O 人頭, P 心 pi po 跳, Q 手掌, R 人, S 側...
-
婚姻的意義 婚姻最大的目的是 鼓勵生養 . 對於國家而言,婚姻產生新的公民. 對於家族而言,婚姻延續家族的香火. 對於個人而言,婚姻有生兒育女的可能性. 對於社會而言,婚姻最能穩定家族的結構,(血親制度)確認彼此的關係. 而且在這種婚姻制度裏,個人是要有所犠牲,有所...
-
律法從來不保障自由的愛. 律法保障的是理性的價值. 讓愛自由,讓制度理性. 就生養而言. 異性婚 是合乎理性的價值. 同性婚 是不合乎理性的自由. 動物選配偶, 多是荷爾蒙,色彩獨特,再加上近水樓台. 人選配偶, 除了以上的因素,還有地位/財富/顏值等. ...
-
反同的意見大集結: 1. 應該保障,但是不能說同志婚的主張優於異性婚. 因為民主是算人頭的.需要溝通立法. 必需要消除異性婚的疑慮. 2. 立法院/政府應該推出認識同志的官方資料 並由學者專家認可.立法委員簽名認可. 簡單版/詳盡版. 不宜由同志組...