Posts

Showing posts from December, 2016

List of useful websites every researcher must know about

Hi all, I am sure that everyone who does research is wondering which are the websites I should be know about to be more involved in the research community. Publishing papers is one skill and encouraging researchers to read your published papers requires some level of work and making your work as public. After all, a research paper which is not being read has a low impact as compared to papers which are read and one that has practical importance in the community. Here's a list of some of the websites researchers should know about: - Search for relevant Papers - Literature Survey : Google Scholar : - https://scholar.google.co.in/    IEEE Xplore - http://ieeexplore.ieee.org/Xplore/home.jsp Academic Search Engine - Refseek - http://www.refseek.com/ iSeek -  http://education.iseek.com/iseek/home.page ACM papers -  http://dl.acm.org/ Microsoft Academic Research -  http://academic.research.microsoft.com/ Open Science Framework - https://osf.io/ ...

Increment numbers in Vim

How to increment numbers in VIM with a quick trick? 101 This is an item. qa Y p Ctrl-A q 101 This is an item. 102 This is an item. 103 This is an item. 104 This is an item. and so on There are several ways to make a list of increasing numbers. One simple method is to use Ctrl-A in a macro. As an example, suppose you type the line: In normal mode, enter the following to record a macro into the a register (type the characters shown, without pressing Enter). This macro yanks the current line, then pastes it below, then increments the number. Now type 15@a to perform the macro 15 times. You will see: Later, you might insert a new item after #102. Now you need to renumber the following items (the new item will be 103, so the old 103 has to be incremented, as does 104, and so on. That can be done using :.,$g/^\d/exe "normal! \<C-a>" ===== Superb - Another method - Source - http://vim.wikia.com/wiki/Making_a_list_of_numbers In Vim 8, the fir...

Usage of SOX tool

SoX   a cross-platform command line audio utility tool, the name stands for Sound eXchange. SoX is very handy if you need to do some simple tasks with music or audio files right from the terminal. To be more specific, SoX is usually used for converting  and edit audio files; changing audio attributes; adding audio effects and other advanced sound manipulation features. SoX is available in the repository of all popular Linux distros so installing it is very simple. If you are using Ubuntu or the like distros, the command to install SoX is: sudo apt-get install sox  To get the complete understanding of how to use SoX, you should check its official   documentation page . But in this article, I will enumerate several common examples of how SoX can be used: several common examples of how SoX can be used:- Combine multiple audio files into a single file: For example, if you have 2 audio files, file1.wav and file2.wav, the command to combine these two ...

Grep - Tips to use in linux

Hi all, As we all know grep is used as a utility to search for a string in files. Some usage of grep which is useful in day-to-day work. Search in specific file extensions. Example : - Grep in only .c, .h files grep -rl --include=\*.{c,h} <search_string> <path to search> The above command search for the search_string in path to search in only .c and .h files. How to find the folders larger than 1 GB in the present working directory? du - h -- max - depth = 1 . | grep '[0-9]G\>'

SVN tips on usage

Hi all, How to copy svn files and create a backup with a single command? svn status | grep '^[ADMR]' | cut -b 8- | xargs -I '{}' rsync -R  {} ./directory/ This will create a directory in your root dir where this command is run and will copy all the modified files so that these files can be safely removed and one can perform an svn up to get the latest copies of the files. How to get a summary of svn diff? svn diff --summarize

Remove white background in blogger post

Sometimes when you compose a post and copy some material from other web sites or even from Office Word the  white background  is copied along with the text as background. Due to this the background of post appears white. So how to get rid of this annoying white background in blogger posts. But before i tell you the solution  to avoid such problems in future you can compose your text in Notebook and then copy it rather than using Office.Ok now to remove white background of already posted text follow these steps. 1.Go to edit your post 2.There you will find two options on upper left corner Compose and HTML 3.Click HTML 4. Now press control F and search for  <span  > 5.Delete  style="background-color: white;" 6. So it turns to be <span>only and save

Hardware Architecture for High Radix Adaptive CORDIC algorithm. [HCORDIC]

Hi all, Here's my undergraduate thesis work on a variant of CORDIC algorithm Abstract: - CORDIC serves as an iterative algorithm to exclude the usage of hardware multipliers in estimating functions such as the sin and log. We extend upon the results of Elguibaly et al.[1], in developing a high-radix adaptive CORDIC algorithm to enhance traditional CORDIC by an average speed up of 2s. The factor s is the number of leading bits of the result mantissa that is to be approximated. We analyze the conditions for achieving the speed up; subject to simulations and FPGA implementation on Xilinx Virtex VI, to provide for a comprehensive understanding of the algorithm. The project proposes to identify a hardware architecture to implement the results of HCORDIC as a math co-processor for an existing General Purpose Computer or a DSP. Thesis: -  https://www.researchgate.net/publication/311648874_Hardware_Architecture_for_High-Radix_Adaptive_CORDIC_Algorithm Citation:- S. S. O...

Comprehensive list of Most Useful Stack Overflow answers for Linux Users

Source: http://stackoverflow.com/ Disclaimer:  The post is intended to only serve as a collection of all relevant stack overflow questions which are relevant and are most common to users. http://stackoverflow.com/questions/9081/grep-a-file-but-show-several-surrounding-lines Grep a file, but show several surrounding lines? For BSD or GNU grep you can use -B num to set how many lines before the match and -A num for the number of lines after the match. grep -B 3 -A 2 foo README.txt If you want the same number of lines before and after you can use -C num . grep -C 3 foo README.txt This will show 3 lines before and 3 lines after. ===================================================================== Git http://stackoverflow.com/questions/927358/how-to-undo-last-commits-in-git How to undo last commit(s) in Git? Undo a commit and redo $ git commit -m "Something terribly misguided"              (1) $ git reset HEAD~   ...

Super ugly number

Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes of size k. For example, [ 1, 2, 4, 7, 8, 13, 14, 16, 19, 26, 28, 32] is the sequence of the first 12 super ugly numbers given primes = [2, 7, 13, 19] of size 4 . Note: ( 1) 1 is a super ugly number for any given primes. ( 2 ) The given numbers in primes are in ascending order. ( 3) 0 < k ≤ 100, 0 < n ≤ 106, 0 < primes[i] < 1000. class Solution { public:    int nthSuperUglyNumber(int n, vector<int>& primes) {         int len = primes.size();               vector<int> mult(len,0);               vector<int> super_ugly(n,INT_MAX);               super_ugly[0] = 1;               for (int i = 1; i < n; ++i) {   ...