Arjun Thakur has Published 1025 Articles

How do I show the schema of a table in a MySQL database?

Arjun Thakur

Arjun Thakur

Updated on 01-Sep-2023 02:31:23

101K+ Views

To show the schema, we can use the DESC command. This gives the description about the table structure. The following is the syntax. DESCRIBE yourDatabasename.yourTableName; Let us implement the above syntax. mysql> DESCRIBE business.student; The following is the output. +-------+--------------+------+-----+---------+-------+ | Field | Type         | Null | Key | ... Read More

Global and Local Variables in Python?

Arjun Thakur

Arjun Thakur

Updated on 31-Aug-2023 02:52:46

13K+ Views

There are two types of variables: global variables and local variables. The scope of global variables is the entire program whereas the scope of local variable is limited to the function where it is defined.Example def func(): x = "Python" s = "test" ... Read More

Increment and Decrement Operators in Python?

Arjun Thakur

Arjun Thakur

Updated on 23-Aug-2023 14:01:38

66K+ Views

Python does not have unary increment/decrement operator (++/--). Instead to increment a value, usea += 1to decrement a value, use −a -= 1Example>>> a = 0 >>> >>> #Increment >>> a +=1 >>> >>> #Decrement >>> a -= 1 >>> >>> #value of a >>> a 0Python does not provide ... Read More

Downloading files from web using Python?

Arjun Thakur

Arjun Thakur

Updated on 22-Aug-2023 00:38:16

162K+ Views

Python provides different modules like urllib, requests etc to download files from the web. I am going to use the request library of python to efficiently download files from the URLs.Let’s start a look at step by step procedure to download files using URLs using request library−1. Import moduleimport requests2. ... Read More

Java and multiple inheritance

Arjun Thakur

Arjun Thakur

Updated on 10-Aug-2023 12:01:11

11K+ Views

In Java, we use inheritance to allow the creation of a hierarchical classification of classes and objects. As the name suggests, inheritance is the ability of a class to inherit members of another class. The class whose properties are inherited is called a superclass whereas the class that inherits a ... Read More

How to create a static class in C++?

Arjun Thakur

Arjun Thakur

Updated on 13-Apr-2023 00:15:52

27K+ Views

There is no such thing as a static class in C++. The closest approximation is a class that only contains static data members and static methods.Static data members in a class are shared by all the class objects as there is only one copy of them in the memory, regardless ... Read More

Using OpenCV in Python to Cartoonize an Image

Arjun Thakur

Arjun Thakur

Updated on 31-Mar-2023 15:38:22

1K+ Views

Currently there are lots of professional cartoonizer applications available in the market but most of the them are not freeware. In order to get the basic cartoon effect, we just need the bilateral filter and some edge dectection mechanism. The bilateral filter will reduce the color palette, which is essential ... Read More

HTML5 Canvas Degree Symbol

Arjun Thakur

Arjun Thakur

Updated on 05-Apr-2022 12:35:42

449 Views

For HTML5 Canvas degree symbol, try to run the following code −                          body {             margin:5em;             background:#eee;             text-align:center ... Read More

How to draw an oval in HTML5 canvas?

Arjun Thakur

Arjun Thakur

Updated on 16-Dec-2021 12:13:41

941 Views

You can try to run the following code to draw an oval in HTML5 canvas −Example                                  // canvas          var c = document.getElementById('newCanvas');         ... Read More

How to resize Image in Android App?

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 19:40:02

3K+ Views

This example demonstrate about How to resize Image in Android App.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.           ... Read More

Advertisements