Monday, July 16, 2007

TECH TIPS

In case of any problem in loading firefox extensions, delete the extensions.ini, extensions.rdf, extensions.cache files in the profile folder. They will be regenerated on firefox restart.
For eg: the profile folder will be /home1/rohithdv/.mozilla/firefox/e77hmcu6.default . where /home1/rohithdv is the home folder.

Friday, June 15, 2007

Some real cool Lifehacker links ..mind you ..these will eat up your time ..! :)

http://www.lifehacker.com/software/gmail/hack-attack-become-a-gmail-master-161399.php

http://www.lifehacker.com/software/feature/hack-attack-mouseless-firefox-139495.php

http://lifehacker.com/software/technophilia/yubnub-web-search-command-line-275460.php





Powered by ScribeFire.

Linux command reference

Check out this cool link : lists commonly used unix commands - http://www.pixelbeat.org/cmdline.html





Geek to Live: Visualize your hard drive usage - Lifehacker
Command line: du (disk usage)

Not so much into this whole graphical user interface thing? Command-line lovers can also use the du (disk usage) command to get an idea of what's taking up what. The -h parameter makes the file sizes human readable. From Cygwin on Windows, or the Mac Terminal, cd into your directory of interest and try:





$ du * -h





The output will look something like:





28M FileFormatConverters.exe

28K LH_Logo_Store_Image.jpg

32K Lazy_Store_Image.jpg

5.3M photos-for-flickr

52K Travel form - small Word 03 - gtrapani.doc

28K Travel form - small.docx

16K emailnewgoogdocs.png







A few more du hints:







This article at Linux.com, Disk usage analysis and cleanup tools, also has more on du and other 'nix-based GUI tools.







Powered by ScribeFire.

Monday, May 28, 2007

Example Note 1

This is an example of a formatted note note



Powered by ScribeFire.

Sunday, May 27, 2007

Some Cool Vim Features

:ta /functionname - to search for function names when we dont know the complete function name
:tn - iterate through all the matches of the previous command.

:s/old/new/g - replaces all occurrences on the current line

:!ls - executes external commands

:r - inserts the filename to the position of the cursor

:r !ls - inserts the output of ls to the cursor position

use h j k l for cursor movement in vi

v - Visual mode to select text.
follow the above by operations like 'y' ( to copy ) or 'd' (to delete)

Some UNIX tips I used

To select multiple emails in pine :-

For Eg : Deleting Multiple Emails

To delete multiple messages in Pine you first need to enable the
aggregate command set. Then use them to mark and delete groups
of messages.


1. From the main menu Press S (Setup)
2. Press C (Config)
3. Scroll down using the down arrow key to:

[ ] enable-aggregate-command-set

4. Press X It should now look like:


'[X] enable-aggregate-command-set'

5. Press E (Exit) to exit the setup. You will be asked to confirm the change.
6. Press Y (Yes)

You should now be back at the main menu.
7. Press I (Index) This will put you in the inbox index.


The commands you need to use are ; (select) and A
(Apply). If you Press O once or twice you should see
these on the menu. But this is not necessary to actually
use the commands. Now we show two examples of deleting multiple Emails.


To delete the first 1000 messages:


1. Press ; (Select).
You will be asked for what category.
2. Press N (Number).
You will be asked to enter a comma delimited list or use a dash
for a range.
3. Type 1-1000.


The system will respond by placing an X in front of the first
thousand messages. Next you will delete the messages.


4. Press A (Apply). You will be asked which command you want to apply to the marked
messages.
5. Press D (Delete)
6. Press X (eXpunge)


Instead of pressing X (eXpunge) you could also quit pine and
answer Y(Yes) when it asked if you want to expunge them.


********************************************************************************

Saving a Message to a Folder You Specify

1. At the Message Index screen, use the arrow keys to highlight the message you want to save.
2. Type S (Save) to save a message.
3. You are asked if you want to save it to the saved-messages folder or another folder:
SAVE to folder [saved-messages]:
4. Type a folder name and press .
For example, to save a message to a folder named "friends," type friends and press . If this is the first time you have named this folder, you see the message:
Folder "friends" doesn't exist. Create?
5. Type Y or press to create the folder.
Once you have created the folder, or whenever you type the name of a folder that already exists, you see a message like this one:
[Message "#" copied to folder "friends" and marked deleted]

****************************************************************************************************


to find pdf files from a root dir with a modification date in 2007.
find ./ -name "*.pdf" | xargs stat -c='%x %n' | awk '{ if ( substr($1, 1, 5) >= "=2007" ) { print $1 $4;}} '

to untar all tar.gz files in a directory
for filename in *.tar.gz
do
tar zxf $filename
done


if u want to open a Xsession from a remote login , first add the IP of the remote computer to the access list of the host computer using the cmd : xhost + . Then set the DISPLAY variable on the remote computer to the IP of host computer using the command - export DISPLAY=:0.0