Wednesday, June 04, 2008

How To Use Two Google Accounts With Firefox
(Applies to Firefox on all platforms)

It's quite annoying for us to have two Google accounts (or whatever) and keep signing in and out between them. A simple solution is to install different browsers. A simple solution is to use same Firefox with two profiles, but Firefox is too great to leave. You need a bit tweaking with the command line. The commands to use and their description are as:

firefox -ProfileManager Start with ProfileManager

firefox -no-remote Open new instance, not a new window in running instance

firefox -P profile Start with profile

Start a Firefox instance. Next go to command line. Start Firefox as:
firefox -ProfileManager -no-remote

You will get a window as:


Create a new profile here and start Firefox with it. Viola! you get a new instance of the browser. This profile you can use with other accounts.

To start Firefox with a specific profile use the command:
firefox -P -no-remote

Or simply use the command:
firefox -ProfileManager -no-remote
and choose the profile you want to use.

You may also create shortcuts for these commands in Windows as well as Linux for these.

(For Windows replace Firefox with the path of %INSTALL_DIRECTORY_OF_FIREFOX%\firefox.exe )

Sunday, April 20, 2008

What do You expect from the following code:

#include stdio.h
#include stdlib.h


int main(void)
{
int *p;
while(1)
p = malloc(sizeof(int));
return 0;
}


Consume all memory... huh! No! It won't. If You are in doubt; copy, paste compile and execute before reading further.

Now try the following code:


#include stdio.h
#include stdlib.h


int main(void)
{
int *p;
while(1) {
p = malloc(sizeof(int));
*p = 0;
}
return 0;
}


Now be careful. Don't copy, paste compile and execute, close all important applications and save Your data.

I executed the above code with a system information application open which gives info about current memory usage. Initially the system RAM was all consumed, then the hard disk showed the activity, which was OS trying to swap as much data to disk as possible. When even all the swap is used up the process is killed. Meanwhile a few applications like Firefox were also aborted.

The aftereffect was that most of the physical RAM was almost free. That's really wonderful. Now before trying any new game I just run my little C code and get the maximum out of my PC

Thursday, March 06, 2008

Untold Story, Known By All...

Once upon a time, there was a man who was very much attracted to a particular woman.




At first, she was just another attractive woman... but the more he got to know her, the more he began to feel attracted to her... and the more time he spent with her, the more that attraction grew into a deep emotional attachment and affection for her.

But there was one problem.

As his emotional attachment grew stronger and stronger, he also grew more and more insecure.

Why?

Because he couldn't tell whether or not she felt the same way towards him.


Sometimes she would say things like "You are so important to me" and "I'm glad that you're in my life"... but nothing ever progressed past the "friendship" stage.

There was an occasional hug, an occasional kiss on the cheek from her... and once she even held his hand for a long time while he talked about an emotional issue.

But something was wrong with the picture.

She just wasn't acting like a woman that was "falling in love". She was acting like a friend.



The insecurity that he felt became a spiral that amplified itself... and the more insecure he became, the more afraid he grew of "screwing things up" by kissing her or asking her to be his girlfriend.


Plus, the more insecure he became, the less time she seemed to want to spend with him.

After spending many days and nights obsessing over this girl, the man finally arrived at the conclusion that if she only knew how HE FELT, that she would feel the same way.

So he made a bold move.

He TOLD HER how he was felt.

He confessed that he was in love, and that he would do anything to be with her.

She looked at him with compassion in her eyes and said "Thank you... I really mean that... but I don't want to mess up our friendship... you're too important to me...".

This only confused the man more.

He didn't know how to take it...

Did it mean that she really loved him too, but that she was afraid of something?

Did it mean that she wasn't ready for a long- term relationship?

Did it mean that she didn't love him, but that she was trying to give him a hint?

Did it mean that he hadn't tried hard enough?

Did it mean that he needed to put everything on the line and REALLY let her know how he felt?



He finally decided that he couldn't go on like this anymore... he had to be with her.

He had to make sure that she knew just how much he wanted to be with her... so he took a big step, bought her a symbolic gift, and wrote her a long, long letter... again confessing his feelings.


And then the unthinkable happened.

She didn't reply.

He called her three times a day for almost a week before reaching her.

She made an excuse about being very busy, and said "I'll try to give you a call soon, I have to go"... and hung up...

...but he never got a call back.

Over the following months, the man tried desperately to understand what went wrong... and what happened...

THE END

Monday, December 17, 2007

Da Finger Code

Do you know the special finger combination Spiderman uses to shoot the web?
Here is picture for you:



Do you notice the special configuration of little finger, index finger and thumb?

And have you notices the handshakes children do as a symbol of friendship with each other, the one with index finger, little finger and thumb. Here are some scenes showing the same from the movie 'Koi Mil Gaya' :



The thing that looks amazing is this:




In sign language above symbol means "I Love You".
Does this ring the bell in Your heads.....

Monday, October 29, 2007

Firefox Campus Edition


Hey mates, tried the new Firefox Campus Edition. Here is the download link:
Windows: http://releases.mozilla.com/campus/2.0.0.6/win32/en-US/Firefox Setup 2.0.0.6.exe
Sorry, no release for GNU/Linux :-(

So whats special about it. Nothing more as such. If You already have the most famous browser (that's FireFox), then just install these add ons to make it campus edition.

FoxyTunes
StumbleUpon
Zotero

However I feel more stuff will be available in due course of time.


Keep Rocking.

Sunday, September 30, 2007

The name of the directory is

The title is complete, You need to know how!!

Create a directory named ` '
Can you do this in Windows. When I say create a directory named ` ' , I mean create a directory whose name is .

Looks illogical, right! But after all why it shouldn't be allowed. is not a special character like `*', `/', `\' etc and most of us use spaces within long file names.


I use GNU/Linux with ext3 file system. Simply using the command:

mkdir ' '

will create a directory whose name is ' '.

Doing this in GUI is not allowed. I tried KDE and it simply refused to accept space as an input (as it does in all cases, so no exception here).

Some nice screenshots are here:


Can You see an extra directory here


Why is file manager (konqueror) not showing the name ;-)


Hey what is the path of the file abc !! :-o