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

Resizing Images on the Fly

Question: I know that with DHTML, it is possible to resize images using the Onmousover event handler, but the example shown on the Microsoft Dev site involves basically switching between

Changing screen resolution

Question: Is it possible to change the screen resolution to 640*480 before my project runs and change it back when the program exits. Or is there another way of rearanging

Visual J++ 1.1 and Java 1.1

Question: I am using MS Visual J++ 1.1 1997 and it doesn’tcontain the java.util.Calendar class and java.text.* packages that you reference in the answer to another question. How do I

Offscreen buffer

Question: I want to create an offscreen buffer in a Java application, but I don’t know how. Answer: You can create an offscreen buffer by usingthe createImage(int,int) in java.awt.Component.This is

Converting String to double

Question: How can I convert a String to a double and backagain? Answer: You can use the java.text.NumberFormat classto convert a String to a double and back again.Use the parse(String)

Always Use Relative Paths

No matter what language you are developing in, or whether you are developing programs or Web pages, never hard code paths to files that include drive letter distinctions (i.e. N:Images).

SQL Feature to Integrate with COM Objects

SQL Server has a very powerful, but often overlooked, feature to integrate with COM objects. SQL itself can create COM objects from within Triggers or Stored Procedures, apply property values

Utilize Version Control Mechanisms

If you are using SQL server, consider utilizing version control mechanisms for your triggers and stored procedures. Many times I have heard people wondering about changes to a procedure or

Scheduled Walkthroughs and Reviews

Successful development groups implement regularly scheduled walkthroughs and reviews. I have found three common types: Code Walkthrough – At various points during the development life cycle, the developer or project

Bandwidth-Friendly Separator Bars

If you want to create good-looking separator bars but aren’t satisfied withsolid colors or the download time of fancy graphical bars, try this easy andbandwidth-friendly method. Create a gradient image

Avoid URL Root Name Dependencies

To avoid having to use a specific root name in your URL references, put allof your files except the default file (and global.asa if you’re using ASP)in named subdirectories and

Keep Anchor Tags from Changing Color

Anchor tags usually change color after they have been “visited.” You cankeep this from happening in your site by using this style tag at the top ofeach document.

Notify Session Time Out When Using ASP

Each time a user connects to an ASP Web site, they are assigned a SessionID. Each session times out after 20 minutes by default (although you can adjust the timeout

Use Inline Frames for Extra Power

With Internet Explorer (3.x and higher), you can use an inline frame to provide a rectangular area into which you can write or retrieve content. An inline frame essentially opens

JavaScript Cookies

Question: How long can a document.cookie string be? In other words, how many cookies can I set? Answer: There are a number of important limitations on the use of cookies

Exceptions as objects

The traditional convention of sending an integer as an error flag is problematic and unsatisfactory in OOP. The C++ exception handling mechanism can offer much more flexibility, safety and robustness.

Accessing a string element

The standard string class offers two ways to access a single character from a string object. The first one is to use the overloaded subscript operator [ ] like in

Consistent operator overloading

Whenever you overload operators such as + or -, it is useful to support the corresponding += and -= as well. As opposed to a common belief, the compiler will

Handling E-mail with HTML, CDO, and SMTP

here are some mighty powerful e-mail solutions out there in network land. Just look atthe size of Microsoft Exchange. But how about handling your intranet e-mail with somethingfast, light, cheap

SQL Server on the Web

icrosoft SQL Server is a great database for Web sites, especially Web sites deployed on NT and using Microsoft’s IIS server. It’s easy to install, relatively cheap, and interacts well

Customizing Style Sheets on the Fly

‘m afraid that age is catching up with me.  Once, in my distant youth (well, maybe not all that distant), my eyesight was about perfect?I could make out inch high

NT Registry Query

Question: What is the best browser-based way to read values from the Registry? Can JavaScript do it? Answer: There is no easy way to read the Registry on a user’s

Check if file exists

Question: Is there a way for me to check if a file exists before writing to the file using Java? Answer: You can determine if a file exists by calling

Dynamic class casting

Question: Does java have dynamic_cast? If so, how is itused? Answer: All class casts of nonprimitive types in Java are dynamic and performed at runtime.In C++ the dynamic_cast operator will

Calculating # of days between two dates

Question: I need help to calculate the number of days between two dates. This may seem like a trivial question, but for the life of me, I cannot find away

Exponents

Question: How do I go about using exponents in Java? For example, how would I do 6 to the power of 3? Answer: You want to look at the documentation