摘要: 最近在Visual Studio 2012进行vp8的开发,之前一直都是在ubuntu上进行开发,关于编译链接的一些选项可直接在makefile中定义,比如vp8的头文件都放在include文件下面,静态连接库放在lib文件夹下面,所以,就可以这样指定相关路径1 -I./include -L./libView Code 对于习惯了在命令行指定相关属性的同志来说,幸运的是,在Visual Studio中也可以进行这样的设置。Project->Properities->Configuration Properities->C/C++ ->Command Line已经打开的编 阅读全文
posted @ 2013-10-13 14:02 Gigbit 阅读(1509) 评论(0) 推荐(0) 编辑
摘要: 一开始系统使用的是163的源,没有安装成功memcached,换了cn99的也不行,后来换了台湾的源,以下步骤才得以顺利进行。更换源的方法可以参看我以前的帖子。安装memached:sudo apt-get install memcached安装mysqldb很简单sudo apt-get install python-mysqldb。安装memcache模块 :sudo apt-get install python-memcache安装完成之后,进入python,输入以下命令,如果没有报错,就说明相关模块已经安装成功了。高可用方案repcached(关于repcached,请自行google 阅读全文
posted @ 2013-07-07 16:15 Gigbit 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 有时候做程序调试的时候,要知道程序对mysql进行了什么操作,比如插入了什么东西,查询了什么表,等等操作,可以打开mysql的查询日志记录功能,这样就可以实时的观察程序对mysql的操作了。配置方法: 1.修改 my.cnf 文件(ubuntu位置:/etc/mysql/)#general_log_file = /var/log/mysql/mysql.log#general_log = 1#去掉上面两行表示注释的#,其中1 表示打开查询日志记录, 0 表示关闭general_log_file = /var/log/mysql/mysql.loggeneral_log ... 阅读全文
posted @ 2013-05-23 22:52 Gigbit 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 如果出现查询错误,很大一部分原因是查询语句使用的是宽字符(wchar *),而mysql_real_query查询语句使用的是char * 阅读全文
posted @ 2013-05-08 23:51 Gigbit 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 更改源方法:用Ctrl+Alt+T打开终端:输入命令:sudogedit /etc/apt/sources.list //打开软件源列表,将下面源复制进去,放在文件开头,保存退出。 sudo apt-get update //更新源列表 sudo apt-get upgrade //这一步是更新软件 //apt-get dist-upgrade可以升级系统版本在网上搜索相应版本的源,如http://www.linuxidc.com/Linux/2013-05/83902.htm有13.04的软件源 阅读全文
posted @ 2013-05-06 21:32 Gigbit 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 最近为了在ubuntu上搭建流媒体服务器,目的是为了在ipad上观看电脑上的视频并且不用将视频文件下载到本地,这是找到的编码相关的资料~For HTTP pseudo-streaming to iPhones, and RTSP streaming to other mobiles, .mp4 files need to be correctly encoded.Normally a .mp4 file has its data information included at the end which, if streamed, would require the entire video 阅读全文
posted @ 2013-05-04 17:38 Gigbit 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Windows 7 Ultimate x64 versionMicrosoft Visual Studio 2008 SP1 (VC++ 2008)返回错误:LINK : fatal error LNK1000: Internal error during IncrBuildImage解决办法:项目->属性->链接器->常规 下面的“启用增量链接”,将“是(/INCREMENTAL)”改为“否(/INCREMENTAL:NO)”。不过这又引入了另外一个警 告:FormatCom.obj : warning LNK4075: 忽略“/EDITANDCONTINUE”(由于“/I 阅读全文
posted @ 2013-04-13 21:57 Gigbit 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Merge sort is based on Divide and conquer method. It takes the list to be sorted and divide it in half to create two unsorted lists. The two unsorted lists are then sorted and merged to get a sorted l... 阅读全文
posted @ 2013-03-21 22:41 Gigbit 阅读(341) 评论(0) 推荐(0) 编辑
摘要: Shell sort works by comparing elements that are distant rather than adjacent elements in an array or list where adjacent elements are compared. Shellsort uses an increment sequence. The increment size... 阅读全文
posted @ 2013-03-21 22:16 Gigbit 阅读(255) 评论(0) 推荐(0) 编辑
摘要: The idea of the selection sort is to find the smallest element in the list and exchange it with the element in the first position. Then, find the second smallest element and exchange it with the eleme... 阅读全文
posted @ 2013-03-21 21:49 Gigbit 阅读(272) 评论(0) 推荐(0) 编辑