2010年3月10日 星期三

如何寫Google chrome extension

1.安裝開發者專用的Google chrome 版本,升級至Dev or Beta build.
路徑如下:

Windows

Download and run the installer for the desired channel:
You'll need to restart Google Chrome to get the update.

2.開始撰寫程式:

#先產生一個檔案夾
#產生一個內容如下的檔案,並命名為 manifest.json
{
  "name": "GTD-Link",
  "version": "1.0",
  "description": "Some GTD link I used.",
  "browser_action": {
    "default_icon": "icon.png",
    "popup": "gtd_menu.html"
  },
  "permissions": [
    "http://api.flickr.com/"
  ]
}
popup:表示點選這個外掛會跳出網頁 gtp_menu.html

3.開起Browser 擴充功能,點選+ 載入  未封裝的程式,選擇剛剛撰寫的檔案
4.載入後,即完成了第一個瀏覽器擴充套件

2010年3月3日 星期三

VMware Esxi 4.0 client 無法在windows 7 中啟動問題

問題描述:
   VirtualInfrastructure.Utils.HttpWebRequestProxyK的型別初始設定式發生例外狀況


解決方法:
  原始作者:Fernando


1. Obtain a copy of %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\System.dll from a non Windows 7 machine that has .NET 3.5 SP1 installed. 

2. Create a folder in the Windows 7 machine where the vSphere client is installed and copy the file from step 1 into this folder. For example, create the folder under the vSphere client launcher installation directory (+%ProgramFiles%\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib+). 
3. In the vSphere client launcher directory, open the VpxClient.exe.config file in a text editor and add a  element and a  element as shown below. Save the file.



3. Create a batch file (e.g. *VpxClient.cmd*) in a suitable location. In this file add a command to set the DEVPATH environment variable to the folder where you copied the System.dll assembly in step 2 and a second command to launch the vSphere client. Save the file. For example, 
SET DEVPATH=%ProgramFiles%\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib
"%ProgramFiles%\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" 
4. (Optional) Replace the shortcut on the start menu to point to the batch file created in the previous step. Change the shortcut properties to run minimized so that the command window is not shown. 
You can now use the VpxClient.cmd (or the shortcut) to launch the vSphere client in Windows 7. 
Note that this workaround bypasses the normal .NET Framework loading mechanism so that assembly versions in the DEVPATH folder are no longer checked. Handle with care. 

2010年2月24日 星期三

D-sub 轉 色差線

最近買了一台 WD mini TV,想說可以用他接LCD看影片,等到拿到東西後,才發現LCD上面根本找不到AV端子孔位,接著上網尋找,終於在PChome看到有賣 VGA轉色差 (Y Pb Pr), 接上後,雖然可以看到影像,可是顏色嚴重偏綠,上網查詢發現一推討論文章,不過我還沒弄懂,暫時先大概紀錄一下網路搜尋到的相關知識做簡單紀錄

VGA 是 R(紅) G(綠) B (藍) H( 水平) V (垂直)
色差 是 Y Pb Pr
綠色線似乎是輸出 視訊訊號










在Linux下面如何免輸入密碼透過ssh連線

scp /root/.ssh/id* /root/.ssh/auth* root@10.10.10.10:/root/.ssh/

2010年2月23日 星期二

z-san無法mount 被其他人使用的private磁區

z-san如果原本設定為private的硬碟磁區,忘了dismount時,可以按住reset >45秒,系統即會將原本的private磁區更換成shared

2010年2月5日 星期五

demo_article

使用 msty.app 和 Knowledge Stacks 建立個人知識庫系統 說明 嘗試利用local llm自動從文字檔轉成影音檔 利用AI自動對文件檔產生影音檔案 - YouTube 引言 在資訊爆炸的時代,我們每天接收大量的資訊,但如何有效地管理...