这是kbmmw 作者关于认证管理器的说明,我懒得翻译了,自己看吧。There are 5 parts
of setting up an authorization manager: A) Defining what the resources are
(often services or servi...
分类:
其他好文 时间:
2014-05-09 11:33:05
阅读次数:
471
参考nodejs官网发送http
post请求的方法,实现了一个模拟post提交的功能。实际使用时报socket hang
up错误。后来发现是请求头设置的问题,发送选项中需要加上headers字段信息(这个估计也和对方的服务器有关,对于不完成的post请求头,可能被丢弃了)。完整的代码如下(遇到类...
分类:
Web程序 时间:
2014-05-08 22:07:43
阅读次数:
550
[Question]
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to t...
分类:
其他好文 时间:
2014-05-07 05:37:44
阅读次数:
278
ubuntu 14.04 VSFTPD 匿名FTP服务器 配置文件
可以提供上传,下载,修改,等操作
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to mak...
分类:
其他好文 时间:
2014-05-07 04:26:57
阅读次数:
488
2014 年,SDN 和NFV 将超越炒作阶段,进入实际部署阶段,并扩散到新的网络位置和服务。新的生态系统正在推动更多的服务聚合(mash-up),催生创业公司和新的个性化的软件平台和云环境。新SDN 和NFV 云平台必须是可编程的、健壮的、开放的、可互操作的、虚拟和物理共存的,能够可靠地将接入网与云组合起来。这是我们所有人都需要的网络产业的发展方向。...
分类:
其他好文 时间:
2014-05-06 22:43:30
阅读次数:
447
本章关注单进程运行环境:启动&终止、参数传递和内存布局等。
进程启动终止
如图所示:
启动:内核通过exec函数执行程序,在main函数运行之前,会调用启动例程(start-up routine),取得命令行参数和环境变量。可以把启动例程理解为exit(main(argc,argv))。终止:五种正常终止方式(从main方法返回/exit/_exit/最后一个线程返回/最...
分类:
其他好文 时间:
2014-05-06 22:03:53
阅读次数:
514
Treasure Hunt IVTime Limit:2 Seconds Memory
Limit:65536 KBAlice is exploring the wonderland, suddenly she fell into a hole,
when she woke up, she foun...
分类:
其他好文 时间:
2014-05-06 18:08:39
阅读次数:
290
1.如果要获得
http://hq.sinajs.cn/rn=61fdj&format=text&list=stock_sh_up_5min_20
输出的数据打开链接,可以看到输出的是 stock_sh_up_5min_20 = ...也就是说服务器返回的是一段js代码,所以我们在本地建立一个,并把...
分类:
Web程序 时间:
2014-05-06 10:27:29
阅读次数:
448
BFS以及它的扩展,我发现栈是个很好用的数据结构,特别是对于顺序需要颠倒的时候!!!这里有个重要的信息:可以用null来标识一个level的结束!!!下面是AC代码:
1 /** 2 * Given a binary tree, return the bottom-up level ord...
分类:
其他好文 时间:
2014-05-05 09:46:06
阅读次数:
402
出现上述错误的原因有以下几种:1) unused
pin没有设置,可能会收到外部信号的干扰;设置未用引脚为As input tri-stated with weak
pull-up.2) 系统时钟信号没有约束,或者SDRAM等存储设备的时钟没有配置正确;3) 系统复位信号没有连接外部复位开关;4) ...
分类:
其他好文 时间:
2014-05-05 09:42:07
阅读次数:
704