在布局进行嵌套使用时,父布局与子布局都使用了android:layout_weight,但不是必须使用时,便会出现如题所示的警告信息。根据实际情况,去除子布局中非必须使用的android:layout_weight。...
分类:
其他好文 时间:
2015-06-08 15:24:11
阅读次数:
180
1.安装tigervnc-serveryum install tigervnc-server2.启动vnc服务vncserver:1[错误提示待解决bad display name "cloud:1" in "add" command]3.配置iptablesvi /etc/sysconfig/ip...
分类:
其他好文 时间:
2015-06-08 06:11:50
阅读次数:
120
菜鸟一个,在虚拟机中完了很久的ubuntu,每次打开ubuntu都需要打开虚拟机,而且虚拟机也隔绝了对硬件的了解,我就决定装个双系统试试,看网上都推荐使用centos,那就装centos吧,It's a pretty bad decision,现在我win7下的硬盘分区除了系统盘是完好的,其他全部乱...
维护一个h严格递减的栈 , 出栈时计算一下就好了..--------------------------------------------------------------------------------------#include#include#include#include#inclu...
分类:
其他好文 时间:
2015-06-06 13:25:07
阅读次数:
139
Bad Hair Day
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 14883
Accepted: 4940
Description
Some of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a ba...
分类:
其他好文 时间:
2015-06-03 23:33:20
阅读次数:
212
转自:http://rayleeya.iteye.com/blog/1956638无论怎么小心,想完全避免bad code是不可能的,此时就需要一些工具来帮助我们检查代码中是否存在会造成内存泄漏的地方。既然要排查的是内存问题,自然需要与内存相关的工具,DDMS和MAT就是两个非常好的工具。下面详细介...
分类:
其他好文 时间:
2015-06-03 15:39:07
阅读次数:
130
在执行shell脚本时提示这样的错误主要是由于shell脚本文件是dos格式,即每一行结尾以\r\n来标识,而unix格式的文件行尾则以\n来标识。 查看脚本文件是dos格式还是unix格式的几种办法。(1)cat -A filename 从显示结果可以判断,dos格式的文件行尾为^M$,unix格...
分类:
其他好文 时间:
2015-06-02 17:07:44
阅读次数:
106
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1029Ignatius and the Princess IVDescriptionOK, you are not too bad, em... But you can never pass the nex...
分类:
其他好文 时间:
2015-06-01 22:12:24
阅读次数:
110
转:http://bluedest.iteye.com/blog/1674963在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: Nosuchfileordirectory。分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字...
分类:
其他好文 时间:
2015-06-01 20:27:29
阅读次数:
95
1. The issue is because windows and linux has different file system.2. Use vim to open the file3. Type :set ff?, you will see the text "fileformat=dos...
分类:
其他好文 时间:
2015-06-01 20:25:14
阅读次数:
109