首页 文章 精选 留言 我的

精选列表

搜索[系统工具],共10000篇文章
优秀的个人博客,低调大师

PPOCRLabel 半自动化图形标注工具初体验;

Windows + Anaconda 下载安装Anaconda(Python 3+) conda install pyqt=5 cd ./PPOCRLabel # 将目录切换到PPOCRLabel文件夹下 pyrcc5 -o libs/resources.py resources.qrc python PPOCRLabel.py 按官方文档执行完上述命令 报错1:is 和 is not不能识别,手动替换对应py文件中的 is 为‘==’ is not 替换为 ‘!=’ 报错2: 明明已经安装了,还是报这个错!因为是非专业的python小白,折腾了很久,最后直接 将anaconda3\Lib\site-packages下对应包复制到PPOCRLabel目录下即可!后续还报了个lxml模块找不到的错误,也是同样的解决方法! 效果图如下所示: 下载安装命令 ## CPU版本安装命令 pip install -f https://paddlepaddle.org.cn/pip/oschina/cpu paddlepaddle ## GPU版本安装命令 pip install -f https://paddlepaddle.org.cn/pip/oschina/gpu paddlepaddle-gpu >>访问 PaddlePaddle 官网,了解更多相关内容。

优秀的个人博客,低调大师

BeetlSQL 2.13.8.RELEASE 发布,Java 数据库访问工具

本次修复同BeetlSQL3的修复内容 Spring 集成增加了支持事务超时的设置 修复了一个并发情况下的对数据库元数据操作的Bug <dependency> <groupId>com.ibeetl</groupId> <artifactId>beetlsql</artifactId> <version>2.13.8.RELEASE</version> </dependency> Spring Stater <dependency> <groupId>com.ibeetl</groupId> <artifactId>beetl-framework-starter</artifactId> <version>1.2.38.RELEASE</version> </dependency>

优秀的个人博客,低调大师

esrally测试工具,针对现有集群,自定义track

安装 Python 3.8+ including pip3, git 1.9+ pip3 install esrally 高级配置 esrally configure --advanced-config (可多次执行) Enter the benchmark root directory (default: /home/apps/.rally/benchmarks): Using default value '/home/apps/.rally/benchmarks' Enter your Elasticsearch project directory: (default: /home/apps/.rally/benchmarks/src/elasticsearch): Using default value '/home/apps/.rally/benchmarks/src/elasticsearch' Where should metrics be kept? (1) In memory (simpler but less options for analysis) (2) Elasticsearch (requires a separate ES instance, keeps all raw samples for analysis) (default: 1): 2 Enter the host name of the ES metrics store (default: localhost): Using default value 'localhost' Enter the port of the ES metrics store: 9200 Use secure connection (True, False) (default: False): Username for basic authentication (empty if not needed) (default: ): Password for basic authentication (empty if not needed) (default: ): Enter a descriptive name for this benchmark environment (ASCII, no spaces) (default: local): rally_demo Do you want Rally to keep the Elasticsearch benchmark candidate installation including the index (will use several GB per trial run)? (default: False): Configuration successfully written to /home/apps/.rally/rally.ini. Happy benchmarking! rally-metrics-*:记录race中所有的采样数据(性能报告数据都是基于采样数据汇总得出的结果),可以通过采样数据看到具体抖动情况进行具体分析 rally-results-*:基于上面的采样数据进行详细的数据汇总,针对每个指标进行汇总,可以针对每个指标进行最终的结果展示 rally-races-:把最终性能压测结果(即我们看到的输出数据)展示出来,一个文档就是一次race压测 将测试结果放入开启x_pack集群中需要配置 vim .rally/rally.ini [reporting] #datastore.ssl.verification_mode = none datastore.ssl.certificate_authorities = /home/elasticsearch/client-ca.cer 使用 配置代理下载track export http_proxy=http://proxy.acme.org:8888/ /root/.rally/logs/rally.log将记录 Rally connects via proxy URL [http://proxy.acme.org:3128/] to the Internet (picked up from the environment variable [http_proxy]). esrally list tracks 类似于赛道的意思 nested 嵌套文档 percolator 过滤查询 eventdata geoshape geopoint 地理查询 so geopointshape noaa metricbeat nyc_taxis 高度数据化结构 http_logs pmc 全文搜索 geonames 结构化数据 对现有集群进行基准测试 esrally --track=pmc --target-hosts=10.5.5.10:9243,10.5.5.11:9243,10.5.5.12:9243 --pipeline=benchmark-only --client-options="use_ssl:true,verify_certs:true,basic_auth_user:'elastic',basic_auth_password:'changeme'" --user-tag="intention:baseline_github_1234" --report-file=result.csv --report-format=csv rally可以组成分布式集群,并可以根据配置文件进行测试,因为没有试过,这里不再赘述 esrally list races 对比两场比赛 esrally compare --baseline=0bfd4542-3821-4c79-81a2-0858636068ce --contender=beb154e4-0a05-4f45-ad9f-e34f9a9e51f7 创建track mkdir .rally/benchmarks/data/XXX 获取数据 allCountries.txt 转换为json格式 vim toJSON.py import json cols = (("geonameid", "int", True), ("name", "string", True), ("asciiname", "string", False), ("alternatenames", "string", False), ("latitude", "double", True), ("longitude", "double", True), ("feature_class", "string", False), ("feature_code", "string", False), ("country_code", "string", True), ("cc2", "string", False), ("admin1_code", "string", False), ("admin2_code", "string", False), ("admin3_code", "string", False), ("admin4_code", "string", False), ("population", "long", True), ("elevation", "int", False), ("dem", "string", False), ("timezone", "string", False)) def main(): with open("allCountries.txt", "rt", encoding="UTF-8") as f: for line in f: tup = line.strip().split("\t") record = {} for i in range(len(cols)): name, type, include = cols[i] if tup[i] != "" and include: if type in ("int", "long"): record[name] = int(tup[i]) elif type == "double": record[name] = float(tup[i]) elif type == "string": record[name] = tup[i] print(json.dumps(record, ensure_ascii=False)) if __name__ == "__main__": main() python3 toJSON.py > documents.json 编写track.json 检查是否可用esrally info --track-path=~/rally-tracks/tutorial track解剖 {% set index_count = 2 %} #设置循环次数 { "version": 2, "description": "Tutorial benchmark for Rally", "indices": [ { "name": "geonames", #要操作索引的名称 "body": "index.json" } ], "corpora": [ #此轨道使用的所有文档语料库 { "name": "rally-tutorial", "documents": [ { "source-file": "documents.json", "document-count": 11658903, "uncompressed-bytes": 1544799789 } ] } ], "schedule": [ #具体执行的操作 { "operation": { "operation-type": "delete-index" #操作类型 } }, { "operation": { "operation-type": "create-index" } }, { "operation": { "operation-type": "cluster-health", "request-params": { "wait_for_status": "green" } } }, { "operation": { "operation-type": "bulk", "bulk-size": 5000 }, "warmup-time-period": 120, "clients": 8 }, { "operation": { "operation-type": "force-merge" } }, { "operation": { "name": "query-match-all", "operation-type": "search", "body": { "query": { "match_all": {} } } }, "clients": 8, #发起请求客户端数量 "warmup-iterations": 1000, #预热,不显示在测量结果中 "iterations": 1000, #执行次数 "target-throughput": 100 #尽可能慢地运行任务,target-throughput/clients/s qps } ] } 配置parallel实现并行执行语句 https://esrally.readthedocs.io/en/latest/track.html https://elasticsearch-benchmarks.elastic.co/# https://learnku.com/articles/41047

优秀的个人博客,低调大师

PMD 6.26.0 发布,多语言静态代码自动分析工具

PMD 6.26.0 发布了。PMD 是一个代码分析器,能够帮助发现常见的编程问题,比如未使用的变量、空的 catch 块、不必要的对象创建等等。最初仅支持 Java 代码,目前还可支持 JavaScript、Salesforce.com Apex 和 Visualforce、PLSQL、Apache Velocity、XML 和 XSL 。 这是一个小的更新版本,处理了156 项 commit,关闭了43 项 PR,主要更新内容包括: 新规则: 新的 Java 规则UnusedAssignment(java-bestpractices)查找从未使用过且无用的变量分配。新规则应该被完全取代 DataflowAnomalyAnalysis。 修改的规则: 现在 Java 规则ArrayIsStoredDirectly(java-bestpractices) 默认会忽略私有方法和构造函数,可以通过将新属性设置 allowPrivate为“false”来还原旧行为。 此外修复了一些 bug,并有 API 变更,详情查看更新说明: https://github.com/pmd/pmd/releases/tag/pmd_releases%2F6.26.0

资源下载

更多资源
腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册