Passport 的 Client 模型对应用户是默认的 User 模型、使用的 guards 是 api。 Passport 如果要替换 Users,需要修改 config/auth.php 中 guards.api.provider 的值,并且增加新的 auth.providers。 Passp ...
分类:
Web程序 时间:
2020-01-21 18:14:04
阅读次数:
120
优先队列即二叉堆,实现如下: #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> typedef int Element; #define MAX_BINHEAP_LENGTH 10 struct ...
分类:
编程语言 时间:
2020-01-21 17:52:47
阅读次数:
78
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1024 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 #include<cmath> 5 #include<cstring> ...
分类:
其他好文 时间:
2020-01-21 16:33:32
阅读次数:
72
一.RNN简介 1.)什么是RNN? RNN是一种特殊的神经网络结构,考虑前一时刻的输入,且赋予了网络对前面的内容的一种'记忆'功能. 2.)RNN可以解决什么问题? 时间先后顺序的问题都可以使用RNN来解决,比如:音乐,翻译,造句,语音识别,视频图像预测,语言处理等等,后来经过变种甚至可以达到CN ...
分类:
Web程序 时间:
2020-01-21 00:49:56
阅读次数:
105
1. #####gafana过期安装包安装报错Error unpacking rpm package grafana-5.1.4-1.x86_64error: unpacking of archive failed on file /usr/sbin/grafana-cli;5e250e9c: cp ...
分类:
数据库 时间:
2020-01-21 00:36:35
阅读次数:
137
在做驱动开发时,经常会使用到的kmalloc函数进行内存的分配,下面对kmalloc在内核上的语言集进行相关的解释。 一、kmalloc 函数的原型: include void kmalloc(size_t size, int flags); 参数: kmalloc 的第一个参数是要分配的块的大小, ...
分类:
其他好文 时间:
2020-01-20 19:12:07
阅读次数:
85
一、监控Nginx、httpd、Tomcat、php-fpm、Redis 1、监控Nginx: (1)web02节点安装Nginx (2)开启Nginx状态页面: # cd /etc/nginx # cp nginx.conf{,.bak} # vim nginx.conf,在server配置段中新 ...
分类:
其他好文 时间:
2020-01-20 18:47:44
阅读次数:
144
shell脚本每隔2s获取某个进程的cpu和mem数据并保存到csv文件shell脚本如下echo "%CPU,%MEM" > cpu_test.csvpid=1 #Can be change by yourselfwhile true do top -bn1 -n 1 -p $pid | tail ...
分类:
系统相关 时间:
2020-01-20 17:32:57
阅读次数:
218
https://golang.org/ref/mem#tmp_6 Goroutine destruction The exit of a goroutine is not guaranteed to happen before any event in the program. For exampl ...
分类:
其他好文 时间:
2020-01-19 22:04:51
阅读次数:
66