The stunnel program is designed to work as an
SSL encryption wrapper between remote client and local (inetd-startable) or
remote server. It can be use...
分类:
其他好文 时间:
2014-05-26 16:15:57
阅读次数:
330
对于Chromium Code Reviews上面的issue , 如
https://codereview.chromium.org/292153009/ (1) apply 该 patch于chromium
code最简单的办法:在本地的chromium库,如我的chromium-android...
分类:
其他好文 时间:
2014-05-26 09:17:19
阅读次数:
326
单例模式(Singleton
pattern)是一种创建型模式,它会限制应用程序,使其只能创建某个类类型的单一实例。举例来说,一个Web站点将会需要一个数据库连接对象,但是应该有且只有一个,因此我们需要使用单例模式来实现。eg:_settings[$index]
= $value; } f...
分类:
Web程序 时间:
2014-05-26 06:20:06
阅读次数:
319
Spy on enemy.
使用这个模式可以根据某些事件自动更新。
设计思路:
1 设计一个基类,作为需要观察一个时间行为的接口类
2 设计一个观察者类,可以观察所有基类的衍生类, 这里使用set来保存这些需要更新的类。
一个事件相当于一个函数,事件发生(调用函数)同时自动调用需要更新的函数动作。
#pragma once
#include
#include
#inclu...
分类:
其他好文 时间:
2014-05-26 06:16:49
阅读次数:
284
简单工厂模式(Simple Factory Pattern)属于创建型模式,又叫做静态工厂方法模式(Static FactoryMethod Pattern),但是不属于23GOF设计模式之一。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。
走别人的的路,不如自己 to do (不如的意思是更)。先敲书上的例子,第一遍也许不懂,第二遍就清晰很多,第三遍就觉得自己能写点东西出来。不要总是觉得自己看不懂,学不好,只有先学了才能更好。没有之前的8个馒头,就没有第9个馒头的饱(好撑啊~~)...
分类:
其他好文 时间:
2014-05-26 05:51:44
阅读次数:
224
#include
#include
#include
using namespace std;
const int m=(int)1E8;
string s1,s2;
int f[2][5001]={0},g[2][5001]={0};
void init();
void work();
int my_max(int,int);
int main()
{
freopen("lcs.in","r"...
分类:
其他好文 时间:
2014-05-26 04:07:17
阅读次数:
305
装饰者模式(Decorator Pattern) Java的IO类 使用方法
本文地址: http://blog.csdn.net/caroline_wendy/article/details/26716823
装饰者模式(decorator pattern)参见: http://blog.csdn.net/caroline_wendy/article/details/2670...
分类:
编程语言 时间:
2014-05-25 00:55:05
阅读次数:
346
装饰者模式(Decorator Pattern) 详解
本文地址: http://blog.csdn.net/caroline_wendy
装饰者模式(Decorator Pattern):
动态地将责任附加到对象上. 若要扩展功能, 装饰者提供了比继承更有弹性的替代方案.
使用方法:
1. 首先创建组件(Component)父类, 所有类,
具体组件(...
分类:
其他好文 时间:
2014-05-24 20:45:41
阅读次数:
317
http://poj.org/problem?id=3013
题意:
Because of a technical difficulty, price of an edge will be (sum of weights of all descendant nodes) × (unit price of the edge).这句话一直没看懂。后面还以为是最小生成树。
正确...
分类:
其他好文 时间:
2014-05-24 20:27:13
阅读次数:
266
内核编译# make ARCH=arm menuconfig# make -j5 ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf- uImage modules内核安装到ROOTFS# cp
${WORK_DIR}/linux-sunxi/arch/arm/bo...
分类:
其他好文 时间:
2014-05-24 10:19:51
阅读次数:
307