生成流程图 flowchart.js 代码 ```flow st=>start: User login op=>operation: Operation cond=>condition: Successful Yes or No? e=>end: Into admin st->op->cond cond(yes)->e cond(no)->op 顺序图表 sequence-diagrams.js A->B: Message B->C: Message C-…
生成流程图 flowchart.js 代码 ```flow st=>start: User login op=>operation: Operation cond=>condition: Successful Yes or No? e=>end: Into admin st->op->cond cond(yes)->e cond(no)->op 顺序图表 sequence-diagrams.js A->B: Message B->C: Message C-…
生成流程图 flowchart.js 代码 ```flow st=>start: User login op=>operation: Operation cond=>condition: Successful Yes or No? e=>end: Into admin st->op->cond cond(yes)->e cond(no)->op ` `` st=>start: User login op=>operation: Operation cond…
After the program is closed, the port is already in use. Using netstat -npla | grep {port_number} you can see the occupied port and process ID, but using kill prompts that the process cannot be found. 1. Forcefully kill the process occupying the port sudo fuse…
程序关闭后,端口已经被占用,使用 netstat -npla | grep {端口号} 可以看到被占用的端口及进程号,但是使用 kill 却提示找不到进程。 1、强制杀死该端口进程 sudo fuser -k -n tcp 80 2、根据PID关闭某个被占用的端口 netstat -tunlp | grep 80 lsof -i:80 sudo kill -9 PID [......] 继续阅读
Using JSON to store time requires converting it to an object in the following format: 2019-12-06T17:15:52Z The 'Z' indicates the time zone. For example, to represent Beijing time: 2019-12-06T17:15:52+08:00 However, coordinating time conversions between the fro…
使用Json存储时间需要转为对象时, 要使用如下面的格式 2019-12-06T17:15:52Z Z 表示时区 使用示例: 表示北京时间 2019-12-06T17:15:52+08:00 但是前端、C#时间转换和数据库的时间处理,协调起来会比较麻烦,JSON和字符串转时间也会麻烦。 根据笔者的校验,建议使用 UNIX 时间戳 形式传递。 C# 快速将当前时间转换为时间戳的代码为(以秒为单位) (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) …
In asynchronous methods, you cannot directly use Thread.Sleep(1000); You should use await Task.Delay(1000); [......] 继续阅读
在需要分页的位置,输入 <div STYLE="page-break-after: always;"></div> 在导出PDF时即可分页。 [......] 继续阅读
在需要分页的位置,输入 <div STYLE="page-break-after: always;"></div> 在导出PDF时即可分页 [......] 继续阅读
.NET Core Using Sonarqube Issues Simple Way to Run Sonarqube docker run -d --name sonarqube -p 9000:9000 sonarqube The default username and password are admim After logging in, create a project and a token, and directly follow the prompt to select C#.NET. .NET…
.NET Core 使用 Sonarqube 问题 运行 Sonarqube 的简单方法 docker run -d --name sonarqube -p 9000:9000 sonarqube 默认账号密码是 admim 登陆后创建项目和 token,直接按照提示选择 C#.NET。 .NET Core 项目 先运行一下命令 dotnet tool install --global dotnet-sonarscanner .NET FX 项目 到这里下载最新版本的 工具 https://github.com/S…
Exploring char and string in C# [TOC] 1. System.Char Character char is an alias for System.Char. System.Char occupies two bytes, which is 16 binary bits. System.Char is used to represent and store a single Unicode character. The range of representation for Sys…
探究 C# 中的 char 、 string(一) [TOC] 1. System.Char 字符 char 是 System.Char 的别名。 System.Char 占两个字节,16个二进制位。 System.Char 用来表示、存储一个 Unicode 字符。 System.Char 的表示范围是 U+0000 到U+FFFF,char 默认值是 \0,即 U+0000。 Unicode 的表示,通常以 U+____形式表示,即 U 和 一组16进制的数字组成。 char 有四种赋值方法 char a = …
无法更新系统和软件 获取更新列表 apt list --upgradable 手动更新应用和解决依赖 sudo aptitude purge {software_name} 如果依赖无法解决, 依然使用上面的命令,选择 n [......] 继续阅读
无法更新系统和软件 获取更新列表 apt list --upgradable 手动更新应用和解决依赖 sudo aptitude purge {软件名称} 如果依赖无法解决, 依然使用上面的命令,选择 n [......] 继续阅读
Path.GetDirectoryName(typeof(OneClass).Assembly.Location) OneClass is a type within this DLL. Directory.GetCurrentDirectory() does not necessarily retrieve the location of the current DLL. [......] 继续阅读
Path.GetDirectoryName(typeof(OneClass).Assembly.Location) OneClass 是这个 dll 内的一个类型。 Directory.GetCurrentDirectory() 获取的不一定是当前 dll 的位置 [......] 继续阅读
st, sk, sp When stressed, st, sk, and sp undergo sound changes; At the beginning of words, st, sk, and sp change their sound, but at the end of words, they do not change their sound; Sound changes: skate, skill, square, stand, sport, speak, study No sound chan…