Rishi Raj has Published 131 Articles

Python program to check whether a given string is Heterogram or not

Rishi Raj

Rishi Raj

Updated on 23-Jun-2020 16:12:12

1K+ Views

Here one string is given then our task is to check weather a given string is Heterogram or not.The meaning of heterogram checking is that a word, phrase, or sentence in which no letter of the alphabet occurs more than once. A heterogram may be distinguished from a pangram which ... Read More

How to set the minimum width of an element with JavaScript?

Rishi Raj

Rishi Raj

Updated on 23-Jun-2020 13:25:42

657 Views

Use the minWidth property in JavaScript to set the minimum width. You can try to run the following code to set the minimum width of an element with JavaScript −ExampleLive Demo                    #box {             ... Read More

How to set the left position of a positioned element with JavaScript?

Rishi Raj

Rishi Raj

Updated on 23-Jun-2020 12:31:43

827 Views

Use the left property to set the left position of a positioned element, such as a button.ExampleYou can try to run the following code to set the left position of a positioned element with JavaScript −Live Demo                    #myID { ... Read More

How to set a background image to be fixed with JavaScript DOM?

Rishi Raj

Rishi Raj

Updated on 23-Jun-2020 09:21:58

405 Views

To set the background image to be fixed in JavaScript, use the backgroundAttachment property. It allows you to set an image that won’t scroll.ExampleYou can try to run the following code to learn how to work with backgroundAttachment property with JavaScript −Live Demo           Click ... Read More

How can we use INFORMATION_SCHEMA to get the details about triggers in a particular database?

Rishi Raj

Rishi Raj

Updated on 22-Jun-2020 12:06:26

67 Views

It can be done with the help of the following statement −mysql> select * from information_schema.triggers where     -> information_schema.triggers.trigger_schema like '%query%'\G *************************** 1. row ***************************             TRIGGER_CATALOG: def              TRIGGER_SCHEMA: query               ... Read More

How can we test for the existence of any record in MySQL subquery?

Rishi Raj

Rishi Raj

Updated on 22-Jun-2020 08:45:22

114 Views

We can use MySQL EXIST operator to test for the existence of a record in the subquery. In other words, we can say that EXIST operator checks if a subquery returns any rows. The syntax of using EXIST operator with MySQL subquery is as follows −SyntaxWHERE EXISTS (Subquery)The above EXIST ... Read More

How can we change the default rules used by the parser for parsing names of built-in functions?

Rishi Raj

Rishi Raj

Updated on 22-Jun-2020 05:52:04

51 Views

The default rules used by the parser for parsing names of built-in-function can be changed by enabling IGNORE_SPACE SQL mode. When we enable this mode, the parser relaxes the requirement that there be no whitespace between the function name and the following parenthesis. For example, after enabling IGNORE_SPACE SQL mode ... Read More

Generating password in Java

Rishi Raj

Rishi Raj

Updated on 21-Jun-2020 15:20:45

11K+ Views

Generate temporary password is now a requirement on almost every website now-a-days. In case a user forgets the password, system generates a random password adhering to password policy of the company. Following example generates a random password adhering to following conditions −It should contain at least one capital case letter.It ... Read More

File Handling in Java using FileReader and FileWriter

Rishi Raj

Rishi Raj

Updated on 21-Jun-2020 14:23:52

1K+ Views

Java Byte streams are used to perform input and output of 8-bit bytes, whereas Java Character streams are used to perform input and output for 16-bit unicode. Though there are many classes related to character streams but the most frequently used classes are, FileReader and FileWriter. Though internally FileReader uses ... Read More

Final Arrays in Java

Rishi Raj

Rishi Raj

Updated on 21-Jun-2020 14:07:08

1K+ Views

A final variable can be explicitly initialized only once. A reference variable declared final can never be reassigned to refer to a different object.However, the data within the object can be changed. So, the state of the object can be changed but not the reference. As an array is also ... Read More

Advertisements