摘要: 一、HTTP 错误 403.14 - Forbidden HTTP 错误 403.14 - Forbidden,Web 服务器被配置为不列出此目录的内容。 解决方案:修改程序池.NET Framework版本,改为4.0即可。 二、HTTP错误500.19-Internal Server Error 阅读全文
posted @ 2018-11-29 13:57 ice.ko 阅读(821) 评论(6) 推荐(0) 编辑
摘要: 后台运行详情:https://www.cnblogs.com/little-ant/p/3952424.html 查看端口、查找等命令 参考:http://blog.csdn.net/wjcquking/article/details/45293167 更新系统 :yum update 报错信息如下 阅读全文
posted @ 2018-08-16 17:38 ice.ko 阅读(372) 评论(0) 推荐(0) 编辑
摘要: List 去重 var newList = list.Where((x, i) => list.FindIndex(z => z.Name == x.Name) == i).ToList(); http下载文件,不保存到服务器,直接使用浏览器下载 /// <summary> /// 根据url下载文 阅读全文
posted @ 2018-06-07 15:15 ice.ko 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 记录css的样式设置,方便以后使用。 1、绝对定位,自适应父级大小css: html: 效果: 2、图片放置到文本框中: 效果: 3、按钮颜色渐变: 效果: 4、内容超过两行隐藏 效果: 阅读全文
posted @ 2018-03-29 13:49 ice.ko 阅读(225) 评论(0) 推荐(0) 编辑
摘要: asp.net mvc 1、引入log4netNuGet包。 2、修改Global.asax下的Application_Start方法。加入log4net.Config.XmlConfigurator.Configure(),修改如下: 3、修改web.config文件,增加以下节点配置: 4、在项 阅读全文
posted @ 2017-12-26 17:13 ice.ko 阅读(834) 评论(0) 推荐(0) 编辑
摘要: 参考地址:http://www.cnblogs.com/daxnet/p/6181366.html http://www.jianshu.com/p/fa5a9b76f3ed 微软参考文档:https://docs.microsoft.com/en-us/aspnet/core/tutorials/ 阅读全文
posted @ 2017-09-20 16:18 ice.ko 阅读(7225) 评论(5) 推荐(3) 编辑
摘要: 一直听说Swagger是做Web API文档的好工具,这次手里暂时没什么事,类体验下它的强大之处。下面是使用Swashbuckle.net 给asp.net web API添加文档的简要步骤。 参考地址:http://www.jianshu.com/p/3329b4126886 项目引入Swagge 阅读全文
posted @ 2017-09-20 14:15 ice.ko 阅读(17760) 评论(19) 推荐(6) 编辑
摘要: 1、打开项目路径如下的类文件: 1.2.2、找到类的方法 XmlDocumentationProvider ,修改如下: 注意:新建的控制器必须继承 ApiController 否则界面不会展示控制器接口! 2、添加接口详情测试按钮 2.1、通过Nuget包管理添加 webapitestclient 阅读全文
posted @ 2017-09-19 14:59 ice.ko 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: C#车牌校验 public static bool IsVehicleNumber(string vehicleNumber) { bool result = false; if (vehicleNumber.Length == 7){ string express = @"^[京津沪渝冀豫云辽黑湘 阅读全文
posted @ 2017-06-15 14:56 ice.ko 阅读(370) 评论(0) 推荐(0) 编辑
摘要: EF 基础操作:http://www.cnblogs.com/M-LittleBird/p/5852395.html 一、使用CodeFirst模式 1、在需要添加的项目上右键点击选择添加ADD.NET 实体数据模型。 2、选择模型内容,选择CodeFirst模型,选择自己需要的类型,这里我选择空的 阅读全文
posted @ 2017-04-06 17:06 ice.ko 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 查询指定天数的数据(查询7天前状态等于2的数据) SELECT * FROM table where DATE_SUB(DATE_FORMAT(CURDATE(),"%Y-%m-%d"), INTERVAL 7 DAY) >= DATE_FORMAT(F_CreatorTime,"%Y-%m-%d" 阅读全文
posted @ 2017-03-10 10:03 ice.ko 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 用于记录在项目中使用到的方法、属性、操作,持续更新中 .net core 开源地址 获取项目路径 var currentPath= string.Format("{0}App_Data", AppContext.BaseDirectory);var path = Directory.GetCurre 阅读全文
posted @ 2016-11-28 15:52 ice.ko 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 日常使用中的操作记录,持续更新中: jquery.form.js表单ajax提交设置 var options = { //target: '#input', //把服务器返回的内容放入id为input的元素中 beforeSubmit: function () { }, //提交前的回调函数 suc 阅读全文
posted @ 2016-11-18 16:42 ice.ko 阅读(352) 评论(0) 推荐(0) 编辑
摘要: supervisor:C/S架构的进程控制系统,可使用户在类UNIX系统中监控、管理进程。常用于管理与某个用户或项目相关的进程。 组成部分supervisord:服务守护进程supervisorctl:命令行客户端Web Server:提供与supervisorctl功能相当的WEB操作界面XML- 阅读全文
posted @ 2016-11-03 14:24 ice.ko 阅读(6371) 评论(0) 推荐(4) 编辑
摘要: 原文地址:http://www.cnblogs.com/ants/p/5732337.html#_label5 参考地址:http://www.cnblogs.com/hustskyking/p/nginx-configuration-start.html 相关命令: nginx -s reload 阅读全文
posted @ 2016-11-02 13:21 ice.ko 阅读(2185) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.07net01.com/2016/08/1638058.html http://www.cnblogs.com/calvinK/p/5628298.html http://www.mamicode.com/info-detail-1535706.html http://w 阅读全文
posted @ 2016-10-26 11:59 ice.ko 阅读(5867) 评论(0) 推荐(1) 编辑
摘要: Linux安装地址:https://www.cnblogs.com/miskis/p/6038645.html 一键安装卸载批处理脚本:https://share.weiyun.com/VwOhWYWV 以管理员运行脚本,按提示操作修改登录密码即可! 一、绿色版安装 1、下载MySQL 8.0.16 阅读全文
posted @ 2016-10-13 16:54 ice.ko 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 起因: 由于之前项目中出现过内存占用较高情况,为了保障业务不因程序问题导致停止;需要实现对进程资源占用限制。 需要利用IIS相关功能实现,所以对IIS相关配置多一些了解。 主要对以下高级设置重点项了解:包含: 网站高级配置: 进程池高级设置: 一、IIS重点配置项目: 连接数 连接数概念: [1] 阅读全文
posted @ 2023-03-13 08:43 ice.ko 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: 问题描述: vue默认模式是hash模式,URL地址会带有“#”。 例如:http://www.xxx.com/#/index 为了去掉这个#,需要在vue-router中,设置model为history,开发模式下木有问题,打包后,问题来了, 原始路径下,http://www.xxx.com/in 阅读全文
posted @ 2022-03-07 14:31 ice.ko 阅读(648) 评论(1) 推荐(0) 编辑
摘要: Windows10-启动redis报错: Could not create server TCP listening socket 127.0.0.1:6379: bind: 操作成功完成 解决方案: 运行: redis-cli.exe 执行命令:shutdown 退出:exit 重新启动:redi 阅读全文
posted @ 2022-03-02 17:06 ice.ko 阅读(2977) 评论(0) 推荐(0) 编辑
摘要: gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 出现上面图中问题,解决办法,打开终端(管理员模式),输入下面的内容: 安装node-sass npm i 阅读全文
posted @ 2021-09-25 15:52 ice.ko 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1、自定义项目模板,推荐使用第二种打包NuGet,使用更方便 创建模板配置文件 在项目文件夹根目录创建.template.config文件夹,在文件夹下创建新的文件:template.json内容如下: { "$schema": "http://json.schemastore.org/templa 阅读全文
posted @ 2021-05-12 11:45 ice.ko 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 最近想整合IdentityServer4跟API,但网上找到的都是各种坑,踩都踩不玩! 花了点时间终于整合好了,记录下。 新建空的asp.net core 项目 使用NuGet安装IdentityServer4最新版4.1.0。安装完成新建Config.cs类。内容如下: using Identit 阅读全文
posted @ 2020-10-06 23:08 ice.ko 阅读(1766) 评论(15) 推荐(3) 编辑
摘要: 根据Shader动态生成遮罩 源码地址 圆形遮罩镂空处理脚本: using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 圆形遮罩镂空 /// 阅读全文
posted @ 2019-09-30 16:34 ice.ko 阅读(2857) 评论(0) 推荐(1) 编辑
摘要: java环境安装:https://devblogs.microsoft.com/visualstudio/announcing-visual-studio-code-java-installer/ 保存代码自动格式化代码,在 settings.json 中添加如下代码: 阅读全文
posted @ 2019-05-05 17:33 ice.ko 阅读(502) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; ... 阅读全文
posted @ 2019-01-06 23:19 ice.ko 阅读(993) 评论(0) 推荐(1) 编辑
摘要: 简介 本来不想写这篇博文,但在网上找到的文章博客都没有完整配置信息,所以这里记录下。 不了解IdentityServer4的可以看看我之前写的入门博文 Swagger 官方演示地址 源码地址 配置IdentityServer4服务端 首先创建一个新的ASP.NET Core项目。 这里选择空白项,新 阅读全文
posted @ 2018-12-12 16:38 ice.ko 阅读(5562) 评论(4) 推荐(16) 编辑