Prabhas has Published 52 Articles

CSS3 Multi color Gradients

Prabhas

Prabhas

Updated on 29-Jun-2020 10:14:59

242 Views

You can try to run the following code to implement multi-color gradients in CSS3 −ExampleLive Demo                    #grad2 {             height: 100px;             background: -webkit-linear-gradient(red, orange, yellow, red, blue, green, pink); ... Read More

Using SAP JCO to connect SAP server to JAVA application

Prabhas

Prabhas

Updated on 25-Jun-2020 21:09:32

2K+ Views

I would suggest you to use below instead of JCO_AHOST and JCO_SYSNR:Use JCO_R3NAME with system ID of the target hostUse JCO_MSHOST with message server host name or IP addressUse JCO_MSSERV with message server port numberUse JCO_GROUP with the name of the logon groupYou can refer to below link to check ... Read More

Generating sound on the fly with JavaScript/ HTML5

Prabhas

Prabhas

Updated on 24-Jun-2020 14:01:11

430 Views

The Web Audio API is used to control audio, which allows you to choose audio sources. You can also add effects; create audio visualizations, panning, etc.ExampleYou can try to run the following code snippet to generate sound −// use one context per document. Here we are creating one context for ... Read More

How to specify if and how the author thinks the audio/video should be loaded when the page loads in HTML?

Prabhas

Prabhas

Updated on 24-Jun-2020 11:48:24

151 Views

You can try to run the following code to learn how to implement a preload attribute to allow the author to give a hint to the browser for the best user experience. Works for both and tags −Example                                        Your browser does not support the video element.          

With CSS set the element to retain the style values that are set by the last keyframe

Prabhas

Prabhas

Updated on 24-Jun-2020 06:01:36

207 Views

To set the elements to retain the style values set by the first keyframe, use the animation-fill-mode property with the forwards value.ExampleLive Demo                    div {             width: 150px;             height: 200px; ... Read More

Add space inside a form’s text field with CSS

Prabhas

Prabhas

Updated on 23-Jun-2020 15:26:31

10K+ Views

To add space inside a form’s text field, use the CSS padding property.You can try to run the following code to achieve this:ExampleLive Demo                    input[type = text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;          }                     Fill the below form,                Subject                    Student                    

How can we fetch all the data from MySQL table by using mysql_fetch_array() function, returning an array with the numeric index, in PHP script?

Prabhas

Prabhas

Updated on 22-Jun-2020 13:39:30

786 Views

The function mysql_fetch_array() will return an array with the numeric index if we use the constant MYSQL_NUM as the second argument to it. To illustrate it we are having the following example −ExampleIn this example, we are fetching all the records from a table named ‘Tutorials_tbl’ with the help of ... Read More

How can we get the total number of rows affected by MySQL query?

Prabhas

Prabhas

Updated on 22-Jun-2020 13:27:10

4K+ Views

MySQL ROW_COUNT() can be used to get the total number of rows affected by MySQL query. To illustrate it we are creating a procedure with the help of which we can insert records in a table and it will show us how many rows have been affected.Examplemysql> Delimiter // mysql> ... Read More

Managed code vs Unmanaged code in C#

Prabhas

Prabhas

Updated on 22-Jun-2020 13:15:33

4K+ Views

Unmanaged CodeApplications that are not under the control of the CLR are unmanagedThe unsafe code or the unmanaged code is a code block that uses a pointer variable.The unsafe modifier allows pointer usage in unmanaged code.Let us see the example −Examplestatic unsafe void Main(string[] args) {    int var = ... Read More

How can we discard a MySQL statement in the middle of its processing?

Prabhas

Prabhas

Updated on 22-Jun-2020 11:51:28

127 Views

With the help of \c command, we can discard a MySQL statement in the middle of its processing. Consider the following example in which in the middle of the statement we want to discard it then we use \c option for it −mysql> Select *    -> from\c mysql>The above ... Read More

Advertisements