Archive for the ‘Linux’ Category

Generating IEEE Xplore compatible PDFs

March 29, 2008

Articles submitted to IEEE conferences will have to meet IEEE Xplore PDF requirements.  Most conference websites give free access to the PDF eXpress tool that can generate compatible PDFs from several source formats and validate PDF submissions as well.  However,  if you want to save time and generate such PDFs on Linux, here are the commands to use:


rm -f *.blg *.aux *.log *.aux
latex paper.tex
rm -f paper.bbl
bibtex paper
latex paper.tex
latex paper.tex
dvips -Ppdf -tletter -G0 -D 600 -o paper.ps paper.dvi
ps2pdf14 -dEmbedAllFonts=true -dUseFlateCompression=true -dPDFSETTINGS=/prepress paper.ps

NOTE:  The template that your worked with, might not be compatible by itself. Avoiding  hyperref   package,  fixed annotation related issues that PDF eXpress was complaining about.

Use these commands to generate high quality PDF documents for publishing. Change the paper type in ‘dvips’ command to suit your specs.

Create static executable from shared one

February 9, 2008

Did you get an error, like this one, when you tried to run an executable:

./MyOldBinFile: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

This happens to you if you try to execute an old dynamically linked executable, whose library dependencies are missing. Here is how you would have to fix it. Use the command ldd <binFile>, to identify missing shared libraries. Find them online or on other machines and copy them onto your’s. That should do it. Moreover, go one step further and use a software like Ermine OR statifier to create a statically linked executable from a dynamically linked one.

./ErwinePro.i386 MyOldBinFile –output=MyOldBinFile_Static

Seven Habits for Effective Text Editing

April 25, 2007

By none other than Bram Moolenar, the creator of Vim (improved VI editor)

10 more good UNIX usage tips

December 16, 2006

Level: Intermediate
Michael Stutz (stutz@dsl.org), Author, Consultant
12 Dec 2006

“Adopt 10 good habits that improve your UNIX® command line efficiency and break away from bad usage patterns in the process. This article takes you step-by-step through several good, but too often neglected, techniques for command-line operations. Learn about common errors and how to overcome them, so you can learn exactly why these UNIX habits are worth picking up. “
Commands covered: mkdir, tar, xarg, grep, awk
..[more]..

svn auto add

July 18, 2006

Weird that SVN doesnt have a quick command to add all the new files/ folders automatically.

Here’s a simple ’svnautoadd’ command

#!/bin/sh
svn status | grep “^?” | cut -b 8- | xargs svn add
svn commit $@

[Place the above code in /usr/bin/svnautoadd and make it executable]
Ref: hint source