Category Archives: Uncategorized

how to install wordpress and mysql

Sat Nov 23 13:52:24 HST 2019

Posted in Uncategorized | Leave a comment

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 | Leave a comment

Lyx beamer, how to align each frame top-aligned

Posted in Uncategorized | Leave a comment

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 | Leave a comment

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 | Leave a comment

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 , | Leave a comment

Learn The Entire Python Language In A Single Image (link)

An interesting page that contains a single image for python language. Here. Image link: Here

Posted in Uncategorized | Leave a comment

How to replace the 4th occurrence of a character in a file using sed

sed -i “s/\”/ \”/4″ myFile.txt The above command will replace the 4th occurrence of “ by “ in file “myFile.txt”, which is equivalent to putting a space in front of the 4th double quote.

Posted in Uncategorized | Tagged | Leave a comment

How to change an extension of many files

In a Linux terminal: $ for f in *.txt; do mv — “$f” “${f%.txt}.text”; done will rename all *.txt to *.text files.

Posted in Uncategorized | Leave a comment

How to compile .tex file without stopping

Method 1: using pdflatex to generate a pdf file $ pdflatex -interaction nonstopmode myTexFile.tex Method 2: using latexmk to generate a dvi file. $ latexmk myTexFile.tex

Posted in Uncategorized | Leave a comment