上一页 1 ··· 14 15 16 17 18
摘要: /** * 获取不重复随机数 * @param integer start 随机数最小值 * @param integer end 随机数最大值 * @param integer size 随机数获取数量 最小为1,默认1 * @return integer|array 如 1或者[2,4,7,... 阅读全文
posted @ 2014-02-02 20:49 神神的蜗牛 阅读(540) 评论(0) 推荐(0) 编辑
摘要: color:red; /* 所有浏览器都支持 */color:red !important; /* 除IE6外 */_color:red; /* IE6支持 */*color:red; /* IE6、IE7支持 */+color:red; /*IE7支持*/*+color:red; /* IE... 阅读全文
posted @ 2014-02-02 20:43 神神的蜗牛 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 定义画笔预设时,选择选区后需填充黑色,否则将出现选区为空的提示 阅读全文
posted @ 2014-02-02 20:40 神神的蜗牛 阅读(1940) 评论(0) 推荐(0) 编辑
摘要: #1042 - Can't get hostname for your address 使用IP链接或域名链接都可能遇到这个问题 解决办法: my.ini 或 my.cnf 末尾添加 skip-name-resolve 并重启MySQL服务器 ok! 阅读全文
posted @ 2014-02-02 20:36 神神的蜗牛 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 在 android 的所有 activity 中共享同一个对象实例的方法 1. 新建 AppContext.java 文件(名称可自定义) public class AppContext extends Application{ public void test() { ... 阅读全文
posted @ 2014-01-31 22:36 神神的蜗牛 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 几年前读书的时候就自己在做独立的个人博客网站,重做 + 改版好多次,域名也换了好几个… 163fly.com、godbz.com、zhouz.me ... 都是我曾经用过的域名,都放弃了… 发现到头来一场空,一切都烟消云散了,连个骨头渣都没剩下,实在是累了没工夫去自己搞博客了,后来选了当时比较火... 阅读全文
posted @ 2014-01-30 00:09 神神的蜗牛 阅读(113) 评论(0) 推荐(0) 编辑
摘要: px 转换为 dip /** * PX 转换为 DP * * @param context * @param px * @return */ public static int px2dp(Context context, int ... 阅读全文
posted @ 2014-01-29 23:44 神神的蜗牛 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 获取Java的32位MD5实现 public static String md5(String s) { char hexDigits[] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e',... 阅读全文
posted @ 2014-01-29 23:32 神神的蜗牛 阅读(1994) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18