The Latest

DevX - Software Development Resource

Finalize(): Profiles from Afar

have a friend with whom I have a never-ending IM conversation. You know what I mean: We never say “Hello” or “TTYL”. Conversations just gradually flow in and out, as

DevX - Software Development Resource

I Have a Dream

ast month I was corresponding with a CoDe Magazine reader. I’ve had similar conversations numerous times, only this conversation ended with a twist. The author asked: I didn’t receive the

DevX - Software Development Resource

ADO.NET vNext Part 2: Using the Object Services Layer

he first installment of this three-part article series introduced the core concepts of ADO.NET vNext, including the Entity Data Model (EDM), Entity SQL, and the Mapping Provider. It also discussed

DevX - Software Development Resource

Tackling the Conundrums of Constant Expressions

onstant expressions are tricky. Not all of them have an overt const qualifier. Furthermore, in some cases, a const-qualified variable is just a constant, but not a constant expression. These

DevX - Software Development Resource

An Open Source AJAX Comparison Matrix

pen source AJAX frameworks and toolkits have matured to the point where they can handle just about any rich Internet application development task. To provide a reference guide for how

DevX - Software Development Resource

Which AJAX Library Is Right for Me?

o you want to jump into the AJAX (asynchronous JavaScript and XML) development fray, but you don’t want to make the XMLHttpRequest calls directly by writing the XMLHttpRequest code yourself.

DevX - Software Development Resource

Putting AJAX Frameworks to the Test

ot so long ago, developers had to work directly with the XMLHTTPRequest object or use some very rudimentary libraries to get any AJAX work done. When I wrote my first

DevX - Software Development Resource

Build Custom Code Generators in C#

uite simply, code generation involves taking a small amount of input and generating a large amount of code from it. Often the structure of the output is very complicated and

DevX - Software Development Resource

An Easy Way to Find All Open Forms in VB.NET

It’s really simple to determine whether a form is open?simply use My.Application and My.Forms in .NET: Dim frm As Form For Each frm In My.Application.OpenForms If frm Is My.Forms.TheFormINeed Then

DevX - Software Development Resource

Call a Java Method from XQuery

This tip shows you how to develop XQuery queries that may call any other method. The method called in this tip is java.lang.Math.random: declare namespace m=”java:java.lang.Math”;let $r:=m:random()return $r Related Posts

DevX - Software Development Resource

Build an Entity Resolver to Redirect a SAX Parser

This tip shows you how to bulid an entity resolver to “change” a public indentifier into a system identifier. The idea is to override the resolveEntity method of the EntityResolver

DevX - Software Development Resource

When and How to Use Dispose and Finalize in C#

hen the .NET framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it’s no longer referenced by any

DevX - Software Development Resource

Optimize C++ Code with Member Initializers

Calling constructors for the data members of the object of a class results in an overhead process which calls the constructor in the main function. You can reduce this overhead

DevX - Software Development Resource

Changing User Privileges for an Application

If you’ve ever loged out and back into Windows XP to run a program under other user’s privileges, you don’t have to anymore. You can run the program as a

DevX - Software Development Resource

Evaluate XQuery Expressions with Java and SAXON 8

The following tip shows you how to combine Java and SAXON 8 in order to evaluate XQuery expressions. This application presumes that the XQuery expression is in an external file,

DevX - Software Development Resource

Replace All Occurences of Numbers in the Input String

This function replaces all occurences of numbers in the input string with ‘#‘ and returns the replaced string. It recognizes integers, floating point, and negative numbers. It will not replace

DevX - Software Development Resource

Calculate the Angle Between Two Lines

This code shows you how to calculate the angle between two lines using vectors and an inverse cosine function: Public Function getAngleBetweenLinesVect(commonX As Single, commonY As Single, X1 As Single,