devxlogo

The Latest

Implement a Link Using XSL

Let’s say your XML looks like this: default.aspx?ID=13 Now, you need to transform this tag via XSL to the HTML tag: . The following XSL will do the trick: new

Create a Robust Document Management System with Oracle Text

f you need a way to search through various documents with differing formats (PDF, Word documents, PowerPoint presentations, Excel spreadsheets)?including Web content?use Oracle Text. Oracle Text has a powerful text-search

Extending Eclipse with Helpful Views

s a developer, one of the most important tools at your disposal is your IDE. As a Java developer, there are several IDEs available?both commercial and open source?that are each

Build a Client Application to Access a UDDI Registry

n the first article in this series, you saw how the Universal Description, Discovery, and Integration (UDDI) specification and protocol work together to define messages, application programming interfaces (APIs), and

Count the Number of Occurrences of a String Within a String

The select statement below takes the name “george” and finds how many occurrences of “ge” appear within it. select (length(‘george’) – length (replace(‘george’,’ge’,”))) / length(‘ge’) countfrom dual/ COUNT———- 2 Using

Look Up a DataSource Object in Your Web Server

This code demonstrates how to look up a DataSource object in your Web server using JNDI Lookup. import javax.sql.DataSource;import java.util.Hashtable;import javax.naming.InitialContext;public void findDatasource() { // Initializing DataSource object DataSource dataSource

Sort a Collection of Objects

Suppose you have objects of type MyClass. Further assume that you have a collection (named myCollection) containing objects of type MyClass. To sort this collection, follow these steps: MyClass must

Track Process Runtime for Perl Scripts

For any script that takes more than just a few seconds to run, it’s always a good idea to track the runtime itself. This is especially useful in the development

Power Python: Do More with Less Code

hat’s Power Python, you ask? It’s the effective use of Python language features to get a lot of work done in fewer lines of code. The lambda, reduce, filter, map,

Analysis Services Comparison: SQL 2000 vs. SQL 2005

any SQL Server developers eagerly anticipate the long-awaited release of SQL Server 2005, formerly code-named “Yukon.” Major goals for Business Intelligence (BI) in the 2005 release are better integration of

Turning Our Backs on Beauty?

ast month, Computer Research Associates released their annual Taulbee Survey (of North America’s computer science programs. According to their numbers, enrollment declined nearly 20 percent between 2002 and 2003. Predictably,

How to Use an XPath on a DataSet

This small snippet shows how to use a XPath on a DataSet. Here are the used classes: DataRowDataSetXmlDataDocumentXmlNodeListXmlNode Here’s the XML file: One Three Four Two Finally, here’s the code:

Enforce Custom Password Policies in Windows

icrosoft Windows allows you to define various password policy rules. Specifically, it allows you to enable the “Password must meet complexity requirements” setting using the Policy Editor. This validates user

Code Less and Do More with Extender Controls

n our previous article “Put a 24-hour Lockdown on Your .NET UIs,” we discussed various ways to augment user interfaces to interpose underlying business logic and data engine security constraints.

A SQL Statement with the Resultset Flopped

I got a request from a developer the other day to produce a SQL statement with the resultset flopped. In other words, he wanted the rows to appear as columns