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/.

Tuesday, January 31, 2017

Time change when switching between Windows and Linux on a dual-boot machine

This is because of differences in how these two OSes treat the time written on the hardware clock. It can be fixed as below. (I've tried the Windows registry file edit.)

https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts

Friday, January 27, 2017

Friday, December 23, 2016

Install Caffe with CMake on vision machines/eldar

cd caffe;
mkdir cmake_build;
cmake .. -DBLAS=Open;

Final CMakeCache.txt should look like (both non-cuda version from vision machines and cuda version from eldar included):
https://gist.github.com/dineshj1/431828a10d230a5f767b73ecdfacf744

Install latest opencv from github repository on vision machines/ eldar

Clone opencv from Itseez's repository
cd opencv; mkdir release; cd release;
cmake .. -DWITH_IPP=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/vision/vision_users/dineshj/local_installs/ -DBUILD_TIFF=ON -DBUILD_PNG=ON -DBUILD_opencv_viz=OFF

Final CMakeCache.txt file should look like:
https://gist.github.com/dineshj1/3058f8a439a82ff7cd1ae07113a5b148