Description Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or ...
分类:
其他好文 时间:
2019-12-22 00:56:25
阅读次数:
78
go modules 是 golang 1.11 新加的特性。现在1.13 已经发布了,是时候用起来了。Modules官方定义为: 模块是相关Go包的集合。modules是源代码交换和版本控制的单元。 go命令直接支持使用modules,包括记录和解析对其他模块的依赖性。modules替换旧的基于G ...
分类:
其他好文 时间:
2019-12-20 18:47:56
阅读次数:
74
当我们不想使用EF的默认约定时,可以手动配置领域类,但还是推荐少配置,Simple is best! 两种配置方式: 1.Data Annotation Attributes【数据注解特性】 数据注解是一种基于配置的简单特性,你可以应用于你的领域类以及领域类的属性上。数据注解特性,不仅适用于EF、还 ...
分类:
其他好文 时间:
2019-12-16 09:32:34
阅读次数:
117
最近使用 useradd -r 选项进行创建账户,用于测试,对-r 选项不是很明白,下面记录一些调研的过程: -r, --system Create a system account. System users will be created with no aging information in ...
分类:
系统相关 时间:
2019-12-06 19:40:59
阅读次数:
133
Harbor是一个开源的云原生registry工程。Harbor对开源的Docker Distribution扩进行了扩展,支持registries之间镜像的复制功能,而且还提供了一些高级的安全方面的功能,例如用户管理,访问控制和行为审计。详细的说明可以参照官网【1】。 Harbor的安装 通常,将 ...
分类:
其他好文 时间:
2019-12-06 18:54:54
阅读次数:
138
兼容性前缀: 谷歌:webkit 火狐:moz ie:ms 欧鹏:o选择器: 属性选择器: * = 包含 {href * = 'www'} ^ = 以什么开头 $ = 以什么结尾 伪类选择器: 第一个:first-of-type 最后一个:last-of-type 第几个:nth-of-type() ...
分类:
Web程序 时间:
2019-12-06 09:16:44
阅读次数:
793
3个容器需要进行交互,根据docker的网络原理,docker0网桥要有,之前因为网桥不在,虽然es启动起来,但是一直ping不通,logstash也连不上es,而且存在缺陷,容器的ip可能会发生变化,后面会将用k8s去部署。 [root@topcheer ~]# ifconfig docker0: ...
分类:
其他好文 时间:
2019-12-04 20:34:58
阅读次数:
182
使用multiprocessing.Process来开启进程 import os import time from multiprocessing import Process def eat(): print('start eating',os.getpid()) time.sleep(1) pr ...
分类:
系统相关 时间:
2019-12-04 14:56:50
阅读次数:
130
错误产生背景:将之前用Eclipse写的Blog项目迁移到Idea上面。Ecilpse项目一直是没有问题的。错误原因分析:原因是项目依赖中引入的jpa,另外也与Idea比较智能也有关系 解决办法: 第一,在启动类中加上如下注解代码 @SpringBootApplication(exclude = { ...
分类:
移动开发 时间:
2019-12-01 21:05:14
阅读次数:
237
错误关键信息: BeanCreationException: Error creating bean with name 'classPathFileSystemWatcher' 错误原因:Idea不支持热加载,application-test.yml中的热加载配置去除后,就能正常启动了,对应的服务 ...
分类:
其他好文 时间:
2019-12-01 20:34:33
阅读次数:
99