Monday, August 27, 2012

Down Town Racing, Pune : Review

Place : Downtown Racing, Kharadi, Pune.
Contact No : 9921223333

Charges : 
Karting : Rs.200/- for 5 laps.
Bungee Jump : Rs.100/- per Jump.

Nearby : Nothing, no eateries.

In short : Avoid, it has got long way to go.
Going to Downtown Racing? Consider below things.
- No drinking water.
- No proper wash rooms.
- No eateries at downtown or in 2Km radius.
- No medical kit, Zero safety.
- Not enough karts.
- Break down of karts every now and then.

Complete Review :

After a long time we planned for Go-Karting and everyone in our batch was excited.
At first we are told that there is a waiting of 1.5Hrs, as we travelled from one corner(baner) to other, we thought of waiting.
Meanwhile we were chatting, looking at surrounding, as we were in a group we didn't get bored.
Other things at downtown are "Mechanical Bull Ride" and so called "Bungee Jump".
As the wait is going on, we got 2 complimentary bungee jumps.
Here are few pics from Downtown Racing.

Pune Getaways : Downtown Racing Review
Full view of Go-Karting circuit, Click for larger Image
Pune Getaways : Downtown Racing Review
Some bikes out there

Pune Getaways : Downtown Racing Review
Mechanical Bull Ride

Pune Getaways : Downtown Racing Review
Circuit, some race

Pune Getaways : Downtown Racing Review
Bungee Jump

 After 1.5Hrs we asked them about our turn, they said its going to take time.
We were left with no other option but to wait.

It had been 2Hrs, a friend left as had some work, and when asked for the refund, for which they refused at first.
Half the enthu died, everyone got tired waiting for 2+Hrs. No eateries, no water to drink.

When we got our turn its already dark, and power failure occurred, they took time to fix.
Finally a friend of mine got his turn, as he started his kart ran out of fuel.
They are using fuel most judiciously, may be in counts of 100ml or so, if you are bad at driving, you wont be able to complete laps without refuel(remember again in 100ml).
Got refuelled(i mean that 100ml or so), again he met trouble with kart, he was asked to get out of Kart, as he got out and kart behind ran over his ankle.
Ankle is hurt and staff is least bothered , we got him out of circuit, made him sit nearby.
A guy(staff) came with First Aid box, box is almost empty, nothing other than Cotton, Dettol and Burnol.
By this time all the enthu died and we are in no mood to kart after friend got hurt, we demanded for refund, the same blah blah.. we got refund finally.

Others:
As we are waiting for our turn for Karting, we got to see few interesting things.
A bunch of Mechanical Engineering students working on their projects, quite amused see students assembling/testing/repairing vehicles, checking performance of vehicles ,etc, etc, as an IT engineer i never did anything outside, other than staring are desktop.
One more thing is a representative from Trikke India has put some bikes at show, they are similar to cycle, simple to use, look below pics.

Pune Getaways : Downtown Racing Review
Trikke Bikes India, put on display
Pune Getaways : Downtown Racing Review
Trikke Bikes India, put on display
Pune Getaways : Downtown Racing Review
Trikke Bikes India, put on display
They are nice, few run on motor, electric charged, few run the same way as Skating.

Staff :
- All the staff seems to be goons, no respect for others, they even don't know how to talk with people.
- Mechanics are working with petrol and engine, and staff people are smoking right there least bothered about safety.

Karts:
Karts are in very bad condition, breaks down every now and then

Final Verdict.
No at all the worth going unless you are so despo in spite of all risks.

Thursday, August 16, 2012

Code Coverage for PERL Scripts

Update[10/9/2012] : Sample Code Coverage reports are available here.
manosoftlive.com/blog/cover_db/coverage.html

Code Coverage : Code Coverage is considered as direct measure of quality of code.

For example, Consider we have some 1000 lines of code for some utility, which is thoroughly tested.
We don't know how many exact lines of code has been tested, here comes code coverage handy.

Uses : 
- Helps in determining the test gaps.
- To know what extent of code is covered.
- Creating additional test cases to increase the coverage.

Code Metrics
A large variety of metrics exists, many organisations have formal requirements for structural coverage.

Code Metrics for PERL
Code metrics for other languages like C C++ Java can be easily calculated as the code is instrumented.
Coming to PERL, here the code is interpreted, here is the catch.
There are very few tools to measure code metrics for PERL.
Here I will explain the code coverage for PERL using the Perl module Devel::Cover from CPAN.


Prerequisities
- Unix machine
- PERL installed
- make and gmake to install Devel::Cover


Get/Install Devel::Cover from CPAN
This module can be directly downloaded from CPAN at http://search.cpan.org/~pjcj/Devel-Cover-0.93/
All dependencies should be satisfied before going ahead.
OR

Once you have installed all dependencies, you can see "cover" binary in /usr/bin/ or /usr/local/bin
This is used to calculate coverage and generate HTML reports.

If you have problem with resolving dependencies, try manually installing modules as shown below.



Example and getting code Metrics

Save the below as Sample.pl

Save the below as Sample.pm


If you observer the above code, all i added was one line "use Devel::Cover;" , with which i get code metrics.

Lets see the sample run and results.  

Now a folder is created with name "cover_db", where all the info on runs is saved, now we need to generate reports.

Create HTML reports
"cover" is the utility, with which we can generate HTML reports.
All the HTML reports can be customized.



Once the HTML reports are generated, the work is damn simple, just open the HTML file in browser.
See the details reports generated, hope self readable and self explainable

Update[10/9/2012] : Sample Code Coverage reports are available here.
manosoftlive.com/blog/cover_db/coverage.html


Branch Coverage

Condition Coverage

File Coverage

Subroutine Coverage
Understand More: 
This is just to have quick understanding of PERL code coverage.
To understand more, save the above sample files and play around.
Try running the above code samples with different inputs like
bash# perl Sample.pl 3
bash# perl Sample.pl 2 1
bash# perl Sample.pl 2 2 

Many things can be customized according to your need, see below link to CPAN module

Wednesday, August 15, 2012

Rajgad - King of Forts

Type : One day Trek.
Best Season : Monsoons.
Accessibility : Road.
Hotels : No.
Parking : Available.

Rajgad(meaning King of forts), one of the forts of Maharashtra state in India.
Situated in the Pune district, the fort is 1318 meters above sea level.

Formerly known as Murumdev, it was capital of the Maratha Kingdom ruled by Chhatrapati Shivaji Maharaj for almost 26 years.

Location : Rajgad is 68Kms to south west of pune, nearly 20Kms from Nasrapur.

How to reach? (from aundh) : From Aundh, travel towards Baner Road, take highway from Baner towards Bangalore. After nearly 35Kms, one will find Nasrapur, take a right from there, head towards Baneshwar Temple Road. Its a staright road, Rajgad is located 20Kms from there. This route has one TOLL.

Please find the same on google maps below.


View Rajgad Fort in a larger map


There is ample parking space for 2/4 wheelers at the Rajgad Base,Gunjavne Village, a small hotel where we had poha/snacks.

The fort has mailny divided into 4 parts.
Padmavati Machee (north end)
Sanjeevani Machee (southwest/west end)
Suvela Machee (south east)
Bale Killa (centre)

We started from pune at around 6.30AM, reached Gunjavne at 8.15AM, had poha there.
A small restro kinda is there are base of Rajgad, they prepare on order.[poha, upma, tea, coffee, etc are available]

We started trek at around 8.45AM,
It took 4 hours for the whole trek.

Here are few pics from the trek.

On the Way to Rajgad Base, Gunjavne Village

On weekends and holidays you can find many people.
On weekends you will find many people coming to Rajgad, if you want to avoid crowd and watch places at peace, it is suggested to start early.




There is a good vertical path near the entrance of chordarwaza, It takes bit time.


Steps at entrance of chor darwaja

Fort Walls



Remains of the Palace

Steps to BaleKilla


Kaleswari buruz


Lake Padmavathi on Rajgad


Pali Darwaza 

Places nearby :
Baneshwar Temple [On the way to Rajgad]
Balaji Temple, Narayanpur [9Kms from Nasrapur]
Purandhar Fort Trek, [20Kms from Nasrapur, in same direction of  Balaji Temple]