George John has Published 1167 Articles

Addressing modes of Z-80

George John

George John

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

1K+ Views

Here we will see the addressing modes of the Zilog Z-80 Microprocessor. But at first we will discuss about the mnemonics of Z-80.As we know there are many similarities between Intel 8085 and Zilog Z-80, so we can also find the similarity on the instructions. But in Z-80 the Mnemonics ... Read More

How to Rotate image in image view by an angle in Android?

George John

George John

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

2K+ Views

This example demonstrates how to Rotate image in image view by an angle.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 the following code to res/layout/activity_main.xml.       ... Read More

The difference between 'AND' and '&&' in MySQL?

George John

George John

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

2K+ Views

NOTE: There is only one difference between AND and && is that AND is a standard while && is ownership syntax.Except the above statement, there is no difference between AND and &&. Let us look at all the conditions.The result of AND and && will always be either 1 or ... Read More

Exchange of blocks in Z-80

George John

George John

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

155 Views

In this section we will see how we can use the Zilog Z-80 Microprocessor to Exchange the contents of each element from two different blocks.The number of items in each block are given at location 5000H, and the blocks are at position 5050H and 5070H.So before swapping the items in ... Read More

How to match one character in MySQL in place of %?

George John

George John

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

127 Views

To match only one character in MySQL, you can use underscore(_) in place of %. The syntax is as follows:SELECT *FROM yourTableName WHERE yourColumnName LIKE ‘yourString_’;To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> create table OneCharactermatchDemo    -> ( ... Read More

Python Mapping Types

George John

George John

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

12K+ Views

The mapping objects are used to map hash table values to arbitrary objects. In python there is mapping type called dictionary. It is mutable. The keys of the dictionary are arbitrary. As the value, we can use different kind of elements like lists, integers or any other mutable type ... Read More

filter_input_array() function in PHP

George John

George John

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

400 Views

The filter_input_array() function gets names of external variables and filters them optionally. Syntax filter_input_array(type, arraydefine, add_empty) Parameters type − There are five types of inputs to check i.e. INPUT_GET, INPUT_POST, INPUT_COOKIE, INPUT_SERVER, or INPUT_ENV. arraydefine − It specifies an array of filter arguments. It is optional. add_empty ... Read More

filter_var_array() function in PHP

George John

George John

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

454 Views

The filter_var_array() function is used to filter multiple variables. Syntax filter_var_array(arrayname, parameters) Parameters arrayname − An array to filter the data. parameters − It specifies an array of filter arguments. Return The filter_var_array() function returns an array of values of the requested variables on success or ... Read More

Python Text Wrapping and Filling

George John

George John

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

5K+ Views

In python the textwrap module is used to format and wrap plain texts. There are some options to format the texts by adjusting the line breaks in the input paragraph. To use these modules, we need to import the textwrap module in our code. import textwrap The Textwrapper ... Read More

Python Basic date and time types

George John

George John

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

6K+ Views

To manipulate dates and times in the python there is a module called datetime. There are two types of date and time objects. The types are naïve and the aware. In the naïve object, there is no enough information to unambiguously locate this object from other date-time objects. In this ... Read More

Advertisements