1.前导程序#include#include //1提供strlen()的函数原型#define DENSITY 62.4 //2预处理命令int main(void){ float weight,volume; int size,letters; char...
分类:
其他好文 时间:
2014-11-08 13:20:10
阅读次数:
324
讨论的是openstack中卷的host属性。
印象中,社区H版本对于volume的host值表示的就是对应cinder-volume服务的host配置项,默认为GuestOS的hostname。比如单板A上的cinder-volume创建了卷V,那么V的host就是A。同时,把该host值作为rpc转发的topic,即cinder-scheduler组件已不同的host为单位进行区分,调度确定...
分类:
其他好文 时间:
2014-11-07 16:57:00
阅读次数:
201
修改输入@提示所有的注解提示方法eclipse下windows-->preference-->java-->editor-->Content Assist下的Enable auto activation选项中的Auto activation triggers for javadoc中的@去掉然后在A...
分类:
其他好文 时间:
2014-11-07 12:43:24
阅读次数:
189
使用dumpe2fs查看superblock的信息:[root@localhost~]#dumpe2fs/dev/sda1dumpe2fs1.39(29-May-2006)Filesystemvolumename:/boot文件系统名Lastmountedon:<notavailable>FilesystemUUID:b20ffbe6-f56d-4eee-a3a2-22145aa88e36Filesystemmagicnumber:0xEF53Filesystemrevi..
分类:
其他好文 时间:
2014-11-05 17:38:08
阅读次数:
250
java发邮件的方法应该不止一种我这里只说我会的一种首先添加两个jar包mail.jar 和 activation.jar然后自己写一个mail的类,类中包括发送等方法 1 public class Mail { 2 private String subject; 3 private...
分类:
编程语言 时间:
2014-11-05 16:33:55
阅读次数:
199
大意:有两个杯子 三种操作You are given two pots, having the volume ofAandBliters respectively. The following operations can be performed:FILL(i) fill the poti(1 ≤...
分类:
其他好文 时间:
2014-11-01 09:42:07
阅读次数:
332
DB2中使用裸设备作为容器需要三个步骤:1. 创建LV。2. 绑定LV和裸设备 3.创建表空间
1. 创建lv
root@ubuntu:~# vgdisplay
root@ubuntu:~# vgdisplay
--- Volume group ---
VG Name mainVG
System ID
...
分类:
数据库 时间:
2014-10-31 19:09:03
阅读次数:
166
??
1、错误信息
qemu-kvm: Migrate: socket bind failed
2、原因:
其原因是qemu迁移端口与glusterfs端口冲突导致的
3、解决方法:
这种问题有两种解决办法:
第一:
解决办法,在所有安装glusterfs的机器上执行:
# vi /etc/glusterfs/glusterd.vol
在“end-volume”之前加入一行:
...
分类:
其他好文 时间:
2014-10-31 15:45:52
阅读次数:
282
1、java智能提示(1). 打开Eclipse,选择打开" Window - Preferences"。(2). 在目录树上选择"Java-Editor-Content Assist",在右侧的"Auto-Activation"找到"Auto Activation triggers for jav...
分类:
系统相关 时间:
2014-10-28 00:43:12
阅读次数:
229
add mail.jar and activation.jar in ANT_HOME/lib or use both jar form your project/lib问题描述: ant执行发送email的功能时报错:java.lang.ClassNotFoundException: javax....
分类:
编程语言 时间:
2014-10-27 19:22:38
阅读次数:
885