码迷,mamicode.com
首页 >  
搜索关键字:proxy pattern    ( 12923个结果
大话设计模式读书笔记6——代理模式
代理模式:代理模式(Proxy):为其他对象提供一种代理以控制对这个对象的访问。UML结构如下图:代码实现: //定义一个Subject 抽象类 public abstract class Subject { public abstract void Request()...
分类:其他好文   时间:2014-11-21 14:06:12    阅读次数:133
a little summary of Django
url routing mechanismurl name/namespaceWe can name a url pattern in urls.py, and reference this name to generate a url in other places. This ensures n...
分类:其他好文   时间:2014-11-21 12:30:07    阅读次数:169
模板与继承之艺术——奇特的递归模板模式(CRTP)
奇特的模板递归模式(Curiously Recurring Template Pattern)即将派生类本身作为模板参数传递给基类。
分类:其他好文   时间:2014-11-21 01:29:53    阅读次数:473
关于nginx反向代理后获取不到客户端的ip地址问题
通过查资料后,再去看了看我的配置文件,结果发现我没有如下配置: nginx反向代理配置时,一般会添加下面的配置: ????? proxy_set_header Host $host; ??????proxy_set_header X-Real-IP $remote_ad...
分类:其他好文   时间:2014-11-21 00:10:23    阅读次数:174
How to Configure iOS for iPhone and iPad to Use So
The socks proxy I created following?Proxy Using SSH Tunnel?works very well on both?Linux?and?Windows. However, when I try to configure my iPhone and iPad with iOS, I find iOS does not support ...
分类:移动开发   时间:2014-11-20 20:29:39    阅读次数:293
Extjs4 操作TreeStore 处理proxyAjax 获取的数据
最近在搞extjs4 TreeStore时有一个需求 就是要处理一下后台传过来的json数据然后再显示,看api也没有找到解决办法 ,最后看源码在Ext.data.proxy.Server 看到这么一个方法 [javascript] view plaincopy extractResponseData: function(respon...
分类:Web程序   时间:2014-11-20 10:22:29    阅读次数:248
awk使用方法
1.awk中引用外部变量,有三种方式awk 'pattern{action}' file1)awk '{print a,b}' a=111 b=222 file,此时BEGIN模块无法用该变量2) awk -v a=111 b=222 '{print a,b}' file3) a=111;b="网页...
分类:其他好文   时间:2014-11-19 21:49:29    阅读次数:126
Android与设计模式——状态(State)模式
在阎宏博士的《JAVA与模式》一书中开头是这样描述状态(State)模式的:   状态模式,又称状态对象模式(Pattern of Objects for States),状态模式是对象的行为模式。   状态模式允许一个对象在其内部状态改变的时候改变其行为。这个对象看上去就像是改变了它的类一样。 状态模式的结构   用一句话来表述,状态模式把所研究的对象的行为包装在不同的状态对象里,每...
分类:移动开发   时间:2014-11-19 20:39:43    阅读次数:180
c++ why can't class template hide its implementation in cpp file?
类似的问题还有: why can't class template use Handle Class Pattern to hide its implementation? || why there are linker problems (undefined reference) to my cl...
分类:编程语言   时间:2014-11-19 20:18:49    阅读次数:526
c++ using Handle Class Pattern to accomplish implementation hiding
Reference material:Thinking In C++ 2nd eidition chapter 5 section "Handle classes"If there's something need to be hidden from clients of the class (su...
分类:编程语言   时间:2014-11-19 20:08:08    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!