Arjun Thakur has Published 1247 Articles

How to create a static class in C++?

Arjun Thakur

Arjun Thakur

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

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

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

Global and Local Variables in Python?

Arjun Thakur

Arjun Thakur

Updated on 24-Nov-2022 05:40:27

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

What do you know about the train with no engine India just launched?

Arjun Thakur

Arjun Thakur

Updated on 27-Apr-2022 11:55:32

Indian railway has recently launched a high-speed train, which has no engine. It’s named Train 18 or T18. Its first journey was from Delhi to Bhopal. T8 is the first high-speed Indian train, which ran with a speed of 160 km/h.The manufacturing of this train has been done in Chennai’s ... Read More

HTML5 Canvas Degree Symbol

Arjun Thakur

Arjun Thakur

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

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

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

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

Align flex items at the center of the container with CSS

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 11:26:45

Use the justify-content property with value center to align the flex-items to the center.ExampleYou can try to run the following code to implement the center valueLive Demo                    .mycontainer {             display: flex;     ... Read More

Align the flex items in the middle of the container in CSS

Arjun Thakur

Arjun Thakur

Updated on 06-Jul-2020 08:23:19

Use the align-items property with value center to align flex items in the middle.ExampleYou can try to run the following code to implement the center valueLive Demo                    .mycontainer {             display: flex;         ... Read More

Display the flex lines in the end of the container with CSS

Arjun Thakur

Arjun Thakur

Updated on 04-Jul-2020 08:10:53

Use the align-content property with value flex-end to set the flex lines in the end.ExampleYou can try to run the following code to implement the flex-end valueLive Demo                    .mycontainer {             display: flex;       ... Read More

1 2 3 4 5 ... 125 Next
Advertisements