Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
layui 使用cron可视化组件
layui版本一定是最新版
123456789101112131415161718layui  .config({    base: "../static/layui_exts/", // 扩展组件跟路径  })  .extend({    cron: "cron/cron" // 扩展组件  })  .use(["cron"], function () {    var $ = layui.$,      cron = layui.cron;    cron.render({      elem: "#cron", // 绑定元素      run: "../static/json/run.json", // 获取最近运行时间的接口      done: function(cronStr) {        console.log(cronStr);      }    });  }); ...
IDEA快速部署到docker中
服务器上部署docker12345678910111213# step 1: 安装必要的一些系统工具sudo yum install -y yum-utils device-mapper-persistent-data lvm2# Step 2: 添加软件源信息sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo# Step 3sudo sed -i 's+download.docker.com+mirrors.aliyun.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo# Step 4: 更新并安装Docker-CEsudo yum makecache fastsudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin# Step 4: 开 ...
Python将print输出重定向到tkinter页面
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960import sysfrom tkinter import Text, ENDclass StdoutRedirector:    def __init__(self, text_widget: Text):        self.text_widget = text_widget        self.last_line_start = 0  # 跟踪最后一行的起始位置    def write(self, output: str):        if output.startswith('/r'):            # 去除前缀 '/r'            output = output[2:]            # 删除最后一行内容            if self.last_line_start  ...
YUM安装docker-compose
Docker Compose简介Docker Compose是一个用于定义和运行多容器Docker应用程序的工具。通过Compose,您可以使用YAML文件来配置应用程序的服务,然后使用一个命令创建并启动所有服务。它极大地简化了容器编排工作,特别适合开发、测试和CI工作流程。
安装前提在安装Docker Compose之前,请确保您的系统已经安装了Docker。您可以通过以下命令检查Docker是否已安装:
1docker --version
如果未安装Docker,请先安装Docker:
123yum install -y dockersystemctl enable dockersystemctl start docker
使用YUM安装Docker Compose1. 添加EPEL源EPEL (Extra Packages for Enterprise Linux) 是为企业级Linux提供额外软件包的仓库,它包含了许多在标准仓库中不可用的软件包,包括docker-compose。
1yum install -y epel-release
2. 安装Docker Compo ...
富文本及formatter的使用
先看效果图:该饼图统计总共的数据,其中每块饼图旁边显示了3条相应的详细数据
其中后端提供的数据结构如下123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{  "code": 0,  "randomSelectedList": [    {      "username": "a1",      "newsName": "北京大学-悉尼大学食物安全和农业可持续发展联合中心揭牌仪式暨学术研讨会举行"    },    {      "username": "a1",      "newsName": "“沉浸式传播视域下传统文化+虚拟现实的创新路径”研讨会在 ...
通用dockerfile文件
先写项目的启动脚本,命名为run.sh1234567891011121314151617181920212223#!/bin/shif [ -z $JAVA_OPTS ];then    JAVA_OPTS="-Xms256m -Xmx512m"fiif [ -z $JAR_PATH ];then    JAR_PATH="/opt/server"fiif [ -z $EXAM_ENV ];then    EXAM_ENV="prod"fiif [ x$LOG != "xfalse" ];then    mkdir -p logs    LOGGING_OPT="--logging.path=./logs"fiecho $JAVA_OPTS -Dlogging.path=./logs -DSpring.profiles.active=$EXAM_ENV -jar ${JAR_PATH}/*.jarjava $JAVA_OPTS -Dlogging.path=./log ...
加密yml文件
1. 低版本2.x引入依赖12345<dependency>    <groupId>com.github.ulisesbocchio</groupId>    <artifactId>jasypt-spring-boot-starter</artifactId>    <version>2.1.0</version></dependency>
手动引入依赖(内网环境)
12345678910<dependency>    <groupId>org.jasypt</groupId>    <artifactId>jasypt</artifactId>    <version>1.9.2</version></dependency><dependency>    <groupId>com.github.ulisesbocchio</groupId>    < ...
Vue2设置通知提醒框
可自定义设置以下属性:
自动关闭的延时时长(duration),单位ms,默认4500ms
消息从顶部弹出时,距离顶部的位置(top),单位px,默认24px
消息从底部弹出时,距离底部的位置(bottom),单位px,默认24px
消息弹出位置(placement),可选:左上topLeft,右上topRight(默认),左下bottomLeft,右下bottomRight
调用时可选以下五个方法对应五种不同样式:
this.$refs.notification.open(notification) // 默认使用
this.$refs.notification.info(notification) // info调用
this.$refs.notification.success(notification) // success调用
this.$refs.notification.error(notification) // error调用
this.$refs.notification.warn ...
Layui实现放大图片的效果
需要在表格里面添加查看图片的模板
123<div style="width: 400px;height: 200px" onclick="showLarge('../images/lidong.jpg')">    <img height="100%" width="100%"  src="../images/lidong.jpg" alt=""></div>
放大的function
123456789101112131415161718192021222324252627<script type="text/javascript" >//查看大图    function showLarge(src) {        layer.photos({            photos: {                "title&quo ...







