-- We should create a date dimension table in the databaseCREATE TABLE dbo.DimDates ( [DateKey] int NOT NULL PRIMARY KEY IDENTITY, [Date] datetime NO....
分类:
其他好文 时间:
2015-02-12 15:44:08
阅读次数:
246
原文:JavaScript技巧&写法JavaScript技巧篇: 1》状态机 var state = function () { this.count = 0; this.fun = null; this.nowcount = 0; }; ...
分类:
编程语言 时间:
2015-02-12 15:26:01
阅读次数:
192
关键点
canvas.drawBitmap(bitmap, srcRect, dstRect, null);将bitmap的srcRect区域绘制到canvas的dstRect区域
Demo
main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/...
分类:
移动开发 时间:
2015-02-12 12:31:12
阅读次数:
619
查看源码BitmapDrawable.java。BitmapDrawable有若干个构造方法。
New BitmapDrawable(Bitmap bitmap)是早期的一个构造方法,在android 4.0已经过时,部分代码如下:
this(new BitmapState(bitmap), null);
而google提倡使用new BitmapDrawable(Bitmap ...
分类:
移动开发 时间:
2015-02-12 12:28:50
阅读次数:
153
using (Entities com = new Entities()){com.Configuration.UseDatabaseNullSemantics = true;}EF+MVC+cod First项目性能优化总结1.EF:this.Configuration.UseDatabaseNu...
分类:
数据库 时间:
2015-02-12 10:41:19
阅读次数:
545
Unity中的组件上的类,是不能new的,必须通过组件去获取,new出来的东西是null。
if (amainfo.nameHash == Animator.StringToHash(Base Layer.idle))
{
m_animator.SetBool(Run, true);
}
代码无法执行时,在navigation面板中点击Bake,如下图
...
分类:
编程语言 时间:
2015-02-11 23:23:11
阅读次数:
420
1、错误描述
java.sql.SQLException:Column Index out of range,0
2、错误原因
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection conn = null;
Statement stat = null;
ResultSet rs = null;
try
{...
分类:
数据库 时间:
2015-02-11 21:58:43
阅读次数:
177
1、错误描述
java.sql.SQLException:Can not issue data manipulation statements with executeQuery()
2、错误原因
Class.forName("com.mysql.jdbc.Driver");
Connection conn = null;
Statement stat = null;
Resul...
分类:
数据库 时间:
2015-02-11 21:58:22
阅读次数:
175
1、错误描述
java.sql.SQLException:No suitable driver found for http://localhost:3306/school
2、错误原因
Class.forName("com.mysql.jdbc.Driver");
Connection conn = null;
Statement stat = null;
ResultSet ...
分类:
数据库 时间:
2015-02-11 21:58:19
阅读次数:
237
在我最近做的项目里有一个小问题.需求上是写生成一条URL可以给用户访问,到达网站特定的内容.并不难.但在访问到的页面上有一个关闭按钮.一按关闭按钮就会出现一个"您所访问的窗口正试图关闭"的确认对话框.在GOOGLE上搜索了一下.看到了这么一行JS代码.window.opener=null;windo...