rss
twitter
    Find out what I'm doing, Follow Me :)

Saturday, March 20, 2010

Add-ons one should have with Firefox [Updated]

Add-ons one should have with clip_image002 clip_image004
This post was actually written for CEGLUG’s magazine TUX, I am sharing for my blog readers.                            
In this post I'm going to tell about the most useful Add-ons or extensions that can be used with Firefox Web Browser, varying from Web Development to Entertainment. Let me start with most known and used add-on Firebug.

Firebug:
            clip_image006Firebug allows us to edit, debug, monitor HTML, CSS and JavaScript live in any web page. You are seeing a site and say "wow", how this has been coded? There is always Ctrl+U to show the source code. But it’s very difficult to find some parts in a big web page. For this Firebug offers "Inspect", with which you can just move the mouse over a part of page or a frame or an image, it will show the source code in a window. This is one of the cool features Firebug provides.
                The other things that can be done are:
        Tweak CSS to perfection- means we can just change code then and there and see the effect of change dynamically reflected in the webpage.
        Visualize CSS metrics- Firebug will be our eyes and it will measure and illustrate all the offsets, margins, borders, padding, and sizes for us.
        Monitor network activity- To see how much time is taken to retrieve an Element in webpage.
        Explore the DOM- Firebug helps us find DOM objects quickly and then edit them on the fly.
        Quickly find errors- Firebug marks error in a page with a red cross and gives a detailed information of that error.        
             
           
Chickenfoot:
clip_image008   The next add-on we will see is Chickenfoot. Chickenfoot is a Firefox extension that puts a programming environment in the browser's sidebar so you can write scripts to manipulate web pages and automate web browsing. In Chickenfoot, scripts are written in a superset of JavaScript that includes special functions specific to web tasks.
For example, lets type go("google.com") and press Alt+R to run the script. Google.com will be loaded. Now if you give as remove("advanced search link") and run the script, the advanced search link will be removed from your page. Isn’t it great? Yes, it also offers various other JavaScript editing tools.


DataFox:
 clip_image010Next is DataFox. This is a Bandwidth usage finder for Dataone Broadband users. It takes hell lot of time to login to the dataone site and check for our usage. Most of the times (in my case it happened) website tells “Time Out” and ask us to login again. This is when I searched for an add-on and ended up in this. DataFox is a bandwidth usage monitor for BSNL’s DataOne and MTNL’s TriBand broadband services. It gives us with lot of preferences that will help us to use it more effectively. One preference I have enabled is that "Update on Start Up", so that every time I open browser, DataFox will display my usage, so that I can manage the available resources well J.

ColorZilla:

            clip_image012This is a cool add-on that gives you the HTML code and RGB code of any color you can see on your browser. Very handy for those designing interfaces. The other features are Online Palette Viewer, Allows viewing, bookmarking and sharing any color palette, provides a permalink URL that represents any set of colors, online Eyedropper shows colors in RGB, HSV and additional formats.

Live HTTP Headers:  
             clip_image014Live HTTP Headers is an add-on that helps us to view the http headers in real time (i.e., while the page is downloading). It helps us to see which kind of web server the remote site is using, see the cookies sent by remote site etc.

ChatZilla:
                        clip_image016ChatZilla provides the features of an IRC Client from your browser. This add-on allows us to use many chat rooms, easy for searching rooms on a particular topic and supports logging and file transfers too. IRC is particularly useful for Open Source Geeks who like to contribute by fixing the bugs and writing new add-ons for the available softwares.
Adblock Plus:

                        clip_image018Ever been annoyed by all those ads and banners on the internet that often take longer to download than everything else on the page? Install Adblock Plus now you can get rid of them. Yes, Adblock blocks ads, applets, flash, embedded-media etc. If you find something annoying in a webpage that is not blocked, just Right-Click on that part of page and just choose “Adblock”. It will not be downloaded again.

iMacros:
                        clip_image020iMacros is very similar to Chicken foot, but without the extensive JavaScript. If you want to automate something with JavaScript (and use the JS DOM) – use ChickenFoot, if you want to automate something graphically – use iMacros Record and replay repetitious work. Anything from filling out forms, remembering passwords, testing forms etc.
           A great time saver for those using badly coded websites, which reloads the form again when we have submitted with some kind of error in input. Just press Record and fill the form. If form reloads again empty saying “Time-Out” or an error, just press Replay Button. Your form will be filled in automatically.

Text Link:
                        clip_image022This small add-on allows to double-click on an URI that’s not been linked. Without this extension, when you discover an URI text not linked, like "http://www.ceglug.org/ you just have to Double-click on the URI text rather than copy-paste or drag-drop. Then, Firefox loads it. It saves lot of time.
Moonlight:
                        clip_image024Next time you see a website telling “Download Silverlight for better functioning” and you use Firefox ( I don’t think you would be using IE .. :P), just download Moonlight which is an open source implementation of Microsoft Silverlight for Linux systems. This supports moon-shine media player and also all the possible codecs.

Speed Dial:

                        clip_image026If you had used Opera Browser, you would have seen the speed dial feature. This Speed Dial is an add-on for our Firefox browser which provides direct access to most visited websites. But unlike the one in Opera this has more functionality like adding more dials than 25, and a lot of customizable features.
Updated.. 27-04-10
 
Echofon:
                  image Echofon is an excellent and an useful extension if one is ardent user of Twitter. Installing this adds an Icon into the status bar which shows updates in your tweets. It  notifies when your friend tweets and also gives a text box where in one can type their tweet.
 
Another feature that is most exciting is., when you see a link and you like to tweet it to your friends, that can be done in a single click.
 
Read It Later:
                  image This add-on allows one to save the pages you need to read later. Every link can be saved and you can view the pages later without any internet connection.This is not it, you can also sync saved pages between devices like your Iphone, Ipad, Android, or any other smartphone. (Sync between computers also possible).
 
Though there are many add-ons, these are some of the add-ons one must have with Firefox.
I hope this article would be useful to everybody. If you have any queries try googling or binging :D.
P.S: Thanks to Sanjeev for giving Ideas to write about the last two add ons.  :)

Wednesday, March 17, 2010

A post with Windows Live Writer

Hi, this is posted using windows live writer. Its awesome to use, very easy to configure. :)

Unique_Rainbow

This photo was posted to show features of live writer... :D

Download Windows Live Writer here

Sunday, March 7, 2010

Microsoft Interview Questions

Hi all,
       Here is my first useful post in this blog.I will be posting about my experience with Microsoft interview. Team from Microsoft visited my college this December (for placement) and I had been fortunate enough to attend the test in which I learnt a lot. Here I give the questions asked for me in both written and subsequent rounds.
Written Test:
      The test had 4 questions and time given was about 1 hour. Questions were
  1. A program was given and we were asked to debug the code so that it works as desired. The program's aim was "finding the meeting point of two linked lists".  It was quite simple and some of errors were like in allocating memory, some logical errors. But its doable.
  2. Given a Circuit (with resistors), we need to calculate the total resistance. Input will be like AB-5ohm, BC-6ohm, BC-10ohm, BC-20 ohm, CD-5 ohm. BC has been repeated twice implying they are in series. "Write a program  by implementing efficient data structure for storing and calculating the total resistance". I used stack using linked list and implemented which works for almost all combinations of circuits (but didnt work for some :D).
  3. "Write test cases for reversing words of string ". For eg. "This is nice" is input string and output is "nice is This". We need to write test cases for this program,(not the program for it). Writing some 5 to 10 will do. Start from some of the very simple cases like for eg. "Check whether the program in accepting input".
  4. You have been asked to write features of an "Universal Remote Controller".  Eg. "It will support TV,System, DTH etc". 
  The interviews in MS will be a loop process where a person has to attend interviews in a loop(every interviewer will interview us once). We need to satisfy all the four to get into MS. These are the questions asked for me in the three iterations of the loop I attended.(Totally 4, I was thrown out after 3. :D) .

Round 1: 

It lasted for about 1 hour and 15 mins, with the questions mostly from what is written in your resume.Some of the questions asked were,
  • What were your challenging projects? I named one and I was asked to write test cases for that. Interviewer was not satisfied until I gave around 10 test cases.
  • Deletion of a node in linked list.. seems pretty simple , he was expecting a code with good coding standards. From there discussion went upto locks and mutexes in OS. 
  • Print a Random word from a file. Input is "path to a file", constraints- No extra memory like hashing etc. All the words in the file should have equal probability.
  • Rectangles overlapping questions, write test cases.(I had seen this already). This is a popular MS question. I started writing immediately after he gave the question(without asking much details). Seeing that he asked whether I had known the question earlier, I said yes.(Reason I am saying is, at the end while he was telling the points he noted in this laptop during the course of interview, one was the points was honesty. It counts in interview :D). I have seen here.
Within 5 mins I was called for second round and questions were,

Round 2:
This time I was asked just one question and interview lasted for 1 hour 15 mins.
"Given a large number with many digits, propose a method or data structure to efficiently store them. Addition, subtraction, mult, division should be supported by your design."  He asked for a valid(working) C++ code .

Immediately after that round I was called for the next and this round lasted for just 20 mins.

Round 3:
Given a matrix, we need to transform it in such a way that  if an element is zero, we need to zero out the contents of corresponding row and column(of that element). Only minimal extra space allowed, test cases was also asked. I gave some solutions,but he didnt get satisfied as the I used more space than what he asked.
eg. if the matrix is
1 1 1
1 1 1
1 1 0
the output matrix is
1 1 0
1 1 0
0 0 0.

These were the questions asked for me.For all the rounds we need to write the code in paper and he ll be monitoring us from the other side of desk.Some may be asked to write the code in board also. Please feel free to discuss the solutions here and ask any doubts if u have.

Things I learnt from MS interview :
  • Thinking aloud, interviewers need to know what you think abt when they ask questions. 
  • Coding with standards.
  •  How to answer questions if we dont know the solution.
These were some I learnt.  There are many sites that give microsoft questions and if u want to prepare just google "microsoft interview questions" and u ll get numerous sites. All the best for your job interviews. :)

For microsoft internship questions, see this post by my friend.
http://blog.ceglug.org/sanath/?p=54

Thursday, March 4, 2010

Life, the Universe and Everything (Hello World)

Hi all,
       Well, this is my first blog post. I thought of actually writing a blog for a long time now and now finding interest to do so :). In this blog one can find everything about me,my interests,about programming,about interviews, about sports(cricket, tennis,F1), about new tech things (err..list keeps on going.. so stopping here :D). Let me see if I can blog well.. :)