weixin_39630999的博客

私信 关注
weixin_39630999
码龄4年
  • 11,808
    被访问量
  • 162
    原创文章
  • 1,155,434
    作者排名
  • 3
    粉丝数量
  • 于 2017-07-26 加入CSDN
获得成就
  • 获得3次点赞
  • 内容获得0次评论
  • 获得16次收藏
荣誉勋章
  • 最近
  • 文章
  • 资源
  • 问答
  • 课程
  • 帖子
  • 收藏
  • 关注/订阅

php startservers minspareservers,php-fpm配置笔记

Choose how the process manager will control the number of child processes.; Possible Values:; static - a fixed number (pm.max_children) of child processes;; dynamic - the number of child processe...
转载
0阅读
0评论
0点赞
发布博客于 1 月前

分页算法php,php分页

无论写了多少遍,无论编程的技术到了何种的境界,还是会涉及到一种需求:分页。很多的分页代码都会有很多的判断,是不是第一页,是不是最后一页等,今天在惠新宸的博客上看见一种巧妙的算法,通过简单的比较代替了很多的判断,试了很久,很难写出比这个更简单的代码了。下面是自己研究后自己重新敲了一遍的代码:class Pagination{private $page,$page_size,$total,$total...
转载
0阅读
0评论
0点赞
发布博客于 1 月前

php pdo insert,php中pdo新增操作

* PDO预处理主要使用PDOStatement对象* 该对象是通过: $pdo->prepare()方法创建* 读写操作都可以通过:$pdoStmt->execute()方法进行* 预处理SQL语句句中的占位符除可以使用?号之外,还可以使用命名参数,例如:name:email...* 下面新增数据为例进行演示,共分6步:* 1.连接数据库,创建PDO对象* 2.准备预处理SQL语句,...
转载
7阅读
0评论
0点赞
发布博客于 1 月前

php快速排序空间复杂度,PHP四种排序算法实现及效率分析【冒泡排序,插入排序,选择排序和快速排序】...

本文实例讲述了PHP四种排序算法实现及效率分析。分享给大家供大家参考,具体如下:PHP的四种基本排序算法为:冒泡排序、插入排序、选择排序和快速排序。下面是我整理出来的算法代码:1. 冒泡排序:思路:对数组进行多轮冒泡,每一轮对数组中的元素两两比较,调整位置,冒出一个最大的数来。//简单版:function bubbleSort($arr){$n = count($arr);for($i=1;$if...
转载
11阅读
0评论
0点赞
发布博客于 1 月前

php html 混写_为什么html和php混合使用?html和php混写的四种方式

下面小编就为大家带来一篇PHP/HTML混写的四种方式总结。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧PHP作为一款后端语言,为了输出给浏览器让浏览器呈现出来,无可避免的要输出HTML代码,下文介绍下我用过的三种PHP/HTML混编方法1、单/双引号包围法这是最初级的方法了,用法就像下面这样我认为这种方法是在这三种方法中最好的,但是这样做的缺点是如果这样的代码块一...
原创
23阅读
0评论
0点赞
发布博客于 1 月前

java 缓存ech_hibernate 二级缓存入门例子

配置一:hibernate.cfg.xml文件中增加org.hibernate.cache.EhCacheProvidertrue配置二:工程项目src文件下新建一个ehcache.xml文件,其内容为配置三:为了缓存某类的对象,其hbm文件中需添加属性例如:/p>"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">...
原创
4阅读
0评论
0点赞
发布博客于 1 月前

小明a b java程序实现_小明A+B (C++代码)

解题思路:注意事项:参考代码:#include #include #include #include #include #include #include #include #include using namespace std;int f(int n){int count=0;while(n){n/=10;count++;}if(count>2){return 1;}else{retur...
原创
10阅读
0评论
0点赞
发布博客于 1 月前

python全自动化渗透工具下载_python打造渗透工具集

"python是门简易易懂的語言,强劲的第三方平台库我们一起在程序编写中事倍功半,今日人们就来谈一谈python在渗透测试中的运用,我们一起动手做打造出自个的渗入工具集。难度系数水平:★★★阅读文章点:python;web安全性;稿子创作者:xiaoye文章来源:i秋春关键词:互联网渗入技术性一、信息内容收集–py端口扫描小脚本制作端口扫描是渗透测试中常见的方式方法,发觉比较敏感端口号,试着弱动态...
原创
12阅读
0评论
0点赞
发布博客于 1 月前

java点击提交数据给到数据库_【Java】点击提交按钮后,将当前textarea中的文本通过后台加工后并获取加工后数据显示在当前页面的div中(不需要数据库),怎么处理?...

点击提交按钮后,将当前textarea中的文本通过后台加工成json格式的数据后,把加工后的数据显示在当前页面的div中(不需要数据库),怎么处理?目前我用的是表单提交,但是一旦在html页面点击提交按钮后就跳转到新的页面->localhost:8801/Test,并显示处理过的数据,但是不知道如何将处理后的数据显示在前面的html页面中“result-box”这个div盒子中。。。请教大家...
原创
17阅读
0评论
0点赞
发布博客于 1 月前

python mysql存储过程 空值_如何在Python中为MySQL设置空值

这是我的SQL命令行版本。在Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 122Server version: 5.0.95 Source distribution我有一个表,在Python中,我希望将最后一列写为null。最后,特定行的最后一列将得到一个日期戳,我将用它作为...
原创
4阅读
0评论
0点赞
发布博客于 1 月前

Java环境变量的加载顺序_SpringBoot中各配置文件的优先级及加载顺序

我们在写程序的时候会碰到各种环境(开发、测试、生产),因而,在我们切换环境的时候,我们需要手工切换配置文件的内容。这大大的加大了运维人员的负担,同时会带来一定的安全隐患。为此,为了能更合理地重写各属性的值,SpringBoot通过对数据文件的优先级进行定义,定义了不同的加载顺序,从而解决了这个问题。1 在命令行中传入的参数。2. SPRING APPLICATION JSON中的属性。 SPRIN...
原创
37阅读
0评论
0点赞
发布博客于 2 月前

sisoftware java测试_SiSoftware理论性能测试10980XE vs 3950X vs 7900X vs 9900K

本帖最后由 jerrytsao 于 2019-11-23 19:14 编辑转总现在修身养性, 不方便上论坛, 帮贴https://www.sisoftware.co.uk/2019/11/20/intel-core-i9-10980x-cascade-lake-review-benchmarks-cpu-18-core-36-thread-avx512/10980XE 18C vs 3950X 1...
原创
6阅读
0评论
0点赞
发布博客于 2 月前

java getaccessflags_老师,你确定Java注释不会被执行吗?

之前在博客上分享过一篇文章,涉及到 Java 中的注释,就信誓旦旦地写了一句话:“注释是不会被执行的!”结果,有小伙伴留言说,“老师,你确定吗?”我这个人一直有个优点,就是能听得进去别人的声音,管你是赞美的还是批评的,从来都是虚心接受。因为我相信,大多数小伙伴都是出于善的目的。况且,我在技术上从来没想过要成为多牛逼的大佬,就是喜欢分享的感觉,而已。很多文章中出现的错误,我都原封不动的保留,因为如果...
原创
7阅读
0评论
0点赞
发布博客于 2 月前

kotlin为什么比java编译慢_Kotlin VS Java 编译速度大比拼,到底谁更快?

把一个Java应用程序转换为Kotlin,编译时间要多久?这是关于Kotlin的一系列文章。分为三个部分。 第一部分讨论了从Java转换到Kotlin。第二部分是我对Kotlin的看法。在前面的文章中( https://medium.com/keepsafe-engineering/kotlin-vs-java-compilation-speed-e6c174b39b5d#.l8wax2t8j )...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

java handlerbase_引起:java.lang.NoSuchMethodError:org.elasticsearch.rest.BaseRestHandler

我使用“yum”将“elasticsearch”从1.3更新为1.4,我看到此错误信息显示出来。您认为原因是什么?[root@www3073gk elasticsearch]# ./bin/elasticsearchFailed to configure logging...org.elasticsearch.ElasticsearchException: Failed to load loggi...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

linux mysql库目录结构图_Linux 下 mysql 数据库结构目录

1、准备安装程序(官方网站下载)服务端:MySQL-server-community-5.1.44-1.rhel4.i386.rpm客户端:MySQL-client-community-5.1.44-1.rhel4.i386.rpm2、安装(打印信息略)[root@localhost/]#rpm-ivhMySQL-server-community-5.1.44-1.rhel4.i386.rp...
原创
14阅读
0评论
0点赞
发布博客于 2 月前

用java写一个秒表_一个简单的java秒表java计时器,用java语言写的,android开发

下面是一个实例,我吧主要的代码都放在这里了,可以看下:public static Runnable refreshRunnable = new Runnable() {@Overridepublic void run() {// TODO Auto-generated method stubcurrentTime = new Date(System.currentTimeMillis());whi...
原创
3阅读
0评论
0点赞
发布博客于 2 月前

Java推箱子游戏的胜利判定_课内资源 - 基于JAVA实现的命令行版的推箱子游戏

一.代码的总体结构及设计思路代码总体结构分为三部分,controller、entity、exception,如下图所示。controllerMain:游戏的控制逻辑History: 游戏的历史记录,用于悔棋和重新开始entity推箱子游戏中的所有实体。首先,是一个 Map,而地图又由各个实体构成。根据实体是否可以移动,又分为 immobile 和 mobile。不可移动的包括空地、墙壁、目标点这 ...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

java static getclass_How to call getClass() from a static method in Java?

刚才在学习Java 使用properties类,遇到这样的错误:Cannot make a static reference to the non-static method getClass() from the type Object以前使用过getClass,不晓得怎么用的,后来在stackoverflow看到同样的问题I have a class that must have some s...
原创
2阅读
0评论
0点赞
发布博客于 2 月前

java getdayofweek_Java如何根据一个时间,得到这个时间所在的这一周的周日?

import org.joda.time.DateTime;import org.joda.time.DateTimeConstants;import java.util.Date;public class SWDateUtils {private SWDateUtils() {}/*** 返回截掉DayOfMonth以下的字段的Date,不修改原来的Date * 比如 2015-07-27 13...
原创
10阅读
0评论
0点赞
发布博客于 2 月前

idea 查看java源码_eclipse/intellij idea 查看java源码和注释方法

工作三年了,一直不知道怎么用IDE查看第三方jar包的源码和注释,惭愧啊!看源码还好些,itellij idea自带反编译器,eclipse装个插件即可,看注释就麻烦了,总不能去找api文档吧!现在终于掌握了,下面给出解决方案,供大家参考,以提升开发学习效率!eclipse1.下载源码包1.1 去官网下载1.2 去maven仓库下载( 例如:maven MysqL 百度一下,肯定会出现仓库地址,找...
原创
17阅读
0评论
0点赞
发布博客于 2 月前

go 连接 mysql框架_gomodel - 轻量级Go数据库访问框架

gomodel 是一个简洁,高效的轻量级Go数据库访问框架,可以完全不使用反射而达到类似ORM的效果。主要特点:无反射使用Bitset代表字段集合代码生成数据库错误处理常用SQL操作函数userfollow是一个简单的使用案例,可以通过go test测试运行。Uservar (ErrDuplicateUserName = httperrs.Conflict.NewS("user name alre...
原创
21阅读
0评论
0点赞
发布博客于 2 月前

zipentry java_zipentry?java实现解压缩?substring?Java用ZIP格式压缩和解压缩文件

你是否正在寻找关于zipentry的内容?让我把最实用的东西奉献给你:转载:java jdk实例宝典感觉讲的很好就转载在这保存!java.util.zip包实现了Zip格式相关的类库,使用格式zip格式压缩和解压缩文件的时候,需要导入该包。使用zipoutputstream可以实现文件压缩,所有写入到zipoutputstream输入流中的数据,都会被ZIP格式压缩。每个被压缩的文件或者目录在zi...
原创
3阅读
0评论
0点赞
发布博客于 2 月前

java常用的容器_java常用集合容器详解

Collection(单列集合):List(有序,可重复):ArrayList底层数据结构是数组,查询快,增删慢线程不安全,效率高Vector底层数据结构是数组,查询快,增删慢线程安全,效率低LinkedList底层数据结构是链表,查询慢,增删快线程不安全,效率高Set(无序,唯一):HashSet底层数据结构是哈希表。哈希表依赖两个方法:hashCode()和equals()执行顺序:首先判断h...
原创
7阅读
0评论
0点赞
发布博客于 2 月前

java处理异常_RxJava处理业务异常的几种方式

关于异常Java的异常可以分为两种:运行时异常和检查性异常。运行时异常:RuntimeException类及其子类都被称为运行时异常,这种异常的特点是Java编译器不去检查它,也就是说,当程序中可能出现这类异常时,即使没有用try...catch语句捕获它,也没有用throws字句声明抛出它,还是会编译通过。检查性异常:除了RuntimeException及其子类以外,其他的Exception类及...
原创
11阅读
0评论
0点赞
发布博客于 2 月前

mysql主从配置对解决并发有用_Mysql主从配置,实现读写分离(亲测可行)

大型网站为了软解大量的并发访问,除了在网站实现分布式负载均衡,远远不够。到了数据业务层、数据访问层,如果还是传统的数据结构,或者只是单单靠一台服务器扛,如此多的数据库连接操作,数据库必然会崩溃,数据丢失的话,后果更是 不堪设想。这时候,我们会考虑如何减少数据库的联接,一方面采用优秀的代码框架,进行代码的优化,采用优秀的数据缓存技术如:memcached,如果资金丰厚的话,必然会想到假设服务器群,来...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

mysql 重建ibdata1_MySQL用批处理命令自动删除重建数据库实现压缩ibdata1文件容量...

MySQL用批处理命令自动删除重建数据库实现压缩ibdata1文件容量一、友情提醒,,以下操作会删除数据库,请事先自行备份数据库文件二、需要3个文件,以下为3个文件的文件名及内容:文件1:Mysql_Drop_DataBase.txt,内容如下:drop database yourdatabase;文件2:Mysql_Create_DataBase.txt,内容如下:create database...
原创
2阅读
0评论
0点赞
发布博客于 2 月前

java springmvc 数据库事务_SpringMVC+MyBatis 事务管理(实例)

前言spring事务管理包含两种情况,编程式事务、声明式事务。而声明式事务又包括基于注解@Transactional和tx+aop的方式。那么本文先分析编程式注解事务和基于注解的声明式事务。 编程式事务管理使用TransactionTemplate或者PlatformTransactionManager。对于编程式事务spring推荐使用TransactionTemplate。一、编程式事务spr...
原创
19阅读
0评论
0点赞
发布博客于 2 月前

java 数组协变_java 数组协变

在某些情况下,即使某个对象不是数组的基类型,我们也可以把它赋值给数组元素。这种属性叫做协变(covariance)。在下面的情况下可以使用协变:数组是引用类型数组。在赋值的对象类型和数组基类型之间有隐式转换或显式转换。由于在派生类和基类之间总是有隐式转换的,因此总是可以将一个派生类的对象赋值给为基类声明的数组。只有数组存在协变,此功能有利也有弊,相对于List 是支持泛型 不支持协变class A...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

java cqrs架构_简单聊聊CQRS

序言Domain Driven Design (DDD)CQRSAxonframeworkMvc vs CQRS参考Domain driver design​ 领域驱动设计 也就是我们在设计系统时的一种模式。领域是个很宽泛的概念,比如银行领域,消费领域等,可大可小。驱动也意味推动,也就是用领域方面的知识来推动软件的设计。(那么也可以有产品驱动设计,测试驱动设计(TDD),也就是产品测试催着开...
原创
10阅读
0评论
0点赞
发布博客于 2 月前

java 前台与后台数据交换_SpringMVC实现前端后台交互传递数据

本人对springmvc前端交互不太懂,搜索了很多关于springmvc前端交互介绍,下面我来记录一下,有需要了解的朋友可参考。希望此文章对各位有所帮助。Controller.java代码:@Controllerpublic class DataController {//一、接收和通过ModelMap传出参数,不需要视图解析器,测试时加了解析器,顾返回值不需后缀//普通参数@RequestMap...
原创
21阅读
0评论
0点赞
发布博客于 2 月前

java map replace_Java HashMap replace()方法

Java HashMap replace()方法java.util.HashMap.replace(K key, V value) 方法仅在先前将键映射为某个值时才用于替换指定键的值。1 语法public V replace(K key, V value)2 参数key:这是必须替换其值的元素的键。value:这是必须与提供的键映射的新值。3 返回值该方法返回与指定键关联的先前值。如果没有映射的键...
原创
8阅读
0评论
0点赞
发布博客于 2 月前

jenkins java配置_通过Jenkins部署java项目

部署java项目-创建私有仓库Jenkins大多数情况下都是用来部署Java项目,Java项目有一个特点是需要编译和打包的,一般情况下编译和打包都是用maven完成,所以系统环境中需要安装maven。本次实验,我们采用git私有仓库的形式,涉及到配置密钥,以zrlog来作为本次实验需要部署的java项目。实验环境:192.168.77.128 作为项目的线上服务器,具有JDK1.8+Tomcat8...
原创
12阅读
0评论
0点赞
发布博客于 2 月前

java ee 设计模式解析与应用_《Java EE 设计模式解析与应用》PDF 下载

图书目录:目 录第Ⅰ部分 Java EE设计模式介绍第1章 设计模式概览 31.1 何为设计模式 41.1.1 如何检测模式,为何需要模式 61.1.2 现实世界中的模式 61.2 设计模式基础 81.3 企业模式 81.3.1 从Java到企业级Java 91.3.2 企业Java模式的出现 101.3.3 设计模式与企业模式 111.3.4 当传统设计模式遇到Jav...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

asobject java_使用Java泛型为实体实现转换器

这是我考虑此问题的解决方案:我假设您对JPA(不是Hibernate)感兴趣我的解决方案不需要扩展任何类,并且应该适用于任何JPA实体bean,它只是您使用的简单类,也不要求实现任何服务或DAO。唯一的要求是转换器直接依赖于JPA库,这可能不是很优雅。它使用辅助方法对bean的ID进行序列化/反序列化。它仅转换实体bean的id,并将字符串与类名和id进行序列化并转换为base64。由于在jpa中...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

java课程设计-音乐播放器_java课程设计---java音乐播放器.doc

java课程设计---java音乐播放器Java程序设计课程设计题 目 java音乐播放器学 号:姓 名:指导教师:完成时间:目 录第一章 系统概述31.需求分析31.1任务目的:3第二章 项目开发计划书以及小组人员分工表42.1 项目开发计划书42.2 小组人员分工表4第三章 总体设计说明43.1 功能描述43.4.1 Mp3播放53.4.2播放控制53.4....
原创
40阅读
0评论
0点赞
发布博客于 2 月前

java 聚类_Java实现聚类算法k-means

1 importjava.sql.Array;2 importjava.util.ArrayList;3 importjava.util.Random;4 importjava.util.Scanner;56 classpoint {7 public float x = 0;8 public float y = 0;9 public int flage = -1;1011 ...
原创
11阅读
0评论
0点赞
发布博客于 2 月前

pom可视化idea_pom.xml标签以及maven在Idea使用

1.pom标签1):构建类型,有pom,jar,war等,默认是jar2)中:依赖范围,取值如下compile:编译时,默认值,跟随项目一期发布。provided:类似compile,期望JDK、容器或使用者会提供这个依赖。如servlet.jar。test:只在测试时使用,用于编译和运行测试代码。不会随项目发布。3):项目信息发布,mvn deploy方法示例如下nexus-releasesht...
原创
36阅读
0评论
0点赞
发布博客于 2 月前

order plan sap 修改紀錄_SAP 计划策略测试一

SAP 电力行业解决方案SAP计划策略测试从今天起,对SAP 策略组逐一进行测试并记录在此。策略组在物料主数据MPR3中维护,配合消耗模式、消耗期间及综合MRP使用。在进行策略组维护之前,应先维护MPR1中的MRP类型。一般情况下,前缀P开头的是指跑MRP,而M开头是指跑MPS。由于MRP type设置中firm type的不同,所以MRP type产生的plan order的固定方式不同p1 自...
原创
12阅读
0评论
0点赞
发布博客于 2 月前

nacos 主备 mysql_微服务架构之Nacos配置中心之配置MySQL数据库

微服务架构之Nacos配置中心之配置MySQL数据库Nacos 在 0.7 版本之前,默认使用的是嵌入式数据库 Apache Derby 来存储数据(内嵌的数据库会随着 Nacos一起启动,无需额外安装);0.7 版本及以后,增加了对 MySQL 数据源的支持。环境要求:MySQL 5.6.5+(生产使用建议至少主备模式,或者采用高可用数据库);1、初始化 MySQL 数据库创建数据库 nacos...
原创
33阅读
0评论
0点赞
发布博客于 2 月前

android mysql 异步_Android致命错误:异步任务(Android Fatal Error: Async Task)

Hey I am having a problem with my application that I can't resolve, I tryed everything I knew about Async Task but I am not good at it.Error:03-17 19:43:38.794 1662-1681/com.cwpsiproject E/AndroidR...
原创
12阅读
0评论
0点赞
发布博客于 2 月前

loadrunner启动脚本_性能测试LoadRunner操作流程之一

1.1loadrunner压力测试原理本质就是在loadrunner上模拟多个用户同时按固定行为访问web站点。其中固定行为在loadrunner中是通过录制脚本定义的,多个用户同时访问的策略是在loadrunner的场景中定义的。1.2压测思路通过loadrunner进行压力测试web应用的主要思路分两步:第一步 录制脚本先录制用户请求访问的行为,如用户访问首页,或用户先登陆,后浏览页...
原创
20阅读
0评论
0点赞
发布博客于 2 月前

mysql binlog 自动删除_mysql binlog日志自动清理及手动删除

说明:当开启mysql数据库主从时,会产生大量如mysql-bin.00000* log的文件,这会大量耗费您的硬盘空间。mysql-bin.000001mysql-bin.000002mysql-bin.000003mysql-bin.000004mysql-bin.000005…有三种解决方法:1.关闭mysql主从,关闭binlog;2.开启mysql主从,设置expire_logs_day...
原创
7阅读
0评论
0点赞
发布博客于 2 月前

linux yum源安装mysql_Linux yum安装MySQL5.7

一、安装配置MySQL的yum源检查是否有mysql57-community-dmr这个源,如上图所示。二、yum安装MySQL5.7如果安装失败给CentOS添加rpm源,并且选择较新的源1)下载rpm包[root@iZ2366ycl7sZ software]# wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm --n...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

clojure mysql_Clojure学习入门(7)——连接mysql

Clojure的contrib包中实现了对现有JDBC的封装,在wiki上有连接,该页面上包含了对不同的数据库的连接方法和基本的操作,但是这个页面上没有提供足够的信息,足够一个初学者能够使用Clojure来完成一个SQL操作。本文中我们将利用Clojure和Lein工具,简介一下做开发的基础。当然网上也有非常多对Clojure的SQL操作进行封装的库,我们这里没有使用。首先,配置你的MySQL数据...
原创
8阅读
0评论
0点赞
发布博客于 2 月前

mysql day类型_mysql 数据类型day43

数据类型一数值类型1 整数类型 默认是有符号的unsigned 没有符号 zerofill0t小整数 TINYINT [(m)] 1个字节 8bit 2**8 256m 最多3位 最低 -128 最高255 用于保存一些范围的整数数值范围有符号-128 - 127无符号(unsigned)0-255整数 INT [(m)] 4个字节 32bit 2**32 4294967295m 最多1...
原创
7阅读
0评论
0点赞
发布博客于 3 月前

mysql读取列数据的sql语句_取得MySQL数据库表,列信息的SQL语句

/*取得表信息*/select table_Comment as Script, table_Name as TableName, 0 as id, Create_Time as createDate,CASE table_Type WHEN 'BASE TABLE' then 'U' when 'VIEW' then 'V' ELSE table_Type END as tableType,0 ...
原创
25阅读
0评论
0点赞
发布博客于 3 月前

python字符串补空格输出_python实现指定字符串补全空格、前面填充0的方法

Python zfill()方法返回指定长度的字符串,原字符串右对齐,前面填充0。zfill()方法语法:str.zfill(width)参数width -- 指定字符串的长度。原字符串右对齐,前面填充0。返回指定长度的字符串。以下实例展示了 zfill()函数的使用方法:#!/usr/bin/pythonstr = "this is string example....wow!!!";print...
原创
131阅读
0评论
0点赞
发布博客于 3 月前

python函数定义注意事项_关于Python中自定义函数的一些注记,python,几点,注意事项...

1、函数的文档说明,可以通过help(helpTest)查看函数说明,类似于备注函数功能2、在函数中可以调用全局变量,但是需要先global 声明,全局变量值跟随改变,类似于C#中的 ref 功能3、在自定义函数返回值时,一般有多种可能,多个返回值: 一个返回值元祖 列表 字典 字符串、int类型,( )、[ ] 、 ...
原创
9阅读
0评论
0点赞
发布博客于 3 月前

python selenium截图_Python Selenium截图功能实现代码

目标:执行之后会在D盘生成一个jt+当前时间.png,该图片为百度首页截图一 get_screenshot_as_file# -*- coding: utf-8 -*-from selenium import webdriverimport timedriver = webdriver.Chrome()driver.get('http://www.baidu.com')driver.maximiz...
原创
4阅读
0评论
0点赞
发布博客于 3 月前

nv8 mysql_mySQL 学习 DAY1笔记

我的视频来源是Mosh Hamedani 的SQL for BeginnersB站就有资源视频中用到的材料01 界面schemas:tables, views, stored procedures, functions在table中,可以看到不同类型的result gridtable 之间通过某种关系相互联系02 mySQL 句法注释在syntax 前加入“--” 可以使语句invalid (注释...
原创
3阅读
0评论
0点赞
发布博客于 3 月前

mysql数据提交过程_Mysql 提交Big sql的过程

此处的big sql指的是单条sql的size 超过innodb_log_file_size,通过构造这样的测试,来分析mysql的提交过程。做这个分析的起因是我不是很明白,既然mysql需要将被执行的数据首先写入到redo log file,如果sql 的size 超过innodb_log_file_size的设定,会发生什么样的行为,mysql是否会拒绝这样的big sql?首先将答案抛出:m...
原创
9阅读
0评论
0点赞
发布博客于 3 月前

什么是mysql分发版_MySQL:使用源码分发版还是二进制分发版

选择了MySQL的安装版本后,要做的第二项决策是你是使用源码分发版还是二进制分发版。大多数情况 ,如果你的平台上已经有了一个二进制分发版,你可能使用二进制分发版。大多数平台可以使用原格式二 进制分发版,例如Linux使用RPM文件,Mac OS X使用DMG安装软件包。也可以使用Zip文件或压缩tar文件 。选择二进制分发版的理由:· 二进制分发版比源码分发版更容易安装。· 为了满足不同用户的需求...
原创
9阅读
0评论
0点赞
发布博客于 3 月前

mysql function text_mysql函数 - 沉默的懒猫的个人页面 - OSCHINA - 中文开源技术交流社区...

Returns a value in the range of 1 toNif the stringstris in the string liststrlistconsisting ofNsubstrings. A string list is a string composed of substrings separated by“,”characters. If the ...
原创
8阅读
0评论
0点赞
发布博客于 3 月前

导出百万数据优化 分批写入_POI如何高效导出百万级Excel数据?

在一个具有统计功能的系统中,导出excel功能几乎是一定的,如何导出excel?导出的数据有多少?如何高效的导出?Excel简介什么是excel就不用介绍了,这里主要说明不同版本下每个sheet下的行列限制。版本区间行数列数文件后缀Excel 2003及以下65535256xlsExcel 2007及以上104857616384xlsx由上面可知 Excel 2003及以下是无法实现单s...
原创
40阅读
0评论
0点赞
发布博客于 3 月前

java 操作mysql 实例代码_java操作mysql入门代码实例(含插入、更新和查询)

代码如下:import java.sql.*;public class mysql {public static String url = "jdbc:mysql://localhost:3306/test";//characterEncoding=GBKpublic static String username = "root";public static String password = "...
原创
6阅读
0评论
0点赞
发布博客于 3 月前

mysql查询数据库名6_MySQL数据库操作(6)查询

准备工作创建并进入数据库:CREATE DATABASE`info`;USE `info`;#创建学院表:CREATE TABLE`department`(`id`INT PRIMARY KEYAUTO_INCREMENT,`name`VARCHAR(20) NOT NULL);#创建学生表:CREATE TABLE`student`(`s_id`INT PRIMARY KEYAUTO_INCRE...
原创
7阅读
0评论
0点赞
发布博客于 3 月前

mysql数据库远程访问权限_打开MySQL数据库远程访问的权限

在我们使用mysql数据库时,有时我们的程序与数据库不在同一机器上,这时我们需要远程访问数据库。缺省状态下,mysql的用户没有远程访问的权限。下面介绍两种方法,解决这一问题。1、改表法可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhos...
原创
5阅读
0评论
0点赞
发布博客于 3 月前

mysql 5.7.13 log_第三个模块 MySQL5.7 通过binlog日志恢复数据

现在test表没有了,我想恢复test表!那我们就使用binlog日志文件来恢复查看binlog日志文件,记录下要恢复的开始位置和结束位置# cd /var/log/mysql/# sudo mysqlbinlog --base64-output=decode-rows -v mysql-bin.000005 # 5.7版本对sql语句加密了,使用--base64-output=decode-ro...
原创
5阅读
0评论
0点赞
发布博客于 3 月前

mysql配置优化查询缓存_mysql 查询优化之缓存

1,启用查询优化query_cache_size=128Mquery_cache_type=1如果设置为0,那么可以说,你的缓存根本就没有用,相当于禁用了。但是这种情况下query_cache_size设置的大小系统是否要为其分配呢,这个问题有待于测试?如果设置为1,将会缓存所有的结果,除非你的select语句使用SQL_NO_CACHE禁用了查询缓存。如果设置为2,则只缓存在select语句中通...
原创
4阅读
0评论
0点赞
发布博客于 3 月前

mysql初始的数据库_mysql 初始数据库简单操作

:mysql -hlocalhost -P3306 -uroot -pselect user();select version();修改密码: mysqladmin -uroot -p旧密码 password "新密码"关系型数据库# 1.有表的概念# 2.以表中一条条记录存储数据# mysql oracle sqlServer access db2# 非关系型数据库# 1.没有表的概念# 2.通...
原创
4阅读
0评论
0点赞
发布博客于 3 月前

mysql链接数据时执行字符集_PHP连接MySQL的字符集问题

之前我在一篇文章里面讲到把故人居网站升级为UTF8字符集,看过的也知道一些有关PHP和MySQL字符集的问题,通常情况下MySQL默认使用的字符集是latin1,如果我们的系统要使用utf8或者别的字符集,就需要对MySQL进行配置,并且在PHP程序中做一点处理,大致的方法如下:1.修改my.ini (或者my.cnf)文件,在文件的[mysqld]中加入下面一行character_set_ser...
原创
6阅读
0评论
0点赞
发布博客于 3 月前

mysql binlog 二进制_mysql 的binlog 是二进制日志?

mysqlbinlog功能是将 MySQL 的binlog日志转换成MySQL 文本SQL语句,默认情况下binlog日志是二进制文件.用file命令查看文件类型$ file mysql-bin.002149mysql-bin.002149: MySQL replication log直接用xxd命令查看(二进制)$ xxd -l 1024 mysql-bin.00214900000000: fe...
原创
1阅读
0评论
0点赞
发布博客于 3 月前

mysql jsp项目_CentOS7--部署JSP网站项目(环境架构jsp+mysql+tomcat)

前序:本次实验主要是将我的JSP毕业设计项目部署到云服务器上,通过手机浏览器直接访问,因为还是学生,像阿里和腾讯都有学生价的云主机10元/月,所以我购买了一个月的Centos7实例进行实验并且开通了4元/年(.xyz)的域名解析。软件版本:CentOS 7.4java-1.8.0-openjdkApache-tomcat-8.5MySQL-5.6(1)安装JDK#安装epel源,epel源包含很多...
原创
10阅读
0评论
0点赞
发布博客于 3 月前

mysql 5.5 乱码_MySQL 5.5 解决中文乱码问题

在使用MYSQL时遇到中文乱码的问题,表现为插入数据后查询时输出为??(乱码), 在百度了n多不靠谱的教程之后,终于走出此坑,过程记录之.判断情况statusmysql > status; 首先查看版本信息和编码方式,可以看到下面四个characterset有的为latin1. 简单来说,我们的目标所有Latin1 都改成 utf8.charsetmysql> show variabl...
原创
12阅读
0评论
0点赞
发布博客于 3 月前

html2canvas截图地图和看到的不一样_Web项目集成截图功能

html2canvas官网:https://html2canvas.hertzen.com/官网截图介绍html2canvas是一个不依赖第三方的截图插件,使用它可以在用户浏览器截取网页或部分网页的屏幕截图;屏幕截图是基于DOM的,所以它可能无法保证100%和看到的一致,因为它实际上不是真正的屏幕截图,而是根据页面的信息构造出的图片。由于它的工作原理,暂时只支持它所支持的css属性,详细的文档可以...
原创
7阅读
0评论
0点赞
发布博客于 3 月前

mysql 多主一从_MySQL5.7多主一从(多源复制)同步配置

多主一从,也称为多源复制,数据流向:主库1 -> 从库s主库2 -> 从库s主库n -> 从库s应用场景数据汇总,可将多个主数据库同步汇总到一个从数据库中,方便数据统计分析。读写分离,从库只用于查询,提高数据库整体性能。部署环境注:使用docker部署mysql实例,方便快速搭建演示环境。但本文重点是讲解主从配置,因此简略描述docker环境构建mysql容器实例。数据库:MyS...
原创
7阅读
0评论
0点赞
发布博客于 3 月前

androidstudio build tools安装_一步搞定Android Studio 使用.9图片

一、概述:.9图我们大家都不陌生,以前使用eclipse的时候,都是直接去sdk目录下面的tools中找到 draw9patch.bat 批处理命令,打开之后会出现制作.9图的工具。需要注意的是:图片左方和上方画黑线,意味着可以拉伸的区域,右方和下方画线意味着内容填充的区域,很简单!~好吧,其实android studio也可以这样使用,但是编辑过后的.9图放到drawable中的时候出...
原创
15阅读
0评论
0点赞
发布博客于 3 月前

mybatis没有事务管理的能力_MyBatis事务管理机制

1. 事务的配置我们在使用 MyBatis 时,一般会在 MyBatisXML 配置文件中定义类似如下的信息: 节点定义了连接某个数据库的信息,其子节点 的 type 会决定我们用什么类型的事务管理机制。2. 事务工厂的创建MyBatis 事务的创建是交给 TransactionFactory 事务工厂来创建的,如果我们将 的 type 配置为 "JDBC", 那么,在 MyBatis 初始化解...
原创
10阅读
0评论
0点赞
发布博客于 3 月前

海力士内存命名_英特尔再添对手,SK海力士积极开发新一代SCM

韩国DRAM和NAND制造商SK海力士(SK Hynix)正积极开发新一代存储级内存(Storage Class Memory,简称SCM),这是目前第五家SCM供应商,其他四家分别是Intel、美光、三星以及WD。早在六个月前,在旧金山举行的IEEE国际电子器件会议(IEDM)上,SK海力士研究人员提交了《高性能,经济高效的2z nm双层交叉点存储器,通过自对准方案集成128 Gb S...
原创
2阅读
0评论
0点赞
发布博客于 3 月前

大学生职业生涯规划书性格特征_大学生职业生涯规划书【十篇】

【导语】未来的生活我们无法窥见,但我们却可以通过自己的努力和拼搏去创造出一个自己满意的未来!以下是整理的大学生职业生涯规划书,欢迎阅读!【篇一】大学生职业生涯规划书一、前言从我们呱呱坠地就开始了我们人生的旅程。人生的曲折与坎坷铸就了我们对生活的百折不挠,也磨练了我们坚韧不拔的毅力。人们常说:'人无远虑,必有近忧。“如何使我们的人生显得更有价值,体现生命的意义?我想拟定一份职业生涯规划书是我们不可或...
原创
61阅读
0评论
0点赞
发布博客于 3 月前

jwt token 附加用户信息_Spring Boot 整合 JWT 实现单点登录及权限验证

package cn.frankfang.filter;import java.io.PrintWriter;import java.util.ArrayList;import java.util.Collection;import java.util.HashMap;import java.util.List;import java.util.Map;import javax.servlet.F...
原创
13阅读
0评论
0点赞
发布博客于 3 月前

redis抽奖并发_Lua入门和redis搭配应对高并发抽奖

Lua是一个小巧的脚本语言由标准C编写而成, 其设计目的是为了嵌入应用程序中,从而为应用程序提供灵活的扩展和定制功能.Lua和redis搭配使用也可以应对高并发等业务.1.Lua语法Lua是一个对大小写敏感的语言.Lua中有八种基本类型:nil,boolean,number,string,function,userdata,thread,table. Nil类型只有一种值nil,它的主要用途用于标...
原创
15阅读
0评论
0点赞
发布博客于 3 月前

jemeter kafka key是什么_springboot快速整合kafka

不定期分享java相关技术干货,每天进步一点点,欢迎关注,一起交流!开始:首先在windows下启动kafka启动方法如下:首先下载kafka,zookeeper安装包:修改下为你配置的文件路径修改如图文件zookeeper启动:复制下面那个配置文件,重命名为zoo.cnf,然后启动就可以了在启动kafka不知道为什么我再本机上,一直点击启动文件无法启动,后来采用启动窗口启动的:.binwindo...
原创
2阅读
0评论
0点赞
发布博客于 3 月前

Adding this piece of code r = sr.Recognizer() device_index = 1 with sr.Microphone(device_index,16000,2048) as source: r.adjust_for_ambient_noise(source) logging.info("checked minimum energy threshold to {}".format(r.energy_threshold)) time.sleep(1.0)

I am able to do STT

回答的问题 #How to monkey-patch the Recognizer.listen method?
回答了问题于 3 月前

does this solved your error because i am having the same problem

回答的问题 #How to monkey-patch the Recognizer.listen method?
回答了问题于 3 月前

you can check your project whether includes a file named "hyperopt.py" or "hyperopt.pyc", if you found, delete them. I have encountered the same problem like you, and fixed it through this way.

回答的问题 #Hyperopt installation on Windows using Anaconda
回答了问题于 3 月前

feel like there will be no inline datepicker

回答的问题 #Support for inline datepicker with the new styles
回答了问题于 3 月前

Thanks, fixed.

回答的问题 #Make failed on ubuntu 14.04
回答了问题于 3 月前

Make failed on ubuntu 14.04

gcc -Wall -lncurses -lm cv.o sizes.o hlist.o -o cv anabrodov cv.o: In function nprintf': /home/anabrodov/bin/cv/cv.c:72: undefined reference tovwprintw' cv.o: In function nfprintf': /home/anabrodov/bin/cv/cv.c:83: undefined reference tovwprintw' cv.o: In function nperror': /home/anabrodov/bin/cv/cv.c:91: undefined reference toprintw' cv.o: In function monitor_processes': /home/anabrodov/bin/cv/cv.c:465: undefined reference tostdscr' /home/anabrodov/bin/cv/cv.c:465: undefined reference to wclear' /home/anabrodov/bin/cv/cv.c:466: undefined reference tostdscr' /home/anabrodov/bin/cv/cv.c:466: undefined reference to wrefresh' /home/anabrodov/bin/cv/cv.c:514: undefined reference tostdscr' /home/anabrodov/bin/cv/cv.c:514: undefined reference to wclear' /home/anabrodov/bin/cv/cv.c:515: undefined reference tostdscr' /home/anabrodov/bin/cv/cv.c:515: undefined reference to wrefresh' cv.o: In functionint_handler': /home/anabrodov/bin/cv/cv.c:581: undefined reference to endwin' cv.o: In functionmain': /home/anabrodov/bin/cv/cv.c:597: undefined reference to initscr' /home/anabrodov/bin/cv/cv.c:609: undefined reference tostdscr' /home/anabrodov/bin/cv/cv.c:609: undefined reference to wrefresh' /home/anabrodov/bin/cv/cv.c:614: undefined reference toendwin' hlist.o: In function set_hlist_size': /home/anabrodov/bin/cv/hlist.c:12: undefined reference toceil' collect2: error: ld returned 1 exit status

Some missing dependencies?

该提问来源于开源项目:Xfennec/progress

0回答
发布问题于 3 月前

Laravel 5.3 (Passport) issue

when i run => php artisan passport:install it give me => Call to a member function getDateFormat() on null this my User Model :

<?php

namespace App;

use Illuminate\Notifications\Notifiable; use Jenssegers\Mongodb\Eloquent\Model as Eloquent; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Foundation\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;

class User extends Eloquent implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract { use Authenticatable, Authorizable, CanResetPassword , Notifiable;


/*<em>
 * The attributes that are mass assignable.
 *
 *  array
 </em>/
protected $fillable = [
    'name', 'email', 'password',
];
<p>/*<em>
 * The attributes that should be hidden for arrays.
 *
 *  array
 </em>/
protected $hidden = [
    'password', 'remember_token',
];
</p>

}

该提问来源于开源项目:jenssegers/laravel-mongodb

0回答
发布问题于 3 月前

thanks jpellissari for the response , i think this repo will take much time to be integrated with all new laravel 5.3 components

回答的问题 #Laravel 5.3 (Passport) issue
回答了问题于 3 月前

danke!

回答的问题 #resource/aws_elasticsearch_domain: Add support for encrypt_at_rest
回答了问题于 3 月前

That's great! Thanks 👍

回答的问题 #Exception when setting only logo icon in 5.0.0rc1
回答了问题于 3 月前

Exception when setting only logo icon in 5.0.0rc1

I checked that...

  • [x] ... the documentation does not mention anything about my problem
  • [x] ... the problem doesn't occur with the default MkDocs template
  • [x] ... the problem is not in any of my customizations (CSS, JS, template)
  • [x] ... there are no open or closed issues that are related to my problem

Description

In the configuration, when specifying a custom icon as logo, but not a custom repo icon, a jinja2.exceptions.TemplateNotFound is raised.

Expected behavior

The logo icon should be set, and the repo icon should fallback to the default.

Actual behavior

A jinja2.exceptions.TemplateNotFound is raised. As a workaround, we can set the repo icon the configuration.

Steps to reproduce the bug

  1. Start a mkdocs-material project
  2. Set this in the theme configuration:
yaml
theme:
  name: 'material'
  icon:
    logo: fontawesome/solid/microphone
  1. Run mkdocs serve

Package versions

  • Python: 3.7.5
  • MkDocs: 1.1
  • Material: 5.0.0rc1

Project configuration

 yaml
site_name: FastAPI Users
site_description: Ready-to-use and customizable users management for FastAPI

theme:
  name: 'material'
  palette:
    primary: 'red'
    accent: 'red'
  icon:
    logo: fontawesome/solid/microphone
  favicon: 'favicon.png'

repo_name: frankie567/fastapi-users
repo_url: https://github.com/frankie567/fastapi-users
edit_uri: ""

markdown_extensions:
  - markdown_include.include:
      base_path: docs
  - toc:
      permalink: true
  - admonition
  - codehilite
  - pymdownx.superfences
  - pymdownx.tasklist

System information

  • OS: macOS 10.15.2
  • Browser: Chrome 80

该提问来源于开源项目:squidfunk/mkdocs-material

0回答
发布问题于 3 月前

nice!

I thought I saw somewhere on AWS' CW console that they said they were working to make the CloudWatch built-in triggers exposed better via the API. Maybe they made a change recently and now the ability is there?

回答的问题 #aws_cloudwatch_event_target role_arn and built-in target
回答了问题于 3 月前

,

I have been able to go over this error. If you are using KMS Encryption, you can go around this issue using data as followed below.

data "aws_kms_key" "account_kms_alias" { key_id = "${var.kms_alias}" }

I noticed that every time I would use kms_key_id, it would replace the EFS instance. Although, using the data and refer to it like this : data.aws_kms_key.account_kms_alias.arn, if would work just fine and as espected.

Let me know if it helped.

回答的问题 #EFS not idempotent even when using creation_token
回答了问题于 3 月前

If anyone can share how they plan on using this feature in an automated - i.e. CI/CD - mechanism - I'd love to hear it! Cheers!

回答的问题 #r/ecs_service: Add EXTERNAL to deployment_controller
回答了问题于 3 月前

This is a pretty important thing to have in TF, especially for teams working with extensive data resources. Are there any updates here or is anyone specifically working on adding this yet? This has been stale for almost two years now.

回答的问题 #DeletionPolicy Attribute - Retain
回答了问题于 3 月前

+1

回答的问题 #Embedded functionality gone?
回答了问题于 3 月前

So basically it looks like this: Filename ='abc.jpg' encoded = base64.b64encode(open(Filename, 'rb').read()) html='《img src="data:image/jpeg;base64,{}"》'.format #replace 《》with <> resolution, width, height = 75, 50, 25 iframe = IFrame(html(encoded.decode('UTF-8')), width=(widthresolution)+20, height=(heightresolution)+20) popup = folium.Popup(iframe, max_width=1000) icon = folium.Icon(color="red", icon="ok") marker = folium.Marker(location=[37.426, -122.085], popup=popup, icon=icon) marker.add_to(m)

回答的问题 #View image on popup
回答了问题于 3 月前

I finally figured out what's wrong (thanks to the log): I am redirected because my ratio is under 1 these days.

Here is the log in case you want to supposed this use case:


2018-09-11 20:46:27.6374 Info Request starting HTTP/1.1 POST http://localhost:9117/api/v2.0/indexers/yggtorrent/config application/json 456 
2018-09-11 20:46:27.6452 Info Route matched with {action = "UpdateConfig", controller = "IndexerApi"}. Executing action Jackett.Server.Controllers.IndexerApiController.UpdateConfig (JackettConsole) 
2018-09-11 20:46:27.6452 Info Authorization was successful. 
2018-09-11 20:46:27.6542 Info Executing action method Jackett.Server.Controllers.IndexerApiController.UpdateConfig (JackettConsole) with arguments (Jackett.Common.Models.DTO.ConfigItem[]) - Validation state: Valid 
2018-09-11 20:46:27.6569 Debug WebClient(HttpWebClient).GetString(Url:https://www.yggtorrent.is/user/login) 
2018-09-11 20:46:27.9741 Debug WebClient(HttpWebClient): Returning OK =>  
2018-09-11 20:46:27.9752 Debug CardigannIndexer (yggtorrent): Cookies after login: ygg_=ncnr7b1jicmukosnh4ro5ghomh24vajp 
2018-09-11 20:46:27.9752 Debug WebClient(HttpWebClient).GetString(Url:https://www.yggtorrent.is/) 
2018-09-11 20:46:28.1320 Debug WebClient(HttpWebClient): Returning TemporaryRedirect => https://www.yggtorrent.is/user/disabled  
2018-09-11 20:46:28.1343 Info Executed action Jackett.Server.Controllers.IndexerApiController.UpdateConfig (JackettConsole) in 488.5379ms 
2018-09-11 20:46:28.1343 Error Jackett.Common.ExceptionWithConfigData: Login Failed, got redirected.
  at Jackett.Common.Indexers.CardigannIndexer+<testlogin>d__20.MoveNext () [0x00102] in <7c43dfd28c5f46ca8a3420e207d3dd23>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Jackett.Common.Indexers.CardigannIndexer+<applyconfiguration>d__24.MoveNext () [0x000d2] in <7c43dfd28c5f46ca8a3420e207d3dd23>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Jackett.Server.Controllers.IndexerApiController+<updateconfig>d__13.MoveNext () [0x0012d] in <aeebd36c20214225a735d127c5f613de>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor+TaskOfIActionResultExecutor+<execute>d__0.MoveNext () [0x00071] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<invokeactionmethodasync>d__12.MoveNext () [0x00131] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<invokenextactionfilterasync>d__10.MoveNext () [0x0009e] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow (Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) [0x0001b] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next (Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+State& next, Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+Scope& scope, System.Object& state, System.Boolean& isCompleted) [0x00382] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<invokeinnerfilterasync>d__13.MoveNext () [0x0002f] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<invokenextresourcefilter>d__23.MoveNext () [0x0009f] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow (Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context) [0x0001b] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next (Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+State& next, Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+Scope& scope, System.Object& state, System.Boolean& isCompleted) [0x00840] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<invokefilterpipelineasync>d__18.MoveNext () [0x0002f] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<invokeasync>d__16.MoveNext () [0x0012e] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Builder.RouterMiddleware+<invoke>d__4.MoveNext () [0x001cb] in <0c4aed80d53349aab59d38ff83ba08f0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<invoke>d__6.MoveNext () [0x00384] in <f5622e7f79be469e83d9e2bde9addd07>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware+<invoke>d__7.MoveNext () [0x0043e] in <6ec74abaae414d0a97ef0613561299ae>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Jackett.Server.Middleware.CustomExceptionHandler+<invoke>d__3.MoveNext () [0x0008a] in <aeebd36c20214225a735d127c5f613de>:0  Jackett.Common.ExceptionWithConfigData: Login Failed, got redirected.
  at Jackett.Common.Indexers.CardigannIndexer+<testlogin>d__20.MoveNext () [0x00102] in <7c43dfd28c5f46ca8a3420e207d3dd23>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Jackett.Common.Indexers.CardigannIndexer+<applyconfiguration>d__24.MoveNext () [0x000d2] in <7c43dfd28c5f46ca8a3420e207d3dd23>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Jackett.Server.Controllers.IndexerApiController+<updateconfig>d__13.MoveNext () [0x0012d] in <aeebd36c20214225a735d127c5f613de>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor+TaskOfIActionResultExecutor+<execute>d__0.MoveNext () [0x00071] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<invokeactionmethodasync>d__12.MoveNext () [0x00131] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<invokenextactionfilterasync>d__10.MoveNext () [0x0009e] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow (Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) [0x0001b] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next (Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+State& next, Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+Scope& scope, System.Object& state, System.Boolean& isCompleted) [0x00382] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<invokeinnerfilterasync>d__13.MoveNext () [0x0002f] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<invokenextresourcefilter>d__23.MoveNext () [0x0009f] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow (Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context) [0x0001b] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next (Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+State& next, Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+Scope& scope, System.Object& state, System.Boolean& isCompleted) [0x00840] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<invokefilterpipelineasync>d__18.MoveNext () [0x0002f] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<invokeasync>d__16.MoveNext () [0x0012e] in <703e2bb4fd86407aa6c8a21fddb328a9>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Builder.RouterMiddleware+<invoke>d__4.MoveNext () [0x001cb] in <0c4aed80d53349aab59d38ff83ba08f0>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<invoke>d__6.MoveNext () [0x00384] in <f5622e7f79be469e83d9e2bde9addd07>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware+<invoke>d__7.MoveNext () [0x0043e] in <6ec74abaae414d0a97ef0613561299ae>:0 
--- End of stack trace from previous location where exception was thrown ---
  at Jackett.Server.Middleware.CustomExceptionHandler+<invoke>d__3.MoveNext () [0x0008a] in <aeebd36c20214225a735d127c5f613de>:0 
2018-09-11 20:46:28.1429 Info Request finished in 505.4301ms 500 application/json 
</aeebd36c20214225a735d127c5f613de></invoke></invoke></f5622e7f79be469e83d9e2bde9addd07></invoke></invoke></invokeasync></invokefilterpipelineasync></invokenextresourcefilter></invokeinnerfilterasync></invokenextactionfilterasync></invokeactionmethodasync></execute></aeebd36c20214225a735d127c5f613de></updateconfig></applyconfiguration></testlogin></aeebd36c20214225a735d127c5f613de></invoke></invoke></f5622e7f79be469e83d9e2bde9addd07></invoke></invoke></invokeasync></invokefilterpipelineasync></invokenextresourcefilter></invokeinnerfilterasync></invokenextactionfilterasync></invokeactionmethodasync></execute></aeebd36c20214225a735d127c5f613de></updateconfig></applyconfiguration></testlogin>

Updated the issue title.

回答的问题 #[yggtorrent] Login Failed, got redirected when ratio under 1. (Config)
回答了问题于 3 月前

so if you want us to dig deeper then we are going to need a full enhanced log.

OK will do ASAP, in the meantime here is my environment that I forgotten to indicate in the first message: Ubuntu 18.04 with Mono 5.14.0.177. Chrome 68.0.3440.106 and Firefox 61.0.1 accessing locahost.

By the way I have a weird bug with the password on FF (works fine with Chrome) making impossible to write in the password text input so I have to use the dom editor to set it, I don't think it's related.

回答的问题 #[yggtorrent] Login Failed, got redirected when ratio under 1. (Config)
回答了问题于 3 月前

[yggtorrent] Login Failed, got redirected when ratio under 1. (Config)

Jacket version: 0.10.134 and 0.10.142

Error: "Login Failed, got redirected."

The credentials are right (if I put the wrong one I get "401 Unauthorized, check your credentials").

The base URL used by Jacket ("https://www.yggtorrent.is/") looks right to me.

该提问来源于开源项目:Jackett/Jackett

0回答
发布问题于 3 月前

-ch I did it already, travis failing on 1.9.3 because of keyword arguments, and JRuby.

回答的问题 #Threads naming
回答了问题于 3 月前

-ch tests green except for 1.9.3 (and some weird jruby issues). Should I adopt my code for 1.9.3?

回答的问题 #Threads naming
回答了问题于 3 月前

Threads naming

Fixes #785

Thread name examples:

  • Without executor name worker-1

  • With executor name MyExecutor-worker-1

该提问来源于开源项目:ruby-concurrency/concurrent-ruby

0回答
发布问题于 3 月前

Using Visual Studio 16.6, migrating WPF app to target .netcore3.1(.300). Cannot compile with error below:

Error MC1000 Unknown build error, 'Could not find assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Either explicitly load this assembly using a method such as LoadFromAssemblyPath() or use a MetadataAssemblyResolver that returns a valid assembly.' MyApp C:\Program Files\dotnet\sdk\3.1.300\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets 225

Is this the same issue? I seem to have most current .netcore (3.1.300) and VS16.6.0.

Any suggestions how to get compiled?

回答的问题 #Updating to 16.4 from 16.3.x causes build issues with WPF project file.
回答了问题于 3 月前

RARBG bencoding with qbittorrent

Hello,

I am currently having an issue using the blackhole directory with RARBG torrents. When I select a torrent to send to the blackhole folder, qbittorrent rejects the file. When I add torrents from other trackers, it works perfectly fine. When I try to open a .torrent file manually that Jackett placed in the Blackhole folder, I get a bencoding error. Downloading torrent files directly from RARBG are working perfectly fine for me though. I have no other issues with Jackett and magnet links work well.

Jackett v 0.10.692.0 Windows Server 2016 Caddy Webserver (but issue happens on 127.0.0.1 also)

该提问来源于开源项目:Jackett/Jackett

0回答
发布问题于 3 月前

Thanks for the update!

回答的问题 #Windows install via scoop downloads file from sourceforge that is from different repository?
回答了问题于 3 月前