问:
Google chart not showing up on Django
so, I'm sending this data to the frontend from my view:

```<code>data = [["Name", "Ammount"],
        ["x", 0],
        ["y", 2],
        ["z", 1]]
</code>```

And I'm trying to show this as a bar graph to my user, but nothing is showing up (literally, It's blank where the graphic was supposed to be).

My html looks like this:

```<code>{% load static %}

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <!-- Favicon-->
        <link rel="icon" type="image/x-icon" href={% static "assets/icon.ico" %} />
        <!-- Core theme CSS (includes Bootstrap)-->
        <link href={% static "css/styles.css" %} rel="stylesheet" />

        <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
        <script type="text/javascript">

            google.charts.load('current', {'packages':['bar']});
            google.charts.setOnLoadCallback(drawChart_decision_type);
            function drawChart_decision_type() {
                var data3 = google.visualization.arrayToDataTable({{ my_data|safe }});

                var options3 = {
                    chart: {
                        title: 'Stuff',
                        subtitle: 'Test',
                },
                backgroundColor: '#FFFFFF',
                bars: 'horizontal' // Required for Material Bar Charts.
                };

                var chart3 = new google.charts.Bar(document.getElementById('barchart_materia'));

                chart3.draw(data3, google.charts.Bar.convertOptions(options3));
            }

        </script>
    </head>
    <body>
                <div class="card_view">
                    <div id="barchart_material" style="width: 700px; height: 300px;"></div>
                </div>

<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script src={% static "js/scripts.js" %} ></script>
</body>
</html>
</code>```

There are other things on my html code, but nothing that comes to mind as important. Just some hyperlinks that connect the user to other pages, should not be a huge influence on this problem alone.

Any ideas on what am I doing wrong?

Title: Google chart not showing up on Django

Body:
so, I'm sending this data to the frontend from my view:

data = [["Name", "Ammount"],
        ["x", 0],
        ["y", 2],
        ["z", 1]]

And I'm trying to show this as a bar graph to my user, but nothing is showing up (literally, It's blank where the graphic was supposed to be).

My html looks like this:

{% load static %}

<!DOCTYPE html>

        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />

        <link rel="icon" type="image/x-icon" href={% static "assets/icon.ico" %} />

        <link href={% static "css/styles.css" %} rel="stylesheet" />

There are other things on my html code, but nothing that comes to mind as important. Just some hyperlinks that connect the user to other pages, should not be a huge influence on this problem alone.

Any ideas on what am I doing wrong?


来源: stackexchange

问:
In Vega Lite, is there a way to lock the axis while using pan and zoom so they don't go beyond the domain of your data?
I have a pretty standard pan and zoom function in my vega lite set up:

const brush = vl.selectInterval().bind('scales').encodings("x").clear('dblclick')

I was just wondering if there was sa way to lock the x axis so that you couldn't pan outside of the domain.

I have tried to lock the domain in the actual chart, but nothing happened so I expect that the actual pan and zoom selector needs to be adjusted.

ContentLicense: CC BY-SA 4.0


问:
Transform property is not being applied in Javascript
Basically, I am trying to create an HTML element in Javascript when my mouse hovers over a certain element. However, I want the new HTML element that was just created to have a certain rotation/angle.
Here is my code:

```<code>const element = document.getElementsByClassName("child");
const text = element[0].getElementsByTagName("p");
let replacement;

function pulsateText() {
  replacement = document.createElement("p");
  const node = document.createTextNode("replace");
  replacement.appendChild(node);
  element[0].appendChild(replacement);
  replacement.style.transform = "rotate(90deg)";
  replacement.style.color = "red";
  text[0].style.opacity = "0";
}

element[0].addEventListener("mouseover", pulsateText);
element[0].addEventListener("mouseout", function() {
  replacement.remove();
  text[0].style.opacity = "1";
})
</code>```

I have tried using the transform property in order to rotate the element by 90 degrees, but the element stays the same. However, the in the next line, I change the color of the element, and that works out as expected.
Any help on this problem would be appreciated...
Thank you in advance.

Body:
Basically, I am trying to create an HTML element in Javascript when my mouse hovers over a certain element. However, I want the new HTML element that was just created to have a certain rotation/angle.
Here is my code:

const element = document.getElementsByClassName("child");
const text = element[0].getElementsByTagName("p");
let replacement;

function pulsateText() {
  replacement = document.createElement("p");
  const node = document.createTextNode("replace");
  replacement.appendChild(node);
  element[0].appendChild(replacement);
  replacement.style.transform = "rotate(90deg)";
  replacement.style.color = "red";
  text[0].style.opacity = "0";
}

element[0].addEventListener("mouseover", pulsateText);
element[0].addEventListener("mouseout", function() {
  replacement.remove();
  text[0].style.opacity = "1";
})

I have tried using the transform property in order to rotate the element by 90 degrees, but the element stays the same. However, the in the next line, I change the color of the element, and that works out as expected.
Any help on this problem would be appreciated...
Thank you in advance.


问:
How do I pass floating-point arguments to a function in x64 assembly?
x64 assembly has a fairly standard calling convention for passing arguments: first argument goes in RDI, second in RSI, and so on. Thus, if I want to print the quotient of dividing two floating-point values with the printf function, I would think to do something like this:

```<code>.section .data
    outfloatfmt: .asciz "%lf\n"
.section .text
    .extern printf
    .global main
main:
    pushq %rbp
    movq %rsp, %rbp
    subq $16, %rsp
    movq $7, -16(%rbp)      # x = 7
    movq $2, -8(%rbp)       # y = 2
    fld -16(%rbp)           # Move x into st0 register.
    fld -8(%rbp)            # Move y into st1 register.
    fdivp %st(1)            # Divide st0 by st1 and store quotient in st0.
    fstpl -16(%rsp)         # Store quotient back out to local variable x.
    movq -16(%rsp), %rsi    # Load quotient into rsi.
    leaq outfloatfmt(%rip), %rdi
    movq $0, %rax
    callq printf
    addq $16, %rsp
    movq %rbp, %rsp
    popq %rbp
    ret
</code>```

This always results in an output of 0.00000. The RSI register seems to have a ridiculously long hex value stored after I perform the relevant movq instruction. I'm not sure if it has something to do with the fact that I'm storing the rest of the floating-point quotient back out to local memory and then into an integer register (but even if this is the case, shouldn't printf interpret these bytes as a floating-point value?).

If I try print/f $st0 or print/f $st1 in GDB, neither contain the correct values. What am I doing wrong?

Body:
x64 assembly has a fairly standard calling convention for passing arguments: first argument goes in RDI, second in RSI, and so on. Thus, if I want to print the quotient of dividing two floating-point values with the printf function, I would think to do something like this:

.section .data
    outfloatfmt: .asciz "%lf\n"
.section .text
    .extern printf
    .global main
main:
    pushq %rbp
    movq %rsp, %rbp
    subq $16, %rsp
    movq $7, -16(%rbp)      # x = 7
    movq $2, -8(%rbp)       # y = 2
    fld -16(%rbp)           # Move x into st0 register.
    fld -8(%rbp)            # Move y into st1 register.
    fdivp %st(1)            # Divide st0 by st1 and store quotient in st0.
    fstpl -16(%rsp)         # Store quotient back out to local variable x.
    movq -16(%rsp), %rsi    # Load quotient into rsi.
    leaq outfloatfmt(%rip), %rdi
    movq $0, %rax
    callq printf
    addq $16, %rsp
    movq %rbp, %rsp
    popq %rbp
    ret

This always results in an output of 0.00000. The RSI register seems to have a ridiculously long hex value stored after I perform the relevant movq instruction. I'm not sure if it has something to do with the fact that I'm storing the rest of the floating-point quotient back out to local memory and then into an integer register (but even if this is the case, shouldn't printf interpret these bytes as a floating-point value?).

If I try print/f $st0 or print/f $st1 in GDB, neither contain the correct values. What am I doing wrong?


问:
Reading HLS stream from Amazon IVS with timestamped metadata using PYTHON
I'm trying to read HLS stream (Amazon IVS) using python (So I could process it with openCV for computer vision purposes). I can read simple stream with OpenCV although I notice a huuuuge latency (20+ seconds) comparing to what I see in a Live console of AWS. But putting that aside, I also want to be able to read timestamped metadata, which I need for frames processing. I can't see any reference in the docs for reading metadata with python, I can see events for JS, IOS, Android, Web in general, but nothing for server processing! This is extremely weird. I figured it has to be some kind of WSS, I asked ChatGPT and apparently it was available, but when I try the same approach I get:
server rejected WebSocket connection: HTTP 200 error...

Is there anything I'm missing here? How can I read those events with python? The code I'm using is:

```<code>    # Establish a WebSocket connection to the IVS stream
    try:
        async with websockets.connect(STREAM_WS) as websocket:
            # Subscribe to the timed metadata event
            await websocket.send(json.dumps({"message": "subscribe", "data": "metadata"}))

            # Continuously receive and print the timed metadata events
            while True:
                metadata_event = await websocket.recv()
                print(metadata_event)
    except Exception as e:
        print(e)
</code>```

where STREAM_WS ends with .m3u8 (I think that might be important because ChatGPT tells me about something about an Player URL ending with /live)...

I'm literally out of ideas

Body:
I'm trying to read HLS stream (Amazon IVS) using python (So I could process it with openCV for computer vision purposes). I can read simple stream with OpenCV although I notice a huuuuge latency (20+ seconds) comparing to what I see in a Live console of AWS. But putting that aside, I also want to be able to read timestamped metadata, which I need for frames processing. I can't see any reference in the docs for reading metadata with python, I can see events for JS, IOS, Android, Web in general, but nothing for server processing! This is extremely weird. I figured it has to be some kind of WSS, I asked ChatGPT and apparently it was available, but when I try the same approach I get:
server rejected WebSocket connection: HTTP 200 error...

Is there anything I'm missing here? How can I read those events with python? The code I'm using is:

    # Establish a WebSocket connection to the IVS stream
    try:
        async with websockets.connect(STREAM_WS) as websocket:
            # Subscribe to the timed metadata event
            await websocket.send(json.dumps({"message": "subscribe", "data": "metadata"}))

            # Continuously receive and print the timed metadata events
            while True:
                metadata_event = await websocket.recv()
                print(metadata_event)
    except Exception as e:
        print(e)

where STREAM_WS ends with .m3u8 (I think that might be important because ChatGPT tells me about something about an Player URL ending with /live)...

I'm literally out of ideas


问:
How to add Image from external URL in react Quill Editor
I have a react quill bot editor. I want to paste an external URL and fetch the image inside an editor like Stackoverflow. Currently, quill Editor allows me to only upload from Desktop.

Could someone help me?

```<code>import React, { useState } from 'react';
import ReactQuill from 'react-quill';
import 'react-quill/dist/quill.snow.css';

function Editor({value, setValue}) {

    const modules = {
        toolbar: [["bold", "italic", "image"]],
    }

    return (
     <ReactQuill theme="snow" value={value} onChange={setValue} modules={modules} />
      );
}

export default Editor;

</code>```

Body:
I have a react quill bot editor. I want to paste an external URL and fetch the image inside an editor like Stackoverflow. Currently, quill Editor allows me to only upload from Desktop.

Could someone help me?

import React, { useState } from 'react';
import ReactQuill from 'react-quill';
import 'react-quill/dist/quill.snow.css';

function Editor({value, setValue}) {

    const modules = {
        toolbar: [["bold", "italic", "image"]],
    }

    return (
     <ReactQuill theme="snow" value={value} onChange={setValue} modules={modules} />
      );
}

export default Editor;


问:
Android Studio with Chaquopy: Tesseract Not Installed or Not in PATH
I'm trying to create an OCR android app. I already have a functioning script in python and I'm trying to Implement it with chaquopy. I did the necessary config in build.gradle.

```<code>python{
    version "3.8"
    buildPython "C:/Users/user/AppData/Local/Programs/Python/Python38/python.exe"
    pip {
        // A requirement specifier, with or without a version number:
        install "packaging"
        install "pillow"
        install "pytesseract"}

}
</code>```

This is the script inside the src/main/Python/ocr.py

```<code>import pytesseract
from PIL import Image as PIL_image

pytesseract.pytesseract.tesseract_cmd =\
                                      r'C:\Program Files\Tesseract-OCR\tesseract.exe'
tessdata_dir_config = r'--tessdata-dir "C:\Users\user\AndroidStudioProjects\teepee\app\src\main\python\tessdata"'

def bitmaptoString(bitmap):
    res= pytesseract.image_to_string(bitmap, lang='eng', config=tessdata_dir_config)
    return res
def test():
    return "chaquopy in the works"
</code>```

When invoking this:

```<code>python = Python.getInstance();
PyObject pobj = python.getModule("ocr");
String ouText=pobj.callAttr("bitmaptoString",bitmap.toString()).toString();
Log.e("_______________","TESSER:");
Log.e("OUTPUT_OF_PYFUNC",ouText);
</code>```

It says that tesseract is not found:

```<code>java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/10101 flg=0x1 launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) }} to activity {com.example.teepee/com.example.teepee.mainActivity}: com.chaquo.python.PyException: TesseractNotFoundError: C:\Program Files\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information.
</code>```

I also tried building a static tesseract with vcpkg and adding the path to the executable but the same problem happens.

I really need your help.

Body:
I'm trying to create an OCR android app. I already have a functioning script in python and I'm trying to Implement it with chaquopy. I did the necessary config in build.gradle.

python{
    version "3.8"
    buildPython "C:/Users/user/AppData/Local/Programs/Python/Python38/python.exe"
    pip {
        // A requirement specifier, with or without a version number:
        install "packaging"
        install "pillow"
        install "pytesseract"}

}

This is the script inside the src/main/Python/ocr.py

import pytesseract
from PIL import Image as PIL_image

pytesseract.pytesseract.tesseract_cmd =\
                                      r'C:\Program Files\Tesseract-OCR\tesseract.exe'
tessdata_dir_config = r'--tessdata-dir "C:\Users\user\AndroidStudioProjects\teepee\app\src\main\python\tessdata"'

def bitmaptoString(bitmap):
    res= pytesseract.image_to_string(bitmap, lang='eng', config=tessdata_dir_config)
    return res
def test():
    return "chaquopy in the works"

When invoking this:

python = Python.getInstance();
PyObject pobj = python.getModule("ocr");
String ouText=pobj.callAttr("bitmaptoString",bitmap.toString()).toString();
Log.e("_______________","TESSER:");
Log.e("OUTPUT_OF_PYFUNC",ouText);

It says that tesseract is not found:

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/10101 flg=0x1 launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) }} to activity {com.example.teepee/com.example.teepee.mainActivity}: com.chaquo.python.PyException: TesseractNotFoundError: C:\Program Files\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information.

I also tried building a static tesseract with vcpkg and adding the path to the executable but the same problem happens.

I really need your help.


问:
How did I fix my code for moving an object along plane in Unity3D?
I am trying to move an object along a plane in Unity3D, so that the object's y position is clamped to the plane and the x and z move according to the mouse moving side to side/up and down.

It seems like the code is almost there, but there is a scaling issue with the mouse's up/down movement.

Moving the object side to side works properly and looks like so: The mouse behavior is shown in red. Moving the object forward and back, or up and down with the mouse, is scaled incorrectly and looks like so: The mouse is at the x, but the capsule is not aligned with the mouse. Ideally, the mouse should correspond with the position of the object better, like so: The y of the mouse and the far-backness of the object should align.

I believe there is a scaling error in the code for moving the mouse up and down.

The code looks like this.

```<code>private void FixedUpdate()
{
    transform.localPosition = GetMouseAsWorldPoint() + mOffset;
}

void OnMouseDown()
{
    mZCoord = Camera.main.WorldToScreenPoint(gameObject.transform.position).z;
    mOffset = gameObject.transform.localPosition - GetMouseAsWorldPoint();
}

private Vector3 GetMouseAsWorldPoint()
{
    Vector3 mousePoint = Input.mousePosition;
    mousePoint.z = mZCoord;
    mousePoint = Camera.main.ScreenToWorldPoint(mousePoint);
    mousePoint.y = plane.GetComponent<Transform>().position.y;
    return mousePoint;
}
</code>```

Body:
I am trying to move an object along a plane in Unity3D, so that the object's y position is clamped to the plane and the x and z move according to the mouse moving side to side/up and down.

It seems like the code is almost there, but there is a scaling issue with the mouse's up/down movement.

Moving the object side to side works properly and looks like so: The mouse behavior is shown in red. Moving the object forward and back, or up and down with the mouse, is scaled incorrectly and looks like so: The mouse is at the x, but the capsule is not aligned with the mouse. Ideally, the mouse should correspond with the position of the object better, like so: The y of the mouse and the far-backness of the object should align.

I believe there is a scaling error in the code for moving the mouse up and down.

The code looks like this.

private void FixedUpdate()
{
    transform.localPosition = GetMouseAsWorldPoint() + mOffset;
}

void OnMouseDown()
{
    mZCoord = Camera.main.WorldToScreenPoint(gameObject.transform.position).z;
    mOffset = gameObject.transform.localPosition - GetMouseAsWorldPoint();
}

private Vector3 GetMouseAsWorldPoint()
{
    Vector3 mousePoint = Input.mousePosition;
    mousePoint.z = mZCoord;
    mousePoint = Camera.main.ScreenToWorldPoint(mousePoint);
    mousePoint.y = plane.GetComponent<Transform>().position.y;
    return mousePoint;
}


问:
how can I speed up the process of summing values in this python code?
I have df.Ah, column of a dataframe, which has  either positive values or zeros. I want to store into one another dataframe the sum  of values before a zero  and follow that with one another zero.

for example : df.Ah = [ 1,2,3,0,46,0,24,1] , gives as  out put [6,0,46,0,25].

my attempt was:

lst = df.Ah;
lst1 = pd.DataFrame(index=np.arange(100000000)); #if I replace values of a pre-existing column code #speeds up

summ = 0;
for i , elem in enumerate(lst):

    if elem != 0:
        summ = summ + elem;
    else:
        if summ:
            lst1.loc[i,'Ah']=sum;

        lst1.loc[i,'Ah']=elem;
        summ = 0;
...

if summ:
    lst1.iloc[i+1, 0] = summ;

#If I print the index i for each loop , it generates 100.000 prints for each minute;
# which means it would take around five hours to complete checking 31 milion values
# of my dataframe and I don't have all that time for this basic operation.
```

is there a way to speed up this code ?

Body:
I have df.Ah, column of a dataframe, which has  either positive values or zeros. I want to store into one another dataframe the sum  of values before a zero  and follow that with one another zero.

for example : df.Ah = [ 1,2,3,0,46,0,24,1] , gives as  out put [6,0,46,0,25].

my attempt was:

lst = df.Ah;
lst1 = pd.DataFrame(index=np.arange(100000000)); #if I replace values of a pre-existing column code #speeds up

summ = 0;
for i , elem in enumerate(lst):

    if elem != 0:
        summ = summ + elem;
    else:
        if summ:
            lst1.loc[i,'Ah']=sum;

        lst1.loc[i,'Ah']=elem;
        summ = 0;
...

if summ:
    lst1.iloc[i+1, 0] = summ;

#If I print the index i for each loop , it generates 100.000 prints for each minute;
# which means it would take around five hours to complete checking 31 milion values
# of my dataframe and I don't have all that time for this basic operation.

is there a way to speed up this code ?


问:
Saving multiple Rdata files to csv file(s)
I have 18000 RData files, and I want to convert them to a separate or merged (whichever is possible) CSV files. I know how to convert one file, but since I am new to using R, I don't know how to do that with many data files.

Any help would be good.
Thank you!


问:
Inconsistent Scaling in SwiftUI Projects
I recently copied my SwiftUI code from one Xcode project into a new project. The code in both projects is currently identical, and I'm running both projects on the same simulator, but the scaling within the simulator is different. This leads me to believe that I might be missing some difference within the project settings, but I'm not sure what it could be.

Here's the code as a minimal reproducible example:

```<code>struct MyApp: App {

    var body: some Scene {

        WindowGroup {
            ContentView()
        }
    }
}
</code>```
```<code>struct ContentView: View {

    var body: some View {
        RoundedRectangle(cornerRadius: 40)
            .foregroundColor(.red)
            .frame(width: 400, height: 400)

    }
}
</code>```

Here is the screenshot from the old project:
Image from old project

And here is the screenshot from the new project:
Image from new project

Notice that the old project red square is larger than the new project red square, though the code is the same. What could be causing this?

Same files within different projects run on the same simulator should produce the same result.

Searched through targets settings.

Cleaned build settings

Deleted derived data

Restarted Xcode

Body:
I recently copied my SwiftUI code from one Xcode project into a new project. The code in both projects is currently identical, and I'm running both projects on the same simulator, but the scaling within the simulator is different. This leads me to believe that I might be missing some difference within the project settings, but I'm not sure what it could be.

Here's the code as a minimal reproducible example:

struct MyApp: App {

    var body: some Scene {

        WindowGroup {
            ContentView()
        }
    }
}

struct ContentView: View {

    var body: some View {
        RoundedRectangle(cornerRadius: 40)
            .foregroundColor(.red)
            .frame(width: 400, height: 400)

    }
}

Here is the screenshot from the old project:
Image from old project

And here is the screenshot from the new project:
Image from new project

Notice that the old project red square is larger than the new project red square, though the code is the same. What could be causing this?

Same files within different projects run on the same simulator should produce the same result.

Searched through targets settings.

Cleaned build settings

Deleted derived data

Restarted Xcode


问:
how to resize collision box size in unreal engine tileset?
I want to make a tileset collision smaller than a tile size.
So, I clicked "Add Box" in top bar and relocated vertices, but collision Box was not resize.
And I can't operate "Box size" Property directly.
Also I made it with polygon shape type but still doesn't work out.
How to resize collision box size?

Tile size of Tilemap is 52X52 and tileset's size is 55X69, so I want to make collision 52X52.
Here is my Tileset View screenshot.
enter image description here

Here is my Tilemap View screenshot.
enter image description here


问:
How to transpose data in R using Dcast and how to specify fun.aggregate arguement
I am trying to convert my dataset from wide to long format using dcast. I start by reading in my file as a CSV (read_SelectionModel). The code that I have been trying is below:

x = colnames(read_SelectionModel[,3:241])
t = melt(read_SelectionModel, id.vars = c("Ratio", "Ticker"), measure.vars = x, variable.name = "Dates", value.name = "Ratio Value")
r_traverse2 = dcast(t, Dates + Ticker ~ Ratio, value.var = "Ratio Value", fun.aggregate = sum, na.rm = TRUE)
```

I have two id.vars variables Ratio and Ticker in order to have each ratio correspond to each stock's ticker. Having measure.vars = x, and variable.name = "Dates". I am creating a new column called "Ratio Value" that will hold the data for each ratio/stock.

Using r_traverse2 I have been using dcast to try to go from wide to format but I have been getting the following error:

"Error in .fun(.value[0], ...) : invalid 'type' (character) of argument".

I have tried to adjust fun.aggregate but keep getting the same error as well as the fun function not being found. How can I go about fixing this?

I have tried fun.aggregate = sum, fun.aggregate = mean, and I have also tried not specifying fun.aggregate argument. If I do not specify this, it defaults to a length where my observations are 0's and 1's instead of the ratio/stock data I want.

Body:
I am trying to convert my dataset from wide to long format using dcast. I start by reading in my file as a CSV (read_SelectionModel). The code that I have been trying is below:

x = colnames(read_SelectionModel[,3:241])
t = melt(read_SelectionModel, id.vars = c("Ratio", "Ticker"), measure.vars = x, variable.name = "Dates", value.name = "Ratio Value")
r_traverse2 = dcast(t, Dates + Ticker ~ Ratio, value.var = "Ratio Value", fun.aggregate = sum, na.rm = TRUE)

I have two id.vars variables Ratio and Ticker in order to have each ratio correspond to each stock's ticker. Having measure.vars = x, and variable.name = "Dates". I am creating a new column called "Ratio Value" that will hold the data for each ratio/stock.

Using r_traverse2 I have been using dcast to try to go from wide to format but I have been getting the following error:

"Error in .fun(.value[0], ...) : invalid 'type' (character) of argument".

I have tried to adjust fun.aggregate but keep getting the same error as well as the fun function not being found. How can I go about fixing this?

I have tried fun.aggregate = sum, fun.aggregate = mean, and I have also tried not specifying fun.aggregate argument. If I do not specify this, it defaults to a length where my observations are 0's and 1's instead of the ratio/stock data I want.


问:
Twitter Developer and Visualizations
I am trying to create visualizations through R. I've created a new project in the twitter developer, have my secret API keys, and can pull up tweets on Twitter when I search.

```<code>Soccer <- search_tweets ("World Cup", n=50, include_rts =FALSE)
</code>```

Does anyone know how I can create visualizations with this information? I am also extremely new at R so any help would be appreciated.

I tried following tutorials online but I keep getting multiple error messages.

Title: Twitter Developer and Visualizations

Body:
I am trying to create visualizations through R. I've created a new project in the twitter developer, have my secret API keys, and can pull up tweets on Twitter when I search.

Soccer <- search_tweets ("World Cup", n=50, include_rts =FALSE)

Does anyone know how I can create visualizations with this information? I am also extremely new at R so any help would be appreciated.

I tried following tutorials online but I keep getting multiple error messages.


问:
Application built with Angular and Spring Boot not running in Google App Engine
I have an application built with Angular (Frontend) and Spring Boot with Spring Security (Backend) using Auth0 JWT. The application runs successfully in the local machine but becomes unresponsive when i deploy it to Google App Engine surprisingly the application does not give me any error when i try to access the API but still i get no response. If i remove spring security and the custom jwt filters, it runs perfectly well in Google App Engine. The problem started when i introduced spring security, custom filters and Auth0 jwt. Here are the code snippets:

SecurityConfig

```<code>public class SecurityConfig
{
    private final JwtFilter jwtFilter;
    private final UserDetailsService userDetailsService;
    private final PasswordEncoder passwordEncoder;

    @Bean
    public CorsFilter corsFilter() {
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        CorsConfiguration config = new CorsConfiguration();
        config.setAllowCredentials(true);
        config.setAllowedOrigins(List.of("*"));
        config.addAllowedHeader("*");
        config.addAllowedMethod("*");
        config.setExposedHeaders(List.of("*"));

        source.registerCorsConfiguration("/auosy/api/**", config);

        CorsFilter corsFilter = new CorsFilter(source);

        return corsFilter;
    }

    @Bean
    public WebMvcConfigurer corsConfig(){
        return new WebMvcConfigurer() {
            @Override
            public void addCorsMappings(CorsRegistry registry) {
                registry
                        .addMapping("/api/**")
                        .allowCredentials(false)
                        .allowedHeaders("*")
                        .allowedOrigins("*")
                        .allowedMethods("*");
            }
        };
    }
    @Bean
    public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration)
            throws Exception {
        return authenticationConfiguration.getAuthenticationManager();
    }

    @Bean
    public SecurityFilterChain configuration(HttpSecurity http) throws Exception
    {
        http
                .cors();
        http
                .csrf()
                .disable();
        http
                .authorizeRequests()
                .mvcMatchers("/api/auth/**")
                .permitAll()
                .anyRequest()
                .authenticated()
                .and()
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS);

        http
                .addFilterBefore(JwtFilter, UsernamePasswordAuthenticationFilter.class);

        return http.build();
    }
}
</code>```

SpringBootServletInitializer

```<code>@Configuration
public class ServletInitializer extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(LVPLauncher.class);
    }
}
</code>```

I have tried to use SpringBootServletInitializer hoping it was going to resolve the issue but nothings changed.

Body:
I have an application built with Angular (Frontend) and Spring Boot with Spring Security (Backend) using Auth0 JWT. The application runs successfully in the local machine but becomes unresponsive when i deploy it to Google App Engine surprisingly the application does not give me any error when i try to access the API but still i get no response. If i remove spring security and the custom jwt filters, it runs perfectly well in Google App Engine. The problem started when i introduced spring security, custom filters and Auth0 jwt. Here are the code snippets:

SecurityConfig

public class SecurityConfig
{
    private final JwtFilter jwtFilter;
    private final UserDetailsService userDetailsService;
    private final PasswordEncoder passwordEncoder;

    @Bean
    public CorsFilter corsFilter() {
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        CorsConfiguration config = new CorsConfiguration();
        config.setAllowCredentials(true);
        config.setAllowedOrigins(List.of("*"));
        config.addAllowedHeader("*");
        config.addAllowedMethod("*");
        config.setExposedHeaders(List.of("*"));

        source.registerCorsConfiguration("/auosy/api/**", config);

        CorsFilter corsFilter = new CorsFilter(source);

        return corsFilter;
    }

    @Bean
    public WebMvcConfigurer corsConfig(){
        return new WebMvcConfigurer() {
            @Override
            public void addCorsMappings(CorsRegistry registry) {
                registry
                        .addMapping("/api/**")
                        .allowCredentials(false)
                        .allowedHeaders("*")
                        .allowedOrigins("*")
                        .allowedMethods("*");
            }
        };
    }
    @Bean
    public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration)
            throws Exception {
        return authenticationConfiguration.getAuthenticationManager();
    }

    @Bean
    public SecurityFilterChain configuration(HttpSecurity http) throws Exception
    {
        http
                .cors();
        http
                .csrf()
                .disable();
        http
                .authorizeRequests()
                .mvcMatchers("/api/auth/**")
                .permitAll()
                .anyRequest()
                .authenticated()
                .and()
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS);

        http
                .addFilterBefore(JwtFilter, UsernamePasswordAuthenticationFilter.class);

        return http.build();
    }
}

SpringBootServletInitializer

@Configuration
public class ServletInitializer extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(LVPLauncher.class);
    }
}

I have tried to use SpringBootServletInitializer hoping it was going to resolve the issue but nothings changed.


问:
overriding ECDSA_do_sign in openssl 1.1.1
For an existing implementation I have to support the following "openssl pkeyutl" signing execution flows:

[openssl 1.0.2k CLI] --> [engine] --> [backendSigningSystem]

[openssl 1.1.1  CLI] --> [engine] --> [backendSigningSystem]

In each case I use the"-inkey" openssl param to pass in a private key specification string that will be used by backendSigningSystem to look up the offboard private key (rather than using a local private key on the openssl server).  The engine uses a REST API to hand the backend the key specification and the hash to be signed, and backend returns a signature.

With RSA keys, my engine is able to instantiate an RSA_METHOD and override rsa_priv_enc target allowing the above to happen.

I now want to support both the above openssl versions for EC keys.  Looking in the openssl 1.0.2k code base, looks like I should be able to malloc an ECDSA_METHOD structure, set the ECDSA_do_sign method to my method, and bind that struct to the engine using ENGINE_set_ECDSA.  I am in the process of trying this out and will report results here.

However ecdsa.h for openssl 1.1.1 merely includes ec.h, which does not have ECDSA_METHOD or other support that 1.0.2k did.  How would I go about overriding ECDSA_METHOD targets in 1.1.1?  Any pointers or guidance very appreciated.


问:
Call number in the EAX register in system call __open does not match the expected value
I am quite new in this domain. I am currently working on a academic research project which involves understanding "when" a system call is made from a C code. I am using Clang-llvm toolchain to accomplish this task. Here is an example code:

```<code>#include <stdio.h>

int main(int argc, char *argv[]){
    FILE *fp;
    fp  = fopen("input.txt","r");
    return 0;
}
</code>```

This code should have one syscall in he fopen function which is __open. Therefore, If we disassemble the open function, we should see a syscall command in the assembly code.

```<code>(lldb) disassemble --name __open
a2_c`__open:
->  0x446ed0 <+0>:   endbr64
    0x446ed4 <+4>:   pushq  %r12
    0x446ed6 <+6>:   movl   %esi, %r10d
    0x446ed9 <+9>:   movl   %esi, %r12d
    0x446edc <+12>:  pushq  %rbp
    0x446edd <+13>:  movq   %rdi, %rbp
    0x446ee0 <+16>:  subq   $0x68, %rsp
    0x446ee4 <+20>:  movq   %rdx, 0x40(%rsp)
    0x446ee9 <+25>:  movq   %fs:0x28, %rax
    0x446ef2 <+34>:  movq   %rax, 0x28(%rsp)
    0x446ef7 <+39>:  xorl   %eax, %eax
    0x446ef9 <+41>:  andl   $0x40, %r10d
    0x446efd <+45>:  jne    0x446f58                  ; <+136>
    0x446eff <+47>:  movl   %esi, %eax
    0x446f01 <+49>:  andl   $0x410000, %eax           ; imm = 0x410000
    0x446f06 <+54>:  cmpl   $0x410000, %eax           ; imm = 0x410000
    0x446f0b <+59>:  je     0x446f58                  ; <+136>
    0x446f0d <+61>:  movl   %fs:0x18, %eax
    0x446f15 <+69>:  testl  %eax, %eax
    0x446f17 <+71>:  jne    0x446f80                  ; <+176>
    0x446f19 <+73>:  movl   %r12d, %edx
    0x446f1c <+76>:  movq   %rbp, %rsi
    0x446f1f <+79>:  movl   $0xffffff9c, %edi         ; imm = 0xFFFFFF9C
    0x446f24 <+84>:  movl   $0x101, %eax              ; imm = 0x101
    0x446f29 <+89>:  syscall
    0x446f2b <+91>:  cmpq   $-0x1000, %rax            ; imm = 0xF000
    0x446f31 <+97>:  ja     0x446fc8                  ; <+248>
    0x446f37 <+103>: movq   0x28(%rsp), %rdx
    0x446f3c <+108>: subq   %fs:0x28, %rdx
    0x446f45 <+117>: jne    0x446ff3                  ; <+291>
    0x446f4b <+123>: addq   $0x68, %rsp
    0x446f4f <+127>: popq   %rbp
    0x446f50 <+128>: popq   %r12
    0x446f52 <+130>: retq
    0x446f53 <+131>: nopl   (%rax,%rax)
    0x446f58 <+136>: leaq   0x80(%rsp), %rax
    0x446f60 <+144>: movl   $0x10, 0x10(%rsp)
    0x446f68 <+152>: movl   0x40(%rsp), %r10d
    0x446f6d <+157>: movq   %rax, 0x18(%rsp)
    0x446f72 <+162>: leaq   0x30(%rsp), %rax
    0x446f77 <+167>: movq   %rax, 0x20(%rsp)
    0x446f7c <+172>: jmp    0x446f0d                  ; <+61>
    0x446f7e <+174>: nop
    0x446f80 <+176>: movl   %r10d, 0xc(%rsp)
    0x446f85 <+181>: callq  0x46b640                  ; __pthread_enable_asynccancel
    0x446f8a <+186>: movl   0xc(%rsp), %r10d
    0x446f8f <+191>: movl   %r12d, %edx
    0x446f92 <+194>: movq   %rbp, %rsi
    0x446f95 <+197>: movl   %eax, %r8d
    0x446f98 <+200>: movl   $0xffffff9c, %edi         ; imm = 0xFFFFFF9C
    0x446f9d <+205>: movl   $0x101, %eax              ; imm = 0x101
    0x446fa2 <+210>: syscall
    0x446fa4 <+212>: cmpq   $-0x1000, %rax            ; imm = 0xF000
    0x446faa <+218>: ja     0x446fe0                  ; <+272>
    0x446fac <+220>: movl   %r8d, %edi
    0x446faf <+223>: movl   %eax, 0xc(%rsp)
    0x446fb3 <+227>: callq  0x46b6b0                  ; __pthread_disable_asynccancel
    0x446fb8 <+232>: movl   0xc(%rsp), %eax
    0x446fbc <+236>: jmp    0x446f37                  ; <+103>
    0x446fc1 <+241>: nopl   (%rax)
    0x446fc8 <+248>: movq   $-0x48, %rdx
    0x446fcf <+255>: negl   %eax
    0x446fd1 <+257>: movl   %eax, %fs:(%rdx)
    0x446fd4 <+260>: movl   $0xffffffff, %eax         ; imm = 0xFFFFFFFF
    0x446fd9 <+265>: jmp    0x446f37                  ; <+103>
    0x446fde <+270>: nop
    0x446fe0 <+272>: movq   $-0x48, %rdx
    0x446fe7 <+279>: negl   %eax
    0x446fe9 <+281>: movl   %eax, %fs:(%rdx)
    0x446fec <+284>: movl   $0xffffffff, %eax         ; imm = 0xFFFFFFFF
    0x446ff1 <+289>: jmp    0x446fac                  ; <+220>
    0x446ff3 <+291>: callq  0x449ab0                  ; __stack_chk_fail_local
(lldb)

</code>```

Up to this point things go as expected. The deviation happens in the eax register.  My understanding is that the operating system executes a syscall when the syscall command is invoked. The nature of the executed syscall depends on the value in eax register.

Here is the code snippet which moves the value 0x101 in the eax register just before triggerring the syscall 0x446f24 <+84>:  movl   $0x101, %eax. As far as I knew, the value in eax for a open syscall should be 0x02 (Described Here for Linux).

But in this snippet, it looks like the value being set to eax is something that is in memory location 0x101. My question is, why are we transferring some memory locations value in eax? Shouldn't the value being transferred to eax be 0x02 and then the syscall should be triggered? What am I missing here?

Body:
I am quite new in this domain. I am currently working on a academic research project which involves understanding "when" a system call is made from a C code. I am using Clang-llvm toolchain to accomplish this task. Here is an example code:

#include <stdio.h>

int main(int argc, char *argv[]){
    FILE *fp;
    fp  = fopen("input.txt","r");
    return 0;
}

This code should have one syscall in he fopen function which is __open. Therefore, If we disassemble the open function, we should see a syscall command in the assembly code.

(lldb) disassemble --name __open
a2_c`__open:
->  0x446ed0 <+0>:   endbr64
    0x446ed4 <+4>:   pushq  %r12
    0x446ed6 <+6>:   movl   %esi, %r10d
    0x446ed9 <+9>:   movl   %esi, %r12d
    0x446edc <+12>:  pushq  %rbp
    0x446edd <+13>:  movq   %rdi, %rbp
    0x446ee0 <+16>:  subq   $0x68, %rsp
    0x446ee4 <+20>:  movq   %rdx, 0x40(%rsp)
    0x446ee9 <+25>:  movq   %fs:0x28, %rax
    0x446ef2 <+34>:  movq   %rax, 0x28(%rsp)
    0x446ef7 <+39>:  xorl   %eax, %eax
    0x446ef9 <+41>:  andl   $0x40, %r10d
    0x446efd <+45>:  jne    0x446f58                  ; <+136>
    0x446eff <+47>:  movl   %esi, %eax
    0x446f01 <+49>:  andl   $0x410000, %eax           ; imm = 0x410000
    0x446f06 <+54>:  cmpl   $0x410000, %eax           ; imm = 0x410000
    0x446f0b <+59>:  je     0x446f58                  ; <+136>
    0x446f0d <+61>:  movl   %fs:0x18, %eax
    0x446f15 <+69>:  testl  %eax, %eax
    0x446f17 <+71>:  jne    0x446f80                  ; <+176>
    0x446f19 <+73>:  movl   %r12d, %edx
    0x446f1c <+76>:  movq   %rbp, %rsi
    0x446f1f <+79>:  movl   $0xffffff9c, %edi         ; imm = 0xFFFFFF9C
    0x446f24 <+84>:  movl   $0x101, %eax              ; imm = 0x101
    0x446f29 <+89>:  syscall
    0x446f2b <+91>:  cmpq   $-0x1000, %rax            ; imm = 0xF000
    0x446f31 <+97>:  ja     0x446fc8                  ; <+248>
    0x446f37 <+103>: movq   0x28(%rsp), %rdx
    0x446f3c <+108>: subq   %fs:0x28, %rdx
    0x446f45 <+117>: jne    0x446ff3                  ; <+291>
    0x446f4b <+123>: addq   $0x68, %rsp
    0x446f4f <+127>: popq   %rbp
    0x446f50 <+128>: popq   %r12
    0x446f52 <+130>: retq
    0x446f53 <+131>: nopl   (%rax,%rax)
    0x446f58 <+136>: leaq   0x80(%rsp), %rax
    0x446f60 <+144>: movl   $0x10, 0x10(%rsp)
    0x446f68 <+152>: movl   0x40(%rsp), %r10d
    0x446f6d <+157>: movq   %rax, 0x18(%rsp)
    0x446f72 <+162>: leaq   0x30(%rsp), %rax
    0x446f77 <+167>: movq   %rax, 0x20(%rsp)
    0x446f7c <+172>: jmp    0x446f0d                  ; <+61>
    0x446f7e <+174>: nop
    0x446f80 <+176>: movl   %r10d, 0xc(%rsp)
    0x446f85 <+181>: callq  0x46b640                  ; __pthread_enable_asynccancel
    0x446f8a <+186>: movl   0xc(%rsp), %r10d
    0x446f8f <+191>: movl   %r12d, %edx
    0x446f92 <+194>: movq   %rbp, %rsi
    0x446f95 <+197>: movl   %eax, %r8d
    0x446f98 <+200>: movl   $0xffffff9c, %edi         ; imm = 0xFFFFFF9C
    0x446f9d <+205>: movl   $0x101, %eax              ; imm = 0x101
    0x446fa2 <+210>: syscall
    0x446fa4 <+212>: cmpq   $-0x1000, %rax            ; imm = 0xF000
    0x446faa <+218>: ja     0x446fe0                  ; <+272>
    0x446fac <+220>: movl   %r8d, %edi
    0x446faf <+223>: movl   %eax, 0xc(%rsp)
    0x446fb3 <+227>: callq  0x46b6b0                  ; __pthread_disable_asynccancel
    0x446fb8 <+232>: movl   0xc(%rsp), %eax
    0x446fbc <+236>: jmp    0x446f37                  ; <+103>
    0x446fc1 <+241>: nopl   (%rax)
    0x446fc8 <+248>: movq   $-0x48, %rdx
    0x446fcf <+255>: negl   %eax
    0x446fd1 <+257>: movl   %eax, %fs:(%rdx)
    0x446fd4 <+260>: movl   $0xffffffff, %eax         ; imm = 0xFFFFFFFF
    0x446fd9 <+265>: jmp    0x446f37                  ; <+103>
    0x446fde <+270>: nop
    0x446fe0 <+272>: movq   $-0x48, %rdx
    0x446fe7 <+279>: negl   %eax
    0x446fe9 <+281>: movl   %eax, %fs:(%rdx)
    0x446fec <+284>: movl   $0xffffffff, %eax         ; imm = 0xFFFFFFFF
    0x446ff1 <+289>: jmp    0x446fac                  ; <+220>
    0x446ff3 <+291>: callq  0x449ab0                  ; __stack_chk_fail_local
(lldb)

Up to this point things go as expected. The deviation happens in the eax register.  My understanding is that the operating system executes a syscall when the syscall command is invoked. The nature of the executed syscall depends on the value in eax register.

Here is the code snippet which moves the value 0x101 in the eax register just before triggerring the syscall 0x446f24 <+84>:  movl   $0x101, %eax. As far as I knew, the value in eax for a open syscall should be 0x02 (Described Here for Linux).

But in this snippet, it looks like the value being set to eax is something that is in memory location 0x101. My question is, why are we transferring some memory locations value in eax? Shouldn't the value being transferred to eax be 0x02 and then the syscall should be triggered? What am I missing here?


问:
How to fix this error on FER system that i would like to develop?
IDK how to fix this code for my system.(Facial Expression Recognition) i followed this youtube video for solutionyoutube link but still does't work. it really help me to find the solution

This is the code

```<code>
# import required packages
import cv2
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D, Dense, Dropout, Flatten
from keras.optimizers import Adam
from keras.preprocessing.image import ImageDataGenerator

# Initialize image data generator with rescaling
train_data_gen = ImageDataGenerator(rescale=1./255)
validation_data_gen = ImageDataGenerator(rescale=1./255)

# Preprocess all test images
train_generator = train_data_gen.flow_from_directory(
        'data/train',
        target_size=(48, 48),
        batch_size=64,
        color_mode="grayscale",
        class_mode='categorical')

# Preprocess all train images
validation_generator = validation_data_gen.flow_from_directory(
        'data/test',
        target_size=(48, 48),
        batch_size=64,
        color_mode="grayscale",
        class_mode='categorical')

# create model structure
emotion_model = Sequential()

emotion_model.add(Conv2D(32, kernel_size=(3, 3), activation='relu', input_shape=(48, 48, 1)))
emotion_model.add(Conv2D(64, kernel_size=(3, 3), activation='relu'))
emotion_model.add(MaxPooling2D(pool_size=(2, 2)))
emotion_model.add(Dropout(0.25))

emotion_model.add(Conv2D(128, kernel_size=(3, 3), activation='relu'))
emotion_model.add(MaxPooling2D(pool_size=(2, 2)))
emotion_model.add(Conv2D(128, kernel_size=(3, 3), activation='relu'))
emotion_model.add(MaxPooling2D(pool_size=(2, 2)))
emotion_model.add(Dropout(0.25))

emotion_model.add(Flatten())
emotion_model.add(Dense(1024, activation='relu'))
emotion_model.add(Dropout(0.5))
emotion_model.add(Dense(7, activation='softmax'))

cv2.ocl.setUseOpenCL(False)

emotion_model.compile(loss='categorical_crossentropy', optimizer=Adam(lr=0.0001, decay=1e-6), metrics=['accuracy'])

# Train the neural network/model
emotion_model_info = emotion_model.fit(
        train_generator,
        steps_per_epoch=28709 // 64,
        epochs=10,
        validation_data=validation_generator,
        validation_steps=7178 // 64)

# save model structure in jason file
model_json = emotion_model.to_json()
with open("emotion_model.json", "w") as json_file:
    json_file.write(model_json)

# save trained model weight in .h5 file
emotion_model.save_weights('emotion_model.h5')

</code>```

This is the error

Found 15991 images belonging to 5 classes.
Found 7178 images belonging to 7 classes.
C:\Users\ASUS\anaconda3\lib\site-packages\keras\optimizers\optimizer_v2\adam.py:114: UserWarning: The `lr` argument is deprecated, use `learning_rate` instead.
  super().__init__(name, **kwargs)
Epoch 1/10
---------------------------------------------------------------------------
InvalidArgumentError                      Traceback (most recent call last)
Cell In [1], line 52
     49 emotion_model.compile(loss='categorical_crossentropy', optimizer=Adam(lr=0.0001, decay=1e-6), metrics=['accuracy'])
     51 # Train the neural network/model
---> 52 emotion_model_info = emotion_model.fit(
     53         train_generator,
     54         steps_per_epoch=28709 // 64,
     55         epochs=10,
     56         validation_data=validation_generator,
     57         validation_steps=7178 // 64)
     59 # save model structure in jason file
     60 model_json = emotion_model.to_json()

File ~\anaconda3\lib\site-packages\keras\utils\traceback_utils.py:70, in filter_traceback.<locals>.error_handler(*args, **kwargs)
     67     filtered_tb = _process_traceback_frames(e.__traceback__)
     68     # To get the full stack trace, call:
     69     # `tf.debugging.disable_traceback_filtering()`
---> 70     raise e.with_traceback(filtered_tb) from None
     71 finally:
     72     del filtered_tb

File ~\anaconda3\lib\site-packages\tensorflow\python\eager\execute.py:54, in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
     52 try:
     53   ctx.ensure_initialized()
---> 54   tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
     55                                       inputs, attrs, num_outputs)
     56 except core._NotOkStatusException as e:
     57   if name is not None:

InvalidArgumentError: Graph execution error:

Detected at node 'categorical_crossentropy/softmax_cross_entropy_with_logits' defined at (most recent call last):
    File "C:\Users\ASUS\anaconda3\lib\runpy.py", line 197, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "C:\Users\ASUS\anaconda3\lib\runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "C:\Users\ASUS\anaconda3\lib\site-packages\ipykernel_launcher.py", line 17, in <module>
      app.launch_new_instance()
```

Body:
IDK how to fix this code for my system.(Facial Expression Recognition) i followed this youtube video for solutionyoutube link but still does't work. it really help me to find the solution

This is the code

# import required packages
import cv2
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D, Dense, Dropout, Flatten
from keras.optimizers import Adam
from keras.preprocessing.image import ImageDataGenerator

# Initialize image data generator with rescaling
train_data_gen = ImageDataGenerator(rescale=1./255)
validation_data_gen = ImageDataGenerator(rescale=1./255)

# Preprocess all test images
train_generator = train_data_gen.flow_from_directory(
        'data/train',
        target_size=(48, 48),
        batch_size=64,
        color_mode="grayscale",
        class_mode='categorical')

# Preprocess all train images
validation_generator = validation_data_gen.flow_from_directory(
        'data/test',
        target_size=(48, 48),
        batch_size=64,
        color_mode="grayscale",
        class_mode='categorical')

# create model structure
emotion_model = Sequential()

emotion_model.add(Conv2D(32, kernel_size=(3, 3), activation='relu', input_shape=(48, 48, 1)))
emotion_model.add(Conv2D(64, kernel_size=(3, 3), activation='relu'))
emotion_model.add(MaxPooling2D(pool_size=(2, 2)))
emotion_model.add(Dropout(0.25))

emotion_model.add(Conv2D(128, kernel_size=(3, 3), activation='relu'))
emotion_model.add(MaxPooling2D(pool_size=(2, 2)))
emotion_model.add(Conv2D(128, kernel_size=(3, 3), activation='relu'))
emotion_model.add(MaxPooling2D(pool_size=(2, 2)))
emotion_model.add(Dropout(0.25))

emotion_model.add(Flatten())
emotion_model.add(Dense(1024, activation='relu'))
emotion_model.add(Dropout(0.5))
emotion_model.add(Dense(7, activation='softmax'))

cv2.ocl.setUseOpenCL(False)

emotion_model.compile(loss='categorical_crossentropy', optimizer=Adam(lr=0.0001, decay=1e-6), metrics=['accuracy'])

# Train the neural network/model
emotion_model_info = emotion_model.fit(
        train_generator,
        steps_per_epoch=28709 // 64,
        epochs=10,
        validation_data=validation_generator,
        validation_steps=7178 // 64)

# save model structure in jason file
model_json = emotion_model.to_json()
with open("emotion_model.json", "w") as json_file:
    json_file.write(model_json)

# save trained model weight in .h5 file
emotion_model.save_weights('emotion_model.h5')

This is the error

Found 15991 images belonging to 5 classes.
Found 7178 images belonging to 7 classes.
C:\Users\ASUS\anaconda3\lib\site-packages\keras\optimizers\optimizer_v2\adam.py:114: UserWarning: The `lr` argument is deprecated, use `learning_rate` instead.
  super().__init__(name, **kwargs)
Epoch 1/10
---------------------------------------------------------------------------
InvalidArgumentError                      Traceback (most recent call last)
Cell In [1], line 52
     49 emotion_model.compile(loss='categorical_crossentropy', optimizer=Adam(lr=0.0001, decay=1e-6), metrics=['accuracy'])
     51 # Train the neural network/model
---> 52 emotion_model_info = emotion_model.fit(
     53         train_generator,
     54         steps_per_epoch=28709 // 64,
     55         epochs=10,
     56         validation_data=validation_generator,
     57         validation_steps=7178 // 64)
     59 # save model structure in jason file
     60 model_json = emotion_model.to_json()

File ~\anaconda3\lib\site-packages\keras\utils\traceback_utils.py:70, in filter_traceback.<locals>.error_handler(*args, **kwargs)
     67     filtered_tb = _process_traceback_frames(e.__traceback__)
     68     # To get the full stack trace, call:
     69     # `tf.debugging.disable_traceback_filtering()`
---> 70     raise e.with_traceback(filtered_tb) from None
     71 finally:
     72     del filtered_tb

File ~\anaconda3\lib\site-packages\tensorflow\python\eager\execute.py:54, in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
     52 try:
     53   ctx.ensure_initialized()
---> 54   tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
     55                                       inputs, attrs, num_outputs)
     56 except core._NotOkStatusException as e:
     57   if name is not None:

InvalidArgumentError: Graph execution error:

Detected at node 'categorical_crossentropy/softmax_cross_entropy_with_logits' defined at (most recent call last):
    File "C:\Users\ASUS\anaconda3\lib\runpy.py", line 197, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "C:\Users\ASUS\anaconda3\lib\runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "C:\Users\ASUS\anaconda3\lib\site-packages\ipykernel_launcher.py", line 17, in <module>
      app.launch_new_instance()


问:
firebase instance in constructor crashes site
I am trying to work with data using realtime database firebase in Angular. I tried to follow tutorial but my site won't load after putting public database: Database in constructor. What is happening here? Why does it not load with that line? Rest of the code I tried to make:
HTML:

```<code><form #RegisterForm = "ngForm" (ngSubmi)="registerUser(RegisterForm.value)">
    <input type="text" ngModel id="username" name="username">
    <input type="text" ngModel id="username" name="username">
    <input type="text" ngModel id="username" name="username">
    <input type="submit" ngModel id="saveData" name="signup_submit" value="Register User">
</form>
</code>```

TS:

```<code>  constructor( private cartService: CartInfoService, public database: Database){}

  registerUser(value: any){

    set(ref(this.database, 'users/'+value.username),{
      username: value.username,
      first_name: value.first_name,
      profile_pic: value.last_name
    })
    alert('user created!')
  }
</code>```

IMPORTS:
import { getDatabase, set, update, ref, onValue, Database} from "firebase/database";

Body:
I am trying to work with data using realtime database firebase in Angular. I tried to follow tutorial but my site won't load after putting public database: Database in constructor. What is happening here? Why does it not load with that line? Rest of the code I tried to make:
HTML:

<form #RegisterForm = "ngForm" (ngSubmi)="registerUser(RegisterForm.value)">
    <input type="text" ngModel id="username" name="username">
    <input type="text" ngModel id="username" name="username">
    <input type="text" ngModel id="username" name="username">
    <input type="submit" ngModel id="saveData" name="signup_submit" value="Register User">
</form>

TS:

  constructor( private cartService: CartInfoService, public database: Database){}

  registerUser(value: any){

    set(ref(this.database, 'users/'+value.username),{
      username: value.username,
      first_name: value.first_name,
      profile_pic: value.last_name
    })
    alert('user created!')
  }

IMPORTS:
import { getDatabase, set, update, ref, onValue, Database} from "firebase/database";


问:
d3.js multi-line chart remove a line from the chart and scale the y-axis accordingly
So I'm trying to create an interactive visualization where there's a graph and filters for selecting/deselecting multiple lines. I was able to get the default view working where all of the lines are selected. However, I'm trying to make it so that anytime I de-select a checkmark, it will remove the line from the graph and scale the y-axis accordingly.

I know I can use the enter() and exit() functions to clear selected data and I was able to get the y-axis to scale. However, I'm having trouble figuring out how to remove the line from the chart.

Here's my code so far:

```<code>// Global function called when the button is clicked
function onCategoryChanged() {
    // create an array of the modes of transportation that are selected
    var filter = [];
    if (d3.select("#totals").property("checked")) {
        filter.push("Total_Per_100K");
    }
    if (d3.select("#cars").property("checked")) {
        filter.push("Car_Per_100K");
    }
    if (d3.select("#pedestrians").property("checked")) {
        filter.push("Ped_Per_100K");
    }
    if (d3.select("#motorcycles").property("checked")) {
        filter.push("Motorcycle_Per_100K");
    }
    if (d3.select("#bicycles").property("checked")) {
        filter.push("Bicycle_Per_100K");
    }
    if (d3.select("#trucks").property("checked")) {
        filter.push("Trucks_Per_100K");
    }
    updateChart(filter);
}

var width = 600;
var height = 400;

// scales
var xScale;
var yScale;

// chart1 = d3
// .select("#chart1")
// .append("svg:svg")
// .attr("id", "svg1")
// .attr("width", width)
// .attr("height", height);

var data;
var svg = d3.select('svg');
var chart1 = svg.append('g');

d3.csv("datasets/TransportationFatalities_ByYear_postoncanvas.csv", function (csv) {
    data = csv;

    var initialFilter = ["Total_Per_100K", "Car_Per_100K", "Ped_Per_100K", "Motorcycle_Per_100K", "Bicycle_Per_100K", "Trucks_Per_100K"];

    chart1 = d3
    .select("#chart1")
    .append("svg:svg")
    .attr("id", "svg1")
    .attr("width", width)
    .attr("height", height);

    // Add filter button
    d3.select('.options')
    .append('p')
    .append('button')
    .attr('id', 'filterButton')
    .style("border", "1px solid black")
    .text('Filter Data')
    .on('click', function() {
        onCategoryChanged();
    });

    updateChart(initialFilter);
});

function addAxes(modes) {
    // Axis setup
    xScale = d3.scaleTime().domain(d3.extent(data, function(d) {
        return d3.timeParse("%Y")(d.Year);
    })).range([50, width-30]);
    yScale = d3.scaleLinear().domain([0, (
        // scale the max y value depending on the large column in the modes
        d3.max(modes, function(d) {
            return d3.max(Object.keys(d), function(key) {
                // return d[key];
                return +d[key];
            })
        })

    )]).range([height-30, 30]);

    var xAxis = d3.axisBottom().scale(xScale);
    var yAxis = d3.axisLeft().scale(yScale);

    // Create labels for the chart

    // var graph = chart1.selectAll('.y-axis').data(data)
    // var chartGEnter = graph.enter()

    // append x-axis
    chart1 // or something else that selects the SVG element in your visualizations
    .append("g") // create a group node
    .attr("class", "axis-label x-axis")
    .attr("transform", "translate(0," + (height - 30) + ")")
    .call(xAxis) // call the axis generator
    .append("text")
    .attr("x", width - 16)
    .attr("y", -6)
    .style("text-anchor", "end")

    chart1.selectAll('.y-axis')
    .data(data)
    .enter()
    .append("g") // create a group node
    .attr("class", "axis-label y-axis")
    .attr("transform", "translate(50, 0)")
    .merge(chart1.selectAll(".y-axis"))
    .data(data)
    .call(yAxis)
    .append("text")
    .attr("y", 6)
    .attr("dy", ".71em")
    .style("text-anchor", "end")
    .exit()
    .remove();
}

function updateChart(filter) {
    var modes = data.map(item =>
        filter.reduce((acc, key) => {
            acc[key] = item[key];
            return acc;
        }, {})
    )

    addAxes(modes);

    // add the year to modes after the axes are updated
    modes = modes.map(function(d, i) {
        d.Year = data[i].Year;
        return d;
    })
    console.log(modes);

    // append the total data points to the chart as a line graph only if the checkbox is checked, otherwise remove it
    chart1.selectAll('.line')
    .data(modes)
    .enter()
    .append("path")
    .attr("class", "line")
    .merge(chart1.selectAll("line"))
    .data(modes)
    .attr("d", d3.line()
        .x(function(d) {
            return xScale(d3.timeParse("%Y")(d.Year))
        })
        .y(function(d) {
            return yScale(d.Total_Per_100K)
        }))
    .exit()
    .remove();

    /*
    // append the car data points to the chart as a line graph
    chart1.append("path")
    .datum(modes)
    .attr("fill", "none")
    .attr("stroke", "red")
    .attr("stroke-width", 1.5)
    .attr("d", d3.line()
        .x(function(d) {
            return xScale(d3.timeParse("%Y")(d.Year))
        })
        .y(function(d) {
            return yScale(d.Car_Per_100K)
        }))
    */
}
</code>```

Here's the csv file I'm using for reference:

```<code>Year,Population,Car_Occupant,Pedestrian,Motorcycle,Bicycle,Trucks,Total,Car_Per_100K,Ped_Per_100K,Motorcycle_Per_100K,Bicycle_Per_100K,Trucks_Per_100K,Total_Per_100K
1975,215973199,30601,7516,3180,1003,916,44525,14.2,3.5,1.5,0.5,0.4,20.6
1976,218035164,31724,7427,3306,914,1100,45523,14.5,3.4,1.5,0.4,0.5,20.9
1977,220239425,32823,7732,4099,922,1229,47878,14.9,3.5,1.9,0.4,0.6,21.7
1978,222584545,34923,7795,4574,892,1315,50331,15.7,3.5,2.1,0.4,0.6,22.6
1979,225055487,35026,8096,4892,932,1372,51093,15.6,3.6,2.2,0.4,0.6,22.7
1980,227224719,34996,8070,5138,965,1183,51091,15.4,3.6,2.3,0.4,0.5,22.5
1981,229465608,33711,7837,4896,936,1082,49301,14.7,3.4,2.1,0.4,0.5,21.5
1982,231664496,29656,7331,4449,864,917,43945,12.8,3.2,1.9,0.4,0.4,19
1983,233791903,29154,6826,4260,830,960,42589,12.5,2.9,1.8,0.4,0.4,18.2
1984,235824783,30094,7025,4602,838,1040,44257,12.8,3,2,0.4,0.4,18.8
1985,237923732,29848,6808,4562,869,941,43825,12.5,2.9,1.9,0.4,0.4,18.4
1986,240132841,32224,6779,4566,929,892,46087,13.4,2.8,1.9,0.4,0.4,19.2
1987,242289023,33145,6745,4034,940,821,46390,13.7,2.8,1.7,0.4,0.3,19.1
1988,244498836,34105,6870,3661,901,886,47087,13.9,2.8,1.5,0.4,0.4,19.3
1989,246819119,33599,6556,3135,822,822,45582,13.6,2.7,1.3,0.3,0.3,18.5
1990,249464396,32711,6482,3243,853,684,44599,13.1,2.6,1.3,0.3,0.3,17.9
1991,252153092,30810,5801,2805,836,650,41508,12.2,2.3,1.1,0.3,0.3,16.5
1992,255029699,29457,5549,2395,717,580,39250,11.6,2.2,0.9,0.3,0.2,15.4
1993,257782608,29994,5649,2445,806,590,40150,11.6,2.2,0.9,0.3,0.2,15.6
1994,260327021,30820,5489,2317,796,658,40716,11.8,2.1,0.9,0.3,0.3,15.6
1995,262803276,31914,5584,2226,828,634,41817,12.1,2.1,0.8,0.3,0.2,15.9
1996,265228572,32354,5449,2161,761,602,42065,12.2,2.1,0.8,0.3,0.2,15.9
1997,267783607,32343,5321,2116,811,717,42013,12.1,2,0.8,0.3,0.3,15.7
1998,270248003,31781,5228,2294,757,739,41501,11.8,1.9,0.8,0.3,0.3,15.4
1999,272690813,32008,4939,2483,750,747,41717,11.7,1.8,0.9,0.3,0.3,15.3
2000,282192162,32109,4763,2895,689,737,41945,11.4,1.7,1,0.2,0.3,14.9
2001,285102075,31938,4901,3195,729,691,42196,11.2,1.7,1.1,0.3,0.2,14.8
2002,287941220,32724,4851,3267,663,675,43005,11.4,1.7,1.1,0.2,0.2,14.9
2003,290788976,32166,4774,3710,626,703,42884,11.1,1.6,1.3,0.2,0.2,14.7
2004,293655404,31750,4675,4026,722,743,42836,10.8,1.6,1.4,0.2,0.3,14.6
2005,296410404,31455,4892,4575,784,758,43510,10.6,1.7,1.5,0.3,0.3,14.7
2006,299398484,30628,4795,4810,769,774,42708,10.2,1.6,1.6,0.3,0.3,14.3
2007,301621157,29155,4699,5174,699,745,41259,9.7,1.6,1.7,0.2,0.2,13.7
2008,304059724,25547,4414,5307,716,615,37423,8.4,1.5,1.7,0.2,0.2,12.3
2009,307006550,23507,4109,4467,628,449,33883,7.7,1.3,1.5,0.2,0.1,11
2010,309327143,22351,4302,4517,621,475,32999,7.2,1.4,1.5,0.2,0.2,10.7
2011,311583481,21413,4457,4630,680,555,32479,6.9,1.4,1.5,0.2,0.2,10.4
2012,313877662,21906,4818,4986,730,590,33782,7,1.5,1.6,0.2,0.2,10.8
2013,316059947,21361,4779,4691,747,589,32894,6.8,1.5,1.5,0.2,0.2,10.4
2014,318386329,21131,4910,4302,723,585,32744,6.6,1.5,1.4,0.2,0.2,10.3
2015,320738994,22741,5495,5026,828,598,35485,7.1,1.7,1.6,0.3,0.2,11.1
2016,323071755,23957,6080,5337,848,662,37806,7.4,1.9,1.7,0.3,0.2,11.7
2017,325122128,23866,6075,5229,800,680,37473,7.3,1.9,1.6,0.2,0.2,11.5
2018,326838199,23046,6374,5038,868,677,36835,7.1,2,1.5,0.3,0.2,11.3
2019,328329953,22557,6272,5044,856,680,36355,6.9,1.9,1.5,0.3,0.2,11.1
2020,329484123,24019,6516,5579,932,608,38824,7.3,2,1.7,0.3,0.2,11.8

</code>```

Graph with all lines selected

Graph with filtered selection (not removing other lines)

Body:
So I'm trying to create an interactive visualization where there's a graph and filters for selecting/deselecting multiple lines. I was able to get the default view working where all of the lines are selected. However, I'm trying to make it so that anytime I de-select a checkmark, it will remove the line from the graph and scale the y-axis accordingly.

I know I can use the enter() and exit() functions to clear selected data and I was able to get the y-axis to scale. However, I'm having trouble figuring out how to remove the line from the chart.

Here's my code so far:

// Global function called when the button is clicked
function onCategoryChanged() {
    // create an array of the modes of transportation that are selected
    var filter = [];
    if (d3.select("#totals").property("checked")) {
        filter.push("Total_Per_100K");
    }
    if (d3.select("#cars").property("checked")) {
        filter.push("Car_Per_100K");
    }
    if (d3.select("#pedestrians").property("checked")) {
        filter.push("Ped_Per_100K");
    }
    if (d3.select("#motorcycles").property("checked")) {
        filter.push("Motorcycle_Per_100K");
    }
    if (d3.select("#bicycles").property("checked")) {
        filter.push("Bicycle_Per_100K");
    }
    if (d3.select("#trucks").property("checked")) {
        filter.push("Trucks_Per_100K");
    }
    updateChart(filter);
}

var width = 600;
var height = 400;

// scales
var xScale;
var yScale;

// chart1 = d3
// .select("#chart1")
// .append("svg:svg")
// .attr("id", "svg1")
// .attr("width", width)
// .attr("height", height);

var data;
var svg = d3.select('svg');
var chart1 = svg.append('g');

d3.csv("datasets/TransportationFatalities_ByYear_postoncanvas.csv", function (csv) {
    data = csv;

    var initialFilter = ["Total_Per_100K", "Car_Per_100K", "Ped_Per_100K", "Motorcycle_Per_100K", "Bicycle_Per_100K", "Trucks_Per_100K"];

    chart1 = d3
    .select("#chart1")
    .append("svg:svg")
    .attr("id", "svg1")
    .attr("width", width)
    .attr("height", height);

    // Add filter button
    d3.select('.options')
    .append('p')
    .append('button')
    .attr('id', 'filterButton')
    .style("border", "1px solid black")
    .text('Filter Data')
    .on('click', function() {
        onCategoryChanged();
    });

    updateChart(initialFilter);
});

function addAxes(modes) {
    // Axis setup
    xScale = d3.scaleTime().domain(d3.extent(data, function(d) {
        return d3.timeParse("%Y")(d.Year);
    })).range([50, width-30]);
    yScale = d3.scaleLinear().domain([0, (
        // scale the max y value depending on the large column in the modes
        d3.max(modes, function(d) {
            return d3.max(Object.keys(d), function(key) {
                // return d[key];
                return +d[key];
            })
        })

    )]).range([height-30, 30]);

    var xAxis = d3.axisBottom().scale(xScale);
    var yAxis = d3.axisLeft().scale(yScale);

    // Create labels for the chart

    // var graph = chart1.selectAll('.y-axis').data(data)
    // var chartGEnter = graph.enter()

    // append x-axis
    chart1 // or something else that selects the SVG element in your visualizations
    .append("g") // create a group node
    .attr("class", "axis-label x-axis")
    .attr("transform", "translate(0," + (height - 30) + ")")
    .call(xAxis) // call the axis generator
    .append("text")
    .attr("x", width - 16)
    .attr("y", -6)
    .style("text-anchor", "end")

    chart1.selectAll('.y-axis')
    .data(data)
    .enter()
    .append("g") // create a group node
    .attr("class", "axis-label y-axis")
    .attr("transform", "translate(50, 0)")
    .merge(chart1.selectAll(".y-axis"))
    .data(data)
    .call(yAxis)
    .append("text")
    .attr("y", 6)
    .attr("dy", ".71em")
    .style("text-anchor", "end")
    .exit()
    .remove();
}

function updateChart(filter) {
    var modes = data.map(item =>
        filter.reduce((acc, key) => {
            acc[key] = item[key];
            return acc;
        }, {})
    )

    addAxes(modes);

    // add the year to modes after the axes are updated
    modes = modes.map(function(d, i) {
        d.Year = data[i].Year;
        return d;
    })
    console.log(modes);

    // append the total data points to the chart as a line graph only if the checkbox is checked, otherwise remove it
    chart1.selectAll('.line')
    .data(modes)
    .enter()
    .append("path")
    .attr("class", "line")
    .merge(chart1.selectAll("line"))
    .data(modes)
    .attr("d", d3.line()
        .x(function(d) {
            return xScale(d3.timeParse("%Y")(d.Year))
        })
        .y(function(d) {
            return yScale(d.Total_Per_100K)
        }))
    .exit()
    .remove();

    /*
    // append the car data points to the chart as a line graph
    chart1.append("path")
    .datum(modes)
    .attr("fill", "none")
    .attr("stroke", "red")
    .attr("stroke-width", 1.5)
    .attr("d", d3.line()
        .x(function(d) {
            return xScale(d3.timeParse("%Y")(d.Year))
        })
        .y(function(d) {
            return yScale(d.Car_Per_100K)
        }))
    */
}

Here's the csv file I'm using for reference:

Year,Population,Car_Occupant,Pedestrian,Motorcycle,Bicycle,Trucks,Total,Car_Per_100K,Ped_Per_100K,Motorcycle_Per_100K,Bicycle_Per_100K,Trucks_Per_100K,Total_Per_100K
1975,215973199,30601,7516,3180,1003,916,44525,14.2,3.5,1.5,0.5,0.4,20.6
1976,218035164,31724,7427,3306,914,1100,45523,14.5,3.4,1.5,0.4,0.5,20.9
1977,220239425,32823,7732,4099,922,1229,47878,14.9,3.5,1.9,0.4,0.6,21.7
1978,222584545,34923,7795,4574,892,1315,50331,15.7,3.5,2.1,0.4,0.6,22.6
1979,225055487,35026,8096,4892,932,1372,51093,15.6,3.6,2.2,0.4,0.6,22.7
1980,227224719,34996,8070,5138,965,1183,51091,15.4,3.6,2.3,0.4,0.5,22.5
1981,229465608,33711,7837,4896,936,1082,49301,14.7,3.4,2.1,0.4,0.5,21.5
1982,231664496,29656,7331,4449,864,917,43945,12.8,3.2,1.9,0.4,0.4,19
1983,233791903,29154,6826,4260,830,960,42589,12.5,2.9,1.8,0.4,0.4,18.2
1984,235824783,30094,7025,4602,838,1040,44257,12.8,3,2,0.4,0.4,18.8
1985,237923732,29848,6808,4562,869,941,43825,12.5,2.9,1.9,0.4,0.4,18.4
1986,240132841,32224,6779,4566,929,892,46087,13.4,2.8,1.9,0.4,0.4,19.2
1987,242289023,33145,6745,4034,940,821,46390,13.7,2.8,1.7,0.4,0.3,19.1
1988,244498836,34105,6870,3661,901,886,47087,13.9,2.8,1.5,0.4,0.4,19.3
1989,246819119,33599,6556,3135,822,822,45582,13.6,2.7,1.3,0.3,0.3,18.5
1990,249464396,32711,6482,3243,853,684,44599,13.1,2.6,1.3,0.3,0.3,17.9
1991,252153092,30810,5801,2805,836,650,41508,12.2,2.3,1.1,0.3,0.3,16.5
1992,255029699,29457,5549,2395,717,580,39250,11.6,2.2,0.9,0.3,0.2,15.4
1993,257782608,29994,5649,2445,806,590,40150,11.6,2.2,0.9,0.3,0.2,15.6
1994,260327021,30820,5489,2317,796,658,40716,11.8,2.1,0.9,0.3,0.3,15.6
1995,262803276,31914,5584,2226,828,634,41817,12.1,2.1,0.8,0.3,0.2,15.9
1996,265228572,32354,5449,2161,761,602,42065,12.2,2.1,0.8,0.3,0.2,15.9
1997,267783607,32343,5321,2116,811,717,42013,12.1,2,0.8,0.3,0.3,15.7
1998,270248003,31781,5228,2294,757,739,41501,11.8,1.9,0.8,0.3,0.3,15.4
1999,272690813,32008,4939,2483,750,747,41717,11.7,1.8,0.9,0.3,0.3,15.3
2000,282192162,32109,4763,2895,689,737,41945,11.4,1.7,1,0.2,0.3,14.9
2001,285102075,31938,4901,3195,729,691,42196,11.2,1.7,1.1,0.3,0.2,14.8
2002,287941220,32724,4851,3267,663,675,43005,11.4,1.7,1.1,0.2,0.2,14.9
2003,290788976,32166,4774,3710,626,703,42884,11.1,1.6,1.3,0.2,0.2,14.7
2004,293655404,31750,4675,4026,722,743,42836,10.8,1.6,1.4,0.2,0.3,14.6
2005,296410404,31455,4892,4575,784,758,43510,10.6,1.7,1.5,0.3,0.3,14.7
2006,299398484,30628,4795,4810,769,774,42708,10.2,1.6,1.6,0.3,0.3,14.3
2007,301621157,29155,4699,5174,699,745,41259,9.7,1.6,1.7,0.2,0.2,13.7
2008,304059724,25547,4414,5307,716,615,37423,8.4,1.5,1.7,0.2,0.2,12.3
2009,307006550,23507,4109,4467,628,449,33883,7.7,1.3,1.5,0.2,0.1,11
2010,309327143,22351,4302,4517,621,475,32999,7.2,1.4,1.5,0.2,0.2,10.7
2011,311583481,21413,4457,4630,680,555,32479,6.9,1.4,1.5,0.2,0.2,10.4
2012,313877662,21906,4818,4986,730,590,33782,7,1.5,1.6,0.2,0.2,10.8
2013,316059947,21361,4779,4691,747,589,32894,6.8,1.5,1.5,0.2,0.2,10.4
2014,318386329,21131,4910,4302,723,585,32744,6.6,1.5,1.4,0.2,0.2,10.3
2015,320738994,22741,5495,5026,828,598,35485,7.1,1.7,1.6,0.3,0.2,11.1
2016,323071755,23957,6080,5337,848,662,37806,7.4,1.9,1.7,0.3,0.2,11.7
2017,325122128,23866,6075,5229,800,680,37473,7.3,1.9,1.6,0.2,0.2,11.5
2018,326838199,23046,6374,5038,868,677,36835,7.1,2,1.5,0.3,0.2,11.3
2019,328329953,22557,6272,5044,856,680,36355,6.9,1.9,1.5,0.3,0.2,11.1
2020,329484123,24019,6516,5579,932,608,38824,7.3,2,1.7,0.3,0.2,11.8

Graph with all lines selected

Graph with filtered selection (not removing other lines)


问:
error saving image on my web server with php
I'm trying to create so I can upload photos to my website with php but the code I'm using doesn't show me the image once it's uploaded to my web server; I don't know what could go wrong...

This is the code I'm currently using:

```<code><?php

$imagenCodificada = file_get_contents("https://i.imgur.com/FNJn8FA.png");
if(strlen($imagenCodificada) <= 0) exit("No se recibió ninguna imagen");

$imagenCodificadaLimpia = str_replace("data:image/png;base64,", "", urldecode($imagenCodificada));

$imagenDecodificada = base64_decode($imagenCodificadaLimpia);

$nombreImagenGuardada = "foto_" . uniqid() . ".png";

file_put_contents($nombreImagenGuardada, $imagenDecodificada);

exit($nombreImagenGuardada);
?>
</code>```

Blank image appears

How could I upload the image without it appearing blank?

Thank you very much in advance!

Could someone help me, thank you very much!

Body:
I'm trying to create so I can upload photos to my website with php but the code I'm using doesn't show me the image once it's uploaded to my web server; I don't know what could go wrong...

This is the code I'm currently using:

<?php

$imagenCodificada = file_get_contents("https://i.imgur.com/FNJn8FA.png");
if(strlen($imagenCodificada) <= 0) exit("No se recibió ninguna imagen");

$imagenCodificadaLimpia = str_replace("data:image/png;base64,", "", urldecode($imagenCodificada));

$imagenDecodificada = base64_decode($imagenCodificadaLimpia);

$nombreImagenGuardada = "foto_" . uniqid() . ".png";

file_put_contents($nombreImagenGuardada, $imagenDecodificada);

exit($nombreImagenGuardada);
?>

Blank image appears

How could I upload the image without it appearing blank?

Thank you very much in advance!

Could someone help me, thank you very much!


问:
NextJS 13: How to pass data from middleware to components?
in NextJS 13 with app folder, I need to get data based on url (language from e.g.  /en/asdf/ or /de/asdf/) and pass it to components.

I tried using middleware and it seemed to work relatively well using cookies, but there is one big problem - the cookie is only available in the components after the next reload, not immediately.

Is there any way to pass data from middleware to components?

Or something else, like some Global variables?

Shortcode of my middleware:

```<code>import { NextResponse } from 'next/server'

export const middleware = (req) => {
    const pathname = req.nextUrl.pathname
    const language = pathname.split('/')[1]
    const allowedLanguages = ['en', 'de'];

    if(allowedLanguages.includes(language)) {
        const response = NextResponse.rewrite(new URL(pathname.replace(`/${language}`, ''), req.url))

        // This works only after browser reload
        response.cookies.set('language', language)

        return response
    }
}

export const config = {
    matcher: ['/((?!assets|api|_next/static|favicon.ico).*)'],
}

</code>```

Thanks

Body:
in NextJS 13 with app folder, I need to get data based on url (language from e.g.  /en/asdf/ or /de/asdf/) and pass it to components.

I tried using middleware and it seemed to work relatively well using cookies, but there is one big problem - the cookie is only available in the components after the next reload, not immediately.

Is there any way to pass data from middleware to components?

Or something else, like some Global variables?

Shortcode of my middleware:

import { NextResponse } from 'next/server'

export const middleware = (req) => {
    const pathname = req.nextUrl.pathname
    const language = pathname.split('/')[1]
    const allowedLanguages = ['en', 'de'];

    if(allowedLanguages.includes(language)) {
        const response = NextResponse.rewrite(new URL(pathname.replace(`/${language}`, ''), req.url))

        // This works only after browser reload
        response.cookies.set('language', language)

        return response
    }
}

export const config = {
    matcher: ['/((?!assets|api|_next/static|favicon.ico).*)'],
}

Thanks


问:
run-time check failure #2 || C++
I am working on a project for school and cannot figure out why I keep getting this error message that is telling me the stack around a variable has been corrupted. I have looked at other posts about the message and already tried adding to the number of places in the 2D array.</p>
```<code>int main()
{
    cout << "\n***QB Rating Calculator***\n";

    int games[sixteen] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 };
    float passes[sixteen][sixteen];

    float tds[sixteen];
    float Int[sixteen];
    float yards[sixteen];
    float rating[sixteen];
    int choice = 0;
    string name;
    ofstream print_file;
    print_file.open("QB_Rating.txt");
    //Collect data
    cout << "What is youre Quarter Backs name?\n";
    getline(cin, name);
    get_data(games, passes, tds, Int, yards, sixteen);

    //User choice NFL or NCAA
    system("pause");
    cout << "_______________________________________";
    cout << "\nIs your Quarterback in the NFL or NCAA?";
    cout << "\n1.NFL\n";
    cout << "\n2.NCAA\n";
    cin >> choice;
    switch (choice) {
    case 1:NFL(games, passes, tds, Int, yards, sixteen, rating);
        break;
    case 2:NCAA(games, passes, tds, Int, yards, sixteen, rating);
        break;
    }
    //Display output

    cout << "\n\n" << name << "\n";
    print_file << name;
    for (int i = 0; i < 16; i++) {
        cout << fixed << showpoint << setprecision(2);
        cout << "*****************************************\n";
        cout << "Game " << games[i] << " Quarterback rating was: " << rating[i] << "\n";
        print_file << "*************************************\n";
        print_file << "Game:" << games[i] << "\nQB rating : " << rating[i] << "\n";
    }
    print_file.close();
    system("pause");
    return 0;
}

//Retrieves and validates data
void get_data(int games[], float passes[sixteen][sixteen], float tds[], float Int[], float yards[], int sixteen)
{
    for (int i = 0; i < 16; i++)
    {
        cout << "\n*****************************************\n";
        cout << "\nCompletions in game " << games[i] << ": ";
        cin >> passes[sixteen][i];
        while (passes[sixteen][i] < 0) {
            cout << "\nCompletions cannot be negative. Try again.";
            cout << "\nCompletions in game " << games[i] << ": ";
            cin >> passes[sixteen][i];
        }
        cout << "\nPass attempts in game " << games[i] << ": ";
        cin >> passes[i][sixteen];
        while (passes[i][sixteen] < 0) {
            cout << "\nPass attempts cannot be negative!\n";
            cout << "\nPass attempts in game " << games[i] << ": ";
            cin >> passes[i][sixteen];
        }
        cout << "\nTouchdowns thrown in game " << games[i] << ": ";
        cin >> tds[i];
        while (tds[i] < 0) {
            cout << "\nYou cannot throw negative touchdowns!";
            cout << "\nTouchdowns thrown in game " << games[i] << ": ";
            cin >> tds[i];
        }
        cout << "\nInterceptions thrown in game " << games[i] << ": ";
        cin >> Int[i];
        while (Int[i] < 0) {
            cout << "\nYou cannot throw negative interceptions!";
            cout << "\nInterceptions thrown in game " << games[i] << ": ";
            cin >> Int[i];
        }
        cout << "\nYards thrown for in game " << games[i] << ": ";
        cin >> yards[i];
        while (yards[i] < 0) {
            cout << "\nYou cannot throw for negative yards. Try again";
            cout << "\nYards thrown for in game " << games[i] << ": ";
            cin >> yards[i];
        }

    }
}
//NFL
void NFL(int games[], float passes[sixteen][sixteen], float tds[], float Int[], float yards[], int sixteen, float rating[]) {
    float a, b, c, d;
    for (int i = 0; i < sixteen; i++) {
        a = (((passes[sixteen][i] / passes[i][sixteen]) * 100) - 30) / 20;
        b = ((tds[i] / passes[i][sixteen]) * 100) / 5;
        c = (9.5 - ((Int[i] / passes[i][sixteen]) * 100)) / 4;
        d = ((yards[i] / passes[i][sixteen]) - 3) / 4;
        rating[i] = (a + b + c + d) / .06;
        cout << " " << a << " " << b << " " << c << " " << d;
    }
}
//NCAA
void NCAA(int games[], float passes[sixteen][sixteen], float tds[], float Int[], float yards[], int sixteen, float rating[]) {
    float a, b, c, d;
    for (int i = 0; i < sixteen; i++) {
        a = (passes[sixteen][i] / passes[i][sixteen]) * 100;
        b = (tds[i] / passes[i][sixteen]) * 100;
        c = (Int[i] / passes[i][sixteen]) * 100;
        d = yards[i] / passes[i][sixteen];
        rating[i] = a + (3.3 * b) - (2 * c) + (8.4 * d);
        cout << a << " " << b << " " << c << " " << d;
    }
}
</code>```

Title: run-time check failure #2 || C++

Body:
I am working on a project for school and cannot figure out why I keep getting this error message that is telling me the stack around a variable has been corrupted. I have looked at other posts about the message and already tried adding to the number of places in the 2D array.

int main()
{
    cout << "\n***QB Rating Calculator***\n";

    int games[sixteen] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 };
    float passes[sixteen][sixteen];

    float tds[sixteen];
    float Int[sixteen];
    float yards[sixteen];
    float rating[sixteen];
    int choice = 0;
    string name;
    ofstream print_file;
    print_file.open("QB_Rating.txt");
    //Collect data
    cout << "What is youre Quarter Backs name?\n";
    getline(cin, name);
    get_data(games, passes, tds, Int, yards, sixteen);

    //User choice NFL or NCAA
    system("pause");
    cout << "_______________________________________";
    cout << "\nIs your Quarterback in the NFL or NCAA?";
    cout << "\n1.NFL\n";
    cout << "\n2.NCAA\n";
    cin >> choice;
    switch (choice) {
    case 1:NFL(games, passes, tds, Int, yards, sixteen, rating);
        break;
    case 2:NCAA(games, passes, tds, Int, yards, sixteen, rating);
        break;
    }
    //Display output

    cout << "\n\n" << name << "\n";
    print_file << name;
    for (int i = 0; i < 16; i++) {
        cout << fixed << showpoint << setprecision(2);
        cout << "*****************************************\n";
        cout << "Game " << games[i] << " Quarterback rating was: " << rating[i] << "\n";
        print_file << "*************************************\n";
        print_file << "Game:" << games[i] << "\nQB rating : " << rating[i] << "\n";
    }
    print_file.close();
    system("pause");
    return 0;
}

//Retrieves and validates data
void get_data(int games[], float passes[sixteen][sixteen], float tds[], float Int[], float yards[], int sixteen)
{
    for (int i = 0; i < 16; i++)
    {
        cout << "\n*****************************************\n";
        cout << "\nCompletions in game " << games[i] << ": ";
        cin >> passes[sixteen][i];
        while (passes[sixteen][i] < 0) {
            cout << "\nCompletions cannot be negative. Try again.";
            cout << "\nCompletions in game " << games[i] << ": ";
            cin >> passes[sixteen][i];
        }
        cout << "\nPass attempts in game " << games[i] << ": ";
        cin >> passes[i][sixteen];
        while (passes[i][sixteen] < 0) {
            cout << "\nPass attempts cannot be negative!\n";
            cout << "\nPass attempts in game " << games[i] << ": ";
            cin >> passes[i][sixteen];
        }
        cout << "\nTouchdowns thrown in game " << games[i] << ": ";
        cin >> tds[i];
        while (tds[i] < 0) {
            cout << "\nYou cannot throw negative touchdowns!";
            cout << "\nTouchdowns thrown in game " << games[i] << ": ";
            cin >> tds[i];
        }
        cout << "\nInterceptions thrown in game " << games[i] << ": ";
        cin >> Int[i];
        while (Int[i] < 0) {
            cout << "\nYou cannot throw negative interceptions!";
            cout << "\nInterceptions thrown in game " << games[i] << ": ";
            cin >> Int[i];
        }
        cout << "\nYards thrown for in game " << games[i] << ": ";
        cin >> yards[i];
        while (yards[i] < 0) {
            cout << "\nYou cannot throw for negative yards. Try again";
            cout << "\nYards thrown for in game " << games[i] << ": ";
            cin >> yards[i];
        }

    }
}
//NFL
void NFL(int games[], float passes[sixteen][sixteen], float tds[], float Int[], float yards[], int sixteen, float rating[]) {
    float a, b, c, d;
    for (int i = 0; i < sixteen; i++) {
        a = (((passes[sixteen][i] / passes[i][sixteen]) * 100) - 30) / 20;
        b = ((tds[i] / passes[i][sixteen]) * 100) / 5;
        c = (9.5 - ((Int[i] / passes[i][sixteen]) * 100)) / 4;
        d = ((yards[i] / passes[i][sixteen]) - 3) / 4;
        rating[i] = (a + b + c + d) / .06;
        cout << " " << a << " " << b << " " << c << " " << d;
    }
}
//NCAA
void NCAA(int games[], float passes[sixteen][sixteen], float tds[], float Int[], float yards[], int sixteen, float rating[]) {
    float a, b, c, d;
    for (int i = 0; i < sixteen; i++) {
        a = (passes[sixteen][i] / passes[i][sixteen]) * 100;
        b = (tds[i] / passes[i][sixteen]) * 100;
        c = (Int[i] / passes[i][sixteen]) * 100;
        d = yards[i] / passes[i][sixteen];
        rating[i] = a + (3.3 * b) - (2 * c) + (8.4 * d);
        cout << a << " " << b << " " << c << " " << d;
    }
}


问:
C# - Data Source not appearing in binding source properties
Visual Studio is not adding new binding source (data source).

I added the new data source (a reference to a class I built) to the Designer.cs in the InitializeComponent() section.

Visual Studio recognized the data member but not the data source. Why won't it recognize my data source?

I added the following code to the end of the section:

```<code>this.CharterManagerbindingSource.DataSource = typeof(Program16.CharterManager);
</code>```

I don't receive any errors in my code. It's like it doesn't even realize I entered it.

*** I am trying to add a binding source to a form so I can use the data source to auto populate information within the class it is linked to

Charter Manager Class Code

```<code>internal class CharterManager
    {
        #region "Instance Properties"
        public List<Charter> CharterList { get; private set; }

        #endregion

        #region "Constructor"
        public CharterManager()
        {
            CharterList = new List<Charter>();
        }

        #endregion

        #region "Methods"

        public void AddCharter(Charter aCharter)
        {
            CharterList.Add(aCharter);
        }

        public void AddCharter(string customerName, string yachtType, int yachtSize, decimal charterHours)
        {
            Charter aCharter = new Charter(customerName, yachtType, yachtSize, charterHours);

            CharterList.Add(aCharter);
        }

        public decimal FindLowestCharterFee()
        {
            decimal lowest = CharterList[0].CharterFee;

            foreach (Charter aCharter in CharterList)
            {
                if (aCharter.CharterFee < lowest)
                {
                    lowest = aCharter.CharterFee;
                }
            }

            return lowest;
        }

        public decimal GetAverageCharterFee()
        {
            return GetTotalCharterFee() / CharterList.Count;
        }

        public int GetCharterCount(int yachtSize)
        {
            int count = 0;

            foreach (Charter aCharter in CharterList)
            {
                if (aCharter.YachtSize == yachtSize)
                {
                    ++count;
                }
            }

            return count;
        }

        public decimal GetTotalCharterFee()
        {
            decimal total = 0;

            foreach (Charter aCharter in CharterList)
            {
                total += aCharter.CharterFee;
            }

            return total;

CharterManagerGrid.Designer.CS Code

 private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.CharterManagerbindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            ((System.ComponentModel.ISupportInitialize)(this.CharterManagerbindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.SuspendLayout();
            //
            // CharterManagerbindingSource
            //
            this.CharterManagerbindingSource.DataMember = "Charter List";
            this.CharterManagerbindingSource.DataSource = new Program16.CharterManager();
            //
            // dataGridView1
            //
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Location = new System.Drawing.Point(80, 66);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.RowTemplate.Height = 25;
            this.dataGridView1.Size = new System.Drawing.Size(240, 150);
            this.dataGridView1.TabIndex = 0;
            //
            // CharterManagerGrid
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(800, 450);
            this.Controls.Add(this.dataGridView1);
            this.Name = "CharterManagerGrid";
            this.Text = "Charter Manager Grid";
            ((System.ComponentModel.ISupportInitialize)(this.CharterManagerbindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.BindingSource CharterManagerbindingSource;
        private System.Windows.Forms.DataGridView dataGridView1;
</code>```

Body:
Visual Studio is not adding new binding source (data source).

I added the new data source (a reference to a class I built) to the Designer.cs in the InitializeComponent() section.

Visual Studio recognized the data member but not the data source. Why won't it recognize my data source?

I added the following code to the end of the section:

this.CharterManagerbindingSource.DataSource = typeof(Program16.CharterManager);

I don't receive any errors in my code. It's like it doesn't even realize I entered it.

*** I am trying to add a binding source to a form so I can use the data source to auto populate information within the class it is linked to

Charter Manager Class Code

internal class CharterManager
    {
        #region "Instance Properties"
        public List<Charter> CharterList { get; private set; }

        #endregion

        #region "Constructor"
        public CharterManager()
        {
            CharterList = new List<Charter>();
        }

        #endregion

        #region "Methods"

        public void AddCharter(Charter aCharter)
        {
            CharterList.Add(aCharter);
        }

        public void AddCharter(string customerName, string yachtType, int yachtSize, decimal charterHours)
        {
            Charter aCharter = new Charter(customerName, yachtType, yachtSize, charterHours);

            CharterList.Add(aCharter);
        }

        public decimal FindLowestCharterFee()
        {
            decimal lowest = CharterList[0].CharterFee;

            foreach (Charter aCharter in CharterList)
            {
                if (aCharter.CharterFee < lowest)
                {
                    lowest = aCharter.CharterFee;
                }
            }

            return lowest;
        }

        public decimal GetAverageCharterFee()
        {
            return GetTotalCharterFee() / CharterList.Count;
        }

        public int GetCharterCount(int yachtSize)
        {
            int count = 0;

            foreach (Charter aCharter in CharterList)
            {
                if (aCharter.YachtSize == yachtSize)
                {
                    ++count;
                }
            }

            return count;
        }

        public decimal GetTotalCharterFee()
        {
            decimal total = 0;

            foreach (Charter aCharter in CharterList)
            {
                total += aCharter.CharterFee;
            }

            return total;

CharterManagerGrid.Designer.CS Code

 private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.CharterManagerbindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            ((System.ComponentModel.ISupportInitialize)(this.CharterManagerbindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.SuspendLayout();
            //
            // CharterManagerbindingSource
            //
            this.CharterManagerbindingSource.DataMember = "Charter List";
            this.CharterManagerbindingSource.DataSource = new Program16.CharterManager();
            //
            // dataGridView1
            //
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Location = new System.Drawing.Point(80, 66);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.RowTemplate.Height = 25;
            this.dataGridView1.Size = new System.Drawing.Size(240, 150);
            this.dataGridView1.TabIndex = 0;
            //
            // CharterManagerGrid
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(800, 450);
            this.Controls.Add(this.dataGridView1);
            this.Name = "CharterManagerGrid";
            this.Text = "Charter Manager Grid";
            ((System.ComponentModel.ISupportInitialize)(this.CharterManagerbindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.BindingSource CharterManagerbindingSource;
        private System.Windows.Forms.DataGridView dataGridView1;