2023年4月27日 星期四

sendtokindle : fix cover missing problem

add this line into xxx.opf (ex. content.opf)

 <item id="cover" href="PATH/cover.jpg" media-type="image/jpeg" properties="cover-image"/>

2023年4月9日 星期日

epub to Kindle, fix TOC missing problem

unzip epub file, 
1. check for opf file
<item href="toc.ncx" id="toc.ncx" media-type="application/x-dtbncx+xml"/>
<spine toc="ncx">

in these two tag, item with type x-dtbncx+xml, id must show in spine
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>

2. check for toc.ncx 
src="...", check its path, correct it from toc.ncx path

話說, Kindle format convertor 對於 epub 容錯性很低啊


2023年2月14日 星期二

台灣台語? 三小?

最近常在公視聽到這一詞'台灣台語', 這三小?

難道還有美國台語? 日本台語? 馬來西亞台語?


2023年1月10日 星期二

audio related problem

1. pactl error in crontab script

**** XDG_RUNTIME_DIR=/run/user/$(id -u) /path/to/script

pactl 是用來 heartBeat bluetooth speaker 的, 因為15min不用會入睡, 既不想站起來按一下, 也不想設為永遠不入睡, 只好寫了個 heartBeat scrip, 每10min就 pactl set 一下

...原以為因為是這樣才不入睡的, 結果過去幾天都fail還是沒入睡?


2. headphone volume control fail

in /etc/pulse/default.pa 

  load-module module-udev-detect ignore_dB=1 -> for MM-1 volume control problem

but this option make headphone volume control fail


2023/07/24 update, alsamix -> headphone volume increase to normal

load-module module-alsa-sink control=PCM


3. microphone

/etc/pulse/default.pa set-source-volume 1 300000

/etc/pulse/daemon.conf avoid-resampling = yes

4. restart pulseaudio

pulseaudio -k
pulseaudio --start

2022年12月29日 星期四

ubunth bluez problem

1. prepare

apt install python3-bluez

2. for python 3.10 

pip install git+https://github.com/pybluez/pybluez

3. about battery

PauseAudio enable Battery info in 2022 (?)

pactl list cards | grep battery will show battery percentage

also show in /var/log/syslog like this

  pulseaudio[1226]: Battery Level: 100% 

for unknown periods

2023/01/07 modified : ignore anything about "-E" or Experimental option, don't care about complain in syslog, just look syslog, or "pactl list cards" to get battery level

with "-E" option, or use blueman "battery option" , the red power indicator always show on indicator area, anonnying!


and it complain about "Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)?" even if modify daemon script to start with -E.

sudo vi /etc/systemd/system/bluetooth.target.wants/bluetooth.service

sudo systemctl daemon-reload

sudo systemctl restart bluetooth

the battery report seems related to this "-E flag", not sure

2022年7月8日 星期五

install vmware on Ubuntu 22.04

 先去抓 vmware bundle (好煩)

裝好了會遇到 vmmon vmnet install fail

去 https://github.com/mkubecek/vmware-host-modules/tags 抓

make, sudo make install

然後 vmware 還是 fail (夠煩的)

說是找不到 version.h 

在 /usr/include/linux/version.h 啦, copy 到 vmware 以為的path, 然後就可以了

2022年7月3日 星期日

如果大家都說母語?

 金曲獎

主持人羅時豐七八成使用台語(他的母語是客語吧?)

原住民歌手簡春燕使用的是阿美語(應該是吧?)

客語歌手黃連煜致詞用的主要是客語

新加坡歌手蔡健雅努力的用了通用華語, 但忍不住摻了英語

金曲獎是不是該配些口譯者,....增加就業機會?