Attempting to access an empty array in PHP will probably cause an error to be thrown. It is therefore good practice to c...

Read

Using certain utilities and operators requires newer versions of Python and some modules/packages will only work on part...

Read

It is important to know what version of Ubuntu your system is running if you are planning to install software or want to...

Read

In this tutorial, we will learn how to refresh a page with JavaScript. The easiest way to reload a page in JavaScri...

Read

It is possible to get various substrings from a string using the substr() utility in PHP. In this tutorial, we will...

Read

You can get the length of a string in PHP using the built-in strlen() utility. It takes one required argument, a string,...

Read

It is useful to be able to quickly find out what packages are currently installed on your Ubuntu system, especially if y...

Read

Linux only shows the size of the metadata for directories when using the ls command, not the size of its contents. The c...

Read

Sometimes it is necessary to change the PHP version used by one or many web applications on a server. This could be due...

Read

Some files are hidden in macOS by default. This could be due to the file beginning with a . (dot), for security reasons,...

Read

Sublime is a powerful text editor for programmers offering advanced functionality including the ability to customise its...

Read

Converting to lowercase and uppercase is a common task in JavaScript. This could be for preparing strings for case insen...

Read

Sometimes it is necessary to find out if a string contains a word or another substring in JavaScript. Fortunately, JavaS...

Read

The JavaScript reduce() method provides a clean way to loop through an iterable and do something with each value in a fu...

Read

Base64 encoding is used to convert strings containing text and numerical data into ASCII characters. This is useful when...

Read

The Python zip() method is used to combine iterables into an object of tuples. What makes this method powerful is that a...

Read

The string strip() method in Python removes the leading and trailing characters from a string and returns a new string....

Read

In most cases, JavaScript does not have direct access to local files on a users machine for obvious security reasons. It...

Read

A promise in an asynchronous task in JavaScript that will return a Promise object, which can be accessed using the then(...

Read

In order to compare arrays in JavaScript, we first have to define what we want to compare – should the comparison be bas...

Read

The modulus operator in JavaScript, also known as the remainder operator returns the remainder of a division. In this tu...

Read

Sometimes you might need to check, revert or reset a commit in your Git repository. This could be due to a mistake or be...

Read

In the previous tutorial, we covered how to add modified files to the staging area in Git and in this tutorial we will l...

Read

Latest

 thumbnail

Check if an Array is Empty in PHP

December 15, 2020

Attempting to access an empty array in PHP will probably cause an error to be thrown. It is therefore good practice to c...

 thumbnail

How to Check Python Version

December 15, 2020
 thumbnail

How to Check Ubuntu Version

December 14, 2020
 thumbnail

How to Get Substring from String in PHP

December 09, 2020

It is possible to get various substrings from a string using the substr() utility in PHP. In this tutorial, we will...

 thumbnail

How to get String Length in PHP

December 09, 2020

You can get the length of a string in PHP using the built-in strlen() utility. It takes one required argument, a string,...

 thumbnail

How to List Installed Packages in Ubuntu

December 07, 2020

It is useful to be able to quickly find out what packages are currently installed on your Ubuntu system, especially if y...

 thumbnail

Show Size of Directory Linux

December 07, 2020

Linux only shows the size of the metadata for directories when using the ls command, not the size of its contents. The c...

 thumbnail

How to Change PHP Version

December 07, 2020
 thumbnail

Show Hidden Files on Mac

December 03, 2020
 thumbnail

The Python zip() Method

November 04, 2020
 thumbnail

How to Make Commits in Git

October 13, 2020