George John has Published 1081 Articles

LCM of an array of numbers in Java

George John

George John

Updated on 25-Jun-2020 11:59:39

4K+ Views

L.C.M. or Least Common Multiple of two values, is the smallest positive value which the multiple of both values.For example multiples of 3 and 4 are:3 → 3, 6, 9, 12, 15 ...4 → 4, 8, 12, 16, 20 ...The smallest multiple of both is 12, hence the LCM of ... Read More

Perform Animation on CSS color property

George John

George John

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

134 Views

To implement animation on the color property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 200px;             height: 300px;       ... Read More

Set bottom-right corner border with CSS

George John

George John

Updated on 25-Jun-2020 11:40:32

262 Views

Use border-bottom-right-radius property for setting the border of bottom right corner. You can try to run the following code to implement border-bottom-right-radius propertyExampleLive Demo                    #rcorner {             border-radius: 25px;             border-bottom-right-radius: 90px;             background: #F5CBA7;             padding: 20px;             width: 400px;             height: 300px;          }                     Rounded border bottom corner!    

Perform Animation on background-position property with CSS

George John

George John

Updated on 25-Jun-2020 11:30:34

389 Views

Use the @keyframes to animate the background position. To implement animation on background-position property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 500px;         ... Read More

When running UPDATE … datetime = NOW(); will all rows updated have the same date/ time in mysql?

George John

George John

Updated on 25-Jun-2020 11:27:32

3K+ Views

The now() function returns the constant time that exhibits the time at which any statement began to execute. The sysdate() function returns the exact same datetime at which it executed the statement from MySQL 5.0.13.Suppose if you are updating datetime with now() in triggers or stored procedure, the now() method ... Read More

Get the index of last substring in a given string in MySQL?

George John

George John

Updated on 25-Jun-2020 11:06:50

3K+ Views

To get the index of last substring in a given string, use the char_length() function. First, we need to calculate string length and subtract the last sub string length from the entire length. The difference in length is index of substring.SyntaxThe syntax is as follows −select CHAR_LENGTH(yourColumnName) - LOCATE('yourDelimiter ', ... Read More

CSS nav-left property

George John

George John

Updated on 25-Jun-2020 10:36:49

182 Views

The nav-left property is used to move left when you have pressed on left arrow button in keypad. You can try to run the following code to implement the CSS nav-left propertyExampleLive Demo                    button {         ... Read More

Set quotation marks with CSS

George John

George John

Updated on 25-Jun-2020 10:19:20

184 Views

Use the quotes property to set quotation marks. You can try to run the following code to implement the quotes propertyExampleLive Demo                    #demo {             quotes: "'" "'";          }                                        This is demo text surrounded by quotes.                    

ldexp() in C++

George John

George John

Updated on 25-Jun-2020 10:10:32

105 Views

The function ldexp() is used to calculate the multiplication of a floating point value ‘a’ by the number 2 raised to the exponent power. It takes two arguments, first is a floating point number and second is an integer value.Here is the mathematical expression of ldexp(), ldexp() = a * ... Read More

islessgreater() in C/C++

George John

George John

Updated on 25-Jun-2020 09:40:25

253 Views

The function islessgreater() is used to check that first argument is less than or greater than the second one. It is declared in “math.h” header file in C language. It returns true, if successful otherwise false.Here is the syntax of islessgreater() in C++ language, bool islessgreater(value1 , value2);Here, value1 − ... Read More

Advertisements