在python2和python3共存的机器上做开发,要想互不干扰,虚拟环境很重要。Debian7 默认是python2.7.3,装好python3.4.1后怎么建立虚拟环境呢?$ pyvenv myVenv$ source myVenv/bin/activate然后就可以在虚拟环境中安装程序了。如:...
分类:
编程语言 时间:
2014-09-11 20:54:52
阅读次数:
216
网站上传文件后,如果是图片,都要对文件进行处理,压缩、缩放之类的。 import java.nio.file.*;//如果是图片文件,则执行缩放处理
Path source = Paths.get(newFilePath);
String contentType = Files.probeContentType(source);
if (contentType.starts...
分类:
编程语言 时间:
2014-09-11 19:23:12
阅读次数:
159
1.WPF Resource2.WPF : Binding的3个属性: Source, RelativeSource, ElementName3.WPF之资源
分类:
其他好文 时间:
2014-09-11 19:11:32
阅读次数:
134
centos 6.5 在virtual box 上 安装增强版工具: 出现:centos unable to find the source of your current linux kernelIs it too late to contribute to this thread? I fo.....
分类:
其他好文 时间:
2014-09-11 19:10:42
阅读次数:
160
如下是php.ini中的原文说明以及默认配置: ; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory or ; per-...
分类:
Web程序 时间:
2014-09-11 17:39:22
阅读次数:
209
Android中UI特效
android经典开源代码分享
本文原始网址
作者为23code,欢迎给作者投稿
其它UI相关的网址:
https://github.com/Trinea/android-open-project
http://alamkanak.github.io/android-libraries-and-resources/
...
分类:
移动开发 时间:
2014-09-11 17:19:02
阅读次数:
317
鏈接: http://acm.hdu.edu.cn/showproblem.php?pid=1116
Problem Description
Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that do...
分类:
其他好文 时间:
2014-09-11 17:17:12
阅读次数:
320
项目地址:https://github.com/ZhangTingkuo/AndroidCnblogs1.查看评论// 获取文章评论 public static final String BLOGS_COMMENTS = "http://wcf.open.cnblogs.com/blog/po...
分类:
移动开发 时间:
2014-09-11 16:55:32
阅读次数:
295
占位符1. Source创建Extractadd extract ext1,tranlog, begin nowadd exttrail /u01/ggate/dirdat/lt, extract ext1view params ext12. Source创建Pumpadd extract dpum...
分类:
数据库 时间:
2014-09-11 16:46:42
阅读次数:
349
一、安装准备1.安装Openssl要使Apache支持SSL,需要首先安装Openssl支持。推荐下载安装openssl-0.9.8k.tar.gz下载Openssl:http://www.openssl.org/source/tar -zxf openssl-0.9.8k.tar.gz //解压....
分类:
系统相关 时间:
2014-09-11 16:41:32
阅读次数:
260