<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>LD Express</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/lavanyadeepak/Atom.aspx" />
    <subtitle type="html">Quick Problem Solving Tutorials, Code Snippets and Tips in Enterprise Programming</subtitle>
    <id>http://geekswithblogs.net/lavanyadeepak/Default.aspx</id>
    <author>
        <name>lavanyadeepak</name>
        <uri>http://geekswithblogs.net/lavanyadeepak/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2011-09-09T20:19:23Z</updated>
    <entry>
        <title>Compiler Warnings -- What is the trick about them?</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2011/09/09/compiler-warnings----what-is-the-trick-about-them.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2011/09/09/compiler-warnings----what-is-the-trick-about-them.aspx</id>
        <published>2011-09-09T20:19:23-04:00:00</published>
        <updated>2011-09-09T20:19:23Z</updated>
        <content type="html">&lt;p&gt;Be it a C# Compiler or a PHP page we all have seen errors and warnings. What is the difference between them?&lt;/p&gt;
&lt;p&gt;Error: A failing condition which prevents the compiler from proceeding further.&lt;/p&gt;
&lt;p&gt;Warning: A condition which the compiler can tolerate and gracefully proceed. There might be little performance and/or objective degradation.&lt;/p&gt;
&lt;p&gt;In the strictest sense I would recommend turning on the preference 'Treat Warnings As Errors' that way you would ensure that your code is very clean. However there might be situations where a warning can be safely ignored besides you can avoid the warning along with the fact save it for the future.&lt;/p&gt;
&lt;p&gt;Say for example you do not want to bother about an exception variable in the catch block? The quickest shortcut is that you can have something like &lt;/p&gt;
&lt;p&gt;catch&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;But what happens in future you want to examine the exception? Then you have to modify the code. The other way around would be&lt;/p&gt;
&lt;p&gt;catch (Exception exVariable)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;   Debug.WriteLine (exVariable.Message);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;For Visual studio this message gets written into Debug Listener and since the variable is being accessed it does not throw a warning message as well.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/146819.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/146819.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/146819.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/146819.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Necessity to lock your workstation</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2011/09/09/necessity-to-lock-your-workstation.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2011/09/09/necessity-to-lock-your-workstation.aspx</id>
        <published>2011-09-09T20:11:04-04:00:00</published>
        <updated>2011-09-09T20:12:58Z</updated>
        <content type="html">&lt;p&gt;Most of our computers have sophisticated desktop locking tricks. Even in the older style Windows 98 we did have 'Password protected screensavers'. Why were they for? When we step away of computers there is a dire need to protect the data and the programs that are running in our computers from unauthorized access and prying eyes.   &lt;/p&gt;
&lt;p&gt;Windows provide a quick shortcut Windows + L to lock the workstation. So you save a few milli-seconds from using CTRL+ALT+DELETE and choosing Lock Workstation/Lock Computer (as it is called differently in different versions of Windows)  Nevertheless we still feel lazy to use the two keys to lock the workstation and we get victimized by the minimum ('shoulder surfing'). &lt;/p&gt;
&lt;p&gt;I hence thought I would write a small C# code which you can have it in the Quick Launch bar. When you are moving away from the computer just click it and it will lock your workstation.  The simple C# code is as below:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;using System;&lt;br /&gt;
using System.Diagnostics;&lt;br /&gt;
using System.Runtime.InteropServices;&lt;br /&gt;
&lt;br /&gt;
namespace WindowsLock&lt;br /&gt;
{&lt;br /&gt;
    class Program&lt;br /&gt;
    {&lt;br /&gt;
&lt;br /&gt;
        [DllImport("User32.Dll", EntryPoint = "LockWorkStation")]&lt;br /&gt;
        [return: MarshalAs(UnmanagedType.Bool)]&lt;br /&gt;
        private static extern bool LockWorkStation();&lt;br /&gt;
&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
                LockWorkStation();&lt;br /&gt;
                Environment.Exit(0);&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception LockWorkstationException)&lt;br /&gt;
            {&lt;br /&gt;
                Debug.WriteLine(LockWorkstationException.Message);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/p&gt;
&lt;br /&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/146818.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/146818.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/146818.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/146818.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Personalized URLs through Bit.Ly</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/10/30/personalized-urls-through-bit.ly.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/10/30/personalized-urls-through-bit.ly.aspx</id>
        <published>2010-10-30T13:39:58-04:00:00</published>
        <updated>2010-10-30T13:39:58Z</updated>
        <content type="html">&lt;p&gt;We have a lot of URL shorteners like Goo.Gl and Bit.Ly. Though each of the URL shorteners give a straight forward URL shortening right from their homepages without even in need to create an account it would be wise to have an account with them and create URLs through the same. We stand to gain a lot of advantages through the same. A few of them are:&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Tracking and review of the URLs that are created by us&lt;/li&gt;    &lt;li&gt;Click Statistics&lt;/li&gt;    &lt;li&gt;In future if we want to retire an URL it would be easier for us to locate and achieve the same.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Bit.Ly goes one step further besides giving personalized accounts. They provide application keys for free so that we can programmatically create the URLs through our account.  Also the API documentation for creating Bit.Ly URLs can be found &lt;a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/142526.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/142526.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/142526.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/142526.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Live Writer has problems downloading the WYSIWYG theme on LD Express</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/10/30/live-writer-has-problems-downloading-the-wysiwyg-theme-on-ld.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/10/30/live-writer-has-problems-downloading-the-wysiwyg-theme-on-ld.aspx</id>
        <published>2010-10-30T12:57:35-04:00:00</published>
        <updated>2010-10-30T12:57:35Z</updated>
        <content type="html">&lt;p&gt;I was trying to configure Live Writer to publish post on my LD Express. Whilst the initial configuration of blog was fine, the test post and theme download fails. Live Writer KB indicates that community server and similar blog platforms has a delay between post and time it takes for the blog platform to publish the same. I would try to bring the same to the attention of support team to see if this can be fixed and solve.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/142525.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/142525.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/142525.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/142525.aspx</trackback:ping>
    </entry>
    <entry>
        <title>A Good .NET Quiz ...</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/04/24/a-good-.net-quiz.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/04/24/a-good-.net-quiz.aspx</id>
        <published>2010-04-24T16:53:38-04:00:00</published>
        <updated>2010-04-24T16:53:38Z</updated>
        <content type="html">&lt;p&gt;&lt;strong&gt;A Good .NET Quiz ...&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Whilst casually surfing today afternoon I came across a good .NET quiz in one of the indian software company website. It is rather a general technology quiz than just a .NET quiz because it also contains options for the following technologies.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;.NET&lt;/li&gt;
    &lt;li&gt;PHP&lt;/li&gt;
    &lt;li&gt;Javascript&lt;/li&gt;
    &lt;li&gt;MySql&lt;/li&gt;
    &lt;li&gt;Testing&lt;/li&gt;
    &lt;li&gt;QTP&lt;/li&gt;
    &lt;li&gt;English&lt;/li&gt;
    &lt;li&gt;Aptitude&lt;/li&gt;
    &lt;li&gt;General Knowledge&lt;/li&gt;
    &lt;li&gt;Science&lt;/li&gt;
    &lt;li&gt;HTML&lt;/li&gt;
    &lt;li&gt;CSS&lt;/li&gt;
    &lt;li&gt;All&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It also has the following levels for the Quiz:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;Easy&lt;/li&gt;
    &lt;li&gt;Medium&lt;/li&gt;
    &lt;li&gt;Hard&lt;/li&gt;
    &lt;li&gt;All&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The URL of the quiz is as below: &lt;a href="http://www.qualitypointtech.net/quiz/listing_sub_level.php"&gt;http://www.qualitypointtech.net/quiz/listing_sub_level.php&lt;/a&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/139495.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/139495.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/139495.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/139495.aspx</trackback:ping>
    </entry>
    <entry>
        <title>An alternative way to request read reciepts</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/an-alternative-way-to-request-read-reciepts.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/an-alternative-way-to-request-read-reciepts.aspx</id>
        <published>2010-04-07T16:26:42-04:00:00</published>
        <updated>2010-04-07T16:26:42Z</updated>
        <content type="html">&lt;p&gt;&lt;strong&gt;An alternative way to request read reciepts&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Sometime or other we use messaging namespaces like System.Net.Mail or System.Web.Mail to send emails from our applications. When we would need to include headers to request delivery or return reciepts (often called as &lt;u&gt;&lt;strong&gt;M&lt;/strong&gt;&lt;/u&gt;essage &lt;u&gt;&lt;strong&gt;D&lt;/strong&gt;&lt;/u&gt;isposition &lt;u&gt;&lt;strong&gt;N&lt;/strong&gt;&lt;/u&gt;otifications) we lock ourselves to the limitation that not all email servers/email clients can satisfy this. We can enhance this border a little now, thanks to a new innovation I discovered from &lt;a href="http://www.gawab.com"&gt;Gawab&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It embeds a small invisible image of 1x1 dimension and the image source reads as recieptimg.php?id=2323425324. When this image is requested by the web browser or email client, the serverside handler does a smart mapping based on the ID to indicate that the message was read. We call them as '&lt;a href="http://en.wikipedia.org/wiki/Web_bugs"&gt;Web Bugs&lt;/a&gt;'. But wait it is not a fool proof solution since spammers misuse this technique to confirm activeness of an email address and most of the email clients suppress inline images for security reasons.&lt;/p&gt;
&lt;p&gt;I just thought anyway would share this observation for the benefit of others.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/139143.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/139143.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/139143.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/139143.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Source Browsing in FireFox</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/source-browsing-in-firefox.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/source-browsing-in-firefox.aspx</id>
        <published>2010-04-07T16:21:36-04:00:00</published>
        <updated>2010-04-07T16:21:36Z</updated>
        <content type="html">&lt;p&gt;&lt;strong&gt;Source Browsing in FireFox&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Just casually observed this a few minutes back with my Mozilla Firefox 3.6.3. When you do a view source of any  page in Internet Explorer it just renders as editable inoperative HTML. However in Firefox the hyperlinks are shown clickable and active. When you click on any hyperlink the most obvious and expected output would be that the target page would appear in one of the new tab in the parent browser. However the View Source window refreshed with the HTML source of the new page.&lt;/p&gt;
&lt;p&gt;I believe this gesture of Firefox would help us to take a journey back into &lt;a href="http://lynx.isc.org/"&gt;Lynx Text Browsing&lt;/a&gt; in a way.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/139142.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/139142.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/139142.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/139142.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Online Syntax Colorizer</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/online-syntax-colorizer.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/online-syntax-colorizer.aspx</id>
        <published>2010-04-07T13:48:25-04:00:00</published>
        <updated>2010-04-07T13:48:25Z</updated>
        <content type="html">&lt;p&gt;&lt;strong&gt;Online Syntax Colorizer&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For those of us who share code snippets along with articles the most daunting problem would be to preserve the syntax colorizations. There are a few ways to manage through this additional requirements:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;Tweak and point the color picker in the article textearea.&lt;/li&gt;
    &lt;li&gt;Import the code to a word processor and then copy the code. However, the word processor would unnecessarily swell the contents with too much of formatting contents.&lt;/li&gt;
    &lt;li&gt;Quick Online Colorizer:&lt;a href="http://tohtml.com/"&gt; http://tohtml.com/&lt;/a&gt; (This supports a lot of languages including autodetection). I would also recommend if GWB could link to this website and auto-colorize the code when we paste it in our articles.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/139138.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/139138.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/139138.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/139138.aspx</trackback:ping>
    </entry>
    <entry>
        <title>A Gentle .NET touch to Unix Touch</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/a-gentle-.net-touch-to-unix-touch.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/04/07/a-gentle-.net-touch-to-unix-touch.aspx</id>
        <published>2010-04-07T13:44:58-04:00:00</published>
        <updated>2010-04-07T13:44:58Z</updated>
        <content type="html">&lt;p&gt;&lt;strong&gt;A Gentle .NET touch to Unix Touch&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Unix world has an elegant utility called 'touch' which would modify the timestamp of the file whose path is being passed an argument to  it. Unfortunately, we don't have a quick and direct such tool in Windows domain. However, just a few lines of code in C# can fill this gap to embrace and rejuvenate any file in the file system, subject to access ACL restrictions with the current timestamp.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;pre style="color: rgb(0, 0, 0); background: none repeat scroll 0% 0% rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;using&lt;/span&gt; System&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;using&lt;/span&gt; System&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Collections&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Generic&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;using&lt;/span&gt; System&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Linq&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;using&lt;/span&gt; System&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Text&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;using&lt;/span&gt; System&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;IO&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;namespace&lt;/span&gt; LavanyaDeepak&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Utilities
&lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
    &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;class&lt;/span&gt; Touch
    &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
        &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;static&lt;/span&gt; &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;void&lt;/span&gt; Main&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;string&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;]&lt;/span&gt; args&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;
        &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;args&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Length &lt;span style="color: rgb(128, 128, 48);"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color: rgb(0, 140, 0);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                Console&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;WriteLine&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;Please specify the path of the file to operate upon.&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
                &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;return&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;

            &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;!&lt;/span&gt;File&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Exists&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;args&lt;span style="color: rgb(128, 128, 48);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                
                &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;try&lt;/span&gt;
                &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                    FileAttributes objFileAttributes &lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt; File&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;GetAttributes&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;args&lt;span style="color: rgb(128, 128, 48);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
                    &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;objFileAttributes &amp;amp; FileAttributes&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Directory&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;=&lt;/span&gt; FileAttributes&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Directory&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;
                    &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                        Console&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;WriteLine&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;The input was not a regular file.&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
                        &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;return&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
                    &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
                &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
                &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;catch&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt; &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;

                Console&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;WriteLine&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;The file does not seem to be exist.&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
                &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;return&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
                
            &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;

            &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;try&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                File&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;SetLastWriteTime&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;args&lt;span style="color: rgb(128, 128, 48);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 140, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;,&lt;/span&gt; DateTime&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Now&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
                Console&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;WriteLine&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;The touch completed successfully&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;catch&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;System&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;UnauthorizedAccessException exUnauthException&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                Console&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;WriteLine&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;Unable to touch file. Access is denied. The security manager responded: &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;+&lt;/span&gt; exUnauthException&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Message&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;catch&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;IOException exFileAccessException&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                Console&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;WriteLine&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;Unable to touch file. The IO interface failed to complete request and responded: &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;+&lt;/span&gt; exFileAccessException&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Message&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 0); font-weight: bold;"&gt;catch&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;Exception exGenericException&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;{&lt;/span&gt;
                Console&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;WriteLine&lt;span style="color: rgb(128, 128, 48);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 230);"&gt;Unable to touch file. An internal error occured. The details are: &lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;"&lt;/span&gt; &lt;span style="color: rgb(128, 128, 48);"&gt;+&lt;/span&gt; exGenericException&lt;span style="color: rgb(128, 128, 48);"&gt;.&lt;/span&gt;Message&lt;span style="color: rgb(128, 128, 48);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(128, 0, 128);"&gt;;&lt;/span&gt;
            &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
        &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
    &lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
&lt;span style="color: rgb(128, 0, 128);"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/139137.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/139137.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/139137.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/139137.aspx</trackback:ping>
    </entry>
    <entry>
        <title>GWB -- Little More Interesting Info</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/lavanyadeepak/archive/2010/04/06/gwb----little-more-interesting-info.aspx" />
        <id>http://geekswithblogs.net/lavanyadeepak/archive/2010/04/06/gwb----little-more-interesting-info.aspx</id>
        <published>2010-04-06T17:09:43-04:00:00</published>
        <updated>2010-04-06T17:09:43Z</updated>
        <content type="html">&lt;p&gt;&lt;strong&gt;GWB -- Little More Interesting Info&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Whilst writing the post on '&lt;a href="http://geekswithblogs.net/lavanyadeepak/archive/2010/04/06/warming-up-with-gwb.aspx"&gt;Warming with GWB&lt;/a&gt;', I just recalled another historic entity often shortly known as GWB. It is in fact 'GWBasic' which we I started programming about fifteen years back way back in 1994 to 1995.   GWBASIC was actually a version of BASIC in the lines of BASICA from Compaq.  Eventually it was absorbed into QBasic and QuickBasic suite of products.&lt;/p&gt;
&lt;p&gt;Just thought I would share this recollection too in this context.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://geekswithblogs.net/lavanyadeepak/aggbug/139121.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/lavanyadeepak/comments/139121.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/lavanyadeepak/comments/commentRss/139121.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/lavanyadeepak/services/trackbacks/139121.aspx</trackback:ping>
    </entry>
</feed>
