shell while for

while(~scanf(“%d“, &n))的含义

canf("%d%d", &a, &b);如果a和b都被成功读入,那么scanf的返回值就是2;如果只有a被成功读入,返回值为1;如果a和b都未被成功读入,返回值为0;如果遇到错误或遇到end of file,返回值为EOF,且返回值为int型。 注:这里返回值为2,就是输入的a,b都匹配,返回值为 ......
含义 while scanf amp

Writing for Engineers(作为工程师应该如何写作) —— Stemwede

本文对一篇外文的工程师写作指导进行提炼总结,介绍了工程师写作中需要注意的一些技巧,值得立志成为工程师的小伙伴阅读 ......
Engineers Stemwede 工程师 Writing 工程

shell pattern(参数展开)

shell pattern(参数展开) ${parameter:-word} 若 parameter 没有设置或为空,展开结果是 word 的值。若 parameter不为空,则展开结果是 parameter 的值 ${parameter:=word} 若 parameter 没有设置或为空,展开结 ......
参数 pattern shell

shell判断和流程控制

# 1. 条件判断 ## 1.文件判断 作用: 判断文件的各种属性及状态,比如文件是否存在,是否有可读可写可执行权限 语法: | 参数 | 说明 | 举例 | | | | | | -e | 如果文件或目录存在则为真-常用 | [ -e file ] | | -s | 如果文件存在且至少有一个字符则为 ......
流程 shell

20230406 9.2. 希尔排序( by Donald Shell )

## 希尔排序( by Donald Shell ) ![希尔排序](https://images.cnblogs.com/cnblogs_com/huangwenjie/2284066/o_230407014056_image.png) - 定义增量序列 $D_M > D_{M-1} > … > ......
20230406 Donald Shell by

windows php 安装sqlsrv drive for php

之前用wmapserver都会安装vc的,后来用php_study会自带安装vc,但是呢用sqlsrv扩展还是要用vc,不然会报错,不是php打不开了,而是含有sqlsrv扩展的函数给出一个错误的页面。 这个错误的页面只说出错了,却没提示哪里出错了,哎,不知道该说什么,好多大公司在错误的道路上无所不 ......
php windows sqlsrv drive for

samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory

001、问题 002、解决方法 [root@PC1 test4]# which samtools /root/anaconda3/bin/samtools [root@PC1 test4]# cd /root/anaconda3/lib [root@PC1 lib]# [root@PC1 lib]# ......
shared file directory libraries libcrypto

论文笔记:Orca A Modular Query Optimizer Architecture for Big Data

# 论文笔记:Orca: A Modular Query Optimizer Architecture for Big Data 这篇文章介绍了 Pivotal 公司设计的查询优化器 Orca,这个优化器被应用于 GreenPlum Database,HAWQ 等产品中。 ## INTRODUCTI ......
Architecture Optimizer Modular 笔记 论文

shell启停脚本

#!/usr/bin/env bash # 获取服务目录 xxx_dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) # 端口检测间隔 w_interval=3 # 启动后端口检测次数 max_retried_times=50 REDIS_INSTALL_ ......
脚本 shell

解决 `remote: You must use a personal access token with 'api' scope for Git over HTTP.`

## 背景 在家远程办公的时候 `git clone` 报错: ``` remote: HTTP Basic: Access denied remote: You must use a personal access token with 'api' scope for Git over HTTP. ......
personal remote access token scope

Set up Your Diagnostic Interface for JPRO Commercial Diagnostics

There are several diagnostic interfaces are compatible with JPRO Commercial Vehicle Diagnostics software.You need setup your diagnostics interface in ......

[ Shell ] 在 Bash 中如何使用“字典”

[https://www.cnblogs.com/yeungchie/](https://www.cnblogs.com/yeungchie/ "https://www.cnblogs.com/yeungchie/") ## 定义 ```bash declare -A dict ``` ## 赋值 ......
字典 Shell Bash

PySide6(Qt for Python) QTableWidget表头边框线问题

### 这个问题是在Windows10平台下特有问题。 > 网络上有很多Qt C++的解决方案。但是没有特定的PySide6的解决方案(以下是参考的Qt C++的解决方案)。 > 链接:https://blog.csdn.net/qq_22642239/article/details/1228633 ......
表头 边框 QTableWidget PySide6 PySide

Educational Codeforces Round 150 (Rated for Div. 2) C. Ranom Numbers

#include <iostream> #include <string> #include <cstring> #include <algorithm> #include <cmath> using namespace std; const int N=2e5+10; typedef long l ......
Educational Codeforces Numbers Round Rated

选修-4-Optimization for Deep Learning

# 1. Some Nitations 在本小节开始之前,需要知道的符号含义. ![image](https://img2023.cnblogs.com/blog/2264614/202306/2264614-20230604200321926-907208090.png) # 2. What is ......
Optimization Learning Deep for

selenium headless报错Message: unknown error: failed to wait for extension background page to load

selenium进行打开chrome浏览器操作时报错。 完整报错: selenium.common.exceptions.WebDriverException: Message: unknown error: failed to wait for extension background page ......

linux shell根据关键字用sed注释掉整行

一、将带有ab的行注释掉 # cat test # sed -i '/ab/s/^\(.*\)$/#\1/g' test ab是关键字 s是语法替换 ^是行首 $是行尾 \是转义符 数字1带表前述匹配内容 # cat test 二、将带有ab的行取消注释 # cat test # sed -i '/ ......
注释 关键字 关键 linux shell

SystemVerilog for Design Edition 2 Chapter 8

## SystemVerilog for Design Edition 2 Chapter 8 SystemVerilog enables modeling at a higher level of abstraction through the use of 2-state types, enum ......
SystemVerilog Chapter Edition Design for

Educational Codeforces Round 150 (Rated for Div. 2) B. Keep it Beautiful

#include <iostream> #include <cstring> using namespace std; const int N=2e5+10; int a[N],res[N]; int t; int main(){ cin>>t; while(t--){ int n; cin>>n; ......
Educational Codeforces Beautiful Round Rated

STUFF和FOR XML PATH('')

初始状态: 执行代码: SELECT STUFF((SELECT ','+Test_Table FROM dbo.Test_Table_Mapping WHERE ID=1570 FOR XML PATH('')),1,1,'') text 显示结果 在 SQL Server 中,stuff() 函 ......
STUFF 39 PATH FOR XML

shell 脚本学习

shell 通配符 3、通配符和正则表达式比较 (1)通配符和正则表达式看起来有点像,不能混淆。可以简单的理解为通配符只有*,?,[],{}这4种,而正则表达式复杂多了。 (2)*在通配符和正则表达式中有其不一样的地方,在通配符中*可以匹配任意的0个或多个字符,而在正则表达式中他是重复之前的一个或者 ......
脚本 shell

Wordpress:Briefly unavailable for scheduled maintenance. Check back in a minute.怎么解决?

场景描述:在更新Wordpress版本从Version 6.2.1升级到Version 6.2.2时候,顺带点升级的插件太多了,突然就崩溃报错:Briefly unavailable for scheduled maintenance. Check back in a minute。 因为用的是Si ......

Shell脚本实战(二)

1、前言 此处旨在记录在实际工作中用到shell脚本,积累一些常用的用法,后续也可以参考。 2、功能点 因为项目原因,对外的sdk部署比较麻烦,一套操作下来,可能得一两个小时,为了提升效率和操作正确性,所以将操作整合成一个shell脚本,当前shell脚本主要涉及到的操作如下(只记录新增的功能): ......
脚本 实战 Shell

使用Postman的Get请求遇到:"type": "parsing_exception","reason": "Unknown key for a START_OBJECT in [mappings].",的问题

**错误如图** ![](https://img2023.cnblogs.com/blog/3161806/202306/3161806-20230616140011892-1209344862.png) **原因** postman自身的的bug问题。body里面写了json参数,结果postma ......

Ubuntu - Add a Flameshot Icon for taking screenshot directly to Applications menu

All applications' desktop entries can be found in /usr/share/applications. You can create a desktop entry under ~/.local/share/applications to make yo ......

suse12报错logger: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file

1、故障描述 登录主机后报错如下,ls等基础命令均不能操作 2、解决思路与方法 1、挂载镜像进救援模式,查看日志 将 / /home /dev /sys 目录挂载到/mnt/下对应主机 报错如上图所示 将把usr 目录挂载上,刷新lib库 /sbin/ldconfig -v,重启,根目录恢复正常 2 ......
shared file libraries loading logger

aapium报错 An unknown server-side error occurred while processing the command. Original error: Could not find a connected Android device in 21723ms.问题,已解决

现象: 1、appium日志存在报错信息: (1)中间:adb failed to start daemon * (2)结尾:POST /wd/hub/session 500 287ms 2、appium图形界面设置参数后,点击start session报错提示 An unknown server- ......

suse12操作系统普通用户报错error while loading shared libraries: libcap.so.2: cannot open shared object file: permission denied

1、故障描述 linux主机普通用户执行ping命令报错 ping:error while loading shared libraries: libcap.so.2: cannot open shared object file: permission denied 2、故障原因 超级用户修改了根 ......
shared permission libraries loading 用户

执行shell脚本获取返回值字符串

```C++ std::string executeShellCommand(const std::string &command) { FILE* pipe = popen(command.c_str(), "r"); if (!pipe) return "ERROR"; char buffer[ ......
字符串 脚本 字符 shell

解决宝塔面板SSL证书安装失败: Invalid version. The only valid version for X509Req is 0.

文章目录 No headings were found on this page. 本文介绍宝塔面板SSL证书安装失败,报错: Invalid version. The only valid version for X509Req is 0.的解决方法。 安装证书报错信息如下图: 如何解决宝塔面板S ......
version 宝塔 面板 证书 Invalid