Sections
     
Blog Control Panel
You must be logged in and have permission to create or edit a blog.
     
     
Skip Navigation Links.
     
     
     
Blog Posts
Author: Deepak Kumar Vasudevan Created: 8/28/2006
Quick Tips and Snippets

Clearing IE Cache

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.

There has been a lot of programmatic options we stipulate from our webpages to clear cache like Pragma, Cache-Control directives.

Here comes one solution from Microsoft called ClearCache. Check it out at: http://www.microsoft.com/downloads/details.aspx?familyid=5CBD4659-3B28-4801-8729-05335902CE79&displaylang=en

Developing Applications for the Web is a breeze with Internet Explorer Developer Toolbar...

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.

There had been little tools to this perspective from various vendors like DOMInspector from Mozilla FireFox, MyIE2 had its own Scripting Inspector.

Now you can check out an Internet Explorer Developer Toolbar from Microsoft, which is available from this URL: http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en.

... Read More »

Managing Remote Terminal Sessions -- The Easy Way

Windows 2000 brought in an elegant way of working on remote desktops by the concept of Terminal Services. 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.

Windows XP took this one step ahead with the concept of Remote Desktop by way of RDP protocol. However, it allowed only one user to work on the system, transferring the control appropriately.

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... Read More »

Working with System.Web.Mail namespace...

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.

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 http://www.systemwebmail.com/ which I would like to share with the readers which discusses at length, System.Web.Mail namespace, FAQ etc.

DOM Inspector Tool in FireFox

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.

Just was trying out FireFox (same as Netscape family, I hope).

It has a real cool tool embedded called DOMInspector, which aides in inspecting the DOM Structure of the URL that is being viewed.

Check out FireFox at: http://www.mozilla.org/products/firefox/ 

Access to the path containing 'hash.web' is getting denied. 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.

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)

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.

Solutions:

Keep Indexing Service Manual or Stop... Read More »

Quick Shortcut to Lock WorkstationWe 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. Console Version using System;using System.Runtime.InteropServices;using System.Windows.Forms;

namespace QuickLock{

       class MyComputerLock      {            [DllImport("user32.dll")]            public static extern void LockWorkStation();

             static void Main(String[] args)            {                     try                          {                                 LockWorkStation();                          }                          catch (Exception ee)                         {                               MessageBox.Show(ee.Message);                          }              }       }}

Alternatively,if you put the code in... Read More »

Time Synchronizations in Windows 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.

For these, I choose to have a simple batch file to syncrhonize time with the SourceSafe database itself. It just goes like this:

net time \\mysourcesafeserver  /set /y

net time \\mysourcesafeserver queries the time on the server/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)

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... Read More »

Protecting EmailAddresses on Websites

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.

http://automaticlabs.com/products/enkoder 

Managing Windows Services (Easy Way)

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.

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. Of course, you need to have administrative privileges on the system whose Service database you are currently operating on.

Here is some nice document on sc.exe:  http://support.microsoft.com/?kbid=251192

     
WWWCoder.com Weblogs
Host your weblog here at WWWCoder.com for free. Just sign up for membership and you'll see a link on the left which will allow you to create your own weblog. We do ask that all blogs have a technical theme and be in English.
     
     

Powered by 

 

     
Copyright 20010 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970
Privacy Statement | Terms Of Use