Articles on Trending Technologies

Technical articles with clear explanations and examples

What is the Babinet's principle which is the basic for Slot Antenna?

Knowledge base
Knowledge base
Updated on 30-Jul-2019 4K+ Views

Babinet’s Principle is actually the principle used in optics. According to its definition, “When the field behind a screen with an opening is added to the field of a complementary structure, the sum is equal to the field when there is no screen”The images clearly explain the principle. In all the regions, which are non-collinear with the beam, the above two screens, in figure 1 & 2, produce the same diffraction pattern.Case1Consider a light source and a conducting plane (field) with an aperture before a screen. The light does not pass through the opaque area but passes through the aperture.Case2Consider ...

Read More

How to implement Android TextInputLayout

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 3K+ Views

Before getting into example, we should know what is TextInputLayout in android. TextInputLayout is extended by Linear Layout. It going to act as a wrapper for edit text and shows flatting hint animation for edit text.This example demonstrate about how to implement Android TextInputLayout.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.                                 In the above code ...

Read More

8085 program to find 2's complement of the contents of Flag Register

Anvi Jain
Anvi Jain
Updated on 30-Jul-2019 493 Views

In this program we will see how to find 2's complement of the content of flag register.Problem StatementWrite 8085 Assembly language program to find 2's complement of the content of flag register.DiscussionWe cannot access the total flag register directly. To use them we have to push the PSW(Accumulator-Flag) into stack, and then pop it to another register pair, then after complementing the LS byte of that register pair, we have to push it again into the stack, and then pop it to PSW  to get it into Flag bits.InputHere we are not putting any input directly. If the flag bits ...

Read More

How to make Two activities with different colored status bar in Android.

Arjun Thakur
Arjun Thakur
Updated on 30-Jul-2019 728 Views

There are so many situations, where we need to change the different action bar colors according toproject requirement . This example demonstrate about how to make Two activities with different colored status bar.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.     In the above code we have created on button when you click on button it going to call second activity.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import ...

Read More

Remove first two characters of all fields in MySQL?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 1K+ Views

To remove the first two characters of all fields, you need to use SUBSTRING() function from MySQL. The syntax is as follows −UPDATE yourTableName SET yourColumnName=SUBSTRING(yourColumnName, 3) WHERE yourCondition;To understand the above syntax, let us create a table. The query to create a table is as follows −mysql> create table RemoveFirstTwoCharacterDemo    -> (    -> Id int NOT NULL AUTO_INCREMENT,    -> StringValue varchar(30),    -> PRIMARY KEY(Id)    -> ); Query OK, 0 rows affected (1.04 sec)Insert some records in the table using insert command. The query is as follows −mysql> insert into RemoveFirstTwoCharacterDemo(StringValue) values('U:100'); Query OK, 1 ...

Read More

How to get an age from a D.O.B field in MySQL?

Arjun Thakur
Arjun Thakur
Updated on 30-Jul-2019 5K+ Views

To get age from a D.O.B field in MySQL, you can use the following syntax. Here, we subtract the DOB from the current date.select yourColumnName1, yourColumnName2, ........N, year(curdate())- year(yourDOBColumnName) 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 AgeDemo -> ( -> StudentId int, -> StudentName varchar(100), -> StudentDOB date -> ); Query OK, 0 rows affected (0.61 sec)Insert some records in the table using insert command. The query is as follows.mysql> insert into AgeDemo values(1, 'John', '1998-10-1'); Query OK, 1 ...

Read More

How does the Microstrip antenna work?

Knowledge base
Knowledge base
Updated on 30-Jul-2019 3K+ Views

Microstrip antennas are the low-profile antennas. A metal patch mounted on a ground level with a dielectric material in-between constitutes a Microstrip or Patch Antenna. These are very low size antennas having low radiation. The patch antennas are popular for low profile applications at frequencies above 100MHz.Construction and workingThe microstrip consists of a very thin metallic strip placed on a ground plane with a dielectric material in-between. The radiating element and feed lines are placed by the process of photo-etching on the dielectric material. Usually, the patch or microstrip is chosen to be square, circular or rectangular in shape for ...

Read More

How to Stop EditText from gaining focus at Activity startup in Android

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 2K+ Views

There are so many situations where we don't required keyboard visibility when activity starts. This example demonstrate about how to Stop EditText from gaining focus at Activity startupStep 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.     In the above code, we have given on Edit Text. By Default it contains request focus.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.EditText; public class MainActivity extends ...

Read More

Explain the working of a turbojet engine.

Shanmukh Pasumarthy
Shanmukh Pasumarthy
Updated on 30-Jul-2019 3K+ Views

A turbojet engine is used in Aircraft. These are air-breathing engines which suck in air from the atmosphere for combustion. It has various components like inlet, compressor, combustion chamber, turbines, and nozzle. Air is drawn into the turbojet engine, compressed, mixed with fuel, and burned continuously.The exhaust product of this burning operates the turbine for the compressor, producing thrust which propels the aircraft. Turboprops are used in smaller and slow-paced air crafts as turbojets are not efficient at low speeds whereas turbofans have better specific fuel consumption than the turbojet. These engines are generally installed below the wings or near ...

Read More

8085 program to check whether the given number is even or odd

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 11K+ Views

In this program we will see how to check whether a number is odd or even.Problem StatementWrite 8085 Assembly language program to check whether a number is odd or even.DiscussionThe Odd Even checking is very simple. we can determine one number is odd or even by checking only the LSb. When LSb is 1, the number is odd, otherwise it is even.In this program we are taking a number from memory and then ANDing 01H with it. if the result is nonzero, then the number is odd,  otherwise it is even.Inputfirst inputAddressData......800015......second inputAddressData......80002C......Flow DiagramProgramAddressHEX CodesLabelMnemonicsCommentsF0003A, 00, 80LDA 8000HLoad the number ...

Read More
Showing 60421–60430 of 61,297 articles
Advertisements