Arjun Thakur has Published 1109 Articles

What is the Maximum Value of smallint(6) unsigned in MySQL?

Arjun Thakur

Arjun Thakur

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

1K+ Views

The maximum value of SMALLINT(6) unsigned in MySQL is 65535. The number 6 does not affect the actual range. It can only be used to display width on the command line.The Minimum Value signed is-32768The Maximum Value unsigned is65535The Maximum value signed is32767Let us understand this with zerofill and create ... Read More

How do I pass a variable to a MySQL script?

Arjun Thakur

Arjun Thakur

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

4K+ Views

You can pass a variable to a MySQL script using session variable. First you need to set a session variable using SET command. After that you need to pass that variable to a MySQL script.The syntax is as follows −First Step: Use of Set command.SET @anyVariableName − = ’yourValue’;Second Step: ... Read More

Get first and last elements from Java LinkedList

Arjun Thakur

Arjun Thakur

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

490 Views

The first and last elements of a Linked List can be obtained using the methods java.util.LinkedList.getFirst() and java.util.LinkedList.getLast() respectively. Neither of these methods require any parameters.A program that demonstrates this is given as followsExample Live Demoimport java.util.LinkedList; public class Demo { public static void main(String[] args) { ... Read More

Android working with Card View and Recycler View

Arjun Thakur

Arjun Thakur

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

538 Views

Before getting into card view for recycler view example, we should know what is Recycler view in android. Recycler view is more advanced version of list view and it works based on View holder design pattern. Using recycler view we can show grids and list of items.card view is extended ... Read More

How to ORDER BY RELEVANCE in MySQL?

Arjun Thakur

Arjun Thakur

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

591 Views

To order by relevance, use the case statement. To understand the concept, let us create a table. The query to create a table is as follows −mysql> create table OrderByRelevance    -> (    -> UserId int,    -> UserName varchar(200)    -> ); Query OK, 0 rows affected (0.51 ... Read More

How to Scroll top in RecyclerView with LinearLayoutManager in Android?

Arjun Thakur

Arjun Thakur

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

2K+ Views

Before getting into example, we should know what is Recycler view in android. Recycler view is more advanced version of list view and it works based on View holder design pattern. Using recycler view we can show grids and list of items .This example demonstrate about how to Scroll top ... Read More

Get the set of values in Java IdentityHashMap

Arjun Thakur

Arjun Thakur

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

83 Views

To get the set of values in IdentityHashMap, use the values() method.First, set the IdentityHashMapMap m = new IdentityHashMap(); m.put("1", 100); m.put("2", 200); m.put("3", 300); m.put("4", 150); m.put("5", 110); m.put("6", 50); m.put("7", 90); m.put("8", 250); m.put("9", 350); m.put("10", 450);Now, retrieve the set of valuesm.values()The following is an example to get ... Read More

How to integrate Android Speech To Text?

Arjun Thakur

Arjun Thakur

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

2K+ Views

Android supports Google inbuilt text to speak API using RecognizerIntent.ACTION_RECOGNIZE_SPEECH. In this example demonstrate about how to integrate Android speech to text.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 ... Read More

Convert INT to DATETIME in MySQL?

Arjun Thakur

Arjun Thakur

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

3K+ Views

You can use the in-built function from_unixtime() to convert INT to DATETIME. The syntax is as follows −SELECT FROM_UNIXTIME(yourColumnName, ’%Y-%m-%d') as AnyVariableName from yourTableName;To understand the above syntax, let us first create a table. The query to create a table is as follows −mysql> create table IntToDateDemo ... Read More

Instruction Set Classification of 8085 Microprocessor

Arjun Thakur

Arjun Thakur

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

15K+ Views

INTEL 8085 has a very enriched Instruction Set. Varieties of instructions it can execute. All these instructions can be broadly classified as follows −DescriptionNo. of opcodesNo. of instruction typesExampleData transfer Instructions8313MOV, MVI etc.Arithmetic Instructions6214ADD, SUB etc.Logical Instructions4315AND, XOR etc.Stack Instructions159PUSH, POP etc.Branch Instructions368JMP, JZ etc.I/O Instructions22IN, OUT etc.Interrupt Instructions55RST 0, ... Read More

Advertisements