随笔分类 - C#
摘要:直接上代码,关键点: 133行的敏感词过滤 176行的6位扩展码写入 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI;
阅读全文
摘要:项目需要将音视频文件上传服务器,考虑并发要求高,通过七牛来实现。做了一个简易的压力测试,同时上传多个文件,七牛自己应该有队列处理并发请求,我无论同时提交多少个文件,七牛是批量一个个排队处理了。一个1.5MB的文件,上传时间大概2-3秒,感觉不错。直接上代码using Qiniu.IO;using Q...
阅读全文
摘要:最近有个在线招聘录音的开发需求,需要在招聘网站上让招聘者上传录音和视频。找到两个不错的javascript开源,可以在除了IE以外的浏览器运行。https://github.com/mattdiamond/Recorderjshttps://github.com/muaz-khan/RecordRT...
阅读全文
摘要:在网上找了很多,都只能生成网址,不能生成名片二维码,于是自己动手。第一步,写视图界面,主要代码如下: 名片二维码工具 名片二维码信息 姓...
阅读全文
摘要:UI设计方案:在设计窗体UI之前,先要了解一些主要的接口和帮助类:对于主窗的左侧列表,容器内的Item必须实现ILeftItem的接口,比如联系人、系统消息、群等,接口包含点击事件public interface ILeftItem{ void Click();}项目的最外围容器是MainWind...
阅读全文
摘要:[起因&目标]因为工作原因接触openfire服务端和spark客户端开发,主要是基于openfire扩展开发了针对企业用途的服务器插件,还开发了各个平台上的客户端(Windows\mac\android\ios\linux),详情可搜索微信公众号:CVTalk在开发过程中,发现基于Spark开发J...
阅读全文
摘要:JIRA是一个缺陷跟踪管理系统,被广泛应用于缺陷跟踪、客户服务、需求收集、流程审批、任务跟踪、项目跟踪和敏捷管理等工作领域,当我们需要把第三方业务系统集成进来时,可以调用他的API。JIRA本身的API非常强大,但它是一个底层的API体系,并不是一个易用的接口,如果要开发和拓展,所以需要我们二次包装...
阅读全文
摘要:最近因为要开发大数据量网站,特作比较。Linq to SQL 查询 记录数:399997Linq to SQL 查询 Milliseconds:1910视图查询 记录数:399997视图查询 Milliseconds:3435Entity Framework 查询 记录数:400000Entity Framework 查询 Milliseconds:4049企业库存储过程 to DataReader 记录数:399997企业库存储过程 to DataReader Milliseconds:321企业库存储过程 to DataSet 记录数:399997企业库存储过程 to DataSet Mi
阅读全文
摘要:Server:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Windows.Documents;usingSystem.Windows.Input;usingSystem.Windows.Media;usingSystem.Windows.Media.Imaging;usingSystem.Wi.
阅读全文
摘要:Silverlight中动态数据验证和动态自动计算的Reflection反射实现上周在博客园发了个首页随笔,因为被误认为是广告而被移出首页,这次发首页,特地备足了技术材料,结合FreeForm实际的开发情况,从技术上分析在Silverlight中实现动态数据验证和自动计算的方法。我们知道在.Net ...
阅读全文
摘要:New Document FreeForm表单控件使用方法FreeForm控件一览 FreeForm表单引擎与InfoPath Service对比InfoPath是微软SharePoint下的极重要的表单服务,其客户端Ofiice InfoPath发布于2007年。FreeForm是昕友软件自主知识产权的XML Web表单引擎。现在我们来对比FreeForm和InfoPath的区别。 InfoPa...
阅读全文
摘要:如何编写Silverlight动画效果控件 作为开发人员我一直存在2个问题,相信很多人也有这样的问题: 1、懒惰,为了实现一些Silverlight特殊效果要写烦乱的XAML语句,这太可怕了; 2、因为不是设计人员,很难做出一些非常美观的界面 于是,我就写了EffectControls控件集,目的是用最短的时间和最短的代码实现很酷的控件效果。开放源码,欢迎您的使用和改进,如果有好玩的特效,请一定要通知我。 在线演示地址 http://crmwin.com/EffectControlsTestPage.html 源代码下载: Open Source Web Address: http://Ef.
阅读全文
摘要:EffectControls EffectControls是免费开源的Silverlight特效动画界面控件。EffectControls是在开发FreeForm表单设计器(FreeForm Silverlight Form Designer)时开发的效果控件,我作为开发人员一直存在2个问题:1、懒...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Xml.Linq;using System.Reflection;using System.Xml;using
阅读全文
摘要://第一步,取得每行匹配的 行记录标题 //可以是一个,也可以是组合,比如 车型+排量 //**重要!必须定义 string rowTitle = "车型,排量"; string[] rowTitles = rowTitle.Split(','); //第二步,取得 行记录值 **重要!必须定义 List<string> rowKeys = new List<string>...
阅读全文
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System.Web.UI;usin
阅读全文
摘要:是某类型: if (this.FindName(ControlName).GetType() == typeof(LabelIMG)) { }具有某接口: if (this.FindName(ControlName).GetType().GetInterface("IControl",true) == typeof(IControl)) { }
阅读全文
摘要:using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.Media;using Sys...
阅读全文
摘要:using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.Media;using Sys...
阅读全文
摘要:using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.Media;using Sys...
阅读全文