博客园 - 狂乱贵公子
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=181352
2023-01-12T02:05:51Z
狂乱贵公子
https://www.cnblogs.com/saving/
feed.cnblogs.com
https://www.cnblogs.com/saving/p/17045649.html
判断区间是否重叠 - 狂乱贵公子
int overlap(int a, int b, int c, int d) { int _max= max( a, c); int _min = min( b, d); return _max<=_min ; } a-b是个集合范围 c-d是个集合范围 同理,如果参数改为时间也是有效的
2023-01-12T02:02:00Z
2023-01-12T02:02:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】int overlap(int a, int b, int c, int d) { int _max= max( a, c); int _min = min( b, d); return _max<=_min ; } a-b是个集合范围 c-d是个集合范围 同理,如果参数改为时间也是有效的 <a href="https://www.cnblogs.com/saving/p/17045649.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/14108518.html
HttpClient携带Cookie的姿势 - 狂乱贵公子
var webRootUrl = "http://xxxx.com"; string pathPositionReal = webRootUrl + "/api/a/b"; var hander = new HttpClientHandler { UseCookies = true }; var c
2020-12-09T06:45:00Z
2020-12-09T06:45:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】var webRootUrl = "http://xxxx.com"; string pathPositionReal = webRootUrl + "/api/a/b"; var hander = new HttpClientHandler { UseCookies = true }; var c <a href="https://www.cnblogs.com/saving/p/14108518.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/13992385.html
在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke - 狂乱贵公子
winform开发,遇到这个错误: “在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。” private void LoadPostData() { 请求数据方法(()=>{ this.Invoke(new Action<List<PostInfo>>((list)
2020-11-17T00:52:00Z
2020-11-17T00:52:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】winform开发,遇到这个错误: “在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。” private void LoadPostData() { 请求数据方法(()=>{ this.Invoke(new Action<List<PostInfo>>((list) <a href="https://www.cnblogs.com/saving/p/13992385.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/13827140.html
git撤回已push的commit初次实操日志 - 狂乱贵公子
* 用 git log 能查看到自己的commit的日志 * git reset -soft <找到要退回的版本号> * 但这时发现回退到了目标版本的之前的版本 * 纠结....... * 用git乌龟壳 show log * 从上到下找到我自己提交的记录 * 找到目标日志 *右键reset****
2020-10-16T08:24:00Z
2020-10-16T08:24:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】* 用 git log 能查看到自己的commit的日志 * git reset -soft <找到要退回的版本号> * 但这时发现回退到了目标版本的之前的版本 * 纠结....... * 用git乌龟壳 show log * 从上到下找到我自己提交的记录 * 找到目标日志 *右键reset**** <a href="https://www.cnblogs.com/saving/p/13827140.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/13821171.html
HttpClient Post示例 - 狂乱贵公子
var url = "http://11.4.64.77:8888/a/b"; if (url.StartsWith("https")) System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; forea
2020-10-15T08:07:00Z
2020-10-15T08:07:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】var url = "http://11.4.64.77:8888/a/b"; if (url.StartsWith("https")) System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; forea <a href="https://www.cnblogs.com/saving/p/13821171.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/13360247.html
Visual Studio 多行选中 (Add Selection To Next Find Match) - 狂乱贵公子
visual studio code中,选中文本,再使用快捷键Ctrl + D可以选中下一个匹配的文字。 visual studio 2019中则是默认是 Shift+Alt+.
2020-07-22T05:49:00Z
2020-07-22T05:49:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】visual studio code中,选中文本,再使用快捷键Ctrl + D可以选中下一个匹配的文字。 visual studio 2019中则是默认是 Shift+Alt+. <a href="https://www.cnblogs.com/saving/p/13360247.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11654961.html
oracle 创建同名 - 狂乱贵公子
create synonym QUAL_AC_JOB_RELATION for ccqm_adm.QUAL_AC_JOB_RELATION;
2019-10-11T08:22:00Z
2019-10-11T08:22:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】create synonym QUAL_AC_JOB_RELATION for ccqm_adm.QUAL_AC_JOB_RELATION; <a href="https://www.cnblogs.com/saving/p/11654961.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11580216.html
webpack生产的vendor.js太大,开发时编译太慢? - 狂乱贵公子
webpack生产的vendor.js太大,开发时编译太慢? 本地也许还好,但是我用frp内网穿透开发微信的时候就悲剧了。1.6M下载速度18s。 周末搞好了gzip提升的成产环境的文件速度。 想起来dev-server应该也有压缩功能。 执行加个参数
2019-09-24T10:57:00Z
2019-09-24T10:57:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】webpack生产的vendor.js太大,开发时编译太慢? 本地也许还好,但是我用frp内网穿透开发微信的时候就悲剧了。1.6M下载速度18s。 周末搞好了gzip提升的成产环境的文件速度。 想起来dev-server应该也有压缩功能。 执行加个参数 <a href="https://www.cnblogs.com/saving/p/11580216.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11563546.html
nginx使用静态目录巨慢 - 狂乱贵公子
为了减少开销,把webapp单独部署到linux文件夹中,和后端分离出来,于是用了nginx的静态目录功能。 然鹅,测试访问,明显感受到了比放在后端代码托管中更慢。 优化 1.gzip压缩 2.文件缓存
2019-09-21T08:27:00Z
2019-09-21T08:27:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】为了减少开销,把webapp单独部署到linux文件夹中,和后端分离出来,于是用了nginx的静态目录功能。 然鹅,测试访问,明显感受到了比放在后端代码托管中更慢。 优化 1.gzip压缩 2.文件缓存 <a href="https://www.cnblogs.com/saving/p/11563546.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11527156.html
asp.net core 在中间件中获取路由信息(RouteData) - 狂乱贵公子
新开发一个中间件,需要使用到路由信息。 但是,RouteData是在MVC中间件中才会被赋,我们的中间件是在MVC中间件之前使用的,这样一来,就没办法获取到路由信息了。 好在使用EndPointRouting帮我们解决了这个问题。 如图是在中间件中获取到的路由数据。
2019-09-16T06:34:00Z
2019-09-16T06:34:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】新开发一个中间件,需要使用到路由信息。 但是,RouteData是在MVC中间件中才会被赋,我们的中间件是在MVC中间件之前使用的,这样一来,就没办法获取到路由信息了。 好在使用EndPointRouting帮我们解决了这个问题。 如图是在中间件中获取到的路由数据。 <a href="https://www.cnblogs.com/saving/p/11527156.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11357700.html
.net 获取简单表达式的名称 - 狂乱贵公子
有一个类 现在我想通过如下设置使用Expression表达式 然后我想得到这个expression的名称Id。 实现方法如下 使用方式
2019-08-15T06:23:00Z
2019-08-15T06:23:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】有一个类 现在我想通过如下设置使用Expression表达式 然后我想得到这个expression的名称Id。 实现方法如下 使用方式 <a href="https://www.cnblogs.com/saving/p/11357700.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11334677.html
EF 动态IQueryable - 狂乱贵公子
public static class DbContextExtension { public static IQueryable Query(this DbContext context, Type entityType) { var SetMethod = typeof(DbContext).GetMethod(nameof(DbContext.Set)); return (IQueryabl
2019-08-11T05:07:00Z
2019-08-11T05:07:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】public static class DbContextExtension { public static IQueryable Query(this DbContext context, Type entityType) { var SetMethod = typeof(DbContext).GetMethod(nameof(DbContext.Set)); return (IQueryabl <a href="https://www.cnblogs.com/saving/p/11334677.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11297945.html
.net 动态(dynamic)获取泛型(generic) - 狂乱贵公子
var entityType = item.GetEntityType(); // 获取到对象类型 var generic = typeof(IRepository).MakeGenericType(entityType, typeof(string));
2019-08-04T05:16:00Z
2019-08-04T05:16:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】var entityType = item.GetEntityType(); // 获取到对象类型 var generic = typeof(IRepository).MakeGenericType(entityType, typeof(string)); <a href="https://www.cnblogs.com/saving/p/11297945.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11240313.html
vue directive中更新数据 - 狂乱贵公子
输入
2019-07-24T11:25:00Z
2019-07-24T11:25:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】输入 <a href="https://www.cnblogs.com/saving/p/11240313.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11220970.html
SingR 部署后显示:WebSocket connection to failed: Error during WebSocket handshake: Unexpected response code: 200 - 狂乱贵公子
部署到Linux后,出现问题: WebSocket connection to failed: Error during WebSocket handshake: Unexpected response code: 200 原因是服务器使用Nginx不支持websocket,但Nginx可用代理We
2019-07-21T05:20:00Z
2019-07-21T05:20:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】部署到Linux后,出现问题: WebSocket connection to failed: Error during WebSocket handshake: Unexpected response code: 200 原因是服务器使用Nginx不支持websocket,但Nginx可用代理We <a href="https://www.cnblogs.com/saving/p/11220970.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11218438.html
ABP 使用拦截器 - 狂乱贵公子
1.创建拦截器的逻辑部分 2.添加监听注册事件类 3.在PreInitialize中调用监听 4.使用
2019-07-20T09:22:00Z
2019-07-20T09:22:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】1.创建拦截器的逻辑部分 2.添加监听注册事件类 3.在PreInitialize中调用监听 4.使用 <a href="https://www.cnblogs.com/saving/p/11218438.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11186460.html
微信H5禁止下拉 且可下滚动指定区域 - 狂乱贵公子
代码实现在tree-hole-room-messages这个滚动区域内下拉不会出现。 且可用滚动这个区域
2019-07-14T15:33:00Z
2019-07-14T15:33:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】代码实现在tree-hole-room-messages这个滚动区域内下拉不会出现。 且可用滚动这个区域 <a href="https://www.cnblogs.com/saving/p/11186460.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11170717.html
一个ORALCE快速批量写入方法的类 - 狂乱贵公子
public class OracleBatchInsertUtil { /// /// 批量插入数据 /// /// 表名称 /// 键-值存储的批量数据:键是列名称,值是对应的数据集合 /// 连接字符串 /// 每次批处理数据的大小 ...
2019-07-11T08:13:00Z
2019-07-11T08:13:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】public class OracleBatchInsertUtil { /// /// 批量插入数据 /// /// 表名称 /// 键-值存储的批量数据:键是列名称,值是对应的数据集合 /// 连接字符串 /// 每次批处理数据的大小 ... <a href="https://www.cnblogs.com/saving/p/11170717.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11069005.html
聊天室-发送消息后保持输入法不推出 - 狂乱贵公子
为了实现上面图中的描述 directive要有
2019-06-22T07:25:00Z
2019-06-22T07:25:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】为了实现上面图中的描述 directive要有 <a href="https://www.cnblogs.com/saving/p/11069005.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/saving/p/11049769.html
webpack中使用vue的v-slot不生效? - 狂乱贵公子
webpack中使用vue的v-slot不生效? 试试升级vue到2.6.10试试 另外 "vue-loader"版本 升级到"^15.7.9", "vue-template-compiler"升级到 "^2.6.10", "vue-loader"版本 升级到"^15.7.9", "vue-temp
2019-06-19T02:16:00Z
2019-06-19T02:16:00Z
狂乱贵公子
https://www.cnblogs.com/saving/
【摘要】webpack中使用vue的v-slot不生效? 试试升级vue到2.6.10试试 另外 "vue-loader"版本 升级到"^15.7.9", "vue-template-compiler"升级到 "^2.6.10", "vue-loader"版本 升级到"^15.7.9", "vue-temp <a href="https://www.cnblogs.com/saving/p/11049769.html" target="_blank">阅读全文</a>