Monday, May 21, 2018

LaTeX: Strip comments and combine all input files into one using latexpand tool

Useful when submitting source to journals or to arXiv.

latexpand --empty-comments mytexfile.tex > mytexfile-stripped.tex

https://tex.stackexchange.com/a/271460

Thursday, April 26, 2018

How to change tmux screen size to match current session

From: https://stackoverflow.com/a/20908246

Press Ctrl-B+Shift-D, then select session.

Alternative: Ctrl-B from inside the session, then type :detach -a

Wednesday, November 15, 2017

Wednesday, August 2, 2017

Move powerpoint audio icon off-screen after recording

Use one simple macro to move on all slides (rather than doing this slide by slide)

(From https://answers.microsoft.com/en-us/msoffice/forum/msoffice_powerpoint-mso_mac/alignment-of-audio-file-icon/f4bbfa08-fd24-4814-bb54-c7902d4abe31)

Go to View -> Macros and add the following macro:

Sub fix_Audio()
Dim osld As Slide
Dim oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoMedia Then
If oshp.MediaType = ppMediaTypeSound Then
oshp.Top = ActivePresentation.PageSetup.SlideHeight - oshp.Height
oshp.Left = ActivePresentation.PageSetup.SlideWidth - oshp.Width
End If
End If
Next
Next
End Sub

Click run. Done!

Tuesday, March 21, 2017

Install Caffe + dependencies on my lab machine (Ubuntu 16.04-based Mint)

https://gist.github.com/dineshj1/084974cc252ed4cd5aa20a423d30d7a3

install_caffe_deps.sh

Then build with CMake

May need to add special_lib/ folder that contains libraries that are duplicated in anaconda.

LD_LIBRARY_PATH: /home/dineshj/special_lib/:/home/dineshj/local_installs/lib/:/usr/local/cuda/lib64/:/home/dineshj/special_lib/:/home/dineshj/local_installs/lib/:/usr/local/cuda/lib64/:

May also need to additionally move libstdc++* in ~/anaconda/lib/ to ~/anaconda/lib/tmp/.