This shows you how to create the main window with the book’s application framework and how to render simple graphics into it.In shaders,we use #versio...
分类:
其他好文 时间:
2014-08-12 18:19:24
阅读次数:
229
前言
大家可能遇到了这样的情况,调用Camera,然后指定自定义的保存路径,结果返回的Intent为空。我们来分析一下原因。
分析
首先看Camera的部分逻辑,在源码中的Camera.java的doAttach()方法里面。
// First handle the no crop case -- just return the value. If the
// caller sp...
分类:
其他好文 时间:
2014-08-12 17:30:54
阅读次数:
276
SPA 最佳实践
SPA官方描绘的蛮完美的,但在实践中,还是有很多的坑。下面会一一展示本人在SPA实践项目中遇到的各种坑,以及解决方案。
OPTIMIZER_MODE问题
SQL在目标库实际运行时需要跟源库保持一致,以SIEBEL库为例,它都会在SESSION级别设置以下影响CBO的参数。
alter session set optimizer_mode=FIRST_ROWS_10...
分类:
其他好文 时间:
2014-08-12 17:16:24
阅读次数:
253
该项目主要应用技术为Mvc4+EF5+Code First+awesome的一些js脚本。
分类:
其他好文 时间:
2014-08-12 16:15:24
阅读次数:
197
先睹为快fromdjango.dbimportmodelsclassPerson(models.Model):first_name=models.CharField(max_length=30) last_name=models.CharField(max_length=30) 核心要点 ...
分类:
其他好文 时间:
2014-08-12 13:00:24
阅读次数:
171
题意:给你n个字符串,给你一个序列,两个人轮流取一个字符使得现有的字符串是n个字符串里面的前缀,最后谁不能取谁就输掉这局,但是他们要玩K局,谁在K局赢了就等于赢了一整场比赛。解题思路:字典树找是否有 必输 或者 必赢 的策略,如果同时有必赢或者必输的策略,那必定是first赢,如果只有必赢,那只需要...
分类:
其他好文 时间:
2014-08-12 12:59:54
阅读次数:
205
Problem Description
Let's play a card game called Gap.
You have 28 cards labeled with two-digit numbers. The first digit (from 1 to 4) represents the suit of the card, and the second digit (from 1 ...
分类:
其他好文 时间:
2014-08-12 10:24:14
阅读次数:
379
Series 1
大意:
题意不好翻译,英文看懂也不是很麻烦,就不翻译了。
Problem Description
Let A be an integral series {A1, A2, . . . , An}.
The zero-order series of A is A itself.
The first-order series of A i...
分类:
其他好文 时间:
2014-08-12 10:21:42
阅读次数:
241
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-08-12 10:15:23
阅读次数:
149