“總-分”結構
To do sth requests:
?? 1. .......
???2. .......
Do one of the following:
???? On Windows: .....
???? On Linux: ....
This section provides background information on ..... and describes how to?.......
The following topics are covered:
???? 1....
?????2...
The only circumstances under which you should need to change SGA and PGA Aggregate sizes are the following:
?? 1...
?? 2...
描述命令行
Enter the following command at the operating system prompt to start SQL Command Line:?
???.........
At the SQL Command Line prompt, enter the following command:?
???select * from table1;
If the command is successful, the following message is displayed:
?? .........
確保
Ensure that sth is started.
Be certain that .....
請參見
Set environment variables according to the instructions in "Setting E... V... on the Linux Platform"
See "......." for instructions.
See?"......" for more information.
See"...." for a discussion of .....
See Also: ...
posted @
2006-07-09 18:09 Jcat 閱讀(316) |
評論 (0) |
編輯 收藏
>sqlplus /nolog????????????? Just startup SQL*PLUS but haven't connected to DB
>sqlplus / as sysdba????? Use os authentication
>sqlplus user/pwd???????? Use db authentication
SQL>startup????????????????? Startup Oracle service (should startup TNSListener at first)
SQL>shutdown
SQL>connect user/pwd??????????????????????? Local connection
SQL>connect
user/pwd@host:1521?? ?Remote connection *1* *2* *3*
SQL>connect system/pwd?????????????????? The pwd is the SYSTEM
password that you set upon installation?of Oracle Database XE.
>lsnrctl status?????????????? View listener status
>lsnrctl start
>lsnrctl stop
>lsnrctl reload
>lsnrctl services
>emctl start dbconsole??
>emctl start agent?????? start up the EM Grid Control facility
>isqlplusctl start???????? start up the iSQL*Plus server
Note
*1* Logging in to the Oracle Database XE host computer with an ssh (or telnet ) session and then starting SQL Command Line (or other Oracle command-line utility) is considered a local connection, even though you start the ssh (or telnet ) application on a remote computer.
*2* The remote computer must have Oracle client software installed.
*3* Only Oracle Database XE Client supports the notion of a default database service. If you connect remotely from any Oracle client software other than Oracle Database XE Client, you must include the XE service name.
?
posted @
2006-07-09 11:18 Jcat 閱讀(417) |
評論 (0) |
編輯 收藏
Environment Variables:
?? GROOVY_HOME=(your groovy install path)
?? path=%GROOVY_HOME%/bin
?? classpath=%GROOVY_HOME%/embeddable/groovy-all-1.0-JSR-06.jar
Hello.groovy (very very simple)
println?"hello?groovy" cmd
>groovyc Hello.groovy
>java Hello
>hello groovy
posted @
2006-07-07 18:20 Jcat 閱讀(139) |
評論 (0) |
編輯 收藏
POJO principle
?
1. The class can not be final
?
2. Must implement Serializable
?
3. Must contain a non-argument constructor
?
4. The getter and setter must be public
?
posted @
2006-07-03 14:24 Jcat 閱讀(244) |
評論 (0) |
編輯 收藏
摘要: Ajax
Asynchronous JavaScript and XML.
Ant
Ant is a software too...
閱讀全文
posted @
2006-06-30 14:01 Jcat 閱讀(1959) |
評論 (1) |
編輯 收藏
摘要: Editing
Ctrl + Space
Basic code completion (the name of any class, method or v...
閱讀全文
posted @
2006-06-26 21:26 Jcat 閱讀(337) |
評論 (0) |
編輯 收藏
==must be installed==
RegexPlugin
http://www.intellij.org/twiki/bin/view/Main/RegexPlugin
unitTest: better (and also bigger) than JunitGenerator
CVS bar: VCS bar is too old
SpellCheckPlugin
http://www.intellij.org/twiki/bin/view/Main/SpellCheck
DBHelper: more powerful than? SQL Query Plugin. Maybe the latter will be removed after I am familiar with DBHelper.
http://ca.geocities.com/davidhuo2003/dbhelper.html
Rearranger: use it in canonical class, such as bean??
http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin
simpleUML??
http://www.intellij.org/twiki/bin/view/Main/SimpleUML
Key promoter: Shows to user how easy he can make same action using only keyboard
==good for using==
IdeaMouseGestures: IdeaMouseGestures plugin provides easy way to assign Idea's menu items to mouse gestures.
http://www.smardec.com/products/idea.html
KonaWorks PowerPack: A new code action to easily insert an expression inside a string literal
http://www.konaworks.org/
DragNDrop: This plugin will allow a user to drag and drop files into the main pane of IntelliJ
Workspaces
http://www.intellij.org/twiki/bin/view/Main/WorkspacesPlugin
RemoteTail: The plugin allows the user to view the content of a file which could be on a different computer.
Jump to Usage: Simple plugin to make navigation to element usages easier than using Alt+F7.
http://sourceforge.net/projects/jumptousage
Library Finder: helps to find library files (.jar/.zip) for a "fully qualified" class/resource name.
http://code.google.com/p/libraryfinder/
IntelliLang: IntelliLang is a combination of three basic kinds of functionality that are meant to support the developer in dealing with certain tasks that relate to (custom) languages in IntelliJ IDEA.
http://www.jetbrains.net/confluence/display/CONTEST/IntelliLang
XPathView + XSLT-Support: required by IntelliLang
http://www.intellij.org/twiki/bin/view/Main/XPathViewPlugin
Tabifier:?The tabifier plugin retabs Java code so that syntactic elements are aligned vertically.?
http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin
Struts Assistant: it will conflict with Struts Plugin, so Struts Assistant is enough.
http://www.intellij.org/twiki/bin/view/Main/StrutsAssistant
IdeaSpring: Helpful?to edit?applicationContext.xml.?But it is even a commercial one! So it has to be re-download every 15 days.
XFile: defaul Changes is good enough, so maybe it will be removed later.
http://www.echologic.com/plugins/xfiles.html
UpperLowerCapitalize: just use the capticalize, since there is default upper/lower in IDEA
http://www.intellij.org/twiki/bin/view/Main/UpperLowerCapitalize
IdeaJad: a popular decompiler
http://www.tagtraum.com/ideajad.html
SyncEdit: Remove the default shortcut "Tab" (for "Next SyncEditable Word"), since I need "Tab" work normally.
World of Java
http://www.worldofjava.org/
Scratch Pad: Additional editor tool window to hold pieces of code temporarily. No syntax colouring, intentions or error highlighting.
http://www.intellij.org/twiki/bin/view/Main/ScratchPadPlugin
HTML Preview: Provides preview for html files using Mozilla browser
==learning==
TabSwitch: Open files/tabs switcher
CVS Report for IntelliJ IDEA:?CVS Report for IntelliJ IDEA is a free open source plugin for IntelliJ IDEA to generate statistical reports from your CVS repository.
http://vcsreport.sourceforge.net/
RssPlugin: RSS Plugin for viewing RSS feeds within IntelliJ.
http://www.intellij.org/twiki/bin/view/Main/RssPlugin
Hibernate Tools: better than hibero which is even?a commercial one!
Smart Introduce:?how to use it?
http://www.intellij.org/twiki/bin/view/Main/SmartIntroducePlugin
GroovyJ: hoping it can become more powerful
http://groovy.codehaus.org/IntelliJ+IDEA+Plugin
==not very useful, so can be ignore==
Code Outline: Have not found anything useful? (dosen't work?in IDEA 6.0)
OpenContainingForder: Plugin for Viewing folders with Windows Explorer, but cannot?open a folder.?So?"Alt+Shift+E" is better?
LineMover: default "Ctrl+Shift+Up/Down" is enough.
SQL Query Plugin: DBHelper is good enough
SQL script editor: DBHelper is good enough
JavaDoc Browser: the window can't be big enough, so acutal browser (such as fire fox) is better.
BTW: if you have any good recommendation,?welcome to share with us.?
posted @
2006-06-24 13:01 Jcat 閱讀(1164) |
評論 (0) |
編輯 收藏
DAO=Data Access Object
???It consist of two models: Data Accessor and Domain Object
???It also can be cut into 3 objects: Data, Accessor and domain Object
posted @
2006-06-23 18:39 Jcat 閱讀(215) |
評論 (0) |
編輯 收藏
計算機領域中的任何問題都可以通過增加一個“層”來解決!
???(比如:JVM、MVC、Hibernate都是用這一思想取得了成功)
這是一個配置編程的時代!
???(如何framework都可以看作是一個巨大的函數,配置文件就是傳入的參數列表)
努力不一定成功!但放棄一定失敗!
真的猛士,敢于直面慘淡的人生,正視淋漓的鮮血! (Jayson)
你可以拒絕學習,但你的競爭對手不會!
很多事情需要耐心等待轉機。等了,可能失望,但沒有遺憾(好好)
Any
fool can write code that a computer can understand. Good programmers write code that
humans can understand.
男人要有像廁所一樣的胸懷,容忍如同糞便的一切!(不得不承認,這是我見到的最大度的一個男人)
讓我們摒棄浮躁,讀優秀的書,用優秀的技術,做出優秀的高質量的軟件,毫無畏懼地生活,直面所有障礙和困境,并充滿信心地克服!(一個優秀人的blog里的簽名)
經驗這種東西,機器到現在還學不來。現在各種所謂”智能”仍然像個傻瓜,包括商業智能。
專業性越強企業的生存能力要遠遠超過多元化的企業,其實人也是這樣。(from ttnn)
posted @
2006-06-23 15:14 Jcat 閱讀(342) |
評論 (0) |
編輯 收藏
1. Tomcat config file, where you can change Tomcat's port number: <CATALINA_HOME>/conf/server.xml
?
<
?Host?...
?
>
?
?????? ...
???????
<
?Context??
path?
="/app1"
??docBase?
="app1"
??debug?
="0"
??reloadable?
="true"
?
/>
?
???????
<
?Context??
path?
="/app2"
??docBase?
="app2"
??debug?
="0"
??reloadable?
="true"
?
/>
?
???????
<
?Context??
path?
="root?url"
??docBase?
="root?dir?(or?the?path?of?.war)"
??debug?
="0"
??reloadable?
="note1"
?
>
?
< /
Host
>
??
note1: whether auto-reload the web application, when .class file is changed
????????????? 1) during developing, set reloadable=true
????????????? 2) after deployment, set reloadable=false
2. Some libs
/server/lib?
|
just for Tomcat
|
/shared/lib
|
for all web apps
|
/common/lib
|
both Tomcat and all web apps
|
/webapps/jcat/WEB-INF/lib
|
just present web app
|
?
3. Immobile Directory Structure (the names are also immobile, include uppercase/lowercase)?
???/jcat
???/jcat/WEB-INF
???/jcat/WEB-INF/web.xml
???/jcat/WEB-INF/classes
???/jcat/WEB-INF/lib
?????
Note: WEB-INF/classes
is loaded by tomcat before
WEB-INF/lib
, so classes has priority than lib
?
4.?Scopes
??????Application:在整個web應用程序內有效。對應于servelet中的ServletContext對象,Action中的獲取:getServlet().getServletContext()
??????Session:在一個用戶與服務器建立連接的整個過程中有效。Action中的獲取:httpServletRequest.getSession()
??????Request:在一個請求周期內有效。就是從你點擊頁面上的一個按鈕開始到服務器返回響應頁面為止(包括響應頁面)。
??????Page:僅在一個jsp頁面內有效。
*1*
?
Request in Struts: PageFrom (request.setAttribute by using Form)-->Action(request.getAttribute&setAttribute)-->PageTo (request.getAttribute by using EL)?
*2*?:
Parameter vs Attribute in request
???Parameter
是
URL
帶過來的參數,只能是個
String
,如
www.verican.com/test?para1=1¶2=ttt
???在
Action
中的調用:
request.getParameter("para1");?
???在響應頁面中的調用:
${param.para1}
(
param
是
EL
的隱藏對象)?
???Attribute
一般是
Form
帶過來的屬性,可以是任何對象
???
在
Action
中的調用:一般已經存在于
Form
對象中;
???在響應頁面中的調用:
${attributeName.xxx}?
(
EL
會自動調用
getXxx
方法,所以該
attribute
必須實現
getXxx
方法)
5. Web server跟蹤客戶狀態的四種方法(HTTP是無狀態的協議)
??? 1)建立含有跟蹤數據的隱藏表格字段
??? 2)重寫包含額外參數的URL
??? 3)使用持續的Cookie
??? 4)使用Servlet API中的Session機制
6. JavaBean的標準
???1) should be a public class
???2) should have a non-argument constructor
???3) fields should be privated, and using get & set to access them
???4) also can have some other functions as a common class
posted @
2006-06-23 09:11 Jcat 閱讀(391) |
評論 (0) |
編輯 收藏