上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页

2023年5月10日

C# .Net Core 合并PDF文件

摘要: 使用 PdfSharpCore nuget包 代码实现 using Microsoft.AspNetCore.Razor.TagHelpers; using PdfSharpCore.Pdf; using PdfSharpCore.Pdf.IO; using System; using System 阅读全文

posted @ 2023-05-10 10:34 糯米白白 阅读(635) 评论(0) 推荐(0)

C# PDFSharp No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.

摘要: 在.Net Core框架使用PdfSharp插件时出现问题 需要装Core版的PdfSharp PdfSharpCore 阅读全文

posted @ 2023-05-10 10:28 糯米白白 阅读(540) 评论(0) 推荐(0)

2023年5月5日

Linux下查找Nginx配置文件位置

摘要: 1、查看Nginx进程 ps -aux | grep nginx 圈出的就是Nginx的二进制文件 2、测试Nginx配置文件 /usr/sbin/nginx -t 可以看到nginx配置文件位置 3、nginx的使用(启动、重启、关闭) 首先利用配置文件启动nginx。 nginx -c /usr 阅读全文

posted @ 2023-05-05 14:32 糯米白白 阅读(7748) 评论(0) 推荐(0)

2023年5月4日

fatal: unable to access 'xxx': Failed to connect to 127.0.0.1 port xxx: Connection refused

摘要: Git 拉取Gitee仓库报错:“fatal: unable to access 'xxx': Failed to connect to 127.0.0.1 port xxx: Connection refused” 之前使用了代理导致git访问错乱 1.本地查看是否Git使用了代理 git con 阅读全文

posted @ 2023-05-04 16:26 糯米白白 阅读(245) 评论(0) 推荐(0)

unix:///var/run/supervisor/supervisor.sock no such file

摘要: 问题 unix:///var/run/supervisor/supervisor.sock no such file 原因 使用过程中可能是因为机器宕机,supervisor没有正常关掉,导致/var/run目录下supervisor.sock文件被删除,找不到所以失败报错unix:///var/r 阅读全文

posted @ 2023-05-04 11:39 糯米白白 阅读(863) 评论(0) 推荐(0)

2023年4月21日

C# 中判断字符是否大写

摘要: 在C#中,通常判断一个字符是否为大写字母,有些人可能会第一时间想到用正则表达式,那除了正则表达式,是否还有其他方式呢? 答案是肯定的,先一睹为快,具体代码如下: using System; using System.Collections.Generic; using System.Linq; us 阅读全文

posted @ 2023-04-21 09:53 糯米白白 阅读(284) 评论(0) 推荐(0)

2023年4月20日

VS中添加自定义代码片段

摘要: https://www.cnblogs.com/yuehouse/p/9892705.html 阅读全文

posted @ 2023-04-20 14:14 糯米白白 阅读(17) 评论(0) 推荐(0)

2023年4月19日

C# 获取泛型的名称

摘要: ``` // 获取类型名称 public void GetClassName() { // 打印结果:ClassName Console.WriteLine(typeof(T).Name); } // 获取类型完全名称 public void GetClassAllName() { // 打印结果: 阅读全文

posted @ 2023-04-19 14:27 糯米白白 阅读(72) 评论(0) 推荐(0)

2023年4月18日

Windows下 Elasticsearch 0基础安装

摘要: 1.java jdk 1.8以上 安装 https://www.oracle.com/java/technologies/downloads/#jdk20-windows 2.Elasticsearch 7.6 安装 https://elasticsearch.cn/download/ 3.Elas 阅读全文

posted @ 2023-04-18 17:48 糯米白白 阅读(30) 评论(0) 推荐(0)

2023年3月31日

C# DataTable 操作汇总

摘要: 一、某一列求和 1. 列为数字类型 `double total= Convert.ToDouble(datatable.Compute("SUM(需要求和的参数)", ""));` 2.列为string 类型 先转为数字类型 再求和 (遇到是采用了这个方法) 会报错,加using System.Li 阅读全文

posted @ 2023-03-31 16:59 糯米白白 阅读(1938) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页

导航