Light Cycle of Tron review

comiccon2010-6814.jpg
Image by YGX via Flickr

I really enjoyed the Light Cycle race in Tron- so instead of naming this the Tron Legacy Review- I call this Light cycle review.

The movie is a geek must check it out- and the mix of music, models,cars, and lights can be heady at first. The younger Jeff Bridges looks like a BeoWolf, and his son is ok. But Olivia Wilde is nice- and the cars and bikes are superb. If you like playing video games then check out the free game at http://armagetronad.net/downloads.php Its called Armagedtron.

And boy the 80s was a great time for pop music and video games.

Trying out Google Prediction API from R

Ubuntu Login
Image via Wikipedia

So I saw the news at NY R Meetup and decided to have a go at Prediction API Package (which first started off as a blog post at

http://onertipaday.blogspot.com/2010/11/r-wrapper-for-google-prediction-api.html

1)My OS was Ubuntu 10.10 Netbook

Ubuntu has a slight glitch plus workaround for installing the RCurl package on which the Google Prediction API is dependent- you need to first install this Ubuntu package for RCurl to install libcurl4-gnutls-dev

Once you install that using Synaptic,

Simply start R

2) Install Packages rjson and Rcurl using install.packages and choosing CRAN

Since GooglePredictionAPI is not yet on CRAN

,

3) Download that package from

https://code.google.com/p/google-prediction-api-r-client/downloads/detail?name=googlepredictionapi_0.1.tar.gz&can=2&q=

You need to copy this downloaded package to your “first library ” folder

When you start R, simply run

.libPaths()[1]

and thats the folder you copy the GooglePredictionAPI package  you downloaded.

5) Now the following line works

  1. Under R prompt,
  2. > install.packages("googlepredictionapi_0.1.tar.gz", repos=NULL, type="source")

6) Uploading data to Google Storage using the GUI (rather than gs util)

Just go to https://sandbox.google.com/storage/

and thats the Google Storage manager

Notes on Training Data-

Use a csv file

The first column is the score column (like 1,0 or prediction score)

There are no headers- so delete headers from data file and move the dependent variable to the first column  (Note I used data from the kaggle contest for R package recommendation at

http://kaggle.com/R?viewtype=data )

6) The good stuff:

Once you type in the basic syntax, the first time it will ask for your Google Credentials (email and password)

It then starts showing you time elapsed for training.

Now you can disconnect and go off (actually I got disconnected by accident before coming back in a say 5 minutes so this is the part where I think this is what happened is why it happened, dont blame me, test it for yourself) –

and when you come back (hopefully before token expires)  you can see status of your request (see below)

> library(rjson)
> library(RCurl)
Loading required package: bitops
> library(googlepredictionapi)
> my.model <- PredictionApiTrain(data="gs://numtraindata/training_data")
The request for training has sent, now trying to check if training is completed
Training on numtraindata/training_data: time:2.09 seconds
Training on numtraindata/training_data: time:7.00 seconds

7)

Note I changed the format from the URL where my data is located- simply go to your Google Storage Manager and right click on the file name for link address  ( https://sandbox.google.com/storage/numtraindata/training_data.csv)

to gs://numtraindata/training_data  (that kind of helps in any syntax error)

8) From the kind of high level instructions at  https://code.google.com/p/google-prediction-api-r-client/, you could also try this on a local file

Usage

## Load googlepredictionapi and dependent libraries
library(rjson)
library(RCurl)
library(googlepredictionapi)

## Make a training call to the Prediction API against data in the Google Storage.
## Replace MYBUCKET and MYDATA with your data.
my.model <- PredictionApiTrain(data="gs://MYBUCKET/MYDATA")

## Alternatively, make a training call against training data stored locally as a CSV file.
## Replace MYPATH and MYFILE with your data.
my.model <- PredictionApiTrain(data="MYPATH/MYFILE.csv")

At the time of writing my data was still getting trained, so I will keep you posted on what happens.

A Poem on Demand

On Demand entertainment I need to hear
On Demand information of webcasts, white papers dear
On demand downloads of information I am told I really need
Sometimes it is tough to keep which is shallow what is deep

Is it really on demand or were you overwhelmed and manipulated by the supply
On Demand Supply and estimates of forecasts of influencer of the demand
Friendship is also on demand

But Loneliness is Free and Open Source
And so is Freedom

How many Fans, Followers, Likes can you get
Before your critical mass makes you Viral
Like a Video Bieber whose clothes are torn by crowds

Searching for your 900 seconds of On Demand fame
You want to be paid on demand but work only on a creative fancy
Your on demand laziness is too demanding now
Ceteras Paribus, On demand is too much to demand
and much too on always on 24 7

Give me a book a friend and some peace and quiet
Bet you things arent there on supply but always on demand
Or are they?

Movie Review- Dabangg

This movie falls in the must -see category. Not for cinematic excellence, or a great action choreography, not for the terrific Bollywood Song and Dance,

an excellent debut by Arbaaz Khan (as Producer), Abhinav Kashyap (Anurag Kashyap’s brother) as Director or even Shotgun Sinha’s Daughter, lovely Sonakshi Sinha’s charming looks. But for great clean wholesome entertainment- Dabang tells us why we loved Movies in the first place.

Salman Khan- the muscular good looking hunk turns his best performance in a tour de force. Watch it right away- it’s currently breaking all movie turnout records in India.

Movie Review: Lafangey Parinday (Rouge Birds)

 

Unlike earlier movies/reviews- this one is an out and out Bollywood masala movie- include suspense- drama-action-romance-songs. Neil Nitin Mukesh gives up his clean choco boy look to play a street boxer, who accidentally knocks down his neighbour Pinky Palakar (played by Deepika Padukone)- a feisty Mumbai gal who dreams of leaving her shanty by skate dancing into India Got Talent.- a TV show (where you vote by sms kinds). Girl goes blind- so boxer hero turns partner dancer to help her.  Rest is all song and dance.

Very forgettable time-pass movie- but overall feel good. Not all movies can be cerebal, na? Hero always wins 😉

Review: Once upon a time in Mumbaai

This is a 70’s era Bollywood movie with two fine actors pitted in a classic genre- stylish mafia drama. An ensemble supporting cast, pretty images to see a classic not so crowded Bombay (as it was called)- it actually draws inspiration from real life gangsters. With fine music and good action as well, this movie can be good for your time-

Movie Review Transformers

Transformers # is a long long movie. so long that you wonder when the robots would stop fighting and start singing songs of peace.

Megan Fox ‘s replacement is so bad, you wish they replaced the director. This is a robot overkill, to the point of a horror massacres. But if you saw the first two movies, and want to know what happened next go ahead.  The  early half of the movie with the Moon Landing was good, but somewhere down the line the director falls in love with himself rather than with his art. Shia LeBeouf is wasted once again in a big action franchise thriller-but he would rather be a well paid safe big movie star than be an actor plying his grease paint. Oh yes, some parts of the movie you cant really figure out who is an autobot, who is a decepticion and who is the idiot for paying extra for a 3 D movie.

Still , Enjoy .