Posts

How to turn Vim into a full-fledged IDE suitable for C/C++/python and many more

Image
If you code a little, you know how handy an Integrated Development Environment (IE) can be. Java, C, Python, they all become a lot more accessible when the IDE software is checking the syntax for you, compiling in the background, or importing the libraries you need. On the other hand, if you are on Linux, you might also know how handy Vim can be when it comes to text editing. So naturally, you would like to get all the features of an IDE from Vim. In fact, there are quite a few ways to do so. One could think of c.vim which attempts to transform Vim into a C oriented IDE, or Eclim which merges Vim into Eclipse. However, I would like to propose you a more generalist approach using only plugins. You do not want to bloat your editor with too many panels or features. Instead, the plugin approach lets you choose what you put into your Vim. As a bonus, the result will not be language-specific, allowing you to code in anything. So here is my top 10 list of plugins w...

Install Audacity Audio Editor 2.1.0 in Ubuntu, Linux mint and other debian systems From PPA with resolution to Fails with the Pa_GetStreamHostApiType Error

Image
A new stable release of the free and open-source Audio Editor and Recorder, Audacity 2.1.0 , was announced a few days ago. The new release brings Real-Time Preview feature and lots of improvements and bug fixes. Here’s the release highlights: For a long time, we have wanted Real-Time Preview for effects. It seemed nearly unachievable without major restructuring. But with Audacity 2.1.0, we have it in LADSPA, VST, and Audio Unit (OS X) effects! Thanks to Leland Lucius for these great new capabilities! Much improved Noise Reduction effect replaces Noise Removal. Thanks to new contributor Paul Licameli! Lots of other improvements to effects, also thanks to Leland, including: VST: FXB preset banks, hosting multiple plugins All effects can now be used in Chains, and can be sorted on name, publisher, or class. Most Nyquist effects now have Preview button. Redesigned Meter Toolbars show a lot more information in smaller area. Thanks, Leland Lucius and James Crook! Spectral S...

Writing your research paper in Latex: Useful commands and tips

Image
1. How to convert from tex to PDF To PDF from tex select PDFLatex from Quick Build, (the default option will take a long time or hang during building process) 2. Bibtex problem – Question mark instead of number for reference To update you bibtex citations, select BibTex from Quick Build and compile, then select PDFLatex and compile twice to update the citation numbers in the PDF. Rebuilding it a few times replace the .aux and .bbl files that were made when you used before. Common citation mistake , putting spaces between comma seprated bibtex keys: \cite{zhao2003face,samal1992automatic,yang2002detecting} Don’t put spaces before the keys! 3. How to center cell contents of a LaTeX table whose columns have fixed widths? Use \usepackage{array} in the preamble them this: 1 \begin{tabular}{| >{\centering\arraybackslash}p{.5cm} | >{\centering\arraybackslash}p{8cm} |} note that “m” for fixed with column is provided by the...

Website Collections for Students

https://www.e-education.psu.edu/styleforstudents

Table Formatting in Latex for Academic Paper

Image
Table Formatting in Latex for Academic Paper Tables Special Thanks to Andy Roberts for writing this article In academic writing, tables are a common feature, often for summarising results from research. It is therefore a skill that needs mastering in order to produce good quality papers. However, if there is one area about Latex that I feel is the least intuitive, then I am afraid that this is it. Basic tables are not too taxing, but you will quickly notice that anything more advanced can take a fair bit of construction. So, we will start slowly and build up from there. The Tabular environment To begin, we shall first get familiar with some Latex terminology. An environment in Latex is a special declaration for formatting specific types of text. For example, in the bibliographies tutorial the abstract environment was introduced, so that the abstract of the paper could be formatted differently that the main body of text. All environ...

Latex Tips for publishing papers

LaTeX tips to meet publication page limits Any print publication will naturally have a page limit for articles it publishes. I use LaTeX for typesetting my papers, and I’ve put together here a collection of tricks I use to squeeze space out. I’ve sorted them roughly in decreasing order of effectiveness. Do this first Decrease the document’s font size to the lowest allowed size. For example, \documentclass[10pt]{article} reduces your document’s font to 10 points if you’re using the article document class. If you’re using the article document class, add \usepackage{fullpage} to your preamble. As its name suggests, this package shrinks the margins and uses more of each page. Convert display math ( equation, eqnarray , etc.) to inline math ( $ $ ), wherever possible. Decrease the font size used for references It is common for print journals to use a smaller font for references than normal text. But the default style files for conference papers (like ACM ‘s...

Download youtube videos faster in linux using youtube-dl with aria

Today for all linux users its a good news for you guys.  Download faster in linux any youtube video and lots more Download youtube videos instead of taking the pain of buffering the videos and wasting time. ------------------------------------------------------------------------------------------------------ Install git in your linux computer using For Debian users : sudo apt-get install git For other users on cent os, fedora and red hat:  yum install git After git is enabled ------------------------------------------------------------------------------------------------------ Install aria2 On Mac OS X, you can install aria2 using Macports or Fink. In case you are using Macports, execute this command to install $ sudo port install aria2 On Debian and Ubuntu, install it using apt-get $ apt-get install aria2 On Fedora, install it using yum $ yum install aria2 For other platforms, have a look at http://sourceforge.net/apps/trac/aria...

Bash String Manipulation

In bash shell, when you use a dollar sign followed by a variable name, shell expands the variable with its value. This feature of shell is called parameter expansion. But parameter expansion has numerous other forms which allow you to expand a parameter and modify the value or substitute other values in the expansion process. In this article, let us review how to use the parameter expansion concept for string manipulation operations. This article is part of the on-going bash tutorial series. Refer to our earlier article on bash { } expansion . 1. Identify String Length inside Bash Shell Script ${#string} The above format is used to get the length of the given bash variable. $ cat len.sh #! /bin/bash var="Welcome to the geekstuff" echo ${#var} $ ./len.sh 24 To understand more about bash variables, read 6 Practical Bash Global and Local Variable Examples . 2. Extract a Substring from a Variable inside Bash Shell Script Bash provides a way to extract a ...

Useful ffmpeg commands

Image
FFMPEG conversion commands First of all we need to see how to install ffmpeg on a debian based system. $ sudo add-apt-repository ppa:jon-severinsson/ffmpeg $ sudo apt-get update $ sudo apt-get install ffmpeg This article describes some basic audio format conversions using ffmpeg utility. All ffmpeg format conversion commands use default ffmpeg setting. User should alter below commands to increase or decrease audio quality with additional ffmpeg options. How to play files from command line? To play wav files try to see if sox is installed on the system using command man sox to see a detailed explanation for the sox command. It will display information if the sox is installed type in play <audio-filename.wav> to play the audio file of wav format. To play mp3 from command line using this command. sudo apt-get install mpg123 sudo apt-get install libsox-fmt-mp3 Then type in play <audio-filename.mp3> 1.1. WAV - Waveform Audio File Format 1.1.1....