The Latest

DevX

Create a Statically Initialized List of Objects

A group of objects can be organized into arrays or collections. Arrays are nice because you can statically initialize them, but collections have far more functionality. Using this tip you

DevX

A Better Version of Bubble Sort

This version of bubble sort stops when there are no more exchanges and it also sorts a smaller range each time. void bubbleSort3(int x[], int n) { bool exchanges; do

DevX

Format Color for HTML

This function, which converts a color value into a string suitable for HTML, formats an RGB color value, palette index, or system color constant. You accomplish this by breaking out

DevX

Copy One Array to Another Without Using Loops or Conditions

Here’s the code the usage of arraycopy: public class testarrcopy{ public static void main(String arg[]) { //Array of any object can be user defined object String source[] ={“one”,”two”,”thr”,”four”,”five”,”six”,”sev”,”eight”,”nine”,”ten”}; //Array of

DevX

Change-proof Your Flat-file Processing with XML

very new enterprise system built today has to integrate with and support existing systems. Since the earliest days of programming, passing data between systems via flat files has been a

DevX

Time Conversion GMT to Current Time and Back

When you’re working in several time zones, you need to save date values in a common format?the most obvious one being GMT. The following stored procedures store datetime in GMT

DevX

Take Control of .NET Using Custom Attributes

ET has more than 100 attributes that are used to control XML serialization, Web services, COM interoperability, and more. For example, XmlElementAttribute is used to control the element name and

DevX

Jess Inventor Opines About Rule Engines and Java

bout a year ago, I was looking for Java tools to develop expert systems in Java, particularly expert system shells for rule-based architectures. I stumbled upon the Java Expert System

DevX

Designing Complex Interfaces in VB

arge scale applications should have a consistent look and feel, a consistent interface, and a menu structure that reflects the basic operations of the application. Typically, each form’s menu contains

DevX

Title Case Function for SQL Server

As a SQL Server DBA, I realized that SQL Server has no function for Title Case, like the “initcap” function in Oracle. So I’ve made one that capitalizes the first

DevX

Explore J2EE Antipatterns

ature provides us with an infinite variety ofpatterns, from those found in living things: in the foliage of plants,for example, or in the structure of plants themselves, and inanimals?to those

DevX

Build a Dynamic Web Serving Platform with FreeBSD

ooking for a secure solution for hosting dynamic Web pages but don’t have much money to implement it? Use FreeBSD and its ports collection to install Apache-modSSL, MySQL, and PHP.

DevX

Scripted Configuration for SQL Server 2000

QL Server is a great RDMS application, but its installation and configuration options leave the seasoned SQL user crying out for more. Upon install, SQL Server 2000’s options are limited

DevX

Put Modern Code Generation to Work

asn’t it George Jetson who went to “work” each day and pushed a few buttons to generate all his deliverables without lifting a physical or mental finger? Ah, would that

DevX

Clean Up Your Schema for SOAP

f you’ve built a library of schemas, you might want to reuse them for new applications. If you already have a data model for an internal purchase order, as you

DevX

TransposeMatrix – Evaluate the transposed matrix

‘ Evaluate the transposed matrix’ A transposed matrix is the array you get when you “rotate” a bi-dimensional ‘ array” Example’ Dim arr(,) As Double = {{0.0, 0.1, 0.2}, {1.0,

DevX

Open Source—Programming in the New Unix Community

n this book, five years in the making, the author encapsulates three decades of unwritten, hard-won software engineering wisdom. Using examples from leading open-source projects, he shows UNIX and Linux

DevX

Have a Little Respect for SQL Databases

‘ve often heard it said that database management systems are archaic technology and that XML and object oriented databases are the wave of the future. I’m no curmudgeon; I like

DevX

Using typedef to Curb Miscreant Code

typedef declaration, or a typedef for short, creates a new name for an existing type. As such, it is often used in writing more aesthetic and readable code. Aesthetics not

DevX

What I’ve Learned: Untangling Strings

How many times do you find yourself writing code like this to display multiple lines of text using the MessageBox object, or in a TextBox? Imports System.IODim i As IntegerDim