Richie

Sometimes at night when I look up at the stars, and see the whole sky just laid out there, don't you think I ain't remembering it all. I still got dreams like anybody else, and ever so often, I am thinking about how things might of been. And then, all of a sudden, I'm forty, fifty, sixty years old, you know?

06 2007 档案

通往性能优化的天堂-地狱 JOIN方法说明
摘要: 不管是博客园还是CSDN,看到很多朋友对数据库的理解、认识还是没有突破一个瓶颈,而这个瓶颈往往只是一层窗纸,越过了你将看到一个新世界。 . 想当年,也是一提SQL Server,就觉得它的性能没法跟Oracle相比,一提到大数据处理就想到Oracle。自己一路走来,在本地blog上记录了很多优化方面的post,对的错的都有,没有时间系列的整理出来,这篇文章将join方法的概念稍微整理在一起,给大家个参考。通过查资料了解里面提到的各种概念,在实际中不断验证总结,完全可以对数据库一步步深入理解下去的。 . 我只对SQL Server 2000比较了解,但这并不阻碍我在Oracle、MySql进行SQL调优、产品架构,因为在数据库理论原理上,各大数据库基本出入不大,对数据库的深入理解,也不会影响你架构设计思想变坏,相反给你带来的是更深层次的思考。 阅读全文

posted @ 2007-06-26 16:13 riccc 阅读(15112) 评论(60) 推荐(2) 编辑

ER Studio设计模型 代码生成
摘要:使用ER Studio进行Model设计,用它的宏生成数据库创建脚本和实体类文件。示例文件:点击下载。 示例的使用: 1. 用ER Studio 6.5打开example.dm1 2. 打开菜单 Tools -> Basic Macro Editor 3. 在C:\盘创建Schema目录(数据库脚本和实体类文件将放在这个目录下) 4. 在Basic Macro Editor中分别打开Clas... 阅读全文

posted @ 2007-06-25 00:02 riccc 阅读(5036) 评论(7) 推荐(0) 编辑

start tag, end tag issues in IE7, particularly in xslt transformation
摘要:IE7对html标签的关闭很敏感,例如下面这段代码可以正常工作 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> a b c 但如果你象下面一样在head标签里添加一个script文件的引用,IE7... 阅读全文

posted @ 2007-06-20 17:45 riccc 阅读(861) 评论(2) 推荐(0) 编辑

HtmlParser.NET examples
摘要:HtmlParser.NET at sourceforge, the project code is licensed under the Common Public License. example code: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHig... 阅读全文

posted @ 2007-06-20 14:19 riccc 阅读(8295) 评论(7) 推荐(0) 编辑

generate the html DOCTYPE element using xsl:output
摘要:If you would like to generate the DOCTYPE specification in the html output when using xslt transformation, you can not write the code as following: Code highlighting produced by Actipro CodeHigh... 阅读全文

posted @ 2007-06-19 20:33 riccc 阅读(2161) 评论(1) 推荐(0) 编辑

NHibernate问题 flush-mode 一个事务中重复提交更新的SQL语句
摘要:问题现象:一个session开了事务,先执行insert、update,然后执行ICriteria.List()、IQuery.List(),或者是某些session.Get()方法,最后ITransaction.Commit()。监控执行的SQL语句,发现NHibernate重复执行了很多update的SQL操作。 问题原因: 1. flush-mode问题 NH... 阅读全文

posted @ 2007-06-12 17:05 riccc 阅读(3297) 评论(0) 推荐(0) 编辑

Parse the StringTemplate expression
摘要:If you need to get the attributes list that referenced in a StringTemplate, as well as which specific templates that invoked by it, you need to parse the StringTemplate expression. The following code ... 阅读全文

posted @ 2007-06-11 17:15 riccc 阅读(914) 评论(2) 推荐(0) 编辑

CSS Repeater - 交错显示行背景色 table行鼠标进入事件特效 禁止文本换行
摘要:1. 禁止文本换行的CSS: white-space:nowrap; strict mode下在IE7和FF中都正常,以前IE用的word-break、word-wrap属性对FF无效。 2. Repeater控件,交替显示table行的背景颜色,鼠标移动到某一行时用特殊背景显示。 方法purecss给出了很多种,看了一下现在新浪邮箱,使用的也是文章中选择的方法。... 阅读全文

posted @ 2007-06-10 18:54 riccc 阅读(3563) 评论(1) 推荐(1) 编辑

script - cancel javascript event in IE7 & FF
摘要:The following code works correctly in IE7, FF2.0, Opera9.21, and Safari3.01, it fires the server event only when the user confirm to delete in the browser. the server control: the ja... 阅读全文

posted @ 2007-06-10 18:25 riccc 阅读(1929) 评论(3) 推荐(0) 编辑

WSE 3.0异步调用, MTOM, Custom Policy Trace Assertion
摘要:1. 异步调用Web Service 对Web Service端没有要求,只是Client端调用方法上不同。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatestring_guid=Guid.NewGuid().ToString().ToU... 阅读全文

posted @ 2007-06-09 06:22 riccc 阅读(813) 评论(0) 推荐(0) 编辑

IE7中CSS属性的奇怪表现 - standards mode and quirks mode
摘要:standards mode (strict mode) and quirks mode (compliant mode) DOCTYPE声明,Frameset, Strict, Transitional IE的Box Model在标准模式(严格模式)和怪异模式(兼容模式)下的差异 阅读全文

posted @ 2007-06-09 05:35 riccc 阅读(2844) 评论(2) 推荐(0) 编辑

翻译 Enforcing Strict Model-View Separation in Template Engines
摘要: Enforcing Strict Model-View Separation in Template Engines(在模板引擎中强制模型-视图严格分离),是StringTemplate作者Terence Parr的一篇学术理论性论文,从学术的角度对模型-视图的分离给出清晰的定义,包括实现分离的规则,目的是使对模板引擎的研究规范化。 这篇论文是使用StringTemplate一个非常好的理论基础,在大型应用中使用JSP、ASP.NET等其它模板时,也可以作为一个相当优秀的参考。 内容简介: 1. 对模型-视图分离情况的总体介绍 2. 简单介绍模板引擎的发展 3. 总结分离的优点 4. 对模型-视图-控制器模式的介绍 5. 模板的正式定义 6. 对限制性模板进行分类:正则模板、上下文无关模板、上下文相关模板 7. 正式的定义分离,给出确定/衡量分离的规则(混杂索引指数),并介绍模板(视图)与模型间数据交互的两种方式:提取策略(Pull S 阅读全文

posted @ 2007-06-03 21:50 riccc 阅读(3921) 评论(13) 推荐(0) 编辑

导航