07 2012 档案

谷歌Host
摘要:https://smarthosts.googlecode.com/svn/trunk/hostsC:\WINDOWS\system32\drivers\etc 复制,黏贴到 hosts里面就行 https://addons.mozilla.org/en-US/firefox/addon/video-sniffer/ 视频采集 找到实际的swf文件地址http://code.google.com/p/webvideosniffer/ 阅读全文

posted @ 2012-07-17 14:34 雨渐渐 阅读(73) 评论(0) 推荐(0) 编辑

c# 读取json 写json 序列化与反序列化 .net 4.0
摘要:class Program { static void Main(string[] args) { Serialize(); Deserialize(); Console.ReadLine(); } static void Deserialize() { String str = "{\"Age\":20,\"Name\":\"张三\"}"; DataContractJsonSerializer json =... 阅读全文

posted @ 2012-07-15 20:23 雨渐渐 阅读(1133) 评论(0) 推荐(0) 编辑

用cookie模拟登陆
摘要:request.Headers["Cookie"] = "Cookie";手工登陆一下,然后获取cookie,然后如上所示放到app.config中 读取到reques.Headers["cookie"]=your cookie如何获取cookie?firebug里可以找到文件头,从文件头里找到cookie获取cookie的代码(未测试)using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runti 阅读全文

posted @ 2012-07-09 15:18 雨渐渐 阅读(751) 评论(0) 推荐(0) 编辑

HtmlToText,Html保存段落格式为文本 java版
摘要:/* * Created on 2004-5-11 * */package com.bitmechanic.spindle;/** TextHtml * * 23.10.2001 MAP Initial release * 24.01.2002 MAP Method "text2html()". * Check for the ordinal value of char before addressing * "symbolicCode" array. Non ISO8859-1 ch... 阅读全文

posted @ 2012-07-09 13:32 雨渐渐 阅读(768) 评论(0) 推荐(0) 编辑

HtmlToText c#
摘要:原页面:http://www.oschina.net/code/snippet_54100_3800www.chilkatsoft.com/refdoc/cshtmltotextref.htmlusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;namespace Olympic{ /// <summary> /// Converts HTML to plain text. /// </summary> class HtmlT 阅读全文

posted @ 2012-07-09 13:30 雨渐渐 阅读(311) 评论(0) 推荐(0) 编辑

数据绑定的时候隐藏字段
摘要:class Field { [System.ComponentModel.Browsable(false)] public int ID { get; set; } public String ChinName { get; set; } public Boolean Selected { get; set; } [System.ComponentModel.Browsable(false)] public String NodeText { get; set; } } 阅读全文

posted @ 2012-07-05 11:20 雨渐渐 阅读(132) 评论(0) 推荐(0) 编辑

log4net 共享访问一个log文件的方法
摘要:想在winform界面里直接加一个分析日志的模块,结果日志文件不共享,临时方法是:生成临时文件,然后删除 String filepathSource=@"D:\log\log_1\log.txt"; String filepath = @"D:\log\log_1\log_tmp.txt"; File.Copy(filepathSource, filepath); String text = File.ReadAllText(filepath, Encoding.GetEncoding("gbk")); ... 阅读全文

posted @ 2012-07-03 15:54 雨渐渐 阅读(301) 评论(0) 推荐(0) 编辑

导航