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

Reverse Strings in SQL

You can reverse strings in SQL by executing a query similar to this one. This query makes use of the REVERSE SQL function. SELECT FirstName, REVERSE(FirstName) AS Reverse FROM Employees

Convert an Operand to a String

When one of the two operands is not a string, it is converted to a String as follows: an operand whose type is a primitive type is converted as if by

This is LVDC

This is Manish from LVDC

Moving a File Using Java

It may be required to move a file or file(s) based on a requirement. The following Java APIs help us achieve this. The code snippet below illustrates moving file a.png

Capitalize the First Letter of Every Word with CSS

Use the text-transform property with ‘capitalize’ value to capitalize the first letter of the words in an element., For example: div { text-transform: capitalize; }this is a statement that requires

How to troubleshoot CPU problems?

Diagnosing and troubleshooting CPU problems in production that too in cloud environment can become tricky and tedious. Your application might have millions of lines of code, trying to identify exact line of code that is causing the CPU to spike up, might be equivalent of finding needle in the haystack. In this article let???s learn how to find that needle (i.e. CPU spiking line of code) in matter of seconds/minutes. To help readers better understand this troubleshooting technique, we built a sample application and deployed it in to AWS EC2 instance. Once this application was launched it caused CPU consumption to spike up to 199.1%. Now let???s walk you through the steps that we followed to troubleshoot this problem.

Building Javadocs from the Command Line

Some IDEs provide support for generating HTML from Javadocs automatically, but this can also be achieved using the command line: javadoc tool The most basic usage of the tool is

Using Optional in Java

With Java version 8, there is an option to assign null value to an object of type Optional. For example: Optional optionalVar = Optional.ofNullable(null); //Optional.ofNullable() accepts a null value to

Using NaN in Java

Java has a value NaN. The value has multiple faces and is returned under different circumstances. Below code samples will help us understand some of them. public class JavaNaN{public static

Selecting the Max, Min and Sum of Values from a Table in MySQL

Considering the following table STOCKPRICE and its details. CREATE TABLE ‘STOCKPRICE’ (‘ID’ INT(11) NOT NULL,’NAME’ TEXT NOT NULL COLLATE ‘utf8_bin’,’PRICE’ INT(11) NOT NULL)COLLATE=’utf8_bin’ENGINE=InnoDB; Also, use the following to create sample

Format a Date in Angular

To format a date in an Angular template, use the date pipe. For example, the following code formats the date to short date format by default. {{ dateObject | date:’

Generating Random Numbers in SQL

You can generate a Random number in SQL with the following command: SELECT RAND() Random_Number This returns the following value 0.713666525097956

Getting the Current Date and Time in MySQL

MySQL provides a NOW()?function that returns the current date and time when executed. Command: SELECT NOW() AS ‘CURRENT DATE AND TIME’; Expected output: +————————-+|CURRENT DATE AND TIME |+————————-+| 2018-03-20 19:22:17