监听端口属于server虚拟主机,由server{}块内的listen配置项决定。
在处理配置文件http块内main级别的配置项时,每个HTTP模块都会调用create_main_conf、create_srv_conf、create_loc_conf三个方法建立三个结构体,用来分别存储http块、server块、location块内的配置项。ngx_http_core_module是...
分类:
其他好文 时间:
2014-06-15 13:20:06
阅读次数:
268
在WWDC2014上,Sprite Kit又有了很多新的提升!
其中一个很有意思的东西就是Physics Field!也就是物理场!
这意味着我们在Sprite kit上编写虚拟物理场的游戏将变得非常简单!先放上GitHub链接:
https://github.com/songrotek/PhysicsFieldsWorld.git
我另外录制了效果视频大家可以先一睹为快:
http://v.youku.com/v_show/id_XNzI2MzUzNzYw.html...
分类:
移动开发 时间:
2014-06-15 10:24:48
阅读次数:
282
原题地址:https://oj.leetcode.com/problems/add-two-numbers/题意:You are given two linked lists representing two non-negative numbers. The digits are stored i...
分类:
编程语言 时间:
2014-06-15 00:40:44
阅读次数:
328
参考资料https://github.com/bsdnoobz/web-based-face-detecthttp://opencv-code.com/projects/web-based-interface-for-face-detection-with-opencv/http://www.cnb...
分类:
Web程序 时间:
2014-06-14 21:57:39
阅读次数:
379
编译环境:windows8.1Anaconda python2.7Visual studio 2012CUDA6.0Pthread for windowsIntel Math Kernel Librarycuda-convnet 原始文件下载地址:https://github.com/dnouri/...
使用UILabel实现滚动字幕移动效果这个链接中的代码也实现了这种效果https://github.com/cbpowell/MarqueeLabel最终效果如下:原理如下:1. 获取文本2. 计算文本宽度3. 将这个Label放入ScrollView中4. 将ScrollView的contentS...
分类:
移动开发 时间:
2014-06-14 16:55:50
阅读次数:
362
原文:浏览器扩展系列————异步可插入协议(pluggable protocol)的实现 IE中有很多我们比较熟悉的协议,如http,https,mailto,ftp等。当然你也可以实现自己定义的协议,稍微谈一下这里所说的协议,从我的理解来说这里的协议只有当你的网页引用某个资源时才会调用,而不是随便...
分类:
其他好文 时间:
2014-06-14 15:19:12
阅读次数:
1179
以下步骤在MAC下测试通过:
首先是安装CCache,
可以用homebrew
brew install --HEAD ccache
也可以用源码安装
git clone https://github.com/jrosdahl/ccache.git
cd ccache
./autogen.sh
./configure
make
make install
如果提示autohe...
分类:
移动开发 时间:
2014-06-14 12:28:49
阅读次数:
263
先上GitHub链接:
https://github.com/songrotek/PlaneWar.git...
分类:
微信 时间:
2014-06-14 11:43:46
阅读次数:
448
1 安装和升级
$ sudo gem install cocoapods
$ pod setup
2 更换为taobao的源
$ gem sources -r https://rubygems.org/
//等有反应之后再敲入以下命令
$ gem sources -a http://ruby.taobao.org/
//查看
$ gem sour...
分类:
其他好文 时间:
2014-06-14 09:19:13
阅读次数:
216