Quantcast
Browsing all 314 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Looping over Array using JavaScript forEach(), With Examples

This article will show you how to use the JavaScript forEach() method to loop over an array. Pretty much any application of any complexity will require the looping over arrays (lists) of data. The...

View Article


Image may be NSFW.
Clik here to view.

PHP Timezones- How to Set/Change Timezone, With Examples

This article provides a combined tutorial for the PHP timezone functions, showing how to change the timezone globally or temporarily for a script/object. Timezones are a huge hassle. If your app has...

View Article


Image may be NSFW.
Clik here to view.

PHP vs JavaScript – The Best Choice For Your Project

PHP and JavaScript are the most commonly used programming languages on the web – so which one should you use for your project? Check out our recent article on JavaScript vs. Node.js for another...

View Article

Image may be NSFW.
Clik here to view.

Using the Python ‘reduce()’ Function to Aggregate Data, With Examples

This article will show you how to use the Python reduce() function to aggregate data from values in an iterable (iterables are things like lists, dictionaries, sets, or tuples – collections containing...

View Article

Image may be NSFW.
Clik here to view.

Using the Python ‘map()’ Function to Process a List, With Examples

This article will explain the map() function in Python and show you how to use it. The Python map() function applies a given function for all items in an iterable (iterables are things like lists,...

View Article


Image may be NSFW.
Clik here to view.

Using the Python ‘filter()’ Function to Filter a List, with Examples

This article will cover the syntax and usage of the filter function. It will work for both Python 2 and Python 3. The filter function in Python takes an iterable (iterables are things like lists,...

View Article

Image may be NSFW.
Clik here to view.

Using the Python ‘accumulate()’ Function to Aggregate Data, With Examples

This article will detail how to use the ‘accumulate()’ function in Python and provide some easy-to-follow example code. The accumulate() function in Python will process an iterable (iterables are...

View Article

Image may be NSFW.
Clik here to view.

PHP isset() – Check if A Variable is Set, With Examples

This article shows you how to use the PHP isset() function to check whether a variable exists and is populated. So, it’s checking if a variable is set. Why would you want to do this? You can’t perform...

View Article


Image may be NSFW.
Clik here to view.

How to Remove Duplicates From a List In Python, With Examples

This article explores several ways to remove duplicate items from lists in the Python programming language. Using The dict.fromkeys() Method To Remove Duplicates From a List in Python This is the...

View Article


Image may be NSFW.
Clik here to view.

What is the ‘this’ Keyword in JavaScript (Object-Oriented Programming)

The ‘this‘ keyword in JavaScript is a confusing concept for some – the meaning of ‘this‘ changes based on context.  This article explains what ‘this‘ is. What is Object-Oriented Programming...

View Article

Image may be NSFW.
Clik here to view.

How to use the PHP parse_url() Function, With Examples

The PHP parse_url() function processes a given URL and divides it into its individual components.  Here’s how to use it. parse_url() is often used to get the host/domain name from a given URL or the...

View Article

Image may be NSFW.
Clik here to view.

Checking If A File Exists in Python, With Examples

This article will outline several methods which can be used to check that a file exists/is readable in the Python programming language. You may wish to check whether a file exists before reading or...

View Article

Image may be NSFW.
Clik here to view.

How to Round Numbers Up/Down/Nearest in Python

This article will show you how to round numbers up, down, and to the nearest 1, 10 100 (or any number) in the Python programming language. Truncation vs. Rounding Truncation isn’t technically rounding,...

View Article


Image may be NSFW.
Clik here to view.

isdigit(), isalpha() and Other Checks in Python, With Examples

Both Python versions 2 and 3 provide several helpful string methods that let you find the string’s contents.  Here’s how to use them. The functions in this article are useful if you want to validate...

View Article

Image may be NSFW.
Clik here to view.

The Difference Between JavaScript and Node.js – Which Should I Use?

This article explains JavaScript and Node.js and their relationship with each other. What is JavaScript? JavaScript has become one of the most popular programming languages for building web...

View Article


Image may be NSFW.
Clik here to view.

The MySQL (and Maria DB) TRUNCATE Command, With Examples (And Warning!)

MySQL (and its functional equivalent, MariaDB) have two things named TRUNCATE – so watch out which one you want to use or suffer dire consequences! This article outlines the difference and usages of...

View Article

Image may be NSFW.
Clik here to view.

The MySQL/MariaDB ‘DISTINCT’ Statement, With Examples

The MySQL DISTINCT operator returns only unique values from a column from a database table; duplicates are not returned.  Here’s how to use it. The DISTINCT operator can be useful in many scenarios;...

View Article


Image may be NSFW.
Clik here to view.

The MySQL/MariaDB ‘SHOW INDEX’ Statement, With Examples

This article shows you how to use the MySQL SHOW INDEX statement to list the details of indexes and keys in a table. To use the SHOW INDEX statement, you will need to know which database and table you...

View Article

Image may be NSFW.
Clik here to view.

How to Change the Hostname in Linux (Debian, Ubuntu, Arch, RedHat)

This article will show you how to change the hostname for your Linux device (Debian, Arch, Ubuntu, or RedHat). The methods below should work for the vast majority of current and obsolete Linux...

View Article

Image may be NSFW.
Clik here to view.

How to List Users and Groups in Linux, With Examples

Linux supports multiple users and groups, allowing access to be granted to only the resources required.  Here’s how to list users, groups, and group membership. Separating users and groups ensures that...

View Article
Browsing all 314 articles
Browse latest View live