using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using... ...
1. 能说出来两种对于 JavaScript 工程师很重要的编程范式么? JavaScript 是一门多范式(multi-paradigm)的编程语言,它既支持命令式(imperative)/面向过程(procedural)编程,也支持面向对象编程(OOP,Object-Oriented Progr ...
分类:
编程语言 时间:
2019-11-23 21:40:56
阅读次数:
70
如果调用另一个服务的时候,前端传过来的token也要带过去,具体做法是写一个RequestInterceptor的实现类,在其apply方法里,根据当前线程获取request,取出里面的token,放到参数RequestTemplate中。 它的原理,根据之前说的feign源码,在Synchrono ...
分类:
其他好文 时间:
2019-11-23 18:30:45
阅读次数:
115
记录工作中常用操作 1. 新建和增加SWAP分区(都必须用root权限,操作过程应该小心谨慎。) 1)新建分区 2)新增分区 2.调整swap空间使用的优先级 如果内存够大,应当告诉 linux 不必太多的使用 SWAP 分区, 可以通过修改 swappiness 的数值。 swappiness=0 ...
分类:
系统相关 时间:
2019-11-23 10:09:43
阅读次数:
266
1 分布分析 1 极差 写个函数就行 def d_range(df,*args) 2 定量用直方图 1)直接用plot.hist() 2)s = pd.cut() return indices of half-open bins to which each value of `x` belongs. ...
分类:
其他好文 时间:
2019-11-22 13:30:14
阅读次数:
77
``` from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument('--headless') options.add_argument('--dns-prefetch-disable... ...
分类:
Web程序 时间:
2019-11-22 12:12:44
阅读次数:
379
直接删除用户,提示该用户下还有进程,以下两种方法可解决: 1.结束所有username的进程(如果提示没有该命令,那么用下面方法) killall -u username 2.杀死某一用户下的所有进程 ps -ef | grep ^username | cut -c 10-15 | xargs ki ...
分类:
系统相关 时间:
2019-11-22 12:06:26
阅读次数:
145
linux测试机器的硬件信息:查看CPU信息(型号)cat/proc/cpuinfo|grepname|cut-f2-d:|uniq-c8Intel(R)Xeon(R)CPUE5410@2.33GHz(看到有8个逻辑CPU,也知道了CPU型号)cat/proc/cpuinfo|grepphysical|uniq-c4physicalid:04physicalid:1(说明实际上是两颗4核的CPU)
分类:
系统相关 时间:
2019-11-21 18:42:22
阅读次数:
110
1.要使用这个功能需要先开启Sql Server 通讯配置-- sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Ole Automation Procedures', 1; GO RECONFIGUR ...
分类:
数据库 时间:
2019-11-21 09:47:04
阅读次数:
197
1.一个比较老的游戏服维护,关服维护后启动时报错 2.看到关于mongodb的报错,于是去查一下mongodb的日志 Plan executor error during find: FAILURE, stats 3.关于此报错 MongoDB Server中确认了对于Sort排序能够支持的最大内存 ...
分类:
数据库 时间:
2019-11-20 16:54:28
阅读次数:
155