The Latest

DevX - Software Development Resource

Speed Up Your AJAX-based Apps with JSON

SON stands for JavaScript Object Notation and is a lightweight data-interchange format. Because it is text-based it is easy for humans to read and write, and it has a regular

DevX - Software Development Resource

Displaying a Local Image in a WebBrowser Control

Instead of using: WebBrowser1.navigate “c:image.gif” Use this: WebBrowser1.navigate “about:” Related Posts Go, Big Data Languages Becoming More Popular, Says IEEEBest Ways to Manage User Facing UIs with Agile PracticesExecute Code

DevX - Software Development Resource

Compatible Stylesheets with xsl:fallback

The following code is an example of how to use the xsl:fallback element to achieve full compatibility between XSLT different versions. Imagine that some future 5.0 version of XSLT implements

DevX - Software Development Resource

Determine Your Network Interfaces and IP Names

Use this to determine the names of your network interfaces and IPs. Of course, it can be used only for machines that have more than one network interface. import java.io.*;import

DevX - Software Development Resource

Compress Binary Messages Using SQL

inary data is natural for computers. Everything running on the computer’s physical layer, in the registers, ALU, memory, and so on, is just a result of manipulating a set of

DevX - Software Development Resource

JUnit Testing Using Java ME JUnit Frameworks

Unit tests have become a staple part of most Java Standard Edition (SE) and Enterprise Edition (EE) applications?especially those that espouse test-driven development. Kent Beck and Eric Gamma’s original Smalltalk

DevX - Software Development Resource

Disable the Standard Window Close (X) Button

This code disables the standard Window Close (X) button on the upper right corner of Windows forms: Private Const SC_CLOSE As Integer = &HF060Private Const MF_GRAYED As Integer = &H1

DevX - Software Development Resource

Using the unparsed-entity-uri XSLT Function

This tip shows how to insert an image into the result-tree of an XSLT transformation using the unparsed-entity-uri function. Suppose you have this element: And an unparsed entity such as

DevX - Software Development Resource

Using Complex Numbers

The C++ standard library can handle complex numbers. Complex numbers may be used by including . The class std::complex is defined as a template, allowing complex numbers to use different

DevX - Software Development Resource

Using the Logger to Trace JDBC Driver Managers and Drivers

Both JDBC drivers and the DriverManager use the PrintWriter for logging/tracing. Using java.util.Logger as your logging/tracing tool allows you to take advantage of the Logging framework. Create an adapter class

DevX - Software Development Resource

Create a SAXSource with InputSource and XMLReader

One way to create a SAXSource is to use a SAX InputSource and an XMLReader object. The transformer, ContentHandler, calls the XMLReader.parse(InputSource IS) method. Here’s an example: … try{ //get

DevX - Software Development Resource

Object Functions in Use

An object function is a regular C++ object whose class defines the () operator. An object with a () operator can be called like a function: CFoo foo; // just

DevX - Software Development Resource

Using Multiline Strings in .NET Resource Files

Displaying strings from .NET resource files may be a puzzle if the strings include escape sequences. For example, take the newline (linefeed) character. Suppose you want to display a hardcoded

DevX - Software Development Resource

Introducing Domain-specific Languages

oftware Factories are one of today’s new buzzwords in IT. This Microsoft initiative is likely to change the way that developers build software in the near future. The Software Factories

DevX - Software Development Resource

Decorate Your Code with Astonishing Attributes

hen I first saw attributes in Visual Studio .NET, I thought they were some sort of oddity Microsoft had dragged in from Java, C++, or perhaps the Delta Quadrant. They

DevX - Software Development Resource

Read the First Line of a Text File

This code shows you how to use the instance methods from the FileReader and BufferedReader classes with a Xalan 2 processor to read the first line from a text file.

DevX - Software Development Resource

Retrieve Totals from a Dataset Without Looping

Have you ever looped through the entire dataset to get the totals you need to put in the footer? The DataTable.Compute method eliminates this hassle by retrieving commonly performed arithemetic