Page 15 of 57

How to delete specific line in file using Python

Last updated on August 29th, 2022 at 01:53 pmIn this tutorial we are going to delete a specific line in a file that starts with a string. Let us first create a simple text file ‘myfile‘, Content of the file is as follows. The python script we are going to create will delete a specific […]

How to read JSON using AngularJS

Last updated on November 22nd, 2024 at 12:35 pmAngularJS snippet sets up a basic application that reads data from a JSON file and displays it in a table. Below is an explanation of the script and suggestions to make it functional. AngularJS is a JavaScript library maintained by Google. It is a web application framework […]

How to Use HTML5 Geolocation Using Google Map

Last updated on November 11th, 2022 at 12:12 pmIn this script we will first identify a user’s geographical position using longitude and latitude from the browser using HTML5 Geolocation API. This is only available in HTML5 navigator.geolocation enabled web browsers. In this script the browser will first confirm with user to approve whether it can […]

Understanding the HTML5 Vibration API

Last updated on November 7th, 2024 at 12:18 pmWhen a web page is being loaded, the navigator.vibrate() function can be utilized to trigger vibrations on an iPhone or smartphone. This functionality can serve as a means to alert users, encouraging them to engage with specific features on your page or website. For example, Here the […]

« Older posts Newer posts »