摘要: 1 2 3 4 #FFFFFF 5 6 #FFFFF0 7 8 #FFFFE0 9 10 #FFFF00 11 12 #FFFAFA 13 14 #FFFAF0 15 ... 阅读全文
posted @ 2015-01-24 14:18 superPerfect 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/bash 2 3 if [[ ! -n $1 ]]; then 4 cat 6 EOF 7 exit 1 8 fi11 12 package_name=$113 ip=110.1.1.19:555514 pid_... 阅读全文
posted @ 2015-01-12 16:31 superPerfect 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: 自定义控件FocusedTextView, 使android系统误以为它拥有焦点 1 public class FocusedTextView extends TextView { 2 public FocusedTextView(Context context, AttributeSet ... 阅读全文
posted @ 2015-01-11 20:54 superPerfect 阅读(797) 评论(0) 推荐(0) 编辑
摘要: 每次用Eclipse自带的Ctrl+shift+f格式化代码时,如果原来的一行代码大于80列,Eclipse就会自动换为多行,这点个人感觉不是很舒服,简单试了一下,通过以下方式可以修改1、preferences->Java->Code Style->Code Formatter->Show... ,... 阅读全文
posted @ 2015-01-11 14:09 superPerfect 阅读(33394) 评论(0) 推荐(0) 编辑
摘要: public class Debug { public static int line(Exception e) { StackTraceElement[] trace = e.getStackTrace(); if (trace == null || trace.length == 0) ... 阅读全文
posted @ 2015-01-10 18:34 superPerfect 阅读(4515) 评论(0) 推荐(0) 编辑
摘要: 如题,manifest加上 1 2 3 4 5 6 7 8 ... 阅读全文
posted @ 2015-01-07 17:01 superPerfect 阅读(301) 评论(0) 推荐(0) 编辑
摘要: CURL库在程序中的运用浅析-nk_ysg-ChinaUnix博客 http://blog.chinaunix.net/uid-22476414-id-3286638.html这个目录的文章转载freeeyes大牛的作品前一段时间自己写了一个抓取网页代码的类,来满目一些项目需求,结果发现并不稳定,在... 阅读全文
posted @ 2014-07-24 13:29 superPerfect 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Ubuntu12.04编译vlc2.1.01.编译环境VM8.0.1#gcc-vUsingbuilt-inspecs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapperTarget:i686-l... 阅读全文
posted @ 2014-07-20 23:24 superPerfect 阅读(603) 评论(0) 推荐(0) 编辑
摘要: samba 安装步骤1.若之前有安装过相关软件包,先卸载之:sudo apt-get autoremove samba samba-commonsudo apt-get autoremove system-config-samba 按如下方式安装软件包sudo apt-get install sam... 阅读全文
posted @ 2014-07-20 22:46 superPerfect 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Factory 模式用户不关心工厂的具体类型,只知道这是一个工厂就行。通过工厂的实现推迟到子类里面去来确定工厂的具体类型。工厂的具体类型来确定生产的具体产品。同时用户不关心这是一个什么样子的产品,只知道这是一个产品 1 #ifndef _FACTORY_H_ 2 #define _FACTORY_H... 阅读全文
posted @ 2014-06-09 16:30 superPerfect 阅读(208) 评论(0) 推荐(0) 编辑