devxlogo

The Latest

Closing an SSLEngine Connection

This tip shows you how to correctly close a SSLEngine connection. Notice that this is not a simple process, like closing a simple socket! SSLContext context …;SSLEngine engine …;ByteBuffer dummy

Forking and Joining Java to Maximize Multicore Power

f writing software is hard, then writing applications that will take full advantage of the ever-more-prevalent multicore/multi-CPU hardware?without introducing subtle race conditions and consistency errors?is even harder. Numerous solutions have

Lots about Locks

emember the red telephone box, once a familiar sight on the streets of London? That’s a good example of mutually exclusive access to a shared resource, although you probably didn’t

Sesame 3.0 Preview: An Open Source Framework for RDF Data

fter downloading Sesame 3.0-alpha1, the first thing you might notice is that Sesame 3.0 is packaged slightly differently than in 2.x. The awkwardly named sesame-onejar.jar was replaced by sesame-client.jar and

Book Excerpt: Programming in Objective-C 2.0

bjective-C has become the standard programming language for application development on the Mac OS X and iPhone platforms. A powerful?yet simple?object-oriented programming language based on the C programming language, Objective-C

Use GetBetween to Parse a String Between Two Strings

This tips shows how to use GetBetween to parse and extract a string between two strings. GetBetween returns the extracted string, if found. Public Function GetBetween(ByRef sSearch As String, ByRef

Developing a NIO-Based Client

This tip shows you how to develop a New I/O-based client. As you probably know, NIO offers many advantages such as speed and the ability to maintain a large number

An Introduction to jQuery, Part 1

k, I admit it. For many, many years I hated JavaScript. I hated writing JavaScript code, and I hated the pain that goes along with dealing with different browsers using

Turn Twitter Into Your Personal Assistant

icroblogging service Twitter has become a disruptive everyday tool. It is increasingly replacing not only instant messaging clients, but also social bookmarking sites, interest tracking applications, support forums, email, and

Use the Factory Pattern to Facilitate Dynamic Typing

ood old object-oriented programming is still alive and kicking. In many C++ frameworks and applications where inheritance and virtual functions thrive you often need to create a derived object whose

Creating and Using Databases in Android

Database support is the lifeline of every application, big or small. Unless your application deals only with simple data, you need a database system to store your structured data. Android

Nested Functions in C++

Although C++ does not allow nested function declaration, you can simulate it using a structure with a static function: void outer(){ static int v1 = 5; int v2 = 5;

Stop Users from Right-Clicking on Your Web Site

To prevent your users from performing any of the other commands available by right-clicking on a web page in Internet Explorer, simply modify the opening &ltbody&gt tag of your HTML:

Extending Spring Integration Through Channel Adapters

n the past few years, some major Java-related developments have occurred in enterprise integration and messaging solutions. Several open source Java Message Service (JMS) solutions such as OpenMQ and ActiveMQ

Developing Orientation-Aware Android Applications

ost modern, self-respecting mobile operating systems in today’s market support different screen orientations based on the position of the device. Android is no exception. While this feature is often taken

Developing a NIO Server

As you probably know, NIO offers many advantages?like speed and a large number of concurrent connections: import java.io.*;import java.net.*;import java.nio.*;import java.util.*;import java.nio.channels.*;import java.nio.charset.*;public class ServerNIO{ public static void main(String[] args){

Simplify Classic ASP Debugging in VS 2005

Like its predessor, VS 2005 does not allow you to debug classic ASP pages by default. Instead, you have to manually attach the ASP worker process (w3wp.exe). Follow these simple

Integrating Bash with PHP

his article discusses how to install and configure three Bash distributions for Windows: the GNU BASH shell for Windows, the Win-Bash Windows port, and the Cygwin tool. It also demonstrates

Comparing Oracle Query Performance for Faster Applications

he performance of queries in applications is critical. You usually can gain manifold performance improvements by just improving query efficiency, and with IT budgets being squeezed, getting the maximum performance