programming

Getting started with NodeJS [Beginners Tutorial]

Getting started with NodeJS the right way empowers you to exploit the potential of NodeJS. This tutorial walks you through NodeJS overview, mainly focusing on

Steve Alila7 min read
programming

Deploy Heroku Node.js from Scratch - Tutorial

You are just getting started with app hosting on Heroku Node.js, and you need a straightforward tutorial to guide you from scratch. Or you have a challenge

Steve Alila6 min read
programming

Error: cannot find module express

Error: Cannot find module 'express' This error is quite common and exists because when your code ran, the express package or module wasn’t found within its environment.

Olorunfemi Akinlua3 min read
programming

Install Java on Linux, Windows and MAC

Step by Step instructions to install JAVA on Linux, WIndows and MAC OS with and without GUI. Set proper PATH or HOME variables to use JAVA

Bashir Alam9 min read
programming

SOLVED: How to read env var in Node.js [With Examples]

Node.js read env var is one of the most typical yet (sometimes) challenging tasks you will do as a Node.js developer.

Steve Alila5 min read
programming

Managing golang connection pool

In the previous article, I introduced to you the ways to work with SQL in Golang. You don't need to change the defaults for the sql.DB connection pool for the

Tuan Nguyen7 min read
programming

Golang generate random string Examples

Multiple examples covering golang generate random string using rand function. Generate alphanumeric, special characters, uppercase, lowercase strings

Tuan Nguyen7 min read
programming

Golang struct Tutorial

When you declare a struct without field values, we say that it is a zero value struct. A zero value golang struct has its corresponding field values set to

Antony Shikubu7 min read
programming

How to check if struct is empty in GO?

This article describes a few methods for determining whether a struct in Go is empty. It includes structs having fields that are comparable and

Tuan Nguyen4 min read
programming

Golang slice append return value?

In the previous chapter, we discuss how to use append function in Golang. append is a built-in function which appends elements to the end of a slice. If it

Tuan Nguyen4 min read
programming

Getting started with GOLANG | Write your first GO Code

Getting started with go, installing go using package manager, install go-1.19, setup your own go workspace, What is GOPATH and GOROOT, How to integrate visual studio code with GO, Required extensions for GO in visual …

Deepak Prasad12 min read
programming

Print Function, File Name, Line Number in GO

In this tutorial we will share different methods to print or get logrus line number, file name, function name of the go code.

Tuan Nguyen6 min read
programming

How to pass array to function in Golang?

Learn how to pass array to function in golang using different examples

Tuan Nguyen4 min read
programming

How to pass slice to function in Golang?

There are multiple ways we can pass slice to function in golang. We will explore through some of the examples

Tuan Nguyen4 min read
programming

Currying Function in Java Explained

In Java, currying function is the mechanism of breaking down a multi-argument function to form the multiple functions with single arguments such that the output remains same.

Deepak Prasad6 min read
programming

How to run NodeJS REPL Inside a Function [Practical Examples]

The NodeJS REPL(Read-Eval-Print-Loop) server provides a programming environment like a Linux shell where a user can evaluate JavaScript expressions and gain access to node modules.

Deepak Prasad6 min read
programming

Beginners Tips for Learning Python

But how do you learn Python as a beginner? Well, there are multiple ways you can go about it.

Deepak Prasad7 min read
programming

Python pass Vs break Vs continue [1-1 Comparison]

Comparison and differences between pass vs break vs continue statement in python with 1-1 comparision and examples.

Deepak Prasad4 min read
programming

Python Pandas Period.to_timestamp() Example

The simple syntax of the python to_timestamp method is as follows:

Bashir Alam5 min read
programming

Introduction to Python for Machine Learning

We have discussed in detail Python for Machine Learning. We have also talked about the types of Machine Learning. For instance, we have provided brief information about the categories such as Supervised learning, …

Bashir Alam10 min read
programming

What does Python __all__ mean?

Python __all__ is a list of public objects of that module, as interpreted by import *. It overrides the default of hiding everything that begins with an underscore. When we are importing a module, the protected variables …

Bashir Alam5 min read
programming

Create pyplot figure with matplotlib [In-Depth Tutorial]

matplotlib.pyplot is a sub-library of Python's matplotlib library that provides convenient ways to create static, animated, and interactive visualizations in

Deepak Prasad9 min read
programming

HackerRank Solution: Maximize it [Python Itertools]

Note that you need to take exactly one element from each list, not necessarily the largest element. You add the squares of the chosen elements and perform the

Bashir Alam5 min read
programming

HackerRank Solution: Validating Postal Codes Python

A valid postal code P have to fullfil both below requirements:

Bashir Alam5 min read
programming

Hackerrank Solution: Compress the string Python

Hacker Rank Solution for Compress the string in Python. 3 different ways to solve "compress the string" question from hacker rank

Bashir Alam4 min read
programming

Master Python set intersection()

In python, we have a python set intersection method that consists of all the common elements of the input sets.

Bashir Alam15 min read
programming

Numpy random Examples | rand() | randint() function

The Numpy random method in Python helps us to create random numbers. You can use random.rand(), random.randint(), random.uniform() function to generate random numbers

Bashir Alam10 min read
programming

Is golang tuple possible?

By design golang tuple is not possible but we can work around this by using interfaces and generics.

Tuan Nguyen4 min read
programming

How to PROPERLY clean Laravel logs?

There are several methods to clean Laravel logs, depending on the specific logs you want to clean and how you want to do it. Here are some common methods:

Steve Alila6 min read
programming

Java WatchService Examples [Monitor Directory and Files]

The Java WatchService can monitor a Path for changes to any file or directory in the hierarchy. We can choose to receive events when files or directories are added, modified, or deleted.

Azka Iftikhar7 min read