Category Archives: Tool

自制 python 批量压图程序

自个儿的相册缩图程序, 图个方便~ python 写的, 纯当练练手. #!/usr/bin/env python #coding=utf-8 import Image import os import sys def go(in_dir, out_dir="", recursion="1"): ''' 准备,开始! ''' if out_dir=="": out_dir = in_dir list_dir(in_dir, out_dir, recursion) def list_dir(in_dir, out_dir, recursion): ''' 递归子目录, 如果是图片则开始压图, 如果是子目录,继续深入 ''' for listName in os.listdir(in_dir): if os.path.isdir(in_dir+listName): childInDirName = in_dir+listName+'/' childOutDirName = out_dir+listName+'/' if os.path.isdir(childOutDirName)==False: os.mkdir(childOutDirName) #print childInDirName+"\t"+childOutDirName [...]
Also posted in Python | Tagged | Leave a comment

windows 下安装 Cassandra

部分内容参考自这里, 这里, 这里 1, 安装好JAVA6 我下载的 jdk-6u6-windows-i586-p.exe 安装在 C:\Program Files\Java\jdk1.6.0_06 目录中 2, 下载好Cassandra 下载地址 http://incubator.apache.org/cassandra/ 解压到要安装的目录, 我下载的 0.5.1 版本解压在 D:\cassandra 目录中
Posted in Tool | Tagged , , | Leave a comment

ubuntu下安装lampp+memcache

部分内容来自这里 部分内容来自这里 部分内容来自这里 ########################## # LAMPP部分 ########################## 1, 下载 http://www.apachefriends.org/zh_cn/xampp-linux.html 2, 安装 sudo su #切换到root用户用户 tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt #安装 就这样结束了。XAMPP 被安装在 /opt/lampp 目录下。
Also posted in Linux, PHP | Tagged , , | 1 Comment

自己常用的几款 FireFox 插件

1, firebug, 在线安装 相信每个开发者必备的超强页面调试工具,如果你没有那你就OUT了!
Also posted in Firefox, Tips | Tagged , , | Leave a comment