第一步:
生成图片的函数:imagecreatetruecolor(参数1宽,参数2高);第二部: 生成颜色:1.第一次调用生成颜色的方法是生成背景颜色
imagecolorallocate(参数1是生成的那张图片,参数2,3,4是颜色); 2.第二次调用生成颜色的方法...
分类:
其他好文 时间:
2014-05-15 15:53:27
阅读次数:
256
本文介绍下,在javascript中实现表单序列化的方法,通过实例加深理解,有需要的朋友参考下吧。在JavaScript中,可以利用表单字段的type属性,连同name和value属性一起实现对表单的序列。首先,我们来了解下在表单提交期间,浏览器是怎样将数据发送给服务器的。对表单字段的名称和值进行U...
分类:
编程语言 时间:
2014-05-15 15:26:40
阅读次数:
318
Javascript Image Slider 是个不错的轮播插件,兼容 IE 7.0+,
Firefox 1.5+, Chrome 1.0+, Safari 3+, Opera 9.0+, Netscape 7.0+。官网
http://www.menucool.com/javascript-im...
分类:
编程语言 时间:
2014-05-15 15:23:06
阅读次数:
348
目前openstack提供了raw,qcow2,lvm,rbd四种类型的image后端。
所谓后端,即image/临时卷root盘的管理存储方式。
nova/virt/libvirt/imagebackend.py:
中有四个Raw,Qcow2,Lvm,Rbd四个类,均继承了image类,主要提供create_image方法和snapshot_extract方法。
image父类提供...
分类:
其他好文 时间:
2014-05-15 15:14:32
阅读次数:
350
1.什么是RTTI?
RTTI 是“Runtime Type Information”的缩写,意思是:运行时类型信息。它提供了运行时确定对象类型的方法。允许“用指向基类的指针或引用来操纵对象”的程序能够获取到“这些指针或引用所指对象”的实际派生类型。在 c++中,为了支持 RTTI 提供了两个操作符 :
1 dynamic_cast 操作符:它允许在运行时刻进行类型转换,从而使程...
分类:
编程语言 时间:
2014-05-15 11:19:41
阅读次数:
407
GlusterFS 源码安装方式:http://blog.csdn.net/wangyuling1234567890/article/details/25519261
1、GlusterFS的典型架构图
2、GlusterFS常用translators(中继)
2.1.1. storage/posix
type storage/posix
storage/po...
分类:
其他好文 时间:
2014-05-15 06:18:18
阅读次数:
381
【题目】
原文:
1.6 Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?
译文:
一张图像表示...
分类:
其他好文 时间:
2014-05-15 05:43:35
阅读次数:
240
在Eclipse中,出现“Access Restriction: The Type BASE64Encoder Is Not Accessible
Due To Restriction”错误。
解决方法:
点击Window-->Preferences-->Java-->Compiler-->Errors/Warns,设置Deprecated And Restri...
分类:
数据库 时间:
2014-05-15 05:22:58
阅读次数:
265
一、 创建表
在官方的wiki里,example是这样的:
Sql代码
CREATE [EXTERNAL] TABLE [IF NOT EXISTS] table_name [(col_name data_type [COMMENT col_comment], ...)] [COMMENT table_comment] [PARTITION...
分类:
数据库 时间:
2014-05-14 14:50:27
阅读次数:
463