﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Daffodilnet Express</title>
    <description>&lt;i&gt;Quick Tips and Snippets&lt;/i&gt;&lt;script type="text/javascript" src="http://www.haloscan.com/load/deepaknet"&gt;&lt;/script&gt;</description>
    <link>http://www.wwwcoder.com/Weblogs/tabid/283/BlogId/105/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>deepak@online.ie</managingEditor>
    <webMaster>webmaster@wwwcoder.com</webMaster>
    <pubDate>Sat, 17 May 2008 07:41:40 GMT</pubDate>
    <lastBuildDate>Sat, 17 May 2008 07:41:40 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.2.0.29758</generator>
    <item>
      <title>Clearing IE Cache</title>
      <description>&lt;STRONG&gt;Clearing IE Cache&lt;/STRONG&gt;
&lt;P&gt;Cache -- the five letter buzz word remains as a double-edged sword. System Administrators and Network Administrators appreciate it and recommend it for simple reason, that network bandwidth is conserved. Developers, to an extent blame it since sometimes Old data crops up.&lt;/P&gt;
&lt;P&gt;There has been a lot of programmatic options we stipulate from our webpages to clear cache like Pragma, Cache-Control directives.&lt;/P&gt;
&lt;P&gt;Here comes one solution from Microsoft called ClearCache. Check it out at: &lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=5CBD4659-3B28-4801-8729-05335902CE79&amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=5CBD4659-3B28-4801-8729-05335902CE79&amp;displaylang=en&lt;/A&gt;&lt;/P&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/769/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/769/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=769</guid>
      <pubDate>Tue, 21 Feb 2006 23:37:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=769</trackback:ping>
    </item>
    <item>
      <title>Developing Applications for the Web is a breeze with Internet Explorer Developer Toolbar...</title>
      <description>&lt;P&gt;&lt;STRONG&gt;Developing Applications for the Web is a breeze with Internet Explorer Developer Toolbar...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Debugging a web application, particularly its HTML counterpart like image path, Stylesheet, Scripting and design template issues has always been a nightmare for web developers and this always never fails to spark off arguments between the designers of the team, who would be stubborn for look and feel and developers reluctant to apply apprehending the implementation difficulties and browser compatibility issues.&lt;/P&gt;
&lt;P&gt;There had been little tools to this perspective from various vendors like DOMInspector from Mozilla FireFox, MyIE2 had its own Scripting Inspector. &lt;/P&gt;
&lt;P&gt;Now you can check out an Internet Explorer Developer Toolbar from Microsoft, which is available from this URL: &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;However,  please take note of the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The Toolbar is still in BETA stage.&lt;/LI&gt;
&lt;LI&gt;The Toolbar gets installed only if IE 6 is installed.&lt;/LI&gt;&lt;/OL&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/768/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/768/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=768</guid>
      <pubDate>Tue, 21 Feb 2006 23:32:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=768</trackback:ping>
    </item>
    <item>
      <title>Managing Remote Terminal Sessions -- The Easy Way</title>
      <description>&lt;P&gt;&lt;FONT size=4&gt;Managing Remote Terminal Sessions -- The Easy Way&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Windows 2000 brought in an elegant way of working on remote desktops by the concept of &lt;EM&gt;Terminal Services&lt;/EM&gt;. But it was an additional Windows component that needed to be installed and configured, which meant additional license costs and administerial functions to setup and followup. However, it did gain in a perspective that the dependency on a third party application be it commercialware (like pcAnywhere etc) or an opensource (VNC, RealVNC etc) was broken down.&lt;/P&gt;
&lt;P&gt;Windows XP took this one step ahead with the concept of &lt;EM&gt;Remote Desktop &lt;/EM&gt;by way of RDP protocol. However, it allowed only one user to work on the system, transferring the control appropriately. &lt;/P&gt;
&lt;P&gt;I have been using Windows 2000 Terminal Services for a long long time and one daunting and nightmarish problem that I had to face is that to ensure that users logoff rather than disconnect. When you disconnect a session, Windows Terminal Services remembers this and prevents any new users from opening a connection unless the free sessions are available. The default session count, I guess, is 2 for Windows Terminal Services.&lt;/P&gt;
&lt;P&gt;Last week, while casually surfing the web, I came across two nice tools to manage this scenario:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;qwinsta.exe:  &lt;STRONG&gt;Displays information about Terminal Sessions&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;rwinsta.exe: &lt;STRONG&gt;Resets the session subsystem hardware and software to default values. Effectively, you can use this tool to reset disconnected users so that other users can login.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;From a developer's perspective, I feel, that we can have a simple Windows Form application in C# to manage these. Perhaps this weekend, I would try to get a small application and publish it over my personal website for other readers' use. &lt;/P&gt;
&lt;P&gt;From C#, we just need to use WTSAPI32.dll using DllImport to manage the functionalities of QWInsta and RWInsta. More information about this tool over here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/run_time_linking_to_wtsapi32_dll.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/run_time_linking_to_wtsapi32_dll.asp&lt;/A&gt;&lt;/P&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/767/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/767/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=767</guid>
      <pubDate>Fri, 27 Jan 2006 22:33:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=767</trackback:ping>
    </item>
    <item>
      <title>Working with System.Web.Mail namespace...</title>
      <description>&lt;P&gt;&lt;FONT size=4&gt;Working with System.Web.Mail namespace...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;We use System.Web.Mail namespace to send emails from our .NET Applications. It uses two main classes called MailMessage and SmtpServer. The latter having a single static property to indicate the email server (smtp host) to use and a public method taking an instance of MailMessage carrying the mail to be delivered.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Internally it is supposed to be a wrapper on the CDO Object and lot of P/Invoke stuff being builtin, the exception stack too can be significantly larger. Quite interestingly, there is one website called &lt;A href="http://www.systemwebmail.com/"&gt;http://www.systemwebmail.com/&lt;/A&gt; which I would like to share with the readers which discusses at length, System.Web.Mail namespace, FAQ etc.&lt;/P&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/766/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/766/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=766</guid>
      <pubDate>Sat, 12 Nov 2005 01:54:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=766</trackback:ping>
    </item>
    <item>
      <title>DOM Inspector</title>
      <description>&lt;H3&gt;DOM Inspector Tool in FireFox&lt;/H3&gt;
&lt;P&gt;Those of you developing extensive JavaScript or UI based web-based applications would have encountered and spent most of the time in creating alert to see if a div exists and document.getElementById (width) etc.&lt;/P&gt;
&lt;P&gt;Just was trying out FireFox (same as Netscape family, I hope).&lt;/P&gt;
&lt;P&gt;It has a real cool tool embedded called &lt;STRONG&gt;&lt;EM&gt;DOMInspector&lt;/EM&gt;&lt;/STRONG&gt;, which aides in inspecting the DOM Structure of the URL that is being viewed.&lt;/P&gt;
&lt;P&gt;Check out FireFox at: &lt;A href="http://www.mozilla.org/products/firefox/"&gt;http://www.mozilla.org/products/firefox/&lt;/A&gt; &lt;/P&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/765/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/765/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=765</guid>
      <pubDate>Sat, 12 Mar 2005 06:39:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=765</trackback:ping>
    </item>
    <item>
      <title>Access to the path containing 'hash.web' is getting denied...</title>
      <description>&lt;H3&gt;Access to the path containing 'hash.web' is getting denied.&lt;/H3&gt;
&lt;P&gt;After installing Visual Studio .NET and F5 a couple of times, I used to get this error frequently. The only resolution was to wait for upto 5 to10 mins or restart system, since a folder in Temporary ASP.NET files containing web.config gets locked up automatically.&lt;/P&gt;
&lt;P&gt;After searching a while in KBs, Forums, I found one closest matching solution, which solved my problem. Just wanted to share with other readers who would also be experiencing this issue. The problem occurs significantly if you touch web.config and ASP.NET has significant memory consumption (as seen in Windows Task Manager)&lt;/P&gt;
&lt;P&gt;There is a service called Indexing Service which runs in the system. During F5, ASP.NET tries to JIT compile the new dll (as my understanding goes) and when simultaneously ASP.NET and Indexing service goes to the specified set of cache files, the deadlock occurs and ASP.NET throws this exception.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solutions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Keep Indexing Service Manual or Stop It&lt;/LI&gt;
&lt;LI&gt;In Indexing Service Preferences, Make C:/Winnt/Microsoft.NET to be excluded or placed in the exclusion catalog so that Indexing Service will not access this location.&lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/764/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/764/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=764</guid>
      <pubDate>Fri, 15 Oct 2004 06:40:00 GMT</pubDate>
      <slash:comments>33</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=764</trackback:ping>
    </item>
    <item>
      <title>Quick Shortcut to Lock Workstation</title>
      <description>&lt;H3&gt;Quick Shortcut to Lock Workstation&lt;/H3&gt;We normally use QuickLaunch bar in System Taskbar for almost any of our tasks. When we want go away from our system, we normally lock the workstation. Just a curious tip. A simple two three lines of code in C# can place a nice application whose shortcut can be placed in QuickLaunch bar to Lock the Workstation. 
&lt;H4&gt;Console Version&lt;/H4&gt;
&lt;P&gt;using System;&lt;BR&gt;using System.Runtime.InteropServices;&lt;BR&gt;using System.Windows.Forms;&lt;/P&gt;
&lt;P&gt;namespace QuickLock&lt;BR&gt;{&lt;/P&gt;
&lt;P&gt;       class MyComputerLock&lt;BR&gt;      {&lt;BR&gt;            [DllImport("user32.dll")]&lt;BR&gt;            public static extern void LockWorkStation();&lt;/P&gt;
&lt;P&gt;             static void Main(String[] args)&lt;BR&gt;            {&lt;BR&gt;                     try&lt;BR&gt;                          {&lt;BR&gt;                                 LockWorkStation();&lt;BR&gt;                          }&lt;BR&gt;                          catch (Exception ee)&lt;BR&gt;                         {&lt;BR&gt;                               MessageBox.Show(ee.Message);&lt;BR&gt;                          }&lt;BR&gt;              }&lt;BR&gt;       }&lt;BR&gt;}&lt;/P&gt;
&lt;P&gt;Alternatively,if you put the code in Windows Form and you can customize the App.ICO to some friendly ICO file which will showup in QuickLaunch bar instead of the old rectangle which shows up for an EXE.&lt;/P&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/763/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/763/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=763</guid>
      <pubDate>Fri, 15 Oct 2004 06:28:00 GMT</pubDate>
      <slash:comments>29</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=763</trackback:ping>
    </item>
    <item>
      <title>Time Synchronizations in Windows Environment</title>
      <description>&lt;H3&gt;Time Synchronizations in Windows&lt;/H3&gt;
&lt;P&gt;Recently one of my components that I was developing was DateTime driven and hence I had to change system time to see its behavior for different periods. The problem is that, you need to be very careful with changed system times, particularly when you checkin the file to SourceSafe, SendMails since a wrong time means total chaos for these systems.&lt;/P&gt;
&lt;P&gt;For these, I choose to have a simple batch file to syncrhonize time with the SourceSafe database itself. It just goes like this:&lt;/P&gt;
&lt;P&gt;net time &lt;A href="http://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comfile://\\mysourcesafeserver"&gt;\\mysourcesafeserver&lt;/A&gt;  /set /y&lt;/P&gt;
&lt;P&gt;net time &lt;A href="http://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comfile://\\mysourcesafeserver"&gt;\\mysourcesafeserver&lt;/A&gt; queries the time on the server&lt;BR&gt;/set sets the time on the localhost to the time on the server (This will wait for a prompt of confirmation from the user, which can be avoided by appending a /y to the command)&lt;/P&gt;
&lt;P&gt;But I have a question. Perhaps if some sysadmin drops by this post, he can put a comment and solve this so that it will be useful to other readers.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;What happens if the logged on user does not have privileges to set time? He is getting Access is denied.&lt;/LI&gt;
&lt;LI&gt;With Windows XP (Time Synchryonization) itself, will the problem in (1) get solved?&lt;/LI&gt;
&lt;LI&gt;To query net time &lt;A href="http://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comfile://\\mysourcesafeserver"&gt;\\mysourcesafeserver&lt;/A&gt; one must be logged on to &lt;A href="http://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comhttp://www.wwwcoder.comfile://\\mysourcesafeserver"&gt;\\mysourcesafeserver&lt;/A&gt; previously either my remembered network connection or previous manual logon? Is there any other solution for this?&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;But I hope the above batch file would be useful to many developers playing with and developing DateTime driven components.&lt;/P&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/762/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/762/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=762</guid>
      <pubDate>Fri, 15 Oct 2004 06:12:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=762</trackback:ping>
    </item>
    <item>
      <title>Protecting EmailAddress on Websites</title>
      <description>&lt;H3&gt;Protecting EmailAddresses on Websites&lt;/H3&gt;
&lt;P&gt;Email addresses like a@b.com (and these patterns)  are sure to invite spammers to get your addresses on to their spam databases. Just found out the following URL, which will help you to protect your email address from being spammed.&lt;/P&gt;&lt;A href="http://automaticlabs.com/products/enkoder"&gt;http://automaticlabs.com/products/enkoder&lt;/A&gt; &lt;A href="http://automaticlabs.com/"&gt;&lt;/A&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/761/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/761/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=761</guid>
      <pubDate>Thu, 14 Oct 2004 05:10:00 GMT</pubDate>
      <slash:comments>4</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=761</trackback:ping>
    </item>
    <item>
      <title>Managing Windows Services (Easy Way)</title>
      <description>&lt;H3&gt;Managing Windows Services (Easy Way)&lt;/H3&gt;
&lt;P&gt;Recently, I had to develop a small piece of application in C# (.NET) and make it to run as a Windows Service. .NET provides rich support for developing and installing application as services like installutil.exe etc. But our old application had left instances of its unsupported windows service option, which I was thinking with fingers crossed on how to remove. &lt;/P&gt;
&lt;P&gt;While searching a bit in Google, I got toknow of this nice tool from Microsoft Windows 2000 ResourceKit called sc.exe, which has good support to even remotely manage services on a different computer. &lt;EM&gt;Of course, you need to have administrative privileges on the system whose Service database you are currently operating on.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Here is some nice document on sc.exe:  &lt;A href="http://support.microsoft.com/?kbid=251192"&gt;http://support.microsoft.com/?kbid=251192&lt;/A&gt;&lt;/P&gt;</description>
      <link>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/760/Default.aspx</link>
      <author>deepak@online.ie</author>
      <comments>http://www.wwwcoder.com/Weblogs/tabid/283/EntryID/760/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.wwwcoder.com/Default.aspx?tabid=283&amp;EntryID=760</guid>
      <pubDate>Thu, 19 Aug 2004 06:14:00 GMT</pubDate>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://www.wwwcoder.com/DesktopModules/Blog/Trackback.aspx?id=760</trackback:ping>
    </item>
  </channel>
</rss>