https://gist.github.com/dineshj1/627d766b935a1b88d75c8588e5790570
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!
(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/.
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/.
Wednesday, February 15, 2017
Script to record both stdout and stderr output in a single file on Linux Raw (record.sh)
https://gist.github.com/dineshj1/1e9a77fa97a4d37a5a9dc1f1e2b853cf
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
https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts
Friday, January 27, 2017
Matlab progressbar in text on command line
https://gist.github.com/dineshj1/7d620818e954c9114daab3e109764f5c
Subscribe to:
Posts (Atom)