在angular中使用ng-repeat时数组中有重复元素,要用item in items track by $index,不然会报错 ...
分类:
编程语言 时间:
2019-12-23 15:14:15
阅读次数:
158
"1. Searching the Solution Space" "2. Solution Space and Solution Tree" "2.1. Solution Space" "2.2. Solution Tree" "3. DFS" "4. Back Track" "5. Subset ...
分类:
其他好文 时间:
2019-12-19 13:06:30
阅读次数:
78
MITM - Wireshark WIreshark is a network protocol analyser that is designed to help network administartors to keep track of what is happening in their ...
分类:
Web程序 时间:
2019-12-15 16:15:57
阅读次数:
96
一、前言magent是一款开源的代理服务软件,我们可以通过它来实现缓存数据的同步,当然这里说的同步不是说memcached之间就能互相通讯了,而magent可以同时连接多个memcached节点,通过magent绑定的VIP从客户端登录memcached写入数据,其他节点的memcached数据也会同步。二、架构部署环境说明:1、配置memcache主缓存节点和从缓存节点(两台服务器配置相同)yu
分类:
系统相关 时间:
2019-12-15 00:36:31
阅读次数:
84
swapoff -a mkdir /var/run/kubernetes chmod -R 777 /var/run/kubernetes systemctl restart kubelet kube-controller-manager kube-proxy 替换IPVS模式 yum instal ...
分类:
其他好文 时间:
2019-12-11 19:13:16
阅读次数:
163
官方的定义是这样的: boolean: The boolean data type has only two possible values: true and false. Use this data type for simple flags that track true/false cond ...
分类:
编程语言 时间:
2019-12-09 12:21:55
阅读次数:
93
原因是.gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。 解决方法: 1.先把规则写好,然后把规则对应的文件删了,然后再提交,然后再把删的文件放回来,这样本地就不会再提交这个文件,然后服务上被忽略的文件还需要手动再上传 ...
分类:
其他好文 时间:
2019-12-07 12:54:44
阅读次数:
99
Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively ...
分类:
移动开发 时间:
2019-12-05 22:48:52
阅读次数:
215
整理了五种方法,我常用最后一种,这五种方法(除了第4中已经写了fetch的步骤)执行前都需要执行git fetch来同步远程仓库 (1)git checkout -b 本地分支名 origin/远程分支名 (2)git checkout --track origin/远程分支名 (这种写法是上面的简 ...
分类:
其他好文 时间:
2019-12-05 18:58:57
阅读次数:
158
Tensor import torch x = torch.ones(2, 2, requires_grad=True) # 将其属性.requires_grad设置为True,它将开始追踪(track)在其上的所有操作。完成计算后,可以调用.backward()来完成所有梯度计算 print(x) ...
分类:
其他好文 时间:
2019-11-30 13:48:29
阅读次数:
102