五年

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  209 随笔 :: 2 文章 :: 176 评论 :: 7 引用

2012年1月7日 #

摘要: 关于试题分析报告中命题难度和区分度计算的有关说明1、命题的难度:难度是指试题与试卷难易程度的指标。(1)客观性试题的难度计算:通常用通过率来衡量。P=R/N×100%(P为通过率,R为答对或通过该题目的人,N为全体考生数)(2)主观性试题的难度计算:P=X/W×100%(P为通过率,X为被试在某一试题上的平均分,W为该题的满分)(3)整个试卷的难度计算:试卷的难度是指一份试卷的总体难易程度,其由试卷中每道题的难度决定。其计算办法为:将每道题目的难度与满分值相乘的积相加,然后将其总和除以试卷的满分值,所得的商即为整个试卷的难度。2、命题的区分度:区分都是指测验试题对考生实际水阅读全文
posted @ 2012-01-07 18:59 五年 阅读(6) 评论(0) 编辑

摘要: http://pinvoke.net阅读全文
posted @ 2012-01-07 18:56 五年 阅读(3) 评论(0) 编辑

2012年1月1日 #

摘要: 新浪http://code.google.com/p/oauth-dot-net/http://www.cnblogs.com/mainz/archive/2010/12/01/1893718.htmlhttp://www.cnblogs.com/prolifes/articles/2263033.htmlhttp://www.cnblogs.com/shiningrise/archive/2012/01/01/2309725.htmlQQ:http://qqconnect.codeplex.com/https://github.com/shiningrise/dotnetopenid阅读全文
posted @ 2012-01-01 23:59 五年 阅读(22) 评论(0) 编辑

2011年12月21日 #

摘要: USE [ASPNETDB]GO/****** 对象: Table [dbo].[Log] 脚本日期: 12/21/2011 22:41:53 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOSET ANSI_PADDING ONGOCREATE TABLE [dbo].[Log]( [ID] [int] IDENTITY(1,1) NOT NULL, [Date] [datetime] NOT NULL, [Thread] [varchar](100) COLLATE Chinese_PRC_CI_AS NULL, [Level...阅读全文
posted @ 2011-12-21 22:28 五年 阅读(15) 评论(0) 编辑

2011年12月17日 #

摘要: /**************************************************************************** * 功能说明: * 1、使用 HttpModel与现有基于共享登录信息( Cookie )的网站进行集成 * 2、用户自动登录,自动注册,,延时注册, * 3、同步退出 * * 使用方法: * 见示例web.config * * 设计编码:shiningrise@gmail.com * **********************************************************************...阅读全文
posted @ 2011-12-17 18:52 五年 阅读(25) 评论(0) 编辑

2011年12月13日 #

摘要: 被dwz ajax折腾了一天,终于能用了,@using (Html.BeginForm("Edit", "XuenianXueqi", FormMethod.Post, new { onsubmit = "return validateCallback(this, dialogAjaxDone)" })) ,return不能少,不然不能激发ajax函数submit与onsubmit发生顺序:onsubmit -> submit1.阻止表单提单:<script>function submitFun(){//逻辑判断re阅读全文
posted @ 2011-12-13 21:34 五年 阅读(35) 评论(0) 编辑

2011年12月9日 #

摘要: 开源日志组件ELMAHhttp://www.hake.cc/a/biancheng/net/2011/0913/12436.htmlhttp://code.google.com/p/elmah/阅读全文
posted @ 2011-12-09 23:26 五年 阅读(27) 评论(0) 编辑

posted @ 2011-12-09 23:16 五年 阅读(7) 评论(0) 编辑

2011年12月6日 #

摘要: http://blog.csdn.net/guoxubin2005/article/details/4154095一个用于整体移动文件夹的方法,简练实用: public static void CopyDirectory(string sourceDirName, string destDirName) { if (!Directory.Exists(destDirName)) { Directory.CreateDirectory(destDirName); File.SetAttributes(destDirName, File.GetAttributes(sourceDirName));阅读全文
posted @ 2011-12-06 19:41 五年 阅读(10) 评论(0) 编辑

摘要: MSDN上一段关于使用FileSystemWatch类的例子,今天写的一个功能使用到监视文件系统的应用,看到这段代码,很有启发,留作纪念。代码如下:Public Class Watcher{ public static void Main() { Run(); } [PermissionSet(SecurityAction.Demand, Name="FullTrust")] public static void Run() { string[] args = System.Environment.GetCommandLineArgs(); // If a director阅读全文
posted @ 2011-12-06 19:29 五年 阅读(9) 评论(0) 编辑

摘要: 梁利锋(840097) 11:37:08dbentry有自己的mvc,所以没做asp.net mvc的支持。你们可以自己定制一个updateModel,很简单的,不会超过20行代码。晓阳(12189135) 11:37:54用反射吧梁利锋(840097) 11:39:15赋值语句:foreach (var field in ctx.Info.SimpleMembers){ var value = HttpContextHandler.Instance[field.Name]; if (!value.IsNullOrEmpty()) { field.SetValue(obj, ClassHelp阅读全文
posted @ 2011-12-06 11:45 五年 阅读(16) 评论(0) 编辑

2011年11月29日 #

摘要: 公共表:aspnetdb->membership,role,.....用户表:用户名,昵称,真实姓名。tel,qq,mobile,email,用户类别用户类别:教师学生家长贵宾校友网友学年学期班级年级段备课级组处室教师相关表:任课授课阅读全文
posted @ 2011-11-29 19:47 五年 阅读(12) 评论(0) 编辑

2011年11月12日 #

摘要: DataSet,DataTable复制DataTable sourceTable;DataTable objectTable;DatatDataRow sourceRow;DatatDataRow objectRow;DataRow tempRow;DataSet souceDataSet = new DataSet();复制DataSetDataSet object = souceDataSet.Copy();//深复制DataSet object = souceDataSet.Clone();//浅复制,只复制架构复制DataTableobjectTable = sourceTable .阅读全文
posted @ 2011-11-12 12:40 五年 阅读(18) 评论(0) 编辑

2011年11月7日 #

摘要: 返回值:jQuerylive(type, [data], fn)概述jQuery 给所有匹配的元素附加一个事件处理函数,即使这个元素是以后再添加进来的也有效。这个方法是基本是的 .bind() 方法的一个变体。使用 .bind() 时,选择器匹配的元素会附加一个事件处理函数,而以后再添加的元素则不会有。为此需要再使用一次 .bind() 才行。比如说<body> <div class="clickme">Click here</div></body>可以给这个元素绑定一个简单的click事件:$('.clickme&#阅读全文
posted @ 2011-11-07 01:05 五年 阅读(30) 评论(0) 编辑

2011年11月6日 #

摘要: 今天在软件实施的过程中碰到一个问题:ScriptX,smsx打印控件无法打印,也无法安装。后来发现是优化大师或者360把它给禁止了,从而导致这个插件无法加载,进而无法打印。 现总结解决方案如下: 1、 解压smsx.cab控件安装包,打开文件scriptx.inf 2、找到MCScript.dll的clsid 为{1663ed61-23eb-11d2-b92f-008048fdd814} 3、运行注册表找到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility 4、搜索{1663ed61-23e阅读全文
posted @ 2011-11-06 22:45 五年 阅读(36) 评论(0) 编辑

2011年11月3日 #

摘要: jquery table 的添加和删除<script language="javascript" src="./jquery.js"></script><table border="1px #ooo" id="test" name="test" class="test" cellpadding="0" cellspacing="0" width="20%"><tr id=&q阅读全文
posted @ 2011-11-03 21:40 五年 阅读(35) 评论(0) 编辑

摘要: http://mvcmusicstore.codeplex.com/阅读全文
posted @ 2011-11-03 14:10 五年 阅读(18) 评论(0) 编辑

摘要: #region 得到一周的周一和周日的日期 /// <summary> /// 计算本周的周一日期 /// </summary> /// <returns></returns> public static DateTime GetMondayDate() { return GetMondayDate(DateTime.Now); } /// <summary> /// 计算本周周日的日期 /// </summary> /// <returns></returns> public static Dat阅读全文
posted @ 2011-11-03 13:34 五年 阅读(19) 评论(0) 编辑

2011年9月22日 #

摘要: 我要投稿阅读全文
posted @ 2011-09-22 15:41 五年 阅读(25) 评论(0) 编辑

2011年6月16日 #

摘要: 农村义务教育经费保障机制改革校长应知应会卡(二OO八年八月)1.国家给学校的钱有哪些?答:主要有四大项:一是按照教师人头核发的教师工资,二是按学生人数和定额标准核拨的公用经费,2008年,省定最低生均公用经费定额标准为小学每生每年300元,初中每生每年450元;三是按项目核给的校舍建设和维修改造经费,四是按困难学生人数核定的家庭经济困难学生免住宿费经费和爱心营养餐经费。2.学校应如何要钱?答:编预算。学校日常运转和事业发展所需的钱都要纳入预算,根据预算,向当地教育、财政等政府部门要。3.学校应如何花钱?答:按批准的预算花。一是专款专用,公用经费不能用于发放教师津补贴,不能用于偿还学校债务,用于阅读全文
posted @ 2011-06-16 07:42 五年 阅读(53) 评论(0) 编辑

2011年6月3日 #

摘要: 程序运行图片程序与源码下载地址:http://www.wz16.com/download/%E6%8B%9B%E7%94%9F%E7%BD%91%E4%B8%8A%E6%8A%A5%E5%90%8D%E7%A8%8B%E5%BA%8F/%E7%BD%91%E4%B8%8A%E6%8B%9B%E7%94%9F%E6%8A%A5%E5%90%8D%E7%B3%BB%E7%BB%9FV1.0/阅读全文
posted @ 2011-06-03 11:22 五年 阅读(66) 评论(0) 编辑

2011年6月1日 #

摘要: <script type="text/javascript">// $(document).ready(function () {// var allInputs = $(":input");// var formChildren = $("form > *");// $("#messages").text("Found " + allInputs.length + " inputs and the form has " +// formChildren.l阅读全文
posted @ 2011-06-01 01:42 五年 阅读(48) 评论(0) 编辑

2011年5月31日 #

摘要: 晓阳(12189135) 9:30:24 Lephone.Core.Logging.DtsFileLogRecorder 如何将日记存放在指定的目录 梁利锋(840097) 9:44:54 <add key="LogFileName" value="c:\test.log" /> 晓阳(12189135) 9:45:42 这只能指定文件啊 晓阳(12189135) 9:46:19 最好是指定目录,,, 晓阳(12189135) 9:46:33 都放一个文件里面,,感觉不大好,,, 梁利锋(840097) 9:46:45 public stat阅读全文
posted @ 2011-05-31 12:56 五年 阅读(32) 评论(0) 编辑

2011年5月30日 #

posted @ 2011-05-30 19:21 五年 阅读(27) 评论(0) 编辑

2011年5月16日 #

摘要: http://yubanzhi779.blog.163.com/blog/static/30519166200938105938466/使用 StateServer 保存 SessionPost by roydux, 2008-4-23, Views:89 正常操作情况下Session会无故丢失。因为程序是在不停的被操作,排除Session超时的可能。另外,Session超时时间被设定成60分钟,不会这么快就超时的。 这次到CSDN上搜了一下帖子,发现好多人在讨论这个问题,然后我又google了一下,发现微软网站上也有类似的内容。 现在我就把原因和解决办法写出来。 原因: 由于Asp.net程阅读全文
posted @ 2011-05-16 21:04 五年 阅读(51) 评论(0) 编辑

摘要: 一、系统与框架1、RedGlovePermission(BS权限管理系统框架) http://redglovepermission.codeplex.com/ http://www.redglove.net/download.htm2、Supesoft权限管理系统(FrameWork) 1.0.9 Release http://framework.supesoft.com/3、吉日嘎拉 走火入魔C#.NET通用权限管理系统组件 http://www.cnblogs.com/jirigala/4、Permission Bas http://sourceforge.net/projects/per阅读全文
posted @ 2011-05-16 19:30 五年 阅读(178) 评论(0) 编辑

2011年4月15日 #

摘要: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b41c728e-9b4f-4331-a1a8-537d16c6acdf&displaylang=en阅读全文
posted @ 2011-04-15 10:12 五年 阅读(49) 评论(0) 编辑

2011年4月2日 #

摘要: http://smark.codeplex.com/mark C# Library :Smark.Core SVN:https://smark.svn.codeplex.com/svn/Smark/Smark.Core/Smark.Data SVN:https://smark.svn.codeplex.com/svn/Smark/Smark.Data/Smark.Data/Smark.Service SVN:https://smark.svn.codeplex.com/svn/Smark/Smark.Service/Smark.Web SVN:https://smark.svn.codeple阅读全文
posted @ 2011-04-02 00:31 五年 阅读(44) 评论(0) 编辑

摘要: http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html阅读全文
posted @ 2011-04-02 00:06 五年 阅读(14) 评论(0) 编辑

2011年4月1日 #

摘要: http://paranimage.com/15-code-generator/15款代码生成器, 从弱智的色彩渐变代码生成器, 到CSS生成器, 再到适合开发人员的.NET代码生成器.Cssronnd– 在线生成css圆角代码,可以设置圆角半径、包含文字、圆角颜色、背景颜色、文字颜色以及宽度。支持代码下载(其中包括4个圆角图片)。CSSTXT– 在线生成css文字代码,可以设置粗体、下划线、上划线、斜体、大写、文字大小、边框、颜色等参数。Markup-generator- 一个简捷的Xhtml/CSS代码生成器。如果厌倦了枯燥的框架代码写作,尤其是最开始的切片工作。那 Markup Gene阅读全文
posted @ 2011-04-01 23:55 五年 阅读(111) 评论(0) 编辑

2011年3月22日 #

posted @ 2011-03-22 22:03 五年 阅读(56) 评论(0) 编辑

2011年3月10日 #

摘要: http://anony3721.blog.163.com/blog/static/5119742010728102932277/1、什么是ArrayListArrayList就是传说中的动态数组,用MSDN中的说法,就是Array的复杂版本,它提供了如下一些好处:动态的增加和减少元素;实现了ICollection和IList接口;灵活的设置数组的大小。2、如何使用ArrayList最简单的例子:ArrayListList=newArrayList();for(inti=0;i<10;i++)//给数组增加10个Int元素 List.Add(i);//..程序做一些处理List.Remo阅读全文
posted @ 2011-03-10 22:49 五年 阅读(609) 评论(0) 编辑

2011年3月9日 #

摘要: private void button1_Click(object sender, EventArgs e) { // this.bindingSource1.DataSource = Bmk.FindAll(); this.bindingSource1.DataSource = OleDbHelper.ExecuteDataTable(Conn.AccessConnection, @"select * from bmk order by bmxh "); this.dataGridView1.DataSource = bindingSource1; this.label1阅读全文
posted @ 2011-03-09 22:31 五年 阅读(21) 评论(0) 编辑

摘要: System.Data.SQLite .net4.0You have to add a section to your .config file to be able to load the 2.0 assembly in 4.0. I won't have a 4.0-built assembly out for a bit yet.<?xml version="1.0" encoding="utf-8" ?><configuration> <startup useLegacyV2RuntimeActivation阅读全文
posted @ 2011-03-09 22:16 五年 阅读(291) 评论(0) 编辑

摘要: stringstrSql="insertintotest_table"+"(zdsxh,zdsbm,mc,fzrbh,bxrbh,bxrq,sjfrom,sjto)values"+"(@zdsxh,@zdsbm,@mc,@fzrbh,@bxrbh,@bxrq,@sjfrom,@sjto)";将strSql替换成stringstrSql="insertintotest_table"+"(zdsxh,zdsbm,mc,fzrbh,bxrbh,bxrq,sjfrom,sjto)values"+&quo阅读全文
posted @ 2011-03-09 15:57 五年 阅读(71) 评论(0) 编辑

摘要: http://blog.sina.com.cn/s/blog_54b576bb0100anku.html在使用access数据时,经常使用string strSql="insert table_name(col1,col2,...,coln) values(@col1,@col2,...,@coln)";来向数据库插入数据,写法居然是有毛病的,参照msdn,应该改为string strSql="insert table_name(col1,col2,...,coln) values(?,?,...,?)";来自msdn的解释:如果 CommandType阅读全文
posted @ 2011-03-09 00:16 五年 阅读(53) 评论(0) 编辑

2011年3月8日 #

摘要: public static DataSet UpdateRows(string connectionString, string queryString, string tableName){ DataSet dataSet = new DataSet(); using (OleDbConnection connection = new OleDbConnection(connectionString)) { OleDbDataAdapter adapter = new OleDbDataAdapter(); adapter.SelectCommand = new OleDbCommand(q阅读全文
posted @ 2011-03-08 21:13 五年 阅读(44) 评论(0) 编辑

摘要: OleDbCommandBuilder 使用方法===================================public Boolean DoDB(){MyConnection.Open(); //打开数据库,请参考前面文章的内容MyCommand.Connection = MyConnection; //设置Command,请参考前面文章的内容MyCommand. CommandText = “select * from admin”; //设置Command,参考前面文章的内容OleDbDataAdapter MyDataAdapter = new OleDbDataAdapte阅读全文
posted @ 2011-03-08 21:11 五年 阅读(49) 评论(0) 编辑

摘要: http://www.leadbbs.com/MINI/Default.asp?205-2758725-0-0-0-0-0-a-.htmusing System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.OleDb;using System.Web;namespace DAL{ public class db { /// <summary> /// 获得连接对象 /// </summary> /// <returns></阅读全文
posted @ 2011-03-08 15:03 五年 阅读(40) 评论(0) 编辑

摘要: http://hi.baidu.com/tuberose1605/blog/item/501ee319cae4f973dbb4bd32.html//****************************应用 Demo ***************************/// <summary>/// 更新指定图层类型/// </summary>/// <param name="TypeID">图层类型编号</param>/// <param name="TypeName">图层类型名称&l阅读全文
posted @ 2011-03-08 14:41 五年 阅读(70) 评论(0) 编辑