- 博客(318)
- 资源 (1)
- 收藏
- 关注
原创 NetGear stora 重置成功后,个人文件夹丢失的找回办法
网件的stora真是奇葩。MyStora.com域名国内被屏蔽,官方两年多不作为,逼得我买了极路由来实现翻墙。成功重置激活后个人文件夹又找不到了,查了论坛发现是中文文件夹名字和默认的英文冲突了,上面说按照第一次选择的语言进行重装和激活就可以解决(我实际操作中运气不好,几次重刷都没解决掉。也不用问官方售后了,他们只会说让你把主机邮寄过去,他们帮你激活,邮费自理。)查阅大量资料后,今天终于下定
2014-09-20 17:54:03
2055
原创 为tiff文件创建tfw文件
找到的链接:http://duff.ess.washington.edu/data/raster/drg/tfw.htmlhttp://lists.osgeo.org/pipermail/mapserver-users/2005-May/007915.html简单翻译如下:tiff文件有两种方式保存对应的extent信息。一种是集成在tag里(仅适用geotiff格
2012-04-09 10:47:14
3589
转载 UTM投影正转算法实现 UTM to Decimal Degree
<br />不用proj4来实现的方法。有点复杂,借用的网上的一个资料。<br /> <br />如下是稍微改动过的c#版本<br /> <br />private void LLtoUTM(double a, double f, double Lat, double Long, double LongOrigin, double FN, out double UTMNorthing, out double UTMEasting)<br /> { <br />
2011-01-18 15:55:00
2058
原创 一个等值线项目相关资料
<br />http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/18/aft/4784/afv/topic/Default.aspx<br />IDW插值算法<br /> <br />http://topic.youkuaiyun.com/u/20071212/14/40f2d89f-6e20-4e64-a44a-0463d395b03f.html<br />三次Hermit样条插值算法<br />我把它转成c#的了,但是效果不是很好<br />
2010-12-31 03:48:00
1283
转载 将颜色值转变成int型 循环获取一张图片每个像素的颜色值
public static int ToArgb(this Color color) { int argb = color.A argb += color.R argb += color.G argb += color.B; return argb;}其实color自带了这个方法System.Drawing.Color color = image.GetPixel(row, column);int colorValue = color.ToArgb();
2010-12-23 01:00:00
1210
转载 如何在string.Format方法中输出大括号({})
<br />在string.Format参数中,大括号{}是有特殊意义的符号,但是如果我们希望最终的结果中包含大括号({}),那么我们需要怎么做呢?是”/{”吗?很遗憾,运行时,会给你一个Exception的!正确的写法是{{和}}。对,double {{ 或}}即可输出{或}.<br />DEMO:<br />static void Main(string[] args)<br />{<br /> Console.WriteLine(string.Format("Para: {{{0}}}", "a
2010-12-23 00:58:00
2416
原创 用webbrowser做的网站登陆程序,如何获取cookie并且保存在程序中 (IE8有效)
今天帮朋友做了个工具,用webbrowser做的,用户使用用户名密码登陆淘宝后,需要在后台下载和分析一些页面。分析页面使用的是htmlparser .net版里面唯一需要解决的问题是,登陆后的cookie在webbrowser上,使用HttpWebRequest无法保存其状态。因为中间有几个cookie值是httponly的。上网查询到使用InternetGetCookieEx函数可以在ie8中读出httponly的值然后,解决方法如下:这段代码可以获取登陆后的cookie [DllImport("wini
2010-12-19 05:17:00
10416
转载 dotnet .net 3.5 cannot install succeed solution
<br />http://social.msdn.microsoft.com/Forums/en-ZA/netfxsetup/thread/831d8f82-0be5-42b7-a890-cfa539c9dc67<br /><br />http://www.google.com/search?hl=en&newwindow=1&q=+DepCheck+indicates+Microsoft+.NET+Framework+2.0a+is+not+installed.&aq=f&aqi=&aql=&oq=<br
2010-10-26 01:48:00
876
原创 产品有两个全局的异常,可是因为代码量太大没办法找到,记录一些辅助分析办法看之后能否解决问题
1. 系统自带 Performance 工具, 开始-》运行-》Perfmon增加一个计数器(counter),选择.NET CLR Exceptions,然后选择两个All可以看到_global_在程序每次运行的时候加2,对比空的web程序,确定我们的控件里有两个exceptions2. Minidump(对当前问题无效) 从http://forums.asp.net/t/1284738.aspx看到可以借助minidump分析,然后在http://blog.163.com/lili1362@126/bl
2010-10-13 02:39:00
917
转载 asp.net IIS session丢失 session Key丢失
<br /> <br />http://www.yesky.com/imagesnew/software/asp/innerobject/session/intr12d0.htm<br />http://hi.baidu.com/djiz/blog/item/addcd61be69806f2af5133ae.html<br />http://bbs.dg.gd.cn/bview.asp?BAID=1321A3A50502E4WU2BA30SCT<br /> <br />SessionState 的Timeo
2010-10-12 15:04:00
5967
1
转载 C#生成随机数
http://www.cnblogs.com/derry68/archive/2010/09/15/1826711.html随机数的使用很普遍,可用它随机显示图片,用它防止无聊的人在论坛灌水还可以用来加密信息等等。本文讨论如何在一段数字区间内随机生成若干个互不相同的随机数,比如在从1到20间随机生成6个互不相同的整数,并通过此文介绍Visual c#中随机数的用法。.net.Frameword中提供了一个专门产生随机数的类System.Random,此类默认情况下已被导入,编程过程中可以直接使用
2010-10-12 01:13:00
1709
转载 Set session expired time in IIS and asp.net C# asp.net IIS 在web.config和IIS中设置Session过期时间
有时候在web.config设置sessionState 或者类文件里设置Session.Timeout,在IIS里访问时每次都是达不到时间就超时,原因是因为在IIS中设置了Session的超时时间,IIS里设置Session方法为: <br />在IIS里面右键点击默认网站->主目录->应用程序设置里点配置->选项->启用会话状态->会话超时那里设置时间 <br /><br />再web.config中设置Session过期时间方法: <br />C#代码 <system.web> <sess
2010-10-10 13:03:00
939
原创 sessionState for solve ie share session
<br />http://msdn.microsoft.com/zh-cn/library/h6bb9cz9(VS.80).aspx<br /> <br />http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8.aspx<br /> <br /> <br /> <br /><br /> <br /><br /><system.web><br /><br
2010-10-10 12:33:00
714
转载 How to set third-party cookies with iframe
<br />http://viralpatel.net/blogs/2008/12/how-to-set-third-party-cookies-with-iframe.html<br /> How to set third-party cookies with iframe?<br />I had problem with the lead base ad click tracking. I was using the iFrame to track the lead information from t
2010-10-09 11:36:00
985
转载 loading a web page using c# (optional use of cookies) - 后台载入网页
http://blog.bitlinkit.com/post/loading-a-web-page-using-c.aspxThis code shows how you can load a web page using c#<br /> make sure to include using System.Net; string url = "http://www.bitlinkit.com"; HttpWebRequest wRequest = (HttpWebRequest)We
2010-10-08 13:49:00
875
转载 网页编程相关工具 压力测试等
原地址:http://www.softwareqatest.com/qatweb1.htmlWeb Site Test Tools and Site Management Tools <br />More than 480 tools listed in 13 categories <br />Organization of Web Test Tools Listing - this tools listing has been loosely organized into the following ca
2010-10-08 13:32:00
6274
原创 解决 ScriptManager.RegisterStartupScript 和 ScriptManager.RegisterClientScriptBlock 在 ascx 自定义控件中 不工作的问题
<br /> <br />例子:<br /> <br />在单页面中该代码工作正常,从后台逻辑让前台弹出一个窗口<br /> <br />ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
2010-09-18 02:30:00
2688
转载 异步 HttpContext.Current实现取值的方法 解决异步该值为空
<br />http://www.jb51.net/article/19206.htm<br />http://magicliao1975.spaces.live.com/blog/cns!82AD6DB8C4845D8!284.entry<br /> <br /> <br />在一个项目中,为了系统执行效率更快,把一个经常用到的数据库表通过dataset放到Application中,发现httpContext.Current为null的异常,后来在网上查了好多资料,发现问这个问题的人多,回答的少<br /
2010-09-15 04:15:00
1482
转载 HttpApplication Class and the ASP.NET Application Object
<br />http://www.eggheadcafe.com/articles/20030211.asp<br /> <br />HttpApplication Class and the ASP.NET Application Object<br />By Peter A. Bromberg, Ph.D.<br />Printer - Friendly Version <br /><br /> The ASP.NET HttpApplication class hides a number of
2010-09-15 04:13:00
922
转载 AssemblyResolve Event and VJSharpCodeProvider
<br />http://blogs.msdn.com/b/pfedev/archive/2007/11/13/assemblyresolve-event-and-vjsharpcodeprovider.aspx<br /> <br />This one kept me up late the other night. We had an issue where ASP.NET was recompiling a page and we were getting an exception:<br />Sy
2010-09-09 01:53:00
871
原创 Winista.HTMLParser .net中的HTMLParser 解析html页面
开源版官方页面http://www.netomatix.com/Products/DocumentManagement/HTMLParserNet.aspx注册登陆后也没下载成功(它的页面貌似有点小问题),最后还是在csdn下载频道找到的dll和source代码相关代码和介绍http://blog.youkuaiyun.com/zhuzhao/archive/2010/02/11/5306839.aspxhttp://www.cnblogs.com/doll-net/archive/2007/06/29/800396.
2010-09-08 21:10:00
6995
原创 向Webbrowser控件中直接写入HTML内容的几种方法
用Webbrowser中写入HTML内容的几种方法2008-12-11 22:11<br />用Webbrowser中写入HTML内容的几种方法 <br /><br />首先在Form_Load中加入 <br /><br />WebBrowser1.Navigate "about:blank" <br /><br />确保Webbrowser1可用 <br /><br /><br />方法1: <br /><br />Dim s As String <br />Dim stream As IStream <
2010-09-08 21:08:00
2356
原创 WPF如何禁用最小化按钮
<br />使用默认的样式设置,只能设置禁用最大化,无法设置禁用最小化。最终还是发现,需要用到api函数。只是不知道在win7下面工作情况如何。<br /> <br /> <br /><br /> <br /><br /> <br /><br /> <br /><br /><br /><br /><br /><br /><br /> <br /> <br /> <br /><br /><br /> <br />http://stackoverflow.com/questions/339620/how-do-
2010-06-28 17:09:00
1813
原创 打开Word出错--恢复我的工作安全模式运行
<br />打开Word出错--恢复我的工作安全模式运行<br /><br />打开Word时出现“恢复我的工作并重启Microsoft Office Word”。打开Word时出现“恢复我的工作并重启Microsoft Office Word”的错误提示。选此项,点”不发送“按钮,Word关闭;选中此项,再点“不发送”,出现了一个对话框,提示信息意思是word上次启动失败,word这次要以安全模式启动来解决启动中的错误,问是否使用安全模式启动。若选择是,Word则进入安全模式。<br />这种错误
2010-06-08 17:07:00
1480
转载 jquery如何判断checkbox(复选框)是否被选中
谁都知道 在html 如果一个复选框被选中 是 checked="checked"。但是我们如果用jquery alert($("#id").attr("checked")) 会提示您是true而不是checked所以很多朋友判断 if($("#id").attr("checked")=="true") 这个是错误的,其实应该是 if($("#id").attr("checked")==
2010-05-01 05:11:00
817
1
转载 javascript中数组元素删除
var arr=[a,b,c]; 若要删除其中的b,有两种方法: 1.delete方法:delete arr[1] 这种方式数组长度不变,此时arr[1]变为undefined了,但是也有好处原来数组的索引也保持不变,此时要遍历数组元素可以才用 for(index in arr) document.write(arr[+inde
2010-05-01 05:09:00
833
转载 asp.net中,从后台动态生成div
http://topic.youkuaiyun.com/t/20061229/16/5264791.htmlhttp://hi.baidu.com/zkzkzkzk168/blog/item/2eaad66d3924c3fc42169448.htmlhttp://bbs.blueidea.com/thread-2853008-1-1.html
2010-04-22 02:30:00
2792
转载 GridView DataGrid 数据分组 asp.net silverlight
asp.nethttp://topic.youkuaiyun.com/t/20060818/14/4959087.htmlhttp://www.agrinei.com/gridviewhelper/gridviewhelper_en.htmhttp://dotnet.aspx.cc/ShowDetail.aspx?id=149E5DD7-3B32-461e-ACC6-51D1652E6746h
2010-04-22 02:26:00
1195
转载 jquery解析xml
http://www.080909.com/wordpress/2008/10/%e7%94%a8jquery%e8%a7%a3%e6%9e%90xml/http://blog.youkuaiyun.com/futurezwl/archive/2009/03/21/4011771.aspxhttp://blog.youkuaiyun.com/jiangyu912/archive/2009/09/08/453258
2010-04-21 20:35:00
934
转载 The WPF Tab Control - Inside and Out
urls:http://www.switchonthecode.com/tutorials/the-wpf-tab-control-inside-and-outhttp://www.c-sharpcorner.com/uploadfile/prathore/tabcontrol01292009003152am/tabcontrol.aspxThe WPF Tab Control - I
2010-04-02 03:52:00
1141
转载 特价机票攻略
总有人说“特价机票买不到”?总有人抱怨“为什么你能买到,而我买不到”?唉,所以吐血把我多年的经验总结成“超强攻略”!希望,这个十一,你能抢到“特价机票”! “七星大法”:1、一般160座的飞机,特价机票只有30张。所以搜到特价票的时候,最好你和你老婆在不同的IP上一起订,总能抢到一张;2、因为每天航空公司的运价管理员6点下班,所以你6点01分来Qunar,肯定能抢到特价票——为什么?——因为他
2010-03-29 21:17:00
2838
转载 Create a Login Window in WPF
http://weblogs.asp.net/psheriff/archive/2009/10/27/create-a-login-window-in-wpf.aspx Most business applications require some sort of security system. You can always use Windows Authentication t
2010-03-27 02:07:00
3649
转载 salt盐度与用户密码加密机制
http://www.ciker.net/ciker/ciker.asp?ciker=338 摘要:1 加Salt散列2 ASP.NET 2.0 Membership中与密码散列有关的代码声明:本文所罗列之源代码均通过Reflector取自.NET Framework类库,引用这些代码仅出于学习和研究的目的。其实,对密码进行散列存储不是一个新鲜话题了,解决起来也不是很难,但很多人还是不大了
2010-03-13 03:57:00
9165
1
转载 很多朋友都不买社保而要现金,这是不对的。今儿为大家讲解下五险一金的缴纳及使用方式
http://www.028town.com/thread-992619-1-1.html 养老保险:单位每个月为你缴纳21%,你自己缴纳8%; 医疗保险:单位每个月为你缴纳9%,你自己缴纳2%外加10块钱的大病统筹(大病统筹主要管住院这块); 失业保险:单位每个月为你缴纳2%,你自己缴纳1%; 工伤保险:单位每个月为你缴纳0.5%,你自己一分钱
2010-03-09 14:33:00
5780
9
原创 一个奇怪的因为升级.net framework导致的TFS(TFC)不能在vs2008里正常工作的问题的解决过程
现象:报的错误信息千奇百怪,反正就是卸载了高版本的.net framework后,VS不能新建也不能打开项目了。无法正常工作 准备的文件1. 准备好.net framework 3.5 和3.5 sp1 (在4.0beta出来前)2. 准备好vs 2008, TFS (TFC for vs2008) (或者 vs2008 sp1 如果你想要安)解决步骤1. 用工具卸载所有的.net f
2010-03-08 03:28:00
1278
转载 Tools for remove .net framework
http://support.microsoft.com/kb/290301http://blogs.msdn.com/astebner/pages/8904493.aspx .NET Framework Cleanup Tool Users GuideIntroductionThis .NET Framework cleanup tool is desig
2010-03-05 02:32:00
1648
2
转载 服务器之怪事 CS0006错误
http://www.cnblogs.com/ziri1330/archive/2009/05/18/1459528.html最近公司在忙着把数据搬移到新的服务器。把旧的服务器所有的数据打包,上传到新的服务器(新服务器是新装的2003操作系统),配置IIS,配置目录权限,绑定域名。打开网站。。。。。。哇,出现如下错误:" CS0006: Metadata file C:/WI
2010-03-04 23:01:00
597
转载 WPF use Enter-to-Tab in WPF
http://madprops.org/blog/enter-to-tab-in-wpf/Enter-to-Tab in WPFLike many users of line-of-business applications, my own users just cant understand the Tab key. For them, pressing Enter on the
2010-02-03 15:09:00
784
转载 t sql 读出每组的前n个
http://topic.youkuaiyun.com/u/20100113/17/b52a1ef4-54a8-4333-8119-a161869c1eef.html ----------------------------------- Author: liangCK 小梁-- Title : 查每个分组前N条记录-- Date : 2008-11-13 17:19:23----------
2010-01-22 13:19:00
937
转载 C++ Open(call, launch, start, execute) another(external) program(application) C++打开另一个程序
http://www.2jpeg.com/help/application.htmhttp://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspxhttp://www.codeguru.com/forum/archive/index.php/t-280114.html 1. New projectVisual C
2010-01-19 15:18:00
524
1
Microsoft Single Instance Detection Sample (WPF)
2009-11-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人