devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Recursively Delete Directories in Java

In Java, a readable, writable directory should be empty before an attempt is made to remove it. The following code recursively empties a directory, and its sub-directories, and then removes

Resize Applets in Browsers

With applets, sometimes the browser acts as the applet’s frame. This prevents the user from mistaking the browser window for a separate application and closing it. With this approach, the

Textfield With Limited Length Of Characters

Sometimes it is useful to have a text field, for which you can specify a max number of characters. The following class give you just that: import java.awt.*; import java.awt.event.*;

Add Background Image to JTable

You can easily add a background image to swing’s JTable. The following code shows you how: Note that the image scrolls with the table. public class BackgroundTable { public static

Get Rid Of Unreadable Characters

Line separators are dependent on the operating system. This may cause some annoyance when opening files created on another operating system. For example, if you are using Microsoft Windows, and

Provide Data Tip For JTable Columns

Cell data in a table may exceed the width of its column. It is a good, user-friendly, idea to have ToolTips appear in a cell showing the entire cell data

Java’s Division and Modulus Operations

In Java you take the remainder with the modulus (%) operator, whereby the sign of the remainder follows the dividend, not the divisor. So (+5 % -2) will be, to

CSS Properties: Display vs. Visibility

Browsers Targeted: Internet Explorer 3+ It’s fairly easy to confuse the Cascading Style Sheets (CSS) properties display and visibility, because it would seem that they do much the same thing.

Informix and ODBC

Question: I have an Informix database on a remote server and I’m trying to perform ODBC from my client machine. I have installed the client products on my Windows 98

Finding Sqexplain.out

Question: I can’t find the sqexplain.out file. Where is it? Answer: In UNIX systems, this file is usually placed in the directory from which you called the dbaccess or other

Am I in the IDE?

Question: Is there a simple test that can determine whether a VB program is running in the IDE or as a compiled exe? Answer: Yes there is a very simple

Set Your Pages’ Content Ratings in IIS

Content ratings help your users?especially families?know what type of content your site provides. Microsoft Internet Information Server (IIS) 4 lets you add content ratings to any page. Try this: In

Turn Off Sessions in Active Server Pages

Session variables are a boon to ASP developers because they allow you to maintain variables from one page to another. However, the use of session tracking may make Internet Information

Correctly Declaring Global Objects

Although the use of global variables is not recommended in general, sometimes it’s unavoidable. When using a global variable or object, never instantiate it in a header file because the

Case-insensitive Comparison of Strings

Class std::string’s overloaded operator == performs a case-sensitive comparison. This means that the following strings are not identical when compared using ==: string s1 = “Jellylorum”; string s2 = “JellyLorum”;

Static Initialization and Dynamic Initialization

C++ distinguishes between two initialization types for objects with static storage duration (global objects are an example of objects having static storage). Static initialization consists of either zero-initialization or initialization

Avoid Redundant Parentheses in Object Instantiation

Although the following statements are semantically equivalent string * p = new string(); //with empty parentheses string * p = new string; //no parentheses The second one is preferable for

Updating the End Date Field

Question: I have written the following SQL statement and want to update only the end date field (saaphy01.n5ajdd) in one file. How can I tell it in my query to

Double-Count in a SQL Query

Question: I want to create two count-variables in one SQL query based on GROUP BY signum_chef. Is that possible? I’ve tried something like this: SELECT DISTINCT signum_chef, Antal=(SELECT COUNT (*)),

Exchange Client vs. Outlook

Question: What is the difference between Microsoft Exchange and Outlook? We only use Exchange on our workstations, but I have an icon on my desktop for Outlook. Please explain. Answer:

Error with Type M Field

Question: I’m trying to access a particular field via an ASP. I presently have a table displaying multiple fields. Everything works fine, but as soon as I try to add

Using the Implements Statement

any people ask about how the Implements statement is used in Visual Basic. It is actually quite useful and allows you to build more flexible applications. Here’s what it is

Using Metadata to Solve Complex Problems

s someone who genuinely likes SQL and relational databases, I get a particular kick out of seeing how database engines use relational tables themselves to store their own metadata. As

Generating XML from ADO Recordsets

n an ideal world, the process of communicating between XML and the database world would be completely seamless and transparent?you point an XML DOM at a database, say Update or

Recurses! Foiled Again!

ne of the terms that strikes terror into the hearts of Computer Science 101 students is recursion. Until you are able to think recursion through, the implications of it are

Turn HTML Form Input Into Java Objects

avaServer Pages can make Web Application development a lot simpler.When coupled with JavaBeans, turning HTML form input into Javaobjects is a lot faster to implement. If you identify the mostcommon

Track changes in system time and display resolution

Whenever the system time or the display resolution changes, Windows sends all the top-level windows (forms, in VB jargon) the WM_TIMECHANGE or WM_DISPLAYCHANGE message, respectively. Therefore, you can easily determine