- 博客(17)
- 收藏
- 关注
原创 funny error messages
Baptist explanation: There must be sin in your life. Everyone else opened it fine.Presbyterian explanation: It's not God's will for you to open this link.Word of Faith explanation: You lack t...
2014-12-16 00:43:18
117
原创 Extension methods
public static T As<T>(this object obj) where T : class{ return obj as T;}public static bool Contains(this string source, string toCheck, StringComparison comp){ return source.Ind...
2013-12-20 06:44:29
117
原创 muahaha
(function(){ if (!window.confirm("S.831?")){ alert("seriously?"); arguments.callee(); }})();
2013-10-04 05:53:59
113
原创 Browser Specific Hacks
http://css-tricks.com/snippets/css/browser-specific-hacks/
2013-09-20 02:42:23
94
原创 placeholder text
Lorem ipsum dolor sit amet consectetur adipiscing elit. Man suscipit risus id dolor sin accumsan pharetra. Proin asrisus non purus adipiscing cursus ut neque. Nullam tampus tempus lacus, amet aliqua...
2013-05-14 15:56:07
92
原创 IDE setting
background: R 204, G 232, B 207font: DejaVu Sans Mono size 12
2012-06-20 16:56:50
167
原创 how to verify an element does NOT exist in Selenium 2
WebElement element = driver.findElements(By.id("block-id"));assertNull(element); this code snippet will get a NoSuchEleementException, use the following 2 implementations instead 1. make ...
2011-10-26 11:22:49
180
原创 convert Excel 'AB'-like column name to digit number
/*** A-Z 1-26* AA-AZ 27-52* @param column* @return*/public static int getColumn(String column) {char[] columnArray = column.toUpperCase().toCharArray();final int grade = 26;final ...
2011-08-10 17:44:38
106
driving-learning related materials
Recent depressing driving-learning experience made me realize that my manipulative ability is worse than bad, and I begin to get the point why I cannot play pc games as good as my fellas, maybe I just...
2011-07-20 21:33:43
161
原创 noobie killer -- what returns?
a. public static int test() {try {int number = 1/0;return 1;} catch (Exception e) {return 2;} finally {return 3;}} \(^o^)/~ 3 b. public static int test() {int nu...
2010-11-10 17:00:29
74
原创 how to generate hashcode
1. Store some constant nonzero value, say 17, in an int variable called result.2. For each significant field f in your object (each field taken into account by theequals method, that is), do the f...
2010-09-27 15:45:10
127
原创 SOA relevant terms
1, WS (web service)2, SOAP (simple object access protocol)3, XSD (xml schema description)4, UDDI (universal description,discovery and integration)5, JMS (java message service)6, MFL (message...
2010-05-11 14:37:57
96
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人