Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
The GetFiles and GetDirectories methods of the System.IO.Directory class can take an argument containing wildcards, to filter the result: ‘ Display all the *.txt files in C:DOCS.Dim fname As StringFor
In Visual Basic .NET you read a text file by first opening a StreamReader on it, and then iterating over all its lines until its Peek method returns -1: Dim
The simplest way to create a generic deep copy routine, that is a procedure that can create a true, distinct copy of an object and all its dependent object, is
An object that want to support cloning should implement the ICloneable interface. This interface exposes only one method, Clone, which returns a copy of the object. The ICloneable specifics don’t
Visual Basic 6’s MkDir command, as well as the DOS MD command, can create only one subdirectory and fail if any subdirectory on the specified path doesn’t exist: ‘ This
It was and it is still easy to debug MTS components written on Visual C++ version 5 and higher. Debugging components written on Visual Basic 5 is possible under VC
The key to surviving an IT-disabling disaster is a business continuity strategy, a set of policies and procedures for reacting to and recovering from such an event, and the main
owards the end of an otherwise typical business day in September, Kurt Sundling, Technical Operations Manager for Monaco Coach Corporation, got word that the Monaco staff’s attempts to access Help
Don DeMarco, IBM Director s companies become more and more dependent on information, the business-continuity tolerance for information loss becomes less and less, particularly in e-business, says Don DeMarco, Director,
evX recently received an article submission that purported to show how to hack the Passport security model. Much excitement among the editorial staff over the prospect of reporting a vulnerability
This Tip applies to Microsoft .NET Framework. using System; using System.Text.RegularExpressions; public class CustomValidations { public CustomValidations() { } /// /// This method is used for validating _the string and
The following script works fine in IE4 or above: Enable Tab in Textarea
When creating a popup window from a hyperlink or button, I often get an error because I try to do it myself and the author has hard coded the same
A common task on Web pages is to select a subset of a given set of items. Depending on the page design and concept, you can use checkboxes or multiple
Using this code, you can flip any picture in HTML vertically as well as horizontally:
Sometimes a user wants to create a temporary table in the database during the execution of a stored procedure or sequence of SQL queries. To create a temporary table that
Using the sysdatabases and Case statements, you can obtain a detailed report of all the databases on your server. Sysdatabases contains one row for each database. It is Compatible with
In SQL Server, if you just want to check which data- and logfiles are included in a database backup device, you can use ‘RESTORE FILELISTONLY FROM xyz’ (with xyz representing
Here is the code defining a singleton class: public class SingletonClass{ private static int id = 0; private static SingletonClass sclass = null; private SingletonClass(){} public SingletonClass getInstance(){ if(sclass ==null
Recently, I came up with an easy way to quickly administer a single server from a click away on my desktop.When you need to check a share resource, share permissions
Just use the following code in your html page and your applet will be executed.
In the java.lang package there exists a class called “Runtime”. With this class it is possible to get the runtimethread of your Java program.The exec method lets you create a
You can get the amount of free memory in your JVM as follows: Runtime rt = Runtime.getRuntime();long free = rt.freeMemory(); You can also get the total memory using the totalMemory()
The default environment that DOS uses to hold settings and DOS variables is small–only 256 bytes. Some programs can cause DOS to run out of space in this area by
am frequently asked the following question,”Should I be using stateless or stateful components for scalability?” My answer is invariably an emphatic “Yes!” What I mean by this, is that both
You can use the usual UCase, LCase, and StrConv functions to convert a string to upper, lower, and titlecase (e.g. “This Is A Title”). However, VB.NET offers is much more
The System.Globalization.CultureInfo object exposes two properties, NumberFormat and DateTimeFormat, which return information about how numbers and dates are formatted according to a given locale. For example, consider this code: ‘
Visual Basic .NET strings expose three trim methods: TrimStart, TrimEnd, and Trim – which trim one or more characters from the beginning, the end, or both the beginning and end
Visual Basic .NET strings support the For Each statement, so you can iterate over each individual character as follows: Dim s As String = “ABCDE”Dim c As CharFor Each c
A .NET application can optimize string management by maintaining an internal pool of string values known as intern pool. If the value being assigned to a string variable coincides with










