上一页 1 2 3 4 5 6 ··· 17 下一页

2014年3月19日

摘要: The normal way of deploy clojure files is using leiningen. But if we have no leiningen, or the script is small and unnecessary to pack as a leiningen project, we can build a "bare" clojure script in t... 阅读全文
posted @ 2014-03-19 21:57 leechau 阅读(250) 评论(0) 推荐(0) 编辑
摘要: $ cd ~/docs/propuppetex/chapter3$ cat VagrantfileVagrant.configure(VAGRANTFILE_API_VERSION) do |config|config.vm.box = "centos64"config.vm.define "ppt" do |ppt|ppt.vm.hostname = "puppet.boco.com.cn"pp... 阅读全文
posted @ 2014-03-19 09:40 leechau 阅读(250) 评论(0) 推荐(0) 编辑
摘要: M-x browse-url-w3 阅读全文
posted @ 2014-03-19 08:42 leechau 阅读(181) 评论(0) 推荐(0) 编辑

2014年3月18日

摘要: AllDup的Portable版:AllDupPortable.zip,今天用它查找重复的电子书,效果良好。基本使用方法是:在"Source Folder"里选择要查找重复文件的文件夹,例如e:\mydoc\books,然后在"Search Criteria"里设置好判定为相同文件的条件,一般选择文件名和大小相同,然后点"Start Search"按钮就开始查找了。此类软件介绍见http://ww... 阅读全文
posted @ 2014-03-18 08:16 leechau 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 首先是用python自己的api: shutil.copytree('./build/tested/doc', './build/tested/build/doc')优点是改变平台时不需要修改代码,缺点是doc文件夹下所有的东西都会被拷贝,包括隐藏目录; 其次是使用windows的api: result = subprocess.call(['xcopy', '.\build\tested\doc... 阅读全文
posted @ 2014-03-18 08:16 leechau 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 方法1:安装Ubuntu Server版,好处是默认不安装GUI,且可以自动安装ssh服务和其他很多服务,且消耗系统资源少(约200MB内存,Desktop版启动后需要500MB左右内存),启动和关闭速度快(关机:shutdown -P now);方法2:安装Ubuntu Desktop版,出现用户登录界面时按Ctrl+Alt+F1键进入命令行界面,F1~F6对应tty1~tty6,按Alt+F1... 阅读全文
posted @ 2014-03-18 08:16 leechau 阅读(884) 评论(0) 推荐(0) 编辑
摘要: The following scripts run in ipython demonstrate the differences between instance method and static method.Generally OOP make things complicated for imperative style applications.So when developing th... 阅读全文
posted @ 2014-03-18 08:16 leechau 阅读(261) 评论(0) 推荐(0) 编辑
摘要: VirtualBox version: VirtualBox-4.2.18-88780-Linux_x86.runHost OS: Linux Mint 14 XfceSetup NetworkAdd a virtual network in host: VirtualBox -> File -> Preferences -> NetworkCreate a VM with the first N... 阅读全文
posted @ 2014-03-18 08:16 leechau 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 以下是paramiko-1.7.7.1的安装过程,可以看到整个过程分为步,第一步是build,就是拷贝源文件到build文件夹里,F:\VMFiles\tmpFiles\paramiko-1.7.7.1>F:\Software\Python27\python.exe setup.py install running install running build running build_py cr... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 下面的两个pattern(p1和p2)分别代表了(A or B) and (C or D)和(A and B) or (C and D)的跨行匹配结果,当然还可以用正则表达式构建更复杂的pattern,但这个实例证明了Groovy具备跨行匹配复杂逻辑表达式的能力。 值得注意的是,多行匹配文本时需要在匹配字符串前加“(?ms)”。 该实例同时演示了Groovy闭包的使用方法。 源代码 msg1 =... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(1757) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 17 下一页

导航