ICode9

精准搜索请尝试: 精确搜索
  • LeetCode 2007. Find Original Array From Doubled Array2022-09-17 07:00:35

    原题链接在这里:https://leetcode.com/problems/find-original-array-from-doubled-array/ 题目: An integer array original is transformed into a doubled array changed by appending twice the value of every element in original, and then randomly shuffling th

  • pycharm拉取git报错“WARNING: POSSIBLE DNS SPOOFING DETECTED!”2022-08-31 17:31:15

    【现象】 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for gitlab.xxx.com has changed, and the key for the corresponding

  • 实现自定义react hooks2022-07-26 10:03:00

    1:实现简版的 useState每次调用顺序索引必须一样返回初始状态变量,和更改状态方法调用更改状态方法,更新状态并重新渲染let lastStates = []let index;function useState(initValue) {  let state = lastStates[index] || initValue;  let currIndex = index;  let setState = (n

  • windows terminal用ssh连接已重装的服务器提示REMOTE HOST IDENTIFICATION HAS CHANGED!2022-06-18 20:31:59

    连接过程提示: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone cou

  • shell handle2022-06-16 20:02:13

    #!/bin/bash #qinrui   set -e commitId='' repoPath='' x1=''   if [ -f changes15.txt ];then         #git log |grep -A 2 9acd7d8537191caaf801a59428be5fbf0e110659| grep "Author"           #for i in `cat changes15.txt|gr

  • 06 实施任务控制2022-06-12 15:00:38

    1. 编写循环和条件任务 1.1 利用循环迭代任务 通过利用循环,我们无需编写多个使用同一模块的任务。例如,他们不必编写五个任务来确保存在五个用户,而是只需编写一个任务来对含有五个用户的列表迭代,从而确保它们都存在。 Ansible支持使用loop关键字对一组项目迭代任务。可以配置循环以

  • ansible2022-05-29 23:00:26

    概述 Ansible是一个开源配置管理工具,可以使用它来自动化任务,部署应用程序实现IT基础架构。Ansible可以用来自动化日常任务,比如,服务器的初始化配置、安全基线配置、更新和打补丁系统,安装软件包等。Ansible架构相对比较简单,仅需通过SSH连接客户机执行任务即可: 概念术语介绍 Ansible

  • mac m1上使用rust编译openssl-sys失败的一次记录2022-04-25 21:03:19

    mac m1 编译openssl-sys的时候报错: 遇到错误,报错信息如下 admin@admindeMacBook-Air b3 % cargo run Compiling openssl-sys v0.9.72 error: failed to run custom build command for `openssl-sys v0.9.72` Caused by: process didn't exit successfully: `/Users/admin/pr

  • 问题解决 - The RSA host key for gitlab has changed2022-04-04 11:31:14

    问题 git pull 遇到如下问题 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for gitlab.xxx.com has changed, and

  • 每日一句2022-04-02 13:03:10

    2022.3.15 Tue Tomorrow comes never. 切莫依赖明天。 2022.3.16 Wed All things come to those who wait. 苍天不负有心人。 2022.3.17 Thur Forever friend gets your through the hard times, the sad times, and the confused times. 真正的朋友会与你一起度过困难、伤心和烦

  • 关于fiddler报The system proxy was changed. click to reenable capturing的解决方案2022-03-03 19:33:16

    The system proxy was changed. click to reenable capturing    1.问题解决路径          2.以上操作完成之后。重启fiddler.再次打开浏览器,如果还不能抓包,还是提示上图修改代理的提示,就要检查该电脑是否安装了篡改代理的程序。      3.下载:MicrosoftProgram_Instal

  • a16.ansible 生产实战案例 --docker基于镜像仓库安装harbor-https方式 playbook2022-03-03 09:02:51

    1.docker基于镜像仓库 playbook [root@ansible-server ansible]# mkdir playbook/docker [root@ansible-server ansible]# cd playbook/docker/ [root@ansible-server docker]# vim files/daemon.json { "registry-mirrors": [ "https://hzw5xiv7.mirro

  • Ansible部署K8s集群2022-02-28 01:04:23

    目录检查网络:k8s-check.yaml连接配置:k8s-conn-cfg.yaml配置k8s集群dns解析: k8s-hosts-cfg.yaml配置yum源:k8s-yum-cfg.yaml时钟同步:k8s-time-sync.yaml禁用iptable、firewalld、NetworkManager服务禁用SElinux、swap:k8s-SE-swap-disable.yaml修改内核:k8s-kernel-cfg.yaml配置ipvs:k8

  • a11.ansible 生产实战案例 --docker基于二进制 roles2022-02-26 09:02:18

    docker基于二进制 roles [root@ansible-server ansible]# mkdir -p roles/docker-binary/{tasks,files,vars} [root@ansible-server ansible]# cd roles/docker-binary/ [root@ansible-server docker-binary]# ls files tasks vars [root@ansible-server docker-binary]#

  • a10.ansible 生产实战案例 --docker基于二进制 playbook2022-02-25 09:03:22

    docker基于二进制 playbook [root@ansible-server ansible]# mkdir -p playbook/docker-binary [root@ansible-server ansible]# cd playbook/docker-binary/ [root@ansible-server docker-binary]# wget https://mirrors.cloud.tencent.com/docker-ce/linux/static/stable/

  • a9.ansible 生产实战案例 --docker基于镜像仓库 roles2022-02-24 09:03:36

    docker基于镜像仓库 roles [root@ansible-server ansible]# mkdir -p roles/docker/{tasks,files,vars} [root@ansible-server ansible]# cd roles/docker/ [root@ansible-server docker]# vim files/daemon.json { "registry-mirrors": [ "https://hzw

  • a5.ansible 生产实战案例 --chrony客户端playbook2022-02-20 09:02:00

    chrony客户端playbook [root@ansible-server ansible]# cd playbook/chrony [root@ansible-server chrony]# vars.yml SERVER1: 172.31.0.101 SERVER2: 172.31.0.104 [root@ansible-server chrony]# vim install_chrony_client.yml --- -

  • PowerManagerService.java2022-01-10 13:58:02

    判断显示屏保还是息屏 2112 /** 2113 * Updates the wakefulness of the device. 2114 * 2115 * This is the function that decides whether the device should start dreaming 2116 * based on the current wake locks and user activity sta

  • python 的pandas库 .loc用法的一个很细节问题2021-12-31 10:01:38

    python 的pandas库 .loc用法的一个很细节问题。索引和值被一起赋值过去了!!

  • Oracle工具之DBNEWID2021-12-27 15:03:48

    概述 DBNEWID是Oracle提供的一个用于修改数据库DBID和DBNAME的工具。 在引进该工具之前,如果我们想修改数据库的数据库名,必须重建控制文件。但即便如此,也无法修改该数据库的DBID。众所周知,DBID是一个数据库的唯一标识符。RMAN就是根据数据库的DBID来区分不同数据库的。 DBNEWID可解

  • The application‘s PagerAdapter changed the adapter‘s contents without calling PagerAdapter2021-12-17 13:32:12

    The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 6, found: 0   最近程序碰到这个报错,记录一下 问题在adapter 中, override fun destroyItem(container: ViewGroup, positi

  • 闭关修炼:Ansible-二进制-K8S:第二篇2021-12-09 16:32:39

    简要概述:使用 kubeasz 快速部署 kubernetes 集群(使用Ansible脚本安装K8S集群) 一、kubeasz 项目地址:https://github.com/easzlab/kubeasz 我选用的3.0.1 二、kubernetes 集群快速部署过程 1、OS 版本 2、使用 pip 来安装 ansible -# curl -O https://bootstrap.pypa.io/p

  • 编程中的观察者模式和发布订阅模式2021-12-09 16:02:29

    一.观察者模式 所谓观察者模式,其实就是为了实现松耦合(loosely coupled)。 用《Head First 设计模式》里的气象站为例子,每当气象测量数据有更新,changed() 方法就会被调用,于是我们可以在 changed() 方法里面,更新气象仪器上的数据,比如温度、气压等等。 但是这样写有个问题,就是如果以

  • 安卓源码避坑指南10—蓝牙音乐播放状态和歌曲信息不更新2021-12-07 12:02:45

    蓝牙音乐播放状态和歌曲信息不更新 安卓版本:android-9 (P版本) 问题现象:歌曲信息和蓝牙音乐的播放状态不更新,蓝牙音乐界面感觉卡死(其实是界面信息不更新,音频数据正常) 歌曲信息和播放状态的更新都是通过avrcp协议的通知事件进行更新的,一般而言avrcp的通知事件只要TG端有变化

  • fiddler提示"The system proxy was changed,click to reenable fiddler capture"的解决方法2021-11-27 12:04:32

    之前用fiddler 一直都是正常的,但是过了几个月再次使用的时候没几秒钟就提示:The system proxy was changed,click to reenable fiddler capture 手动点一两次还可以,一直提示这个怎么能忍。 根据提示知道出现这个问题肯定就是电脑里面有其他的软件也用了代理,所以目标就是卸载掉其他使

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

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

ICode9版权所有