网站首页 站内搜索

搜索结果

查询Tags标签: found,共有 123条记录
  • 算法模板

    1.最短路int dijkstra() {// chushihuamemset(dist, 0x3f, sizeof dist);dist[1] = 0;for (int i = 1; i < n; i++){int t = -1;for (int j = 1; j < n; j++)if (!found[j] && (t == -1 || dist[j] < dist[t]))t = j;found[t] = 1;for (int j = 1; j <…

    2022/2/27 9:52:24 人评论 次浏览
  • 1151 LCA in a Binary Tree (30 分)(树的遍历,LCA算法)

    The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a binary tree, you are supposed to find their LCA. Input Specification: Each input file contains one test …

    2022/2/26 12:52:44 人评论 次浏览
  • pyspark.sql.utils.AnalysisException: u"Table or view not found:`ods_fpos`.`sales_order_item_pro

    解决 pyspark.sql.utils.AnalysisException: u"Table or view not found:`ods_fpos`.`sales_order_item_promotion` 第一步:启动 hive的metastore元数据服务hive --service metastore第二步:配置hive的元数据conf = SparkConf() # 创建spark config 对象config =…

    2022/2/22 2:26:00 人评论 次浏览
  • spring boot项目中踩到的坑

    在使用springboot的过程中,遇到过各种各样的小问题。 下面我将我所遇到过得问题做一个小的总结,算是做一个记录。 1. 导包错误导致的启动程序时报错:****Could not autowire. No beans of xxxx type found(或者required a bean of type ‘XXX’ that could not be fou…

    2022/2/19 23:17:19 人评论 次浏览
  • 一条命令解决mysql_config not found

    遇到过几次pip安装mysql-python的时候出现如题的问题,在这里记录一下解决方法。 找不到mysql_config一般是由于通过lnmp.org或者其他方式安装mysql以后mysql_config是在/usr/local/mysql/bin/里面, 这里面的文件不是在任意位置都可以访问的ln -s /usr/local/mysql/bin/m…

    2022/2/11 19:14:41 人评论 次浏览
  • 使用ntpdate更新linux时间的时候出现 no server suitable for synchronization found解决办法

    问题 在linux下执行/usr/sbin/ntpdate time.nist.gov出现错误提示no server suitable for synchronization found分析 可能是防火墙造成的 可以先关闭防火墙,然后在执行时间同步的命令,如果时间同步成功则证实是防火墙的题目,须要更改iptables的设置。 关闭防火墙,尝试…

    2022/1/29 7:06:02 人评论 次浏览
  • ubuntu安装virtualenv成功后not found 解决方法

    On Ubuntu 18.04 LTS I also faced same error. Following command worked: sudo apt-get install python-virtualenv在stackoverflow上找到了答案!!这个可以

    2022/1/28 7:05:42 人评论 次浏览
  • Linux笔记 bash解决if not found 问题

    原因是if [无空格然后在内容然后再空格] 我想应该新手小白都会犯这样问题 正确写法 if [ $# -ne 1 ] 错误写法 前面为未空格,后面空格 if [$# -ne 1 ] ​ 前面空格,后面未空格 if [ $? -eq 0] 都未空格 if [$? -eq 0] ​​

    2022/1/26 7:08:32 人评论 次浏览
  • 分析redis key大小的几种方法

    当redis被用作缓存时,有时我们希望了解key的大小分布,或者想知道哪些key占的空间比较大。本文提供了几种方法。 一. bigKeys 这是redis-cli自带的一个命令。对整个redis进行扫描,寻找较大的key。例:redis-cli -h b.redis -p 1959 --bigkeys输出:# Scanning the entir…

    2022/1/25 2:04:35 人评论 次浏览
  • mysql_secure_installation command not found

    centos7 安装 mariadb 10.6.5, 完成之后,执行 mysql_secure_installation 提示 command not found. 最后才发现,原因是现在已经没有这个了,用的是 mariadb-secure-installation 官方文档已经给了说明: https://mariadb.com/kb/en/mysql_secure_installation/

    2022/1/24 19:04:45 人评论 次浏览
  • 1143 Lowest Common Ancestor (30 分)(二叉查找树)

    The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. A binary search tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node…

    2022/1/22 23:34:44 人评论 次浏览
  • -bash: locate: command not found

    一条小命令引发的"灾难" 在学习使用locate命令时,出现了如下问题 然后开始百度,说是没有安装mlocate这个包 安装:yum -y install mlocate 出现新的问题:报错了,一推错,Loaded plugins: fastestmirror Loading mirror speeds from cached hostfileError: Canno…

    2022/1/20 23:21:42 人评论 次浏览
  • -bash: locate: command not found

    一条小命令引发的"灾难" 在学习使用locate命令时,出现了如下问题 然后开始百度,说是没有安装mlocate这个包 安装:yum -y install mlocate 出现新的问题:报错了,一推错,Loaded plugins: fastestmirror Loading mirror speeds from cached hostfileError: Canno…

    2022/1/20 23:21:42 人评论 次浏览
  • ubuntu no ssh keys found

    首先注册一个Ubuntu账号,还需要SSH密钥,打开终端输入ssh-keygen生成SSH密钥,输入你的邮箱和两次密码,会在C:\Users\xxx生成一个文件,文件名为“你的邮箱.pub”,使用记事本打开并复制其中内容,粘贴在 这里,最后点击导入SSH密钥即可。 C:\Users\xxx>ssh-keygen G…

    2022/1/13 7:08:35 人评论 次浏览
  • ubuntu no ssh keys found

    首先注册一个Ubuntu账号,还需要SSH密钥,打开终端输入ssh-keygen生成SSH密钥,输入你的邮箱和两次密码,会在C:\Users\xxx生成一个文件,文件名为“你的邮箱.pub”,使用记事本打开并复制其中内容,粘贴在 这里,最后点击导入SSH密钥即可。 C:\Users\xxx>ssh-keygen G…

    2022/1/13 7:08:35 人评论 次浏览
扫一扫关注最新编程教程