Posts

Showing posts from 2015

Install Intel Cilk and get it working on Debian/Ubuntu 64.

 Intel Cilk and Cilk Plus are general programming languages designed for multi-threaded parallel computing. They are based on the C and C++ programming languages and extend these to express parallel loops and take advantage of modern multi-core processors. Below are steps to install and get started with Intel Cilk. 1) Register and download a copy of Intel Parallel studio from Intel's website. 2) Extract the package into a directory and go into it. 3)  Run the following commands to install the parallel studio software: $ sudo apt-get install alien $ sudo ./install_GUI.sh for a GUI based installation. 4)You may choose to use a text based installation instead. Go through the dialogue boxes and say next etc. You will be asked to enter a license number during this which you can find in the email you used to register while downloading this. 5) After the installation finishes you need to add the path of installation to your .bashrc file. Do this with following command...

Install opencv 3.0.0 on Debian 8 / Ubuntu 12 - 15

OpenCV 3.0.0 is out and you can't wait to get your hands on it and try it with your newly setup debian/ubuntu desktop :D Lets install it, its really quite simple! I have outlined the installation below in a simple 10-step process. Get the opencv3.0.0 package from the opencv website( here ). And place it at a convenient location, let us assume its in the /Downloads folder. After this run the following commands: Go to the folder where the downloaded package is located. cd Downloads Extract the downloaded package. unzip opencv-3.0.0.zip Go to extracted folder. cd opencv-3.0.0 Install the dependencies for opencv to build on your system. sudo apt-get install build-essentials  cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev  libswscale-dev  python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev. Create a folder called 'build'. mkdir build Go to the folder build. cd build Build opencv from the ...

Generate barcodes in your latex document

Looking for generating barcodes or qr codes dynamically inside your document from a text string or a number? You can use the pst-barcode package for latex. Below are the steps on how to set this up and use it. Setup: Go to the below link and download the package which will be available in .zip format. http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-barcode Unzip the downloaded file and look for the 3 files mentioned below in the extracted folder. pst-barcode.pro pst-barcode.sty pst-barcode.tex Now all that remains is placing these files in the right location in your machine. Just go to the /usr/share/texmf folder and do the following: Make 2 directories with names ' dvips ' and ' tex/generic '. Make a directory named pstricks in both of the above directories and also in the /textmf/tex/latex folder which is existing already. And, Move file ' pst-barcode.pro ' to folder ' /texmf/dvips '. Move file ' pst-barcode.sty ...

How to identify if you have a 32 bit or 64 bit CPU or kernel

Installing a new OS in a machine and not sure what its CPU architecture is? No worries, all it takes is a single line command to find it out. This post assumes the machine you wish to install already has a linux os and can be issued commands via terminal. Log into the machine you wish to install your os in and fire up a terminal. Once the terminal is up issue the following command: To find out if the kernel is 32-bit or 64 bit run this: uname -m to find out the if the cpu supports 32bit or 64 bit, run this. sudo lshw -class processor | grep width The output of these commands will tell you what you are looking for. 

Format a USB pendrive from terminal.

So your pendrive refuses to get formatted via the GUI tools. Just do this and you'll have what you need! The post may seem a little long but its really simple to do this. Go to the terminal and see if your device is showing up there by running the following command: lsblk This comand will give a table kind of output and you can find out your device by its size(eg. 8G = 8Gb). Note the /dev/_ path for your device. Note : Throughout this post i am assuming you recognized your device and noted its /dev/sd_ path and i will be referring to it by the " /dev/sd_ " in all of this post. Next zero out all the data present in your device with following command: sudo dd if=/dev/zero of=/dev/sd_ bs=4k; sync dd is the disk dump command and bs is the block size. This might take a while to finish. And you can skip this step if not required. This is like the windows long format and if you skip this step it will be like the quick format in windows. Next, let us make ...

BackSpace doesn't navigate to previous directory in Nautilus?

So you recently installed Debian for example, and are irritated due to the fact that the BackSpace Key doesn't take you to the previous directory! Its simple to rectify this, just use the below step and you will have the BackSpace serve you as its supposed to :D Edit the ~/.config/nautilus/accels file by running either of the following comman ds: gedit  ~/.config/nautilus/accels  or nano  ~/.config/nautilus/accels  or  vim  ~/.config/nautilus/accels and enter the following  line in this file at the end: (gtk_accel_path "<Actions>/ShellActions/Back" "BackSpace"). PS: Do not include a semicolon at the  beginning of this line.