• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






dark_lake

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2015年6月4日

studio(intellij)+gradle(1.0+)+jenkins 打包&上传私服
摘要: 现在比较流行使用gradle来配置项目,本文着重介绍studio和intellij打包。在Android gradle项目中project类似于eclipse的workspace,而moudule类似于eclipse的project。demo svn位置:http://10.3.254.91/svn... 阅读全文
posted @ 2015-06-04 11:45 dark_lake 阅读(1489) 评论(0) 推荐(0)
 

2015年5月27日

Material Design & Android 5
摘要: 最近研究了一下Material Design和Android 5的新特性,这里做下总结归纳。Material Design在我认为就是类似于卡片一样的设计,当然并不只是卡片,material design可以把一个布局或者控件当做实际生活中得一个卡片来对待。那么具有以下几个方面的属性(具体参照htt... 阅读全文
posted @ 2015-05-27 10:03 dark_lake 阅读(1024) 评论(0) 推荐(1)
 

2015年5月11日

AsyncTask 学习笔记
摘要: AsyncTask 是android自己实现的一个异步类,个人觉得其本质是对Handler的一个封装,通过代码分析,可以看出其实AsyncTask最后还是通过handler来进行异步消息传递的。但是封装AsyncTask使得异步代码实现特别方便。一、参数AsyncTask有三个参数泛型函数,分别是P... 阅读全文
posted @ 2015-05-11 15:18 dark_lake 阅读(160) 评论(0) 推荐(0)
 

2015年3月30日

WebView项目总结
摘要: 本次工作我自己想挑战论坛页的展示部分,因为自己想了解下如何用webview来开发应用。一、要将一个网页加载到本地展示,就需要本地建立webview的一个模板文件然后解析后台传输过来的html代码,本地模板文件一般置于assets下,其中模板文件包括html模板,html模板中包括的css,js以及i... 阅读全文
posted @ 2015-03-30 16:31 dark_lake 阅读(388) 评论(0) 推荐(0)
 

2013年5月27日

projectEuler 17
摘要: 将1……n的数表示成英文,求表示成这些英文的字母的和If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?NOTE:Do not count sp 阅读全文
posted @ 2013-05-27 22:02 dark_lake 阅读(166) 评论(0) 推荐(0)
 
projectEuler 16
摘要: 求2的1000次方的各个位置上的数的和215= 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 21000?思想:普通算法肯定满足不了,只好自己实现大数算法,java的bigInteger应该可以做到这个吧,不过还是自己实现……构造一个334大的int数组,每一位存储最后计算结果的一个数值。只定义334个大小的数组的原因是因为在2的n次方最小最多3次就必须进一位,那么一位数最多可以保存2的三次方,所以取1000/3+1代码:private 阅读全文
posted @ 2013-05-27 21:56 dark_lake 阅读(144) 评论(0) 推荐(0)
 
projectEuler 15
摘要: 求格子的路径个数:Starting in the top left corner of a 22 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.How many such routes are there through a 2020 grid?思想:这是做了这么久之后我比较喜欢的一个题,终于要思考推一下下了。给格子上的顶点依次从(0,0)标起,往右或者往下两个数字依次加1,将题目的示例就可以转化为(0,0)->( 阅读全文
posted @ 2013-05-27 21:47 dark_lake 阅读(342) 评论(1) 推荐(0)
 

2013年5月24日

EM算法小记
摘要: 前段时间实现了估计参数的有限混合正态分布EM算法,虽然是别人的东西拿来借鉴,不过还是要自己笔记一下,以后才能说得出口直接说实际解决问题,现有n个数据,每个属性都有m个属性值,比如一个人可能有身高、工资、年龄等属性。现在我们将这群人分成不同的几类,然后确定想确定哪些人对自己所属的类贡献值最大,也就是要寻找每个类最鲜明代表的人,比如说富二代的特点可能是身高:175,年龄:18,月均花销:5W等。为了达到这个目的,构建下面一个函数:f(x) = a1f1(x1)+a2f2(x2)+……+akfk(xk) ……(1),其中x是一随机变量,x=(x1,x2,……,xk),xi即为属性值的随机变量。现在再 阅读全文
posted @ 2013-05-24 13:00 dark_lake 阅读(247) 评论(0) 推荐(0)
 

2013年5月20日

基本查找排序算法java实现
摘要: 这个星期重新整顿了一些基本查找排序算法的实现,我承认自己不是一个很灵光的码农,还搞了几个小时才把这些最基本的代码给码出来。。。查找:1、基本查找:针对无序的数组查找一般只有从头部(下标0)依次查找,如果查找成功返回数组下标,查找失败返回-1private static int commonSearch(int[] a, int b) { if (a == null) return -1; int len = a.length; for (int i = 0; i < len; i++) { if (a[i] ... 阅读全文
posted @ 2013-05-20 16:17 dark_lake 阅读(307) 评论(2) 推荐(0)
 

2013年5月17日

ProjectEuler 14
摘要: 求拉兹序列的最大链长:The following iterative sequence is defined for the set of positive integers:nn/2 (nis even)n3n+ 1 (nis odd)Using the rule above and starting with 13, we generate the following sequence:134020105168421It can be seen that this sequence (starting at 13 and finishing at 1) contains 10 terms. 阅读全文
posted @ 2013-05-17 22:04 dark_lake 阅读(194) 评论(0) 推荐(0)
 
下一页