package com.someorg;public class Logger { public static void info(String something) { int lineNo = getCurrentLineNumber(); String met...
分类:
编程语言 时间:
2015-03-19 18:22:42
阅读次数:
197
It's yourattitude, not youraptitudethat determines youraltitude!Happinessis not something you find, it's something youcreate!此篇记录我的读书记录,与所有人共享2015-201...
分类:
其他好文 时间:
2015-03-18 13:57:27
阅读次数:
125
Timers are for when you want to do something once in the future - tickers are for when you want to do something repeatedly at regular intervals. Here'...
分类:
其他好文 时间:
2015-03-18 13:48:35
阅读次数:
125
Problem Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.Bob has...
分类:
其他好文 时间:
2015-03-16 19:22:16
阅读次数:
102
在Android关于Canvas的API描述中,一开始就如下描述:
To draw something, you need 4 basic components: A Bitmap to hold the pixels, a Canvas to host the draw calls (writing into the bitmap),
a drawing primitive (e....
分类:
其他好文 时间:
2015-03-14 15:23:18
阅读次数:
120
当用第三方库管理工具遇到这样的bug时,请确保Set Build Active Architectures Only在cocoapods和项目中设置为一样的。Had this problem as well. Something was wrong with my CocoaPods install...
分类:
其他好文 时间:
2015-03-14 15:07:25
阅读次数:
148
做SharePoint过程中,我觉得最恶心的就是环境了。吐槽 前两天我的SharePoint workflow发布上去后不能自己启动,也没有报错。如果是因为我没有在发布前选择添加新选项时启动,那我自认我脑残。 我在list中选中工作流,手动启动时它扔给我一个“something went w...
分类:
其他好文 时间:
2015-03-13 18:41:26
阅读次数:
177
jQuery的事件绑定
问题
首先我们看下面的一个很常见的事件绑定代码://example
$('#dom').click(function(e){
//do something
});$('#dom2').click(function(e){
//do something
});这段代码在事件绑定处理上有一些缺陷:过多的事件绑定会损耗内存
后期生成HTML会没有事件绑定,需要重新绑定...
分类:
Web程序 时间:
2015-03-12 17:07:40
阅读次数:
144
1关于检查某个元素在网页上的存在很多人会惯性的写成1 if($("#tt")){ 2 //do something 3 }其实应该根据获取到元素的长度来判断if($("#tt").length>0){//do something博客园如何修改我的标签}当然啦还可以转化成DOM对象来判断if($("t...
分类:
Web程序 时间:
2015-03-11 21:23:32
阅读次数:
164
I figured I’d do a quick tutorial about something a little more difficult, but still very important. I’m going to take you step-by-step through integr...