devxlogo

The Latest

Prevent Stale DB Connections with the Latest OC4J

hen building a large-scale J2EE/Java EE application, developers have a few options for establishing database (DB) connectivity from EJBs, including handling it transparently using a J2EE data source, or encapsulating

Avoid DLL Hell with Registration-free COM

eusable, dynamically linked components are generally a good idea, because they allow you to leverage code and save memory rather than reinvent the wheel. But with thousands of developers leveraging

Using auto_ptr

Suppose that a function normally allocates memory for an object, uses it, and then deallocates the memory. But if the function exits before reaching the end, either because of a

Placing Multiple Headers in a DataTable

A DataTable can only handle one header for each column. The workaround for this is to use two tables. Generate the first table at the same time as the DataTable

Book Excerpt: The Java Tutorial, Fourth Edition

he Java Tutorial is hands-on Java programming language guide that is perfect for any developer looking for a proven path to proficiency with Java SE. This popular tutorial “from the

Use XSL-FO to Obtain a Page Number

This tip shows you how to use the fo:page-number and fo:page-number-citation elements to insert page numbers. To insert page numbers in your page’s footer, use fo:static-content: Page [] of []

Retrieving PC or System Information

To retrieve PC or System information (things like the operating system, domain name, logical drives, IP address, or environment variables), use the System class and the Environment class. List of

Optimizing OpenGL ES Applications for Brew

ualcomm’s support for OpenGL ES makes 3D graphics development for today’s wireless terminals much easier than ever before. With an interface that’s standard across a wide variety of platforms including

Beautify Your UIs with Perfect Pen and Brush Control

f you’ve done any Windows graphics programming at all, you know about Pens and Brushes. Pens determine the characteristics of lines, such as color and thickness. Brushes determine the characteristics

Determine Whether a Value is Numeric

JavaScript has a built-in function called isNAN that can be used to check if a value is numeric or not. The isNan function returns true if the value is not

Range Checking Vectors

This standard library vector can be used like an array. For example: std::vector v(2); // vector of size 2v[0] = 5;v[1] = v[0]; If you’re using an out-of-range index, the

Rename a File Using Java

Java allows you to rename a file by using the renameTo(File file) method, in the java.io.File class. First, obtain a reference to the file that you want to rename. Second,

Date Formats for the DATE Data Type

SQL Server offers two date formats for the DATE data type that are considered safe in situations where computer settings differ or when SET DATEFORMAT or SET LANGUAGE are used.

Detect Web Form Field Changes in ASP.NET

nowing whether a group of form fields have changed and which fields have changed can be beneficial in many ASP.NET Web applications. ASP.NET triggers a “value change” event at the

Compilation and Deployment in ASP.NET 2.0

t’s crucial to understand the changes to the compilation process from ASP.NET 1.x to ASP.NET 2.0 so you can debug your Web applications effectively. This article shows you how compilation

Heard on .NET Rocks!: Kimberly Tripp on SQL Server

am the host of “.NET Rocks!”, an Internet audio talk show for .NET developers online at www.dotnetrocks.com and msdn.microsoft.com/dotnetrocks. My co-host Richard Campbell and I interview the movers and shakers

Visual Studio 2005 … That Legacy Software!

dmittedly, I’m excited about the many new technologies coming out of Microsoft. So excited that I can’t even decide what to play with first! I wrote about this in a

Wasting Energy and Rotating Things

‘m guessing that there’s someone out there (there has to be at least one) who cares how the home theater turned out. (For some of the details, check out the