This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C++ 取得系统当前时间 | |
| #include <sysinfoapi.h> | |
| void logSysTime(const char* c) | |
| { | |
| char str[1024] = { 0 }; | |
| SYSTEMTIME sys; | |
| GetLocalTime(&sys); | |
| sprintf(str, "%s\tcurrent time:%02d:%02d:%02d.%03d", c, sys.wHour, sys.wMinute, sys.wSecond, sys.wMilliseconds); | |
| LOG4CPLUS_DEBUG(g_loger, str); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //以下两行代码解决修改座位号窗口鼠标丢失问题 | |
| mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); | |
| mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| svn图标不显示的解决方案 | |
| 最近发现svn图标莫名其妙的不显示,其他操作都正常。在网上搜了一些方法。 | |
| 解决方法一(失败): | |
| 升级最新版本,我的本来就是最新版本 | |
| 解决方法二(失败): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template <typename T> | |
| const bool contains( std::vector<T>& Vec, const T& Element ) | |
| { | |
| if (std::find(Vec.begin(), Vec.end(), Element) != Vec.end()) | |
| return true; | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://m.todgo.com/jingyan/shuma/2164046nca.html | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo chown -R Calcifer: /usr/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //采用CURLOPT_RESUME_FROM_LARGE 实现文件断点续传功能 | |
| #include <QtCore/QCoreApplication> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <sys/stat.h> | |
| #include <include/curl/curl.h> | |
| #pragma comment(lib,"libcurl.lib") | |
| //这个函数为CURLOPT_HEADERFUNCTION参数构造 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mac下一般用smb服务来进行远程文件访问,但要用FTP的话,高版本的mac os默认关掉了,可以用如下命令打开: | |
| sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist | |
| 相应的,要关闭则: | |
| sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VA Options: | |
| Suggestions-Include suggestions in listboxes | |
| -Include VA Snippets in listboxes | |
| Resharper Options: | |
| Environment-IntelliSense-General-Custon IntelliSense |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "mysqltable.h" | |
| #include <QtGui> | |
| #include <QtSql> | |
| #include <QTableView> | |
| #include <QMessageBox> | |
| #include <iostream> | |
| #include <QFileDialog> | |
| MysqlTable::MysqlTable(QWidget *parent) | |
| : QMainWindow(parent) |