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

Improve Loading Speed of Microsoft Word

Over a long period of time, we add lot of stuff knowingly or unknowingly to applications such as Microsoft Word. This results in slowing load times. To optimize this behaviour,

Understanding IFNULL in MySQL

MySQL queries can help us work with null values in queries and behave as we need. IFNULL?is a suitable function and can be used where you want to treat null

Running an Executable JAR File

Executable JAR files are the easiest way to assemble Java code into a single file which can be executed. Assuming that you have an executable JAR file with pathname ,

Compress and Decompress SQL Functions

Compress: Compresses input data and returns the binary data of type VARBINARY(MAX) Decompress: Decompresses compressed input binary data and returns the binary data of type VARBINARY(MAX) Here is small example

Schedule a Task to Start After a Defined Interval

Imagine, you want to schedule activating a task few moments (3 seconds in this case) from now, and interval of 3 seconds. The following code will be helpful. import java.util.*;//We

Find an IP Address by Name

Find the IP address of a server that you know, for example: google.com. Java, as usual, provides a very easy mechanism to retrieve the IP address of a server that

Dereferencing in Java

Dereferencing happens using the . operator: Object object = new Object();String text = object.toString(); // ‘object’ is dereferenced. Dereferencing pursues the memory address placed in a reference, to the place

Obtaining ASCII Values from Characters in SQL

With the ASCII function you can return a certain character’s ASCII value, as shown in the following example: SELECT ASCII(‘A’) AS A, ASCII(‘B’) AS B, ASCII(‘a’) AS a, ASCII(‘b’) AS

Quick C# Experiments with Interactive Window

We often create console applications to write test code or to do quick experiments in Visual Studio because they are lightweight when compared to Windows/Web applications. Visual Studio 2015 provides

Displaying Date Time with Reference to Time

There are lot of .NET helper assemblies that help you represent datetime in more readable formats, such as yesterday, 5 minutes ago, and so on. One of the libraries that

Converting a Date to a Certain String Format

The format() method from SimpleDateFormat class helps to convert a Date object into certain format String objects by using the supplied pattern string. Date today = new Date();SimpleDateFormat dateFormat =

Using the HASHBYTES Function in SQL

The HASHBYTES?function returns the MD2, MD4, MD5, SHA, SHA1, or SHA2 hash of a string. The next example returns a SHA1 hash value of it the string that was input.

How to Kill a Long-Running Process

You can use HttpResponse’s IsClientConnected property to figure out if the connection is still alive. Based on the value, you can kill a long-running process if the client is not

Knowing the Sign of a Given Number in MySQL

For a given number, it may be necessary to know the sign of the number for computation purposes. If it is positive, zero or negative, you may have respective case

Pull Web Page Results into Excel

Go to Data Menu, choose the “From Web” option under the “Get External Data” section. Put a valid web page address, and click on “Import” button at the bottom. It

Know if LIKE Results are True or False

MySQL is capable of returning the result of a LIKE directly in the result set itself. For example, if you use a wildcard character in a query such as below,

Usage of Ordinal in Enum

The ordinal() method on the enum returns the constant. In other words, you can assume this to be the same as index and similar to arrays the index starts with

Object Casting in Java

In Java, objects can be cast explicitly and implicitly: implicit casting happens when the source type extends or implements the target type (casting to a superclass or interface). explicit casting

Creating Temp Files Using Java

At times, you need to create temporary files to perform certain actions. The following code segment illustrates the same: import java.io.*;public class CreateTempFile{ public static void main(String args[]) { CreateTempFile

Calculate the Difference Between Two LocalDates

Use LocalDate and ChronoUnit: LocalDate date1 = LocalDate.of(2018, 8, 10); LocalDate date2 = LocalDate.of(2018, 8, 30); As long as the method between of the ChronoUnit enumerator takes 2 Temporals as

Get all the IP Addresses to Which a Device is Exposed

At times, your device can be exposed using multiple interface cards. The following code sample will help identify various interfaces and the related IP configuration available on them. import java.net.*;import