免責聲明

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

2011年8月19日 星期五

Ubuntu的Virtual Machine 軟體

VMware, VirtualBox or Xen ...
瀏覽一些網路文章後 多數人認為VirtualBox最容易入手
相容性也比較好 ...


//===
[Q] How to install WindowsXP(guest OS) on Xen?
[Q] How to install Xen on Ubuntu(host OS)?
[Q] Can Xen and VirtualBox be installed on Ubuntu side-by-side?


//=== Digest from https://help.ubuntu.com/community/VirtualBox

VirtualBox can run all versions of Windows, Linux, and many other x86- and AMD/Intel-based 32- and 64-bit operating systems as either a host OS or as a guest OS.



//=== Digest from http://mediakey.dk/~cc/howto-install-windows-xp-vista-on-xen/
Requirements to install XP on Xen (on Debian Etch?)

 * CPU with either Intel’s Vanderpool (IVT – Intel Virtualization Technology) or AMD’s Pacifica Technology (AMD virtualization)
    * Windows iso-image



//=== Digest from https://help.ubuntu.com/community/Xen

『。。。
To be able to run most of the virtualization software, a new technology in hardware comes it is known as Intel-VT and for AMD machines it AMD-V
。。。
How to check whether your computer supports VT or not, run following command for Intel based processors:
grep vmx /proc/cpuinfo

For AMD based processors, run the following command:
grep svm /proc/cpuinfo
 
 
。。。 




To be able to use Xen on your Ubuntu you need to
  1. Compile Xen
  2. Compile a Dom0 Kernel which can work with Xen 。。。』



//=== Digest from http://jeremy.zawodny.com/blog/archives/010184.html 
『。。。
I was fed-up of the VMware bloat, it seems to add on far too many services which I just don't want or need.


If you're creating a bunch of linux systems to separate out services (dhcp, mail, web, etc) then xen might be the way to go.
Xen is not like the other things. Basically consider Xen to be a way to virtualize Linux servers on a Linux server;


also found that at this time most of the apps that I wanted on windows are working with Wine, so I stopped running VMs altogether. This all said, I stuck with VirtualBox primarily since it is free and it worked.


found VirtualBox's networking to be a nightmare

。。。』


[ref]
https://help.ubuntu.com/community/VirtualMachines
https://help.ubuntu.com/community/VirtualBox
https://help.ubuntu.com/community/Xen

http://jeremy.zawodny.com/blog/archives/010184.html
http://ubuntuforums.org/showthread.php?t=1145462

http://mediakey.dk/~cc/howto-install-windows-xp-vista-on-xen/





2011年8月18日 星期四

如何讓swf的背景變透明?

[Q] 如何讓swf的背景變透明?
[Q] How to make swf have transparent background?



[try]
Use the "Publish Settings" in Adobe Flash Professional

1.Choose File -> Publish Settings;
2.Select HTML;
3.Choose "Transparent Windowless" from the "Window Mode" menu;
4.Publish the document;

用IE8看起來有透明效果, 例如 Disclaimer , 還沒試過其他的瀏覽器 ...


//===  或者直接修改 swf 對應的 html code
加入 wmode 參數 , value 設成 "transparent"

<param name="wmode" value="transparent" /><param
name="bgcolor" value="#ffffff" />
...
<embed ...
wmode="transparent" />


[ref]
http://kb2.adobe.com/cps/142/tn_14201.html

如何在Blogger(blogspot.com) 發布Flash檔(.swf)

[Q] 如何在Blogger(blogspot.com) 發布Flash檔(.swf)?
[Q] 如何上傳Flash檔(.swf)到Blogger?

[Q] How to publish a flash swf file to Blogger(blogspot.com)?
[Q] How to upload a flash swf file to Blogger?

[try]
搜尋之後發現 Blogger 似乎尚未支援 swf 直接上傳?
有一些替代方案: google site, google doc, google page?
個人選擇了比較傳統的方式: 先將swf檔案上傳到某台web host(e.g. Bluehost)
再將對應swf的html code 貼到Blogger's Post 中

就可以得到像敝人這篇Disclaimer的結果...


[ref]
http://adding-flash.blogspot.com/

Disclaimer (免責聲明)



Disclaimer

2011年8月12日 星期五

如何判斷Office的版本?

[Q] Word 2007 的 About?
Word Options -> Resources -> About -> 12.0.6545.xxxx SP2 ...


//===
[Q] How does msi tell the version of MS Office?

[try]
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\X.0\Common\InstallRoot
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Excel\InstallRoot\
[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\excel.exe]
???[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9B905EB838DBFEE4991CF8E66F518BBF]


<Property Id="XXXINSTALLED">
      <RegistrySearch Id="DetectXXX" Root="HKLM" Key="SOFTWARE\Microsoft\Office\X.0\Common\InstallRoot Name="Path" Type="directory"/> 
</Property>
<Condition Message="component XXX is installed."><![CDATA[XXXINSTALLED]]></Condition>


<Property Id="XXXINSTALLED">
      <!-- has to know the Guid for componet XXX first-->
      <ComponentSearch Id="DetectXXX" Guid="{88888888-4444-4444-4444-CCCCCCCCCCCC}" Type="file"/>
 </Property>
<Condition Message="component XXX is installed."><![CDATA[XXXINSTALLED]]></Condition>

//=== http://stackoverflow.com/questions/3616532/wix-registrysearch-returns-a-wrong-installlocation
//=== http://stackoverflow.com/questions/650207/what-is-the-best-way-to-detect-if-excel-2003-is-installed
//===  http://stackoverflow.com/questions/244517/where-is-a-reliable-registry-key-to-find-install-location-of-excel-2007/

//=== http://www.add-in-express.com/creating-addins-blog/2010/02/08/register-office-addin-wix/

//=== http://stackoverflow.com/questions/532447/how-do-you-use-wix-to-deploy-vsto-3-0-addins

//=== http://msdn.microsoft.com/en-us/library/cc563937.aspx

2011年8月11日 星期四

Windows Search Service 選項設定

微軟的 Windows 2008 Server 作業系統中, 檔案及其內容的搜尋
主要依靠服務 Windows Search Service(簡稱 Search Service), 
另外有一個 Windows2003 server indexing service (簡稱 Indexing Service )
則是傳統的檔案索引服務

據建議 以使用Search Service為佳
除非 ...

至於早期的WinXP, Win2000 若想採用新的Search Service 則須另外安裝
Windows Desktop Search
[ Windows Search 4.0,  http://www.microsoft.com/windows/products/winfamily/desktopsearch/choose/windowssearch4.mspx ]

也就是說
Windows Desktop Search === Windows Search Service
Windows Classic Search === indexing service

Windows desktop search 當初是為了對抗Google desktop search 而推出的?
[ Google desktop search,  http://desktop.google.com/ , 有linux版本 ]

不過微軟的FAQ聲稱 Windows desktop search 可與其他的 desktop search產品共存 ...

[ http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/techfaq.mspx ]
" Can I use a third-party desktop search product if my PC already has Windows Search built in? 

Yes, Windows Search is designed to be a good citizen and will function well in the presence of other indexers as will the operating system itself.
...
"



//=== Windows Search Service 的選項設定
Control panel -> Indexing options -> Modify -> Show all locations
-> e.g D: -> check enable indexing for all files/subfolders


//=== VisualStudio -> Find in files (classic/traditional search e.g *.txt, ...)



//===
[Q] How to know whether indexing is finished or not?


IFilter : Indexing filter, extracting text from pdf/.../ files to feed into search engine
IFilter is a COM


[ http://www.microsoft.com/windows/products/winfamily/desktopsearch/technicalresources/techfaq.mspx ]

2011年8月5日 星期五

Windows Installer 與 Dual-purpose package

//=== Windows Installer, Microsoft Installer, Microsoft Windows Installer (MSI)
Windows Installer 目前出到5.0 版

Windows Installer 用來安裝/管理/更新/升級/移除 所安裝的套裝軟體(msi package)
支援
  • component management.  
  • advertisement of applications and features ?
  • dual-purpose package ( Windows Installer 5.0 )
  • least privilege installation by proxy for unprivileged users ?



//===
Key path or Key file 的觀念比較像資料庫的key 
用來判斷一個component 是否有更新或異動


可以用Orca.exe 來檢視 msi 的內容


//=== Dual-purpose package
Windows Installer 5.0 允許在一個 msi package 中同時支援 perUser 與 perMachine的安裝機制
這樣的 msi package 稱做 dual-purpose package ;
這個機制則有一個令我混淆的名稱: single package authoring


Dual-purpose package 可以在 Windows 7 與 Windows Server 2008 R2 , 用Windows Installer 5.0 安裝,
Vista 以前的作業系統呢? Windows Installer 4.5以前的版本呢?

Per-user installation context: 當Windows Installer 5.0 安裝一個 dual-purpose package 時 ,  檔案與登錄(registry entries) 指到 per-user 的位置, 不會觸發 UAC credential prompt

Per-machine installation context: 當Windows Installer 5.0 安裝一個 dual-purpose package 時 , 檔案與登錄(registry entries) 指到 per-machine的位置, 會觸發 UAC credential prompt 以確認使用者是否有足夠的權限


***  用Windows Installer 4.5及以前的Installer 安裝 dual-purpose package 時 
Installer 將忽略 MSIINSTALLPERUSER ,  進入per-machine installation context
並觸發 UAC credential prompt ...



//=== 
" ... Once Windows Installer 5.0 installs an application, it uses the same installation context for all subsequent updates, repairs, or removal of the application."

A valid dual-purpose package must be able to pass validation by ICE105.



//=== dual-purpose package development guideline and example
...



[ref]
http://en.wikipedia.org/wiki/Windows_Installer#Key_paths
http://msdn.microsoft.com/en-us/library/cc185688(v=vs.85).aspx

dual-purpose msi package
http://msdn.microsoft.com/en-us/library/dd408068(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/dd770204(v=vs.85).aspx (example)


~~~

2011年8月1日 星期一

電腦送修

用了兩年的準系統桌機(desktop) 
近幾個月常常無法順利開機
總要先通電溫機一個小時甚至更久
才能成功啟動.
上月初某天 終於 怎麼開都開不起來
決定送回原廠檢修
把光碟 硬碟 RAM 拆下
百里迢迢的轉了四次車(公車a 捷運b 捷運c 公車d)
背著當年號稱迷你 如今卻嫌笨重的電腦
來到新興區域的企業總部
向櫃檯小姐報到
"請稍候"

 
在沙發區 遇到另一位帶著電腦來修的先生
機器都是黑色系 外型略有差異
症狀也是開不了機 ...

 
出來一位男性工程師 客氣冷靜的講解著送修的事宜

 
拆機費: NT$300 (如果不是空機? 需要維修人員拆解的話)
檢查費: NT$500
檢修時程: 更換主機板? 五~六個工作天
維修費用: 無人為損害? NT$1200 ~ 1500; 否則可能需NT$3000~ 3500

 
* 空機的定義 : 原來準系統配備的裝置, 包含主機板, 機殼, 電源, 散熱片及風扇
* 拆機費的定義: 移除非原來準系統配備的裝置 例如光碟/ 硬碟/ RAM 還有CPU
變回空機的狀態;
[ 為了省NT$300, 只好向該位工程師借螺絲起子 想把CPU 拆下,
得先拆散熱片(連著風扇) ; 以前沒拆過 拆不下來 窘!
多虧工程師指點 接著是CPU的卡鎨 ...
(發現CPU沒有pin腳, 進化成印在表面上的圓形金屬接點)
]

 
* 人為損害的定義 : 工程師提出一些說法 讓我覺得很模糊 個人的詮釋:
是否人為損害由維修方來認定 不過送修方可以決定要不要付費繼續修 
不願意修的話 原機退回 ...

 
* 拆機費及維修費的價格並未公告在其網頁中 ...

 

 

 
//===
兩個工作天後 接到電話通知 檢查結果無異常
可以開機 ...
聽從建議 先到x見門市 換了兩條 DDR2-800 DRAM (長板變成短板)
再次來到百里迢迢之外的沙發區
工程師在連著牆壁的展示桌上 用其DRAM/CPU 展示我的準系統可以開機
客氣冷靜的請我在維修單上簽名
請他用我新換的DRAM測試 他還是要我先簽名
並再次重新開機 確認螢幕有輸出 /鍵盤有反應
說簽完名後 我可以再用帶來的DRAM自行測試 ...
此時 注意到他用的DRAM是667MHz的
向他反應要跑800MHz 見我遲遲不簽名
他有點無奈的接過新換來的DRAM
先插一條 開機OK, 微微鬆了口氣
爽快的插入第二條 也可以正常開機
他恢復了冷靜的神情 擺出電梯小姐的姿勢
手肘90度 手掌45度斜上 展示著開機的BIOS畫面
...

簽完名後 拿出身上僅有的一張千元鈔
他收了錢及簽名單後 請我稍等 ...

這回的稍等有些久 所幸有沙發與冷氣
終於工程師拿了發票出來
可是沒有找我五百
我也冷靜客氣的說 "不好意思 您還要找我五百元"
他趕忙陪笑說不好意思 回辦公區 不算太慢的拿了張五百元給我
"請慢走" ...

背上電腦 走回大街 等公車 往民權大橋方向 車不少
傍晚陽光依然刺目

  
//=== 無法開機的原因猜測是 :
  • DRAM 接觸不良
  • DRAM 跑800MHz不穩
  • 啟動電容老化
  • 啟動按鈕接觸不良
...