Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.According ... ...
分类:
其他好文 时间:
2017-02-12 18:38:20
阅读次数:
168
已知div行高设置text-align:center文字会自动居中。 通过:before来设置icon的地址和高宽。 需要设置图片默认的垂直居中条件,与文字一致,为text-bottom。 设置图片行级显示。 <!Doctype html><html><head><style>body{margin ...
分类:
其他好文 时间:
2017-02-12 18:29:34
阅读次数:
3170
Livy的概述(引自社区) Livy(当前是alpha版本)是一个提供rest接口和spark集群交互的服务。它可以提交spark job或者spark一段代码,同步或者异步的返回结果;也提供sparkcontext的管理,通过restfull接口或RPC客户端库。Livy也简化了与spark与应用 ...
分类:
其他好文 时间:
2017-02-12 15:43:27
阅读次数:
4234
shell自动收集服务器硬件系统信息,插入数据库并通过web页面显示。 一,shell自动收集服务器硬件系统信息,插入数据库。#centos 7操作系统下 #!/bin/bash#auto get system infoecho -e "\033[34m\033[1m" cat <<EOF+++++ ...
分类:
系统相关 时间:
2017-02-12 15:33:13
阅读次数:
181
Ø 单一应用架构 ·当网站流量很小时,只需一个应用,将所有功能都部署在一起,以减少部署节点和成本。 Ø 垂直应用架构 当访问量逐渐增大,单一应用增加机器带来的加速度越来越小,将应用拆成互不相干的几个应用,以提升效率。 当访问量逐渐增大,单一应用增加机器带来的加速度越来越小,将应用拆成互不相干的几个应 ...
分类:
其他好文 时间:
2017-02-12 10:57:25
阅读次数:
198
Default firmware for this guide is:2118it.binVersion 20.00.07.00Release date: 11-FEB-16 所有资源已转到百度盘: 链接: https://pan.baidu.com/s/1hsG9rXq 密码: vp4g WARN ...
分类:
其他好文 时间:
2017-02-12 10:52:25
阅读次数:
2133
1.安装vsftpd 默认Centos7是安装vsftpd的, 如果没有请使用yum安装 2.启动并查看vsftpd启动模式 从上面可以看到是vsftpd启动的,而不是xinetd启动的。 所以默认的启动模式是stand alone模式。 3.保存默认的配置文件 4.常用参数简要说明下anonymo ...
分类:
其他好文 时间:
2017-02-12 00:06:58
阅读次数:
213
F(x) Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description For a decimal number x with n digits (AnAn-1A ...
分类:
其他好文 时间:
2017-02-11 23:57:46
阅读次数:
380
1.Memcache::add用法 代码:bool Memcache::add ( string $key , mixed $var [, int $flag [, int $expire ]] ) 说明: 如果$key不存在的时候,使用这个函数来存储$var的值。功能相同的函数是memcache_ ...
分类:
系统相关 时间:
2017-02-11 23:46:56
阅读次数:
244
scala中的partition span splitAt groupBy 可把Collection分成:满足条件的一组,其他的另一组。 partitionspan List(1,9,2,4,5).span(_<3) // (List(1),List(9, 2, 4, 5)),碰到不符合就结束 Li ...
分类:
其他好文 时间:
2017-02-11 22:40:04
阅读次数:
304