Skip to content

New Zealand travel pointers (Auckland to Queenstown)

It is a different land altogether. All natural stuff are pretty different from what we have anywhere in northern hemisphere. And the faultline cris-crossing the islands vertically make it even more bubbling .. Did i smell sulphur? (don’t worry you will understand the joke once you visit the place)

here are a few pointers:

– Visit during summers. Most of NZ is snow covered during winters(late march to late sept) Also you will benefit from longer day time. Sun used to set at 9 pm eveyday during my visit.
– Hire a car, best mode to travel places in NZ. longer days will allow you to travel during day time. Roads are nearly empty and you can drive at 100(speed limit) continuously on cruise for 30 mins at place.(I mean that) . North islands have straight roads. South island have windy mountanous roads. I hired a corola altis during new year season can it cost me NZ$ 78 per day for 12 days. (you will surely get better bargain than this) Go Rental is recommended. And all other options of travel are more expensive and less fruitful. It’s all about countryside and finding those secret lookout areas in the mountains or the valeys or beside the lakes or beside the beaches 😉 . needless to say, travel in day light.
– Arrive in a city and depart from a different city. We landed in Auckland and traveled north island, than south island and finally departed from Queenstown (Northern tip to southern tip 😉 . Paid addn. 200$ to change my return flight bookings from AK to QT. So, don’t commit the same mistake.
– Traveling from North to South Island is through a cruise which is very very good (4 hrs ride) . $65 per person + $169 for the car deporting. Islander recommended. (3 times a day)
– don’t book your hotels as you may not know where you will be. Go backpacker and spend the money elsewhere. backpacker options are plenty everywhere and you can find everything on the GPS. I found all my stay over the counter (except marlborough) during the chrismas ny season, so you know.
– Handy latest maps GPS is indispensible. Torrent will help you here. Make sense to set it up before your visit and save places on it.
– food no issues at all.
– people : you wont find many but the ones you will , will surprise you by their friendliness and helpful nature.
– mobile-prepaid: cheap even if you take it with 3G

Not to be missed attraction
– mt eden at auckland
– coromodal bay
– LOTR hobbitson sites at mata mata
– rotorua and various sulphur attractions
– lake taupo and adventure (best and cheapest skydive)
– volcanic valley between rotorua and lake taupo
– beach road to napier
– wineyard stay at marlborough (it is divine but the most expensive thing) but wine harvesting time is may 😦
– beachride road run to karakoura
– whale watching and swimming with dolphin at karakoura (may bunk if marine doesn’t fantasize you)
– hanmer springs hot mineral pool spa(spend whole day there)
– Glacier trekking at fox or frank josef glacier (besides driving, I loved this the most)
– queenstown, the most happening young city of NZ
– Milford sounds
– go bungy at QT: 47 then 68 then 139 mts fall into the river. Could only do 47 mts. My pockets were empty by that time.

One week is too less to cover it all. Total travel distance is 2980 kms. Do just one island if you are fixed with time or increase it to at least 10 days.

20120203-015820.jpg

20120203-015945.jpg

20120203-020039.jpg

Advertisements

Java Generics and Erasure

Generics or the parametrized types are compile time constructs in Java. This means that these do exist in JVM byte code. The process of converting parametrized types to bytecode that is backward compilable with older java code is called Erasure. This can also be called Type Erasure.

Sometimes during compilation, JVM may need to add a bridge method to perform type erasure.

We also need to guard against ambiguity errors that can occur.

Generic exception types are not possible.

Apache Maven

Maven is one of most frequently used Build management tools. It can be extended to be used as a tool for
-hierarchical object oriented build structure
-Code componentisation
-build verification
-build compilation
-build testing
-build packaging
-build reporting
-build deployment

Maven execution can be divided into four nested hierarchies: lifecycle(clean,default,site), Phase, Plugin, Goal.

Goal can be defined as a single executable task within a plugin.

Clean lifecycle: pre-clean, clean, post-clean
Default lifecycle: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources,process-test-sources,test-compile, test, prepare-package,package,pre-integration-test,integration-test,verify,install,deploy

Scoping of dependency: we can define scope to a particular dependency. it controls its visibility and inclusion in the final packaged artifact. Scoping enables you to minimize the Jars that ship with your product.

Spring

Spring Configurations Types/Namespaces (Bean / Context / AOP / JEE / LANG / TX / UTIL).

DI : Spring container was one of the first proponents of Dependency injection and is used most widely today for this very feature. Spring enables injecting of dependencies into various beans (Object artifacts) externally i.e, through Spring container.
Spring supports two polar configuration styles: explicit configuration and auto-wiring. Explicit configuration is verbose but maintainable. Auto-wiring is concise but slow and not well suited to non-trivial applications. If you have 100s of developers and 100s of thousands of lines of code, auto-wiring isn’t an option.
Three injection types are : Constructor Injection, Setter Injection and Getter Injection.

TX: It provides declarative transaction across spring beans.

Spring has become extensively annotation based.

Closures ?

What is a closure in programming world ?
Wikipedia:
“In computer science, a closure is a first-class function with free variables that are bound in the lexical environment. Such a function is said to be “closed over” its free variables. A closure is defined within the scope of its free variables, and the extent of those variables is at least as long as the lifetime of the closure itself.”

I don’t get this. Aah, is it about pass function(s) or returning function(s) in a function ?
Let me add a JS closure as an example:

function declareThis(name, age) {
var message = "Name: "+name + ", Age: " + age;
return function greet() {
console.log(message);
};
}
// Generate the closure
var declareShailesh= declareThis("Shailesh", 30);
// Use the closure
declareShailesh();

Fork-Join Framework in JDK7

The Fork/Join library introduced in Java 7 extends the existing Java concurrency package with support for hardware parallelism, a key feature of multicore systems and also introduces work stealing algorithm. Oracle Doc

A common pitfall is to use synchronize and provide mutual exclusion over large pieces of code or even whole methods. While this approach leads to thread-safe code, it usually yields poor performance due to the limited parallelism that is induced by exclusion being in effect too long.

Fork/Join’s logic is as follows in crux:

  • separate (fork) each large task into smaller tasks
  • process each task in a separate thread (separating those into even smaller tasks if necessary)
  • join the results.

New Zealand Discovery

Alright, I promised her around 30 months back and finally, We have made it. Flying to NZ on 21st Dec.
It would be a road trip. and thereby, have not done any preparation for it. Let’s see how it goes.
We are covering both the islands in 13 days. now, this is going to be very exciting. Did I say, around 3000kms. Woo-Hoo !!
Also, we have a 5 hrs ferry from wellington to picton. Another exciting thing !!
Alright, the update to planning is that we will be in north island from 22nd dec to 25th dec. We will cover auckland, Matamata, Rotorua, lake taupe, wine trail, Wellington
On the south island, which is more adventurous, our planning is more extensive. We discover the vine trail of Marlborough region, move towards Karakora for whale watching, come back to Marlborough region and then, move towards Fox glacier via greymouth. From there, travel the west coast towards queenstown.

Day 1, arrival at auckland
We arrived at Auckland by a 10 hour long and tough flight on the morning of 22nd dec at 11am. We passed through a very high bio-security checking zone where we were interviewed about the contents of our baggages. We answered in affirmative for medicines(carrying quite a few first aid ones), biscuits and cakes etc and some home made food. They let us go out without any further issues or questioning. We did not put anything on the immigration form though 😉 also to be mentioned, everybody was very well natured.
We came out at arrival terminal 1, gate 11. There were many eateries around. We collected a supa pay Vodafone SIM for $30+20. It contained 1000 free SMS,120 mins free india,sing calling, 50 international messages, 50 MB 3G data, free local calls on weekends and an extra $8 value. It was best suited to our use. Topping up was very easy.
We called the go rentals guys for our car. They said that their pickup van would be there in 5 mins to pick us up for their depot. We got to their office, saw the car and inquired about their policies. We scanned through the scratches on the car and documented it with them. (We had read in forums that it was very important to document the scratches, undocumented ones will be assumed to be done by you, so it was important to spend time in that)