This week after doing some researches on the Internet of Things (IoT), I am going to conduct a survey with some questiones below:
1. Have you ever heard the term of “The Internet of Things”?(Yes or No)
If not, please read the explanation about “The Internet of Things (IoT)” cited from wikipedia:
‘In computing, the Internet of Things (also known as the Internet of Objects) refers to the networked interconnection of everyday objects. It is generally imagined as a self-configuring wireless network of sensors whose purpose would be to interconnect all things.’
2. Do you feel that interconnecting all objects in our daily life via the Internet is important to you?
3. The IoT constructs everything in the world through the Internet via using Radio Frequency Identification (RFID), wireless sensor networks, biometric identification, global positioning system, wireless data communication technologies, etc.
Have you ever heard or learnt any of these technologies before?
4. What benefits do you think the Internet of Things may have?
5. What challenges do you think the Internet of Things may face?
6. Would you agree with the following statements?
“It would be a disaster if every physical object connected with each other in the future.”
“The IoT is not a technological fantasy, but is another technological revolution.”
These questions cover the aspects of the understanding of IoT, the technologies used in it, the benefits and chanllenged it may face, and the future of IoT. Hopefully, it could help who is interested in this industry learns the information of IoT from scratch.
2010年9月26日星期日
JavaScript Conditional Statements
In JavaScript language, the conditional statements are very powerful. There are two main kinds of statements: condition and iteration.
The conditional statements with "if" and "switch" are used in the codes with more than one statements which may happen sequencely or simultaneously. The structures are below:
1. if (condition)
{
statement1;
}
statement2;
2. if (condition)
{
statement1;
}
esle
{
statement2;
}
3. if (condition1)
{
statement1;
}
esle if (condition2)
{
statement2;
}
else
{
statement3;
}
4. switch (expression)
{
case value1: statement1;
break;
case value2: statement2;
break;
case value3: statement3;
break;
default: statement4;
}
The iteration statements are for the statements which may happen many times but doing the same instruction. The structures are below:
1. for (initialization; condition; iteration)
{
statement;
}
2. for (variable in object)
{
statements;
}
3. while (condition)
{
statements;
}
4. do
{
statements;
} while (condition);
When using these kinds of statements, "break;" and "continue;" are working within them to perform two functions: "jump out the whole iteration" and "just jump out this iteration and continue to do another one".
The conditional statements with "if" and "switch" are used in the codes with more than one statements which may happen sequencely or simultaneously. The structures are below:
1. if (condition)
{
statement1;
}
statement2;
2. if (condition)
{
statement1;
}
esle
{
statement2;
}
3. if (condition1)
{
statement1;
}
esle if (condition2)
{
statement2;
}
else
{
statement3;
}
4. switch (expression)
{
case value1: statement1;
break;
case value2: statement2;
break;
case value3: statement3;
break;
default: statement4;
}
The iteration statements are for the statements which may happen many times but doing the same instruction. The structures are below:
1. for (initialization; condition; iteration)
{
statement;
}
2. for (variable in object)
{
statements;
}
3. while (condition)
{
statements;
}
4. do
{
statements;
} while (condition);
When using these kinds of statements, "break;" and "continue;" are working within them to perform two functions: "jump out the whole iteration" and "just jump out this iteration and continue to do another one".
2010年9月16日星期四
A Summary of MySQL
MySQL is a kind of database, which can store and manage many types of data like text, float, varchar, date, etc. It always companies with PHP to help the dynamic web site stores and retrieves the data entered or requested by users.
SQL systems consist of a set of databases. Each database consists of one or more tables, which are where data is stored. Tables have a format consisting of rows and columns. Each column has a name and datatype.
In MySQL, some of the common datatypes include varchar, int and float. Data is retrieved from SQL tables using the SELECT statement. Also, SQL has many other statements like INSERT, DELETE, etc to manage the tables and data within tables. However, different database users are granted different levels of authorities. For example, the highest level user, the database administrator, he or she can delete the whole database or do anything they need to the database. But, a lowest level of database user only has the right to read the data or accesses some parts of data instead of the whole database. So, MySQL has a very sophisticated structure of managing data in order to ensure the security of data.
Within PHP codes, we always use the statements like mysql_connect, mysql_select_db, mysql_query to connect a database server, choose one target database and select data from the tables. Donot forget a very vital statement: mysql_close as soon as finished retrieving data from database.
SQL systems consist of a set of databases. Each database consists of one or more tables, which are where data is stored. Tables have a format consisting of rows and columns. Each column has a name and datatype.
In MySQL, some of the common datatypes include varchar, int and float. Data is retrieved from SQL tables using the SELECT statement. Also, SQL has many other statements like INSERT, DELETE, etc to manage the tables and data within tables. However, different database users are granted different levels of authorities. For example, the highest level user, the database administrator, he or she can delete the whole database or do anything they need to the database. But, a lowest level of database user only has the right to read the data or accesses some parts of data instead of the whole database. So, MySQL has a very sophisticated structure of managing data in order to ensure the security of data.
Within PHP codes, we always use the statements like mysql_connect, mysql_select_db, mysql_query to connect a database server, choose one target database and select data from the tables. Donot forget a very vital statement: mysql_close as soon as finished retrieving data from database.
2010年9月12日星期日
A Combination of Apache, MySQL and PHP - AMP
AMP is a very famous and popular term in recent years. What is AMP? Actually, it is a solution stack which bundles the software such as Apache, MySQL and PHP to design dynamic web sites. It is for all computer platforms.
As a HTTP server, Apache parses HTTP files and passes the results to the terminal computers. PHP, which is an alternative to Asp, is a scripting language used to create dynamic web pages with syntax from C, Java and Perl. PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database and present it on the web pages. The best choice database for PHP is the MySQL database, which is widely used all over the world. SQL systems consist of a set of databases. Each database consists of one or more tables in which data are stored.
For instance,like in a restaurant, a web site visitor (the customer) clicks on a web site and asks some pages which include PHP code. PHP is like the waiter. He gets the orders and sends it to the chef, who here means the Apache. Apache is a web server parsing any file requested by a browser and displaying the correct results according to the code within that file. The MySQL database is the same as the kitchen's stockroom. Apache (the chef) retrieves the data from it and sends them to the visitor (customer). This is the whole process how AMP works.
As a HTTP server, Apache parses HTTP files and passes the results to the terminal computers. PHP, which is an alternative to Asp, is a scripting language used to create dynamic web pages with syntax from C, Java and Perl. PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database and present it on the web pages. The best choice database for PHP is the MySQL database, which is widely used all over the world. SQL systems consist of a set of databases. Each database consists of one or more tables in which data are stored.
For instance,like in a restaurant, a web site visitor (the customer) clicks on a web site and asks some pages which include PHP code. PHP is like the waiter. He gets the orders and sends it to the chef, who here means the Apache. Apache is a web server parsing any file requested by a browser and displaying the correct results according to the code within that file. The MySQL database is the same as the kitchen's stockroom. Apache (the chef) retrieves the data from it and sends them to the visitor (customer). This is the whole process how AMP works.
订阅:
博文 (Atom)