摘要: 本系列持续更新中。转载请注明来源。 前言:近期打算系统学习一下Android开发,发现Android官网上的developer training也是个非常好的学习资料,于是想到一边学习一边写一个中文版出来,方便大家学习沟通交流。不足之处请大家指出。 教程官方链接:http://developer.a 阅读全文
posted @ 2016-04-13 21:56 blfshiye 阅读(483) 评论(0) 推荐(0) 编辑
摘要: atitit.解决net.sf.json.JSONException There is a cycle in the hierarchy 1. 环境:使用hibernate4跟个,,要不个哪的对象系列化成个json的时候儿有这个问题了... 1 2. 原因::hb默认的lazy 方式造成的当有关联对 阅读全文
posted @ 2016-04-13 20:51 blfshiye 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 在上一篇文章《Monkey源代码分析之事件注入》中。我们看到了monkey在注入事件的时候用到了《Monkey源代码分析番外篇之Android注入事件的三种方法比較》中的第一种方法,通过Internal API的WindowManager的injectKeyEvent之类的方法注入事件。这样的方法在 阅读全文
posted @ 2016-04-13 20:50 blfshiye 阅读(269) 评论(0) 推荐(0) 编辑
摘要: CentOS 6.5下安装MySql 5.6解压文件:tar xvf MySQL-5.6.19-1.linux_glibc2.5.x86_64.rpm-bundle.tar释放出下面文件:MySQL-embedded-5.6.19-1.linux_glibc2.5.x86_64.rpmMySQL-d 阅读全文
posted @ 2016-04-13 19:40 blfshiye 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 【 CleverCode发表在csdn博客中的原创作品,请勿转载。原创地址:http://blog.csdn.net/clevercode/article/details/46376985】 1 网卡说明 1)两块网卡的说明: 第一块网卡为配置外网: eth0 第二块网卡为配置内网: eth1(没有 阅读全文
posted @ 2016-04-13 18:53 blfshiye 阅读(485) 评论(0) 推荐(0) 编辑
摘要: Using a vendor specific UUID is basically a two-step process: 1. Add your custom base UUID to the stack by using sd_ble_uuid_vs_add(). Store the value 阅读全文
posted @ 2016-04-13 18:50 blfshiye 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 关于安卓项目中xml的使用非常多。为了达到一些好的UI效果。须要对xml比較熟练。会使用非常多的小技巧,本人准备对这些小技巧进行整理和总结,希望进行分享和交流。 关于weight的使用,因为weight在布局中主要按比例进行组件的摆放,因此比較easy解决适配的问题,所以学会使用weight会减轻开 阅读全文
posted @ 2016-04-13 17:54 blfshiye 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 以下实现通过百度SDK获取地理位置和天气信息,请參考百度开发文档 1. 在相关下载最新的库文件。将so文件的压缩文件解压出来,把相应架构下的so文件放入开发人员自己APP的相应架构下的目录中,建议所有放入。 程序兼容性会大大提升,将locSDK_5.X.jar文件复制到project的libs文件夹 阅读全文
posted @ 2016-04-13 16:43 blfshiye 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] an 阅读全文
posted @ 2016-04-13 16:38 blfshiye 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 问题描写叙述: 假设我们把二叉树看成一个图,父子节点之间的连线看成是双向的。我们姑且定义"距离"为两节点之间边的个数。 写一个程序,求一棵二叉树中相距最远的两个节点之间的距离。測试用的树: n1 / \ n2 n3 / \ n4 n5 / \ / \ n6 n7 n8 n9 / / n10 n11 阅读全文
posted @ 2016-04-13 15:52 blfshiye 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl1aHVhbmNoYW8=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt=""> 阅读全文
posted @ 2016-04-13 13:29 blfshiye 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 一、实验目的 1、掌握SQL Server Management Studio的新建查询的用法,加深对SQL的语句的理解; 2、使用SQL Server Management Studio的新建查询用SELECT语句进行数据查询; 3、熟练掌握简单表的数据查询、数据排序和数据连接查询的操作方法。 二 阅读全文
posted @ 2016-04-13 12:00 blfshiye 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 需求:单击行,自己主动选中当前行中的单选框button。 aspx页面: <asp:Repeater ID="rptRecordList" runat="server"> <HeaderTemplate> <table style="width: 100%;" id="tbList"> </Head 阅读全文
posted @ 2016-04-13 10:47 blfshiye 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 题目例如以下: The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 阅读全文
posted @ 2016-04-13 10:04 blfshiye 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Code path: https://github.com/bluesilence/Lisp/tree/master/clojure/projects/room-escape As I have been a fan of room-escape games, there have always b 阅读全文
posted @ 2016-04-13 08:45 blfshiye 阅读(145) 评论(0) 推荐(0) 编辑