last

SQL的回顾

你。 提交于 2019-11-27 08:30:56
/*************************************************************************************************/ 第 1 章 基本SQL-SELECT语句 /*************************************************************************************************/ 1. 对于日期型数据, 做 *, / 运算不合法 2. 包含空值的数学表达式的值都为空值 3. 别名使用双引号! 4. oracle 中连接字符串使用 "||", 而不是 java 中的 "+" 5. 日期和字符只能在单引号中出现. 输出 last_name`s email is email select last_name || ' `s email is ' || email EMAIL from employees 6. distinct 关键字, 以下语法错误 select last_name, distinct department_id from employees /*************************************************************************************

Faster Rcnn 代码解读之 train_val.py

与世无争的帅哥 提交于 2019-11-27 08:30:45
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen and Zheqi He # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import print_function from model.config import cfg import roi_data_layer.roidb as rdl_roidb from roi_data_layer.layer import RoIDataLayer from utils.timer import Timer try: import cPickle as pickle except ImportError: import pickle import numpy as np import os import sys

Jmeter 时间函数工具汇总

我的未来我决定 提交于 2019-11-27 08:14:37
在使用Jmeter过程中,常使用的函数汇总 __time : 获取时间戳、格式化时间   ${__time(yyyy-MM-dd HH:mm:ss:SSS,time)} :格式化生成时间格式 2018-06-01 11:08:23:635   ${__time(,)}:默认该公式精确到毫秒级别, 13位数 1527822855323   ${__time(/1000,)}:该公式精确到秒级别, 10位数 1527822871 __TimeShift(格式,日期,移位,语言环境,变量):可对日期进行移位加减操作 格式 - 将显示创建日期的格式。如果该值未被传递,则以毫秒为单位创建日期。   日期 - 这是日期值。用于如果要通过添加或减去特定天数,小时或分钟来创建特定日期的情况。如果参数值未通过,则使用当前日期。   移位 - 表示要从日期参数的值中添加或减去多少天,几小时或几分钟。如果该值未被传递,则不会将任何值减去或添加到日期参数的值中。     “P1DT2H4M5S” 解析为“添加1天2小时4分钟5秒”     “P-6H3M”解析为“-6小时+3分钟”     “-P6H3M”解析为“-6小时-3分钟”     “-P-6H + 3M”解析为“+6小时和-3分钟”   区域设置 - 设置创建日期的显示语言。不是必填项   变量 - 创建日期的值将被分配给的变量的名称

mysql8.0.17复制搭建及其gtid的1062和1032异常

≯℡__Kan透↙ 提交于 2019-11-27 07:59:09
mysql8.0.17复制搭建及其gtid的1062和1032异常 参考资料: https://blog.csdn.net/wzy0623/article/details/91982743 https://blog.51cto.com/20131104/2397443 # 附录 附录:mysql参数sql_log_bin配置 如果想在主库上执行一些操作,但不复制到slave库上,可以通过修改参数sql_log_bin来实现。 比如说,模拟主从同步复制异常。 -- 在从库上执行 mysql> set sql_log_bin=0;#设为0后,在Master数据库上执行的语句都不记录binlog mysql> delete from t1 where id = 3; mysql> set sql_log_bin=1; -- 要慎重使用global修饰符(set global sql_log_bin=0),这样会导致所有在Master数据库上执行的语句都不记录到binlog,这肯定不是你想要的结果 # 环境: /* 主库:10.192.30.53 从库:10.192.30.60 用户名:admin_m 密码:rA75MQy*R*y@KO4z%LZe */ # 创建同步复制账号 CREATE USER 'repl'@'10.192.30.%' IDENTIFIED WITH mysql

Redis info 参数详解

大兔子大兔子 提交于 2019-11-27 07:48:42
redis_version:4.0.2 #redis版本 redis_git_sha1:00000000 #Git SHA1 redis_git_dirty:0 #Git dirty flag redis_build_id:4cd4fc541375a86a #redis build id redis_mode:standalone #运行模式,单机或者集群 os:Linux 2.6.32-696.10.1.el6.x86_64 x86_64 #redis服务器的宿主操作系统 arch_bits:64 #架构(32或64位) multiplexing_api:epoll #redis所使用的事件处理机制 atomicvar_api:sync-builtin #redis使用的GNU Compiler Collection gcc_version:4.4.7 #编译redis时所使用的gcc版本 process_id:12099 #redis服务器进程的pid run_id:76d165405279aa89a3e9e41bffeae51542d3dc4d #redis服务器的随机标识符(用于sentinel和集群) tcp_port:6379 #redis服务器监听端口 uptime_in_seconds:3881741 #redis服务器启动总时间,单位是秒 uptime_in

LeetCode 34: Find First and Last Position of Element in Sorted Array

三世轮回 提交于 2019-11-27 07:22:39
问题描述 思路 找出第一个大于等于target的下标值,判断该下标对应值是否为target并且下标是否符合数字下标范围, 如果满足则为左端点,找出第一个大于等于target+1的下标值的前一个下标值为右端点 java实现 https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/discuss/14701/A-very-simple-Java-solution-with-only-one-binary-search-algorithm public class Solution { public int[] searchRange(int[] nums, int target) { int []results=new int[]{-1,-1}; int start = firstGreaterEqual(nums, target); if (start == nums.length || nums[start] != target) { return results; } int end = firstGreaterEqual(nums, target + 1) - 1; results[0]=start; results[1]=end; return results;

Mybatis九(动态sql)

你离开我真会死。 提交于 2019-11-27 07:18:15
if标签 接口(EmployeeMapper.java) package com.fish.dao; import java.util.List; import com.fish.pojo.Employee; public interface EmployeeMapper { /** * 动态sql if拼接 * @Author ZFH * @Date 2019年7月29日 */ public List<Employee> selEmployeeByConationIf(Employee employee); } 配置文件(EmployeeMapper.xml) <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.fish.dao.EmployeeMapper"> <select id="selEmployeeByConationIf" resultType="com.fish.pojo.Employee"> select id, last_name lastName, email, gender

Codeforces Round #579 (Div. 3)

你说的曾经没有我的故事 提交于 2019-11-27 06:25:35
打得巨差。题目链接: https://codeforces.com/contest/1203 A: 正着来一遍倒着来一遍就行。 1 /* basic header */ 2 #include <bits/stdc++.h> 3 /* define */ 4 #define ll long long 5 #define dou double 6 #define pb emplace_back 7 #define mp make_pair 8 #define sot(a,b) sort(a+1,a+1+b) 9 #define rep1(i,a,b) for(int i=a;i<=b;++i) 10 #define rep0(i,a,b) for(int i=a;i<b;++i) 11 #define eps 1e-8 12 #define int_inf 0x3f3f3f3f 13 #define ll_inf 0x7f7f7f7f7f7f7f7f 14 #define lson (curpos<<1) 15 #define rson (curpos<<1|1) 16 /* namespace */ 17 using namespace std; 18 /* header end */ 19 20 int q; 21 int a[300]; 22 23 int main() { 24

C++ Primer Plus (第6版) 中文版 第四章 复合类型 编程练习答案

房东的猫 提交于 2019-11-27 06:11:11
第四章 编程练习 注 :以下程序中,函数和结构里的内容一般情况尽量缩进。 1 .编写一个小程序,如下述输出示例的那样请求并显示信息: What is your first name? Betty Sue What is your last name? Yewe What letter grade do you deserve? B what is your age? 22 Name: Yewe, Betty Sue Grade: C Age: 22 注意 :该程序应该接受的名字包含多个单词。另外,程序将向下调整成绩,即向上调一个字母,假设用户请求A、B或C,所以不必担心D和F之间的空档。 //编写一个C++程序,如下述输出示例所示的那样请求并显示信息。 # include <iostream> int main ( ) { using namespace std ; const int ARsize = 10 ; char first_name [ ARsize ] ; char last_name [ ARsize ] ; char grade ; int age ; cout << "What is your first name? " ; cin . getline ( first_name , ARsize ) ; cout << "What is your last

【XSY2495】余数

落花浮王杯 提交于 2019-11-27 05:54:21
Input Output Input 3 4 Output 4 HINT 原式 =n*m-n除以i向下取整 用数论分块做就可以了 #include<bits/stdc++.h> #define mod 1000000007 using namespace std; long long ans; long long n,m; int main(){ scanf("%lld%lld",&n,&m); for(register long long i=1,last=0;i<=m;i=last+1) { long long p=n/i; if(p) { last=min(n/p,m); }else{ last=m; } ans=(ans+(((last-i+1)%mod*((n%i)%mod+(n%last)%mod))%mod*500000004))%mod; } printf("%lld",ans); return 0; } 来源: https://www.cnblogs.com/2017gdgzoi44/p/11348536.html