Category Archives: Uncategorized

How to add compiling time in Lyx/LaTex

Include this package in the header part, \usepackage{datetime2} within \date{created on Sun Feb 13 10:00:15 AM HST 2022, last modified on \DTMnow}

Posted in Uncategorized | Leave a comment

How to convert mp4 to text using command line in Ubuntu

Convert a mp4 file into wav file ffmpeg -i file.mp4 -ar 16000 -ac 1 file.wav convert the wav file into a text file pocketsphinx_continuous -infile file.wav 2> pocketsphinx.log > myspeech.txt

Posted in Uncategorized | Leave a comment

How to trim a mp4 file in Ubuntu

The following command is to trim “INPUT.mp4” from start time 00:00:00 for a total play duration of 01:33:00, and save it as “OUTPUT.mp4“. No matter what the INPUT.mp4 file size is, this command is done almost immediately.

Posted in Uncategorized | Tagged , | Leave a comment

How to use GitHub

https://guides.github.com/activities/hello-world/

Posted in Uncategorized | Leave a comment

LaTex/Lyx customized template store and use

Posted in Uncategorized | Leave a comment

How to remove “Reference” section name in LaTex

Posted in Uncategorized | Leave a comment

awk – calculation of sums of rows and columns

awk command in a bash script mydata.dat file

Posted in Uncategorized | Leave a comment

How to generate a unique directory for each run using Makefile

In command line, one can execute to have 10 different directories in sequence.

Posted in Uncategorized | Leave a comment

Emacs scroll-step

Posted in Uncategorized | Leave a comment

LaTex/Lyx

To restart figure and table numbers in Appendix with correct link In the LaTex/Lyx header, add the following package: Where the Appendix start, add the following script:

Posted in Uncategorized | Leave a comment