George John has Published 1081 Articles

How to log in as a different user on MySQL?

George John

George John

Updated on 30-Jun-2020 13:10:49

18K+ Views

If you want to login as a different user on MySQL, you need to use “mysql -u -p command”. The syntax is as follows to login as a different user.>mysql -u yourUsername -p After pressing enter key Enter password −To understand the above syntax, let us create a user in ... Read More

Fetch rows where first character is not alphanumeric in MySQL?

George John

George John

Updated on 30-Jun-2020 12:42:48

658 Views

To fetch rows where first character is not alphanumeric, you can use the following regular expression.Case 1 − If you want those rows that starts from a digit, you can use the following syntax −SELECT *FROM yourTableName WHERE yourColumnName REGEXP '^[0-9]';Case 2 − If you want those rows that start ... Read More

Role of CSS :nth-child(n) Selector

George John

George John

Updated on 30-Jun-2020 11:18:06

239 Views

Use the CSS :nth-child(n) selector to style every element that is the second child of its parent with CSS. You can try to run the following code to implement the :nth-child(n) selectorExampleLive Demo                    p:nth-child(4) {       ... Read More

Style every element that is the nth element of its parent with CSS

George John

George John

Updated on 30-Jun-2020 11:15:07

178 Views

Use the CSS :nth-of-type(n) selector to style every element that is the nth element of its parent. You can try to run the following code to implement the :nth-of-type(n) selectorExampleLive Demo                    p:nth-of-type(2) {         ... Read More

Bipolar Junction Transistor

George John

George John

Updated on 30-Jun-2020 10:57:50

19K+ Views

A Bipolar Junction Transistor (BJT) is a three terminal circuit or device that amplifies flow of current. It is solid state device that flows current in two terminals, i.e., collector and emitter and controlled by third device known as terminal or base terminal. Unlike a normal p-n junction diode, this ... Read More

Role of CSS :first-of-type Selector

George John

George John

Updated on 30-Jun-2020 09:48:52

161 Views

Use the CSS :first-of-type selector to style every element that is the first element of its parent with CSS.ExampleYou can try to run the following code to implement the :first-of-type selectorLive Demo                    p:first-of-type {             background: orange;          }                     This is demo text1.       This is demo text2.    

Conversions between color systems using Python (colorsys)

George John

George John

Updated on 30-Jun-2020 09:30:03

367 Views

The RGB color model, named so because of the initials of the three additive primary colors, is an additive color model in which red, green and blue light are added to reproduce various colors.The RGB color model is used in representation and display of images in electronic systems, such as ... Read More

Determine type of sound file using Python (sndhdr)

George John

George John

Updated on 30-Jun-2020 09:28:38

267 Views

The sndhdr module in Python's standard library provides utility functions that read the type of sound data which is in a file. The functions return a namedtuple(), containing five attributesfiletypestring representing 'aifc', 'aiff', 'au', 'hcom', 'sndr', 'sndt', 'voc', 'wav', '8svx', 'sb', 'ub', or 'ul'.frameratethe sampling_rate will be either the actual ... Read More

Sound-playing interface for Windows in Python (winsound)

George John

George John

Updated on 30-Jun-2020 09:25:07

3K+ Views

The winsound module is specific to Python installation on Windows operating system. The module defines following functions −Beep()When this function is called a beep is heard from the PC’s speaker. The function needs two parameters. The frequency parameter specifies frequency of the sound, and must be in the range 37 ... Read More

A Simplex Stop-and-Wait Protocol for a Noisy Channel

George John

George John

Updated on 30-Jun-2020 08:12:32

14K+ Views

Simplex Stop – and – Wait protocol for noisy channel is data link layer protocol for data communications with error control and flow control mechanisms. It is popularly known as Stop – and –Wait Automatic Repeat Request (Stop – and –Wait ARQ) protocol. It adds error control facilities to Stop ... Read More

Previous 1 ... 4 5 6 7 8 ... 109 Next
Advertisements