background preloader

笔记

Facebook Twitter

Share all of this! 高效操作Bash. Linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项) - 轻扫蛾黛 浓点绛 - 博客大巴. 版权声明 :转载时请以超链接形式标明文章原始出处和作者信息及 本声明 linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项) 今天下午尝试使用libosip2,安装比较简单,按照自带的help文档里面的操作进行即可。

linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项) - 轻扫蛾黛 浓点绛 - 博客大巴

$>mkdir linux-build $>cd linux-build $>.. $>make (最后2步要在管理员权限下执行) # make install 完成之后,会在/usr/local/lib路径下生成一些lioosipXXX.so的文件,在/usr/local/include下生成关于osip的头文件。 为了测试安装是否正确,在eclipse下建了个测试项目,写了很简单的代码: #include <sys/time.h>//不加的话,编译时会报错,可能osip依赖于time.h #include <osip2/osip.h> //之所以能找到/usr/local/include下关于osip的头文件,是因为eclipse默认把/usr/local/include放到Include directories里面了。

关于头文件说明 #include <iostream> using namespace std; int main() int i; osip_t *osip; i = osip_init(&osip); if(i ! Cout << "error" << endl; cout << "ok" << endl; return 0; 并且在eclipse的项目属性-->C/C++ Build-->Settings-->Tool settings-->GCC C++ Linker-->Libraries加上-lpthread -losip2的选项。

编译链接都没有问题,运行时报错: error while loading shared libraries: libosip2.so.4: cannot open shared object file: No such file or directory 然后查到可能是因为共享库设置的问题: 下面的几段是转载的,看了之后明白linux怎么找到共享库的 Linux 运行的时候,是如何管理共享库(*.so)的? 但是,如果需要用到的共享库在非标准路经,ld.so 怎么找到它呢? Nagios:企业级系统监控方案. E.企业级系统监测方案:Nagios 在大多数情况下Cacti + RRDtool已经实现对系统各种参数的监测。

Nagios:企业级系统监控方案

但很多企业可能不满足于仅仅监测系统基本参数的需求,而是需要监测除基本参数之外的各种应用程序的运行状况。 很显然在这种情况下对于一些系统或者是自定义的程序Cacti + RRDtool的局限性就显示出来了。 Camera的设置 - mdwang的日志. [版权]原文所有版权归原作者所有。

camera的设置 - mdwang的日志

翻译内容,转载时请注明引用来源。 (以下开始正文) 众所周知,Macromedia Flash Communication Server和Macromedia Flash Player组合为视频会议应用提供了令人激动人心的可行性。 在硬件的选择和软件参数设置上面依然是很繁重的和不可思议的。 开发人员时常需要处理声音同步,画面突然定格以及延迟问题。 然而,当今很多的Flash Communication Server应用中,客户需要使用Flash技术来创造出高质量的视频会议系统。 Architekture.com在Flash Communication Server开发领域是被公认的专家级的领导性公司。 很多运行在桌面电脑上的视频会议应用在CPU占用和带宽上都非常的消耗资源。 小米MIUI系统造成用户大量敏感数据泄露. 缺陷编号: WooYun-2012-08187 漏洞标题: 小米MIUI系统造成用户大量敏感数据泄露 相关厂商: 小米科技 漏洞作者: Claud 提交时间: 2012-06-11 18:53 公开时间: 2012-07-26 18:54 漏洞类型: 用户敏感数据泄漏 危害等级: 高 自评Rank: 20 漏洞状态: 厂商已经确认.

小米MIUI系统造成用户大量敏感数据泄露

告别wordpress,拥抱jekyll ← 阳志平的个人网站. 告别wordpress,拥抱jekyll Published: 26 Nov 2010 jekyll是近些年来比较流行的轻量级博客系统,它也是一个强大的静态网站生成系统。

告别wordpress,拥抱jekyll ← 阳志平的个人网站

本文简要介绍了从wordpress迁移到jekyll的一些注意事项。 主要特点. 理想的写作环境:git+github+markdown+jekyll ← 阳志平的个人网站. 如何高效利用GitHub ← 阳志平的个人网站. 如何高效利用GitHub Published: 04 Mar 2012 正是Github,让社会化编程成为现实。

如何高效利用GitHub ← 阳志平的个人网站

本文尝试谈谈GitHub的文化、技巧与影响。 Q1:GitHub是什么 A1:一家公司 位于旧金山,由Chris Wanstrath, PJ Hyett 与Tom Preston-Werner三位开发者在2008年4月创办。 在此之前,它是由Tom与Chris 在本地程序员聚会中,开始的一个用于托管git的项目。 当我老去,回顾一生,我想说,“哇,那是一场冒险“;而不是,“哇,我真的很安稳。 另一位创始人Chris也详细描述了GitHub初创的前因后果,他说道: Do whatever you want. Google C++ Style Guide. Definition: Streams are a replacement for printf() and scanf().

Google C++ Style Guide

Pros: With streams, you do not need to know the type of the object you are printing. You do not have problems with format strings not matching the argument list. (Though with gcc, you do not have that problem with printf either.) Streams have automatic constructors and destructors that open and close the relevant files. Cons: Streams make it difficult to do functionality like pread(). Decision: Do not use streams, except where required by a logging interface. There are various pros and cons to using streams, but in this case, as in many other cases, consistency trumps the debate. Extended Discussion There has been debate on this issue, so this explains the reasoning in greater depth. Proponents of streams have argued that streams are the obvious choice of the two, but the issue is not actually so clear. Cout << this; // Prints the address cout << *this; // Prints the contents.