摘要:
set @suffix := (SELECT DATE_FORMAT(now(), '%Y_%m_%d')); SET @x := CONCAT('select * from alarm_',@suffix) ; Prepare stmt FROM @x; Execute stmt; 阅读全文
摘要:
1 在项目目录下新建version.bat 粘贴以下内容 将svnurl 换成自己的仓库地址 @echo off for /f "delims=" %%i in ('date /t') do set d=%%i for /f "delims=" %%i in ('time /t') do set t 阅读全文
摘要:
程序启动了一会 送了一张图 dump是这样的 *** Aborted at 1612622285 (unix time) try "date -d @1612622285" if you are using GNU date *** @ 0x743dfd98 raise @ 0x743dc535 _ 阅读全文
摘要:
find . \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -exec wc -l {} + 阅读全文
摘要:
1 下载喜欢的图标到工程目录 2 在相同目录新建文本文件 增加以下内容,并修改后缀为 logo.rc IDI_ICON1 ICON DISCARDABLE "car.ico"3 打开vcproj文件增加以下内容 <ItemGroup> <ResourceCompile Include="logo.r 阅读全文
摘要:
grpc客户端断线重连使用backoff机制 重连间隔越来越长 可以通过参数指定相关参数 相关参数: https://grpc.github.io/grpc/core/group__grpc__arg__keys.html#gad7d9d143858d8f5e138cf704b0082973 相关代 阅读全文
摘要:
1 没有调用start方法 2 SLOT(xxx) 槽函数xxx没带括号 应该是 connect(timer, SIGNAL(timeout()), this, SLOT(xxx())); 3 槽函数未声明为槽函数 4 事件循环没有机会执行事件 无限循环中可以调用QApplication::Proc 阅读全文
摘要:
将以下两个禁用掉 完整管理员权限 https://superuser.com/questions/1002262/run-applications-as-administrator-by-default-in-windows-10 参考: https://answers.microsoft.com/ 阅读全文
摘要:
for file in *.png; do mv "$file" "${file%.png}_3.6.14.png" done for file in `find -name "*.old"` ; do mv ${file} ${file%.old}; done; 使用find -exec find 阅读全文
摘要:
for file in `find . -type f -name "*.hpp"`; do mv "$file" "$file.old" && iconv -f GB2312 -t UTF-8 < "$file.old" > "$file" && rm -rf "$file.old" done 参 阅读全文