做项目过程接触到disque,记录一下。 disque是redis之父开源的基于内存的分布式作业队列,用c语言实现的非阻塞网络服务器。 disque的设计目标:Its goal is to capture the essence of the "Redis as a jobs queue" use ...
分类:
其他好文 时间:
2016-03-30 22:11:12
阅读次数:
136
$(document).on("click","#a",function(){alert(1)}) [#document] as a replacement of previous delegate etc.. event capture netscape 和 微软 曾经的战争还是比较火热的,当时, ...
分类:
Web程序 时间:
2016-03-28 14:58:40
阅读次数:
232
iOS抓包利器Charles http://wonderffee.github.io/blog/2013/07/13/best-packet-capture-tool-charles-in-ios/ 看唐巧的分析支付宝客户端的插件机制一文发现他使用了抓包工具Charles,想起去年有人给我推荐过这个 ...
分类:
移动开发 时间:
2016-03-26 17:18:15
阅读次数:
272
19.3捕获(Captures)
Capture(下面译为捕获或者capture,模式中捕获的概念指,使用临时变量来保存匹配的子模式,常用于 向前引用。)是这样一种机制:可以使用模式串的一部分匹配目标串的一部分。
19.4专换的技巧(Tricks of the Trade)
模式匹配对于字符串操纵来说是强大的工具,你可能只需要简单的调用 string.gsub 和 find 就可以完成复杂的操作,然而,因为它功能强大你必须谨慎的使用它,否则会带 来意想不到的结果。对正常的解析器而言,...
分类:
其他好文 时间:
2016-03-26 07:11:50
阅读次数:
260
"Lose Yourself" Look, if you had, one shot, or one opportunityTo seize everything you ever wanted. In one momentWould you capture it, or just let it s
分类:
其他好文 时间:
2016-03-09 23:58:47
阅读次数:
457
这篇文章主要介绍了PHP截取IE浏览器并缩小原图的方法,涉及PHP调用com组件实现图像截取的相关技巧,需要的朋友可以参考下 本文实例讲述了PHP截取IE浏览器并缩小原图的方法。分享给大家供大家参考,具体如下: // 截取一个窗口 Capture a window (IE for example)
分类:
Web程序 时间:
2016-03-08 13:18:40
阅读次数:
163
ngx.location.capture 是非阻塞的,ngx.location.capture也可以用来完成http请求,但是它只能请求到相对于当前nginx服务器的路径,不能使用之前的绝对路径进行访问,但是我们可以配合nginx upstream实现我们想要的功能。 在nginx.cong中的ht
分类:
其他好文 时间:
2016-03-02 10:45:18
阅读次数:
204
DOM事件处理有三个阶段: 捕捉阶段(capture phase):从最上层元素,直到最下层(你点击的那个target)元素。路过的所有节点都可以捕捉到该事件。 命中阶段(target phase):如果该事件成功到达了target元素,它会进行事件处理。 冒泡阶段(bubbling phase):
分类:
其他好文 时间:
2016-02-27 16:34:15
阅读次数:
310
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded
分类:
其他好文 时间:
2016-02-27 00:57:08
阅读次数:
230
Android设备用久了,截屏是个麻烦事。更麻烦的是通过qq传到电脑上,倒腾半天。其实用adb命令就可以截屏,然后写个pull的语句就可以拉到电脑上了。文件名为capture.sh, 内容如下:#! /bin/bash
adb shell screencap -p /sdcard/test.png
#adb pull /sdcard/test.png ~/Desktop/test.png
dir=...
分类:
移动开发 时间:
2016-02-21 13:05:06
阅读次数:
287