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日 星期二
2019年3月25日 星期一
Copy drupal from kpchiaoi5 to kpci7
In kpchiai5:
In kpci5:
- mysqldump -u drupaladmin -h localhost --skip-lock-tables -p drupal > drupal_20160826_kpchiaoi5.sql
- gzip -9 drupal_20160826_kpchiaoi5.sql
- sudo tar zcvf public_html_drupal_20160826_kpchiaoi5.tgz public_html/drupal
In kpci5:
- download from kpchiaoi5: drupal_20160826_kpchiaoi5.sql.gz, public_html_drupal_20160826_kpchiaoi5.tgz
- gzip -dc drupal_20160826_kpchiaoi5.sql.gz | sed -e '/^UNLOCK/d' -e '/^LOCK/d' > ~/a.sql
- Using phpmyadmin to drop all drupal tables.
- mysql -u drupaladmin -p drupal < ~/a.sql
- sudo tar zxvfp public_html_drupal_20160826_kpchiaoi5.tgz -C /home/chiao
- sudo chown -R www-data.www-data /home/chiao/public_html/drupal (IMPORTANT!!!!)
- 6. 設定 -> 開發 -> 效能 -> 清除所有快取
2019年3月24日 星期日
For drupal having “htaccess: Options not allowed here” error
Edit /etc/apache2/mods-available/userdir.conf, add Options in AllowOveride, namely,
AllowOverride FileInfo AuthConfig Limit Indexes Options
AllowOverride FileInfo AuthConfig Limit Indexes Options
2019年3月15日 星期五
Prevent dash on the repeated author for IEEE bibliography
https://kpchiaoo.blogspot.com/2019/07/bibtex-citation-with-author-for.html
- Put the following line inside bib file, @IEEEtranBSTCTL{IEEEexample:nodash,CTLdash_repeated_names = "no"}
- Put the TeX ERT inside lyx file contains
\bstctlcite{IEEEexample:nodash} - Make sure "nodash" in both files are the same
- Or edit IEEEtrans.bst, change # 1 to #0 as follows:
% #0 turns off the "dashification" of repeated (i.e., identical to those % of the previous entry) names. The IEEE normally does this. % #1 enables FUNCTION {default.is.dash.repeated.names} { #1 }
2019年3月3日 星期日
2019年3月2日 星期六
2019年3月1日 星期五
ssh without password
Let Client be A, and Server be B.
Then inisde A, run this line: ssh-keygen -t rsa
Press Enter 2 or 3 times. Then copy/append the contents in id_rsa.pub to B:$HOME/.ssh/authorized_keys2
Done!
Then inisde A, run this line: ssh-keygen -t rsa
Press Enter 2 or 3 times. Then copy/append the contents in id_rsa.pub to B:$HOME/.ssh/authorized_keys2
Done!
2019年2月22日 星期五
build krusader
- sudo apt-get build-dep krusader
- git clone http://anongit.kde.org/krusader
- mkdir MyKrusader
- cd MyKrusader
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_C_FLAGS="-O2 -fPIC" -DCMAKE_CXX_FLAGS="-O2 -fPIC"
- (NB, step 5 has .. )
- make
- sudo make install
2019年2月18日 星期一
setup HP-LaserJet PRo M15W
- Download latest driver from: https://sourceforge.net/projects/hplip/files/hplip/
e.g. hplip-3.19.1.run (as of 20190218) - sudo hplip-3.19.1.run
- Done!
2019年2月11日 星期一
2019年1月30日 星期三
IEEE keyword
Inside LaTeX box: \begin{IEEEkeywords}
My keyword 1, My keyword 2, My keyword 3...
Inside LaTeX box: \end{IEEEkeywords}
2019年1月25日 星期五
Increase row height
Put this into LaTeX box (Ctrl-L) in front of table:
\setlength\extrarowheight{5pt} Or \renewcommand{\arraystretch}{1.5}
If the above not work, try add vphantom inside the table cell, e.g.\vphantom{{ \displaystyle {\frac{1}{5}} }}
2019年1月24日 星期四
dash style
cf: /home/chiao/Fuzzy/Papers/2019/0623FUZZ-IEEE/papers/example/Matplotlib/exm.ipynb
#[8, 4, 6, 2] means: 8pt. line + 4pt. break + 6pt. line + 2pt. break ]
dstary=[[1,0],[8, 2],[5, 2], [3,2], [1,2]]
ax.plot(x, yL,label=labl,linewidth=2, dashes=dstary[1], color='black')
#[8, 4, 6, 2] means: 8pt. line + 4pt. break + 6pt. line + 2pt. break ]
dstary=[[1,0],[8, 2],[5, 2], [3,2], [1,2]]
ax.plot(x, yL,label=labl,linewidth=2, dashes=dstary[1], color='black')
2019年1月3日 星期四
Plot several functions with differenet domains
Show[Plot[0.025` Sqrt[3156 - 1800 x + 225 x^2], {x, 5.4048, 6}],
Plot[0.5339, {x, 6, 11}],
Plot[\[Sqrt](30.091788404703134` - 4.696813600723558` x +
0.18064667695090608` x^2), {x, 11, 11.4437}], PlotRange -> All]
Plot[0.5339, {x, 6, 11}],
Plot[\[Sqrt](30.091788404703134` - 4.696813600723558` x +
0.18064667695090608` x^2), {x, 11, 11.4437}], PlotRange -> All]
2018年11月9日 星期五
Too much white space above and below equation in two column mode
Put \allowdisplaybreaks in preamble
2018年10月14日 星期日
Training plan to Google calendar
- Make a csv file, like this:
Subject,Start Date,Start Time,End Date,End Time,All Day Event
Tempo 7km,2018/10/16,05:10:00 PM,2018/10/16,06:10:00 PM,False
Tempo 13km,2018/10/17,04:30:00 PM,2018/10/17,06:30:00 PM,False - Login to Google Calendar
- Click the three vertial dots at the right of calendar -> 設定與共用
- On the next page, click the 匯入與匯出 on the top left panel
- Select the import file, e.g google_calendar_template.csv
- 新增至日曆,e.g. 路跑比賽
- Then click 匯入
- Done.
2018年10月1日 星期一
dropbox icon not showing
cf: https://askubuntu.com/questions/1029225/how-to-fix-broken-nautilus-dropbox-icon-in-ubuntu-18-04-gnome-flashback-in-top-p
dropbox stopgedit ~/.config/autostart/dropbox.desktop
replaceExec=dropbox start -iwith
Exec=env XDG_CURRENT_DESKTOP=Unity dropbox startsudo gedit /usr/share/applications/dropbox.desktop
replaceExec=dropbox start -iwith
Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start- click Dropbox in dash to start it.
- Done.
訂閱:
文章 (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...









