Text Normalizer - Dealing with ascents

I had to sort French texts in alphabetical order. It was not as simple as we compare English strings because we must deal with the French ascents such as é and à.
If we don't process anything and use the simple string comparison function, we get équipement after zebra. However, we need équipement between words starting from 'd' and 'f' i.e. we want  équipement as if it were equipement. In order to solve the problem, we must compare strings after we normalize and remove Diacritic:

String normalizedStr1=Normalizer.normalize(Text1, Normalizer.Form.NFD).replaceAll("[\u0300-\u036F]", "");

String normalizedStr2=Normalizer.normalize(Text2, Normalizer.Form.NFD).replaceAll("[\u0300-\u036F]", "");

Now we make comparison between normalizedStr1 and normalizedStr2 instead of Text1 and Text2.

The Great Walls

You might have noticed the word 'Walls' in the title. Actually, I was reading a technical article, China's Great Firewall spreads overseas. I noticed a new phrase "Great Firewall" for the first time. So, in world there are two great walls: The Great Wall and The Great Firewall. Both lie in China :). 

Facebook wants to be the main river ?

A tributary is a stream or river which flows into a main stem (or parent) river. Facebook wants every site on the web to be a tributary. And it wants to be the main river using Open Graph API.
  • Basically, the Open Graph API is a way for Facebook to allow other companies, sites, services, etc to interact with Facebook without having to create a dedicated Facebook Page.
  • With the Open Graph API, Facebook wants to allow anyone to take their own site and essentially wrap it in a Facebook blanket. This doesn’t necessarily mean in a visual way, but rather that these sites which use the APIs will be able to replicate many of the core Facebook functionality on their own sites.
  • So you can imagine that you might be able to create a Facebook-style Wall to include on your site, but able to update your statuses from your site, leave comments, like items, etc. Again, it’s like a Facebook Page, but it would be on your site. And you can only include elements you want, and leave out others.

Text 2.0 - Interesting

One of my friends has been keeping his messenger status : "Everything is 2.0" since last few months back. It is because he is working in Web2.0 and communication systems and he thinks that everything is changing. Text was in 1.0 but now it is approaching to 2.0. This fact supports him :). Watch the video below, it is really interesting one !

Facebook beats Google

Here is an interesting news copied from consumerist.com:
It's official -- playing Farmville and tagging friends in photos (and consequently untagging embarrassing photos of yourself from your friends' photos) has become more popular than actually trying to find things on the internet, as a new report shows Facebook edged out Google as the most-visited site on the internet last week.
According to Hitwise, Facebook accounted for 7.07% of all web traffic for the week ending March 13. That barely edges out Google's 7.03%.
This is huge news for Facebook, who only a year ago accounted for around 2% of U.S. web traffic.