devxlogo

The Latest

XML: We Ain’t Seen Nothin’ Yet

ML is a fundamentally simple idea?take bits of content and give them identifying tags?but it has far-reaching effects. In just a few short years, XML’s evolution has sparked an explosion

Sending Data to a Port in UDP Format

The ByteBuffer Class (from the java.nio package) helps you to write data in UDP by converting them to the respective bytes they generally occupy. This is especially helpful when trying

Listing Files in a Directory with Perl

The following code: `ls -t ../../html/indexed | awk {‘print $9’}` Will return an array of files, eg: @files=`ls -t ../../html/indexed | awk {‘print $9’}`; @files is now an array containing

A Container for Pointers to Functions

Many times, you’ll find you need to create a container for pointers to functions. The example below demonstrates the syntax for a vector of pointers to functions. For simplicity’s sake,

J2EE Design Strategies That Boost Performance

J2EE takes the hassle out of distributed programming, but there’s a catch. Although you no longer have to contend with such low-level issues as threading, synchronization, or persistence, you also

Export Crystal Reports to PDF

Use this code when you’re developing Web pages and you need to export Crystal Reports to PDF without creating their own files. The undocument FormatEngine property of ReportDocument class (you

Display a Partial Text File Using FSO

This script reads specific lines of text from any text file and then stores the lines in an array that you can assign to a variable for data display. Related

Introducing ASP.NET 2.0 Master Pages

SP.NET 2.0 introduces a new concept known as Master Pages, in which you create a common base master file that provides a consistent layout for multiple pages in your application.

Creating Usable Page Templates in ASP.NET

ages in Web applications often share common UI components, such as headers, sidebars, and footers. Developers often seek to encapsulate these common components into a page template, which each page

FindFiles – Finding all files with a given filespec

‘ Finding all files with a given filespec into an ArrayList. Optionally scan ‘ also subdirectories of the input dir” Example:’ Dim files As New ArrayList’ FindFiles(files, “D:Articles”, “*.doc”, True)’

Use Lazy Initialization to Conserve Resources

Say you have an object with a property that uses a relatively large amount of resources?and you know the property may never be accessed. Consider waiting to create the property

Remove an Element in a Sorted Array

To remove an element at a given position in a sorted array, shift all the elements above it down one position. void erase(int a[], int& n, int index) { //

Wireless Data Shot: Security and Development

The Evans Wireless Development Survey is a detailed report of extensive, in-depth interviews with almost 500 developers active in wireless application or infrastructure development. It was conducted in March 2003.

Convert from cubic inches to cubic decimeters, and vice versa

‘ Convert from cubic inches to cubic decimeters, and vice versaFunction CubicInchesToCubicCentimeters(ByVal cuInches As Double) As Double Return cuInches * 16.387End FunctionFunction CubicCentimetersToCubicInches(ByVal cuCent As Double) As Double Return cuCent

Convert from square inches to square centimeters, and vice versa

‘ Convert from square inches to square centimeters, and vice versaFunction SquareInchesToSquareCentimeters(ByVal squareInches As Double) As Double Return squareInches * 6.4516End FunctionFunction SquareCentimetersToSquareInches(ByVal squareCentimeters As Double) As _ Double Return

Convert from cubic yards to cubic meters, and vice versa

‘ Convert from cubic yards to cubic meters, and vice versaFunction CubicYardsToCubicMeters(ByVal cuYards As Double) As Double Return cuYards * 0.7646End FunctionFunction CubicMetersToCubicYards(ByVal cuMeters As Double) As Double Return cuMeters

Convert from US gallons to liters, and vice versa

‘ Convert from US gallons to liters, and vice versaFunction USGallonsToLiters(ByVal gallons As Double) As Double Return gallons * 3.785End FunctionFunction LitersToUSGallons(ByVal liters As Double) As Double Return liters /