Append to Bash Array

The array data type is used in bash to store multiple data. The new data can be inserted at the end of an array variable in various ways. Bash has no built-in function like other programming languages to append new data in bash array. How you can insert single and multiple data at the end of the array in bash is shown in this tutorial.

Continue reading

PHP JSON Parsing

JSON stands for JavaScript Object Notation. JSON is a standard lightweight data-interchange format which is quick and easy to parse and generate (a data-interchange format is a text format which is used to interchange or exchange data between different platforms and operating systems).

Continue reading

Setup your Raspberry Pi 4 and Install Mathematica

Watch out! This tutorial is over 12 months old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Many of you will be working from home this term, and some of you will be using a Raspberry Pi to carry out various assignments, including using Mathematica – an incredibly powerful computation engine for processing data and math. These instructions will help you get started.

Continue reading

WordPress function to list site cookies

Watch out! This tutorial is over 1 year old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

The EU Cookie Directive (as it is popularly known) is a 2009 amendment to the E-Privacy Directive. It requires companies to obtain your consent to place and access data (like cookies) on your digital device (like your laptop). While many plugins exist to control cookies on your WordPress website, there is a shocking lack of them to simply LIST the cookies used.. so let’s write our own!

Continue reading

The PHP mail() Function

Watch out! This tutorial is over 2 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Sending email messages are very common for a web application, for example, sending welcome email when a user create an account on your website, sending newsletters to your registered users, or getting user feedback or comment through website’s contact form, and so on.

Continue reading