EKsumic's Blog

let today = new Beginnings();

Click the left button to use the catalog.

Sort By :
Default
UpdateTime
Reads
RSS  RSS

OR 「History」About this website

This article records the whole history of the website from the idea to the realization, and specifically records the major changes of the website, which are of milestone significance for the operation of the website ...

2020-01-28 00:38:52

1k+ 1065 reads

9 comments

OR Difference between HTTP GET and HTTP POST method

Generally speaking, GET is to obtain data, and POST is to submit data. But because GET and POST are both HTTP methods, HTTP is a TCP/IP-based protocol on how data communicates on the World Wide Web. So in essence, there is no difference between GET and POST requests. They are all TCP connections. What they can do is the same. Now that the HTTP protocol has these two methods, it is to ...

2020-10-29 21:56:13

9 reads

0 comments

OR [ .NET Core 3.1 MVC ] What is @section scripts{}? And how to use it?

What is @section scripts{}? And how to use it? Your section scripts may like this: It's placed in a view page. If you run it directly, it will report an error. Yes, if you write like this, you must add a @RenderSection("scripts", required: false) to the layout page. This part of your javascript ...

2020-10-29 21:22:44

10 reads

0 comments

OR [SOLVED]How to use X.PagedList.Mvc.Core IN .NET Core 3.1?

Let me first try to explain the background C# code: This is a typical rewritten method. Its initial version should look like this: Why does the rewritten code become so complicated? Because it not only has a paging function, it also comes with a search function. Every time ...

2020-10-29 00:38:05

15 reads

0 comments

OR How to set up mysql scheduled task

How to set up mysql scheduled task First, check the switch: SHOW VARIABLES LIKE 'event_scheduler' If it's off: SET GLOBAL event_scheduler = ON;  Second, create a stored procedure: CREATE PROCEDURE update_test()  UPDATE test set num=num+1 where ...

2020-10-28 21:27:03

19 reads

0 comments

OR How does native JS get the number of child elements that the current element belongs to the parent element

I will tell you where this thing is applied. Basically every mobile game will have a star system. Especially those card games. I want to show you an example of Princess Connect: Re Dive. You know, if you have played this game, the number of stars of the character is very important ...

2020-10-28 17:18:03

23 reads

0 comments

OR How to access the. Net core 3.1 MVC web program running in LAN

At the same time, please pay attention to turn off the firewall in the LAN. Of course, you can also add some LAN port rules, but this is not what I will teach in this tutorial. The reason why I want to write this tutorial is that I want to actually visit the project I just finished with ...

2020-10-25 18:03:03

22 reads

0 comments

OR [SOLVED]How to use cookies in .NET Core 3.1 MVC?

How to use cookies in .NET Core 3.1 MVC? You only need to write these 3 methods in the controller. (Note that it must be written in the controller.)I dare not say that this is the best way, but I want to say that it is effective. ...

2020-10-24 22:42:41

21 reads

0 comments

OR [JavaScript] Brief introduction of three interactive boxes (alert, confirm, prompt) of JavaScript

Brief introduction of three interactive boxes (alert, confirm, prompt) of JavaScript 1. Alert box is only used to display certain information. You only need to write "alert("Hello!");" in the JavaScript tag to use it. 2. The confirm box is used to enable the user to verify or accept ...

2020-10-24 17:18:22

25 reads

0 comments

OR [JavaScript] Insert a new div before, in the middle or behind a div

I did a project before. I can't write code with jQuery, but I can only write and insert it with native JS. The code is as follows: ...

2020-10-24 00:40:53

20 reads

0 comments

OR How to express love with animation tone?

How to express love with animation tone. I want to use all the sentences expressing love in the anime I have seen to form a paragraph. And the reason why I wrote this is because I saw a picture on the forum before. [Image] Yes.It's all written in Chinese, but I tried to convert it ...

2020-10-21 03:19:40

29 reads

0 comments

OR [SOLVED] The EF Core tools version '3.1.5' is older than that of the runtime '3.1.9'. Update the tools for the latest features and bug fixes.

The EF Core tools version '3.1.5' is older than that of the runtime '3.1.9'. Update the tools for the latest features and bug fixes. Solution: the EF core tools version needs to be updated please executed this in CMD: dotnet tool update -g dotnet-ef ...

2020-10-21 02:57:28

32 reads

0 comments

OR What is hue-rotate(270deg)?

This is a tonal rotation filter Assuming your original picture is yellow, this code will make your yellow picture purple. The complete code is style="filter: hue-rotate(270deg);" You can use star.png as a test. I have given the picture here, you will understand if you try to do it. ...

2020-10-21 02:37:49

25 reads

0 comments

OR C# Extract the comma separated string to GET the List

It's been a long time since I've been using stupid methods like one-dimensional arrays. C# has always provided some very useful tips. This blog will tell you a very common way to get a list of characters composed of commas and strings. ...

2020-10-21 02:21:09

21 reads

0 comments

OR 如何使用.net core 3.1身份认证发送电子邮件

本篇博客大致上就原英文版本的说明文档,再提供一个再解释文档。 (将简化一些步骤,让你快速学会调用这个功能)然后就是基架问题了。 右击该项目→添加→新搭建基架的项目→标识→添加。 选择Account\RegisterConfirmation,数据上下文选择好,点击添加。 然后最好是更新一下数据库 ...

2020-10-17 17:10:51

44 reads

0 comments

OR 默认ASP.NET Core 3.x项目和Identity选项出现nvarchar和nvarchar(max)错误

场景描述: 尝试在.net core 3.1 mvc项目下使用mysql数据库,在add-migrations的时候,报错了。简述: 出现这个问题,是因为asp.net core默认是认为你用的sql server,它正尝试使用SQL Server的语法。解决方案:直接删除Migrations整个文件夹,然后 ...

2020-10-16 14:35:39

57 reads

0 comments

RE Ubuntu18.04快速开启Google BBR的方法

说明:Ubuntu 18.04老早就发布了,改变挺大的,内核也直接升到了正式版4.15,而BBR内核要求为4.9,也就是说满足了,所以我们不需要换内核就可以很快的开启BBR,只需要几条命令即可,这里简单说下方法,该教程是面向小白的。嘛,虽然没有报错解决方案,但是可以参考一下 ...

2020-10-04 03:42:28

56 reads

0 comments

OR MySQL的datetime和SQL Server的datetime有什么区别?

先说结论:没有区别。 之前有人跟我说sqlserver的数据库导入mysql要注意Datetime会变成varchar,你可以改成timestamp(时间戳), timestamp, mysql的timestamp和datetime的区别? DateTime和TimeStamp都是年月日时分秒,为什么还有这两个类型呢? DateTime和TimeStamp最大 ...

2020-10-04 03:31:24

58 reads

0 comments

OR .NET Core连接MySQL标准连接方式

MySQL Connector/Net (.NET)标准连接方式 1、标准连接(说明,默认端口是3306。) 2、特殊的TCP/IP端口连接 本地连接应当写 至于localhost和127.0.0.1,如果可以用的话,建议写localhost,因为localhost不经过网络层、防火墙之类的,理论上性能是更高的。不过我在测试的时候 ...

2020-10-04 02:26:15

62 reads

0 comments

OR .NET Core如何使用MySQL?需要打什么驱动?

​ 1. 安装EF Core连接MySQL的驱动,这里有两类:  (1).Oracle官方出品:MySql.Data.EntityFrameworkCore (版本:8.0.17)  (2).其他第三方出品:Pomelo.EntityFrameworkCore.MySql (版本:2.2.0) 8.0.11版本的官方包,大概会抛出这个错误: The 'MySQLNumberTypeMapping ...

2020-10-04 02:24:46

59 reads

0 comments

OR Ubuntu18.04 修改默认时区

执行命令(以东京为例):sudo timedatectl set-timezone Asia/Tokyo 关于Asia/Tokyo这样的参数,可以通过 timedatectl list-timezones 进行查询。 按Space是下一页,b是上一页。 找到了你想要的时区后,记下来,按q退出。 最后,执行命令 date 查看一下修改是否成功。比如 ...

2020-10-03 22:24:06

63 reads

0 comments

OR Sql Server数据库迁移到MySQL(使用SQLyog)

新建一个同名的mysql数据库,这里为了演示取名为test。 基字符集是你默认安装的系统的字符集,我们这里默认使用utf-8,防止乱码。 不过话说回来,如果不清楚default是什么的话,建议执行一下语句: SHOW VARIABLES LIKE 'character%'; SHOW VARIABLES LIKE 'collation_%';   第二条语句将告诉你,默认连接、默认数据库使用基础字符集。 右击数据库,导入,导入外部数据 ...

2020-10-03 19:17:47

59 reads

0 comments

OR Ubuntu18.04上使用Nginx部署.NET Core 2.1 Web项目过程全记录

1.部署Ubuntu 18.04基本配置 2.安装MySQL 3.产生.NET Core 2.1 Website for Linux-x64 使用WinSCP在/var目录下新建一个www目录,将发布好的文件夹放在www目录下。 4.安装.NET Core运行时 #检查网站是否正常访问,正常将会返回200 #更新重新上传dll需重启服务 ...

2020-10-02 23:39:21

104 reads

0 comments

OR Ubuntu18.04 安装MySQL

​安装MySQL 先查看有没有安装:dpkg -l grep mysql 没有的话,安装MySQL: apt install mysql-server 直接一路Y下去。(目前默认安装的mysql版本是5.7.31)安装完成后,检查:netstat -tap | grep mysql 如果看到mysql处于Listen状态,则说明安装成功。检查版本 mysql -v 可以看到 ...

2020-10-01 03:43:08

98 reads

0 comments

DE 这个世界并不存在绝对的黑暗

这个世界并不存在绝对的黑暗, 即便是伸手不见五指的黑夜,依然是有微弱的光线, 所有的黑暗都是指向光明, 亦如所有的不义都是指向正义。 也许我们不知道什么叫正义, 但我们知道什么叫做不正义, 正是对正义的向往,让我们的眼中充满泪水,让我们的心弦时常被拨动 ...

2020-09-27 19:03:38

102 reads

0 comments

OR Analysis of the elements of government service website - good bad rating list

Hundreds of companies have sprung up in the last couple of years specializing in click farming, delivering bundles of online approval to businesses requiring a quick and dirty way to boost their popularity. But it's not just for commercial companies, it's especially for the ...

2020-09-15 19:13:13

184 reads

0 comments

OR C#Winform向WPF过渡入门(六)

什么是控件模板? 先解释一个最基本的问题,有人觉得模板和定义样式差不多,其实不然。 样式终归是样式, 模板的话,非要定义的话,就说俩字“自举”。 为啥要提到“自举”,其实XAML有人多功能都是微软工作人员帮你自举出来的。 举个例子: 你在VS里面 视图 - 其它窗口 - 找到 ...

2020-09-13 16:11:30

146 reads

0 comments

OR C#Winform向WPF过渡入门(五)

这是一个简单的触发器,它实现的功能是当鼠标移动到按钮的时候,触发第一个触发器使得字体变成红色,并放大到30,当离开的时候,触发第一个触发器,使得按钮还原。 接下来说多条件触发器 多条件触发器 为什么会出现这个东西? 其实看了上面的代码,你应该发现了 ...

2020-09-13 15:06:03

169 reads

0 comments

OR C#Winform向WPF过渡入门(四)

为什么说样式设计很重要? 假设你直接在Grid里面创建3个样式完全相同的按钮,那,这3个按钮应该会出现在同样的位置。 从结论上讲,这3个按钮是相互独立的,当你设置了大小之后,无论如何一般都会居中。 但是你如果放到容器里,这些按钮就会有序排列了 好的,按照以上代码在设计器中的展现 ...

2020-09-13 14:28:24

182 reads

0 comments

OR C#Winform向WPF过渡入门(三)

常用的布局容器: Grid StackPanel WrapPanel DockPanel UniformGrid Grid Grid为WPF中最常用的布局容器,作为View中的主要组成部分,负责框架中整体的页面布局。 Grid.RowDefinitions:可以创建任意多行。 Grid.ColumnDefinitions:可以创建任意多列。 ShowGridLines:可以设置边距 ...

2020-09-13 00:21:03

151 reads

0 comments

OR C#Winform向WPF过渡入门(二)

这里要说一下,拖入一个Button控件的话,下面的XAML也会跟着自动生成一串标签代码,其中的Margin属性,是以坐标来定义按钮在MainWindow的位置的。 我们不应当这样用Margin="45,52,0,0"这种方式定义,因为在不同的设备上,窗口的大小,控件的位置应当采取相对值 ...

2020-09-12 22:33:42

173 reads

0 comments

OR C#Winform向WPF过渡入门(一)

事先声明: 需要先具有一定的HTML基础 后台都是C#,不用学 前台设计模式偏向于网页,使用XAML语言,偏向HTML5化 WPF继承了WinForm的拖拉拽特性,你可以像Winform那样开发,但不建议这样做 大体上还是XAML编程为主 WPF与Winform的区别: 取消了Program.cs里控制台启动 ...

2020-09-12 21:58:47

133 reads

0 comments

OR 【24岁,是DJ】模拟器 - 新企划案

嘛,今天出现这个需求,主要还是因为从 24岁,是DJ https://www.bilibili.com/video/BV1p5411a7nL 这个视频受到了启发。 其它灵感来自于: 抬 棺(加长版)丁 香 花 目力DJ 【邦邦连结?】在邦邦里演奏公主连结的OP吧! 于是,我想做一个【24岁,是DJ】模拟器 ...

2020-09-12 21:01:56

147 reads

0 comments

OR [公主连结Re:Dive]国服竞技场指南

写这个的主要原因还是pcrdfans用多了,发现,现在作业网没有答案,我就不会解了。长期不动脑子的结果…… 因此,为了防止思维僵化,还是特地去研究理解一下这个版本的某些角色的技能,同时记录一下JJC的要点。下面主要是记录一下,这个版本JJC的注意点,如果你充分理解了这些,理论上 ...

2020-09-12 13:30:36

191 reads

0 comments

OR [新手入门]C#关于Groupby到底如何使用?

可见group本视是一个集合,当里面的元素只有1个的时候,你还是得以foreach的方式取得name,具体实例见: 关于PCRArenaRecorder&Analyzer的概率分析相关逻辑代码 这里面已经FirstOrDefault()出来了,但还是得foreach,不然你只能得到key,得不到key所对用的内容 ...

2020-09-11 23:19:21

159 reads

0 comments

OR C#关于Newtonsoft.Json的基本使用案例

关于Newtonsoft.Json的基本使用案例 JObject类是最基础的类 实例:MessageBox.Show((string)obj["目录"]); 高级用法: 以百度OCR为例,先定义类 public class AccessTokenModel {public string log_id { get; set; }public int words_result_num{get ...

2020-09-11 23:04:56

175 reads

0 comments

OR PCRArenaRecorder&Analyzer版本更新日志

2020年09月11日 版本号:v1.1.1.200911_beta 相关改动: 增加了历史记录查询 修复了概率分析的相关BUG 填充了更多的自写解法 2020年09月09日 版本号:v1.1.0.200909_beta 相关改动: 增加解法查询(暂时次数限制)[自写数据库] 去除了CefSharp浏览器控件(chromium内核) 缩小了安装包 ...

2020-09-11 15:32:31

315 reads

1 comments

OR 关于PCRArenaRecorder&Analyzer的概率分析相关逻辑代码

嘛,这次为了把分析器写好写对,真的是吃了不少苦头,都怪我一开始数据库设计弱耦合(×)无关联(√)角色与图片的关系,现在好了,数据库设计简单了,代码就复杂了……讲真,当出现  的那一刻,我都打算阉割了这个Analyzer功能,干脆直接叫Recorder算了。但是 ...

2020-09-11 01:14:47

161 reads

0 comments

OR C#Winform使用 .NET FrameworkCore出现Client side GroupBy is not supported 怎么办?

System.InvalidOperationException:“Client side GroupBy is not supported.” 客户端不支持GroupBy语句。 事故现场:具体报错:解决方案: 解决方案: 先在内存里面开辟一个空间用来存储List。 即在GroupBy之前,添加ToList()方法。 参考答案来源于方案3,但这似乎看起来并不是长久之计 ...

2020-09-10 23:34:23

150 reads

0 comments

OR C#Winform之comboBox使用注意事项

要说comboBox,你要用的最多的两个属性应该是DisplayMember和ValueMember。 可今天呢,为了整这个两个属性,弄了好几次发现是“”,想来想去,才发现是SelectedIndex_Changed被触发了,而引发的错误。 举个例子 因为这里涉及到本地化的事情,在using里面的数据库 ...

2020-09-08 16:40:20

156 reads

0 comments