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

Image may be NSFW.
Clik here to view.

使用 SCTP 优化网络

     摘要: 转载自:http://www.ibm.com/developerworks/cn/linux/l-sctp/ SCTP 是在 IP 网络上使用的一种可靠的通用传输层协议。尽管 SCTP 协议最初是为发送电话信号而设计的(RFC 2960),但带来了一个意外的收获:它通过借鉴 UDP 的优点解决了 TCP 的某些局限。SCTP...

View Article


Image may be NSFW.
Clik here to view.

Linux下Nagios的安装与配置

     摘要: 一、Nagios简介   Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows、Linux和Unix的主机状态,交换机路由器等网络设置,打印机等。在系统或服务状态异常时发出邮件或短信报警第一时间通知网站运维人员,在状态恢复后发出正常的邮件或短信通知。   Nagios原名为NetSaint,由Ethan Galstad开发并维护至今。NAGIOS是一个缩写形式:...

View Article


Image may be NSFW.
Clik here to view.

NSIS添加安装完成后提示是否运行程序

可以使用MUI函数里面的 MUI_FINISHPAGE_RUN_FUNCTION function  定义一个function,函数里面执行 安装完成后的exe;定义安装界面!define MUI_FINISHPAGE_RUN;安装函数定义!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink" !insertmacro...

View Article

Image may be NSFW.
Clik here to view.

Qt:Q_DECLARE_METATYPE和qRegisterMetaType

@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); Adding a Q_DECLARE_METATYPE() makes the type known...

View Article

Image may be NSFW.
Clik here to view.

Qt:给QWidget添加shadow效果

@import url(http://www.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); Widget::Widget(QWidget *parent) : QWidget(parent),...

View Article


Image may be NSFW.
Clik here to view.

自己动手写脚本语言

这是我用c++写的一个简单的脚本语言,非常简短,不到3000行代码 代码svn地址:http://sil-language.googlecode.com/svn/trunk sil语言(simple interpretative lanuage)是一个简单的脚本语言,只是一个玩具,目的是演示用简短的代码去创建一个可用的脚本语言这样一个玩具会是怎么样的呢?sil的设计目标:1 ....

View Article

Image may be NSFW.
Clik here to view.

自动更新连载小说的脚本

最近在看《我当道士那些年》,小说写得不错,奈何仍未完结。写了个脚本用来更新小说内容。没有做添加的处理,每次都是直接完全更新一遍。有兴趣的书友可以修改下。#!/usr/bin/python#coding=utf-8import urllib2import HTMLParserimport re url = "http://www.wodangdaoshinaxienian.com"urlSeeds =...

View Article

Image may be NSFW.
Clik here to view.

Qt:定制qDebug等输出的格式

void testMessagePattern() { QString QT_MESSAGE_PATTERN= "[%{if-debug}D%{endif}%{if-warning}W%{endif}%{if-critical}C%{endif}%{if-fatal}F%{endif}]" ": %{file}:%{line} - %{message}";...

View Article


Image may be NSFW.
Clik here to view.

UVA 457 Linear Cellular Automata 题解

Linear Cellular Automata A biologist is experimenting with DNA modification of bacterial colonies being grown in a linear array of culture dishes. By changing the DNA, he is able ``program" the...

View Article


Image may be NSFW.
Clik here to view.

EL : 1.2.2 Release

快捷方式 点击这里下载EL安装包  点击这里关注EL内容包,以及十元全包 点击这里使用说明文档     EL 1.2.2 Release了, 主要针对android 2.3.x的兼容问题做了修改, 修改文档看这里.     今天测试了下, 2.3.x下基本没问题了, 但ESL音频播放还是不稳定, 比如快速next, next, 没点几下就会crash. 这应该是播放时的状态没有控制好....

View Article

Image may be NSFW.
Clik here to view.

线段树的区间交、并、减、补

  题意:区间交、并、减、补  思路:用线段树的叶子节点记录该点是否被区间覆盖,因为有开区间的情况,因此考虑离散,将数值乘以2。  U:把区间[l,r]覆盖成1  I:把[-∞,l)(r,∞]覆盖成0  D:把区间[l,r]覆盖成0  C:把[-∞,l)(r,∞]覆盖成0 , 且[l,r]区间0/1互换  S:[l,r]区间0/1互换  区间修改容易做,但是加上区间异或就难了。...

View Article

Image may be NSFW.
Clik here to view.

Some Frequently Asked Questions about RTP

     摘要: 转载自:http://www.cs.columbia.edu/~hgs/rtp/faq.html Some Frequently Asked Questions about RTP Is RTP a transport protocol or a kind of application protocol?RTP does not ensure real-time delivery....

View Article

Image may be NSFW.
Clik here to view.

RTP的FAQ

转载自:http://if.ustc.edu.cn/~zhouwei/backup/tech/linux/translator/rtpfaq.html RTP的FAQ Copyright © 2004 Searun@bbs.ustc 翻译:Searun 原文:Henning Schulzrinne Table of Contents RTP是传输层协议还是一种应用层协议?...

View Article


Image may be NSFW.
Clik here to view.

谈谈RTP传输中的负载类型和时间戳

转载自:http://ticktick.blog.51cto.com/823160/350142...

View Article

Image may be NSFW.
Clik here to view.

ortp库使用入门

     摘要: 转载自:http://ticktick.blog.51cto.com/823160/345642     我们知道, RTP(Real-timeTransportProtocol)是用于Internet上针对多媒体数据流的一种传输协议,做流媒体传输方面的应用离不开RTP协议的实现及使用,为了更加快速地在项目中应用RTP协议实现流媒体的传输,我们一般会选...  阅读全文杨粼波...

View Article


Image may be NSFW.
Clik here to view.

RTP与RTCP协议介绍

     摘要: 转载自:http://zhangjunhd.blog.51cto.com/113473/25481 本文主要介绍RTP与RTCP协议。 author: ZJ   06-11-17 Blog: [url]http://zhangjunhd.blog.51cto.com/[/url]   1.流媒体( Streaming Media) ...  阅读全文杨粼波 2013-09-03...

View Article

Image may be NSFW.
Clik here to view.

Linux下的实时流媒体编程

     摘要: 转载自:http://www.ibm.com/developerworks/cn/linux/l-mdst/ 一、流媒体简介...

View Article


Image may be NSFW.
Clik here to view.

Qt:Windows Qt 去掉选中的虚线框

class myStyle: public QProxyStyle { public:    myStyle(QStyle *baseStyle)        : QProxyStyle(baseStyle)    {    }    void drawPrimitive(PrimitiveElement element,        const QStyleOption *option,...

View Article

Image may be NSFW.
Clik here to view.

Nagios插件编写及调试方法

前言: Nagios是相当不错的监控工具,被称作是“监控之神”,但同样也有“难搞死”头衔。发挥Nagios一切魅力的都是他的插件,正因为丰富多样的插件让 nagios有血有肉。监控的内容不断在变化,插件也不断变化,默认的一些插件可能越来越不能满足需求,这个时候就要自己来写些插件了。...

View Article

Image may be NSFW.
Clik here to view.

Java:内存映射

From: http://bbs.csdn.net/topics/390577067/**     * 内存映射     *      * @throws IOException     */    public static void mapChannel() throws IOException {        long t1 = System.currentTimeMillis();...

View Article
Browsing all 7880 articles
Browse latest View live


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