Sunday, June 7, 2009

कर मंत्र

कराग्रे वसते लक्ष्मी करमध्ये सरस्वती |
करमूले तू गोविन्दः प्रभाते करदर्शनं ||


Wednesday, May 20, 2009

Devnagari Text Compilation in Kile

Compiling Sanskrit [Devanagari] text in Latex is easy with the Devanagari package that can be found in the Ubuntu repositories. However the input file .dn has to be processesed by the devnag preprocessor which results in the tex file which can be compiled and viewed in your favorite pdf viewer in one click by using the default keyboard shortcut 'Alt + 1' in Kile.

The preprocessing step can be integrated into Kile process by following this simple method so that everything can be a one-click process:

  1. Go to Configure
  2. Create a Tool called SansProcess
  3. In General tab --> Command = devnag
  4. Target = '%S.dn'
  5. In Advanced tab --> Type: Run outside of Kile
  6. Class: Compile
  7. Source Extension: dn
  8. Target Extension: tex
  9. State : Editor
Create another tool called SansBuild
  1. When you create this tool use the QuickBuild tool as its parent so that our Tool can get all those properties at birth.
  2. Add the SansProcess tool that we created to this tool and move it up to the top of the list.
  3. Now all we need to do is to create a keyboard shortcut to access our newly-minted tool easily.
  4. I have used 'Alt + S' on my system.
Enjoy !

Works on Kile 2.0.0 [using KDE 3.5.10]

Saturday, April 25, 2009

Backup list of installed software Debian

$ dpkg --get-selections

Store list of installed software to a file called /backup/installed-software.log
$ dpkg --get-selections > /backup/installed-software.log

Now you have a list of installed software. After installing base system you can immediately install all software.

Debian Linux
Debian Linux makes your life easy. All you have to do is type following two commands:
# dpkg --set-selections < /backup/installed-software.log


Now your list is imported use dselect or other tools to install the package.
# dselect

Select 'i' for install the software.


Friday, April 24, 2009

Pdf stamping editing annotation in linux

Use the program PDF-XChange Viewer under Wine on Linux for effortless annotation in linux.

Find it here http://www.docu-track.com/home/prod_user/PDF-XChange_Tools/pdfx_viewer

Thursday, February 19, 2009

BitsNameRangeDecimal digitsUses
8byte, octetSigned: −128 to +1273ASCII characters, C/C++ char, C/C++ int8_t, Java byte, C# byte
Unsigned: 0 to +2553
16halfword, wordSigned: −32,768 to +32,7675UCS-2 characters, C/C++ short, C/C++ int16_t, Java short, C# short, Java char
Unsigned: 0 to +65,5355
32word, long, doubleword, longwordSigned: −2,147,483,648 to +2,147,483,64710UCS-4 characters, Truecolor with alpha, C/C++ long, C/C++ int32_t, Java int, C# int, FourCC
Unsigned: 0 to +4,294,967,29510
64doubleword, longword, long long, quad, quadwordSigned: −9,223,372,036,854,775,808 to +9,223,372,036,854,775,80719C/C++ long long, C/C++ int64_t, Java long, C# long
Unsigned: 0 to +18,446,744,073,709,551,61520
128octawordSigned: −170,141,183,460,469,231,731,687,303,715,884,105,728 to +170,141,183,460,469,231,731,687,303,715,884,105,72739C only available as non-standard compiler-specific extension
Unsigned: 0 to +340,282,366,920,938,463,463,374,607,431,768,211,45539
nn-bit integer (general case)Signed: ( − 2n − 1) to (2n − 1 − 1) Ada range 2**(n-1) .. 2**n;
Unsigned: 0 to (2n − 1) Ada mod 2**n;
Integer Storage

n-bit integer
(general case)

Signed:
( − 2n − 1) to (2n − 1 − 1)
Unsigned:
0 to (2n − 1)

Decimal Digits:




Signed Unsigned Decimal Digits
( − 2n − 1) to (2n − 1 − 1) 0 to (2n − 1) \lceil (n-1) \log_{10}{2} \rceil
\lceil n \log_{10}{2} \rceil






Tuesday, January 27, 2009

LInux Tips

Find the version of Ubuntu you are using.
On the command line: lsb_release -a

Look at these files

/etc/issue
/etc/lsb-release
Convert pdf to jpeg in Linux from command prompt

First you need to have ImageMagick installed in your Linux machine.

To install ImageMagick in Debian, run the following command:

$ sudo aptitude install imagemagick

To convert pdf file to image use the ‘convert‘ command:

$ convert doc.pdf doc.jpeg

convert to tiff

$ convert doc.pdf doc.tiff


If the default output is too low resolution, you can add “-density NNN”, where NNN is a number.

EG: I just did an A4 PDF to a PNG, but it came out too small. To make it bigger/higher res, I did: “convert -density 300 input.pdf output.png”