ls -1 | head -10 |xargs -i cp {} ./inputs Read more here
Saturday, December 13, 2014
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:
- Fire up Disk Utility
- From the File menu, select New, and then select Disk Image from Folder…
- Select which folder you would like to protect. choose a folder to protect
- Choose the “AES-128″ encryption option (or 256-bit for extra security), and press Save
- Enter your desired new password twice.
Useful Shortcuts for VLC and Youtube
VLC Player (osx shortcuts)
Youtube (osx shortcuts)
Description | Shortcut |
---|---|
Increase Playback Speed | Cmd+= |
Reduce Playback Speed | Cmd+- |
Jump ahead | Opt+Cmd+RightArrow |
Jump back | Opt+Cmd+LeftArrow |
Jump to time | Cmd+J |
Youtube (osx shortcuts)
Description | Shortcut |
---|---|
Increase Playback Speed | Sh + > |
Reduce Playback Speed | Sh + < |
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
Friday, October 31, 2014
Preparing a review response
I found this useful link describing how to format a review response.
http://enl.usc.edu/~ramesh/writings/responding_to_reviewers.html
http://enl.usc.edu/~ramesh/writings/responding_to_reviewers.html
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
http://bl.ocks.org/tmcw/5492123
Friday, October 24, 2014
Setting up XAMPP for Mac OSX
I had run into a 403 access forbidden error when I tried to set up a webserver on my mac using XAMPP. Here is the fix.
http://jonathannicol.com/blog/2012/03/11/configuring-virtualhosts-in-xampp-on-mac/
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.
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:
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"
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
Command | Description | Source |
---|---|---|
For multicore compilation using cmake | ||
Tuesday, September 16, 2014
TexStudio Shortcuts
Command | Description | Source |
---|---|---|
F1 | Build View |
Friday, September 12, 2014
Unix Command Line Commands
Copy files to folder, filenames in text file
Command | Description | Source | |
---|---|---|---|
ls | wc -l | Count of files in current directory | ||
top<\td> | To check out useful information about running processes | ||
cat list.txt | xargs -J % cp % new_folder | |||
Saturday, September 6, 2014
LaTeX - Useful Links
Math Examples - http://www.artofproblemsolving.com/Wiki/index.php/LaTeX:Commands
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.
Code formattd using - Code Formatter
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 + G | Find references. | |
Ctrl + H | Find files or text in files | |
Ctrl+Alt+Enter | To 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
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+Esc | Show Force Quit Applications Window |
Cmd+Shift+A/U/D | Move any finder window to Application/Utilities/Desktop |
Cmd+Opt+M | Minimize all windows |
Subscribe to:
Posts (Atom)