Ubuntu 管理心得

搜尋此網誌

2022年5月18日 星期三

中文節名 section 亂碼

在 hyperref 前加上 unicode option, e.g

 \usepackage[unicode,pdftex]{hyperref}

cf: https://www.twblogs.net/a/5e4f26dcbd9eee101df702ee

2022年5月12日 星期四

Disable Spyder help hover

Tools > Preferences > Completion and linting > Introspection

Deactivate the option: "Enable hover hints"

2022年5月11日 星期三

Boshiamy for ibus cache and restart

  1. Use vim to edit liu_LA.txt. DO NOT use kate.
    Make sure press tab following the Chinese chars, e.g.

    elm     基本矩陣        100
     
  2. ibus-table-createdb -s liu_LA.txt -n liu_LA.db 
  3. sudo cp -f liu_LA.db /usr/share/ibus-table/tables/ 
  4. /bin/rm -rf ~/.local/share/ibus-table ~/.config/ibus ~/.cache/ibus ~/.cache/ibus-table
  5. Run ibus-setup to delete 嘸蝦米:
  6. Then, logout and login (It needs to do this!)


2022年5月4日 星期三

ubuntu 22.04 need php fpm

 Otherwise, the html lines inside php file would have error.

sudo apt install php8.1-fpm
sudo a2enconf php8.1-fpm
sudo systemctl reload apache2

clonezilla to small disk

Expert mode: 

  1. select -icds
  2. select -k1 (next window)

2022年5月2日 星期一

Array and string offset access syntax with curly braces is no longer supported

cd /usr/share/php/Spreadsheet/Excel/Writer/
Edit Parser.php, change all $xxx{yyy} to $xxx[yyy]
Inside vim, search, eq, $col_ss{$i}, using this
/\$.*{.*}
then relplace { and } with [ and ], using 
qqf{r[f}r]
then / -> enter -> @q

cd /usr/share/php
Edit OLE.php, change all $xxx{yyy} to $xxx[yyy]

網誌存檔