摘要: /// <summary> /// MD5函数 /// </summary> /// <param name="str">原始字符串</param> /// <returns>MD5结果</returns> public static string MD5(string str) { byte[] 阅读全文
posted @ 2019-07-09 08:11 z5337 阅读(348) 评论(0) 推荐(0) 编辑
 
摘要: 转自:http://billie66.github.io/TLCL/book/chap05.html Be Careful With rm ! 小心 rm ! Unix-like operating systems such as Linux do not have an undelete comm 阅读全文
posted @ 2018-11-30 09:47 z5337 阅读(712) 评论(0) 推荐(0) 编辑
 
摘要: 开机启动文件夹:C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Windows Server 2012 R2 显示 这台电脑 图标方法: 来自:https://jingyan.b 阅读全文
posted @ 2017-05-02 14:35 z5337 阅读(247) 评论(12) 推荐(0) 编辑
 
摘要: 2016年6月23日11时22分09秒 6 新增 win10 禁用全半角切换:https://www.10qianwan.com/articledetail/84784.html -2. text-overflow:ellipsis 显示省略符号来代表被修剪的文本。 常用 css 本样式在:http 阅读全文
posted @ 2015-09-11 22:38 z5337 阅读(479) 评论(4) 推荐(0) 编辑
  2024年4月24日
摘要: 转自:阿里的 通义灵码 在 https://blog.csdn.net/yao_hou/article/details/134431366 需要付费阅读,所以从 阿里的 通义灵码 来寻找答案: WPF 中的 ContentControl 和 ContentPresenter 虽然都涉及内容展示,但它 阅读全文
posted @ 2024-04-24 10:10 z5337 阅读(2) 评论(0) 推荐(0) 编辑
  2024年4月23日
摘要: 转自:https://blog.csdn.net/weixin_44828157/article/details/127723188 在 application.yml 中添加以下配置即可: spring: cloud: nacos: config: enabled: false refresh-e 阅读全文
posted @ 2024-04-23 10:48 z5337 阅读(1) 评论(0) 推荐(0) 编辑
  2024年4月17日
摘要: GridSplitter 控件类似于 Winform 里的 SplitContainer 控件(个人认为更像 Splitter),用来将 上下 或者 左右 两个区域可以拖动改变大小 参考:https://www.cnblogs.com/dagedan/archive/2012/10/26/27411 阅读全文
posted @ 2024-04-17 14:20 z5337 阅读(3) 评论(0) 推荐(0) 编辑
  2024年4月15日
摘要: 转自:https://blog.csdn.net/u010730731/article/details/104840616 在退出 IDEA 时,如果遇到类似下图的弹窗,建议选择 Terminate [中止] 另一个选项 Disconnect [断开连接] 意味着只是退出 IDEA ,后台进程里仍停 阅读全文
posted @ 2024-04-15 16:23 z5337 阅读(2) 评论(0) 推荐(0) 编辑
  2024年4月1日
摘要: 参考:https://blog.csdn.net/yuanwow/article/details/122765998 在服务器上勾上 ASP.NET 4.5 的勾,然后执行: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.ex 阅读全文
posted @ 2024-04-01 11:06 z5337 阅读(5) 评论(0) 推荐(0) 编辑
  2024年3月28日
摘要: 在 SQL Server 里面,定义 GUID 类型的字段是: uniqueidentifier 生成一个全是 0 组成的 GUID 的写法是: cast(cast(0 as binary) as uniqueidentifier) 生成一个随机的 GUID 的写法是: SELECT NEWID() 阅读全文
posted @ 2024-03-28 14:39 z5337 阅读(3) 评论(0) 推荐(0) 编辑
  2024年3月23日
摘要: public static class EnumHelper { public static Array GetValues(Type enumType) { return Enum.GetValues(enumType); } public static short GetEnumMaxValue 阅读全文
posted @ 2024-03-23 03:08 z5337 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 来自:https://learn.microsoft.com/zh-cn/dotnet/desktop/wpf/data/?view=netdesktop-6.0&redirectedfrom=MSDN Windows Presentation Foundation (WPF) 中的数据绑定为应用呈 阅读全文
posted @ 2024-03-23 01:58 z5337 阅读(15) 评论(0) 推荐(0) 编辑
  2024年3月22日
摘要: 来自:阿里的 通义灵码 在C#中,单例模式实现线程安全时通常会采用双重检查锁定(Double-Checked Locking, DCL)的策略来确保只创建类的一个实例,并且这个过程是线程安全的。 两层lock的设计是为了减少获取锁的开销,尤其是当类的实例已经被初始化的情况下。 以下是一个使用双重检查 阅读全文
posted @ 2024-03-22 17:37 z5337 阅读(6) 评论(1) 推荐(0) 编辑
摘要: // 优化1: 直接检查集合是否为空或null List<SaveDataResult> data = list.getData() != null ? list.getData() : List.of(); if (data.isEmpty()) { return; // 如果数据为空,直接返回 阅读全文
posted @ 2024-03-22 14:58 z5337 阅读(3) 评论(0) 推荐(0) 编辑