Google Blogoscoped

Forum

Simple idea for Google currency converter

milivella [PersonRank 10]

Monday, July 7, 2008
11 years ago3,163 views

Convert between currencies of different years (to check inflation etc.):
5 USD 2008 in USD 1908

TOMHTML [PersonRank 10]

11 years ago #

I might be cool if we could make that with Google Co-op. Better if Googlers implement that themselve :)

Haochi [PersonRank 10]

11 years ago #

After doing some research on CPI* and messing around, I present you:
ihaochi.com/files/temp/inflati ...
(there's a small Easter egg – a bit of dark humor actually, don't be offended – try a few times before looking into the source code :))

I am working on the Google Gadget (for Co-op) right now, will post it here when I am done :) My first GGadget so I will test it a bit first.

*Got the data from here: woodrow.mpls.frb.fed.us/resear ...

TOMHTML [PersonRank 10]

11 years ago #

[put at-character here]Haochi : can you handle regular expression with Co-Op? I don't think so.

Haochi [PersonRank 10]

11 years ago #

Oops, been looking at the wrong direction. :(
Anywho, you can add that to iGoogle for now, I will work on the Co-Op later.
google.com/ig/add?moduleurl=ht ...

milivella [PersonRank 10]

11 years ago #

Haochi:

Thanks! You're great.

If you want ideas for further work, I have some ;) but, really, what you've done is fantastic. :)

And the easter egg... sad, funny and true at the same time!

Philipp Lenssen [PersonRank 10]

11 years ago #

Neat! To optimize your interface perhaps make sure people know what to enter into the fields. Perhaps use one of those gray pre-filled data. At my first try I entered something like

"How much does $10 in EUR worth in 2005?"
(which got "NaN") instead of
"How much does $10 in 2002 worth in 2005?"

Haochi [PersonRank 10]

11 years ago #

google.com/coop/profile?user=0 ...
The current format of query to trigger the Subscribed Link is "int USD in yyyy = ? USD in yyyy", the regex used in Co-op is [RE:(\d{1,20}) USD in (\d{4}) = \? USD in (\d{4})]

Suggestions welcome.

By the way, I couldn't quite figure out how to parse info from Subscribed Links to the gadget, anyone? :)

milivella [PersonRank 10]

11 years ago #

Haochi:

Great, again.

> Suggestions welcome.

Extend to other currencies? E.g. [4 USD in 1850 = ? EUR in 2008]

This thread is locked as it's old... but you can create a new thread in the forum. 

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!