label

Validate验证

落花浮王杯 提交于 2019-12-27 08:33:11
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script> <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script> <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script> <script> $.validator.setDefaults({ submitHandler: function() { alert("提交事件!"); } }); $().ready(function() { // 在键盘按下并释放及提交后验证提交表单 $("#signupForm").validate({ rules: { firstname: "required",

kubernetes_label&selector

只谈情不闲聊 提交于 2019-12-27 04:19:09
Kubernetes Label & Label Selector Label 概念 Label是Kubernetes的 核心概念 。 Labels其实就一对 key/value ,被关联到对象上,标签的使用我们倾向于能够标示对象的特殊特点,并且对用户而言是有意义的,但是标签对内核系统是没有直接意义的。 Label可以附加到各种资源对象上,一个资源对象可以定义任意数量的Label,同一个Label也可以被添加到任意数量的资源对象上去。 我们可以通过给指定的资源对象捆绑一个或多个不同的Label来实现多维度的资源分组管理功能,以便于灵活、方便地进行资源分配、调度、配置、部署等管理工作。 Label相当于标签,给某个资源对象定义一个Label,就相当于给它打上一个标签,随后可以通过Label Selector查询和筛选拥有某些Label的资源对象。 Kubernetes通过这种方式实现了类似SQL的简单又通用的对象查询机制。 示例标签: “release” : “stable”, “release” : “canary” “environment” : “dev”,“environment” : “qa”,“environment” : “production” “tier” : “frontend”,“tier” : “backend”,“tier” : “cache”

resnet

倾然丶 夕夏残阳落幕 提交于 2019-12-27 02:21:39
原来层数 加一个shortcut 短路效果,即使以前为22层,新的加了例如8层,效果最起码也比以前的不会差。 VGG运算量大 import torch from torch import nn from torch.nn import functional as F from torch.utils.data import DataLoader from torchvision import datasets from torchvision import transforms from torch import nn, optim # from torchvision.models import resnet18 class ResBlk(nn.Module): """ resnet block """ def __init__(self, ch_in, ch_out): """ :param ch_in: :param ch_out: """ super(ResBlk, self).__init__() self.conv1 = nn.Conv2d(ch_in, ch_out, kernel_size=3, stride=1, padding=1) self.bn1 = nn.BatchNorm2d(ch_out) self.conv2 = nn.Conv2d(ch_out,

分布式配置中心(Native - Config)

梦想的初衷 提交于 2019-12-26 14:44:54
本章只讲 Spring Cloud 本地配置方式,可以很方便的高可用集群,且存在良好通讯,不用担心云服务器与内网之间GIT带来的不便,GIT(网上GIT教程一搜一大把了….) - 快速开始 Spring Cloud Config为分布式系统中的外部配置,提供了服务器和客户端支持。使用Config Server,您可以在所有环境中管理应用程序的外部属性。客户端和服务器映射的概念与Spring Environment和PropertySource抽象相同,因此它们与Spring应用程序非常契合,但可以与任何以任何语言运行的应用程序一起使用。随着应用程序通过从开发人员到测试和生产的部署流程,您可以管理这些环境之间的配置,并确定应用程序具有迁移时需要运行的一切。服务器存储后端的默认实现使用git,因此它轻松支持标签版本的配置环境,以及可用于管理内容的各种工具。可以轻松添加替代实现,并使用Spring配置将其插入 官方文档: http://cloud.spring.io/spring-cloud-static/Dalston.SR2/#_spring_cloud_config - 服务架构图 服务架构图 画图工具 : https://www.processon.com/ - 准备工作 1.创建 battcn-config-server 和 battcn-config-client

用css改变默认的checkbox样式

房东的猫 提交于 2019-12-26 11:46:29
自己常用的改变checkbox样式的两个方法: 一.利用background用图片代替checkbox效果 缺点:你首先得有一张好看的图片 优点:浏览器兼容性好 <!doctype html> <html> <head> <meta charset="utf-8"> <title>chec</title> <style> #wrapper {margin: 20px auto;} #wrapper .input_check {position: absolute;width: 20px;height: 20px;visibility: hidden;} #wrapper span {position: relative;} #wrapper .input_check+label {display: inline-block;width: 20px;height: 20px;background: url(checkbox2.png) no-repeat;background-position: -31px -3px;} #wrapper .input_check:checked+label {background-position: -5px -3px;} </style> </head> <body> <h3>利用background用图片代替checkbox效果</h3>

java导出excel,每1000新建一个sheet

筅森魡賤 提交于 2019-12-26 06:14:51
前言 首先接到这个功能开发的时候,第一个想法就是百度看看API,网上也提供了一些解决方法,但是都不完善,我是在网上资源的基础之上,做的补充,修复了逻辑上的错误。 实现 首先要实现这个功能,我们先要了解excel的api文档,当然,如果快速开发,那你执行以下方法即可 首先下载jxl-2.6.12.jar和jaudiotagger-2.0.3.jar java代码 package com.happydayin.util; import jxl.Workbook; import jxl.format.Alignment; import jxl.format.Border; import jxl.format.BorderLineStyle; import jxl.write.*; import java.io.FileOutputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; // 稍后优化 2019-12-19 qzx public class ExcelOperaation { public static void writeExcel(String path, List<String[]> list, String sheet, String[]

百度编辑器 Ueditor 如何增加字体 ?

心已入冬 提交于 2019-12-26 04:33:26
在百度编辑器 Ueditor 如何增加字体 ? 要修改两个文件: 第一个文件:editor-config.js: , 'fontfamily' :[ { label: '' ,name: 'songti' ,val: '宋体,SimSun' }, { label: '' ,name: 'kaiti' ,val: '楷体,楷体_GB2312, SimKai' }, { label: '' ,name: 'yahei' ,val: '微软雅黑,Microsoft YaHei' }, { label: '' ,name: 'heiti' ,val: '黑体, SimHei' }, { label: '' ,name: 'lishu' ,val: '隶书, SimLi' }, { label: '' ,name: 'andaleMono' ,val: 'andale mono' }, { label: '' ,name: 'arial' ,val: 'arial, helvetica,sans-serif' }, { label: '' ,name: 'arialBlack' ,val: 'arial black,avant garde' }, { label: '' ,name: 'comicSansMs' ,val: 'comic sans ms' }, { label: ''

百度编辑器 Ueditor 增加字体

删除回忆录丶 提交于 2019-12-26 04:32:13
1、\ueditor\lang\zh-cn\zh-cn.js 文件中找到:fontfamily节点,添加:'fangsong': '仿宋', 'fontfamily':{ 'songti':'宋体', 'kaiti':'楷体', 'heiti':'黑体', 'lishu':'隶书', 'yahei':'微软雅黑', 'andaleMono':'andale mono', 'arial': 'arial', 'arialBlack':'arial black', 'comicSansMs':'comic sans ms', 'impact':'impact', 'timesNewRoman':'times new roman', 'verdana':'Verdana' }, 2、ueditor\editor_config.js 文件中找到:取消掉注释,添加:{ label: '', name: 'fangsong', val: '仿宋,SimSun' }, ,'fontfamily':[ { label:'',name:'songti',val:'宋体,SimSun'}, { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'}, { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'}, {

linux包之iproute之ip命令

不羁岁月 提交于 2019-12-25 23:10:05
[root@localhost ~]# rpm -qf /sbin/ip iproute-2.6.32-31.el6.x86_64 ip 是个命令, ip 命令的功能很多!基本上它整合了 ifconfig 与 route 这两个命令 ip - show / manipulate routing, devices, policy routing and tunnels ip -c link 彩色 ip -br link 概述 ip -o link 一行显示 ip -d link 详细 ip -s addr 摘要 ip [ OPTIONS ] OBJECT { COMMAND | help } OBJECT := { link | addr | addrlabel | route | rule | neigh | tunnel | maddr | mroute | monitor } OPTIONS := { -V[ersion] | -s[tatistics] | -r[esolve] | -f[amily] { inet | inet6 | ipx | dnet | link } | -o[neline] } [root@ipt ~]# ip addr help [root@ipt ~]# ip link help [root@localhost ~]# ip link 1: lo

How to adjust Label in tkinter?

被刻印的时光 ゝ 提交于 2019-12-25 18:36:08
问题 I am making a program that uses this equation: 16*(falling_speed)^2 = height This basically takes the time you are falling and uses it to determine how high you are falling from. I know how to use the equation, but my question is this, how to adjust the label to 1 second or 2 seconds? I tried to make them seperate labels, but that didn't work either. Here is my code: from tkinter import * from time import * print("""This is an app that basically you time the amount of time someone takes to