2010 年文章归档
共 14 篇文章
css sprite
http://css-tricks.com/css-sprites/ http://spriteme.org/
2010-12-15 16:57 · Reading Notes · CSS
chaos this in javascript
how stupid and tricky js is! damn http://www.quirksmode.org/js/this.html
2010-11-24 22:13 · javascript/html · HTML · JavaScript
最牛B 的 Linux Shell 命令
http://hi.baidu.com/hy0kl/blog/item/5508384fec1ec438aec3ab0e.html http://hi.baidu.com/hy0kl/blog/item/6151c3dcb0f789afcc116616.html http://hi.baidu.com/hy0kl/blog/item/caf7383baf4ffae414cecb12.html http://hi.baidu.com/hy0kl/blog/item/03737a34c50b0440251f1418.html
2010-10-30 00:08 · Reading Notes · HTML · Blog · Linux
GPS Bearing VS Heading
http://gps.about.com/od/glossary/g/Heading.htm Definition: The compass direction toward which a traveler or vehicle is (or should be) moving. Examples: "This heading will take us to the north side of the lake. Once there, we can follow a new heading to the lodge." Definition: The compass direction …
2010-10-21 15:40 · Reading Notes
Diff between apply() & call()
check here. http://odetocode.com/Blogs/scott/archive/2007/07/05/function-apply-and-function-call-in-javascript.aspx
2010-09-17 11:16 · javascript/html · JavaScript
shell -> read builtin
做了一个sh脚本,里头会有一些和用户交互的地方,需要用户回答一些问题,以执行下一步(通过read读取用户输入,有时候用户输入回车,代表使用缺省答 案) 问题是在脚本执行过程中,用户可能会有意无意的输入很多个我不想要的回车. function prompt_answer(){ prompt="${1}" variable="${2}" while read -t1 dummy_vars ; do : done read -p "${prompt}" -r "${variable}" }
2010-08-17 14:05 · Misc · 脚本
Document Type Declaration
Document Type Declaration http://en.wikipedia.org/wiki/Document_Type_Declaration Formal Public Identifier http://en.wikipedia.org/wiki/Formal_Public_Identifier
2010-07-19 22:01 · Reading Notes
XML Declaration must be the first line in the document.
The XML declaration typically appears as the first line in an XML document. The XML declaration is not required, however, if used it must be the first line in the document and no other content or white space can precede it. <?xml version='1.0' encoding='utf-8' ?> <test> The XML declaration typicall…
2010-06-12 17:54 · Reading Notes · XML · IE
UCM
Two links about UCM The power of Unified Change Management http://www.ibm.com/developerworks/rational/library/701.html UCM with SVN http://www.riedquat.de/articles/UCMwithSVN
2010-05-08 11:41 · Reading Notes · HTML · IBM · SVN
What is an MXBean?
refer to http://weblogs.java.net/blog/2006/02/13/what-mxbean
2010-01-28 11:10 · Reading Notes · Java · Blog · .net
why wait() always in a loop
As we know ,jdk API doc suggests to use wait() always in a loop as below: As in the one argument version, interrupts and spurious wakeups are possible, and this method should always be used in a loop: synchronized (obj) { while (<condition does not hold>) obj.wait(); ... // Perform action appropria…
2010-01-19 00:17 · Reading Notes · UP · JDK · thread
Locks in Java
copied from http://tutorials.jenkov.com/java-concurrency/locks.html Notes:This tutorial is a very easy to read and understand version of java concurrent lock mechanism. I do suggest to take a look. Locks in Java By Jakob Jenkov A lock is a thread synchronization mechanism like synchronized blocks e…
2010-01-18 22:48 · Reading Notes · Java · Access · thread
use jps instead of ps to find jvm process
copied from http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html jps - Java Virtual Machine Process Status Tool Synopsis Description Options Host Identifier Output Format Examples See Also SYNOPSIS jps [ options ] [ hostid ] options Command-line options. hostid The host identifier of the hos…
2010-01-11 14:21 · Reading Notes · Windows · JVM · J2SE · Access · SUN
My first error of Hello Wolrd Struts
It's my first time to touch Struts. Here refers to Struts 2.1.8.1. The Hello World is deployed under Tomcat 6.0.20. The error is caused by a typo error of the struts tag url , should be <%@ taglib prefix="s" uri="/struts-tags " %> . <%@ taglib prefix="s" uri="/strutss-tags" %> <html> <head> <title>…
2010-01-04 09:10 · Reading Notes · Java · Apache · Struts · Tomcat · Servlet