Author: devonenote

  • Windows Live Writer 4 New Features

    Windows Live Writer is the most popular blog client tool. Microsoft recently released Windows Live Writer 4 as part of new Windows Live Essentials Beta launch. I tried it and it looks great. Here is what’s new. New Ribbon UI Live Writer 4 has same Ribbon style menu as Office 2010. Actually this applies to…

  • Perl Replace String in File

    This code snippet demonstrates how to replace string in file using perl. This perl script takes in an input file, replaces the all string foo with bar. my $file = $ARGV[0]; my $filetmp = "$ARGV[0].tmp"; open (INPUT, "< $file") or die("Unable to open $file"); open (TMP, "> $filetmp") or die("Unable to open $filetmp"); while(<INPUT>) {…

  • Could not load type System.ServiceModel.Activation.HttpModule

    If you install DotNet framework 4.0 on Windows Server 2008 or R2 after enabling IIS,  you might see following error when browse your application site made of ASP.NET 4.0 (or run on ASP.NET 4.0 application pool). Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’. Description: An unhandled exception occurred during the execution…

  • WordPress 3.0 Cannot Export

    WordPress 3.0 is finally released with some great new features. I just upgraded my site to 3.0 today. The upgrade was smooth, however, I find that export doesn’t work any more. When I try to push export button to download posts xml file locally, I get following error. Warning: Illegal offset type in isset or…

  • OneNote 2010 New Features

    Office 2010 has a few great new features and improvements which make sharing and collaboration easier than ever. OneNote Web Application You can now create OneNote notebooks through web browsers and have other people to view, edit and collaborate anywhere. All notebooks created online will be saved to SkyDrive so you will need to have…

  • Sync OneNote 2010 notebooks to SkyDrive

    Start from OneNote 2010, when you creating new notebooks, you can save notebooks to SkyDrive directly so they are available to you everywhere. How to synchronize OneNote and SkyDrive On your PC, open OneNote 2010. Go to the Notebook you want to enable sync, click on File > Share Choose your Notebook and then click…

  • SkyDrive is Live with OneNote Sync

    SkyDrive is live with OneNote Sync, you can now go to Office.live.com and start upload your OneNote files. Office Web Apps on SkyDrive are available free for personal use. When you creating New Notebook in OneNote 2010, you can now save it to SkyDrive directly. To get start, you will need to have a Windows…

  • Microsoft Training Kits

    The Microsoft Training Kit is free download that contains useful training resources. Here is a list of some latest useful training kits, the training content includes demo, videos, presentations, hands on lab and some code samples. Enjoy it Windows 8 Camp in a Box Web Camps Training Kit Windows 7 Training Kit For Developers SQL…

  • Perl Last Element of Split

    There is an easier way to get last element on a split operation, save split result to an array and use $array[-1] and this will access last element of the arrays. Example $strings=”foo,bar,test”; my @fields = split(/,/, $strings); print $fields[-1] ;  # the last str in $strings

  • Perl Backslash in Regular Expression

    This note is for a trick to use Q and E  to escape characters for regular expression. You will find it very useful when you do string substitution and your pattern contains characters like slashes or backslashes .