Posts

Showing posts from May, 2015

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.