摘要: /// <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 阅读(716) 评论(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月29日
摘要: 来源:https://mp.weixin.qq.com/s/LqFX32Cb4YeEQMOBYr23jQ 在遇到执行方法需要返回多个值的情况时(比如去数据库查一个值,要同时返回数据库查询耗时),可以使用以下方式实现: 1、使用 Tuples C# 中的元组提供了一种返回多个值的方法,而无需定义新的类 阅读全文
posted @ 2024-04-29 17:09 z5337 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 来自:阿里的 通义灵码 要确保在Java中同一方法被多个线程同时调用时,只有其中一个成功执行,可以采用几种并发控制策略。以下是几种实现方式: 1. 使用ReentrantLock的tryLock() import java.util.concurrent.locks.ReentrantLock; p 阅读全文
posted @ 2024-04-29 16:00 z5337 阅读(2) 评论(0) 推荐(0) 编辑
  2024年4月28日
摘要: 来自:阿里的 通义灵码 以下是几种常见的复制数据类型到剪切板的方法: 复制文本到剪切板 using System.Windows.Forms; // 对于Windows Forms应用 // 或者 using System.Windows; // 对于WPF应用 public void CopyTe 阅读全文
posted @ 2024-04-28 09:29 z5337 阅读(1) 评论(0) 推荐(0) 编辑
  2024年4月24日
摘要: 转自:阿里的 通义灵码 在 https://blog.csdn.net/yao_hou/article/details/134431366 需要付费阅读,所以从 阿里的 通义灵码 来寻找答案: WPF 中的 ContentControl 和 ContentPresenter 虽然都涉及内容展示,但它 阅读全文
posted @ 2024-04-24 10:10 z5337 阅读(5) 评论(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 阅读(3) 评论(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 阅读(6) 评论(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 阅读(7) 评论(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) 编辑