The Latest

DevX - Software Development Resource

XML Data-Binding Powers Up in ASP.NET 2.0

ML data is generally used to represent semi-structured or hierarchal data. Using XML documents as your data source allows you to receive XML documents from other sources and format the

DevX - Software Development Resource

Determine Whether a String is a base64encoded

This function returns TRUE if the string is a base64encoded. Otherwise, it returns FALSE. ‘AUTHOR: KEYUR KALARIA’DATE: JULY 24, 2004’VERY USEFUL FUNCTION AND COULD BE HANDY IF YOUR WORKING AROUND

DevX - Software Development Resource

Disable Inheritance

Use this code to disable inheritance: class A;class Lock { friend class A;private: Lock() {}};class A : virtual public Lock { // …public: A() {} A(int t) {}}; Now, if

DevX - Software Development Resource

Passing a Variable Number of Arguments in a Method

A method can take variable number of arguments. Method overloading is handy when the number of variations is finite?meaning that there is a small number of variations in the arguments

DevX - Software Development Resource

Java Dynamic Networking with Jini Technology, Part 1

ini technology is an open architecture that enables Java developers to build distributed systems that are highly adaptive to change. As the complexities associated with building and managing service-based systems

DevX - Software Development Resource

JLCA Ports Legacy Java Code to .NET

ava and .NET have each enjoyed a period in the sun as the hottest programming technology. Java is still a big favorite in enterprises—and justifiably so: Java runtime environments exist

DevX - Software Development Resource

Getting the Most Out of XML with XPath

ML has now taken over the representation and storage of structured data in a textual format. No longer do we even have a need for new text formats because XML

DevX - Software Development Resource

Use the <map> Library to Create Associative Containers

elational databases, scientific apps, and Web-based systems often need a vector-like container whose index can be of any type, not necessarily int. Such containers are known as associative containers or

DevX - Software Development Resource

Create a LAMP Search Engine Using Multithreaded Perl

ntil recently, people argued that Perl did not have stable multithreaded capabilities. This article presents a Perl application for which using multithreading capabilities makes sense: a Web crawler with all

DevX - Software Development Resource

Open the Mobile Gateway with SMS and MMS Messaging

Short Messaging Service (SMS) services are becoming near-ubiquitous. Who among us has not used their cellphone to check the latest cricket score or to get the latest news? One very

DevX - Software Development Resource

Author of FuzzyJess Talks About AI and Java

ver May 17-20, 2004, I had the pleasure of attending the 17th International Conference on Industrial and Engineering Applications of Artificial Intelligence and Expert Systems (IEA/AIE 2004) in Ottawa, Ontario,

DevX - Software Development Resource

Simplify Java XML Parsing with Jakarta Digester

he Digester framework is a high-level interface that parses an XML stream and populates the data into Java objects based on rules provided to the Digester component. Among the other

DevX - Software Development Resource

Regular Expression Validation in XSD

The following code performs powerful Date type validation in XSD. It validates date fields with timestamp (optional) in yyyyMMdd hh:MM:ss.ffffff format. If your XML file contains the element ValueDate, the

DevX - Software Development Resource

ADS Enables “Hands Off” SQL Server Installs

icrosoft’s free server tool, ADS (Automated Deployment Services), provides system administrators with a consistent way to deploy the Windows OS, but what about RDBMS deployment? Does setting up SQL Server

DevX - Software Development Resource

Using std::vectors Efficiently

Whenever possible, use C++ arrays. Array indexing has an order of magnitude of O(1). This means that it is very fast. However, if the size of the array is not

DevX - Software Development Resource

How To Add New Rows to a Filtered DataView

Suppose you have a “view” into a set of records. One column of the data contains a country ID, (such as “US”): DataView myDataView = new DataView(myTable); myDataView.RowFilter = “country

DevX - Software Development Resource

Cache Your Repeated Calls to the Database

Use this code to cache your repeated calls to the database: Dim mLookup As Scripting.DictionaryDim cn As ADODB.ConnectionEnum enumLookup ltCustomers ltVendors ltSalespeopleEnd EnumPrivate Sub Form_Load() Dim rstest As ADODB.Recordset Set

DevX - Software Development Resource

Use join() to Check if a Thread Has Finished

Suppose you start a thread and you want to wait for that thread to finish before you continue processing. One way is to keep checking if the thread has finished