Articles on Trending Technologies

Technical articles with clear explanations and examples

What is the significance of Red Fort?

siddhartha kotamraju
siddhartha kotamraju
Updated on 26-Jun-2020 4K+ Views

The Red Fort is located in the city of Delhi in India. It has a great history as it was the main residence of Mughal emperors for nearly 200 years (until 1857).The red fort is the center of Delhi and it houses a large number of museums. Not only the accommodation for the emperors but also it was the center for Mughal state politics and for setting events that impact the region critically.Its construction was started in the year 1639 by the 5th Mughal emperor Shah Jahan as the place of his fortified capital Shahjahanabad. The name Red Fort comes ...

Read More

How can I enable MySQL slow query log without restarting MySQL?

George John
George John
Updated on 26-Jun-2020 2K+ Views

We can enable the MySQL slow query log with the help of SET statement.The following is the syntax.SET GLOBAL slow_query_log = 'Value';In the above syntax, value can be filled with ON/OFF. To enable slow query log, let us see the query.mysql> SET GLOBAL slow_query_log = 'ON'; Query OK, 0 rows affected (0.00 sec)To check if the slow query is ON, implement the following query −mysql> SHOW GLOBAL VARIABLES LIKE 'slow\_%'; Here is the output.+---------------------+--------------------------+ | Variable_name       | Value                    | +---------------------+--------------------------+ | slow_launch_time    | 2       ...

Read More

How to print number of paragraphs in textview in android?

Anuradha Nanda
Anuradha Nanda
Updated on 26-Jun-2020 955 Views

This example demonstrate about How to print number of paragraphs in textview 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 textview to show paragraph and toast will show the information about number of paragraphs.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends AppCompatActivity {    TextView ...

Read More

Block movement without overlap in Z-80

Ankith Reddy
Ankith Reddy
Updated on 26-Jun-2020 246 Views

In this section, we will see how we can use the Zilog Z-80 Microprocessor to move a block of data to another location. There is one assumption, there is sufficient distance between source and destination. So blocks are non-overlapping. Basically the block movement is not exact moving, it is copying the data to other locations.The number of items in the block is given at location 5000H, and the block is located at position 5050H.So before movement, the items in the memory is looking like this.AddressValue5000H04H...5050H89H5051H7AH5052H2FH5053H56H...Now, we are writing a program at location 8000H to move the block contents to other ...

Read More

How to print integer array in android Log?

Fendadis John
Fendadis John
Updated on 26-Jun-2020 921 Views

This example demonstrate about How to print integer array in android Log.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 code, we have taken listview to show integer arrayStep 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; public class MainActivity extends AppCompatActivity {    ListView list;   ...

Read More

How to create a MySQL table with InnoDB engine table?

Arjun Thakur
Arjun Thakur
Updated on 26-Jun-2020 1K+ Views

To create a table with InnoDB engine, we can use the ENGINE command. Here is the query to create a table.mysql> create table EmployeeRecords - > ( - > EmpId int, - > EmpName varchar(100), - > EmpAge int, - > EmpSalary float - > )ENGINE=INNODB; Query OK, 0 rows affected (0.46 sec)We have set the ENGINE as INNODB above.Check the full description about the table using the DESC command.mysql> DESC EmployeeRecords;The following is the output.+-----------+--------------+------+-----+---------+-------+ | Field     | Type         | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | EmpId     ...

Read More

MySQL SELECT last few days?

Arjun Thakur
Arjun Thakur
Updated on 26-Jun-2020 1K+ Views

To select last few days, use DATE_ADD() function in MySQL. The syntax is as follows −select date_add(curdate(), interval - anyIntgegerValue day);Or you can DATE_SUB() from MySQL.select date_sub(curdate(), interval anyIntgegerValue day);Or you can use the following syntax −select curdate() - interval anyIntgegerValue day;Here is the example of all syntaxes shown above to select last few days.Case 1 − Use of DATE_ADD() functionThe query is as follows −mysql> select date_add(curdate(), interval -6 day);Here is the output −+-------------------------------------+ | date_add(curdate(), interval -6 day) | +-------------------------------------+ | 2018-11-20                          | +-------------------------------------+ 1 row ...

Read More

What are the career prospects in VFX?

Dev Kumar
Dev Kumar
Updated on 26-Jun-2020 169 Views

Career prospects in the VFX (Visual Effects) industry are enormous, especially in a country like India which not only has a huge domestic market for VFX-enriched content in its mass media entertainment programs but is also a massive base for VFX job work for the global entertainment industry.The Right SoilIndia has the right eco-system to provide high-quality VFX output at an affordable cost and at scale. VFX requires the animators to be creative, imaginative, skilled in application software and willing to work long hours and at wages that very few other countries can match. So, yes, the opportunities in VFX ...

Read More

How to print exception messages in android?

Arushi
Arushi
Updated on 26-Jun-2020 1K+ Views

This example demonstrate about How to print exception messages 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 textview to show exception message.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; public class MainActivity extends AppCompatActivity ...

Read More

How to merge two arrays without duplication in android listview?

Vikyath Ram
Vikyath Ram
Updated on 26-Jun-2020 640 Views

This example demonstrate about How to merge two arrays without duplication in android listview.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 code, we have taken listview to show array values.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; public class MainActivity extends AppCompatActivity { ...

Read More
Showing 53081–53090 of 61,297 articles
Advertisements