会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
喜爱糖葫芦
如果你的成功定义是超越别人,那么注定会失败,因为世上总有比你强的人,如果成功的定义是超越自己,那么真的只要努力就会成功。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
46
下一页
2024年4月19日
WPF项目使用日志
摘要: 提问 WPF项目如何使用日志 回答 引入nuget log4net 加入配置特性 [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are locat
阅读全文
posted @ 2024-04-19 13:21 东百牧码人
阅读(116)
评论(0)
推荐(0)
2024年4月17日
influxdb查询如何指定时区
摘要: 提问 influxdb查询如何指定时区 回答 import "timezone" option location = timezone.location(name: "America/Los_Angeles") 参考 https://www.influxdata.com/blog/time-zone
阅读全文
posted @ 2024-04-17 14:13 东百牧码人
阅读(393)
评论(0)
推荐(0)
2024年4月11日
vs code 如何将markdown导出word
摘要: 提问 vs code 如何将markdown导出word 回答 安装 运行 Ctrl + ` pandoc myfile.md -o myfile.docx
阅读全文
posted @ 2024-04-11 09:05 东百牧码人
阅读(1995)
评论(0)
推荐(0)
2024年4月1日
C# 时间戳转时间
摘要: 提问 C# 如何时间戳转时间 回答 string id = TimeZoneInfo.Local.Id; DateTime start = new DateTime(1970, 1, 1) + TimeZoneInfo.Local.GetUtcOffset(DateTime.Now); DateTi
阅读全文
posted @ 2024-04-01 10:08 东百牧码人
阅读(84)
评论(0)
推荐(0)
2024年3月28日
如何设置服务恢复
摘要: 提问 如何设置服务恢复 回答 sc.exe failure 服务名 reset=0 actions=restart/60000/restart/60000/restart/60000
阅读全文
posted @ 2024-03-28 11:56 东百牧码人
阅读(18)
评论(0)
推荐(0)
2024年3月27日
vscode markdown创建目录
摘要: 提问 vscode 如何 markdown创建目录 回答 1.安装插件 ctrl + shift + p 选择 create toc命令
阅读全文
posted @ 2024-03-27 08:25 东百牧码人
阅读(80)
评论(0)
推荐(0)
2024年3月22日
git 提交后没push想撤回怎么办
摘要: 提问 git 提交后没push想撤回怎么办 回答 git reset 命令分为两种: git reset –-soft 与 git reset –-hard ,区别是: 前者表示只是改变了HEAD的指向,本地代码不会变化,我们使用git status依然可以看到,同时也可以git commit提交。
阅读全文
posted @ 2024-03-22 10:15 东百牧码人
阅读(41)
评论(0)
推荐(0)
2024年3月21日
WPF 添加系统托盘
摘要: 提问 WPF 如何添加系统托盘 回答 1.引入nuget handycontrol cs xmlns:hc="https://handyorg.github.io/handycontrol" 2.窗体添加控件 cs <hc:NotifyIcon x:Name="NotifyIconContextCo
阅读全文
posted @ 2024-03-21 09:00 东百牧码人
阅读(368)
评论(0)
推荐(0)
2024年3月19日
如何避免任务重复执行
摘要: 提问 如何避免任务重复执行 回答 public readonly SemaphoreSlim semaphore = new(1); semaphore..Wait(); //do something ... //做完了 semaphore.Release(); 参考 https://learn.m
阅读全文
posted @ 2024-03-19 15:20 东百牧码人
阅读(10)
评论(0)
推荐(0)
2024年2月22日
10进制转16进制再转2进制
摘要: 提问 如何 10进制转16进制再转2进制 回答 static int HexString2BinString(object value, int index, int length) { try { if (int.TryParse(value.ToString(), out int intValu
阅读全文
posted @ 2024-02-22 13:32 东百牧码人
阅读(18)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
46
下一页
公告