摘要: 新建发送邮件的脚本 #!/usr/bin/python3 import socket import os import json import smtplib from email.header import Header from email.mime.multipart import MIMEM 阅读全文
posted @ 2021-12-23 09:19 骨头 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Tomcat为什么要违背双亲委托机制 什么是双亲委托机制 指当一个类加载器收到一个类加载请求时,该类加载器首先会把请求委派给父类加载器。 每个类加载器都是如此,只有在父类加载器在自己的搜索范围内找不到指定类时,子类加载器才会尝试自己去加载。 Tomcat的类加载机制 Bootstrap 这个类加载器 阅读全文
posted @ 2021-09-24 14:55 骨头 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: 读取指定目录下的文件,提取文件中的所有汉字 # -*- coding: utf-8 -*- import os import io import re fo = open("word.txt", "w") # 遍历指定目录,显示目录下的所有文件名 def each_file(filepath): f 阅读全文
posted @ 2021-06-02 15:55 骨头 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: 简介 开窗函数也叫分析函数,针对一组行计算值,并为每行返回一个结果。这与聚合函数不同;聚合函数会为一组行返回一个结果。 开窗函数包含一个 OVER 子句,该子句定义了涵盖所要计算行的行窗口。对于每一行,系统会使用选定的行窗口作为输入来计算分析函数结果,并可能进行聚合。 借助开窗函数,您可以计算移动平 阅读全文
posted @ 2021-05-08 12:59 骨头 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 服务器 node01 node02 node03 HDFS NameNode HDFS SecondaryNameNode HDFS DataNode DataNode DataNode YARN ResourceManager YARN NodeManager NodeManager NodeMa 阅读全文
posted @ 2021-04-06 13:17 骨头 阅读(113) 评论(0) 推荐(0) 编辑
摘要: mac单机 brew install hadoop Configure 默认配置目录为/usr/local/cellar/hadoop/3.3.0/libexec/etc/hadoop/ hadoop-env.sh # 放开并设置 export JAVA_HOME="/Library/Java/Ja 阅读全文
posted @ 2021-04-02 16:36 骨头 阅读(281) 评论(0) 推荐(0) 编辑
摘要: implementation 'org.hibernate:hibernate-envers' spring.jpa.hibernate.ddl-auto 设置为 update @Setter @Getter @Entity @Table(name = "T_DEC_HEAD") @Audited 阅读全文
posted @ 2020-08-24 14:54 骨头 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 如题 // Koa 洋葱中间件机制核型代码 function compose(middleware) { return function (context, next) { let index = -1; return dispatch(0) function dispatch(i) { if (i 阅读全文
posted @ 2020-08-21 13:49 骨头 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 参考 How to see JavaDoc in IntelliJ IDEA? 阅读全文
posted @ 2020-08-19 09:55 骨头 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 在gradle中,如果多个子项目使用目录进行分组,可以使用如下方法 // include two projects, 'foo' and 'foo:bar' // directories are inferred by replacing ':' with '/' include 'foo:bar' 阅读全文
posted @ 2020-07-21 18:17 骨头 阅读(673) 评论(0) 推荐(0) 编辑
摘要: package datastructures.queue; /** * @author warriorg */ public class ArrayQueue<T> implements Queue<T> { private final Object[] items; private int tak 阅读全文
posted @ 2020-07-21 09:59 骨头 阅读(270) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "strings" ) type ArrayStack struct { data []int // 存放数据的位置 top int // 栈顶指针 } /** Initialize your data structure here. */ f 阅读全文
posted @ 2020-07-21 09:57 骨头 阅读(158) 评论(0) 推荐(0) 编辑
摘要: package datastructures.linked; import java.util.Iterator; /** * @author warriorg */ public class DoublyLinkedList<T> implements Iterable<T> { private 阅读全文
posted @ 2020-07-10 18:05 骨头 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 重新学习数据结构和算法,动手实现每一个结构和算法 import java.util.Iterator; public class DynamicArray<T> implements Iterable<T>{ /*** * Default initial capacity * */ private 阅读全文
posted @ 2020-07-03 13:29 骨头 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 分享下,常用 阅读全文
posted @ 2020-05-31 21:33 骨头 阅读(317) 评论(0) 推荐(0) 编辑
摘要: ```bash # 端口扫描 nc -z -v -n 127.0.0.1 21-25 # 使用netcat 连接服务抓取他们的banner nc -v 127.0.0.1 9999 # 聊天 $nc -l 3000 # server $nc 127.0.0.1 3000 # client # 文件传输 $nc -l 3000 file.txt # client ``` 阅读全文
posted @ 2020-05-12 18:43 骨头 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 需求是有一堆这样的word文档,要转换成试题,供web界面使用。 转换过程并不完美,因为word文档并非标准,大约有90%左右的没有问题,还有部分是有问题的。 阅读全文
posted @ 2020-04-25 22:35 骨头 阅读(2815) 评论(0) 推荐(0) 编辑
摘要: ```bash " 修改leader键 let mapleader = ',' let g:mapleader = ',' syntax on " 开启语法高亮 colorscheme gruvbox set history=2000 " history存储容量 set number " 显示行号 阅读全文
posted @ 2020-04-23 14:59 骨头 阅读(292) 评论(0) 推荐(0) 编辑
摘要: VSCode配置Import@路径 1. 安装Path Intellisense插件 2. 设置插件 3. 项目目录增加jsconfig.json 最后,如果不希望提交到代码仓库,可以使用.gitignore忽略掉 4. webstorm的设置方法 node_modules/@vue/cli ser 阅读全文
posted @ 2020-04-08 09:25 骨头 阅读(4871) 评论(0) 推荐(0) 编辑
摘要: 是一个系统活动报告工具,既可以实时查看系统的当前活动,又可以配置保存和报告历史统计数据。sar是目前Linux上最为全面的系统性能分析工具之一,可以从14个大方面对系统的活动进行报告,包括文件的读写情况、系统调用的使用情况、串口、CPU效率、内存使用状况、进程活动及IPC有关的活动等,使用也是较为复 阅读全文
posted @ 2020-04-02 09:07 骨头 阅读(248) 评论(0) 推荐(0) 编辑
摘要: | 命令 | 作用 | | | | | | 打开/关闭当前的折叠 | | | 关闭当前打开的折叠 | | | 打开当前的折叠 | | | 关闭所有折叠 | | | 关闭所有折叠及其嵌套的折叠 | | | 打开所有折叠 | | | 打开所有折叠及其嵌套的折叠 | | | 删除当前折叠 | | | 删除 阅读全文
posted @ 2020-03-23 10:12 骨头 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 用于在内核运行时动态地修改内核的运行参数,可用的内核参数在目录 中。它包含一些tcp/ip堆栈和虚拟内存系统的高级选项。用sysctl可以读取设置超过五百个系统变量。正常可以通过修改 来修改配置。 参数 variable 变量,例如 也可以是 variable=value 设置变量的值 n:打印值时 阅读全文
posted @ 2020-03-20 10:40 骨头 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 使用Excel管理数据库表,并使用python生成对应的建表语句 Excel 数据库表模版 python 生成SQL脚本 python从数据库生成sql脚本, 后续会调整优化,直接生成java代码,整合进代码生成工具 "https://github.com/warriorg/builder" 阅读全文
posted @ 2020-03-19 16:39 骨头 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 这篇文章列出了java8到java14新特性的博文,挺好的,推荐下,哈哈哈 https://www.javacodegeeks.com/2020/03/new features between java 8 and java 14.html 阅读全文
posted @ 2020-03-10 17:45 骨头 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 整个项目结构 pageage.json app/main/index.js 修改VUE Router模式为Hash模式修改Vue.config.js 文件 参考 "https://github.com/warriorg/electron vue" 阅读全文
posted @ 2020-02-23 11:31 骨头 阅读(1640) 评论(0) 推荐(0) 编辑
摘要: Markfile makefile是用于构建和运行软件应用程序的自动化工具。 GO程序 首先,我们创建一个GO应用程序 创建Markfile 运行Markfile命令 构建命令 为我们的平台构建Go应用程序 运行命令 运行go应用程序 编译命令 为了针对不同的平台和操作系统编译Go 应用程序 参考 阅读全文
posted @ 2020-02-13 15:36 骨头 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 格式 | 字段名 | 允许的值 | 允许的特殊字符 | | | | | | 秒 | 0 59 | | | 分 | 0 59 | | | 小时 | 0 23 | | | 日 | 1 31 | | | 月 | 0 11 or JAN DEC | | | 星期 | 1 7 or SUN SAT | | | 阅读全文
posted @ 2020-02-10 19:53 骨头 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 新年开始,公司启动远程办公,需要远程vpn到公司, 使用 AnyConnect, "下载地址" ,macos 使用的时候,有很多的问题,最后使用如下的方案解决 1. 打开Network,创建一个VPN连接 点击create创建 2. 点击Authentication Settings 设置组别信息 阅读全文
posted @ 2020-02-03 19:11 骨头 阅读(1) 评论(0) 推荐(0) 编辑
摘要: SPI全称为Service Provider Interface. 是JDK内置的一种服务提供发现功能,一种动态替换发现的机制。 项目例子 接口类是HelloInterface ,有两个实现类,分别是是FooHello和BarHello. 在META INF目录下建立扩展文件,已接口HelloInt 阅读全文
posted @ 2020-01-18 21:54 骨头 阅读(156) 评论(0) 推荐(0) 编辑
摘要: ```java public class SimulateHighConcurrency { public static void run(int num, Consumer action) { Objects.requireNonNull(action); CountDownLatch countDownLatch = new CountDownLatch(1); for (int i = 0; 阅读全文
posted @ 2020-01-17 08:53 骨头 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 安装 osx Centos 解决错误 bash make cd src && make all make[1]: Entering directory `/usr/local/redis 5.0.2/src' CC adlist.o In file included from adlist.c:34 阅读全文
posted @ 2020-01-12 21:11 骨头 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 分组计算 阅读全文
posted @ 2020-01-05 15:47 骨头 阅读(2136) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2018.cnblogs.com/blog/40308/202001/40308-20200101154952132-2082722350.jpg) 阅读全文
posted @ 2020-01-01 15:50 骨头 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 如题 go package slidingwindow import ( "errors" "sync" "time" ) // Window window type Window struct { sync.RWMutex window time.Duration tick time.Durati 阅读全文
posted @ 2019-12-26 14:16 骨头 阅读(556) 评论(0) 推荐(0) 编辑
摘要: golang 中解决前端time 输出,后端mongodb中时间存储。 golang package mask import ( "fmt" "time" "go.mongodb.org/mongo driver/bson" "go.mongodb.org/mongo driver/bson/bso 阅读全文
posted @ 2019-12-15 09:36 骨头 阅读(2368) 评论(0) 推荐(0) 编辑
摘要: 这个界面跟之前VUE做的一样。并无任何不同之处,只是用react重复实现了一遍。 typescript import React, { useState, useEffect } from 'react'; import { Row, Col, Table, Form, Cascader, Inpu 阅读全文
posted @ 2019-12-14 22:14 骨头 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 过去的一周忙死了,也收获很大,又有了一个儿子!希望他们以后能和和气气,健康成长! 阅读全文
posted @ 2019-12-08 17:20 骨头 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Java RMI 指的是远程方法调用 (Remote Method Invocation)。它是一种机制,能够让在某个 Java 虚拟机上的对象调用另一个 Java 虚拟机中的对象上的方法。 示例 interface server client 参考 https://docs.oracle.com/ 阅读全文
posted @ 2019-12-01 19:04 骨头 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 今天修改个东西,看到有一段代码被人优化了!!! 优化前 优化后 阅读全文
posted @ 2019-11-23 11:06 骨头 阅读(296) 评论(1) 推荐(1) 编辑
摘要: 如题,没事撸了一个前端的工具帮助库,用来收集前端的一些帮助方法。 https://github.com/warriorg/wg util 阅读全文
posted @ 2019-11-16 22:29 骨头 阅读(140) 评论(0) 推荐(0) 编辑