01 2024 档案

C# List.Sort 方法可能自己比较自己
摘要:最近代码突然报错 如下: pps = pps.Sort((t0, t1) => { var c = t0.Variety.DeliveryYearMonth.CompareTo(t1.Variety.DeliveryYearMonth); if (c != 0) return c; c = (t0. 阅读全文

posted @ 2024-01-26 17:07 norsd 阅读(3) 评论(0) 推荐(0) 编辑

Visual Studio build Linux ValidateSources FAILED
摘要:当编译Linux的程序时, VC会把所有引用的文件复制到Remote, 在这之前,他将做 ValidateSources 检查文件是否正常。如果你引用的文件被移动或者删除,将产生这个错误。 例如: 1>Target _ValidateSources: 1> Using "ValidateSource 阅读全文

posted @ 2024-01-26 17:06 norsd 阅读(11) 评论(0) 推荐(0) 编辑

Python min/max 返回index
摘要:Reference: https://stackoverflow.com/questions/2474015/getting-the-index-of-the-returned-max-or-min-item-using-max-min-on-a-list values = [3,6,1,5] in 阅读全文

posted @ 2024-01-24 10:38 norsd 阅读(6) 评论(0) 推荐(0) 编辑

CentOS 设置DNS
摘要:修改对应网卡的DNS的配置文件 vi /etc/resolv.conf 修改以下内容 nameserver 8.8.8.8 #google域名服务器 nameserver 8.8.4.4 #google域名服务器 REF: http://blog.csdn.net/iamfafa/article/d 阅读全文

posted @ 2024-01-23 18:04 norsd 阅读(8) 评论(0) 推荐(0) 编辑

Linux Centos 确定端口被占用
摘要:在终端窗口输入 netstat -tln | grep + 被占用的端口命令 netstat -tln netstat -tln | grep 9090 输入lsof -i :+被占端口命令,回车后可查看端口被哪个进程占用 lsof -i:9090 REF: https://blog.csdn.ne 阅读全文

posted @ 2024-01-09 18:13 norsd 阅读(25) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示