• Apps,  Coding,  Flashback

    Delete XP – Source Code

    (Flashback Post: March 15,1997) Delete ’97 and subsequent Delete XP has been one of the popular command line utility that I wrote & made available for free! Description: Delete XP is for deleting files from Command Prompt in Windows (Windows 9x and Windows NT 4.0/2000/XP). Unlike, the standard “DEL” command which only deletes the file, Delete XP deletes the files and sends them to the recycle bin. In our opinion, this is what DEL command in the command prompt of Windows should have been!. This was one of my favourite Win32 Console applications that I wrote, since I took enough care in handling correctly the various command-line parameters (and their…

  • Apps,  Flashback

    WhoAmI Utility

    (Flashback Post: February 5,1999) WhoAmI is a utility I wrote and released for free in 10/December/1996. This is a Windows command line program that displays the currently logged in user on a particular Windows Machine, FQDN (Fully Qualified Domain Name of the PC) and how much time has passed since you started this Windows session and the path of Windows Directory. Download the utility from here & full source code from here. Platform:    Microsoft Windows ‘9x, Windows NT 4.0 & Windows 2000 Executable Size:    32K Any Dependent Dll’s:    Nil Development  platform:    Microsoft Visual C++ 6.0 SP1 Description: “Who Am I” displays the 1) Computer Name, 2) Current logged-in User Name,…

  • Coding,  Events,  Rostrum,  Speeches,  தமிழ்

    Counting Letters in an Unicode String

    Today I presented in Tamil Internet 2004 conference held at Singapore, on counting the number of letters/alphabets in a Unicode String. The problem is that if we use the string length functions included in major programming platforms we get only the number of characters based on the storage locations needed. They don’t understand the language and so don’t return letter (எழுத்து) count, instead, they return the count based on the number of Unicode code points. A few months earlier, I had written a quick fix solution in VB.NET to handle this. As a reusable solution to this problem, today I presented a paper in TI2004 with implementations in Microsoft .NET,…

  • Coding

    Find true character length of an Unicode String

    Many times while working in Indic Language web pages, I want to find the true character length of a string. .NET String.length() or its variants from other major programming languages, return character length based on storage space. They don’t follow the language rules, so they are incorrect according to language grammar rules. For example if the string is Tamil ‘வி’ or ‘கொ’, or Hindi ‘मा’, the returned length is ‘2’. Obviously this is incorrect, as per grammar it should be counted as ‘1’ character. To solve this problem, I have come up with this sample Windows Forms (.NET Framework 1.0) application. It uses .NET Frameworks, System.Char.GetUnicodeCategory() method which identifies every character…