Arjun Thakur has Published 1109 Articles

Python getpass Module

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 06:31:13

1K+ Views

There are two functions defined in getpass module of Python’s standard library. They are useful whenever a terminal based application needs to be executed only after validating user credentials.getpass()This function prompts the user to enter a password. By default the keys entered by user in the terminal are not echoed. ... Read More

Binary Number System

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 06:17:07

7K+ Views

Binary Number System is one the type of Number Representation techniques. It is most popular and used in digital systems. Binary system is used for representing binary quantities which can be represented by any device that has only two operating states or possible conditions. For example, a switch has only ... Read More

how can I design custom toast message in Android?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 05:26:43

853 Views

Before getting into Custom Toast, we should know about what is toast. Toast is used to display message on current screen for sometime. After some time it doing to disappear. In this example we can learn how to customize toast message.This example demonstrate about how to create custom toast message ... Read More

Format floating point with Java MessageFormat

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 15:11:20

830 Views

To format message with floating point fillers in Java, we use the MessageFormat class. The MessageFormat class gives us a way to produce concatenated messages which are not dependent on the language. The MessageFormat class extends the Serializable and Cloneable interfaces.Declaration −The java.text.MessageFormat class is declared as follows −public class ... Read More

Perform Animation on CSS perspective property

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 15:00:07

101 Views

To implement animation on perspective property with CSS, you can try to run the following codeExampleLive Demo                    #demo1 {             position: relative;               margin-left: 120px;       ... Read More

Perform Animation on CSS margin-top

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:46:44

1K+ Views

To implement animation on margin-top property with CSS, you can try to run the following codeExampleLive Demo                    div {             background-color: orange;             animation: myanim 4s infinite;             color: white;          }          @keyframes myanim {             30% {                margin-top: 30px;             }          }                     Heading One                This is demo text.          

Java Program to implement Binary Search on double array

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:45:34

217 Views

Binary search on a double array can be implemented by using the methodjava.util.Arrays.binarySearch(). This method returns the index of the required double 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 be ... Read More

CSS rest-before Speech Media property

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:44:08

87 Views

The CSS rest-after property is useful for speech media to set pause before an element.Let us see an example of rest-before speech media propertyh1 {    rest-before: 15ms; }The time sets the pause in milliseconds.

How to schedule tasks in Java to run for repeated fixed-delay execution, beginning after the specified delay

Arjun Thakur

Arjun Thakur

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

985 Views

One of the methods in the Timer class is the void schedule(TimerTask task, long delay, long period) method. This method schedules tasks for repeated fixed-delay execution, beginning after the specified delay.In fixed-delay execution, each execution is scheduled with respect to the original execution time of the preceding execution. If an ... Read More

Perform Animation on CSS max-width

Arjun Thakur

Arjun Thakur

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

776 Views

To implement animation on max-width property with CSS, you can try to run the following codeExampleLive Demo                    div {             overflow: auto;             background-color: blue;         ... Read More

Advertisements