Chandu yadav has Published 1226 Articles

CSS Child Selector

Chandu yadav

Chandu yadav

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

269 Views

Use the child selector, if you want to select all elements immediate children of a specified element.div > pExampleYou can try to run the following code to implement CSS Child SelectorLive Demo                    div > p {             background-color: orange;          }                              Para 1 in the div.                    Para 2 in the div.             Para 3 outside the div.     Output

Read and write AIFF and AIFC files using Python (aifc)

Chandu yadav

Chandu yadav

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

473 Views

Various functions in aifc module provide support for reading and writing AIFF (Audio Interchange File Format) and AIFF-C files. AIFF format is for storing digital audio samples in a file. Its newer version AIFF-C has the ability to compress the audio dataAudio file has number of parameters describing the audio ... Read More

CSS overflow-x

Chandu yadav

Chandu yadav

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

200 Views

The CSS overflow-x allows you to decide what to do with the left right edges of the content.ExampleYou can try to run the following code to implement the overflow-x propertyLive Demo                    div {             ... Read More

Locating and executing Python modules (runpy)

Chandu yadav

Chandu yadav

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

2K+ Views

The –m option of command line option searches for a given module and execute it as the __main__ module. This mechanism is internally supported by runpy module from Python's standard module that allows scripts to be located using the Python module namespace rather than the filesystem.This module defines two functionsrun_module()This ... Read More

Read and write WAV files using Python (wave)

Chandu yadav

Chandu yadav

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

20K+ Views

The wave module in Python's standard library is an easy interface to the audio WAV format. The functions in this module can write audio data in raw format to a file like object and read the attributes of a WAV file.The file is opened in 'write' or read mode just ... Read More

Working with hex numbers in MySQL?

Chandu yadav

Chandu yadav

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

312 Views

In order to work with hex, use the CONV() function to convert between bases. The syntax is as follows −SET anyVariableName = CONV(yourHexValue, 16, 10);To understand the above syntax, let us create a stored procedure. The query to create a stored procedure is as follows −mysql> DELIMITER // mysql> CREATE ... Read More

Role of CSS :focus Selector

Chandu yadav

Chandu yadav

Updated on 30-Jun-2020 07:44:17

170 Views

Use the :focus selector to select the element that has focus. You can try to run the following code to implement the :focus selectorExample                    input:focus {             background-color: green;          }                              Subject          Student:          Age:                    

Fletcher’s Checksum

Chandu yadav

Chandu yadav

Updated on 30-Jun-2020 07:38:08

3K+ Views

Fletcher checksum is an error – detection technique that uses two checksums to determine single-bit errors in a message transmitted over network channels. It is a block code technique that was devised by John G. Fletcher in 1970s at Lawrence Livermore Labs, USA.The checksums are created based on the data ... Read More

Change date format (in DB or output) to dd/mm/yyyy in PHP MySQL?

Chandu yadav

Chandu yadav

Updated on 30-Jun-2020 07:30:05

2K+ Views

You can change the date format in PHP using date() fucntion. The syntax is as follows −date(d/m/Y, yourDateTimeVariable);In PHP, convert string to date using strtodate(). Here is the PHP code used to format the datetime −$LogintDate = strtotime('2019-01-12'); echo date('d/m/Y', $LogintDate);The snapshot of code is as follows −The following is ... Read More

How to map keys to values for an individual field in a MySQL select query?

Chandu yadav

Chandu yadav

Updated on 30-Jun-2020 07:22:47

2K+ Views

You can use CASE statement in MySQL to map keys to values for an individual field in select query. The syntax is as follows −SELECT yourColumnName1, yourColumnName2, yourColumnName3, .........N (    CASE WHEN yourColumnName = 1 THEN 'ENABLED'    ELSE 'DISABLED'    END ) AS anyVariableName FROM yourTableName;You can use ... Read More

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