Using Apache POI library to read contents from old Microsoft .doc file, including paragraphs and tables in order. Figure out a workaround to the strange situation that HWPFDocument eats or swallows some characters and beeps.
How to extract XML data from the XFA form using Java with iText7
What is the XFA form? First, you need to know there are two types of PDF forms, XFA, and Acroform. (See the doc) Acroform is an old interactive form technology by Adobe, but it is more commonly used and supported by many third-party software. XFA is newer than Acroform, it's…
Windows 系统过多的安全日志归档文件 (Archive-Security-yyyy.evtx) 占用硬盘空间
如何在 Windows 服务器关闭 安全日志归档,关闭事件 ID 5156 的审核成功记录。
TransferDog 开源发布 🎉
TransferDog 是使用 python 与 pyside6 写的一个文件传输程序。 地址:https://github.com/funway/TransferDog
PySide6 实现 Qt 程序的多语言
1 在源码中事先准备好字符串 对于要进行多语言翻译的字符串,需要在 coding 的时候使用 QCoreApplication.translate() 或者 QObject.tr() 这两个静态方法预埋好“翻译入口”。 如下图所示: 当程序运行时,这两个方 ...
如何实现 "Reveal in Finder" 的功能
Sublime、VSCode 这些编辑器都有一个 "Reveal in Finder" 的功能(macOS 是 Finder, Windows 下是 "Reveal in Explorer", Linux 下是 "Open Containing Folde ...
使用 QLocalSocket 与 QLocalServer 实现程序的单实例运行。
之前在 这篇文章 中,曾用 QSharedMemory 实现了 QT 程序的单实例运行。 除此之外,还有一种方式是使用 QLocalSocket 与 QLocalServer 实现。 与 QSharedMemory 相比,QLocalSocket 更麻烦一 ...
SQLServer 重置表的自增值
1 简单语句 1.1 查询自增值 SELECT IDENT_CURRENT('TABLE_NAME') 1.2 重置自增值 DBCC CHECKIDENT('TABLE_NAME', reseed, 10086) // 将表 TABLE_NAME 的自增 ...
Qt: border-radius of page in QToolBox are broken —— QToolBox 中 page 的圆角边框无法闭合问题排查
1 异常现象 今天用到了 QToolBox,然后想给每个 page 添加圆角边框,于是使用了如下 stylesheet QToolBox > QWidget { border: 1px solid silver; border-radius: 6px ...