码迷,mamicode.com
首页 > 其他好文
Top命令VIRT,RES,SHR,DATA的含义
VIRT:virtual memory usage? ??? 1、进程“需要的”虚拟内存大小,包括进程使用的库、代码、数据等? ??? 2、假如进程申请100m的内存,但实际只使用了10m,那么它会增长100m,而不是实际的使用量? RES:...
分类:其他好文   时间:2015-04-23 15:59:38    阅读次数:311
将tomcat欢迎页面修改为自己项目的主页
1.我在$tomcat/webapps/下建了个myjsp目录作为我网站的默认目录,在myjsp中有一个a.jsp文件,该文件要作为我网站的默认主页。 2.修改配置文件: 首先,修改$tomcat/conf/server.xml文件。 在server.xml文件中,有...
分类:其他好文   时间:2015-04-23 15:57:27    阅读次数:148
利用openoffice转换ppt、doc转化pdf 具体代码
importjava.io.File;importjava.io.IOException;importjava.net.ConnectException;importcom.artofsolving.jodconverter.DocumentConverter;importcom.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection;importcom.artofsolving.jodconverter.openoffice...
分类:其他好文   时间:2015-04-23 15:55:54    阅读次数:167
递归显示指定文件夹下所有pdf文件
importjava.io.File;publicclassreadFile{publicstaticvoidmain(String[]args)throwsException{//递归显示C盘下所有文件夹及其中文件Fileroot=newFile("C:/Users/Administrator/Desktop");showAllFiles(root);}publicstaticvoidshowAllFiles(Filedir)throwsException{File[]fs=..
分类:其他好文   时间:2015-04-23 15:56:26    阅读次数:162
find命令
1.常见参数:-name根据文件名寻找文件-user根据文件拥有者寻找文件-group根据文件所属组寻找文件-perm根据文件权限寻找文件-size根据文件大小寻找文件[±Sizek]-type根据文件类型寻找文件,常见类型有:f(普通文件)、c(字符设备文件)、b(块设备文件)、l(符号链接)、d(目录)、..
分类:其他好文   时间:2015-04-23 15:57:30    阅读次数:228
grep命令
作用linux系统中grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。grep全称是GlobalRegularExpressionPrint,表示全局正则表达式版本,它的使用权限是所有用户。用法grep[options]filename主要参数[options]主要参数:-c:只输出匹配行..
分类:其他好文   时间:2015-04-23 15:55:34    阅读次数:125
LVS负载均衡集群搭建
环境:RHEL6-x86-64主要软件MySQL-5.6.14httpd-2.4php-5.4.13如下图:外网用户请求到达负载调度器,根据调度算法挑选一个RealServer(后简称RS)响应,并且使用PPC(持久端口连接),将同一客户端对同一集群服务的请求始终定向至此前选定的RS。定向到同一个RS有什么用呢?例如:..
分类:其他好文   时间:2015-04-23 15:55:51    阅读次数:196
E - Super Jumping! Jumping! Jumping! HDU 1087 (基础动态规划)
E - Super Jumping! Jumping! Jumping! Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 1087 Description Nowadays, a kind of chess game called “Super...
分类:其他好文   时间:2015-04-23 15:54:33    阅读次数:191
[LeetCode] Remove Linked List Elements
Remove Linked List Elements Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4...
分类:其他好文   时间:2015-04-23 15:53:26    阅读次数:148
解题报告 之 SGU242 Student's Morning
解题报告 之 SGU 242 Student's Morning 最大流 二分匹配 残余网络 输出一组解...
分类:其他好文   时间:2015-04-23 15:55:40    阅读次数:203
剑指offer—替换字符串中空格
题目: 实现一个函数,把字符串中的每个空格替换成“%20”。加入输入“we are happy.”,则输出“we%20are%20happy.”。 时间复杂度为O(n^2) 基本思想:从前往后把字符串中的空格替换成%20. 假设字符串的长度为n,对每个空格字符,需要移动后面O(n)个字符,因此总的时间复杂度为O(n^2)。 时间复杂度为O(n) 基本思想:先遍历...
分类:其他好文   时间:2015-04-23 15:52:12    阅读次数:204
[LeetCode] Swap Nodes in Pairs
Swap Nodes in Pairs Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should u...
分类:其他好文   时间:2015-04-23 15:52:23    阅读次数:186
浅谈new与delete(2)
上一节介绍了new运算符的常规用法,这一节我们一起来看看定位new运算符的用法。 1、定位new运算符是在已分配的内存空间进行二次分配。例如:     char *buffer = new char[512];     Point *p = new (buffer) Point(); //Point为类名     Point *q = new (buffer + sizeof(Poin...
分类:其他好文   时间:2015-04-23 15:51:08    阅读次数:154
编程之美中判断某个字符串是否是另一个字符串的移位结构的子串
#include #include using namespace std; bool is_circle(string src,string des) { if(src.empty()||des.empty()) return false; string temp=src; temp+=src; string::size_type pos=0; pos=temp.find(des)...
分类:其他好文   时间:2015-04-23 15:50:07    阅读次数:131
利用TerraGate Service传输Skyline MTP案例
说明 本案例实现内容:ArcGIS Server发布WMS服务、Skyline TerraBuilder制作MPT、TerraGate Service传输 MTP、Skyline TerraExplorer 加载TerraGate Service传输的 MTP。 安装ArcGIS Server(有WMS服务不需安装此软件)、 Skyline TerraBuilder、Skyline Terra...
分类:其他好文   时间:2015-04-23 15:50:47    阅读次数:194
error: Exited sync due to fetch errors
1、问题 我在使用repo sync同步代码时,运行一段时间,出现这个错误:error: Exited sync due to fetch errors,很奇怪的问题。2、分析 在网上找了一些资料,也没有找出原因。3、解决 就是很不经意之间运行了下面的指令: ssh git@10.10.10.211 再同步一下问题就解决了。 出自:http://blog.csdn.net/fulinus...
分类:其他好文   时间:2015-04-23 15:49:08    阅读次数:1262
F - Piggy-Bank HDU 1114 (完全背包的变形+初始化细节)
F - Piggy-Bank Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 1114 Description Before ACM can do anything, a budget must be prepared and the nece...
分类:其他好文   时间:2015-04-23 15:48:03    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!