自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(76)
  • 资源 (8)
  • 收藏
  • 关注

征集TextMate第4次团购(已报名8人)

http://www.douban.com/group/topic/17707014/预计购买时间:2011年4月10日 TextMate价格计算说明: http://license.macromates.com/ 大概15个人可以达到最大30%的优惠 5人 人均价格: $44 ~= 289RMB 10人 人均价格: $41.2 ~= 271RMB 15...

2011-03-03 21:32:48 176

献出你的爱!让世界充满爱!(更新活动照片)

部分照片:[img]http://farm3.static.flickr.com/2708/4142547983_b09ae5de57.jpg[/img][img]http://farm3.static.flickr.com/2706/4142547729_faeb609f97.jpg[/img][img]http://farm3.static.flickr.com/2638/4143...

2009-09-30 21:51:43 231

关于我和你的人生

(这是老婆前两天写的一篇文章,献给所有的童鞋)[url]http://sj-qming.spaces.live.com/blog/cns!C31B2CB5E27A7F65!414.entry[/url]每一天清晨醒来,我们都应该是最喜悦的:我还活着!没有什么能够比这个更棒,只要活着,就有无限可能。当不可预期的那天来临,我们猝然离去,我们又能给自己留下什么样的印迹?也许,当丧...

2009-07-20 11:48:03 221

Spring Milestone Maven Repository地址

使用maven又想试用spring 3.0 m3的朋友可以用springsource官方的maven仓库[code="xml"]http://repository.springsource.com/maven/bundles/milestone[/code]官方repository上面缺少几个依赖, 加入atlassian proxy仓库[code="xml"]https://m2...

2009-05-11 10:52:43 1250

HiddenHttpMethodFilter:自动转换Http Method

REST的核心之一就是提供统一接口,也就是说对所有的资源(URLs)都可以通过Http中定义的GET,POST,PUT,DELETE方法进行操作。但是html只支持GET和POST,可以采用以下方法解决这个问题:[list=1][*]使用Javascripts进行PUT和DELETE[*]使用REST-RPC方式,在url中指明方法; 比如发GET请求至/blogs/new,创建一个新...

2009-03-29 11:21:43 349

Mysql InnoDB表锁问题

  在讨论问题之前,先看下面的mysql信息mysql> show status like "%table_lock%"; +-----------------------+---------+| Variable_name | Value |+-----------------------+---------+| Table_locks_immedi...

2009-02-23 13:27:42 430

exim4 550 relay not permitted的处理

出现这个问题的主要原因是exim4邮件服务器的relay设置不对.exim4有两种方式的relay设置:基于domian的relay: 修改配置文件中的 domainlist relay_to_domains基于host的relay:  修改配置文件中的hostlist relay_from_hosts直接修改配置文件或者dpkg-reconfigure exim4-config设置正...

2009-02-15 17:40:03 961

禁用spotlight

Leopard上的spotlight纯属鸡肋,很少使用,而且还影响系统速度,不如直接禁用:[b]1. 停止spotlight程序[/b][code="shell"]# 停止当前用户launchctl unload /System/Library/LaunchAgents/com.apple.Spotlight.plist# 停止所有用户sudo launchctl unlo...

2009-02-14 00:35:10 342

Exim4配置smarthost使用gmail发邮件

debian发行版(包括ubuntu)使用exim4作为默认的邮件服务器, 如果想使用gmail account发送邮件, 需要做一下配置: # dpkg-reconfigure exim4-config选择: 用 smarthost 发信: 无本地邮件输入系统邮件名称: etc, company.com输入监听的ip地址: 127.0.0.1请输入被此主机认为是以其自身为最终目的...

2009-02-13 09:37:34 1341

ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息

ActiveMQ5.0实战一: 安装配置ActiveMQ5.0ActiveMQ5.0实战二: 基本配置简介实战一, 实战二介绍了ActiveMQ的基本概念和配置方式.本篇将通过一个实例介绍使用spring发送,消费topic, queue类型消息的方法. 不懂topic和queue的google 之. 如图示, TOPIC和QUEUE分别代表一个topic和一个queue...

2008-08-28 18:21:19 415

kchmviewer-"failed to load the chm file"

sudo vi /usr/share/applications/kchmviewer.desktop[Desktop Entry]Categories=Qt;KDE;Utility;Encoding=UTF-8Type=ApplicationExec=kchmviewer %UIcon=kchmviewer.pngComment=Terminal=0Name...

2008-07-21 23:03:11 264

Firestarter the device eth0 is not ready

[b]一种解决方法[/b]该方法的思路是: firestarter使用ifconfig获取IP地址,如果ifconfig的输出时使用了非en_US的locale,那么firstarter就取不到ip的信息(比较傻,匹配的时候不支持中文),所以可以在使用ifconfig之前设置locale[code="java"]sudo gedit /etc/firestarter/firestart...

2008-07-06 11:25:35 257

ubuntu设置默认声卡

sudo asoundconf listNames of available sound cards:LiveV8237then did:sudo asoundconf set-default-card Livefollowed by a reboot to test.

2008-07-02 20:05:41 2463

MySQL部分新特性将闭源

SUN真是开源的毒药,收购mysql以后,竟然宣布一些特性将闭源,只提供给企业版。原帖见:注意Marten Mickos是Mysql CEO[url]http://jcole.us/blog/archives/2008/04/14/just-announced-mysql-to-launch-new-features-only-in-mysql-enterprise/[/url]V...

2008-04-18 14:05:51 634

Git --- The stupid content tracker

Git --- The stupid content tracker。Linux内核开发使用的版本控制系统,只能在Linux系统下运行。rails目前已经采用git作为版本控制系统。中文教程地址:[url]http://www.bitsun.com/documents/gittutorcn.htm[/url]...

2008-04-17 09:58:10 140

The smallwig theory of optimization

There are three kinds of optimization. 1. Optimization by using a more sensible overall approach. 2. Optimization by making the code less weird. 3. Optimization by making the code more w...

2008-04-17 09:49:21 109

Unitils 1.1rc

2008-03-28 - Release of Unitils 1.1 rc 1We've been working hard to implement following features: JPA integration, support for hierarchically organized database scripts, support for Oracle PL/SQL i...

2008-04-10 11:25:09 107

ElementType.LOCAL_VARIABLE目前基本没用

jdk5.0引入Annotation语法,@Target中的ElementType包括[code="java"]ElementType.ANNOTATION_TYPE 应用于其他注解的元注解ElementType.CONSTRUCTOR 构造函数ElementType.FIELD 字段ElementType.LOCAL_VARIABLE 方法中的本地变量ElementType....

2008-04-07 18:30:24 2011

Unitils结合Dbdeploy管理测试数据库

Unitils是单元测试的一组工具集,介绍见http://www.iteye.com/topic/160004Dbdeploy是Thoughtworks公司开发的数据库工具,获得Jolt大奖。 Unitils有自己的一个管理类似于dbdeploy的管理数据库的module -- DBMaintainer,其要求的sql文件名称格式如下所示,要求使用下划线分隔001_create_users_tab...

2008-04-07 18:01:45 155

Java Persistence with Hibernate

图灵出版社官方Hibernate实战(第2版)链接为:http://www.turingbook.com/Books/ShowBook.aspx?BookID=260书  名: Hibernate实战(第2版) 评论星级: ****书  号: 978-7-115-17448-2 原 书 名: Java Persistence with Hibernate 原出版社: Mannin...

2008-04-05 21:56:20 118

Memcached java client 2.01发布

com.danga.MemCached 发布2.0.1包括许多重要更新,建议升级至2.0.1[quote]Released version 2.0.1 today. Many bug fixes on the 2.0 branch. You should use this and *not* use the 2.0 release.[/quote]...

2008-04-05 21:39:15 78

Struts2中使用Stream Result Type

Stream result type是Struts2中比较有用的一个feature。特别是在动态生成图片和文档的情况下;例如动态验证码,各种报表图片生成等。鉴于网上使用struts2生成动态验证码,struts2+jfreechart的例子中很少使用到该feature,这里以生成动态验证码为例解释stream result的使用: Action类,action主要要提供一个获取InputStrem...

2008-04-05 18:25:11 394

NotSerializableException: EnhancerByCGLIB

使用Ibatis时,为了获得更好的性能,我们一般都会将enhancementEnabled设为true,使用cglib。如果从ibatis获取的domain object需要序列化,这时就需要注意有可能出现如下异常:java.io.NotSerializableException: $java.util.List$$EnhancerByCGLIB$$a80b8ab4 at java.io.Obj...

2008-04-03 12:23:23 907

从LiveJournal后台发展看大规模网站性能优化方法

作者: 于敦德 2006-3-16原文:  http://www.example.net.cn/archives/2006/03/olivejournaloio.html一、LiveJournal发展历程LiveJournal是99年始于校园中的项目,几个人出于爱好做了这样一个应用,以实现以下功能:博客,论坛社会性网络,找到朋友聚合,把朋友的文章聚合在一起LiveJ...

2008-03-03 17:59:35 83

Pointcut命名有可能导致错误

使用Spring @AspectJ方式的AOP,代码@Aspectpublic class AndyaoAspect { @Pointcut("execution(* com.andyao.Repository.get(java.lang.Integer))&& args(id)") public void get(Integer id){ } @Arou...

2008-02-28 19:16:01 334

异常通知:面向方面的模型

原文:http://dev2dev.bea.com.cn/techdoc/2007/10/exception-advice.html作者:Barry Ruzek 摘要  有效的异常处理策略是一大架构关注点,它超越了独立应用程序组件的边界。有效的Java异常(Dev2Dev中文版,2007年2月)概述了错误-意外事件(Fault-Contingency)异常模型,消除了在Java应用程序中...

2008-02-28 15:16:24 136

TCMalloc : Thread-Caching Malloc

原文http://google-perftools.googlecode.com/svn/trunk/doc/tcmalloc.htmlSanjay GhemawatMotivationTCMalloc is faster than the glibc 2.3 malloc (available as aseparate library called ptmalloc2) and ...

2008-02-14 17:39:40 111

Sping容器加载xsd文件时的问题

今天遇到一个非常奇怪的spring容器问题,先看日志]-303 Loading XML bean definitions from class path resource [com/eucita/component/activemq/applicationContext-activemq-topic.xml]-75 Using JAXP provider [org.apache.xerces.j...

2008-01-31 17:56:06 215

持续集成-软件质量的改进和风险降低之道

http://www.china-pub.com/38003机工版,纸张一如既往的差。内容主要讲的是从实践角度讲持续集成。CI领域的重要文章Martin Flower的《Continuous Integration》主要是讲一种思想和理论。这本书算是一个CI的指导手册,讲述了CI的背景,以及持续数据库集成,持续测试,持续审查,持续部署和持续反馈,算是一本比较好的CI书籍。最后还是要说,...

2008-01-29 23:37:14 198

Unitils——简化测试

/***作者:andyao,email:[email protected]*http://andyao.iteye.com/blog/160004*/ Unitils(http://www.unitils.org/summary.html)是一个简化测试开发,提高测试维护性的一个开源项目,这里有开发者做的一个presentation(http://www.parleys.com/display/P...

2008-01-28 22:05:49 141

关于数据库重构工具——dbdeploy

因为目前的一个项目中,数据库变动比较频繁,本控制做的有些不好,想找一个比较好的工具和最佳实践来做数据库版本控制。google到主要工具就是dbdeploy。  dbdeploy(http://dbdeploy.com/) 获得 第17届Jolt奖,是thoughtworks公司开发的开源的,java-based数据库重构工具。大致看了一下介绍,和Rails migration很象,通过运行一些特...

2008-01-27 21:36:05 659

Lucene2.3性能提升

最近Lucene2.3发布,最大的变化是使用了新的索引算法,使用新的in-memory模型来大幅提升速度。中提到最简单的把lucene2.2的jar文件换成lucene2.3的jar文件就可以在某些测试中提速500%。Lucene2.3的changlog见http://svn.apache.org/repos/asf/lucene/java/tags/lucene_2_3_0/CHANGES.tx...

2008-01-27 21:16:25 126

Enum VS Varchar VS Int + Joined: What is Faster

Enum Fields VS Varchar VS Int + Joined table: What is Faster?from MySQL Performance Blog by Alexey KovyrinReallyoften in customers' application we can see a huge tables withvarchar/char fields, with...

2008-01-25 09:24:46 79

关于memcached client的选择

Memcached([url]http://www.danga.com/memcached/[/url])是被广泛使用的分布式缓存技术,javaeye也使用memcached做对象缓存。不同的语言有不同的memcached客户端程序,对于java客户端来说,memcached网站给了两个选择:[quote]1. A Java API is maintained by Greg Whal...

2008-01-10 15:29:05 80

Java确实不适合于作为主要编程教学语言

最近米国那边又在讨论这个话题,孟岩也发了一篇帖子[url]http://blog.csdn.net/myan/archive/2008/01/10/2033386.aspx[/url]。我个人最开始使用Pascal学的数据结构,现在已经忘差不错了。入门语言算是C语言了,虽然不精通,但是指针这一块还是比较熟悉的。我个人认为教学语言用Java确实不是很好,就像孟岩的文章里提到了,封...

2008-01-10 12:12:15 175

MySQL使用外键约束对性能有多大影响?

MySQL InnoDB表有外键约束功能,可以保证数据的一致性和实现一些级联操作,比如表 productid,name表 orderid,product_idnameproduct_id就可以使用Mysql的外键约束功能,如果插入新的order是,product_id在product表中并不存在则这条记录就不完整,不能插入数据库中。现在我的疑问就是:...

2008-01-10 11:10:08 3059

Spring 2.5Annotation使用基本类型和${}

最近使用了Spring2.5 annotation风格的DI,发现竟然不支持基本类型的自动装配,更别说使用PropertyPlaceholderConfigurer了。既然不支持,只能想其它的办法,最后使用XML和annotation相结合的方式解决了这个问题。[b]Bean定义[/b][code="java"]@Servicepublic class Service {//默...

2008-01-08 19:08:20 136

ActiveMQ5.0实战二: 基本配置

/***作者:andyao,email:[email protected]*http://andyao.iteye.com/blog/154092*/ ActiveMQ5.0实战一: 安装配置ActiveMQ5.0ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息简介 上一篇http://www.iteye.com/topic/15317介绍了A...

2008-01-08 17:33:35 89

ActiveMQ5.0实战一: 安装配置ActiveMQ5.0

/***作者:andyao,email:[email protected]*http://andyao.iteye.com/blog/153171*/ActiveMQ5.0实战二: 基本配置ActiveMQ5.0实战三:使用Spring发送,消费topic和queue消息简介  ActiveMQ 是开源的JMS实现,Geronimo应用服务器就是使用的ActiveMQ提供J...

2008-01-05 18:03:30 144

JMS消息类型模型

/**作者:andyao,email:[email protected]*http://andyao.iteye.com/blog/153173/JMS,Java Message Service,是JavaEE平台最重要的规范之一, 也是企业开发中经常使用到的异步技术。JMS规范目前支持两种消息模型:点对点(point to point, queue)和发布/订阅(publish/subscrib...

2008-01-04 18:12:23 229

Programming Ruby 第二版

Programming Ruby ruby榔头书, 第二版, 英文版

2009-02-11

Ruby Cookbook

Ruby Cookbook By Lucas Carlson, Leonard Richardson Table of Contents | Index Do you want to push Ruby to its limits? The Ruby Cookbook is the most comprehensive problem-solving guide to today's hottest programming language. It gives you hundreds of solutions to real-world problems, with clear explanations and thousands of lines of code you can use in your own projects. From data structures and algorithms, to integration with cutting-edge technologies, the Ruby Cookbook has something for every programmer. Beginners and advanced Rubyists alike will learn how to program with: Strings and numbers Arrays and hashes Classes, modules, and namespaces Reflection and metaprogramming XML and HTML processing Ruby on Rails (including Ajax integration) Databases Graphics Internet services like email, SSH, and BitTorrent Web services Multitasking Graphical and terminal interfaces

2009-02-11

SOA Using Java Web Services

An Unbiased Guide to Java Web Services for SOA My primary goal in this book is to offer an unbiased guide to using the Java Web Services (JWS) standards for SOA. Of course, any author has a bias, and I admit to believing that the JWS standards are quite good. Otherwise, I would not have written this book. Having admitted my bias, I also freely admit that JWS has weaknesses, particularly when it comes to the development approach known as Start from WSDL and Java. As you will see described in many different ways in this book, the JWS standards present a Java-centric approach to Web Ser- vices. That approach can be troublesome when you need to work with established SOA standards and map your Java application to existing XML Schema documents and WSDLs. In such situations, it’s helpful to be able to take a WSDL-centric approach to Web Services development. In this area, JWS is less strong. Throughout the book, I point out those shortcomings, and offer strategies you can use to overcome them. Chapter 11 even offers a prototype frame- work, called SOA-J, that illustrates an alternative, WSDL-centric approach to Java Web Services.

2009-02-11

TextMate: Power Editing for the Mac

TextMate是最好用的编辑器之一。 也是ROR最好用的IDE, 这本书详细介绍了textmate的使用

2009-02-09

Documenting Software Architectures:Views and Beyond 2ed

13 jolt大奖作品。 这本书教你如何编写架构文档

2009-02-09

Implementation Patterns

Implementation Patterns 实现模式 敏捷大师kent beck新书

2008-11-10

Spring in action第二版

spring in action 第二版

2008-11-10

High Performance MySQL Second Edition

High Performance MySQL 第二版

2008-11-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除