摘要: 多表Contains查询最初用OR,效率很低,查了资料改用union ,每个contains为一个子查询select * from pdt where Contains(name,'a')unionselect * from pdt inner join Company as c where Contains(c.name,'c')http://support.microsoft.com/kb/2264562/zh-cn 阅读全文
posted @ 2012-07-10 11:58 失落小羊 阅读(748) 评论(0) 推荐(0) 编辑
摘要: http://www.iteye.com/topic/378077http://blog.csdn.net/azheng270/article/details/2173430http://baike.baidu.com/view/25347.htmhttp://www.cnblogs.com/suman/archive/2010/10/23/1858864.htmllog4j.properties//1log4j.rootCategory=INFO,stdout,R [appender1,appender2...] [OFF,FATAL,ERROR,WARN,INFO,DEBUG,ALL]// 阅读全文
posted @ 2012-07-05 11:41 失落小羊 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 别人的发明,看起来很不错,比较有想法:select * from tblExternalProduct where ProductId in( Select top 10 ProductId From (Select top 20 ProductId From tblExternalProduct order by productId desc) as ep order by ep.productid asc)order by productid desc原文地址:http://tech.huweishen.com/gongju/1401.html 阅读全文
posted @ 2012-06-27 15:57 失落小羊 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 用JQuery Mobile+PhoneGap做了个Demo,用我的手机测试,加载就用了3秒左右,我机器cpu:1G ,ram:512M,反映超慢,近期的开发不能依赖于这个东西,还是看看其他的吧[探讨]开发者眼中的PhoneGap体验http://www.snuol.cn/school/DigitalOperation/programmingDevelops/2012-03-16/50554.html 阅读全文
posted @ 2012-06-06 16:26 失落小羊 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 用了一周时间把Python基础语法学了一遍,比C#,Java或C简洁许多,这个很好,C#的很多特性不过是看上去很好用。之前了解了下Object-C语法,但是一个函数写法就让我眼花了,如果说谁偏好这种语言那确实是偏执了,不过时代发展很快,谁知几年后apple又能如何呢程序员过于关注语言本身其实是一种浪费精力的表现,如果语言简单,用起来如说话般自然(siri的出现会不会引入到编程领域 - 程序员动动嘴说出逻辑就能生成程序?),那程序员会更多精力关注业务本身,而不是如何实现,生产效率自然会提升不少。或许跨平台早已是主流了吧,现在手机平台也在跨平台,用了PhoneGap+Jquery Mobile,感 阅读全文
posted @ 2012-06-04 20:33 失落小羊 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Fromhttp://en.wikipedia.org/wiki/NodejsNode.jsis asoftware systemdesigned for writingscalableInternet applications, notablyweb servers.[1]Programs are written inJavaScript, usingevent-driven,asynchronous I/Oto minimize overhead and maximize scalability.[2]Node.js consists of Google'sV8 JavaScrip 阅读全文
posted @ 2012-05-25 12:56 失落小羊 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 效果图原理:从数据集中查找(相似)结果集,然后展示出来。流程:1.数据源如: [{name:郭诗贤},{name:赵云飞}]2.查找方法:(正则) if(new RegExp("郭").test(name)) [添加到结果集];3.展示: 3.1页面添加:<ul id="searchList"></ul> 样式自定义。 3.2将查找到的结果集添加到ul:$("#searchList").append($("<li></li>").append("<a& 阅读全文
posted @ 2012-02-10 18:51 失落小羊 阅读(231) 评论(0) 推荐(0) 编辑
摘要: By Dmitri Khanine Opening a database connection is a resource intensive and time consuming operation. Connection pooling increases the performance of Web applications by reusing active database connections instead of creating a new connection with every request. Connection pool manager maintains a p 阅读全文
posted @ 2012-01-18 22:59 失落小羊 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 经考证,C语言是女的…原因如下:1.无论你让她干什么,她绝对不可能自己找到方法。2.总是用复杂的方法解决简单的问题。3.不可能自主认识到本身错误。4.浪费时间是十分正常的事情。5.无论跟她说什么,都得用她能理解的方式做充分说明。6.只要你有一点错,她一定可以挑出来。7.反正,是你的错 阅读全文
posted @ 2011-07-11 10:56 失落小羊 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 程序员甲开着一辆宝马。程序员乙:“哥们,宝马怎么来的?”程序员甲:“那天在酒吧遇见个美女,晚上她开着她的宝马把我拉到了山顶上,然后脱掉自己的衣服跟我说‘你可以要你想要的’。于是 ..我开走了她的宝马。 ”程序员乙思索半天,说:“兄弟,你做的很对,她的衣服你也穿不了。” 阅读全文
posted @ 2011-06-23 14:14 失落小羊 阅读(184) 评论(0) 推荐(0) 编辑