android.os下的StatFs类主要用来获取文件系统的状态,能够获取sd卡的大小和剩余空间,获取系统内部空间也就是/system的大小和剩余空间等等。 看下读取sd卡的:Java代码 1 void readSDCard() { 2 String state = Environ...
分类:
移动开发 时间:
2014-08-01 15:44:11
阅读次数:
304
我们在定义一个drawable的时候可以通过xml定义的drawable对象。它使得一个图片能在不同的状态下显示不同的图案,比如一个 Button,它有pressed,focused,或者其它状态,通过使用state list drawable,你就可以为每种状态提供不同的图片。先看一个范例:XML...
分类:
移动开发 时间:
2014-08-01 13:00:21
阅读次数:
226
在 DragDrop 的时候,滚动 TreeView
当高度不够的时候
procedure TForm1.TreeView1DragOver(Sender, Source: TObject; X, Y: Integer;State: TDragState; var Accept: Boolean);...
分类:
其他好文 时间:
2014-08-01 12:47:01
阅读次数:
225
状态模式(State):当一个对象内在状态改变时,允许改变其行为,这个对象看起来像是改变了其类。
(1),状态模式主要负责解决的是当控制一个对象转换的条件表达式过于复杂时的情况。把状态的判断逻辑转移到表示不同状态的一系列类中,可以把复杂的判断逻辑简化。
(2),状态模式的好处是将与特定状态相关的行为局部化,并且将不同状态的行为分割开来。
(3),将特定的状态相关的行为都放入一个对象中...
分类:
编程语言 时间:
2014-07-31 23:58:20
阅读次数:
556
1.The use of state-observation transition functions rather than the separate transition and observation functions in HMMs allows us to model transitio...
分类:
其他好文 时间:
2014-07-31 20:43:27
阅读次数:
179
Getting StartedThe above code inserts a rounded bootstrap edit text with the state set to be succesfull. The following attributes can be added:bootstr...
分类:
其他好文 时间:
2014-07-31 16:32:36
阅读次数:
393
~/.ssh/id_rsa权限问题,造成ssh无法登陆问题解决;使用virsh 连接exsi5.0;貌似这个在vm下再虚拟vm处问题,错误信息如下;Thu Jul 31 13:25:10 2014 [DiM][I]: New VM state is ACTIVE.Thu Jul 31 13:25:1...
分类:
其他好文 时间:
2014-07-31 16:14:16
阅读次数:
386
无异步的 js = "window.parent.onComplete(" + System.Convert.ToString(uploadInfo.State != "Stop").ToLower() + ");"; } ScriptManager.RegisterStartupScript(.....
分类:
其他好文 时间:
2014-07-31 12:34:46
阅读次数:
176
上一篇我们简单介绍了Actor系统,说明了Actor之间存在着层次关系,它也是构成Actor应用的最基本的单位。本篇介绍Actor本身的一些基本概念。一个Actor包含了State(状态),Behavior(行为),一个Mailbox(邮箱)和Supervisor Strategy (管理员策略),所有这些都封装在一个Actor引用之中(Actor Reference)。Actor 引用一个Act...
分类:
其他好文 时间:
2014-07-31 09:54:56
阅读次数:
457
Bellman-ford算法的反向应用--正循环检查
/** \brief poj 1860 Bellman-Ford
*
* \param date 2014/7/24
* \param state AC
* \return memory 708K time 141ms
*
*/
#include
#include
#include
using namespace std...
分类:
其他好文 时间:
2014-07-31 00:01:23
阅读次数:
213