Programming 方面
1. Java
2. C
3. AS3
4. JS
English 方面
1. 英檢中級初試 pass!
others
1. 練習程式考古題
2. 資結 演算法
2012年2月12日 星期日
2012年2月11日 星期六
2012年2月9日 星期四
php留言板code
<html>
<head>
<title>留言板</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" >
<style>
h3 {
color:#FF8000;
font-family:Verdana;
}
p {
color:blue;
color:#844200;
}
div {
color:#7b7b7b;
font-size:10pt;
}
hr {
border-top:1px solid #FF8000;
}
</style>
</head>
<body>
<form name="f1" action="index.php" method="post" >
Name: <input type="text" name="uid" value="" /> <br/>
Location: <input type="text" name="userhome" value="" /><br/>
Title: <input type="text" name="title" value="" /> <br/>
Content: <br/><textarea name="content" rows="5" cols="35" ></textarea><br/>
<input type ="submit" value="send" />
<input type ="reset" value="clear" />
<a href="index.php">refresh</a>
</form>
<hr/>
<?php
@$username=(string)$_REQUEST["uid"];
@$title=$_REQUEST["title"];
@$msg=$_REQUEST["content"];
@$currentdate = date("Y-m-d h:i:A");
@$userhome=$_REQUEST["userhome"];
$link = mysql_pconnect("localhost", "root", "");
mysql_query("SET NAMES 'utf8'");
mysql_select_db("test") or die("插不進去");
if($username != null) {
$query = "INSERT INTO message (title,content,username,currentdate,userhome)
VALUES ('$title','$msg','$username','$currentdate','$userhome')";
mysql_query($query) or die("error" . mysql_error( ));
}
$query = "SELECT * FROM message order by mid desc";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result))
{
echo "<h3 class='title'>{$row['title']} </h3> ";
echo "<p>{$row['content']}</p>";
echo "<div>我是:{$row['username']} <br/>";
echo "留言於:{$row['currentdate']}, from {$row['userhome']} <br/></div>";
echo "<hr/>";
}
?>
</body>
</html>
<head>
<title>留言板</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" >
<style>
h3 {
color:#FF8000;
font-family:Verdana;
}
p {
color:blue;
color:#844200;
}
div {
color:#7b7b7b;
font-size:10pt;
}
hr {
border-top:1px solid #FF8000;
}
</style>
</head>
<body>
<form name="f1" action="index.php" method="post" >
Name: <input type="text" name="uid" value="" /> <br/>
Location: <input type="text" name="userhome" value="" /><br/>
Title: <input type="text" name="title" value="" /> <br/>
Content: <br/><textarea name="content" rows="5" cols="35" ></textarea><br/>
<input type ="submit" value="send" />
<input type ="reset" value="clear" />
<a href="index.php">refresh</a>
</form>
<hr/>
<?php
@$username=(string)$_REQUEST["uid"];
@$title=$_REQUEST["title"];
@$msg=$_REQUEST["content"];
@$currentdate = date("Y-m-d h:i:A");
@$userhome=$_REQUEST["userhome"];
$link = mysql_pconnect("localhost", "root", "");
mysql_query("SET NAMES 'utf8'");
mysql_select_db("test") or die("插不進去");
if($username != null) {
$query = "INSERT INTO message (title,content,username,currentdate,userhome)
VALUES ('$title','$msg','$username','$currentdate','$userhome')";
mysql_query($query) or die("error" . mysql_error( ));
}
$query = "SELECT * FROM message order by mid desc";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result))
{
echo "<h3 class='title'>{$row['title']} </h3> ";
echo "<p>{$row['content']}</p>";
echo "<div>我是:{$row['username']} <br/>";
echo "留言於:{$row['currentdate']}, from {$row['userhome']} <br/></div>";
echo "<hr/>";
}
?>
</body>
</html>
2012年2月8日 星期三
進影院之 大魔術師
平日的新光午夜場人還真的是少!very nice! 不過缺點是只要有幾隻害群之馬在那邊滔滔不絕,那看戲品質保證即刻打五折…要預防這種囧況就不能座票上打的位置,因為午夜場沒人,所以都會從中間大家認為最棒的位置開始排,難免人多嘴雜,建議一開始就座偏後的位置,如此一來,進可攻,退可守,超完美!
回歸正題,大魔術師真的非常好看,雖然有點無厘頭,不過好幾幕都令人會心一笑,整部片就很像讓子彈飛; 那些覺得是爛片的心得文我看了之後覺得他們是有自虐傾向,非得故事要沉重、悲傷才會覺得舒服,只能說大魔術師這部片,認真就輸了。
演員的話覺對是一時之選,光是有梁朝偉我就飽了! 劉青雲的搞笑功力一流,卡司部分沒話講。
回歸正題,大魔術師真的非常好看,雖然有點無厘頭,不過好幾幕都令人會心一笑,整部片就很像讓子彈飛; 那些覺得是爛片的心得文我看了之後覺得他們是有自虐傾向,非得故事要沉重、悲傷才會覺得舒服,只能說大魔術師這部片,認真就輸了。
演員的話覺對是一時之選,光是有梁朝偉我就飽了! 劉青雲的搞笑功力一流,卡司部分沒話講。
[Android] MT15i_4.0.2.A.0.42 升到 4.0.2.A.0.62 方法
我的neo要從0.42 update to 0.62時有個問題,就是一定要從PCC操作,但此舉會unroot, 如果要保持root的狀態就要OTA, 但很可惜的,似乎動過系統資訊就無法OTA成功,所以這種狀態似乎只有一種solution, 流程如下:
Related link :
- 找到0.42的韌體檔
- 用0.42一鍵root把系統root
- OTA到0.62
Related link :
2012年2月6日 星期一
Google 整合功力一流
以前要編輯一篇圖文並茂的文章 on blog 總要先接上傳輸線,經過一堆繁雜的程序後才能完成,
現在使用blogger 要使用圖片,只要從手機上傳到 google相簿,就可以串聯blogger...
整合功力沒話說!
電話簿整合!
行事曆整合!
現在使用blogger 要使用圖片,只要從手機上傳到 google相簿,就可以串聯blogger...
整合功力沒話說!
電話簿整合!
行事曆整合!
2012年2月4日 星期六
PHP 開發環境
開發工具
● Notepad++ v5.9.8 Installer http://notepad-plus-plus.org/
ap put in C:\xampp\htdocs
P.S. 如果iis有占用到 80 port , 要先stop , apache 才能run.
● Notepad++ v5.9.8 Installer http://notepad-plus-plus.org/
Web Server
● Apache
AP Server (programming language)
● PHP
DB Server(database)
● Mysql
整合 package (web,ap,db)
ap put in C:\xampp\htdocs
P.S. 如果iis有占用到 80 port , 要先stop , apache 才能run.
2012年2月2日 星期四
2012年2月1日 星期三
訂閱:
文章 (Atom)