- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(context, 0, 0); CGContextAddRect(c...
分类:
其他好文 时间:
2014-09-23 00:52:13
阅读次数:
223
dd a system wide windows explorer button " Edit with Sublime" similar to how Notepad++ does it or some other editors?See attached screenshot. (I know ...
分类:
其他好文 时间:
2014-09-23 00:42:04
阅读次数:
272
/*** * 判断应用当前是否前台运行 * * @return */ public static boolean isTopRun(Context context) { Boolean isTopRun = false; try {...
分类:
移动开发 时间:
2014-09-22 23:38:53
阅读次数:
350
- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); //起点移动到(0,0) CGContextMoveToPoint(context, 0, 0); //画线到(100,...
分类:
其他好文 时间:
2014-09-22 22:22:23
阅读次数:
208
log4j:WARN No appenders could be found for logger(org.springframework.context.support.ClassPathXmlApplicationContext).log4j:WARN Please initialize the...
分类:
其他好文 时间:
2014-09-22 22:09:23
阅读次数:
228
1,一般处理程序中context.Response.ContentType = "text/plain",则 ajax参数中 也是 text 类型。2,一般处理程序中 转化为json数据格式:命名 空间:using Newtonsoft.Json;代码:string strjson = JavaS....
分类:
其他好文 时间:
2014-09-22 18:43:03
阅读次数:
133
bug记录StrutsmavenJavaApache系统加载时出现:严重: Context initialization failedjava.lang.TypeNotPresentException: Type javax.annotation.Resource not presentCaused...
分类:
其他好文 时间:
2014-09-22 17:51:22
阅读次数:
135
{% %}指令{{}}变量父模板(index.html):{% block context %} 父{% endblock %}子模板:1 {% extends 'index.html' %}2 {% block context %}3 实现4 {% endblock %}{%load ...
分类:
其他好文 时间:
2014-09-22 12:18:32
阅读次数:
192
//获取屏幕宽度
public static int getScreenWidth(Context context)
{
WindowManager wm = (WindowManager) context
.getSystemService(Context.WINDOW_SERVICE);
Display...
分类:
其他好文 时间:
2014-09-22 10:54:22
阅读次数:
137
一. 何谓"原子操作": 原子操作就是: 不可中断的一个或者一系列操作, 也就是不会被线程调度机制打断的操作, 运行期间不会有任何的上下文切换(context switch). 二. 为什么关注原子操作? 1. 如果确定某个操作是原...
分类:
其他好文 时间:
2014-09-21 21:07:21
阅读次数:
276