nova-compute 的代码结构图
如上图所示, 类图中最重要的三个Category
Manager: 核心的业务类,提供实际的业务操作。例如启动虚拟机等等。
Service: 每个service通常包括一个对应的Manager.
service 也负责在消息队列上对指定的topic进行监听,当监听到新的RPC消息的时候, 调用对应的Manager的方法。
Launch...
分类:
其他好文 时间:
2014-08-26 01:49:45
阅读次数:
410
http://onebyonedesign.com/flash/particleeditor/这个原来是为flash starling设计的粒子系统编辑器,但实际上,还是能兼容cocos2d的。只需要选中Export按钮下方的“include .plist file”。在Cocos2d中使用更简单,...
分类:
Web程序 时间:
2014-08-25 22:24:34
阅读次数:
308
有时需要自定义对话框,可以使用AlterDialog.Bulider,比如下面的代码片段1 new AlertDialog.Builder(self) 2 3 .setTitle("标题")4 5 .setMessage("简单消息框...
分类:
移动开发 时间:
2014-08-25 16:30:34
阅读次数:
221
在Mac上,共有4钟后台进程类型,可以参考Designing Daemons and Services。要实现启动服务,又不依赖于用户,可以使用Launch Daemon。 创建Launch Daemon 运行Xcode,创建一个简单的命令行应用WebTwainService。 ...
分类:
其他好文 时间:
2014-08-25 15:14:34
阅读次数:
192
1、首先我们先创建一个 SingleView application。2、我们可以用Inface Builder 来实现,也可以通过手码来实现。我们这次先通过手码来实现:第一步:首先我们在 xxxViewController.m文件中,为self添加一个UISwitch类型的属性,我们叫TA mai...
分类:
移动开发 时间:
2014-08-24 22:17:43
阅读次数:
304
1.点击返回键,提示用户是否要退出 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { AlertDialog.Builder dia...
分类:
其他好文 时间:
2014-08-24 22:10:23
阅读次数:
244
在android程序中运行第一步就是检测当前有无可用网络如果没有网络可用就退出程序if (isConnect(this)==false) { new AlertDialog.Builder(this) .setTitle("网络错...
分类:
移动开发 时间:
2014-08-23 19:03:41
阅读次数:
182
textView = (TextView) findViewById(R.id.textview); SpannableStringBuilder builder = new SpannableStringBuilder(textView.getText().toString()); //...
分类:
移动开发 时间:
2014-08-23 16:47:51
阅读次数:
230
#include "cuda_runtime.h"#include "device_launch_parameters.h"#include "cublas_v2.h"#include "math.h"#include #include #include #include #include #if....
分类:
其他好文 时间:
2014-08-22 19:21:19
阅读次数:
294
由于性子急,翠花上菜:设计模式分类:创建模式、结构模式与行为模式创建模式: 工厂模式(Factory) 单例模式(Signleton) 构建模式(Builder) 原型模式(Prototype)结构模式: 适配器模式(Adapter):Match interfaces of differe...
分类:
其他好文 时间:
2014-08-22 10:34:35
阅读次数:
165