摘要: Accept : application/xml Accept: application/json //如下设置可以支持xml和json格式输出。默认输出格式为json services.AddControllers(configure: setup => { setup.ReturnHttpNot 阅读全文
posted @ 2020-03-06 10:13 Kong, Star 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 问题:在本地转换数字没有问题但是发布到服务器报数据类型转换失败的信息.答案:本地的语言版本和服务器语言版本不一样。在web.config 中添加如下信息即可. --转--Link:http://stackoverflow.com/questions/5275380/input-string-wa... 阅读全文
posted @ 2016-01-22 10:48 Kong, Star 阅读(260) 评论(0) 推荐(0) 编辑
摘要: HDFS的设计目标检测以及快速恢复硬件问题.流式的数据访问.移动计算比移动数据的代价小.简化一致性模型.超大规模数据集异构软硬件平台之间的可移植性.HDFS的结构模型HDFS是一个主从的结构模型.一个HDFS集群是由一个NameNode和若干个DataNode组成.NameNode主节点是主服务器.... 阅读全文
posted @ 2014-05-26 14:43 Kong, Star 阅读(463) 评论(0) 推荐(0) 编辑
摘要: WITH q AS ( SELECT GETDATE() AS datum UNION ALL SELECT datum + 1 FROM q WHERE datum + 1 < GETDATE() + ... 阅读全文
posted @ 2014-05-12 11:00 Kong, Star 阅读(161) 评论(0) 推荐(0) 编辑
摘要: #user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; #log_format main '$rem... 阅读全文
posted @ 2013-03-21 16:38 Kong, Star 阅读(418) 评论(0) 推荐(0) 编辑
摘要: SELECT UPPER(SUBSTRING('aYAME',1,1))+LOWER(SUBSTRING('aYAME',2,( SELECT LEN('aYAME')))) 阅读全文
posted @ 2012-12-06 14:22 Kong, Star 阅读(3083) 评论(0) 推荐(1) 编辑
摘要: ALTER PROCEDURE [dbo].[proc_Distribute_Report] @ParamBillMonth VARCHAR(150)AS BEGIN PRINT @ParamBillMonth DECLARE @sql VARCHAR(MAX) SELECT @sql = ISNULL(@sql + ',', '') + [TCT] FROM tb_20120720 WHERE billMonth LIKE '' + @ParamBillMonth + '%' GRO... 阅读全文
posted @ 2012-10-16 15:52 Kong, Star 阅读(187) 评论(0) 推荐(0) 编辑
摘要: CultureInfo cultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture; TextInfo text = cultureInfo.TextInfo; string toLower = text.ToLower("sDEFW"); string result = text.ToTitleCase(toLower); 阅读全文
posted @ 2012-09-05 16:16 Kong, Star 阅读(3698) 评论(0) 推荐(0) 编辑
摘要: //读取下载的文件流 if (fileStream.CanRead) { int length; byte[] buffer = new byte[10000]; length = fileStream.Read(buffer, 0, 10000); long dataToRead = fileLength; if (!Directory.Exists(@"c:\downFile")) { Directory.CreateDirectory(@"c:\downFile"); } FileStream fstr = new FileStream(@&quo 阅读全文
posted @ 2011-06-29 10:12 Kong, Star 阅读(571) 评论(0) 推荐(1) 编辑
摘要: HttpPostedFileBase f = Request.Files["txtFile"]; HttpFileCollection collection = System.Web.HttpContext.Current.Request.Files; 阅读全文
posted @ 2010-12-30 11:37 Kong, Star 阅读(216) 评论(0) 推荐(0) 编辑