上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: /Files/tewuapple/MvvmTutorial.rarhttp://blog.csdn.net/ktei2008/article/details/6400851 阅读全文
posted @ 2012-08-08 11:27 特务小强 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 需求:客户的数据同时存在在另外一个不可控的系统中,需要和当前系统同步。思路:自动登录另外一个系统,然后抓取数据,同步到本系统中。技术点:模拟用户登录;保存登录状态;抓取数据1 ///<summary>2///visitthetargeturl3///</summary>4///<paramname="targetURL"></param>5///<paramname="cc">thisisforkeepingcookiesandsessions</param>6///<para 阅读全文
posted @ 2012-07-05 13:35 特务小强 阅读(919) 评论(0) 推荐(0) 编辑
摘要: C#使用Socket获取网页源代码的代码,需要的朋友可以参考下源码下载:/Files/tewuapple/SocketGrab.rar缺点:不能抓取ajax网页 阅读全文
posted @ 2012-07-05 11:17 特务小强 阅读(688) 评论(0) 推荐(0) 编辑
摘要: create/alter procedure <SP Name>/*---------------------------------------------------------------------------DESCRIPTION:This procedure will get the list of users.AUTHOR: DATE:PARAMETERS:Parameter 1: Description of parameter1 Parameter 2: Description of parameter2RETURN VALUE:AFFECTED TABLES:T 阅读全文
posted @ 2012-07-05 09:25 特务小强 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 2013-4-20:我把老版本的代码重构了一下,新版本赋值问题已完全解决,并且提供很多api给调用。推荐大家升级到最新版本。下载地址:http://tewuapple.github.io/WinHtmlEditor/ 为雅安祈祷! 最新版截图(优化前景色和背景色用户体验并且增强表格修改功能) 快捷键 阅读全文
posted @ 2012-06-30 11:47 特务小强 阅读(17284) 评论(65) 推荐(8) 编辑
摘要: 1、Regex.Matches(s,@"[A-Za-z0-9][A-Za-z0-9'\-.]*").Count (英文单词连词算一个单词)Regex.Matches(s,@"[A-Za-z0-9][A-Za-z0-9\-.]*").Count (英文单词连词不算一个单词)2、string[]str=FilterHtml(content).Split("~!@#$%^&*()_+-=`|\\:\"?><;',./".ToCharArray());inti=0;foreach(stringsi 阅读全文
posted @ 2012-06-30 11:46 特务小强 阅读(3388) 评论(1) 推荐(0) 编辑
摘要: View Code 1 #include<stdio.h> 2 3 #include<string.h> 4 5 #include<stdlib.h> 6 7 8 9 10 void PrintString(char *p,char *In_num) 11 12 { 13 14 int i=0; 15 16 int lenth; 17 18 if(strlen(p)<4) 19 20 puts(In_num); 21 22 else 23 24 { 25 26 lenth=s... 阅读全文
posted @ 2012-06-05 20:03 特务小强 阅读(792) 评论(0) 推荐(0) 编辑
摘要: 前两天写程序的时候,一不小心引发了Heap Corruption,但是只是找出了引起问题的代码,并写进行了修正,没有时间去深入的探索一番,在博客上写了篇随笔,有些朋友留了些评论,让我颇感惭愧,这样一个问题为何不去深入探索一番呢,不能让它继续作为一个模糊的概念存在我的脑子里了,故而今天研究了一下,有些收获,拿出来分享。 首先说明一下什么是Heap Corruption。当输入超出了预分配的空间大小,就会覆盖该空间之后的一段存储区域,这就叫Heap Corruption。这通常也被用作黑客攻击的一种手段,因为如果在该空间之后的那段存储区域如果是比较重要的数据,就可以利用Heap Corru... 阅读全文
posted @ 2012-06-05 17:06 特务小强 阅读(343) 评论(2) 推荐(1) 编辑
摘要: View Code 1 /// <summary> 2 /// 输入一个整数数组,调整数组中数字的顺序,使得所有的奇数位于数组的前半部分。 3 /// </summary> 4 /// <param name="arr">数组</param> 5 /// <param name="n">数组长度</param> 6 static void patition(ref int[] arr, int n) 7 { 8 if (n == 0 || n == 1) ret... 阅读全文
posted @ 2012-04-24 14:25 特务小强 阅读(1864) 评论(0) 推荐(0) 编辑
摘要: --只适合局域网内运行,如果连接国外的Ftp服务器这个脚本稳定性还有待改进@echo offecho.set data=%date:~8,2%%date:~5,2%%date:~0,4%echo open IP地址 >ftp.txtecho 用户名>>ftp.txtecho 密码>>ftp.txtecho binary>>ftp.txtecho cd \>>ftp.txtecho lcd D:\temp>>ftp.txtecho prompt>>ftp.txtecho mget *-%data%-*.txt.gz & 阅读全文
posted @ 2012-02-28 09:40 特务小强 阅读(1505) 评论(0) 推荐(1) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页