February 13, 2001

Understanding IIS Isolation Levels

Internet Information Server introduced the notion “Isolation Level”, which is also present in IIS4 under a different name. IIS5 supports three isolation levels, that you can set from the Home Directory tab of the site’s Properties dialog:Low (IIS Process): ASP pages run in INetInfo.Exe, the main IIS process, therefore they

Using Precompiled Headers

Many compilers have a special switch for precompiled headers. A precompiled header is a binary file containing intermediate code that is the result of preprocessing and compiling an ordinary header file. A precompiled header is created the first time the compiler processes an ordinary header file and from then on,

Accessing a Private Data Member from a Different Object

Different objects of the same class can access each other’s members, even if these members are private. For example: class A{ int n;public: void f(A* p) {p->n=0;}// another object’s private member!};int main(){A a1,a2;a1.f(&a2); // a1 changes a2’s n} Typically, this coding style should be avoided. However, you should be aware

Comma Separated Expressions in Function Calls

Can you tell the difference between the following function calls? f(a,b);g((a,b)); // how many arguments are being passed to g? In the first example, the function f() is called with two arguments: a and b. In the second example, the extra pair of parentheses indicates that the innermost expression is

What is a NaN?

Due to hardware limitations and the finite nature of computer arithmetic, certain numeric values cannot be represented properly. These values include infinity, negative infinity, and so on. The limits of floating point arithmetic also cause certain bit patterns to be meaningless or illegal. Such values are collectively known as NaN

Retrieving Drive Names

To retrieve drive names from a system, use the static method listRoots in java.io.File package. It will return the all-available drive present in the system. This method will be useful when customizing applications to perform Input Output operations. The listRoots method returns an array of File Objects. import java.io.File;class Drive{

Using Addbatch and Executebatch

If you insert/update/delete multiple times to the database, you canimprove performance by using the addbatch and executebatch methods of statement objects. One drawback about using this method is that it only works for JDBC 2.0. Tip: Statement stmt = con.getStatement( );stmt.addBatch( sql statment );stmt.addBatch( sql statment );stmt.addBatch( sql statment );stmt.addBatch(

No more posts to show