IT漫步

技术生活札记©Yaohui

Collecting User-Mode Dumps for Windows Applications

By the sytem: https://learn.microsoft.com/zh-cn/windows/win32/wer/collecting-user-mode-dumps REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpType /t REG_DWORD /d 2 /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpCount /t REG_DWORD /d 3 /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpFolder /t REG_EXPAND_SZ /d C:\app\CrashDumps /f By programmatical: https://stackoverflow.com/questions/1547211/how-to-create-minidump-for-my-process-when-it-crashes#1547251





Powershell: Copy-Item doesn’t work when file name contains square bracket ([]) characters

I have a file whose name contains square bracket characters, and I want to copy the file to another location via Powershell. So I use the Copy-Item founcation to do this. like this: Copy-Item -Path "C:\FileTest\1\[Control]Test.txt" -Destination "C:\FileTest\2\[Control]Update.txt" No errors occurred when executing the script, but the target file was not copied either. After looking …


Follow the official document to install docker on debian/jessie meets an error

Update the apt package index and install packages to allow apt to use repository over HTTPS: apt-get update apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release Add Docker’s official GPG key: curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg Use the following command to set up the stable repository echo \ "deb [arch=$(dpkg …


Powershell does not support pass Boolean parameter when -File parameter is used

Let’s say there is a Powershell script file named test.ps1 with the following content: param ([Boolean] $FromSchTask) if ($FromSchTask) { echo Yes } else { echo No } When I run this script with -File parameter in command prompt by powershell.exe, for example: C:\>powershell.exe -ExecutionPolicy bypass -File ./test.ps1 -FromSchTask $True It will throw the following …


iBus not working on Ubuntu 20.04.4 LTS, 无法在Ubuntu中输入中文

问题现象 Ubuntu 20.04.4 LTS 添加汉语语言 安装完iBus及相关的输入法 (ibus-pinyin, ibus-table-wubi)后,就算是切换到zh语言也无法输入中文字符 换成fcitx后解决: 安装fcitx: $ sudo apt install fcitx 打开工具 Language Support/语言支持, 把Keyboard input method system改成fcitx 安装五笔输入法 $ sudo apt install fcitx-table-wubi 按Ctrl + Space或Left Shift在中英文之间切换 按Ctrl + Shift在不同的中文输入法之间切换




Proudly powered by WordPress