2012 年文章归档
共 37 篇文章
未完 IT related Terminology | IT相关术语总结
各种符号: http://en.wikipedia.org/wiki/Punctuation commas 逗号 , asterisk 星号 * tilde 波浪号 ~ caret 脱字号 ^ ampersand and符 & colon 冒号 : Semicolon 分号 ; vertical bar (or pipe) 竖道 | hyphen 连字符 - dash 破折号 – — parentheses 圆括号 () (square) brackets 方括号 (curly) braces 花括号 {} grave accent 重音符(or backquote/backtick 反引号…
2012-12-28 16:24 · other
NOSQL 之 Graph Database 之 neo4j
The Neo4j Manual: http://docs.neo4j.org/chunked/milestone/index.html Cypher Cheat Sheet: http://www.neo4j.org/assets/download/Neo4j_CheatSheet_v3.pdf 在Vim中书写漂亮的Cypher: http://www.neo4j.org.cn/2012/11/29/cypher-vim-syntax/ 参考资料: 图形数据库、NOSQL和Neo4j: http://www.infoq.com/cn/articles/graph-nosql-neo4j
2012-12-28 11:31 · 云计算/NoSQL/数据分析
Performance & Load test tool : JMeter
Official: http://jmeter.apache.org/ 用户手册: http://jmeter.apache.org/usermanual/index.html Elements of a Test Plan 该章需精读 csv 作为 jmeter 的外部数据源: http://ivetetecedor.com/how-to-use-a-csv-file-with-jmeter/ 使用JMeter进行性能测试: http://www.ibm.com/developerworks/cn/java/l-jmeter/index.html JMeter's Superpower: …
rabbitmq & spring amqp
My main AMQP post on blogger: http://wuaner.blogspot.com/2012/10/messaging.html sudo rabbitmqctl add_user admin admin sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" sudo rabbitmqctl set_user_tags admin administrator AMQP的好处: 1 network protocal(TCP),P、Broker、C 可以在不同的主机上。 2 作为 P or C 的 cl…
2012-12-04 00:09 · J2EE
MockHttpServletRequest + Controller @RequestMapping 单元测试之 NullPointerException
MockHttpServletRequest 测试spring的Controller,如果Controller的类名和要调用的方法名上都写有@RequestMapping: @Controller @RequestMapping("email") public class EmailRest extends AbstractController { @RequestMapping(method = RequestMethod.POST, value = "send") public HttpEntity<?> sendEmail(@Valid @RequestBody EmailForm j…
2012-11-27 17:51 · Dev Error
javaMail 邮件
SMTP POP3的区别到底是什么? http://www.wisegeek.com/what-is-the-difference-between-smtp-and-pop.htm There are two standards currently used for most e-mail sent today. SMTP stands for simple mail transfer protocol. POP is an acronym Post Office Protocol. Though it may sound confusing, the difference is not h…
2012-11-23 20:14 · J2EE
未完 java设计: naming convention | 命名规范
应该遵循的规范: 类/接口/属性名,使用名词或形容词; 方法名使用动词。 Java Naming Conventions: http://www.oracle.com/technetwork/java/codeconventions-135099.html Ixxx、Service、servieimpl、dao、daoimpl,真的有必要吗? Naming the Java Implementation Classes: http://isagoksu.com/2009/development/java/naming-the-java-implementation-classes/ http…
2012-11-20 16:45 · Java Foundation · 设计模式
未完 Java: enum 枚举
http://stackoverflow.com/questions/9850525/whats-the-use-of-enum-in-java [b]An enum is an ordinary class with a predefined and enumerable set of instances.[/b] So, if you know in advance (in compile-time) how many instances a class will have and if the instances are easily enumerable, then use an e…
2012-11-19 20:29 · Java Foundation
未完 Spring MVC
Annotations for Http params: @RequestBody @PathVariable @RequestParam @ModelAttribute @ExceptionHandler & @ControllerAdvice(这个advice注解是在 spring 3.2 之后才有的) 及基于它们两个的 Spring MVC 异常处理 : 问题: spring MVC 在 json 反序列化(如通过 @RequestBody 反序列化一个 enum)出错时,只返回 400,后台无任何 log!导致错误的排查比较困难。 。。。 http://stackoverflow.c…
2012-11-15 22:41 · J2EE
Redis: REmote DIctionary Server
Redis is a key-value store NoSQL database。 性能高的原因在于大部分数据都被放在内存中,所以你可以将它看成是个内存数据库。 Problems: key一定是String类型,怎么能够按照一定顺序,输出database中所有的keys?( keys * 不能保证有序) list all keys in some order? Redis Documentation: http://redis.io/documentation Redis, from the Ground Up: http://blog.mjrusso.com/2010/10/17/red…
2012-11-07 14:01 · 云计算/NoSQL/数据分析
设计:Spring动态注入implementation 、业务处理过程抽象
场景: 接口或抽象类,有多个实现/子类。使用Spring,&Autoinjected关联的是接口/抽象类,怎么让spring可以在运行时动态注入具体的实现那? 参考: How to use @Autowired to dynamically inject implementation like a factory pattern http://stackoverflow.com/questions/5725222/how-to-use-autowired-to-dynamically-inject-implementation-like-a-factory-patter How to get…
2012-11-06 13:50
Java多线程之 concurrent 并发包
Java Tutorials -> Concurrency: http://docs.oracle.com/javase/tutorial/essential/concurrency/index.html Java Concurrency Utilities: http://docs.oracle.com/javase/7/docs/technotes/guides/concurrency/index.html 作者 Doug Lea 的个人主页,里头不少好东西: http://g.oswego.edu/ http://www.vogella.com/articles/JavaConcurr…
2012-11-01 07:47 · Java Foundation
JUnit 单元测试
测试的分类: http://stackoverflow.com/questions/520064/what-is-unit-test-integration-test-smoke-test-regression-test http://stackoverflow.com/questions/4904096/whats-the-difference-between-unit-functional-acceptance-and-integration-test http://stackoverflow.com/questions/3370334/difference-between-accept…
2012-10-30 12:27 · J2EE
PostgreSQL
PostgreSQL Commands QuickStart: http://www.thegeekstuff.com/2009/04/15-practical-postgresql-database-adminstration-commands/ http://www.linuxweblog.com/postgresql-reference #查看 PostgreSQL 命令行工具的帮助,最有用的一个!!!! \? #重启 postgresql 服务 (ubuntu下) $ sudo service postgresql restart #登陆 PostgreSQL 命令行 (postgr…
2012-10-26 10:53 · Database
Spring+BoneCP+MyBatis: maxConnectionsPerPartition为1导致的junit一直停留在获取conn阶段的问题
Spring+BoneCP+MyBatis下, 如果applicationcontex.xml中的boneCP datasource 最大连接数maxConnectionsPerPartition设为1且partitionCount也为1: <bean id="dataSourceNewsletter" class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close"> <property name="driverClass" value="#{env['jdbc.driverclassname']}"/> <property…
2012-10-20 00:11 · Dev Error
Ubuntu 使用杂摘
Useful Shortcut Keys In Ubuntu Ctrl + super(即start键,就是xp下常说的windows键) + d: 显示桌面; Ctrl + Alt + t: 打开一个新的terminal; http://maketecheasier.com/useful-shortcut-keys-in-ubuntu/2008/07/14 须谨记的 terminal 命令摘录:[code=c] ctrl + d : 退出当前terminal ctrl + l : shortcut for clear ctrl + c : Kill the current process.…
2012-10-19 23:51 · Linux
Hadoop
《Hadoop: The Definitive Guide》reading notes: This, in a nutshell, is what Hadoop provides: a reliable shared storage and analysis system. The storage is provided by HDFS and analysis by MapReduce. There are other parts to Hadoop, but these capabilities are its kernel. MapReduce: http://strata.oreil…
2012-09-25 19:45 · 云计算/NoSQL/数据分析
Maven:No goals have been specified for this build
执行 mvn 命令时,指定goals避免该错误。 http://www.jrmh.net/exception/showexception.asp?ID=249 https://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
2012-09-25 10:54 · Dev Error
Gerrit : Code Review Tool based on Git
Gerrit Code Review for Git: http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/index.html git post of mine: http://wuaner.iteye.com/blog/1681983 Git workflow: http://nvie.com/posts/a-successful-git-branching-model/ http://danielkummer.github.io/git-flow-cheatsheet/ https://www.atlas…
2012-09-21 18:52 · Linux · Open Source
Git : Distributed version control system
Srcs : Git Reference http://git-scm.com/docs http://www.kernel.org/pub/software/scm/git/docs/ Pro Git http://git-scm.com/book “Tracking Branches” And “Remote-Tracking Branches”: http://www.gitguys.com/topics/tracking-branches-and-remote-tracking-branches/ 在项目的 .git/config 文件里 存在 [branch ] 记录的 local…
2012-09-20 09:59 · Linux