Monday, January 29, 2018

How to get Geolocation with out using domain name or SSL connection

In this post I will show how to get Geolocation with out using domain name or SSL connection. In the previous POST I had shown how to get Geolocation using html.
In the previous post its not possible to get Geolocation with out using SSL connection or Domain Name.

OutPut:

How to Get Geolocation in HTML

In this post I will show how to get Geolocation.

OutPut:


Tuesday, December 12, 2017

How to create a file, write, read and append to file in python

In the post I will show how to create a File, Write, read and append in python.

Before that lets see the File Modes in Python


File Modes in Python
Mode
Description
'r'
Open a file for reading. (by default)
'w'
Open a file for writing. Creates a new file if it does not exist or deleates the file if it exists.
'x'
Open a file for exclusive creation. If the file already exists, the operation fails.
'a'
Open for appending at the end of the file without replacing it. Creates a new file if it does not exist.
't'
Open in text mode. (by default)
'b'
Open in binary mode.
'+'
Open a file for updating (reading and writing)


Saturday, July 1, 2017

How to set up your user account to Hibernate on critical battery level in Ubuntu

In this post I will show how to hibernate Ubuntu on critical battery level.
In the previous posts I had shown How to...
Set critical battery percentage using the command in terminal

gsettings get org.gnome.settings-daemon.plugins.power percentage-critical

To modify this value, set to 20% by using the below command in the terminal