今天有一同事安装了ORACLE后,在切换账号时遇到错误提示“-bash: .bash_profile: command not found”。如下所示 [root@GLETestLinux ~]# su - oracle-bash: .bash_profile: command not found[...
分类:
其他好文 时间:
2015-01-22 00:10:17
阅读次数:
124
字符串-01. 在字符串中查找指定字符(15)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者白洪欢(浙江大学)输入一个字符串S,再输入一个字符c,要求在字符串S中查找字符c。如果找不到则输出“Not found”;若找到则输出字符串S中从c开始的所有...
分类:
其他好文 时间:
2015-01-21 22:10:07
阅读次数:
161
安装tcpreplay时报错configure: error: libdnet not found解决方法:下载包libdnet-1.8.tar.gz并安装,依次执行:./configuremakemake install验证问题解决。下载地址:http://download.chinaunix.n...
分类:
Web程序 时间:
2015-01-21 20:03:18
阅读次数:
898
题目是这样的: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inser....
分类:
其他好文 时间:
2015-01-21 18:08:27
阅读次数:
177
练习 1 方案:确定软件包是否安装如果您不确定某个软件包是否已经安装,可以使用dpkg的-l(L的小写) 选项:$ dpkg -l zsh No packages found matching zsh. 上面结果这表明 zsh没有安装。练习 2 的方案. 搜索软件包可以使用apt-cache命令和它...
分类:
系统相关 时间:
2015-01-21 13:25:11
阅读次数:
292
最近在写一个可执行jar的程序,程序中包含了2个资源包,一个是images,一个是files。问题来了,在Eclipse里开发的时候,当用File类来获取files下面的文件时,没有任何问题。但是当程序导出为Runnable Jar时,运行程序时抛出异常,File not found。我们来一探究竟...
分类:
编程语言 时间:
2015-01-21 06:36:50
阅读次数:
364
很有意思的题目,简单粗暴根据大白上的思路来的,但是数组下标从1开始会好处理一点#include #include #include #include #include #include using namespace std;const int maxn = 20;const int mod = 1...
分类:
其他好文 时间:
2015-01-20 17:43:45
阅读次数:
137
数组-04. 查找整数(10)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者杨起帆(浙江大学城市学院)本题要求从输入的N个整数中查找给定的X。如果找到,输出X的位置(从0开始数);如果没有找到,输出“Not Found”。输入格式:输入在第1行中给出...
分类:
编程语言 时间:
2015-01-20 17:11:08
阅读次数:
208
E325: ATTENTION Found a swap file by the name "********" ******* Press ENTER or type command to continue原因是在此次vi或vim操作前有过一次使用vi或vim 操作文件时出现了异常中...
分类:
系统相关 时间:
2015-01-20 15:22:00
阅读次数:
271
org.apache.http.client.HttpClient使用中,报了以下的异常:
Invalid use of SingleClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
此问题出现原因是并发调用同一个h...
分类:
Web程序 时间:
2015-01-20 13:47:23
阅读次数:
799