The Latest

DevX

The std::pointer_to_unary_function Template

The Standard Library defines several template adaptors for function pointers. The std::pointer_to_unary_function class template encapsulates a pointer to a single argument function. std::pointer_to_unary_function overloads the () operators so that you

DevX

Initializing a Static Array Member of a Class

You can initialize static arrays member of a class. The initialization must appear at the place of definition, not inside the class body. For example: class A{private: static char vars[2];

DevX

The ## Concatenation Operator

The preprocessor ## operator concatenates macro arguments. For example: #define paste(x,y) x ## y The paste() macro takes two arguments and concatenates them into one. The whitespaces surrounding the ##

DevX

Avoid Heap Fragmentation in Palm OS

Memory is precious in Palm OS, since the total amount of memory available is very small. Dynamic memory allocation is often necessary while building applications in which memory at runtime

DevX

Nested Transactions

You can use the @@TRANCOUNT function to determine whether any open transactions exist and how deeply they are nested.A BEGIN TRANSACTION statement increments @@TRANCOUNT by one, and a ROLLBACK statement

DevX

Lock Timeout!

With the SET LOCK_TIMEOUT option, it is possible to set the maximum amount of time that SQL Server allows a transaction to wait for the release of a blocked resource:

DevX

Caching/Releasing JDBC Connections

It happens quite often that a JDBC connection is declared as the instance-level variable. The actual connection is then obtained at construction time. All methods of the object that need

DevX

Changing Column Types in a Table

Changing column types in a tableSQL Server does not permit you to explicitly change the datatype or length of a column. But there is a trick to get around this.

DevX

Setting Proxy in Java Code

The java.net package contains classes that deal with connections across the network. If there is a direct connection to the Internet via a modem, various classes like the HttpConnection or

DevX

Print a Stack

If you have a line in your code you are trying to debug or you don’t know how you got there, or where you came from (who called it), you

DevX

Creating a Java Application Error Log

This simple class provides you with a mechanism for the creation of a logfile: import java.io.*;public class logfile { private String myFile = Related Posts Placer.ai raises $75M, boosts valuation

DevX

Avoiding Unnecessary Catch Blocks

The result of adding unnecessary catch blocks is code like this, where exceptions are caught and then immediately re-thrown: try { // some code here } catch (Exception e) {

DevX

Retrieve a Parent Directory From a Path

You can retrieve the parent directory from a path by identifying the first and last backslash. The start position for the first backslash should be 3 in order for it

DevX

Registering a DLL

To register your DLL’s, follow these steps:1) In the directory Related Posts Nvidia stock jumps 8.8% after analyst endorsementFederal judge rules Google a monopolyXen Security Issue Prompts Cloud Computing RebootsMatter

DevX

Add Persistence to Your XML Data Islands

n last month’s article, you saw how to display XML data in IE5 through IE’s data island component. This month’s installment focuses on letting users modify that data and, ultimately,

DevX

Sending HTTP Requests from a Wireless J2ME Device

s more and more cellular phones and PDAs begin to merge onto the information superhighway, it becomes increasingly interesting to access Web sites from mobile devices. Since Java was initially

DevX

Judging Java Timeline – 1999

Go to:? pre-1995-1995? 1996? 1997? 1998? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 13 Support for Java in digital TV announced at the Consumer Electronics Show. Jan. 25 Jini

DevX

Judging Java Timeline – 1996

Go to:? pre-1995-1995? 1997? 1998? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 23 JDK 1.0 released. February JavaWorld launches. February Netscape Navigator 2.0 browser includes Java. JavaBeans announced.

DevX

Judging Java Timeline – 1997

Go to:? pre-1995-1995? 1996? 1998? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 11 – JavaBeans JDK released. Feb. 18 Java JDK 1.1 ships. Feb. 28 Java 1.1 support

DevX

Judging Java Timeline – 2000-2001

Go to:? pre-1995-1995? 1996? 1997? 1998? 1999 = mouseover explanation = pop-up sidebar Feb. 8 – Sun submits next versions of J2EE and J2SE to JCP. Feb. 29 – Java

DevX

Judging Java Timeline Pre-1995

/********************************************************************************Copyright (C) 1999 Thomas BrattliThis script is made by and copyrighted to Thomas Brattli at www.bratta.comVisit for more great scripts. This may be used freely as long as this msg

DevX

Judging Java Timeline – 1998

Go to:? pre-1995-1995? 1996? 1997? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 20 – JDK 1.1 cumulative downloads top 2 million, says Sun. March JFC ships with “Swing”.

DevX

More Useful Form-Building Routines

ast month’s column contained some ASP routines that made the task of building a form easy and elegant. This month I’ll extend the concept by showing you how to build

DevX

The VarHelper Add-in

This is a simple addin which scans your code files and enumerates all the variables it finds, telling you where they are used and if there is any problem (dead