前言JVM GC是JVM的内存回收算法,调整JVM GC(Garbage Collection),可以极大的减少由于GC工作,而导致的程序运行中断方面的问题,进而适当的提高Java程序的工作效率。但是调整GC是以个极为复杂的过程,所以我们要了解JVM内存组成,回收算法,对象分配机制。JVM 堆内存组...
分类:
其他好文 时间:
2014-09-17 18:23:52
阅读次数:
247
一、背景与前景1.background属性background-color--背景颜色background-image:url() --背景图片路径要写在url()中.background-attachment:fixed--背景图固定,字动图不动.scroll -- 背景与字一起滚动,默认.bac...
分类:
Web程序 时间:
2014-09-17 18:07:02
阅读次数:
284
HBase依靠ZooKeeper来感知集群成员及其存活性。如果一个服务器暂停了很长时间,它将无法给ZooKeeper quorum发送心跳信息,其它服务器会认为这台服务器已死亡。这将导致master为其启动恢复进程。当该服务器脱离停顿时,它会发现它的所有租约都已失效(指hbase
client端每次和regionserver交互的时候,都会在服务器端生成一个租约(Lease),租约的有效期由参...
分类:
其他好文 时间:
2014-09-17 12:06:02
阅读次数:
393
今天遇到个小问题,纠结了很久,分享下a标签添加背景图,需要给a添加display:block样式但是在ie8下还是不能显示背景图,开始以为是由于a标签为空造成的,试了下添加内容也没用,后来注意到一点细节,修改后就能正常显示了修改前:background: url('./img/active/lege...
分类:
其他好文 时间:
2014-09-17 11:55:02
阅读次数:
217
.gradient-box{background-image:-webkit-linear-gradient(top,#ccc,#000);background-image:-moz-linear-gradient( top,#ccc,#000);background-image:linear-gr...
分类:
Web程序 时间:
2014-09-17 11:54:02
阅读次数:
292
html代码jstest 测试div css代码@charset "utf-8";.red{width:100px; height:100px; background:#f00;}.blue{width:100px; height:100px; background: blue;...
分类:
编程语言 时间:
2014-09-17 00:58:01
阅读次数:
329
原文:CSS背景图片定位在网页开发中我们经常需要对图片进行分割(如下图)来使用,而不是分别提供单独的图片来调用,常见的如页面背景,按钮图标等,这样做的好处就是减少请求次数,节省时间和带宽。 对背景图片的定位就需要用到CSS中的background样式,如: div{ background-image...
分类:
Web程序 时间:
2014-09-16 23:32:11
阅读次数:
355
function banner_start(){ function changeImg(){ var strPath = arguments[0]; $(".banner").css("background","url("+ strPath +") center"); $(".banner .ban...
分类:
其他好文 时间:
2014-09-16 15:47:40
阅读次数:
121
setBackgroundResource()或者在xml设置android:background属性时,将你的background以XML Bitmap的形式定义,如下:
调用如下:
imageButton.setBackgroundResource(R.drawable.toolbar_bg_bmp)
或者
若背景图片有多种状态,还可参照toolba...
分类:
移动开发 时间:
2014-09-16 14:22:33
阅读次数:
227
纯色:SolidColorBrush brush = new SolidColorBrush(Colors.White);window1.Background = brush;渐变色:LinearGradientBrush buttonBrush = new LinearGradientBrush(...
分类:
其他好文 时间:
2014-09-16 12:31:40
阅读次数:
235