Friday, March 27, 2009

Sixth sense technology

Checkout this link. This is amazing.

Technology Breakthrough by an Indian !!!!

http://www.ted.com/index.php/talks/pattie_maes_demos_the_sixth_sense.html

Friday, March 20, 2009

.NET String comparison benchmarking

I was just going through http://msdn.microsoft.com/en-us/library/ms973919.aspx on string comparison. My finding is little different. If you are comparing strings with the combination of Equals() and ToUpper(), it is much faster than the Equals() and Enum StringComparison. I have profiled the code using Ants profiler and below is the screenshot.

Sunday, March 15, 2009

Regular Expression Cookbook


I have been waiting for this Regex cookbook for long time. I will make sure that I am the first person to get this book from store as soon as it is available.
http://www.amazon.com/gp/product/0596520689?ie=UTF8&tag=slfb-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0596520689

Thursday, March 05, 2009

IE 8 - New Ajax and DOM storage Features

Following are few new cool features in IE8:

  1. New Ajax Navigation
  2. DOM storage upto 10 MB
  3. Online/Offline detection in Javascript
  4. XmlHttpRequest Timeout
Check out this url for detail:
http://msdn.microsoft.com/en-us/magazine/dd458804.aspx#id0100180

Wednesday, March 04, 2009

Perl - Find and replace without Regex

Perl doesn't have built-in string replace function as we have in C# but using \Q operator you can achieve same effect.



my $pattern = '[lerp]+';
my $target = 'this is [lerp]+ perl';
(
my $output1 = $target) =~ s/${pattern}//g;
(
my $output2 = $target) =~ s/\Q${pattern}//g;
print $output1 , "\n";
print $output2 , "\n";




Ouput:
this is []+
this is perl

Becoming a great writer !!!

There was once a young man who, in his youth, professed a desire to become a "great" writer.

When asked to define "great" he said "I want to write stuff that the whole world will read, stuff that people will react to on a truly emotional level, stuff that will make them scream, cry, wail, howl in pain, desperation, and anger!"

He now works for Microsoft writing error messages.