`
文章列表
装好 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 RubyInline把3.6.6版本的RubyInline卸载了,具体操作见lintide的博客。2.在require 'scrubyt' 之前指定 RubyInline的版本,只要加上以下代码就可以了:requir ...
安装: 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 linux内核版本 # busybox uname -a Linux (none) 2.6.23 #5 Thu Dec 27 14:10:07 PST 2007 armv5tejl unknown 启动一个httpd服务 ...
1 到http://code.google.com/p/android-vnc/ 下载 zImage 和 fbvncserver两个文件。 2 用下面命令启动模拟器 emulator -kernel zImage -noskin 3 将fbvncserver文件上传到android系统的/data目录下 adb push fbvncserver /data 4 运行 fbvncserver adb shell # chmod 655 /data/fbvncserver # /data/fbvncserver 5 telnet到android设置端口转发 telnet localhost ...
public Properties load(String res) throws IOException { Properties prop = new Properties(); DataInputStream is = null; try { is = new DataInputStream(this.getClass().getResourceAsStream(res)); StringBuffer sb = new StringBuffer(); ...
我要在Java中调一个外部命令,于是写了以下代码 Process p = Runtime.getRuntime().exec("my command ..."); int c = p.waitFor(); if (c != 0) { System.out.prinln("处理失败"); BufferedReader br = new BufferedReader(new InputStreamReader(p.getErrorStream())); for (String line = br.readLine ...
FileOutputStream fos = new FileOutputStream("test.txt"); Writer out = new OutputStreamWriter(fos, "utf-8"); out.write(contentString); out.close(); fos.close();
编辑 /etc/ssh/ssh_config 文件,将 GSSAPIAuthentication yes 改成 GSSAPIAuthentication no 即可。 原因: The default ssh_config file comes with GSSAPIAuthentication set to "yes".  This causes a DNS query in an attempt to resolve _kerberos.<hostname> whenever ssh is invoked.  During periods when conne ...
Global site tag (gtag.js) - Google Analytics