gpg-logo

How to Install Open-Source VSCode Without Telemetry on Linux

Visual Studio Code or VSCode is a text editor developed by Microsoft that supports many popular programming languages such as Go, Java, JavaScript, Node.js, Python, C and C++. It is a directory based, language agnostic source code editor which focuses on directories rather than projects and has many extensions available for it. VSCode’s feature set includes bracket matching, syntax highlighting, code folding, linting, debugging, and built in version control via Git, Subversion or Perforce. Ever since the initial release of VSCode in 2015, it has become an increasingly popular programming tool amongst users of all desktop operating systems including GNU/Linux.

Read more

Installing Java JDK via command line on Kali Linux

How to install Java on Kali Linux

The objective of this guide is to show how to install the Java Development Kit (JDK) on Kali Linux. This is needed by Java developers and programmers in order to compile and run Java applications. It’s also required for security tools that are built in Java.

In this tutorial you will learn:

  • How to install Java JDK in Kali Linux

Read more

Checking the Node.js version and help menu on Linux

How to install Node.js on Linux

Node.js is a JavaScript runtime environment that is used for hosting websites. It offers users the ability to write websites in JavaScript whose code executes on the server instead of a client’s browser.

To host a website with Node.js on a Linux system, you need to download and configure the Node.js software. Node.js is available for installation on any major Linux distro, although the commands to install it may differ. Most users will also wish to install npm, the package manager for Node.js and JavaScript, when they install Node.js.

In this guide, we’ll show you how to install Node.js from the command line on various Linux distributions so you can get started hosting your JavaScript based website. We’ll also include instructions for installing npm.

In this tutorial you will learn:

  • How to install Node.js on major Linux distros
Checking the Node.js version and help menu on Linux

Checking the Node.js version and help menu on Linux

Read more

npm on Linux

Install npm on Linux

npm is the package manager for Node.js and the JavaScript coding language. It can be installed on a Linux system and then used on the command line to download and install JavaScript packages and their requisite dependencies.

It’s especially useful for developers working with Node.js, as npm’s online registry contains a plethora of JavaScript packages that can be browsed and downloaded with ease. It’s available for installation on any major Linux distro and operates in much the same way as a distro’s package manager, which you’re probably already familiar with.

In this guide, we’ll show you how to install npm on various Linux distributions. We’ll also show you basic usage commands for npm, such as installing and removing software packages.

In this tutorial you will learn:

  • How to install npm on major Linux distributions
  • Basic usage commands for npm

Read more

We have successfully compiled and run our Hello World program using OpenJDK on Manjaro

How to install Java on Manjaro Linux

Many developers and programmers choose Manjaro because it’s one of the most user-friendly and feature-rich Linux distributions. In this guide, we go over the steps to install the Java Development Kit on Manjaro Linux. We’ll show you how to install both the OpenJDK package (which is free and GPL-licensed) as well as Oracle Java SE Development Kit.

Arch Linux and Manjaro only officially support the OpenJDK, as that is the non-proprietary version. However, the Oracle package can be installed from the AUR, as you’ll see shortly.

In this tutorial you will learn:

  • How to install OpenJDK
  • How to install Oracle Java SE Development Kit
  • How to test Java installation

Read more

Introduction to Javascript loops

Introduction to Javascript loops

Nowadays Javascript can be easily defined as the world most used programming language: it is used on a variety of platforms, it is integrated in web browsers and thanks to the Node.js runtime it can also be used server-side. In this tutorial we will see the loops we can be used in modern Javascript.

In this tutorial you will learn:

  • What is the syntax and how the while loop works in Javascript
  • The syntax of the do/while loop and how it works in Javascript
  • The syntax of the for loop and how it works in Javascript
  • The syntax of the for/of loop and how it works in Javascript
  • The syntax of the for/in loop and how it works in Javascript

Read more

Results of running the application

How to persist data to PostgreSQL in Java

Java is perhaps the most widely used programming language nowadays. It’s robustness and platform-independent nature enables Java based applications to run on mostly anything. As is the case with any application, we need to store our data in some sort of reliable way – this need called databases to life.

In Java database connections are implemented by JDBC (Java Database Connectivity API), that let’s the programmer handle different kind of databases in almost the same way, which makes our lives much easier when we need to save or read data from a database.

In this tutorial we will create an example Java application that will be able to connect to a PostgreSQL database instance, and write data into it. To check that our data insertion is successful, we’ll also implement reading back and print the table we inserted data into.

In this tutorial you will learn:

  • How to setup the database for the application
  • How to import PostgreSQL JDBC Driver into your project
  • How to insert data into the database
  • How to run a simple query to read a database table’s content
  • How to print fetched data

Read more

How to install Java on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective of this tutorial is to install Java on Ubuntu. We will be installing the latest version of Oracle Java SE Development Kit (JDK) on Ubuntu 18.04 Bionic Beaver Linux. This will be performed in three ways: Installing Java using the Ubuntu Open JDK binaries, installing Java via PPA and installing Java using the official Oracle Java binaries.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver
  • Software: – Java(TM) SE Runtime Environment 8,9,10 or 11

Requirements

Privileged access to to your Ubuntu 18.04 Bionic Beaver Linux system is required to perform this installation.

Conventions

Read more

How to Install Node.js on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install Node.js the cross-platform JavaScript runtime environment on Ubuntu 18.04 Bionic Beaver Linux from standard Ubuntu 18.04 repository or by use of Node Version Manager, NVM.

This tutorial is available for other Ubuntu Versions:

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Conventions

Read more

Android Studio running on Ubuntu

Install Android Studio On Ubuntu 18.04 Bionic Beaver Linux

Objective

Install Android Studio on Ubuntu 18.04

Distributions

Ubuntu 18.04 Bionic Beaver

Requirements

A working install of Ubuntu 18.04 with root privileges.

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

Introduction

If you’re serious about developing for Andorid, or you just want to play around and see what app development is all about, Android Studio is the best option out there. It’s the official IDE developed by Google for writing Android apps.

Google developed Android Studio for Ubuntu. Up until recently, Google did all of their development on Ubuntu. They just switched over to Debian, in case you were wondering. Either way, it’s similar, so coding for Android on Ubuntu is a good idea.

Read more

Kotlin on Ubuntu 20.04 Focal Fossa Linux

How to install Kotlin on Ubuntu 20.04 Focal Fossa Linux

Kotlin is a general-purpose programming language which interoperates fully with Java. Kotlin’s JVM version of its standard library depends on the Java Class Library, hence this tutorial will first show the reader how to install Java SDK and then a Kotlin compiler on Ubuntu 20.04.

In this tutorial you will learn:

  • How to install Java SDK
  • How to install Kotlin compiler
  • How to compile simple Kotlin program
  • How to run Kotlin program

Read more