Articles on Trending Technologies

Technical articles with clear explanations and examples

How to Show and hide a View with a slide up/down animation in android?

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

This example demonstrate about how to Show and hide a View with a slide up/down animation in android.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 taken button to show /hide linear layout with animation.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.animation.TranslateAnimation; import ...

Read More

Equaivalent of Oracle concatenation operator in MySQL?

Rishi Rathor
Rishi Rathor
Updated on 30-Jul-2019 173 Views

The concat operator can be used in ORACLE. MySQL use concat() function to perform concatenation.To understand the concat() function, let us create a table. The query to create a table is as follows −mysql> create table ConcatenationDemo −> ( −> Id int, −> Name varchar(100) −> ); Query OK, 0 rows affected (0.86 sec)Insert some records in the table using insert command. The query is as follows −mysql> insert into ConcatenationDemo values(100, 'John'); Query OK, 1 row affected (0.19 sec) mysql> insert into ConcatenationDemo values(101, 'Sam'); Query ...

Read More

How do I use tabHost for Android?

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

Before getting into example we should know what is tab host in android. Tab host holds set of tabs. Each tab contains either fragment or activity as per project specification. The user can scroll tabs from left to right or right to left.This example demonstrates how to use tab host in android.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

How do I begin auto increment from a specific point in MySQL?

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 417 Views

To begin auto increment from a specific point, use ALTER command. The syntax is as follows −ALTER TABLE yourTableName auto_increment = anySpecificPoint;To understand the above concept, let us create a table. The query to create a table is as follows −mysql> create table AutoIncrementSpecificPoint −> ( −> BookId int auto_increment not null, −> Primary key(BookId) −> ); Query OK, 0 rows affected (0.56 sec)Now you can insert records using insert command.The query is as follows −mysql> insert into AutoIncrementSpecificPoint values(); Query OK, 1 row affected (0.17 sec) ...

Read More

What are some of the applications of LASER?

Ridhi Arora
Ridhi Arora
Updated on 30-Jul-2019 874 Views

LASER is an acronym for Light Amplification by Stimulated Emission of Radiation. The LASER action was first proposed by Einstein.Applications of a LASERA LASER can be used in many fields. Some of its usages are given here.Used In Welding and Melting: The laser beam welding is mainly used for joining components using high welding speeds and low thermal distortion.Used In Holography: The reason that a hologram cannot be made without a LASER source is that coherence length for laser source can be very high due to which sustained interference pattern will be recorded on a hologram. This suggests the indispensable ...

Read More

How to make Android character by character display text animation?

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 872 Views

This example demonstrate about How to make Android character by character display text animation.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 src/MainActivity.javapackage com.example.andy.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; public class MainActivity extends AppCompatActivity {    @Override    protected void onCreate(Bundle savedInstanceState) {       super.onCreate(savedInstanceState);       Typewriter writer = new Typewriter(this);       setContentView(writer);       writer.setCharacterDelay(150);       writer.animateText("Sample String...Sample String...Sample String...");    } }In the above code, ...

Read More

Why zero (0) is the first number?

Rani RPS
Rani RPS
Updated on 30-Jul-2019 3K+ Views

Zero (0) is used as a number and also as the numerical digit. Zero gives the additive identity of the integers, real numbers, and many algebraic structures. It is used as a placeholder for writing numbers.Natural numbers start from 1, then 2 and so on. We cannot count backward with them. Integers, on the other hand, allows us to count backward. Zero winds up being a good choice for the number that should come after 1 as we count backward. Integers can go in both directions, to a positive infinity and also in the reverse direction to a negative infinity. ...

Read More

Get timestamp date range with MySQL Select?

Anvi Jain
Anvi Jain
Updated on 30-Jul-2019 1K+ Views

To select timestamp data range, use the below syntax −SELECT *FROM yourTableName where yourDataTimeField >= anyDateRange and yourDataTimeField < anyDateRangeTo understand the above syntax, let us create a table. The query to create a table is as follows −mysql> create table DateRange −> ( −> DueTime timestamp −> ); Query OK, 0 rows affected (1.34 sec)Insert some records in the table using insert command. The query is as follows −mysql> insert into DateRange values('2016-11-13'); Query OK, 1 row affected (0.51 sec) mysql> insert into DateRange values('2016-10-14'); Query OK, 1 row ...

Read More

What is the salary of ethical hacker in India?

Divya Agarwal
Divya Agarwal
Updated on 30-Jul-2019 235 Views

A Certified Ethical Hacker (CEH) earns an average salary of Rs 367, 249 per year and the relevant experience strongly influences pay for this job which goes more than 15 lakh per year.A hacker is an expert in computer and network expert, who helps companies to realize their vulnerabilities. they are named as Hackers and Red Team etc., and work for businesses or government organizations.The ethical hacker has the proficient knowledge of various operating systems and hacking processes and techniques etc and needs to be updated all the time to grab any kind of threats. An ethical hacker is the ...

Read More

How to order DESC by a field, but list the NULL values first?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 131 Views

To order by a field and list the NULL values first, you need to use the following syntax. This will order in descending order −select yourColumnName from yourTableName group by yourColumnName is null desc, yourColumnName desc;To understand the above syntax, let us first create a table −mysql> create table OrderByNullFirstDemo    −> (    −> StudentId int    −> ); Query OK, 0 rows affected (0.56 sec)Insert some records in the table with the help of insert command. The query is as follows −mysql> insert into OrderByNullFirstDemo values(100); Query OK, 1 row affected (0.13 sec) mysql> insert into OrderByNullFirstDemo ...

Read More
Showing 60131–60140 of 61,297 articles
Advertisements