The Latest

DevX - Software Development Resource

A Hard Lesson Learned: Have a Data Recovery Plan

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

DevX - Software Development Resource

IBM Director Gives Expert Advice for Contingency Planning

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,

DevX - Software Development Resource

Old Hacks Never Die, They Just Mutate

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

DevX - Software Development Resource

Implement a Generic Custom Validation Control

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

DevX - Software Development Resource

Enable the Tab Key in the TextArea

The following script works fine in IE4 or above: Enable Tab in Textarea Related Posts How To Block Text Messages On AndroidLA Clean Energy Goals Hinge on LeadershipMeet The Next

DevX - Software Development Resource

A New Way to Deal with Popup Windows

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

DevX - Software Development Resource

Flipping a Picture in HTML

Using this code, you can flip any picture in HTML vertically as well as horizontally: Related Posts Serialize an Object to a JSON StringNew Electric Rebates for Low-Income DriversSamsung Unveils

DevX - Software Development Resource

Create Temporary Tables in MS SQL Server 7.0

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

DevX - Software Development Resource

Check Which Files are Included in a Backup Device

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

DevX - Software Development Resource

Control the Scope of a Singleton in an Application Server

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

DevX - Software Development Resource

Handy NT Administrative Shorcut

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

DevX - Software Development Resource

How to Invoke an Applet Packaged as a JAR File

Just use the following code in your html page and your applet will be executed. Related Posts Find the Number of Processors AvailableImporting Data from Excel into SQL ServerUnderstanding CopyOnWriteArrayListImport

DevX - Software Development Resource

How to Read Standard Output from Another Program

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

DevX - Software Development Resource

How to Increase Environment Space

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

DevX - Software Development Resource

Locale-aware string conversions

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

DevX - Software Development Resource

Weekday names in any language

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: ‘

DevX - Software Development Resource

Trimming strings

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

DevX - Software Development Resource

Iterating over the characters in a string

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

DevX - Software Development Resource

An Improved escape() Function in Javascript

Currently Javascript’s escape() has some limitations. For instance, if you want to pass a+b not a b, you want to get the literal “+” in the server side. Javascript’s escape

DevX - Software Development Resource

LPad Function in JavaScript

function LPad(ContentToSize,PadLength,PadChar) { var PaddedString=ContentToSize.toString(); for(i=ContentToSize.length+1;I

DevX - Software Development Resource

Using the IP Address in the Select Statement

IP addresses logically are four numbers. While they are stored in the DB, they are usually held in only one field. I have encountered two types of such storage:1) VARCHAR(15)’;

DevX - Software Development Resource

More Complex String Manipulations

Let’s say you have a table like this: ID test– —-1 Hello1 Mr.1 Gates2 I2 am2 the best And you want a result group by each ID: 1 Hello Mr.