Posts

Showing posts from May, 2009

Stop CS4 calling home

# sudo vi /etc/hosts Add following contents 127.0.0.1 adobe.activate.com 127.0.0.1 activate.adobe.com 127.0.0.1 practivate.adobe.com 127.0.0.1 ereg.adobe.com 127.0.0.1 activate.wip3.adobe.com 127.0.0.1 wip3.adobe.com 127.0.0.1 3dns-3.adobe.com 127.0.0.1 3dns-2.adobe.com 127.0.0.1 adobe-dns.adobe.com 127.0.0.1 adobe-dns-2.adobe.com 127.0.0.1 adobe-dns-3.adobe.com 127.0.0.1 ereg.wip3.adobe.com 127.0.0.1 activate-sea.adobe.com 127.0.0.1 wwis-dubc1-vip60.adobe.com 127.0.0.1 activate-sjc0.adobe.com Save & Exit # sudo dscacheutil -flushcache (10.5) or sudo lookupd –flushcache (10.4) Reopen CS4 application & enter key again

Remove Adobe license key from your mac

Try following steps Open a terminal # cd /Library/Application Support/Adobe/Adobe PCD/cache/cache.db delete cache.db Then, you'll have to enter new license key before you use Adobe applications.

Upgrade Your Debian to testing after System installed

Do following steps to upgrade your system when you first time login: Edit your /etc/apt/sources.lst Replace lenny with testing (besides violatile package) Save & exit # apt-get autoclean # apt-get clean # apt-get update # apt-get -t testing upgrade # apt-get -t testing dist-upgrade After that, you're in testing environment now.

Install Grub/Lilo in /dev/i2o/hda1 failed with Debian

OS Debian GNU/Linux 5 RAID Card Adaptec ASR2100S with Raid 5 Problem Installation failed message will show while installing Grub as boot loader. Solution Do not stop your installation!! And try following steps to install boot loader during installation: Enter another console with short cut: alt + Fn Press enter to enable console > chroot /target > aptitude update packages db install grub exit aptitude > /usr/sbin/grub-install /dev/i2o/hda > update-grub > exit continue to finish others steps with "continue without boot loader" option If its failed after above steps, that might be some steps wrong while you processing it. Don't worry! You will see Grub prompt after reboot, and try following steps: grub> root (hd0,0) grub> setup (hd0) <-- If you did not install grub correctly at last time, you have to do it grub> kernel /vmlinuz root=/dev/i2o/hda1 ro grub> initrd /initrd.img grub> boot Then, you will boot into your system now. Caution!! I

生平第二次上報

Image
不廢話! 請看... (點擊放大)

Dynamic CSS insertion with Javascript

最近碰到的需求,在沒有 server side script supported 的前提下,動態載入 CSS。 function appendCSS() { var headID = document.getElementsByTagName("head")[0]; var cssNode = document.createElement("link"); cssNode.type = "text/css"; cssNode.rel = "stylesheet"; cssNode.media = "screen"; cssNode.href = "css/style.css"; headID.appendChild(cssNode); } 只要再搭配個判斷 browser 版本的 function 就可以簡單實現根據不同的 browser 切換對應 CSS 的目的了。

What beeps show between different BIOS

AMI 1短音        DRAM復新失敗 1長音3短音音    DRAM錯誤 1長音8短音     顯示測試失敗 2短音        DRAM同位檢測失敗 3短音        基本64K RAM測試失敗 4短音        系統時鐘錯誤 5短音        CPU處理器錯誤 6短音        主機板鍵盤控制器錯誤 7短音        CPU中斷錯誤 8短音        顯示卡記憶體寫入/讀取錯誤 9短音        ROM BIOS檢查碼錯誤 10短音       CMOS 關機暫存器寫入/讀取錯誤 11短音       快取記憶體故障 Award 1短音        系統啟動正常 2短音        CMOS設定錯誤 1長音1短音     DRAM或主機板錯誤 1長音2短音     顯示錯誤(顯示器或顯示卡) 1長音3短音     鍵盤控制器錯誤 1長音9短音     主機板Flash RAM或EPROM錯誤(BIOS損壞) 不斷地響(長音)   DRAM沒插好或損壞 不斷地響      電源,顯示器未和顯示卡連接好 重覆短響      電源有問題 Phoenix 1短       系統啟動正常 1短1短1短     系統開機初始化失敗 1短1短2短    主機板錯誤 1短1短3短    CMOS或電池失效 1短1短4短     ROM BIOS校驗錯誤 1短4短3短     EISA時序器錯誤 1短3短1短     RAM復新錯誤 3短1短2短     主DMA暫存器錯誤 3短1短3短    主中斷處理暫存器錯誤 3短2短4短     主機板鍵盤控制器錯誤 3短4短2短     顯示錯誤(顯示器或顯示卡) 4短2短2短     關機錯誤 4短4短1短     串列埠錯誤 4短4短2短     並列埠錯誤