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


升級 Mysql 遇到的坑

因為一些原因,需要在 CentOS 6 上使用 mysql 5.7。看了一下才發現這台 server 上的 mysql 是 5.1 版,找了一些方法裝完後,才發現是悲劇的開始⋯ 這邊先來個 tl;dr cd /tmp wget http://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm sudo yum localinstall Read more

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

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

ubuntu 取得 root 權限

ubuntu 雖然已經可以用 sudo 的方法來暫時取得 root 權限 但還是會有無法只靠 sudo 來完成動作的時候 如果沒記錯的話, 遇到那個情況時,螢幕上會跳出「請輸入 root 密碼:」的 Read more

Geng-Zhi Fann © 2018

Powered by Hugo & Kiss.