摘要: 无意中在国外论坛发现一个gif动画类,我使用它来制作了一个动态验证码 ;一:首先新建一个类库 1:新建AnimatedGifEncoder类 using System;using System.Collections.Generic;using System.Drawing;using System.IO;using System.Linq;using System.Text;namespace Common.Gif{ #region Java /** * Class AnimatedGifEncoder - Encodes a GIF file consisting of o... 阅读全文
posted @ 2013-07-21 14:36 SpeakHero 阅读(7426) 评论(27) 推荐(17) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 6 namespace Client 7 { 8 /// 9 /// 文件切割与合并 10 /// 11 public class FilePartitions 12 { 13 #region const params 14 private const Int32 DefaultMaxEdges = 5 * 10... 阅读全文
posted @ 2013-07-10 20:16 SpeakHero 阅读(523) 评论(0) 推荐(0) 编辑
摘要: Adobe 公司放弃移动平台的 Flash 支持已经是板上钉钉的事了,GooglePlay 的 Flash 插件也会在 8 月份下架,这在一定程度上也会促进 HTML5 的发展和普及,因此我个人还是对 Adobe 的做法十分赞赏的。当然,仍然有不少不明真相的用户对失去 Flash 伤心不已。之所以说“不明真相”,因为用户自然是不了解软件行业的技术更迭。对于普遍使用第 4 代 HTML 技术组织网页的时代,Flash 的出现着实丰富了用户的体验,让人眼前一亮。Web 前段开发者需要把 Flash 嵌入 HTML 代码中,而编写 Flash 时则是另一套语法代码,这是不协调、也是不便于维护的。加之 阅读全文
posted @ 2013-07-10 19:49 SpeakHero 阅读(2924) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 1 2 3 4 5 $.fn.extend({ Jselect:function(){ var me=$(this); var li=me.find("li"); var span=me.find("span"); var hidden=me.find("input[type=hidden]"); me.hover(function(){li.show(); span.css({backgroundPosition:"-77px -143px"})},function(){li.hide(); sp.. 阅读全文
posted @ 2013-07-07 00:41 SpeakHero 阅读(1479) 评论(0) 推荐(0) 编辑
摘要: 今天vs抽风,调试网站出现下图那样:然后我开始百度搜索 "无法连接到visual studio开发服务器" 出现很多文章:打开一篇问题,看了里面的内容, 那个解决办法也不是最好的办法,然后又自己探索,把IE 重置,防火墙重置,依然没有解决 ,到这个时候心里很冒火........., 在这里停顿了出门去解决晚饭,花了一个小时回来继续解决问题, 东弄西弄,我发现防火墙的设置有问题,我鼠标选择的哪项没有打上勾, 看图:到这里我就怀疑是是不是这个的问题, 我连忙打开勾测试,哈哈 这个时候我鸡动了,问题解决了 阅读全文
posted @ 2012-04-25 21:36 SpeakHero 阅读(7895) 评论(2) 推荐(1) 编辑
摘要: ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "cmd.exe"; startInfo.Arguments = "/c C:\\Windows\\System32\\cmd.exe"; startInfo.RedirectStandardInput = true; startInfo.RedirectStandardOutput = true; ... 阅读全文
posted @ 2012-04-10 09:14 SpeakHero 阅读(5484) 评论(0) 推荐(0) 编辑
摘要: 方法一: //须添加对System.Web的引用 using System.Web.Security; ... /// <summary> /// SHA1加密字符串 /// </summary> /// <param name="source">源字符串</param> /// <returns>加密后的字符串</returns> public string SHA1(string source) { return FormsAuthentication.HashPassword... 阅读全文
posted @ 2012-04-09 10:52 SpeakHero 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 本来想偷懒,在网络找验证码类,可是没找到自己需要的;有点伤心,看了一下别人写的,然后开始花了一个多小时解决问题, 放在这里 给我和不懂的盆友们查看备用 主要就以代码解释为主了,楼主语文重来不及格, 看codeView Code 1 using System; 2 using System.Drawing; 3 using System.Drawing.Drawing2D; 4 using System.Drawing.Imaging; 5 using System.IO; 6 7 namespace Tools 8 { 9 public class CheakCo... 阅读全文
posted @ 2012-04-06 19:42 SpeakHero 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 平时的项目很少会涉及这个问题,一般数据表结构建立以后,就基本固定了,大部分增长的都是行数据。但是当系统在某种情况下需要不断动态的增加表的时候,就会涉及到一个数据库最多可以有多少张表格。一般这种情况会出现在集团系统或者一些需要将根据需求自动建立表。数据库对象包含了表,视图,存储过程,自定义函数,触发器,规则,默认值,以及约束等。请问有谁知道 sqlserver 能容忍多少 对象(表)我找MSDN 没咋找到 阅读全文
posted @ 2012-04-03 21:23 SpeakHero 阅读(974) 评论(1) 推荐(0) 编辑
摘要: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var DI= document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var DI= document.getElemen 阅读全文
posted @ 2012-02-26 17:54 SpeakHero 阅读(167) 评论(0) 推荐(0) 编辑