粗读web框架之go gin和python django
为什么引入web框架 web应用的本质 浏览器发送一个HTTP请求; 服务器收到请求,生成一个HTML文档; 服务器把HTML文档作为HTTP响应的Body发送给浏览器; 浏览器收到HTTP响应,从HTTP Body取出HTML文档并显示; 涉及的问题 解析http请求 找到对应的处理函数 生成并发送http响应 * web框架工作流程 中间件 中间件...
flutter: 窗口初始与绘制流程
环境: flutter sdk v1.7.8+hotfix.3@stable 对应 flutter engine: 54ad777f 这里关注的是C++层面的绘制流程,平台怎样驱动和响应绘制与渲染的过程,并不是Dart部分的渲染。 结合之前的分析,在虚拟机实例的构造函数中调用了一个重要方法DartUI::InitForGlobal(), 调用流程再罗列一下: {代码...} 实现体很明了,注册了各...
2019-07-14
聊聊dapr的consistent hash
ConsistentHashTables定义了Version、Entries属性,Entries是个map,value为Consistent;Consistent定义了hosts、sortedSet、loadMap、totalLoad、sync.RWMutex属性
2021-03-09
vue.js element-ui 高德地图 选取坐标 dialog
{代码...}
聊聊langchain4j的Code Execution Engine
langchain4j定义了CodeExecutionEngine接口,该接口定义了execute方法用于执行指定的代码,langchain4j-code-execution-engine-graalvm-polyglot模块提供了两个实现,分别是GraalVmPythonExecutionEngine、GraalVmJavaScriptExecutionEngine
2025-03-24
elasticsearch学习笔记(二十八)——Elasticsearch 实战各种query搜索
每个子查询都会计算一个document针对它的相关度分数,然后bool综合所有分数,合并为一个分数,当然filter是不会计算分数的。示例:
Elastic-Search Query DSL Demo
{代码...}
2022-12-23
essential c++ ch3
3.1 {代码...} 3.2 {代码...}
2016-02-23
[LeetCode] Search in Rotated Sorted Array
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the array.
2017-06-20
数据科学 第 3 章 4:连接mysql、改类型、索引应用
查看每列的格式:<class 'pandas.core.frame.DataFrame'>RangeIndex: 2324 entries, 0 to 2323Data columns (total 6 columns):date 2324 non-null objectid 2324 non-null objectword 2324 non-null objectrank1 2324 non-null objectnumber1 2324 non-null objecturl 2324 non-null objectdtypes: object(6)memo...
2018-11-10
LeetCode | 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Python】
LeetCode 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Easy】【Python】【二叉树】
2020-06-28
【译】JavaScript engine fundamentals: optimizing prototypes
前言 前往 ➡️ 我的博客 本文是根据自己的理解翻译而来,如有疑惑可查看原文 JavaScript engine fundamentals: optimizing prototypes。 本次暂定翻译三篇文章: JavaScript engine fundamentals: Shapes and Inline Caches(Published 14th June 2018) JavaScript engine fundamentals: optimizing prototypes(Published ...
2019-10-10
Docker 小记 — Docker Engine
用了 Docker 方才觉得生产环境终于有了他该有的样子,就像集装箱普及之后大型货轮的价值才逐渐体现出来,Docker 详细说明可查阅“官方文档”。本篇为 Docker Engine 的笔记,也就是我们通常说的 Docker,他包含了提供容器技术实现的 Docker daemon 及终端控制 Docker CLI 的应用程序。后续会继续发布 Docker Compose 和 Do...
leetcode34 search for a range
即 在一个有序排列的数组中,找到目标值所在的起始下标和结束下标。如果该目标值不在数组中,则返回[-1,-1]题目中有一个特殊要求是时间复杂度为O(logn),也就是在暗示我们,不能只是单纯的按照顺序遍历数组,要尽量减去无效遍历。所以这题的核心思路为二分法遍历。
2017-04-29
[LintCode/LeetCode] Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
2016-05-18
Leetcode - Word Search I,II
我的思路:1.首先得在board中寻找首元素可能出现的位置,对每个合法的开始位置进行dfs2.每次dfs的过程中,结合backtracing避免回退
2018-07-31
35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
2019-02-02