Thursday, September 25, 2008

Updated Google Analytics Export to Google Docs

Google Analytics has updated the layout for the graphs and export links in their reports...breaking the script. Now it is updated to v2.6 and works smoothly.

New links:
Greasemonkey Script Page
Download GM script directly

Cheers.

Wednesday, September 17, 2008

Yahoo Mail in iGoogle

iGoogle is my homepage and although I have a Gmail account, I still prefer the Yahoo! Mail experience.

Here is a link to the Google Gadget using the mobile interface of Y! Mail

However, the mobile interface has a lot of fluff and does not fit perfectly in the gadget frame. Therefore I created some gm scripts to make it more useful and provide a better fit.

Greasemonkey Scripts
Main Script: http://userscripts.org/scripts/show/33874
Detail Page Script: http://userscripts.org/scripts/show/33875

Wednesday, September 3, 2008

Chrome 1st Impressions

I have been testing out Google's new webkit-based browser, Chrome, for about 1 day now and so far I am pretty impressed.  The performance is generally fantastic, although I did have some sluggishness switching between open tabs when some CPU intensive activity (loading a lot of JavaScript and playing Flash video) was going on in my current tab.  Otherwise, it seems to be very very fast and lightweight in the memory department.

I wanted to compare Chrome vs. Firefox 3, especially in the area of JavaScript execution.  My favorite js library is jQuery, so I decided to test how well each of the two browsers can rapidly process all of the appear/disappear effects.  Here are the video results:

Monday, July 28, 2008

USA Basketball as a microcosm of the USA today

It was 1992. The wall had fallen only a few years before. Communism was virtually dead. We had enjoyed a quick and easy victory in Iraq (GW1, at least seemed easy). Long live the free market, democracy and the USA.

That was when arguably the best set of talent in one sport had ever been assembled to play together for the Olympic Games in Barcelona. Who knew that would end up being my future home city. The names were legendary and the talent was spectacular.


Team USA basketball went onto to win the gold medal, going 9-0, with an avg. margin of victory of 43.8 points (thank you Wikipedia), and never used a timeout. That is pure dominance.

For the next 8 years, Team USA continued to win, but every year the margin of victory was smaller and the effort required was greater. Finally, in 2002 Team USA finished 6th the World Championships in Indiana.

Two important things happened between 1992 and 2002 to bring about this dramatic turn of events:

  1. The rest of the world greatly improved. The teams that the USA faced in 2002 were composed of players who grew up playing basketball. Motivated and inspired by their childhood heroes who played on the Dream Team - Bird, Magic, Jordan, Barkley, etc... - the talent level has significantly improved. Team USA had just assumed that foreigners could never play as well as Americans

  2. Team USA lacked discipline and did not prepare for the future. We were lazy and sloppy. There were virtually no team practices and assembling a team was a joke. Basically, we just scrapped together what players we could get to play (with permission from the companies who paid their endorsement contracts as well). Meanwhile, all other countries maintained a permanent team roster, scheduled practices, exhibition matches and participation in other tournaments.

Team USA was in denial for the next 4 years. It could not put together a solid team, which understood how to play as a team, and floundered in the 2004 Olympics.

Finally, in 2006, the NBA realized that it had to get smart and serious in its cooperation with Team USA. They would have a permanent coach and players would have to commit to play for 3 years on the team. Invitations were given and tryouts conducted in Las Vegas. While they still failed at the 2006 Championships to get a gold medal, it was early in the process. All eyes are focused on the Beijing Olympics.

Who knows what will happen next month, but my money is on Team USA bringing home the gold. When the USA puts its mind to it, it can accomplish great things. But, we can never forget that it requires determination, a commitment to excellence, and
a willingness to not cut corners.

OK, but why is the title of this post "USA Basketball as a microcosm of the USA today"?

The USA is like Team USA Basketball around 2002. My country has been lazy, arrogant, and has not made the right investments while the rest of the world has been raising its level of competition and competence. The election this year is basically between those who still see the USA as the Dream Team (McCain) and those who recognize that while we used to be the Dream Team, we lost our step along the way (Obama). Much of the country is still in denial about the rise of China and India and a mature EU as true economic competitors across the board.

A lot of the focus on patriotism in this election, is really a reflection by one side that they are unable to admit that the USA needs to get its act together. They are sticking to their belief in American Exceptionalism even though everyday the USA without improvement is just a little less exceptional. This exceptionalism came from continued investment in people, infrastructure, and ideas. Unfortunately, the lack of smart investment in infrastructure and people made beginning in the 80s through to today reflects itself in a crumbling K-12 educational system, collapsing bridges and levees, and faltering mortgage market (A lot less people who are now foreclosed on, would have bought the house in the first place if they had had a reasonable economics education).

It is time for the USA to recognize that it needs to compete not on talent alone, nor intimidation, but simply by being better than everyone else. That will not happen until we rebuild our education system, provide healthcare, build infrastructure intelligently, and approach the world with the understanding that "you know, they've got game too".

Updated Greasemonkey Script Integrate Google Analytics with Google Docs

Google seems to have updated their security in Google Analytics for exporting data, so I updated the Google Analytics to Google Docs Greasemonkey Script to accomodate the GA improvements.

Wednesday, July 2, 2008

My Dropbox Gadget

Update 01/12/2009: Dropbox changed their primary domain and iGoogle does not handle the redirect correctly, nor have I found a way to update the link via iGoogle.  Here are the new links to add a new module that works. Sorry for the delay.





UPDATE #2: I have just released v2 of the dropbox gadget. I have changed the gadget type to URL instead of HTML and I am hosting the gadget files directly using Dropbox. This allows the gadget to test if 3rd Party Cookies have been allowed for the getdropbox.com domain.

It seems that Dropbox has updated their privacy settings on their site so that IE now will let users access the gadget using the default privacy settings. In Firefox, however, if you have deselected "Accept 3rd Party cookies" you need to add getdropbox.com to the exceptions list.

The V2 version of the gadget is available:
Download V2 My Dropbox Gadget

Thanks for all of your support and the for the mention from Lifehacker.



UPDATE: After the initial release of the gadget I did some more testing based on feedback that I received. In the end, there appears to have been two separate issues:
  • The new iGoogle gadget.* API does not appear to be available for all users and browsers just yet. I switched back to the legacy API for all of the code.
  • The cookies set by Dropbox are considered 3rd Party cookies and so they are blocked by the default cookie security rules in IE 7. These are usually blocked because of advertising servers, but there are "white hat" uses as well...such as the case with dropbox.
I will add a test to the gadget to see if 3rd party cookies are enabled. Separately, there might be a way for Dropbox to change their cookies so that they will be accepted as a 3rd Party cookie.


If you have not heard of it, Dropbox is a fantistic service for syncing files between computers and a central web repository. They are in beta but you can signup here. Here is a screencast they have that shows the tool in action:



Although you can sync multiple boxes, I only sync the service with 1 PC currently, but I use the web interface frequently and a common file backup and anywhere access solution.

The idea occurred to me to build a Google Gadget where I could have even easier access to my dropbox whereever I go, especially on the computers that I frequently use but do not want to install the client software. So, I created the My Dropbox Gadget.



I submitted it to the Google Gadget Directory and will update the link soon. In the meantime, you can download the Dropbox Gadget here.

Once I got that working, I found that the natural width of the dropbox table did not fit well with the standard module width for iGoogle, so I created a greasemonkey script that adjusts the table style so it alwasys fits the gadget with in iGoogle. you can download the Fix Dropbox Width script here.

Friday, June 27, 2008

Google Captcha Gotcha!

So we are setting up some new buisness processes at work using Google Video and I had the lovely task of creating new Google Accounts for various groups in my business. Actually, the form is quite simple and easy except for the captchas. I think google uses some of the most difficult captchas today (they range from simple to impossible). I guess that is something they need to do.

However, it seems to me that they could make it more difficult for bots without making it so hard for humans to understand.By surprise, I came across what seems to be a bug in their system today. A few years ago, Google added an Audio Captcha to improve its accessibility.I was totally stumped with this captcha:

I really could not tell if that was gnttyled or grityled or what....so I decided to click the wheelchair icon to hear the audio. This however, is what I heard:

It would be easier to decipher a drunk Bob Dylan arguing with Tom Petty, in Japanese, than to figure out this audio captcha.

Now Google does admit that they audio will be challenging:

To keep the audio captcha as challenging as the visual captcha when confronted by automated agents, we add some distortion to the spoken digits, and we're still experimenting with different distortion techniques to ease the burden on the genuine human user while locking out automated agents.

However, that is just ridiculous! Try it for yourself and you can send them feedback.