Thursday, April 30, 2009

Command to determine user id in Linux/Unix

User id is an unsigned integer used in the
operating system for a particular user.
The user id can be determined by executing
the id command as follows -
node1-1:~# id
uid=0(root) gid=0(root) groups=0(root)
It is interesting to note that root always has
the uid of 0. Use the -g switch to find out
which groups the current uid is a member of-
node1-1:~# id -g root
Another approach to determine the uid of a user
is by grepping through the /etc/passwd file. That
file has all information specific to a particular user.
Another nice thing to remember is that daemons
always operate with an uid of 1.

Wednesday, April 29, 2009

How to submit site to google for crawling

The approach to do this is by visiting the webpage -
The page will ask for the URL and some basic details
about your webpage. Google does not make any
assurances about the crawling.

How to install centos packages on debian

A package that can usually be installed on a CentOS
distribution is a file that works with the redhat
package manager ( with the extension .rpm).

To install that file on a debian system, I recommend
the use of the alien debian tool. To use the tool
you will first have to connect your machine to the
internet or alternately have access to debian
package repositories.

$> apt-get update

$> apt-get install alien

These two steps should install the alien package
on your system. Use the following commands to
generate the .deb file -
$> alien -k your_rpm_name.rpm

This takes some time to execute depending on the
size of the package you are trying to debianise.

After the debian package generation is complete you
can use the dpkg tool to install the package as -
$> dpkg -i your_rpm_name.deb

Alternately, alien allows you to directly install the
rpm by using the -i switch.

Tuesday, April 28, 2009

Minimum interest to get 1099

You will not receive a 1099-INT from your bank
if the interest you earned in the financial year
is less than $10. However, federal laws require
you to report all interest earned.

Only interests less than 50c could be
dropped due to rounding off. YTD interest
paid is available on yearly statements
issued by your bank.

Monday, April 27, 2009

W7 processing time

It is said that the IRS should take less than
8 weeks for processing the W7 form which
provides a new ITIN (income tax identification

Latex package not found

Came across this problem the other day. Usually my version
of Miktex automatically locates a package from the
repository, download and installs it. This time it did not
work and due to the absence of the required package
my latex code would not compile.

An important check to perform would be to find your
Miktex version. This can be done by checking different
options on your editor or an easy alternative is typing
latex on the command prompt which shows the
miktex version -

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
! End of file on the terminal... why?

If you are using Miktex version 2.4 or before, you will not be able
to download any new packages, as all repositories have been
removed and you need to install a newer version of miktex.

Follow our post on getting Latex running on windows for more info.

Working with latex on windows - The 3 step guide

There are 3 essential steps to get latex working on
windows -

1. Miktex - Miktex is the latex package for windows
and must be installed before doing anything. A simple
way to get this package is by visiting the site -

Multiple options are available for installation, with the
most popular and widely used option being the ~80MB
installation with popular packages.

This is a windows installer file and is pretty self explanatory.

2. Ghostscript and GS View- These applications are
majorly required for working with postscript files and
strongly recommended for newbies. The installation
files can be found at -

3. An editor - WinEdt - Technically the user could work
with any editor but my choice is Winedt, because of its
particularly simple and intuitive interface. The software is
available at -
This link also has detailed installation instructions - and
how it works with Miktex and ghostscript.

If you are finding it hard to locate and download any
of the source mentioned here, googling the name with
a download tag should help you locate a resource.