随笔分类 -  TechOther

摘要:摘自:关于大型软件重构的一些想法这里讨论的重构是"为了实现某个功能而专门进行的大规模的代码改动"。 架构设计,你能看的多远 简单一点来说,我们要做的,就是把一个软件的UI代码与核心功能彻底分开,然后把核心部分做成一个单独的产品。当然,这种所谓的表现层与业务层要分 开的道理是谁都懂的,当初的架构里也的确加入了这些概念,但是由于没有严格要求,也从来不会把核心部分单独拿出来跑,经过近十年的开发,代码中核... 阅读全文
posted @ 2010-07-02 01:17 能巴 阅读(238) 评论(0) 推荐(0)
摘要:The Shutdown command is not available on the Start menu to shut down and restart, when you are using Remote Desktop. To shut down a remote computer when you are using Remote Desktop, press CTRL+ALT+EN... 阅读全文
posted @ 2009-07-07 10:41 能巴 阅读(276) 评论(0) 推荐(0)
摘要:转载自:http://blogs.msdn.com/mgrier/archive/2005/06/21/431378.aspx 另一篇:http://www.osronline.com/ddkx/ddtools/dv_8pkj.htm The NT DLL Loader: DLL callouts (DllMain) - DLL_PROCESS_ATTACH deadlocks ... 阅读全文
posted @ 2009-07-05 22:02 能巴 阅读(963) 评论(0) 推荐(0)
摘要:新买的hp笔记本,预装了Red Hat Linux,想换成XP (Ghost还原)。 Problems & Solutions: 1. SATA硬盘的问题。直接在BIOS里,Disable掉了SATA Native Mode。然后,进PE,Ghost还原。 2. 删除干净Linux。第一次接触Linux的安装问题。我首先是用PM直接删除了所有Linux的分区,本来以为就可以直接装xp了。没想到,触... 阅读全文
posted @ 2009-05-01 23:41 能巴 阅读(1491) 评论(0) 推荐(0)
摘要:一句话总结:DllMain函数是dll的entry point。但是,有两种dll可以不用带dllmain函数:一种自然是资源dll;另一种是dll不需要在entry point做什么事情,所以不写了干脆。但是系统在往进程里加载一个dll的时候,一定会去找dllmain的。如果dll本身没有提供,那么会调用一个默认的(应该是CRT的)dllmain函数。 MSDN上的话: DllMain Call... 阅读全文
posted @ 2009-02-19 22:31 能巴 阅读(689) 评论(0) 推荐(0)
摘要:一句话总结:所有各种文件格式(文本,exe,视频,图片),物理上来看,都是二进制文件;逻辑上来讲,由于各自的编码方式不同,加上文本文件的历史悠远,就出现了除了文本文件,其他都统一叫做二进制文件。 同理不同话:"二进制文件"本来就是一种似是而非的叫法。我们知道,存在有种类繁多的不同类型(格式)的文件,如文本文件,视频文件,图像文件,数据库文件....,文件格式的具体定义取决于应用。不同的文件格式的主... 阅读全文
posted @ 2009-02-19 22:02 能巴 阅读(530) 评论(0) 推荐(0)
摘要:[转载自CSDN] 在过去的三个星期里,我拜访了几个公司,谈及了关于编写容易理解的代码的问题。令人惊奇的是,发现几位程序开发者意见很不一致!下面就是他们的几个不同的想法。 1、只要程序运行良好,其他的我不在意。 2、我没有足够的时间去写好的代码。 3、客户看的不是代码,所以只要应用效果达到要求我就满意了。 4、大部分的客户想用最少的钱换来最大的实惠,还要按时交付使用,我能确定的仅仅是程序... 阅读全文
posted @ 2008-11-01 23:17 能巴 阅读(257) 评论(0) 推荐(0)
摘要:要记住,email倾向于一种娱乐,会分散人的注意——如果你只是每隔几小时考虑一下你的email,你将能做更多的事情。 阅读全文
posted @ 2008-10-28 23:27 能巴 阅读(193) 评论(0) 推荐(0)
摘要:DWMAPI.DLL is a vista only dll, but it will be wanted in some cases on non-Vista OS. It seems a MS bug. Haha. “Now that vista is out, can you please fix the MAJOR bug that causes IE7 to kill any n... 阅读全文
posted @ 2008-08-29 17:31 能巴 阅读(692) 评论(0) 推荐(0)
摘要:Wikipedia: http://en.wikipedia.org/wiki/64-bit In computer architecture, 64-bit integers, memory addresses, or other data units are those that are at most 64 bits (8 octets) wide. Also, 64-bit CPU a... 阅读全文
posted @ 2008-05-31 18:41 能巴 阅读(329) 评论(0) 推荐(0)
摘要:x87 is a math-related instruction subset of the Intel x86 family line of processors. It is so called because initially such instructions were processed by an external coprocessor chip with a name endi... 阅读全文
posted @ 2008-05-31 17:24 能巴 阅读(472) 评论(0) 推荐(0)
摘要:[转载自: http://www.it.com.cn/f/diy/058/24/162683.htm] 什么是CPU指令集? CPU作为一台电脑中的核心,它的作用是无法替代的。而CPU本身只是在块硅晶片上所集成的超大规模的集成电路,集成的晶体管数量可达到上亿个,是由非常先进复杂的制造工艺制造出来的,拥有相当高的科技含量。然而如此一颗精密的芯片为什么能够控制一个庞大而复杂的电脑系统呢?这就是C... 阅读全文
posted @ 2008-05-31 17:14 能巴 阅读(981) 评论(0) 推荐(0)
摘要:解决方法如下: 1, `开始`->`Control Panel`->`Regional and Language Options`, `Formats` 标签里的 `Current format` 选择 `Chinese (PRC)`; 2, `Location` 标签里的 `Current location` 选择 `China`; 3, `Administractive` 标签里单击 `Cha... 阅读全文
posted @ 2008-05-15 21:13 能巴 阅读(2332) 评论(2) 推荐(0)
摘要:一,ping 它是用来检查网络是否通畅或者网络连接速度的命令。作为一个生活在网络上的管理员或者黑客来说,ping命令是第一个必须掌握的DOS命令,它所利用的原理是这样的:网络上的机器都有唯一确定的IP地址,我们给目标IP地址发送一个数据包,对方就要返回一个同样大小的数据包,根据返回的数据包我们可以确定目标主机的存在,可以初步判断目标主机的操作系统等。下面就来看看它的一些常用的操作。... 阅读全文
posted @ 2008-05-02 22:11 能巴 阅读(492) 评论(0) 推荐(0)
摘要:[转载自: http://news.csdn.net/n/20080408/115015.html] 篇文章,是从我的《高效开发人员的五个特征》一文中抽出的一个观点。从我自身的事业和习惯中,我考虑了很多方式怎么样才能有效地学习。 1. 要看书。在成千上万的编程图书中,可能很大一部分根本毫无用处。但是仍然有很多图书对你的(编程)能力有很大的提升。我一直坚持,相比在网络上查找很多有用信息,在同类图书... 阅读全文
posted @ 2008-04-20 21:52 能巴 阅读(217) 评论(0) 推荐(0)
摘要:Get it here: http://www.codeproject.com/KB/macros/cpbrowser.aspx 阅读全文
posted @ 2008-04-20 16:51 能巴 阅读(173) 评论(0) 推荐(0)
摘要:§Keep eyes on your actions §Identify the repeated actions §Automate it!!! 阅读全文
posted @ 2008-04-11 17:07 能巴 阅读(167) 评论(0) 推荐(0)
摘要:1. Dont use illegal name like similar naming, _XXX, etc. 2. Using namespace for a project. 3. All switch should have a default statement. 4. Use integer 0 instead of NULL for null pointer. 5. Always t... 阅读全文
posted @ 2008-04-07 00:39 能巴 阅读(163) 评论(0) 推荐(0)
摘要:The KISS principle (acronym for "Keep It Simple, Stupid") states that design simplicity should be a key goal and unnecessary complexity avoided. It serves as a useful principle in a wide array of disc... 阅读全文
posted @ 2008-04-05 01:00 能巴 阅读(259) 评论(0) 推荐(0)
摘要:【转载地址: http://blog.csdn.net/pongba/archive/2007/10/08/1815742.aspx】 引言 错误处理(Error-Handling)这个重要议题从1997年(也许更早)到2004年左右一直是一个被广泛争论的话题,曾在新闻组上、博客上、论坛上引发口水无数(不亚于语言之争),Bjarne Stroustrup、James Gosling、Anders... 阅读全文
posted @ 2008-04-04 23:53 能巴 阅读(622) 评论(0) 推荐(0)