Arjun Thakur has Published 1109 Articles

Earliest data output time considering TACC in 8085 Microprocessor

Arjun Thakur

Arjun Thakur

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

98 Views

27128 receives the Address A13-8 by 27128 from 8085AH by means of the octal line driver 74LS244, which has a propagation delay of 12 nS. Address ranging from A7-0 is received by 27128 from 8085AH by means of 74LS373 octal latch, which consists of a propagation delay of 30 nS. ... Read More

In 8085 Microprocessor, compare I/O port chips and memory chips

Arjun Thakur

Arjun Thakur

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

145 Views

Information is also stored in an Input Output port chip similar to a memory chip. Information of 1 byte are stored in an Input Output port chip on the other hand information of few bytes are stored in the Input Output port chips. An example to be cited as only ... Read More

Get another order after limit with MySQL?

Arjun Thakur

Arjun Thakur

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

201 Views

You need to use subquery with select statement, one select for inner and one for outer. The inner select will return rows and outer will order by ascending order. The syntax is as follows:SELECT *FROM (    SELECT *FROM yourTableName ORDER BY yourColumnName1 DESC LIMIT 9 ) AS anyAliasName ORDER ... Read More

Prevent negative numbers in MySQL?

Arjun Thakur

Arjun Thakur

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

2K+ Views

To prevent negative numbers in MySQL, you need to use INT UNSIGNED. Let’s say you created a table with a column as int i.e. UserGameScores heremysql> create table preventNegativeNumberDemo    - > (    - > UserId int NOT NULL AUTO_INCREMENT PRIMARY KEY,    - > UserName varchar(20),   ... Read More

The clear() method of AbstractList class in Java

Arjun Thakur

Arjun Thakur

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

79 Views

Remove all the elements from the list using the clear() method of the AbstractList class. After using the method, the list won’t be having any elements.The syntax is as followspublic void clear()To work with the AbstractList class, import the following packageimport java.util.AbstractList;The following is an example to implement clear() method ... Read More

How do I prevent Android taking a screenshot when my app goes to the background?

Arjun Thakur

Arjun Thakur

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

959 Views

In some situations, we should not allow to take screen shots of our application. This example demonstrate about how do I prevent Android taking a screenshot when my app goes to the background.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill ... Read More

Run SQL file in MySQL database from terminal?

Arjun Thakur

Arjun Thakur

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

6K+ Views

To run SQL file in database, you need to use below syntax:mysql -u yourUserName -p yourDatabaseName < yourFileName.sqlTo understand the above syntax, let us open command prompt using windows+R shortcut key.The snapshot is as follows:After pressing OK button, you will get a command prompt. The snapshot is as follows:Now reach ... Read More

How to change line color in EditText

Arjun Thakur

Arjun Thakur

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

3K+ Views

In some situations, we should change edit text bottom line color according to background color. This example demonstrate about how to change line color in EditText.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new ... Read More

DoubleStream findFirst() method in Java

Arjun Thakur

Arjun Thakur

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

64 Views

The findFirst() method returns an OptionalDouble describing the first element of this stream. It returns an empty OptionalDouble if the stream is empty.The syntax is as followsOptionalDouble findFirst()Here, OptionalDouble is a container object which may or may not contain a double value.To use the DoubleStream class in Java, import the ... Read More

How to add the JDBC MySQL driver to an Eclipse project?

Arjun Thakur

Arjun Thakur

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

9K+ Views

To add the JDBC MySQL driver to an Eclipse project, you need to follow the below steps.The first step is as follows:Step1: Create a dynamic web project with some name in Eclipse.Step2: After pressing the Dynamic Web Project, a new window will open. Now give the project name. The screenshot is ... Read More

Advertisements