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