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

Learn Some Efficient Programming Practices

Avoiding null pointer exceptions is a good programming practice. However, simple things such as string comparison can also lead to null pointer exceptions. Considering the following: You have a constant

Cycle Taskbar Icons in Windows

The default taskbar notification area icons appear over-crowded at times. You can reposition the icons to suit your choice and usage. To do this, select an icon with your left

Taskade ??? collaborative task list and outliner

Happy holidays, We built a a simple and collaborative task list for teams, a friendly space for smart lists and outlines called Taskade (https://taskade.com) Any feedback would be amazing!! Our Mac & Windows App: https://taskade.com/downloadsOur Chrome Extension: http://goo.gl/E4zh25  Thanks and have a great week ???

Creating a Link to a File in Java

There are times when we need to reflect the changes made to a file in a different file as well. Mostly, they are made available in a common place so

Disable Indexes with SQL

Sometimes you will need to disable an index, albeit temporarily. In order to disable an Index, make use of the following T-SQL Query: USE DatabaseNameGO ALTER INDEX NameOfIndex ON Table.Field

Scrolling Text in HTML

With the  tag, you can scroll the text from top to bottom, from bottom to top, from left to right, from right to left, and you can also increase writing.

Purging Binary Logs in MySQL

All data modifications of MySQL are updated onto logs in binary format. At times, if maintenance such as backup is not in place, and the data storage reaches the maximum

Merge Two Data Tables in C#

If you have two data tables with the same data columns, you can merge them quite easily. Merge Data Tables dataTableEuropeanCities and dataTableAsianCities are two datatables with same schema. They

Tip: The sp_rename SQL Stored Procedure

You can not use the ALTER TABLE statement in SQL Server to rename a column in a table. You can however, use the sp_rename stored procedure if you do not

The sp rename SQL Stored Procedure

You can not use the ALTER TABLE statement in SQL Server to rename a column in a table. You can however, use the sp_rename stored procedure if you do not

Using the “==” Operator with Double or Float

for (float f = 10f; f!=0; f-=0.1){ System.out.println(f);} The code above causes an endless loop, it doesn’t act as expected, because 0.1 is an infinite binary decimal and f will

Clearing the Contents of a StringBuffer

StringBuffer is a class that facilitates string operations and also helps reduce memory usage. A method defined on StringBuffer named setLength(int newLength) also serves as a shortcut to clear the

Learn How to Record Your Screen

Download the Windows Media Encoder 9 Series x64 Edition Follow these simple steps: Click on New Session – Wizard – Capture Audio or Video File – Click Ok.Click on Properties

Understanding Null Values Returned in MySQL

The null value often needs special attention in your code to work effectively. For developers, it is important to know if the value that was received for a query is

Understanding the Long Data Type in Java

Java long behaves differently when used with the letter L and without it. Code snippet public class JavaLong{ public static void main(String args[]) { JavaLong javaLong = new JavaLong(); javaLong.proceed();

Parallax Scrolling Effect in HTML

This web design technique moves the background image at a different speed from the images in the foreground. Sample Code: Parallax Scrolling .parallax { background-image: url (???example.jpg???); height: 100%; background-size:

Limiting the Rows Returned in MySQL

There are many times when you are running on low memory and want to limit the data in your transactions. Especially, when you are sure that you don’t need all

Simple Annotation in Java

Annotations are similar to interfaces in that you can convey your own specifications that others will need to follow. Here we are defining an Annotation named ClassHeaderAnnote, which has few

Using the SQL FORMAT Function

The SQL FORMAT() function is used to format how a field should be displayed. You can format dates in a column in the following manner: SELECT FullNames, Surname, UserID, FORMAT(Now(),’YYYY-MM-DD’)

Using BETWEEN in MySQL Queries

Assuming you have a column in a table of type DATETIME, and you want to filter it based on dates and time as well, BETWEEN will be helpful. Listing 1.

Avoid Repeated Execution of LINQ Queries in C#

LINQ queries follow deferred execution. This means when you access a LINQ query, it will get executed. If not well designed, it will execute every time you access it. In

Reducing Unbuffered Streams

InputStream in = new FileInputStream(file);int q;while ((q = in.read()) != -1) { …} The code above reads a file byte by byte. Every read() method call on the stream causes