Saturday 22 March 2014

Find youngest revision number in Subversion

In Subversion, in order to find the youngest revision number, the command is :

svnlook youngest

It will show the latest (youngest) revision number. In better words, the latest version which contains the most recent changes.

Eg : 

svnlook youngest /Users/IronCladZone/SubRepo1
25

Thursday 20 March 2014

Show hidden .classpath .project files in Eclipse

If you're using Eclipse IDE for any Java based projects, you might want to make .classpath or .project files visible.

In order to do so, click the small triangle on the right top side of Project Explorer and select Customize View.

Just deselect / un-tick the .* resources option and refresh your project.

Now you will be able to see the .classpath & .project files, which are hidden by default. Note that the .classpath file will contain information about the classpath and build info while the .project file will contain the project metadata.

This is useful while working with Maven. When you use the command mvn eclipse:eclipse, it creates .classpath & .project files, which are not visible in the project explorer by default. You can make them visible in Eclipse Project Explorer like this.


Wednesday 19 March 2014

Unsupported IClasspathentry kind=4 error in Maven

While importing a Maven project into eclipse, you may sometimes get an error like "Unsupported IClasspathentry kind=4".

The best solution was found on this StackOverflow page. The 2nd solution provided by Sagar worked for me and fixed the issue.

Quick Fix : 

In Eclipse, Right click the project -> Maven -> Disable Maven Nature

Open Terminal, go to the project directory and type mvn eclipse:clean

Now, again right click the project in Eclipse -> Configure -> Convert to Maven Project

Note that when you type mvn eclipse:clean in terminal, it deletes the old .classpath, .project files

[INFO] Deleting file: .project
[INFO] Deleting file: .classpath
[INFO] Deleting file: .wtpmodules

Maven Environment Variables

In order to make Maven work perfectly, we need to define 2 distinct environment variables. They are M2_HOME and M2_REPO. Let's see the basic difference between the two.

M2_HOME is the variable which defines the Maven installation directory.

M2_REPO is the variable which defines the location of your local repository.

Eg : 

So, for instance, if you installed Maven in /usr/local directory, then M2_HOME should be set to /usr/local/apache-maven-3.x.x

If you want to use some local directory (at any location) as your local repository, the M2_REPO should point to it.

Let's say for example, you created a directory /Users/IronCladZone/Maven/Repos which you intend to use as your local repository, M2_REPO should point to this location.

Also, If you use Eclipse IDE to work on, you should define the same in the preferences as well.

Go to Preferences -> Java -> Build Path -> Classpath Variables and create a New entry for M2_REPO, which points to your local repository and a new entry for M2_HOME which points to Maven installation directory.

Go to Preferences -> Maven -> User Settings and check if the Local Repository is set to the desired location.

Also check if the settings.xml location is rightly pointed. Sometimes, the settings.xml is not located in the ~/.m2/repository location. If not, then it must be located at your M2_HOME/conf location. ( Eg : /usr/local/apache-maven-3.x.x/conf ).

Monday 17 March 2014

True Detective - Season 2 Casting

True Detective Season 1 was over too fast too soon. The suspense build-up was great with clues pointing to multiple people. The finale however seemed too rushed up. The last episode where all the action took place seemed like a hush-hush attempt to end the first season. Anyways, with the season 1 ending, there's a lot of speculation on who will star in the series' season 2. The cast pairings is all about chemistry.

Here's an IronCladZone exclusive dream wish-list :

1. John Travolta & Denzel Washington - This duo starred in the 2009 train hijack thriller - The Taking of Pelham 1 2 3. These two guys seem to have a silver tongue. They are too good in silvery conversations. Good qualities for detectives, who want to elicit a certain desired response for the questions they ask. They manage to capture the flow of your thoughts and compel you to think in their directions.



2. Leonardo Di'Caprio & Mark Ruffalo - The duo was quite charming in Shutter Island. Though the story was quite a mindf**k, the pair perform the investigations with good amount of rationality, logic and reasoning. The edginess of Di'Caprio and supportive calmness of Ruffalo seemed contrasting.

3. Jamie Foxx & Colin Farrell - This duo was cool enough as undercover cops in Miami Vice. The chemistry between them seemed quite good i.e they seemed to get along well. Farrell adds a coolness quotient to the whole scene and has a good screen presence.




4. Al Pacino & Robert De Niro - This pair rocked in the crime thriller Heat. Their restaurant scene is like the handprints on Hollywood's Walk of Fame. It will never be washed away. They came back again as buddies in Righteous Kill. Carla Gugino added a dash of glamor to the plot. I'd love to see them just to watch their friendly chemistry.

TD Fans, do not forget to comment or suggest which other pairs you want to see in Season 2. Any female leads in mind? Any other actor who can essay the role of a detective convincingly? Ping in your thoughts and suggestions. Ciao.

Blog Updates - March '14

As discussed in my previous post, Blog Reflections, I have been constantly thinking about improving the quality of the blog and making it accessible to a bigger audience. So on those footsteps, here are a couple of blog updates as of today.

  • A new ShareThis widget is added to the blog to make sharing of posts much easier. This will enable users to share ICZ posts across different social networks - Facebook, Twitter, Google+, Tumblr, Pinterest etc. A few users have pointed out that AddThis widget is also good. Am trying to analyze which widget helps in faster page loading times. Guys, please drop in your inputs about the same.
  • A new Feedjit widget is added as well to track the live feed of visitors to my blog. This is an extremely useful analytics tool which helps me gauge the social interests based on the landing pages of the visitors. This should serve towards making informed decisions on creating more useful & like-able content. 
  • Thirdly, in order to add some color to my blog, I've decided to change / update my blogger header image once every month. Hopefully, this adds some flavor to the blog's personality and boost returning visitors. Something on the lines of Yahoo, which often changes it's logo with a different font. Or something like Google's doodles.

Lastly, let me quickly review my audience charts. The top 5 (lifetime) visitors to my blog so far come from : 

1. U.S
2. India
3. U.K
4. Canada
5. Australia

Note that a few True Detective posts got some great visibility and users from all over the world visited my blog, especially Europe. Most notable visitors were from Poland, Italy, Belgium, France, Brazil, Germany, Romania, Netherlands, Sweden to name a few. 

Finally, I'd like to assure that IronCladZone always strives to create great quality content to cater to users needs. Have good day folks. Ciao.

Thursday 13 March 2014

FIFA World Cup 2010 Rewind - England vs Germany

The FIFA 2014 World cup is just about 3 months to go. The ticket sales for 60 matches will go live from today.

In the meantime, I just wanted to rewind back to the 2010 World Cup. There was one match which was really memorable to me. The game between England vs Germany - Round of 16. I remember I had watched this match at the Tonic pub of New York's Times Square. If you may be aware, Tonic happens to be a multi-level pub. So, the ground floor was fully occupied by the English fans while the German fans occupied the entire first level. This game was like a war. This was the game in which Germany defeated England by a massive 4-1 lead.

The Germans were chanting their national anthems, the English were singing patriotic songs. The whole atmosphere was so charged up. Fully charged up without Duracells or Energizers :) Some folks were waving their flags. Some were dressed in flag-colored costumes. The whole build-up before the game began was intense. I chose to side with the Germans on the first level. Me basically being a huge fan of the German national team. A fine mix of experienced players like Miroslav Klose, Lukas Podolski and new-generation stars like Thomas Mueller, Mesut Ozil. The line up was able and strong. The English' on the other hand boasted about Wayne Rooney and Lampard.

People were cooling off with the chilled beers as well. Especially the Germans. In fact, beer was flowing like water on that day. I hardly noticed anyone drinking scotch or vodkas or rum. Majority of them were having beers.

Let me recapture some great important moments of this terrific match including the goals.

Formation : Look at the initial starting formation of the two teams. The Germans had formed a 4-2-4 formation. The English had something like a 2-4-3-1. This is when the match starts.




Passions run high at the very 4th minute when Germany's Ozil almost nearly scored a goal. The English goalkeeper David James was lucky to defend it as the ball hit his knee and went up.




Goal 1 : Germany : After some great tackling and changing of possessions, Germany scored it's first goal on the 21st minute. And it was the experienced Miroslav Klosé. German goalkeeper Manuel Neuer took a long run to hit the ball which crossed almost the 2/3rd of the ground distance. Later the ball was finely pushed into England's nets by Klosé. Klosé touched the ball just lightly enough, without raising it and smartly angled it to the net's right cornor. Take a look at this.




Goal 2 : Germany : Going forward, James almost denied a goal on the 31st minute. Just a few seconds later, the ball moved to the other side and Defoe hit a header which hit the upper bar of the nets. Immediately later, there was amazing passing by Germany from Ozil - Klosé - Mueller - Podolski. Yes Podolski scored the 2nd goal for Germany on the 32nd minute. He smartly grounded the ball with his left leg, waited for 2 seconds and hit the ball straight into the nets past England's James. Boom. England was in deep trouble. They were down 2-0. Check this out.




Goal 3 : England : England knew by now, that it was in a big mess. Their defenses were falling apart. The Germans were taking charge and leading with aggression. Just around the 36th minute, Germany gets a cornor and Klosé misses the oportunity. It results into another cornor by Ozil, but was saved by James. The very next minute i.e at 37th minute, England gets a cornor and Upson converts it into a lifesaver goal by a header. It seemed like England was back in the game. Look at this.




Goal 4 : Germany :  After the previous goal, in the next 30 seconds, Lampard hits another smasher. Unfortunately the ball hit the upper bar of net and Neuer took a hold of the ball before it crossed the goal line. This was a controversial call by the referee. I guess many readers would relate with that. The game after this, went on at a regular pace. Both sides battling each others. No new goals till the half time. Not even after the 59th minute. Germany's Neuer saved a strong hit near the 60th minute. England's James Milner gets substituted by Joe Cole on 64th minute. Around 65th minute, Rooney gets blocked and Lampard gets a free kick. But it doesn't get past the German wall. Soon after, the ball rapidly moves toward's English nets. Some really fast running here by Podolski. Podolski passes ball to Mueller and GOAALL again. Mueller scores the 3rd goal for Germany. 67th minute. Check this out.




Goal 5 : Germany : Post the 3rd goal, Germany seemed destined to enter the quarter finals. Just a couple of minutes later around the 70th minute, Ozil speeds up the ball towards the nets and intelligently passes it to Mueller. GOALLLL again. Mueller does it again! The 4th goal for Germany. This goal highlights the raw speed power of the youth (back then, Ozil & Mueller were just in their early 20's). The English were too slow to catch up. See this.




By this time, the Tonic bar had turned into a battleground. The German occupied first level went absolutely crazy. Their happiness knew no bounds and they were in the seventh heaven. They reached the quarter-finals where they were to face the mighty Argentina. Nonetheless, they had crossed the crucial English barrier. On the other hand, the English occupied ground level was totally quiet and pensive. The sadness on their faces was too visible. The English hopes had come crashing down. They were out.

I will never forget this match. It was like the 21st century World War II - Hitler vs Churchill :) where history was re-written.
Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker