Showing posts with label duct tape. Show all posts
Showing posts with label duct tape. Show all posts

Tuesday, March 27, 2012

A Dollar is not a Krona, a Deciliter is not a Cup - adventures with Google Translate and Units

The country Sweden has a very interesting use of the official @Sweden account - each week, a new individual gets to use the account, allowing lots of interesting Swedish stuff flow through your twitter thing.

While following this account during the week that @vassaste_kniven was @Sweden, the following interesting misfeature of Google Translate came up; the guy loves to make food, and was trying to translate his recepies with the help of Google Translate. He complains:
  •  I know, but if you google translate the page 3 dl turns to 3 cups.  :) 
Now a "1 dl" (deciliter) is not the same as "a cup". If you ask google "1 cup in dl" it goves the right answer:
  • 1 US cup = 2.36588237 dl
Odd. So Google knows this, but Google translate does not!

I started playing around with units in Google translate to see how wrong it can be, and I quickly went down the rabbit hole of total bizzaro world.

What about the money, money, money?


The first unit that came to mind was money. For example, if you want to translate "20 kronor" (that's 20 swedish crowns, i.e. currency unit SEK), google translates it to "$ 20"! Now, 20 bucks is, according to the search "20 USD in SEK":

  • 20 U.S. dollars = 133.313781 Swedish kronor



So thinking it's rather crazy that Google translates straight to US dollars, I then sort of accidentally tried to translate "3 kronor" instead, and to my amazement got "3 crowns".

I was like... what?!


20 kronor was one thing, 3 kronor another?

I was baffled. My bafflatron started to blink. So I started playing.

  • "1 krona" is "1 crown
  • "2 kronor" is "two crowns
  • "3 kronor" is "three crowns"
  • "4 kronor" is "SEK 4" for some reason!?
  • "5 kronor" is "SEK 5
  • "6 kronor" is "6 crowns" (up to 8)
  • "9 kronor" is suddenly "9 dollars"
  • "10 kronor" is "SEK 10" and we are back to currency units!?
  • "11 kronor" through "19 kronor" all get the "SEK" treatment
  • "20 kronor" is suddenly "$ 20" - with the dollar sign, not "dollars" like "9 kronor" got for some reason?
  • "100 kronor" is "$100"
  • "1000 kronor" is "$1000"
  • "1001 kronor is "SEK 1001"
I could go on, but you can try it yourself at Google Translate.


But it doesn't end here. It gets even weirder.


I know from me playing around with Japanese translations that Google considers complete sentences (ending with a period) different from incomplete sentences. I.e. you can get a completely different translation if Google knows the sentence is ending rather than not (especially in Japanese), e.g. "O-genki desu ka" translates to "How are you" vs. "O-genki desu ka." with the period" to "How are you doing".

So I tried the numbers with a period, and if I wasn't baffled before, my bafflatron now started smoking and glow red:
  • "1 krona." is "1 crown." (no change but the period)
  • "2 kronor," is "2 crowns." (went from written to numeric form!)
  • "3 kronor," is "3 crowns." (same change as 2)
  • "4 kronor." became "4 million.". 
Wait... WHAT? FOUR MILLION?

My bafflatron immediately exploded! Holy haleakala what is going on here!? I kept going:
  • "5 kronor." is also "5 million."
  • "6 kronor." up to "8 kronor." is also as many "million"!?
  • "9 kronor." is suddenly "9 dolllars." again
  • "10 kronor." is "$ 10."
  • "100 kronor." is "$ 100."
  • "1000 kronor." is "1000 dollars." (no longer a dollar sign?)
  • "1001 kronor." is "1001 dollars
I could go on but you can play yourself too.

Back to the cookery...



I tried some other Swedish and European units, and got more fun results:
  • "1 dl" is "1 cup"
  • "2 dl" is "2 cups"
  • "3 dl" is "3 dl" ....okay, thats at least accurate ! :)
  • "4 dl" is "4 cups"
  • "5 dl" is "5 dl" ....again right, also for 6 and 7
  • "8 dl" is "8 ounces". WHAT? New unit again? A fluid ounce is 0.29 dl actually!!
  • "9 dl" is "9 dl"
  • "10 dl" is "10 ml"
Stop right there.... a dl (deciliter) and ml (milliliter) are not the same thing (there are 100 ml in a dl).

Again, I could go on, but you can play for yourself.

Adding periods this time didn't seem to change. But what if I spelled out "deciliter"?

Well, it got a lot better; It just decided to - quite randomly - write out "decilitre" vs writing "dl" in the result, e.g.
  • "1 deciliter" was "1 decilitre"
  • "2 deciliter" was "2 decilitres"
  • "3 deciliter" was "3 dl"
...and so on


My conclusion So Far


Having played a lot with Google Translate recently, I can't say I understand it, but I have developed an understanding for it. It seems to want to try to map idiom to idiom. In Japanese, there are a bunch of "set phrases", which if you translate them literally, they mean one think, but they've been idiomized to mean another thing. 

For example, "hajimemashite" literally means something like "as for the first time", but it is used as a general greeting when meeting someone for that first time, and hence gets translated (quite reasonably) by Google to "Nice to meet"... coz that's what you mean when you say it.

For some reason Google seems to want to idiomatically translate "20 kronor" to "$ 20" almost like if you were to translate a phrase like "I bet you twenty bucks that he won't do X", you wouldn't want the translation tool to translate it to betting 133 kronor and 31 öre in Swedish :)

My theory is that this idiomatic logic makes it fail heavily on units?

Anyway... there is probably more fun to be had with other units, but I just wanted to emphasize with this...

  • ...do NOT trust Google Translate with units. Not even a tiny bit.

Zap out


/Z










Monday, January 31, 2011

Welcome to MasterZap.com - finally.

So, as of a couple of days ago, I finally own the domain MasterZap.com

*champane cork sound*

"Huh", you say, "didn't you always?"

No.

As a matter of fact, the domain I "always" owned is Master-Zap.com - yes, the hyphenated one.

Now, I finally own the unhyphenated version. And this in no small thanks to some horrible scumbag scammers known as "InTrust Domains" (stay away from these slimepuppets, far, far away).

But Glory and Justice(tm) prevailed in the end. Yay.


Some history


A long time ago (1997), in a galaxy far far away (right here, actually), I made a CD.

As I've been known as "Zap" in computing circles for years, and also used this as a bit of a name when making music. This CD contained some space-techno-pop-electronic-stuff, was called "The Curvature of Space", and what "artist" name did I choose?

Well.. the CD is made by "Master Zap and the Null Pointers".

Yeah. Funny me. "LOL".

So time comes to do this internet-thing. I already had a website since eons, but no "real URL".

Stupid move: Trust a free domain service, such that I once "owned" the URL zap.base.org (now not working, but prominently splattered across the CD cover, sigh)

This taught me a valuable lesson: Never promote an URL you do not own.

So I needed to buy a domain.

"Zap.com" was taken already back then. So I figured that I try something else, and was juggling between "Master-Zap.com" and "MasterZap.com". (The scariest part of this story is that only a couple of weeks earlier, I had seen that Zap.net was free, and I was STUPID enough not to snag that, ARGH!)

After asking around, most people at the time felt the write-together was harder to read, and, sadly, I chose the hyphenated variant..... this was back in the day when domains were $50 a year!!

Soon after, someone sucked up "MasterZap.com", as they do, the slimy domainsquatting idiots, so when time came to change my mind, I noticed the domain had been registered since October 2000.

Well, fast forward 10 years, and I never really cared much about "MasterZap.com", since people don't really type domains by hand anymore, I owned many OTHHER domains anyway, etc.... it wasn't a huge deal that I didn't own it..... it was just a minor nag.

I always held a small amount of glee, though, to the poor idiot who was paying money for having "masterzap.com" for no use whatsoever to them.

But then something happened


I suddenly got this email from some bloke "Arthur Simmons" at "InTrust Domains", saying that they were "about to put masterzap.com on the market" and "since I own a similar domain" I may be "interested", wich a clickable link of some sort.

Alarm bells rang for several reasons:


  • Rule of Internet Life #1: Never trust anyone with the name "trust" in the name
  • The clickable link had some other domain name in it
  • And worst of all: At the bottom was an "Unsubscribe from our list" link that was the SAME LINK as the one to "inquire about purchasing the domain".


I was mildly annoyed, but thought little of it. I played with the idea of actually clicking for a while, just to see what extorsion-amount they were planning to chargme for a domain I am the only reasonable user in the universe of.

But I didn't.

Instead I went to my favourite registrar, tera-byte.com, which registers all my domains, and just did a whois lookup on "masterzap.com".

To my surprise, I noticed the domain was listed as "Expired"

Yes, the domain had been registered from October-2000 to October-2010. Someone had owned it for ten years, hoping to get me to pay them. They had finally given up.

"Huh", I thought, does this mean it's actually FREE? And I tossed off a try to register the domain.

No, came back the reply from my registrar, it's not free.

I discussed it with the tera-byte.com tech support (these guys are just GREAT, with the best tech support response time I've ever seen, btw) and they explained to me that when domains are unregistered they enter an X-month "grace" period, where they are held in limbo. After that, they enger a 5 day "delete Pending" mode, after which they are ACTUALLY deleted.

As I read this, I get ANOTHER email from a "Raymond Pontius" from "Limited Time Domains", making the exact same offer that our friend "Arthur Simmons" had done the way before.

Now, if alarm bells had gone on before, big loud klaxons and rotating red lights was now on!!

On top of this, I got further email from our friend "Arthur Simmons", but this time every clickable link in his message went to somwhere else. Then I got a third. And a fourthn. Similar "offer", different links......

I checked with my buddies at tera-byte.com, they recommended I do not click ANY of those links. Which I didn't.

I also googled "Arthur Simmons InTrust Domains" and got a TON of stories similar to my own. I learned a bunch of things from these stories:


  • There is practice know as "DropCatching" a domain. This means trying to steal it the second it is unregistered. Unreputable companies tries to figure out 'cool' domain names about to expire, claim that the own them (hoping they can dropcatch them when they expire) and try to sell them to you.
  • Many many people had horrible stories about InTrust Domains and the "Arthur Simmons" moniker. Some stories had happy endings, others notsomuch.
  • Thosw eithout happy endings either had 
    • Their domain go to someone else
    • ...or have to buy it out for many hundreds of dollars.
  • Those that DID have happy endings came in three versions
    • They simply contacted intrustdomains, and actually got to buy their domain at a reasonable price (although nothing below $69)
    • They simply waited, and after the "deletePending" period was over, the domain was simply free, to be picked up by anyone (so they did)
    • They used another "dropCatching" service to get their domain back, some recommending "SnapDomains.com"... but this never costed less than $69 either. Funny that.
I looked at those "happy cases" and started considering going the "SnapDomains" route. But not before doing some research. And what do you know, "SnapDomains" are owned by "Moniker.com"... which is the same entity that already had had my domains registered in the 1st (and had just released them)!! I also found some (although not well verified) links between Moniker.com and the very InTrustDomain scumbag links!!

So, no, I won't use another branch of the scammers scam to avoid the original scam in the 1st place, THANK YOU VERY MUCH.

I simply waited.

Sure, I set up a script to do a "whois" on masterzap.com roughly hourly, and ping me when something happened.

And whaddayaknow, six days after the record went into "pendingDelete" in the whois database... it was free.

I registered it with my belovable reistrar, tera-byte.com, costing me ALL of $9 (plus six bucks URL redirection), et voila, as they say in France.

Lessons Learned

Here's the moral of the story:

  • Trust InTrust Domains as far as you can throw them
  • If you ever get an email from Arthur Simmons, run for the hills
  • Coolness prevails (unless it's a super popular domain name, but who has any user for masterzap.com but me??)
  • Never actually buy hyphenated domain names in the 1st place.
  • If you are alive when zap.net is free, buy it.  Or any other three letter domain.
But hey, as a consolation price I own Z4P.COM, it almost looks like ZAP.COM ;)

/Z