to do

From Java To Kotlin:空安全、扩展、函数、Lambda很详细,这次终于懂了

Kotlin 是一种静态类型的编程语言,由 JetBrains 开发。它可以编译成 Java 字节码,也可以编译成 JavaScript 代码。Kotlin 具有现代化的语法和功能,可以与 Java 互操作,并且可以在 Android 开发中使用。 Kotlin 的语法简洁、易读、易写,具有许多现代... ......
函数 Kotlin Lambda From Java

End-to-End Object Detection with Transformers论文阅读笔记

## 摘要 作者提出了一种新的基于Transformer的目标检测模型DETR,将检测视为集合预测问题,无需进行nms以及anchor generation等操作。同时,对模型进行简单的修改就可以应用到全景分割任务中。 ## 方法 ### Object detection set predictio ......
Transformers End-to-End End Detection 笔记

webpack报错处理:The extension in the request is mandatory for it to be fully specified.

完整的报错提示如下: BREAKING CHANGE: The request './module2' failed to resolve only because it was resolved as fully specified(probably because the origin is s ......

MySQL OEM报警Increase the binlog_cache_size variable dynamically and monitor the ratio of Binlog_cache_disk_use to Binlog_cache_use .

Increase the binlog_cache_size variable dynamically and monitor the ratio of Binlog_cache_disk_use to Binlog_cache_use . When it reaches an acceptable ......

how to strip debug info

compile: ``` c++ -g tmp.cc -o starrocks_be ``` split debug info ``` objcopy --only-keep-debug starrocks_be starrocks_be.debug strip --strip-debug star ......
debug strip info how to

[论文速览] RectifiedFlow@Flow Straight and Fast{colon}Learning to Generate and Transfer Data with Rectified Flow

## Pre title: Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow accepted: ICLR 2023 paper: https://arxiv.org/abs/2209 ......
Flow RectifiedFlow Rectified and Learning

How to fix CMake error Could not find a package configuration file provided by “boost_filesystem”

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package): Could not find a package configuration file provided ......

DO循环中处理

DATA:LV_INDEX TYPE SY-INDEX, LV_STR TYPE TEXT10. "遍历3组数据 DO 3 TIMES. LV_INDEX = LV_INDEX + 1. CASE LV_INDEX. WHEN 1. LV_STR = '01'. WHEN 2. LV_STR = ' ......

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 ......

What is doing __str__ function in Django?

def str(self): is a python method which is called when we use print/str to convert object into a string. It is predefined , however can be customised. ......
function Django doing What str

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 常见问题 常见

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

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

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 ......