摘要: 这两天做项目时,我负责设计一个模板页。UI人员做的静态页面没有问题,但是我转换为.aspx的格式就发现css,javascipt已经失效。后面经过同事帮忙才知道,css/javascipt应该用utf-8格式保存就ok了 阅读全文
posted @ 2007-04-30 08:25 似水流年-johnhuo 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 前两天我的rose突然不能使用了。点击rose.exe会提示rose.exe不能找到入口,程序不能定位到license.dll的警告。我非常的郁闷,我开始以为是破解文件的问题,就又重新破解了一遍关于rational rose的破解可以参考我的另一篇文章http://blog.csdn.net/hliq5399/archive/2007/04/25/1583795.aspx可是还是不行。我就怀疑是windows的系统更新搞的,于是我郁闷的还原了系统,可是,rose正常使用了几天后,再次出现了相同的问题,而且这个时候,我一直关闭了系统更新。我真有点晕。于是我就把license.dll从common 阅读全文
posted @ 2007-04-30 08:15 似水流年-johnhuo 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 该错误的详细提示信息为:回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证。出于安全目的,此功能验证回发或回调事件的参数是否来源于最初呈现这些事件的服务器控件。目前为止遇到的出现情况有两种:一是Form嵌套,一个页面只能有一个Form,仔细检查代码就可以解决。二是在下拉菜单中使用ajax,常见于省市联动菜单,可能是由于在aspx页面赋给了下拉菜单初始Item值, 阅读全文
posted @ 2007-04-29 14:30 似水流年-johnhuo 阅读(103) 评论(0) 推荐(0) 编辑
摘要: // binarySearch.java// demonstrates recursive binary search// to run this program: C>java BinarySearchApp////////////////////////////////////////////////////////////////class ordArray { private long[] a; // ref to array a private int nElems; // number of data items //----------------------------- 阅读全文
posted @ 2007-04-26 16:54 似水流年-johnhuo 阅读(313) 评论(0) 推荐(0) 编辑
摘要: // stack.java// demonstrates stacks// to run this program: C>java StackApp////////////////////////////////////////////////////////////////class StackX { private int maxSize; // size of stack array private long[] stackArray; private int top; // top of stack//--------------------------------------- 阅读全文
posted @ 2007-04-26 16:51 似水流年-johnhuo 阅读(279) 评论(0) 推荐(0) 编辑
摘要: // bubbleSort.java// demonstrates bubble sort// to run this program: C>java BubbleSortApp////////////////////////////////////////////////////////////////class ArrayBub { private long[] a; // ref to array a private int nElems; // number of data items//---------------------------------------------- 阅读全文
posted @ 2007-04-26 16:45 似水流年-johnhuo 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 快速排序算法void quicksort (sqlist r, int s, int t){ int i=s, j=t; if (s<t) do { r[0] =r[s]; /*r[0]暂存选出的数据*/ while( j>1 && r[j].key >=r[0].key) j--; if (i<j) { r[i]=r[j]; i++; } 快速排序算法续 while (i<j && r[i].key <=r[0].key) i++; if (i<j) { r[j]=r[i]; j--; } }while (i<j 阅读全文
posted @ 2007-04-26 16:18 似水流年-johnhuo 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 简单选择排序算法void selectsort (sqlist r, int n){ int i, j, min; for (i=1;i<=n-1;i++) { min=i; /*用min指出每一趟在无序区范围内的最小元素*/ 简单选择排序算法续 for (j=i+1;j<=n-1;j++) if (r[j].key < r[min].key) min=j; r[0] = r[i]; /* r[0]用于暂时存放元素*/ r[i] = r[min]; r[min] =r[0]; }} 阅读全文
posted @ 2007-04-26 16:16 似水流年-johnhuo 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 一、简介 NUnit是一款堪与JUnit齐名的开源的回归测试框架,供.net开发人员做单元测试之用,可以从www.nunit.org网站上免费获得,最新版本2.2.6。NUnit 2.2.6有5个下载文件,这里用的是NUnit-2.2.6-net-2.0.msi。下载后双击该文件,然后按提示进行安装,这样系统中就具备NUnit环境了。二、配置类库 开发工具我使用的是微软的Visual Studio.net 2005(以下简称vs),打开后点击菜单“文件”->“新建项目”,打开“新建项目”对话框:在该对话框中,“项目类型”我选择的是“Visual Basic”,如果想使用C#或者J#,请自 阅读全文
posted @ 2007-04-25 17:32 似水流年-johnhuo 阅读(1511) 评论(0) 推荐(1) 编辑
摘要: 下午从3点钟就开始下载rose,用了一个多小时的时间下载完毕,安装吧,不错,顺利安装完毕! 然后"开始"-“程序”-“rationgal software”-“Rational Rose Enterprise Edition”,开始出现“ratonal rose”界面,以为就此搞定,不过“啪“谈出一个对话框“MEN-BAD-POINTER”!下面是我记录的下载安装及破解所查看的一些网站和资料: rational rose下载: http://down.phpv.net/soft/1068.htm rational rose解压密码: d3d3LnBocHYubmV0 rational rose 阅读全文
posted @ 2007-04-25 10:17 似水流年-johnhuo 阅读(512) 评论(0) 推荐(0) 编辑