hupin

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  mynotes

摘要:模拟器连接网络:emulator -avd Android2.2 -http-proxyhttp://username:password@代理名:端口可以设置任意的端口号,做为主机向模拟器或设备的请求端口。如:adb forward tcp:5555 tcp:8000problem:“Timed out waiting for device to be ready, you may try reconnecting the USB cable”解决方法:在adb shell 下adb kill-serverlink to:http://developer.appcelerator.com/qu 阅读全文
posted @ 2012-07-24 13:46 hupin 阅读(757) 评论(0) 推荐(0)

摘要:生成一个固定长度的整数数组,数组每一项的值为1到100间的随机整数。用于试练各种排序。CSharp中实现如下: 1 using System; 2 using System.Collections; 3 4 class MyClass 5 { 6 public static void Main(String[] args) 7 { 8 foreach(int item in GetArr(10)) 9 {10 Console.WriteLine(item);11 }12 }13 14 pu... 阅读全文
posted @ 2012-07-05 16:01 hupin 阅读(1708) 评论(0) 推荐(0)