Chandu yadav has Published 1163 Articles

Timing and control unit in 8085 Microprocessor

Chandu yadav

Chandu yadav

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

10K+ Views

We use Timing and Controlling unit in 8085 for the generation of timing signals and the signals to control. All the operations and functions both interior and exterior of a microprocessor are controlled by this unit. X2 and CLK output pins: To do or rather perform the operations of timing ... Read More

C++ Program to Solve Knapsack Problem Using Dynamic Programming

Chandu yadav

Chandu yadav

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

13K+ Views

This is a C++ program to solve 0-1 knapsack problem using dynamic programming. In 0-1 knapsack problem, a set of items are given, each with a weight and a value. We need to determine the number of each item to include in a collection so that the total weight is ... Read More

The indexOf() method of AbstractList class in Java

Chandu yadav

Chandu yadav

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

94 Views

The indexOf() method is used to return the index of the first occurrence of the specified element in this list. If the list is empty, it returns -1.The syntax is as follows.int indexOf(Object ob)Here, the parameter ob is the element to search for.To work with the AbstractList class, import the ... Read More

How to compare two strings which are numbers in MySQL?

Chandu yadav

Chandu yadav

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

890 Views

To compare two strings which are numbers in MySQL, use the CAST() function.The syntax is as followsselect *from yourTableName where cast(yourColumnName as signed)=yourIntegerValue;To understand the above syntax, let us create a table. The query to create a table is as followsmysql> create table compareTwoStringDemo -> ( ... Read More

div() function in C++

Chandu yadav

Chandu yadav

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

143 Views

The C / C++ library function div_t div(int numer, int denom) divides numer (numerator) by denom (denominator). Following is the declaration for div() function.div_t div(int numer, int denom)The parameters are numerator and the denominator. This function returns the value in a structure defined in , which has two members. For ... Read More

How to reduce MongoDB storage space after deleting large amount of data?

Chandu yadav

Chandu yadav

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

431 Views

To reduce MongoDB storage space after deleting a large amount of data, you need to use repairDatabase(). Let’s say we are using the database “test”. Following is the query to get to the current database> db;This will produce the following outputTestAfter deleting large amount of data, this is how you ... Read More

Address/data buffers in 8085 Microprocessor

Chandu yadav

Chandu yadav

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

2K+ Views

Address and data buffers are used for bidirectional data transfer. They perform the unidirectional data transfer when they send out the Least Significant Byte of the address. These buffers are only used for increasing the driving capacity of the current. Through the internal bus data goes to the buffers. The ... Read More

How to select only non - numeric values from varchar column in MySQL?

Chandu yadav

Chandu yadav

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

959 Views

You need to use REGEXP for this. The syntax is as followsSELECT *FROM yourTableName WHERE yourColumnName REGEXP '[a-zA-Z]';To understand the concept, let us create a table. The query to create a table is as followsmysql> create table SelectNonNumericValue    -> (    -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, ... Read More

Get the first element in an array and return using MongoDB Aggregate?

Chandu yadav

Chandu yadav

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

2K+ Views

Use $unwind operator with $project for to get the first element in an array. Let us create a collection with documents. Following is the query>db.getFirstElementInArrayDemo.insertOne({"StudentName":"John", "StudentSubject":["MongoDB", "Python", "MySQL"]}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9c41292d6669774125244e") } >db.getFirstElementInArrayDemo.insertOne({"StudentName":"Chris", "StudentSubject":["Java", "C"]}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9c413f2d6669774125244f") ... Read More

Instruction cycle in 8085 Microprocessor

Chandu yadav

Chandu yadav

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

4K+ Views

The Program and data which are stored in the memory, are used externally to the microprocessor for executing the complete instruction cycle. Thus to execute a complete instruction of the program, the following steps should be performed by the 8085 microprocessor.Fetching the opcode from the memory;Decoding the opcode to identify ... Read More

Advertisements