摘要: DB来自Understanding MySQL Internal的好句子:If you drift along, seeking only the pleasureof the moment and staying safely within your natural comfort zone, you do notaccomplish much.Good things happen when you push yourself outside of yourcomfort zone, doing what is difficult but what you know deep inside 阅读全文
posted @ 2013-03-23 14:07 Copyright 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Linux Mint is an Ubuntu-based distribution of Linux. At this writting, I use its latest version: Linux Mint 14.I tried to install Apache2 and PHP5 from source files, but failed. It is too much dependencies to handle! Finally, I compromised to use apt-get to install them, then everything become easie 阅读全文
posted @ 2013-03-01 22:55 Copyright 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 月收入目标:2013年: 15K2014年: 18K2015年: 24K2016年: 28K 阅读全文
posted @ 2013-02-05 17:28 Copyright 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 从《轻量级J2EE企业应用实践》里读到一句话:Tomcat不仅提供了Web容器的基本功能,还支持JAAS和JNDI绑定等。困惑:那么,何为JAAS???解释1,来自百度Java Authentication Authorization Service(JAAS,Java验证和授权API)提供了灵活和可伸缩的机制来保证客户端或服务器端的Java程序。Java早期的安全框架强调的是通过验证代码的来源和作者,保护用户避免受到下载下来的代码的攻击。JAAS强调的是通过验证谁在运行代码以及他/她的权限来保护系统面受用户的攻击。它让你能够将一些标准的安全机制,例如Solaris NIS(网络信息服务)、W 阅读全文
posted @ 2013-02-03 00:06 Copyright 阅读(562) 评论(0) 推荐(0) 编辑
摘要: Constant Pool Table is used to store literals and symbol references which would be loaded after loading class file.运行期间也可以将新的常量放入池中,例如String类的intern()方法。public String intern()Returns a canonical representation for the string object.A pool of strings, initially empty, is maintained privately by the c 阅读全文
posted @ 2013-01-31 23:47 Copyright 阅读(123) 评论(0) 推荐(0) 编辑
摘要: The N+1 Selects ProblemSolution:减少延迟映射:The best way of solving the N+1 selects problem is to keep your associations declared lazy by default, but override this behavior when you know the association is needed.JPQL LEFT JOIN FETCH批量:@BatchSize annotation makes loading multiple associations in one que 阅读全文
posted @ 2013-01-30 01:00 Copyright 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1.Find maven in Eclipse Marketplace. The first matching item is the one we need. Install it!2.After installing maven plugins, select import then select the option 'Exsiting Maven Projects', then browser to the existing project folder.3.After imported the project, we can run the project by ch 阅读全文
posted @ 2013-01-29 22:29 Copyright 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1. Entity里面的Annotation为什么都是加在getter上的?2. 除了getters和setters以外,我们也增加了一个addCommentToArt(Comment comment)方法,这是便于双向关联的一个方法,因为一个重要的事情是要在关联的两端都设置引用。为什么不放在DAO里?另外书中还强烈建议:在关系的一端创建这种“管理关联”的方法。3. 为什么在ArtEntity里使用Hashset来保存comments?4. Convention over Configuration。5. @Temporal。解释:http://hi.baidu.com/huangjiuyx/ 阅读全文
posted @ 2013-01-23 15:03 Copyright 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Book name: PHP and MySQL Web Development 3rd, Luke Welling, Laura ThomsonLaura:女,墨尔本皇家理工大学的计算机讲师,也是Tangled Web Design公司的合伙人。Luke:资深web开发者,任职于MySQL AB公司,曾在墨尔本皇家理工大学任教。他们都获得了MySQL AB公司颁发的MySQL Core Certification,以及Zend公司颁发的Zend Certified PHP工程师。PHP访问表单变量3种具体访问方式取决于PHP的版本和php.ini设置。$username //自4.2.0版本 阅读全文
posted @ 2013-01-05 18:02 Copyright 阅读(177) 评论(0) 推荐(0) 编辑