The Latest

DevX

Avoid Sending Truncated Data

There is a common and tricky problem that arises when you’re sending data from an HTML form to the server?the amount of data you can send depends on which method

DevX

Fast Check for 2^N (2 power N) Numbers

To test if an integer is a power of 2 (1,2,4,8,16…256…), use the following code: if (!(x & (x-1)) then … Because 2^N-1 numbers have no common bits with 2^N

DevX

How to Use SavePoint in JDBC

Say Employee_Table has fields like EMP_NO, EMP_NAME, etc. In java, try this: try{ Connection conn =…//opening connection. PreparedStament ps = con.prepareStatement(“Select conn.setAutoCommit(false); Statement stmt = conn.createStatement(); stmt.addBatch( sql 1st insert

DevX

Go From Zero to JSP 2.0 in No Time at All

ava technology has maintained a strong foothold in the Web development world since Java Servlets and JSP hit the scene more than 6 years ago. Java technologies are mature and

DevX

Linux vs. Windows: Choice vs. Usability

uring the recent LinuxWorld conference, Linux proponents loudly celebrated Linux’ increasing importance in the world of software. It’s true that Linux has made great strides in becoming a standard part

DevX

String Manipulation Made Easy with std::string Algorithms

ext processors, spellcheckers, and IDEs are just a few classic examples of applications that need to manipulate strings extensively. Web-oriented applications also make heavy use of strings for generating text,

DevX

FormToIni ActiveX control

This freeware ActiveX control makes it extremely easy to save and load controls’ property values to and from the registry or INI files. Creating a “binding” between a property and

DevX

Continuing Education

have been an actively employed developer for almost 15 years now. I started my career in Oregon as a developer for a small property management company. I later moved to

DevX

Validating Data On Web Forms

alidating the information entered by users is an essential part of developing a professional Web-based user interface. Data validation over the Web is performed in one of two locations: on

DevX

Inheritance Is a Wonderful Thing

etween April 1998 and December 2001, I was granted a 1000-word monthly soapbox on the back page of a competitor’s magazine for Office developers. The chance to rant, complain, chastise,

DevX

Mobile CoDe.NET: Microsoft Mobility 101

obility is one of those fields which everybody knows is a definite part of our future, in 5 to 10 years or so. Think again. Amber steps out of her

DevX

Cryptography the .NET Way

rior to the .NET Framework, programming encryption was sort of an obstacle race. You first had to find the right algorithm, then set up the key, and finally struggle with

DevX

.NET Web Services Security

eb services are all about connecting businesses in a standard and secure manner. For a real-life Web service, security is intrinsic to every facet of operation and no party would

DevX

Using GDI+ in ASP.NET Web Applications, Part II

ast issue’s article, “Using GDI+ in ASP.NET Web Applications, Part 1“, introduced basic concepts for generating images dynamically to use on Web pages. Keep in mind that the fundamental steps

DevX

Defining and Using Custom Attribute Classes in C#

he complex, component-style development that businesses expect out of modern software developers requires greater design flexibility than the design methodologies of the past. Microsoft’s .NET Framework makes extensive use of

DevX

Find an Offset into a Structure

Here’s the code: #define offset(a,b) ((int) (&( ((a*)(0)) -> b))) Step by step, here’s what it does: Type-cast 0, or NULL, into a pointer of type a. So a must

DevX

Use XML to Store Your App Settings in ASP

XML provides many opportunities to share and store data. One of the most common and simple uses of XML is to use it to store data used by your application.

DevX

Windows and Linux: Time for Microsoft to Cede to Coexistence

San Francisco?At a somewhat anemic LinuxWorld 2003 conference in San Francisco, big-corporation Linux supporters showed that Linux has grown up and “gone mainstream,” according to Peter Blackmore, Executive Vice President

DevX

Produce a Hex Dump of the Contents of a URL

This program opens connection with a specified URL and hex-dumps the contents received from an associated input stream. Use this to find out what’s going on with your browser. public