Home

Compress Extract files using tar command

The command "tar" on Linux or Mac OS terminal is used to compress the folder into a tar/archive file. This page helps in the basic usage and explains how to compress extract files using tar command. The description from the man page says - 

tar creates and manipulates streaming archive files.  This implementation can extract from tar, pax, cpio, zip, jar, ar, xar, rpm, 7-zip, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, zip, 7-zip, and shar archives.

Disable elements on drupal webform

Drupal 8 provides an easy way to simply edit the component or element on the drupal webform and disable elements using the checkbox displayed on the form.

 

disable elements

However, there could be different scenarios where we might need to disable few elements on specific cases that might not available on drupal webform conditional. Eg - Disable elements for certain user roles.

Top 3 Features added in iOS 13.3

iOS 13.3 was released on December 10, 2019. This is not a huge upgrade as iOS 13.2 was, but there are some new features added and a huge list of bug fixes done in core apps, settings, etc. You can view the available version updates at Settings > General > Software Update. This is for all iOS 13-compatible devices. This means the iPhone 6S and newer and the current iPod touch 7th generation. Below is the list of top 3 features added in iOS 13.3 version.

Get days in Month using PHP

Days in month could vary based on month and year value. From https://www.timeanddate.com/calendar/months/

Each month has either 28, 30, or 31 days during a common year, which has 365 days. During leap year, which occur nearly every 4 years, we add an extra (intercalary) day, Leap Day, on 29 February, making leap years 366 days long.

 The exact function which returns a correct number of days in month is shown below -

Basic Python Notes with examples

Python is an object-oriented programming language which is gaining popularity in building complex applications. It is used in different fields, eg create web applications, handle big data, perform complex mathematics and also considered by data scientist to analyze their problems. This page is a simple writeup of basic python notes, the code statements which are normally used in almost all the scenarios.

Squash, fixup and remove commits on GitHub

Multiple numbers of commits on a pull-request can be merged into a single commit using the squash and fixup option provided by Github. This article is to check how to merge different commits on your Github repository or remove any unwanted commits on your pull request.

Consider the following example to do this -

1. Create a local git branch on your terminal. 

$ git checkout upstream/master -b test_branch

where -