时光匆匆的小流年

文章 评论 浏览 34

时光匆匆的小流年 2025-02-20 14:26:58

// 运行JavaScript时用户完成时用户完成输入而不是键上吗?

            var typingTimer;                
            var doneTypingInterval = 5000;  

            //on keyup, start the countdown
             $('#cards-search').on('keyup', function () {
            clearTimeout(typingTimer);
            typingTimer = setTimeout(doneTyping, doneTypingInterval);
            });

            //on keydown, clear the countdown 
             $('#cards-search').on('keydown', function () {
            clearTimeout(typingTimer);
            });

            //user is "finished typing," do something
            function doneTyping () {
            //do something

                console.log("DOne");
            }

// Run javascript function when user finishes typing instead of on key up?

            var typingTimer;                
            var doneTypingInterval = 5000;  

            //on keyup, start the countdown
             $('#cards-search').on('keyup', function () {
            clearTimeout(typingTimer);
            typingTimer = setTimeout(doneTyping, doneTypingInterval);
            });

            //on keydown, clear the countdown 
             $('#cards-search').on('keydown', function () {
            clearTimeout(typingTimer);
            });

            //user is "finished typing," do something
            function doneTyping () {
            //do something

                console.log("DOne");
            }

延迟输入上的JavaScript,因此输入到搜索字段的每个字符确实会发射功能

时光匆匆的小流年 2025-02-20 02:32:34

当不在同一DOM元素中时,应该可以从一个控制器派遣事件并在另一个控制器中读取它。

当您从JavaScript派遣事件时,它会将DOM树泡泡到window。您可以使用@Window操作描述符来收听全局事件,以捕获所有在控制器的DOM树外面冒泡的事件。

请参阅

您想要的事件,但是作为基本设置,您需要在数据操作中添加@window

示例

此处是一个工作端到端示例,而不是涡轮链接,其中表控制器不是添加行按钮的父母(这是同级)。使用窗口事件侦听器方法,我们可以在DOM树之外聆听事件。

在您的表控制器中收到事件后,类方法应可以访问该控制器的 nister 而无需问题。

如果要访问原始触发按钮的目标元素,则可以通过event.target进行此操作。

<main>
  <table data-controller="table" data-action="table-action:add@window->table#show">
    <thead>
      <tr>
        <th data-table-target="status"></th>
      </tr>
    </thead>
    <tr data-table-target="row">
      <td>Item 1</td>
    </tr>
    <tr data-table-target="row">
      <td>Item 2</td>
    </tr>
    <tr data-table-target="row">
      <td>Item 3</td>
    </tr>
    <tr data-table-target="row">
      <td>Item 4</td>
    </tr>
  </table>
  <div>
    <button data-controller="table-action" data-action="table-action#add"
      data-table-action-url-param="https://path.to.tables/">
      Add row
    </button>
  </div>
</main>
import { Controller } from '@hotwired/stimulus';

class TableController extends Controller {
  static targets = ['row', 'status'];

  show({ detail: { url } = {}, target }) {
    console.log('event.target - the button that triggered the click', event.target);
    if (url) {
      const rowCount = this.rowTargets.length;
      this.statusTarget.innerText = `Request from: ${url}, there are ${rowCount} rows.`;
    }
  }
}

export default TableController;
import { Controller } from '@hotwired/stimulus';

class TableActionController extends Controller {
  add({ params }) {
    this.dispatch('add', {
      detail: { ...params },
      bubbles: true,
      cancelable: false,
    });
  }
}

export default TableActionController;

It should be possible to dispatch an event from one controller and read it in another controller when not in the same DOM element.

When you dispatch an event from JavaScript, it will bubble up the DOM tree through to the window. You can listen to global events with the @window action descriptor to catch any events that have bubbled up outside of the controller's DOM tree.

See

You may need to be careful to check that it is the 'right' event you want, but as a basic set up you need to add the @window on your data action.

Example

Here is a working end to end example, not turbo-links, where the table controller is not a parent of your add row button (it is a sibling). Using the window event listener approach we can listen to events outside of the DOM tree.

Once the event is received in your tables controller, the class method should have access to that controller's this without issue.

If you want to access the original trigger button's target element you can do this via event.target.

<main>
  <table data-controller="table" data-action="table-action:add@window->table#show">
    <thead>
      <tr>
        <th data-table-target="status"></th>
      </tr>
    </thead>
    <tr data-table-target="row">
      <td>Item 1</td>
    </tr>
    <tr data-table-target="row">
      <td>Item 2</td>
    </tr>
    <tr data-table-target="row">
      <td>Item 3</td>
    </tr>
    <tr data-table-target="row">
      <td>Item 4</td>
    </tr>
  </table>
  <div>
    <button data-controller="table-action" data-action="table-action#add"
      data-table-action-url-param="https://path.to.tables/">
      Add row
    </button>
  </div>
</main>
import { Controller } from '@hotwired/stimulus';

class TableController extends Controller {
  static targets = ['row', 'status'];

  show({ detail: { url } = {}, target }) {
    console.log('event.target - the button that triggered the click', event.target);
    if (url) {
      const rowCount = this.rowTargets.length;
      this.statusTarget.innerText = `Request from: ${url}, there are ${rowCount} rows.`;
    }
  }
}

export default TableController;
import { Controller } from '@hotwired/stimulus';

class TableActionController extends Controller {
  add({ params }) {
    this.dispatch('add', {
      detail: { ...params },
      bubbles: true,
      cancelable: false,
    });
  }
}

export default TableActionController;

刺激JS跨控制器事件上下文

时光匆匆的小流年 2025-02-19 22:39:44

尝试一下:

<RelativeLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="top|left"
    app:layout_anchor="@+id/containerpager"
    app:layout_anchorGravity="bottom|right">

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end|bottom"
        android:layout_margin="@dimen/fab_margin"
        android:elevation="0dp"
        android:visibility="visible"
        app:backgroundTint="@color/colorPrimary"
        app:borderWidth="0dp"
        app:fabSize="normal"
        app:srcCompat="@drawable/ic_review_order" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:text="5"
        android:textColor="@color/white"
        android:textSize="22sp"
        android:visibility="visible" />
</RelativeLayout>

Give it a Try :

<RelativeLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="top|left"
    app:layout_anchor="@+id/containerpager"
    app:layout_anchorGravity="bottom|right">

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end|bottom"
        android:layout_margin="@dimen/fab_margin"
        android:elevation="0dp"
        android:visibility="visible"
        app:backgroundTint="@color/colorPrimary"
        app:borderWidth="0dp"
        app:fabSize="normal"
        app:srcCompat="@drawable/ic_review_order" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:text="5"
        android:textColor="@color/white"
        android:textSize="22sp"
        android:visibility="visible" />
</RelativeLayout>

徽章计数浮动动作按钮

时光匆匆的小流年 2025-02-19 09:23:08

好吧,一种方法是使用-split运算符,或者仅获取损坏字符串的 first 的方法,并检查它是否包含下划线字符(_);因为这似乎遵循命名计划。

Get-ChildItem |
    ForEach-Object -Process { 
        $destination = $_.Name.Split('-')[0]
        if ($destination -match "_") {
            Move-Item -LiteralPath $_.FullName -Destination "D:\share\$destination" -WhatIf 
        }
    }

鉴于您不想移动其他文件,这只会移动具有相同启动的文件。


删除Whatif安全性公共参数一旦您决定了结果。

Well, one way to do this is using the -Split operator, or method to get just the first part of the broken string and check to see if it contains the underscore character (_); since that seems to follow the naming scheme.

Get-ChildItem |
    ForEach-Object -Process { 
        $destination = $_.Name.Split('-')[0]
        if ($destination -match "_") {
            Move-Item -LiteralPath $_.FullName -Destination "D:\share\$destination" -WhatIf 
        }
    }

Given that you're not looking to move the other files, this will only move the files that have the same beginning.


Remove the -WhatIf safety common parameter once you've dictated the results are what you're after.

根据文件名将文件移至文件夹

时光匆匆的小流年 2025-02-19 04:09:06

请勿使用Laravel检测Laravel从您的服务器资源中消耗多少资源,而是使用服务器监视工具。

htop

是一个非常好的命令,我们可以用来检测哪些应用程序使用的服务器最多,多少!

现在,如果您对服务器良好 https://grafana.com/grafana.com/grafana/dashboards/ 检测RAM的使用等...

有一个很好的文档,但是如果您遇到任何麻烦,请发表评论,我将为您提供两个应用程序的服务器安装!

谢谢

Do not use Laravel to detect how much resources is Laravel consuming from your server resources, instead I would use server monitoring tools.

htop

Is a very good command that we can use to detect what apps are using our server the most and how much!

Now if you are good with servers, I advise you to use https://prometheus.io/, Use it with https://grafana.com/grafana/dashboards/ to detect the RAM usage etc...

There is a good documentation but if you faced any troubles, please comment and I'll help you with the server installation for both apps!

Thanks

查找Laravel应用程序实例正在使用多少RAM?

时光匆匆的小流年 2025-02-18 14:30:14

所讨论的代码是指官方参考每个列名。
在我的研究阶段,找不到更改标头中每一列颜色的能力。

更新

要设置单元单元的背景颜色,颜色设置在行索引和列名称上。准备一个列表,从数据框架中进行一行,然后使用该行的内容作为辅助循环过程创建背景颜色的字典。添加到列表中创建的字典。

c_list = []
cols = ['Date', 'Region', 'Temperature', 'Humidity', 'Pressure']

for row in df_color.itertuples():
    for i in range(len(cols)):
        color_dict = {}
        color_dict.update(
            {
                 'if':{'row_index': row[0], 'column_id': cols[i]},
                 'backgroundColor': row[i+1]
            }
        )
        c_list.append(color_dict)

app = Dash(__name__)

app.layout = dash_table.DataTable(
    data=df.to_dict('records'),
    columns=[{'id': c, 'name': c} for c in df.columns],
    style_data_conditional=c_list
)

if __name__ == '__main__':
    app.run_server(debug=True)

The code in question refers to the official reference, but the color coding can be completed by using the example on that page to set the color values of the column data of the same name for the data in the table, where a color is defined for each column name.
The ability to change the color for each column in the header was not found at the stage of my research.

Update

To set the background color for a unit of cells, the color setting is conditioned on the row index and column name. Prepare a list, take a row from the data frame, and create a dictionary of background colors using the contents of that row as a secondary loop process. Add that created dictionary to the list.

c_list = []
cols = ['Date', 'Region', 'Temperature', 'Humidity', 'Pressure']

for row in df_color.itertuples():
    for i in range(len(cols)):
        color_dict = {}
        color_dict.update(
            {
                 'if':{'row_index': row[0], 'column_id': cols[i]},
                 'backgroundColor': row[i+1]
            }
        )
        c_list.append(color_dict)

app = Dash(__name__)

app.layout = dash_table.DataTable(
    data=df.to_dict('records'),
    columns=[{'id': c, 'name': c} for c in df.columns],
    style_data_conditional=c_list
)

if __name__ == '__main__':
    app.run_server(debug=True)

enter image description here

带有颜色数据框的Python Dash的颜色数据列表

时光匆匆的小流年 2025-02-18 11:17:39

对象类型只是本机JS 对象。它仅具有与本机对象关联的功能和键。

因此,如果您尝试访问对象类型的属性,则会丢弃错误。

let b: object = {foo: 123};
b.foo; // Property 'foo' does not exist on type 'object'.(

但是,您可以使用{[键:字符串]:Any}进行同样的操作

let a: {[key: string]: any} = {foo: 123};
a.foo;

实际上,记录类型被声明为键入记录&lt; k扩展字符串|数字|符号,t&gt; = {[p in K]:t; }

The object type is just a native js Object. It only has the functions and keys associated with the native Object.

So if you try to access a property of an object type, it will throw an error.

let b: object = {foo: 123};
b.foo; // Property 'foo' does not exist on type 'object'.(

But you can do the same with {[key: string]: any}

let a: {[key: string]: any} = {foo: 123};
a.foo;

You can do the same with Record<string, any>.

In fact, the Record type is declared as type Record<K extends string | number | symbol, T> = { [P in K]: T; }

为什么使用索引签名`{[key:string]:任何}`而不是``object'type''?

时光匆匆的小流年 2025-02-18 11:01:56

使用SSC使用rangestat考虑此模拟:

. webuse grunfeld, clear

. rangestat (count) invest (sd) invest, int(year -2 0) by(company)

. list year invest* if company == 1

     +--------------------------------------+
     | year   invest   invest~t   invest_sd |
     |--------------------------------------|
  1. | 1935    317.6          1           . |
  2. | 1936    391.8          2    52.46731 |
  3. | 1937    410.6          3   49.173296 |
  4. | 1938    257.7          3   83.381305 |
  5. | 1939    330.8          3   76.474459 |
     |--------------------------------------|
  6. | 1940    461.2          3   103.08574 |
  7. | 1941      512          3   93.468577 |
  8. | 1942      448          3   33.790726 |
  9. | 1943    499.6          3   33.941912 |
 10. | 1944    547.5          3   49.761464 |
     |--------------------------------------|
 11. | 1945    561.2          3   32.343625 |
 12. | 1946    688.1          3   77.523807 |
 13. | 1947    568.9          3   71.147171 |
 14. | 1948    529.2          3   82.698164 |
 15. | 1949    555.1          3   20.154985 |
     |--------------------------------------|
 16. | 1950    642.9          3   59.592155 |
 17. | 1951    755.9          3   100.66322 |
 18. | 1952    891.2          3   124.31678 |
 19. | 1953   1304.4          3   285.74248 |
 20. | 1954   1486.7          3   305.11956 |
     +--------------------------------------+

Consider this analogue using rangestat from SSC:

. webuse grunfeld, clear

. rangestat (count) invest (sd) invest, int(year -2 0) by(company)

. list year invest* if company == 1

     +--------------------------------------+
     | year   invest   invest~t   invest_sd |
     |--------------------------------------|
  1. | 1935    317.6          1           . |
  2. | 1936    391.8          2    52.46731 |
  3. | 1937    410.6          3   49.173296 |
  4. | 1938    257.7          3   83.381305 |
  5. | 1939    330.8          3   76.474459 |
     |--------------------------------------|
  6. | 1940    461.2          3   103.08574 |
  7. | 1941      512          3   93.468577 |
  8. | 1942      448          3   33.790726 |
  9. | 1943    499.6          3   33.941912 |
 10. | 1944    547.5          3   49.761464 |
     |--------------------------------------|
 11. | 1945    561.2          3   32.343625 |
 12. | 1946    688.1          3   77.523807 |
 13. | 1947    568.9          3   71.147171 |
 14. | 1948    529.2          3   82.698164 |
 15. | 1949    555.1          3   20.154985 |
     |--------------------------------------|
 16. | 1950    642.9          3   59.592155 |
 17. | 1951    755.9          3   100.66322 |
 18. | 1952    891.2          3   124.31678 |
 19. | 1953   1304.4          3   285.74248 |
 20. | 1954   1486.7          3   305.11956 |
     +--------------------------------------+

计算Stata多年来的标准偏差

时光匆匆的小流年 2025-02-18 07:19:19

这种错误就是为什么我喜欢打字稿;)

编译器足够聪明,可以理解form.current可以包含表单,也可以是null,所以它是键入为htmlformelement | null

在您的sendemail函数中,您不会以任何方式考虑这种情况,因此编译器大喊大叫,发牢骚,完全正确!

您必须考虑form.current为null的情况:

  const sendEmail = (e) => {
    e.preventDefault();

    const currentForm = form.current;
    // this prevents sending emails if there is no form.
    // in case currentForm cannot possibly ever be null,
    // you could alert the user or throw an Error, here
    if (currentForm == null) return;

    // the compiler is smart enough to know that currentForm here is of type HTMLFormElement 
    emailjs.sendForm('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', currentForm, 'YOUR_PUBLIC_KEY')
      .then((result) => {
          console.log(result.text);
      }, (error) => {
          console.log(error.text);
      });
  };

This kind of error is why I love TypeScript ;)

The compiler is smart enough to understand that form.current can contain a form, or it could be null, so it is typed as HTMLFormElement | null.

In your sendEmail function you are not accounting for this case in any way, so the compiler is yelling and whining and is completely right!

You must account for the case in which form.current is null:

  const sendEmail = (e) => {
    e.preventDefault();

    const currentForm = form.current;
    // this prevents sending emails if there is no form.
    // in case currentForm cannot possibly ever be null,
    // you could alert the user or throw an Error, here
    if (currentForm == null) return;

    // the compiler is smart enough to know that currentForm here is of type HTMLFormElement 
    emailjs.sendForm('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', currentForm, 'YOUR_PUBLIC_KEY')
      .then((result) => {
          console.log(result.text);
      }, (error) => {
          console.log(error.text);
      });
  };

htmlformelement null不能分配给类型字符串的参数|打字稿|电子邮件

时光匆匆的小流年 2025-02-18 05:32:53

我根据几个月的评论写了这个脚本。如果您没有给出另一个示例,很难理解您想使用locarray

locArray = [
    [(1134, 604), (1134, 605)], # 0
    [(1135, 604), (1135, 605)], # 1
    [(1134, 605), (1135, 605)], # 2
    [(1135, 605), (1134, 605)], # 3
    [(1136, 605), (1135, 605)], # 4
    [(1135, 606), (1135, 605)], # 5
    [(1153, 921), (1153, 922)], # 6
    [(1154, 921), (1153, 921)], # 7
    [(1153, 922), (1153, 921)]  # 8
]

# pairs is an array of pairs: [(x, y), ..., (x, y)]
#
# It checks if, from coord z is inside
# any of the pairs from the pairs array.
def coordInside(pairs, coord):
    for pair in pairs:
        if (coord == pair[0] or coord == pair[1]):
            return True
    return False

# Seeks out for every created category, from pair (a, b),
# if a or b is listed inside any category array.
#
# If no category is found, return -1
def findCategory(categories, pair):
    index = 0
    for category in categories:
        if (coordInside(category, pair[0]) or coordInside(category, pair[1])):
            return index
        index += 1
    return -1

# Categorizes by column order: [0, 1] all x-coordinates, then all y-coordinates.
def categorizeByColumns(array, cols=[0]):
    categories = []

    # For every column
    for col in cols:

        # For every row of the array:
        for row in array:

            # Retrieve the pair from the current row and column
            pair = row[col]

            # Get the current Category
            index = findCategory(categories, pair)

            # If no Category exists
            if (index == -1):
                # Create one and append to categories array
                categories.append([pair])

            # If the Category exists, append pair given it's not a duplicate
            elif (pair not in categories[index]):
                categories[index].append(pair)

    return categories

# Generates the desired output you want
print(categorizeByColumns(locArray, [0, 1]))

这是输出:[((1134,604),(1135,604),(1134,605),(1135,605),(1136,605),(1135,606)],(1153 ,921),(1154,921),(1153,922)]]

I wrote this script based on your comment using months. If you didn't gave another example it would be hard to understand what you wanted to do with locArray.

locArray = [
    [(1134, 604), (1134, 605)], # 0
    [(1135, 604), (1135, 605)], # 1
    [(1134, 605), (1135, 605)], # 2
    [(1135, 605), (1134, 605)], # 3
    [(1136, 605), (1135, 605)], # 4
    [(1135, 606), (1135, 605)], # 5
    [(1153, 921), (1153, 922)], # 6
    [(1154, 921), (1153, 921)], # 7
    [(1153, 922), (1153, 921)]  # 8
]

# pairs is an array of pairs: [(x, y), ..., (x, y)]
#
# It checks if, from coord z is inside
# any of the pairs from the pairs array.
def coordInside(pairs, coord):
    for pair in pairs:
        if (coord == pair[0] or coord == pair[1]):
            return True
    return False

# Seeks out for every created category, from pair (a, b),
# if a or b is listed inside any category array.
#
# If no category is found, return -1
def findCategory(categories, pair):
    index = 0
    for category in categories:
        if (coordInside(category, pair[0]) or coordInside(category, pair[1])):
            return index
        index += 1
    return -1

# Categorizes by column order: [0, 1] all x-coordinates, then all y-coordinates.
def categorizeByColumns(array, cols=[0]):
    categories = []

    # For every column
    for col in cols:

        # For every row of the array:
        for row in array:

            # Retrieve the pair from the current row and column
            pair = row[col]

            # Get the current Category
            index = findCategory(categories, pair)

            # If no Category exists
            if (index == -1):
                # Create one and append to categories array
                categories.append([pair])

            # If the Category exists, append pair given it's not a duplicate
            elif (pair not in categories[index]):
                categories[index].append(pair)

    return categories

# Generates the desired output you want
print(categorizeByColumns(locArray, [0, 1]))

This is the output: [[(1134, 604), (1135, 604), (1134, 605), (1135, 605), (1136, 605), (1135, 606)], [(1153, 921), (1154, 921), (1153, 922)]]

如何在Python中分类每个配对2D坐标?

时光匆匆的小流年 2025-02-18 01:51:09

权重可以下载为:

from tensorflow.keras.applications import resnet

base_cnn = resnet.ResNet50(
    weights="imagenet", input_shape=target_shape + (3,), include_top=False
)

base_cnn.save("weights.h5")

然后加载保存的权重:

from tensorflow.keras.models import load_model
base_cnn=load_model('weights.h5')

Weights could be downloaded as:

from tensorflow.keras.applications import resnet

base_cnn = resnet.ResNet50(
    weights="imagenet", input_shape=target_shape + (3,), include_top=False
)

base_cnn.save("weights.h5")

Then load the saved weights:

from tensorflow.keras.models import load_model
base_cnn=load_model('weights.h5')

resnet50_weights_tf上的URL获取失败

时光匆匆的小流年 2025-02-17 13:37:45

赔偿是一个很好的举动,因为将大文件写入S3比编写小文件更好。

坚持将您的所有文件写入S3时,您会放慢速度。因此,您将数据写给S3两次。

S3是用于大型,缓慢,廉价的存储空间。不是要快速移动数据。如果您想迁移数据库 aws> aws具有该工具,值得研究它们。即使这样,您也可以将文件移至S3中。

S3写入存储桶,并通过文件路径确定存储桶,它使用尾部变化来分配&amp;自动拆分桶。 (/heres/some/wariation/at/th the/tail1,/heres/some/wariation/at/the/tail2)在这里是您的瓶颈。要获取多个存储桶,请将文件更改为文件路径的头部。(/head1/variation/isfaster/,/head2/variation/iSfaster/)

  1. 尝试删除persist。 (至少将cache()视为较便宜的替代方案。
  2. 保持待机的范围
  3. 不同,以改变文件路径的头部,以获取更多存储桶。
  4. 考虑重新设计将数据推入S3使用REST API多个PART将数据推入S3上传。

Reparation is a good move as writing large files to S3 is better than writing small files.

Persist will slow you down as your writing all the files to S3 with that. So you are writing the data to S3 twice.

S3 is made for large, slow, inexpensive storage. It's not made to move data quickly. If you want to migrate the database AWS has tools for that and it's worth looking into them. Even if its so you can then move the files into S3.

S3 writes to buckets and it determines the buckets by file path, It uses tail variation to assign & auto split buckets. (/heres/some/variation/at/the/tail1,/heres/some/variation/at/the/tail2) Buckets are your bottleneck here. To get multiple buckets, keep the vary the file at the head of the file path.(/head1/variation/isfaster/,/head2/variation/isfaster/)

  1. Try and remove the persist. (At least consider cache() as a cheaper alternative.
  2. Keep the repartition
  3. vary the head of the file path to get assigned more buckets.
  4. consider a redesign that pushes the data into S3 with rest api multi-part upload.

更快地将Pyspark DF写入S3

时光匆匆的小流年 2025-02-16 13:55:19

发送率配置IE应该在客户端进行。
我认为您不会使用“纯”卷发,而是它将是某种脚本/应用程序。因此,您的节流需要在那里完成。

The send rate configuration i.e throttling should be done on the client side.
I would assume that you will not be using "plain" curl, but rather it will be some sort of script/application. So your throttling needs to be done there.

使用Splunk HTTP事件收集器(HEC),如何以每秒1000个事件的最大为1000个事件批量批处理事件

时光匆匆的小流年 2025-02-16 13:39:36

您可能需要在内部/etc/apache2/apache2/ site-abailable 内添加conf(test.watermaps-eg.com.conf)文件
在运行命令之前

sudo a2ensite test.watermaps-eg.com

You might want to add the conf (test.watermaps-eg.com.conf) file inside /etc/apache2/site-available
before running the command

sudo a2ensite test.watermaps-eg.com

ubuntu上的apache错误:site(stiteName)不存在

更多

推荐作者

櫻之舞

文章 0 评论 0

弥枳

文章 0 评论 0

m2429

文章 0 评论 0

野却迷人

文章 0 评论 0

我怀念的。

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文