The Latest

DevX - Software Development Resource

Determine Prime Numbers with XQuery

Did you know you can determine if a number is prime by calling an XQuery query? Here’s the code: &ltprime_numbers&gt { for $a in (1 to 50) return( if(not(some $counter

DevX - Software Development Resource

SQL Server Management Objects: Lessons from the Wild

rior to SQL Server 2005, Microsoft’s SQL Distributed Management Objects (SQL-DMO) offered the most efficient way to manage SQL Server programmatically. SQL-DMO supported a COM-based interface that you could use

DevX - Software Development Resource

Monitoring AWT Events with the AWTEventListener Class

The AWTEventListener class’ sole purpose is to view events. All you have to do is to implement the eventDispatched method. The following application demonstrates how: import java.awt.*;import java.awt.event.*;public class EventTest

DevX - Software Development Resource

Converting Numbers to Column Names in Excel 2007

While converting to Excel 2007, I had to update the column-number-to-string code in my program to handle columns of 703 and above (AAA). I found Yassine Moe’s code and simplified

DevX - Software Development Resource

Checking on Daylight Savings Time

Checking for Daylight Savings Time is one of the most common date checks developers perform. .NET provides an easy method to do this. In .NET 1.1, use the Timezone class’

DevX - Software Development Resource

Introducing XNA Game Studio Express

f you have ever dreamed of being a game developer (honestly, who among us has not toyed with the idea at least a little?), this is your time in the

DevX - Software Development Resource

Testing Tips for When Unit Testing Is Too Hard

echnologies such as the xUnit framework, combined with Maven, BuildBot, or CruiseControl, enable unit testing under continuous integration, which gives developer productivity a huge boost. However, writing true unit tests

DevX - Software Development Resource

iPhone Web Development with Ruby on Rails

pple’s iPhone has taken the nation by storm. An alleged half million moved from the shelves into people’s pockets in the first weekend it went on sale. Safari, the iPhone’s

DevX - Software Development Resource

Coding Options for Building InfoPath Forms

hen you want to build a simple form—something with a set of fields and perhaps a table of repeating fields—it’s easy to pick up InfoPath and bang out a form

DevX - Software Development Resource

Apply Visual Studio Code Analysis to Beef Up Security

ource code reviews and inspections have long been considered economical methods for rooting out functional and design flaws in code even before applications make their way to testing. As security

DevX - Software Development Resource

Book Excerpt: ASP.NET AJAX in Action

ASP.NET AJAX (formerly called Atlas) is a new free framework from Microsoft designed to let developers add Asynchronous JavaScript and XML (AJAX) features to ASP.NET applications easily, simplifying the process

DevX - Software Development Resource

Calling an SAP Function Module from Java

To call an SAP function module from a Java application, you first need SAP JCo (Java Connector); you can download it from SAP’s site, though you need an account to

DevX - Software Development Resource

Insert an XML Schema into an XQuery Query

Use the following code to insert an XML Schema into an XQuery query. The following code assumes that the XML Schema is: file:///C://Data_Local//xml//docs//AirWings_xslt_xmlschema.xsd and the XML file is: file:///C://Data_Local//xml//docs//AirWings_xpath_xslt.xml Import

DevX - Software Development Resource

Show() vs. ShowDialog() in .NET

The form class’ ShowDialog method functions differently than its Show method. Here’s how: ShowDialog‘s returned value can be used to determine how the user closed the form (using the DialogResult

DevX - Software Development Resource

Simplifying RDFa Notation

Resource Description Framework (RDF) is not the world’s most beloved standard. That it is used most often in fairly obscure applications for handling such fundamental concepts as meaning, topicality, and

DevX - Software Development Resource

Using High-resolution Timers

tandard C++ offers a rather limited number of functions for accurate time measurement: clock() gives you a granularity of up to a thousandth of a second at best, and difftime()

DevX - Software Development Resource

A Speed Guide to Virtual Driving in Second Life

n Second Life (SL) users can fly nearly anywhere in superhero style. They can also teleport from one place to another in seconds—without any assistance from any sort of device.

DevX - Software Development Resource

Override Base Methods in a Form

If one class is inheriting from another class, a quick, easy way to find the available overrides is through .NET’s IntelliSense. Simply type “override” in a class and .NET will

DevX - Software Development Resource

JSP and the Introspection Process

The introspection process allows the JSP engine to populate a JavaBean with the values provided by a client through an HTML form. //when the names of the bean properties match

DevX - Software Development Resource

Building a Web Service Powered JSR 168 Financial Portlet

In increasing number of web applications built today use portal technology. A portal is a web application that typically provides services such as personalization, single sign-on, and content aggregation from

DevX - Software Development Resource

Execute a SQL Statement with Variable Parameters

When you need to execute the same SQL statement (in general an UPDATE) multiple times with different parameter values you can use the PrepareStatement method like this: Connection conn=null;PreparedStatement pst=null;String[]