1. Define terms by placing it in a category.2.
Avoid circular definitions3. State definitions positively
分类:
其他好文 时间:
2014-05-20 00:19:29
阅读次数:
365
Thursday, December 5, 2013ASP.NET保存session
state(会话状态)有三种模式:In-Process, State Server, SQL Server。SQL Server模式的优点: 即使web
application重启,状态数据也会被保存 多个web服...
分类:
数据库 时间:
2014-05-19 23:17:09
阅读次数:
426
很多 javascript 框架都提供了自定义事件(custom events),例如
jquery、yui 以及 dojo 都支持“document
ready”事件。而部分自定义事件是源自回调(callback)。回调将多个事件句柄存储在数组中,当满足触发条件时,回调系统则会从数组中获取对应的句...
分类:
编程语言 时间:
2014-05-17 19:04:40
阅读次数:
337
You need to override onSaveInstanceState(Bundle
savedInstanceState) and write the application state values you want to change to
the Bundle parameter ...
分类:
移动开发 时间:
2014-05-17 14:49:13
阅读次数:
292
Using perf, the Linux Performance Analysis tool
on Ubuntu KarmicA lot has been going on with Linux performance counters (now
called performance events...
分类:
其他好文 时间:
2014-05-16 04:06:37
阅读次数:
386
material=newMaterial(Shader.Find("Custom/Alpha"));material.SetFloat("_Shininess",materialAlpha);voidOnRenderImage(RenderTexturesource,RenderTexturedestination){Graphics.Blit(source,destination,material);}
分类:
其他好文 时间:
2014-05-16 02:28:04
阅读次数:
572
有限状态机(Finite-state
machine)是一个非常有用的模型,可以模拟世界上大部分事物。 简单说,它有三个特征:* 状态总数(state)是有限的。* 任一时刻,只处在一种状态之中。*
某种条件下,会从一种状态转变(transition)到另一种状态。 它对JavaScript的...
分类:
编程语言 时间:
2014-05-15 22:37:13
阅读次数:
351
我们在定义一个drawable的时候可以通过xml定义的drawable对象。它使得一个图片能在不同的状态下显示不同的图案,比如一个Button,它有pressed,focused,或者其它状态,通过使用state
list drawable,你就可以为每种状态提供不同的图片。先看一个范例:XML ...
分类:
移动开发 时间:
2014-05-15 21:40:05
阅读次数:
308
MySQL5.0安装图解打开下载的mysql安装文件mysql-5.0.27-win32.zip,双击解压缩,运行“setup.exe”,出现如下界面:按“Next”继续选择安装类型,有“Typical(默认)”、“Complete(完全)”、“Custom(用户自定义)”三个选项,我们选择“Custom”,有更多的选项,也方便熟..
分类:
数据库 时间:
2014-05-15 18:52:58
阅读次数:
505
问:如何校验和提交表单?答:Drupal允许定义默认的表单校验处理函数和提交处理函数。function practice_demo_form($form,
&$form_state) { ... ... return $form;}function practice_demo_form_vali.....
分类:
其他好文 时间:
2014-05-15 13:43:12
阅读次数:
327