guangmingwan

Results 6 comments of guangmingwan

嘿嘿,拿了这个模块用在我的app,我把updater.cs翻译成了c++版本的,效果一样,好处是不依赖.net。 `//updater.cpp //编译命令:cl -nologo -EHsc -GR -Zc:forScope -Zc:wchar_t -Feupdater /MANIFESTUAC:NO updater.cpp #define _WIN32_WINNT 0x0500 #include #include #include #include #include #include #pragma comment(linker, "\"/manifestdependency:type='win32' \ name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")...

pageSizeObj.width = 2250 / 89.0 * 25400; // 这个dpi应该是96,但是可能谷歌pdf的bug,89刚好充满1页,96就会生成两页。 pageSizeObj.height = 1540 / 89.0* 25400; var pageSize = JSON.stringify(pageSizeObj) // 单位是微米 microns const jobOptions = { inMemory: false } const...

mysql的话可以加事务避免出现僵尸锁,测试过,拔网线和杀死worker都能避免,talk is cheap ,show my code: RootJob.cs的Execute改造: ``` public async Task Execute(IJobExecutionContext context) { IJobDetail job = context.JobDetail; if (job.JobDataMap["instance"] is IHosSchedule instance) { _sid = Guid.Parse(context.JobDetail.Key.Name); using (var scope...

you need do 1) /usr/libexec/PlistBuddy -x -c 'Print :Entitlements' /dev/stdin