本文地址:https://www.cnblogs.com/maplefighting/p/9124073.html 题目名称:Roadblocks 链接:http://poj.org/problem?id=3255 题意:有 N 个点,R条边,计算从 1 出发到 N的次短路长度,次短路是指长度比那些 ...
分类:
其他好文 时间:
2018-06-02 00:34:36
阅读次数:
167
在很多网站页面中如果我们把页面下拉很多的时候,右边一般都有一个按钮点击可以直接回到顶部,并且无论滚动条下拉多少这个小方块都保持在右边画面中心 简单分析下我们知道,这个小方块是绝对定位,当我们拉动滚动条的时候获取滚动的距离,然后让方块的top值等于滚动的距离。触发方块的点击事件时让top值为0 一 h ...
分类:
其他好文 时间:
2018-06-01 20:38:44
阅读次数:
115
面象过程 面向过程又被称为top-down languages,核心在于过程二字,过程指的是解决问题的步骤,设计一条流水线机械式的思维方式 面象对象的优缺点 优点:可以使复杂的问题流程化,进而简单化 缺点:可扩展性差 应用场景:监控系统 例子: import json import re def i... ...
分类:
其他好文 时间:
2018-06-01 18:12:02
阅读次数:
148
有需求需要选择某个符号前后的字符串,然后通过事件来操作前后单词的首字母或者最后一个字母的样式 详见www.lianxi.ieduchina.com中的五步精听,代码太多就不贴了。 demo如下 <!DOCTYPE html> <html lang="en"> <head> <meta charset ...
分类:
其他好文 时间:
2018-06-01 15:36:29
阅读次数:
117
select inst_id,status,count(*) from gv$session group by inst_id,status order by status;$ORACLE_HOME\rdbms\admin\spreport.sqlOracle数据库巡检一、操作系统检查1.操作系统资源使用情况top/topas/iostat/vmstat 重点关注CPU/内存/交换的使用情况2.操
分类:
数据库 时间:
2018-06-01 15:31:08
阅读次数:
267
今天测试同事告诉我,测试环境一直出现oom,让我分析一下,第一个用到的是top指令,记录一下。 1. 前五行信息 top - 10:58:46 up 51 days, 20:22, 3 users, load average: 0.15, 0.08, 0.08 Tasks: 128 total, 1 ...
分类:
系统相关 时间:
2018-06-01 14:27:14
阅读次数:
222
1、监控进程GC情况:jstat-gcutilpid频率例如:jstat-gcutil38072s2、监控CUP和内存:命令:top,vmstat,nmon工具:Jvisualvm,Jprofile,perfnom,Btrace,loadrunner3、监控IO:iostatiostat-d-x-k1104、监控网络:ifstat,iftop,nethogs监控总体带宽使用――nload、bmon
分类:
编程语言 时间:
2018-06-01 11:42:23
阅读次数:
273
When it comes to booting up evidence files acquired from target disk, you got two options. One is VFC and the other is Live View. Both of them could c ...
分类:
其他好文 时间:
2018-05-31 23:06:09
阅读次数:
190
报错: 无明显报错 状况: 所有namenode都是standby,即ZK服务未生效 尝试一:手动强制转化某个namenode为active 操作:在某台namenode上,执行 hdfs haadmin -transitionToActive --forcemanual nn1 (nn1是你的某台 ...
分类:
数据库 时间:
2018-05-31 19:36:59
阅读次数:
232
question: Give the sequence of subarray sizes in the merges performed by both the top-down and the bottom-up mergesort algorithms, for N = 39. answer: ...
分类:
其他好文 时间:
2018-05-31 19:21:43
阅读次数:
181