- 博客(7)
- 收藏
- 关注
用scrubyt抓取酷讯最新火车票信息
用scrubyt写的一个简单的小例子,scrubyt看起来真的很不错,不过现在bug也非常的多,特别是对xpath的支持。 [code="ruby"] require 'rubygems' require 'scrubyt' Scrubyt.logger = Scrubyt::Logger.new kooxoo_data = Scrubyt::Extractor.define...
2008-01-26 13:56:46 113
scrubyt出现RubyInline (= 3.6.3)错误的解决办法
装好 scruby 后第一次使用遇到一个错误:site_ruby/1.8/rubygems.rb:246:in `activate': can't activate RubyInline (= 3.6.3), already activated RubyInline-3.6.6] (Gem::Exception)GOOGLE了一下,找到了两种方法:1.使用gem uninstall RubyInl...
2008-01-25 22:55:52 138
用busybox扩展android系统的控制台命令
安装: 1 到http://www.billrocks.org/android_libs/bin/下载busybox文件。 2 把busybox上传到android系统,并设置可执行权限。 adb push busybox /system/bin adb shell # chmod 655 /system/bin/busybox 3 运行 busybox 查看android l...
2008-01-19 12:31:12 211
用VNC远程控制android模拟器
[img]http://pickerel.iteye.com/topics/download/fbba0cc9-922d-330b-aed1-ade35586efb8[/img] [list] 1 到http://code.google.com/p/android-vnc/ 下载 zImage 和 fbvncserver两个文件。 2 用下面命令启动模拟器 [b]emulator -...
2008-01-19 12:10:41 345
在j2me中载入propreties资源
[code="java"] public Properties load(String res) throws IOException { Properties prop = new Properties(); DataInputStream is = null; try { is =...
2008-01-14 18:51:51 99
java中用Process执行外部命令挂起问题的解决办法
我要在Java中调一个外部命令,于是写了以下代码 [code="java"] Process p = Runtime.getRuntime().exec("my command ..."); int c = p.waitFor(); if (c != 0) { System.out.prinln("处理失败"); BufferedReader br = new B...
2008-01-10 14:06:12 374
如何用JAVA输出一个UTF8编码的文本文件
[code="java"] FileOutputStream fos = new FileOutputStream("test.txt"); Writer out = new OutputStreamWriter(fos, "utf-8"); out.write(contentString); ...
2008-01-10 10:11:01 417
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人