原创 ubuntu19 網絡無法連接,界面上網絡顯示Wired unmanaged

The solution is: Edit /etc/NetworkManager/NetworkManager.conf (needs to be done with sudo) changing the line managed=fa

原创 製作vim-IDE及其快捷鍵總結--Ubuntu

Ubuntu IDE 配置:https://github.com/DamZiobro/vim-ide.git 快捷鍵: <leader>cc 註釋一行 <leader>cu 取消註釋 <leader>ud 更新ctags <leader

原创 C11 寬字節轉爲多字節實現

BOOL WStringToString(const std::wstring &wstr,std::string &str) {    typedef std::codecvt<wchar_t,char,std::mbstate_t>

原创 centos7 設置LANG後中文依然亂碼

http://www.centoscn.com/CentosBug/osbug/2015/0313/4873.html [root@localhost ~]# cat /etc/locale.conf  LANG=e

原创 cenos7上如何安裝Mysql

About MySQL MySQL is an open source database management software that helps users store, organize, and retrieve data.

原创 future::get() 拋出異常Unknown error -1

系統:centos7 語言:c++ 測試代碼:a.cpp #include <list> #include <future> using namespace std; list<int> f(list<int> l) { return

原创 虛擬機中centos6聯網和聯宿主機設置

我的設置和步驟: 1. 在VMware中設置中設置網絡適配器爲橋接模式。 2.在centos中終端輸入sudo setup調出設置界面,並選擇網絡設置(network configuration)--> device configurat

原创 win32 DLL庫加載失敗之.def文件沒設置輸入到DLL中

環境:VS2010 設置:.dll與.exe在同一個目錄下 問題:LoadLibrary(_T("***.dll"));返回空句柄 dll調用代碼: #include "stdafx.h" #include "math.h" typede

原创 忘記root密碼後如何重置(linux)

系統:centos 5 重置步驟: 1. 重啓系統,並在讀秒時按任意鍵,進入界面(圖一)。 2. 按e進入界面(圖二),並選中Kernel行。 3. 按e進入界面(圖三),在行尾輸入single後,按回車鍵。 4. 按b鍵後等待系統啓動。

原创 Winodws刪除目錄失敗--查找文件句柄沒有關閉

平臺:Windows 項目類型:MFC 問題現象:點擊掃描按鈕後,刪除所有文件和文件所在目錄(舉例:c:\temp),再次加載文件(文件要被保存的此目錄),軟件崩潰 問題原因:點擊掃描按鈕時,代碼中進行目錄(舉例:c:\temp)下文件查

原创 linux下svn常用指令

一下內容轉載於:http://blog.chinaunix.net/space.php?uid=22976768&do=blog&id=1640924。這個總結的很好~ windows下的TortoiseSVN是資源管理器的一個插件,

原创 在GDB中查看 C/C++ Unicode文本變量內容(wchar_t*)

#include <wchar.h> int main() {     const char* szAnsi = "The EF programming language is a general-purpose, simple,

原创 標準文件對話框擴展

1. 添加對話框資源IDD_DIALOG1; 2. 添加MFC類,繼承自CFileDialog。 3.更改新加類構造函數如下: m_ofn.Flags |= OFN_EXPLORER |  OFN_ENABLETEMPLATE| OFN_