博客园 - Go_Forward
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=64309
2024-01-30T12:04:06Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
feed.cnblogs.com
https://www.cnblogs.com/buxizhizhoum/p/16426488.html
golang 笔记 - Go_Forward
for循环,一个key在一个map中,则一直迭代 for _, ok := mapping[key]; ok; _, ok = mapping[key]{ // do something } go总是使用值传递,但是有些数据类型是引用类型,比如map, pointer, channel, slice
2022-06-30T05:06:00Z
2022-06-30T05:06:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】for循环,一个key在一个map中,则一直迭代 for _, ok := mapping[key]; ok; _, ok = mapping[key]{ // do something } go总是使用值传递,但是有些数据类型是引用类型,比如map, pointer, channel, slice <a href="https://www.cnblogs.com/buxizhizhoum/p/16426488.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/16364335.html
es 文本搜索 - Go_Forward
match, match_phrase, match_phrase_prefix 三个都会对查询词和文本进行分词后进行查询 match只要查询词分词结果和源数据分词结果匹配,就可以命中 match_phrase需要查询词分词和源数据分词顺序一致,切默认两者相邻 match_phrase_prefix
2022-06-10T10:41:00Z
2022-06-10T10:41:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】match, match_phrase, match_phrase_prefix 三个都会对查询词和文本进行分词后进行查询 match只要查询词分词结果和源数据分词结果匹配,就可以命中 match_phrase需要查询词分词和源数据分词顺序一致,切默认两者相邻 match_phrase_prefix <a href="https://www.cnblogs.com/buxizhizhoum/p/16364335.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/16264833.html
RecursionError: maximum recursion depth exceeded - Go_Forward
环境 python 版本3.6.4 gevent 1.5.0 gunicorn 20.1.0 错误 RecursionError: maximum recursion depth exceeded while calling a Python object 错误原因 根据错误栈,出问题的代码在pyt
2022-05-12T14:56:00Z
2022-05-12T14:56:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】环境 python 版本3.6.4 gevent 1.5.0 gunicorn 20.1.0 错误 RecursionError: maximum recursion depth exceeded while calling a Python object 错误原因 根据错误栈,出问题的代码在pyt <a href="https://www.cnblogs.com/buxizhizhoum/p/16264833.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/16112710.html
mysql 多表join优化 - Go_Forward
多表join的sql EXPLAIN SELECT employee.name, department.name, project.name FROM employee left join department on employee.department_id = department.id le
2022-04-07T07:44:00Z
2022-04-07T07:44:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】多表join的sql EXPLAIN SELECT employee.name, department.name, project.name FROM employee left join department on employee.department_id = department.id le <a href="https://www.cnblogs.com/buxizhizhoum/p/16112710.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/15705543.html
es index template - Go_Forward
建一个索引的步骤 1:先创建轮滚策略 2:创建模板 3:创建索引 创建轮滚策略 PUT _ilm/policy/this_is_an_index_policy { "policy" : { "phases" : { "hot" : { "min_age" : "0ms", "actions" : {
2021-12-18T09:30:00Z
2021-12-18T09:30:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】建一个索引的步骤 1:先创建轮滚策略 2:创建模板 3:创建索引 创建轮滚策略 PUT _ilm/policy/this_is_an_index_policy { "policy" : { "phases" : { "hot" : { "min_age" : "0ms", "actions" : { <a href="https://www.cnblogs.com/buxizhizhoum/p/15705543.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/15545054.html
什么是元类 - Go_Forward
Python中一切皆对象,类也是对象,元类就是创建类的类
2021-11-12T07:59:00Z
2021-11-12T07:59:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】Python中一切皆对象,类也是对象,元类就是创建类的类 <a href="https://www.cnblogs.com/buxizhizhoum/p/15545054.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/15156259.html
mac 工作区 - Go_Forward
https://www.zhihu.com/question/20917614 http://www.bjhee.com/mission-control.html 窗口切换 https://sspai.com/post/43611
2021-08-18T04:35:00Z
2021-08-18T04:35:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】https://www.zhihu.com/question/20917614 http://www.bjhee.com/mission-control.html 窗口切换 https://sspai.com/post/43611 <a href="https://www.cnblogs.com/buxizhizhoum/p/15156259.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/15067164.html
es date_histogram强制补零 - Go_Forward
es补零 GET /cars/transactions/_search { "size" : 0, "aggs": { "sales": { "date_histogram": { "field": "sold", "interval": "month", "format": "yyyy-MM-dd
2021-07-27T09:43:00Z
2021-07-27T09:43:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】es补零 GET /cars/transactions/_search { "size" : 0, "aggs": { "sales": { "date_histogram": { "field": "sold", "interval": "month", "format": "yyyy-MM-dd <a href="https://www.cnblogs.com/buxizhizhoum/p/15067164.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14982095.html
mongo笔记 - Go_Forward
获取stats from pymongo import MongoClient client = MongoClient() db = client.test # print collection statistics print db.command("collstats", "events")
2021-07-07T08:24:00Z
2021-07-07T08:24:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】获取stats from pymongo import MongoClient client = MongoClient() db = client.test # print collection statistics print db.command("collstats", "events") <a href="https://www.cnblogs.com/buxizhizhoum/p/14982095.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14906949.html
flask 中的endpoint有什么用? - Go_Forward
url到view function之间的一个中间概念,默认是view function的名字,相比于直接使用view function, 使用end point 提供了一个命名空间,可以让不同蓝图的view function有相同名称的view function https://stackoverf
2021-06-20T07:49:00Z
2021-06-20T07:49:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】url到view function之间的一个中间概念,默认是view function的名字,相比于直接使用view function, 使用end point 提供了一个命名空间,可以让不同蓝图的view function有相同名称的view function https://stackoverf <a href="https://www.cnblogs.com/buxizhizhoum/p/14906949.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14851250.html
python -m参数 - Go_Forward
把模块当做脚本运行,标准库和第三方库都可以 会把当前路径添加到sys.path中
2021-06-04T12:24:00Z
2021-06-04T12:24:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】把模块当做脚本运行,标准库和第三方库都可以 会把当前路径添加到sys.path中 <a href="https://www.cnblogs.com/buxizhizhoum/p/14851250.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14847442.html
sql注入 - Go_Forward
pypolaris
2021-06-03T14:19:00Z
2021-06-03T14:19:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】pypolaris <a href="https://www.cnblogs.com/buxizhizhoum/p/14847442.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14821690.html
mysql 存储ipv6 - Go_Forward
自定义列 https://groups.google.com/g/sqlalchemy/c/lZw0GipVYFw https://docs.sqlalchemy.org/en/14/core/custom_types.html#types-sql-value-processing
2021-05-28T04:12:00Z
2021-05-28T04:12:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】自定义列 https://groups.google.com/g/sqlalchemy/c/lZw0GipVYFw https://docs.sqlalchemy.org/en/14/core/custom_types.html#types-sql-value-processing <a href="https://www.cnblogs.com/buxizhizhoum/p/14821690.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14813602.html
python微服务 - Go_Forward
https://realpython.com/python-microservices-grpc/ https://github.com/saqibbutt/python-flask-microservices https://github.com/PacktPublishing/Hands-on-
2021-05-26T07:17:00Z
2021-05-26T07:17:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】https://realpython.com/python-microservices-grpc/ https://github.com/saqibbutt/python-flask-microservices https://github.com/PacktPublishing/Hands-on- <a href="https://www.cnblogs.com/buxizhizhoum/p/14813602.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14807776.html
sqlalchemy insert or ignore - Go_Forward
insert ignore # insert ignoreinsert_stmt = TimePoint.__table__.insert().prefix_with(" ignore").values(data) session.execute(insert_stmt) # insert on d
2021-05-25T02:58:00Z
2021-05-25T02:58:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】insert ignore # insert ignoreinsert_stmt = TimePoint.__table__.insert().prefix_with(" ignore").values(data) session.execute(insert_stmt) # insert on d <a href="https://www.cnblogs.com/buxizhizhoum/p/14807776.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14742637.html
flask gevent - Go_Forward
flask的不同部署方式 使用gevent部署,只是在不同请求之间是异步的,同一个请求之间还是串行的。 https://iximiuz.com/en/posts/flask-gevent-tutorial/
2021-05-07T13:09:00Z
2021-05-07T13:09:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】flask的不同部署方式 使用gevent部署,只是在不同请求之间是异步的,同一个请求之间还是串行的。 https://iximiuz.com/en/posts/flask-gevent-tutorial/ <a href="https://www.cnblogs.com/buxizhizhoum/p/14742637.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14736727.html
阻塞非阻塞,同步异步 - Go_Forward
大多数情况下,对socket来说,阻塞和同步是一个东西 阻塞:调用后,等待,直到拿到结果 非阻塞:调用后,api返回一个错误,后面调用方轮训或者api通知调用方 异步:调用后,api立即返回,结果ready后,通知调用方 https://stackoverflow.com/questions/262
2021-05-06T12:07:00Z
2021-05-06T12:07:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】大多数情况下,对socket来说,阻塞和同步是一个东西 阻塞:调用后,等待,直到拿到结果 非阻塞:调用后,api返回一个错误,后面调用方轮训或者api通知调用方 异步:调用后,api立即返回,结果ready后,通知调用方 https://stackoverflow.com/questions/262 <a href="https://www.cnblogs.com/buxizhizhoum/p/14736727.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14643984.html
python grpc 微服务 - Go_Forward
https://realpython.com/python-microservices-grpc/ https://www.manning.com/books/developing-microservice-apis-with-python https://www.freecodecamp.org/
2021-04-11T07:26:00Z
2021-04-11T07:26:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】https://realpython.com/python-microservices-grpc/ https://www.manning.com/books/developing-microservice-apis-with-python https://www.freecodecamp.org/ <a href="https://www.cnblogs.com/buxizhizhoum/p/14643984.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14639304.html
pylint代码静态检查 - Go_Forward
使用git-pylint-commit-hook工具 pre-commit脚本 配置文件放在仓库根目录/hooks下面 git-pylint-commit-hook --limit=9.0 --pylintrc=hooks/.pylintrc 配置 [BASIC] # Regular express
2021-04-09T15:45:00Z
2021-04-09T15:45:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】使用git-pylint-commit-hook工具 pre-commit脚本 配置文件放在仓库根目录/hooks下面 git-pylint-commit-hook --limit=9.0 --pylintrc=hooks/.pylintrc 配置 [BASIC] # Regular express <a href="https://www.cnblogs.com/buxizhizhoum/p/14639304.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/buxizhizhoum/p/14634863.html
git hook 共享 - Go_Forward
https://stackoverflow.com/questions/427207/can-git-hook-scripts-be-managed-along-with-the-repository
2021-04-08T13:05:00Z
2021-04-08T13:05:00Z
Go_Forward
https://www.cnblogs.com/buxizhizhoum/
【摘要】https://stackoverflow.com/questions/427207/can-git-hook-scripts-be-managed-along-with-the-repository <a href="https://www.cnblogs.com/buxizhizhoum/p/14634863.html" target="_blank">阅读全文</a>