原创 中文標點UTF-8編碼
UTF-8 中文標點 Unicode 0b7 · 183 00d7 × 215 2014 — 8212 2018 ‘ 8216 2019 ’ 8217 201c
原创 ubuntu 轉碼工具 enca
#apt-get install enca #enca -f yourFileName.txt //查看文件自身編碼方式 #enca -L zh_CN -x utf-8 yourFileName.txt //改變文件自身編碼
原创 eclipse cdt 使用手記
F5 單步調試,遇到函數,進入 F6 單步調試,遇到函數,將其作爲一行執行,不進入 F7 直接運行完本級函數,返回到上一級函數 F8
原创 mysql 中文亂碼
---------------------------------- show VARIABLES like 'character_%'; 你先查看
原创 漢字編碼範圍
原文地址:http://ir.hit.edu.cn/~taozi/bianma.htm 漢字編碼問題 由於常常要和漢字處理打交道,因此,我常常受到漢字編碼問題的困擾。在不斷的打擊與堅持中,也積累了一點漢字編碼方面的經驗,想和大
原创 sql server 2008 數據庫附加失敗 的 解決方案
出錯信息: 執行Transact-SQL語句或批處理時發生了異常。 無法打開物理文件“.MDF”.操作系統錯誤5:“5(拒絕訪問。)”。(Microsoft SQl Server,錯誤:5120) 問題分析: 數據庫使用的用戶,對數據
原创 kill qt bugs
錯誤:invalid use of incomplete type 'struct QGraphicsSceneMouseEvent' 錯誤:forward declaration of 'struct QGraphicsSceneMou
原创 hash_map 總結
GCC 編譯器 使用 hash_map: #include <ext/hash_map> using namespace __gnu_cxx; struct compare_str { bool operator()(
原创 多變量線性迴歸中的批量梯度下降法(Batch Gradient Descent in Linear Regression with Multiple Variable)
本文討論多變量線性迴歸中,批量梯度下降法的原理與。 1. 原理 =================================================================================== 在多
原创 Gradient Descent 0 - Feature Scaling
In Multiple Variable Linear Regression, the value ranges of different features vary greatly. It makes gradient descend
原创 Python 去英文標點
Python版本:3.4.1 >>> import re >>> punc = '[,.!\']' >>> data = 'a,b.c!d\'' >>> print (re.sub(punc, '', data)) abcd
原创 Qt 中使用全局變量
環境:Qt 4.7.4 1. 在全局頭文件 "global.h" 聲明 extern 變量 #ifndef GLOBAL_H #define GLOBAL_H extern int ItemFlag; #endif // GLOB
原创 局部變量與全局變量的困惑
昨天寫一段代碼,要加載一個20M的文本,結果竟然跑死了,最後報錯 terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_all
原创 C++ 獲取文件列表
適用於 Linux GNU C++,或 Windows Mingw-g++。不適用於 VC++ #include <sys/types.h> #include <dirent.h> #include <stdio.h> #include
原创 python 教程收集
vamei python快速教程 廖雪峯 python小白教程 hujiaw python數據結構與算法