在创建Android模拟器时间发现提示“No system images installed for this target”问题,无法创建模拟器,如下图:解决:经上网查证,发现原因在于CPU/ABI选项无法选择,并显示“No system images installed for this tar...
分类:
移动开发 时间:
2014-11-07 14:43:20
阅读次数:
220
题意:有一种新的碎纸机,要用新的碎纸机将纸条上的数字切成几部分,
求切完后的和最接近而不超过target的值。
比如,target的值是50,而纸条上的数字是12346,应该把数字切成四部分,
分别是1、2、34、6。所得到的和43 (= 1 + 2 + 34 + 6) 是所有可能中最接近而不超过50的。
比如1, 23, 4, 和6 就不可以,因为它们的和不如43接近50,
而12, 34, 6也不可以,因为它们的和超过50了。...
分类:
其他好文 时间:
2014-11-07 11:16:18
阅读次数:
158
1.创建一个andord application project注意:最小sdk选择android2.3就行 target sdk和compile with的sdk都选4.4,一样的版本 theme选择none2.进行到最后一步时,选择创建一个空白的activity就可以,不然创建的项目会出现问题
分类:
移动开发 时间:
2014-11-06 23:21:07
阅读次数:
315
地球人都知道“二分查找”,方法也非常简单,但是你能不能在10分钟内写出一个没有bug的程序呢?知易行难,自己动手写一下试一试吧。public class BinarySearch { public static int search(int [] A,int target,int a, int...
分类:
编程语言 时间:
2014-11-06 21:52:14
阅读次数:
180
一.kickstart流程图二.安装前准备1.关闭iptablesserviceiptablesstopchkconfigiptablesoff2.关闭Selinuxsed–i‘s/enabled/disabled/g’/etc/sysconfig/selinux三.安装配置服务器yum-yinstalltftp-serverdhcpvsftpdsyslinuxvim/etc/dhcpd.conf挂载光盘镜像文件mount/dev/cdrom..
分类:
其他好文 时间:
2014-11-06 20:16:17
阅读次数:
320
搭建ssh框架,在配置完applicationContext.xml测试时报daoImpl的no matching editors or conversion strategy found。。。上网搜了一下,在里加上proxy-target-class="true" 。。意思是代理目标类设为true...
分类:
其他好文 时间:
2014-11-06 19:19:08
阅读次数:
240
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-11-06 17:05:57
阅读次数:
134
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:
其他好文 时间:
2014-11-06 16:46:53
阅读次数:
182
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-11-06 16:36:09
阅读次数:
144
ant批量打包不解释了,详情请看前面其他的blog! 这里说一下
开发中,很可能遇到引用第三方的项目作为library情况,这种情况下该怎么打包呢? 出现: “非法字符:/65279”的错误,怎么办?
第一:修改build.xml
第二:在init的target中
第三步:在生成gen-R中
第四步:编译的时候,加上library的src和libs
第五步:资源文件输出打包...
分类:
其他好文 时间:
2014-11-05 19:47:29
阅读次数:
220