免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2011年12月29日 星期四

安全上網 Safe browsing tips, 上網安全嗎?

在試用OpenSuse, 搜尋到下列文章(2010.Jan.09發表的)

[ref]


覺得有道理, 摘譯如後, 提供參考

//=== Safe browsing(安全上網)
0. 別用無線網路進行關於錢的交易, 尤其是公共的WiFi熱點
1. 別太相信HTTPS/WPA2 雖然他們可能比HTTP/WPA or HTTP/WEP 安全一點
2. 在電腦中產生另一個safe-browing專用帳戶, 取消flash?, javascript?, 以及其他的addins
3. 別關掉防火牆
 ...

(詳細步驟 請參閱原文)

2011年12月25日 星期日

fstab, mtab

這兩個table頗像, 常搞混
fstab : filesystems table, 通常存在/etc/fstab or /etc/vfstab
mtab : mounted filesystems table, 通常存在/etc/mtab

根據wikipedia, 主要的差別在於mtab 只列出目前處於mounted狀態的裝置
而fstab 則列出所有可用的filesystems

有種說法 mtab 是 mount 這個命令參考fstab 執行後的結果 :
fstab -> mount -> mtab

那為何mtab中會出現 fstab中沒有的filesystem?

//===  摘錄
"... the main distinction being that the latter lists all available filesystems whereas the former lists only currently mounted ones ..."

fstab:
"... lists all available disks and disk partitions, and indicates how they are to be initialized or otherwise integrated into the overall system's file system..."

"... the options field simply contains a comma-separated list of options which will be passed directly to mount when it tries to mount the filesystem...."


[ref]
http://en.wikipedia.org/wiki/Mtab
http://en.wikipedia.org/wiki/Fstab

Windows 更新失敗該如何? 更新後 hyperV 跑不起來?

Windows 更新失敗, 出現 update error
[try]
  • safe Mode by F8
  • run cmd as admin
  • net stop cryptsvc
  • cd c:\windows\system32
  • ren catroot2 catroot3
  • reboot to normal mode
[ref]
http://social.technet.microsoft.com/Forums/en-US/itprovistasetup/thread/3a117c99-cac2-4383-b27c-64b50cf31bf8/

 //=== 更新後 hyperV 跑不起來? hyperV failed to start
[try]
  • run cmd as admin
  • Bcdedit /set {current} hypervisorlaunchtype auto
  • DEP/NoExecute : OptIn or OptOut?
或者試試 GUI tool,  EasyBCD

[ref]
http://social.technet.microsoft.com/forums/en-US/winserverhyperv/thread/ce2fbf98-91a4-413d-80aa-ed0cd5cc68d7



//=== Windows Server 2008 does not include the System Restore feature
[ref]
Microsoft Knowledgebase article 926185

2011年12月12日 星期一

Rgb, Argb, PArgb Bitmap

Windows 的Bitmap 含有三種容易混淆的格式 (PixelFormat)
Rgb: b-g-r (low memory address to high)
Argb: b-g-r-a
PArgb: pb-pg-pr-a

a=a/255f;
pb= a*b;
pg= a*g;
pr= a*r;


據說 PArgb 的Bitmap 畫起來比 Argb 快.



[ref]
http://www.codeproject.com/Tips/66909/Rendering-fast-with-GDI-What-to-do-and-what-not-to?display=Print

http://en.wikipedia.org/wiki/Premultiplied_alpha