2013年12月23日 星期一
2013年12月9日 星期一
2013年12月2日 星期一
Lab 27
Pa=0.15+0.85(1/2Pc) ---(1)
Pb=0.15+0.85Pa ---(2)
Pc=0.15+0.85(Pa+Pb) ---(3)
(1)代(2)
Pb=0.15+0.1275+0.36125Pc ---(4)
(1).(4)代(3)
Pc=0.15+0.85(0.15+0.425Pc)+0.850.15+0.1275+0.36125Pc
=0.513375+0.6683125Pc
0.3316875Pc=0.513375 => Pc=1.5477671
Pb=0.15+0.1275+0.36125*1.5477671=0.83663086 => Pb=0.83663086
Pa=0.15+0.425*0.15477671=0.807801012 => Pa=0.807801012
Pc>>Pb>Pa
Pb=0.15+0.85Pa ---(2)
Pc=0.15+0.85(Pa+Pb) ---(3)
(1)代(2)
Pb=0.15+0.1275+0.36125Pc ---(4)
(1).(4)代(3)
Pc=0.15+0.85(0.15+0.425Pc)+0.850.15+0.1275+0.36125Pc
=0.513375+0.6683125Pc
0.3316875Pc=0.513375 => Pc=1.5477671
Pb=0.15+0.1275+0.36125*1.5477671=0.83663086 => Pb=0.83663086
Pa=0.15+0.425*0.15477671=0.807801012 => Pa=0.807801012
Pc>>Pb>Pa
2013年11月11日 星期一
HW 11-5-2013
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
var re = /\(?\d{3}\)?([-\/\.])\d{3}\1\d{4}/;
function check(){
var OK = re.exec(f.q.value);
if (!OK)
{window.alert(RegExp.input + " isn't a phone number with area code!");
f.q.value="";
document.f.q.focus();
return false; }
else
window.alert("Thanks, your phone number is " + OK[0]);
}
</script>
</head>
<body>
<p>Enter your phone number .
<br>The expected format is like ###-###-####.</p>
<form name="f" action="#" onsubmit="return check()" method="get">
check:<input type="text" name="q">
<input id="phone" type="submit" value="check">
</form>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
var re = /\(?\d{3}\)?([-\/\.])\d{3}\1\d{4}/;
function check(){
var OK = re.exec(f.q.value);
if (!OK)
{window.alert(RegExp.input + " isn't a phone number with area code!");
f.q.value="";
document.f.q.focus();
return false; }
else
window.alert("Thanks, your phone number is " + OK[0]);
}
</script>
</head>
<body>
<p>Enter your phone number .
<br>The expected format is like ###-###-####.</p>
<form name="f" action="#" onsubmit="return check()" method="get">
check:<input type="text" name="q">
<input id="phone" type="submit" value="check">
</form>
</body>
</html>
2013年11月4日 星期一
Lab 22
<html>
<body>
<form action="https://maps.google.com/maps" method="get" name="f" onsubmit="return check()">
<input name="q" type="text"/> <br/>
<input name="send" type="submit" value="search"/>
</form>
</body>
<script>
var floatReg=/^([+-]?)[1-9]\d*(\.\d*)?,([+-]?[1-9]\d*(\.\*)?$)/;
function check(){
if(!floatReg.test(f.q.value)){
alert("It's not correct format,please retry");
f.q.value="";
document.f.q.focus();
return false;
}
}
document.write(Date());
</script>
</html>
<body>
<form action="https://maps.google.com/maps" method="get" name="f" onsubmit="return check()">
<input name="q" type="text"/> <br/>
<input name="send" type="submit" value="search"/>
</form>
</body>
<script>
var floatReg=/^([+-]?)[1-9]\d*(\.\d*)?,([+-]?[1-9]\d*(\.\*)?$)/;
function check(){
if(!floatReg.test(f.q.value)){
alert("It's not correct format,please retry");
f.q.value="";
document.f.q.focus();
return false;
}
}
document.write(Date());
</script>
</html>
2013年10月28日 星期一
Lab 18
<html>
<head>
</head>
<body id="body">
<form action="https://maps.google.com/" name="q" method="get" id="exampleForm" onsubmit="return check()">
search:<input type="text" id="examplePass" name="q" >
<input type="submit" value="submit">
<br>
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/\-?\d+(\.\d+)?\,\-?\d+(\.\d+)?$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
return false;
var notify = document.getElementById("notify");
if(notify === null){
notify = document.createElement("p");
notify.textContent = "ERROR";
notify.id ="notify";
var body =document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
<head>
</head>
<body id="body">
<form action="https://maps.google.com/" name="q" method="get" id="exampleForm" onsubmit="return check()">
search:<input type="text" id="examplePass" name="q" >
<input type="submit" value="submit">
<br>
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/\-?\d+(\.\d+)?\,\-?\d+(\.\d+)?$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
return false;
var notify = document.getElementById("notify");
if(notify === null){
notify = document.createElement("p");
notify.textContent = "ERROR";
notify.id ="notify";
var body =document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
Lab 17
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="text" id="examplePass"/>
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/-?\d+(\.\d+)?\,\-?\d+(\.\d+)?$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if(notify === null){
notify = document.createElement("p");
notify.textContent = "ERROR";
notify.id ="notify";
var body =document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="text" id="examplePass"/>
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/-?\d+(\.\d+)?\,\-?\d+(\.\d+)?$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if(notify === null){
notify = document.createElement("p");
notify.textContent = "ERROR";
notify.id ="notify";
var body =document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
Lab 16
<html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="text" id="examplePass"/>
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/-?\d+(\.\d+)?$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if(notify === null){
notify = document.createElement("p");
notify.textContent = "ERROR";
notify.id ="notify";
var body =document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
<head>
</head>
<body id="body">
<form action="javascript:void(0);" id="exampleForm">
<input type="text" id="examplePass"/>
<input type="submit" />
</form>
</body>
<script>
document.getElementById("exampleForm").onsubmit = function(){
var passwordRegex =/-?\d+(\.\d+)?$/;
if(!passwordRegex.test(document.getElementById("examplePass").value)){
console.log("Regex didn't match");
var notify = document.getElementById("notify");
if(notify === null){
notify = document.createElement("p");
notify.textContent = "ERROR";
notify.id ="notify";
var body =document.getElementById("body");
body.appendChild(notify);
}
}
};
</script>
</html>
2013年10月21日 星期一
Lab 15
<html>
<head>
</head>
<body id="body">
<form action="https://maps.google.com/" name="q" method="get" id="exampleform">
search:<input type="text" name="q" id="examplePass">
<input type="submit" value="submit">
<br>
</form>
</body>
</html>
<head>
</head>
<body id="body">
<form action="https://maps.google.com/" name="q" method="get" id="exampleform">
search:<input type="text" name="q" id="examplePass">
<input type="submit" value="submit">
<br>
</form>
</body>
</html>
Lab 14
1.
<html>
<head>
</head>
<body id="body">
<form action="http://www.google.com.tw/search" id="exampleForm" name="q" method="get">
<input type="text" name="q" id="examplePass" />
<input type="submit" />
</form>
</body>
<html>
<head>
</head>
<body id="body">
<form action="http://www.google.com.tw/search" id="exampleForm" name="q" method="get">
<input type="text" name="q" id="examplePass" />
<input type="submit" />
</form>
</body>
2.<html>
<head>
</head>
<body>
<form action="http://www.google.com.tw/search" name="q" method="post">
search:<input type="text" name="q">
<input type="submit" value="submit">
<br>
</form>
</body>
</html>
Lab 13
<html>
<body>
<img onmouseover="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcK8wk5l5rfTn92Ex0J9mTWAjSZN4AQsdp2jKVMZTiPjw9xvjyG5idLZvfOg36x7pzB6jhSsmRX4Cq1jt3HyWhkU7xA9d6ObbEPKJQUltvs_NukwSz0qme-tPubOOsQNwXrli5-ScBPk/s320/DSC_1795.JPG'" onmouseout="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXNS8-ZUa14riVG6C2wdzj4aoQpA6CVV3fLD3vGT7XGs6PxlkZmIoaBx7kolcqKy8PV_9zW2oVVmlJKTX1k5_iVoNelq-I_ZfAGl8HATP95WGucUZXZni9twH6kwxdiUXpygo0UJtox9OU/s320/DSC_1772.JPG'" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcK8wk5l5rfTn92Ex0J9mTWAjSZN4AQsdp2jKVMZTiPjw9xvjyG5idLZvfOg36x7pzB6jhSsmRX4Cq1jt3HyWhkU7xA9d6ObbEPKJQUltvs_NukwSz0qme-tPubOOsQNwXrli5-ScBPk/s320/DSC_1795.JPG"</img>
</body>
</html>
<body>
<img onmouseover="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcK8wk5l5rfTn92Ex0J9mTWAjSZN4AQsdp2jKVMZTiPjw9xvjyG5idLZvfOg36x7pzB6jhSsmRX4Cq1jt3HyWhkU7xA9d6ObbEPKJQUltvs_NukwSz0qme-tPubOOsQNwXrli5-ScBPk/s320/DSC_1795.JPG'" onmouseout="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXNS8-ZUa14riVG6C2wdzj4aoQpA6CVV3fLD3vGT7XGs6PxlkZmIoaBx7kolcqKy8PV_9zW2oVVmlJKTX1k5_iVoNelq-I_ZfAGl8HATP95WGucUZXZni9twH6kwxdiUXpygo0UJtox9OU/s320/DSC_1772.JPG'" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcK8wk5l5rfTn92Ex0J9mTWAjSZN4AQsdp2jKVMZTiPjw9xvjyG5idLZvfOg36x7pzB6jhSsmRX4Cq1jt3HyWhkU7xA9d6ObbEPKJQUltvs_NukwSz0qme-tPubOOsQNwXrli5-ScBPk/s320/DSC_1795.JPG"</img>
</body>
</html>
2013年10月14日 星期一
Lab 12
<html>
<body>
<img onmouseover="build(this)" onmouseout="buil(this)" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcK8wk5l5rfTn92Ex0J9mTWAjSZN4AQsdp2jKVMZTiPjw9xvjyG5idLZvfOg36x7pzB6jhSsmRX4Cq1jt3HyWhkU7xA9d6ObbEPKJQUltvs_NukwSz0qme-tPubOOsQNwXrli5-ScBPk/s320/DSC_1795.JPG"</img>
<script>
function build(myImg)
{
myImg.setAttribute("src","https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcK8wk5l5rfTn92Ex0J9mTWAjSZN4AQsdp2jKVMZTiPjw9xvjyG5idLZvfOg36x7pzB6jhSsmRX4Cq1jt3HyWhkU7xA9d6ObbEPKJQUltvs_NukwSz0qme-tPubOOsQNwXrli5-ScBPk/s320/DSC_1795.JPG")
}
function buil(myImg)
{
myImg.setAttribute("src","https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXNS8-ZUa14riVG6C2wdzj4aoQpA6CVV3fLD3vGT7XGs6PxlkZmIoaBx7kolcqKy8PV_9zW2oVVmlJKTX1k5_iVoNelq-I_ZfAGl8HATP95WGucUZXZni9twH6kwxdiUXpygo0UJtox9OU/s320/DSC_1772.JPG")
}
</script>
</body>
</html>
2013年10月7日 星期一
HW 9-30-2013
1.Write a 200 word summary about his speech.
以前的電腦有許多格式,不能互通,而演變到今有許多豐富的功能。但會發生我們從網路上得不到我們想要的資料,有大量的資料是非常重要的,但如何運用這些大量的資料,做有效的連結。而產生出新的觀念"Linked Data(關聯資料)"Tim Berners-Lee 在20年前發明了網際網路, 讓人們可以互相傳遞資訊。Tim Berners-Lee還引用了漢斯的話:大量的數據很重要。後來有了超連結,透過超連結,人們可以在搜尋資料時,找到更多關聯的資料,他希望能把所有資料都串在一起,讓大家更能夠搜尋到資料。
2. Google 的創業動機是什麼?
一開始有許多瀏覽器,只是結構都不夠健全不夠完整,Google創辦人Larry Page和Sergey Brin始初在學校開始一項關於"搜尋"的研究專案。兩人開發一個能對網站之間的關聯做精確分析的搜尋引擎。
3. Facebook的創立動機是什麼?
一開始有許多瀏覽器,只是結構都不夠健全不夠完整,Google創辦人Larry Page和Sergey Brin始初在學校開始一項關於"搜尋"的研究專案。兩人開發一個能對網站之間的關聯做精確分析的搜尋引擎。
3. Facebook的創立動機是什麼?
Facebook,是一個在線社群網路服務網站,它的名字源於口語化,最初的目的是給予一些美國的大學新鮮人們在一學年的開始註冊的時候,能相互認識。目的是認識到女生,卻用擴大人際網路這個藉口招攬同學加入。
4. WWW的發明動機是什麼?
全球資訊網(亦作「Web」、「WWW」、「'W3'」,英文全稱為「World Wide Web」),是一個由許多互相連結的超文字組成的系統,透過網際網路存取。WWW發明者Time Berners-Lee在歐洲核子物理實驗室(CERN)工作時提出hyperlink的概念,當出建立的目標只是為量子實驗室的電腦使用者,提供一個多媒體資料庫讓每一個使用者透過超文件存取共通資訊的簡易方法。於是他創造了全球資訊網,並寫了世界上第一個網頁瀏覽器(WorldWideWeb)和第一個網頁伺服器(httpd)。
5. 為什麼 Lab 4 的各校檔案數,能見度,檔案數,論文數,加權總和用來計算排名的方法是錯的?
針對搜尋引擎查詢結果的分析,網頁資料的雜訊相當高,變動也很快。因此,利用網路資料來排名有其先天上的缺點,較細微的排名結果可信度較差,爭議性也會比較高。任何排名指標都應該透明到可重複驗證,網路資訊因為太方便,人們都容易取得,所以資料很容易會有變動,誤差值相對就會增高,網頁數量也會不穩定。
4. WWW的發明動機是什麼?
全球資訊網(亦作「Web」、「WWW」、「'W3'」,英文全稱為「World Wide Web」),是一個由許多互相連結的超文字組成的系統,透過網際網路存取。WWW發明者Time Berners-Lee在歐洲核子物理實驗室(CERN)工作時提出hyperlink的概念,當出建立的目標只是為量子實驗室的電腦使用者,提供一個多媒體資料庫讓每一個使用者透過超文件存取共通資訊的簡易方法。於是他創造了全球資訊網,並寫了世界上第一個網頁瀏覽器(WorldWideWeb)和第一個網頁伺服器(httpd)。
5. 為什麼 Lab 4 的各校檔案數,能見度,檔案數,論文數,加權總和用來計算排名的方法是錯的?
針對搜尋引擎查詢結果的分析,網頁資料的雜訊相當高,變動也很快。因此,利用網路資料來排名有其先天上的缺點,較細微的排名結果可信度較差,爭議性也會比較高。任何排名指標都應該透明到可重複驗證,網路資訊因為太方便,人們都容易取得,所以資料很容易會有變動,誤差值相對就會增高,網頁數量也會不穩定。
2013年9月30日 星期一
訂閱:
意見 (Atom)





































