Tuesday, June 2, 2009

Firefox Profiles

Firefox is the most widely modern browser. (IE... what are you talking about??)
One of the main reasons behind massive popularity of Firefox is it's capability to have additional plugins and add-ons.
Firebug, DownThemAll, Xmarks, Stumble, Google, Yahoo, Alexa, ReadIt!, Web Developer Toolbar, IE Tab and what not!

But unfortunately, some of us do not own massive 8GB - QuadCore Giants and running firefox with all these add-ons. So what happens is, FF starts eating a lot of RAM. To avoid this:
Use Firefox Profiles
Basically have 2-3 profiles: One for all the heavy technical work: Install firebug, YSlow!, Xmarks Alexa etc... keep another one with stumble-xmarks-google...It will make surfing a little less painful. :)

This is also useful you are developing some firefox add-on and you don't want it to screw your settings or if you want to log in into another google account from the same comp and IE is as non existent to you as it is to me.

Here are the steps to make a new profile and desktop icons for the same:
  1. For Vista Users: Open the start menu and in the textbox type the command given below.
    firefox -ProfileManager
    XP users can use RUN for the same. Linux users can use command shell.
  2. Use "Create Profile..."
  3. In profile name, the easier way out is to use a single word say 'profile2' ('default' is obviously the default profile)
  4. And Exit!

Now we need to create a Firefox Icon that directly opens a specific profile.
  1. Create a copy of the firefox icon on the desktop.
  2. Rename one of them as default the other one as profile2. (You can name them whatever you want)
  3. Right click the first one and choose properties.
  4. In Target, add the following parameteres add the end -p "default" -no-remote. The final path looks like this:
    C:\...SOME PATH...\Firefox\firefox.exe -P "default" -no-remote

    the -P "default" opens up default profile.
    -no-remote is essential otherwise you won't be able to open two different profiles at the same time.
  5. Similarly, edit the second desktop icon.
I hope this post proves useful.

Monday, June 1, 2009

Bounce - Javascript!

It was 7:15 in the morning and I was about to sleep... but I couldn't. I had too much on my mind! Last night I saw the google I/O keynotes. Some really fascinating technologies and examples of pure brilliance! The day one video started with some really cool interactive animations inside browser... I think they were either canvas or flash, most probably the canvas element because one of the new feature they showcased was the <canvas> element.

So, there was this animation where balls fall from a point and the user draws some lines from where they bounce back. I thought of implementing that animation. Although that animation is not very difficult but because of my morning laziness i switched to a even more easier animation:

I think it's not 100% accurate probably due to floating point precision error or may be because of my stupidity.... :D

Anyways, if you like the thing... do leave a comment

PS: I am doing too much Javascript these days! o_O
PS2: Google I/O was awesome... GWT is awesome... Google Wave will be awesome.
And yeah... google is god!