Category Archives: Uncategorized

Output and Error redirect

$ command 2> /dev/null 1>&2 which is to first redirects stderr to /dev/null and then redirects stdout to point to the same place stderr is currently pointing to.

Posted in Uncategorized

How to include multiple authors with different affiliations in LaTex

\usepackage{authblk} \author[1]{Author A\thanks{}} \author[1]{Author B\thanks{}} \author[1]{Author C\thanks{}} \author[2]{Author D\thanks{}} \author[2]{Author E\thanks{}} \affil[1]{Department of Computer Science, \LaTeX\ University} \affil[2]{Department of Mechanical Engineering, \LaTeX\ University} \renewcommand\Authands{ and }

Posted in Uncategorized

LaTex Appendix in Elsevier template

\appendix \setcounter{figure}{0} \renewcommand\thefigure{A.\arabic{figure}} \addcontentsline{toc}{section}{Appendix} %\counterwithin{figure}{section} %\numberwithin{equation}{section} %\numberwithin{figure}{section} %\numberwithin{table}{section}

Posted in Uncategorized

Network command on Ubuntu

to add new gateway route add default gw to see the network adapter information nmcli dev show eth0 to restart network ./init.d/networking restart to see dns stauts systemd-resolve –status

Posted in Uncategorized

how to install wordpress and mysql

Sat Nov 23 13:52:24 HST 2019

Posted in Uncategorized

Alternative to ESC in vim editor

If you have an American English keyboard, pressing Ctrl-[ (control plus left square bracket) is equivalent to pressing Esc. This provides an easy way to exit from insert mode.

Posted in Uncategorized

Lyx beamer, how to align each frame top-aligned

Image | Posted on by

How to avoid warning messages from hyperref package in LaTex

\usepackage[unicode=true,pdfusetitle, bookmarks=true, bookmarksnumbered=false, bookmarksopen=false, breaklinks=false, pdfborder={0 0 1}, backref=false, colorlinks=false]{hyperref} \hypersetup{pdfauthor={Name}} Use of hyperref package in a LaTex script makes the manuscript more visually understandable, but it often gives warning message like Package hyperref Warning: Token not allowed in a … Continue reading

Posted in Uncategorized

command line dictionary and thesaurus

To use command line dictionary and thesaurus, execute the following command: sudo apt-get install dict dictd dict-gcide dict-moby-thesaurus And, try dict fundamental which will show the definitions and synonyms of “fundamental” on the terminal screen.

Posted in Uncategorized

How to generate a fixed format, sequential integers

The following bash script is to generate integers from 1 to 11, having 3-digit format. #!/bin/bash for i in `seq -f “%03g” 1 11` do echo $i done exit 0 The result is as follows. 001 002 003 004 005 … Continue reading

Posted in Uncategorized | Tagged ,