Author: CodeBuddy

Home » Articles Posted by CodeBuddy (Page 6)
JS ES2021

New features in ES2021 JavaScript

Features of ES2021 replaceAll() Promise.any &&=, ||= and ??= Numeric separators   String replaceAll() Method JavaScript string has a replace() method. It can be used to replace a string with another string. const txt = “The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?”; const newTxt = txt.replace(‘dog’, ‘monkey’); console.log(newTxt);…

Read More

Using AJAX in WordPress

What is AJAX? AJAX is a combination of HTML, CSS and JavaScript/jQuery code that enables to send data to a script, next to receive it and process the response without reloading the page. How AJAX works in WordPress? WordPress Ajax acts as a special Ajax dedicated WordPress action and is capable of handling the server…

Read More

Getting started with Shell Scripts

Shell script is a collection of Linux commands saved together in a file and executed one after another. Check out some useful commands you need to know. Below is a simple shell script that resets the previous terminal screen and prints “Hello World”. Start your Linux terminal or guake terminal and type the command nano hello.sh…

Read More

Import CSV data file into MySQL using PHP

CSV files are known as comma separated values. It is one of the most preferred data storage methods. PHP supports various data formats like csv, json etc. and provides functions to handle such data formats. We can parse and store csv records in database using core PHP. Steps to import data from CSV data file…

Read More

HHVM vs PHP

PHP is the most popular scripting languages used for web development. PHP 7 is a new version of language that is been optimized for fast performance. It also has a rival HHVM (HipHop Virtual Machine) — a virtual tool that executes PHP code. There is a bit difference between these two, let’s have a look…

Read More

ProgressDialog without dimmed screen in Android

The Android ProgressDialog is a UI component used to indicate that a task is ongoing. It typically displays a spinning wheel or a progress bar to inform users of the task’s progress. It’s commonly used for tasks like file downloads or data loading, enhancing the user experience by providing visual feedback.   ProgressDialog Android’s ProgressDialog…

Read More