阅山

  • WIN
    • CSharp
    • JAVA
    • OAM
    • DirectX
    • Emgucv
  • UNIX
    • FFmpeg
    • QT
    • Python
    • Opencv
    • Openwrt
    • Twisted
    • Design Patterns
    • Mysql
    • Mycat
    • MariaDB
    • Make
    • OAM
    • Supervisor
    • Nginx
    • KVM
    • Docker
    • OpenStack
  • WEB
    • ASP
    • Node.js
    • PHP
    • Directadmin
    • Openssl
    • Regex
  • APP
    • Android
  • AI
    • Algorithm
    • Deep Learning
    • Machine Learning
  • IOT
    • Device
    • MSP430
  • DIY
    • Algorithm
    • Design Patterns
    • MATH
    • X98 AIR 3G
    • Tucao
    • fun
  • LIFE
    • 美食
    • 关于我
  • LINKS
  • ME
Platforms
JAVA

Java暂停线程-学习笔记

暂停线程即线程还可以恢复运行。Java多线程中,可以使用suspend()方法暂停线程,使用resume()方法恢复线程执行。 一、基本使用 public class MyThread extends Thread{ private long i = 0; public long getI() { return i; } public void setI(long i) { this.i = i; } public void run() { while(true) { i++; } } }public class …

2017-07-22 阅山 阅读全文
JAVA

Java线程停止方法-学习笔记

线程停止指线程处理完任务之前停掉正在进行的操作。 一、停止线程的方法 使用退出标志,使线程正常退出,即当run方法完成后终止线程。 使用stop强行终止线程,但不推荐此方法,可能产生不可预料的后果。 使用interrupt方法中断线程。 二、判断线程是否是停止状态 方法一:this.interrupted() 测试当前线程是否已经中断,当前线程指运行this.interrupted()方法的线程。 方法二:this.isInterrupted()测试线程是否已经中断。 实例一: public class MyThr…

2017-07-22 阅山 阅读全文
JAVA

Java多线程编程基础-学习笔记

一、多线程使用 1.1 使用方式 继承Thread类 实现Runnable接口 1.2 继承Thread类 public class MyThread extends Thread{ @Override public void run() { super.run(); System.out.println("MyThread"); } } public class Run { public static void main(String args[]) { MyThread mythread = new MyThr…

2017-07-15 阅山 阅读全文
OAM

Samba Server Installation and Configuration on CentOS 7

reprint:https://www.howtoforge.com/samba-server-installation-and-configuration-on-centos-7 This guide explains how to configure samba server in CentOS 7 with anonymous & secured samba servers. Samba is an Open Source/Free Software suite that provides seaml…

2017-06-21 阅山 阅读全文
OAM

Centos7新加磁盘、分区、格式化及挂载使用-折腾笔记

机器磁盘不够了,所以给机器添加一块硬盘,就来学习一下。 一、查看磁盘信息 方法一:lsblk lsblk 可以看到磁盘的分区信息。可以容易的看到机器共有3块硬盘,sda盘有很多个分区。   方法二:fdisk fdisk -l 可以看到磁盘的详细信息。 方法三:df df -h -T 可以看见已经挂载的磁盘的信息及分区格式等。 二、分区 分区使用fdisk工具,但是本人由于太懒,所以就不分区了。 三、创建文件系统 创建文件系统主要使用mkfs工具 mkfs.xfs #创建xfs文件系统 mkfs.ext4…

2017-06-21 阅山 阅读全文
superset

SuperSet Metrics中文显示问题 'latin-1' codec can't encode characters in position 102-10-折腾笔记

废话:解决这个问题,用的时间还是比较长! 数据源:Mysql57/utf8 图形:时序折线图 问题:可视化时报错: 'latin-1' codec can't encode characters in position 102-10 解决方法:jdbc url尾部添加:?charset=utf8 例如:mysql+mysqldb://root:root@127.0.0.1/data?charset=utf8 Sql Metric设置例子: Chart设置例子: 最终结果:

2017-05-08 阅山 阅读全文
superset

Superset使用教程-子弹图

子弹图,顾名思义是由于该类信息图的样子很像子弹射出后带出的轨道。 子弹图通过优化设计还能够用于表达多项同类数据的对比,例如今年消费实际与去年实际消费的对比关系;再例如,还可以表达一项数据与不同目标的校对结果,例如非常好、令人满意、不好等目标。同时,就我们人类的阅读习惯来说,线性的信息表达方式与我们习以为常的文字阅读相似,相对于圆形构图的信息表达,在信息传递上有更大的效能优势。 一、源数据 1.1 Mysql 测试表结构 CREATE TABLE `test_int` ( `id` int(10) unsigned …

2017-05-06 阅山 阅读全文
superset

Superset使用教程-直方图

直方图(Histogram)又称质量分布图。是一种统计报告图,由一系列高度不等的纵向条纹或线段表示数据分布的情况。 一般用横轴表示数据类型,纵轴表示分布情况。 一、源数据 1.1 Mysql 测试表结构 CREATE TABLE `test_int` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `test1` double(255,0) DEFAULT NULL, `test2` int(255…

2017-05-06 阅山 阅读全文
superset

Superset使用教程-嵌套环形图

一、源数据 1.1 Mysql 测试表结构 CREATE TABLE `test_int` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `test1` double(255,0) DEFAULT NULL, `test2` int(255) DEFAULT NULL, `datatime` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `d…

2017-05-06 阅山 阅读全文
superset

Superset使用教程-扇形图

一、源数据 1.1 Mysql 测试表结构 CREATE TABLE `test_int` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `test1` double(255,0) DEFAULT NULL, `test2` int(255) DEFAULT NULL, `datatime` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `d…

2017-05-05 阅山 阅读全文
1…3132333435…48
归档
  • 2026 年 4 月
  • 2026 年 3 月
  • 2026 年 2 月
  • 2025 年 12 月
  • 2025 年 11 月
  • 2025 年 10 月
  • 2025 年 9 月
  • 2025 年 8 月
  • 2025 年 7 月
  • 2025 年 6 月
  • 2025 年 5 月
  • 2025 年 4 月
  • 2025 年 3 月
  • 2025 年 2 月
  • 2024 年 12 月
  • 2024 年 11 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 8 月
  • 2024 年 7 月
  • 2024 年 6 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2024 年 3 月
  • 2024 年 2 月
  • 2024 年 1 月
  • 2023 年 12 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2023 年 9 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 6 月
  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 11 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2022 年 7 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 4 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 9 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 2 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 4 月
  • 2019 年 3 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 4 月
  • 2017 年 3 月
  • 2017 年 2 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2016 年 2 月
  • 2016 年 1 月
  • 2015 年 12 月
  • 2015 年 11 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2014 年 6 月
  • 2014 年 3 月
  • 2013 年 9 月
  • 2013 年 3 月

COPYRIGHT © 2099 登峰造极境. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

蜀ICP备14031139号-5

川公网安备51012202000587号