Varun has Published 83 Articles

What are start angle and end angle of arc in HTML5 canvas?

varun

varun

Updated on 24-Jun-2020 14:04:27

271 Views

The arc() function has the following definition that shows the usage of start and ends angle −arc(x, y, radius, startAngle, endAngle, anticlockwise)This method has the following parameters −x and y are coordinates of the circle’s center.Radius is the circle radiusStartAngle and EndAngle define the start and endpoints of the arc ... Read More

Does HTML5 allow you to interact with local client files from within a browser?

varun

varun

Updated on 24-Jun-2020 14:00:39

256 Views

HTML5 allows us to interact with local client files (local client files are the files that are locally stored in the user’s computer). This is possible because HTML5 provides powerful APIs (Application Programming Interfaces) which are the interfaces with the help of which binary data and user’s local file system ... Read More

What are CSS Transitions?

varun

varun

Updated on 23-Jun-2020 16:26:17

187 Views

With the transition effect, you can easily change the property values. You can also set a duration.Let us try to change the height of an element:ExampleLive Demo                    div {             width: 150px;     ... Read More

Change the position on transformed elements with CSS

varun

varun

Updated on 23-Jun-2020 15:57:51

201 Views

To change the position on transformed elements with CSS, use the transform-origin property.You can try to run the following code to change the position:ExampleLive Demo                    .demo1 {             width: 300px;           ... Read More

Set the navigation bar to stay at the bottom of the web pagewith CSS

varun

varun

Updated on 23-Jun-2020 15:00:04

3K+ Views

To set the navigation bar at bottom, use position: fixed property, with bottom property.You can try to run the following code to implement a menu that stays on the bottom, ExampleLive Demo                    ul {           ... Read More

Which PHP function is used to release cursor memory associated with MySQL result?

varun

varun

Updated on 22-Jun-2020 14:06:01

168 Views

PHP uses mysql_free_result() function to release the cursor memory associated with MySQL result. It returns no value.SyntaxMysql_free_result(result);Followings are the parameters used in this function −Sr.NoParameter & Description1ResultRequired- Specifies a result set identifier returned by mysql_query(), mysql_store_result() or mysql_use_result()Read More

How can we use MySQL REPLACE statement to prevent of insertion of duplicate data?

varun

varun

Updated on 22-Jun-2020 13:26:43

339 Views

We can use the REPLACE statement while inserting the data to prevent the insertion of duplicate data. If we will use the REPLACE command rather than the INSERT command then if the record is new, it is inserted just as with INSERT else if it is a duplicate, the new record ... Read More

String Formatting with ToString in C#

varun

varun

Updated on 22-Jun-2020 13:06:18

589 Views

To format a string, first set the value −int value = 55;Now to format the integer, use ToString and let’s say we need to set it for three places −value.ToString("000");The following is the complete code −Example Live Demousing System; public class Program {    public static void Main() {     ... Read More

Generating random numbers in C#

varun

varun

Updated on 22-Jun-2020 12:51:46

2K+ Views

To generate random numbers, use Random class.Create an object −Random r = new Random();Now, use the Next() method to get random numbers in between a range −r.Next(10, 50);The following is the complete code −Example Live Demousing System; public class Program {    public static void Main() {       Random ... Read More

How can we get only unique values of a column in MySQL result set?

varun

varun

Updated on 22-Jun-2020 12:08:27

1K+ Views

While querying data from a MySQL table, we may get duplicate values from a column. With the help of the DISTINCT clause in the SELECT statement, we can get rid of duplicate data in the result set.SyntaxSELECT DISTINCT Columns FROM Table_name WHERE conditions;ExampleFor example, we have a table named ‘tender’ ... Read More

Advertisements