Abhinanda Shri has Published 69 Articles

How to execute a command and get the output of command within C++ using POSIX?

Abhinanda Shri

Abhinanda Shri

Updated on 03-Dec-2024 09:39:51

13K+ Views

You can use the popen and pclose functions to pipe to and from processes. The popen() function opens a process by creating a pipe, forking, and invoking the shell. We can use a buffer to read the contents of stdout keep appending it to a result string and return this ... Read More

Rotate div with skew y-axis using CSS

Abhinanda Shri

Abhinanda Shri

Updated on 29-Jun-2020 10:10:17

249 Views

You can try to run the following code to rotate div with skew y-axis using CSS −ExampleLive Demo                    div {              width: 300px;              height: 100px;         ... Read More

Rotate Out Up Left Animation Effect with CSS

Abhinanda Shri

Abhinanda Shri

Updated on 29-Jun-2020 09:19:28

71 Views

To create rotate out up left 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

Set Media Queries for different CSS style rules for different size devices

Abhinanda Shri

Abhinanda Shri

Updated on 29-Jun-2020 08:30:19

288 Views

To set media queries for different CSS style rules, you can try to run the following code −ExampleLive Demo                    body {             background-color: lightpink;          }          @media screen ... Read More

What is the use of "placement new" in C++?

Abhinanda Shri

Abhinanda Shri

Updated on 24-Jun-2020 05:46:44

440 Views

In a nutshell, placement new allows you to "construct" an object on memory that's already allocated to a given variable. This is useful for optimizations as it is faster to not reallocate and reuse the same memory that is already assigned to it. It can be used as follows −new ... Read More

How to use JavaScript Object.defineProperty?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 13:01:23

246 Views

If you want to define a new or modify a property on an object, then use the Object.defineProperty in JavaScript. Use the property like the following −Object.defineProperty(obj, prop, descriptor)The following are the parameters −obj – Property is defined on this object. prop – Name of the property descriptor  − The descriptor for the propertyExampleYou ... Read More

Is their JavaScript scroll event for iPhone/iPad?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 12:57:22

358 Views

Yes, iOS capture onscroll events for a scroll. This is called one-finger events. What the user is tapping or touching decides whether an event is generated or not.Here is panning gesture,Image credit − AppleIt can also be touch and hold gesture,Image credit − Apple

How can I write a script to use either W3C DOM or IE 4 DOM depending on their availability?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 07:25:37

131 Views

If you want to write a script with the flexibility to use either W3C DOM or IE 4 DOM depending on their availability, then you can use a capability-testing approach that first checks for the existence of a method or property to determine whether the browser has the capability you ... Read More

How to Debug JavaScript on iPad?

Abhinanda Shri

Abhinanda Shri

Updated on 23-Jun-2020 06:57:14

650 Views

To debug JavaScript on the iPad, you need to open the Safari browser.Now enable Web Inspector in iOS. In the Settings app, select Safari. Tap the Advanced option and start Web Inspector −Now select Web Inspector −Use a USB cable to connect the iPad to Mac. Safari opens and your iPad ... Read More

How to write PHP script by using ORDER BY clause inside it to sort the data of MySQL table?

Abhinanda Shri

Abhinanda Shri

Updated on 22-Jun-2020 14:18:23

266 Views

We can use the similar syntax of the ORDER BY clause into the PHP function – mysql_query(). This function is used to execute the SQL command and later another PHP function – mysql_fetch_array() can be used to fetch all the selected data.To illustrate it we are having the following example ... Read More

1 2 3 4 5 ... 7 Next
Advertisements