Sunday, April 25, 2021

HOWTO convert webp to png, and from webm to mkv with ffmpeg

 # image conversion

convert input.webp output.png


# video conversion

ffmpeg -i input.webm  -c:av copy  output.mkv

Labels: , , , , , ,

HOWTO batch processing images on linux or mac osx

#  batch enhance images or batch making thumbnails


for file in *.jpg; do

  convert -enhance -equalize -contrast $file "${file%.jpg}_new.jpg"

done



# other options calling convert

#  convert -auto-gamma -auto-level -normalize original.jpg improved.jpg

#  convert dragon.gif    -resize 64x64  resize_dragon.gif


# ref:  http://www.imagemagick.org/Usage/resize/




Labels: , , , , , , , , ,

Thursday, April 15, 2021

dictionary word lists

every unix-based os has a dictionary word file 


$ wc  /usr/share/dict/words

  235886  235886 2493109 /usr/share/dict/words



online resources


http://wordlist.sourceforge.net/


Labels: , , , ,

Sunday, April 11, 2021

mx linux 加 倉頡輸入法

(for English, scroll down to the bottom)

單擊左下方Menu,開 "mxlinux package installer"

搜尋 Chinese input

安裝


在 stable repo 之下

選 ibus cangjie 3

(如果需要輸入 簡体字,可用 cangjie 5, 詳見 https://zh.wikipedia.org/zh-tw/倉頡輸入法)

安裝然後退出


單擊 menu

選 ibus preference

在 English 外加 cangjie input

如有需要,改鍵盤熱鍵

退出


登出再登入,或重啟電腦


好了,have fun!



* * * 

from start (menu), launch  "mxlinux package installer"

search for chinese input

click install


in stable repo

select ibus cangjie 3

click install


close


menu> ibus preference

add cangjie input along with english

change keyboard short-cut if required

close


restart computer (or relogin should work)

Labels: , , , ,