代码改变世界

Docker Install error - The specified framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found

2020-03-21 18:51 by Dorisoy, 3928 阅读, 0 推荐, 收藏, 编辑
摘要:https://github.com/dotnet/runtime/issues/721 https://github.com/dotnet/aspnetcore/issues/19467 C:\Users\Administrator>dotnet --info.NET Core SDK(反映任何 阅读全文

EF Core 多 DbContext 迁移

2020-03-19 15:17 by Dorisoy, 278 阅读, 0 推荐, 收藏, 编辑
摘要:public class FirstDbContext : DbContext { public FirstDbContext(DbContextOptions<FirstDbContext> options) : base(options) { } public DbSet<xx> xxxs{ g 阅读全文

The effects and animations possible with the SkiaSharp rotate transform

2020-03-18 16:27 by Dorisoy, 355 阅读, 0 推荐, 收藏, 编辑
摘要:Download the sample Explore the effects and animations possible with the SkiaSharp rotate transform With the rotate transform, SkiaSharp graphics obje 阅读全文

用于 ExpressionAnimations 动画模型的表达式构建器

2020-01-22 17:03 by Dorisoy, 238 阅读, 0 推荐, 收藏, 编辑
摘要:ExpressionBuilder https://github.com/Drutol/MALClient/tree/mal-alternative-api/ExpressionBuilder Welcome to the ExpressionBuilder classes! The Express 阅读全文

优雅的处理 Android 崩溃问题(二)

2020-01-21 16:12 by Dorisoy, 1072 阅读, 0 推荐, 收藏, 编辑
摘要:Cockroach 2.0 为什么开发这个库 很多时候由于一些微不足道的bug导致app崩溃很可惜,android默认的异常杀进程机制简单粗暴,但很多时候让app崩溃其实也并不能解决问题。 有些bug可能是系统bug,对于这些难以预料的系统bug我们不好绕过,还有一些bug是我们自己编码造成的,对于 阅读全文

优雅的处理 Android 崩溃问题(一)

2020-01-21 16:11 by Dorisoy, 1027 阅读, 0 推荐, 收藏, 编辑
摘要:Custom Activity On Crash library This library allows launching a custom activity when the app crashes, instead of showing the hated "Unfortunately, X 阅读全文

Keeping your Android application running when the device wants to sleep (Updated for Android Oreo)

2020-01-21 16:01 by Dorisoy, 408 阅读, 0 推荐, 收藏, 编辑
摘要:Updated October 2018 to include detail about Android Oreo. Since the introduction of doze mode in Android Marshmallow we have seen a number of enterpr 阅读全文

Handle navigation exceptions in Prism for Xamarin

2020-01-11 22:36 by Dorisoy, 203 阅读, 0 推荐, 收藏, 编辑
摘要:If you're using the NavigationService in Prism, for Xamarin.Forms or simply Xamarin, like this : 1 you might notice native crashes with no information 阅读全文

Xamarin Forms Prism Navigation from TabbedPage behaves as PushModelAsync or the navigation bar disappears

2020-01-03 17:36 by Dorisoy, 257 阅读, 0 推荐, 收藏, 编辑
摘要:FIX: The reason for this is that ViewA’s parent is not a NavigationPage, the result is that the Navigation Service assumes you want modal Navigation. 阅读全文

Filters in ASP.NET Core

2019-12-17 09:42 by Dorisoy, 416 阅读, 0 推荐, 收藏, 编辑
摘要:Filters in ASP.NET Core allow code to be run before or after specific stages in the request processing pipeline. Built-in filters handle tasks such as 阅读全文

.net core 从 ActionFilterAttribute 获取Request.Body 的正确方式

2019-12-17 09:37 by Dorisoy, 2776 阅读, 0 推荐, 收藏, 编辑
摘要:由于 ModelBinding在动作过滤器之前运行,直接使用 context.ActionArguments["parameter"] 获取模型对象 This article shows how to use an ActionFilter to validate the model from a 阅读全文

Getting A Mime Type From A File Name In .NET Core

2019-12-16 13:25 by Dorisoy, 258 阅读, 0 推荐, 收藏, 编辑
摘要:Getting a mime type based on a file name (Or file extension), is one of those weird things you never really think about until you really, really need 阅读全文

20道链表问题

2019-11-23 18:47 by Dorisoy, 180 阅读, 0 推荐, 收藏, 编辑
摘要:1. 如何在一次传递中找到单链表的中间元素? 答案:http://javarevisited.blogspot.sg/2012/12/how-to-find-middle-element-of-linked-list-one-pass.html 2. 如何在不使用递归的情况下反转单链表? 答案:ht 阅读全文

.Net 下基于Redlock redis 分布式锁实现

2019-11-21 11:35 by Dorisoy, 646 阅读, 0 推荐, 收藏, 编辑
摘要:Redlock-cs (C#/.NET implementation). RedLock.net (C#/.NET implementation). Includes async and lock extension support. ScarletLock (C# .NET implementat 阅读全文

MySQL 8.0.18 InnoDB Cluster 主从(MGR)完整安装配置

2019-11-15 22:34 by Dorisoy, 1864 阅读, 0 推荐, 收藏, 编辑
摘要:提示: MySQL InnoDB Cluster底层依赖Group Replication模式,至少3台机器 1. 准备3台 CentOS Linux 7 (Core), 修改各主机名:db-host1, db-host2, db-host3 然后配置各台机器 hosts 映射, 对应如下 2. 确 阅读全文

Apache ServiceComb Pack 微服务分布式数据最终一致性解决方案

2019-11-14 13:45 by Dorisoy, 1178 阅读, 0 推荐, 收藏, 编辑
摘要:https://github.com/OpenSagas-csharp/servicecomb-pack-csharp Saga基本使用指南 使用前置条件说明 如果还有同学对Saga还不甚了解的同学,可以参考Saga官方中文地址地址,同时可以参考此项目贡献者之一的WithLin的一篇中文说明文章,该 阅读全文

EF core 性能调优

2019-11-06 14:36 by Dorisoy, 528 阅读, 0 推荐, 收藏, 编辑
摘要:Entity Framework Core performance tuning – a worked example Last Updated: February 25, 2019 | Created: September 22, 2017 This is the first in a serie 阅读全文

Entity Framework Core Query Types

2019-11-01 10:26 by Dorisoy, 258 阅读, 0 推荐, 收藏, 编辑
摘要:This feature was added in EF Core 2.1 Query types are non-entity types (classes) that form part of the conceptual model and can be mapped to tables an 阅读全文

Using the Repository and Unit Of Work Pattern in .net core

2019-10-27 16:25 by Dorisoy, 750 阅读, 0 推荐, 收藏, 编辑
摘要:A typical software application will invariably need to access some kind of data store in order to carry typical CRUD (Create, Read Update, Delete) ope 阅读全文

CENTOS 7 下安装 REDIS 5.0.6 完整步骤

2019-10-17 15:26 by Dorisoy, 2007 阅读, 0 推荐, 收藏, 编辑
摘要:第一步:下载redis安装包 wget http://download.redis.io/releases/redis-5.0.6.tar.gz 第二步:解压压缩包 tar -zxvf redis-5.0.6.tar.gz 第三步:yum安装gcc依赖 yum install gcc 第四步:跳转到 阅读全文

MySQL InnoDB 群集–在Windows上设置InnoDB群集

2019-10-12 23:09 by Dorisoy, 895 阅读, 0 推荐, 收藏, 编辑
摘要:InnoDB集群最需要的功能之一是Windows支持,我们现在已将其作为InnoDB Cluster 5.7.17预览版 2的一部分提供。此博客文章将向您展示如何在MS Windows 10上运行InnoDB集群。64位系统。 我们将执行以下步骤。 下载包 安装 创建一个InnoDB群集沙箱配置 引 阅读全文

RFM客户价值分类

2019-10-06 20:50 by Dorisoy, 1333 阅读, 0 推荐, 收藏, 编辑
摘要:调用函数处理后: 阅读全文

RFM - Customer Level Data

2019-10-06 15:32 by Dorisoy, 427 阅读, 0 推荐, 收藏, 编辑
摘要:Introduction ## Warning: package 'DT' was built under R version 3.5.2 RFM (recency, frequency, monetary) analysis is a behavior based technique used t 阅读全文

合格大数据分析师应该具备的技能

2019-10-05 22:15 by Dorisoy, 2006 阅读, 0 推荐, 收藏, 编辑
摘要:阶段一、业务数据分析师 课程一、数据挖掘/分析师之硬技能 - 必备常用工具使用与高级技巧 本部分内容主要介绍了数据挖掘、分析师、数据产品经理必备的常用工具的,主要有 Excel,Visio,Xmind,PPT的涉及图表数据分析方面的高级技巧,包括但不限于:数据透视表演练、Vision跨职能流程图演练 阅读全文

RFM模型的变形LRFMC模型与K-means算法的有机结合

2019-10-05 19:00 by Dorisoy, 3720 阅读, 0 推荐, 收藏, 编辑
摘要:应用场景: 可以应用在不同行业的客户分类管理上,比如航空公司,传统的RFM模型不再适用,通过RFM模型的变形LRFMC模型实现客户价值分析;基于消费者数据的精细化营销 应用价值: LRFMC模型构建之后使用了经典的聚类算法-K-Means算法来对客户进行细分,而不是传统的来与参考值对比进行手工分类, 阅读全文

使用 ML.NET 对 K-Means 平均值聚类分析和分类

2019-10-05 16:26 by Dorisoy, 926 阅读, 0 推荐, 收藏, 编辑
摘要:数据集 :https://en.wikipedia.org/wiki/Iris_flower_data_set 聚类分析 非监管式机器学习任务,用于将数据实例分组到包含类似特性的群集。 聚类分析还可用来识别可能无法通过浏览或简单的观察以逻辑方式推导出的数据集中的关系。 聚类分析算法的输入和输出取决于 阅读全文

用于 Quinella/Exacta/Trifecta/Pick Four/Pick Six/Quaddie/Superfecta 7大规则的测试

2019-09-28 11:59 by Dorisoy, 302 阅读, 0 推荐, 收藏, 编辑
摘要:上2篇给了详细API 设计,下面我们来模拟测试下: Quinella: Here is the output: 2 42.5 (1, 2) 15.000 (1, 4) 27.500 Calculation Time: 0.001 Exacta: self.bet_type = "Exacta" se 阅读全文

How to Construct the Input Bet String

2019-09-28 11:39 by Dorisoy, 301 阅读, 0 推荐, 收藏, 编辑
摘要:The purpose of this section is to describe the format of the string which will submitted to the Python bet processor strats.py. This string is a serie 阅读全文

Odds calculation required for the python strategy library

2019-09-28 11:33 by Dorisoy, 487 阅读, 0 推荐, 收藏, 编辑
摘要:Bet Class Here is an example of the expected string input on instantiation of the class. It is expecting a string using the POST method in a cgi scrip 阅读全文

超实用文件监控多线程FTP上传工具

2019-09-28 11:19 by Dorisoy, 952 阅读, 0 推荐, 收藏, 编辑
摘要:这是自己很久以前写的一个多线程FTP 上传工具,支持多账户,自定义线程数,自定义文件监控目录,可用做文件发布使用,非常实用,今天有小伙伴问起,现分享出来: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 阅读全文