shell while for

Visual Studo for Mac 快捷键

Default Keyboard Shortcuts - Visual Studio for Mac | Microsoft Learn Code Navigation CommandsKeyboard shortcuts Find References ⇧⌘R, F12 Go to Declara ......
快捷键 Visual Studo Mac for

记录Mysql 关于 select for update 相关学习

应用场景: 高并发条件下频繁更改数据库导致数据出错 eg: A 和B 同时发起订单 总库存为1 A已经 库存-1 同时间B也进行库存-1操作导致问题发生 所以使用for update 加锁保证数据正常 原则: 一锁二判三更新 for update 仅仅用于InnoDB 引擎 且在事务块 begin/ ......
select update Mysql for

【shell】curl 命令出现000返回码

背景 业务过程中,使用put接口调用修改时,curl返回的码是000 原因 put修改的是相同的数据,业务端返回接口较长 页面调用swagger,很长时间后才返回200 通过加 --connect-timeout 100 -m 300 解决 (主要是-m参数) connect-timeout <se ......
命令 shell curl 000

初学Flink上传jar包出现报错Internal server error.---No data for required key 'port'

查看Job Manager里面的日志 发现错误,java.lang.RuntimeException: No data for required key 'port' 解决方法; 方法一:在Program Argument里添加主机名和端口号,该方法适合动态获取host和port的情况。 方法二:直 ......
Internal required server Flink error

[shell] git并发提交

for((i=1;i<5;i++)) do sed -i "s/:$app_name:.*/:$app_name:$app_tag/" $app_file git add $app_file git config user.email yourname@email.com git config us ......
shell git

shell整数运算和小数运算

整数运算 let 小数运算 bc awk python #bc #awk #python ......
小数 整数 shell

zookeeper shell

zookeeper shell zookeeper shell zookeeper 存储结构类似于Linux文件系统 使用根结构 node 不是文件也不是目录 客户端命令行 # 连接本地服务 zkCli.sh # 连接其他节点 zkCli.sh -server spark02:2181 # 这里并不 ......
zookeeper shell

OpenAI Translator Bob Plugin Bob for Mac上一款基于ChatGPT全局翻译、润色、语法修改插件

OpenAI Translator Bob Plugin 一款可以在Bob进行即时翻译的插件。它基于 OpenAI 的 GPT 系列模型,能够提供高质量、准确的翻译服务。该插件支持多种语言的翻译,包括中文、英文、法语、德语、日语等。用户只需在页面中选中需要翻译的文本,然后点击插件图标即可进行翻译。此 ......
全局 语法 Translator Bob 插件

【论文阅读笔记】Learning to Prompt for Continual Learning

Create_time: April 27, 2022 5:21 PM Edited_by: Huang Yujun Org: Google Research, Northeastern University Learning to Prompt for Continual Learning [38 ......
Learning Continual 笔记 Prompt 论文

php的TP框架保存数据报错: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xF0\x9F\x90\xA3\xF0\x9F...' for column

这一般情况就是保存表情字符导致的字符长度问题 原因可能: (需要改字符集为 utf8mb4 排序规则为 utf8mb4_general_ci) 1. 数据表字段不是utf8mb4 2.项目目录下文件 .env 里配置 mysql CHARSET = utf8 需要该为 CHARSET = utf8m ......
Incorrect xF0 x9F 框架 SQLSTATE

dowhile,while,for语句

循环语句 //使用三种语句求0~10的总和 for循环语句 var sum =0; for(var i = 0;i<10;i++){ sum += i; } console.log(sum); while语句 var i = 0; var sum=0; while(i<10){ sum+=i; i+ ......
语句 dowhile while for

【linux error】Waiting for cache lock

#error Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 67257 (aptd) 是由于另一个进程正在使用apt命令,导致无法获取锁。您可以尝试等待一段时 ......
Waiting linux error cache lock

迁移学习()《Attract, Perturb, and Explore: Learning a Feature Alignment Network for Semi-supervised Domain Adaptation》

论文信息 论文标题:Attract, Perturb, and Explore: Learning a Feature Alignment Network for Semi-supervised Domain Adaptation论文作者:Taekyung Kim论文来源:2020 ECCV论文地址 ......

shell脚本实用命令

获取shell文件所在目录 PROJECT_PATH=$(cd "$( dirname ${BASH_SOURCE[0]})"; pwd) 获取shell文件所在目录的上级目录 PROJECT_PATH=$(cd "$( dirname ${BASH_SOURCE[0]})"; cd ..; pwd ......
脚本 命令 shell

Shell基础了解

一.Shell简介 Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言。 Shell 是指一种应用程序,这个应用程序提供了一个界面,用户通过这个界面访问操作系统内核的服务。 Ken Thompson 的 sh 是第一种 Un ......
基础 Shell

Shell脚本自动备份MySQL数据库

实验目的: 192.168.1.2服务器对192.168.1.1服务器上的MySQL数据库进行备份。 必须满足的条件: 1、在192.168.1.1服务器上创建专门用来备份的数据库账号,并赋予相应的权限: mysql> grant select,lock tables on *.* to 'oper ......
脚本 备份 数据库 数据 Shell

shell脚本书写规范规则总结!!

七年老运维实战中的 Shell 开发经验总结 名名名名名名名名 运维网工 2023-04-10 11:50 发表于香港 收录于合集 #网络运维71个 #运维管理58个 #运维工程师109个 转载:https://blog.csdn.net/cpongo2ppp1/article/details/90 ......
脚本 规则 shell

使用Shell脚本备份网站目录

目的:通过Shell脚本运行一键备份压缩到指定文件夹 cd /tmp/backup/ touch test0622.sh 如下: #!/bin/bash dir="/www/wwwroot/mefj.com.cn" backup="/tmp/backup" filename="wordpress.t ......
脚本 备份 目录 Shell 网站

shell读取配置文件-sed命令

在编写启动脚本时,涉及到读取配置文件,特地记录下shell脚本读取启动文件的方式。主要提供两种格式的读取方式,方式一配置文件采用“[]”进行分区,方式二配置文件中需要有唯一的配置项名称。 配置文件格式如下: # cat -n config.ini 1 #MYSQL配置项 2 [MYSQL] 3 DB ......
命令 文件 shell sed

The Cross-Entropy Loss Function for the Softmax Function

The Cross-Entropy Loss Function for the Softmax Function 作者:凯鲁嘎吉 - 博客园 http://www.cnblogs.com/kailugaji/ 本文介绍含有softmax函数的交叉熵损失函数的求导过程,并介绍一种交叉熵损失的等价形式, ......
Function Cross-Entropy Entropy Softmax Cross

RUST——控制流(if/loop/while)

1. if语句 下面看一个示例: fn main() { let number = 6; if number % 4 == 0 { println!("number is divisible by 4"); } else if number % 3 == 0 { println!("number i ......
while RUST loop if

迁移学习《Cluster-Guided Semi-Supervised Domain Adaptation for Imbalanced Medical Image Classification》

论文信息 论文标题:Cluster-Guided Semi-Supervised Domain Adaptation for Imbalanced Medical Image Classification论文作者:S. Harada, Ryoma Bise, Kengo Araki论文来源:ArXi ......

Qt for Android QtQuick应用程序 USB连接手机调试运行错误:adb: failed to *.apk: No such file or directory

1.场景 Windows11、Qt6.5.0QtQuick应用程序USB连接手机调试运行。 2.错误信息 adb: failed to *.apk: No such file or directoryInstalling to device failed!进程"C:\Users\Administra ......

shell 变量赋值

shell 变量赋值 1.read 进行赋值 read的脚本中示例语法 [root@localhost ~]# vim read-1.sh[root@localhost ~]# cat read-1.sh#! /bin/bashread -p "请输入一个值" Varecho "您输入的变量值为 $ ......
变量 shell

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: ......

Blender导出插件:Blender for Unreal

推荐:将 NSDT场景编辑器 加入你的3D开发工具链 Hello . 大家好!今天给大家安利一款从blender到unreal的插件。随着blender的大红大紫,各种插件也被陆续开发,这里分享的就是一款github上面免费的插件blender for unreal。 首先该插件可以将你blende ......
Blender 插件 Unreal for

shell简介

1. 什么是Shell shell就是一个命令解释器。 shell分为交互式shell和非交互式shell. 交互式shell就是命令行上一条一条命令的执行。 非交互式shell就是以脚本的方式运行。 通过变量$-来查看是否是交互式或非交互式shell [root@localhost ~]# ech ......
简介 shell

C++ 性能优化 - for循环条件中不要调用函数

for循环条件中调用普通函数 #include <iostream> #include <chrono> using namespace std; long long count = 0; const int N = 10; int getSize(){ cout<<"get size"<<endl ......
函数 性能 条件 for

MySQL密码正确却无法本地登录,ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

报错如下: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方法: 1,vim /etc/my.cnf,在[mysql]下面加上skip-grant-tables,重启mysq ......
39 localhost password 密码 Access

Linux学习——shell

Linux shell 语法 转义字符 \ :\后面的一个字符按照其字面意思解释 “ ”:双引号中的内容除$、`、“之外的任何字符的字面解释 ‘ ’ :单引号中除 ' 以外的任何字符按其字面解释 shell变量 环境变量:标准变量,通常由管理员定义,用来保存系统必需内容 局部变量:由用户定义和控制 ......
Linux shell