Notes

Wake On LAN

After allowing Wake On LAN in the BIOS (example), we need to setup the OS to allow Wake On LAN. For Ubuntu Desktop, see the Debian guide. For Proxmox V...

ArXiv Upload Success but No PDF Output

If your arXiv logs show that it is using hlatex, then you can add \pdfoutput=1 in the beginning of your LaTex file to switch to using hpdflatex. Reference: ...

Windows Startup Folder

Win + R and enter shell:startup. Reference: Add an app to run automatically at startup in Windows 10

Xbox Controller Keep Turning Off

Connect controller via cable [Device Manager] -> [Xbox Peripherals] -> [Xbox Controller] Right click -> [Properties] -> [Power Management]...

Proxmox VE VM Setup Notes

Some setup scripts / guides for VMs in Proxmox VE. This note is highly dependent on the following repo: https://github.com/j3soon/linux-scripts

Proxmox VE GPU Passthrough Report

Some notes and references on the GPU passthrough settings. The guide is a sufficient condition for GPU passthrough, not a necessary one. Keep in mind that t...

Free Remote Desktop Software

For commercial use, you can use RustDesk, or Google Remote Desktop (doesn’t support Linux). For personal use, you can further use TeamViewer, Anydesk, RealV...

CUDA and cuDNN Version

How to retrieve CUDA and cuDNN versions. Please note that the CUDA version in nvidia-smi does not show the currently installed CUDA version. Instead, it sho...

Increase VirtualBox Disk Size

Resize VDI with File > Virtual Media Manager. If you are using snapshots, remember to resize all snapshots. Reference: resize vbox disk.vhd w...

CentOS 6 Setup

CentOS 6 is in archived state, but may still be used for education purposes. This post guides you through the installation process: (1) Download ISO file (2...

Dropbox Stop Syncing on Linux

Dropbox may stop syncing on Linux without any error message. The issue may arise from 2 causes: The user does not have the privilege to access the files t...

OneTab delete all saved tabs script

OneTab is a nice extension, but it becomes very slow when we have about 10k tabs. There aren’t options in OneTab to delete all tabs after exporting them. So ...

Eslint and Egg.js lint error

Using Eslint with egg.js will have errors when linting files using: eslint --fix --ext .js,.vue --ignore-path .gitignore .

Clean Unity GI cache

Open a Unity project: Edit > Preferences > GI Cache > Clean Cache In my case I cleaned 10 GB of caches. Further Reading Manual: GI cache | Uni...

Windows 100 percent disk usage

My computer still has the 100% disk problem, however it seems to happen less by following the steps below: Disable Windows Search, Superfetch. Disable ...

No sound on Windows

There’s a audio bug in Windows 10, the sound icon at the notification bar is normal, but there’s no sound. When this problem occurs, Youtube might freeze, a...

Emacs slow when viewing certain text

當 Emacs 裡面有「硬值」、「說明」、「內文」、「閱讀」、「腳」這幾個字時,org mode 會變很慢很慢,但刪掉後就沒事了。後來確認是因為字形的問題。可以從這邊 下載微軟雅黑體 (Microsoft YaHei Mono), 然後在 Options > Set Default Font... 裡面更改...

Turn off Windows Defender AntiVirus

If you’re a superuser, you might think Windows Defender’s AntiVirus is slowing your computer. If you don’t want this feature, you can disable it. Go to rege...

Git error when pushing large LFS data

When pushing large files to GitLab or some other remotes, sometimes it will fail. We can fix it by the following command: git config http.postBuffer 5242880...

Hinet webmail settings on ThunderBird

Setting up Hinet Webmail on mailing programs are such a hassle. By changing Outgoing Server to msr.hinet.net. In ThunderBird settings: Tools->Account Set...

Unity output to UWP

Unity is a cross-platform game engine. When we want to export our game to Windows Store, it will show you a bunch of errors. The article below is some notes ...

to_string is not a member of std

When using Code::Blocks, I get the error when using MinGW g++ to compile: to_string is not a member of std. This is actually a bug of MinGW, which can be fi...

NoteBook FanControl

If your notebook’s fan is always on for some unknown reason, its fan settings might be changed to always on. You can change it back in the BIOS or using the...

mac OSX High Sierra on VirtualBox

Follow the steps here. If you encountered the problem that the downloaded Install High Sierra file only has 19MB. Then, check your OSX version and App Stor...

My AStyle arguments

The settings I used in my vimrc for code formatting: " Need astyle installed autocmd BufNewFile,BufRead *.c set formatprg=astyle\ -A1xjxVpSNYk1Hm0xwxWO auto...

Auto indenting, formatting your code

將你的程式碼自動縮排/美化。 手動縮排程式碼是一個好習慣,但是程式碼一變長,或是一次性刪減很多不同的地方,甚至是幫別人 debug 沒編排好的 code 時,自動縮排快捷鍵就會變得非常方便。以下介紹一些 C/C++ 比較常用的 IDE 中如何使用自動縮排。 如果有自己愛用的 IDE 沒有被列在下面也歡迎告知我...

Markdown to PDF using Pandoc

Convert to PDF file When I use pandoc to convert markdown to pdf on Windows. The command below fails and give me an error message.

將 AIM & XNAT 的原始碼和 ClearCanvas 整合在一起

在網路上有個能做醫學影像標記的開源專案 AIM on ClearCanvas 他目前出到第 4.5 版,我想要修改其中有發現的一些 bugs. 因為過程中遇到了很多問題,花了很多時間才解決(快整整三天),於是我把我的經驗整理一下,以供日後參考。

NuGet pack dollar version error

When executing nuget pack [ProjectName].nuspec The error message occured: Value cannot be null or an empty string. Parameter name: value It’s caused by the...

Change cursor position using SendInput

The dx, dy in MOUSEINPUT should be within [0, 65535] when using absolute coordinates. And the currect formula should be: dx := x * 65536 / ScreenWidth + 1

Premiere timeline preview bug

If the timeline preview in Adobe Premiere keeps shaking back and forth, try to remove the audio input. Set Edit->Preferences->Audio Hardware->Deafa...

C# Unit Test with IO Hack

When you want to test a simple I/O function that won’t change parent directories and files, you can just add a file in the test project and set it to Always ...

Installing Plugins in GIMP

Download Plugins or Scripts You can find plugin in registry.gimp.org. Extracting the downloaded plugin packages to files with extensions like .scm, .py....

Invert colors on Windows

Open Magnifier. Turn on color inversion option. Ctrl+Alt+F to active (Full Screen) Ctrl+Alt+D to disable (Docked)

Open Command Window Here

In File Explorer, hold Shift when right-clicking on a blank space in the desired folder bring up the Extended Context Menu. One of the options is Open Comman...