Monthly Archive for January, 2012

Ted Talks : Alain de Botton – Atheism 2.0

The biggest issue have with religion is their fanatism. When you come to Science to understand your problem, Science tells you various theories and gives you the option of choice. With religion it’s not the same. An authoritative body drafts few rules it believes is in the best interest of people and then enforces it upon it’s followers. That’s what dictators do – take away the freedom of choice and enforce your will. I hate that.

Another is the existence of God. I think people make up the concept of God just for psychological reasons. But thats a weekness then.

Otherwise, even though I am an Atheist, I am not averse to picking up anything good from religion. Every system has some good elements – otherwise it wouldn’t have survived so long. One can always try to crete a better system by learning from the existing ones.

Popularity: 1% [?]

Recursively Remove .svn Folders

I was moving my svn projects to git repository. I needed to get rid of all the .svn folders recursively. Following is the script that I used:

Popularity: 1% [?]

Why I Get So Excited About Chelsea’s Future

If you have been following the Chelsea First team then you would have become frustrated with lack of quality that we display on match days. There are days when we can beat an in-form Manchester City, and then there are days when we have to toil and sweat against an easy Fulham. Lack of consistency is killing our campaign. We no longer have faith in our players. Some might say it’s just downhill from here to a team that won the Double just 2 years ago. But I argue otherwise.

Let me start from Jose Mourinho. If you were to trace his football career you’ll observe a trend. He came to Chelsea, a young exciting coach. He was given complete freedom to shape his team. He put his faith in the bullish Drogba, defensively solid Terry, the Bison Essien, the reliable Frank and the amazing Cech. He moulded these players in the 4-3-3 formation. They learnt to defend in his reign. Even today, when Chelsea decide to sit back and defend it’s very tough for opponents to score against us. Terry and Cech are just too damn good in that.

But along the years as these people aged no one was drafted in to replace them. Mourinho builds a short-term result focused team as evident by Inter Milan’s decline after Jose parted ways with them (it’s only at Real Madrid that he’s had the courage to alter his philosophy a little and build a younger team). Managers one after another were brought in at Chelsea to try and do what Jose did but none succeeded. None really had the courage to alter the core of the team and none could extract the same performances that Jose did. Decline was a natural result. Although Ancelotti managed to win the Double, it was more like the star burning at its brightest before the death. Since then we have really struggled. Our strength has turned into weakness and people call us The Pensioners.

For the first time in years has Roman decided to finally change the team. Drafting Jose Mourinho’s protege Andre Villas-Boas was a big gamble. The move was a declaration of a new era – one where a new core team would be found to help Chelsea be more successful. Also there has been a shift in the buying policy. People at the club are trying to bring in players from the youth team. And this is exactly what pleases and excites me.

Josh McEachren is the first name that springs up. He’s an emerging talent that’ll eventually replace Frank Lampard in the English team. Everyone believes that Wilshere and McEachren will become the next Gerrard and Lampard couple. Josh has been sent out on loan  to Swansea where I expect him to discover his true potential and come back just as strong as Sturridge did after his spell at Bolton. Realistically speaking, with lots of players leaving Chelsea this summer, I expect Josh to become a regular first team player the next season.

Another talent that we have bought this summer is Romelu Lukaku. He’s an ardent Chelsea fan whose role model is Drogba. With Drogba set to leave us this summer I am certain Lukaku will start lot more matches the next season. If he’s half as good as Fifa 2012 makes him he’ll be amazing to watch. Mind you the only direct competition he’s got is a misfiring Torres and a developing Sturridge. In Lukaku we have a striker who has already set the Belgian league on fire. Sturridge might find it tough to hold out against this guy a couple of years down the line.

Josh and Lukaku are almost certainties to feature in the first team next season. Apart from them I also value Lucas Piazon highly. I have only read about him and seen youtube clips. I hold this guy in high regards. Being a typical tricky-dribbler Brazilian he’ll add a hint of class that has been missing from Chelsea recently. But at only 18 he needs to develop a lot to adapt himself to the rigors of Premiere League. He himself admitted that the grounds here are smaller than those in Brazil and thus it becomes difficult to showcase dribbling talent here. He can play on the wing or behind the striker. Mata and Piazon can then in rotation take on different roles which’ll make marking them all the more difficult.

Sam Hutchinson and Ryan Bertrand are the other players who excite me. They are Chelsea academy products and I really hope they make it into the first team sooner than later. We definitely need a cover for Ashley Cole who plays day-in and day-out. Also Terry needs to be phased out slowly and Hutchinson can be that man. Luiz, Cahill starting with Hutchinson as the backup is an ideal solution.

Oh, and not to forget Curtois.

So you see, Chelsea have a lot of amazing talent waiting for the opportunity to express themselves. Instead buying costly people in a fit of panic, we must be a little patient and make the best use of our youngsters. We have a striker, a midfielder, a winger and two defenders waiting to take the Stamford Bridge by storm. We do not really need to buy for these positions. The only position I think we might need to spend will be the right back. we’ve never had a good player in that position.

I am almost certain that the above 6 players will come good for Chelsea. They are the future of Chelsea and will definitely win us a lot of trophies.

Popularity: 1% [?]

JVM : Out Of Memory PermGen

Interesting thing I did not know about Java – PermGen. Apparently other than just the stack (local variables and methods) and the heap (everything else), java uses this extra storage which can also cause OOMs.

PermGen is where a few very long-lived types of objects are persisted in Java, such as class definitions and ‘intern’ed Strings.  It uses separate storage from the heap and the stack.  If you run out of PermGen you will get out of memory errors.  If you run very low you will get a JVM that spends all its time garbage collecting.

Few things I came about when I googled around:

Luckily I’ve never had to deal with PermGen OOM before. Apparently it’s hell-of-a-job debugging this issue.

From The SDE Tip – Amazon

Popularity: 1% [?]

Google Sunsets Urchin

Of late Google has been busy trimming the list of products and services it owns. Most of the acquired ones have been integrated into some core Google product and thus makes sense to drop them. For example, Pikniks features have been integrated into Picasa and is thus being shut down in April.

Another such product is Urchin. Having acquired the web analytics company, Google went into overdrive to create the Google Analytic service. Needless to say Google Analytics is way better than Urchin. The modified urchin.js (now called ga.js) does much more – it can track events and client side activities better than urchin.js. Thus the announcement to sunset Urchin. However, this might not be very well received by every one out there.

Google Analytics requires one to feed their logs to Google servers. Yeah you could un-check the tiny box to stress that the data should not be shared with Google, but still a lot of people will be uncomfortable with storing their data on servers not owned by them. With Urchin one had the benefit of locally installing the service. The UTM logs would be collected on boxes owned by the companies and also the log processor would run inside their firewall. Every company needs this sense of security. The moment log collection and parsing are pulled out of a company’s firewall eyebrows are raised. This is the reason why I believe that there will not be many takers for their Google Analytics Premium service. A person who is willing to pay 150000 USD per year have privacy and data security concerns no matter what the contract says.

For quite a while the Urchin software had not been updated. Google could have let the situation be as is. But by announcing that no new licenses will be sold from March onwards, they have challenged everybody – give us the logs or get lost. This kind of goes against their Google Is Not Evil policy. Not a good move in my opinion.

Popularity: 1% [?]

Mac : Create Password Protected Folder

The Disk Utility app of Mac allows one to create a password protected folder. An encrypted disk image is created. To mount the disk one has to enter the password set at the time of creation. The steps to create one is very easy.

Open up the Disk Utility app. Goto File -> New -> Blank Disk Image. Enter a name for the image. Choose the location. Disk name will be the name of the mounted image. Set a size that you want. Importantly enable encryption from the drop down. And for the image format drop down, select the Sparse Disk Image option. Click on create.

A new window comes up to set a password. Remember to uncheck the “Remember password in Keychain” option. Set the password and you are done.

Double clicking on the image file will bring up a window to enter the password. Authenticate yourself and you’ll see that the image has been mounted. Add files, remove files, etc and do whatever you want to. Remember to eject the image after your work is done.

There you go. A password protected image is all setup.

Popularity: 1% [?]

Mac : Impressed With The Battery Life

It was only a week ago that I switched to Mac from Windows and my 10.7 Lion has already impressed me with its battery life. With battery level down to some 60%, I was able to play audio songs on my iTunes through out the night.

I started iTunes at 11 in the night and queued 132 songs for playing. No more activity. I left the lid as is, switched off the lights and went to bed. I woke up at 5 in the morning and the songs were still playing. Happily I dozed off again. The music had stopped when I next got up at 7:30.

But being able to play music for 6 hours with only 60% battery is an amazing battery performance. Really impressed!

Popularity: 1% [?]