我有一个常用目录/volumes/mac/www’,每次都要输入这么长的路径,麻烦,所以有了以下配置1、vi ~/.bash_profile2、按住shift + i进入编辑状态3、插入alias cdwww='cd /volumes/mac/www’4、按esc取消编辑状态,按住shift+:,输...
分类:
系统相关 时间:
2014-08-05 00:22:58
阅读次数:
278
题意:求限定起始位置的二维最长递增子序列.解题思路:直接DP解题代码: 1 // File Name: 4d.cpp 2 // Author: darkdream 3 // Created Time: 2014年08月04日 星期一 19时24分49秒 4 5 #include 6 #...
分类:
其他好文 时间:
2014-08-05 00:18:48
阅读次数:
294
<?php //初始化变量 $cookie_file = tempnam('./','cookie'); $ip1 = mt_rand(1,127) . '.' . mt_rand(1,127) . '.' . mt_rand(1,127) . '.' . mt_rand(1,127); $head...
分类:
Web程序 时间:
2014-08-05 00:04:28
阅读次数:
269
#!/usr/bin/env python# -*- coding:utf-8 -*- 'python核心编程例子3.1:makeTextFile.py -- create text file'import os import sys ls = os.lines...
分类:
编程语言 时间:
2014-08-05 00:02:38
阅读次数:
294
参考文献:
Harley Hahns:Guide to Unix and Linux, Chap 24
——》首先要有的关键概念:the amount of "disk space" used by a file is not the same as the amount of data in the file.
——》其次,理解在file system和disk(or ot...
分类:
其他好文 时间:
2014-08-04 21:37:08
阅读次数:
223
今天我遇到了一个问题,就是直接输入http://localhost:8080/xxx-admin/,不是跳转到index.html,而是报404找不到的错误,根据错误信息看明显是没有跳转到index.html,意思就是说welcome-file-list根本就木有起作用。只有我输入确切路径htt.....
分类:
其他好文 时间:
2014-08-04 21:27:57
阅读次数:
352
String keyStoreFilePassword = System .getProperty("keystore.file.password");/usr/java/jdk1.6.0_25/bin/keytool -genkey -keystore SrvKeystore -key...
分类:
其他好文 时间:
2014-08-04 21:24:48
阅读次数:
312
configure 文件里 print sys.prefix 等不能支持python3的原因依据http://blog.csdn.net/jklfjsdj79hiofo/article/details/26607797 在configure文件去查找 该上面的语句
分类:
Web程序 时间:
2014-08-04 21:10:57
阅读次数:
268
>>> from django.template import Template>>> t = Template("My name is {{ my_name }}.")Traceback (most recent call last): File "C:\Python33\lib\site-pac...
分类:
其他好文 时间:
2014-08-04 21:09:40
阅读次数:
242