Posts

Showing posts from April, 2016

NUMPY for matlab users

NumPy for MATLAB users Help MATLAB/Octave Python Description doc help -i % browse with Info help() Browse help interactively help help or doc doc help Help on using help help plot help(plot) or ?plot Help for a function help splines or doc splines help(pylab) Help for a toolbox/library package demo Demonstration examples Searching available documentation MATLAB/Octave Python Description lookfor plot Search help files help help(); modules [Numeric] List available packages which plot help(plot) Locate functions Using interactively MATLAB/Octave Python Description octave -q ipython -pylab Start session TAB or M-? TAB Auto completion foo(.m) execfile('foo.py') or run foo.py Run code from file history hist -n Command history diary on [..] diary off Save command history exit or quit CTRL-D CTRL-Z # windows sys.exit() End session Operators MATLAB/Octave Python Description help - Help on operator syntax Arithmetic operators M

Putty tricks and tips. Most Important Putty commands to know about

Image
PuTTY is hands-down the best SSH client for Windows. It’s light-weight with a single putty.exe file and nothing else to install. PuTTY Trick 1: Delete All PuTTY Sessions Together When you are swapping an old computer with a new computer, you may end-up transferring all PuTTY sessions to new computer. Once you’ve transferred all PuTTY sessions, execute “putty -cleanup” from the command line as shown below. C:>putty -cleanup This will display following warning message. Click on ‘Yes’ to wipe-out all PuTTY session and random seed files from the Windows registry. This is a better process to delete all saved PuTTY sessions from Windows registry instead of deleting one-by-one from the PuTTY session list. Fig: PuTTY Cleanup Sessions PuTTY Trick 2: Change Font Size Automatically when Resizing PuTTY Window By default when you resize a PuTTY window, the font size doesn’t change. Sometimes it would be good if font size decrease when you reduce the PuTTY window size (or

Basic vimrc settings to perform and enhance productivity in linux

Hi all, Here are a few basic vimrc settings to do. This will definitely improve your productivity in linux Add the following lines of code to your vimrc file  #This will display the numbering of lines in vim file 1. set nu # This will display autocompletion menu in the vim command line 2. set wildmenu # This will give a proper formatting to the list to make the output look beneficial 3. set wildmode=list:longest # This will detect filetype and fill in/give suggestions, coloring of syntax based on filetype. 4. filetype on 5. filetype indent on 6. filetype plugin on #To highlight all searches. 7. set hlsearch #To start searching from current input and perform an incremental search. This refines search results as you type. 8. set incsearch #This tells vim not to mess with formatting of the text that you are trying to paste.  9 set paste

Basic Handy Linux commands to know by default

Hi everyone, We all have seen tutorials mentioning about basic commands to use in terminal like ls - list files/directories, cd - change directory and so on. This post is not about those general commands we use in day to day terminal work, however to introduce to commands which will reduce your googling time and searching for answers from stack overflow. I will introduce you to a situation and then give a solution to make this post more interesting. Problem 1 - I am using a linux shell, and want to know which type of shell is this meaning whether it is a Bourne shell (sh) or C shell(csh) or Kourne shell (ksh) or Bourne Again shell (bash) and so on. Solution - Type echo $0 to know your shell type or alternatively echo $shell - prints path where shell is being accessed from. Problem 2 - Kill the current shell - As we know that to kill shell we need information about process id [PID]. So how do we find this? Solution- Type echo "$$" = this prints the process id

SOX - Sound eXchange - How to use SOX for audio processing tasks in research.

This article is part of the on-going Software for Geeks series. SoX stands for So und e X change. SoX is a cross-platform command line audio utility tool that works on Linux, Windows and MacOS. It is very helpful in the following areas while dealing with audio and music files. Audio File Converter Editing audio files Changing audio attributes Adding audio effects Plus lot of advanced sound manipulation features In general, audio data is described by following four characteristics: Rate – The sample rate is in samples per second. For example, 44100/8000 Data size – The precision the data is stored in.  For example, 8/16 bits Data encoding – What encoding the data type uses. For example, u-law,a-law Channels – How many channels are contained in the audio data.  For example, Stereo 2 channels SoX supports over 20 audio file formats. To get the list of all supported formats, execute sox -h from the command line. One of the major benefits of a command-line audio/mu

Deep learning collection

Deep learning collection.  Websites -   http://deeplearning.net http://www.kdnuggets.com Python implementations/examples Introduction to Restricted Boltzmann Machines -- Great, easy to follow explanation + python implementation of RBMs The CUV Library is a C++ framework with python bindings for easy use of Nvidia CUDA functions on matrices. It contains an RBM implementation as well as annealed importance sampling code and code to calculate the partition function exactly. Modular toolkit for Data Processing collection of supervised and unsupervised learning algos that can be combined into complex feed-forward network architectures -- backpropagation + DBN examples at the bottom Pietro Berkes -- (tgz) using DBNs for digit recognition Deep Learning Tutorials -- examples of how to do Deep Learning with Theano (from LISA lab at University of Montreal) Theano -- CPU/GPU symbolic expression compiler in python