耿 . Front-end Developer . Firefox Add-on Developer

error: could not install smartsocket listener: Address already in use

I like to flash my smartphone. There are two tools we should use when flashing: adb and fastboot. But I met a problem: I want to run new adb server, but it keep showing this message: error: could not install *smartsocket* listener: Address already in use and I gave a command ps aux | grep adb, then I got: READMORE wildsky 7456 0.1 0.0 9988 1916 ? Ss 20:43 0:01 /home/wildsky/Desktop/FlashTool/x10flasher_lib/adb. Read more

concat two mp4 files

I want to combine two mp4 files together, so I found a command: ffmpeg -i "concat:input1.mp4|input2.mp4|input3.mp4" -c copy output.mp4 But it doesn’t work. After my searching, I finally got the solution: ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4 That’s it! ref: https://superuser.com/a/1059261

Vim 上 8.0, Vundle 換 vim-plug

今天在 Vim 的 Telegram 群組中被 OThree 推坑,把 Vim 升上 8.0 了,其實感覺也沒有什麼太大的改變。 升級指令就下這個: brew install vim --with-override-system-vi 升級後重開 Terminal 就會是 8.0 的 Vim 了。 升級完了以後就 Read more

讓 Mac 上的 Chrome 瘦身

剛剛在整理電腦時,發現 chrome 居然佔用了 2GB 的空間⋯⋯ 迅速查了一下才發現原來是他把一堆舊版本的資料全部都保留下來了。 (都存放在 /Applications/Google Chrome.app/Contents/Versions/ 下面) 這種行為真的 Read more

從 vim 跳槽到 emacs

可能身邊的人都知道,我最近從 vim 跳到 emacs 了。 其實也沒有什麼特別的原因,只是突然想要玩一下, 又想著,要學會就要讓它融入生活中,就跳過來了。 真要說的 Read more


因為報告的需要,所以就寫了這篇文章,之前上課上到的時候就想要記錄下來, 但一直拖稿拖到現在XD 剛好藉著交報告的這次機會把這邊文章寫一寫。 (雖然 Read more

Preparation for building Firefox under Fedora

Today, I want to build Firefox myself. So I found this post: Simple Firefox build, and there is a link, which could help me setup the prerequisites. The link is Linux Build Prerequisites. But when I followed the instruction and input this command: wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py -O bootstrap.py && python bootstrap.py Something weird happened!! It sayed that: Your version of Mercurial (3.5.1) is not modern enough. Traceback (most recent call last): File "bootstrap. Read more

Geng-Zhi Fann © 2018

Powered by Hugo & Kiss.