<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"> <channel><title><![CDATA[DongPad]]></title><link><![CDATA[http://www.dongpad.com]]></link> <link rel="Shortcut Icon" href="favicon.ico" /> <description>Every day is a new beginning!</description><copyright>2.0 beta 03</copyright> <language>zh-cn</language><item><title><![CDATA[母亲节微电影《网瘾》爱可以创造奇迹]]></title><description><![CDATA[<embed src="http://player.56.com/v_NjgyMDQyNjM.swf" type="application/x-shockwave-flash" width="480" height="405" allowNetworking="all" allowScriptAccess="always"></embed>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/RelaxBar-20120513-276.html]]></link><pubdate><![CDATA[2012-5-13 12:27:39]]></pubdate></item><item><title><![CDATA[《那些年》,《突然好想你》]]></title><description><![CDATA[<embed src="http://player.youku.com/player.php/sid/XMzU2MDEwODMy/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" allowFullscreen="true" type="application/x-shockwave-flash"></embed>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/RelaxBar-20120511-275.html]]></link><pubdate><![CDATA[2012-5-11 22:56:20]]></pubdate></item><item><title><![CDATA[一个少年和少妇的那些事]]></title><description><![CDATA[<embed src="http://www.tudou.com/v/qav0dBFXKfc/&amp;resourceId=0_05_05_99/v.swf" type="application/x-shockwave-flash" allowＳＣＲＩＰＴaccess="always" allowfullscreen="true" wmode="opaque" width="480" height="400">
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/RelaxBar-20120511-274.html]]></link><pubdate><![CDATA[2012-5-11 22:54:06]]></pubdate></item><item><title><![CDATA[魂斗罗最终解谜]]></title><description><![CDATA[<embed src="http://player.youku.com/player.php/sid/XMzg4MDI5MjI0/v.swf" quality="high" width="480" height="400" align="middle" allowＳＣＲＩＰＴaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash">
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/RelaxBar-20120504-273.html]]></link><pubdate><![CDATA[2012-5-4 0:03:25]]></pubdate></item><item><title><![CDATA[动机]]></title><description><![CDATA[<embed type="application/x-shockwave-flash" src="http://static.youku.com/v/swf/qplayer.swf" width="480" height="400" id="movie_player" name="movie_player" wmode="transparent" quality="high" allowfullscreen="true" allowＳＣＲＩＰＴaccess="allways" flashvars="VideoIDS=XMzExOTI3NDIw&amp;winType=index&amp;isShowRelatedVideo=false&amp;isAutoPlay=false" pluginspage="http://www.macromedia.com/go/getflashplayer">
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/Life-20120427-272.html]]></link><pubdate><![CDATA[2012-4-27 20:03:46]]></pubdate></item><item><title><![CDATA[浙理工星元素的街舞碉堡了,神一样的搭]]></title><description><![CDATA[<embed src="http://www.tudou.com/v/yDGcLnrj-Ic/&resourceId=0_05_02_99/v.swf" type="application/x-shockwave-flash" allowＳＣＲＩＰＴaccess="always" allowfullscreen="true" wmode="opaque" width="480" height="400"></embed>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/RelaxBar-20120426-271.html]]></link><pubdate><![CDATA[2012-4-26 23:10:04]]></pubdate></item><item><title><![CDATA[梦的汽车人]]></title><description><![CDATA[<embed src="http://player.youku.com/player.php/sid/XMzg1MjcwMDU2/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" allowFullscreen="true" type="application/x-shockwave-flash"></embed>]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/Life-20120425-270.html]]></link><pubdate><![CDATA[2012-4-25 22:03:01]]></pubdate></item><item><title><![CDATA[恶搞女星天价陪睡《我用贞操换此生》]]></title><description><![CDATA[<embed src="http://player.youku.com/player.php/sid/XMzY3MDgyNzM2/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" allowFullscreen="true" type="application/x-shockwave-flash"></embed>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/Life-20120420-269.html]]></link><pubdate><![CDATA[2012-4-20 20:17:32]]></pubdate></item><item><title><![CDATA[鲇鱼效应]]></title><description><![CDATA[【鲇鱼效应】<br />
    以前，沙丁鱼在运输过程中成活率很低。后有人发现，若在沙丁鱼中放一条鲇鱼，情况却有所改观，成活率会大大提高。这是何故呢?<br />
    原来鲇鱼在到了一个陌生的环境后，就会“性情急躁”，四处乱游，这对于大量好静的沙丁鱼来说，无疑起到了搅拌作用;而沙丁鱼发现多了这样一个“异已分子”，自然也很紧张，加速游动。这样沙丁鱼缺氧的问题就迎刃而解了，沙丁鱼也就不会死了。<br />
    当一个组织的工作达到较稳定的状态时，常常意味着员工工作积极性的降低，“一团和气”的集体不一定是一个高效率的集体，这时候“鲶鱼效应”将起到很好的“医疗”作用。一个组织中，如果始终有一位“鲶鱼式”的人物，无疑会激活员工队伍，提高工作业绩。<br />
    “鲶鱼效应”是企业领导层激发员工活力的有效措施之一。它表现在两方面，一是企业要不断补充新鲜血液，把那些富有朝气、思维敏捷的年轻生力军引入职工队伍中甚至管理层，给那些固步自封、因循守旧的懒惰员工和官僚带来竞争压力，才能唤起“沙丁鱼”们的生存意识和竞争求胜之心。二是要不断地引进新技术、新工艺、新设备、新管理观念，这样才能使企业在市场大潮中搏击风浪，增强生存能力和适应能力。<br />
    关于鲶鱼效应的应用，目前已有鲶鱼效应在人力资源管理中的应用、在领导活动中的应用，具体包括竞争机制的建立、能人的启用、领导风格的变革等等。但笔者认为鲶鱼效应的分析和应用远不止这些。思考问题的视角不同，发现问题、解决问题的方法就不同。<br />
    首先，如果鲶鱼本体代表领导者。<br />
    领导者即影响他人完成任务的个体或者集体，在死气沉沉的沙丁鱼箱内，沙丁鱼就象征着一批同质性极强的群体，他们技能水平相似，缺乏创新和主动性，人浮于事，效率低下，整个机构是一种臃肿不堪的状态，而鲶鱼领导者的到来（或者内部沙丁鱼进化成鲶鱼），新官上任三把火，整顿纪律，规范制度，改造流程，合理配置岗位和人、财、物，逐渐组织的经营有了起色，成本减下来了，臃肿的机构简化了，无能的沙丁鱼被吃了、赶走了，有能耐的沙丁鱼得到了正面的激励，这样整个机构呈现欣欣向荣的景象，在鲶鱼领导者的带领下，整个组织的活力都被调动起来，从而使集体的力量更加强大，占领市场、保有市场才有了坚实的基础。<br />
    从这个角度看，鲶鱼领导者应该具备如下特质：<br />
    1-办事果断、雷厉风行：迅速发现组织停滞不前的病症所在，并能够快刀斩乱麻，迅速而有效地解决问题。<br />
    2-说话算话、强势作风：科学地决策，并能够监督决策的执行，及时评估政策的有效性。<br />
    3-倡导创新、结果导向：提倡创新，塑造鼓励创新的氛围，从业务流程、工作设计、人员招聘与配置、薪酬设计和考核等方面体现创新思想，体现创新的利。<br />
    4-成就需求、前瞻视野：有短中长期发展规划和目标，能够预见组织发展的方向以及现存人力资源与未来的差距，能够有效地辨别未来人才，裁减掉不适合组织发展的拖后腿人员。<br />
    5-系统视角、敢于变革：能够从系统内外观察组织系统结构的变化和功能，既要把自己当作组织的一部分（相对于渔夫，鲶鱼领导者本身也是沙丁鱼，渔夫才是领导者），又要把自己看成一个小系统中的领导者，能够带动员工队伍打开局面、打破常规，取得良好效益。<br />
    对于在领导者领导下为了共同目标而奋斗的职工群体而言，如果领导者有鲶鱼特性，那么要生存下去的方法就是运动起来，激发自己的能量，至少要和鲶鱼同步速度，并且要保证同一方向（企业目标），这样才不至于被鲶鱼追上吃掉，或者被其他沙丁鱼挤到最后憋死。<br />
    其次，如果鲶鱼代表团队中一员。<br />
    那么它就意味着新、奇、异，包括观点的不一样、行为的不同、习惯的迥异，正因为不同，才会激发智慧，一个团队需要不同性格、不同技能、不同工作经历的人加盟，如果都是清一色的员工，那么这个团队产生奇思妙想、产生高绩效的可能性是微乎其微的。在注重团队建设、致力团队沟通的今天，适当地吸引一些鲶鱼加入团队，会给整个团队带来活泼的工作气氛，带来创新，带来多赢。但是鲶鱼的数量应当加以控制，全是鲶鱼的话，整个团队就会出现“个个是英雄、整体是狗熊”的现象，因为个个鲶鱼都想坚持自己的观点，合作和沟通就不存在了，整个团队就乌烟瘴气了，所以日本有些企业信奉“一流管理者、二流员工”的用人信条，既然一条鲶鱼能够带动一群鱼翻腾搅动，那就没有必要再放第二条了，一山不容二虎也是这样的道理。从这个角度看，团队中的鲶鱼分子应注重良性沟通、影响力的塑造，其他员工对待团队中的鲶鱼，也应该在工作的基础上与其加强合作。　<br />
    再次，如果鲶鱼代表让人来劲的工作内容。<br />
    现在在很多企业，组织结构和工作设计依然成为流程改造的一大课题，不合理、枯燥无味、没有前景、单调无聊的工作内容让人们感觉像一桶拥挤的沙丁鱼一样没有激情，不愿意在岗位上多思考多改进，以致慢慢地形成了集体惰性。如果能够把工作扩大化、丰富化的鲶鱼效应应用到工作设计（Jobdesigning）上，那对组织的财务贡献也是显而易见的。如何把好动、充满激情的鲶鱼放到一潭死水的工作中呢？这又是一门棘手的学问，有人主张从横向和纵向扩大工作范围、深化工作内容，让员工们体验丰富的工作活动，感受努力工作的成就，让他们体现面对挑战性、来劲性工作时的激动与欲望；有人主张运用轮岗的方式增长员工的才干，让他们工作中的鲶鱼越游越欢；笔者则主张在应用以上措施的同时还要注重人与岗位性格的匹配，鲶鱼就要做鲶鱼的事情，沙丁鱼就要做沙丁鱼的事情，岗位中既要有鲶鱼性工作内容也要有沙丁鱼性工作内容，最重要的是要发现员工的偏好，看那些工作能够让他们产生鲶鱼的动力与激情，只有匹配了之后，鲶鱼效应才能真正发挥它的作用，不然虽然设置了鲶鱼性工作内容，却发现这种工作根本不能让员工为之动容、为之奋斗，那么这条鲶鱼就成了死鱼了。<br />
    从这个角度看，工作中的鲶鱼代表着丰富的工作内容、令人来劲的责权利、充满挑战的工作期望、新鲜的其他岗位体验等等。对于领导者和人力资源管理者而言，是否要在工作中设置鲶鱼工作、在什么层次上设置鲶鱼工作，都将是一个组织的战略问题。<br />
    综上，从不同的角度分析，鲶鱼代表的内容是不同的，对于一个从业者，领导可能是鲶鱼，那么你的努力最好和组织保持同方向，不要往后游，否则就有被吃掉的危险，永远充满激情地向上游，也许某一天你也变成了鲶鱼，赶着一群沙丁鱼向上奋斗；你的同事也可能是鲶鱼，那就和他比拼比拼，看谁翻腾的能量更大；你的下级也可能有鲶鱼，那就在激励下属成长的同时，别忘了给自己充充电，保持强劲的势头发展，否则你也有被下属吃掉的危险；你的工作中也可能有鲶鱼，那就合理地安排自己的工作，分清主次，让鲶鱼工作越游越欢，最好能到上一层工作岗位上去搅动一番。]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/LStudy-20120323-267.html]]></link><pubdate><![CDATA[2012-3-23 10:50:23]]></pubdate></item><item><title><![CDATA[鳄鱼法则]]></title><description><![CDATA[【鳄鱼法则】<br />
    鳄鱼法则：其原意是假定一只鳄鱼咬住你的脚，如果你用手去试图挣脱你的脚，鳄鱼便会同时咬住你的脚与手。你愈挣扎，就被咬住得越多。所以，万一鳄鱼咬住你的脚，你唯一的办法就是牺牲一只脚。<br />
    譬如在股市中，鳄鱼法则就是：当你发现自己的交易背离了市场的方向，必须立即止损，不得有任何延误，不得存有任何侥幸。
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/LStudy-20120323-266.html]]></link><pubdate><![CDATA[2012-3-23 10:49:03]]></pubdate></item><item><title><![CDATA[青蛙现象]]></title><description><![CDATA[【青蛙现象】<br />
    青蛙现象：把一只青蛙直接放进热水锅里，由于它对不良环境的反应十分敏感，就会迅速跳出锅外。如果把一个青蛙放进冷水锅里，慢慢地加温，青蛙并不会立即跳出锅外，水温逐渐提高的最终结局是青蛙被煮死了，因为等水温高到青蛙无法忍受时，它已经来不及、或者说是没有能力跳出锅外了。　　<br />
    青蛙现象告诉我们，一些突变事件，往往容易引起人们的警觉，而易致人于死地的却是在自我感觉良好的情况下，对实际情况的逐渐恶化，没有清醒的察觉。<br />
    启示之一是：我们的组织和社会生存的主要威胁，并非来自突如其来的事件，而是由缓慢渐进而无法察觉的过程形成。人们目光短浅，只看到局部，而无法纵观全局，对于突如其来的变化，可以从容面对，对于悄悄发生的大的变化，而无法察觉，最终会带给我们更加严重的危害！~<br />
    启示之二是：青蛙，就好象是我们生活中的芸芸众生，我们要着眼未来，勤于思考新的问题，勤于学习新的知识，不能过“今日有酒，今日醉”和“当一天和尚，撞一天钟”的醉生梦死的生活，到头来将是非常可悲的！<br />
    启示之三是：当今的社会，是一个知识爆炸、日新月异的时代，知识也需要不断更新，所以我们不要一味的沉迷于现状、安于现状，不思进取，这样下去的话，肯定会被时代所淘汰，也会有面临失业的危险！<br />
    启示之四是：我们不要单纯的，只能面对突如其来的危险，而忽视那种缓慢而又微小甚微的危险，因为，那种缓慢而又微小甚微的危险，才是最可怕的！]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/LStudy-20120323-265.html]]></link><pubdate><![CDATA[2012-3-23 10:47:18]]></pubdate></item><item><title><![CDATA[蝴蝶效应]]></title><description><![CDATA[【蝴蝶效应】<br />
    蝴蝶效应:上个世纪70年代，美国一个名叫洛伦兹的气象学家在解释空气系统理论时说，亚马逊雨林一只蝴蝶翅膀偶尔振动，也许两周后就会引起美国得克萨斯州的一场龙卷风。　　<br />
    蝴蝶效应是说，初始条件十分微小的变化经过不断放大，对其未来状态会造成极其巨大的差别。有些小事可以糊涂，有些小事如经系统放大，则对一个组织、一个国家来说是很重要的，就不能糊涂。<br />
    今天的企业，其命运同样受“蝴蝶效应”的影响。消费者越来越相信感觉，所以品牌消费、购物环境、服务态度……这些无形的价值都会成为他们选择的因素。所以只要稍加留意，我们就不难看到，一些管理规范、运作良好的公司在他们的公司理念中都会出现这样的句子：<br />
    “在你的统计中，对待100名客户里，只有一位不满意，因此你可骄称只有1%的不合格，但对于该客户而言，他得到的却是100%的不满意。”<br />
    “你一朝对客户不善，公司就需要10倍甚至更多的努力去补救。”<br />
    “在客户眼里，你代表公司”。<br />
    今天，能够让企业命运发生改变的“蝴蝶”已远不止“计划之手”，随着中国联通加入电信竞争，私营企业承包铁路专列、南京市外资企业参与公交车竞争等新闻的出现，企业坐而无忧的垄断地位日渐势微，开放式的竞争让企业不得不考虑各种影响发展的潜在因素。<br />
    精简机构、官员下岗、取消福利房等措施，让越来越多的人远离传统的保障，随之而来的是依靠自己来决定命运。而组织和个人自由组合的结果就是：谁能捕捉到对生命有益的“蝴蝶”，谁就不会被社会抛弃。]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/LStudy-20120323-264.html]]></link><pubdate><![CDATA[2012-3-23 10:44:17]]></pubdate></item><item><title><![CDATA[淘宝数据盛典之你所不知道的城市秘密]]></title><description><![CDATA[<embed src="http://www.tudou.com/v/Mfdg1-ROkZU/&resourceId=0_05_05_99/v.swf" type="application/x-shockwave-flash" allowＳＣＲＩＰＴaccess="always" allowfullscreen="true" wmode="opaque" width="480" height="400"></embed>]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/RelaxBar-20120305-263.html]]></link><pubdate><![CDATA[2012-3-5 23:22:45]]></pubdate></item><item><title><![CDATA[技术宅告诉你如何地铁搭讪漂亮MM]]></title><description><![CDATA[<p><embed src="http://www.tudou.com/v/x5AHq6cfXoQ/&amp;resourceId=38230859_05_02_99/v.swf" type="application/x-shockwave-flash" allowＳＣＲＩＰＴaccess="always" allowfullscreen="true" wmode="opaque" width="480" height="400"></embed></p>  <p>源地址： <a href="http://www.tudou.com/programs/view/x5AHq6cfXoQ/">http://www.tudou.com/programs/view/x5AHq6cfXoQ/</a></p><br />
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/RelaxBar-20120305-262.html]]></link><pubdate><![CDATA[2012-3-5 21:54:51]]></pubdate></item><item><title><![CDATA[depends.exe &amp; dumpbin.exe]]></title><description><![CDATA[This Article is Published by Live Writer。<p>1.vc自带的工具<strong><font color="#ff0000">depends.exe</font></strong>可以查看exe或dll依赖哪些dll的工具。通常情况下，自己编写的程序要依赖系统或其他软件的各种dll文件，如果在另一台电脑上没有这些文件程序运行就会报错。VS的depends.exe工具能够帮我们找到依赖文件的名称路径等。一般depends.exe位置在“D:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\depends.exe ”</p>  <p>2.<strong><font color="#ff0000">dumpbin.exe</font></strong>是visual studio中带的工具，可以查看二进制文件的信息，其中就可以用来查看一个程序依赖的dll： </p>  <p>dumpbin.exe /dependents <executable file path> </p>  <p>其位置一般在“C:\Program Files\Microsoft Visual Studio 8\VC\bin\dumpbin.exe”。</p>  <p>3.另外推荐一个<font color="#ff0000"><strong>Process Explorer</strong></font> ，它可以显示有关进程已打开或加载哪些句柄和 DLL 的信息。<a href="http://technet.microsoft.com/zh-cn/sysinternals/bb896653" target="_blank">链接在这里</a></p>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20110524-261.html]]></link><pubdate><![CDATA[2011-5-24 11:39:23]]></pubdate></item><item><title><![CDATA[如何验证信用卡是否合法]]></title><description><![CDATA[<img alt="" src="/UserFiles/Image/HowToValidateCreditCard.jpg" border="0" >
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/LStudy-20110227-260.html]]></link><pubdate><![CDATA[2011-2-27 15:34:03]]></pubdate></item><item><title><![CDATA[How to make XmlnsDefinition work on the local assembly?]]></title><description><![CDATA[This Article is Published by Live Writer。<p>track @ <a href="http://stackoverflow.com/questions/2760504/how-to-make-xmlnsdefinition-work-on-the-local-assembly">http://stackoverflow.com/questions/2760504/how-to-make-xmlnsdefinition-work-on-the-local-assembly</a></p>  <h2><strong>Q:</strong></h2>  <p>I've started using the XmlnsDefinition attribute to tie together some CLR namespaces into a single xmlns for convenience in XAML.</p>  <p>Unfortunately, it seems that this only works when using foreign assemblies. If I have a XAML file in the same assembly as the types that are in the namespace I'm referencing from XmlnsDefinition, then the compiler gives an error about the type not existing in the xmlns I am defining.</p>  <p>Moving the type to a foreign assembly fixes the problem.</p>  <p>Is there a way to use XmlnsDefinition on an assembly and have it be used from within that assembly via XAML?</p>  <h2><strong>A:</strong></h2>  <p>Unfortunately, no. The XAML file must be parsed before the assembly is built in order to generate the code implied by the XAML to be included in the assembly. The XAML compiler produces code behind files (the files ending in, for example, .g.cs) and these file then become part of the assembly the XAML file is contained in. Since the assembly hasn't been built yet, the XAML compiler cannot load it to determine XmlnsDeclaration attributes have been specified.</p>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20110214-259.html]]></link><pubdate><![CDATA[2011-2-14 9:08:52]]></pubdate></item><item><title><![CDATA[LINQ to SQL Debug Visualizer]]></title><description><![CDATA[<a href="http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx">http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx</a></p>  <p><img src="http://www.scottgu.com/blogposts/linqtosql3/step5.jpg" /> </p>  <p>how to install:</p>  <p>1.download a copy of it <a href="http://www.scottgu.com/blogposts/linqquery/SqlServerQueryVisualizer.zip">here</a></p>  <p>2.copy the assembly into your local<font color="#ff0000"> \Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers</font> directory.</p><br />
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20110211-258.html]]></link><pubdate><![CDATA[2011-2-11 10:06:20]]></pubdate></item><item><title><![CDATA[F#对斐波那契数列求和]]></title><description><![CDATA[This Article is Published by Live Writer。<p>如题,1+1+2+3+5+8+13+…?</p>  <p>let sumfib n =    <br />&#160;&#160;&#160; let rec fib x =     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; match x with     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; | 1 -> 1     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; | 2 -> 1     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; | x -> fib(x-2)+fib(x-1)&#160;&#160;&#160; <br />&#160;&#160;&#160; let rec addfib x =     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; match x with     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; | 1 -> 1     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; | x -> fib (x)+ addfib (x-1)&#160;&#160;&#160; <br />&#160;&#160;&#160; addfib n</p>  <p><strong><font color="#808040">cool!</font></strong></p>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/FSharp-20100811-257.html]]></link><pubdate><![CDATA[2010-8-11 14:01:39]]></pubdate></item><item><title><![CDATA[Isolated Storage in SL4]]></title><description><![CDATA[This Article is Published by Live Writer。<p>在Silverlight4中，默认应用程序存储配额是1MB=1024KB=1048576Bytes，可以在SL程序的右键菜单点击查看，如下图1：</p>  <p><img src="http://www.dongpad.com/userfiles/image/Silverlight4IsolatedStorage.PNG" /> </p>  <p>如果要申请配额，可以在构造里检查存储配额然后执行一下代码，但要考虑到用户可能阻止该请求：</p>  <p>using (var store = IsolatedStorageFile.GetUserStoreForApplication())    <br />{     <br />&#160;&#160;&#160; Int64 IsoQuota = store.Quota; //<font color="#ff0000"><strong>单位为bytes</strong></font>     <br />&#160;&#160;&#160; Int64 requestIsoQuota = 1000;     <br />&#160;&#160;&#160; if (store.IncreaseQuotaTo(IsoQuota +requestIsoQuota )) //<font color="#ff0000">增加到指定大小</font>     <br />&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160; //……     <br />&#160;&#160;&#160; }     <br />}</p>  <p>执行上述代码将自动提示用户"是否要增加可用存储"，结果如下图2：</p>  <p><img src="http://www.dongpad.com/userfiles/image/Silverlight4IsolatedStorageRequest.PNG" /> </p>  <p>为了保持默认的1MB默认存储，我们选择“否”以便于后面的测试，如果选择了“是”也没关系，我们可以在应用程序存储选项页中选择该程序删除网站对应的存储使其重新初始化到1MB。在上述代码中，我们请求增加的配额为1000bytes，但是提示请求的大小依然是默认的配额1MB，这里Silverlight是如何显示申请存储配额时请求的大小的呢？</p>  <p>经测试发现，Silverlight对请求的大小采用了<font color="#ff0000">小数点保留一位四舍五入</font>的策略，上图的请求的大小实际上就是上述代码中(IsoQuota +requestIsoQuota)除以(1MB*1024*1024)四舍五入保留一位小数的结果。在默认配额情况下，如果请求的配额requestIsoQuota 小于0.05MB=52428.8bytes=52429时，提示请求到的存储大小的小数位将被忽略，但这并不影响实际的存储配额，提示请求的大小依然是1.0MB，如果requestIsoQuota大于或等于0.05MB=52428.8bytes（requestIsoQuota类型为Int64，即requestIsoQuota最小为52429时提示请求大小为1.1MB）将提示请求大小为1.1MB。这里我们可以来验证一下，将requestIsoQuota的值更改为52428，提示请求的大小为1.0M，选择“是”对其进行增加可用存储，然后将requestIsoQuota的值更改为1，这时候的提示是请求的大小为1.1M，这也就从侧面反映了显示出来的请求的大小并不影响实际的存储配额，虽然他们可能是不一致的。</p>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20100719-256.html]]></link><pubdate><![CDATA[2010-7-19 12:13:46]]></pubdate></item><item><title><![CDATA[Difference between DataContext and ItemsSource in ]]></title><description><![CDATA[<p><font color="#ff0000">DataContext is a general (dependency) property of all descendants of FrameworkElement. Is is inherited through the logical tree from parent to children and can be used as an implicit source for DataBinding. It does not do anything by itself, you must basically databind to it.</font></p>]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20100626-255.html]]></link><pubdate><![CDATA[2010-6-26 15:04:17]]></pubdate></item><item><title><![CDATA[F# Type Tips]]></title><description><![CDATA[<p>F#有强大的类型推理（type inference），所以在F#中不需要我们显示指定参数类型。如 <font color="#ff0000"><strong>let add p1 p2 = p1+p2;;</strong></font> 这样我们就定义了接收两个int类型参数返回int类型的一个add函数：<font color="#ff0000"><strong>val add : int -> int –> int</strong></font>，这个推理过程是由f#编译器完成的。</p>  <p>因为F#不使用隐式类型转换,所以如果我们对add传入float类型参数，如：add 100.0 200.0，编译将产生如下错误：</p>  <p><strong><font color="#de96a0">stdin(46,5): error FS0001: This expression has type float but is here used with type int</font></strong></p>  <p>因此这里需要显示指定参数的类型，方式如：<font color="#ff0000"><strong>let add2 (p1:float)&#160; p2 = p1+p2;;</strong></font> 这样编译器推理出add2函数接受两个float类型参数并返回float类型：<font color="#ff0000"><strong>val add2 : float -> float -> float</strong></font>。虽然在这里没有显示指定add2的p2参数类型，但是因为显示指定了F#的第一个参数为float类型,p2自然也就被推理为float类型了。因此如果有不同类型的参数，应该为这些参数都显示指定类型，add3接受一个float和一个int类型参数，并返回两个参数的连接形式string：<strong><font color="#ff0000">let add3 (p1:float) (p2:int)=(string p1)+(string p2)</font></strong>，编译器编译结果为：<font color="#ff0000"><strong>val add3 : float -> int -> string</strong></font>，在这里要注意的就是(string p1)，它的意思是对p1进行强制转换。</p>  <p>积硅步以至千里。</p><br />
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/FSharp-20100624-254.html]]></link><pubdate><![CDATA[2010-6-24 12:51:43]]></pubdate></item><item><title><![CDATA[我正在看的书籍]]></title><description><![CDATA[<p><strong>1.Foundations of F#<inside man> </strong>    <table cellspacing="0" cellpadding="0" width="752" border="0"><tbody>       <tr>         <td valign="top" width="197"><img height="261" alt="我正在看的电视剧" src="http://www.dongpad.com/UserFiles/Image/foundationsOfFSharp_cover.jpg" width="180" border="0" /></td>          <td valign="top" width="553">Functional programming (FP) is the future of .NET programming, and F# is much more than just an FP language. Every professional .NET programmer needs to learn about FP, and theres no better way to do it than by learning F#and no easier way to learn F# than from <i>Foundations of F#</i>.             <p>If youre already familiar with FP, youll find F# the language youve always dreamed of. And all .NET programmers will find F# an exciting real-world alternative to C# and Visual Basic. This book is likely to have many imitators, but few true competitors. Written by F# evangelist Rob Pickering, and tech reviewed by F#s main designer, Don Syme, this is an elegant, comprehensive introduction to all aspects of the language and an incisive guide to using F# for real-world professional development. F# is the future of programming (not just on .NET), and the future is now.</p>         </td>       </tr>     </tbody></table> </p>  <p>这本书09年夏就开始在看了，后来一度荒废，继而直到上周参加<a href="http://blog.zhaojie.me/2010/06/first-snda-dotnet-conference-all-slides.html" target="_blank">盛大创新院赞助首届.NET技术交流会</a>听了老赵的《F#语言对异步程序设计的支持》，才又激起我对F#探索的兴趣来。也希望籍此机会，好好的熟悉一下F#。</p><br />
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/LStudy-20100623-253.html]]></link><pubdate><![CDATA[2010-6-23 13:04:05]]></pubdate></item><item><title><![CDATA[F#之打印函数占位符详解]]></title><description><![CDATA[<p>打印函数主要有三个：<font color="#ff0000"><strong>printf、printfn和sprintf。</strong></font></p>  <p>printf将参数打印到控制台窗口中。printfn将参数打印输出并且换行。</p>  <p>打印函数可以使用下面这些格式指示符：</p>  <p><img src="http://www.dongpad.com/UserFiles/Image/fsharp_printf_indicators.png" />&#160;</p>  <blockquote>   <p>%O格式指示符会将对象进行装箱操作，并调用Object.ToString函数。%A的运作方式相同，但是在调用Object.ToString之前会检查[<StructuredFormatDisplay>]属性指定的任何特殊打印选项。</p>    <p>PS: 紧接着的是来自官方的解释,从侧面说明了 printfn "%O" false (结果为<font color="#ff0000"><strong>False</strong></font>)与 printfn "%A" false(结果为<font color="#ff0000"><strong>false</strong></font>)的区别</p>    <p><font color="#ff0000"><strong>%O 设置通过将对象装箱并使用其 ToString 方法来打印的任何值的格式。</strong></font></p>    <p><font color="#ff0000"><strong>%A 设置使用默认布局设置打印的任何值的格式。</strong></font></p> </blockquote>  <p>sprintf用于输出的目标为一个字符串的情况。</p>  <p>节选自:<a href="http://www.cnitblog.com/cc682/archive/2010/05/24/66297.html" target="_blank">CC682</a>,更多格式请参考<a href="http://msdn.microsoft.com/zh-cn/library/ee370560.aspx" target="_blank">官方Core.Printf的%[flags][width][.precision][type]详解</a></p><br />
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/FSharp-20100623-252.html]]></link><pubdate><![CDATA[2010-6-23 13:05:18]]></pubdate></item><item><title><![CDATA[Sequence Diagram RE, LINQ, and Lambdas]]></title><description><![CDATA[<a href="http://blogs.msdn.com/camerons/archive/2010/05/08/sequence-diagram-re-linq-and-lambdas.aspx" target="_blank">from:Skinner's Blog</a></p>  <p><font color="#8000ff" size="1">本文主要介绍了VS2010特性之Sequence Diagram Reverse Engineering对LINQ和Lambdas的扩展</font></p>  <p>The Sequence Diagram Reverse Engineering feature available in Visual Studio 2010 allows you to create a UML 2.1 “like” diagram that represents your source code. I say “like” in the previous sentence because we use all the notation prescribed by the UML standard, but there are a few instances where we add some notation that is not found in the standard. Support for LINQ and Lambda expressions are examples of where we have extended the Combined Fragment notation to include what we have dubbed a “Deferred Call”.</p>  <p>Here’s a simple console application that I’ll use to show what I mean.</p> <font color="#ff8000">略……</font>]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20100509-251.html]]></link><pubdate><![CDATA[2010-5-9 23:47:39]]></pubdate></item><item><title><![CDATA[C#编译器(csc.exe)搜索Dll的顺序]]></title><description><![CDATA[This Article is Published by Live Writer。<table border="1" cellspacing="0" cellpadding="0" width="400"><tbody>     <tr>       <td valign="top" width="400">         <p><font color="#ff0000">@CLR via C#2.0 P32</font>            <br />1.工作目录</p>          <p>2.编译器本身目录(PS:根据全局CSC.rsp文件的配置)</p>          <p>3./lib开关指定的目录</p>          <p>4.Lib环境变量指向的工作目录</p>       </td>     </tr>   </tbody></table>  <p>现在，我们来做了一下尝试,在非编译器目录创建如下两个测试类，并对C1编译:</p>  <p>//C1.cs&#160; @cmd prompt: <font color="#ff0000">csc /t:library C1.cs</font></p>  <p>public class C1    <br />{     <br />public string Name{get;set;}     <br />public int Age{get;set;}     <br />}</p>  <p>//Program.cs&#160;&#160; @cmd prompt: <font color="#ff0000">csc /r:C1.dll&#160; Program.cs</font></p>  <p>using System;    <br />public class Program     <br />{     <br />static void Main()     <br />{     <br />C1 c1 = new C1{Name="Jack"};     <br />Console.WriteLine(string.Format("c1's name is {0}",c1.Name));     <br />Console.ReadKey();     <br />}     <br />}</p>  <p>1.编译Program时，由于我们指定的非绝对路径，所以搜索到Program的当前工作目录即结束，我们亦可尝试将C1.Dll剪切到其他工作目录，并指定完整路径进行编译。</p>  <p><strike>2.将C1.dll剪切到csc工作目录C:\Windows\Microsoft.NET\Framework\v3.5(视具体环境而定)，编译不通过，</strike><font color="#ff0000">what r u doing?</font></p>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20100506-250.html]]></link><pubdate><![CDATA[2010-5-6 23:22:44]]></pubdate></item><item><title><![CDATA[面向对象诠释图]]></title><description><![CDATA[This Article is Published by Live Writer。<p><img border="0" alt="" src="http://images.cnblogs.com/cnblogs_com/tyl2008/OOP.jpg" width="512" height="418" /></p>  <p><a href="http://www.cnblogs.com/tyl2008/archive/2010/05/06/1729027.html" target="_blank">from Tyl2008</a></p>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20100506-249.html]]></link><pubdate><![CDATA[2010-5-6 22:25:54]]></pubdate></item><item><title><![CDATA[about GFW]]></title><description><![CDATA[<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNzIxNzg3NDI2NzEmcHQ9MTI3MjE3ODc1OTE1NiZwPTIzNDQ3MSZkPSZnPTQmbz1lZTMyNTUzMjg5NTM*NjllOTg3/MGNlYmI5ZGYzOTc5NCZvZj*w.gif" /><embed width="440" height="420" type="application/x-shockwave-flash" src="http://v5.tinypic.com/player.swf?file=2lml4px&s=5" FlashVars="gig_lt=1272178742671&gig_pt=1272178759156&gig_g=4"></embed><br><font size="1"><a href="http://tinypic.com/player.php?v=2lml4px&s=5">Original Video</a>- More videos at <a href="http://tinypic.com">TinyPic</a></font>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/Life-20100425-248.html]]></link><pubdate><![CDATA[2010-4-25 15:11:29]]></pubdate></item><item><title><![CDATA[无法将 匿名方法 转换为类型“System.Delegate”,因为它不是委托类型]]></title><description><![CDATA[The problem the user is seeing is that the Thread ctor accepts a specific delegate -- the ThreadStart delegate.  The C# compiler will check and make sure your anonymous method matches the signature of the ThreadStart delegate and, if so, produces the proper code under-the-covers to create the ThreadStart delegate for you.<br />
But Control.Invoke is typed as accepting a "Delegate".  This means it can accept any delegate-derived type.  The example above shows an anonymous method that has a void return type and takes no parameters.  It's possible to have a number of delegate-derived types that match that signature (such as MethodInvoker and ThreadStart -- just as an example).  Which specific delegate should the C# compiler use?  There's no way for it to infer the exact delegate type so the compiler complains with an error.<br />
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/CSharp-20100401-246.html]]></link><pubdate><![CDATA[2010-4-1 18:01:58]]></pubdate></item><item><title><![CDATA[（推荐)VS2010最新AD-想做你的code]]></title><description><![CDATA[<embed src="http://player.youku.com/player.php/sid/XMTYwMjk0ODA0/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>
]]></description><author><![CDATA[Jack]]></author><link><![CDATA[http://www.dongpad.com/Life-20100326-245.html]]></link><pubdate><![CDATA[2010-3-26 18:24:44]]></pubdate></item></channel></rss>
