Human Ingenuity puts a Fiat 500 C infront of VW HQ in Google Street View


Image

Interesting Story at Zagg Blog

Fiat’s workers spotted the Google Street view car, which captures panoramic views of locations around the world with a roof camera, driving past its offices. They quickly drove a Fiat 500C to Volkswagen’s head office @ Södertälje 45 minutes away and parked there ! Just in Time for the StreetView Camera to snap the following picture !

Now the Googel Pegman shows the Fiat in front of VW HQ !

An ode to the Easter Eggs, Ecstasies & Agonies of a GoogleIO Ticket


Chronicles of my failed attempt at procuring a GioogleIO Ticket … The Google Wallet ate my GogleIO 2013 Ticket !

It was the night before GoogleIO … Excitement was in the air … Tweets were in order …

Image

The order of the day was to find all Easter Eggs in the page …

Image

I clicked and clicked and clicked … and got thru all the easter Eggs …

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

And I slept …

It was early AM when I woke up … still 15 min before the GoogleIO stores open …

Image

The wait was agonizing, but all for a good cause, so I thought …

I was there when the GoogleIO Ticket store opened …

Image

I was not disappointed when my first try failed after 6 minutes …

Image

And my optimism payed off when it eventually found me a precious little ticket …

Image

I reviewed the purchase … and gave it to Google Wallet … little did I know that …

Image

But the screen stayed there and the time ticked down ….

By now the verdict was clear – The Google Wallet is going to eat my lucky GoogleIO Ticket ….

And It did …..

Image

And soon after the registration ended …. The cold hand of fate …

Image

Can I find a kind soul at Google to help me or should I wait for GoogleIo 2014 ? ….

Tomcat 7 packaging layout & install in Ubuntu 12.04


Today I installed Tomcat7 in Ubuntu. They have changed the layout of the directories and the changes are for good. We all are used to the Tomcat’s old layout and the new layout takes a little time to get used to … At first I couldn’t make head or tail out of it. Then I looked for things where they should be … and viola … it made perfect sense !

  • /usr/share/tomcat7 <- The bn, lib and the rest
  • /usr/share/tomcat7-root <- Am still figuring out what this does
  • /etc/tomcat7/ <- configuration files
  • /var/log/tomcat7/ <- logs. For some reason this directory is rwxr-x—-. Really should be  wxr-xr-x
  • /var/lib/tomcat7/ <- webapps et al go here

MongoDB mongorestore Assertion failure b.empty error


I encountered this error after trying to restore 2.1 mongodumps. (This happened only after installing mongodb 2.2.0):

The Error:

Wed Sep 19 18:33:26 Assertion failure b.empty() src/mongo/db/json.cpp 645
0x10036b5fb 0x10009ad86 0x1004af6f2 0x100016f85 0x100016944 0x100016944 0x100019e54 0x100313b5d 0x100315697 0x10000126a 0x1000011e4 
 0 mongorestore 0x000000010036b5fb _ZN5mongo15printStackTraceERSo + 43
 1 mongorestore 0x000000010009ad86 _ZN5mongo12verifyFailedEPKcS1_j + 310
 2 mongorestore 0x00000001004af6f2 _ZN5mongo8fromjsonEPKcPi + 1634
 3 mongorestore 0x0000000100016f85 _ZN7Restore9drillDownEN5boost11filesystem210basic_pathISsNS1_11path_traitsEEEbbb + 4117
 4 mongorestore 0x0000000100016944 _ZN7Restore9drillDownEN5boost11filesystem210basic_pathISsNS1_11path_traitsEEEbbb + 2516
 5 mongorestore 0x0000000100016944 _ZN7Restore9drillDownEN5boost11filesystem210basic_pathISsNS1_11path_traitsEEEbbb + 2516
 6 mongorestore 0x0000000100019e54 _ZN7Restore5doRunEv + 3140
 7 mongorestore 0x0000000100313b5d _ZN5mongo8BSONTool3runEv + 1325
 8 mongorestore 0x0000000100315697 _ZN5mongo4Tool4mainEiPPc + 5447
 9 mongorestore 0x000000010000126a main + 58
 10 mongorestore 0x00000001000011e4 start + 52

The Cause:

The offending file is the <dump directory/<database>/<collection>.metadata.json file.  It has a line like so:

{options : { "create" : <database>, undefined, undefined, undefined }, indexes:[{ "v" : 1, "key" : { "_id" : 1 }, "ns" :<database>, "name" : "_id_" }]}

The “undefined,undefined,…” is an artifact from 2.1 beta.

The Cure:

Delete the “, undefined, undefined, undefined” and save the json metadata file and rerun the mongorestore.

You might have to do this for a few databases. You can see which data base by looking at the line before the error message like so:

Wed Sep 19 18:33:26 <dump directory>/<database>/<collection>.bson 
Wed Sep 19 18:33:26 going into namespace [<database>.<collection>] 
Wed Sep 19 18:33:26 Assertion failure b.empty() src/mongo/db/json.cpp 645

Cheers

<k/>