cloudjun

导航

2010年12月19日 #

12个小球不知轻重

摘要: 4,4 平, 取其中三个,和剩下的4个中的三个对称,平,余下的1个找到了,不平,哪三个球有异球,且是轻是重也明白了,再一次搞定。A4,B4 不平, 则余下4球正常。再组合A4 = A3+A1 , B4= B3+B1正常4球中取C3A3+ B1 对 C3+A1平, B3 有问题,且知道异常球轻重, 再一次搞定。不平,维持不变, A3 有问题,且知道轻重, 再一次搞定。不平,轻重指示反过来了,A1,B1 有问题,在取一个正常球,一次搞定。 阅读全文

posted @ 2010-12-19 11:38 jun 阅读(473) 评论(0) 推荐(0) 编辑

2010年11月15日 #

Some ebj 3.x / spring comparison from Linked In

摘要: 1. Dependency InjectionEJB3.x --Can inject anything in the container including EJBs, data sources, JMS resources and JPA resourcesSpring --Can inject almost anything including lists, maps, properties ... 阅读全文

posted @ 2010-11-15 11:14 jun 阅读(213) 评论(0) 推荐(0) 编辑

2009年5月17日 #

using blocking queue to implement multi-threaded FIFO execution

摘要: For some situation, we need to implement a FIFO execution model using multiple threads, like the following watchdog scenario.A postman delivers books to the door from time to time. A puppy (watchdog) ... 阅读全文

posted @ 2009-05-17 13:49 jun 阅读(880) 评论(0) 推荐(0) 编辑

2009年5月13日 #

persistence and DataGrid

摘要: 本文仅记录对“Java Persistence on the Grid: Approaches to Integration”这篇文章的观后感。原文请见http://opensource.sys-con.com/node/951117原文作者指出的东东我也一直在考虑,所以读来于我心有戚戚焉。文章写的是JPA,放之别的persistence mechanism也是一样。此处的... 阅读全文

posted @ 2009-05-13 00:29 jun 阅读(198) 评论(0) 推荐(0) 编辑

2009年4月17日 #

some issues with Google Application Engine (GAE)

摘要: I have been playing with Google Application Engine for the past two days, trying to build a tool for my wife, so that she can get notification emails when, for example, a price drop happens for the bu... 阅读全文

posted @ 2009-04-17 00:55 jun 阅读(361) 评论(2) 推荐(0) 编辑

2009年4月4日 #

WF本质论 OpenSesame 芝麻开门代码

摘要: “WF本质论”是本不可多得的好书。第一章应该是全书的关键,理解了第一章就为理解WF的内部机制打下了坚实的基础。本文试图给出第一章内残缺不全的OpenSesame例子的代码,帮助大家理解WF. 阅读全文

posted @ 2009-04-04 05:08 jun 阅读(2834) 评论(8) 推荐(0) 编辑

2007年10月20日 #

记HDC(Heartland Developer Conference)2天流水帐

摘要: 10月18、19号两天参加了在美国中部nebraska州举行的Heartland Developer Conference, 这是一个尚是区域型的MS开发者集会,一年一次,主要是针对我们这块前不着村后不着店的美中部地区,但是这次请到了Scott Guthrie, Ron Jacobs等重量级人物,怎么着也要去瞧两眼。 阅读全文

posted @ 2007-10-20 13:56 jun 阅读(2271) 评论(10) 推荐(0) 编辑

2006年6月4日 #

server长时间运行query,Ajax刷新被block

摘要: 最近有个asp.net程序,需要长时间查 询数据库,千万级,且经常有reports同时运行,所以搞不好一个submit就要等1,2个小时。我把sql timeout设成无限,http request timeout设成12个小时,但是不知为什么在production server上总是运行了1.5小时后就出现page can not be displayed,后台的query则还在运行。但是在我的... 阅读全文

posted @ 2006-06-04 15:23 jun 阅读(514) 评论(0) 推荐(0) 编辑

2006年4月19日 #

web application input & display chinese characters

摘要: The backend database is sql server 2000.1) in web.config, set encoding to utf-82) in sql server, set field type to nchar, nvarchar or ntext3) in the application data access layer, if using stored proc... 阅读全文

posted @ 2006-04-19 13:46 jun 阅读(480) 评论(0) 推荐(0) 编辑

2005年10月9日 #

c#委托与事件 心得

摘要: c#用委托来实现事件通知机制。委托相当与c++函数指针。整个过程涉及一个呼叫者,一个被呼叫者,还有就是这个委托。- 实现步骤有以下几步: 1. 申明委托, 2.定义呼叫者和调用的函数, 3.定义被呼叫者和具体实现的函数(被调用的函数)1.申明委托 ,在包里或者类里,publicCode highlighting produced by Actipro CodeHighlighter (freewa... 阅读全文

posted @ 2005-10-09 14:53 jun 阅读(19559) 评论(46) 推荐(4) 编辑