weixin_39563132的博客

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

python函数操作逻辑_python_函数操作_函数三大理论

匿名函数:匿名函数就是指不需要显示的指定函数用lambda表示,默认return结果在Python中如果一个元素被创建了,但是并没有一个变量来接受这个元素,则解释器会自动释放这个函数的内存空间比起def而言,虽然lambda不能进行复杂的逻辑计算,但是他比def更加的简便,但是需要配合别的函数使用,一般不单独使用name = lambda x:x+1a= name(1)print(a)#2编程的方...
原创
0阅读
0评论
0点赞
发布博客于 14 天前

mysql返回flout_PHP格式化MYSQL返回float类型的方法

本文实例讲述了PHP格式化MYSQL返回float类型的方法。分享给大家供大家参考,具体如下:PHP 中获取mysql的float字段,echo 输出后,小数部分为包含多个0.可使用 floatval($num) 将0舍去。如要保留小数位,可使用 number_format($num, 2);number_format函数对超过指定位数的值,进行了四舍五入。如不想四舍五入,而保留所有小数。可使用如...
原创
1阅读
0评论
0点赞
发布博客于 15 天前

deepin java_Deepin Linux 安装JDK

最近在自己的笔记本上安装了Deepin Linux,虽然使用过程中发现一些bugs,但是总体感觉还不错,准备把她作为开发系统使用。系统自带的JDK是Open JDK,但是在做JAVA开发的时候通常需要用到的是Oracle JDK,所以需要安装配置Oracle JDK。下载安装Oracle JDK下载JDK的tar.gz包因为我开发用到的是JDK7所以下载的是:也可以到Oracle官网下载最新的JD...
原创
1阅读
0评论
0点赞
发布博客于 15 天前

MySQL Java学习_java学习---mysql数据库编程

//步骤1:新建一个数据库,数据库名为interactive_community,字段:id,cNickName,cNickName,cPassword.(具体代码中显示)//步骤2:先下载mysql驱动,建立好工程,引入mysql连接驱动 3. //步骤3:代码如下//主函数package com.dragon.mysql;import java.sql.Connection;import j...
原创
0阅读
0评论
0点赞
发布博客于 16 天前

jsp 连接mysql空指针_JSP连接数据库 空指针异常怎么解决

Integer aa=(Integer)session.getAttribute("id");Integer rest=(Integer)session.getAttribute("rest");int tempid=aa.intValue();int flag=0;Connection conn=null;PreparedStatement pstat=null;DBConn db=new DB...
原创
1阅读
0评论
0点赞
发布博客于 17 天前

paypal ipn java_【官方】Paypal的IPN示例

包括几个流行的网站开发环境的示范代码。尽管此代码已经过PayPal测试,但PayPal无法对其用途负责。ASP.Net/C#using System;using System.IO;using System.Text;using System.Net;using System.Web;public partial class csIPNexample :System.Web.UI.Page{pro...
原创
1阅读
0评论
0点赞
发布博客于 17 天前

java neo4j maven_如何让java和neo4j在eclipse中工作

我使用薄荷17.2和neo4j 3.06社区版它在localhost:7474运行正常.我希望使用Eclipse Mars 2在Java 1.08中编程,但我无法使其工作.我正在使用maven项目,并在我的pom.xml中有以下内容xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/ma...
原创
1阅读
0评论
0点赞
发布博客于 18 天前

java消息引擎_JavaLib | 消息引擎的妙用

JavaLib开始支持消息引擎啦。这里我们以支付方式的选择来进行演示。闲话少说,直接进入今天的主题。项目搭建1、你需要用Spring Boot搭建一个项目2、引入 JavaLib...com.github.fengwenyiJavaLib1.0.4.RELEASE...jitpack.iohttps://jitpack.io写代码1、编写Handler。需要实现 Handler 接口中的 exec...
原创
3阅读
0评论
0点赞
发布博客于 18 天前

java swing常用类_Java_Swing(三)——Swing常用组件

1、JLabelJLabel类是用来创建标签的组件,标签的功能是只显示文本,不能动态地编辑文本。JLabel类的常用方法2、JTextField文本框文本框与文本区主要是用来提供输入和输出文本功能的组件。JTextField类主要有下列方法:3、JTextArea文本区文本区组件可以输入和显示多行文本。JTextArea不管理滚动,可把它放置在JScrollPane的ViewPort中实现滚动,如...
原创
2阅读
0评论
0点赞
发布博客于 21 天前

java dom4j 读xml文件_使用Dom4j实现对XML文件读取和生成

在实际项目的开发当中经常会遇到对XML文件的解析,常用的第三方解析XML的组件也很多,例如像DOM,SAX,JDOM和Dom4J。在这几款解析XML组件当中最优秀也是最容易学的也就属DOM4j了,在这篇文章中我将介绍如何使用DOM4j实现对XML文件的读取和创建。在Eclipse中创建Java工程项目,并右键项目建立lib文件夹导入DOM4J的jar包,建立如下包目录结构。如下图所示:其中mode...
原创
0阅读
0评论
0点赞
发布博客于 21 天前

java小数点代码_Java中保留小数点的方法

[java]代码库import java.math.BigDecimal;import java.math.RoundingMode;import java.text.DecimalFormat;import java.text.NumberFormat;/** Java中保留小数点的方法*/public class GetNum {public static void main(String[]...
原创
1阅读
0评论
0点赞
发布博客于 21 天前

java json-rpc_JSON-RPC-Java 学习笔记(三) -JSON-RPC-Java框架实践

#re: JSON-RPC-Java 学习笔记(三) -JSON-RPC-Java框架实践2009-05-24 10:37 | pangzwtype Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this reques...
原创
0阅读
0评论
0点赞
发布博客于 21 天前

常见的java异常处理_关于Java异常Exception最常见的十大问题

1 受检异常 VS 非受检异常简单的说,受检异常必须在方法中被显示的捕捉,或者在方法的throws语句中被抛出。非受检异常是由哪些在程序编译时不能被解决的问题所引起的,常见的有除以0,空指针等等。受检异常非常重要,因为你希望其他使用你的程序API的开发者知道如何去处理这些异常。例如,IOException是一个使用的很多的受检异常,RuntimeException则是一个最常见的非受检异常。Pas...
原创
1阅读
0评论
0点赞
发布博客于 21 天前

python ctypes实现api测试_python和ctypes cdll,没有得到预期的函数返回

我正在研究连接触觉机器人和眼动仪的过程.因此,两者都有自己的编程要求,即眼动仪软件基于python,是我编程的主要语言.我们的触觉机器人在C中有一个API,所以我必须在C中编写一个包装器,将其编译为DLL,并在python中使用ctypes来加载这些函数.我用MATLAB测试了我的DLL,一切正常.但是,当我查询机器人的位置坐标时,我在python类中实现ctypes的事情并没有给我预期的返回值....
原创
4阅读
0评论
0点赞
发布博客于 25 天前

iis asp mysql json_asp实现读取数据库输出json代码

Function GetTable(Table,Where,Order,OrderSort,curpage, pagesize,MiniJson)'Author : nigou'使用方法 : Response.Write GetTable(Table表名,Where条件,Order主键(必须),OrderSort(asc,desc),curpage当前页, pagesize每页条数,MiniJso...
原创
3阅读
0评论
0点赞
发布博客于 27 天前

linux系统为mysql创建用户_在Linux系统的命令行中为MySQL创建用户的方法_MySQL

要访问一个MySQL服务器,你需要使用一个用户帐号登录其中方可进行。每个MySQL用户帐号都有许多与之相关连的属性,例如用户名、密码以及权限和资源限制。"权限"定义了特定用户能够在MySQL服务器中做什么,而"资源限制"为用户设置了一系列服务器资源的使用许可。创建或更新一个用户涉及到了对用户帐号所有属性的管理。下面展示了如何在Linux中创建和设置一个MySQL用户。首先以root身份登录到MyS...
原创
3阅读
0评论
0点赞
发布博客于 27 天前

centos 7mysql加tomcat_Centos7系统中安装JDK、Tomcat、Mysql

1.JDK安装使用yum命令安装1.查看是否已安装JDK# yumlistinstalled|grepjava2.安装JDK# yuminstall java-1.8.0-openjdk* 安装java1.8.0所有程序注意:中间输入1次确认(y)直到控制台返回Complete安装成功3.查看java版本信息# Java -version输入javac java命令后显示帮助信息...
原创
0阅读
0评论
0点赞
发布博客于 28 天前

阿里云 mysql 大小写_mysql数据库使用大小写

mysql数据库使用大小写云服务器(Elastic Compute Service,简称ECS)是阿里云提供的性能卓越、稳定可靠、弹性扩展的IaaS(Infrastructure as a Service)级别云计算服务。云服务器ECS免去了您采购IT硬件的前期准备,让您像使用水、电、天然气等公共资源一样便捷、高效地使用服务器,实现计算资源的即开即用和弹性伸缩。阿里云ECS持续提供创新型服务器,解...
原创
8阅读
0评论
0点赞
发布博客于 28 天前

c#访问linux下的mysql_C#远程访问linux(ubuntu)或windows的mysql数据库

1、远程访问数据库大概模型2、mysql在win7、linux上如何设置:2.1、分配权限(linux和win7)进行mysql命令行,进行分配权限、执行GRANTALLPRIVILEGESON*.*TO'Lucy'@'192.168.1.102'IDENTIFIEDBY'123'WITHGRANTOPTION;ALL PRIVILEGES分配所有的权限,如Select、Insert、Delete...
原创
2阅读
0评论
0点赞
发布博客于 29 天前

小绿叶mysql怎么连接_链接数据库-python - python3 基础 - eisc|小绿叶技术博客|linux基础|mysql基础|python|eisc脚本|小绿叶脚本...

C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Scripts#打开python文件目录,复制路径到,计算机属性环境变量path里面粘贴进去打开cmdpip install pymysql#安装mysql---------------------------------------------------------...
原创
11阅读
0评论
0点赞
发布博客于 1 月前

英文版mysql数据导出_Data Loader(数据库导入导出)V4.9.4 英文版

Data Loader(数据库导入导出)是一款专业可靠的数据库程序。能够导出和导入许多常见数据库之间的数据格式。如果你想转换MS SQL Server,CSV或女士访问MySQL,这是最好的工具有效地满足您的特定需求。最新的数据加载程序版本支持MySQL、Oracle女士访问,Excel,信息技术的应用,DBF,MS SQL Server、CSV和带分隔符的平面文件。你现在可以轻松地转换Oracl...
原创
10阅读
0评论
0点赞
发布博客于 1 月前

mysql 远程连接驱动程序_mysql 开启远程连接的三种方法

本文章收藏了三种关于如何开启mysql 远程连接,第一款就是在mysql cmd命令提示符下给mysql开启远程连接的,方法三是修改mysql my.ini的文件配置来修改的哦。方法一样给mysql开启远程连接功能?首先链接本机的mysql(用ssh登录终端,输入如下命令):mysql -uroot -p输入密码登陆进去后,输入如下的语句,执行。grant all privileges on *....
原创
1阅读
0评论
0点赞
发布博客于 1 月前

文件服务器硬件配置_ODOO生产环境服务器硬件配置要求

这里主要包括CPU、内存、网络、硬盘。For a5 user site =2 CPU server and2GB RamFor20 user site =4 CPU server and8GB RamFor100+ user site =recommend splitting app and database servers, 2x 8CPU servers with32...
原创
57阅读
0评论
0点赞
发布博客于 2 月前

thinkphp mysql where_mysql数据库 thinkphp连贯操作where条件的判断不正确的问题

前两天一直写一个基于thinkphp的东西,遇到从mysql数据库里select数据,where条件一直出现问题的情况。直接上代码:$history = M('history');$suerId = $_SESSION['user_id'];$rs=$histroy->where('history_user_id = $userId')->select();上面代码$rs一直返回fal...
原创
3阅读
0评论
0点赞
发布博客于 2 月前

pr预设的卷及内核锐化是什么_PR2018-认识模糊和锐化特效使用

第一章 软件入门知识PR2017-软件入门及安装未学习PR2017-项目及序列详解未学习PR2017-软件界面的介绍与调整未学习第二章 软件工具与操作PR2017-工具栏(1)选择、轨道选择、剃刀工具未学习练习题1PR工具栏的应用(一)PR2017-工具栏(2)波纹_滚动_比例拉伸工具未学习练习题1PR工具栏的应用(二)PR2017-工具栏(3)内外滑_钢笔_抓手_缩放工具未学习练习题1PR工具栏...
原创
14阅读
0评论
0点赞
发布博客于 2 月前

mysql 5.6 升级 5.7_MySQL5.6升级5.7步骤

升级步骤:1、对mysql5.6进行全库备份(******)用于失败倒回2、关闭mysql5.6版本数据库3、将mysql5.7软件部署4、修改配置信息5、修改启动脚本6、启动mysql5.7数据库7、mysql_upgrade升级数据库相关参数8、重启数据库,测试升级结果首先对数据库进行物理备份,利用Percona Xtrabackup.关闭5.6的数据库安装5.7的二进制安装包.修改/etc/...
原创
7阅读
0评论
0点赞
发布博客于 2 月前

词法分析器java_快速实现词法分析器-Parser Combinator

相信每个Scala的爱好者都有读过《Programming in Scala》这本书,书中有一个章节「Combinator Parsing」介绍了一个很有趣的Scala库 – Parser Combinator(https://github.com/scala/scala-parser-combinators)。单从「Parser Combinator」字面并不太好理解它是什么,可以用来做什么。这...
原创
8阅读
0评论
0点赞
发布博客于 2 月前

linux弹窗指令_Linux_普通弹出窗口简易制作,以前我们曾介绍过制作弹出窗 - phpStudy...

普通弹出窗口简易制作以前我们曾介绍过制作弹出窗口的制作方法,网上也有过类似于制作的方法介绍。其实在实际工作中,我发现,不必为每个链接定义一代码,这样可以减少很多的重复代码。只需预先使用JS定义好弹出窗口的属性,在链接处引用一下就能简单的制作出效果来。制作方法:在中,预行定义属性代码:在页面的链接处引用一下JS,代码如下:这样,我们就制作出了简单的弹出窗口的效果。另外,还可对代码中进行改动,产生新开...
原创
15阅读
0评论
0点赞
发布博客于 2 月前

linux apache php mysql下载_linux centos apache+php+mysql 安装

我的系统[root@localhost html]# lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: CentOSDescription: CentOS release 5.5 (Final)Release: ...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

mysql统计id个数_MySQL的统计总数count(*)与count(id)或count(字段)的之间的各自效率性能对比...

执行效果:1.count(1) and count(*)当表的数据量大些时,对表作分析之后,使用count(1)还要比使用count(*)用时多了!从执行计划来看,count(1)和count(*)的效果是一样的。 但是在表做过分析之后,count(1)会比count(*)的用时少些(1w以内数据量),不过差不了多少。如果count(1)是聚索引,id,那肯定是count(1)快。但是差的很小...
原创
6阅读
0评论
0点赞
发布博客于 2 月前

mysql字符集重启还原_mysql 启动1067错误及修改字符集重启之后复原无效问题

下载了官网的解压版mysql-5.6.37-winx64.zip,修改了配置文件,安装服务,直接使用;出现了中文乱码, 解决办法:在mysql-5.6.37-winx64目录下,新创建并配置一个my.ini文件(内容可以从网上找,也可以参考my-default.ini手动配置)注意:[client] 节点位置千万别放错,比如:错误方式:[mysqld]character-set-server=ut...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

沙盒模式eclipse访问不到mysql_eclipse连接不上mysql

该楼层疑似违规已被系统折叠隐藏此楼查看此楼navicat可以连上mysql,在cmd中mysql也可以正常使用,但是eclipse连接不上mysql,报错Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES),mysql是8....
原创
1阅读
0评论
0点赞
发布博客于 2 月前

java后端怎么返回音频流_Java没有返回值的构造函数是怎么完成赋值的?

前言众所周知,在Java里是不能给构造函数写返回值的,如果在低版本的编译器定义一个构造器写上返回值可能会报错,高版本里面他就是一个普通的方法。可是如果构造函数没有返回值,那么比如Test t = new Test()我们new一个对象的时候是怎么赋值的呢?构造函数有返回值吗写一段代码测试一下:public class Test { public Test() { } public...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

mysql+如何避免幻想读_mysql 面试知识点笔记(七)RR如何避免幻读及非阻塞读、范式...

表象:快照读(非阻塞读)--伪MVCC (Multi-Version Concurrent Controll多版本并发控制)内在:next-key锁(record锁+gap锁) rr serializabel 都支持gap锁问:在rr下对主键索引或者唯一索引会用gap锁嘛?如果where条件全部命中,则不会用gap锁,只会加record锁(行锁)如果部分命中或全不命中则会加gap锁比如查询id i...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

php十mysql_注意!PHP开发者常犯的十个MySQL错误

1、使用MyISAM而不是InnoDBMySQL有很多的数据库引擎,单一般也就用MyISAM和InnoDB。MyISAM是默认使用的。但是除非你是建立一个非常简单的数据库或者只是实验性的,那么到大多数时候这个选择是错误的。MyISAM不支持外键的约束,这是保证数据完整性的精华所在啊。另外,MyISAM会在添加或者更新数据的时候将整个表锁住,这在以后的扩展性能上会有很大的问题。解决办法很简单:使用I...
原创
8阅读
0评论
0点赞
发布博客于 2 月前

mysql查询into语句_MySQL select into 和 SQL select into

现在有张表为student,我想将这个表里面的数据复制到一个为dust的新表中去,虽然可以用以下语句进行复制,总觉得不爽,希望各位帮助下我,谢谢。answer 01:create table dust select * from student;//用于复制前未创建新表dust的情况下answer 02:insert into dust select * from student;//已经创建了新...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

mysql 两条相同的记录_mysql用主键查询出两条相同的记录

SELECTa.id,a.user_idASuserId,a.content,a.status,a.create_timeAScreateTime,a.address,a.type,a.people_countASpeopleCount,a.fee_contentASfeeContent,a.active_timeASactiveTime,a.condition,a.pi...
原创
6阅读
0评论
0点赞
发布博客于 2 月前

java连接mysql教程_Java连接MySQL数据库详细教程(附网盘下载地址)

importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.PreparedStatement;importjava.sql.ResultSet;importjava.sql.SQLException;importjava.sql.Statement;public classConnect{public static ...
原创
10阅读
0评论
0点赞
发布博客于 2 月前

mysql查询语句题目_数据库:MySQL查询语句练习题

Sutdent表的定义字段名字段描述数据类型主键外键非空唯一自增Id学号INT(10)是否是是是Name姓名VARCHAR(20)否否是否否Sex性别VARCHAR(4)否否否否否Birth出生年份YEAR否否否否否Department院系VARCHAR(20)否否是否否Address家庭住址VARCHAR(50)否否否否否Score表的定义字段名字段描述数据类型主键外键非空唯一自增Id编号INT...
原创
5阅读
0评论
0点赞
发布博客于 2 月前

linux mysql编号_linux中修改mysql的默认编码

1、登录mysql,查看mysql默认的编码格式show variables like “character%”;如果现实-bash: show: command not found 说明没有登录mysql数据库,需要进行登录结果如下图所示:2、修改my.cnf 文件目录为/etc/my.cnf如果系统中没有my.cnf文件、则需要创建此文件,具体步骤请看3,如果存在,直接跳过步骤3,直接进入步骤...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

mysql代码1005外键_MySQL中的外键:错误1005

I'm a bit confused about adding foreign keys in MySQLWhat I'm trying to do is reference the Students primary key with:CREATE TABLE Enrolled(sid CHAR(20), cid CHAR(20), grade CHAR(2), PRIMARY KEY (sid,...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

mysql 写入一列数据类型_从零开始学MySQL(四) 列的数据类型及其他属性

在创建表时,需给出列的定义。列的定义展开如下:列名 列的数据类型 [列的一些其他属性] 。本文概览:(一)列名的自定义限制(二)列的数据类型(三)列的一些其他属性本文阅读建议:希望读者对“列的数据类型”及“列的一些其他属性”予以重视,并将主要精力放在对它们的学习上(渣渣笔者初入社会时亲身经历过一道笔试题,要求列出某种数据库的数据类型)本文参考自:菜鸟教程(一)列名的自定义限制1. 首先,对于字符...
原创
5阅读
0评论
0点赞
发布博客于 2 月前

博途固件版本不兼容_历程篇:TIA平台 S7-1200 固件及功能更新

SIMATIC S7-1200 PLC V2.0 简介S7-1200 PLC V2.0 必须使用 SIMATIC STEP7 Professional/Basic V11 或更高版本进行组态编程。S7-1200 V1.0 固件版本 CPU 可以通过存储卡无限制升级到CPU固件 V2.0 版本。SIMATIC S7-1200 PLC V2.0 的新功能除了已有的产品功能外,SIMATIC S7-12...
原创
282阅读
0评论
0点赞
发布博客于 2 月前

用python画一个圆、保存、像素28x28_神马?Python也能画画!父与子的编程之旅 学习笔记(14)2018-08-28...

第十六章 图形(1)寻求帮助——Pygame(2)Pygame窗口新建pygame窗口注意这里需要用到while做一个事件循环,否则pygame窗口没有办法关闭,并且窗口会处于死机状态。新建好的pygame窗口(3)在窗口中画图新增了以上三行代码运行结果画圆的具体属性名从画圆的几个属性,我们可以展开来学习:(1)Pygame表面(surface)可以有多个表面,其中这里用到的是screen。另外显...
原创
8阅读
0评论
0点赞
发布博客于 2 月前

niosii spi 外部_niosii boot过程

1 概述Nios II 的boot过程要经历两个过程。FPGA器件本身的配置过程。FPGA器件在外部配置控制器或自身携带的配置控制器的控制下配置FPGA的内部逻辑。如果内部逻辑中使用了Nios II,则配置完成的FPGA中包含有Nios II软核CPU。Nios II本身的引导过程。一旦FPGA配置成功后,Nios II 就被逻辑中的复位电路复位,从reset地址开始执行代码。Nios II 的r...
原创
4阅读
0评论
0点赞
发布博客于 2 月前

vue项目导入本地_.vue文件怎么引入本地图片

vue引入swiper vue使用swiper vue脚手架使用swiper /引入js文件/引入css文件vue引入swipervue使用swipervue脚手架使用swiper/引入js文件/引入css文件欢迎加入前端交流群来获取视频资料以及前端学习资料:749539640转载文章请注明出处! 如果只是.vue文件怎么请求api.vue文件怎么请求api1、首先我们安装axios网络请求库...
原创
25阅读
0评论
0点赞
发布博客于 2 月前

if vue 跳出_vue实现点击一个按钮出现弹框,点击弹框外关闭弹框

View层点击出现弹框点击出现弹框数据层:export default {data() {return {showModal: false};}};样式层:.mask {background-color: #000;opacity: 0.3;position: fixed;top: 0;left: 0;width: 100%;height: 100%;z-index: 1}.pop {backgr...
原创
50阅读
0评论
0点赞
发布博客于 2 月前

lammps python3 shlib_aimdfragmentation-AIMD Fragmentation Calculation-Jinzhe Zeng Requirements Insta...

作者:Jinzhe Zeng### 作者邮箱:jzzeng@stu.ecnu.edu.cn### 首页:https://github.com/njzjz/aimdfragmentation### 文档:None### 下载链接# Automated Fragmentation AIMD Calculation A automated fragmentation method for Ab ...
原创
5阅读
0评论
0点赞
发布博客于 2 月前

删除约束_SQL基础知识——约束(实例)

NOT NULL约束NOT NULL 约束强制列不接受 NULL 值。NOT NULL 约束强制字段始终包含值。这意味着,如果不向字段添加值,就无法插入新记录或者更新记录。下面的 SQL 强制表"Customers" 的"客户ID" 列和 "姓名" 列不接受 NULL 值:CREATE TABLE Customers( 客户ID INT NOT NULL, 姓名 VARCHAR(10) NOT N...
原创
1阅读
0评论
0点赞
发布博客于 2 月前

Yeah Exactly. Even I was not satisfied with the following solution but it made it work so I ignored it. Apart from using odometry sampling ratio, is there no other way to fix this since I do need the odometry data along with LiDAR for my application?

回答的问题 #Error using Odometry data in 2d Cartographer
回答了问题于 2 月前

Hi, Sorry the for the delayed response I did the Validation this time as mentioned. Here is the screenshot for the bag file. validation So I followed like what you suggested that there must be multiple publishers on the clock topic, so I removed --clock from my launch file. <node name="playbag" pkg="rosbag" type="play" args="$(find cartographer_ros)/bag/new_test.bag">

And indeed it was the issue and so no more warning messages. So everything looks good. Cartographer_tjunction

The only thing is in order to run the Cartographer I'm using a low value for odometry_sampling_ratio as mentioned earlier. Thanx alot everyone.

回答的问题 #Error using Odometry data in 2d Cartographer
回答了问题于 2 月前

Yes, I do use --clock. You can see my node playbag (3rd line from the bottom) in the launch file i posted earlier.

回答的问题 #Error using Odometry data in 2d Cartographer
回答了问题于 2 月前

So, I recorded my bag once again including the /clock as well this time. I ran the same configuration by setting use_odometry = true and odometry_sampling_ratio = 0.1 and it is working now. But I'm getting warning messages as you can see in the image. warning_carto I know the error which I was getting was due to the difference in the rate at which data was being published in Gazebo and when launched with Cartographer, it throws an error. Maybe this is not a good workaround but it worked for me. Please correct me if I'm wrong.

回答的问题 #Error using Odometry data in 2d Cartographer
回答了问题于 2 月前

Error using Odometry data in 2d Cartographer

Hi all,

So I recorded a bag file consisting of 2d lidar scan, tf, tf_static and odometry data(fusing imu and wheel odom). rosbag record /tf /tf_static /odometry/filtered /scan

So when i try to use the bag file in cartography without the odometry, it works perfectly fine. In that case I'm using this configuration

`include "map_builder.lua" include "trajectory_builder.lua"

options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "base_link", published_frame = "base_link", odom_frame = "odom", provide_odom_frame = true, publish_frame_projected_to_2d = false, use_odometry = false, use_nav_sat = false, use_landmarks = false, num_laser_scans = 1, num_multi_echo_laser_scans = 0, num_subdivisions_per_laser_scan = 1, num_point_clouds = 0, lookup_transform_timeout_sec = 0.2, submap_publish_period_sec = 0.3, pose_publish_period_sec = 5e-3, trajectory_publish_period_sec = 30e-3, rangefinder_sampling_ratio = 1., odometry_sampling_ratio = 1., fixed_frame_pose_sampling_ratio = 1., imu_sampling_ratio = 1., landmarks_sampling_ratio = 1., }

MAP_BUILDER.use_trajectory_builder_2d = true

TRAJECTORY_BUILDER_2D.use_online_correlative_scan_matching = true TRAJECTORY_BUILDER_2D.use_imu_data = false TRAJECTORY_BUILDER_2D.real_time_correlative_scan_matcher.linear_search_window = 0.15 TRAJECTORY_BUILDER_2D.real_time_correlative_scan_matcher.angular_search_window = math.rad(35.)

POSE_GRAPH.optimization_problem.huber_scale = 1e2

return options` and my launch file is this

launch

and my tf tree is proper in this case carto_grapher_frames

So, the issue comes when I want to use the odometry. For that I just change use_odometry = true in the above lua. And using the same launch file when I try to run I get this error error_karto Can anyone please help me how to enable the odometry so that the cartographer can access both lidar and odometry data to build map and localise itself.

该提问来源于开源项目:cartographer-project/cartographer

5回答
发布问题于 2 月前

Awesome, Thanks! Actually the subdivision and accumulation was exactly the reason why I wanted the scans for each sensor to be separate. But I didn't know that I need to adjust TRAJECTORY_BUILDER_2D.scans_per_accumulation to the number of range finders

回答的问题 #num_laser_scans = 2 breaks real time scan matching?
回答了问题于 2 月前

num_laser_scans = 2 breaks real time scan matching?

I'm not at all sure if this is a problem with our sensor data or with cartographer. Out of interest we wanted to try the feature of feeding two different laser scan sources, even though we have an aggregated scan topic containing the scans of both lasers. Surprisingly the resulting map was mostly devestated screenshot from 2017-09-13 13-36-40. When use_odometry = true (and a version prior to #499) this does not happen, neither when we use the aggregated laser scans (without odometry). Also when using just one of either laser topic the map looks reasonable.

Is there a known case where 2 laser scan topics were used in 2D mapping (without odometry and imu)?

该提问来源于开源项目:cartographer-project/cartographer

3回答
发布问题于 2 月前

I sent you a mail with the data.

回答的问题 #num_laser_scans = 2 breaks real time scan matching?
回答了问题于 2 月前

Ok i'll prepare that

, yes we also have this issue as mentioned. But its not directly related to this one. It's just that odometry solves this issue when its not broken due to other problems (like PR 499 in our case).

回答的问题 #num_laser_scans = 2 breaks real time scan matching?
回答了问题于 2 月前

Alternatively I can repost my suggestions there. I just opened a new issue, because I wanted to discuss a potential implementation with the goal of preparing a pull request afterwards.

回答的问题 #Implementation of an initial pose for new trajectories
回答了问题于 2 月前

Implementation of an initial pose for new trajectories

Hey, I was searching for a way to initialize new trajectories with a pose estimate.

The behaviour I would like to get is that cartographer searches for constraints in a certain window around the given the initial pose in order to connect to trajectory 0 (lets say trajectory 0 is enough for now). At some point the SPG should be optimized and the initial pose estimate would then be improved. If no constraint is found inside the window it should either fail or fall back to global localization.

So, what do you think about saving the initial pose as the current pose of node 0 and submap 0 of the new trajectory by saving it to the respective pose in node_data_ and submap_data_ of the optimization problem? Further I would TrajectoryConnectivityState::Connect() the new trajectory to trajectory 0. This would make respective calls of SparsePoseGraph::ComputeConstraint() to fall into the local search case with the given initial pose as the center of the local search window.

This would be an alternative to #511

该提问来源于开源项目:cartographer-project/cartographer

6回答
发布问题于 2 月前

Please take another look

回答的问题 #Some code documentation
回答了问题于 2 月前

I just noticed that i messed sth. up when resolving merge conflicts :/ I will take care of it on monday

回答的问题 #Some code documentation
回答了问题于 2 月前

Hey, sorry for the delay I was on vacation the last 3 weeks. I hope I didn't overlook anything

回答的问题 #Some code documentation
回答了问题于 2 月前

Thanks for the review! It was quite hard to remember why things where confusing for me when I started to read through the code... :)

回答的问题 #Some code documentation
回答了问题于 2 月前

Some code documentation

When reading through the code a few weeks ago I added comments to parts that took me a long time to understand. I hope these will help others as well.

Obviously I also hope to learn from the reviewer if my assumptions are right! :)

该提问来源于开源项目:cartographer-project/cartographer

0回答
发布问题于 2 月前

Another question about 2.: Can you elaborate on the heavy filtering? The discussion in https://github.com/googlecartographer/cartographer_ros/pull/411 indicates that you want to be able to use old scans for scan matching. Somehow I fail to see how you what to do it without the scan_data. Or to be more precise: I can't think of a way of filtering, that is preserving the scan matching, but inhibits the drawing of submaps.

回答的问题 #Regenerating submap after final optimization
回答了问题于 2 月前
  1. The submaps are slightly skewed so if you would improve the alignment on the lower end (in the screenshot) it would come apart on the other end.
  2. Ok, I see your point there. But for some use cases the accuracy of the map might be more constraining then the memory usage. Would you consider to implement the dropping as an optional feature?
  3. That's actually very interesting then. So lets say we load this old Trajectory with one single big submap and use it for localization. In the new trajectory we would not only keep the last 3 submaps, but also all the submaps that show significant change compared to the patch in the big old map below. After some time we would then bake these "update submaps" into the big old one. For this – and to avoid degenerating the big map over time – we would again need to replay the scans along the optimized trajectory. Or am I missing something here?
  4. Don't be sad :) Its likely a feature that many in the ROS community would love to see. It's just that we hope to use cartographer for mapping as well as for localization in the future. At the moment we in fact use the yaml and pgm from version of cartographer before https://github.com/googlecartographer/cartographer_ros/commit/99da2f20d8ce9a7c9549f68315635b644168a14b to patch small updates into our map. Localization is still done with mrpt
回答的问题 #Regenerating submap after final optimization
回答了问题于 2 月前

Ok maybe i'm too focused about this potential solution already. I will take a step back and explain the problem.

We want to do live-long-slam. Our approach would be to keep a set of submaps that covers the whole area and to remove those submaps that are to some degree covered by newer submaps. (hence #409 ) The problem we see is, that our submaps contain an error from drifting that creates discontinuous and/or double walls when stitching them together. I think the "cartographer way" to improve this would be to reduce the submap size. But we have already quite small ones and performance seams to reduce if we go much lower. By intuition I would also guess that the repetitiveness of the environments where our robots drive dictates a lower bound on the submap size.

Anyway, loop closures were working well after some tuning, so the OccupancyGrid code, that was recently removed, created a very decent map – much better than stitching together the imperfect submaps. So we thought to improve the submaps probability_grid using the same process of replaying the respective scans along the optimized trajectory. On second thought though; question to you : Would this also improve the scan matching against the submap? To my understanding scans are matched against the probability grid, so improving it should improve the matches. After all what we want to achieve is improved localization. Nice looking maps are just considered an indicator for reliability.

About your questions: 1. The output of asset_writer main does in fact look much better. The double walls are gone (see attached images, esp. lower end) 2. Ok I was mostly referring to the following snippet. Could you explain what exactly is going to be removed? I'm not sure if i got you right

 C++
  range_data_inserter.Insert(carto::sensor::TransformRangeData(
        Decompress(node.constant_data->range_data),
        node.pose.cast<float>()),
                               &probability_grid);
  }
</float>

3. Thanks for the pointer I was not even aware of this code and the option to define actions for the asset_writer. However: if we would want to improve the scan matching a "single large (sub)map" would not help... would it? Or are you suggesting to replace a couple of submaps with such a optimized bigger submap? And then to use this for localization? That could actually work for us as well. 4. Sounds cool, but this was not initially our aim when we opened this issue

____ Attached images x-ray stitched_submaps

回答的问题 #Regenerating submap after final optimization
回答了问题于 2 月前

Did anyone start to work on this? Otherwise I would start by trying to reuse the old BuildOccupancyGrid2D code for it.

回答的问题 #Regenerating submap after final optimization
回答了问题于 2 月前

Add odometry term to optimization problem (wip)

This is to address #370 , but it's still work in progress. However since there are a lot of changes related to odometry happening these days I felt it's better to come forward with some intermediate state to avoid double work. A detailed review on this is probably a waste of time but i'm happy for some directions

Unaddressed problems are: * New parameters should be extracted to configuration files. * So far I don't pay attention to the time stamps. * Removing the old consecutive scan distance minimization terms results in a broken trajectory * The translational scaling factor seams to take whatever lower bound I offer it without a visible effect to the map. So probably I have a mistake in the problem formulation. * Probably hard bounds on those parameters are not the best way to go. A penalty with a scaling parameter could be better. * Maybe you prefer odometry parameters to stay outside of cartographer entirely. I could then remove the related code from this PR and open a new issue.

该提问来源于开源项目:cartographer-project/cartographer

1回答
发布问题于 2 月前

Done

回答的问题 #Add odometry term to optimization problem (wip)
回答了问题于 2 月前

Ok ready for another round :)

回答的问题 #Add odometry term to optimization problem (wip)
回答了问题于 2 月前

Please take another look :)

回答的问题 #Add odometry term to optimization problem (wip)
回答了问题于 2 月前

Hey would you like to explain the use case for those manual constraints?

回答的问题 #Custom constraints
回答了问题于 2 月前

调试断点_GDB不同文件断点调试

GDB不同文件断点调试作为一个linux下C/C++开发人员,调试工具是必不可少的一项技能,在windows平台,会有很多工具给我们用,比如VS,自带很强大的调试工具。当然,linux平台也是毫不逊色,GDB工具是一个非常强大的代码调试工具。今天主要介绍的是GDB在多文件中的调试方法,不会一一介绍基础命令的。一、同一个目录中的文件 现在,有三个文件,分别为main.cpp、test1.cpp、te...
原创
0阅读
0评论
0点赞
发布博客于 2 月前

Well thank you for testing and looking into this, it's really appreciated!

Also if you can't test by making the JS changes (it's more tedious to do so I know) you can use this, I don't think (not sure) it works well when composer is minimized, but it at least allows you to test when the composer is open on mobile :) without having to touch the JS

css-less
 (max-width: 767px) {
    .Composer:not(.minimized) {
        position: fixed;
        top: 0 !important;
    }
}

This works great! So, I guess the idea behind having it stuck to the top instead of stuck to the bottom has to do with previewing and tiny screens? My brain is like... hmm, having it at the top is fine. But, comment boxes are usually at the bottom of UIs, no? Regardless I’m going with this CSS now at my sites until there’s something permanent. I’m sure there are very good reasons for going with sticking to top versus bottom. And, I’m sure the JS change works too by the way. If it works for you, I don’t see why it wouldn’t work on iOS.

回答的问题 #Fix composer header hidden by mobile browser
回答了问题于 2 月前

I like the pop up... but, sometimes I wonder if there’s a better fully responsive way. Because it’s not fully responsive right? That’s why we’re having the screen size issues? And having to rely on JavaScript to position it well?

That's what this pull request does, removes the need to position it with javascript, and fixes it to the screen instead. Currently the behavior is an absolute and a set position with JS, so that one can see the discussion behind while scrolling (but there is no need for that since you can minimize the composer anyway). The composer element itself is responsive because it adapts to a better view on smaller screens, it's just that because of the absolute position (changed to fixed in this PR) it creates the 2 linked to issues.

Ok, thanks for explaining! I didn’t get it at first. I’ll hold my breath and cross my figures that all of the devs agree with this pull request for beta 16. I would think it needs to be in beta 16 to ensure full testing before stable.

回答的问题 #Fix composer header hidden by mobile browser
回答了问题于 2 月前

Sorry, no I didn’t do a pull request. Just commenting that the original pull request probably won’t work.

It's hard to tell if you haven't also applied the js changes if this is a bug with the PR or not:

Original solution above, using fixed, for me completely hides composer now.

This may be best. This ensures the composer is at the bottom, similar to how it is on desktop.

That looks nice on your mobile screen, but how does it behave on smaller mobile screens where there is no space for both the keyboard and the composer ? I imagine you wouldn't be able to see the title field anymore.

Also, fixed positioning fixes a problem where the composer is stuck at a specific position in the screen, creating issues when closing the keyboard and other scenarios: https://discuss.flarum.org/d/24831-ui-bug-mobile-postdiscussion-is-not-on-the-screen-sometime

Another way of looking at this is: Unless a better fix can be found relatively quickly.. Should Flarum be a good experience on super tiny screens or a good experience on very popular iPhone screens?

I don't understand what you mean, we are not forced to choose between both, this pull request fixes all issues.

I didn’t look at the pull request. I didn’t realize it included JavaScript too. Sounds great! At least I have a CSS patch for my sites for now which seems to work. I’ll probably do some tiny screen tests later to see what all gets hidden.

I like the pop up... but, sometimes I wonder if there’s a better fully responsive way. Because it’s not fully responsive right? That’s why we’re having the screen size issues? And having to rely on JavaScript to position it well?

I’m sure there are really good reasons. But, I wonder why the post box on mobile isn’t just like the post box on desktop? Where it is responsive and slides up into view.

回答的问题 #Fix composer header hidden by mobile browser
回答了问题于 2 月前

I think there might be the risk that the composer gets hidden by the browser header on small screens, right?

Maybe. But, that’s a risk even if it is left as-is isn’t it? You could also make the composer height a little smaller. It’s close to 250px as-is. It could be changed to 200px or 220px.

Another way of looking at this is: Unless a better fix can be found relatively quickly... Should Flarum be a good experience on super tiny screens or a good experience on very popular iPhone screens? I know both... maybe eventually. But, the very popular iPhone is overlooked too much, IMO.

回答的问题 #Fix composer header hidden by mobile browser
回答了问题于 2 月前

did you only apply the LESS changes or did you also apply JS changes (i.e: all changes done by this PR) ?

Sorry, no I didn’t do a pull request. Just commenting that the original pull request probably won’t work.

回答的问题 #Fix composer header hidden by mobile browser
回答了问题于 2 月前

Original solution above, using fixed, for me completely hides composer now.

This may be best. This ensures the composer is at the bottom, similar to how it is on desktop. It makes the most sense. Composer box adjacent to your virtual keyboard. "But, we want people to be able to scroll and see behind it," some say. 1) You can still scroll up and see other posts. 2) After typing enough content you start to see your new post behind the post box without scrolling. 3) There is the eyeball 👁 preview button. People should use that to see their post before posting. There is very limited real estate on mobile with the keyboard expanded. We should no longer play the “must see everything behind it” game when it comes to mobile.

~~~

(max-width: 767px) { .Composer:not(.minimized) { top: initial !important; bottom: 0 !important;

}

} ~~~

Looks like this:

回答的问题 #Fix composer header hidden by mobile browser
回答了问题于 2 月前

Limit number of displayed items in portfolio widget

Hello,

First: thanks for the amazing work with the Academic theme!

Is your feature request related to a problem? Please describe. No problem.

Describe the solution you'd like

I would like to present the blog posts ("pages" widget) like is done for the portfolio widget, i.e. with the ability to filter articles related to given tags (like "New publication", "Seminar", "Conference", "PhD defence" etc.).

Describe alternatives you've considered

I can actually use a portfolio widget to do it, and I tried, but then I lose the ability to limit the number of shown items. Playing with the portfolio.html file and the range in {{ range $idx, $item := where site.RegularPages "Type" $items_type }}, I got to limit the number of shown items when the filter is "*", but then I lose this when the filter changes (if an article with the wanted tag was published earlier than the limit number, it doesn't appear). I'm pretty sure this is something to change in the js code for isotope filtering, but this far exceeds my skillset... At the moment, I don't do any filtering. I use the "pages" widget with a modified layout: see lab website and the "Highlights" part.

Additional context

I guess that limiting the number of displayed items in the portfolio widget and adding a button "see more" or something like that would also be a useful feature for people with lots of projects.

Thanks! P.S. I did look through existing issues and didn't find anything similar.

该提问来源于开源项目:wowchemy/wowchemy-hugo-modules

4回答
发布问题于 2 月前

Variables inside block tags

This code:


h3.subtitle
  | Title text

Compiles to:

 html
<h3 class="subtitle">
  Title text
</h3>

So the text inside is always placed on a new line.

There's an issue on variables usage, here's an example:


h3.subtitle
  - if $lang == 'de'
    | Title text, de
  - else
    | Title text, en

HTML output:

 html
<h3 class="subtitle">Title text, de
</h3>

There's no new line, text is placed directly after the opening tag. Same happens for the inline tags:


h3.subtitle
  - if $lang == 'de'
    a href='#" Title text, de
  - else
    a href='#" Title text, en

HTML output:

 html
<h3 class="subtitle"><a href="#">Title text, de</a>
</h3>

I hope this issue can be fixed.

该提问来源于开源项目:slim-template/slim

5回答
发布问题于 2 月前

http://snippi.com/s/txcushr

回答的问题 #Variables inside block tags
回答了问题于 2 月前

Slim v2.0.1.

Here's an example http://d.pr/f/1LHG

回答的问题 #Variables inside block tags
回答了问题于 2 月前

It boils down to the fact that Flarum uses a lot of hover effects and hover causes double tapping on touch devices. I know it may seem boring, but I personally try to avoid hover effects all together these days. But I also like very minimal design.

There’s a link to possible solutions above where Franz mentions (pointer: fine). Or, there’s these: https://stackoverflow.com/questions/23885255/how-to-remove-ignore-hover-css-style-on-touch-devices

A nuclear option is ignoring all hover styles completely on smaller screens. As long as that wouldn’t break anything.

Or, the CSS I posted above, although it may not be glamorous, works great (at least for the discussion double tap and as long as no one ever removes the “no-touch” class from core).

回答的问题 #Touch devices of certain widths forced to double tap to open discussion
回答了问题于 2 月前

iPhone XR. Landscape is: 1792 x 828 px

The thing is, there could always be a phone out there now or in the future that has just the right amount of pixels to reproduce this. Ensuring the drop down toggle is hidden for mobile fixes this no matter the width/pixels.

I also think this is more important than the notifications issue since this could prevent someone from opening a discussion. The most basic part of a forum.

回答的问题 #Touch devices of certain widths forced to double tap to open discussion
回答了问题于 2 月前

Could you confirm?

No this is not fixed. It has always worked in portrait mode. But on iPhone as one example when you rotate the phone to landscape, it takes a double tap to open a discussion.

I still have to use the following CSS patch to fix it:

~~~ / Fix double tap to open discussion on touch devices / .DiscussionListItem .Dropdown-toggle.Button { display: none; } .no-touch .DiscussionListItem .Dropdown-toggle.Button { display: block; } ~~~

回答的问题 #Touch devices of certain widths forced to double tap to open discussion
回答了问题于 2 月前

I remember reading about this somewhere. It's intended behavior in iOS, though it can get annoying depending on the use case. Android doesn't do this, as it fires the click event on the first tap as well as hover. Further reading: https://css-tricks.com/annoying-mobile-double-tap-link-issue/

I also sometimes wonder if the last point in this article is the way to go... "It's probably best to just not rely on hover to reveal anything." Hover makes the desktop experience a little better and "cooler," but if one wants to 100% ensure their website works well on all devices with no extra taps, it seems like hover's gotta go. That'd be a pretty big change for Flarum though so probably not a good idea to go that route. :)

回答的问题 #Touch devices of certain widths forced to double tap to open discussion
回答了问题于 2 月前

Touch devices of certain widths forced to double tap to open discussion

Bug Report

Current Behavior Touch devices of certain widths are forced to double tap to open discussions. This is because the CSS media rules only work up to a certain number of pixels. Which works fine for most mobile devices in Portrait mode. However, on an iPhone for example, if you rotate to Landscape, or if you use an iPad in Portrait or Landscape, then the "mobile" version of the site is not used and it takes two taps to open a post. This is because you are served the regular desktop version of the site which includes the three dot toggle menu to the right of each post in the discussions list and the way things are currently coded, the first tap on a touch device does not go into the discussion probably because it is wondering if you are trying to instead open the drop down toggle menu.

This toggle menu is not needed on touch devices no matter the width because the slide to toggle feature works on touch devices even if the normal desktop CSS is being served.

See end of post for possible solution.

Steps to Reproduce 1. Using an iPhone in landscape mode or an iPad go to any Flarum forum. 2. Tap a discussion in the discussions list.

Expected Behavior One tap should open the discussion.

Screenshots I don't think screenshots are truly needed for this report.

Environment - Any iOS environment and most likely any other touch environment. Browser doesn't matter. This happens in Safari iOS, Chrome iOS, and Firefox iOS.

Possible Solution The exact solution is up to core devs, but a temporary fix for current Flarum webmasters is to copy and paste the following CSS into their custom CSS: ~~~ .DiscussionListItem .Dropdown-toggle.Button { display: none; } .no-touch .DiscussionListItem .Dropdown-toggle.Button { display: block; } ~~~

What is this doing? If a "no-touch" device (a regular desktop computer) is detected display the drop down toggle as normal (display:block). This is possible because Flarum already conveniently adds "no-touch" to the body tag with non-touch devices. And then the display:none part of the above CSS ensures the toggle button is not displayed with touch devices. You can still slide to toggle on touch devices, but the 3 dot toggle is hidden which fixes the double tap issue.

该提问来源于开源项目:flarum/core

11回答
发布问题于 2 月前

ubuntu 18.04 中关于"(4)TIM 需要的 Flash 的安装方法"的问题

1 在安装TIM后,根据页面提示,下载了对应的flash.exe,发现自动下载的文件名,与readme中的不一致,导致后面粘贴的命令无法正常执行.希望能将readme中的文件名进行修改. 2 文件名修改后,执行命令,弹出白色窗口,无法进行下一步,终端中提示: Could not load wine-gecko. HTML rendering will be disabled 不知道接下来如何解决这个bug.

该提问来源于开源项目:wszqkzqk/deepin-wine-ubuntu

5回答
发布问题于 2 月前

I found out that this is only an issue if you have not uploaded an avatar yet. It has something to do with the code involved with there not being an avatar. Because if you manage to get an avatar uploaded, say via a desktop computer, then this is no longer an issue on iOS.

Also, if you double tap on the original letter avatar, then it works.

I wonder if this could be the solution. Use the label tag: https://stackoverflow.com/questions/21842274/cross-browser-custom-styling-for-file-upload-button

回答的问题 #iOS Safari & Chrome, Avatar upload, doesn't work.
回答了问题于 2 月前

This is still an issue. I’m on iOS 11.4.1, using Chrome version 68.0.3440.83, which I assume is the latest version as of today.

If I tap the plus sign just right, the iOS upload box slides up as it should. But, it only works every now and then.

I think this is a fairly common problem with iOS and upload buttons if you aren’t using a standard upload button.

Again it’s very inconsistent. So you may think this is no longer an issue one day, then a week later try to upload and it doesn’t work.

回答的问题 #iOS Safari & Chrome, Avatar upload, doesn't work.
回答了问题于 2 月前

Solved. Is this the permanent fix? Maybe not. Maybe transform needs to be completely removed or adjusted some other way. But, here’s a fix. It is now app-navigation that is the culprit.

.App-navigation {transform: initial;}

Here’s video evidence. This video will show me recreating the two jumping issues on my phone. Then it will show me editing the CSS, and then it shows me unable to reproduce the issue since transform:initial fixes it.

https://vimeo.com/492702913

回答的问题 #Scroll to top and menu disappears
回答了问题于 2 月前

Confirming this is still an issue even going into beta 15. But, on top of the top nav bar disappearing, there is also an issue with the tag selector drawer menu on mobile. For my beta 14 installations, for reasons I personally do not fully understand, the following fixes both issues.

.App:before { transform: initial; }

For beta 15 and higher, maybe (not tested yet) the following could work:

.App-header { transform: initial !important; }

See this thread for video of the issue:

https://discuss.flarum.org/d/25669-two-big-issues-solved-with-one-css-rule

回答的问题 #Scroll to top and menu disappears
回答了问题于 2 月前

I tried to reproduce this in the latest versions of Chrome and Firefox for iOS and Android as well as Safari on iOS and Samsung's browser for Android. Unfortunately, I was unable to reproduce this issue even with the steps to reproduce provided in this issue.

Yes, sometimes it’s very hard to reproduce. Other times I get it to happen several times in a row. Here is a gif so that you can fully see what I mean. This shows the demo site, and then the discuss.flarum site as well. This is Chrome iOS, latest version.

F9-C19-D82-CCE2-47-C4-800-D-085-D6855883-E

  • I read about the transform rule here: https://stackoverflow.com/a/10170170 ...notice the first comment under this answer. It seems this rule can fix these types of issues, but also can cause them.

Here are some other people talking about it. Even though these say to add this rule, not remove it, all of these types of posts led me to the idea of removing the rule. Again, since I removed the rule, I can no longer reproduce this at my forum.

https://stackoverflow.com/q/50105780

https://stackoverflow.com/a/18764086

https://stackoverflow.com/a/25923988

I will admit though that this is a very small bug and it may be a while until someone out there can reproduce it to help verify.

I wonder if this transform rule has always been there or if it was added to fix a different bug? So far, I don’t see anything negative happening as a result of me removing this rule at my forum.

回答的问题 #Scroll to top and menu disappears
回答了问题于 2 月前

Scroll to top and menu disappears

Bug Report

Current Behavior On my mobile device when scrolling to the top quickly, sometimes the menu disappears. This happens at the Flarum discuss forum and a forum I have installed as well. Here is a screenshot. The arrow is pointing to a sliver of the new post icon that you can still see. This is to show that the menu text/icons scroll out of view or perhaps don’t get painted back in the right spot in time.

AF2-D8827-C5-BE-4-FA7-B480-41007-D30-D0-BE

Steps to Reproduce 1. Ideally use an iPhone and the Chrome iOS browser 2. Scroll down 3. Quickly swipe up to the top 4. Repeat several times until the menu disappears

Expected Behavior Menu text/icons should not suddenly disappear even if it is rare.

Environment - Flarum version: Beta 11.1 - Website URL: https://discuss.flarum.org - Webserver: ? - Hosting environment: ? - PHP version: ? - Browser: For sure iOS Chrome. Could be other mobile browsers.

Possible Solution This fixed it at my forum and I have not seen any new issues created by doing this. I cancelled out this CSS rule:

transform: translate3d(0,0,0)

Which I believe is located here: https://github.com/flarum/core/blob/master/less/common/mixins/header-background.less

Why does this fix it? I don’t know for sure but I’ve read that many people add this transform rule to fix paint issues (issues similar to this one where elements are disappearing). However, instead of being the fix, it seems this rule is causing the issue.

Is this one rule necessary especially if it is periodically making the main nav bar disappear on certain devices?

该提问来源于开源项目:flarum/core

10回答
发布问题于 2 月前

I can't think of any sites that allow username logins anymore

Twitter? Or am I thinking about that wrong? Maybe that’s not technically a username and/or, I’m sure being Twitter they find other ways to harden security? I get trying to keep usernames more private for security. But, I do think some sites, even some big ones, still have username logins and display usernames. You just need strong passwords. Maybe 2 factor eventually.

Anyway... just saw that comment and thought I’d foolishly for whatever reason go to bat for sites that display usernames and allow username logins. 🙃

I’m actually a fan of going with email only logins or whatever is decided. Or, let the user decide how secure they want to be. A switch in the admin to allow or not allow username logins. I guess that could be an extension. I also guess I’m getting a little off topic.

回答的问题 #Future UTF-8 Support
回答了问题于 2 月前

Temporary duplicate post

Bug Report

Current Behavior Every now and then, after using the more posts pagination button, you will see a duplicate post. It has been happening for a long time. Probably since at least the last few releases. But, since it is rare it is hard to get an example. I finally got an example this morning. I have a theory which might be worth looking into. This duplicate post was a new extension post on discuss.flarum which means it had to be approved. Maybe this is an issue with posts that have to be approved?

Steps to Reproduce 1. Create a post using a tag that requires approval. 2. Approve post. 3. Create other posts until this approved post is at the bottom just above the more posts button. 4. Click the more posts button. Is there a duplicate? If no, then my theory is wrong, but, the fact is this happens from time to time. 🤷🏼‍♂️

Expected Behavior There should never be duplicate posts. Even if only temporary.

Screenshots

3-E2-B030-B-FF63-4431-B639-9-EC1-E2-DFD99-B

Environment - Flarum version: Whatever discuss.flarum is running - Website URL: https://discuss.flarum.org - Webserver: ? - Hosting environment: VPS? - PHP version: ? - Browser: Firefox iOS (but browser doesn’t seem to matter)

该提问来源于开源项目:flarum/core

4回答
发布问题于 2 月前

Well shoot. Just when I thought I somewhat figured this out... I did see that the post content is still in the database, so I guess the content not being on the frontend for me is an extension conflict.

回答的问题 #Update confirmation message when deleting a user
回答了问题于 2 月前