对于Android 异常退出,主要是用到了 接口Thread.UncaughtExceptionHandler
public class ErrorReport implements Thread.UncaughtExceptionHandler{
public static final String TAG = "GouMinErrorReport";
priv...
分类:
移动开发 时间:
2014-09-03 19:54:57
阅读次数:
202
>>使用echo取代print>>使用str_replace取代preg_replace, 除非你绝对需要>>不要使用 short tag>>简单字符串用单引号取代双引号>>head重定向后记得使用exit>>不要在循环中调用函数>>isset比strlen快>>始中如一的格式化代码>>不要删除循环...
分类:
Web程序 时间:
2014-09-03 14:50:46
阅读次数:
176
Your browser does not support the HTML5 canvas tag.
分类:
其他好文 时间:
2014-09-03 11:00:56
阅读次数:
201
两个model,Product and Category;彼此之间有has_and_belongs_to_many的关系;期望在编辑project时,同时编辑project与category之间的关系;编辑project的界面如下:
添加 checkboxes
check_box and check_box_tag方法均可向form中添加checkboxes;由于需要重写check...
分类:
其他好文 时间:
2014-09-01 22:46:33
阅读次数:
262
有时layout文件中会展示几种flash messages;每种flash在展现前均会判断是否为nil,则均需要花费3行代码,如下:
ruby
ASCIIcasts
使用循环可有效的减少代码量,如下:
key %>
content_tag需...
分类:
其他好文 时间:
2014-09-01 22:44:23
阅读次数:
250
public class Notifier {
private static final String TAG = Notifier.class.getSimpleName();
private static Notifier instance;
private Context mContext;
private static final int NOTIFICATION_ID_1 =...
分类:
移动开发 时间:
2014-09-01 17:53:53
阅读次数:
812
1.根据id名称取元素 $id(idName)2.根据class定义取元素 $class(className)返回所有class被定义成className的元素数组,或者$Eclass(className)返回第一个元素3.根据tag名称取元素 $tag(tagName)返回所有标签名称为tagNa...
分类:
编程语言 时间:
2014-09-01 17:08:13
阅读次数:
189
在cell的代理方法里:cellForRowAtIndexPathbtn.tag = indexPath.section *100 + indexPath.row;[cell.exitPersonBtn addTarget:self action:@selector(exitPersonBtnCli...
分类:
移动开发 时间:
2014-09-01 12:05:33
阅读次数:
285
右键trunk,选择分支/标记... 资源库,到URL:要创建Tag的位置 Next Next Finish
分类:
其他好文 时间:
2014-08-31 21:23:01
阅读次数:
199