After the whole semester's hard working on my planned website, I have almost finished my first own website now. Actually, the appearance of the website does not look very fascinating and colorful because I am still a program novice. It is quite difficult for me to make the pages look high-technical. But, the good thing is, I have tried my best to do the work.
Eventhough compared with other peers' websites, mine is not so amaziong. The procedure of gradually knowing the knowledge of building up a website is unforgettable. Like drawing a picture, at first, I had no idea on how to do it. Slowly, after reading books and materials, attending the lectures, and writting codes every week, I became familiar with HTML, CSS and JavaScrpt step by step. During the process of creating my website, there were a wealth of problems jumping out. Then, I did a lot of researches to solve these problems or, sometimes, asked the lecturer and friends to help me. Once the issue resolved, some new knowledge I gained from it. Until now, I have obtained so many experiences on developing a website, which may support my future work.
Learning and practicing are the best way to apply the skills and knowledge we have got in the reality. Besides, after having this subject, I found my drawbacks as well. For example, I am not good at desiging and drawing pictures. Moreover, there are still quite numerous programming languages I do master now. The way to become a professional programmer, which I planed at the begining of this semester, is far away so far. So I have to put more effort on it continuously.
One meter from sunlights
2010年10月27日星期三
2010年10月21日星期四
The Feedback on My Survey of the "Internet of Things"
Last week, I distributed the questionnaires of the "Internet of Things" (IoT) to some random IT faculty students. Over 30 students participated in my survey. I am very grateful that they are so kind to spend their time on answering all my questions. The result is very meaningful and helpful for my research.
These students have very different background, some of them are from other countries, others are local; some have IT work experience before, some have work experiences in other industries. Most of them have never heard the term of the "Internet of Things", but, fortunately, most of them have had some knowledge on the technologies used in the IoT. Although this industry is quite new to us, the future IT professionals have mastered the basic knowledge so that there is still very strong potential driving force to push this new field move forward.
Another very optimistic result from my survey is that most of IT students have very clear visions on judging the benefits and hurdles within this industry. The majority of participants realize that privacy and security issues would be a primary obstacle during the process of widespreading the IoT. But, they still believe that the IoT would bring us more advantages than disadvantages. They have a very positive attitude towards the coming of "smart planet" in the future.
These students have very different background, some of them are from other countries, others are local; some have IT work experience before, some have work experiences in other industries. Most of them have never heard the term of the "Internet of Things", but, fortunately, most of them have had some knowledge on the technologies used in the IoT. Although this industry is quite new to us, the future IT professionals have mastered the basic knowledge so that there is still very strong potential driving force to push this new field move forward.
Another very optimistic result from my survey is that most of IT students have very clear visions on judging the benefits and hurdles within this industry. The majority of participants realize that privacy and security issues would be a primary obstacle during the process of widespreading the IoT. But, they still believe that the IoT would bring us more advantages than disadvantages. They have a very positive attitude towards the coming of "smart planet" in the future.
Something about my website.
As mentioned in my learning proposal in DMT, I am going to use HTML, CSS and JavaScript to develop my first own website. Because I am not good at website designing and programming, this website wounld not include every popular function as we use daily. I wish to try my best to utilize what I have learnt this semester in DMT, and create a simple and insteresting system, which introduces my home town.
Before starting programming, I have read many materials and books on HTML, CSS and JavaScript online or from the library. Then I practiced coding small programmes a lot. In this way, I gradually became familiar with these three languages.
At the same time, I searched massive information about the cultures, food, views and pandas in my home town, and selected some useful materials from what I have found. After the preparation phase, I designed the framework for my website. After several times modification of the framework, I started writting the codes.
To be honest, it is a quite difficult process for a novice to do every thing from the beginning. But, on the other hand, it is also a unforgetable journey which may help one learn the most practical knowledge. During the procedure of finding and solving problems, my programming skills have improved a lot. Besides, the process of developing this website is quite funny for me because I have learnt so many new knowledge about my home town. It is a benefit I did not expect before!
Until now, my website is still under construction. I need to learn more on CSS and JavaScript to realize the next layout and funtions I planned in my proposal. Hopefully, I will get more from it.
Before starting programming, I have read many materials and books on HTML, CSS and JavaScript online or from the library. Then I practiced coding small programmes a lot. In this way, I gradually became familiar with these three languages.
At the same time, I searched massive information about the cultures, food, views and pandas in my home town, and selected some useful materials from what I have found. After the preparation phase, I designed the framework for my website. After several times modification of the framework, I started writting the codes.
To be honest, it is a quite difficult process for a novice to do every thing from the beginning. But, on the other hand, it is also a unforgetable journey which may help one learn the most practical knowledge. During the procedure of finding and solving problems, my programming skills have improved a lot. Besides, the process of developing this website is quite funny for me because I have learnt so many new knowledge about my home town. It is a benefit I did not expect before!
Until now, my website is still under construction. I need to learn more on CSS and JavaScript to realize the next layout and funtions I planned in my proposal. Hopefully, I will get more from it.
2010年10月12日星期二
Using JavaScript to Validate the Form
JavaScript has a very powerful function, which is validating what you input in the forms of the website on the client side. Although PHP and other script languages can do the same thing, the benefits of utilizing JavaScript to do this work are: firstly, the response speed is much faster than the server-side languages. Even though there is a crash on the server, the browser can validate the codes in stead of waiting for the feedback from the server. In this way, it improves the website efficiency very much.
The second advantage is JavaScript codes on validation is quite simple whist some other languages have quite complex syntax. Sometimes, there are only a few lines of codes in JavaScript could do the check work rather than hundreds of lines codes in other languages.
Often, the codes to do the validation task are like below:
function noblanks()
{
if (document.demoform.demofield.value=="")
{
alert ("Field is blank!");
return false;
}
return true;
}
The codes are just a very simple example to check whether there is a blank in a column of the form area. Sometimes, combined with regular expressions, we could validate any data in any format in order to make the input content match our expectations.
The second advantage is JavaScript codes on validation is quite simple whist some other languages have quite complex syntax. Sometimes, there are only a few lines of codes in JavaScript could do the check work rather than hundreds of lines codes in other languages.
Often, the codes to do the validation task are like below:
function noblanks()
{
if (document.demoform.demofield.value=="")
{
alert ("Field is blank!");
return false;
}
return true;
}
The codes are just a very simple example to check whether there is a blank in a column of the form area. Sometimes, combined with regular expressions, we could validate any data in any format in order to make the input content match our expectations.
2010年10月9日星期六
A Further Study in PHP
Although I am not planning to build up my website using PHP, I have to say that this language is quite useful. Because it helps your websites more dynamic and more interactive, which is what every user wishes when navigating a website. No one likes a very dull system without any interaction towards his or her requirements. PHP realizes these wishes coming true!
PHP has plenty of functions. The most frequent used functions are 'print', 'echo', 'printf', etc. Besides, we can code out own functions to fill out some expected purposes within HTML by using PHP. Also, PHP has a very functional syntax - the array, which can handle multidimensional data. There are two kinds of arrays in gerneral: the indexed array and the associated array. '$_REQUEST', '$_GET' and '$_POST' are all associative arrays used very often when store the data input in the forms.
Another powerful function of PHP is it has sessions, which could store the variables, names and their values so that they can be used by other PHP scripts. Cookie is similar to Sessions, but less used in PHP currently. In a multi-page application, we will almost certainly want some data to persist. In this circumstance, Sessions could be the best choice.
PHP has plenty of functions. The most frequent used functions are 'print', 'echo', 'printf', etc. Besides, we can code out own functions to fill out some expected purposes within HTML by using PHP. Also, PHP has a very functional syntax - the array, which can handle multidimensional data. There are two kinds of arrays in gerneral: the indexed array and the associated array. '$_REQUEST', '$_GET' and '$_POST' are all associative arrays used very often when store the data input in the forms.
Another powerful function of PHP is it has sessions, which could store the variables, names and their values so that they can be used by other PHP scripts. Cookie is similar to Sessions, but less used in PHP currently. In a multi-page application, we will almost certainly want some data to persist. In this circumstance, Sessions could be the best choice.
2010年9月26日星期日
The Questionnaire for "the Internet of Things"
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.
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.
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".
订阅:
评论 (Atom)