实习日记!

news2024/9/22 21:12:18

目录

http://localhost:5789实习第三天

接下来几天的target

实习第四天

Git的操作 

实习第五天

 12月5日-Mon

12月6日

12月9日

12月12日

12月15日

useState() hook

12月16日

useEffect() hook

 async 函数

异步编程

回调函数

12月17日

C#中的??和?分别是什么意思

代码阅读

12月20日

1月3日

1月4日

1月9日



实习第三天

需要进入这个路径,运行dotnet run 才可以运行

C:\Users\yuan\PycharmProjects\decsys\app\Decsys> dotnet run

只有一直保持着连接才可以进入连接

 使用5789进入后端

info: Microsoft.Hosting.Lifetime[14]
      Now listening on: https://localhost:7789
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://localhost:5789

 build components

没有组件,所以需要使用里面的

pnpm --filter response-items build:visual-analog-scale

构建组件后的效果就是会多出来choose One/confirmation/.....等等选择 

接下来几天的target

所以我现在需要了解summary中的大概代码是什么

然后大概需要了解一下mvc架构

MVC 架构

  • 模型(Model) - 程序员编写程序应有的功能(实现算法等等)、数据库专家进行数据管理和数据库设计(可以实现具体的功能)。
  • 视图(View) - 界面设计人员进行图形界面设计。
  • 控制器(Controller)- 负责转发请求,对请求进行处理。
  1. Model: processes and stores application domain data (entity objects)
  2. View: display information to the user (boundary objects)
  3. Controller: interact with the user and update the model (which notifies the view)

 

实习第四天

今天居家上班

Target:

  • 了解.Net MVC framework/pattern

Part 2, add a controller to an ASP.NET Core MVC app | Microsoft Learn

阅读文档

Every public function in the controller is a https endpoint.

所以说,是调用controller中的actionname的函数,id is route data 

Part 3, add a view to an ASP.NET Core MVC app | Microsoft Learn

View中的文件都是使用Razor view files,可以封装(encapsulated)the process of generating HTML file reponses to cilent.

Git的操作 

昨天andy说要使用fetch直接clone remote repository下来。

我在想这个workspace/local repository的区别是什么

当你在文本编辑器上面编辑的时候,你是使用working repository/workspace,这时候,并没有将你的代码上传到local repository,除非你commit

今天的进步就是找到了model中的response的界面。但是还是不知道如何找到相应的controller和view。

实习第五天

什么是dependency injection?

在讨论依赖注入之前,我们先理解编程中的依赖是什么意思。

当 class A 使用 class B 的某些功能时,则表示 class A 具有 class B 依赖。

控制反转(Inversion of Control,缩写为IoC),是面向对象编程中的一种设计原则,可以用来减低计算机代码之间的耦合度。其中最常见的方式叫做依赖注入(Dependency Injection,简称DI),还有一种方式叫“依赖查找”(Dependency Lookup)。

那么什么是耦合度呢?(Coupling)

Coupling指的是model and model 之间的依赖程度。一般是低耦合,高内聚。低耦合性程序的可读性及可维护性会比较好。

而方案二,只需要在外面创建 wheel对象传入car类就可以。减少了新建Car类 。也就是说减少了类之间的耦合,对象在运行时而不是在编译时(汽车制造时)被赋予它们的依赖关系。 所以我们现在可以随时改变车轮。 在这里,依赖(车轮)可以注入到汽车在运行时间。同时这是一种非常有用的测试技术,因为它允许对依赖关系进行模拟或删除。

作者:Deciscive
链接:https://juejin.cn/post/6844904071657160717
来源:稀土掘金
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

 12月5日-Mon

今日计划:

找到client-app的respondents前端部分。

今天问了John一个问题,我说,MVCframework中,view不是指的是frond-end吗,为啥你说cilent-app是frond-end。John说,因为是封装前端页面(我也不记得具体是怎么样的,因为大概好像是通过api调用)

然后确定了model中的pageResponceSummary是result页面的数据库部分。instancescontroller是controller中调用result的部分,service中的participant event service也是其中的部分。

cilent-app中的surveys.js是end point

前端界面中的result部分在cilent-app的Results.jsx中,好像是编写每个组件。

完成任务:已找到respondents 的前端部分。

在Surveys中的surveycard的activeinstanceline文件中

 所以我们需要修改

这一句话!

 找到了前端页面的东西了。

明天准备问john,不太理解题目的意思。

we need to move this server side so it's returned with the rest of the survey's summary information for the survey card!

这句话是什么意思?????

12月6日

总结:

Yesterday,I found that the Admin Surveys List calculates respondent count per survey on the client side.It calculated the participant's count directly and print in the front end.

I confused for the question description."we need to move this server side so it's returned with the rest of the survey's summary information for the survey card!".

It means move the respondent count to server side otherwise front end,right? Survey's summary information is 

 

John 的回复:

yeah, so right now, you've found the place in the frontend where for each survey it gets the results summary and then calculates the respondent count in javascript on the client side. so we need to stop doing that as gtting the results for each survey in the list could be expensive and slow. instead we should work out the count on the server, and only send the count back to the frontend.

you could probably do this at the same time as the other survey card information is provided and fetched (like the survey name and current instance. you could just add the respondent count to the current instance model i think?)

might be worth looking at where the rest of the survey card gets its data, so you can find a good place to put the respondent count

To do list:

  • 查看survey card 到底返回了什么信息?
  • survey card 如何获得数据?(前端在哪?后端在哪?)
  • 找到一个正确的地方放置受访者人数。

Survey card:

每一个模块都分为了不同的组件component,比如说每个action buttons 都分为了不同的组件。Manage survey menu中的每一个button 都是模块化的写出来。

survey card 如何获得数据?

前端页面(front-end)get friendlyId data

export component 的目的是让组件更有重用性。

context传递上下文,这是react.js的特性..

首先需要创建上下文,然后才可以调用上下文。

所以,要friendlyId到底是从哪里调用来的,我是不是应该换一个方向??

12月9日

昨天我去逛街了,所以啥都没干。昨天主要就是问了John一个问题,为什么instanceId这个变量那么重要。不太明白instance是什么意思。

1.An Instance is when you run that Survey for a group of people for a length of time.指的是run survey的一个时间

2.A Survey is a collection of pages with content on and sometimes expecting reponses.(survey 是指页面的总和,有时候还代表着reponses)

3.举了个例子:So for example, I might build a Survey with 3 pages and ask 3 questions, one on each page.Then on Monday I invite 30 people to answer that Survey, so i launch an Instance of it.and I care about how many of the 30 people I asked have started responding, so I want the participant count for the Instance. Then at the end of Monday, I close the Instance, and on Wednesday I launch a new different instance and invite 30 different people. so Instances are just ways to use the same Survey multiple times with different groups of people. but that means the participant count is really only relevant to an instance, not a whole Survey (or Study)

大概就是说,假设我周一创建了一个survey,我邀请了30个人来填写问卷,但是不一定大家都会填写,所以这时候我们需要统计participants count 在instance中。然后周一我关闭了survey,周三的时候我launch survey,这时候又有30people。所以说,instances 使用survey multiple times with different groups of people。所以说,participants count is really only relevant to an instance。
 

To do list:

1.重新测试instanceId这个变量

2.然后我也不知道要做什么。继续找后端在干什么把。

3.然后写个总结。因为需要问John周一,我得说自己的想法和不懂的地方。

今天收获的东西(概念):

XMLHttpRequest (XHR) is an API in the form of an object whose methods transfer data between a web browser and a web server. The object is provided by the browser's JavaScript environment. 像API接口,transfer data between brower and server。is provided by the browser's js environment.

Controllers and Routing in WEB API

我不太明白怎么如何使用web API来

ASP.NET Core Web API - How to Handle GET Request

我做了什么():

验证了确实instanceId,发射一次修改一次

疑问?run count 是什么,为什么launch后关闭后,他还会继续run?

已解答:study 和survey的关系?先有study 再有survey

已解答:id是什么?survey 有一个id,然后study也有一个id

instanceid到底从哪里来?

12月12日

放了个周末,我都不记得我的代码看到哪里了。

我们需要改的需求是,modify instance endpoint to include count

总结上周五:

Good morning,John. Last Friday, I understood "controllers and routing in WEB API" and the difference between convention-based routing and attribute routing. And I figured out what the meaning of id in the route and how it change for instanceId. 

I made some tasks in order to find how to modify instance endpoint to include participant count.

弄清楚instanceId是如何计算出来?

instanceId是如何从后端返回数据到endpoint中

问题:

1.Figure out how to calculate instanceId

2.How to send the information from back-end to endpoint for instanceId

It is my thought for now. Is it correct way or not? would you have any suggestion?

Could I add some tasks in DevOps?

回答:

hey! i'm so sorry i was busy yesterday. yeah your plan sounds good.

the instance id should already be known in the frontend in the SurveyCard (or the ActiveInstanceLine?)

so you can use that when you make the request to the backend

sometimes in DECSYS we use a combined id, or a "friendly" id. (friendlyid 有时候也是combined id)which is an encoded version of the survey id and the instance id,(由instandid 和 survey id解码而来) separated by a z. so survey id 1 and instance id 1 would be bzb because 1 is encoded as b. you shouldn't have to worry about it too much; the frontend is capable of converting between the combined and separate formats already, but it's just one to watch out for. (意思是前端可以转换combine或者seperate 的format)I don't know which id type is used when the ActiveInstanceLine talks to the backend endpoint for the instance information

sending the information to the endpoint, you'll need to do something like:(发送信息给endpoint 的时候,你需要):

使用service 方法,可能在instanceService或者participanteventservice中,通过他的id,获取instance 的participants 的数量

  1. Make a Service Method (on either the InstanceService or ParticipantEventService?) for getting the count of participants for an Instance by its id.

  2. Add an int property for ParticipantsCount to the model which the Instance Info endpoint returns. 添加 ParticipantsCount 的 int 属性到model中,这个model的信息端点将会返回。

  3. In the Controller method for the endpoint, call the new service method to get the count, and add the count to the model before returning it.在endpoint 的controller 方法中,会call一个新的service method 来获取新的count,然后添加新的count到模型中,在返回前。

That should take care of getting the count and sending it to the endpoint (which is the return from the Controller method)。这时候又get count 然后又返回到endpoint。

问题:

And I have another problem.I closed a study last time.And I launched it again.I found there is 0 respondents. But It should be have 5 respondents. I guess it is because run study again,it means a new study.So we can clean records and calculate count again, right?

回答:

yep that's right. cos you are closing one instance and when you launch again it actually starts a new instance

two different instances but of the same survey configuration (same pages etc.)

12月15日

看ActiveInstanceLine.jsx的前端代码。

今天看的:state hook

useState() hook

Hook 相当于一个class,而且是复用的,你不用重新写他的class

Declare state variable.It set the first variable.If you want to update it ,you need to call setcount variable.

import React, { useState } from 'react';

function Example() {
  // Declare a new state variable, which we'll call "count"
  const [count, setCount] = useState(0);

 This is an example for state hook.The meaning: You need to declare the count variable by calling useState() function. And it will pass the inital paramater 0. <p>mean:you clicked 0 times.When you click it again,it will update the variable using setcount variable. 

import React, { useState } from 'react';

function Example() {
    const [count, setCount] = useState(0);
 
    return (
      <div>
        <p>You clicked {count} times</p>
        <button onClick={() => setCount(count + 1)}>
         Click me
        </button>
      </div>
    );
  }

Hooks at a Glance – React

了解一个概念array destructuring

const foo = ['one', 'two', 'three'];

const [red, yellow, green] = foo; #这个就是array destrucutring
console.log(red); // "one"
console.log(yellow); // "two"
console.log(green); // "three"

Destructuring assignment - JavaScript | MDN

明天任务:需要把effect Hook的文档给看了。

12月16日

useEffect() hook

What does useEffect do? By using this Hook, you tell React that your component needs to do something after every render. 就是after 渲染,然后就会使用useEffect这个函数。It seems like componentDidMount()and componentDidUpdate().

If you need to load data from a remote endpoint, this is a good place to instantiate(实例化) the network request.

下面的文章写的很清楚。

function Welcome(props) {
  useEffect(() => {
    document.title = `Hello, ${props.name}`;
  }, [props.name]);
  return <h1>Hello, {props.name}</h1>;
}

 只有第二个参数发生变化才会进行重新渲染,所以一开始会渲染一次。

 有时候,我们不希望useEffect()每次渲染都执行,这时可以使用它的第二个参数,使用一个数组指定副效应函数的依赖项,只有依赖项发生变化,才会重新渲染。

上面例子中,useEffect()的第二个参数是一个数组,指定了第一个参数(副效应函数)的依赖项(props.name)。只有该变量发生变化时,副效应函数才会执行。

如果第二个参数是一个空数组,就表明副效应参数没有任何依赖项。因此,副效应函数这时只会在组件加载进入 DOM 后执行一次,后面组件重新渲染,就不会再次执行。这很合理,由于副效应不依赖任何变量,所以那些变量无论怎么变,副效应函数的执行结果都不会改变,所以运行一次就够了。

那么它的用途是什么?

  • 获取数据(data fetching)
  • 事件监听或订阅(setting up a subscription)
  • 改变 DOM(changing the DOM)
  • 输出日志(logging)

轻松学会 React 钩子:以 useEffect() 为例 - 阮一峰的网络日志

Using the Effect Hook – React

了解完后,大概知道代码在说什么了

export const RespondentCountBadge = ({ friendlyId, isStudy }) => {
#给results变量付个空值
  const [results, setResults] = useState({});
#使用effect hook
  useEffect(() => {
#fetch data from services
    (async () => {
#array destructuring
      const [surveyId, instanceId] = decode(friendlyId);
#get data from services
      const { data } = await getInstanceResultsSummary(surveyId, instanceId);
#update results
      setResults(data);
    })();
  }, [friendlyId]);

 async 函数

用来从服务器异步获取数据.

async 函数就是将 Generator 函数的星号(*)替换成 async,将 yield 替换成 await(相当于等等,后面调用它再执行)

async 和 await。async 表示函数里有异步操作(直接调用即可,不用靠执行器),await 表示紧跟在后面的表达式需要等待结果

async 函数的含义和用法 - 阮一峰的网络日志

异步编程

同步就是一行一行代码的运行,非常耗时(最基本的问题。异步就是

所谓"异步",简单说就是一个任务分成两段,先执行第一段,然后转而执行其他任务,等做好了准备,再回过头执行第二段。比如,有一个任务是读取文件进行处理,异步的执行过程就是下面这样。

任务的第一段是向操作系统发出请求,要求读取文件。然后,程序执行其他任务,等到操作系统返回文件,再接着执行任务的第二段(处理文件)。

这种不连续的执行,就叫做异步。相应地,连续的执行,就叫做同步。(from generator fuction that document)

异步 JavaScript 简介 - 学习 Web 开发 | MDN

Generator 函数的含义与用法 - 阮一峰的网络日志

回调函数

所谓回调函数,就是把任务的第二段单独写在一个函数里面,等到重新执行这个任务的时候,就直接调用这个函数。它的英语名字 callback


fs.readFile('/etc/passwd', function (err, data) {
  if (err) throw err;
  console.log(data);
});

上面代码中,readFile 函数的第二个参数,就是回调函数,也就是任务的第二段。等到操作系统返回了 /etc/passwd 这个文件以后,回调函数才会执行。

一个有趣的问题是,为什么 Node.js 约定,回调函数的第一个参数,必须是错误对象err。原因是执行分成两段,在这两段之间抛出的错误,程序无法捕捉,只能当作参数,传入第二段。

instanceId 是如何来的?

通过FriendlyId decode 而来。

12月17日

C#中的??和?分别是什么意思

?:

例如:int? 表示可空的整形,DateTime? 表示可为空的时间。

??:

例如:a??b 当a为null时则返回b,a不为null时则返回a本身。
空合并运算符为右结合运算符,即操作时从右向左进行组合的。如,“a??b??c”的形式按“a??(b??c)”计算。

?:  :

例如:x?y:z 表示如果表达式x为true,则返回y;如果x为false,则返回z,是省略if{}else{}的简单形式。

from:在C#中??和?分别是什么意思? - 程序员新兵 - 博客园

代码阅读

private ParticipantResultsSummary ParticipantResultsSummary(SurveyInstance instance, string participantId)
{
            var firstPageLoad = _events
                .List(instance.Id, participantId, null, EventTypes.PAGE_LOAD)
                .FirstOrDefault();

            var resultsSummary = new ParticipantResultsSummary(participantId)
            {
                Responses = new List<PageResponseSummary>(),
                SurveyStarted = firstPageLoad?.Timestamp
            };        

应该就是services 传输 统计的participants 统计数量的函数

public SurveyInstanceResults<ParticipantResultsSummary> ResultsSummary(int instanceId)
        {
            var instance = _instances.Find(instanceId) ??
                throw new KeyNotFoundException("Survey Instance could not be found.");

            // summarize each one
            var participants = _events
                .List(instanceId).Keys
                .Select(participantId =>
                    ParticipantResultsSummary(instance, participantId))
                .ToList();

            var result = _mapper.Map<SurveyInstanceResults<ParticipantResultsSummary>>(instance);
            result.Participants = participants;

            return result;
        }

PageResponceSummary.cs就是service 传输到数据到model中。

12月20日

还在继续理清,如何将数据传输到endpoint

1.需要创建一个service Method

2.需要在model里面加上相应的属性

3.controller会call service method 获取count,然后添加count在model中

最近在黑客马拉松,我好累

1月3日

今天从新理了一下整个代码。貌似又懂了很多

Axios 是基于promise 的HTTP 客户端node.js和浏览器。它是同构的(=它可以在具有相同代码库的浏览器和 nodejs 中运行)。在服务器端它使用原生的 node.jshttp模块,而在客户端(浏览器)它使用 XMLHttpRequests。

大概明白了整个套路。

前端页面:使用ActiveInstanceLine.jsx中的RespondentCountBadge 来获取数据,然后调用survey-instances来fetch 后端数据,use api to fetch data(use axios react hook),到了controller method,call service method get count and return data to the model。

不知道有没有问题。

获取的是什么数据呢?api调用,然后返回的数据,是不是就到controller get数据了

1月4日

might be worth looking at where the rest of the survey card gets its data, so you can find a good place to put the respondent count。

重新又温故了一下,这个题目到底是什么意思。然后我们现在搞清楚的是前端如何向后端获取数据的。后端是如何传输数据到前端的。

好了,我还是不知道,我完全没有那个想法

1月9日

这句话的意思result的participants的长度如果存在,不为0,那么返回前面的,如果不存在,就返回0

{results?.participants?.length ?? 0} respondents

Example:optional chaining

const adventurer = {
  name: 'Alice',
  cat: {
    name: 'Dinah'
  }
};

const dogName = adventurer.dog?.name;
console.log(dogName);
// expected output: undefined

Optional chaining (?.) - JavaScript | MDN

$ne 意味着 否的意思

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/181933.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

postgresql源码学习(54)—— HotStandby从库必须设置大于等于主库的参数

新的一篇本来计划研究lazy_scan_heap函数&#xff0c;但过于复杂还没研究出来… 下午做题遇到一个这样的问题&#xff0c;之前没太关注过&#xff0c;打算学习学习&#xff0c;避免主从配置踩坑。 题干搜一搜&#xff0c;没搜出啥有用的玩意…渣翻成英文搜一搜&#xff0c;搜出…

windows搭建go语言开发环境,IDEA安装go插件并运行Hello world代码

2023年1月27日1.Windows上安装Go语言开发包参考链接&#xff1a;http://c.biancheng.net/view/3992.html1.1.下载Go语言开发包可以在Go语言官网 &#xff08;https://golang.google.cn/dl/&#xff09; 下载Windows 系统下的Go语言开发包&#xff0c;如下图所示。这里我们下载的…

学习Docker就应该掌握的dockerfile语法与指令

在日常的工作中&#xff0c;常常需要制作自己的项目的镜像&#xff0c;一般通过以下两种方式制作镜像&#xff1a;Docker commit、Dockerfile。Docker commitDocker commit一般用做从一个运行状态的容器来创建一个新的镜像。定制镜像应该使用Dockerfile来完成。docker commit 容…

Git场景分析

当前的开发环境如下&#xff0c;我们每个人都对这个项目已经开发一段时间&#xff0c;接下来我们要切换成团队开发模式。 也就是我们由一个团队来完成这个项目实战的内容。团队有组长和若干组员组成(组长就是开发中的项目经理)。 练习场景如下&#xff1a; 1.由组长&#xff0…

LeetCode[1202]交换字符串中的元素

难度&#xff1a;中等题目&#xff1a;给你一个字符串 s&#xff0c;以及该字符串中的一些「索引对」数组 pairs&#xff0c;其中 pairs[i] [a, b]表示字符串中的两个索引&#xff08;编号从 0 开始&#xff09;。你可以 任意多次交换 在 pairs中任意一对索引处的字符。返回在…

java递归问题——汉诺塔

目录 &#x1f332;&#x1f332;什么是汉诺塔&#xff1f; &#x1f430; 当只有1个圆盘的时候&#xff1a; &#x1f430; 当只有2个圆盘的时候&#xff1a; &#x1f430; 当只有3个圆盘的时候&#xff1a; &#x1f332;&#x1f332;汉诺塔代码 &#x1f430;思路 &am…

电脑安全模式怎么进?3种方式教会你!

安全模式经常是电脑死机的时候&#xff0c;我们会选择的一种方式。因为安全模式可以帮助我们修复电脑系统里面的一些错误&#xff0c;电脑安全模式怎么进&#xff1f;其实很简单&#xff0c;主要有以下3种方式&#xff0c;你可以根据你的需要来选择其中一种&#xff01; 操作环…

剑指 Offer 第7天(中午睡起来都十二点了,今天摆了吧)

目录 剑指 Offer 26. 树的子结构 剑指 Offer 27. 二叉树的镜像 剑指 Offer 28. 对称的二叉树 剑指 Offer 26. 树的子结构 输入两棵二叉树A和B&#xff0c;判断B是不是A的子结构。(约定空树不是任意一个树的子结构) B是A的子结构&#xff0c; 即 A中有出现和B相同的结构和节点…

极光厂商通道集成指南

小米集成指南 1、使用JCenter自动化集成步骤 确认AndroidStudio的Project根目录的主gradle中配置了jcenter支持。(新建project默认配置就支持&#xff09; buildscript { repositories { jcenter() } } allprojects {repositories { jcenter() } } 在应用module的gr…

ffmpeg为mkv封装格式的音视频文件添加内挂字幕

现在好莱坞的电影&#xff0c;都是全球看&#xff0c;一个地区的人看电影时&#xff0c;电影屏幕上应该展示对应的本地区语言字幕。故电影画面在不同的地区&#xff0c;需要配置不同的语言字幕。故视频画面里面的字幕应该可以拆出来&#xff0c;不能像老版三国演义&#xff0c;…

数据中心Spine/Leaf+VXLAN的结构

大家过年好&#xff0c;我是技福的小咖老师。今天我们继续聊聊网络架构。 随着业务系统对IT基础设备灵活度要求的不断提升&#xff0c;云计算、大数据以及虚拟化等技术在新型数据中心的建设中发挥着重要作用。如何更好地满足数据中心计算资源灵活调配以及服务扩展&#xff0c;…

C语言块级变量

所谓代码块&#xff0c;就是由{ }包围起来的代码。代码块在C语言中随处可见&#xff0c;例如函数体、选择结构、循环结构等。不包含代码块的C语言程序根本不能运行&#xff0c;即使最简单的C语言程序&#xff08;上节已经进行了展示&#xff09;也要包含代码块。C语言允许在代码…

不就是Java吗之 认识异常

认识异常一、异常的概念与体系结构1.1 异常的概念1.2 异常的体系结构1.3 异常的分类1.3.1 编译时异常(受查异常)1.3.2 运行时异常(非受查异常)二、异常的处理2.1 防御型编程2.1.1 LBYL2.1.2 EAFP2.2 异常的抛出2.3 异常的捕获2.3.1 异常的声明2.3.2 try-catch捕获并处理2.3.3 f…

linux gui版本控制工具对比

linux gui版本控制工具对比qgitungitgitgsublime mergegitKrakengitAhead tkdiff之前一直用windows开发, 最近想用linux开发, 选版本控制工具的时候考察了以下几款可以在linux平台上使用的版本控制工具, 还是觉得tortoise好用. 记录下它们的优缺点. 想起以前一位同事说过的话,…

Elasticsearch:将数据从 Elasticsearch 和 Kibana 导出到 Pandas Dataframe

在这篇文章中&#xff0c;我们将看到如何从 Elasticsearch 索引和 Kibana 的 CSV 报告中导出数据 - post-url 到 pandas 数据帧。 数据的可视化可以在 Kibana 中完成&#xff0c;但如果你想对数据进行更精细的分析并创建更动态的可视化&#xff0c;将数据导出到 pandas datafra…

LeetCode 55. 跳跃游戏 45. 跳跃游戏 II 22. 括号生成 53. 最大子数组和

&#x1f308;&#x1f308;&#x1f604;&#x1f604; 55. 跳跃游戏 一、力扣示例 二、解决办法 三、代码实现 45. 跳跃游戏 II 一、力扣示例 二、解决办法 三、代码实现 22. 括号生成 一、力扣示例 二、解决办法 三、代码实现 53. 最大子数组和 一、力扣示例 …

WebAssembly编译之(3)-WASM编译实战之C/C++导出asm.js及wasm库

引言 上一节我们介绍了Ubuntu下的WASM的编译环境快速搭建。这一节我们继续WASM编译相关的介绍——如何导出C/C编写的函数库 WASM 相关文档&#xff1a; WebAssembly编译之(1)-asm.js及WebAssembly原理介绍 WebAssembly编译之(2)-Ubuntu搭建WASM编译环境 单个C文件(*.cpp)的导出…

每日学术速递1.28

CV - 计算机视觉 | ML - 机器学习 | RL - 强化学习 | NLP 自然语言处理 今天带来的arXiv上最新发表的3篇AI论文。 Subjects: cs.AI、cs.Cv 1.Revisiting Temporal Modeling for CLIP-based Image-to-Video Knowledge Transferring 标题&#xff1a;重新审视基于CLIP的图像-视…

计讯物联5G工业级路由器在智慧消防的功能解析

据悉&#xff0c;国务院安全生产委员会印发《“十四五”国家消防工作规划》&#xff08;以下简称《规划》&#xff09;&#xff0c;对“十四五”时期消防改革发展作出全面部署。《规划》提出&#xff0c;坚持防消一体、防救并重&#xff1b;加强改革创新&#xff0c;加快消防“…

11 Day : 编写操作系统中断程序,加快时钟

前言&#xff1a;昨天学习了中断&#xff0c;今天就废话不多说&#xff0c;直接编写程序吧 内容更新&#xff1a;之前有朋友说看不太懂我的代码写的是啥&#xff0c;能不能详细讲讲&#xff0c;所以本期开始我会详细讲解代码&#xff0c;也会同步更新之前的博客&#xff0c;大多…