紫风乱写

除了他眼前的屏幕,这个人什么也没看见。
被周围的电脑簇拥着,他只知道他所创造的现实,但又意识到那是虚幻。
他已经超越了技术。也超越了机器。
posts - 62, comments - 93, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

2011年3月30日

有这么一种神器,英文叫做reference card, 中文我不知道叫什么,就作用来说,可以叫做快捷键一页纸,可以打印出来,放在案头,然后可以随时查阅。百度不容易找到,用谷歌的话可以使用reference card作为关键字查找。

下面是几个例子
Eclipse 4.6: https://github.com/pellaton/eclipse-cheatsheet/raw/master/eclipse4.6/eclipse-shortcuts-4.6.0.pdf
Intellij IDEA: https://resources.jetbrains.com/assets/products/intellij-idea/IntelliJIDEA_ReferenceCard.pdf
Emacs: https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf
Org-Mode: https://www.gnu.org/software/emacs/refcards/pdf/orgcard.pdf

posted @ 2016-06-05 14:08 Justfly Shi 阅读(508) | 评论 (0)编辑 收藏

     摘要: Emacs Tutorial中提到的快捷键以及自己找的一些快捷键  阅读全文

posted @ 2016-06-02 02:16 Justfly Shi 阅读(325) | 评论 (0)编辑 收藏

修改内容:

posted @ 2015-12-05 21:28 Justfly Shi 阅读(1944) | 评论 (0)编辑 收藏


修改内容:

  • 添加BeanQuery.nested()方法,调用该方法后,具有同样前缀的属性或者别名会被放到一个Map中返回,详情请看Allow format result into a map
  • BeanQuery.selectBean方法标为@deprecated,并添加同一样功能的方法,命名为BeanQuery.select

posted @ 2015-12-05 20:48 Justfly Shi 阅读(2825) | 评论 (0)编辑 收藏

     摘要: 在我看来,干活有两种方式:

1. 没想清楚了,贸贸然开干,然后各处救火各种解决问题
2. 想清楚了再开干,无惊无险,安然做完

本文讲讲如何在设计中系统的思考以避免内存溢出,并给出一个例子讲解。  阅读全文

posted @ 2015-06-08 19:13 Justfly Shi 阅读(3960) | 评论 (4)编辑 收藏

5月初的时候,我发了一个帖子说要开始讲单元测试,但是20多天过去了,为什么没有更新呢?
原因就是我在做视频公开课,发现光文字表现的话比较费劲,所以我决定录制视频,做成公开课。

第一个录制的是JUnit技术,课程地址:http://edu.csdn.net/course/detail/908 欢迎大家观后留言探讨哦。

posted @ 2015-05-26 22:25 Justfly Shi 阅读(1619) | 评论 (4)编辑 收藏

     摘要: 从04年开始,我就开始在项目实践中使用单元测试。十几年来,参与的项目基本上都或多或少的使用了单元测试,多的能有100%覆盖率的要求,少的也要覆盖主要代码,发现这个实践在提高软件质量和开发速度上还是很有好处的。在和朋友同事的交流中,发现有很多项目没有使用单元测试,也有很多程序员不会写单元测试,但是大家对这个都很有兴趣。所以我想把自己掌握的关于单元测试的技能(架构、设计和技术)和实施策略分享一下。  阅读全文

posted @ 2015-05-05 00:33 Justfly Shi 阅读(6030) | 评论 (4)编辑 收藏

代码地址:https://github.com/Jimmy-Shi/bean-query/tree/bean-query-1.1.1

修改内容:
  • 简化用户自定义转换
例子:
List<String> bookNames=select(new DefaultSelector<String>() {
      @Override
      public String select(Object item) {
        return ((Book)item).getName();
      }
    }).executeFrom(bookCollection);

在Maven项目中引用:
<dependency>
  <groupId>cn.jimmyshi</groupId>
  <artifactId>bean-query</artifactId>
  <version>1.1.1</version>
</dependency>

posted @ 2014-11-23 00:02 Justfly Shi 阅读(1226) | 评论 (2)编辑 收藏

Bean Query是一个开源的Java工具包,它复用Apache Commons BeanUtilsApache Commons CollectionsJava Hamcrest 来简化对Bean(集合)的排序,过滤和转换。

项目地址:

https://github.com/Jimmy-Shi/bean-query

http://git.oschina.net/jimmyshi/bean-query

修改内容:

  • 支持用户自定义排序
  • 支持用户自定义转换
  • 支持对一个对象进行转换和过滤
  • 提供了完整的使用说明文档

在Maven项目中引用:

<dependency>
  <groupId>cn.jimmyshi</groupId>
  <artifactId>bean-query</artifactId>
  <version>1.1.0</version>
</dependency>

posted @ 2014-11-21 22:58 Justfly Shi 阅读(8416) | 评论 (2)编辑 收藏

修改内容:
在Maven项目中引用
<dependency>
  <groupId>cn.jimmyshi</groupId>
  <artifactId>bean-query</artifactId>
  <version>1.0.1</version>
</dependency>

posted @ 2014-11-03 21:56 Justfly Shi 阅读(5539) | 评论 (3)编辑 收藏

BeanQuery 是一个把对象转换为Map的Java工具库。支持选择Bean中的一些属性,对结果进行排序和按照条件查询。不仅仅可以作用于顶层对象,也可以作用于子对象。更多详细的介绍可以看我的博文: http://www.blogjava.net/justfly/archive/2014/10/26/419067.html

我刚刚发布了版本1.0.0. 现在已经在Sonatype OSS库上了,2个小时后将会被同步到Maven中央库上。

Sonatype OSS 库下载地址: https://oss.sonatype.org/content/groups/public/cn/jimmyshi/bean-query/1.0.0/

Github上的代码: https://github.com/Jimmy-Shi/bean-query/tree/bean-query-1.0.0

在Maven项目中引用

<dependency>
  <groupId>cn.jimmyshi</groupId>
  <artifactId>bean-query</artifactId>
  <version>1.0.0</version>
</dependency>

posted @ 2014-10-29 02:24 Justfly Shi 阅读(4457) | 评论 (0)编辑 收藏

     摘要: BeanQuery 是一个把对象转换为Map的Java工具库。支持选择Bean中的一些属性,对结果进行排序和按照条件查询。不仅仅可以作用于顶层对象,也可以作用于子对象。

BeanQuery的使用非常简单也很直接  阅读全文

posted @ 2014-10-26 23:33 Justfly Shi 阅读(5496) | 评论 (6)编辑 收藏

     摘要: 作为一个程序员,我们的日常工作之一就是看Log,从Log中发现自己所需要的信息,以及对Log做一些简单的分析和统计。本文分享了我所使用的工具和方法。  阅读全文

posted @ 2014-09-17 23:00 Justfly Shi 阅读(2779) | 评论 (6)编辑 收藏

     摘要: 本文介绍了在代码中应该在什么时候需要Log什么信息;使用何种级别的Log;如何Log异常信息;Log中的一些要点。另外也分析了静态Logger变量和对象Logger变量的优劣。  阅读全文

posted @ 2014-08-13 23:32 Justfly Shi 阅读(25893) | 评论 (7)编辑 收藏

     摘要: 作为《Java程序员修炼之道》博文的第一个主题Logging,我计划中按照如下三篇来写: 1. Logback的简单介绍和配置 2. 在Java代码中如何使用SLF4J来写日志以及写日志的要点 3. 作为一个程序员,在日常工作中如何分析和挖掘Log。 这个是第一篇,简单介绍一下Logback的配置,适用于开始配置和开始入门,适用于一般情况下的使用。  阅读全文

posted @ 2014-08-10 02:46 Justfly Shi 阅读(19760) | 评论 (1)编辑 收藏

     摘要: 后来我意识到,我不能只抱怨,作为一个写了10多年代码,带过项目、做过业务最终还是写代码, 有车有房有妻有娃的四有不太牛逼的程序员,我有责任帮助刚入行的、入行时间不短的,还没车没房的Java程序员们掌握一些基础的东西。
如果你掌握了这些基础的东西的话,而且英语口语还凑合的话,欢迎来找我帮你内部推荐工作,估计一万多的月薪是不成问题的,至于30、40万的年薪应该也是有机会的。  阅读全文

posted @ 2014-08-03 01:18 Justfly Shi 阅读(5154) | 评论 (13)编辑 收藏

Sorry every body, I am so busy that I can not finish this article on time. I will try to finish this article after I have got a job. You can compare the 2 xml files in the attached zip file to get some idea.

There are 2 files in the zip file:
1. google.xml: The original google search plugin
2. google-oracle.xml: The search plugin that only search the oracle.com web site.

Usage
1. Put the google-oracle.xml in your personal firefox searchplugin folder. In windows firefox version 4 it is {FIREFOX_HOME}\distribution\searchplugins
2. Restart the firefox. Done

Click here to download the search plugins

posted @ 2011-04-18 00:13 Justfly Shi 阅读(1901) | 评论 (6)编辑 收藏

If after upgrading your eclipse STS plugin from 2.5.2 to 2.6.0, your grails projects can not be build, and when building it, it always warning that "Errors running builder 'Java Builder' on projec". That might be caused by the old 1.6 groovy compiler.  The solution is to edit the file "eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info" and find the line for org.codehaus.groovy_1.6 and remove it. And then restart the eclipse. you can find that it should be fixed.

Reference: http://docs.codehaus.org/display/GROOVY/Compiler+Switching+within+Groovy-Eclipse

posted @ 2011-03-30 22:24 Justfly Shi 阅读(1501) | 评论 (0)编辑 收藏