configured currently snapshots to

Spring6 探析之@Configuration 注解

# Spring6 探析之@Configuration 注解 ## 介绍 @Configuration 注解大家都不陌生,该注解有以下特点 - 必须在类上使用 - 能够将被注解的类加载到IOC容器里 - 能够将类中被@Bean注解标记的方法加载到IOC容器里 @Configuration 有一些参数 ......
注解 Configuration Spring6 Spring

failed to run Kubelet: validate service connection: CRI v1 runtime API is not implemented for endpoint

kubelet 1.27.0 ubuntu 20.04.6 kubeadm init ..... 异常 zxnl@zxnl-VirtuaBox:~# kubeadm init \ > --image-repository registry.aliyuncs.com/google_containers ......

value too long for type character(8) Call getNextException to see other errors in the batch.

![](https://img2023.cnblogs.com/blog/2135157/202305/2135157-20230525162618588-1008678640.png) **字段内容超过数据库字段设置的长度导致的插入错误的提示信息** 如何定位是哪个字段长度不够长? mysql的话 ......

django之对FileField字段的upload_to的设定

用django开发,经常要处理用户上传的文件, 比如user模型里面如果又个人头像的字段 ImageField等等,而django在FielField字段(包括ImageField)的支持和扩展是做的很好的,首先一个问题,是上传的文件,django是放到哪里去了,(note: 文件流是不会放到数据库 ......
字段 FileField upload_to django upload

How to change the default Python2 to Python3 on Linux All In One

How to change the default Python2 to Python3 on Linux All In One 在 Linux 中如何把默认的 Python2 更改为 Python3 .bashrc / .zshrc alias symbolic link 符号链接 ......
Python Python2 Python3 default change

K8S异常之Unable to connect to the server: x509: certificate has expired or is not yet valid【转】

一、问题:k8s证书过期 [root@nb001 ~]# kubectl get node Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2022-12 ......
certificate connect expired Unable server

the way to make jupyter output cell has a dark background in vscode

# the issue to be fixed As shown in the picture, jupyter output cell has a bright background, even it's ask to use dark background. ![image](https://i ......
background jupyter output vscode make

[论文阅读] Zero-shot Image-to-Image Translation

## Pre title: Zero-shot Image-to-Image Translation accepted: Arxiv 2023 paper: https://arxiv.org/abs/2302.03027 code: https://github.com/pix2pixzero/p ......

常见问题解决 --- Failed to build android app at server - class file for android.support.v4.app.Fragment not found

问题原因 这个错误主要是LocalBroadcastManager这个类被弃用了,而在库或者sdk中使用到了。 解决办法 build.gradle文件中添加 implementation 'com.android.support:support-v4:30.4.1' gradle.propertie ......
android app Fragment 常见问题 常见

Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT

Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT ......

tj-factory_Person_v1_to_v2.py

说明:该脚本把21的mysql数据库factory_cloud.personnel表里的数据迁移到185的mysql数据库tj_factory_prod.bd_person表里,这2个表字段不一致,只要2个表相关联的字段。 import pymysql import sys import datet ......
tj-factory_Person_v factory Person to_v tj

[Error 10048] error while attempting to bind on address (‘127.0.0.1‘, 8000): 通常每个套接字地址(协议/网络地址/端口)..

今天运行程序的时候碰到了这么个问题,因为之前也遇到过这种情况,那时找不到原因重启电脑这方法偶尔能解决,今天就不行了,电脑又没有看到明显的占用这个端口的程序。所以查找资料从根源出发解决。 解决方法是: 1.进入命令行(以管理员身份) 2.输入netstat -aon|findstr "8000" 查找 ......
地址 套接字 端口 attempting address

sshpass报错 Permission denied, please try again.和 connect to host localhost port 10022: Connection refused

最近在做自动化时,自动化脚本用sshpass给远程机器发送命令(sshpass -p "123456" ssh -p 10022 root@localhost -o StrictHostKeyChecking=no "poweroff") 报错:Permission denied, please t ......

How to enable Vsync with Software Rendering in SDL [SOLVED]. 如何在SDL2下实现垂直同步

How to enable Vsync with Software Rendering in SDL [SOLVED]. Hi, I just figured out the dirty way to enable vsync with software rendering on SDL. This ......
Rendering SDL Software enable SOLVED

git 报错:fatal: unable to access 'https://XXXX.../': Failed to connect to github.com port 443 after 21023 ms: Timed out

问题: 下载github开源项目时报错 原因: 以前用过代理,这里取消代理就可以了 git config --global --unset http.proxy 结果: ......
to connect access Failed unable

How to find the TLS used for the SQL Server connection

本文是How to find the TLS used for the SQL Server connection这篇英语文章的翻译,此文出处请见于文章底部链接:原文出处[1] 对于客户,我做了一些研究,如何找出SQL Server数据库会话连接使用了哪一种TLS协议。唯一的方式就是创建一个扩展事件 ......
connection the Server find used

Git-fatal: unable to access ‘https://gitlab.XX.git/‘: Could not resolve host: gitlab.XX.com.cn

git提交时报错: `fatal: unable to access 'https://gitlab.XX.git/': Could not resolve host: gitlab.XX.com.cn` 此时需要配置代理: `git config --global http.proxy XX.XX ......
gitlab Git-fatal resolve access unable

Expected MultipartHttpServletRequest: is a MultipartResolver configured方案。

~~~java //1.报错:Expected MultipartHttpServletRequest: is a MultipartResolver configured ? //2.解决 commons-fileupload commons-fileupload 1.3.1 // spring中 ......

Linux-find: missing argument to `-exec'

报错提示:find: missing argument to `-exec' 今天写一个清理脚本,用到了find命令。本来是这么写的: find . -type f -mtime +7 -name "*.log" -exec rm -rf {} \ 结果报错,find: missing argume ......
Linux-find argument missing Linux find

[Spring 6.0源码解析] @Configuration注解源码解析

# Spring 6.0源码解析之@Configuration 首先写一个启动代码: ```java public class ConfigurationAnnotationTest { private static final Logger LOGGER = LoggerFactory.getLo ......
源码 注解 Configuration Spring 6.0

use SSH to connect to Raspberry Pi methods All In One

# use SSH to connect to Raspberry Pi methods All In One > `Raspberry Pi` ## user@hostname ```sh # 无需知道 Raspberry Pi 的 IP Address, 即可使用 SSH 连接 👍 $ ssh ......
Raspberry connect methods to use

flask_SQLAlchemy 出现了 Lost connection to MySQL server during query Mysql主机连接超时 错误。如何解决

使用python flask框架 flask_sqlalchemy 时出现了 Lost connection to MySQL server during query Mysql主机连接超时的问题 由于Mysql会定时处理长时间未连接使用的连接池 具体时长可通过 查看 show variables ......

LeeeSe/MessAuto: 自动提取Mac平台的短信验证码,2FHey的免费替代品;Automatic extraction of SMS verification code for Mac platform, free alternatives to 2FHey (github.com)

DreamSaddle/MacCopier: MacCopier 是一个提供在 Macos 中收到短信验证码后自动复制到剪贴板功能的软件。 (github.com) LeeeSe/MessAuto: 自动提取Mac平台的短信验证码,2FHey的免费替代品;Automatic extraction o ......

How to Delete a Git Branch Both Locally and Remotely

# TL;DR version ``` https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/ // delete branch locally git branch -d loc ......
Remotely Locally Delete Branch Both

【macOS】brew update报错:fatal: unable to access xxx & LibreSSL SSL_connect 解决方案

# ✨报错提示 ![](https://img2023.cnblogs.com/blog/2124073/202305/2124073-20230523153320805-1465056507.png) ```bash fatal: unable to access 'https://mirrors ......

rails 前后端数据传递hash to json

controller.rb @data = {a: 1, b: 2}@data_new = {"a": 1, "b": 2} index.html var arr = <%= @data %> #=> {:a =>1, :b =>2} var arr = <%= raw @data %> #=> a ......
数据 rails hash json to

k8s Error: failed to prepare subPath for volumeMount "custom-logo" of container "grafana"

# 前言 使用 `k8s` 挂载卷文件时,使用了 `hostPath`,`type: File` ``` volumeMounts: - mountPath: /usr/share/grafana/public/img/grafana_icon.svg name: custom-logo subPa ......

java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/local/elasticsearch/data/]] with lock id [0]

## 原因 如果你是更改了elasticsearch的配置,有可能是新旧缓存数据冲突 ## 解决办法 删除es根路径下data文件夹 PS:经测试不影响生成的索引数据,如果数据重要,请谨慎操作,暂未知道原理。 ......

Git拉取代码报错:Can't Update No tracked branch configured for branch dev or the branch doesn't exist.To make your branch track a remote branch call

错误: 解决方法: 第一步: git pull origin(远程仓库名称) develop(远程分支名称) --allow-unrelated-histories 第二步: git branch --set-upstream-to origin(远程仓库名称)/develop(远程分支名称) de ......
branch configured tracked 代码 Update

CSCI-CSCI计算机软件配置项(Computer Software Configuration Item)

# CSCI-CSCI计算机软件配置项(Computer Software Configuration Item) CSCI计算机软件配置项 CSCI是计算机软件配置项(Computer Software Configuration Item)简称,在软件设计文档中经常用到。 ......