1. 现象 2. 解决方案 2.1 机制 1. PEERDNS=yes|no 允许|禁止/etc/resolv.conf 重启/更新网络 被覆盖 2. 当开启NetworkManager.service 时, PEERDNS是不生效的,通过设置dns=none解决 3. 阿里云ECS内部服务不要开启 ...
分类:
其他好文 时间:
2019-09-24 13:50:12
阅读次数:
143
tensorflow里面有太多的函数功能,完全像是新学一门语言,所以打算采用,遇到不会的函数就记录下来,作为自己的函数手册。这篇要讲的就是tf,cond()。 tf,cond(A,B,C) 就像是条件语句:if A: B else:C,举个例子: 解读一下这个官方的例子,首先是给z赋值了一个简单的乘 ...
分类:
其他好文 时间:
2019-09-16 23:59:54
阅读次数:
239
报错为Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization 错误原因,是因为linux网卡绑定了原mac地址导致 解决方法为 1.使用ifconfig -a 查看当前主机 ...
分类:
系统相关 时间:
2019-09-14 16:20:41
阅读次数:
124
参考:https://docs.gradle.org/current/dsl/org.gradle.testing.jacoco.tasks.JacocoCoverageVerification.html gradle库下载:https://maven.aliyun.com/mvn/view 案例参 ...
分类:
移动开发 时间:
2019-09-09 19:23:19
阅读次数:
217
In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of any n ...
分类:
其他好文 时间:
2019-09-07 22:16:39
阅读次数:
103
无论是network embedding 还是graph embedding都是通过节点(node)和边的图,学出每个节点的embedding向量。 比较流行的算法有: 一般的应用框架如下: 1、构建图: Item和item的共现相似矩阵可以构成一个网络,其中每个item都是节点,相似度达到一定阈值 ...
分类:
其他好文 时间:
2019-09-05 18:22:54
阅读次数:
98
your device does not match the hardware requirements of this application 遇到上面那个warning 跟了下 是vulkan create instance的时候 返回了VK_ERROR_LAYER_NOT_PRESENT 就是 ...
分类:
编程语言 时间:
2019-09-04 13:52:57
阅读次数:
142
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path betwe ...
分类:
其他好文 时间:
2019-09-04 00:01:38
阅读次数:
129
### MVP简介 >MVP 全称:Model-View-Presenter ;MVP 是从经典的模式MVC演变而来,它们的基本思想有相通的[地方](https://baike.baidu.com/item/%E5%9C%B0%E6%96%B9/2262175):Controller/Present ...
分类:
移动开发 时间:
2019-09-01 10:24:29
阅读次数:
91
说到UGUI的图集初学者可能觉得没什么难度,包括我刚开始接触的时候也是,甚至你在开发的时候只需要把图片导入到项目中,拖拖拽拽就能做出能用的东西来。因为UGUI刚出的时候就打出了“Unity会自动帮你维护图集”的旗号。可现实真的是这样的吗?要解释这个问题就需要从Unity4.6说起了,那我们来捋一下! ...
分类:
其他好文 时间:
2019-08-31 17:26:45
阅读次数:
410