处理string list在一个string list中用正则表达式查找查找第一个匹配到的元素:> (set 'l '("WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j...
分类:
其他好文 时间:
2014-09-07 23:52:36
阅读次数:
410
WebGrid Helper with Check All Checkboxes Tuesday, September 13, 2011ASP.NET ASP.NET MVC Html Helper jQuery WebMatrix Introduction: WebGrid helper is o...
分类:
Web程序 时间:
2014-09-07 23:44:05
阅读次数:
300
matplotlib下载及API手册地址:http://sourceforge.net/projects/matplotlib/files/matplotlib/
数学库numpy下载及API手册地址:http://www.scipy.org/Download
几个绘图的例子【来自API手册】
1、最简单的图:
代码:
#!/usr/bin/env python
i...
分类:
其他好文 时间:
2014-09-07 22:29:25
阅读次数:
270
c+11新增加了一些便利的算法,这些新增的算法使我们的代码写起来更简洁方便,这里仅仅列举一些常用的新增算法,算是做个总结,更多的新增算法读者可以参考http://en.cppreference.com/w/cpp/algorithm。 算法库新增了三个用于判断的算法all_of、any_of和...
分类:
编程语言 时间:
2014-09-07 22:22:25
阅读次数:
238
本文理解来自论文All about Eve: Execute-Verify Replication for Multi-Core Servers
Eve是为了适应多核服务器而诞生的distributed replication方案。State machine replication旨在实现fault tolerance。由于让所有的replicas执行一样顺序的请求很困难,Eve采取...
分类:
其他好文 时间:
2014-09-07 21:14:05
阅读次数:
301
我们知道,使用ls命令列出文件列表时,不同的文件类型会用不同的颜色显示。那么如何实现这样带颜色的文本输出呢?答案并不复杂,不管是用shell还是C语言。一、shell下的实现方法先来讲在shell下,如何实现。用echo命令就可以实现,参看以下例子:echo-e"\033[32mHello, wor...
分类:
系统相关 时间:
2014-09-07 21:03:25
阅读次数:
206
1.the concept of List2. how to define a method of myself3.how to iterator a listPS:for Step 2,3. it is related with a key word: 'def'. we define a fun...
分类:
编程语言 时间:
2014-09-07 21:00:15
阅读次数:
229
条款4:Make sure that objects are initialized before they're used.译:确定对象被使用前已先被初始化.C++的初始化先来一个Java的初始化class Student{ private String Name; ...
分类:
编程语言 时间:
2014-09-07 19:42:55
阅读次数:
289
Python操作MySQL需要安装Python-MySQL可以从网上搜索一下,和一般的Python包一样安装安装好之后,模块名字叫做MySQLdb ,在Window和Linux环境下都可以使用,试验了一下挺好用,不过又发现了烦人的乱麻问题,最后用了几个办法,解决了!我用了下面几个措施,保证MySQL...
分类:
数据库 时间:
2014-09-07 18:29:45
阅读次数:
259
Book DescriptionBuild kickass websites and applications for all mobile (and non-mobile) platforms by adding HTML5 and CSS3 to your web development too...
分类:
Web程序 时间:
2014-09-07 18:29:05
阅读次数:
232