CCStudio is what our lab use for developing software on TI MSP430 board. Recently, version 9.2.0 of CCStudio is out, and I noticed that its UI now uses GTK+3 instead of GTK+2. In general this is a good change as GTK+3 has a better look-and-feel …
read moreOther articles
「臺灣學術網路網路語音交換平臺」憑證錯誤的問題
臺灣學術網路網路語音交換平臺 是一個提供 ZOOM 服務的平臺。用 eduroam 帳號登入並登記,就可以三人以上使用 ZOOM 超過 40 分鐘。LAB …
read moreWhat are public_key fields in GitHub gpg_keys API?
GitHub provides an API endpoint for querying users' PGP keys. For example, information about my keys can be found here.
In this JSON document, the raw_key is what programs like GnuPG need. What about public_key fields? GitHub official document says:
The data returned in the public_key response …
read moreGnuTLS無法連上部分台灣網站的問題
TL;DR - 請看最後一段的workaround。
今天台大計中的SSLVPN client pulse-secure升級到9.0r2.0了,我更新完之後測了一下,發現連登入的頁面都連不上
"Unacceptable …
read more犀利仁師觀後雜感
前陣子整理我的歌曲收藏。其中一首「不能說出口的諾言」沒什麼印象是從那邊聽到的。一查之下是2014年的電視劇犀利仁師 …
read more解決macOS分享的Wi-Fi使Line Points無法使用的問題
Line Points的頁面用Linux hostapd分享出來的Wi-Fi可以正常運作,然而用macOS的網路分享功能無法瀏覽。這個問題困擾了我好久。之前要開Line …
read moremacOS上df無法正確顯示中文
最近心血來潮,把工作環境設定為中文。在Linux下是開一個檔案
read more~/.config/locale.conf
,寫入LANG=zh_TW.UTF-8
。macOS下,iTerm2會自動設定LANG
和LC_CTYPE
這兩個環 …網站搬家
今天收到Let's Encrypt的通知信,說chyen.cc和*.chyen.cc的SSL憑證20天後過期。我這個網域名稱是在Namesilo買的。由於Let's Encrypt的wildcard certificate需要用DNS認證 …
read more在Firefox 59上使用郵局的WebATM
- 安裝郵局提供給Firefox/Chrome/Edge用的元件
- 啟動元件
- 匯入根憑證cacert.pem
進階玩法:VirtualBox NAT port forwarding
小小抱怨:WebATM元件一開機就會啟動,也不能 …
read more解決scrcpy crash的問題
之前聽說scrcpy可以把Android的螢幕同步到電腦上。第一次裝沒跑成功,crash了。
經過一番測試,發現似乎SDL(scrcpy用的GUI library)會嘗試載入ibus …
read moreFirefox Sync無法同步的問題
TL;DR security.nocertdb設定為true會讓Firefox Sync無法運作,改回false即可
最近發現我的Firefox Sync無法正常運作,在一台電腦上新加的addon沒有同步到 …
read more解決Arch Linux下emoji的顯示
KeePassXC在entry view裡加了不少欄位,其中一個是paperclip (📎, U+1F4CE)。在macOS正常,但在Arch Linux無法正常顯示,只有一個方框。裝了noto-fonts-emoji之後就正常了。
根據 …
read moreAUR cleanup
今天把yan12125/aur裡已經disowned的package都刪掉了。
yan12125/aur@47252d3d8020c1011068587355270d9ae62b9db5
有種斷捨離的感覺...
有些曾經是我追尋的目標,有則完全想不起來當初是用來 …
read more解決郵局webatm「請檢查晶片是否已依正確方向插入讀卡機」的問題
Revert Revert Revert Revert
安裝 Pelican
來玩玩自己的部落格~把pelican裝起來,寫篇測試文章
TODO:
- Deploy - 用git hook似乎是個選項
- Themes - http://www.pelicanthemes.com/上面滿多選擇的
- Git設定 -
.gitignore
, 放到Github …
有趣的書名
之前有出現過一波「從入門到XX」系列的惡搞書名,例如「PHP: 從入門到出軌」、「C語言:從入門到放棄」等等。這些都是惡搞合成的圖 …
read moreMac shortcuts are broken with UTF-8
Network is down after logged out
Recently I got a mysterious bug. I have a server, and whenever I logouts all sessions, its network is broken. I can neither ping it nor ssh into it.
The culprit is NetworkManager. "All users may connect to this network" is not checked, so only my account can access the …
read moreSelect printer with lpr
On Arch Linux, I use the following command to print documents:
PRINTER="the_printer_name" lpr ~/my_doc.pdf
It was always working yet broken with the latest version. A mysterious error appears:
$ PRINTER="the_printer_name" lpr ~/my_doc.pdf lpr: Error - scheduler not responding.
By tracing the codes …
read moreyoutube-dl on Android
最近在研究如何把youtube-dl跑在Android上(youtube-dl#967)。方法大致如下:
- 找一個可以跑的Python interpreter
- 把youtube-dl clone下來或是從yt-dl.org下載最新的tarball
- 用adb shell或 …
助教見聞錄 - 沒有回傳值的non-void函數
昨天有位小大一來問問題,他寫的code在local可以跑,但是上傳到Judgegirl都是wrong answer。
我看了一下題目,是要用遞迴計算 \(1^2 + 2^2 + \ldots + n …
read moreInstalling Octopress
弄個部落格放一些技術文章是我一直想做的事。之前試過幾個平台,例如PTT,Wordpress等等,都覺得差強人意。主要是貼code很不方便 …
read moreWelcome to Jekyll!
You’ll find this post in your
read more_posts
directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to runjekyll serve
, which launches a web server and auto-regenerates your site …中和路 and 永和路
OpenCV: strange return value of cvWaitKey()
In OpenCV, cvWaitKey() might be one of most frequently used functions in interactive applications. For example (code in C++):
while(true) { doSomething(); if(cvWaitKey() == 27) // 27 is the key code of Escape { break; } }
This works in Windows, but not work in Ubuntu. Both C++ version and python version can't catch …
read moreSFTP initial path
Google "sftp default path",大多數是用chroot的方式。但我的需求是一開始先切換到某個home以外的目錄,而不是將user鎖在某個目錄底下。轉念一 …
read moreHello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
It's the second time I install WordPress on my Apache server. The first time is not long ago, but everything seems easier then ever! WordPress is primarily written in PHP, so a little knowledge for …
read more