Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2019-11-17 12:31:52
阅读次数:
68
nginx服务器图片防盗链的方法<pre> location ~* \.(gif|jpg|png|jpeg)$ { expires 30d; valid_referers *.shuchengxian.com www.shuchengxian.com; if ($invalid_referer) { ...
分类:
其他好文 时间:
2019-11-17 10:40:17
阅读次数:
77
当在controller 中使用@Valid+ BindResult 和在参数实体中使用@NotNull,@NotEmpty等注解进行参数验证, 最后通过接口调用却正常进入方法体内没有进行参数验证的情况, 原因在于 1:BindResult封装了参数验证抛出的异常,也就是说异常被抛出但异常被捕获到了 ...
分类:
其他好文 时间:
2019-11-15 12:07:56
阅读次数:
294
SpringMVC的数据校验 一、注解方式 二、示例 Spring MVC本身没有数据校验的功能,它使用Hibernate的校验框架来完成。 1.导入pom节点 <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-valid ...
分类:
编程语言 时间:
2019-11-14 10:07:05
阅读次数:
100
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Example ...
分类:
其他好文 时间:
2019-11-12 09:21:34
阅读次数:
80
```c /* Author: Zoro Date: 2019/11/10 Function: Valid Anagram Title: leetcode 242 anagram.c think: 桶排序思想 */ #include #include #include bool isAnagram(... ...
分类:
其他好文 时间:
2019-11-11 12:39:55
阅读次数:
99
转自https://blog.csdn.net/u012370185/article/details/95238828 通常用外部api进行卷积的时候,会面临mode选择。 这三种mode的不同点:对卷积核移动范围的不同限制。 设 image的大小是7x7(橙色部分),filter的大小是3x3(蓝 ...
分类:
其他好文 时间:
2019-11-06 13:21:25
阅读次数:
235
转自https://blog.csdn.net/qq_34599526/article/details/83755275 VALID:如果卷积核超出特征层,就不再就计算,即卷积核右边界不超出Feature。如下图,卷积核F移动2次,从左往右第3个长方形的右边界在W内部。 SAME:只要卷积核还覆盖着 ...
分类:
其他好文 时间:
2019-11-05 15:09:37
阅读次数:
191
在preferred time和valid lifetime之间叫做deprecated 状态,当地址达到这个时间段的时候,地址不能主动的发起连接只能是被动的接受连接,过了valid lifetime时间,地址就变为invalid,这时任何连接就会down掉 ...
分类:
其他好文 时间:
2019-11-04 17:13:48
阅读次数:
308
题目如下: Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any po ...
分类:
其他好文 时间:
2019-11-04 11:50:25
阅读次数:
79