Articles on Trending Technologies

Technical articles with clear explanations and examples

What are the exams to be written in order to get a job in Canada?

Pratibha A
Pratibha A
Updated on 30-Jul-2019 762 Views

Canada is one of the most popular countries which is most sought after for immigrants and students alike. The process to obtain a work visa is relatively stress-free.Apart from your academic scores, subjects, and your interview procedure, to get a job in Canada, you need to write only one exam to prove your English Language Proficiency. It is the IELTS (International English Language Testing System). You need to score at least 7 or more bands for getting good chances to migrate to Canada. That's it.

Read More

I/O Read (IOR) machine cycle in 8085 Microprocessor

George John
George John
Updated on 30-Jul-2019 5K+ Views

The three clock cycles at the last stages in the IN 35H instruction is an example of machine cycle for IOR. The Waveforms for the IOR machine cycle are shown in the figure below.The point to be noted that in an IOR machine cycle, Wand Z has identical has port address of 8 bit. The value of 16 bit in the register pair WZ are sent out as the address in an Input Output Read machine cycle. Also the point to be noted that in an IOR machine cycle, only the data is received by the accumulator from the addressed ...

Read More

How to use NOT NULL constraints in Android sqlite?

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

Before getting into example, we should know what sqlite database in android is. SQLite is an opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrate about How to use NOT NULL constraints in Android sqlite.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create ...

Read More

How to get the second last record from a table in MySQL?

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

To get the record before the last one i.e. the second last record in MySQL, you need to use subquery.The syntax is as followsSELECT *FROM (SELECT *FROM yourTableName ORDER BY yourIdColumnName DESC LIMIT 2) anyAliasName ORDER BY yourIdColumnName LIMIT 1;Let us first create a table. The query to create a table is as followsmysql> create table lastRecordBeforeLastOne    - > (    - > Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    - > Name varchar(20) DEFAULT 'John',    - > Age int DEFAULT 18    - > ); Query OK, 0 rows affected (0.79 sec)Now you can insert some ...

Read More

How to use removeAll() in android CopyOnWriteArraySet?

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

Before getting into an example, we should know what CopyOnWriteArraySet is. It is a thread-safe variant of ArrayList and operations add, set, and so on by making a fresh copy of the underlying array.This example demonstrates about How to use removeAll() in android CopyOnWriteArraySetStep 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 a text view to show CopyOnWriteArraySet elements.Step 3 − Add the following code ...

Read More

Check privileges (grants) for a specific user in MySQL?

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

If you want to check privileges for a specific user, then use the below syntax −SHOW GRANTS FOR 'yourUserName'@'yourHostName';The above syntax will check privileges for a specific user.To check the privileges for a specific user, then use FOR. Let’s say we have a username ‘JOHN‘ and host is ‘%’. Following is the query to get the privileges for user “JOHN” −mysql> SHOW GRANTS FOR 'JOHN'@'%';This will produce the following output −+--------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------- --------------+ | Grants for JOHN@% | +--------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------- --------------+ | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, ...

Read More

Android stop specified IntentService?

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

Before getting into the example, we should know what Intent service is in android. Intent Service is going to do background operation asynchronously. When user call startService() from activity, it doesn’t create the instance for each request and it going to stop service after done some action in service class or else we need to stop service manually by using stopSelf().This example demonstrates about Android stop specified IntentService.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 ...

Read More

How to use cast() in Android sqlite?

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

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to access this database, you don't need to establish any kind of connections for it like JDBC, ODBC etc.This example demonstrate about How to use cast() in Android sqliteStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create ...

Read More

How to order by date and time in MySQL?

George John
George John
Updated on 30-Jul-2019 2K+ Views

You need to use ORDER BY clause for this. Let us first create a table. The query to create a table is as followsmysql> create table OrderByDateThenTimeDemo - > ( - > Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, - > ShippingDate date, - > ShippingTime time - > ); Query OK, 0 rows affected (0.56 sec)Now you can insert some records in the table using insert command. Here, we have two similar dates, but different times i.e. 2018-01-24mysql> insert into OrderByDateThenTimeDemo(ShippingDate, ShippingTime) ...

Read More

How to find device power is connected in android?

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

This example demonstrates How to find device power is connected 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 text view to show deice power status.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.annotation.SuppressLint; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.PackageManager; import android.os.BatteryManager; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.TextView; import ...

Read More
Showing 59521–59530 of 61,297 articles
Advertisements