我们在dojo同级目录中创建一个文件夹itfanr,itfanr中新建一个文件person.js : define([?"dojo/_base/declare"],?function?(declare)?{
????return?declare("itfanr.person",?null,?{
???????...
分类:
其他好文 时间:
2014-09-16 00:28:59
阅读次数:
168
最新在对Android 4.1做一些定制性的工作,刚好遇到了设置第三方动态壁纸为默认启动壁纸的问题,遂做笔记如下。需要修改的文件为:找到SourceCode/framework/base/core/res/res/values/config.xml中的:@null将其中的@null修改内容为:包名/...
分类:
移动开发 时间:
2014-09-15 21:17:49
阅读次数:
255
泛型类可以派生自泛型基类:1 class Base {2 }3 4 class Derive : Base {5 } 其要求必须是 重复接口的泛型类型,或者 指定基类的类型.如下:1 class Base {2 }3 4 class Deriv...
分类:
其他好文 时间:
2014-09-15 02:11:17
阅读次数:
142
#include using namespace std;class X { int x, y, z;};class Y: public virtual X {};class Z: public virtual X { virtual void f() { }};class A: public Y,...
分类:
其他好文 时间:
2014-09-14 17:54:17
阅读次数:
182
原题地址:https://oj.leetcode.com/problems/gas-station/题意:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You ha...
分类:
编程语言 时间:
2014-09-14 11:19:36
阅读次数:
221
题目的意思在于,更高效的Collect Gold;然后合理的安排生产出来的士兵;我对战的是简单的电脑// This code runs once per frame. Build units and command peasants!// Destroy the ogre base within 1...
分类:
其他好文 时间:
2014-09-14 11:15:06
阅读次数:
357
package cn.itcast.oa.base;import java.util.List;public interface BaseDao { void save(T entity); void delete(Long id); void update(T entity); ...
分类:
编程语言 时间:
2014-09-13 15:49:25
阅读次数:
244
k&r习题3-5,机械工业那本中文答案不咋的,只给了处理10进制以下的参考,本答案摘自网上的那本英文习题解答 /* itob(n,s,b)
* converts the integer n into a base b char
*/
void itob(int n, char s[], int b...
分类:
编程语言 时间:
2014-09-13 14:43:45
阅读次数:
203
CentOS默认自带CentOS-Base.repo源,但官方源中去除了很多有版权争议的软件,而且安装的软件也不是最新的稳定版。Fedora自带的源中也找不到很多多媒体软件,如果需要安装,必需先添加其他源,如RPMFusion和RPMForge等第三方软件库。下面GoFace来一一介绍各种第三方软件...
分类:
其他好文 时间:
2014-09-13 13:22:45
阅读次数:
202
来自nvidia的小短文,处理远处normal map不正确的计算导致的specular lighting,反射等闪烁的问题。
核心思想是把远处平均后的normal的长度作为衡量normal变化率的标志,基于此来修正用normal map计算的东东(specular lighting,env reflection...)。...
分类:
移动开发 时间:
2014-09-13 10:38:35
阅读次数:
264