Help Me Escape
Time Limit: 2 Seconds
Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:
其他好文 时间:
2014-07-05 11:05:59
阅读次数:
220
疯狂的暑假学习之 Django学习笔记(二)—— 模板
参考: 《The Django Book》 第四章
一、模板基础知识
1.模板是如何工作的
用 python manage.py shell 启动交互界面(因为manage.py 保存了Django的配置,如果直接python启动交互界面运行下面代码会出错)
输入下面代码
>>> from django import template
>>> t = template.Template('My name is {{name}}.')
>>> ...
分类:
其他好文 时间:
2014-07-05 10:41:57
阅读次数:
278
现象生产环境和测试环境都发现有个外围应用通过搜索服务调用搜索引擎时,偶尔会出现大量的访问超时的问题,通过如下方式进行分析排查:l 首先是拿到搜索服务的JavaCore,发现其堵在HttpClient的发送上面,被堵的连接有数百个,原因是不能够从连接池中获取到连接;l 首先想到的就是连接池没有释放,检查代码,也确实存在着一些调用没有释放连接,特别是在异常的情况下,针对这一部分代码进行修复后,可是一段...
分类:
其他好文 时间:
2014-07-04 09:20:53
阅读次数:
511
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
有f(n) = f(n - 1) + f(n...
分类:
其他好文 时间:
2014-07-04 08:39:44
阅读次数:
304
Patchouli's Spell Cards
Time Limit: 7 Seconds
Memory Limit: 65536 KB
Patchouli Knowledge, the unmoving great library, is a magician who has settled down in the Scarlet Devil Mansion (紅魔館...
分类:
其他好文 时间:
2014-07-04 08:34:34
阅读次数:
347
HBase Shell
HBase shell使用起来最方便,进入HBase shell控制台即可使用。
$ $HBASE_HOME/bin/hbase shell
常见操作有create(创建表)/put(插入或更新数据)/get(根据rowkey查询)/scan(范围查询)/delete(删除列)/deleteAll(根据rowkey删除整行数据)/disable&drop(禁用表之后再...
分类:
编程语言 时间:
2014-07-04 08:12:54
阅读次数:
383
【原题】
1858: [Scoi2010]序列操作
Time Limit: 10 Sec Memory Limit: 64 MB
Submit: 1031 Solved: 529
[Submit][Status]
Description
lxhgww最近收到了一个01序列,序列里面包含了n个数,这些数要么是0,要么是1,现在对于这个序列有五种变换操作和询问操作: 0 a...
分类:
其他好文 时间:
2014-07-04 07:57:33
阅读次数:
594
今天在闲暇时间练习了一下oracle任务计划,具体详情如下1.创建表TBL_TIMEcreatetabletbl_time(
idnumbernotnull,/*id号*/
vsecondvarchar2(2),/*秒*/
vtimevarchar2(10)/*当前时间*/
)2.创建序列seq_tbltimecreatesequenceseq_tbltime
startwith1
incrementby1
nomaxval..
分类:
数据库 时间:
2014-07-04 06:03:32
阅读次数:
386
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-07-03 23:51:47
阅读次数:
408