DLNA(Digital Living Network Alliance)聯盟的簡稱,此聯盟的任務是制定一個統一的傳輸規範,讓各種不同廠牌、類型的影音機材能相互溝通。因此,只要是符合DLNA的影音機材,就能在不需驅動程式、轉接裝置下直接連結、同步動作,甚至是傳輸資料。
- May 31 Thu 2012 20:10
-
DLNA
DLNA(Digital Living Network Alliance)聯盟的簡稱,此聯盟的任務是制定一個統一的傳輸規範,讓各種不同廠牌、類型的影音機材能相互溝通。因此,只要是符合DLNA的影音機材,就能在不需驅動程式、轉接裝置下直接連結、同步動作,甚至是傳輸資料。
- Sep 02 Thu 2010 11:54
-
switch case 還可以這樣用啊!
看來他跟if else比起來也有不同的用途呢?
class Month{
public static void main(String[] args){
int test1=1;
int test2=8;
switch(test2){
case 1:
case 2:
case 3:
print("1 to 3");
break;
case 4:
case 5:
case 6:
print("4 to 6");
break;
case 7:
case 8:
case 9:
print("7 to 9");
break;
case 10:
case 11:
case 12:
print("10 to 12");
break;
default:
System.out.println("error");
}
}
public static void print(String a){
System.out.println("The unmber is in "+a +"scope");
}
}
- Aug 18 Wed 2010 12:46
-
Controlling Access to Members of a Class (protected)
public class Base{
private int privateData=0;
protected int protectedData=1;
int packageData=2;
public int publicData=3;
public Base(){
}
public void publicMethod(){
System.out.format("publicMethod called%n");
}
private void privateMethod(){
System.out.format("privateMethod called%n");
}
void packageMethod(){
System.out.format("packageMethod called%n");
}
protected void protectedMethod(){
System.out.format("protectedMethod called%n");
}
}
package B;
import A.Base;
class Subclass extends Base{
public static void main(String[] args){
Base b=new Base();
//b.privateMethod();//illegal
//b.packageMethod();//illegal
//b.protectedMethod();//illegal
b.publicMethod();//legal 不同package只能呼叫public成員
//System.out.format("privateData: %2d%n",b.privateData);//illegal
//System.out.format("packageData: %2d%n",b.packageData);//illegal
//System.out.format("protectedData: %2d%n",b.protectedData);//illegal
System.out.format("publicData: %2d%n",b.publicData);//legal
Subclass s=new Subclass();
s.publicMethod();//legal
s.protectedMethod();//legal protected資料可由他的子類別存取
System.out.format("protectedData: %2d%n",s.protectedData);//legal
//s.packageMethod();//illegal
//System.out.format("packageData: %2d%n",s.packageData);//illegal 跨package不能使用package變數
//System.out.format("privateData: %2d%n",s.privateData);//illegal private變數不能繼承
}
}
- May 06 Sun 2012 23:05
-
英文日誌重啟 英文-To tie the knot
這還真是想不到啊!據說是從前結婚典禮上要打結,表示新郎和新娘從此生活在一起,所以才會用to tie the knot 來表非結婚,還是的很有意思呢!
另外還學到 drop-dead gorgeous 是指非常漂亮的意思。
- Mar 29 Thu 2012 11:15
-
Basket case -by Green Day
To listen to me whine(悲鳴)
About nothing and everything
All at once
I am one of those
Melodramatic fools
Neurotic to the bone
No doubt about it
Sometimes I give myself the creeps
Sometimes my mind plays tricks on me
It all keeps adding up
I think I'm cracking up
Am I just paranoid?
Am I just stoned?
I went to a shrink
To analyze my dreams
She says it's lack of sex
That's bringing me down
I went to a whore
She said my life's a bore
So quit my whining cause
It's bringing her down
Sometimes I give myself the creeps
Sometimes my mind plays tricks on me
It all keeps adding up
I think I'm cracking up
Am I just paranoid?
Uh, yuh, yuh, ya
Grasping to control
So I better hold on
Sometimes I give myself the creeps
Sometimes my mind plays tricks on me
It all keeps adding up
I think I'm cracking up
Am I just paranoid?
Am I just stoned?
- Nov 13 Sat 2010 15:25
-
eclipse結合tomcat遇到警告 集成tomcat 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
eclipse-jee-helios-SR1-win32.zip
我並且結合tomcat :(apache-tomcat-7.0.2-windows-x86.zip),我在eclipse中建立了一個 Dynamic Web Project 並且把它的路徑加在 tomcat安裝目錄/conf/ 底下的server.xml 裡加上如下:
- Oct 29 Fri 2010 20:04
-
PHP在單引號' ' 裡不處理跳脫字元
- Aug 20 Fri 2010 14:40
-
Augmented reality
Augmented reality (AR) is a term for a live direct or indirect view of a physical real-world environment whose elements are augmented by virtual computer-generated imagery.
- Aug 09 Mon 2010 23:09
-
I Believe My Heart-Ducan James and Keedie
收錄於[春浪漫]專輯裡面
[Duncan]=====>
Whenever I see your face the world disappears,
All in a single glance so revealing.
You smile and I feel as though I've know you for years.
How do I know to trust what I'm feeling?
I believe my heart.
what else can I do?
when every part of every thought leads me straight to you.
I believe my heart.
There's no other choice.
For now whenever my heart speaks. I can only hear your voice.
[Keedle]=====>
The life-time before we met has faded away.
How did I live a moment without you?
You don't have to speak at all,I know what you'd say.
And I know every secret about you.
I believe my heart.
It believes in you.
It's telling me that what I see is completely true.
I believe my heart.
How can it be wrong?
It says that What I feel for you I will feel my whole life long.
[Duncan and Keedle]==>
I believe my heart.
It believes in you.
It's telling me that what I see is completely true.
And with all my soul
I believe my heart.
The portrait that it paints of you is a perfect work of art.
- Sep 30 Wed 2009 19:55
-
菜鳥新兵經歷《一》
在部隊的生活是非常規律的,每天早上五點半起床,晚上九點半睡覺,雖然我們同梯的每次五點20分就已經有人在整內務了, 在部隊裡的行程大概是每天早上起來就開始暖身,暖身完就開始跑步,接著吃早飯,吃完早飯就開始操課了,操課內容包含了打靶、刺槍、投手榴彈、單兵及各種體能訓練。
講到打靶也算是我人生第一次的經驗,第一次打真的有子彈的槍,第一次在這麼近的距離聽到槍聲,槍聲真的很大聲。但輪到我自己打的時候,反而覺得槍聲沒有那麼大聲,可能因為專注於瞄準目標或太過緊張,或是因為戴了耳塞的緣故吧!
