devxlogo

The Latest

Using Break and a Label to Exit a Loop

Although it is perfectly okay to use a goto to exit a nested loop, many developers prefer not to use gotos. Another way to exit a complicated, nested block of

Hear a PDF Instead of Reading It

Did you know you can listen to any PDF instead of reading it? It’s possible with Adobe Reader 6.0+. Here’s the short cut: CTRL+SHIFT+B: This allows you to hear the

Printing Color Lines in VB

Have you ever had a problem printing lines in color from VB6 (SP4)? The following code works correctly on a PictureBox, but prints black on the Printer (HP LaserJet and

A Numbers Game to Test Your SQL Skills

rogramming is not only remembering Java classes or the numerous utilities that appear almost every day. It is also the ideas in Donald E. Knuth’s “The Art of Computer Programming”

XLinq Part 1: Classes and Methods

early every .NET application needs to handle data that may reside in a wide range of data sources, from relational databases, to XML, to in-memory or disk-persisted objects. Although .NET

Create Lightweight Spring Plug-Ins—à la Eclipse

nterprise software products always require custom integration work at the customer site, and upgrades are nearly impossible when customers have to modify the core product’s configuration to introduce their customizations.

A Safe Way to Stop a Java Thread

The Thread.stop() method is unsafe and thus deprecated. If the thread being stopped was modifying common data, that common data remains in an inconsistent state. A better way would be

Debug-friendly New and Delete

For better handling of resource leaks, try “marking” the allocation with ancillary information: #include #include #include #include typedef void FDEL(void* p, size_t size);typedef FDEL* PFDEL;class A{ int a; static void

System.Transactions and ADO.NET 2.0

ata is the blood in your system; it sits in its comfortable home of a database, and camps out in the tent of XML, but it deserves to be worked

An Introduction to Mono Development

any .NET developers, accustomed to Microsoft’s Windows-only development tools’ capabilities, are quite surprised when they learn that .NET is platform-independent. But it’s true. You can compile and execute .NET assemblies

High-Noon Showdown at Render Gulch

odern computer hardware and powerful graphics cards, now found in even ‘budget’ systems, support a new level of rapid rendering of more high-level descriptions of objects and dynamic response to

Unit Test Secured EJBs in Production

nit testing, a critical part of the software development process, involves individually testing each unit of code to make sure that it works correctly on its own. Performed at different

Fetching the Last Entered Records in Oracle

There are times that you may need to fetch the last couple of records that you’ve inserted. The exact number can vary. Oracle provides an easy way of retrieving these

Using the Standard Library Algorithms with Arrays

Pointers may be used as iterators when using the standard library algorithms found in . Remember that the start iterator should point to the first element, while the finish iterator

Creating a StAX Filter for XML

This tip creates a StAX filter using the javax.xml.stream.StreamFilter interface. This filter accepts only characters, but you can also set the filter XML to retrieve only elements, attributes, or both:

WCF Essentials—A Developer’s Primer

indows Communication Foundation (WCF) provides a runtime environment for your services, enabling you to expose CLR types as services and to consume services as CLR types. Although in theory you

Work Web Part Magic Inside of ASP.NET

icrosoft released SharePoint to the market back in 2000/2001 and, in doing so, began a shift in perception about how Web applications are built. The change was slow at first

JavaScript Form Validation, the Aspect-Oriented Way

y now you likely have worked with, or at least experimented with, cross-cutting concerns, a core element of Aspect-Oriented Programming (AOP). AOP is an excellent and very compelling approach for

Speeding Up Table Creation Activity

Suppose table A is very large and you want to create table B using create table… as select and want to speed up this activity. You can use the nologging