01 2021 档案
摘要:1. pretty format 步骤: (1) 使用 Hutool jar 的 XmlUtil.parse(xmlStr) 生成Document对象 (2) XmlUitil.toStr() 将该Document转成pretty format的XML 字符串 2. 将xml 字符串转成一个行 首先
阅读全文
摘要:Java中, 经常会碰到这样一个设计, 一个类需要外部传入一个List<Shape> 泛型List属性, 这样就可以在不同使用场景中传入不同的List, 可能会传入 List<Circle>, 也可以会传入 List<Rect>. 虽然Circle 类是Shape类的子类, 但 List<Circl
阅读全文
摘要:Quartz.Net 有两类配置文件, 1. Quartz.系统级别配置, 默认配置文件名为 quartz.config , 是java properties 格式的配置文件, 用来设定 quartz 整体行为, 比如 scheduler instance id, 线程池大小, jobstore类型
阅读全文
摘要:Linux 的 kill 命令可以支持优雅关进程, windows 没有内置这样的工具, 只是支持Ctrl+C 方式来优雅关闭当前console 创建程序. 但这不适合于自动化运维, 没法 shutdown 批处理脚本, 下面这个工具能很好支持这点. https://github.com/alird
阅读全文
摘要:http://labelary.com/viewer.html
阅读全文
摘要:Avoiding Memory Leaks in Objects http://www.vbi.org/Items/article.asp?id=106 In this article, I will discuss the potential memory leak that can occur
阅读全文
摘要:下载 windbg 搜索 windbg 官网, http://windbg.org/windbg 工具包含在 Windows Software Development Kit (SDK) 中, 所以要下 windows SDK. 我的操作系统系统 win7, 所以下的是 win7版本 SDK, 下载
阅读全文
摘要:上图共5个代码提示命令: 1. Code template completion: 模版框架代码提示, 比如 try exception 框架代码2. Word completion: IDE先收集项目中涉及到的标示符/函数名, 以及注释中的单词, 对当前输入字符做提示.3. Identifier
阅读全文
摘要:周末看到"有来有趣" 写的Pascal游戏开发入门博客, 想起大学时期用Turbo C开发俄罗斯方块,看看以后有没有时间使用 FreePascal 和 C# 重制一下. C# 游戏引擎比较多, 但主流是 unity; Pascal 原生游戏引擎也就是Castle Engine 一个活跃, 支持2D/
阅读全文
摘要:http://www.tingroom.com/
阅读全文