核心类:ZorkaAsyncThread.javaprotected BlockingQueue submitQueue; /*** Processes single item from submit queue (if any).*/public void runCycle() {try {T o...
分类:
其他好文 时间:
2015-06-23 11:50:03
阅读次数:
184
Description
In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the seque...
分类:
编程语言 时间:
2015-06-21 11:56:32
阅读次数:
126
常用nginx做web,代理,缓存等功能,一些常用的配置,老记不住,记在这儿,好查用 感谢博主,整理了这么好的东西,愧转为已用。#定义Nginx运行的用户和用户组user www www;#nginx进程数,建议设置为等于CPU总核心数。worker_processes 8;#全局错误日志定义类型,...
分类:
其他好文 时间:
2015-06-19 22:56:20
阅读次数:
207
1.采用iris数据
pairs(iris[1:4], main = "Anderson's Iris Data -- 3 species", pch = 21, bg = c("red", "green3", "blue")[unclass(iris$Species)])
其中bg=c("red", "green3", "blue")[unclass(iris$Species)]表示对不同种...
分类:
其他好文 时间:
2015-06-19 11:50:58
阅读次数:
132
设置corners_bg.xml
设置边框圆角可以在drawable-mdpi目录里定义一个xml:
[html]
android:topRightRadius="10dp"
android:bottomR...
分类:
移动开发 时间:
2015-06-19 10:26:42
阅读次数:
161
ginx.conf:worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; sendfile on; keepaliv...
分类:
其他好文 时间:
2015-06-18 16:50:44
阅读次数:
141
题意:给出M,R,G,B,2M=R+B+G,M代表一个2*M区域的列数,RGB分别代码红绿蓝格子的个数,要求:每个2*2格子中,三种颜色每种至少有一个格子,且相邻格子颜色不同,问有多少种排列方式首先我们发现可以把一列两格的放置方案分为两组,{RB,BG,GR},{BR,GB,RG}一个合法方案必定只...
分类:
其他好文 时间:
2015-06-18 08:14:38
阅读次数:
125
渐隐渐显 @-webkit-keyframes cf3FadeInOut { 0% { opacity:1; } 20% { opacity:.8; } 50% { opacity:0.5; } 70%{ opacity: .3;} 100% { opacity:0; } } div.bg { -webkit-animation-name: cf3FadeInOut; -webkit...
分类:
Web程序 时间:
2015-06-17 21:53:26
阅读次数:
209
公司最近的spark集群由原来的standalone迁移到spark on yarn了,在迁移相关的程序时,发现调整还是有一些的,以下分别是两个版本提交的部分shell命令,从命令可以看出其区别,这个区别主要是spark on yarn的工作方式不太一样,造成提交的方式也不太一样。
standalone方式的脚本为:
spark-submit --class com.bg.tools...
分类:
其他好文 时间:
2015-06-17 21:36:42
阅读次数:
393
#登陆数据库sqlplus system/***#显示当前最大连接数:show parameter processes; show parameter sessions;#修改最大连接数:alter system set processes = 300 scope = spfile;alter sy...
分类:
数据库 时间:
2015-06-17 11:15:11
阅读次数:
137