ICode9

精准搜索请尝试: 精确搜索
  • APISIX Dashboard中文文档(一)2022-07-06 14:33:21

    2022年7月6日13:24:56 官方文档:https://apisix.apache.org/zh/docs/dashboard/USER_GUIDE/ 用户指南 以下是模块快照的一部分。 仪表板# 我们通过在 iframe 中引用来支持监控页面。 在访问 Grafana 之前,请启用 allow_embedding=true,默认为 false。 由于安全策略,这会导致浏览器无法

  • 单向环形链表2022-07-05 21:05:18

    单向环形链表应用场景 Josephu(约瑟夫.约瑟夫环)问题 Josephu问题:设编号为 1,2,...的 n个人围坐一圈,约定编号为 k(1<=k<=n)的人从1开始报数,数到m的那个人出列,它的下一位从1开始报数,数到 m的那个人又出列,以此类推,直到所有人出列位置,由此产生一个出列编号的序列。 提示:用一个不带头节

  • recognizer = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has2022-07-05 19:01:45

    https://www.ngui.cc/article/show-399324.html   1 问题的主要原因应该是只能使用优先下载的 OpenCV 库,当第一个下载好时会自动与其绑定。2 其实并不是什么大问题,但它还是困扰了我好几个小时,在网上搜索的回答也绝大多数都只说了需要下载 opencv-contrib-python 的包,但并没有说需

  • mysql从binlog中恢复数据2022-07-05 12:02:18

    查看mysql是否开启binlog show variables like '%log_bin%'; 查询文件目录 show variables like '%datadir%'; 查看所有binlog日志文件列表 show master logs; 刷新日志,开启一个新的编号 flush logs 清空所有binlog日志命令 reset master 查看binlog文件内容,使用查看工具 方

  • 199/200final关键字用于修饰成员变量和四种权限修饰符2022-07-05 11:36:08

    final关键字用于修饰成员变量 对于成员变量来说,如果使用final关键字修饰,那么这个变量也照样是不可变。 1.由于成员变量具有默认值,所以用了于inal之后必须手动赋值,不会再给默认值了。 2.对于final的成员变量,要么使用直接赋值,要么通过构造方法赋值。二者选其一。 3.必须保证类当中所

  • jedis连接不上本地的问题2022-07-03 22:32:11

    首先要注意redis.conf中的 这里一定要注释 要把保护模式给关了 protected 后面改为no 如果配置的宝塔,一定要在宝塔里面也放行

  • eslint报错:Parsing error: No Babel config file detected?2022-07-03 22:02:01

    一、起因 今天下载了一个开源项目,vue2写的,打开之后,发现eslint报了一个错: No Babel config file detected,也就是说没有找到babel配置文件。        二、探索与解决 很奇怪,明明项目结构里面有这个babel配置文件,但是eslint仍然找不到他,所以我在网上开始了疯狂找答案,很多博客都

  • python: can't open file 'upload.py': [Errno 2] No such file or directory2022-07-03 11:35:28

    为了发博客方便,参考别人的文章(见参考文章:[1][2]),使用 Metaweblog 和 pycnblog([3])插件实现相关功能,将本地markdown文件同步至博客园。 使用过程中,出现如下错误信息: python: can't open file 'upload.py': [Errno 2] No such file or directory 图1. can't open file 'upload

  • 不定代词2022-07-03 11:01:05

    第一组 第二组 some both any either every neither each all no none   第二组 第三组 many llittle much  a little   more few most a few     第四组 other others another the other the others   第五组 half

  • 解决配置文件遗留问题:configparser.NoSectionError: No section: '****'2022-07-03 01:32:25

    遗留问题 其他.py层级调用readcofig,无法读取到section   临时解决方法 保证配置文件及读取配置文件相对路径一致   问题原因 Path.cwd() 获取当前文件所在目录,实际上是获取的执行脚本的所在目录,非当前脚本的所在目录。   解决方案 configDir = os.path.join(os.path.dirn

  • 解决:django.db.utils.OperationalError: no such table: auth_user2022-07-02 22:04:14

    解决:django.db.utils.OperationalError: no such table: auth_user 我们在创建Django项目的时候已经创建这个表了,表一般都保存在轻量级数据库中 只需要同步一下再执行即可 python manage.py migrate python manage.py createsuperuser 在setting.py下的ALLOWED_HOSTS=['*']添加‘*

  • Python | 浅学 | 7 NameError: name 'cmp' is not defined | AttributeError: module 'oper2022-07-02 17:02:53

      NameError: name 'cmp' is not defined **报错原因:**因为python3.x中cmp函数去掉了,如果需要实现比较功能,那么可引入operator 模块,提供了6个比较运算符。gt lt ge eq le  import operator #首先要导入运算符模块operator # integers x,y = 100,200 print("x:",x,

  • 引入Druid数据源时,log4j:WARN No appenders could be found for logger,问题解决2022-07-02 07:31:18

    最近创建引入Druid数据源时,log4j报错,总结为log4j与druid存在版本不兼容和未配置log4j问题 解决办法: 1、先将druid版本降低一个版本1.2.11改为1.2.10 2、将log4j.properties文件配置在res的根目录下    粘贴如下代码到配置文件中: log4j.rootLogger=DEBUG, stdout log4j.append

  • Mysql 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate 报错解决方案2022-07-01 14:06:14

    报错信息:1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘xxxx.xxxx.xxx’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by, Time: 0.000000s

  • malformed PEM data: no header found2022-06-30 19:05:24

    问题 SM2自签自验的时候提取公钥信息的时候报错 malformed PEM data: no header found 描述 记事本打开公钥文件发现, 没有开始和结束标识, 并且内容是一整行并没有换行 解决 修改公钥文件内容格式, 添加开始和结束标识, 修改正文内容每64位换行, 验证通过   参考 PEM证书内容格

  • 解决树莓派adb设备no permissions问题2022-06-30 15:35:04

    问题 在树莓派环境中,执行adb devices,返回的设备列表报no permissions (user in plugdev group; are your udev rules wrong?);错误,如下 pi@raspberrypi:~ $ adb devices List of devices attached 8bb7708d no permissions (user in plugdev group; are your udev rules wr

  • Redis Issues2022-06-30 00:00:33

    主从不同步 Error condition on socket for SYNC: No route to host 可能的原因: 网络不通; 防火墙拦截 NOAUTH Authentication required 从库未配置参数masterauth,值为主库的requirepass Partial resynchronization not possible (no cached master) 从库出现 Partial resynchron

  • No statements may be issued when any streaming result sets are open and in use on a given connection2022-06-29 20:04:52

    引言 本文整理了 MySQL 流式查询一些原理和用法, 包括 MySQL 官方文档对于 ResultSet 流式查询的说明以及很多网友关于 MySQL 流失查询踩坑的说明. 最后给出了解决流式查询的 connection 在未查询完结果集的数据之前又被其他地方使用导致报错的解决方法, 希望能对读者有所帮助. 原

  • 09.背景2022-06-29 13:00:26

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=d

  • No supported authentication methods available (server sent: publickey)错误解决2022-06-29 12:36:05

    No supported authentication methods available (server sent: publickey)错误解决Putty, WinScp或者Filezilla在远程登录的时候出现No supported authentication methods available (server sent: publickey)的错误的解决方法。 centos 7和Ubuntu系统来说解决方式应该大同小异。

  • putty远程登录,no supported authentication methods available解决方法(腾讯云)2022-06-29 12:35:04

    在腾讯云的linux服务器创建了一个密钥,然后Putty无法使用远程登录了,于是在服务器上对密钥进行了解绑,但是登录时输入用户名(默认root)之后还是提示no supported authentication methods available。以下是解决方法:1.在腾讯云中一键登录Linux,进入后先获取root权限 sudo -i2.进入文件夹/

  • goahead websWrite2022-06-28 18:32:41

    websWrite(wp, "HTTP/1.0 200 OK\n"); websWrite(wp, "Server: %s/%s\r\n", WEBS_NAME, WEBS_VERSION); websWrite(wp, "Pragma: no-cache\n"); websWrite(wp, "Cache-control: no-cache\n"); websWrite(wp, "Content-Ty

  • Cisco MDS 9148S FC交换机基本配置2022-06-28 14:32:39

    将交换机恢复默认设置:write erase这将擦除交换机上的startup-configuration,恢复到出厂设置,密码和管理口IP地址配置也会丢失 重新启动交换机:reload 初始化交换机 Cisco9148 SAN交换机首次配置时,需要先做初始化设置,设置完成后才可以登录图形化界面。 用串口调试线缆连接,如果交换机

  • 讲讲Background属性2022-06-27 23:35:22

    讲讲Background属性 background-img: url(...) background-repeat: no-repeat background-position 背景定位,你可以给它一些值,让它左右上下移动。 这里面不仅可以写像素,还可以这样写:background-position: right bottom相当于background-position: 100% 100%。但是这样呢,也会

  • dfs2022-06-27 07:00:55

    785. Is Graph Bipartite? Medium 4979279Add to ListShare There is an undirected graph with n nodes, where each node is numbered between 0 and n - 1. You are given a 2D array graph, where graph[u] is an array of nodes that node u is adjacent t

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有