- 博客(30)
- 资源 (1)
- 收藏
- 关注
原创 怎么提取一个python文件中所有得函数名称
这个脚本使用Python的 inspect 模块来获取 functions 模块中的函数名称,并将它们写入一个名为 function_names.txt 的文件。这个文件中将包含 functions.py 文件中定义的每个函数的名称,每个名称占一行。可以通过创建一个Python脚本来读取一个文件(其中包含函数名称),并将这些函数名称写入另一个文件。
2023-09-14 16:43:42
1382
原创 在vscode对flask进行debug模式
大部分人应该是卡到这步,如果不修改路径,开启debug就会一闪而过。如果没有上面这个,需要安装python插件。先找到debug,选择Python。在弹出的框里面选择Flask。完整的配置也可以参考下面的。
2023-06-16 17:44:18
2599
1
原创 ClickHouse问题分析:启动失败,报错 doesn‘t look like the set of parts in ZK
ClickHouse问题分析:启动失败,报错 doesn't look like the set of parts in ZK
2023-05-24 13:58:07
1165
原创 netstat分组统计源ip连接数量,源ip进程数量
在日常运维中,经常有数据库连接过多,但是又不知道是哪些连接,所以可以通过用netstat,awk,sort,uniq,cut,sed组合找到我们想要的答案。
2022-07-13 09:57:27
2026
原创 Python suds-jurko ‘Client‘ object has no attribute ‘last_received‘
Python,suds-jurko,webservice
2022-06-13 21:58:26
254
翻译 ES8.0的安装与基本配置
文章目录ES简介安装8.0下载&验证包&解压缩启动ES简介Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎,能够解决不断涌现出的各种用例。整体参考官方链接安装8.0下载&验证包&解压缩wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.0.0-linux-x86_64.tar.gzwget https://artifacts.ela
2022-02-18 17:16:52
1746
翻译 es bool解释
概念Boolean query 可以基于多个条件的组合对文档进行查询。使用的是Lucene BooleanQuery的映射。它是基于一个或多个布尔子句构建的,每个子句对应一个类型。类型有以下几种:关键词描述must查询的结果必须匹配查询条件,并且计算score。filter查询的结果必须匹配查询条件,和must不太一样的是,不会计算scoreshould查询结果必须符合查询条件should中的一个或者多个,minimum_should_match参数定义了至少满足几
2021-12-13 17:18:02
2552
1
原创 es curl _update_by_query 根据条件更新
使用场景在日常运维中,必不可免的需要对es中的数据进行一些更新,尤其是基于条件的更新。在没有es head的情况下,只能在服务器上使用curl通过es的api进行操作,结合官方文档及网上示例,走了不少弯路,现将可用的命令总结一下。基本用法示例 curl -X POST 'http://192.168.20.20:9200/index_name_*/_update_by_query?pretty' -H 'content-Type:application/json' -d '{"script": {"
2021-12-13 11:08:37
2737
原创 es curl _delete_by_query 根据条件删除
使用场景在日常运维中,必不可免的需要对es中的数据进行一些删除,尤其是基于条件的删除。在没有es head的情况下,只能在服务器上使用curl通过es的api进行操作,结合官方文档及网上示例,走了不少弯路,现将可用的命令总结一下。基本用法示例curl -X POST http://192.168.20.20:9200/index_name_*/_delete_by_query?pretty -H 'Content-Type: application/json' -d '{"query": {"bo
2021-12-12 21:14:58
5964
原创 kafka命令行producer写数据失败,报错 Error when sending message to topic xxx with key:null
报错信息Error when sending message to topic xxx with key:null环境服务器端server.propertieslisteners=PLAINTEXT://kafka1:9092客户端/etc/hosts中无对应的主机解决办法在客户端的/etc/hosts中增加对应的主机映射
2021-07-13 10:30:30
1862
原创 pip 国内源 配置
最近使用 pip 安装包,动辄十几 k 甚至几 k 的下载速度,确实让人安装的时候心情十分不好。所以还是要给 pip 换一个国内的源。可以显著的提升安装速度。有更多的时间来研究算法。 下面,列一下收集到的国内源:阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/si
2017-12-09 16:05:20
16906
1
原创 sickit-image windows 安装
sickit-image windows 安装官方网站: http://scikit-image.org/先使用 pip 进行了安装pip install scikit-image提示缺少 python c 的编译环境,去微软的官方下载 python 的 c 的编译环境地址安装完毕后,再运行pip install scikit-image结果又提示报错,后来索性在这里直接搜了 直接使用这个命令安装
2017-12-09 15:48:09
423
翻译 OpenLayers3-10-Advanced View Positioning
原文地址:http://openlayers.org/en/v3.13.0/examples/center.html 这个例子演示了地图的视角如何根据一个在放置在特定像素点的地理信息或者坐标进行调整。
2016-01-22 00:31:40
1108
翻译 OpenLayers3-8-Custom Tooltips
原文地址:http://openlayers.org/en/v3.13.0/examples/button-title.html这个例子展示了如何使用Bootstrap来定制化你自己的按钮相关的api文档包括: ol.Map,ol.View,ol.layer.Tile,ol.source.OSM<!DOCTYPE html><html> <head> <title>Custom T
2016-01-21 22:50:33
1008
翻译 OpenLayers3-7-Box Selection
原文地址:http://openlayers.org/en/v3.13.0/examples/box-selection.htmlNo countries selected This example shows how to use a DragBox interaction to select features. Selected features are added to the featur
2016-01-21 22:46:04
1313
翻译 OpenLayers3-5-Bing Maps
原文地址:http://openlayers.org/en/v3.12.1/examples/bing-maps.htmlWhen the Bing Maps tile service doesn’t have tiles for a given resolution and region it returns “placeholder” tiles indicating that. Zoom th
2016-01-16 09:40:35
1126
翻译 OpenLayers3-4-Attributions
原文地址:http://openlayers.org/en/v3.12.1/examples/attributions.htmlWhen the map gets too small because of a resize, the attribution will be collapsed. This is because the collapsible option is set to true
2016-01-16 09:33:47
2896
翻译 OpenLayers3-3-Tiled ArcGIS MapServer
原文地址:http://openlayers.org/en/v3.12.1/examples/arcgis-tiled.htmlThis example shows how to use an ArcGIS REST MapService as tiles. This source type supports Map and Image Services. For cached ArcGIS ser
2016-01-16 09:27:24
1812
翻译 OpenLayers3-2-View Animation
原文地址:http://openlayers.org/en/v3.12.1/examples/animation.html This example shows how to use the beforeRender function on the Map to run one or more animations.Related API documentation: ol.Map,ol.Vi
2016-01-15 23:27:53
2511
翻译 OpenLayers3-1-Accessible Map
原文地址:http://openlayers.org/en/v3.12.1/examples/accessible.html This page’s map element has its tabindex attribute set to “0”, that makes it focusable. To focus the map element you can either navigate
2016-01-15 21:38:00
660
原创 shp文件坐标系转换-PostGIS
问题:shp文件坐标转换 工具:PostGIS、PostgreSQL 本例子使用的是北京54转wgs84 参考文献: 1. srid索引: http://spatialreference.org/ref/epsg/21480/ 2. PostGIS官方文档:http://www.postgis.org/docs/reference.html将shp文件导入到Postgresql 1
2015-12-21 11:15:32
5434
原创 shp文件坐标系转换-Arcgis
问题:wgs84转北京54 工具:Arcgis10.0以上版本 1.查看shp文件的坐标系,需要确认shp文件是带坐标系的,如下图所示,坐标系为unknown,需要给shp文件加上坐标系: 2.定义坐标系,使用Data Management Tools → Projections and Transformation → Define Project 来定义坐标系 选项也很简单,就不
2015-12-21 10:49:23
16764
转载 从oracle迁移到DB2(windows版)
因项目原因,需要将数据从oracle迁移到db2参考文章:http://www.ibm.com/developerworks/cn/data/library/techarticle/dm-0906datamovement/实际操作如下:1.下载IBMDataMovementTool.zip。2.解压缩,IBMDataMovementTool下应该有2个jar和1个cmd。3.设
2015-06-09 22:50:56
3283
Google-《SOC建设指南》
2022-06-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人