DescriptionYou are to write a program that has
to decide whether a given line segment intersects a given rectangle.An
example:line: start point: (4,9)...
分类:
其他好文 时间:
2014-05-07 13:55:45
阅读次数:
387
1.切换工作目录git checkout step-4 #切换分支,切换到第4步npm
start #启动项目2.代码app/index.htmlSearch: Sort by: {{phone.name}} {{phone.snippet}}
app/controllers....
分类:
Web程序 时间:
2014-05-07 11:05:47
阅读次数:
527
.text
.global _start
_start:
movl $len,%edx
movl $msg,%ecx
movl $1,%ebx
movl $4,%eax
int $0x80
movl $0,%ebx
movl $1,%eax
int $0x80
.dat...
分类:
其他好文 时间:
2014-05-07 08:42:24
阅读次数:
306
这道题还挺复杂的,回来看了好一会儿才想起当时怎么想的。。上道题刚说不要打表,这道题就用了打表。。
总的思路是这样的,从后面往前面打表,最后一个位置的最小分割一定是0,那往前呢,如果当前考虑的位置是start,并且substr(s, i)是回文的,那么如果已知i+1开始的分割次数,那么start这个位置的分割应该就是start原来的和i+1开始的分割次数加1之间的最小值。DP的思想,很直接。
但...
分类:
其他好文 时间:
2014-05-07 07:37:39
阅读次数:
307
这里介绍一下hadoop的组成, hadoop主要由两部分组成,,一个是hdfs,另一个是mapreduce
这两个部分在hadoop 2.2.0中分别用start-dfs.sh和start-yarn.sh启动。mapreduce 在2.0版本中有了一个新名字yarn.
dfs 主要用来启动 namenode 和 datanode, namenode既是是传说中的matser, datanod...
分类:
其他好文 时间:
2014-05-07 04:33:35
阅读次数:
359
WebService之CXF注解
1、具体报错如下
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop }
2014-5-4 22:42:12 org.apache.catalina.core.AprLifecycleL...
分类:
Web程序 时间:
2014-05-07 03:33:05
阅读次数:
630
There are a lot of controversy about the definition of probability, so we just start with the uncontroversial parts. In general we can say that the probability is a value between 0 and 1 that
is int...
分类:
其他好文 时间:
2014-05-07 03:12:35
阅读次数:
224
配置rndc.conf 命令:rndc-confgen >
/etc/bind/rndc.conf自动生成rndc.conf,内容如下:# Start of rndc.conf key "rndc-key" {
algorithm hmac-md5; secret "oYV+NSAXam...
分类:
其他好文 时间:
2014-05-07 01:45:13
阅读次数:
249
mac的os x操作系统自带的有apach服务器, 命令行:sudo apachectl -v
可查看自带apache版本信息输入:sudo apachectl start 就开启了apache, 可用localhost或者127.0.0.1看it
works服务器路径在 硬盘 /资源库(Libra...
分类:
其他好文 时间:
2014-05-07 01:08:12
阅读次数:
331
本章关注单进程运行环境:启动&终止、参数传递和内存布局等。
进程启动终止
如图所示:
启动:内核通过exec函数执行程序,在main函数运行之前,会调用启动例程(start-up routine),取得命令行参数和环境变量。可以把启动例程理解为exit(main(argc,argv))。终止:五种正常终止方式(从main方法返回/exit/_exit/最后一个线程返回/最...
分类:
其他好文 时间:
2014-05-06 22:03:53
阅读次数:
514