Home

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 -

Hide Element after div is loaded dynamically

There is a normal procedure in javascript to hide any element based on page load or click event. For eg, when the page is loaded and DOM is built, using the below code snippet, a button is able to hide the element after it is clicked.

$.function($) {
  $("#button").click(function() {
    $('#div').hide();
  });
}

Similarly, an element can be hidden based on some condition when the page is loaded. Eg - consider the below snippet -

Reload parent page after AJAX modal popup is closed.

Modal popup window is more elegant way of showing information to the user in views,webform, etc. We can also insert an ajax modal popup link for a webform in a global text field of a view. When the view is rendered, the link is displayed to display the webform in an ajax dialog box, but many a times, when the webform is filled with newer values and saved on the ajax itself, the parent page, in this case, the view, is not refreshed to show the updated values in the form.