Posts

Linux command: dirname

The dirname command comes handy to retrieve path where the file is saved. This article shows the usage of dirname command with example.

How to find the length of a list in Dart

The length property is one of the easiest ways to find the length of list in Dart. This is the most conventional technique adopted by all programmers.

Save Data To Offline Storage With Localforage

localForage an open-source JavaScript library that refines the experience of saving data to web browser databases like localStorage.

Flatten Array using Arr::flatten() in Laravel

This tutorial explains with syntax and an example of how to flatten a multi-dimensional array based on the value of depth specified in the Laravel framework.

An Intro to HTML <kbd> Tag

Use the HTML kbd semantic tag instead of code tag to denote our text as a keyboard input. Great for preparing documentations…

How To Reset An HTML Form With JavaScript

JavaScript allows us to programmatically reset an HTML form. This tutorial explains with an example of how to do it with vanilla or pure JavaScript.

How To Move Record From One Table To Another In Laravel

This tutorial explains with an example of how to move a record from one database table to another in PHP Laravel framework.

How To Drop Composite Indexes With Migration In Laravel

This tutorial explains how to create and drop composite keys with migration in PHP Laravel framework with syntax and example

How To Create Composite Indexes With Migration In Laravel

This tutorial explains how to create composite keys with migration in PHP Laravel framework with syntax and example

Identify whether the number is Even or Odd in JAVA

If any number is exactly divisible by 2 then it’s an even number else it’s an odd number. In this tutorial we’ll see how to check whether the provided number is even or odd number using Modulo(%).

Ways to declare unsigned columns in the Laravel migrations

Laravel allows developers to declare unsigned columns in different ways. As it’s required to handle the relationship between tables by just associating models with each other.

How to create collapsible content using HTML5 details tag

HTML5 provides <details>...</details> tag for the purpose of show and hide the contents on demand. Instead of showing large content on single page where user has to scroll explicitly, details widget comes handy to decrease your view length and looks much cleaner