链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1752
Description
There are n webpages, each of which has its respective page rank. The content is constantly updated ...
分类:
其他好文 时间:
2014-06-09 23:32:22
阅读次数:
270
freemarker自定义标签
1、错误描述
六月 05, 2014 11:31:35 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Error executing macro: write\nrequired parameter: nums is not s...
分类:
其他好文 时间:
2014-06-09 23:18:11
阅读次数:
353
Find the contiguous subarray within an array (containing at least one number) which has the largest sum....
分类:
其他好文 时间:
2014-06-08 15:54:08
阅读次数:
258
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that i...
分类:
编程语言 时间:
2014-06-08 15:25:00
阅读次数:
282
1. 创建目录
SQL> create directory dump_file as ‘/db/backup’;
2. 目录赋权限
SQL> grant read,write on directorydump_file to bam;
查看目录
SQL> select * from dba_directories;
3. 备份
SQL>expdp user/pwd directo...
分类:
数据库 时间:
2014-06-08 10:07:15
阅读次数:
333
#!/bin/sh
while true
do
ps | grep "my_app" | grep -v "grep" > /dev/null
#第一二个命令输出my_app的运行情况,第二个命令去掉带有grep的条目,然后把结果重定向到null里面不要回显
if [ "$?" -eq 1 ] # 1 : 表示有 ; 0 :表示没有
then
./my_app &...
分类:
系统相关 时间:
2014-06-08 10:06:03
阅读次数:
346
acm菜鸡必备
1 runtime! debian.vim
2 if has("syntax")
3 syntax on
4 endif
5 if filereadable("/etc/vim/vimrc.local")
6 source /etc/vim/vimrc.local
7 endif
8 "syntax high light
9 synta...
分类:
其他好文 时间:
2014-06-08 09:45:09
阅读次数:
286
MySQL总是崩溃
首先你应该试着找出问题MySQLd守护进程是否死掉或你的问题是否与你的客户有关。你可以用MySQLadmin version检查你的MySQLd服务器正常执行了多长时间,如果MySQLd死了,你可以在文件“MySQL-data-directory/'hostname'.err”中找到其原因。
使用MySQL时的一些常见错误
MySQL server has g...
分类:
数据库 时间:
2014-06-08 09:00:48
阅读次数:
286
这篇文章记录了在 IOS 中使用 Swift 操作 CoreData 的一些基础性内容,由于缺乏文档,基本上都是自行实验的结果,错漏不可避免,还请谅解。...
分类:
移动开发 时间:
2014-06-08 04:56:39
阅读次数:
419
今天在一篇关于内建类的博文中,讲到了Boolean类,其对象有一个toSource()方法:返回表示对象源代码的字符串。由于学的浅,测试时,出现了不同的结果:
var b = new Boolean("");
document.write("b的值是:"+b+"");
document.write("b的原始值是:"+b.valueOf()+"");
document.write("b的字符串值是:"+b.toString()+"");
document.write("b的...
分类:
编程语言 时间:
2014-06-08 04:14:31
阅读次数:
277