The Latest

DevX - Software Development Resource

GetGreyScaleImage – Convert a bitmap to greyscale

‘ Convert a bitmap to greyscale – the function returns a new bitmap,’ it does not directly modify the input image.’ Note: requires the GetGreyScale function” Example:’ Dim bmp As

DevX - Software Development Resource

GetGreyScale – Convert a color to greyscale

‘ Convert a color to greyscale’ Example: Me.BackColor = GetGreyScale(Color.Red)Function GetGreyScale(ByVal col As Color) As Color Dim greyValue As Integer = CType(col.R * 0.3 + col.G * 0.59 + col.B

DevX - Software Development Resource

Put Your Sensitive DB2 Data Under Lock and Key

ackers are trying to find some way to get into your database. If you think they’re not, you’re just deluding yourself. The news stories about compromised credit card numbers are

DevX - Software Development Resource

A Technological Sea of Change

t the Professional Developer’s Conference (PDC) in Los Angeles this week, Microsoft’s presentations herald a sea change in application development capabilities. These changes have the potential to cause huge upheavals

DevX - Software Development Resource

Whidbey to Longhorn: PDC a Satisfying Tease

os Angeles?Microsoft rolled out a superabundance of new technology at the Professional Developer’s Conference (PDC) in Los Angles this week?so much new technology that it’s difficult to determine which of

DevX - Software Development Resource

The Eolas Patent: Don’t Be a Victim

y now, most Web developers know that Eolas and the University of California (UC) sued Microsoft over a patent infringement related to the , , and tags used to launch

DevX - Software Development Resource

Send Form Data from Java: A Painless Solution

ending simple GET requests from Java is extremely easy (be it an application or a servlet), but sending multipart forms, like when you upload files, is painful. The former can

DevX - Software Development Resource

ScrambleWords – Scrambling the words of the input string

‘ Scramble the words of the input string’ Note: requires the ArrayShuffle routine” Example:’ Dim text As String = “This is a test string for the ScrambleWords function”‘ Debug.WriteLine(ScrambleWords(text))Function ScrambleWords(ByVal

DevX - Software Development Resource

Creating Container-managed Entity Beans with JBoss

n Entity Bean is an Enterprise JavaBean (EJB) that represents a persistent object in a relational database. JBoss provides two methods of entity bean persistence, Bean Managed Persistence (BMP) and

DevX - Software Development Resource

A VBScript Function that Emulates the VB IIf()

If you’re still using classic ASP, this is a simple little VBScript function that emulates the VB IIf(). It helps in intializing and making your code look a little cleaner.

DevX - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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