运行此命令,报错如下:
我是使用的xshell工具链接的服务器:#virt-manager
X11connectionrejectedbecauseofwrongauthentication.
Traceback(mostrecentcalllast):
File"/usr/share/virt-manager/virt-manager.py",line383,in<module>
main()
File"/usr/share/vi..
分类:
其他好文 时间:
2014-07-26 03:09:47
阅读次数:
414
制作一个系统镜像上传到/mnt/p_w_picpath目录下:
centos6.5.img$glancep_w_picpath-create–namecentos6.5–disk-format=qcow2–container-format=bare–is-public=True–file=/mnt/p_w_picpath/centos6.5.img
解释:
–nameNAME上传完镜像在openstack中显示的名称..
分类:
其他好文 时间:
2014-07-26 03:09:27
阅读次数:
636
HTML 5除了提供用于获取文件信息的File对象外,还添加了FileSystem相关的应用接口。FileSystem对于不同的处理功能做了细致的分类,如用于文件读取和处理的FileReader和FileList对象、用于创建和写入的Blob和FileWriter对象、用于目录和文件系统访问的DirectoryReader和LocalFileSystem对象等,FileSystem功能的出现是浏览器在文件系统上的突破,具有里程碑的意义,虽然目前还尚未完全成熟,但足以让开发者发挥更大的想象空间。...
分类:
Web程序 时间:
2014-07-26 03:04:26
阅读次数:
255
// 创建thin pool
// 调用路径:NewDeviceSet->initDevmapper->createPool
1.1 func createPool(poolName string, dataFile, metadataFile *os.File, poolBlockSize uint32) error {
//通过task封装与libdevmapper的交互
task, er...
分类:
移动开发 时间:
2014-07-26 02:45:06
阅读次数:
297
最近发现很多接口配置都硬编码在souce file中了,于是就看了下python怎么解析配置文件,重构下这一块。
这个应该是早就要作的。。。...
分类:
编程语言 时间:
2014-07-26 02:43:16
阅读次数:
300
public class PxAndDp {
/**
* 根据手机的分辨率从 dp 的单位 转成为 px(像素)
*/
public static int dip2px(Context context, float dpValue) {
final float scale = context.getResources().getDisplayMetrics().density;
...
分类:
移动开发 时间:
2014-07-26 02:36:36
阅读次数:
276
oracle data file header replace(测)...
分类:
数据库 时间:
2014-07-26 02:36:26
阅读次数:
450
需要用到工具(按照顺序):
1.JDK
2.NDK
3.Adt-bundle-windows
将JDK目录下的bin文件夹路径添加到系统环境变量中。
解压NDK
解压Adt-bundle-windows
运行其中的eclipse.exe
file->import
然后browse,找到工程所在的目录
然后finish。。
会看到提示有错误...
分类:
移动开发 时间:
2014-07-26 02:22:56
阅读次数:
308
<%
String path = request.getContextPath();
String agent = request.getHeader("User-Agent");
String browInfo[] = agent.split(";");
String realBrowser = browInfo[1].trim();//浏览器信息
String osInfo...
分类:
Web程序 时间:
2014-07-26 02:18:46
阅读次数:
299