会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
M1911
博客园
首页
新随笔
联系
订阅
管理
2023年4月19日
批处理按日期备份文件夹
摘要: @echo off set YYYYmmdd=%date:~0,4%%date:~5,2%%date:~8,2% set "filename=E:\download\bak\%YYYYmmdd%" if not exist %filename% mkdir %filename% xcopy.exe
阅读全文
posted @ 2023-04-19 11:13 M1911
阅读(85)
评论(0)
推荐(0)
编辑
2023年1月17日
c++ UTF8-GBK互转
摘要: inline std::string utf8_to_gbk(const std::string& str) { std::wstring_convert<std::codecvt_utf8<wchar_t>> conv; std::wstring tmp_wstr = conv.from_byte
阅读全文
posted @ 2023-01-17 09:26 M1911
阅读(1346)
评论(0)
推荐(0)
编辑
2023年1月13日
c++创建快捷方式
摘要: //封装的创建快捷方式API // szStartAppPath : 点击后启动的程序 // szAddCmdLine : 传给main函数的lpCmdLine // szDestLnkPath : 快捷方式的保存路径 // szIconPath : 快捷方式显示的图标 bool CreateLin
阅读全文
posted @ 2023-01-13 16:04 M1911
阅读(206)
评论(0)
推荐(0)
编辑
2022年8月31日
c#保存UTF8文件去除BOM
摘要: var encoding = new UTF8Encoding(false);
阅读全文
posted @ 2022-08-31 11:13 M1911
阅读(125)
评论(0)
推荐(0)
编辑
2022年8月3日
c++ 根据当前日期往前往后推算日期
摘要: // -1往前推1天 1往后推1天 int calc_date(int days) { struct tm tmin; struct tm tmout; SYSTEMTIME st; GetLocalTime(&st); tmin.tm_year = st.wYear - 1900; tmin.tm
阅读全文
posted @ 2022-08-03 15:15 M1911
阅读(262)
评论(0)
推荐(0)
编辑
2022年7月21日
修改nginx修改root目录后报403
摘要: 打开nginx.conf 修改第一行#user nobody ,去掉#,修改nobody为用户名
阅读全文
posted @ 2022-07-21 15:09 M1911
阅读(148)
评论(0)
推荐(0)
编辑
2022年6月23日
word中英文夹杂时中文间距很大的问题
摘要: 选择所有,右键段落,切换至中文版式,选择允许西文在单词中间换行
阅读全文
posted @ 2022-06-23 09:55 M1911
阅读(447)
评论(0)
推荐(0)
编辑
2022年6月18日
c++一条字符串有多个引号要转义
摘要: string str = "{\"id\":\"9527\",\"name\":\"zxx}"; 可以改成 string str = R"({"id":"9527","name":"zxx"})";
阅读全文
posted @ 2022-06-18 08:20 M1911
阅读(263)
评论(0)
推荐(0)
编辑
2022年6月17日
c++11 json解析库json.hpp
摘要: 地址 https://github.com/nlohmann/json 使用时,直接#include "json.hpp" 再using namespace nlohmann; string jsonStr = R"({"id": 1, "name":"vivo"})";//第2个参数是错误处理,第
阅读全文
posted @ 2022-06-17 18:18 M1911
阅读(1923)
评论(0)
推荐(0)
编辑
2022年5月13日
浏览器在线视频培训离开焦点后会停止播放
摘要: F12打开开发者工具,切换到控制台面板,输入下面代码并回车 setInterval(function () { var current_video = document.getElementsByTagName('video')[0] current_video.play()}, 1000)
阅读全文
posted @ 2022-05-13 14:10 M1911
阅读(381)
评论(0)
推荐(0)
编辑
下一页