devxlogo

The Latest

Consuming XML Web Services in iPhone Applications

Communicating with the outside world is one of the ways to make your iPhone applications interesting and useful. This is especially true today where they are so many web services

POJO-Based Solutions for LDAP Access: One Good, One Better

y keeping each class focused on a single responsibility, plain old Java object (POJO)-based application development improves attributes such as readability, testability, and maintainability, which increases overall software quality. Nevertheless,

Top Five Touch UI-Related Design Guidelines

s the old saying goes, “The world is changing before your very eyes.” Actually, right now it should really be “the world is changing before your very fingers.” The touch

Add an Image Command Field to a GridView at Runtime in ASP.NET

It’s relatively easy to add an Image Command Field to a GridView programmatically. Here’s how: // in C#if (!Page.IsPostBack){ CommandField field = new CommandField(); field.ButtonType = ButtonType.Image; field.SelectImageUrl = “~/Images/MyPic.GIF”;

The Best Way to Hide a Column in a DataGrid

Typically, developers hide a DataGrid column by getting the index of the column to be hidden, and then hiding it in the ItemCreated event as follows: e.Item.Cells[myColumnIndex].Visible = false; That

The Key XForms Enhancements in Version 1.1

even seems to be the magic number for the W3C. Seven years after releasing XSLT 1.0 (which also debuted XPath), they followed up with XPath 2.0, XSLT 2.0, and XQuery

Static Class Values Are Valid Even Without a Main Method

Static fields have class-level scope, so they can execute even without a main() method. Here’s an example: public class Static{ static{System.out.println(“I will print without main()”);}} Related Posts John Romero on

Using Iterators in PHP

his article shows you how to use the most important iterator classes: ArrayIterator, DirectoryIterator, FilterIterator, and so forth, found in the Standard PHP Library (SPL), and how to integrate SPL

Use Array Predicates to Simplify Searches

Array predicates are a not-so-well-known feature introduced with the .NET Framework 2.0 that let you retrieve specific items or perform operations on all items of an array. For example, a

You Can’t Teach Expertise

Over the past several weeks, I’ve had the obligatory parental experience of teaching a teenager to drive. This can be a nerve-wracking process as the new driver learns the mechanics

Overcoming the “Most Vexing Parse” Problem

he C++ literature uses the phrase “most vexing parse” to denote one of the dark syntactic alleys of C++. It’s vexing because programmers usually don’t even know it exists; they

Generate Metatags for ASP.NET Pages Dynamically

You’re probably already aware of the benefits of metatags, which provide metadata about an HTML document. Metatags aren’t rendered in the browser, but search engines use them to categorize web

What If Oracle OpenWorld Did Swallow JavaOne?

Related Posts AI entrepreneur raises $13.8 million via LinkedInTech workers transforming layoffs into dialogues onlineExecute Code On-Demand with Azure FunctionsOperations on dates and timesChange default Ctril+Click behaviour in Word to

What If Oracle OpenWorld Did Swallow JavaOne?

At the opening keynote of this week’s Oracle OpenWorld Conference, Sun Chairman and Co-founder Scott McNealy called the father of Java, James Gosling, on stage to again reiterate Oracle’s dedication

Using Tree(Map,Set) in Collections

Here’s the problem: You can’t put objects that don’t implement the Comparable interface inside a Tree(Map/Set); if you do, your code won’t even compile. The underlying cause is simple; TreeMap

Building a Simple GridPanel in Ext JS

hen implementing GridPanels, I typically start by configuring the DataStore. The reason for this is because the configuration of the ColumnModel is directly related to the configuration of the DataStore.

WPF Wonders: Building Control Templates

PF’s XAML language defines the controls that make up a user interface. Typically, some kind of container control such as a Grid or StackPanel fills the window. In turn, that

Project Lombok: Put an End to Java Verbosity

n my never-ending search for interesting new ideas in the IT world, every now and then I come across something truly innovative and brilliant. Such was the case when I

Portable Functions to Check for NaN and Infinity

Currently, there are no portable C/C++ functions to check for NaN (not a number) and infinity (positive or negative). Unix provides isnan() and isinf(), while Microsoft’s implementation uses _isnan() and