yum(全称为 Yellow dog Updater,
Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。yu...
分类:
系统相关 时间:
2014-05-12 05:10:03
阅读次数:
509
自己写的一段://goolchar* str_replace(char* source,
const char* find, const char* replace){ if (source == NULL || find == NULL ||
find == "") return strdup.....
分类:
其他好文 时间:
2014-05-12 02:42:20
阅读次数:
418
1.profileprofiling levels:
0,关闭profile;1,只抓取slow查询;2,抓取所有数据。启动profile并且设置Profile级别:可以通过mongo
shell启动,也可以通过驱动中的profile命令启动,启动后记录会被保存在system.profile col...
分类:
数据库 时间:
2014-05-12 02:09:33
阅读次数:
431
ind是一个基于查找的功能非常强大的命令,相对而言,它的使用也相对较为复杂,参数也比较多,所以在这里将给把它们分类列出,它的基本语法如下:find[PATH][option][action]#与时间有关的参数:-mtimen:n为数字,意思为在n天之前的“一天内”被更改过的文件;-mtime+n:列...
分类:
其他好文 时间:
2014-05-12 02:01:20
阅读次数:
327
在Android中,除了从界面上启动程序之外,还可以从命令行启动程序,使用的是命令行工具am.usage: am [subcommand] [options]
start an Activity: am start [-D] -D: enable debugging send a broadcast...
分类:
移动开发 时间:
2014-05-12 01:45:49
阅读次数:
373
1.bash的特性在LINUX进行SHELL编程是很常见的一项任务,熟悉BASH的特性,是十分必要的。昨天花了一天时间,对BASH的特性进行了学习总结,发现过去的自己,对LINUX的BASH特性认识的很少,收获很多。2.BASH支持命令行编辑一直以来,和LINUX的COMMANDLINE打交道,只知道clear清屏..
分类:
系统相关 时间:
2014-05-11 19:13:00
阅读次数:
460
Triangle
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 8038
Accepted: 2375
Description
Given n distinct points on a plane, your task is to find the triangl...
分类:
其他好文 时间:
2014-05-11 06:36:44
阅读次数:
425
题目
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,...
分类:
其他好文 时间:
2014-05-11 03:25:24
阅读次数:
298
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Maximum Depth of Binary Tree
Total Accepted: 16605 Total
Submissions: 38287
Given a binary tree, find its maximum depth.
...
分类:
其他好文 时间:
2014-05-11 01:58:31
阅读次数:
441
本文地址:http://blog.csdn.net/a_ran/article/details/25250583
在学习linux系统编程的时候,实现了rmdir命令的特别版本。
因为rmdir只能删除空文件夹,而我实现的功能相当于 rm -rf path...
实现的功能:
递归删除指定文件夹的所有文件
程序说明:
1. my_rmdir(): 即为递归删除动作的自定义函...
分类:
系统相关 时间:
2014-05-11 01:56:33
阅读次数:
538