<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0">
  <channel>
    <title>Rujith Anand's space</title>
    <link>http://www.rujith.net/RujithBlogTech/</link>
    <description>The techie in me</description>
    <language>en-us</language>
    <copyright>Rujith Anand</copyright>
    <lastBuildDate>Fri, 26 Nov 2010 06:58:00 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>rujith@rujith.net</managingEditor>
    <webMaster>rujith@rujith.net</webMaster>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=d4a68039-27f6-487c-9c39-240eb73449a1</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,d4a68039-27f6-487c-9c39-240eb73449a1.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,d4a68039-27f6-487c-9c39-240eb73449a1.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=d4a68039-27f6-487c-9c39-240eb73449a1</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
 
</p>
        <p>
I don't think we can ever say good by to our good old MS-DOS. My first intimate interaction
with Micro Computer(the original name of PC ) was through MS-DOS. Now in the advanced
age of computer still I am using DOS, this time as part of one the build scripts.
Our continuous integration creates an installer every night(early morning to be exact
– this is a cheat, I'll describe it later). We want to keep them for 2 weeks and delete
afterwards. Now to do this I can create a simple .net console app, which will be more
efficient in error handling etc. But I like to do it in the good old way :). 
</p>
        <p>
Found a command line utility –<strong>ForFiles-</strong> comes with WinXP command
line. 
</p>
        <p>
(If you don't have installed by default – in most of the case no- you can download
it from the <a title="Microsoft ResKit FTP download" href="ftp://ftp.microsoft.com/ResKit/y2kfix/x86/" target="_blank">MS
FTP server</a>. You may want to place it to C:\WINDOWS\system32 or update the PATH
variable accordingly)
</p>
        <font style="background-color: #33ffff">
          <p>
forfiles -p "C:\SearchFolder" -s -m*.msi -d-14 -c "cmd /c del @path" 
</p>
        </font>
        <p>
-p : path to search for<br />
-s : include subdirectories<br />
-m : search mask (*.msi files here)<br />
-d : files older than days (14 in my case), you can use dates instead<br />
-c : the command to execute on the files 
</p>
        <p>
also checkout the help for 'forfiles'. If you have forgotten how to do it, its forfiles/?...
uh it doesn't work ? simply type forfiles :) 
</p>
        <p>
  
</p>
        <p>
The following variables can be used in Command : (@path is already used in the above
example)<br />
@FILE, @FNAME_WITHOUT_EXT, @EXT, @PATH, @RELPATH, @ISDIR, @FSIZE, @FDATE, @FTIME 
</p>
        <p>
  
</p>
        <p>
hope this helps... 
</p>
        <p>
  
</p>
        <p>
          <strong>
            <em>edit </em>
          </strong>
        </p>
        <p>
  
</p>
        <p>
found a nice website with <a title="WinXP command lines" href="http://ss64.com/nt/" target="_blank">WinXP
command lines</a></p>
      </body>
      <title>MS DOS - Deleting files older than x days</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,d4a68039-27f6-487c-9c39-240eb73449a1.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/11/26/MSDOSDeletingFilesOlderThanXDays.aspx</link>
      <pubDate>Fri, 26 Nov 2010 06:58:00 GMT</pubDate>
      <description>&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
I don't think we can ever say good by to our good old MS-DOS. My first intimate interaction
with Micro Computer(the original name of PC ) was through MS-DOS. Now in the advanced
age of computer still I am using DOS, this time as part of one the build scripts.
Our continuous integration creates an installer every night(early morning to be exact
– this is a cheat, I'll describe it later). We want to keep them for 2 weeks and delete
afterwards. Now to do this I can create a simple .net console app, which will be more
efficient in error handling etc. But I like to do it in the good old way :). 
&lt;/p&gt;
&lt;p&gt;
Found a command line utility –&lt;strong&gt;ForFiles-&lt;/strong&gt; comes with WinXP command
line. 
&lt;/p&gt;
&lt;p&gt;
(If you don't have installed by default – in most of the case no- you can download
it from the &lt;a title="Microsoft ResKit FTP download" href="ftp://ftp.microsoft.com/ResKit/y2kfix/x86/" target="_blank"&gt;MS
FTP server&lt;/a&gt;. You may want to place it to C:\WINDOWS\system32 or update the PATH
variable accordingly)
&lt;/p&gt;
&lt;font style="background-color: #33ffff"&gt; 
&lt;p&gt;
forfiles -p "C:\SearchFolder" -s -m*.msi -d-14 -c "cmd /c del @path" 
&lt;/p&gt;
&lt;/font&gt; 
&lt;p&gt;
-p : path to search for&lt;br&gt;
-s : include subdirectories&lt;br&gt;
-m : search mask (*.msi files here)&lt;br&gt;
-d : files older than days (14 in my case), you can use dates instead&lt;br&gt;
-c : the command to execute on the files 
&lt;/p&gt;
&lt;p&gt;
also checkout the help for 'forfiles'. If you have forgotten how to do it, its forfiles/?...
uh it doesn't work ? simply type forfiles :) 
&lt;p&gt;
&amp;nbsp; 
&lt;p&gt;
The following variables can be used in Command : (@path is already used in the above
example)&lt;br&gt;
@FILE, @FNAME_WITHOUT_EXT, @EXT, @PATH, @RELPATH, @ISDIR, @FSIZE, @FDATE, @FTIME 
&lt;p&gt;
&amp;nbsp; 
&lt;p&gt;
hope this helps... 
&lt;p&gt;
&amp;nbsp; 
&lt;p&gt;
&lt;strong&gt;&lt;em&gt;edit &lt;/em&gt;&lt;/strong&gt; 
&lt;p&gt;
&amp;nbsp; 
&lt;p&gt;
found a nice website with &lt;a title="WinXP command lines" href="http://ss64.com/nt/" target="_blank"&gt;WinXP
command lines&lt;/a&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,d4a68039-27f6-487c-9c39-240eb73449a1.aspx</comments>
      <category>Coding</category>
      <category>Everything</category>
      <category>Legacy</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=77c9be10-4932-4264-99d2-f1f41b3d9537</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,77c9be10-4932-4264-99d2-f1f41b3d9537.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,77c9be10-4932-4264-99d2-f1f41b3d9537.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=77c9be10-4932-4264-99d2-f1f41b3d9537</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
How to hard reset HTC Desire to factory setting, some call it factory reset.
</p>
        <p>
I have an HTC Desire Z, I had to hard reset the phone couple of times because of all
junk apps I install.
</p>
        <p>
Steps to hard reset, may be helpful for you…
</p>
        <p>
          <strong>HARD RESET WILL WIPE ALL YOUR PERSONAL DATA,</strong> so please do a backup
before you start
</p>
        <p>
Turn off your phone,<br />
1. With the phone turned off, press and hold the VOLUME DOWN button, and then briefly
press the POWER button.<br />
2. Wait for the screen with the three Android images to appear, and then release the
VOLUME DOWN button..<br />
3. Press VOLUME DOWN to select CLEAR STORAGE, and then press POWER.<br />
4. Press VOLUME UP to start the factory reset. 
</p>
        <p>
 
</p>
        <p>
I think this is different from what you do thorugh the ‘factory reset’ menu option
in setting. ( I am not sure though)
</p>
      </body>
      <title>Hard reset HTC Desire Z</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,77c9be10-4932-4264-99d2-f1f41b3d9537.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/11/21/HardResetHTCDesireZ.aspx</link>
      <pubDate>Sun, 21 Nov 2010 21:44:00 GMT</pubDate>
      <description>&lt;p&gt;
How to hard reset HTC Desire to factory setting, some call it factory reset.
&lt;/p&gt;
&lt;p&gt;
I have an HTC Desire Z, I had to hard reset the phone couple of times because of all
junk apps I install.
&lt;/p&gt;
&lt;p&gt;
Steps to hard reset, may be helpful for you…
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;HARD RESET WILL WIPE ALL YOUR PERSONAL DATA,&lt;/strong&gt; so please do a backup
before you start
&lt;/p&gt;
&lt;p&gt;
Turn off your phone,&lt;br&gt;
1. With the phone turned off, press and hold the VOLUME DOWN button, and then briefly
press the POWER button.&lt;br&gt;
2. Wait for the screen with the three Android images to appear, and then release the
VOLUME DOWN button..&lt;br&gt;
3. Press VOLUME DOWN to select CLEAR STORAGE, and then press POWER.&lt;br&gt;
4. Press VOLUME UP to start the factory reset. 
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
I think this is different from what you do thorugh the ‘factory reset’ menu option
in setting. ( I am not sure though)
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,77c9be10-4932-4264-99d2-f1f41b3d9537.aspx</comments>
      <category>Everything</category>
      <category>Non MS</category>
      <category>Windows Mobile</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=d7e850d0-c1e5-4b1e-9a67-b4e8096a5707</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,d7e850d0-c1e5-4b1e-9a67-b4e8096a5707.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,d7e850d0-c1e5-4b1e-9a67-b4e8096a5707.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=d7e850d0-c1e5-4b1e-9a67-b4e8096a5707</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
My colleague suggested me a nice UI mock-up tool recently. <a href="http://balsamiq.com/">Balsamiq</a> has
a free web version with some limitation, its not very expensive if you want to buy.
I like the product though, we can say bye bye to MS paint for UI mock-up also its
a nice idea they have built in controls for common windows controls.
</p>
        <p>
-Rujith
</p>
      </body>
      <title>UI mock-up tool - Balsamiq</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,d7e850d0-c1e5-4b1e-9a67-b4e8096a5707.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/10/16/UIMockupToolBalsamiq.aspx</link>
      <pubDate>Sat, 16 Oct 2010 20:15:00 GMT</pubDate>
      <description>&lt;p&gt;
My colleague suggested me a nice UI mock-up tool recently. &lt;a href="http://balsamiq.com/"&gt;Balsamiq&lt;/a&gt; has
a free web version with some limitation, its not very expensive if you want to buy.
I like the product though, we can say bye bye to MS paint for UI mock-up also its
a nice idea they have built in controls for common windows controls.
&lt;/p&gt;
&lt;p&gt;
-Rujith
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,d7e850d0-c1e5-4b1e-9a67-b4e8096a5707.aspx</comments>
      <category>Everything</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=7494f934-b0c6-4dd1-8605-b56e478cd4e1</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,7494f934-b0c6-4dd1-8605-b56e478cd4e1.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,7494f934-b0c6-4dd1-8605-b56e478cd4e1.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=7494f934-b0c6-4dd1-8605-b56e478cd4e1</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I am sure that most you have read this in the MSDN documentation, it appears almost
everywhere. Recently while brainstorming about a deadlock issue in our project someone
raised this topic. ‘Public static (<b>Shared</b> in Visual Basic) members of this
type are thread safe. Any instance members are not guaranteed to be thread safe’,
and claimed that all Framework type static instances are thread safe.
</p>
        <p>
My opinion is this is bit misleading. This doesn't mean that all type in .NET framework
are thread safe in static instance, nor that all static instance of any type is thread
safe. If you think for a sec, nothing is thread safe by default, the author has to
make a type thread safe, in this case MS has taken the time to verify that they are
thread safe (which is very easy if they don't touch shared data). So it is your responsibility
to make your class/type is thread safe.
</p>
        <p>
I am sure MS is aware of this confusing statement. In old days it used to be only
the two sentences in documentation (as above), but now you can see they are elaborating
it bit more. Check <a href="http://msdn.microsoft.com/en-us/library/system.array(v=VS.80).aspx">here
documentation for Array</a></p>
        <p>
And check <a href="http://msdn.microsoft.com/en-us/library/system.threading.tasks.taskfactory.aspx">this
out</a>, Thread Safety for TaskFactory says, 
</p>
        <blockquote>
          <p>
All public and protected members of <a href="http://msdn.microsoft.com/en-us/library/system.threading.tasks.taskfactory.aspx">TaskFactory</a> are
thread-safe and may be used concurrently from multiple threads
</p>
        </blockquote>
        <p>
Hope that helps.
</p>
        <p>
 
</p>
        <p>
Rujith
</p>
      </body>
      <title>Public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,7494f934-b0c6-4dd1-8605-b56e478cd4e1.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/10/02/PublicStaticSharedInVisualBasicMembersOfThisTypeAreThreadSafeAnyInstanceMembersAreNotGuaranteedToBeThreadSafe.aspx</link>
      <pubDate>Sat, 02 Oct 2010 22:23:00 GMT</pubDate>
      <description>&lt;p&gt;
I am sure that most you have read this in the MSDN documentation, it appears almost
everywhere. Recently while brainstorming about a deadlock issue in our project someone
raised this topic. ‘Public static (&lt;b&gt;Shared&lt;/b&gt; in Visual Basic) members of this
type are thread safe. Any instance members are not guaranteed to be thread safe’,
and claimed that all Framework type static instances are thread safe.
&lt;/p&gt;
&lt;p&gt;
My opinion is this is bit misleading. This doesn't mean that all type in .NET framework
are thread safe in static instance, nor that all static instance of any type is thread
safe. If you think for a sec, nothing is thread safe by default, the author has to
make a type thread safe, in this case MS has taken the time to verify that they are
thread safe (which is very easy if they don't touch shared data). So it is your responsibility
to make your class/type is thread safe.
&lt;/p&gt;
&lt;p&gt;
I am sure MS is aware of this confusing statement. In old days it used to be only
the two sentences in documentation (as above), but now you can see they are elaborating
it bit more. Check &lt;a href="http://msdn.microsoft.com/en-us/library/system.array(v=VS.80).aspx"&gt;here
documentation for Array&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
And check &lt;a href="http://msdn.microsoft.com/en-us/library/system.threading.tasks.taskfactory.aspx"&gt;this
out&lt;/a&gt;, Thread Safety for TaskFactory says, 
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
All public and protected members of &lt;a href="http://msdn.microsoft.com/en-us/library/system.threading.tasks.taskfactory.aspx"&gt;TaskFactory&lt;/a&gt; are
thread-safe and may be used concurrently from multiple threads
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
Hope that helps.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Rujith
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,7494f934-b0c6-4dd1-8605-b56e478cd4e1.aspx</comments>
      <category>Coding</category>
      <category>Everything</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=21d449c2-00fb-48b6-8ece-714c69180708</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,21d449c2-00fb-48b6-8ece-714c69180708.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,21d449c2-00fb-48b6-8ece-714c69180708.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=21d449c2-00fb-48b6-8ece-714c69180708</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Recently I was trying to find duplicate records in a table. The records are considered
duplicate if two columns in different records has the same value. For example if first
name and last name is same in record1 and record2, they considered as duplicate. 
</p>
        <p>
The below query will help to find the duplicate records. 
</p>
        <p>
SELECT fname, lname, COUNT(*) AS DuplicateCount FROM [Users]<br />
GROUP BY fname, lname HAVING COUNT(*) &gt; 1<br />
ORDER BY COUNT(*), fname. 
</p>
        <p>
  
</p>
        <p>
(I know this is pretty simple one, but most of the time you struggle for the simplest
query :) so thought of sharing it)
</p>
      </body>
      <title>Finding duplicate records based on multiple columns in SQL</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,21d449c2-00fb-48b6-8ece-714c69180708.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/08/30/FindingDuplicateRecordsBasedOnMultipleColumnsInSQL.aspx</link>
      <pubDate>Mon, 30 Aug 2010 22:13:00 GMT</pubDate>
      <description>&lt;p&gt;
Recently I was trying to find duplicate records in a table. The records are considered
duplicate if two columns in different records has the same value. For example if first
name and last name is same in record1 and record2, they considered as duplicate. 
&lt;/p&gt;
&lt;p&gt;
The below query will help to find the duplicate records. 
&lt;/p&gt;
&lt;p&gt;
SELECT fname, lname, COUNT(*) AS DuplicateCount FROM [Users]&lt;br&gt;
GROUP BY fname, lname HAVING COUNT(*) &amp;gt; 1&lt;br&gt;
ORDER BY COUNT(*), fname. 
&lt;p&gt;
&amp;nbsp; 
&lt;p&gt;
(I know this is pretty simple one, but most of the time you struggle for the simplest
query :) so thought of sharing it)
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,21d449c2-00fb-48b6-8ece-714c69180708.aspx</comments>
      <category>Database</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=9e746c88-8d5b-4803-9f3f-4860f392890b</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,9e746c88-8d5b-4803-9f3f-4860f392890b.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,9e746c88-8d5b-4803-9f3f-4860f392890b.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=9e746c88-8d5b-4803-9f3f-4860f392890b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I recently found a nice free icon editor called IconFX.  Its really cool and
very lightweight, you can simply use the exe no need to install. That’s surprise in
this world when you have install (and sometimes reboot ) every single piece of software
isn't it ?
</p>
        <p>
Try it out… <a title="http://icofx.ro/" href="http://icofx.ro/">http://icofx.ro/</a></p>
      </body>
      <title>Free icon editor</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,9e746c88-8d5b-4803-9f3f-4860f392890b.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/07/22/FreeIconEditor.aspx</link>
      <pubDate>Thu, 22 Jul 2010 23:17:00 GMT</pubDate>
      <description>&lt;p&gt;
I recently found a nice free icon editor called IconFX.&amp;nbsp; Its really cool and
very lightweight, you can simply use the exe no need to install. That’s surprise in
this world when you have install (and sometimes reboot ) every single piece of software
isn't it ?
&lt;/p&gt;
&lt;p&gt;
Try it out… &lt;a title="http://icofx.ro/" href="http://icofx.ro/"&gt;http://icofx.ro/&lt;/a&gt;
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,9e746c88-8d5b-4803-9f3f-4860f392890b.aspx</comments>
      <category>Everything</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=89973a28-1e94-41d2-9855-413aee325702</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=89973a28-1e94-41d2-9855-413aee325702</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
String.Replace is not case insensitive, so what is the best way to do it. There are
several ways, if I think of the quickest one it is using regex.
</p>
        <pre class="csharpcode">
          <span class="kwrd">using</span> System.Text.RegularExpressions;<span class="kwrd">string</span><span class="kwrd">string</span> str
= <span class="str">"The quick brown Fox jumps over the lazy dog"</span>; <span class="kwrd">string</span> strReplace
= <span class="str">"cat"</span>; <span class="kwrd">string</span> result = Regex.Replace(str, <span class="str">"fox"</span>,
strReplace, RegexOptions.IgnoreCase);</pre>
        <p>
-Rujith
</p>
        <p>
 
</p>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
      </body>
      <title>Quickest String.Replace case insensitive</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/04/10/QuickestStringReplaceCaseInsensitive.aspx</link>
      <pubDate>Sat, 10 Apr 2010 22:18:00 GMT</pubDate>
      <description>&lt;p&gt;
String.Replace is not case insensitive, so what is the best way to do it. There are
several ways, if I think of the quickest one it is using regex.
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text.RegularExpressions;&lt;span class="kwrd"&gt;string&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; str
= &lt;span class="str"&gt;"The quick brown Fox jumps over the lazy dog"&lt;/span&gt;; &lt;span class="kwrd"&gt;string&lt;/span&gt; strReplace
= &lt;span class="str"&gt;"cat"&lt;/span&gt;; &lt;span class="kwrd"&gt;string&lt;/span&gt; result = Regex.Replace(str, &lt;span class="str"&gt;"fox"&lt;/span&gt;,
strReplace, RegexOptions.IgnoreCase);&lt;/pre&gt;
&lt;p&gt;
-Rujith
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,89973a28-1e94-41d2-9855-413aee325702.aspx</comments>
      <category>Coding</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=6b8104a3-84b0-410c-b946-cac1cb8755ba</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=6b8104a3-84b0-410c-b946-cac1cb8755ba</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I had lot of trouble in my last project due the html body onload event. The aspx pages
were relying lot on this event ( I agree its not the best way, but we don't have the
budget and time for to rebuild the entire site). These sites were AJAXyfied recently
using Telerik RadControls, and were not working in FireFox. I must admin Telerik controls
are really good, its makes your job very easy in AJAX world. Though I don't like their
quarterly release idea. YES, they release a new version every quarter... 
</p>
        <p>
So the problem in AJAX is, the page can be loaded asynchronously, so when the onload
event on the body is fired the controls may not be ready, so you get null exceptions. 
</p>
        <p>
The best way I found is to use the built in ‘pageLoad()’ method(this is a reserved
method). This will be called once all AJAX load events are finished. Remember you
can use this only in AJAX pages. Also this is consistent in different browsers. (If
you are going with FireFox you have to use window.load=function() instead onload=function())
</p>
        <p>
Coding is fun
</p>
        <p>
-Rujith
</p>
      </body>
      <title>Body onload and AJAX</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/02/08/BodyOnloadAndAJAX.aspx</link>
      <pubDate>Mon, 08 Feb 2010 00:32:00 GMT</pubDate>
      <description>&lt;p&gt;
I had lot of trouble in my last project due the html body onload event. The aspx pages
were relying lot on this event ( I agree its not the best way, but we don't have the
budget and time for to rebuild the entire site). These sites were AJAXyfied recently
using Telerik RadControls, and were not working in FireFox. I must admin Telerik controls
are really good, its makes your job very easy in AJAX world. Though I don't like their
quarterly release idea. YES, they release a new version every quarter... 
&lt;/p&gt;
&lt;p&gt;
So the problem in AJAX is, the page can be loaded asynchronously, so when the onload
event on the body is fired the controls may not be ready, so you get null exceptions. 
&lt;/p&gt;
&lt;p&gt;
The best way I found is to use the built in ‘pageLoad()’ method(this is a reserved
method). This will be called once all AJAX load events are finished. Remember you
can use this only in AJAX pages. Also this is consistent in different browsers. (If
you are going with FireFox you have to use window.load=function() instead onload=function())
&lt;/p&gt;
&lt;p&gt;
Coding is fun
&lt;/p&gt;
&lt;p&gt;
-Rujith
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,6b8104a3-84b0-410c-b946-cac1cb8755ba.aspx</comments>
      <category>Coding</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=86152535-3c14-42da-939d-9d86384332a7</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=86152535-3c14-42da-939d-9d86384332a7</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Maximum request length matters when you want to allow upload/download of large files.
</p>
        <p>
This is one of the major change in IIS7. In previous version the default is 4MB, in
IIS7 its 28.6MB. So when you deploy your ASP.NET application you will see that it
will work for files larger than 4MB, but will give as soon as you cross the 28MB.
</p>
        <p>
In IIS 7, the attribute has been changed to maxAllowedContentLength and it has to
appear in &lt;system.webServer&gt; section (as for all IIS 7 settings). The complete
attribute will look something like this…
</p>
        <pre class="code">
          <span style="color: blue">&lt;</span>
          <span style="color: #a31515">system.webServer</span>
          <span style="color: blue">&gt;</span>
          <span style="color: blue">
            <br />
&lt;</span>
          <span style="color: #a31515">security </span>
          <span style="color: blue">&gt;
&lt;</span>
          <span style="color: #a31515">requestFiltering</span>
          <span style="color: blue">&gt;
&lt;</span>
          <span style="color: #a31515">requestLimits </span>
          <span style="color: red">maxAllowedContentLength</span>
          <span style="color: blue">=</span>"<span style="color: blue">3072000000</span>" <span style="color: blue">/&gt;
&lt;/</span><span style="color: #a31515">requestFiltering</span><span style="color: blue">&gt;
&lt;/</span><span style="color: #a31515">security</span><span style="color: blue">&gt;</span></pre>
        <p>
…
</p>
        <p>
 
</p>
        <p>
          <a href="http://11011.net/software/vspaste">
          </a>
        </p>
      </body>
      <title>Change Request length in IIS 7</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/02/07/ChangeRequestLengthInIIS7.aspx</link>
      <pubDate>Sun, 07 Feb 2010 00:18:00 GMT</pubDate>
      <description>&lt;p&gt;
Maximum request length matters when you want to allow upload/download of large files.
&lt;/p&gt;
&lt;p&gt;
This is one of the major change in IIS7. In previous version the default is 4MB, in
IIS7 its 28.6MB. So when you deploy your ASP.NET application you will see that it
will work for files larger than 4MB, but will give as soon as you cross the 28MB.
&lt;/p&gt;
&lt;p&gt;
In IIS 7, the attribute has been changed to maxAllowedContentLength and it has to
appear in &amp;lt;system.webServer&amp;gt; section (as for all IIS 7 settings). The complete
attribute will look something like this…
&lt;/p&gt;
&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;system.webServer&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: blue"&gt;
&lt;br&gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;security &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;requestFiltering&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;requestLimits &lt;/span&gt;&lt;span style="color: red"&gt;maxAllowedContentLength&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;3072000000&lt;/span&gt;" &lt;span style="color: blue"&gt;/&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;requestFiltering&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;security&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;
…
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,86152535-3c14-42da-939d-9d86384332a7.aspx</comments>
      <category>Coding</category>
      <category>WCF</category>
    </item>
    <item>
      <trackback:ping>http://www.rujith.net/RujithBlogTech/Trackback.aspx?guid=26bcb1da-bfce-4c26-b5b5-240e7d32e3ef</trackback:ping>
      <pingback:server>http://www.rujith.net/RujithBlogTech/pingback.aspx</pingback:server>
      <pingback:target>http://www.rujith.net/RujithBlogTech/PermaLink,guid,26bcb1da-bfce-4c26-b5b5-240e7d32e3ef.aspx</pingback:target>
      <dc:creator>Rujith Anand</dc:creator>
      <wfw:comment>http://www.rujith.net/RujithBlogTech/CommentView,guid,26bcb1da-bfce-4c26-b5b5-240e7d32e3ef.aspx</wfw:comment>
      <wfw:commentRss>http://www.rujith.net/RujithBlogTech/SyndicationService.asmx/GetEntryCommentsRss?guid=26bcb1da-bfce-4c26-b5b5-240e7d32e3ef</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I ran into trouble during deploying a WCF service on IIS7 with https.
</p>
        <p>
There's a great resource on all things WCF Security related here
</p>
        <p>
          <a title="http://www.codeplex.com/WCFSecurity" href="http://www.codeplex.com/WCFSecurity">http://www.codeplex.com/WCFSecurity</a>
        </p>
        <p>
This helped me a lot.
</p>
      </body>
      <title>WCF Security Guidance</title>
      <guid isPermaLink="false">http://www.rujith.net/RujithBlogTech/PermaLink,guid,26bcb1da-bfce-4c26-b5b5-240e7d32e3ef.aspx</guid>
      <link>http://www.rujith.net/RujithBlogTech/2010/01/12/WCFSecurityGuidance.aspx</link>
      <pubDate>Tue, 12 Jan 2010 19:50:00 GMT</pubDate>
      <description>&lt;p&gt;
I ran into trouble during deploying a WCF service on IIS7 with https.
&lt;/p&gt;
&lt;p&gt;
There's a great resource on all things WCF Security related here
&lt;/p&gt;
&lt;p&gt;
&lt;a title="http://www.codeplex.com/WCFSecurity" href="http://www.codeplex.com/WCFSecurity"&gt;http://www.codeplex.com/WCFSecurity&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
This helped me a lot.
&lt;/p&gt;</description>
      <comments>http://www.rujith.net/RujithBlogTech/CommentView,guid,26bcb1da-bfce-4c26-b5b5-240e7d32e3ef.aspx</comments>
      <category>WCF</category>
    </item>
  </channel>
</rss>
