Goroutine id 的获取方式 之前做的项目中,会使用 goroutine-id(以下简称 goid) 作为日志中的一个标识参数。而 goroutine 的相关信息是不对外暴露的。想要获取 goid,除了直接修改 Golang 源码的骚操作,通常会使用两种方式: 一种是通过堆栈获取。 func ...
分类:
其他好文 时间:
2020-07-21 21:36:28
阅读次数:
64
1.虚拟机(hadoop11)中的hadoop如是第一次启动,则需要格式化namenode 命令: hadoop namenode -format 注意:如之前有安装过,则需要删除配置文件core-site.xml里的hadoop.tmp.dir的存储目录及日志文件夹 2.在hadoop11上启动n ...
分类:
其他好文 时间:
2020-07-21 21:36:10
阅读次数:
66
vue checkbox 布尔值互转01 note vue checkbox和数据进行绑定后(v-model),只能对应true、false布尔值类型,checkbox v-model=0 or 1是不可行。所以只能转换了,获取数据填充到checkbox时01->bool,提交数据给后台时bool- ...
分类:
其他好文 时间:
2020-07-21 21:35:52
阅读次数:
87
重学数据结构(二) 对线性表的顺序表进行实现 public abstract class MyList<T>{ //定义顺序表的初始容量 final int maxSize = 10; //对数据元素进行存储 private T[] list; //顺序表中元素的个数 private int len ...
分类:
其他好文 时间:
2020-07-21 21:35:38
阅读次数:
51
题目链接 Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each r ...
分类:
其他好文 时间:
2020-07-21 21:35:20
阅读次数:
72
1. 操作系统的四个特性 1)并发:同一段时间内多个程序执行(注意区别并行和并发,前者是同一时刻的多个事件,后者是同一时间段内的多个事件)2)共享:系统中的资源可以被内存中多个并发执行的进线程共同使用3)虚拟:通过时分复用(如分时系统)以及空分复用(如虚拟内存)技术实现把一个物理实体虚拟为多个4)异 ...
分类:
其他好文 时间:
2020-07-21 21:34:37
阅读次数:
88
Visual Studio Code使用说明 VScode编译器小白使用指南 ...
分类:
其他好文 时间:
2020-07-21 21:34:05
阅读次数:
166
【原题】 Note that the memory limit is unusual. You are given a multiset consisting of nn integers. You have to process queries of two types: add integer ...
分类:
其他好文 时间:
2020-07-21 21:33:29
阅读次数:
83
chenkHandle(row){ //原页打开 // this.$router.push({path:'/duocai/detail',query:{ checkType:row.id,role:"manger"}}); //新开页 let newUrl = this.$router.resolv ...
分类:
其他好文 时间:
2020-07-21 21:33:09
阅读次数:
73
项目经理给下属王华安排了一个任务:做一份调查报告,调研一下竞品的功能,我们的产品需要做类似的功能,做好后尽可能快点整理好。 等到第二天项目经理问王华调研工作的进度,王华回复:“快了,明天中午前给你”。 晚上下班王华还在加班做竞品调研。 第三天快中午了,王华把一份厚厚的调研报告交给项目经理,项目经理愣 ...
分类:
其他好文 时间:
2020-07-21 21:32:50
阅读次数:
56
一. Python 现阶段三大主流Web框架 Django Tornado Flask 对比 1.Django 主要特点是大而全,集成了很多组件,例如: Models Admin Form 等等, 不管你用得到用不到,反正它全都有,属于全能型框架,Django 通常用于大型Web应用由于内置组件足够 ...
分类:
其他好文 时间:
2020-07-21 21:32:16
阅读次数:
54
查看用户名 :git config user.name 查看密码: git config user.password 查看邮箱:git config user.email 查看配置信息: $ git config --list 修改用户名git config --global user.name " ...
分类:
其他好文 时间:
2020-07-21 21:30:56
阅读次数:
327
让这两个select相互绑定,让roleOptions选取值后,worklist弹出得是roleOptions值 <el-select v-model="postForm.projectName" placeholder="请选择" @change="getList(postForm)"> <el- ...
分类:
其他好文 时间:
2020-07-21 21:30:41
阅读次数:
68
package com.sun4cloud.sunx.question.config; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.clients.producer.Producer ...
分类:
其他好文 时间:
2020-07-21 21:29:44
阅读次数:
71
We have a message app: function App() { const messageDisplayRef = React.useRef() .... const scrollToTop = () => messageDisplayRef.current.scrollToTop( ...
分类:
其他好文 时间:
2020-07-21 21:29:26
阅读次数:
62
https://www.techopedia.com/definition/21300/pci-mezzanine-card-pmc https://whatis.techtarget.com/definition/mezzanine 服务器主板上,有mezz插槽 mezz是mezzanine的缩写 ...
分类:
其他好文 时间:
2020-07-21 21:29:12
阅读次数:
130