Arjun Thakur has Published 1176 Articles

How can I restore the MySQL root user full privileges?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

2K+ Views

We can restore the MySQL root user full privileges with the help of UPDATE command. Firstly, you need to stop mysqld and restart it with the --skip-grant-tables option. After that, connect to the mysqld server with only mysql (i.e. no -p option, and username may not be required). Issue ... Read More

Events vs Delegates in C#

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

309 Views

C# events are used to resolve the hassles in Delegates. One an easily override Delegate properties and that can eventually lead to errors in the code. To avoid this, C# uses Events and defines wrappers around Delegates. Events in C# To use Event, you should define delegate first. Event is ... Read More

Python program to find the length of the largest consecutive 1's in Binary Representation of a given string.

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

386 Views

Given the number, find length of the longest consecutive 1's in its binary representation. Example Input: n = 15 Output: 4 The binary representation of 14 is 1111. Algorithm Step 1: input the number. Step 2: use one counter variable c=0. Step 3: Count the number of ... Read More

Python Boolean Operations

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

253 Views

The basic Boolean operations are and, or, not operations. The and operation − The basic syntax of and operation is: x and y. It indicates that when the x is false, then return x, otherwise returns y. The or operation −The basic syntax of or operation is: x ... Read More

Python Set Types

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

3K+ Views

The sets are basically an unordered collection of distinct hash-table objects. We can use the set for some mathematical operations like set union, intersection, difference etc. We can also use set to remove duplicates from a collection. The set do not record the element position. It does not support the ... Read More

Use of Ionic as desktop web application with HTML5

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:22

154 Views

Ionic is an HTML5 Mobile App Development Framework targeted at building hybrid mobile apps. Think of Ionic as the front-end UI framework that handles all the look and feel and UI interactions your app needs to be compelling. Kind of like "Bootstrap for Native", but with the support for a ... Read More

Sum of all proper divisors of a natural number in java

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:22

319 Views

Following is the Java program which prints all the sum of all the divisors of a given number.

Role of CSS Filters

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:22

107 Views

Use CSS filters to add special effects to text, images and other aspects of a webpage without using images or other graphics. If you are developing your site for multi browsers, then it may not be a good idea to use CSS filters because there is a possibility that it would ... Read More

CSS Grid Gaps

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:22

128 Views

The space as shown in the following figure, between rows and columns are called Grid Gaps

Maximum size of a element in HTML

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:22

1K+ Views

 All web browsers limit the canvas element’s width, height, and area.For Google Chrome, the maximum allowable width and height are 32, 767 pixels and the maximum allowable area is 268, 435, 456 pixels.For Firefox, the maximum allowable width and height are 32, 767 pixels and the maximum allowable area is 472, ... Read More

Advertisements