2023-11-30

運行 Bootrec.exe

 如果Windows開機修復不起作用,則可以在Windows 11/10/8/7中使用Bootrec.exe修復克隆的SSD無法啟動的問題。

1. 從 Windows 安裝光碟開機。選擇 "修復您的電腦" -> "疑難排解" -> "進階選項" -> "命令提示字元"。

2. 在彈出的命令提示字元中,輸入以下命令來修復 Windows 10/11 無法開機的問題。

Adjustable parameters

Depending on your situation, you can choose one of four options for fixing boot errors:

1. Bootrec.exe / fixmbr: needed to fix problems with MBR corruption, also allows you to remove non-standard code from the MBR (this option does not overwrite the existing partition table).

2. Bpptrec.exe / fixboot: This option writes a new boot sector to the system partition. It can be used when:

  • The boot sector gives way to non-standard boot Windows Vista and Windows 7-10.
  • The boot sector has been corrupted somehow.
  • An earlier Windows OS is installed after installing Windows Vista and Windows 7-10.

3. Bootrec.exe / scanOs: Helps when Windows Vista, 7, 8, or 10 installations are not listed in the Boot Manager menu.

4. Bootrec.exe / rebuildbcd: Used to completely rebuild the BCD store.

2023-09-26

T48 燒錄器出問題

 
Xgpro (v12.60) -> Tools(V)-> System Self-check 出現以下錯誤: ( T48 firmware Ver. 1.28)




解法 : 安裝新版 Xgpro (v12.63) 程式, 再插入 T48, 之後即可 refresh firmware to Ver. 1.30. 即可解決. 
           *** 注意夾具必須先鬆開
困擾 : 在 T48 出問題及無新版 Xgpro 程式更新的情況下, 即使重新安裝 Xgpro 程式, 或降版都無法 refresh firmware. 有甚麼方式強制更新 firmware. (c:\updateII.dat, updateT48.dat, updateT56.dat)

I think I found what to do at the bottom of the readme https://github.com/blurpy/minipro
>>>

Update firmware

You wont find the firmware as a standalone download, so you need to download the Windows software Xgpro from the homepage. If the homepage is too slow, there is a mirror here: https://github.com/Kreeblah/XGecu_Software

Unrar the downloaded file to find a Windows executable. Unrar the executable to find the firmware file updateII.dat. Both unar and unrar are examples of tools that can extract the files.

$ unar XgproV1181_Setup.rar
$ unar XgproV1181_Setup.exe
$ unrar x XgproV1181_Setup.rar
$ unrar x XgproV1181_Setup.exe

Update the firmware like this:

$ minipro -F updateII.dat

Troubleshooting

I tried to update the firmware using a virtual machine with Windows and the official Xgpro software once. The programmer was functioning fine in the VM, but updating the firmware failed with no reason given. The programmer did not function anymore after that. Any command issued with minipro gave me the message "Found TL866II+ in bootloader mode" and quit. After reading this issue it looked like the firmware update process in minipro is much more reliable than the official software, so I tested, and the update completed successfully, and the programmer was once again working.


>>>
minipro 是 linux 程式, windows 下的 xgpro.exe 是否也有類似的 options 呢?




2023-08-03

How to share folder of Windows host to Debian 12 Guest OS on Vmware Workstation

 1. virtual machine setting->Options->Shared Folders

2. check whether any shared folders are available:

vmware-hgfsclient

3. edit /etc/fstab and add:

vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0

4. make sure the target folder exists. If not:

sudo mkdir /mnt/hgfs

5. the remount:

sudo mount -a 

2023-07-06

vmware workstation pro no sound

 Host OS : Windows 10

Guest OS : debian 12

MB : ASUS_TUF-GAMING-B550-PLUS



Solution : Install Audio driver from ASUS. Then enable "Stereo MIX"



2023-02-26

富邦證券的E01交易軟體, 使用及新安裝時出現亂碼

 


解法 : 設定>時間與語言>語言>系統管理語言設定(在右側)>系統管理>變更系統地區設定>取消 "Beta : 使用 Unicode UTF-8 提供全球語言支援(U)">重開機

2023-01-06

【PYQT5】retranslateUi()

 作用就是重新編譯一遍 UI. retranslateUi 給這些widgets賦值文本和標題,需要翻譯的順便翻譯了

一般放在 UI 設計代碼的後面. 

2022-12-29

PyQt6-tools 安裝 Qt Designer

>>> 目前 (2022/12/29) 只有 python 3.9 下可成功安裝 pyqt6-tools/pyqt5-tools (順便安裝 pyqt6 or pyqt5 & Qt Designer.exe)


另外有 5 種方法可取得 qt designer.exe. 但多少都有些問題.

1. 直接下載 Qt designer 安裝檔 : Qt Designer Download . 開啟 designer.exe, 查詢 help -> about plugins, 會出現錯誤."cannot load library c:\program files (x86)\qt designer\plugins\designer\pyqt5.dll: unknown error 0x000000c1"

2. 安裝 Anaconda (非常肥大), 會自帶 Qt designer, 但卻無法啟用. (solved)

3. Install Qt Design Studio . 執行  qt-unified-windows-x64-4.6.1-online.exe, 但只選 Qt Design Studio.


 即可在 C:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin 找到 designer.exe
4. pip install pyqt5designer. 僅安裝 Qt Designer. (不含 pyqt5 及 pyqt5-tools)
5. 在 GitHub 中尋找 QtDesigner


>>> Qt Designer中文頁面改成英文方法

在使用 Qt designer 時,中文看起來比較彆扭,想將其改成英文界面,發現工具根本沒有提供更改語言入口。

解決方法:

1、找到Qt庫安裝目錄,找到翻譯文件目錄 (C:\Users\Cliff\AppData\Roaming\Python\Python39\site-packages\qt6_applications\Qt\translations)

2、進入翻譯文件存放目錄

3、將上面兩個文件做名字替換,designer_en.qm名字改成designer_zh_CN.qm,designer_zh_CN.qm

文件可以命名其文件(建議將其改成designer_en.qm)

4、重啟設計器即可