07 2009 档案

一万个无序数查找两个重复数, 异或查找法
摘要: 今天看到园子里的类似本文标题的文章, 答案中没有使用异或的. 按位异或运算符: ^ 两个相同的数按位异或结果为0 任何数和零按位异或结果为这个数本身 根据按位异或的以上特性, 我们可以为下面这首题目给出一个简便的算法: 有一个长度为10000的数列, 存放着1-10000的自然数, 连续, 不重复, 但数列并不是有序的 现在随机选取1-10000之间的某个自然数, 加入到这个数列中, 要求用简便...阅读全文

posted @ 2009-07-21 23:58 BFL 阅读(494) | 评论 (3) 编辑

[FW]:Javascript的匿名函数
摘要: 原文: Javascript的匿名函数 一、什么是匿名函数? 在Javascript定义一个函数一般有如下三种方式: 函数关键字(function)语句: function fnMethodName(x){alert(x);}函数字面量(Function Literals): var fnMethodName = function(x){alert(x);}Function()构造函数: var...阅读全文

posted @ 2009-07-17 17:40 BFL 阅读(47) | 评论 (0) 编辑

[FW]: A JavaScript Module Pattern
摘要: A JavaScript Module PatternJune 12, 2007 at 12:28 pm by Eric Miraglia | In Development | 97 Comments Eric Miraglia is an engineering manager for the YUI project at Yahoo. Eric has been at Yahoo since ...阅读全文

posted @ 2009-07-17 16:42 BFL 阅读(166) | 评论 (0) 编辑

使用MSBuild自动编译发布你的ASP.NET应用程序
摘要: 此文介绍如何使用MSBuild自动编译并发布你的ASP.NET应用程序. 比较适合每日编译.通常我们都使用IDE(Visual Studio)编译并发布ASP.NET程序, 需要手动操作, 如果步骤繁琐会很容易出错.同样的工作可由MSBuild自动完成, MSBuild是一个Visual Studio编译工具, 随.NET Framework提供, 一般可在 %SystemDrive% \WIND...阅读全文

posted @ 2009-07-15 18:03 BFL 阅读(1267) | 评论 (3) 编辑

SQL Server中TEXT/NTEXT字段内容替换方法总结(SQL 2005及以上建议使用VARCHAR(MAX)/NVARCHAR(MAX)代替)
摘要: [代码]阅读全文

posted @ 2009-07-14 18:30 BFL 阅读(1642) | 评论 (0) 编辑

Creating And Using Identity Columns
摘要: DefinitionAn identity column has a name, initial seed and step. When a row is inserted into a table the column will take the value of the curent seed incremented by the step. Note: An identity column ...阅读全文

posted @ 2009-07-14 18:17 BFL 阅读(194) | 评论 (0) 编辑

[FW]: IE8 中 session 管理的变化
摘要: 原文地址:IE8 中 session 管理的变化 Sessioncookie 被广泛用来做用户身份校验。相比IE7, IE8的Session管理有很大变化,这是Web 开发者需要注意的。IE7中,同一个窗口(IE 进程)共享一个session。IE8中,所有打开的IE窗口(IE 进程)共享一个session。除非,用户通过菜单File > New session打开新窗口,或者使用命令行参...阅读全文

posted @ 2009-07-14 18:11 BFL 阅读(362) | 评论 (0) 编辑

将Visual Studio的字体与颜色设置导入到SQL Server Management Studio
摘要: 很多人喜欢暗色调的编辑器背景, 在长时间面对屏幕时, 暗色调能使你的眼睛不易疲劳.网上有很多人专门设计的色调主题可供下载, 只要导入到Visual Studio(工具/Tools --> 导入导出设置/Import and Export settings)即可使用, 这里有几个我比较喜欢的: VS-Dark-Color-Schemas.rar但是SQL Server的Management S...阅读全文

posted @ 2009-07-14 15:09 BFL 阅读(2121) | 评论 (13) 编辑

从FxCop归纳出来的一些规范建议
摘要: 原文地址:http://msdn.microsoft.com/zh-cn/library/ms228593(VS.80).aspxC# 3.0 版本的规范以及其他信息可以在 http://msdn2.microsoft.com/en-us/vcsharp/aa336745.aspx 获取 从FxCop归纳出来的一些规范建议 下面是根据FxCop整理的.NET代码编写规范,仅供参考。一、 Desig...阅读全文

posted @ 2009-07-14 14:26 BFL 阅读(62) | 评论 (0) 编辑

C# 2.0 里的default关键字
摘要: 我们都知道C系列语言里的default关键字(用在switch语句中), 在C#2.0里扩展了此关键字的用法.你可以通过default(Type)来获取Type的默认值. 这在泛型编程中将非常有用: T t = default(T);[代码]阅读全文

posted @ 2009-07-14 14:26 BFL 阅读(65) | 评论 (0) 编辑

Alternatives to @@IDENTITY in SQL Server 2000
摘要: Alternatives to @@IDENTITY in SQL Server 2000 @WWW_TRANSTAAFL_COM 2006-03-05 -------------------------------------------------------------------------------- 本文详细介绍了SQL Server 2000 中获得刚刚插入的记录的解决方案。 --...阅读全文

posted @ 2009-07-14 14:15 BFL 阅读(126) | 评论 (0) 编辑

IBM-用例建模指南
摘要: 用例建模指南傅纯一, Rational中国区技术销售经理, IBM中国有限公司软件部 2004 年 11 月 01 日原文URL:http://www-128.ibm.com/developerworks/cn/rational/r-usecase-atm/ @ 2006-03-06 用例(Use Case)是一种描述系统需求的方法,使用用例的方法来描述系统需求的过程就是用例建模。用例方法最早是由...阅读全文

posted @ 2009-07-14 14:15 BFL 阅读(34) | 评论 (0) 编辑

ASP.NET-JavaScript辅助类
摘要: 介绍一个ASP.NET向WebPage注册JavaScript脚本的辅助类.在ASP.NET的开发中,Web层开发要实现与用户的交互,常常用到如显示一个警告对话框、删除前弹出确认对话框、打开一个新窗口、关闭当前窗口等等功能。这些功能一般说来要用客户端脚本特别是JavaScript实现。JavaScript中功能性代码大体上可以分为以下几种: 1、确认; 2、警告; 3、关闭窗口; 4、导航; 5、打开模式窗口、非模式窗口、自定义对话框、普通窗口; 6、PopUp; 7、验证输入(指ASP.NET验证控件不能实现的,如验证两个文本框必须输入且只输入一个); 8、MaskEdit(掩码输入); 。阅读全文

posted @ 2009-07-14 14:15 BFL 阅读(85) | 评论 (0) 编辑

成功金句
摘要: 1、正确的思考 先正确的评判自己,才有能力评断他人。你是否欺骗别人,或是自己?想清楚再回答。三思而后行的人,很少会做错事情。企图说服不用大脑的人,是徒劳无功。认为整个世界都错的人,极可能错在自己。 2、行动 观察走在你前面的人,看看他为何领先,学习他的做法。忙碌的人才能把事情做好,呆板的人只会投机取巧。优柔寡断的人,即使做了决定,也不能贯彻到底。善意需要适当的行动表达。 3、相信 相信你做得到,你...阅读全文

posted @ 2009-07-14 14:15 BFL 阅读(12) | 评论 (0) 编辑

HTML Meta
摘要: HTML Meta原文出自太平洋电脑网 http://www.pconline.com.cn@ 2006-04--------------------------------------------------------------------------------- 本文介绍了几个HTML中的Meta标记,做个参考吧。--------------------------------------------------------------------------------- Meta是用来在HTML文档中模拟HTTP协议的响应头报文。 meta 标签用于网页的<head>阅读全文

posted @ 2009-07-14 14:15 BFL 阅读(23) | 评论 (0) 编辑

简单的加密与解密示例
摘要: 对于只有简单加密与解密需要人来说,每次都查找相关技术资料未免麻烦,这里提供一个类,供参考。EncryptCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem;2usingSystem.Security.Cryptography;3usingSystem.IO;4usingSystem.Text;56/**////<summary>7///Helptoprocess数据加密、解密,文件的加密解密8///</阅读全文

posted @ 2009-07-14 14:15 BFL 阅读(89) | 评论 (0) 编辑

[FW] : Calling Cross Domain Web Services in AJAX
摘要: Av rating: Total votes: 89Total comments: 14 CODE DOWNLOADsend to a friendprinter friendly version Calling Cross Domain Web Services in AJAX29 December 2006by Chris UllmanOne of the current vogues in web applications is the creation of mashups. This involves the marrying of content and/or functional阅读全文

posted @ 2009-07-14 13:47 BFL 阅读(354) | 评论 (0) 编辑

[FW]: Using the Try Catch Blocks in Transactions
摘要: The author is Molakalapalli, GopiWith the introduction of the Try/Catch blocks in SQL Server 2005 Transactions can be handled in well-organized fashion like below. This will insure that no open transactions hanging on the server as a result of any exception.Code highlighting produced by Actipro Code阅读全文

posted @ 2009-07-14 13:24 BFL 阅读(140) | 评论 (0) 编辑

[FW]: Compress your script and then Combine Multiple Files for faster Page Load
摘要: With our pages include more and more Ajax functionalities, we need to include multiple javascript files. This may effect our page performance. Here are two utilities that can help us load page faster.阅读全文

posted @ 2009-07-13 14:12 BFL 阅读(181) | 评论 (1) 编辑

http://www.cnblogs.com/BFLForever/