devxlogo

The Latest

Determine the Direction of Stack Growth

A simple way to determine the direction of stack growth is to compare the address of a function parameter with the address of a local variable in the function. Of

Create Your Own Exception

Here’s an example of how to create an exception. You can extend this example as needed for your own applications. The important principle is the exeption’s mechanism, not its subject:

Ubuntu Eye for the Debian Guy: Running Linux on Linux

ometimes you can stumble upon interesting discovers while actually looking for something else. That happened to me when I decided to try another Linux distribution besides my favorite one: Debian.

What’s New in Visual Basic 9.0? Part 1

ith the release of Visual Studio 2008, Microsoft has also updated the VB language to its latest version, 9.0. In VB 9.0, there are several key language enhancements that have

Email All the Exceptions Occurring in an Application

The code below demonstrates a quick way to email all the exceptions that occur in an application: protected void Application_Error(Object sender, EventArgs e) { Exception ex = Server.GetLastError(); MailMessage msgMail

Passing SAX Events to a FOP Processor

This tip shows a Java application that can be used to pass SAX events to a FOP processor. It uses the javax.xml.parsers.SAXParser class: In demo document: C:Data_LocalxmldocsAirWings_fop.foOut demo document: C:Data_LocalxmldocsAirWings_pdf_sax.pdf*///FOPimport

Animate Images Along a Path in Web Pages

Use the following steps to rotate the images in your web page: Open Google Image Search. Type, for example, the word “rose” in the search field. The relusts page should

Building Executive Dashboards with Google Chart

xecutive dashboards are attractive business tools that, if properly structured, typically provide the following information and data to executive decision-makers: Summary information focused on strategic decision-making Information organized for performance

Build a Shared Clipboard Utility in Python

his article presents the Python shared clipboard—a little utility that allows different machines connected over a LAN to share the contents of their clipboards. While building it, you might learn

Tricks to Improve Your Brew Handset Debugging

lthough on-target debugging is supported on many Brew-enabled handsets, you probably (paradoxically) spend most of your time debugging on older handsets that don’t have on-target debugging at all. Of course,

Use Xerces-J to Obtain a Serialized DOM Tree

Suppose you need to serialize a DOM tree, with the result being an XML document. Xerces-J allows you to specify a maximum line length and an indent value. Here’s an

Quickly Navigate VS 2005 IDE’s HTML Editor

You can spend a lot of time perusing your ASP.NET pages in HTML view?oftentimes, the amount of HTML makes it difficult to locate little details. But the Visual Studio 2005

Obtain Information About Table Columns in Microsoft SQL Server

To obtain information about table columns in Microsoft SQL Server, use the INFORMATION_SCHEMA.COLUMNS view: SELECT COLUMN_NAME,columnproperty(OBJECT_ID(TABLE_NAME), COLUMN_NAME, ‘IsIdentity’) as IsIdentity,ORDINAL_POSITION, IS_NULLABLE, DATA_TYPE, CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION, COLLATION_NAME, CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME

How To Create and Apply Image Filters in PHP

ost likely, the first time you heard about image filters was when you had to edit your vacation pictures to remove the “red eye” effect or an undesirable face. For

Book Excerpt: Exploring IBM SOA Technology & Practice

ervice-oriented architecture (SOA) is rapidly becoming popular as an approach for developing business applications that more effectively produce business value. Organizations adopting SOA often find that the most difficult part

Use Specialty Arrays to Accelerate Your Code

was surfing the web the other day, looking for Visual Basic questions to answer, when I stumbled across an old FAQ that explained why Visual Basic no longer has arrays

Obtain an Application’s Current Execution Path

An easy way to identify the current execution path is by using the AppDomain.CurrentDomain.BaseDirectory property, which identifies the current assembly’s execution path. This property works well for both Windows and

Put an XPath Expression into a Java Application

Inserting an XPath Expression into a Java Application can be very useful if you need to develop a Java application that evaluates a simple XPath expression. Just a copy/paste your

Sending Clipboard Data via Email

Suppose you’ve just copied something to your clipboard. Want to send somebody an email containing that clipboard data? Just press CTRL+V in outlook. This opens a new Window with the

Design for Extensibility

oday’s customers demand easier-to-modify and more flexible applications than ever before. In this article, I will show you how to design applications with extensibility points so that they will grow