Blog

Latest blogs

Blogs

Designing for diversity

Designing with accessibility is essential for making digital products usable by everyone. Here are key aspects to consider in creating...

Read More

What is DOM in javascript?

In web development, the Document Object Model (DOM) is a programming interface for web documents. It represents the page so...

Read More

What is single sign-on?

Single sign-on (SSO) is a user authentication process that allows a user to access multiple applications with a single set...

Read More

What is a design system?

A design system is a set of standardized guidelines and components that can be used to build a consistent and...

Read More

What is NODE.JS

What is NODE.JS? NodeJS is a javascript runtime, its not a language or framework It is built on V8 javascript...

Read More

Canvas with starts background

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> body { width: 100%;...

Read More

Form field validations using regex javascript

What is a Regular Expression? As per wikipedia, A regular expression (shortened as regex or regexp; also referred to as rational expression) is a sequence of characters that specifies...

Read More

Validate a palindrome

A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar.  Return True if it”s a palindrome and False if not palindrome

Read More

Left rotate array using javascript

Left rotate array using javascript  Rotate array by d digits using javascript  Method 1 using shift() and push() Method 2 using ES6 Spread Operator and Slice()...

Read More

WordPress and docker setup

Below commands will setup WordPress, MySQL & PHPMyAdmin with a single command. Add the code below to “docker-compose.yaml” and run...

Read More

Docker Commands

Show commands & management commands Docker version info Show info like number of containers, etc WORKING WITH CONTAINERS Create an...

Read More

Check if a string is a palindrome or not using javascript

What is a palindrome? Palindrome is a word or phrase which reads same if reversed.  For example – if we reverse Racecar it will read the same both backward or forwards. A few examples of words that are palindrome are Noon, Racecar, Wow, Refer, etc.

Read More

Remove fasley values from an array using javascript

 function removeFalsy(arr) {     let newArr = [];     for ( let i = 0 ; i < arr.length; i++ ) {         if( Boolean(arr[i]) === true) {             newArr.push(arr[i]);         }     }     return newArr;   }   //Falsy values are : false, null, 0, "", undefined, and NaN.   console.log(removeFalsy([7, "ate", "", false, 9])); //[7, "ate", 9]

Read More

Laravel dusk testing cheat sheet

//test a URI $browser->visit('/login'); //test a route $browser->visitRoute('login'); //browser back $browser->back(); $browser->forward(); //browser forward $browser->refresh(); //refresh page $browser->resize(1920, 1080); //resize...

Read More

Reverse a string using javascript

//Reverse a string using Javascript const reverseString = (str) => { return str.split('').reverse().join(''); } console.log(reverseString("awesome")); //result will be emosewa

Read More

Reverse a number using javascript

//reverse a number using javascript const reverse_digit = (n) => { let strrev = n.toString(); return strrev.split('').reverse().join(''); } console.log(reverse_digit(423)); //324

Read More

Generate a random expression using PHP

function generateRandomExpression() { $operand1= rand(1,100); $operand2 = rand(100, 200); $operators = array("*", "/", "-", "%","+"); shuffle($operators) foreach($operators as $value){ $result...

Read More
Scroll to Top