PIXNET Logo登入

Deja Vu

跳到主文

C'est la vie

部落格全站分類:心情日記

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 4月 02 週四 200914:41
  • xsl

XSL(eXtensible Style Language)
是一種 Script Language, 功能上主要分為兩個部份:
轉換XML文件 : 將XML文件架構轉換成另一XML架構的文件或HTML文件.(XSLT)
格式化XML文化 : 格式化Element內容的Style, 以便顯示出XML文件.(XSL)
簡單說, XML配合XSLT就可以在支援HTML的瀏覽器上顯示文件的內容
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(22)

  • 個人分類:XML
▲top
  • 4月 02 週四 200914:39
  • Bat語法

Bat : The script of dos command.
cmd -> help ( command /? )
@echo off : Don't show the command ( Ex : C:>_ )
echo : print the string
call : connect other bat
copy : merge the file
xcopy /y : let a.file copy to b.file
rem : comment
:: : comment
ren : rename
type : print the context of file
> : write into the file ( Clear the orginal file context )
>> : write into the file ( Add to the end )
goto : ( Ex : goto test :test echo Good! )
md : create the new folder
set : set var to use
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(908)

  • 個人分類:認識計算機
▲top
  • 4月 02 週四 200914:38
  • package compile

compile:
javac -d . Testing.java
execute:
java com.fun.Testing
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(33)

  • 個人分類:喝JAVA咖啡
▲top
  • 4月 02 週四 200914:36
  • 基本語法

Mysql>create database test;
//create the new database test
Mysql>use test;
//use the database test
Mysal>create table student
->(number int not null,
->name char(20) not null,
->grade int not null,
->primary key(number));
//create table
Mysql>show tables;
//show tables
Mysql>describe student
//show the type of table
Mysql>insert into student
->(number,name,grade)
->values(1,"SAM",90);
//key in the value
Mysql>grant all on * to 123@localhost identified by 'SAM';
//give the authority to the 123 user with identified 'SAM'
Mysql>revoke all on * from 123@localhost;
//remove the user 123
Mysql>drop database test;
//remove the database test
Mysql>create table student
->(number int not null,
->name char(20) not null,
->grade int not null,
->primary key(number)) TYPE=MyISAM
//set the primary key for number and set the table type with MyISAM
Mysql>alter table student change column number number int auto_increment;
//alter the data
Mysql>alter table student add column phone char(20) not null;
//add new data
Mysql>alter table student drop column grade;
//drop the old data
Mysql>create table depart_location
->(location char(30) not null,
->number int null,
->foreign key(number) references depart(number));
//set the connetion
/*
Primary key:限制欄位的值必須是唯一,並且不能沒有資料
Foreign key:限制欄位的值必須是來自於其所參考得資料表,使用null可以避免資料關聯不完全
unique:欄位值必須是唯一的,不允許在同一個資料表出現
*/
Mysql>create table work_on
->(essn char(9) not null,
->pno int not null,
->hours decimal(3,1) not null,
->primary key(essn,pno),
->foreign key(essn) references employee(ssn),
->foreign key(pno) references project(pnumber));
//set the multiple key
Mysql>create table work_on
->(essn char(9) not null,
->pno int not null,
->hours decimal(3,1) not null,
->primary key(essn,pno),
->constraint ssn_primary
->foreign key(essn) references employee(ssn),
->constraint pno_primary
->foreign key(pno) references project(pnumber));
//use constraint(強制) to name the 欄位 ;強制給欄位名稱
Mysql>select * from student where number=3
//where==condition
Mysql>select student.name,student.phone from student where number=3
//select the name & phone that who's number is 3
mysql>select data.number,data.name,data.experience as m from data where number>
0 group by number having m=89;
//將experience當作欄位m,並且m=89,且number必須大於0,以number為群組
/*group:會將相同資料合併*/
Mysql>select number,name,experience from data where name like "宋%" and experience>10
order by number desc;
// and用法 %代表萬用字元 表示剩下字串 like+子句
Mysql>select number,name,experience from data where name like "宋%" or "吳%";
//or 用法
Mysql>select data.name,data.experience,COUNT(*) from data where data.number>0 group by experience;
//count(*)取得群組數值 和group by配合使用
Mysql>select data.experience,avg(salary) from data where data.number>0 and data.number<5 group by experience;
//avg()算出該群組的平均值
Mysql>select data.experience,max(salary) from data where number>0 group by experience;
//max()算出群組中得最大值(最多要求多少) min()算出最小值(最少要求多少)
stddev()算出標準差(標準差大表示差異大)
sum()算出總值
/*
having 子句: 限制條件,通常跟在group by之後
order by 欄位:排序欄位
order by 欄位 desc:遞減排序
*/
Mysql>select data.name,work.name from data join work where (data.name==work.name) and
(data.number>0);
//將data中number大於0的name欄位資料加進work裡
Mysql>insert into student values(1,"TOM");
//insert the data to student
Mysql>insert into tutor (name,salary,location) from asir where number>10 and number<50;
//選取插入
Mysql>delete from tutor where number>10;
//delete the data
Mysql>update tutor set depart="k400" where number=3;
//update the data
Mysql>update tutor set salary=salary*3 where number in (1,3,5,7);
//update the set's data
///////conculsion/////////////
-select
-from
-where
-group by
-having
-order by
-insert into
-delete from
-update set
////////////////////////////////
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(395)

  • 個人分類:資料庫真酷
▲top
  • 4月 02 週四 200914:33
  • jnlp

java web start 及 Java Network Launch Protocol (JNLP)
-很容易的就發佈一個交叉平臺和用戶端系統
Java Web Start
-通過標準Web服務來傳送程式的機制
-從流覽器開始,程式傳送到用戶端並在流覽器之外的地方發佈。一旦發佈,程式就不再需要再次下載,而且它們可以在電腦啟動的時候自動下載更新而不需要使用者從頭到尾的經歷整個過程。
JNLP
-為發佈而封裝是Java Network Launch Protocol (JNLP)開始運行的第一步。除了一個JAR檔,JNLP要求你建立一個描述檔關於如何啟動程式。這個檔的格式在Java Network Launching Protocol & API Specification (JSR-56)中有詳細說明,和Java Web Start Technology Developer's Guide中的一個子集在一起。因為它僅僅是一個XML檔,DTD的說明在說明書中。你需要提供應用程式源代碼的位置,相關資訊會在應用程式載入時彈出的視窗中告訴你,並告訴你哪個是你的應用程式源代碼。其他部分屬於非強制性部分。有關程式載入時的詳細資料比如哪個類開始在JAR文件或JNLP描述檔中會詳細說明。
相關文章介紹:http://www.linuxuser.com.tw/skill_detail.php?cid=1479
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(845)

  • 個人分類:喝JAVA咖啡
▲top
  • 4月 02 週四 200914:31
  • 認識XML

*XML需內嵌XSL才可展現出HTML網頁的形式
設計語言的語言
規定嚴格
-一定要有結束標籤
-標籤不可交叉
可自訂標籤
注重內容較不重佈局
空白字元會辨識
CDATA( C data; c character ): 只要是合格的Unicode字都允許
-Ex:
Unicode: 萬用字元
PI( Processing Instruction ): 用來傳遞情報給parser下游的程式 使瀏覽器找到規範
-Ex:
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(65)

  • 個人分類:XML
▲top
  • 4月 02 週四 200914:30
  • 產生jar檔

普通產生jar;
jar cvf XXXX.jar *.class
///////////////////////////////////////
要是使用package則先建立manifest
manifest.mf:
Manifest-Version: 1.0 (1.0前面一定要加空一格)
Sealed: true
Main-Class: package名稱.類別名稱 (含有main的class)
空白行--->必要!!
command line:
jar cvfm 任意名稱.jar manifest.mf package名稱
import其他package:
jar cvfm 任意名稱.jar manifest.mf 類別名稱.class package名稱
多個class封裝:
jar cfm JAR檔名.jar manifest.mf 類別名稱.class (後面可以接上一個
空白鍵後,再加入其它的*.class檔)
////////////////////////////////////////////////
Execute jar file:
command line:
java -jar XXX.jar
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(1,259)

  • 個人分類:喝JAVA咖啡
▲top
  • 4月 02 週四 200914:29
  • 委任(aggregation)


一件事物是由另一件事物組成
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(52)

  • 個人分類:樂高一樣的物件導向
▲top
  • 4月 02 週四 200914:29
  • 文本分析(textual analysis)


查看usre case裡的名詞 &  動詞
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(1) 人氣(505)

  • 個人分類:樂高一樣的物件導向
▲top
  • 4月 02 週四 200914:28
  • 使用者案例(user case)


清楚明瞭的敘述使用者需求
主要路徑: 無例外情況發生
(繼續閱讀...)
文章標籤

flyinsky76 發表在 痞客邦 留言(0) 人氣(353)

  • 個人分類:樂高一樣的物件導向
▲top
«1...22232427»

白花油盃樂樂球賽

愛的持久賽

2010痞客邦生日慶

大學生了沒-要你的大絕招

大學生了沒-要你的大絕招

LUCKY GO!貼紙

熱門文章

  • (61)開放雲端宣言
  • (42,302)表情文字符號(轉貼)
  • (5,843)深海尋寶2

文章分類

  • 享受生活 (13)
  • 我愛看漫畫書 (2)
  • 大家一起WII (1)
  • XML (3)
  • 有恐龍的OS (1)
  • 科技新新聞 (6)
  • 演算法耶 (5)
  • 資訊要安全 (1)
  • 公仔世界 (12)
  • 樂高一樣的物件導向 (5)
  • UML愛畫圖 (12)
  • 國文小老師 (8)
  • 就是愛音樂 (16)
  • 專案管理經理 (2)
  • JSP好會動 (3)
  • 烏邦託的世界 (13)
  • 金錢滾滾來 (10)
  • 軟體也是工程 (1)
  • 神奇C++ (21)
  • 好圖分享 (11)
  • 網路無限大 (6)
  • 網頁愛漂亮 (5)
  • 駭客好厲害 (1)
  • 認識計算機 (7)
  • 資料庫真酷 (4)
  • 資料結構真好玩 (19)
  • 好書值得一讀在讀 (5)
  • 電影亂評論 (19)
  • 快樂學日文 (4)
  • 快樂學英文 (6)
  • 欣賞Ruby寶石 (9)
  • 喝JAVA咖啡 (16)
  • 未分類文章 (1)

最新文章

  • 痞客邦 T-shirt讀心術 - 一件衣服找到 SOUL MATE
  • 久石讓
  • Google PageRank
  • Danziamo
  • 朱學恆 創意與熱情
  • 大野狼 VS 小豬
  • mysql 中文顯示問題
  • 機車 VS 汽車
  • Atomic Kitten Eternal Flame
  • changeling(陌生的孩子)

誰來我家

GoogleSearch

站内Search

參觀人氣

  • 本日人氣:
  • 累積人氣:

Google廣告

杭州旅遊圓夢徵文活動

中小網大蜂學習

NBA