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

Case Insensitive Comparison of Two Strings

We often compare two strings to the same case and then compare them to see if they are the same. Instead, we can use the StringComparison class’s InvariantCultureIgnoreCase property. String.Equals(‘stringOne’,

Decrypt HTTPS Traffic in Fiddler

Modern web applications are predominately on HTTPS and you may want to decrypt that traffic for inspection. One of the best tools that developers use is Fiddler. Fiddler, by default,

Parsing and Converting Numbers in Java

int x = Integer.valueOf(str).intValue(); int y = Long.valueOf(Double.valueOf(str).longValue).intValue(); To use the API without allocating unnecessary objects use the following lines of code: int x = Integer.parseInt(str); int y = (int) Double.parseDouble(str);

Use Image Sprite to Combine Images

If you have too many images on a web page, it will make too many requests to the server and take a lot of bandwidth as well. This will all

How to Enable Java 9 GC Logs

GC logs are vital artifacts to troubleshoot memory/CPU related problems and optimize applications performance. In Sep 2017, the much-awaited Java 9 was released and GC logging was re-implemented using the

DevX - Software Development Resource

More precise details of time can be obtained in Java using nanoTime()

Code snippet: public class NanoTimeInJava{public static void main(String args[]){NanoTimeInJava nanoTimeInJava = new NanoTimeInJava();nanoTimeInJava.proceed();} private void proceed(){//The following nanoTime() method in System class provides the time in nano secondsSystem.out.println(“Time in nano seconds : “+System.nanoTime());}} /* Expected output: [root@mypc]# java NanoTimeInJavaTime in nano seconds : 698344477290095 */

Identifying Unused Tables with T-SQL

You can identify unused Tables in the following way: ; with Unused (TableName , RowCount, DateCreated, DateModified)AS (SELECT unusedTable.name AS TableName,PS.row_count AS RowCount,unusedTable.create_date AS DateCreated,unusedTable.modify_date AS DateModifiedFROM sys.all_objects UnusedTableJOIN sys.dm_db_partition_stats

Avoid the XML Encoding Trap

It’s not a good idea to read an XML file and store it in a String because it wastes memory. XML specifies its encoding in the XML header, so when

Identify Tables with Large Column Counts

You can identify tables with a huge column count in the following way: DECLARE @limit INT;SET @limit = 30; –MAX 30 Columns;WITH c([object_id], [column count]) AS( SELECT [object_id], COUNT(*) FROM

Taking Advantage of Immutable Objects in Java

zero = new Integer(0);return Boolean.valueOf(“true”); Integer and Boolean are immutable; so, it is a bad idea to create objects that represent the same value, those classes have built-in caches for

DevX - Software Development Resource

Excel Pivot Table ??? Replace blank values with a predefined text

Excel Pivot Tables are a great way to summarize statuses and aggregate data.  However, with any kind of data that you aggregate you will see blanks at times. There are cases, where you would like to universally replace all blank values in Pivot table with an alternate value. Right-click on the Pivot table. Select the ???Pivot table options???. Under ???Layout and Format – Format??? there is an option that lets you replace empty cells value with your own predefined value. Enter a value there, and the Pivot table would use that in all blank places.

DevX - Software Development Resource

Replay a XHR request in Chrome

If you want to replay a XHR request, you can do that very easily in chrome. Right-click on the selected request and choose the ???Replay XHR??? option, and the browser will issue that request. You can see the replayed request at the bottom of the all captured requests.

DevX - Software Development Resource

Preserve Log in Chrome???s developer tools when you reload the page

When you refresh a page in the Chrome browser during any troubleshooting, you would have realized that the logs are being cleared for every page reload. To override this, you can check the ???Preserve Log??? box under the ???Network??? tab in Developer tools.  It retains all the requests across page reloads, until you clear them manually or close the page.

Performance Measurements with String Class Usage

The new keyword definitely consumes more time when compared to direct initializing the value to a String object. The following illustrates the time consumed by both the mechanisms. These values

Add Frequently Used Items to Quick Access Toolbar

Microsoft applications, such as Word, Excel, PowerPoint, etc., allow you to add frequently used toolbar items that are buried in various menu groups to a section called the Quick Access

DevX - Software Development Resource

Support for HTTP and HTTPS Protocols in Updated SecureBridge

Devart, a recognized vendor of professional database tools for developers and DBAs, has released a new version of SecureBridge. An update of SecureBridge components delivers such new features as: * Support for the HTTP and HTTPS protocols is added * The TScHttpWebRequest component to support the request/response model for accessing data using HTTP/HTTPS protocol is added * Performance of downloading and uploading a file using TScSFTPClient is improved * The TScSFTPClient.PipelineLength property to indicate the number of pending requests is added *The TScSSHClientOptions.SocketReceiveBufferSize and SocketSendBufferSize properties to increase socket performance are added SecureBridge protects any TCP traffic using SSH or SSL secure transport layer protocols that provide authentication for both client and server, strong data encryption, and data integrity verification. SecureBridge components can be used in conjunction with data access components to prevent data interception or modification in an untrusted network. Learn more about SecureBridge at https://www.devart.com/sbridge/ 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.Learn more about Devart at https://www.devart.com.

Identifying the Unicode of Characters in a Given String

The String class facilitates finding the unicode of characters in a String using the codePointAt method. Listing 1. Finding Unicode Characters public class StringCodePoint{ public static void main(String args[]) {

Read the Contents of a JAR File Using Java

Java provides a very easy mechanism to read jar files. It is the same process used for reading a zip file. The file myFiles.jar contains one or more files (as