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

Fix Single Quotes in a SQL Statement

The following will replace all single quotes in a SQL statement [CHR(39)] with anapostrophe [CHR(180)]. This is useful if you are trying to add names to adatabase as parameter values

How Many Digits Does a Floating-Point Variable Have?

The standard function template std::numeric_limits (defined in < limits >) returns the implementation-dependent number of digits that a certain type has: #include int main(){std::numeric_limits < float >::digits10; //6 on my

Roles Are Disabled at Package Compilation Time

When granting permissions through roles, it is important to know that rolesare disabled while packages are compiled. For example, consider two schemas: User_A and User_B. Let’s create Role_A: CREATE ROLE

Selecting Three Radio Buttons

Question: I want to validate a form so that three radio buttons may be checked, but no more. This will be used in a “what are your top three choices”

Void Function Arguments

Question: Why does Java accept function declarations like public void func(); but not declarations like public void func(void); Answer: Java is not C. Despite the similar syntax, all C idioms

JavaScript Browser Detection

Question: When loading a web page, I need to have JavaScript look at the browser it is loading into, and if it is not version 5 (Internet Explorer 5), I

Mouse Position

Question: Can I retrieve the position of the mouse on the screen? I need to know the X and Y coordinates because I want to position a layer at that

Multi-dimensional Arrays

Question: Can I create multi-dimensional arrays in JavaScript? Do you have an example? Answer: Yes and no. You can’t create multi-dimensional arrays (as such) in JavaScript. What you can do

Store Procedure and View Creation

Question: We need to create a view based on about 1600 tables. One of the problems is that we cannot enter all of the query into the buffer because the

Project Reference

Question: In a code I’m developing, I am getting a “can’t find project or library” error message when it gets to the following functions: Chr(), Right(), Left(). Aren’t these VB

Use of SocketImpl Class

Question: What is the SocketImpl class used for? Answer: SocketImpl is an abstract class that provides an interface for customizing socket implementations. Subclasses of SocketImpl are not intended to be

Interface vs. Abstract Class

Question: What is the difference between an interface and an abstract class? Answer: Within the confines of Java syntax, an interface is a type that only defines abstract methods and

EJBs and Servlets

Question: Both Enterprise JavaBeans and Servlets are server side components. What are the major differences between them? Specifically, what is the difference between a Session Bean and a Servlet? Answer:

Objects and Sockets

Question: Is it possible to send an object over a socket connection in Java? Answer: Objects can be transmitted over a socket connection in the same way that they are

Delegation Technique

Question: What is delegation and how can I use it? Could you please give an example of a simple delegation technique? Answer: Delegation is a technique where one object directly

JavaScript Variable Declaration

Question: I am new to JavaScript, but familiar with a variety of other languages. I don’t quite understand what the following variable declarations do: ns4 = (document.layers)? true:falseie4 = (document.all)?

Using JavaScript to Find User Info.

Question: I’m working for a local newspaper, and we are writing a survey to see the type of technology our viewers are currently using to access the site. Is there

Viewing Source Code

Question: Is there a way to prevent users from using the VIEW/SOURCE to view the HTML in my pages? I need to have this for a form that uses sensitive

Scroll() Function

Question: In the current Web project I have been working on, I have some links on my page which execute a JavaScript function. With this JavaScript function, I open up

File Deletion

Question: I’m opening a file for reading, and after reading its contents I write it all to other file. Now I want to delete the original file. How do I

Layers Move when Window Resizes Netscape

Question: Is there code to reload a whole page when it is resized? The page with the layers is nested in a frame which is opened in other page. When

Blobs and Java

Question: How can I get out the value of a blob to print out on a web page using Java? I am using a cursor to get out all the

Case Sensitivity

Question: Is Java platform-dependent where the case sensitivity of filenames is concerned? In Unix, filenames are case sensitive whereas in Windows they are not. How does it work when Java

Threads and JDBC Connections

Question: Is the JDBC Connection class thread safe? In other words, can a connection be shared between multiple threads without using synchronization? Answer: java.sql.Connection is actually an interface and not

Determing Empty Tables or Queries in MS Access

You can determine whether an Access table or query, accessed via RECORDSET OBJECT, contains any record by examining the boolean type BOFand EOF propertyof that RECORDSET OBJECT. If the RECORDSET

Data Exchange

Question: Can we exchange data between Visual Basic and Microsoft Project? If so, what is the object model for Microsoft Project? Answer: The MS Project object model is as large

Editing an Executable File

Question: I have an existing .exe file that creates files, archives, and restores. I need to find out how to edit that existing program so as to update some changes.

Converting VBScript to JavaScript

Question: I need to convert this fairly simple VBScript to a JavaScript? The purpose of the script is to cause a posted seminar event to disappear after the date of