Thursday, May 27, 2004

multimedia keyboard

The tool xbindkeys (it has a GUI configurator too, but its a independently distributed tool)

http://hocwp.free.fr/xbindkeys/xbindkeys.html

U can configure any of the keys on the keyboard to change the PCM volume, mute xmms, Forward a song by 3 minutes,
basically anything that can be done from a commandline by mapping a key(s) mapped to the command in xbindkeys.

Moral of the story: therz no point spending money on a MultiMedia Keyboard if u use Linux..

Mozilla-Keyboard

In Mozilla u can search a word in the webpage using "/" for searching Text

to search Links just type the word on the page...the link containg the word highligts!! Just click enter and vola!! u r to the page u want!!

-Celebrate Browsing

Latex-Vim

vim-latex will make ur life of writing tex files too easy..
http://vim-latex.sourceforge.net

if u use gvim then u have a very nice GUI for automagically composing most of latex keywords.

Gentoo: Bootsplash, Framebufer etc..

http://wiki.gentoo-portage.com/HOWTO_Framebuffer:Bootsplash:Grubsplash

Command line IDE

try motor at http://www.freeos.com/articles/2876/

Installing 3rd party Ebuilds in Gentoo

http://wiki.gentoo-portage.com/HOWTO_Installing_3rd_Party_Ebuilds

Friday, May 21, 2004

changing priority of jobs

before a job starts:
> nice -n 12 make

after a proces started:

> renice 12 -p
> renice 12 -u joe

Priority ranges: -20 to 20

-20 means high priority and 20 is low priority.


Printer Setup

u can use the easy to use web-interface CUPS configurator that runs on port 631.

http://localhost:631/admin

to configure Network Printers or a Printer on ur Local Machine.

Its good to download the ppd file before u start the installation.

USB flash drive

Its usually a scsi device..

so u can mount it using
mount /dev/sda1 /mnt/usb

u can use fdisk on this device and create partitions on it, its just like any other harddisk.

Tuesday, May 18, 2004

ctags

use ctags, this make browsing the source code very convinient.

ctags -R *

Note: the command sometimes maybe exuberant-ctags

finding all files with same extension

* find . -name "*.txt" -print
o (Print out all names of files with the .txt extension that are in the current directory and its subdirectories)
* find . \( -name "*.cpp" -o -name "*.txt" \) -print
o (Print out all the file names which end with either .cpp or .txt. Note that you have to group multiple expressions with \( and \).)

Printing Text FIles

a2ps -E -o output-filename input-text-file

-E is for pretty printing and
Warning: without -o it might directly fo to the printer.