Friday, July 17, 2020

PDF to JPG to mp4

pdftoppm input.pdf output -png -rx 600 -ry 600

ffmpeg -r 1/10 -i output-%2d.png -c:v libx264 -r 30  video.mp4


Monday, February 19, 2018

jaxodraw in mac

A. Install java
B. cp axodraw.sty file to: /usr/local/texlive/2016/texmf-dist/tex/latex/
C. $ sudo texhash
D. Download jaxodraw.jar to convenient place. Run with java.

Monday, January 8, 2018

gfortran: Error in finding path


FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!

Soln: Path in first line modified to path in second line

#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
export PATH="/usr/bin:/opt/local/bin:/opt/local/sbin:$PATH"

Friday, December 16, 2016

Print a pdf in book form

pdfjam --landscape --no-twoside --suffix book --a3paper --nup 2x1 --no-tidy --frame 'true' --signature '32' -- name.pdf -

pdftk A=name-book.pdf cat Aodd output Aodd.pdf

pdftk A=name-book.pdf cat evensouth output Aeven.pdf

 pdftk A=Aodd.pdf B=Aeven.pdf shuffle A B output finalName.pdf








Sunday, July 3, 2016

ffmpeg -i infile.* -c:a libmp3lame outfile.mp3

Thursday, June 9, 2016

Nvidia stops working on kernel upgrade (login loop problem) : Ubuntu

It may happen in the machines having latest Nvidia cards to which Ubuntu default repository Nvidia drivers are not compatible, and you might have installed driver from binary file available on Nvidia official site.

When you logout or restart after upgrade system, you get trapped in to login loop. Login window appears but you fail to get in.

Soln:

Ctrl+ Alt + F1

Login to the terminal on screen

$ sudo /etc/init.d/lightdm  stop

go to the folder where you have saved your binary file

$ sudo sh ./NVIDIAfileName.bin --dpkg

Follow the instructions to reinstall it. Restart on completion. You may find that compiz is not working properly. So

$ dconf reset -f /org/compiz/
$  unity --reset-icons

----------------------
QED

Thursday, February 25, 2016

Reset Compiz

dconf reset -f /org/compiz/
setsid unity