日志
-
2016-02-26 09:16
-
要想突破瓶颈,让你的程序设计水平再前进一步,需要更高的英文阅读水平。英语水平的提高需要日积月累,让我们从基础做起,天天来扇贝打卡吧!学习英文不仅仅能提高你的技术水平,打开一扇窗,欣赏窗外更美丽的景色。请接受我的邀请吧(http://www.shanbay.com/referral/ref/9e54b69ab8/)
阅读全文»分类:新闻|回复:0|浏览:1340
-
2013-12-13 09:45
-
用Qt5.2编译一个在Qt5.1.1下能正常编译的程序,出现如下链接错误
阅读全文»分类:默认分类|回复:3|浏览:3222
/usr/bin/ld: cannot find -lxslt
/usr/bin/ld: cannot find -lgio-2.0
/usr/bin/ld: cannot find -lgstapp-0.10
/usr/bin/ld: cannot find -lgstinterfaces-0.10
/usr/bin/ld: cannot find -lgstpbutils-0.10
/usr/bin/ld: cannot find -lgstvideo-0.10
/usr/bin/ld: cannot find -lgstbase-0.10
/usr/bin/ld: cannot find -lgstreamer-0.10
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lgmodule-2.0
/usr/bin/ld: cannot find -lgthread-2.0
/usr ..
-
2013-10-16 11:52
-
转自:http://tonylian.iteye.com/blog/411558
阅读全文»分类:默认分类|回复:0|浏览:1858
BOM(Byte Order Mark)是一个字符,它表明UNICODE文本的UTF-16,UTF-32的编码字节顺序(高字节低字节顺序)和编码方式(UTF-8,UTF-16,UTF-32, 其中UTF-8编码是字节顺序无关的)。
如下所示:
Encoding Representation
UTF-8 EF BB BF
UTF-16 Big Endian FE FF
UTF-16 Little Endian FF FE
UTF-32 Big Endian 00 00 FE FF
UTF-32 Little Endian FF FE 00 00
有些utf8编码没有这个BOM,该怎么区分了,是utf8还是ansi(根本就没有BOM这个东西),下面先了解下utf8:
UTF-8是UNICODE的一种变长字 ..
-
2013-10-14 16:50
-
git config --global user.name "Example Surname"
阅读全文»分类:默认分类|回复:0|浏览:1722
git config --global user.email "your.email@gmail.com"
配置自己的用户名和邮箱,这是必须的
git config --global push.default current
push的缺省动作为push当前活动的分支,否则会push所有分支到远程服务器,据说到git2.0后,缺省动作就是push当前活动分支,有的版本是这样配置 git config --global push.default simple
git config --global color.ui true
git config --global color.status auto
git config --global color.branch auto
使用颜色和高 ..
-
2013-09-18 16:24
-
[主版本号].[次版本号].[补丁号],通常用v做前缀。例如:v1.0.0
阅读全文»分类:默认分类|回复:0|浏览:1491
每次能保证向后兼容的补丁升级,补丁号增1。
向后兼容的新功能加入,增加新API,次版本号增1。
不向后兼容的新功能加入,增加新API,主版本号增1。
-
2013-09-17 17:46
-
一、文件内容编码转换
阅读全文»分类:默认分类|回复:0|浏览:1552
命令格式如下$enca -L 当前语言 -x 目标编码 文件名
例如把当前目录下文件转换成utf-8
$enca -L zh_CN -x utf-8 *
enca会把无法转换的文件告诉你。对于这些不能转的文件,可以用gedit另存为的方式转.
二、文件名编码转换
convmv -f 源编码 -t 新编码 [选项] 文件名
常用参数:
-r 递归处理子文件夹
--notest 真正进行操作,请注意在默认情况下是不对文件进行真实操作的,而只是试验。
--list 显示所有支持的编码
--unescap 可以做一下转义,比如把%20变成空格
比如我们有一个GBK编码的文件名,转换成utf8编码,命 ..
-
2013-09-16 16:38
-
1:在终端下察看已经安装的旧的内核:dpkg --get-selections|grep linux
阅读全文»分类:默认分类|回复:0|浏览:1355
linux-后面带image的是旧的内核。因为我已经将旧的内核删除了,所以后面显示deinstall,不删除的话是install。我们要做的就是将后面带image的linux内核删除。
2:删除操作:sudo apt-get remove linux-image-(版本号)(就是上面带image的版本)有卸载不完全的(有提示),可以用 sudo apt-get autoremove来删除。
一定不要把最新编号的内核删除!切记!!!
-
2013-08-30 17:17
-
QTime time;
阅读全文»分类:默认分类|回复:0|浏览:1393
time= QTime::currentTime();
qsrand(time.msec()+time.second()*1000);
int randnum=qrand()%10 ;//在0-9中选出随机数
-
2013-07-15 16:24
-
Ubuntu最新gcc版本在ppa:ubuntu-toolchain-r/test中,
阅读全文»分类:默认分类|回复:2|浏览:6631
可以点击这个网址查看https://launchpad.net/~ubuntu-toolchain-r/+archive/test
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get install gcc-4.8
sudo apt-get install g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
//////////////////////////////////////// ..
-
2013-07-15 16:11
-
更换新pc,重新安装了Ubuntu12.04,Qt5.1,编译shanbaydict过程,出现错误,这是由于You are missing the OpenGL include files. Install the mesa-common-dev package,
阅读全文»分类:默认分类|回复:0|浏览:6302
../../Qt5.1.0/5.1.0/gcc_64/include/QtGui/qopengl.h:110:21: fatal error: GL/gl.h: No such file or directory
执行
sudo apt-get install mesa-common-dev
编译出现如下错误提示:
/usr/bin/ld: cannot find -lGL
执行下面命令解决:
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev