Setting a Static IP Address on a Raspberry Pi [With Screenshots]
If you followed our article on how to SSH to your Raspberry Pi so that you can control it over a network, you might be tired of having to run the commands to find out what its current IP address is on...
View ArticleHow To Check your MySQL (Or MariaDB) Version [Easy]
Knowing which version of MySQL you are running is vital when making sure your code is compatible and that you are using supported features. Here’s how to find out which you are running. For example,...
View ArticleWhat is the ‘#!’ in Linux Shell Scripts?
#! – Usually nicknamed shebang, shabang, hashbang, poundbang – we’ll stick with shebang for the duration of this article. It is found at the beginning of countless Linux shell scripts – but what...
View ArticlePHP switch Statement [With Examples]
As you get more confident with your PHP code, your code will get more and more complex. The PHP switch statement simplifies your PHP logic, replacing messy if statements when trying to make simple...
View ArticlePHP foreach Loop [With Examples]
Looping over arrays and iterating over an object’s attributes form the foundation of a lot of application logic. The foreach construct in PHP can do both and is a crucial tool for building your...
View ArticleRead a File Line by Line in Python [3 Methods]
This tutorial will examine several methods and best practices for reading a file line-by-line in the Python programming language. Reading a file line-by-line will be useful for parsing log files, CSV...
View ArticleTop 3 Best Linux Distro for Gaming in 2021
This article will take you through our top 3 picks of the best Linux distributions for gaming in 2021. Best Linux Gaming Distros There are so many Linux distributions available for a multitude of...
View ArticlePython isinstance Function, With Example [Guide]
The Python isinstance() function determines the type or class of a variable. Read on to find out exactly how isinstance works, with an example below. What are Types? The type of a variable determines...
View ArticleJavascript String includes() Method – Check if a String Contains Another String
Here’s a guide on checking whether a string contains another string in the JavaScript programming language using the includes() method. includes() Syntax string.includes(search, start) Note that:...
View ArticleConcatenating (Joining) Strings in JavaScript [3 Methods]
Being able to concatenate (join) two or more strings together is pretty useful – you may be combining user input for storage in a single database column or doing the reverse – combining data from...
View ArticleRaspberry Pi & Python Powered Tank – Part II
This is part 2 of the Raspberry Pi and Python powered tank project. In this article, we attempt to display a live video stream and buttons to control the tank in a web UI. In the Last Episode In part...
View ArticlePHP strtotime() Function – Converting Text to Timestamp [With Examples]
The PHP strtotime() function takes a string containing text and converts it to a Unix Timestamp. Find out how to use this function in this guide. A Unix timestamp is a number representing the number of...
View ArticleHow to Install & Use Bash (Linux Shell) on Windows 10 [Tutorial]
Here’s how to set up and use the Linux shell on Windows – using the Windows Subsystem for Linux (WSL). This tutorial is intended for up-to-date versions of Windows 10 from 2020 onwards. I’m not going...
View ArticleWhat Does “./” (Dot Slash) Mean in Linux?
In Linux, *./ (dot slash) represents the relative path to the current working directory. This article lays out exactly what it means and how to use it. . (dot) and .. (double-dot) . (single dot) and .....
View Articletouch Command in Linux and Bash [with Examples]
The touch command in Linux updates the timestamps on a file or creates the file if it doesn’t exist. See some examples and use cases below. It sounds useless, but it’s actually useful. For example, if...
View ArticleSetting up a LAMP Stack on Ubuntu 20.04 (And Raspberry Pi)
This tutorial covers setting up a full LAMP (Linux, Apache, MySQL, PHP) web stack, including HTTP server, MySQL database, and PHP for app logic. This is commonly called a LAMP server – Linux, Apache,...
View ArticleHow To Fix Broken Packages in Ubuntu [Tutorial]
Package managers like apt are one of the big selling points of Linux operating systems and Ubuntu – a vast curated collection of software that can do just about anything, available with a few...
View ArticlePHP var_dump() Function [With Examples]
The PHP programming language includes various built-in variable types and allows you to create your own complex object classes. Third-party packages also come with their own object classes. So it’s...
View ArticlePython Scatter Plots with Matplotlib [Tutorial]
Graphs are awesome. If you disagree, you probably shouldn’t read on. The best (and easiest!) way to create graphs and scatter plots in Python is using the package Matplotlib. This tutorial explains...
View ArticleCreating Multiline Strings in JavaScript [With Examples]
There are several ways to create text that spans multiple lines in JavaScript – so here they are! Method 1: Backticks This is the best method, so it goes first. It is only compatible with ECMAScript 6...
View Article