Home   > Tips



Python Print Formatting

September 24, 2020

It used to be the case that the % (modulo operator) was the only option for formatting strings to print in Python. Now t...


How to Sort Dictionaries by Value In Python

September 22, 2020

Dictionaries in Python are used to store data in a key/value pattern. It is possible to sort dictionaries in a variety o...


How to Compare Strings in Python

September 20, 2020

A string in Python is an iterable data type with each character in the string having its own index. As a result, it is p...


How to use the Python String replace() Method

September 18, 2020

The Python string replace() method is used to find substrings in a string and replace them with a new value (or an empty...


How to Enumerate in Python

September 17, 2020

To keep track of iterations in Python we can add an index to an iterable using the enumerate() function. In this tu...


How to use Sets in Python

September 15, 2020

How to Remove Duplicates from an Array in JavaScript

September 14, 2020

Sometimes an array needs to only have unique values. In JavaScript, there are multiple ways to approach removing duplica...


How to Generate Random Numbers in JavaScript

September 13, 2020

We can generate random numbers in JavaScript by using the Math.random() function. In this tutorial, we will learn how to...


How to use enums in JavaScript

September 12, 2020

How to Create Custom Artisan Commands in Laravel

September 10, 2020

The artisan command interface is a really neat tool for working with the Laravel framework from the command-line. It can...


How to Round Decimals Up and Down in JavaScript

September 08, 2020

When working with numbers in JavaScript it is common to encounter decimals that need to be rounded to integers. Fortunat...


How to Get URL Parameters with JavaScript

September 07, 2020

URL parameters are used to send data server-side in a key-value pair format in an HTTP GET or POST request. Sometimes yo...


How to Encode, Decode and Use JSON Data in PHP

September 06, 2020

JSON is a popular way of storing and sending data because it can easily be interpreted by many programming languages, in...


How to Make a String Lowercase or Uppercase in PHP

September 04, 2020

Sometimes all characters in a string need to be changed from uppercase to lowercase and visa versa. Fortunately, PHP has...


How to Use For Loops in Python

September 02, 2020

How To Use Functions in Python

August 31, 2020

Functions in Python are used to contain blocks of code for performing specific tasks and to contain variables that are l...


How to Check if a Property of a JavaScript Object is Undefined

August 29, 2020

Before attempting to access a property of a JavaScript object you may want to check it exists so that your program doesn...


How to get Tomorrow's Date with JavaScript

August 27, 2020

Getting tomorrows date seems like something we might need a library to do for us in JavaScript. However, it is possible...


How to Add Toggle & Remove Class in JavaScript

August 24, 2020

When working with JavaScript for front-end web development, more often than not you will need to add and remove classes...


How to Redirect a Page to a New Location Using JavaScript

August 19, 2020

It is possible to redirect a user to a new URL in several ways using JavaScript. This can be helpful in a situation when...


How to Create Users in Linux Using the useradd Command

July 20, 2020

A Linux system is designed to be used by multiple users. As an administrator, you will need to know how to create and re...


How to Use for of and for in Loops in JavaScript

July 15, 2020

The new for of and for in JavaScript utilities provide a clean and simple way to perform loops. But in what scenarios sh...


How to Check PHP Version

July 11, 2020

How to Hash Passwords in PHP

July 08, 2020

Hashing passwords before storing them is an essential element in the security of a web application. It can be problemati...


How to Comment in PHP

July 01, 2020

When writing code in PHP it is good practice to make it easy to read. One aspect of this is making comments on the code...


How to Rename Files and Directories in Linux

June 27, 2020

Renaming files and directories is one of the fundamental operations in the Linux command-line. While renaming a single f...


How to Use Grep Command to Search Files in Linux

June 19, 2020

Grep is a powerful command-line search utility for Linux and other Unix-like operating systems. Its name stands for Glob...


How to Unzip Files in Linux

June 03, 2020

ZIP is a popular lossless compression method used to contain files and directories. It is especially useful to ZIP files...


How To Use Linux Screen

May 27, 2020

When working on a remote machine/server VIA SSH over long periods you will have experienced your internet connection dro...


Sublime Text - How to Install Upgrade and Remove Packages

May 21, 2020

Sublime Text is a great text editor for programming because of its huge array of built-in features and third-party packa...


Best Alternative Search Engines to Google

May 18, 2020

Google is a byword for web search and is used by the vast majority of people to find things on the net. While this is th...


How to Change the Default Search Engine in Safari Browser

May 17, 2020

The default search engine for the Safari browser is Google, which most people are happy using but other will want to cha...


How to show Laravel Version

May 16, 2020

Today we have a very short tip for how to show your Laravel version. Checking which version you are running is super sim...