George John has Published 1167 Articles

HTML

George John

George John

Updated on 29-Jun-2020 09:05:05

208 Views

The autofocus attribute of the element is used to set focus to the button whenever page loads.Following is the syntax −Above, we have set autofocus to a button. Let us now see an example to implement the autofocus attribute of the element −Example Live Demo    Demo ... Read More

HTML target Attribute

George John

George John

Updated on 29-Jun-2020 09:03:11

126 Views

The target attribute of the element allows you to set where the linked document will open, for example, new window, same frame, parent frame, etc.Following is the syntax −Here,  _blank is used to open the linked document in new window or tab, _self opens the linked document in the ... Read More

How to set max_connections in MySQL Programmatically?

George John

George John

Updated on 29-Jun-2020 08:57:05

243 Views

To set max_connections in MySQL programmatically, you can use SET command. The syntax is as follows −SET GLOBAL max_connections=yourIntegerValue;Let us implement the above query to set maximum connections. The query is as follows −mysql> set global max_connections=1000; Query OK, 0 rows affected (0.04 sec)Check maximum connections are set or not, ... Read More

MySQL datatype to store month and year only?

George John

George John

Updated on 29-Jun-2020 08:12:26

5K+ Views

You need to store the date as the complete date time rather than storing only month and year. If you declare as a datetime then you can extract the month and year using MONTH() and YEAR() function from MySQL.The syntax is as follows −select MONTH(yourDateTimeColumnName) as anyVariableName1, YEAR(yourDateTimeColumnName) as anyVariableName2 ... Read More

Rotate In Up Right Animation Effect with CSS

George John

George John

Updated on 29-Jun-2020 07:19:39

128 Views

To create a rotate in upright animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;     ... Read More

Generate Random boolean in Java

George John

George John

Updated on 29-Jun-2020 06:14:19

12K+ Views

In order to generate Random boolean in Java, we use the nextBoolean() method of the java.util.Random class. This returns the next random boolean value from the random generator sequence.Declaration −The java.util.Random.nextBoolean() method is declared as follows −public boolean nextBoolean()Let us see a program to generate random boolean in Java −Example Live ... Read More

Implied addressing mode in 8085 Microprocessor

George John

George John

Updated on 29-Jun-2020 06:01:03

1K+ Views

In 8085 Instruction set, there is one mnemonic XCHG, which stands for eXCHanGe. This is an instruction to exchange contents of HL register pair with DE register pair. This instruction uses implied addressing mode. In the instruction, we don’t mention as “XCHG HL, DE”. It is implied that it will ... Read More

Pins of 8259

George John

George John

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

5K+ Views

Intel 8259 is designed as a 28-pin-programmable IC available as a package named DIP (Dual inline package). Its physical and functional pin diagrams are indicated below.PIN NameDescription and PurposesVcc and GndIt is the Power supply and ground pins. +5V power supply isused in this chip.D7-0For communication with the processor, there ... Read More

Instructions to complement/set Cy flag in 8085 Microprocessor

George John

George John

Updated on 27-Jun-2020 14:55:44

1K+ Views

In 8085 Instruction set, there are two instructions to control the Cy flag bit content. Thesemnemonics are STC and CMC. Both are 1-Byteinstructions. There hex codes are given in the following table – Mnemonics, OperandOpcode(in HEX)BytesSTC371CMC3F1Using STC instruction we can set the Cy flag bit to 1 irrespective of itsprevious value. ... Read More

Jump if not Carry (JNC) in 8085 Microprocessor

George John

George John

Updated on 27-Jun-2020 14:45:09

6K+ Views

In 8085 Instruction set, we are having one mnemonic JNC a16, which stands for “Jump if Not Carry” and “a16”stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen ... Read More

Advertisements