摘要: Global cursor:To change the cursor in a application wide fashion, you have to access the Glass Pane and set its cursor, and then make the glass pane v... 阅读全文
posted @ 2014-05-28 01:39 wxwcase 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Mac OSX:In /Work folder:mkdir -p src build/classes# program name(included package): com.happysuo.test.Test.javacd src; mkdir -p com/happysuo/test# save .java file to com/happysuo/test folderjavac -sourcepath src -d build/classes src/com/happysuo/test/Test.javajava -cp build.classes com.happysuo.test 阅读全文
posted @ 2014-01-16 02:20 wxwcase 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Absolute path and canonical path:C:\temp\file.txt- This is a path, an absolute path, and a canonical path.C:\temp\myapp\bin\..\\..\file.txt- This is a... 阅读全文
posted @ 2013-12-14 09:00 wxwcase 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 握手:http://site.douban.com/125155/widget/notes/5484818/note/203501493/大中医:http://site.douban.com/125155/vvv 阅读全文
posted @ 2013-11-14 09:16 wxwcase 阅读(79) 评论(0) 推荐(0) 编辑
摘要: OTA: Over The AirAll Android applications run as separate Linux processes with permissions set by the Linux systemJava SE - UI libraries(AWT & Swing) + Android API = Android APPAPK: Application Package file contains 3 parts:Dalvik executableResourcesNative libraries(C/C++)vvvvvvv 阅读全文
posted @ 2013-11-13 10:18 wxwcase 阅读(147) 评论(0) 推荐(0) 编辑
摘要: see:http://stackoverflow.com/questions/3512471/non-capturing-groupusage:(?:http|ftp)://([^/\r\n]+)(/[^\r\n]*)?Match "http://stackoverflow.com/" Group 1: "stackoverflow.com" Group 2: "/"Match "http://stackoverflow.com/questions/tagged/regex" Group 1: "stac 阅读全文
posted @ 2013-10-22 01:53 wxwcase 阅读(288) 评论(0) 推荐(0) 编辑
摘要: see:http://www.rexegg.com/regex-lookarounds.htmlFour ways of using lookarounds:(?= lookahead(?=\d{3} dollars).{3}(Lookahead). Looks ahead for three digits followed by " dollars". Matches "100" in "100 dollars"(?! negative lookahead(?!=\d{3} pesos)\d{3}(Negative Lookahea 阅读全文
posted @ 2013-10-22 01:39 wxwcase 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Enter your regex: .*foo // greedy quantifierEnter input string to search: xfooxxxxxxfooI found the text "xfooxxxxxxfoo" starting at index 0 and ending at index 13.Enter your regex: .*?foo // reluctant quantifierEnter input string to search: xfooxxxxxxfooI found the text "xfoo" st 阅读全文
posted @ 2013-10-21 11:22 wxwcase 阅读(715) 评论(0) 推荐(0) 编辑
摘要: File protection(position and meaning):1: File type, -(plain file), d(directory), l(symbolic link), p(named pipe), c(character device), b(block device)2-4: Owner permissions, read write, and execute5-7: Group permissions8-10: World permissionsTo see the ownership and permissions of a directory:$ ls - 阅读全文
posted @ 2013-08-21 15:34 wxwcase 阅读(202) 评论(0) 推荐(0) 编辑
摘要: backslash as continuation:A non-quoted backslash ‘\’ is the Bash escape character. It preserves the literal value of the next character that follows, with the exception ofnewline. If a\newlinepair appears, and the backslash itself is not quoted, the\newlineis treated as a line continuation (that is, 阅读全文
posted @ 2013-08-16 12:06 wxwcase 阅读(140) 评论(0) 推荐(0) 编辑