摘要: windows:C:\Users\User\AppData\Roaming\MySQL\Workbench\wb_options.xmlmac:~/Library/Application\ Support/MySQL/Workbench/wb_options.xml其他平台,可以find 一下wb_options.xml这个文件。Verdana找到key:workbench.general.Editor:Font,修改他的只即可。PS:另外可以直接在设置里面设定:actually you can change the font in MySQL Workbench, it is just no 阅读全文
posted @ 2013-06-27 16:24 mongg 阅读(6813) 评论(0) 推荐(0) 编辑
摘要: 增加如下配置<build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.5.1</version> <executions> <execution> <goals> <goal>cobertu... 阅读全文
posted @ 2013-05-02 14:21 mongg 阅读(643) 评论(0) 推荐(0) 编辑
摘要: package hello;public class GetStackTrace { public static void main(String[] args) { find2(); } static void find2() { find1(); } static void find1() { for (StackTraceElement i : Thread.currentThread().getStackTrace()) { System.out.println(i); } ... 阅读全文
posted @ 2013-03-25 14:42 mongg 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 打开终端sudo vi /Applications/{app.name}.app/Contents/Info.plist在</dict></plist>前面增加<key>NSHighResolutionCapable</key><true/>修改后效果:然后重要的一步!就是将文件挪一个位置或者注销一下用户重新打开应用,又是崭新的一页!自己亲自测试了,eclipse和基于adobe air的应用都可以变成高清! 阅读全文
posted @ 2013-03-22 15:31 mongg 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 使用JSON 的java apiJSONObject obj = new JSONObject();// 创建一个节点JSONObject child = new JSONObject();// 节点元素child.accumulate("name", "yuankui");child.accumulate("age", 13);child.accumulate("gender", "mail\n\001");//加入到父节点obj.append("persons", chi 阅读全文
posted @ 2013-03-22 10:54 mongg 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 架构与需求 - p52: 架构的详细程度应该介于过描述和欠描述之间 做项目之前必须要清楚要做什么,如果需求不稳定,就把需求当做单独的项目来做,因为在你不了解你要做什么的情况就给出开发计划纯属扯淡。 谨防:我们向来都这么做,以前这么做是有历史原因的,了解历史原因,去掉令人费解的操作 为新领域的架构预留出多余的时间,如果必要,把架构设计作为单独的项目来做,多花点时间 类的设计 - p139 尽可... 阅读全文
posted @ 2013-03-21 23:54 mongg 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 查找// "select SPU_ID,TITLE,CATEGORY_ID,PROPERTIES,AFFECT_PROPERTIES,pict_url,STATUS from spu_[0000-0031] [0012-2334] where status=1 Pattern pt = Pattern.compile("\\[(\\d+-\\d+)\\]"); Matcher match = pt.matcher(sql); System.out.println(sql); // 找到第一个[0000-0031] ... 阅读全文
posted @ 2013-03-21 15:00 mongg 阅读(260) 评论(0) 推荐(0) 编辑
摘要: when(i.next()).thenReturn("Hello").thenReturn("World");when(c.compareTo("Test")).thenReturn(1);when(c.compareTo(anyInt())).thenReturn(-1);doThrow(new IOException()).when(mock).close();verify:确认某个方法被调用过verify(mock).close();verify(mock).write(argThat(arrayStartingWithA), 阅读全文
posted @ 2013-03-21 13:10 mongg 阅读(219) 评论(0) 推荐(0) 编辑
摘要: BookmarksBookmarks书签栏studyAMQApache ActiveMQ ™ -- IndexC++C++虚函数表解析(转) - - C++博客C++Dev Shed Forums - Open Source web developmentC++ to HTTP Get HTML and Save to FileC++ Libraries DocumentationchromeChrome扩展开发论坛 - Chrome中文扩展插件开发交流论坛 - ChromeChinaclojureObject Computing, Inc. - Java News Brief - March 阅读全文
posted @ 2013-03-21 11:09 mongg 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 需要先修改jt上的mapred-queues.xml 然后在客户端执行hadoop mradmin -refreshQueues 测试版本:hadoop-2.0.0-mr1-cdh4.1.2 阅读全文
posted @ 2013-03-20 17:14 mongg 阅读(304) 评论(0) 推荐(0) 编辑