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

A Better Way to Achieve Random File Access

RandomAccessFile raf = new RandomAccessFile(f, ???r???);for (???) { raf.seek(pos); byte b = raf.readByte();} Despite its name, the java.io.RandomAccessFile class is not very convenient for accessing files in a random-access manner,

How to Avoid Cloning in Java

Cloning is the easiest way of copying a class. With this, however, you also have all properties being passed on to the cloned class, which probably is a security hassle.

How to Restrict Input Text to Characters in a Text Box

Use the KeyPress event to check for the keys pressed. See below for an example: private void textFirstName_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if ( !( char.IsLetter(e.KeyChar) ) ) { e.Handled

Understanding the Collection.removeIf Method

Collection.removeIf is a very powerful method that acts on a condition. In the code sample below, there is a list which has few elements in it and the condition is

How to Include All Values in a Date Range

Sometimes when doing a search for data between date ranges, some of the data is omitted because the search doesn’t include the whole last day’s values. Here is a small

Explore the Difference Between ID and Class

These two selectors often confuse beginners. In CSS, the difference between them is that the class is represented by a dot “.”, while ID is represented by a hash “#”.

Understanding the Current Stack Under Execution

Most of the time, you probably want to understand the flow to solve certain problems. Java provides an easy approach to knowing the current stack. Code snippet: public class DumpStack{

Format the Console.Write Responses

We use string.format to format the data written to the console using the console.write or console.writeline commands. However, it isn’t indented well to make it readable. C# allows you to

Should Log Instances Be Static or Not?

Private static final Log log = LogFactory.getLog(MyClass.class); It is a good idea to store the log instance in a static final variable, because: No problems with serializable classes Initialization cost

How to Check Whether a Number Is Prime

Java has an API called BigInteger and it is easily able to identify if the number under consideration is a prime number or not. Code snippet: import java.math.BigInteger;public class ProbablePrime{

DevX - Software Development Resource

MySQL & MariaDB Databases with Superpowers: Say Hello to Reinvented dbForge Tools for MySQL

Devart introduced a significant update of dbForge tools for MySQL with cutting-edge connectivity and compatibility options and a new, more secure than ever, activation procedure. Devart, a Czech software vendor of database tools and data connectivity solutions, has rolled out greatly improved, crisp and clean dbForge tools for MySQL after the recent grand update of dbForge Studio for MySQL. All the tools have been packed with the powerful connectivity and compatibility options which enable users to work with a greater number of databases and database engines. In addition, an activation mechanism has received an extreme makeover to ensure the maximum possible security and reliability of the tools. Here is a closer look at what???s new in dbForge tools for MySQL: 1) Connectivity and Compatibility. dbForge tools for MySQL now support the following  databases and cloud services:MariaDB 10.1MariaDB 10.2NDBCLUSTERGoogle Cloud PlatformAlibaba Cloud 2) Trial Product Activation. The new activation process that traditionally comes after a 30-day trial period is more secure and reliable than ever before. It protects users against potential piracy and ensures that they are using an authentic product that can be trusted with their business data. 3) New Look and Feel. Among other updates, Devart redesigned the interface of MySQL tools to give them a cleaner look and feel. 4) Other Improvements include Compliance with the Federal Information Processing Standard. Onwards to more tidbits about what’s been changed with this release, please visit the following History pages:dbForge Schema Compare for MySQLdbForge Data Compare for MySQLdbForge Data Generator for MySQLdbForge Query Builder for MySQL To see the full list of updates implemented in dbForge Studio for MySQL v.7.4, please visit: https://www.devart.com/dbforge/mysql/studio/. About DevartDevart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration and backup solutions. The company also implements Web and Mobile development projects. For additional information about Devart, visit https://www.devart.com/.

Does Your Timezone Support Daylight Saving Time?

You may want to know if your timezone supports Daylight Saving Time programmatically. This can be easily determined with the code below: Listing 1. Sample Code import java.util.TimeZone;public class DaylightSavingsTime{

Using the Embed Tag in HTML

To embed interactive content, such as a sound, a movie or an swf file, into your site, you need to use this HTML tag. Upload the wav (or the desired

Finding the Difference Between 2 Dates in MySQL

MySQL provides a function DATEDIFF?that takes two arguments, first date and the second date. The function computes the difference between them and returns a positive result if the first date

Assembling XML with String Operations

String name = …String attribute = …String xml = “”+””+ name +””+”; Many beginners are tempted to create an XML file like the one listed above using String operations because

How to Diagnose Memory Leaks

Memory leaks don’t have to be hard/scary/tedious problems to solve if you follow the three simple steps mentioned below: Step 1: Capture baseline heap dump You need to capture heap

Infinite Loop Using Java

Certain aspects of your code may want to perform certain activities in a loop and wait infinitely for a command. However, the “while(true)” command is an easier way to achieve

DevX - Software Development Resource

Achieve Faster and More Controlled Management of MySQL Databases with Updated dbForge Studio for MySQL

Devart introduced a significant update of dbForge Studio for MySQL with a bunch of new unique features, including support for Google Sheets, new schema comparison and synchronization engine, and much more. Devart, a Czech software vendor of database tools and data connectivity solutions, has released a significantly improved version of its universal MySQL and MariaDB GUI tool, dbForge Studio for MySQL v.7.4. The most outstanding and notable updates implemented in dbForge Studio for MySQL are:   1) Support for Google Sheets for easy migration of table data between MySQL tables and Google Spreadsheets. The feature is incorporated into handy Data Export / Import Wizard, and the only thing users should do now is to specify the URL/ID of a Google Spreadsheets table. 2) Improved SQL document management with Execution notifications and Transaction Reminder as well as highlighting of the current code line. 3) Enhanced Code Completion with dozens of new variables and functions supported (Percona Server variables, MySQL Server variables, variables for MariaDB Server, etc.) 4) Both, schema/data comparison and synchronization wizards feature a new progress window with the list of processes taking place and specification of time elapsed. A brand new schema comparison and synchronization engine is implemented as well. 5) Now, dbForge Studio for MySQL allows copying databases seamlessly through the command-line interface and alerts users about the result of database copying. dbForge Studio for MySQL is a universal GUI tool for MySQL and MariaDB database administration, development, and management. The IDE allows you to create and execute queries, develop and debug stored routines, automate database object management, analyze table data via an intuitive interface, and much more.  To see the full list of updates implemented in dbForge Studio for MySQL v.7.4, please visit: https://www.devart.com/dbforge/mysql/studio/. About DevartDevart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration and backup solutions. The company also implements Web and Mobile development projects.For additional information about Devart, visit https://www.devart.com/.

Statistics IO and Statistics Time

STATISTICS IO?and STATISTICS TIME?show the amount of time spent on a query and the reads and writes of the query in question. This is good to know for quick performance

Infinite Heap in Java

This method creates a PDF file and returns the binary PDF data as a byte array. This particular line of code supposes that the resulting file is small and fits

Determine if the Current Request Is from a Crawler in ASP.NET

The System.Web.HttpBroswerCapabilities?has an important property called “Crawler” that enables us to handle requests from crawlers. Please check out the example below: Var isCrawler = ((System.Web.Configuration.HttpCapabilitiesBase)Request.Browser).Crawler;

Connecting to a MySQL Database from the Command Prompt

Connecting to a MySQL database from the command prompt can be very easy: [root@mypc]#mysql -S /opt/db/mysql//mysql.sock -uroot -prootPassword Here, we are trying to connect to the MySQL database Installed in