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 cli...
分类:
其他好文 时间:
2014-07-07 21:03:15
阅读次数:
157
进程管理:ps、top、kill指令名称:ps语法:ps [选项]-a显示所有终端机下执行的程序。-e显示所有程序。-f显示UID,PPIP,C与STIME栏位。功能描述:查看系统中运行的进程。范例:# ps -aef# ps -A 查看所有进程,和ps -e功能相同指令名称:top语法:top [...
分类:
系统相关 时间:
2014-07-07 20:22:24
阅读次数:
259
Hey,guys! 让我们一起用HTML5实现一下简易时钟吧!接触canvas时, 我突然有一种非常熟悉的感觉------canvas的部分的功能其实和Photoshop中的 钢笔工具 是一样的。所以,如果你对PS里的钢笔工具 运用自如的话,恭喜你,canvas你将很快上手~~说下对HTML5中ca...
分类:
Web程序 时间:
2014-07-07 16:49:26
阅读次数:
241
In Gnome 3, gnome-shell is used for displaying the top bar. The widgets can be installed online from http://extensions.gnome.org. After installation, ...
分类:
其他好文 时间:
2014-06-30 13:33:22
阅读次数:
172
1. top2. vmstat 3. w & uptime4. ps && pstree5. free6. iostat7. sar 8. mpstat 9. pmap 1. netstat & ss2. iptraf 3. tcpdump4. /proc5. Nagios 6. Cacti 7. ...
分类:
系统相关 时间:
2014-06-30 11:18:50
阅读次数:
261
题目
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down...
分类:
其他好文 时间:
2014-06-30 11:10:34
阅读次数:
211
在做基于B/S应用中,经常有需要后台运行任务的需求,最简单比如发送邮件。在一些如防火墙,WAF等项目中,前台只是为了展示内容与各种参数配置,后台守护进程才是重头戏。所以在防火墙配置页面中可能会经常看到调用cgi,但真正做事的一般并不是cgi,比如说执行关机命令,他们的逻辑如下: (ps:上图所说的前台界面包含通常web开发中的后端,不然也没有socket一说) 为什么要这么设计你可能疑惑...
分类:
编程语言 时间:
2014-06-30 08:28:34
阅读次数:
282
代码如下:
PS:做了一些测试,目前没问题。有问题请指正。。。
{CSDN:CODE:410276}
{CSDN:CODE:410278}...
分类:
其他好文 时间:
2014-06-30 07:57:44
阅读次数:
203
PS: 在看三层架构的时候,找的了一个我感觉不错的材料,里面有如下一张图,打算详细的解释一下这张图,也总结一下三层的知识...
分类:
其他好文 时间:
2014-06-30 00:15:45
阅读次数:
277
1,new操作符实际上包含三部分:operator new分配内存和调用构造函数初始化刚刚分配的内存,类型转换刚刚的指针。string* ps = new string("lalalala");相当于void* memory = operator new(sizeof(string));call s...
分类:
其他好文 时间:
2014-06-29 19:15:07
阅读次数:
197