2013年9月26日 星期四

VirtalBox : GenyMotion unable to load VirtualBox engine.

VirtualBox : Starts GenyMotion and gets an error.
                    -- Unable to load VirtualBox engine.
                    -- Make sure that you have installed it correctly before starting GenyMotion.

環境 :
    VirtualBox - Version 4.2.18
    GenyMotion - Version 1.2.1

狀況 :  GenyMotion 無法啟動 -- VirtualBox 驅動失敗 , 可能未正確安裝.

處理 : 
    重新安裝 VirtualBox 都沒用.........
    結果在 genymotion.log (在 GenyMotion 的安裝目錄下)看到下列兩行 :

    九月 10 15:31:58 [Genymotion] [Debug] VBoxManage path (found in settings):
    "F:\Program Files\Oracle\VirtualBox\/VBoxManage.exe"

    九月 10 15:31:58 [Genymotion] [Debug] Can't run VBoxManage ("list", "hostonlyifs")

   原來問題出在路徑錯誤 : 原本 VirtualBox 4.2.16 是安裝在 F:\ 下 , 
   但是移除之後重新安裝 VirtualBox 4.2.18時是選在 D:\ , 雖然 GenyMotion 也是移除重裝而且
   還手動刪除資料夾 , 但是 GenyMotion 還是讀取 F:\


   最後將  VirtualBox 重新裝在 F:\  , GenyMotion 就可正常運作了.


2013年9月4日 星期三

VirtualBox : 改變Android手機模擬器 GenyMotion 的虛擬硬碟目錄

VirtualBox : Version 4.2.16
GenyMotion : Version  1.1.0

預設目錄 :
 Win Server 2003 :
  • 虛擬硬碟 : C:\Documents and Settings\(你的電腦帳號)\Local Settings\Application Data\Genymobile\Genymotion\deployed
  • config files : C:\Documents and Settings\(你的電腦帳號)\.VirtualBox

Win-7 :
  • 虛擬硬碟 : C:\Users\(你的電腦帳號)\AppData\Local\Genymobile\Genymotion\deployed
  • config files :

虛擬硬碟的目錄底下會有你安裝的虛擬裝置(virtual devices)資料夾!

Solution :
0. 先關閉 VirtualBox 及 GenyMotion 程式
1. 建立預備要放置虛擬硬碟的目錄 : ex. F:\VirtualBox\
2. 複製或移動上述的預設目錄( ... deployed\*.*)至新增的目錄 ==> F:\VirtualBox\deployed\
3. 修改 config files : VirtualBox.xml 及 VirtualBox.xml-prev
     找到 node <MachineRegistry > <MachineEntry>
     將你要變更位置的裝置的 src 值改為新的位置即可.
     或者,
     搜尋所有  "C:\Documents and Settings\(你的電腦帳號)\Local Settings\Application Data\Genymobile\Genymotion\deployed"
    將其替換為你新建立的目錄, 例如我的就是 "F:\VirtualBox\deployed"
4. 儲存修改後的 config files , 重新開啟 VirtualBox


2011年6月29日 星期三

IE8 無法開啟 Hotmail 的信件

打開 "開發者工具" (F12) -->
最上方功能選單的 "停用" -->指令碼 : 將勾(v)移除

刷新網頁 , Hotmail上的功能即正常

2011年6月14日 星期二

Flex : Flash Builder 4 的 Auto Import 功能

由於習慣在 NetBeans 中開發 Java 程式 , 使用 Auto Import 是家常便飯.
因此在寫 Flex 程式時, 自然會想用類似的功能 , 當然不熟悉 Flex 也增加了這樣的需求.

發現到右鍵功能表中的 Quick Fix (Ctrl + 1 ) , 卻沒有作用.

找到一些方法, 都結合了 auto completion :

1. new <space>
2. var <varName:>

但有時候是使用 copy & paste 的方式 , 或是 static 方法 , 例如 Alert.show , 所以並不方便.

手中按著 Ctrl +1 看著沒有反應的畫面 , 突然心血來潮 , Ctrl +Shift + 1 , Bingo~~

會跳出 auto completion 的選單 , 只要選取就會自動將對應的 import 加入.

雖然不能像 NetBeans可同時處理整個 class 的 import , 但這樣已經可以省很多事了.

References:
http://blogs.adobe.com/jasonsj/2010/09/in-depth-code-hints-and-auto-import.html
http://livedocs.adobe.com/flex/3/html/help.html?content=code_editor_3.html

日誌是為了幫助記憶

日誌是為了幫助記憶 ~

寫日誌是件麻煩的事 , 可是遺忘常常更麻煩 , 有時還是個慘劇 , 對一個程式設計師而言.

所以開始記錄蟲蟲日誌 , 可惜五分鐘熱度 , 直到最近為了處理曾經交手的蟲蟲 , 想起了這個被荒廢的日誌 , 最後一篇竟然已是兩年前.

為了能夠持續 , 決定先不管別人是否看得懂 , 先記下再說.

至於增設這個日誌 , 是有些非關蟲蟲的記憶也有記下的必要 , 又不想混淆 .
並打算把一些散落四處的 .txt , .xsl , .doc , 甚至在  goole 文件中的片段文字也整理一下.

希望這次能多一點恆心....