#ALL

Android GIS开发系列-- 入门季(11) Callout气泡的显示

首先我们要获取MapView中的气泡,通过MapView的getCallout()方法获取一个气泡。看一下Callout的简单介绍:大体的意思是通过MapView获取Callout,可以设置它的内容View,大小,显示的方位等。写一个简单的测试:publicclassMainActivityextendsActivit...

error C2440: “static_cast”: 无法从“LRESULT (__thiscall CTextProgressCtrl::* )(UINT,LPCTSTR)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)

转自原文errorC2440“static_cast”无法从“void(__thiscallC*)(void)...    errorC2440:“static_cast”:无法从“LRESULT(__thiscallCTextProgressCtrl::*)(UINT,LPCT...

ModuleNotFoundError: No module named '_ctypes' make: *** [install] 错误 1

 解决方法https://www.cnblogs.com/sea-stream/p/10388303.html...

git合并分支成功,但是push失败(remote: GitLab: You are not allowed to push code to protected branches on this project.)

 ➜buzzextractorgit:(master)gitmergehotfixUpdating4668fce..9527ae9Fast-forwardbuild_online_images.sh|2+-extractor/buzz/lib/utils.py|2+-extractor/conf/config...
代码星球 ·2020-11-02

centos7 出现“FirewallD is not running”

 原因:没有开启防火墙#提示没有开启防火墙服务,–permanent#永久生效,没有此参数重启后失效[root@uJZ~]#firewall-cmd--permanent--zone=public--add-port=7788/tcpFirewallDisnotrunning#启动防火墙服务[ro...

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe

 test.py importosimportsyssys.path.append("/".join(os.path.dirname(os.path.abspath(__file__)).split("/")[:-1])+'/lib/lib3.7')importyamlwithopen("defau...

subprocess.CalledProcessError: Command ‘(‘lsb_release’, ‘-a’)’ returned non-zero exit status 1.

 subprocess.CalledProcessError:Command‘(‘lsb_release’,‘-a’)’returnednon-zeroexitstatus1.解决方法find/-namelsb_releaserm-rf/...

allure 2

 项目地址https://github.com/allure-framework/allure2/releases 安装文档https://docs.qameta.io/allure/#_installing_a_commandline  下载http://repo.maven....
代码星球 ·2020-11-01

pytest + allure 生成测试报告

 pytest测试样例规则:测试文件以test_开头(以_test结尾也可以)测试类以Test开头,并且不能带有init方法测试函数以test_开头断言使用基本的assert即可ubuntu安装alluresudoapt-add-repositoryppa:qameta/alluresudoapt-getup...

AttributeError: module 'pytest' has no attribute 'allure'

 解决pip3uninstallpytest-allure-adaptorpip3installallure-pytest  参考:https://www.cnblogs.com/lansan0701/p/10345142.html...

try except else finally

 try..except..else没有捕获到异常,执行else语句try..except..finally不管是否捕获到异常,都执行finally语句 ...
代码星球 ·2020-11-01

firewall防火墙常用操作

#firewall防火墙常用操作-启动```systemctlstartfirewalld```-停止```systemctlstopfirewalld```-重启```systemctlrestartfirewalld```-添加端口```firewall-cmd--zone=public--add-port=82/...

maven install的时候把源码一起放到仓库

在pom.xml中加入插件  <build>   <plugins>      <!--Sourceattachplugin-->   &nbs...

Java compiler level does not match the version of the installed Java project facet解决办法

意思就是projectfacet和javacompilerlevel不一致解决办法:修改projectfacet方法一: 选中工程,右键Property->Projectfacet方法二:找到项目所在的目录,在.settings子目录里面,用文本编辑器打开org.eclipse.wst.common.p...
首页上一页...8586878889...下一页尾页