Apache Maven for Beginners
Install the latest Oracle JDK on Linux
Apache Spark Tutorial
Install Ballerina on Linux
Complex Event Processing - An Introduction

Java is Dead! Once More

Programming languages are ranked based on different criteria. For example, Stack Overflow lists programming languages based on the number of questions and answers; while it is a clear indication of the recent popularity of a language, already matured languages not necessarily require the developers to search for "how to write a loop". Similarly, the famous index Tiobe lists Java as the second most popular language next to C at the time of writing this article. Tiboe ranks programming languages based on the number of skilled engineers world-wide, courses, and third-party vendors. Popular search engines such as Google, Bing, Yahoo!, Wikipedia, Amazon, YouTube, and Baidu are used to calculate the ratings. It is important to note that the TIOBE index is not about the best programming language or the language in which most lines of code have been written.


Coming to the point, recently I saw an index claiming Python took the first place pushing Java to the second place. Nothing to worry; good for Python! The programming language war is never-ending like the Linux distribution war. Fanboys always claim that their language is superior to any other language. This article analyzes if Java is dying and is Python replacing Java so that you can learn and live with Python only. I am comparing Python against Java because of the most recent claims I've seen over the internet but the core idea remains the same for any language out there.


Read More

Install the Latest Oracle JDK on Mac

This article shows you how to install Oracle JDK $java_version on your Mac system. This article uses JDK $java_version$java_update_no to demonstrate the installation. In the provided commands, replace the version specific paths and file names according to the downloaded version.

Oracle provides a Mac installer and a binary file.This article explains how to install Oracle JDK using the mac installer and how to set the JAVA_HOME variable.

Install Oracle JDK $java_version on Linux

Read More

Running Docker Without Sudo on Linux

After installing Docker on Linux, you may get a permission denied message as shown below when you try to run your first docker command:

docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.

You can solve this problem by running Docker with root privileges (using sudo). However, by following these simple steps given below, you can run docker without root privileges.

Running Docker Without Sudo on Linux
Read More

Install Scala the Old School Way

Finally, you found the place that shows you how to install Scala on Linux from binaries. Even the Scala's official website promotes installing on IntelliJ or installing using SBT. However, I prefer to install Scala the old school way using binaries for testing purposes because it gives me more control on what kind of changes are made on my system. For any hardcore development purposes, I do use Scala on IntelliJ Idea. This article explains how to install Scala using pre-built binaries.

Install Scala the Old School Way
Read More

13 Things To Do After Installing IntelliJ Idea

IntelliJ Idea: the famous IDE for JVM languages including Java, Scala, and Kotlin. If you don't have it installed, follow Install IntelliJ IDEA on Linux to install the latest IntelliJ Idea. This article shows you some hidden tweaks to boost your productivity with IntelliJ Idea.

Wait! Isn't IntelliJ Idea ready to be used out of the box? There is no doubt about the capability of IntelliJ Idea; of course, it can handle your project without any tweaks and customization. However, this article shows you how I customize my IntelliJ Idea for better productivity. All we going to do is enabling some hidden features and installing some plugins that may take your favorite IDE to the next level.

Though I specifically mention the IntelliJ Idea, the following tweaks apply to all Jetbrains' IDEs:

  • Android Studio
  • AppCode
  • CLion
  • GoLand
  • PhpStorm
  • PyCharm
  • Rider
  • RubyMine
  • WebStorm

1. Enable the toolbar

Go to ViewAppearance and select Toolbar

The toolbar provides quick access to frequently used buttons such as Save All, Back, and Forward with a cost of small vertical space. I prefer to have the toolbar enabled because it moves the Build button to the left that makes it easy to access using my muscle memory. In addition, you can add more shortcuts to this toolbar if you like.

IntelliJ IDEA Enable Toolbar

Read More

Install IntelliJ IDEA on Linux

IntelliJ Idea the famous IDE for JVM languages including Java, Kotlin and Scala has recently changed its installation process with the version 2020.3. This article shows you how to install the latest IntelliJ Idea on any Linux system.

For whatever the reason, if you have to install an older version of IntelliJ Idea, please follow the article: Install IntelliJ IDEA 2020.2 and Older on Linux

You do not need Java to run IntelliJ IDEA since it comes with Java Runtime Environment to run the IDE. However, it is highly recommended to have Oracle JDK for the development purpose.

Install IntelliJ IDEA on Linux



Read More

Install IntelliJ IDEA 2020.2 and Older on Linux

This article shows you how to install the famous Java IDE: IntelliJ IDEA on Linux. You do not need Java to run IntelliJ IDEA since it comes with Java Runtime Environment to run the IDE. However, it is highly recommended to have Oracle JDK for the development purpose.
 
There is a separate article on how to install the latest IntelliJ Idea on Linux
Follow the Install IntelliJ IDEA on Linux article to install the latest IntelliJ Idea.

Install IntelliJ IDEA on Linux
Read More

Install Oracle JDK 15 on Linux


Even though OpenJDK is available in Linux repositories, some applications strictly require Oracle Java Development Kit. This article shows you how to manually install Oracle JDK $java_version on your Linux system. This article uses JDK $java_version$java_update_no to demonstrate the installation. In the provided commands, replace the version specific paths and file names according to your downloaded version.

Install Oracle JDK $java_version on Linux

Oracle provides deb and rpm installers
If your Linux distribution is using DEB package format like Debian, you can download and install the jdk-$java_version$java_update_no_linux-x64_bin.deb file using the following command:
sudo dpkg -i jdk-$java_version$java_update_no_linux-x64_bin.deb
If your  Linux distribution is using RPM package format like Cent OS, you can download and install the jdk-$java_version$java_update_no_linux-x64_bin.rpm file using the following command:
sudo rpm -ivh jdk-$java_version$java_update_no_linux-x64_bin.rpm

However, this article explains the manual installation method which is applicable for all Linux distributions out there. Personally, I prefer the manual installation because I have more control over the changes made in the system.


Read More

Read and Write ORC Files in Core Java

The Optimized Row Columnar (ORC) file format provides a highly efficient way to store Hive data. It was designed to overcome the limitations of the other Hive file formats. Using ORC files improves performance when Hive is reading, writing, and processing data. There are hundreds of computing engine from Hive to Presto to read and write ORC files. When it comes to reading or writing ORC files using core Java, there is no enough help except the official document. This article is for you if you are looking forward to writing your own code to read or write ORC files.
 
In this article, we will create a simple ORC writer and reader to write ORC files and to read from ORC files. Later the ORC writer and the reader will be enhanced to support any common ORC types with some minor optimizations.

Read and Write ORC Files in Core Java

Requirements:
Read More

Install PyCharm on Linux

Considering the popularity of the Install IntelliJ IDEA on Linux post, I decided to write another post about how to install PyCharm the famous Python IDE on Linux. IntelliJ and PyCharm are from the same company and built on the same code base. However the final executable file and some configurations are different in PyCharm.

Read More

Presto SQL for Newbies

In the series of Presto SQL articles, this article explains what is Presto SQL and how to use Presto SQL for newcomers. Presto is a high performance, distributed SQL query engine for big data. Its architecture allows users to query a variety of data sources such as Hadoop, AWS S3, Alluxio, MySQL, Cassandra, Kafka, and MongoDB. One can even query data from multiple data sources within a single query.

Let's begin with what is Presto. Presto is a massively parallel programming engine that allows users to execute against any databases. If you define a database as software that stores data and processes it, Presto does not fall under the database category. Rather I prefer to call it a data or computing engine because Presto itself does not provide a storage solution. Instead, Presto focuses on how to query different data sources such as MySQL, SQLServer, Hive, Cassandra even possibly CSV files. Presto achieves such flexibility of querying anything using its plugin architecture as shown below:

In the future if you find a new database to be supported by Presto, you only need to write a new connector to connect that database with Presto. Though it looks like connectors doing the heavy lifting here, actually connectors only provide simple API to connect to the database. For example, connectors tell Presto what are the tables available in the underlying database and how to read raw data from them. Given that information, Presto decides how to process those data and respond to a user's request. The coolest thing here is that you can join a table from one database with a table in another database. For example, consider a bank has account details in MySQL database and transaction history in Hive, they don't need to migrate data from one database to another to join them. Presto supports SQL like the following query out of the box:

SELECT acc.account_no as account_no, trans.amount
FROM mysql.bank.accounts acc LEFT JOIN hive.bank.transactions trans
    ON acc.account_no = trans.account_no
WHERE trans.amount > 1000;


Read More

Install Oracle JDK 14 on Linux


Even though OpenJDK is available in Linux repositories, some applications strictly require Oracle Java Development Kit. This article shows you how to manually install Oracle JDK $java_version on your Linux system. This article uses JDK 14$java_update_no to demonstrate the installation. In the provided commands, replace the version specific paths and file names according to your downloaded version.
Oracle provides deb and rpm installers
If your Linux distribution is using DEB package format like Debian, you can download and install the jdk-$java_version$java_update_no_linux-x64_bin.deb file using the following command:
sudo dpkg -i jdk-$java_version$java_update_no_linux-x64_bin.deb
If your  Linux distribution is using RPM package format like Cent OS, you can download and install the jdk-$java_version$java_update_no_linux-x64_bin.rpm file using the following command:
sudo rpm -ivh jdk-$java_version$java_update_no_linux-x64_bin.rpm

However, this article explains the manual installation method which is applicable for all Linux distributions out there. Personally, I prefer the manual installation because I have more control over the changes made in the system.

Install Oracle JDK $java_version on Linux

Read More

Contact Form

Name

Email *

Message *