Do not use
\CJKencfamily{UTF8}{cwfsu}
use
\CJKencfamily{UTF8}{cwfsc}
Also, inside text contents use
\CJKencfamily{UTF8}{cwkc}
2019年12月5日 星期四
2019年11月5日 星期二
Wireless wakeup on lan
For my hp pavilion gaming 15 notebook:
iw phy0 wowlan show
sudo iw phy0 wowlan enable magic-packet disconnect
iw phy0 wowlan show
iw phy0 wowlan show
sudo iw phy0 wowlan enable magic-packet disconnect
iw phy0 wowlan show
2019年10月11日 星期五
2019年10月8日 星期二
Prevent break in inline math
Put the \nolinebreak in the place for not allowing line break, e.g.
\titi c=\titi a\oplus_{T_{p}^{\text{Y}}}\nolinebreak\titi b
2019年9月5日 星期四
MIssing glyphs
The following error while latexing (lyxing) may be caused by 文中有簡體字。例如:
"専案管理" 與 "專案管理", 前一個専是簡體,所以一直出現下列錯誤。
2019年9月1日 星期日
compiz put windows and other settings when not working
- Get into ccsm,
- goto 偏好設定 -> 外掛清單,
- unclick 外掛程式自動排序
- 啟用的外掛
- click "place"
- click "向上" on the bottom
- all the way to the top, then maybe stop at "regex"
- click 外掛程式自動排序 back
- 返回 on the lower left
- goto 視窗管理
- get into 放置視窗 and then change the way what you want
- Done.
2019年8月20日 星期二
Switch monitor with xrandr command line
Set viewsonic as main, then hp:
xrandr --auto --output eDP-1 --mode 1920x1080 --right-of HDMI-1-2
Set hp as main, then viewsonic:
xrandr --auto --output HDMI-1-2 --mode 1920x1080 --right-of eDP-1
Turn off hp:
xrandr --auto --output eDP-1 --off --right-of HDMI-1-2
Turn off viewsonic:
xrandr --auto --output HDMI-1-2 --off --right-of eDP-1
xrandr --auto --output eDP-1 --mode 1920x1080 --right-of HDMI-1-2
Set hp as main, then viewsonic:
xrandr --auto --output HDMI-1-2 --mode 1920x1080 --right-of eDP-1
Turn off hp:
xrandr --auto --output eDP-1 --off --right-of HDMI-1-2
Turn off viewsonic:
xrandr --auto --output HDMI-1-2 --off --right-of eDP-1
2019年8月19日 星期一
setup nvidia for hp pavilion gaming 15
- Reboot
- F10 enter BIOS
- System Configureation -> power -> Security Boot
- disable
- Follow the screen message, enter 4-digit then press enter
- boot into ubuntu
- sudo apt purge nvidia*
- sudo apt update
- sudo apt-add-repository ppa:graphics-drivers/ppa
- Run 額外驅動程式,click Nvidia-430
- Reboot
2019年8月17日 星期六
software-properties-gtk no working 無: 套件庫 額外驅動程式
cf: https://askubuntu.com/questions/789966/software-updates-crashes-and-will-not-open
Reinstall with this line:
Reinstall with this line:
sudo aptitude reinstall apt apt-utils aptdaemon aptdaemon-data update-manager update-manager-core dbus
2019年8月16日 星期五
accented european letter in bibtex
{\"a} {\^e} {\`i} {\.I} {\o} {\'u} {\aa} {\c c} {\u g} {\l} {\~n} {\H o} {\v r} {\ss}
2019年8月11日 星期日
Enable HP Pavilion HDMI for Ubuntu
- 額外的驅動程式,click 430
- 輸入 security password
- reboot
- enroll emks ( something like this ?), DO NOT just click continue, Have to enroll first !
- reboot
- HDMI should be ok.
- check if the module is enabled by issuing:
lsmod | grep nvidia
or
run nvidia-settings
2019年8月1日 星期四
Install operation system on SD fron linux
sudo dd bs=4M if=ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img of=/dev/sdX status=progress conv=fsync
2019年7月29日 星期一
line 無鈴聲
設定 -> 提醒 -> 提醒鈴聲
換另一個鈴聲,例如: LINE (歡樂版),
關掉 line,再進入 line
就應該有聲音了。
可以再重覆一次,選回原來自已喜歡的鈴聲。
測試方式:
可開啟 Line 的提醒,打開在 PC 上的line,聽聽看手機上的line 有無聲音。
換另一個鈴聲,例如: LINE (歡樂版),
關掉 line,再進入 line
就應該有聲音了。
可以再重覆一次,選回原來自已喜歡的鈴聲。
測試方式:
可開啟 Line 的提醒,打開在 PC 上的line,聽聽看手機上的line 有無聲音。
2019年7月26日 星期五
Post setup raspbian
sudo apt install motion aptitude vim package-update-indicator incron krusader fcitx-table-boshiamy lynx screen
- incron:
edit /etc/incron.allow, add these:
root
pi
incrontab -e , add this line:
/home/pi/webcam/ IN_CREATE /usr/bin/rclone copy /home/pi/webcam/* mydropbox:webcam/FrontDoor
sudo systemctl restart incron
setup motion in raspbian
- sudo apt install motion
- edit /etc/default/motion,
start_motion_daemon=yes - edit /etc/motion/motion.conf
output_pictures on
locate_motion_mode on
picture_filename %Y%m%d/%H/%M%S-%q
stream_localhost off
stream_port 8081
webcontrol_localhost off
# stream_nrt 8081
ffmpeg_output_movies off - sudo systemctl restart motion
2019年7月22日 星期一
中文的"圖"、"表"
Put the followings into TeX box inside lyx, NOT in preample:
\renewcommand{\figurename}{圖}
\renewcommand{\tablename}{表}
also
\renewcommand{\theoremname}{定理}
\renewcommand{\definitionname}{定義}
\renewcommand{\corollaryname}{推論}
\renewcommand{\refname}{參考文獻}
\renewcommand{\tablename}{表}
also
\renewcommand{\theoremname}{定理}
\renewcommand{\definitionname}{定義}
\renewcommand{\corollaryname}{推論}
\renewcommand{\refname}{參考文獻}
2019年7月20日 星期六
Show footnote wtih visiable rule
Put this into preample:
\renewcommand\footnoterule{%
\kern -3pt
\hbox to \textwidth{\vrule height 0.4pt width \columnwidth}
\kern 2.6pt
}
2019年7月18日 星期四
2019年7月13日 星期六
Capital letter in bibtex
In bib file, add {} for the word with first capital letter,
e.g.
title="Controllable Fuzziness of General Fuzzy Numbers Addition Based on {Yager} T-norms",
then the title in Reference will display the Yager rather than yager.
e.g.
title="Controllable Fuzziness of General Fuzzy Numbers Addition Based on {Yager} T-norms",
then the title in Reference will display the Yager rather than yager.
2019年7月3日 星期三
Reomve obsolete packages
The 'rc' status means the configuration files of the removed packages are not removed. Issue the following cli command to remove them.
sudo dpkg -l|grep "^rc"|awk '{print $2}' | xargs sudo apt-get remove -y --purge
sudo dpkg -l|grep "^rc"|awk '{print $2}' | xargs sudo apt-get remove -y --purge
2019年6月18日 星期二
my new word is in ehchant
This file,/home/chiao/.config/enchant/en_US.dic contains my new words from lyx.
2019年6月16日 星期日
2019年6月10日 星期一
2019年6月9日 星期日
2019年6月8日 星期六
2019年6月4日 星期二
Beamer compile error
This is caused by my installation of old beamer in /home/chiao/texmf.
/bin/rm -rf /home/chiao/texmf/tex/latex/beamer
/bin/rm -rf /home/chiao/texmf/tex/latex/pgf
texhash /home/chiao/texmf
/bin/rm -rf /home/chiao/texmf/tex/latex/beamer
/bin/rm -rf /home/chiao/texmf/tex/latex/pgf
texhash /home/chiao/texmf
2019年6月2日 星期日
latex code to word , libreoffice
In LyX, export (匯出) "MS Word Office Open XML". Then open it in word.
In LyX, export (匯出) "OpenDocument (Pandoc)". Then open it in libreoffice.
In LyX, export (匯出) "OpenDocument (Pandoc)". Then open it in libreoffice.
2019年5月25日 星期六
Break the long in-line math
If the in-line math contains too long expression, e.g, parenthesis, just add an math space in between the equality and the left parenthesis. Then the line will be broke at the math space. The following graph is the lyx source:
Note that there is math space. The following is the pdf graph.
Or put \allowbreak in the place for breaking line, e.g.
The pdf output is
Or put \allowbreak in the place for breaking line, e.g.
The pdf output is
2019年4月2日 星期二
訂閱:
文章 (Atom)
-
cf: https://ubuntuhandbook.org/index.php/2022/01/default-torrent-app-magnet-links-ubuntu/ Set “QBittorrent” as default app for magnet link,...
-
Download 7z-exe: https://www.7-zip.org/ Get into cmd window cd Z:\Classes\109year\Semester2\Calculus\B\HW\HW7 md files "C:\Program Fi...
-
Setting up Google Drive with rclone config involves creating a "remote" connection through an interactive terminal wizard. S...













