Google Flutter build winodws app error:Bad UTF-8 encoding...

 最近在研究google flutter這個跨平台的程式語言,已成功建置andriod與web,今天來測試windows的部份。

我已經安裝好vistual studio 2022 Community版,接著執行flutter doctor來檢查,結果出現下列的錯誤:Bad UTF-8 encoding found while decoding string


在這裡有提到解決的方案:
https://github.com/flutter/flutter/issues/102451#issuecomment-1124651845

依說明到 https://github.com/microsoft/vswhere/releases 下載vswhere.exe,並把它取代原本的檔案。
vswhere.exe路徑:C:\Program Files (x86)\Microsoft Visual Studio\Installer

完成後,重新執行flutter doctor檢查,這次檢查就成功了,接著再執行flutter build windows來建置也沒有問題了。



啟動Android Emulator時出現could not detect ADB binary

 我在開啟android Emulator時出現一個訊息如下,主要是說沒有辦法自動發現ADB binary


此時可以在模擬器中手動定ADB的路徑位置,如下圖,先把「Use detected ADB location」的選項取消掉。


取消後就可以手動選擇ADB的路徑如下圖。



Android Emulator在Win10啟動時出現Another emulator is still running

 今天在嘗試學習Fultter時,安裝完Android Studio與設定好emulator後,在命令列執行指令以啟動emulator時出現下列的錯誤:

WARNING | Another emualtor is still running, wait for a sec...

其實訊息明白是說已經有一個emualtor在執行,但是我卻沒有看見任何的emualtor。

在Win 10下,Android是使用qemu_system_x86_64.exe來管理虛擬機,所以開啟工作管理員後,再把qemu_system_x86_64.exe刪掉後就可以了。






D3.js:利用image()函數來加入圖片

下列是程式碼範例,利用image()函數來加入圖片

svg_01 = d3.select("#div01").append("svg")

        .attr("width", "100%")

        .attr("height", "100%")

        .attr("viewBox","0 0 300 80")

        .attr("id", "ID001")

        .append("g")

svg_01.append("svg:image")

    .attr('x', 100) //x座標

    .attr('y', 100) //y座標

    .attr('width', 150) //指定圖片寬度

    .attr('height', 150) //指定圖片長度

    .attr("xlink:href", "img/001.png") //圖片路徑與檔名

Oracle ERP : 刪除使用者的Folder

 有一位使用者在設定Folder時,不小心設定錯誤,導致Form一直在轉圈圈,無法正常運作。

因為Form一直在圈圈,所以使用者無法自行刪除這個錯誤的Folder。

此時可以用管理者權限來刪除使用者的Folder,路徑:System Administrator -> Application -> Administer Folders

有三個選項可以找出Folder,找到之後在工具列上按下刪除鍵即可