Saturday, November 22, 2014

Useful OSX links



  • Encrypt Folder: I was looking for a way to encrypt a specific folder on mac. Turns out this is quite simple to do - http://www.mactrast.com/2012/07/how-to-password-protect-files-or-folders-on-your-mac
    • Quick Steps:
      1. Fire up Disk Utility
      2. From the File menu, select New, and then select Disk Image from Folder…
      3. Select which folder you would like to protect. choose a folder to protect
      4. Choose the “AES-128″ encryption option (or 256-bit for extra security), and press Save
      5. Enter your desired new password twice.


Useful Shortcuts for VLC and Youtube

VLC Player (osx shortcuts)
DescriptionShortcut
Increase Playback SpeedCmd+=
Reduce Playback SpeedCmd+-
Jump aheadOpt+Cmd+RightArrow
Jump backOpt+Cmd+LeftArrow
Jump to timeCmd+J


Youtube (osx shortcuts)
DescriptionShortcut
Increase Playback SpeedSh + >
Reduce Playback SpeedSh + <
Jump ahead (10 frames)Cmd + RightArrow
Jump back (10 frames)Cmd + LeftArrow
Jump ahead (5 frames)RightArrow
Jump back (5 frames)LeftArrow

Friday, November 14, 2014

Python related commands


A command to find the current PYTHONPATH - cat ~/.bash_profile | grep PYTHONPATH

Saturday, October 25, 2014

Mapbox and Openlayers example

Just a working example of MapBox and Openlayers. Also interesting is the concept of bl.ocks.org (personal note to check this out later again)

http://bl.ocks.org/tmcw/5492123

Friday, October 24, 2014

Tuesday, October 7, 2014

LaTeX in emails and blog

I just installed the tool LatexIt for Thunderbird email client. Now its easy to write out equations directly into my email.

Next, I am wondering if this is possible to do in case of blogs as well.

Tuesday, September 23, 2014

Convergence

I keep coming across the terms pointwise and uniform convergence recently in papers. Since I don't remember ever learning about them in classes, I decided to do a little digging and figure them out.

Pointwise convergence depends upon the value of x for which the sequence of functions converges as n tends to infinity.

Uniform convergence is a stricter case when the convergence should happen irrespective of the value of x.

Update:
This lecture nails it, makes it quite simple:



Starting a git repo

Here are some steps to go through when starting a git repo.

1. Enter the directory which is going to be the repository
2. Create a .gitignore file - Some good rules #change this
3. git init
4. git add . #link to blog on add
5. git commit -m 'Initial commit'6. Now on the git hosting site (e.g. Bitbucket ) create the repo, I prefer lowercase names without spaces.7. git push -u origin master #link to blog on git push
Now to clone:git clone "paths-to-repo"

Saturday, September 20, 2014

Cmake tips

make -j 4
CommandDescriptionSource
For multicore compilation using cmake

Tuesday, September 16, 2014

Friday, September 12, 2014

Unix Command Line Commands


Copy files to folder, filenames in text file
Command Description Source
ls | wc -lCount of files in current directory
top<\td>To check out useful information about running processes
cat list.txt | xargs -J % cp % new_folder

Friday, September 5, 2014

Pydev project and git repo - ignoring local configurations

The local configuration settings for a pydev project are stored in a hidden file .pydevproject. If we push this file to the repository then every other other remote repository that pulls the repo will get the version of this file that is specific for a particular local machine. In order to avoid this, it is a good idea to add this file to the .gitignore file in the root folder of the git repo.

Typically, here is a list of standard files to add to .gitignore.

 .pydevproject  
 .pyc  

Code formattd using - Code Formatter

Eclipse Pydev Shortcuts


Command Description Source
Cmd + Shift + GFind references.
Ctrl + HFind files or text in files
Ctrl+Alt+EnterTo bring up options for interactive mode. Choose console for currently active editor.Link

Git Commands




Command Description Source
find . -name "*.pyc" -exec git rm -f {} \; Stop tracking all .pyc files from repo. http://yuji.wordpress.com/2010/10/29/git-remove-all-pyc/

Thursday, September 4, 2014

Mac OSX shortcuts.

Mac OSX shortcuts.


Cmd+Shift+A/U/D
Shortcut Job
Cmd+Shift+G Display window to type path when opening files.
Cmd+Shift+Arrows Cycle through tabs in the mac terminal.
Cmd+Alt+EscShow Force Quit Applications Window
Cmd+Shift+A/U/DMove any finder window to Application/Utilities/Desktop
Cmd+Opt+MMinimize all windows