[12] 它山之石

摘要: Oracle uses a Data Dictionary to store details of all the Tables, Columns etc.. (check out the associated Data Model). You will normally be interested only in your own Tables, which are provided by the 'USER' views, which are for the User who is currently logged in. The System Administrator or DBA will usually be interested in the 'ALL' Views, which show data for all Users.阅读全文
posted @ 2011-03-18 14:06 Artech 阅读(2616) | 评论 (4) 编辑
摘要: [J.D. Meier's Blog]“Life is like skiing. Just like skiing, the goal is not to get to the bottom of the hill. It’s to have a bunch of good runs before the sun sets.” – Seth Godin It's been a good run. After more than 10 years in patterns & practices, I'm on to my next adventure here at Microsoft. For this post, I wanted to take a stroll down memory lane. During my time at patterns & practices,阅读全文
posted @ 2011-03-17 12:47 Artech 阅读(1055) | 评论 (1) 编辑
摘要: 歌词:社会环境太黑, 管我锤子事;生活水平低,管我锤子事;军事问题政治问题,管我锤子事;反正我管不到哩事, 都管我锤子事。 长这么大喱人咯思想被灌输一啪啦,叽里呱啦从学校到家从老师再到妈妈爸爸。要当乖娃娃哈,思想不要邋遢,不然小心要着祖国妈妈故意洗澡搓成夹夹。晓得啥子可以讲咋个讲啥子不能讲,要晓得谈吐要用那个你晓得错哩思想。所以有些事要让就让你不要犟, 有些事哩傻该装要装你不要正正方方...阅读全文
posted @ 2010-12-30 23:16 Artech 阅读(2696) | 评论 (26) 编辑
摘要: “梦想这东西和经典一样,永远不会因为时间而褪色,反而更显珍贵。”这是10月28日上线的网络短片《老男孩》在片尾打出的一行字幕,连日来,这部以草根、怀旧、青春、人生、爱情、友情等为基调的“电影”让众多网友直言“飙泪”、“泪流满面”,截至昨天下午,该片仅在某视频网的官方播放次数就已近1600万次。如果这是一部正式上线的电影,有一半的人买票(每张计半价25元),票房也有两个亿了……《老男孩》为什么红,它凭啥点中了观众的泪穴? 阅读全文
posted @ 2010-11-27 20:49 Artech 阅读(3693) | 评论 (8) 编辑
摘要: Change Data Capture records INSERTs, UPDATEs, and DELETEs applied to SQL Server tables, and makes a record available of what changed, where, and when, in simple relational 'change tables' rather than in an esoteric chopped salad of XML. These change tables contain columns that reflect the column structure of the source table you have chosen to track, along with the metadata needed to understand the c阅读全文
posted @ 2010-11-16 17:30 Artech 阅读(1193) | 评论 (3) 编辑
摘要: 转自天涯论坛]香港9月24日消息(记者邵丽丽)国际反贪污组织“透明国际”(总部位于德国柏林的“透明国际”(Transparen-cyInternational,简称TI,是全球著名非营利性反腐败组织),最新公布2008年全球国家或地区清廉指数排名调查,香港在全球一百八十个国家或地区中排名第十二,较去年上升两级。由于陈水扁家族洗钱曝光,台湾清廉排名由去年34骤降至今年39,中国的全球排名与去年相同,排名第七十二。其他排名如下: 阅读全文
posted @ 2010-10-29 12:33 Artech 阅读(2716) | 评论 (26) 编辑
摘要: Rob beat me to it. Blogging about T4 (the Text Template Transformation Toolkit) had been on my list literally for a year. He and I were singing its praises last night. Hopefully I can add something small to the conversation. What's the story? Well, T4 is a code generator built right into Visual Studio. To be clear, you HAVE THIS NOW on your system…go play. Now's the time to introduce code generation to y阅读全文
posted @ 2010-10-17 17:12 Artech 阅读(1986) | 评论 (1) 编辑
摘要: Windows Communication Foundation (WCF) 中的可靠会话使用传输窗口保存客户端和服务上的消息。可配置属性 MaxTransferWindowSize 指示传输窗口可以保存多少条消息。在发送方,这指示在等待确认消息时传输窗口可以保存多少条消息,在接收方,则指示为服务缓冲多少条消息。选择合适的大小可影响使用网络的效率以及运行服务的最佳容量。 当编写一个允许从不同的客户端启用可靠会话通信的服务时,可能会有许多客户端同时建立与该服务的可靠会话。在这些情况下,服务的响应取决于 MaxPendingChannels 属性。当发送方创建到接收方的可靠会话通道时,发送方和接收方之间的握手将建立可靠会话。建立可靠会话之后,该通道会放入到挂起的通道队列中以供服务接受。此 MaxPendingChannels 属性指示有多少个通道可以处于此状态。 阅读全文
posted @ 2010-06-30 22:18 Artech 阅读(2789) | 评论 (5) 编辑
摘要: 我每日坐5路地铁,从伽尼一站出来,都会看到一个没有头的人坐在路边,不时发出些古怪声响,引得途人侧目,他的面前,摆了只扁盒子,零散会有人丢几个硬币进去。 于这城里,这类表演是常见,无非是把肩下垫得很高,头缩下去,便看来效果了。尽管人皆心知肚明,但不免当下兴致,还有支付;或是孩子,不明就里,好奇大作,每每观析过多,父母不过意,扔几枚意思。 一日里,我一样经过这没有头的人,却有几个警察也过来,和他说了些什么。就在身旁,我不觉听了一下,大约是自这一日,上面下了新的时令,便是不得在街上行演了。 无头的人便释解起来,说是平日只是老实地坐在那里,并不妨碍行人;受来多少,任人自愿,从没纠缠;且是每日里收工,也把原地打扫一二,不留丝毫垃圾再去……。声音闷声闷气,从领子的洞里传出。 阅读全文
posted @ 2010-05-15 11:22 Artech 阅读(4024) | 评论 (19) 编辑
摘要: In my current project the MVP pattern is used in the supervising controller mode. The MVP pattern is an adaption of the old MVC pattern that incorporates that the capabilities of WinForms views have become smart enough to lift some of the burdens previously implemented in the controller. This applies to e.g. handling click events and data-binding; a presenter only injects the model into the view which阅读全文
posted @ 2010-04-12 16:39 Artech 阅读(1344) | 评论 (1) 编辑
摘要: As discussed last time, delegates can produce memory leaks in our applications if not used carefully. Most often, this happens with events when we add a handler to an event, forget to remove it and the object on which the event is declared lives longer than the object that handles it. The following diagram illustrates the problem.阅读全文
posted @ 2009-12-03 16:44 Artech 阅读(1397) | 评论 (0) 编辑
摘要: [From J.D. Meier's Blog]A final PDF is now available for our patterns & practices Application Architecture Guide, second edition. This is our platform playbook for the Microsoft application platform.阅读全文
posted @ 2009-11-25 21:11 Artech 阅读(5286) | 评论 (36) 编辑
摘要: [For Arnon Rotem-Gal-Oz’s Article:http://dobbscodetalk.com/index.php?option=com_myblog&show=CRUD-is-bad-for-REST.html&Itemid=29]In one of my previous posts (Rest: good, bad and ugly), I made a passing comment, about how I think using CRUD in RESTful service is a bad practice. I received a few comments / questions asking why do I say that – so what’s wrong with CRUD and REST?阅读全文
posted @ 2009-08-05 08:43 Artech 阅读(1106) | 评论 (1) 编辑
摘要: Why don't you partition your table if you have millions of rows and get complaints about the degradation of performance? This is the question I asked my friend and I was amazed to find out he, along with many people, wasn't aware of this feature of SQL Server. This feature was first made available in SQL Server 2005, and today I will discuss what partitioning is.阅读全文
posted @ 2009-04-30 08:34 Artech 阅读(1532) | 评论 (0) 编辑
摘要: Are you creating a new Web site and developing a user registration system that requires new visitors to sign-up and create a user ID and password? Stop now and read this. There are now more effective approaches for dealing with Web accounts which are more powerful and are better for you and your users...阅读全文
posted @ 2009-04-26 22:18 Artech 阅读(1256) | 评论 (2) 编辑
摘要: In the last year or so, after quite a lull, the software architecture business has gotten rather exciting again. We're finally seeing major new topics emerging into the early mainstream that are potential game-changers, while at the same time a few innovations that have been hovering in the margins of the industry are starting to break out in a big way. The big changes: The hegemony of traditio阅读全文
posted @ 2009-04-13 16:13 Artech 阅读(1433) | 评论 (1) 编辑
摘要: Throughout this text, I've often employed the ILDASM utility to illustrate the Microsoft intermediate language (MSIL) that the C# compiler generates. I used ILDASM to give you a more complete understanding of the lower-level workings of the C# compiler. Although I briefly explain what each MSIL instruction does in the context of the chapter in which the instruction is used, I thought it would be nice to阅读全文
posted @ 2007-08-22 11:39 Artech 阅读(1979) | 评论 (9) 编辑