`
DavyJones2010
  • 浏览: 154281 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
1) Command Name: useradd     Command Derived From: add user     Command Path: /bin/useradd     Command Auth: all users     Command Function: add user into system     Command Syntax: useradd [username]     Example: useradd davy passwd davy   -> Set the password for user davy.   2) Comma ...
1) Command Name: cat     Command Derived From: concatenate and display files     Command Path: /bin/cat     Command Auth: all users     Command Function: display the content of the file     Command Syntax: cat [file name]     Example:                     ...
1. File Name convention:     1) All characters except '/' are regarded as legal as '/' is used for file path delimeter.     2) Space, Tab, Backspace, @, #, $, &, (, ) and - are not recommanded to be used as file name.     3) Do not use '.' as the first character of file name. Because file na ...
 1. One major difference between dynamic language and static language is that:     Dynamic language can add attributes/methods for a predefined type.     But static language can not realize this, or else we have to change the bean. <html> <head> <script type="text/javasc ...
1. An example. <html> <head> <script type="text/javascript"> function add(number){ alert(number + 20); } function add(number){ alert(number + 30); } add(1); </script> </head> <body></body> </html>     Ab ...
1. Two ways to bind a method to an event.     1. Using tag binding: <html> <head> <script type="text/javascript"> function display(){ var str = "hello world"; alert(str); } </script> </head> <body onmousedown="dis ...
1. Introduction     1. We can infer Observer Design Pattern from JDK GUI part.     2. The AWT and Swing GUI components are using Observer Design Pattern which we will discuss later.   2. A simple example for showing the effect of using Observer Design Pattern package edu.xmu.designPattern.Desi ...
Part One: 1. Two steps to create custom object     1) Use constructor to create object type/class     2) Create object instance     Cause there is no concept of Class in JavaScript compared with that in java.   2. Attributes can be defined in object dynamically.     1) Create function name f ...
1. JavaScript:     1) It is developed by Netscape company.     2) It is based on Browser installed on client.     3) It is Object Oriented Programming Language and not Based On Object.     4) It is a script that is based on Event Driven Model.     5) It is an Interpretive Language that don't h ...
1. Introduction     Look at the example below:     We want to sort an array of integer.     1) Test case package edu.xmu.designPattern.DesignPattern_Strategy; import java.util.ArrayList; import java.util.List; import org.junit.Before; import org.junit.Test; public class StrategyTest ...
1. Why should we use Factory Method?     1) We want to control the way we create new instance of a certain class. We cannot merely use the new XXX() to create an instance.     2) We want to keep our system robust and extensiable when we apply custom instaintiation of a certain class.   2. A simp ...
 Summary     1) Logback is not an independent implementation of Logging.         It depends on SLF4J.   1. Logback configuration work flow   2. A simple example of using Logback    1) pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2 ...
1. Q: What is SLF4J?     A: Simple Logging Facade for Java     Q: Why do we use SLF4J instead of Commons-Logging?     A: Because JCL is runtime discovery algorithm which relies on classloader hacks to find the logging framework at runtime         but this mechanism leads to numerous problems in ...
1. In last chapter, we introduced Log4j in detail.     How can we use commons-logging for the existing project?     1) Add dependency for commons-logging in pom. <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <versio ...
1. Three Main Components:     1) Logger     2) Appender     3) Layout     These three types of components work together to enable developers to log message according to message type and level, and to control at runtime how these messages are formatted and where they are reported.     Relations ...
Global site tag (gtag.js) - Google Analytics