通过源代码的形式编译安装程序时,需要先安装gcc编译器,通常会在编译安装时通过./configure--help查看帮助信息,并使用--prefix指定安装路径。需要注意的内容如下:1.修改PATH环境变量,以便可以识别此二进制程序所在的路径。方法1:修改/etc/profile文件,增加PATH=$PATH:/pa..
分类:
其他好文 时间:
2014-07-24 17:53:33
阅读次数:
231
昨天写的关于解决JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java
Build Path的方案很好的解决了这个错误,但是它没有完全的解决我的问题,Maven项目依然有一个红色叹号存在。红
色叹号存在的原因是:.classpath配置文件引用了某jar包,但是lib里却不存...
分类:
编程语言 时间:
2014-07-24 17:47:06
阅读次数:
247
在PHP中,is_file和file_isexist是有很小区别的
1) is_file:
$path ="/path/to/file/text.txt";
if(file_exists($path))
echo "File Exists";
else
echo "File not Exists";
比如在这个例子中,文件存在会返回true...
分类:
Web程序 时间:
2014-07-24 17:39:06
阅读次数:
262
tomcat学习笔记环境变量的配置(1)配置CATALINA_HOME:D:\app\apache\apache-tomcat-7.0.54(不带上bin目录);(2)添加bin目录到path中:%CATALINA_HOME%/bin;D:\app\mysql-5.6.16-winx64\bin;%...
分类:
其他好文 时间:
2014-07-24 17:23:55
阅读次数:
216
在许多场合,我们会需要用到oracle列合并,oracle提供了一些方法用于把某列的多行数据合并成一行。
一、10G以前使用WMSYS.WM_CONCAT
wmsys.wm_concat将字段的值用","来隔开。
select id,wm_concat(name) from tab_name group by id;
二、sys_connect_by_path
s...
分类:
数据库 时间:
2014-07-24 12:24:35
阅读次数:
263
1.用绝对路径使用命令,如 $ /bin/ls 2.查看用户预设路径 $ echo $PATH $ /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games 冒号分隔的多个路径,如果一个命令有两个版本的路径存在,如...
分类:
系统相关 时间:
2014-07-24 10:56:54
阅读次数:
332
源码:
#!/usr/bin/env python
#coding:utf-8
import os.path
import tornado.locale
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from tornado.options import defi...
分类:
数据库 时间:
2014-07-24 10:31:32
阅读次数:
314
A method is presented for finding a shortest path from a starting place to a destination place in a traffic network including one or more turn restric...
分类:
Web程序 时间:
2014-07-24 00:50:17
阅读次数:
422
public class ZipUtil {
public ZipUtil(){
}
/**
* DeCompress the ZIP to the path
* @param zipFileString name of ZIP
* @param outPathString path to be unZIP
* @throws ...
分类:
移动开发 时间:
2014-07-23 22:31:57
阅读次数:
388
using System.IO;string path = @"D:\accountDaoRu"; if (Directory.Exists(path) == false) { Directory.CreateDirectory(path); }if (Directory.Exists(Server...
分类:
其他好文 时间:
2014-07-23 22:13:17
阅读次数:
250