devxlogo

The Latest

Using StAX to Clone an XML Document

To clone an XML document at runtime, use the StAX XMLEventReader and XMLEventWriter classes like this: //AirWings_order.xml – the original XML in this example//AirWings_order_clone.xml – the clone of AirWings_order.xmlimport javax.xml.stream.*;import

Override a Child Class’ Parent Method

C# seems to fail in an advanced use of polymorphism, as demonstrated by the following code: class AReturn {}class BReturn : AReturn {}class A{ public virtual AReturn GetReturn() {…}}class B{

Gain Control of Your Desktop with WindowMover

indowMover is a little project originally created for a study that involved tracking the gaze of subjects when presented with various images. The study used a special eye-tracker device that

Tracking Events Using a Semi-Structured Repository

ave you ever used a multi-user system and found yourself wondering, “How did this get changed?” or, “Who created this and why?” Helping your users track the system changes and

The Mobile Road: Looking Back, Looking Forward

’ve been doing mobile software development of one sort or another for time out of mind. Some of the first serious programs I wrote were for an HP-41CX calculator for

Start Your Engines: Mobile Application Development

oftware engineering is all about choices. Choices have to be weighed: performance vs. scalability, complexity vs. flexibility, pros vs. cons, and good vs. poor design. In mobile application development, we

The Mobile Platform Cheat Sheet

hen choosing the technology and target platform for your mobile project or application, you will find several possibilities. There are several kinds of mobile phone platforms available and most have

Android Mobility: Open Source Hits the Road

ven prior to Google’s splashy announcement about Android late last year, rumors were swirling about the so-called “gPhone.” Now that programmers have had several months to experiment with early releases

SharePoint Applied—Stsadm Is Your Friend

n this article, I’ll introduce you to my best friend in SharePoint land, Stsadm.exe. No, this article is not a reference on Stsadm, neither is it an introduction to SharePoint.

Expecting Multi-Core Miracles

Here’s the average developer’s newest dilemma: Intel and other CPU manufacturers have moved full steam ahead into creating multi-core chips to speed up computing. These chips increase processing speed not

C++ 0x – The inside joke…

You have to be truly geeky to get it, but do you know what the inside joke is with the proposed C++ 0x standard? Simply that it has been labeled

Advanced Matrix Reporting Techniques

atrix components are great for visualizing data that you might normally export to Excel, or in a Pivot Table (year-over-year analysis is a good example). But if an analyst wants

Grid Enable Your Java Applications with GridGain

llowing developers to leverage distributed computing resources has long been a goal of emerging technologies, including most recently RPC, CORBA, and RMI. However, these distributed computing technologies require considerable initial

Ten Pitfalls of Enterprise Ontology Management

here are many common problems that occur when corporations expand beyond their initial ontologies and start to build multiple ontologies that must remain consistent. Here is a list of the

OpenID and Rails: Authentication 2.0

penID is a service, framework, and protocol that is revolutionizing the realm of user authentication and identity services. Started in 2004 by Brad Fitzpatrick, OpenID is now a mature framework

C++0x Automates Type Deduction with auto

nother C++0x feature is going to simplify the way you write C++ code. Instead of tediously writing the type of a variable when you declare it, a C++0x compiler will

Load an Image Using the JAI API

This tip shows you how to use the JAI API to load an image named myimage.jpg in just three lines of code: ParameterBlock parameterBlock=new ParameterBlock();parameterBlock.add(“myimage.jpg”);myimage=JAI.create(“fileload”,parameterBlock);… Related Posts Hybrid Cloud Computing

Extending the Existing CLR Type

Yes, you read that right. With .NET 3.0, you can extend any existing CLR type by adding one or more public methods to it?without recompiling the library. These new members

Going Live with a Grails-Powered Blog

he DevX article Build Your First Grails Project: A Grails-Powered Blog showed how easy it is to create a purely functional web application using Grails. This article expands on the

goal testing

Scalability and Goal Testing for Developers

Often developers are tasked with not only developing functional code but also with ensuring that the code they develop scales well and performs in the application environment. The tests that