摘要: 项目是一个人独立开发的,master都是开发完的版本,v1.0,v1.1,v1.2……新开发任务时,从master checkout一个新的分支出来,进行开发,当开发完毕,我checkout到master时,出现了很多冲突文件,很不解,项目都是我一个人开发的,为什么会出现冲突呢,在经过问题排查时发现... 阅读全文
posted @ 2015-03-31 16:06 小房 阅读(1833) 评论(0) 推荐(0) 编辑
摘要: [This post is by Gilles Debunne, an engineer in the Android group who loves to get multitasked. — Tim Bray]A good practice in creating responsive appl... 阅读全文
posted @ 2015-01-28 13:28 小房 阅读(203) 评论(0) 推荐(0) 编辑
摘要: NOTE:看来Android文档过来做个笔记,并没有详细去写这些东西。BitmapFactory提供的decode方法直接去decode的话,会造成oom异常。要设置BitmapFactory.Options 的inJustDecodeBounds为true。将图片信息decode出来,此时并没有真... 阅读全文
posted @ 2015-01-27 19:32 小房 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 自定义DateAdapterpublic class DateAdapter implements JsonDeserializer { private final DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); public Date des... 阅读全文
posted @ 2014-12-08 13:49 小房 阅读(2511) 评论(0) 推荐(0) 编辑
摘要: 在ubuntu上搞python,执行了apt-get remove python,结果删除了一大堆的东西,搞得重启之后桌面上空白的啥也没有。后来安装了相关内容还是修复了:进入字符终端 sudo apt-get install ubuntu-desktop sudo apt-get ins... 阅读全文
posted @ 2014-12-06 23:03 小房 阅读(1314) 评论(0) 推荐(0) 编辑
摘要: 在linux中,直接写了一个python文件,要想直接运行,要在第一行导入python :#!/usr/bin/python,指定用此程序运行该文件。否则会报错:Warning: unknown mime-type for "Hello World!" -- using "application/o... 阅读全文
posted @ 2014-12-06 19:56 小房 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 选择composer ,请求选择post,地址填写服务器地址。request head必须得填写的User-Agent: FiddlerHost: x.x.x.x:8080Content-Type: application/x-www-form-urlencoded;charset=utf-8Con... 阅读全文
posted @ 2014-11-19 14:00 小房 阅读(257) 评论(0) 推荐(0) 编辑