Wednesday, 28 January 2009

Google Chrome - A Quick Review

-Akshay Ranganath

Today, Google is launching it's new browser called "Google Chrome" as a beta in more than 100 countries. This is to be an open source browser, taking a lot from the communities of Firefox and Apple. Reasoning on the lauch, the official Google Blog says,

"We search, chat, email and collaborate in a browser. And in our spare time, we shop, bank, read news and keep in touch with friends — all using a browser. Because we spend so much time online, we began seriously thinking about what kind of browser could exist if we started from scratch and built on the best elements out there."

All this sounds correct - and good. However, but, underneath, the browser seems to be yet another appetite for Google's hunger for data. Consider this, until now, Google could track you if you were on Google Search, Blogger, Mail or one of its innumerable products. With the browser, you just don't have to be on their site. All you need is use their browser - and over a period of time, start collecting anonymous information on the browsing habits of users and fine tune the ads. Better ads, better money.

I know it is a bit paranoid that privacy may not be invaded but, if Google chose to, would it be not possible to gain this advantage?

Microsoft though should now be feeling a bit jittery - with the dominance on OS being questioned (Vista fiasco) and online document sharing sites impacting the Office dominance, the latest launch from Google must really be scaring them off!

What do you feel?

Updated on 04/09 after actually used Chrome for about 4 hours..

Why another browser?
One question on everyone's mind seems to be "Why another browser?" and "Why should Google bother about it?" Well, the answer seems to be buried in many blogs and reviews. But two things emerge:

1. Competition with MS

At a superficial level, Google wants to keep Microsoft on its toes. IE is still the market leader with more than 70% market share. Despite Firefox being popular, 13% is still a small user base. Google wants to thow its weight and push more users to the browser platform and 'disintermediate' users from the shackles of not just IE but from the clutch of Windows itself. After all when the browser can open sites like applications, users start to lose the differentiator between what's online and what's offline. So Google Documents can take over Microsoft Office and be quite nifty on any platform.

2. Switching to cloud computing

At a more depth though, Google wants to turbo charge the adoption of the cloud. As this article says:

To Google, the browser has become a weak link in the cloud system - the needle's eye through which the outputs of the company's massive data centers usually have to pass to reach the user - and as a result the browser has to be rethought, revamped, retooled, modernized. Google can't wait for Microsoft or Apple or the Mozilla Foundation to make the changes .. so Google is jump-starting the process with Chrome." Continuing on this line the author says that winning the browser war is not the strategy - it is jump starting the user adoption to a 'cloud' based mode that is the real driver behind this innovation.


A small benchmark test

Yesterday, I used the browser for almost 4 hours and came away quite impressed. Since the browser claimed to have a Javascript engine that is separe (aka Virtual machine), I loaded sites that are AJAX/JS heavy like http://g.ho.st (a web operating system) to see what happened. Firefox handled ok, IE crawled while Chrome simple dazzled. Then, I tried some (illegal) mp3 songs download. This was simply incredible. Not sure how they did it, songs of about 7 MB that would have take 2-3 minutes got downloaded in about half a minute! I am still trying to figure out if the network was somehow so good yesterday (although I dount it..)

Relief for developers

If you've executed a project where the client demands multi-browser support, I'm sure you know how hard it is to achieve. With functionality, you can somehow wrench a logic but with the browsers, it is a totally illogical and irrational trial and error that can take eons to complete.

Luckily, Chrome is based on the Apple's WebKit fore rendering the pages. So, hopefully, us developers will not be hit too hard and won't have to design one more CSS hack set for one more browser.. Yippie!

Should I use a Third party or a First party cookie

-Akshay Ranganath

In this artilce, I'd like to point out the difference between the third and first party cookies and the relative merits / demerits of both. Its based on the article by Avinash Kaushik's blog and the book "Web Analytics Demystified" by Eric Peterson. This is an important cnsideration that you should take care before starting an analytics implementation. It could determine the quality of results that you get and any privacy related headaches that may come up.

The Basics
In the world of Web Analytics, many things related to site usage is measured (generally) via cookies. According to Wikipedia a cookie is "are parcels of text sent by a server to a web client (usually a browser) and then sent back unchanged by the client each time it accesses that server". Cookies are generally of two types:

1. First party cookies
: These are the cookies that are set within the domain of the site being accessed. So, if I am using http://www.cognizant.com, a first party cookie would always be within the domain of 'cognizant.com'.

2. Third party cookies
: These are the cookies that can be set with any domain. So when accessing Cognizant, if it used Omniture for tracking would have a third party cookie set in the domain of '207.net. So in effect, a third party is a cookie that is set by a third party.

Problem with third party cookies
Generally, third party cookies are rejected by browsers (based on security settings of the browser) and most of the anti-spyware sofware.

Hence, some of the metrics that rely on cookies will be corrupt. For example, visitor measurement us dependent on the cookies. If the browsers reject them, then this metric cannot be relied upon. Note that the problem of cookie rejection is an issue with both first and third party cookies.

Another issue with the third party cookie is the visbility across domains. For example, if DoubleClick sets a cookie on http://siteno1.com would be visible even on http://siteno2.com. Such cookies are necessary for tracking ad-clicks and conversions. This is a legitimate use but, it is possible for some malacious site to set the cookie from one site and track the sites visited by the person using the browser. To avoid such problems, anti-spyware softwares strip web requests off the third party cookies.

Solution
The solution for implementing web analytics solution hence is to use rely on first party cookies. Google Analytics by default uses first party cookies. Omniture however defaults to third party cookies. You need to talk to your consultant and ensure that they switch to first party cookies and avoid getting corrupt reports.

Saturday, 28 June 2008

Short guide to using Web Analytics Solution Profiler (WASP)

Today, I was just looking at something and stumbled a nifty tool call W.A.S.P. Its a plugin for Firefox and stands for Web Analytics Solution Profiler. Freely downloadable from http://wasp.immeria.net, this tool can give you the metrics being collected from your site - and the actual analytics tool being used on that site.

For someone using tools like Google Analytics (GA) this is a big boon. This is because tools like GA did not have any type of debugger. So, if you implemented a solution, you had to wait until the next day to see if whatever you did was right. Unlike Omniture, there was not 'debugger' tool where you could instantaneously see what you was the information being collected and passed for the report generation. With W.A.S.P. all this could change...

Installing WASP
Intaling the tool is just like any other plugin install on Firefox. Just go to the website http://wasp.immeria.net and choose the tool. It gets installed as a plugin on your browser and simply restart the browser to get the tool working.

Using WASP
Once the tool is installed and active (which it is by default), it automatically starts collecting information about the websites you visit. So if you open a page which has analytics code on it, it automatically displays a notice at the bottom. For example, in the screen shown, the site is using Google Analytics. If you want to examine the details, double clicking on it will open the plugin with the details of the site (shown as the left panel in the screen).

The left panel that opens up will display all the parameters being passed to the analytics tool. This itself would be of tremendous help in debugging the implementations. What is still better is the way the variables have been explained in simple language. To use this, just choose some variable and it will display the name of the variable, the value and a short explanation about what information this variable is collecting. For example, in the screen attached, it shows that the variable 'utmdt' is collecting the value from 'Document.Title'. This I feel would help immensely for beginners. You don't have to refer too many documents. All you need to do would be implement analytics code, use the tool and start tweaking the solution.



Conclusion
The tool is nifty to use, easy to understand and install - and light. It can help in getting quick result in detecting what values you are capturing and verifying if it is correct. Of course, the caveat applies that you are using a tagging based solution. If you are using a log analyzer, the issues of debugging still remain. For a tag based solution, this is a great tool for both development teams and analytic consultants.

Sunday, 16 March 2008

phpMyVisites: A Short Review

-Akshay Ranganath


Lately, we've been conducting a lot of tools evaluation for a new client. One of the things that we were looking was to see if any Web Analytics tool could help us in readily getting the reports for our client. Here's a short synopsis of our reporting needs and a mapping to phpMyVisites.

Reporting needs of client

Our client wanted to gather some information on the usage pattern for their intranet site. They wanted to know roughly how many people were accessing the site and the machine configuration of the users. In summary, the main needs were:

  • What are the most heavily accessed pages?
  • What is the total no of people who visit the site?
  • What is the Browser, OS and Flash version on the machines from which the users
    are accessing?
  • Trigger emails of the reports at set periods
  • Make the reports available to be displayed elsewhere

Constraints

The main constraint we had was: No data for reporting should go out of the client network. The information being gathered was on an intranet and hence, client wanted nothing to be sent to external vendors. This ruled out the primary vendors like Google Analytics, Omniture.

The second constraint was on cost. Since the reports needed were quick and dirty, there was no outlay to spend too much (or nothing) on the tool to be used.

The third constraint was the ability to tag. Since most of the products being used within their intranet was PHP / Java based, they were confident that a small change to footer or header of all pages was no issue.

Our Solution

Based on the issue, we suggested phpMyVisites. This is a small and nifty tool that provides various statistics. The main features are:

  • Tagging based solution. So, no need to rely on Log files.
  • Page view and Visit statistics. This would provide information on the load and
    the quality of visitors.
  • Top entry and exit pages
  • New v/s returning visitors
  • RSS feed for the reports
  • PDF exporting capability
  • Emailing ability for the reports.
  • "Heat Maps" - a new feature that showed the places on the screen where most users were clicking.

Implementation steps

The solution is very easy to install and implement. It needs PHP, Apache and MySQL. After that, just unzip, create a database, invoke the extracted package as a Web Application - and just follow the screen. The setup takes about 10-20 minutes. Reports can be generated in under 30 minutes. For our test, we did the following:

  • Installing the tool on a Red Hat EL4 server
  • Setting up tracking on PhpMyAdmin tool
  • Tracking the blog software, Pebble

Pain points

The main pain area is its need for graphics library. For the graphical reporting to work, this tool needs PHP-GD2 libraries. As per documentation of PHP, this is bundled with PHP4.3 onwards. Despite having this version, we could not find the module.

Repeated install failed and the debugging has takes us more than a day. While trying to get it working within the constraints of company's intranet, getting any updates or dependencies resolved is time consuming. Hence, it would be better to try the install at home environment and then work in office.

Conclusion

The tool is a nifty piece of reporting that start telling you about your visitors and their browser information in under an hour. Just make sure that this is what the client wants. It is basic in its reporting as well as graphics capability. No Ajax and no Google Analytics like fancy reports and charts. But, for a reporting need, it gets the job done - and fast.

Project status

Currently, we have proposed the tool but, waiting to see if the client accepts the same. If it were purely upto me, I'd have this tool as a starting point on analytics but, switch to something more powerful in due course of time.

References

Saturday, 26 January 2008

Help please: Which Linux distro is best for mom and dad?

-Akshay Ranganath


My Problem

Well, as usual, my desktop running Windows XP got infected by virus and died yesterday (Apparantly, AVG did not help). I was about to re-install XP on it when it dawned on me that ever since I'd installed XP, I was having trouble with the machine.

You see, my machine is an old Pentium, 555 Mhz with 192MB RAM. It takes eons to run XP and crashes with Windows defender, anti-virus, auto-updaters and a host of other software that my parents never knew existed. Everytime I am not at home or at onsite, the machine would end up getting infected. My parents who were trying to dip their feet quite hesitantly into the shores of internet would be then frightened. They'd believe that it was them to blame for the crash.. and totally give up using the computer. Hence, the thought, why not install Linux on the desktop and help them?

My problem though is that I am not sure which distribution to use. Before embarking on that let me give you the skill level of my parents

Parents skill level

Basically, both mom and dad have almost never used computers. The only keyboard they were happy to use was the remote for TV - that too to change channel and reduce volume. Now-a-days though, Mom has learnt to send SMS. Dad manages to read the missed call on the Call registry of mobile. Apart from this, the skill level on computers includes ability to switch on, switch off the computer, type on notepad and sometimes managing to send an email (if the email URL is bookmarked). With the childrental (as in parental) guidance, they can chat.

Requirements from OS

Knowing the fear of computers that parents have, important things for the OS are:

  • should be easy to use with a UI similar to XP - at least, the menu should be on left-bottom with On/Off feature being easily identifiable
  • a browser (guess Firefox is the best - i could always use an IE skin to make it look similar to what they know)
  • small program for creating documents (well, this is more of an overkill, but it is definitely something they could learn)
  • a chat program to integrate with GTalk - if I am not in India, I could (just about could) make them use the chat software to talk to them

That's about the requirements from the OS. With this in mind, I want your help in identifying a good disto to use.

Potential options

Ubuntu: I have used Ubuntu but, felt that it needs a bit more of CPU and RAM to work properly. Also, the GNOME interface is a very HUGE learning curve for parents. So it is a definite no-no!

Fedora: Again, it is quite resource intensive and would probably not work on my desktop. Although, I've not used it a lot, from the look and feel, I could configure KDE - again, will it work on my machine?

Help from Internet: I did read this article but, the guy's parents seem to be quite familiar with computers and manged to migrate to a (unnamed) Linux system. Not sure if it'd work in my case!

I also took the Linux Distribution Chooser but - the quiz seems to believe that the person installing the OS is the end-user. Since this is not the case, the results were not all that helpful.

I also read the article Choosing Desktop Linux Distro but, I'd like a second opinion…

Help Please!

And so, I am writing this blog - could you the readers of the blog help me out with this dilemma - what distro would work for my situation? Please let me know which of the one would serve the purpose. Thanks!

Note:

I'd originally put this post on our internal corporate blog. From some really helpful FLOSS enthusiasts, I got the following comments:

..try out Zenwalk Linux distro ( www.zenwalk.org ). It is pretty light-weight and doesn't need a high configuration at all..

PCLinuxOS ( download it..its worth it) or Dream Linux ( should be available with jan LFY issue) ..A new kid is alinux( peanut linux formerly). screenshots at http://alinux.org/linux-screenshots.html

Did you give Xubuntu a shot? I haven't ... but it is supposed to be pretty low on resource requirement, atleast lower than Ubuntu

"Linux Mint 4 " Is the OS which works Out of the box with Gui Better than Xp and Vista,It will have all Proprietary Codecs Installed and Most common Drivers Installed By Default. It's Built with Ubuntu as a base and Some Good Packages Like Mint-Install , Mint-Update which make Automatic updating simpler than Xp / Vista.

I heard of Something Called Puppy Linux For Low end Desktops , try to google for it for its features, and Also Vector Linux Specially made for low end pentium processors and ram

Well, in the lowest memory max usability area, Damn Small Linux is the best. Its all of 50 MB but contains browser, text editors, music players, etc.

..http://featherlinux.berlios.de/applications.htm

i suggest PClinuxOS. simple, does the job and fits well. Even vectorlinux is a better choice for your parents. there are others like linuxMCE, MEPIS if you want to try. If you want to have large application base, go with traditional (G)ubuntu or CentOS.

Thanks for the great suggestions guys! Looking at the help, I had tried PuppyLinux (review follows). Xubuntu would not boot - and when it did (just 2 times), it did not detect my mouse - so I could do nothing much. I keep getting the error - "Unable to load system description tables" and then some out of memory error. After the second error, the comuter just hangs and does not boot at all.

Short Review of PuppyLinux

PuppyLinux seems to be a really light-weight and useful distribution for really old machines. The total download size was just about 98 MB. At about 1/7th of a CD's limit, this was impressive. I did not actually install t - but, I did try from the LiveCD boot. Here's my opinion on the distro:

Pros of PuppyLinux
1. Amazingly small size
2. Comes nicely with a pre-packaged browser and email client by SeaMonkey. Never knew that it was a derivative of Mozilla - so, it was quite impressive.
3. Default install comes with AbiWord, an excel-type program, calculator, themes, wallpapers..
4. Four different games!!! (How on earth did these guys fit all of this in???)
5. Two different X managers - Xorg and Xvesa. Xvesa works like a breeze and makes your old machine feel like it is the top-of-line latest one!

Cons
1. UI is not exactly elegant. At times, feels more like UI for kids...Especially, the icon of a small pup for the 'Start' button
2. Mouse detection seemed to work only during even numbered booting - on 1st, 3rd and 5th time, it failed to detect
3. Distro says it has ability to save session information to make LiveCD boot faster - but, the save feature failed on all times.
4. Not sure of the continued support for project - it looks more like an effort by one person. (my gut feel, not verified thoroughly)

My Verdict
I'd recommend it for some really old system which desperately needs very small and robust OS. For my needs though, it would not exactly suit mainly because of the non-elegant look-and feel.