Quantcast
Channel: C++博客-所有随笔
Browsing all 7880 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

常用命令

1.hostname运行hostname命令就是了,如果你没有设置过主机名,一般会显示localhost.localdomain其中localhost表示主机名,localdomain为域名,这是一个完全域名(FQDN,即"主机名.域名")的形式C++技术中心 2013-09-09 09:42 发表评论

View Article


Image may be NSFW.
Clik here to view.

glUniformXXX第2个参数

glUniform4fv(loc, 4, GL_FALSE, vec4.ptr());第二个参数写成4,在A卡上能正常运行,而在N和I上却能正常解析。力为 2013-09-09 10:21 发表评论

View Article


Image may be NSFW.
Clik here to view.

九月九的酒

     摘要: 这是一杯苦酒,干!  阅读全文zuhd 2013-09-09 15:17 发表评论

View Article

Image may be NSFW.
Clik here to view.

利用单例模式的提升系统整体性能

今天走在路上突然想起一个问题,之前没有深刻的注意到。    问题:如果在WebForm页面周期中如果一个对象频繁创建,请求结束后又进行销毁肯定会对系统产生一定的性能影响,我们都知道,当我们每次new一个对 象时,其都在内存中指定的堆上分配一块空间,那么创建这个对象然后销毁(Response.End()执行后)这个对象肯定要消耗服务器的时间及空间(尤...

View Article

Image may be NSFW.
Clik here to view.

The missing systrace option in Android 4.3

In Android 4.3, I did not find the "trace option" in setting->"Developer options". And the python script(systrace.py) seems buggy, as this stackoverflow post told. occasionally I find that "trace...

View Article


Image may be NSFW.
Clik here to view.

What is the Unix command to create a hardlink to a directory in OS X?

1. 给文件夹 "你好" 创建硬链接 "B": sudo ./hlink /Users/Biao/Desktop/你好 /Users/Biao/B 2. 删除文件夹 "你好" 的硬链接: 注册,删除的是目标文件夹 "B",而不是源文件夹 "你好" sudo ./hunlink /Users/Biao/B   You can't do it directly in BASH then....

View Article

Image may be NSFW.
Clik here to view.

Mac:怎么在 Mac 下把百度网盘映射到另一个文件夹

背景:@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); 例如百度云存储的路径是 /Users/Biao/Baidu/百度云同步盘,路径中有中文字符。...

View Article

Image may be NSFW.
Clik here to view.

Voice over IP in networked virtual environments

Universiteit Maastricht Voice over IP in networked virtual environmentsJori Liesenborgs(jori@lumumba.uhasselt.be)24th May 2000promotor: Prof. dr. W. Lamotteafstudeercoördinator: Prof. dr. E....

View Article


Image may be NSFW.
Clik here to view.

【流媒體】live555—VS2010 下live555编译、使用及测试

     摘要: 转载自:http://www.cnblogs.com/skyseraph/archive/2012/04/11/2442840.html 【流媒體】live555—VS2010 下live555编译、使用及测试 SkySeraph Apr 11st 2012 Email:zgzhaobo@gmail.com    QQ:45272857...  阅读全文杨粼波 2013-09-10...

View Article


Image may be NSFW.
Clik here to view.

live555学习之基本类介绍及计划任务深度探讨

转载自:http://blog.sina.com.cn/s/blog_77c632410101as1i.html liveMedia项目的源代码包括四个基本的库,各种测试代码以及Media Server。四个基本的库分别是: UsageEnvironment&TaskScheduler, groupsock, liveMedia和BasicUsageEnvironment。 1,基础类介绍:...

View Article

Image may be NSFW.
Clik here to view.

live555学习之RTSP连接建立以及请求消息处理过程

     摘要: 转载自:http://blog.sina.com.cn/s/blog_77c632410101awzk.html 1,RTSP连接的建立过程     RTSPServer类用于构建一个RTSP服务器,该类同时在其内部定义了一个RTSPClientSession类,用于处理单独的客户会话。     首先创建RT...  阅读全文杨粼波 2013-09-10 04:05 发表评论

View Article

Image may be NSFW.
Clik here to view.

Live555类结构

     摘要: 转载自:http://blog.sina.com.cn/s/blog_77c6324101018vur.html Medium...

View Article

Image may be NSFW.
Clik here to view.

简析LIVE555中的延时队列

     摘要: 转载自:http://blog.sina.com.cn/s/blog_77c6324101018j1k.html 最近在看LIVE555的源码,对其中的延时队列感觉有点乱,网上查询资料,于是就总结一下。 首先描述一下LIVE555中的延时队列的设计理念。如下图,A,B,C分别为时间轴上的三个事件点,而head表示当前时间点。...

View Article


Image may be NSFW.
Clik here to view.

Disable XON/XOFF in Putty

Sometimes I use putty to login my ubuntu machine, and use emacs to edit some text files. But it always stop working when I save my edition in emacs ( Ctrl-x Ctrl-s ). I firstly thought it was a network...

View Article

Image may be NSFW.
Clik here to view.

VS2010 编译错误: “__RPC__out_xcount_part”

解决方法: 在DX目录下的Rpcsal.h中添加如下预编译指令: #define __RPC__out_xcount_part(size, length)#define __RPC__in_xcount(size)#define __RPC__in_xcount_full(size)#define __RPC__in_range(min, max)#define...

View Article


Image may be NSFW.
Clik here to view.

matlab find:找到非零值和序号

a = [1 -2 3; 4 5 -4;5 -6 7];a<0的结果是:0     1     00     0     10     1     0ind = find(X)%ind = find(X) locates all nonzero elements of array X, and returns the linear indices of those elements in...

View Article

Image may be NSFW.
Clik here to view.

matlab中如何将数据以分数的形式显示出来:format rat

for i=1:6    x(i) = 1/i;endformat rat;%使用分数来表示数值,默认格式是short;rat(x):将实数转化成分数表示;rats(x):将实数化为多项式分数展开disp(x)杰哥 2013-09-10 19:46 发表评论

View Article


Image may be NSFW.
Clik here to view.

VS2010编译报错 fatal error C1189: #error : This file requires _WIN32_WINNT to be...

用 #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.#define WINVER 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or...

View Article

Image may be NSFW.
Clik here to view.

VS2010编译错误 LNK1179: 无效或损坏的文件: 重复的 COMDAT "_IID_IDispatchEx" .

找到此行代码#import "Flash.ocx" named_guids将其改为#import "Flash.ocx"  named_guids, exclude("IFlashObjectInterface"), exclude("IDispatchEx")O了!小王 2013-09-11 01:29 发表评论

View Article

Image may be NSFW.
Clik here to view.

变量在shell脚本间的传递

前几篇文章中已经介绍过局部变量和环境变量的含义,接下来我们来拓展下,看看变量怎样实现在shell脚本中的传递shell脚本其实是用当前shell的子shell去执行的,所以在shell脚本中定义的普通变量只适用于当前shell的子shell环境,也就是说在当前shell环境中不适用,也不适用于这个shell脚本的子shell。在shell脚本中定义的环境变量可以传承给它的子shell,但是也不能传递...

View Article
Browsing all 7880 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>