会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晨光静默
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
下一页
2021年4月12日
linux服务器时间不同步问题
摘要: 客户莫名说终端程序一开机就关机,轮着几台都这种现象。 排查终端机开机额外启动任务处理,应该是后端下发命令执行了关机 排查后台一开始没看出哪里问题,后面打印系统时间发现竟然是一个"EDT",问题就明了是由于服务器时间未同步的原因。 原始date命令的时间: 解决步骤: # mv /etc/localt
阅读全文
posted @ 2021-04-12 14:40 晨光静默
阅读(1002)
评论(0)
推荐(0)
2021年1月21日
angular元素引用
摘要: 在js函数中引用angular对象: function AdapterEnable(){ $('#AdapterBtn').attr("disabled", false); var appElement = document.querySelector('[ng-controller=myCtrl]
阅读全文
posted @ 2021-01-21 16:01 晨光静默
阅读(198)
评论(0)
推荐(0)
2021年1月8日
curl记录
摘要: curl_easy_setopt(curl, CURLOPT_HEADER, 0L); curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_POST, 1); curl_easy_setopt(curl,
阅读全文
posted @ 2021-01-08 09:52 晨光静默
阅读(190)
评论(0)
推荐(0)
2020年12月10日
创建目录
摘要: /* 功能:创建多级目录 参数:dir必须是绝对路径 调用: char dir[] = "E:\\Demo\\Folder\\subFolder\\my2\\test.png"; char dir[] = "E:\\Demo\\Folder\\subFolder\\my2\\"; char dir[
阅读全文
posted @ 2020-12-10 14:42 晨光静默
阅读(248)
评论(1)
推荐(0)
2020年12月2日
获取时间字符串
摘要: void SDlg::OnBnClickedBtnFull() { this->ShowWindow(SW_MINIMIZE); Sleep(1000); int width = GetSystemMetrics(SM_CXSCREEN); int height = GetSystemMetrics
阅读全文
posted @ 2020-12-02 15:10 晨光静默
阅读(306)
评论(0)
推荐(0)
2020年11月2日
Visual Assist代码高亮突然失效
摘要: visual assist正常都用好好的,最近在win10系统下突然无效,全是黑色的。可以尝试下面方法看看: win10也是安装了Visual+Assist+X+for+vs2010(安装碰到系统函数没有颜色高亮,打开vc6的tools->options->format-category[All W
阅读全文
posted @ 2020-11-02 09:25 晨光静默
阅读(925)
评论(0)
推荐(0)
2020年10月19日
win7系统软件设置启动项后开机无法自动启动?
摘要: win7系统软件设置启动项后无法开机自动启动解决方法: 1、将软件快捷方式放入启动项后点击开始 2、在开始界面搜索本地安全策略 3、在本地安全策略点击本地策略 4、点击安全选项 5、禁用:以管理员批准模式运行所有管理员、用于内置管理员账户的管理员批准模式功能 https://jingyan.baid
阅读全文
posted @ 2020-10-19 15:57 晨光静默
阅读(2465)
评论(0)
推荐(0)
2020年10月15日
运行时隐藏窗口
摘要: public Form1() { InitializeComponent(); //运行隐藏 //this.WindowState = FormWindowState.Minimized; //this.ShowInTaskbar = false; //SetVisibleCore(false);
阅读全文
posted @ 2020-10-15 19:28 晨光静默
阅读(154)
评论(0)
推荐(0)
禁止多实例运行
摘要: static void Main() { #if false Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); /
阅读全文
posted @ 2020-10-15 19:26 晨光静默
阅读(151)
评论(0)
推荐(0)
写日志文件
摘要: bool WriteTxtFile(string filename, string content) { bool bRet = false; FileStream fs = null; StreamWriter sw = null; try { FileInfo fi = new FileInfo
阅读全文
posted @ 2020-10-15 19:07 晨光静默
阅读(130)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告