Arjun Thakur has Published 1109 Articles

How to save MySQL query output to excel or .txt file?

Arjun Thakur

Arjun Thakur

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

3K+ Views

To save MySQL query output into a text file, we can use the OUTFILE command. Let us first create a table. mysql> create table SaveintoTextFile -> ( -> id int, -> name varchar(100) -> ); Query OK, ... Read More

Comparison between C# and .NET Framework

Arjun Thakur

Arjun Thakur

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

437 Views

C# is a programming language and .NET framework is a software framework developed by Microsoft. .NET has Common Language Runtime (CLR), which is a virtual component of .NET framework. And framework is a large class of library. .NET not only has C#, but through it, you can work with VB, ... Read More

Python program to find missing and additional values in two lists?

Arjun Thakur

Arjun Thakur

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

1K+ Views

In set theory, the complement of a set A refers to elements not in A. the relative complement of A with respect to a set B, also termed the difference of Sets A and B. We just apply this principle here. Python has difference function. Algorithm Step 1 : ... Read More

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

361 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

398 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

268 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

164 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

366 Views

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

Advertisements