When did Asia Cup cricket tournament start?

Vihan Rodrigues
Updated on 30-Jul-2019 22:30:24
Recently, India beat Bangladesh by three wickets in the final of Asia Cup and clinched the Asia Cup title once again. However, do you know when this tournament first occurred? Let's dig out the history.Actually, when the Asia Cricket Council was formed in 1983, the council came up with this idea, which was conceptualized in 1984 and the first Asia Cup occurred in Sharjah where Asia Cricket Council has its headquarter and remained there till 1995.Initially, Asia Cup was only an ODI tournament and used to happen in every two years, but now it takes place in both ODI and ... Read More

Automatic Repeat reQuest (ARQ)

Ankith Reddy
Updated on 30-Jul-2019 22:30:24
Automatic Repeat ReQuest (ARQ) is a group of error – control protocols for transmission of data over noisy or unreliable communication network. These protocols reside in the Data Link Layer and in the Transport Layer of the OSI (Open Systems Interconnection) reference model. They are named so because they provide for automatic retransmission of frames that are corrupted or lost during transmission. ARQ is also called Positive Acknowledgement with Retransmission (PAR).ARQs are used to provide reliable transmissions over unreliable upper layer services. They are often used in Global System for Mobile (GSM) communication.Working PrincipleIn these protocols, the receiver sends an ... Read More

Creating a Multilevel Inheritance Hierarchy in Java

Jai Janardhan
Updated on 30-Jul-2019 22:30:24
Inheritance involves an object acquiring the properties and behaviour of another object. So basically, using inheritance can extend the functionality of the class by creating a new class that builds on the previous class by inheriting it.Multilevel inheritance is when a class inherits a class which inherits another class. An example of this is class C inherits class B and class B in turn inherits class A.A program that demonstrates a multilevel inheritance hierarchy in Java is given as follows:Example Live Democlass A {    void funcA() {       System.out.println("This is class A");    } } class B extends ... Read More

Arithmetic of Number Systems\

Chandu yadav
Updated on 30-Jul-2019 22:30:24
A number system is a set of symbols used to represent values derived from a common base or radix. In a number, the value of each digit can be determined using digit, position of the digit in the number, and the base of the number system. The base is defined as the total number of digits are available in the number system. This is known as positional number system.Number SystemBaseDigit UsedBinary20, 1Octal80, 1, 2, 3, 4, 5, 6, 7Decimal100, 1, 2, 3, 4, 5, 6, 7, 8, 9Hexadecimal160, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, ... Read More

Change value from 1 to Y in MySQL Select Statement?

George John
Updated on 30-Jul-2019 22:30:24
You can use IF() from MySQL to change value from 1 to Y. The syntax is as follows:SELECT IF(yourColumnName, ’Y’, yourColumnName) as anyVariableName FROM yourTableName;To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> create table changeValuefrom1toY    -> (    -> Id int NOT NULL AUTO_INCREMENT,    -> isValidAddress tinyint(1),    -> PRIMARY KEY(Id)    -> ); Query OK, 0 rows affected (0.76 sec)Now you can insert some records in the table using insert command. The query is as follows:mysql> insert into changeValuefrom1toY(isValidAddress) values(1); Query OK, 1 row affected (0.22 ... Read More

Netflix original Sacred Games is raising controversies all over !!

Prasanna Kotamraju
Updated on 30-Jul-2019 22:30:24
India's first Netflix original series directed by Vikramaditya Motwane and Anurag Kashyap is already making waves in google top trends with more than 1 lakh views. This is a game changer in India's nascent digital video-on-demand industry.The directors and producers of the show have taken care of all requisites to create an entertaining show that has a combination of crime, drama, and politics. “The initial feedback in terms of viewership is more than what any Indian content has ever received on the platform, ” said Varun Grover, one of the writers working on the series.They have released 8 power packed ... Read More

How to bulk update MySQL data with a single query?

Jennifer Nicholas
Updated on 30-Jul-2019 22:30:24
You can bulk update MySQL data with one query using CASE command. The syntax is as follows −update yourTableName set yourUpdateColumnName = ( Case yourConditionColumnName WHEN Value1 THEN ‘’UpdatedValue’ WHEN Value2 THEN ‘UpdatedValue’ . . N END) where yourConditionColumnName IN(Value1, Value2, .....N);To understand the above concept, let us create a table. The query to create a table is as follows −mysql> create table UpdateAllDemo −> ( −> BookId int, −> BookName varchar(200) −> ); Query OK, 0 rows affected (1.18 sec)Insert some records in the table using insert ... Read More

How to use the front camera in Swift?

Ankith Reddy
Updated on 30-Jul-2019 22:30:24
To use the front camera in swift we first need to get a list of cameras available in the device we are using. In this article we’ll see how to get the list of devices and then check if the front camera is available or not. We’ll do it in a series of steps.Import AVFoundationCheck if the list of cameras existsFilter out the front camera if exists.guard let frontCamera = AVCaptureDevice.devices().filter({ $0.position == .front }) .first as? AVCaptureDevice else { fatalError("Front camera not found") }The devices() method of AVCapture returns the list of cameras available. From that ... Read More

What to do in case you have a pimple on your cheek and a party the next day?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24
This is probably every girl's nightmare that she comes across a pimple on her face while there is a party scheduled next day. However, you can avoid such nightmares by following these simple tips:Apply Colgate: This may sound weird, but it helps. Apply Colgate on your pimple and leave it overnight. Next morning you will find it vanished with a mark left on the face, which you can easily hide wearing makeup.Apply Vicks Vaporub: Yes, the savior of cold days. The balm can also do wonders here. Simply, apply it and leave it for some time and then wash off.Use ... Read More

Get the first element from a Sorted Set in Java

Samual Sam
Updated on 30-Jul-2019 22:30:24
To create a Sorted Set, firstly create a Set.Set s = new HashSet();Add elements to the above set.int a[] = {77, 23, 4, 66, 99, 112, 45, 56, 39, 89}; Set s = new HashSet(); try { for(int i = 0; i < 5; i++) { s.add(a[i]); }After that, use TreeSet class to sort.TreeSet sorted = new TreeSet(s);Get the first element, using the first() method −System.out.println("First element of the sorted set = "+ (Integer)sorted.first());The following is the code to get the first element from a Sorted Set ... Read More