Author Archives: albertsk

About albertsk

Professor at the University of Hawaii

How to include multiple authors with different affiliations in LaTex

\usepackage{authblk} \author[1]{Author A\thanks{A.A@university.edu}} \author[1]{Author B\thanks{B.B@university.edu}} \author[1]{Author C\thanks{C.C@university.edu}} \author[2]{Author D\thanks{D.D@university.edu}} \author[2]{Author E\thanks{E.E@university.edu}} \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 192.168.0.1 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

reconstructPar background script

#!/bin/bash #+TITLE: check-reconstructPar #+File: check-reconstructPar.sh #+Date: Sat Nov 9 12:23:24 HST 2019 #+Author: Albert S. Kim, albertsk@hawaii.edu # Required package: bc # . ~/.bashrc . /home/albertsk/OpenFOAM/OpenFOAM-v1906/etc/bashrc . $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions testProcessorNum=0 processor=`ls processor${testProcessorNum} | grep -v [a-zA-Z] | tail -n … Continue reading

Posted in bash, OpenFOAM

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. https://vim.fandom.com/wiki/Avoid_the_escape_key

Posted in Uncategorized

Lyx beamer, how to align each frame top-aligned

Image | Posted on