George John has Published 1167 Articles

Read and write tar archive files using Python (tarfile)

George John

George John

Updated on 26-Jun-2020 07:01:45

2K+ Views

The ‘tar’ utility was originally introduced for UNIX operating system. Its purpose is to collect multiple files in a single archive file often called tarball which makes it easy to distribute the files. Functions in tarfile module of Python’s standard library help in creating tar archives and extracting from the ... Read More

Hexadecimal Number System

George John

George John

Updated on 26-Jun-2020 06:21:48

13K+ Views

Hexadecimal Number System is one the type of Number Representation techniques, in which there value of base is 16. That means there are only 16 symbols or possible digit values, there are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Where A, ... Read More

How to display HTML in TextView in Android?

George John

George John

Updated on 26-Jun-2020 05:51:31

6K+ Views

In Some situations, we should need to show HTML as text in android. Here is the simple solution to show HTML in TextView in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step ... Read More

How to create a notification with NotificationCompat.Builder in Android?

George John

George John

Updated on 26-Jun-2020 05:38:04

3K+ Views

Before getting into NotificationCompact.Builder, we should know what is a notification in android. Notification is just like as a message showing system on the action bar. just like missed call notification as shown belowThis example demonstrates how to integrate Android Notification.Step 1 − Create a new project in Android Studio, ... Read More

Java Program to implement Binary Search on long array

George John

George John

Updated on 25-Jun-2020 15:03:26

176 Views

Binary search on a long array can be implemented by using the method java.util.Arrays.binarySearch(). This method returns the index of the required long element if it is available in the array, otherwise it returns (-(insertion point) - 1) where the insertion point is the position at which the element would ... Read More

CSS speak-as Speech Media property

George John

George John

Updated on 25-Jun-2020 14:57:43

84 Views

Set whether the text is to be spoken or spelled using the speak-as speech media property.You can spell the text, speak the numeral, etc. To spell out, the following is an exampleabbr {    speak-as: spell-out; }Above, I have used spell-out that spells out one letter at a time.

Animate CSS outline-width

George John

George John

Updated on 25-Jun-2020 14:50:01

326 Views

To implement animation on outline-width property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 350px;             height: 150px;             outline: 2px solid yellow;             animation: myanim 3s infinite;          }          @keyframes myanim {             50% {                outline-width: 10px;             }          }                     CSS outline-width property          

Java Program to sort an array in case-insensitive order

George John

George John

Updated on 25-Jun-2020 14:42:02

2K+ Views

An array can be sorted in case-insensitive order using the java.util.Arrays.sort() method. Also the java.text.Collator class is required as Collator.getInstance() is used to obtain the Collator object for the required locale.A program that demonstrates this is given as follows −Example Live Demoimport java.text.Collator; import java.util.Arrays; public class Demo {    public ... Read More

CSS voice-duration Speech Media property

George John

George John

Updated on 25-Jun-2020 14:41:51

145 Views

The voice-duration property in CSS is used where synchronization of speech is done with other media.The following is an example to implement the voice-duration speech media propertyp {    voice-duration: 5s; }Above you can set auto value also.The auto value rectify a used value corresponding to the duration of the speech ... Read More

Sort Elements in an ArrayList in Java

George John

George John

Updated on 25-Jun-2020 14:40:21

4K+ Views

In order to sort elements in an ArrayList in Java, we use the Collections.sort() method in Java. This method sorts the elements available in the particular list of the Collection class in ascending order.Declaration −The java.util.Collections.sort() method is declared as follows −public static void sort(List list)where list is an object ... Read More

Advertisements