2010年5月4日 星期二

JSP: statement


<%@ include file="a.jsp"%>

=

<jsp:directive.include file="a.jsp"/>

<%x=1;%>

=

<jsp:scriptlet>x=1;</jsp:scriptlet>

<%=x%>
=

<jsp:expression>x</jsp:expression>

<jsp:usebean id="fruit type ="String"/>
=

<jsp:usebean id="fruit type ="String" beanName="Fruit"/>

JSP: attributes of page directive

The following are legal attributes of page directive -

  1. import

  2. isThreadSafe

  3. session

  4. contentType

  5. autoFlush

  6. extends

  7. info

  8. errorPage

  9. isErrorPage

  10. language

2010年4月28日 星期三

Category 5 cable

Wiring

See modular connector for numbering of the pins


PinT568A PairT568B PairWireT568A Color (CROSS) A-BT568B Color (STRAIGHT) A-APins on plug face (socket is reversed)
132tipPair 3 Tip
white/green stripe
Pair 2 Tip
white/orange stripe
Rj45plug-8p8c.png
232ringPair 3 Ring
green solid
Pair 2 Ring
orange solid
323tipPair 2 Tip
white/orange stripe
Pair 3 Tip
white/green stripe
411ringPair 1 Ring
blue solid
Pair 1 Ring
blue solid
511tipPair 1 Tip
white/blue stripe
Pair 1 Tip
white/blue stripe
623ringPair 2 Ring
orange solid
Pair 3 Ring
green solid
744tipPair 4 Tip
white/brown stripe
Pair 4 Tip
white/brown stripe
844ringPair 4 Ring
brown solid
Pair 4 Ring
brown solid

2010年4月15日 星期四

Linux - startx

Install X:

sudo apt-get install xinit


xrdb command not found, X session not merged:
Install GUI:

Gnome: sudo aptitude install ubuntu-desktop
KDE: sudo aptitude install kubuntu-desktop


X: user not authorized to run the X server, aborting:
startx -- :1