http://www.shejidaren.com/css-auto-height-of-the-column.htmlvar m = Math.max( $('.main').height(), $('.sidebar').height(), $('.sidebar2')....
分类:
Web程序 时间:
2014-09-22 12:56:02
阅读次数:
192
TableDefinition 的对象,就是我们在写 migrate 的时候使用的对象 t如下class SomeMigration "ActiveRecord::ConnectionAdapters::TableDefinition" end end def down ... ...
分类:
其他好文 时间:
2014-09-21 20:22:51
阅读次数:
198
跟 column相关的常见的方法有:column_exists? (table_name, column_name, type = nil, options = {})add_column (table_name, column_name, type, options = {})remove_co....
分类:
其他好文 时间:
2014-09-21 18:38:31
阅读次数:
271
#include
using namespace std;
class base{
public:
base(){}
virtual void func(int i = 12)
{
cout
}
};
class Derived:public base{
public:
Derived(){}
virtual void func(int i = 22)
...
分类:
其他好文 时间:
2014-09-21 09:27:10
阅读次数:
181
Service是Android中的四大组件之一,所以在Android开发过程中起到非常重要的作用。【博客专栏:http://blog.csdn.net/column/details/alearning.html】...
分类:
移动开发 时间:
2014-09-20 22:39:09
阅读次数:
359
硬件:Cubieboard2系统:Ubuntu 14.04 based on VMware Virtual Machine镜像:cb2-lubuntu-server-tsd-tfcard-v2.0.img.gz[1](Base on Ubuntu 14.04 Optimized by Lubuntu...
分类:
其他好文 时间:
2014-09-20 22:26:09
阅读次数:
254
通常说的双机热备是指两台机器都在运行,但并不是两台机器都同时在提供服务。当提供服务的一台出现故障的时候,另外一台会马上自动接管并且提供服务,而且切换的时间非常短。下面来以keepalived结合tomcat来实现一个web服务器的双机热备。keepalived的工作原理是VRRP(Virtual Router Redundancy Protocol)虚拟路由冗余协议。在VRRP中有两组重要的概念:...
分类:
其他好文 时间:
2014-09-20 20:06:19
阅读次数:
248
users 表结构 ( name, address )现要让 users 表添加多个地址,于是乎有了下面的 migrationdef change unless column_exists? :users, :address_id add_column :users, :address_id...
分类:
其他好文 时间:
2014-09-20 08:50:06
阅读次数:
279
关于VMM的一些了解:安装并配置SystemCenter2012R2VirtualMachineManagerSystemCenter2012R2VMM简介在以下方面有很大增强:企业级的性能运行至多1,000台主机和25,000个虚拟机(当然也不可能部署这么多)动态VHDX大小通过动态迁移自动升级Hyper-V群集增强支持Citrix和VMware主机..
分类:
其他好文 时间:
2014-09-20 02:24:57
阅读次数:
304
程序代码:
#include
using namespace std;
class SmallPlant//小型植物
{
public:
//攻击力
virtual int AttackPower()
{
return 10;//攻击力为10
}
};
class Zombie//僵尸
{
public:
//攻击力
i...
分类:
其他好文 时间:
2014-09-19 19:26:55
阅读次数:
273