Stay Hungry,Stay Foolish!

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页
摘要: Python TypeError: ‘NoneType’ object is not subscriptable 对None进行脚本标注, 来获取值得写法,产生报错。 subscript 来源 于数学中, 对集合对象 进行索引子元素的写法 a1 其中的1是对a的脚注。 https://itsmyco 阅读全文
posted @ 2022-01-21 23:24 lightsong 阅读(543) 评论(0) 推荐(0)
摘要: Proof of concept -- 可行性验证 https://en.wikipedia.org/wiki/Proof_of_concept Proof of concept (POC), also known as proof of principle, is a realization of 阅读全文
posted @ 2022-01-21 12:15 lightsong 阅读(364) 评论(0) 推荐(0)
摘要: kubernetes https://kubernetes.io/ K8S是自动化部署,伸缩,容器应用的管理工具。 Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, 阅读全文
posted @ 2022-01-10 00:00 lightsong 阅读(120) 评论(0) 推荐(0)
摘要: GITOps https://www.gitops.tech/ 实现云原生应用自动化部署的方法 在运维基础设施时候,聚焦在开发行者中心的体验上, 使用开发者熟悉的工具, 例如git和其它持续发布工具。 GitOps is a way of implementing Continuous Deploy 阅读全文
posted @ 2021-12-29 15:41 lightsong 阅读(70) 评论(0) 推荐(0)
摘要: Infrastructure as Code https://geekflare.com/infrastructure-as-code-intro/ 使用软件开发的原理和实践来实现基础设施的自动化。 写代码来管理 服务器 数据库 网络 日志 应用部署和配置。 Infrastructure as co 阅读全文
posted @ 2021-12-28 23:44 lightsong 阅读(190) 评论(0) 推荐(0)
摘要: Scalable System Design Patterns== 可扩展系统设计模式 https://dzone.com/articles/scalable-system-design 负载均衡 分发器负责将请求根据不同的策略,分发到对应的worker实例上。 要求所有的worker上不存储状态信 阅读全文
posted @ 2021-12-27 17:26 lightsong 阅读(83) 评论(0) 推荐(0)
摘要: Inner Loop vs Outer Loop https://opensource.com/article/21/6/open-source-developer-tools inner loop是开发者的最常做的事情, 编码 运行 验证 调试 outer loop是我们经常提及的CI/CD, 从 阅读全文
posted @ 2021-12-27 12:17 lightsong 阅读(90) 评论(0) 推荐(0)
摘要: dispatcher https://hub.packtpub.com/dispatchers-and-routers/ 分发器,接收消息,分发到对应的模块进行处理。 Dispatchers In the real world, dispatchers are the communication c 阅读全文
posted @ 2021-12-23 17:04 lightsong 阅读(131) 评论(0) 推荐(0)
摘要: Overview https://docs.docker.com/network/ docker强大之处在于实现资源隔离的同时,也可是构建容器连接,容器和容器(同主机),容器和容器(不同主机),或者容器和外部, One of the reasons Docker containers and ser 阅读全文
posted @ 2021-12-15 12:30 lightsong 阅读(138) 评论(0) 推荐(0)
摘要: Jenkins Jobs status dashboard by Build Monitor Plugin https://www.devopsart.com/2020/05/jenkins-jobs-status-dashboard-by-build.html https://plugins.je 阅读全文
posted @ 2021-12-15 10:24 lightsong 阅读(157) 评论(0) 推荐(0)
摘要: 背景 同一个Jenkins服务器上,存在的Job越多,越需要进行归类管理。 View -- 分类 https://subscription.packtpub.com/book/application_development/9781784390891/3/ch03lvl1sec22/creating 阅读全文
posted @ 2021-12-14 17:03 lightsong 阅读(417) 评论(0) 推荐(0)
摘要: CI/CD System https://www.redhat.com/en/topics/devops/what-is-ci-cd#ci/cd-tools CI关注开发阶段 CD -- Delivery 对应版本的自动化发布, 发布到制品库, 但是部署可能后续为手动 CD -- Deploymen 阅读全文
posted @ 2021-12-13 17:07 lightsong 阅读(279) 评论(0) 推荐(0)
摘要: Pipeline as Code https://www.jenkins.io/doc/book/pipeline-as-code/ Pipeline as Code describes a set of features that allow Jenkins users to define pip 阅读全文
posted @ 2021-12-13 00:28 lightsong 阅读(105) 评论(0) 推荐(0)
摘要: mysql & mysqldump https://serverguy.com/servers/how-to-backup-mysql-database/ 将数据库数据导出为 SQL语句。 mysqldump mysql-database > ABC-database-backup.sql mysq 阅读全文
posted @ 2021-12-07 14:31 lightsong 阅读(117) 评论(0) 推荐(0)
摘要: marshmallow-sqlalchemy https://marshmallow-sqlalchemy.readthedocs.io/en/latest/ https://github.com/marshmallow-code/marshmallow-sqlalchemy SQLAlchemy 阅读全文
posted @ 2021-12-02 14:29 lightsong 阅读(603) 评论(0) 推荐(0)
摘要: why need alembic? After defining ORM CLASS, we need to create table by the ORM class. https://docs.sqlalchemy.org/en/14/orm/tutorial.html#declare-a-ma 阅读全文
posted @ 2021-11-30 17:09 lightsong 阅读(123) 评论(0) 推荐(0)
摘要: SQL COUNT() with GROUP by https://www.w3resource.com/sql/aggregate-functions/count-with-group-by.php The use of COUNT() function in conjunction with G 阅读全文
posted @ 2021-11-28 00:03 lightsong 阅读(538) 评论(0) 推荐(0)
摘要: sqlalchemy https://www.sqlalchemy.org/ The Python SQL Toolkit and Object Relational Mapper SQLAlchemy is the Python SQL toolkit and Object Relational 阅读全文
posted @ 2021-11-26 15:20 lightsong 阅读(225) 评论(0) 推荐(0)
摘要: django model https://docs.djangoproject.com/en/3.2/topics/db/models/ django的ORM工具, 具有非常简洁的接口,遵从django快速开发的理念。 但是此工具是跟django深度绑定的, 很难独立使用。 A model is t 阅读全文
posted @ 2021-11-22 00:16 lightsong 阅读(246) 评论(0) 推荐(0)
摘要: Are locks unnecessary in multi-threaded Python code because of the GIL? https://stackoverflow.com/questions/105095/are-locks-unnecessary-in-multi-thre 阅读全文
posted @ 2021-11-14 18:28 lightsong 阅读(236) 评论(0) 推荐(0)
摘要: Marking extra actions for routing https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing ModelViewSet集成了 CRUD 所有功 阅读全文
posted @ 2021-11-13 22:51 lightsong 阅读(72) 评论(0) 推荐(0)
摘要: lerna https://lerna.js.org/ https://github.com/lerna/lerna 对于规模大的项目, 使用单独一个库管理, 但是内部分为多个package的情况; 使用此工具管理。 Splitting up large codebases into separat 阅读全文
posted @ 2021-11-12 14:18 lightsong 阅读(81) 评论(0) 推荐(0)
摘要: django migration https://docs.djangoproject.com/en/3.2/topics/migrations/ Migrations are Django’s way of propagating changes you make to your models ( 阅读全文
posted @ 2021-11-09 12:32 lightsong 阅读(166) 评论(0) 推荐(0)
摘要: react-sketch https://github.com/tbolis/react-sketch Sketch Tool for React-based applications, backed up by FabricJS tbolis.github.io/showcase/react-sk 阅读全文
posted @ 2021-11-09 10:46 lightsong 阅读(182) 评论(0) 推荐(0)
摘要: Shell IO https://tecadmin.net/prompt-user-input-in-linux-shell-script/# Take Input on Termianl Let’s begin with input directly on terminal. Open a ter 阅读全文
posted @ 2021-11-04 09:51 lightsong 阅读(598) 评论(0) 推荐(0)
摘要: mapDispatchToProps of react-redux https://react-redux.js.org/using-react-redux/connect-mapdispatch Two Forms of mapDispatchToProps​ The mapDispatchToP 阅读全文
posted @ 2021-11-01 16:04 lightsong 阅读(40) 评论(0) 推荐(0)
摘要: echo模型 https://channels.readthedocs.io/en/stable/tutorial/part_2.html 浏览器请求, channels给响应。 receive回调接受消息, send接口发送响应消息 # chat/consumers.py import json 阅读全文
posted @ 2021-11-01 00:04 lightsong 阅读(63) 评论(0) 推荐(0)
摘要: react-router-dom https://github.com/remix-run/react-router/blob/main/docs/getting-started/tutorial.md 对于location的变化, 不论是 hashtag方式, 或者是 通过pushstate改变u 阅读全文
posted @ 2021-10-31 22:29 lightsong 阅读(973) 评论(0) 推荐(0)
摘要: User authentication in Django https://docs.djangoproject.com/en/3.2/topics/auth/ django带有一个用户认证系统,能够处理 用户账户、组、许可、基于cookie的用户会话。 Django comes with a us 阅读全文
posted @ 2021-10-31 18:14 lightsong 阅读(157) 评论(0) 推荐(0)
摘要: background 基于django和react构建开发环境: django+restframework作为后台API提供者 react+ant design作为前端UI框架 利用django和react的开发工具的热更新功能, 实现前后台代码更新都不需要手动重启server。 如下拓扑图。 首先 阅读全文
posted @ 2021-10-31 09:55 lightsong 阅读(42) 评论(0) 推荐(0)
摘要: type annotations https://docs.python.org/3.6/library/typing.html 为类类型提示(IDE or 人类可读)设计, 又叫类型注解。 typing — Support for type hints This module supports t 阅读全文
posted @ 2021-10-26 14:59 lightsong 阅读(74) 评论(0) 推荐(0)
摘要: Draw and Guess Game https://github.com/fanqingsong/draw_guess draw and guess based on django_channels_chat_official_tutorial_react project, create dra 阅读全文
posted @ 2021-10-24 11:23 lightsong 阅读(86) 评论(0) 推荐(0)
摘要: Invoke https://docs.pyinvoke.org/en/stable/ The invoke CLI tool Details on the CLI interface to Invoke, available core flags, and tab completion optio 阅读全文
posted @ 2021-10-21 15:26 lightsong 阅读(48) 评论(0) 推荐(0)
摘要: Django Channels Django 仅仅支持 HTTP协议, Channels 扩展了支持的协议类型, 例如 websocket,chat, IoT. 本身实现基于ASGI协议。 但是你也可以选择 同步模式。 https://channels.readthedocs.io/en/stabl 阅读全文
posted @ 2021-10-20 17:28 lightsong 阅读(85) 评论(0) 推荐(0)
摘要: OverView Django View -- Root https://docs.djangoproject.com/en/3.2/ref/class-based-views/base/#view 所有view视图的基类, 此类不是通用视图,被业务视图继承。 class django.views. 阅读全文
posted @ 2021-10-17 23:40 lightsong 阅读(66) 评论(0) 推荐(0)
摘要: ViewSets & Routers https://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/ ViewSets是对模型的高度抽象, 让开发者聚焦于建模状态, 和 接口的交互, 基于通用的规则构建URL. REST 阅读全文
posted @ 2021-10-13 00:08 lightsong 阅读(59) 评论(0) 推荐(0)
摘要: Relationships & Hyperlinked APIs https://www.django-rest-framework.org/tutorial/5-relationships-and-hyperlinked-apis/ 对于表之间的关联关系, ModelSerializer 默认是使 阅读全文
posted @ 2021-10-12 23:39 lightsong 阅读(77) 评论(0) 推荐(0)
摘要: Authentication & Permissions https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ 对于view需要限制用户的访问权限, 例如认证 和 许可。 Currently 阅读全文
posted @ 2021-10-12 23:21 lightsong 阅读(82) 评论(0) 推荐(0)
摘要: Class-based Views https://www.django-rest-framework.org/tutorial/3-class-based-views/ APIView 继承于 django view类提供了 http method 方法的抽象, 即继承于此类的应用类中, 可以定义 阅读全文
posted @ 2021-10-12 22:30 lightsong 阅读(64) 评论(0) 推荐(0)
摘要: Requests and Responses https://www.django-rest-framework.org/tutorial/2-requests-and-responses/ Request 请求类,扩展了 httprequest类。 请求数据存储在 request.data 成员中 阅读全文
posted @ 2021-10-12 15:18 lightsong 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页
千山鸟飞绝,万径人踪灭