devxlogo

The Latest

Build an Embedded Array Language in Java

t’s really not surprising that the first “killer app” in the world of personal computing was the spreadsheet. After all, a table filled with numbers is one of the simplest

Monitoring Technologies Put Developers in an Ethical Hotseat

here is great power today in databases, in technologies that gather and organize information, and in global, nearly-instant communications. And today’s developers understand and apply these powerful technologies in applications

Creating Unnamed Functions with the Lambda Library

A lambda expression enables you to define an unnamed function?directly on the call site of an algorithm. Such unnamed functions are chiefly useful in functional programming, generic libraries, and scientific

Export Data Grid Content to an XML File

Assume that your Data Grid is not associated with any dataset. In the absence of any XML support functions, you can use the RenderControl method to extract the content into

Build Rich Web Applications with OpenLaszlo

penLaszlo, an open source framework sponsored by LaszloSystems, has attracted a significant attention after Earthlink, the second largest Internet Service Provider, announced that it will use OpenLaszlo technology for its

Use the Robot Class for Automatic Keyboard and Mouse Control

This code uses the Robot class to give you automatic keyboard and mouse control. import java.awt.*;import java.awt.event.*;import java.io.IOException;import javax.swing.*;public class RobotDemo extends JFrame implements ActionListener{ //Store Keystrokes in an array

Incrementing Iterators

You can use iterators for a STL set object to loop through the set elements 1 by 1. But did you know you can also increment the iterator by more

Another Way to Get Information About a Table Structure

When working in Query Analyzer, hightlight the table name in your SQL statement, then hit ‘Alt-F1’. Related Posts Antarctica’s rapid rise could alter coastlinesCreating the Hash for Short URLsSurvey: 36%

Disable the Right Click Menu in the Browser

Sometimes you want to restrict users from saving the images on your Web pages. Use the following code to disable the right click menu in the browser: Disable Right Click

Use Java to Extract All the Name-value Pairs from a URL

import java.net.*;import java.io.*;import java.util.*;import java.text.*;//Program to get all the cookies(name/pair values) from the URL passed as parameterpublic class GetCookieFromURL{ public static void main(String args[]) { try{ //create url by pass

When to Use Whole-object Member Variables

While it’s usually best to use pointers for member variables rather than storing them by value, sometimes it’s better to store the member as a whole object, that is, to

Using the CMAB for Enterprise, Client, and User Settings

pplications use many forms of configuration data, storing settings that are used in applications, enterprise, client computers, and user settings. The Configuration Management Application Block (CMAB) is typically used for

A Test Drive of the MySQL Migration Suite

he MySQL Migration Suite facilitates the movement of data from a proprietary database application. This MySQL product suite consists of three tools: MySQL Migration Toolkit, a package capable of reverse

Python + .NET = IronPython

t’s not often you see Microsoft adopting a language from the world of Open Source Software (OSS), but IronPython is just such a project and has gathered a growing following

Easy Web Services with SQL Server 2005 HTTP Endpoints

QL Server 2005’s HTTP/SOAP endpoints provide SQL Server developers with new capabilities for using Web services within SQL Server. It’s worth noting though that Web services aren’t new to SQL

Passing Pointers Instead of Const Reference Parameters

Usually, you pass const reference parameters to functions like this: class OneKind;class AnotherKind;class Example{ public: Example( const OneKind &inParam ); // conversion operator Example( const Example &inOriginal ); // copy

Printing the Contents Displayed in an Applet

Step 1: Draw any graphics objects in the applet as shown below: public void drawDemo(int w, int h, Graphics2D g2) { GeneralPath p = new GeneralPath(GeneralPath.WIND_EVEN_ODD); p.moveTo(w*.2f, h*.25f); // adds