Browser security prevents a web page from making AJAX requests to another domain. This restriction is called the same-origin policy, and prevents a ma ...
风险指标数据有利于对策略进行一个客观的评价,主要风险指标包括: 策略收益(Total Returns) 策略年化收益(Total Annualized Returns) 基准收益(Benchmark Returns) 基准年化收益(Benchmark Annualized Returns) 阿尔法( ...
分类:
其他好文 时间:
2016-11-30 03:35:45
阅读次数:
286
最先想到是用double LinkedList+Map, 没必要,arraylist+map就够了;另外取random的方法还有,rand.nextInt(int n) returns an integer in the range [0, n) java.util.Random rand = ne ...
分类:
其他好文 时间:
2016-11-29 07:39:29
阅读次数:
182
HTML模版页面UserList.htm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x ...
分类:
Web程序 时间:
2016-11-28 08:06:49
阅读次数:
210
题目: 给Array对象原型上添加一个sameStructureAs方法,该方法接收一个任意类型的参数,要求返回当前数组与传入参数数组(假定是)相对应下标的元素类型是否一致。 假设已经写好了Array.prototype.sameStructureAs ,会有下面的结果: 看到上面的代码返回值,或许 ...
分类:
编程语言 时间:
2016-11-28 00:41:30
阅读次数:
188
制作扩展方法,方便网页中使用,下面做了两个例子 ...
分类:
Web程序 时间:
2016-11-28 00:26:09
阅读次数:
220
wordpress插件bug排查后记(这篇文章是写给自己的),涉及到了wp_posts数据表、WP_Object_Cache和memcached插件。 ...
分类:
其他好文 时间:
2016-11-26 20:35:45
阅读次数:
361
有时候我们想动态的根据一个资源名获得到对应的资源id,就可以使用getResources().getIdentifier()方法来获取该id。然后再使用该id进行相关的操作。
1、Demo示例
下...
分类:
移动开发 时间:
2016-11-25 12:38:07
阅读次数:
508
这题参照http://blog.jobbole.com/42550/ 用的蓄水池算法,即更改ans的概率为1/(当前length) ...
分类:
其他好文 时间:
2016-11-25 11:30:29
阅读次数:
157
非常精巧地使用stack。push all the nestedList into the stack from back to front,so when we pop the stack, it returns the very first element 执行hasNext()的时候,如果pe ...
分类:
其他好文 时间:
2016-11-24 09:19:40
阅读次数:
202