Monday, January 17, 2011

Rajnikant Reloaded

  1. Recently china airports were closed due to heavy fog....... later it was discovered that rajanikanth was smoking in india!!!!!!!!!!
  2. Rajanikanth did his kg from seven different places..today those places are known as iits!!!!!!
  3. The government of india pays tax to Rajanikanth for living in india!!!!!!!
  4. Definition of solar eclipse : when Rajanikanth stares at sun with anger, sun hides behind the moon. this greatest phenomena is called solar eclipse.........!!!!!
  5. Rajanikanth woke up one day and decided he should share atleast one percent of his knowledge with the world......thus....................... the google was born!!!!
  6. Think what would have happened if Rajani would have born 150 years ago..????? british would have fought for independance....
  7. Best Rajani joke!!!!!!---even ghajini remembers rajani!!!!
  8. Why do earthquakes occurs????? because at that time Rajanikanth's mobile is on vibration mode!!!!!!!!!
  9. Once Rajanikanth bunked a whole day in school.....! since then that day is known as...........................sunday!!!!!!!!!!!!!
  10. Breaking news: isro does not exists anymore.....!! Rajanikanth purchased all the rockets for diwali celebration!!!!!!!!!!!!!!!!!!!!!!!
  11. Why did Rajani buy an acre of land wth 4 wells on each corner?????...................... to play carrom!!!!!!
  12. Before Tom cruise, Rajani was approached for the movie mission impossible, but rajani refused as he found the title insulting..
The pyramids in egypt are actually......................................Rajanikanths primary school craft projects!!!!!!!!!!!!

UNIX : The difference between [ ... ] and [[ ... ]] (The extended test operator)

The [[...]] is processed as part of the shell grammar whereas [...] is processed like any other command.
Operators and operands are detected when the command is read, not after expansions are performed. 
 
  1. The shell does not do word splitting or path-name generation inside [[...]].This allows patterns to be specified for 
    string matching purposes.
  2. Parameter expansion and command substitution is allowed.
  3. Prevents many logic errors in scripts. e.g [ "$x" = "TEST" ] can be written as [[ $x = "TEST" ]] the variables don't need to be quoted.
  4. The &&, ||, <, and > operators work within a [[ ]] test, despite giving an error within a [ ] construct.

Wednesday, October 6, 2010

Some Rajnikant Facts

With Robot (Endhiran) Southern Superstar Rajnikant has shown his box-office might. Here are some fun facts that make him folk lore.
  1. Rajinikanth has counted to infinity, twice
   2. When Rajinikanth does push-ups, he isn't lifting himself up. He is pushing the earth
       down.
   3. Rajinikanth can slam a revolving door.
   4. Rajinikanth knows Victoria's secret.
   5. Rajinikanth leaves messages before the beep
   6. Rajnikanth makes onions cry.
   7. Rajnikanth can delete the Recycle Bin.
   8. Rajnikanth can drown a fish.
   9. When Rajnikanth enters a room, he doesn't turn the lights on,..............
        he turns the dark off.
  10. When Rajnikanth looks in a mirror the mirror shatters, because not even glass is
        stupid enough to get in between Rajnikanth and Rajnikanth.
  11. Rajnikanth' calendar goes straight from March 31st to April 2nd, no one
        fools Rajnikanth.
  12. Rajnikanth can do a wheelie on a unicycle.
  13. Rajnikanth was once on Celebrity Wheel of Fortune and was the first to spin.
        The next 29 minutes of the show consisted of everyone standing around
        awkwardly, waiting for the wheel to stop.
  14. There is no such thing as global warming. Rajnikanth was cold,
        so he turned the sun up.
  15. In an average living room there are 1,242 objects Rajnikanth could
       use to kill you, including the room itself.
  16. Rajnikanth destroyed the periodic table, because Rajnikanth only
        recognizes the element of surprise.
  17. Outer space exists because its afraid to be on the same planet
        with Rajnikanth
  18. Rajnikanth once ate an entire bottle of sleeping pills.
        They made him blink
  19. If you google search "Rajnikanth getting kicked"your search will
        generate 0 results. It just doesn't
        happen.
  20. The Bermuda Triangle used to be the Bermuda Square, until Rajnikanth
        kicked one of the corners off.

Some more
  21. Once Rajnikant issued a cheque and there was no balance...........................
       The bank bounced
 22. Its on Breaking news..............
       Rajni ate the missing peice in the Apple Logo
 23. Rajnikant once entered a race, he came... first, second and third.........



Tell me about your favorite one.  :-)

Friday, September 24, 2010

Why Peepli Live for me is a horror movie?

I saw the movie Peepli Live yesterday and it scared me.

Do not mis-understand me, I liked the the movie. It is a well made movie. The first time director Anusha Rizvi has done an admirable job she has her heart in the right place. It has a good script, well supported by actors rather than stars. It was good to see Raghubir Yadav again. For the thinking person Peepli Live is a movie which makes you think. Kudos to Aamir Khan for producing such a movie.

The reason Peepli Live scare me was because it was so real. For me journalism is one of the main pillars of a functioning democracy. It is a profession as noble as that of a doctor or a teacher and carries as much responsibility.  A good and conscientious press will lead to  a mature democratic society.

The way the movie has depicted the state of journalism in our society today is dis-comfortingly close to reality.

We are now living in an age of sponsored news,  where personalities are created and destroyed by the media. News items are created , real issues thrown aside. Viewership and readership numbers are mantras of the new age media Gods.

The common man is being bombarded with deluge after deluge of useless information, often misleading and filled with half truths or worse devoid of truths.

I fervently hope it did prick some consciences in the world of Indian journalism.

The other thought that struck me was the divide between the two Indias.

More on this later

Thursday, June 10, 2010

Goa on Bicyles?? ... U guys must be crazy!!!

Disclaimer : We are the kind of travellers or rather I would prefer the term drifters who like to wander about. The count of places covered does not matter to us. We like to go slow absorb the flavour and culture of the places we visit . We like to replay history in out minds. We like being close to nature .

There are some places where time stands still for us...and at those places we too like to stand still and just enjoy the beauty of those places.


Goa - The day before.
On the 7th of May 2010 12:01 AM, a time when our house is generally peaceful. There was a flurry of activity, it looked like some primitive ritual from the dark ages with two people gesturing wildly, arms flaying about and strange noises made in front of a black box emitting strange light and sounds.

It was me and my better half having an animated discussion , with the laptop being the object of attention. Ticket prices, modes of transport and budget Hotels were being thrown about. New theories were presented, previous vacations referred to and individual knowledge was being tested and challenged. The above was the result of a last minute decision to go to Goa for the weekend. Finally after much discussion bus tickets were booked to Goa for a 21:15 departure from Chembur, our preferred mode of travel (train) not being available we opted for the Volvo's. We had short listed a few hotels but couldn't decide on any. Finally we slept at around 2:00 AM.

In the morning after an early rise. The few bare essentials were flung into our rucksacks. The camera batteries charged. We left for our respective offices.

The day in office went by in a haze. Friday deliverables were forgotten. Some additional research on the hotels were done, for which the outcome was that we decided to not book online, since it being an off-season we would get an hotel room quite easily. We did call up a couple of places and were assured of the same. Further time in office was spent taking a couple of prints from google maps.

Reaching Goa

We left Powai at 6.30 PM and hired an auto to take us to Chembur.


Chembur - after a couple of wrong turns we reached Yogi Hotel at Chembur, which is the major boarding point for all private buses plying to myriad destinations. There was a huge crowd of people at the bus stop waiting for buses which were just not turning up.

We grabbed a quick dinner at Lamba's opposite to the bus stand and began our wait. Our promised time of 9.15 PM came and went by without the bus arriving. At last at 10.35 PM the bus arrived and we were on our way to Goa.

Exploring Goa

We reached Panjim, Goa at 11:20 AM. We alighted at the Kadamba (Goa Government) bus station. This was the first major landmark in our Google maps. Thus assured full of energy and enthusiasm we set out to discover the land of beaches.

Our first target was the Goa Tourism Development Corporation (GTDC). So with our maps in hand and picturing ourselves as the new age explorers we set out in our quest of the GTDC office. Following the Google Map print outs was a piece of cake for us or so we thought. So taking in the sights and sounds of Panjim, crossing pretty little bridges and admiring the beautiful old style shops and cottages , occasionally being jarred by the glass and concrete modern monstrosities that are now appearing; we were fast closing in onto our target.




After a couple of wrong turns we discovered quite early in our sojourn that Goa in May is really HOT and HUMID. This forced us to switch to plan B and we resorted to the time tested method of asking for directions. We finally reached GTDC. The print outs were quietly pocketed.

Quest for the elusive cycle rental shop.

We had decided to bicycle about Goa. Our enquiry at GTDC was met with reactions ranging from amazement, astonishment, astoundment, bewilderment to ridicule. However our resolve was strong we ditched the GTDC people and continued in our search for what was proving to be an elusive "Bicycle Rental Shop".
We ventured further into Panjim to find a bicycle rental shop. The weather necessitated an additional budgetary outlay towards 2 caps. The better half selects two commando style caps in all their camouflaged revelry.

Another enquiry at the cap shop, still results in a negative response. The shop keeper offers bikes he has for rent.We exit the shop in our soldier caps our resolves strengthened. "Mushkil Waqt Commando Sakt".
Next encounter is with a couple of touts trying to rent of their bikes or offering their chauffeured bike services. Inspite of all the ridicule we faced I again ask them about bicycle rentals. The response is the now familiar disbelieving grin, "I mean bicycles in this age and day in India a global superpower." It all seemed like it was because of people like us that India's status as a global superpower was being undermined. However there was a twist they did mention availability of bicycle rentals near National Cinema Panjim and offered us to take us for Rs.40 on their bikes. We opted to an auto which took us there for Rs.50. (We later realized we were quite close to that place and we could have walked down). It is not far from the Kadamba bus stand.

Renting the bicycle
The first shop we went had only 1 cycle for rent. The next one we went had the bicycles but no ladies cycles and partner needed a ladies cycle (without the horizontal cross bar) as she was getting on a bike after a long time. Luckily there was another shop nearby which had just 2 cycles left.

The cycles looked ancient one the classic Atlas Goldline type you would see on Indian roads which the milkmen use to carry their milk cans. The other the ladies cycle whose handle had been welded and was off-center. The front brakes on the ladies cycle just had two screws with the brake pads completely worn out.

Our polite enquiries for any alternatives resulted in the old battle worn owner launching into a tirade against students who ran off with the bicycles. The folks there though were trusting folks who did not take any deposit just copies of our identification and our phone numbers. The rent they charge for a day was 60 Rs which was probably more than what the cycles cost.



Ride to Miramar

After a few tentative pedals, none of which looked reassuring from behind, partner was wobbling along on the streets of Goa. A closer inspection of the bi-cycle revealed that the handle probably broken in the days bygone had been welded off-center making it difficult to ride in a straight line.
It resulted in me having to carry all the load, at least the Atlas Goldline could live up to its name.
And we set off in the direction of Miramar in the hot sun. The ride was as pleasant as it could be in the HOT sun. My jeans were soaked with sweat and further weighed me down. Still the freedom that cycling provides and feeling the wind against my face ,far out weighed everything else, even the 3 bags that I was now carrying.



Much of the ride is along the Mandovi river and some along the sea.

We picked up tickets for the evening River Boat cruise which are available at the GTDC's Miramar Residency. We crossed the Goa science center on the way. After a distress call to the receptionist at the Hotel Miramar, to pinpoint its location we reached Hotel Miramar.


By now we were used to the looks passersby were giving us, so the arched eye brows of the receptionist was like water of the proverbial duck's back. We even asked her if it was OK to park our cycles there. (As if someone would steal our rusted beauties.)

The Hotel and Miramar Beach

The hotel is decent enough, basic in its amenities, but then we weren't planning to stay in the room for long. We parked our bags in the room changed into our shorts and dashed out to the beach asking the hotel people to pack our lunch for us.

That's right no wasting time for us. The beach while not one of the best beaches of Goa was good enough for us. The water was warm and inviting, not that we needed any invitation. A couple of hours in the water in the hot afternoon sun. (It must have been 13:30 when we went to the beach)Splashing about enjoying the waves, we were lucky enough to see some flying fish. We also saw an eagle swoop down to catch one.Which reminded us that we had not yet had lunch.

We had ordered

  • 1 Miramar special prawn curry and rice.
  • 1 Fish fingers

So we reluctantly dragged ourselves back to the hotel along with a lot of sand. We collected our lunch , had a cool refreshing bath and settled down to devour the food.

The quantity we got was enormous. Inspite of all the physical activity described above the two of us could not finish the rice and curry. We did finish the huge tiger prawns and the fish though. Sea food throughout our stay was yummy wherever we went.

River Cruise

A short nap and we were pedalling back for the river cruise. The crowd and traffic had increased making it more difficult for my partner to navigate . We were hard pressed for time, the goan heat and cuisine had extended our short nap a bit. By now the hard , cracked and crooked plastic seats of our bicycles were starting to make hteir prescence felt.

The cruise we were taking was named "Santa Monica". We made it in time grabbed out seats. The cruise was pleasant we were treated to some dances depicting the local culture as we floated down the river.



If you are interested in watching the dances you can grab a seat close to the stage. We grabbed one at the front of the boat behind the stage.
After the cruise we roamed about a bit on foot. We debated about buying the famous Goa Cashew and wine and due to my insistence pushed it of for the next day. (Who's going to carry all that load around). We mounted our cycles and off we were. Dinner was a quiet affair at our hotel and we hit the sack.

Dona Paula


The next day was an early start and we pedalled our way to "Dona Paula". Early morning was nice just us, some dogs frolicking about and a lone fisherman.

There are lots of stories associated to Dona Paula which can be found on the Internet. You get a nice view of the sea.

Saw some people canoeing there. After spending some nice moments we were off back to the hotel. Parked our cycles and headed for another dip in the sea.

...and the rest
The receptionist widened her eyes on our return mentioned something about us being crazy, going to the beach so early in the morning , all in good fun. We checked out from the hotel. Before leaving had some omelet pav and bhurji pav for breakfast. The cycles were returned and we headed to Margao to attend a family function.

Disaster strikes us in Margao We discover it being a Sunday all shops are closed there, so no cashews and no wine. We did mange to pick up some cashews at the bus stand though.

So finally at the end of 2 days we returned from Goa with lots of pleasant memories and two sore behinds.

Friday, November 2, 2007

Where would you use a snowflake schema?

The snowflake schema is a more complex data warehouse model than a star schema, and is a type of star schema. It is called a snowflake schema because the diagram of the schema resembles a snowflake.




Snowflake schemas are generally used when a dimensional table becomes very big and when a star schema can’t represent the complexity of a data structure. For example if a PRODUCT dimension table contains millions of rows, the use of snowflake schemas should significantly improve performance by moving out some data to other table (with BRANDS for instance).

Normalization of the dimension tables ("snowflaking") can impair the performance of a data warehouse.


Data Warehousing.

What is a factless fact table?

According to Kimball.
Fact tables contain the numeric, additive fields that are best thought of as the measurements of the business, measured at the intersection of all of the dimension values.

He also states that there may be fact tables which provide a lot of useful information but do not have any measures in them. Them may consist of no other columns except the dimensional keys.

Example: Student attendance tracking system.

List of Dimensions that your solution would have
  1. Date dimension
  2. Student dimension
  3. Teacher Dimension
  4. Course Dimension
Fact
  1. Student Attendance Fact
Grain
The grain of your fact table would be each class/lecture tat a student attends.

In such a situation there is no obvious fact to record. Actually this fact table consisting only of keys is a perfectly good fact table. It will answer a lot of questions like.
  • Which classes were the most heavily attended?
  • Which classes were the most consistently attended?
  • Which teachers taught the most students?

A second kind of factless fact table is called a coverage table.
Coverage tables are frequently needed when a primary fact table in a dimensional data warehouse is sparse. Consider a simple sales fact table that records the sales of products in stores on particular days under each promotion condition. This sales fact table cannot answer questions like
  • Which products were on promotion that didn't sell?
This is because it contains only the records of products that did sell. A coverage fact table here would help. A record is placed in the coverage table for each product in each store that is on promotion in each time period.

Answering the question, "Which products were on promotion that did not sell?" requires a two-step application.
  1. Consult the coverage table for the list of products on promotion on that day in that store.
  2. Consult the sales table for the list of products that did sell.

The desired answer is the set difference between these two lists of products.

A TRIP TO BHANDUP PUMPING STATION - the birdwatchers paradise

"A Picture from Bhandup Pumping Station" I am a nature lover, and I often like to go birdwatching with my dad. We had read that ...