摘要: Palindrome Pairs Given a list of unique words. Find all pairs of indices (i, j) in the given list, so that the concatenation of the two words, i.e. wo 阅读全文
posted @ 2016-03-12 15:50 立志不当渣渣的小渣 阅读(398) 评论(0) 推荐(0) 编辑
摘要: You are given an array x of n positive numbers. You start at point x[0] metres to the north, then x[2] metres to the south, x[3] metres to the east an 阅读全文
posted @ 2016-03-09 13:33 立志不当渣渣的小渣 阅读(286) 评论(1) 推荐(0) 编辑
摘要: 今日から、Leecode100+大挑戦が始まる。 とても下手ですから、大変な! 阅读全文
posted @ 2016-03-08 22:49 立志不当渣渣的小渣 阅读(100) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/east520/archive/2011/05/31/windowsphone7.html 阅读全文
posted @ 2014-08-08 20:43 立志不当渣渣的小渣 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 如果用db.Accounts.Add() db.A ccounts.Remove()诸如此类的方法做的数据更改就不用加db.Entry(account).State=System.Data.EntityState.Modified;这一句把其状态改成修改的,直接加db.SaveChanges(... 阅读全文
posted @ 2014-07-08 20:59 立志不当渣渣的小渣 阅读(172) 评论(0) 推荐(0) 编辑
摘要: JavaScriptSerializer js = new JavaScriptSerializer();return js.Serialize(Result); 阅读全文
posted @ 2014-07-08 18:34 立志不当渣渣的小渣 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 最近在做asp.net mvc 大文件上传,但是每次大文件上传的响应时间都很长,没有提示就给不了用户良好的体验,所以想了想还是必须在文件上传时显示进度条,但是asp.net默认的文件上传管道是无法显示进度条的。所以就必须自己手动创建一个接收管道。实现的方式有2种,一种是写一个类继承IHttpMod... 阅读全文
posted @ 2014-06-27 10:53 立志不当渣渣的小渣 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 1.Server.MapPath("/")//应用程序根目录所在的位置如C:/Inetpub/wwwroot/2.Server.MapPath("./")//表示所在页面的当前目录//注:等价于Server.MapPath("")返回Server.MapPath("")所在页面的//物理文件路径3.... 阅读全文
posted @ 2014-06-26 21:21 立志不当渣渣的小渣 阅读(135) 评论(0) 推荐(0) 编辑
摘要: System.IO.Path.Combine 简单来说,就是合并两个路径字符串。 比如如下调用,Path.Combine(@"C:\11","aa.txt") 返回的字符串路径如后: C:\11\aa.txt这个方法的声明如下: public static string Combine ( stri... 阅读全文
posted @ 2014-06-26 19:24 立志不当渣渣的小渣 阅读(4346) 评论(0) 推荐(0) 编辑
摘要: 利用Asp.net MVC处理文件的上传下载如果你仅仅只有Asp.net Web Forms背景转而学习Asp.net MVC的,我想你的第一个经历或许是那些曾经让你的编程变得愉悦无比的服务端控件都驾鹤西去了.FileUpload就是其中一个,而这个控件的缺席给我们带来一些小问题。这篇文章主要说如何... 阅读全文
posted @ 2014-06-26 19:16 立志不当渣渣的小渣 阅读(117) 评论(0) 推荐(0) 编辑