代码改变世界

Partition under Windows7

2013-01-29 23:50 by robturtle, 191 阅读, 0 推荐, 收藏, 编辑
摘要:Tech around partition seens to become outdated over the time. Two mainstream layout are recommanded currrently. The 1st one is to keep one single C disk as the whole. Reasons are the memory/filesystem management methods were improved so great under Windows 7 and a new advanced searching/indexing app 阅读全文

recover grub2

2013-01-28 14:06 by robturtle, 274 阅读, 0 推荐, 收藏, 编辑
摘要:1. mount file system$ sudo fdisk -lDisk /dev/sda: 500.1 GB, 500107862016 bytes255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifi 阅读全文

我的学习轨迹 (Cacoo导出测试)

2013-01-07 10:57 by robturtle, 266 阅读, 0 推荐, 收藏, 编辑
摘要:不多说,直接上图。用Cacoo导出的PS格式还是不错的,SVG则有点支持不太好,不过这个质量用于LaTex排版论文还是足够了。但是这个png。。。。怎么就那么模糊啊。。。 阅读全文

ubuntu下使用OpenCV

2013-01-07 01:14 by robturtle, 11003 阅读, 0 推荐, 收藏, 编辑
摘要:和boost类库一样,ubuntu下也提供了opencv的二进制包,安装非常简单: $ sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev cmake libswscale-dev libjasper-dev$ sudo apt-get install libopencv-dev我现在学习的是O’Reilly 的《Learning OpenCV》,书中是以1.0版本为例的。而我现在安装的版本是2.3.1,其组织方式与1.0还是有很 阅读全文

c++ note

2012-12-16 10:33 by robturtle, 482 阅读, 0 推荐, 收藏, 编辑
摘要:咳咳,准备清理NTFS分区啦,把分区里的一些笔记整理出来 初学c++ 类的设计参考 (MFC style) template<typename T>class cClassName //使用小写c前缀主要是为了避免类名与MFC的类混同/*:public BaseClass*/{public: //*********constructor********** ... 阅读全文

Ubuntu下安装解码包

2012-12-15 11:11 by robturtle, 543 阅读, 0 推荐, 收藏, 编辑
摘要:源所在地址: http://packages.medibuntu.org 最方便的办法: sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.listsudo apt-get updatesudo apt-get insta... 阅读全文

masm

2012-12-15 11:01 by robturtle, 761 阅读, 0 推荐, 收藏, 编辑
摘要:零散的学习笔记 阅读全文

那些年重装过的Linux

2012-12-12 21:15 by robturtle, 254 阅读, 0 推荐, 收藏, 编辑
摘要:在学习Linux的过程中,往往会犯一些前人也常常犯的很傻逼的错误。很不幸的,我几乎全都犯了一遍。 2012年2月 ,刚接触Linux和鸟哥的书,运行了一个命令: sudo chmod –R 766 /etc , 然后,sudoer 就运行不了了,而我又不甘心连续第三次重装,于是根据提示,在单人模式下,把sudoer文件下的权限改了回来了。这下sudoer可以正常使用了,而这也是我第一次没有通过重装... 阅读全文

C Traps & Pitfalls

2012-12-08 20:40 by robturtle, 236 阅读, 0 推荐, 收藏, 编辑
摘要:2012/12/08 优先级错误 尼玛,才刚看完这本书没两个月,就犯了里面说的错误了!而且还是和里面的例子非常相似的错误! 在写一个系统编程的例子里有一个表达式: (ret = read(src, ptr, len)) != 0然后,非常可惜地,写成了: (ret = read(src, ptr, len) != 0)于是这个ret就只能取0或1了!!!实在是被恶心到了……几个月前 sizeof... 阅读全文

M$ 下环境变量的设置

2012-12-06 14:18 by robturtle, 221 阅读, 0 推荐, 收藏, 编辑
摘要:设置MS下环境变量,如path 阅读全文