上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页
摘要: 测试代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.L 阅读全文
posted @ 2020-04-16 10:49 0611163 阅读(797) 评论(0) 推荐(2) 编辑
摘要: 一个非常轻量级的 Web API Demo,代码量很少,实现了方法拦截器,token校验,异常拦截器,缓存 创建项目:如果选择Web API,项目中东西会比较多,这里选择Empty,把下面的Web API勾上,MVC不要勾 项目目录结构: Global.asax.cs代码:这里配置方法拦截器和异常拦 阅读全文
posted @ 2020-03-14 22:40 0611163 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: TreeViewItem、TextBox、Button、RichTextBox、ComboBox、GroupBox、带Path的Button、ContextMenu样式: <!-- Separator模板 --> <ControlTemplate x:Key="tmplSeparator" Targ 阅读全文
posted @ 2020-01-16 19:24 0611163 阅读(268) 评论(0) 推荐(0) 编辑
摘要: HTML代码: <!DOCTYPE html> <html> <head> <title>Vue Demo</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta nam 阅读全文
posted @ 2020-01-15 17:26 0611163 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: 到底该用多少线程?线程数、CPU核心数、本地计算时间、等待时间的关系 线程数 = CPU核心数 * ( 本地计算时间 + 等待时间 ) / 本地计算时间 下面是Task.Factory.StartNew和自己写的TaskHelper.LargeTask.Run对比测试 一、Task.Factory. 阅读全文
posted @ 2019-12-14 23:46 0611163 阅读(1761) 评论(1) 推荐(1) 编辑
摘要: (地图瓦片纠偏最好的方法在这:https://www.cnblogs.com/s0611163/p/15606460.html) 对于地图坐标偏移,以leaflet为例,有如下解决办法 方法1、修改leaflet源码,解决地图坐标偏移问题 方法2、将点位真实的经纬度经过偏移算法,添加到加密的地图上 阅读全文
posted @ 2019-12-13 14:25 0611163 阅读(3485) 评论(0) 推荐(2) 编辑
摘要: 说明:在同一窗口打开链接,只要稍加改造就可以实现,这里实现的是在新Tab页打开链接,并且支持带type="POST" target="_blank"的链接 github和bitbucket上相关问题: 1、WPF empty POST data when using custom popup htt 阅读全文
posted @ 2019-12-13 12:13 0611163 阅读(4087) 评论(2) 推荐(3) 编辑
摘要: 测试数据使用的是项目中的真实数据,每条数据28个字段,数据量126215条数据 测试数据库Oracle 11g 测试电脑性能:ThinkPad T490,CPU是i5-8265U,全核睿频约3.2GHz,单核睿频3.7GHz,硬盘是500G固态硬盘 实体类代码: BusinessEntity代码: 阅读全文
posted @ 2019-11-16 17:36 0611163 阅读(1044) 评论(0) 推荐(1) 编辑
摘要: LimitedTaskScheduler: using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Runtime.Int 阅读全文
posted @ 2019-09-19 14:58 0611163 阅读(9501) 评论(0) 推荐(1) 编辑
摘要: 测试代码: private void TestDistinct() { Task.Run(() => { //生成测试数据 DateTime dt = DateTime.Now; Random rnd = new Random(); List<MyData> list = new List<MyDa 阅读全文
posted @ 2019-08-23 14:37 0611163 阅读(2137) 评论(1) 推荐(2) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页