[IA-5055] Fix Cloud Environments state logic

Jira Ticket: https://broadworkbench.atlassian.net/browse/IA-5055
Note: the IA ticket number matches the PR number! 🤯

Summary of changes:
My last PR didn't actually fix the issue -- it was still subject to a race condition where the cloud environments page could load before the workspace fetch finished. This PR should fix it.
What

Set a boolean workspacesLoaded state to true when the useWorkspaces hook loads workspaces. Only render the component when workspaces are loaded.

Why

It was tricky (for me) to figure out how to sequence the dependencies between async data fetches/hooks. Especially when these hooks themselves are refreshing data from other hooks, it was easy to get into an infinite loop. Talking with @msilva-broad I think there is an opportunity to factor some of the data fetch logic in Environments.ts to dedicated hooks with clear contracts.

Testing strategy

[ ] Unit tests pass
[ ] Verified the fix locally and on PR site

@msilva-broad @LizBaldo wondering if you could have another look at this? I think it actually fixes the bug I was trying to fix in the first place.


Visibility of fields - edit and insert

Hi,
I'm having trouble with dynamically showing fields when an item is selected for edit.
I have the column initially hidden by default, using visible: false and then within the onEditing method I attempt to set the visible flag to true using the fieldOption method so a value can be set.
However this seems to interfere with the edit functions as it then no longer converts the row to edit mode.
Is there something I am missing or is this sort of behaviour not supported?

Could you provide an example of your code?

Sure, minimal example:
$("#jsGrid").jsGrid({         // ...         onItemEditing: function(args) {             $('#jsGrid').jsGrid('fieldOption', 'MyColumn', 'visible', 'true');             // ... the above line prevents fields converting to edit mode         },         fields: [             { 'title' : 'MyColumn', visible: false }          ] });

JsFiddle

@maurorulli Thanks for that
@djjohnjosephuk Calling fieldOption results in the grid re-rendering itself. This triggers the a clear and a refresh, both of which cancel any current edit rows. This behavior is baked-in pretty deep.

Yes, as @richraid21 described, grid re-renders on field option changes. Hidden fields for instance are not rendered, so to show them it requires to re-render the grid.
You can define a rowClick, thus that editItem is called after showing new field:
      rowClick: function(args) {
	 var item = $(args.event.target).closest("tr").data("JSGridItem");
      	 $('#jsGrid').jsGrid('fieldOption', 'MyColumn', 'visible', 'true');
         this.editItem(item);
      },

https://jsfiddle.net/owcxwahm/2/


After a while the Integration starts failing to call Service until a restart.

Description
I am using the integration mostly for HVAC systems.
From time to time (normally when I keep Home Assistant running without any restart for several days) the entire integrations seems to stop working. Each time I give it a command such as turning on/off, or changing the temperature/mode I receive the errors such as:

Failed to call service climate/turn_on.
Failed to call service climate/set_hvac_mode.

This only gets fixed after I restart HA.
Below I added a few logs i managed to catch, with some debug logs I added of my own.
Environment details:

Home Assistant version installed: 2023.4.6
Supervisor: 2023.04.1
Operating System: 10.1
Component version installed: v0.31.6

Output of HA logs
Paste the relavant output of the HA log here.
2023-05-10 16:30:30.607 DEBUG (MainThread) [custom_components.smartthinq_sensors.wideq.device] Setting new state for device a93ddab3-2b01-1826-a7cf-dc039850d386:  basicCtrl - Set - airState.operation - 257
2023-05-10 16:30:30.608 DEBUG (MainThread) [custom_components.smartthinq_sensors.wideq.core_async] lgedm2_post before: https://eic-service.lgthinq.com:46030/v1/service/devices/a93ddab3-2b01-1826-a7cf-dc039850d386/control-sync
2023-05-10 16:30:31.029 DEBUG (MainThread) [custom_components.smartthinq_sensors.wideq.core_async] lgedm2_post after: {'resultCode': '0102', 'result': ''}
2023-05-10 16:30:31.032 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547538158976]
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1820, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1857, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 216, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 977, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call
    await result
  File "/config/custom_components/smartthinq_sensors/climate.py", line 400, in async_turn_on
    await self._device.power(True)
  File "/config/custom_components/smartthinq_sensors/wideq/devices/ac.py", line 704, in power
    await self.set(keys[0], keys[1], key=keys[2], value=op_value)
  File "/config/custom_components/smartthinq_sensors/wideq/devices/ac.py", line 873, in set
    await super().set(
  File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 529, in set
    await self._set_control(
  File "/config/custom_components/smartthinq_sensors/wideq/device.py", line 490, in _set_control
    await self._client.session.device_v2_controls(
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1183, in device_v2_controls
    res = await self.post2(cmd_path, payload)
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 1020, in post2
    return await self._auth.gateway.core.lgedm2_post(
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 337, in lgedm2_post
    return self._manage_lge_result(out, is_api_v2)
  File "/config/custom_components/smartthinq_sensors/wideq/core_async.py", line 349, in _manage_lge_result
    raise API2_ERRORS[code](message)

I don't know if I'm running into the same issue but for me the integration consistently fails after "some time" although trying to determine that timeframe is challenging. For me it's used exclusively for laundry related alerts, and I am seriously considering looking into other means of determining when cycles are done since this has been so flaky for me.
Basically I can fix things with an HA restart. I have never been able to reload the integration itself - it always gets stuck "initializing" and nothing happens.
On at least one occasion (last year) the integration was pending a password update so I went into the phone app (LG one) and updated my password. Then the integration started working again.
But these recent failures are frustrating because we don't do laundry very often and when we do that's when I find out the integration isn't connected.
I'm not that familiar with how to find debug logs, etc., but I did see where there is a place to turn on debug logging so I'll try that.

On at least one occasion (last year) the integration was pending a password update so I went into the phone app (LG one) and updated my password. Then the integration started working again.

Also had that happen to me. Not sure if related tho.

Maybe I found the issue and fixed with last release. Please test and give me your feed-back.

Will do, thank you.

Based also on comment from similar issue seems that this problem is solved, so I close the issue. If problem persist please open a new one.

Just a quick note - this is still failing for me so I'm giving up and removing it from HA and am going to try making my own solution to let me know when the washer & dryer are done. The actual LG phone app might be able to help me here. Sorry it didn't work out for me.

Just a quick note - this is still failing for me so I'm giving up and removing it from HA and am going to try making my own solution to let me know when the washer & dryer are done. The actual LG phone app might be able to help me here. Sorry it didn't work out for me.

I suggest to open a new issue and provide more details, as integration diagnostics and error logs. Looks like you have a different problem from the one fixed in last release, so it will be better analyze in on a separate thread.


Session History Endpoint

Session history endpoint can be used to determine how long sessions have been active for. A future PR will allow cancelation of sessions by ID.

@brandonSc can you rebase all these commits into a single commit.


Improve project time to wait for other projects on a running job

Situation
We got the situation that some security products do not scale good enough and can block other project scans by just one full fat big scan. And when only one instance is running all others must wait...
Very , very painful for other projects.
Wanted
High critical projects (time) should be processes faster, even when there are many existing parts in queue.
How could we achieve this?
Idea 1: Security Environments
An administrator defines something like "security-environment". There exists a default
environment which is used by every project  (fallback) not being assigned to a specific environment.
Inside the environment  an administrator can define a configuration setup for dedicated products. "e.g. something like 'VIP-project-XYZ' would be defined as an environment and has got not default scan server as target, but a dedicated one.
Only an administrator can change this setup. The setup should be product specific. So every adapter must be able to operate with this settings. Easiest way could be to use a JSON text file which represents products id and a general key value strucuture.  On later admin web ui the content should be graphical by providing a key value UI...
Risks/Problems

How to provide secrets for products here?

@de-jcup Still relevant?
Should we close this issue?


Example for file Upload

Hey! awesome work with redux-form!
I'm using it at production, and I'm going to use it for file inputs, but I would appreciate an example or ideia of how it would be done with redux-form.
thanks!

As far as I know, this is how:

It's important to note that <input type="file" /> Doesn't support the setting of values
You need to do some parsing of the event before calling fields.yourField.handleChange(). Something like this:

<input
  type="file"
  onChange={
    ( e ) => {
      e.preventDefault();
      const { fields } = this.props;
      // convert files to an array
      const files = [ ...e.target.files ];
      fields.yourField.handleChange(files);
    }
  }
/>

Hope that helps.
@erikras: What do you think about updating getValue to support e.target.files? https://github.com/erikras/redux-form/blob/master/src/reduxForm.js#L28

@BBB thanks for the help! I finally did it using the https://github.com/paramaggarwal/react-dropzone
@erikras great patch! I'll use it in later integrations with other components ;)

I have got this working in all current browsers, but IE 9 just return undefined, perhaps for older browsers you could return the field value?

@lemonCMS You mean like changing this:
if (type === 'file') {
  return files || dataTransfer && dataTransfer.files;
}

to this:
if (type === 'file') {
  return files || dataTransfer && dataTransfer.files || value;
}

??

Yes :)

I'm kinda struggling getting this to work. I'm under the impression I'm using the file input wrongly.
My initial attempt was to bind the same way I would bind any other input:
<input type='file' {...image} />

But as @BBB points out, React complains that value cannot be set programatically. Second try; handle the change manually (after @BBB's suggestion):
handleFile(fieldName, event) {
	event.preventDefault();
	const { fields } = this.props;
	// convert files to an array
	const files = [ ...event.target.files ];
	fields[fieldName].handleChange(files);
},
render() {
	(...)
	<input type='file' onChange={this.handleFile.bind(this, 'image')} />
	(...)
}

But handleChange is not defined on the field. Am I completely misunderstanding the suggestion, or has the API changed since the suggestion was made?

I am not sure, but i think i had it working as following.
const props = this.props.fields[field.name];

return (
<Input
        type="file"
        onDrop={props.onDrop}
        onChange={props.onChange}
        onFocus={props.onFocus}
        onUpdate={props.onUpdate}
        />
);

Yes, what @lemonCMS said should work. Although it could just be <input type="file" {...field}/>. :smile:

Tried @lemonCMS' approach; changed
fields[fieldName].handleChange(files);

to
fields[fieldName].onChange(files);

which works.

Yes. handleChange went extinct in v3.0. :+1:

@edorivai, @lemonCMS, @sebas5384: Do you guys have any examples of your approach to using file fields with redux-form? Especially if you were able to get it to work with a Dropzone component.

@duro Haven't tried myself, but I think the following would work:
<Dropzone onDrop={this.props.fields.myFileField.onChange}>

Try dropping some files here, or click to select files to upload.

</Dropzone>

+1 does anyone have an example of redux-form + dropzone?

+1

@austinmao have you found an example maybe? :)

Nope :(

@duro @austinmao @kitze I've put together a simple example of using dropzone with redux-form. http://ollie.relph.me/blog/redux-form-and-dropzone-react-example/ Any questions, just post an issue on the repo!

Did anyone had an experience with asyncValidate and Dropzone?
I'm trying to upload a file using react-dropzone and async validate a successful/unsuccessful file upload. The problem is i can't get asyncBlurFields to work with react-dropzone, and calling asyncValidate directly inside onChange doesn't work because 'values' object in asyncValidate is outdated and don't contain the file i want to upload. Any ideas?
Thanks!

I don't know if this helps anybody but this approach: <input type="file" {...field} /> didn't threw an error when I specified the value={null} inside of it like so:
<input type="file"  {...profilePic} value={null} />

@serranoarevalo That is, in effect, converting it back to an uncontrolled input, which might be necessary for file inputs, I don't know. The React docs are light on that corner of the DOM.

where is the binary content of fole i can save for example to rethinkDB using r.binary ? (if i am using react-dropzone in redux) there is not any field that holds the data of file.. ?

Hello, is there a simple way to use Dropzone with the new api Field, I'm struggling with the onChange binding :/ As we cannot access this.props.fields anymore. Using a ref ?
Thank you,

Hello everybody.
For interested people, I managed to make it work with:
<Field name="picture" component={props =>
    <Dropzone
       {...props.input}
        multiple={false}
        style={dropzoneStyle}
        onDrop={(filesToUpload) => {
         this.files = filesToUpload;
         return props.input.onChange(filesToUpload);
         }}
    >

Try dropping a file here, or click to select file to upload.

    </Dropzone>
    } type="file"/>
    {this.props.files &&

        {this.props.files.map((file, i) => {file.name})}

     }

For information files is an array declared in my component as : files: [].
If you don't need to display current selected files, you can just use onDrop= props.input.onChange
Documentation should handle this behavior.
Hope it will helps ;)

@BBB's earliest comment here works for me (on<EMAIL_ADDRESS>and react@15.1), save for one issue: the first time we select a file, the store is updated with the new form value and the component is rendered with the appropriate value; in subsequent changes to the file input, the store is updated properly and the component is rerendered but always receives the first file we chose.
I've uploaded a minimal example to http://carpeliam.github.io/redux-form-file-input-example, with code at https://github.com/carpeliam/redux-form-file-input-example.

@erikras not sure if you saw the above comment - should I file a separate issue? Not sure if 5.3.1 is supposed to work with React 15.1 or not.

Hi I was trying to use dropzone with redux-form
export class Dropzone extends React.Component {
  render() {
    const { id, field, label, labelSm, controlSm, ...other } = this.props;
    return (

        <FormGroup
          controlId={id}
          validationState={validationState(field.meta)}
        >
          <Col componentClass={ControlLabel} sm={labelSm}>
            {label}
          </Col>
          <Col sm={controlSm}>
            <ReactDropzone
              {...field.input}
              {...other}
              onDrop={field.input.onChange}
            >

Try dropping a file here, or click to select file to upload.

            </ReactDropzone>
            <FormControl.Feedback />
            {errorMsg(field.meta)}
          </Col>
        </FormGroup>
        {field.input.value &&
{field.input.value.map((file, i) => {file.name})}
}

    );
  }
}

where ReactDropzone = require('react-dropzone')
and using it like this in one of the forms that I have
        <Field
          name={'files'}
          component={(field) =>
            <Dropzone
              id={'files'}
              label={'Documents'}
              field={field}
            />
          }
        />

And I get a state mutation
Uncaught Invariant Violation: A state mutation was detected between dispatches, in the path `form.abc.values.files.0.lastModifiedDate`. This may cause incorrect behavior.

where abc is the form name.
Can anyone point out where the problem is?

How does the new <Field> look with files type? Do I need my own file component? I can't seem to do type="file"

https://github.com/BBB/dropzone-redux-form-example Has now been updated to work with v6. @shawnmclean @jckdrpr You might find it helpful.

Hey @BBB I tried out the example on the repo linked in your answer and I added redux-immutable-state-invariant to the project and I am getting the same error. Has no one else faced this issue?
Well it does work when there is no redux-immutable-state-invariant.

My take
import React from 'react'

class FileInput extends React.Component {
  constructor(props) {
    super(props)
    this.onChange = this.onChange.bind(this)
  }

  onChange(e) {
    const { input: { onChange } } = this.props
    onChange(e.target.files[0])
  }

  render() {
    const { input: { value } } = this.props

    return (<input
      type="file"
      value={value}
      onChange={this.onChange}
    />)
  }
}

export default FileInput

and then
import { Field } from 'redux-form'

<Field
  type="file"
  name="poster"
  component={FileInput}
/>

Works awesome!

thanks to @BBB i came up with the following
import React from 'react';
import Dropzone from 'react-dropzone';

const ReduxFormDropzone = (field) => {
    var props = {...field};  // to be able to pass props to Dropzone
    delete props.input;     // remove the input property
    delete props.meta;     // remove the meta property
    delete props.dropzoneOnDrop;  // remove the dropzoneOnDrop property

    return (
        <Dropzone
            onDrop={(acceptedFiles, rejectedFiles, e) => {
                field.input.onChange(acceptedFiles);
                field.dropzoneOnDrop && field.dropzoneOnDrop(acceptedFiles, rejectedFiles, e);
            }}
            {...props}
        />
    );
}

export default ReduxFormDropzone;

then you just need to do...
<Field
    name={"files"}
    component={ReduxFormDropzone}
    style={style.dropzone}
    multiple={false}
    dropzoneOnDrop={this.handleDrop}
/>

a couple of notes:

on the Field component, to use the Dropzone onDrop you have to use dropzoneOnDrop because Field has a OnDrop

I removed a couple of props in the Dropzone component because Dropzone throws warnings for unknown properties, this is just to prevent these warnings.

@BBB I am getting the same error as @jckdrpr . Please suggest some solution for same.
browser.js?9520:40 Uncaught Error: A state mutation was detected between dispatches, in the path form.SkillForm.values.files.0.lastModifiedDate. This may cause incorrect behavior.
@jckdrpr Have you find any solution for above mention error?

@BBB your example returns empty formdata and the server cant find the payload. Any idea?

@asiniy  did not work with v6 throw this error:
Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
    at Object.updateWrapper (webpack:///../~/react-dom/lib/ReactDOMInput.js?:156:20)
    at ReactDOMComponent.forceUpdateIfMounted (webpack:///../~/react-dom/lib/ReactDOMInput.js?:34:19)
    at CallbackQueue.notifyAll (webpack:///../~/react-dom/lib/CallbackQueue.js?:76:22)
    at Object.flushBatchedUpdates (webpack:///../~/react-dom/lib/ReactUpdates.js?:180:13)
    at ReactDefaultBatchingStrategyTransaction.closeAll (webpack:///../~/react-dom/lib/Transaction.js?:206:25)
    at ReactDefaultBatchingStrategyTransaction.perform (webpack:///../~/react-dom/lib/Transaction.js?:153:16)
    at Object.batchedUpdates (webpack:///../~/react-dom/lib/ReactDefaultBatchingStrategy.js?:62:26)
    at Object.batchedUpdates (webpack:///../~/react-dom/lib/ReactUpdates.js?:97:27)
    at dispatchEvent (webpack:///../~/react-dom/lib/ReactEventListener.js?:147:20)

My solution based on https://github.com/erikras/redux-form/issues/2532#issuecomment-277926328. I don't know how hacky is it, but works for me:
`import React from 'react'
export const FileInput = ({ input, resetKey }) => {
const { value, ...inputProps } = input
const handleChange = (e) => {
	input.onChange(e.target.files[0])
}

return (
	<input {...inputProps} key={resetKey} type="file" onChange={handleChange} onBlur={() => {}} />
)

}`
<Field name="image" component={FileInput} onChange={this.handleFileChange} />
I'm saving data URI from image cropper as value of the field. The problem was that onBlur was resetting field value to FileList object, so I had to disable it.

What worked in my case:

Create a functional component that returns an <input type="file"/> component.
Delete the value property from field.input in the functional component
Use the functional component in <Field component={} />

import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';

/**
 * File input workarround:
 * More info: http://redux-form.com/5.2.5/#/examples/file?_k=57hmlw
 */
const customFileInput = (field) => {
  delete field.input.value; // <-- just delete the value property
  return <input type="file" id="file" {...field.input} />;
};

class SubmitVideoForm extends Component {
  render() {
    return (
        <form className="submit-video-form">

          <Field
            name="file"
            type="file"
            component={customFileInput}/>

          <input type="submit" value="Submit your video"/>
        </form>
    );
  }
}

SubmitVideoForm = reduxForm({
  form: 'submitVideoForm'
})(SubmitVideoForm);

export default SubmitVideoForm;

Just one thing to point in the answer from @asiniy, just remove the value attribute form the returned input to avoid error "Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string."
    return (<input
      type="file"
      onChange={this.onChange}
    />)

More information http://redux-form.com/5.2.5/#/examples/file?_k=z12d2f

Hi. I have same problem like https://github.com/erikras/redux-form/issues/71#issuecomment-243444038
Is there a way to solve the problem?

I'm having the same problem as @sherubthakur mentioned with redux-immutable-state-invariant. Any solutions?

About the problem from https://github.com/erikras/redux-form/issues/71#issuecomment-243444038, I found out that deep-equal used in this condition, returns true (equal) from the second part of the condition, given two different instances of File object.

A work around for https://github.com/erikras/redux-form/issues/71#issuecomment-243444038  is to not return the File object as value to the onChange of the field, but to return an object like:
{
    file: e.target.files[0],
}

@SepiaGroup You are the man!
Do you manage to do the image preview as well?

@pacozaa  glad you found it helpful.
preview should work, what seems to be the issue?

@pacozaa glad you found it helpful.
preview should work, what seems to be the issue?

@SepiaGroup
Thank you again!
I forgot they are array value because it assume everything there are multiple files.
So I solve my problem just add [0] behind variable!
Anyone who face the same problem please don't forget to add [0] like this
file[0]
Again use @SepiaGroup trick works like a charm.

@LulzAugusto @vitalykorneev I have the same issues as you. Did you ever find a solution?

@lupitadavila Oh sorry for such delay in answering you. About your question, I didn't find a solution, but I've updated redux-immutable-state-invariant and I'm now using their ignore parameter to pretend that the issue doesn't exist anymore. 😂

@GuillaumeCisco hey, I have tried your method mentioned at here https://github.com/erikras/redux-form/issues/71#issuecomment-234234555 it seems work but may I know how to get the url from it? Because the results returned it is always show as [object FileList] as shown in the screenshot below:

I just want to get the url from it, thank you

Hey @JohnHour89 , please understand how FileList works https://developer.mozilla.org/en-US/docs/Web/API/FileList
It is just an array of objects.
If you want to create an url from a File object, you can use data or blob
https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
Hope it will help

I have a form which using onSubmit of the Form:
<Form onSubmit={handleSubmit(this.onSubmit)}>
The function onSubmit can only capture the string, number... but not the file
  onSubmit(formData) {

  }

The examples above using onChange method to capture the file, but I want to use onSubmit, any suggestion?

Have problem with save in store, file from input[type="file"] 😓
I am using Fields Array (<FieldArray name="companyCertificates" component={InputFile} />) to generate new inputs after adding file. After input onChange I trying to save e.target.files[0] to store through input.onChange(e.target.files[0]), but Redux Inspector is showing me empty object.
Maybe I use not correct method to save or Redux Inspector don't show file value?
This my InputFile component:
import React, { Component } from 'react';
import { Field } from 'redux-form';

const InputField = ({ input, fields, index }) => {
    delete input.value;

    const fieldAdd = (e, fields) => {

        if (e.target.files[0]) {
            fields.push();
            input.onChange(e.target.files[0])
        }
    };

    return (
        <input type="file"
               {...input}
               onChange={(e) => {
                   e.preventDefault();

                   fieldAdd(e, fields, input);
               }}
               accept=".pdf" />
    )
};

export default class InputFile extends Component {
    constructor (props) {
        super(props);
    };

    componentWillMount () {
        let { fields } = this.props;

        if (fields.length === 0)
            fields.insert(0, null);
    };

    render () {
        let { fields } = this.props;

        return (

                    {fields.map((name, index) => {
                        return (
                            <Field name={name}
                                   key={index}
                                   index={index}
                                   fields={fields}
                                   component={InputField} />
                        )
                    })}

        )
    }
};

Could smbdy help me with saving this file in store to send it later?
Thanx a lot!

@tini2n the problem is in thos part

// should be a Class
const fieldAdd = (e, fields) => {

        if (e.target.files[0]) {
            // you are pushing nothing
            fields.push();

            // input is unknown
            input.onChange(e.target.files[0])
        }
    };

    return (
        <input type="file"
               {...input}
               onChange={(e) => {
                   e.preventDefault();

                   // passing input parameter but not using it
                   fieldAdd(e, fields, input);
               }}
               accept=".pdf" />
    )

@GuillaumeCisco thanx for reply!)
fields.push() is FieldsArray's method to add new input elements. Seems that it working well.
input is known as input element. Below console.log of it

I checked Diff of values and saw that value in store is replaced by empty object:

@tini2n Your code is too messy. Please clean it, use a Class for InputField and declare correctly your functions and parameters.
There is no declaration of FieldArray in your sample code.
Furthermore, you are pushing nothing, see the doc about FieldArray's push method:
fields.push(value:Any) : Function
Adds a value to the end of the array. Returns nothing.

This is not a mutator; it dispatches an action which updates the state in Redux, which will cause your component to rerender.

@tini2n Did you ever get a field array to work with file type inputs?


In level Gmone forest, goblin will not shoot arrows at players

Here is the video about this bug.
https://github.com/user-attachments/assets/0cdb5e64-3297-416a-9a45-e468deb287f5

Yeah, he's right, this bug also means that Gnome Forest's Bullseye achievement can't be unlocked.

Fixed in SR 8


CLI[Chart]: Set namespace to kubectl context during cluster create

Need to invoke after creating a cluster
kubectl config set-context --current --namespace="${NAMESPACE}"

:tada: This issue has been resolved in version 0.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add string.startsWith and string.endsWith

This adds a startsWith and endsWith helper on the string like discussed here https://github.com/colinhacks/zod/issues/604
small aside, the playground.ts is missing, which is mentioned in the contrib

CC @alii

ooh awesome :D thank you!

Transforming the parameter users give to the startsWith function into a regex doesn't work in certain edge cases.
Consider the following scenario;
const x = z.string().startsWith("[a-g]");
x.parse("[a-g]");

By first look this should work as the string [a-g] starts with [a-g].
The problem is that when you transform [a-g] into a regex using your implementation it checks if the string starts with any character from a to g, which it doesn't as it starts with the character [.
I suggest using the native String functions startsWith and endsWith.


VSCode debugger crashes on old simulators

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

CLI: 5.2.0
Cross-platform modules: 5.2.0
iOS Runtime: 5.2.0

Describe the bug

To Reproduce

tns create jsApp --js && cd jsApp && code .
Replace your onTap method with the one below:

viewModel.onTap = (args) => {
    const btn = args.object;
    const native = btn.nativeView;
    console.log(native);
};

Set a breakpoint inside the above-mentioned method.
Start an old simulator (<11.0) e.g. with iPhone 6 with iOS 9.3.
Click Launch on iOS from VSCode.
Try to inspect the nativeView of the button.
You will get [UIButton adjustsImageSizeForAccessibilityContentSizeCategory]: unrecognized selector sent to instance exception and the app will crash (this property is introduced in iOS 11).

Expected behavior
The iOS runtime should not return properties for newer iOS version through the debug protocol. In this case the returned properties should be for iOS <=9.3.

The bug is caused by adjustsImageSizeForAccessibilityContentSizeCategory being declared without availability attributes while at the same time it's defining protocol UIAccessibilityContentSizeCategoryImageAdjusting is declared available since iOS 11.0


dangerouslyAllowMutability binding

Hey!
I needed the dangerouslyAllowMutability binding for something, any interest to have a PR for it?
type atomWithDangerouslyAllowMutabilityConfig('value) = {
  key: string,
  default: 'value,
  dangerouslyAllowMutability: bool,
};

<EMAIL_ADDRESS>"recoil"]
external atomWithDangerouslyAllowMutability:
  atomWithDangerouslyAllowMutabilityConfig('value) =>
  Recoil.readWrite('value) =
  "atom";

Not sure if this is the nicest API for it, and I don't think a lot of people will need it, but thought I'd ask :)

Sure! I'd happily merge a PR for that 😀

Hey !
First of all, thanks for the library which let me discover and use Recoil everyday in my Rescript project !
I also need this binding. Any update on this @happylinks, @bloodyowl ?
Thanks a lot !

Took a little while, but I just opened a PR for this: https://github.com/bloodyowl/rescript-recoil/pull/29

Thanks a lot @happylinks! Your feature has been released in v2.1.0


Don't send participants for teams

@chrisnojima I think with the memoized object it should cache properly so it hits the shallow equal appropriately.

i'm merging this


Seeing the craziest thing. Tabula find totally different text. Layers?

Trying to extract from the following invoice:
Invoice
If you open it in PDF or any tool, you see one invoice:

if you open it in tabula you see something different:

HOW?

hey @courtenayparserr,
Thanks for the report. That looks like a bug in the library that we use for generating PDF images. I'll triage this to investigate later.

Hi @jazzido
This is happening increasingly commonly. Is there a fix?

Hi @jazzido
This is happening increasingly commonly. Is there a fix?


Added normalization to multiply_robust

Added normalization option to multiply_robust, as implemented in med_dml, default=True

"Normalization" refers to probability weighting normalization, as described in "Identifying causal mechanisms (primarily) based on inverse probability weighting", Huber (2014), DOI: 10.1002/jae.2341
We normalize the probabilities involved in score functions by dividing by their average on all the sample, respectively for treated and non-treated units. I describe that in my internship report page 22
As far as I understood, it is a trick to eliminate selection bias and make the estimation robust to extreme probability values
So I don't see any precise procedure that would check the proper behavior
A possible test would be to compare normalized and non-normalized estimators give, or just to check the relative error like all other estimators
I will declare an issue about that

Thx. My point here is that there should be a small comment in the code together with a reference to explain what is done. Think of the next engineer who will discover that code and tray and figure out what is done here. I'm not asking to justify what is done, but simply to make it clear.

Oups sorry I misunderstood, I added the reference into the documentation, 919ff9a

I propose to merge that one to clean a little bit the workspace before refactoring. Is that OK ?

ok for me.

Merging then


Create Array Traversal

Hello, Kindly merge my PR after reviewing. It will be a great help. Thank you.


work around for error can't resolve crypto

I received the following error in my console when installing "@phosphor/coreutils": "^1.3.0".
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'crypto' in 'C:\Users\sbiggs\github\monorepo\Applications\not-in-regular-use\cca-photo-drop\node_modules\@phosphor\coreutils\lib'
i ｢wdm｣: Failed to compile.

I worked around this error by applying this patch.

I think what's happening here is that the require('crypto') call is for when you are in a node environment, since that is part of node's standard library. So perhaps what's needed is a more robust way to confirm that the coreutils are being loaded in a browser vs. node. One way I've seen to detect when you are in node is:
(typeof process !== 'undefined') && (process.release.name === 'node')

So something like this:
// Look up the crypto module if available.
let process: any;
const crypto: any = (
  (typeof window !== 'undefined' && (window.crypto || window.msCrypto)) ||
  (typeof process !== 'undefined' && process.release.name === 'node'
    && typeof require !== 'undefined' && require('crypto')) || null
);

Yup, I've just seen that method you mentioned used here:
https://github.com/jupyterlab/jupyterlab/blob/23065f5aab64cf20b80f02fba255c4a1baee4c62/packages/coreutils/src/pageconfig.ts#L76

I just realized my example code above would blow up in node because you can't redefine process.
You can still do the typeof check, etc.


Scala optional type is not supported?

Hi,
Thanks for the great plugin. It looks Scala optional type is not supported? It is not a stopper. Just it will be more convenient if it is supported.
Thanks, Cheng

Hi Cheng, If you are using proto3 syntax, look into primitive wrappers. If you use proto2 syntax, the generator generates Option types by default for optional fields.
If you have any further questions, please use the ScalaPB mailing list. Github issues are meant for tracking issues.


Expected value for target test to be a list of dependency names.

When I run the project using julia --project=. and then try to add dependencies to the project (i.e. using add MyPackage)
the following error appears:
Expected value for target `test` to be a list of dependency names

which prevents me from installing dependencies on the main package.
So, I temporarilly install my package-wide dependencies on the test
environment, which however I think is not correct.

 Because test is no longer in the dependencies.

In addition, I am struggling to allow for an import of the package (of the for using OCTHaGOn) that is not local (i.e. via include("src/OCTHaGOn.jl"); using .OCTHaGOn). It will have to be a local import for the time being.

In any case, let me know if this is still an issue. AFAIK, it has been solved.


price history chart doesn't populate initially

User refreshes on trading page, the price history chart doesn't draw.

related issue is the price history chart doesn't take up whole div.

looks good. loading up quickly


cargo install a library as .dll / .so file

Describe the problem you are trying to solve

I have a rather large library (azul-dll), which can be compiled to a cdylib. The library itself has 200+ dependencies (already tried to optimize it) and rebuilding code that uses that library takes ~30s, which is slow.
My plan to speed up compile time was to do something like this:
# 1. let the user run an installation command
# optionally, the user can also install the library via apt-get and link it dynamically (not the default)
# compiles and installs the library as a dll into the ./cargo directory
# standardized (?) path for outputting the compiled dll / .so file
cargo install azul-dll -- --release --target=cdylib --output-path="./cargo/installed-libs/azul.so"

Then, in the main azul library, include and load the pre-compiled DLL:
// 2. include the .so file as bytes, so that there are no deployment problems (still one binary file)
// if the dll is not installed, this line will simply fail to compile
#[cfg(feature = "include-dll-in-binary")]
const LIBRARY_BYTES: &[u8] = include_bytes!("./cargo/installed-libs/azul.so");

mod dll {
    pub struct AzulDll {
        lib: Box<Library>,
        az_css_empty: Symbol<extern fn() -> AzCssPtr>,
    }

    fn load_library(bytes: &'static [u8]) -> AzulDll {
        fs::write("/temp/azul.so", bytes); // workaround, since dlopen only accepts file paths
        let lib = Library::new("/temp/azul.so").unwrap();
        AzulDll {
            lib,
            az_css_empty = unsafe { lib.get::<extern fn() -> AzCssPtr>(b"az_css_empty").unwrap() }
        }
    }
}

lazy_static! {
    // initialize the library at startup
    let LIB: AzulDll = load_library(LIBRARY_BYTES);
}

fn main() {
    let css = LIB.az_css_empty();
    println!("{:?}", css);
}

This solution would especially speed up the link time, which is often greater than the compile time itself.
For a release build, the user could specify via feature-flags whether the DLL is loaded from the system and deployed alongside the binary or in a separate package (for example, to work with things like apt on Linux) or if the DLL should be included in the binary for deployment on systems that have little to no library dependency management (Windows), with the disadvantage of slight binary bloat.
Describe the solution you'd like

Currently you can only install binaries from crates.io, it would be great if you could also install DLL / .so files directly from crates.io if they have a crate-type=cdylib in their Cargo.toml.
I could maybe hack around this with giving azul-dll a main.rs file, which the bootstraps itself, and builds and installs azul-dll in the correct directory, but it would be better to have a standardized solution for installing DLLs, especially for security purposes.
Lastly, if something like that would be considered, I've noticed that there is a strip command for cargo now - could the command / rustc be modified to only strip debug information, not function names (which are important for dynamically loading a library)? Thanks in advance for any help.

@ehuss do you need any help with this? I am interested in getting it to work, though I had a slightly different implementation in mind, something that is useful for Linux distributions and similar users. I would like a way to build and install projects as dynamic libraries, and a way to tell cargo to link against dynamic libraries on the system instead of building the crates.
Currently, distros are essentially forced to static link everything, which has a few issues like being hard to track and deploy fixes for security issues.
I would be happy to throw some time into this if needed :blush:

Just to chime in, I'd find this really useful for myself as well. There's a lot of times where I want to gradually introduce Rust into a non-Rust codebase by using a crate-type = ["cdylib"] crate as the interface between Rust and C/C++.
For breaking dependencies between CI builds, it'd be really helpful if I could have the C build run cargo install foo to get the sources for and build foo.{so,dylib,dll} without having to use cargo-download or git submodules.

I find this useful as well.

Semi-related. Cargo gets an unstable feature Z bindeps, which allows your package to depend on bin, cdylib, and staticlib on compile time. Hope it helps to some extent.
https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#artifact-dependencies

Oh wow! That's exactly what I need! Thank you. Is it possible to get the cdylib of the same package? for example package pkg has lib and bin. I want to embed lib -> bin as an artifact.

Is it possible to get the cdylib of the same package? for example package pkg has lib and bin. I want to embed lib -> bin as an artifact.

The interface to define an artifact dependency is specifying [dependencies] in Cargo.toml, so I guess it may not work for your scenario. Though I believe it works if you separate bin and lib into two different packages.

Any updates?
I does not find anyway to install the cdylib library.
The use case is, I have a lua shared library, but I can not copy out the build assets. The library built in macos with file extension .dylib, in linux it is .so, but I only need the correct name with .so extension and install it into some path.


✨ feat(secrets): uses v2 secrets APIs

Description
This commit introduces support for V2 secrets
Demo

Depends

https://github.com/rapyuta-robotics/rapyuta_io/pull/307

@RomilShah Checks are failing.

@RomilShah Please ensure that the secrets work when used in a package manifest.

:tada: This PR is included in version 5.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Multi dialog fix

This PR does not actually fix anything yet and may not run
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

This issue was fixed with #2045 and #2231


CloseFingers() failing for ADA

robot.task_manipulation.prob.SendCommand('CloseFingers') returns the following error:
[grasperplanner.cpp:258 PlanPath] no objects in environment

@Stefanos19 Is this resolved?

@mkoval Yes, thanks!


Segmentation violation during monitoring of the run

The past day two runs failed with the same error message. It's unclear what is causing this error (whether it's a bug in our code or weird responses coming from the API), but we should try to fix it anyway.
Error message:
...
Run status: apply queued
Run status: applying
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x6d00d3]

goroutine 1 [running]:
github.com/kvrhdn/go-tfe-run.Run(0x803d80, 0xc00001c078, 0xc00002400c, 0x5a, 0xc00001e053, 0x6, 0xc0000200a0, 0x13, 0xc000012e10, 0x0, ...)
	/go/pkg/mod/github.com/kvrhdn/go-tfe-run@v0.1.0/tferun.go:188 +0x1483
main.main()
	/app/main.go:52 +0x31f

The runs on Terraform Cloud where not impact and completed successfully.
Occurences
Integration run 30 Aug. 10:21 UTC: https://github.com/kvrhdn/tfe-run/runs/1047358751?check_suite_focus=true#step:9:51
Integration run 30 Aug. 14:16 UTC: https://github.com/kvrhdn/tfe-run/runs/1047790479?check_suite_focus=true#step:9:51
Integration run 30 Aug, 23:15 UTC https://github.com/kvrhdn/tfe-run/runs/1048796083?check_suite_focus=true#step:9:51

Panic is caused by this line: https://github.com/kvrhdn/go-tfe-run/blob/main/tferun.go#L188
If getting the run fails, the response will most likely be nil causing a nil pointer dereference...
Fix:

don't use r.ID in the error message

It would be interesting to know why this occasionally fails and whether we can avoid this (by either retrying a couple of times or polling in a slower interval).

Latest commit should fix de nil pointer dereference.
But this behavior only occured if reading the run failed, so I'm keeping this issue open to monitor that.

Seems to be caused by a TLS handshake timeout: https://github.com/kvrhdn/tfe-run/runs/1049331222?check_suite_focus=true#step:9:51

This is occurring more often now
https://github.com/kvrhdn/tfe-run/runs/1052301933?check_suite_focus=true#step:9:52 read: connection reset by peer
https://github.com/kvrhdn/tfe-run/runs/1053206614?check_suite_focus=true#step:9:42 net/http: TLS handshake timeout
https://github.com/kvrhdn/tfe-run/runs/1053603288?check_suite_focus=true#step:9:51 net/http: TLS handshake timeout
https://github.com/kvrhdn/tfe-run/runs/1054421659?check_suite_focus=true#step:9:50 net/http: TLS handshake timeout

Runs are failing since 30 Aug. In the period between 30 Aug. and 05 Sept. 25 of 157 runs failed --> ~15%

Issue is fixed according to Hashicorp support.
Runs also haven't failed since last week friday.


Document the workaround for broken wagtailimages.Filter references in custom image migrations

Fixes #5067

LGTM. Much cleaner and better solution than the one I ended up doing :) 👍


Fix version error

Issue #8 , if available:
Description of changes:

Upgrade aws-cdk, constructs, cdk-nag to support nodejs 14.x end-of-support

issue #8

cdk-nag only allows the latest version, so change Python runtime 3.9 ->3.11

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@awskaran
hi, may you merge this PR?


⚠ Bofrost.be has degraded performance

In 2f5da8b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2000 ms

Resolved: Bofrost.be performance has improved in 5daa63e.


No test.py?

I was about to testing the pretrained model on the dataset that I am planning on using but didn't see a test..py available

You can use tools/infer.py

My bad! Sorry i thought the name would be test.py. Thanks! But another problem I have is when I run the infer.py with configuration file ade20k.yml and test mode segformer.b3.ade.pth. It returns size mismatch error. But segformer.b3.ade.pth is the default model that the file has.

size mismatch for decode_head.linear_pred.weight: copying a param with shape torch.Size([150, 768, 1, 1]) from checkpoint, the shape in current model is torch.Size([150, 256, 1, 1]).

SOLUTION: VARIANT need to be changed too.


Allow filtering of paths, axes, spindles.

Configuration should allow for explicit inclusion/exclusion of paths,axes,spindles from collection.

How would this work in case we don’t know the path/exes/spindles number before starting monitoring a particular machine? Will there be an option to monitor all paths/axes/spindles?

You would probably start it up one time to get all of the output and have an exclusion filter for path and path+spindle/axis.

l99.driver.fanuc.strategies.FanucMultiStrategy, fanuc:
      exclusions:
        1:               # placeholder for path 1, does not exclude path, does not exclude axes/spindles
        2: [ X, S ]    # exclude specific axes/spindles, still collects path specific data
        3: [ % ]       # exclude entire path, including all axes/spindles, path specific data is not collected

Actually, this makes more sense.
Excluding path data: 1:
Excluding axes/spindle data: 1:[X,S]
Excluding path and axes/spindle data: 1:[%]
l99.driver.fanuc.strategies.FanucMultiStrategy, fanuc:
      exclusions:
        1:               # path specific data is excluded, axes/spindle data is still collected
        2: [ X, S ]    # exclude specific axes/spindles, still collects path specific data
        3: [ % ]       # exclude entire path, including all axes/spindles, path specific data is not collected


create a service with exist images, in step "Configure Service", the "next" button unavailable

In GitLab by @yhua123 on Dec 7, 2017, 17:54

In GitLab by @sokril on Nov 8, 2019, 07:43
fixed with pr#763

In GitLab by @sokril on Nov 8, 2019, 08:16
closed

In GitLab by @sokril on Nov 8, 2019, 08:16
assigned to @sokril


Nim extension raise an error on latest devel

On opening Onivim, I get an error :
error activating extension nimsaem.nimvscode: Activating extension 'nimsaem.nimvscod' failed : ENOENT: no such file or directory, mkdir /home/rcaillaud/.config/oni2/workspace/28499f71/nimsaem.nimvscode
I tried un-installing and re-installing the extension without success.
This happens with Onivim 0.5.9 nightly - dde00de0

Thanks for logging the issue, @Clonkk - I'm able to reproduce, working on a fix in #3709


Breadcrumbs.Item with Next.js Link component gives activeClassName warning

Description
When using Breadcrumbs.Item with Next.js and next/link, the following warning occurs:
Warning: React does not recognize the `activeClassName` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `activeclassname` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Creating an adapted version of Breadcrumbs.Item resolves the issue:
const BreadcrumbsItem = styled.a.attrs(props => ({
    className: classnames(props.selected && SELECTED_CLASS, props.className),
    'aria-current': props.selected ? 'page' : null,
    ...(typeof props.to === 'string' ? { activeClassName: 'selected' } : {}),
}))
...

I'm not sure if this is the desired fix, however it would be good if the issue is resolved, or that my usage is corrected if invalid.
Steps to reproduce

Create a test page using Primer React 35.18.0 + Next.js 13.1.5:

import { Breadcrumbs } from '@primer/react';
import Link from 'next/link';

export default function TestPage() {
    return (
        <Breadcrumbs>
            <Breadcrumbs.Item
                as={Link}
                href={'/target'}
            >
                Target
            </Breadcrumbs.Item>
        </Breadcrumbs>
    );
}

Version
35.18.0
Browser
Firefox

Hey @lesliecdubs, I would like to contribute to this issue. Can you explain a bit more about this please?

Hi @imrishabh18, thanks for your interest in contributing!
@broccolinisoup is a Primer React maintainer who is our first responder this week. Armagan, could you take a look at this issue and see if you can provide some breadcrumbs for next steps so @imrishabh18 could work on this?

Sure @lesliecdubs! Added to my to-do list. I'll make sure to respond with some more info this week!

Hi @imrishabh18 👋🏻 Thanks for your interest in contributing to Primer/react!
We have an examples folder in the primer/react repo and under that folder, very minimal Next.js app that we use as a playground for Next.js. You can use this app to replicate the issue.
Make sure you have updated the package.json file with the Next.js version that was mentioned in the issue description (v13.1.5) to have the most accurate environment. Please install the packages (npm install in the examples/nextjs folder and npm run develop to start your dev environment)
As it is suggested in the issue, please create a test.js file under the pages folder and copy the content (TestPage component in the description) and go to the url <your-localhost>/test and you should be able to see the warning that was mentioned on the console as well as on your terminal logs. Let us know if you need more support on this 🙌🏻  Thanks!

Hey @imrishabh18 👋🏻 I realised that the same issue occurs in multiple components and I pushed a fix for it. I assigned the issue myself and will be closed soon. Please let me know if you have any concerns! Apologise if I caused any inconveniences! Thank you 🙏🏻

Hi @imrishabh18 👋🏻  I realised this behaviour is happening in multiple components and created an issue for that and pushed a PR. I apologise if you have already started working on that. Please let me know if you have any concerns and/or if you are still keen to contribute to Primer, we can help you grab some good first issue components!


[Godot 4.0] Spatial node type is still being used in importer settings

Godot version
v4.0.rc1.mono.official [8843d9ad3]
System information
Windows 10
Issue description
I noticed this when importing some models, but the importer still uses Spatial as the root 3D node type.

Spatial doesn't exist in the search bar since it was renamed to Node3D a while ago.
However, due to the importer expecting Spatial, it's impossible to revert the root type to Node3D.
https://user-images.githubusercontent.com/46894189/218132855-c1e21469-1da7-4fcf-9872-f0681ba24fa5.mp4
Steps to reproduce

Import any 3D model.
Attempt to change the root type to "Node3D".

Minimal reproduction project
N/A

That's interesting, I don't find any reference to "spatial" or "Spatial" in relevant code. The default value seems to be "Node3D".
Maybe those are older files which were already imported / had their .import files generated before the Spatial -> Node3D rename? Can you reproduce the issue in a new project?

After some testing on a new project, it only occurs on models that were imported on the 3.x branch, and deleting the individual .import files forces a re-import of the model and fixes the root type to be Node3D.
But when I tried doing this on my personal project it didn't fix anything, and for some reason even the new models were being imported as a Spatial.
After more digging around, the issue seems to come from this line in project.godot:
[importer_defaults]

scene={
...
"nodes/root_type": "Spatial",
...
}

I must have upgraded my project to 4.0 before the rename happened, so this wasn't changed. After replacing Spatial with Node3D, things aren't being imported as Spatials anymore! 🎉🎉🎉
However, the second half of the bug where you can't change the root type to Node3D from the editor still exists. It needs to be done by manually changed by setting nodes/root_type="Node3D" in the .import file from an external text editor.
Updated reproduction steps:

Create a new project
Import a 3d model
Change the root type to any other type of node (i.e. StaticBody3D)
Attempt to change the root type back to Node3D

Video:
https://user-images.githubusercontent.com/46894189/218150704-dcf8f1d4-9ae6-4d02-b90d-be58b6f3d9d2.mp4

Not sure what changed, but this seems to be fixed as of v4.0.stable.mono.official [92bee43ad].


TestVisibilitySplit with istio is not stable

TestVisibilitySplit with istio often fails.
Here is some information:

example log 1, log 2
The issue is that this HTTPRouteFilter does not set the header so it shows 0% of request received.
It happens with conformance test only. e2e with controller does not have the issue.
TestPercentage, which is the same test but just public access, does not cause any error.
gateway-api v0.4.0 with istio-1.13-alpha.8aea949750d59a51b322d36ec7cac2c60cea5ac8 also has this issue.

/remove-lifecycle stale

Closing - test is stable as of Apr 2nd 2024 - see test grid

https://testgrid.k8s.io/r/knative-own-testgrid/net-gateway-api#continuous-istio


Reparameterizing model doesn't propagate to model members dictionaries

A BOGO special on the bugs uncovered by unit test refactors (I stumbled onto this when working through some problems related to #366 ). When reparameterizing a model using set_all_parameterizations this change in parameterization doesn't propagate to the default_param attribute of the model's various contained OrderedMemberDict objects (i.e. the values of model.preps, model.operations etc.). This attribute controls the casting behavior that is invoked when directly setting the value of an entry in an OrderedMemberDict when setting this value to a numpy array. E.g. if the value of default_param for this OrderedMemberDict is 'full TP' then directly setting the value of model.operations with an array will cast this array to a FullTPOp.
Here is a minimal working demonstration.
from pygsti.modelpacks import smq1Q_XY
test_model = smq1Q_XY.target_model('full TP')
print(test_model.preps.default_param)
test_model.set_all_parameterizations('full')
print(test_model.preps.default_param)

The above prints 'full TP' both times.
This feels like unexpected behavior to me, and I'd expect this change in parameterizations to propagate through but I'd be interested in hearing if the other devs have thoughts on this (e.g. are there any places where I might break things by changing this behavior).
Environment (please complete the following information):

pyGSTi version: develop
python version 3.9
OS Windows 11

I suspect that this is actually the reason for #365 also. So a BOGO on bug fixes when I fix that!

Closed with release of 0.9.12.


Prepare comparison plots for "image by step" plots

main  <=  this <= #4372

updates comparison plot types and collection, allowing multiple images per plot
adds a "image by step" webview fixture for testing
breaks up ComparisonTableCell component

Fixes #1640

@julieg18 I've tried updating train.py in the demo project to log an image per step but it isn't getting picked up by the extension, is this expected? Does there need to be updates made to DVCLive/DVC to get this to work?

Converting this to a draft since I'm going to apply https://github.com/iterative/vscode-dvc/pull/4372#discussion_r1278620296.


Trigger mood lighting at sunset

Automation
Trigger

Sunset

Action

Turn on Yumi lamp #FF00FF
Turn on Potter lamp #FF00FF
Turn on Runner lights #15f4ee

Low value.


后来，写了 pd，一直自己用。不见得更好，而是看这里未再更新过，回馈一下社区，给大家多一种选择。
https://github.com/lifenjoiner/pd
特性：

专注做一个连接调度器，上级代理要自备；
可自动选择回应最快的 IP；
自动生成可用性评分，可用性低时切换用代理；
支持 socks4a/socks5/http 协议；
支持预设“直连/被封”列表。

COW, used it for a while, it was pretty good, just didn't update anymore, and I even had modified it myself. Later, I wrote pd and have been using it myself. Not saying it's better, but since here is no updates for a long time, I'd like to feed back to the community, to provide one more option.
https://github.com/lifenjoiner/pd
Features:

Dedicate to be a dispatcher, prepare the upstream proxies yourself,
May automatically choose the fatest responsed IP,
Automatically yield the availability score, and proxy it if with poor availability,
Support protocols socks4a/socks5/http,
Support predefined "direct/blocked" list files.

都要忘了曾经用这个了，已🌟

点个赞，一直觉得cow是最简单无感的，可惜不更新了，现在的加密方法很多也不支持了

这个pd不错，谢谢


Clear storage during genesis block initialization

What is this pull request?

Add clearing storage before genesis block insertion
Allow running iroha if it was already initialized using genesis block

Why do you implement it? Why do we need this pull request?
Lack of clearing storage before genesis block insertion leads to error when irohad has been launched before.
How to use the features provided in the pull request?
To overcome the issue now storage is cleared out when genesis block flag was passed into irohad. If not irohad launches from state it achieved during previous execution.
Details/Features
To drop storage irohad class was updated with method dropStorage, which uses TestStorage to drop existing storage.

Codecov Report

Merging #645 into develop will decrease coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop     #645      +/-   ##
===========================================
- Coverage    43.45%   43.44%   -0.02%
===========================================
  Files          301      301
  Lines        12022    12025       +3
  Branches      6600     6601       +1
===========================================
  Hits          5224     5224
- Misses         724      726       +2
- Partials      6074     6075       +1

Impacted Files
Coverage Δ

irohad/main/application.cpp
54.38% <0%> (-1.47%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1af59cf...017c3ef. Read the comment docs.


Paper question

After reading some papers in objects detection from remote sensing images i found that in the Neck part to propagate context information of the object dilated convolution is used and to propagate semantic information deformable convolution is used , but in your paper you used deformable convolution to extract context information in buttom up pathway and dilated convolution to extract semantic information top down pathway, can you explain this point to me?

The purpose of using DCN is to align the classification and localization features instead of extracting contextual features. Because the features of the localization and classification branches focus on different spatially sensitive regions, we hope to use deformable convolution to align the features of different tasks in the head components. The use and discussion of this part of the work are sketchy. This issue is further studied and discussed in our follow-up work. https://arxiv.org/abs/2209.02200
The purpose of using dilated convolution is to expand the receptive field. The scale differences of objects in remote sensing images are very large, which leads to the fact that the receptive fields of different branches of FPN cannot adapt to such scale differences of objects. Therefore, dilated convolutions with different expansion rates are designed to extract features through filters of different window sizes and fuse these features to alleviate the above problems.
Thank you.

After reading some papers in objects detection from remote sensing images i found that in the Neck part to propagate context information of the object dilated convolution is used and to propagate semantic information deformable convolution is used , but in your paper you used deformable convolution to extract context information in buttom up pathway and dilated convolution to extract semantic information top down pathway, can you explain this point to me?

The purpose of using DCN is to align the classification and localization features instead of extracting contextual features. Because the features of the localization and classification branches focus on different spatially sensitive regions, we hope to use deformable convolution to align the features of different tasks in the head components. The use and discussion of this part of the work are sketchy. This issue is further studied and discussed in our follow-up work. https://arxiv.org/abs/2209.02200
The purpose of using dilated convolution is to expand the receptive field. The scale differences of objects in remote sensing images are very large, which leads to the fact that the receptive fields of different branches of FPN cannot adapt to such scale differences of objects. Therefore, dilated convolutions with different expansion rates are designed to extract features through filters of different window sizes and fuse these features to alleviate the above problems.
Thank you.

Thank you , but sir in which part of  your framwerok you extract contextual information  ?

New Feature Fusion Pathway of MSR-FPN: As shown
in Fig. 5(b), in order to propagate the high-resolution features
from the shallower layers to the deeper layers, a bottom-up
branch (green blocks and their connected path) is added, which
allows each branch to fully fuse multiscale context features.
in your paper you mentionned you said that you extract multiscale context features you used DCN v1 and to align classification and localisation features you used DCN v2.
my question is why did you used DCN v1 to extract context information in the Neck ?

New Feature Fusion Pathway of MSR-FPN: As shown in Fig. 5(b), in order to propagate the high-resolution features from the shallower layers to the deeper layers, a bottom-up branch (green blocks and their connected path) is added, which allows each branch to fully fuse multiscale context features. in your paper you mentionned you said that you extract multiscale context features you used DCN v1 and to align classification and localisation features you used DCN v2. my question is why did you used DCN v1 to extract context information in the Neck ?

OK. I see. Since the downsampling process will lead to the offset of feature positions, we use DCN for downsampling and hope to correct this offset. Thanks.


(bugfix: routing) Issues with routing after refreshing the page.

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior
When you navigate to a mocked product page (other than 1001) and click refresh, you will be shown a 404 page. This happens because mocked products don't use fixed ids.
Expected behavior
When you navigate to a page and click refresh, you should be able to refresh and see the same thing.
Minimal reproduction of the problem with instructions

Open Demo application
Click a product (other than the first one)
Click refresh

What is the motivation / use case for changing the behavior?
When testing the MockApp should feel as if it's just using a hyper-fast API.

Fixed by #73


Update verification tests to verify the contract of bcde-manifest.json

With current refactoring in place to migrate from Newtonsoft.Json to System.Test.Json (see #231), we need to verify that bcde-manifest.json does not change its format.
One potential issue is the switching of naming from camcelCase to PascalCase (the default for System.Text.Json)
We can update the Verification tests CI step to also include a quick diff of the manifest, but we may need to sort the keys of the manifest using a tool like jq.

We discussed this in #573 about adding a JSON schema, which would eliminate the need for these tests.


added posibility to chose target catalog for QT

if no 2nd parameter passed, qt would be install in current directory ($PWD).
usage example:
bash install-qt 5.9.5 /usr/local

Hi @van9konst ,
Looks good. Thx for submitting the patch.


Hints on extending with one additional service

Hey Miguel,
I would like to extend the mircoflack chat app on one additional service named game.
This service should have access to the users and messages db.
I guess I have two options:

Make users and messages a wheel and install that with the requirements of the game service, such that I can do  inside app.py of game service

from microflack_users.app import User

Use the api to get all relevant information from users and messages db

in this case I think I have to worry about tokens etc. for a secure access?
How can I make an api endpoint that is only access-able with an internal token?
Can you give a short code example how to do that in a secure way?

       ip='http://'+os.environ["HOST_IP_ADDRESS"]
        r = requests.get(ip+'/api/users')

I guess regarding the microservice architecture the second option is preferable.
What would you advise?

Sharing the database of a microservice with another microservice is really against the microservice principles. The correct way to do this when following the microservices model is to have your new service use the APIs of the users and messages services to work with those entities.


Enable file system watcher on mobile

Let's see if this works now

Please can this be tested on Q1!

Please can this be tested on Q1!

I don't currently have access to a Quest 1. Do you?

I can test Q1 tonight, just please tell me what specifically to look out for

This fixes the bug on Quest 3 at least. @mikeage - I think we just need to test that it doesn't make anything worse on Quest 1.
Try using the Media Library browser and see if it does anything weird.
If it's working, then you should be able to add new images into the media library with Open Brush running and see them appear as previews in the Media Library panel instantly.
If it's not working but not breaking stuff then they just won't appear.
If it's breaking stuff then... dunno. Weird stuff will happen?

Works on Q1. Pushing or deleting an image immediately brings up the "loading images" screen and then the new one is seen automatically.
@mikeskydev , do we need to test other platforms, Pico, etc.? Or did you ask about Q1 because that's the only one you don't have.

I was mainly concerned about the performance implications of the watcher, but that sounds fine!

it didn't seem to cause anything  (assuming it's inotify under the hood, it should be zero impact)

I'm approving, but let's not merge until I fix the DMG build

this is ready to go, as soon as the build on main finishes


investigate type indexing [1D]

@cmaumet can you provide more ressource for this ?

Yes! Can you start looking into: https://www.hal.inserm.fr/inserm-01972649/document (for NIDM) and also the JSON-LD specification itself at: https://w3c.github.io/json-ld-syntax/#node-type-indexing


Readthis as a store for Rack::Cache?

Hello,
I was wondering if it's possible to use readthis as a store for Rack::Cache ? I'm aware of the redis-rack-cache gem, but wasn't sure if this would play nice with readthis. Thanks in advance for any guidance!

I'm fairly positive that readthis won't work with redis-rack-cache, purely because that has a hard dependency on redis-store. However, I think it would be extremely simple to port it. All of my projects use Fastly or another full blown CDN, so I don't have a use case to test with. If you're interesting in starting the project I'd be happy to advise or help out though.

My comment from two weeks ago still stands, I'm happy to advise. However, this won't be part of Readthis so I'm going to close this issue.

Hi,
I've been working on migrating an app I work on to use readthis, and I would really like to be able to use it as a store for Rack::Cache, too. I'm game for porting redis-rack-cache (readthis-rack-cache?), but if you wouldn't mind pointing me in the right direction, I'd be very grateful.
Do you think it's worth implementing something like redis-store's API (which provides a factory for setting up the client, amongst other things)? Or simpler/better to just instance the client within the readthis-rack-cache code directly?
Any thoughts or comments would be great - thanks!


rest call to download zip file, downloads corrupted zip file

Hi,
Rest call has now problem downloading zip file in browser URL.
With swagger-ui, downloading zip file with extra underscore appended to filename in prefix and suffix (of extension)  _XXXApplication-1524222675972.zip_   and its corrupt.   Can you please address this issue?
Response header as following:
{
"pragma": "no-cache",
"date": "Fri, 20 Apr 2018 11:11:21 GMT",
"access-control-allow-headers": "Content-Type, attachment",
"content-type": "application/octet-stream",
"access-control-allow-origin": "*",
"cache-control": "no-cache, no-store, must-revalidate",
"content-disposition": "attachment; filename="XXXApplication-1524222675972.zip"",
"attachment": "XXXApplication-1524222675972.zip",
"content-length": "6415",
"expires": "Thu, 01 Jan 1970 00:00:00 GMT"
}
swagger dependencies:
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.8.0</version>
</dependency>
Please let me know if requires more details.
Thanks

+1
While making REST API call to download file, file is always pre-fixed and suffixed with _ and gets corrupted.


Envoy proxy on GCP Cloud Run shows 100s of requests forward to GRPC service but none getting through

Title: Cannot successfully set up Envoy on Google Cloud Run to forward grpc-web requests to backend GRPC service
Description:
Hi all, thanks for the help in advance. I've also posted this on StackOverflow here.
I've got a backend GRPC service running on Google Cloud Run which I'm able to interact with just fine using another GRPC client. I now need to set up an Envoy proxy in front of it so that I can hit the backend with grpc-web requests. I've got this whole setup working fine on my local machine but am having a really hard time configuring it on Google Cloud.
The process I'm taking is to use an envoy.yaml file, along with Docker, to spin up a new Cloud Run service for Envoy. That service is supposed to accept requests from web browsers over SSL and forward them to the backend service (right now I'm just using the public URL of the GRPC backend server).
I'm seeing some really strange behavior in the Envoy service's logs. First, whenever Envoy gets a request, it seems like there are hundreds of requests being sent to the backend service, some of which have a 429 response, but most of which have a 200 response (see the image here) log file from Envoy service showing hundreds of requests being sent to the backend service.
The strange part is that none of these requests make it to the backend server, so I'm not sure how the 200 responses are being generated, or even why there are so many requests.
Here are the details of my setup and config files. Is there anyone out there that might be able to provide some guidance? I'm a relatively newbie with Envoy and am having trouble figuring out what to do from here, thanks so much!
Details of my setup:
Backend service
Running on a GRPC Cloud Run service, standard access at the instance URL running on port 8080 but externally available on port 443. The standard instance URL is https://api-service-rbuazbm3ua-uk.a.run.app/ but I've also tried mapping it to api-service.locusive.com, neither one does the trick.
envoy.yaml

static_resources:
  listeners:
    - name: listener_0
      address:
        socket_address: { address: <IP_ADDRESS>, port_value: 8080 }
      filter_chains:
        - filters:
            - name: envoy.filters.network.http_connection_manager
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
                codec_type: auto
                stat_prefix: ingress_http
                route_config:
                  name: local_route
                  virtual_hosts:
                    - name: local_service
                      domains: ["*"]
                      routes:
                        - match: { prefix: "/" }
                          route:
                            cluster: api_service
                            max_grpc_timeout: 60s
                            retry_policy:
                              retry_on: connect-failure,refused-stream,unavailable,cancelled
                              num_retries: 3
                              per_try_timeout: 10s
                      cors:
                        allow_origin_string_match:
                          - prefix: "*"
                        allow_methods: GET, PUT, DELETE, POST, OPTIONS
                        allow_headers: accept,access-control-allow-origin,origin,accept-encoding,accept-language,connection,authorization,keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,custom-header-1,x-accept-content,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout
                        max_age: "1728000"
                        expose_headers: custom-header-1,grpc-status,grpc-message,grpc-status-details-bin,authorization
                http_filters:
                  - name: envoy.filters.http.grpc_web
                    typed_config:
                      "@type": type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
                  - name: envoy.filters.http.cors
                    typed_config:
                      "@type": type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
                  - name: envoy.filters.http.router
                    typed_config:
                      "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router

  clusters:
    - name: api_service
      connect_timeout: 50s
      type: logical_dns
      lb_policy: round_robin
      http2_protocol_options: {}
      transport_socket:
        name: envoy.transport_sockets.tls
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
          common_tls_context:
            tls_params:
              tls_minimum_protocol_version: TLSv1_2
      load_assignment:
        cluster_name: api_service
        endpoints:
          - lb_endpoints:
              - endpoint:
                  address:
                    socket_address:
                      address: https://api-service-rbuazbm3ua-uk.a.run.app
                      port_value: 443

Docker file
FROM envoyproxy/envoy:v1.26-latest
COPY envoy.yaml /etc/envoy/envoy.yaml
EXPOSE 8080
CMD /usr/local/bin/envoy -c /etc/envoy/envoy.yaml -l off --component-log-level upstream:debug,connection:debug

Deploy command
gcloud builds submit --tag gcr.io/locusive/envoy-for-api-service
gcloud run deploy envoy-for-api-service --image gcr.io/locusive/envoy-for-api-service --platform managed --region=us-east4 --quiet --set-env-vars=ENVOY_UID=0 --min-instances=1 --max-instances=1 --memory=1Gi --cpu=1 --timeout=10m

Thanks again!

How did you configure your envoy proxy to call the grpc service using SSL/TLS? My whole grpc-web+envoy+grpc platform works fine locally but not on Cloud Run. Creating a custom client locally that calls my grpc Cloud Run service works as long as I include the TLS handshake, so I am trying to figure out how I can "tell envoy" to do the same.


[spi_device] Upload Command Payload Buffer Address

@eunchan What is the starting offset in the spi_device buffer for 256B of Upload buffer data?

@eunchan how configurable Mailbox address impacts the offset of Upload buffer?

the Mailbox Address CSR is for the host address. the upload buffer offset is for the internal memory mapped address. So, changing mailbox address CSR will divert the read command address to the mailbox space when the address is in mailbox space.

Just one more question, if we configure MAILBOX_ADDR_CSR to some value, any host issued address between:
MAILBOX_ADDR_CSR:MAILBOX_ADDR_CSR+1kB will read from fixed Mailbox space inside buffer?
So if host address is MAILBOX_ADDR_CSR+4 will it read from offset 0x804 from buffer?

Yes. That is what I expect.

On Apr 14, 2022, at 1:33 AM, kosta-kojdic @.***> wrote:
Just one more question, if we configure MAILBOX_ADDR_CSR to some value, any host issued address between:
MAILBOX_ADDR_CSR:MAILBOX_ADDR_CSR+1kB will read from fixed Mailbox space inside buffer?
So if host address is MAILBOX_ADDR_CSR+4 will it read from offset 0x804 from buffer?
—
Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/12059#issuecomment-1098851592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJDG3QL24ROZR2LH4KAMETVE7J5NANCNFSM5TF2G5IA.
You are receiving this because you were mentioned.


EmojiSearch sample needs a TextFieldState type

To defend against racy edits.

Is the idea here that a TextFieldState would be used in the schema instead of a String so that the same state is used throughout the loop (and there's no race where the host ui updates using the old state that it is holding before receiving the new state)?

I took an initial (naive) stab at this, by using a similar implementation to TextController from workflow. It doesn't work, and I imagine the reason is because the updates to the value on the JS side don't propagate through the MutableStateFlow to the Android side.
Is a different approach needed, or is there some way to make the update cross over to Android?
I'll push a branch with my WIP soon

We have a copy of this internally that works, at least for view-based widgets which is what we're currently using. I don't think we've ever looked at Workflow or what it does (and I don't quite understand why it has this issue but that's besides the point). I'm not sure how involved it would be to copy it out.

Unless I'm misunderstanding what this issue is for, I didn't see this happen for view-based widgets at all; just the Compose UI one.

And just like that, I started seeing issues with the view based widgets :sweat_smile:

Yeah it should happen for both.

Is there any easy way to summarize the internal solution so that I can go running with it, or is it better until you guys figure out how to move it over?

@eygraber Here's how we track the state internally:
@Serializable
data class TextFieldState(
  val text: String = "",
  val selectionStart: Int = 0,
  val selectionEnd: Int = 0,
  val userEditCount: Long = 0L,
)

Basically we only update the text field's state if newState.userEditCount > oldState.userEditCount. We also need handle text state updates on treehouseDispatchers.zipline.

Started something in https://github.com/eygraber/redwood/tree/380 but ran out of gas in the middle :sleeping:
I have an open question about how to handle updates from TextField. My guess is that the second approach is correct because otherwise we mess with TextField state, but it does lead to two sources of truth.

We also need handle text state updates on treehouseDispatchers.zipline

I'm not familiar enough with the Treehouse system to how that should work. Should that be happening in ComposeUiTextInput or RealEmojiSearchPresenter?

@eygraber I think you were on the right track! I pulled your changes into this PR with the remaining bits from our internal implementation.


x280 Monterey - iPhone internet sharing does not work over USB-C (only via USB ports)

x280 Monterey - iPhone internet sharing does not work over both USB-C ports (only via USB ports)

For your inspiration  here is the repo with working USB-C https://github.com/Lost-Entrepreneur439/thinkpad-t480s-hackintosh
But that one does not work with Intel Wi-Fi without HeliPort


Clean up basis set schema

Description
This removes some of the redundant prefixes, and in general harmonizes the schema with changes done to the BSE over the last few months.
The basis set schema is now split into its own file, with definitions still residing (for now) in the definitions file.
No changes are made to the usual way of specifying a basis set via name.
Once this is merged, I can make the converter for the BSE to output the QCSchema format (https://github.com/MolSSI-BSE/basis_set_exchange/issues/44)
Status

[X] Ready to go

lgtm except for the atom/element_basis question. Other thing I meant to ask is if this'd be a good schema to do in pydantic as source-of-truth and let it generate the schema.


ymca360.org site request

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I'm running youtube-dl version 2020.03.24
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that none of provided URLs violate any copyrights
[X] I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Single video: https://ymca360.org/on-demand#/category/22/videos/94
Single video: https://ymca360.org/on-demand#/category/85/videos/102

Description
From their FAQ:
"YMCA 360 is an on-demand video platform for our Y community. We’re bringing you group exercise classes, youth sports classes, wellbeing classes and more to serve you wherever you are. Whether you are at home or on the road, take the Y with you with your favorite classes, instructors and more."
No credentials are required to view these videos.

Playlist: https://ymca360.org/on-demand#/category/22
Multiple Playlists: https://ymca360.org/on-demand#/
Ymca360 videos are actually hosted in wistia

I can successfully download the videos from wistia by right-clicking on the embedded video and selecting "copy link and thumbnail". The first link in that text ends with

?wvideo=[video-code]">

and that video code can be used to download the video from "https://fast.wistia.net/embed/iframe/[video-code]". So for example youtube-dl -f "hd_mp4-720p" "https://fast.wistia.net/embed/iframe/9ilsnio03s" will download the video found on "https://ymca360.org/on-demand/category/22/videos/128?wvideo=9ilsnio03s".


Image not drawn correctly.

I write a simple program in c++ to quickly dive into Blaze. But the image I got is broken.
Here is how it looks like:

I guess something was wrong with the multi-threading, but I can't figure out why.
Further information:
Cmakelists:

Load vectorimage:
// static VectorImage g_vectorImage;
g_vectorImage.Parse(reinterpret_cast<const uint8 *>(buffer), size);

Update image:
int fw, fh;
glfwGetFramebufferSize(window, &fw, &fh); // Fill the window.
g_image.UpdateSize({fw, fh});
g_image.ClearImage();
g_image.DrawImage(g_vectorImage, Matrix::Identity);

I use stbi_write_png to save the output:
// static DestinationImage<TileDescriptor_16x8> g_image;
const int imgw = g_image.GetImageWidth();
const int imgh = g_image.GetImageHeight();
const uint8_t *data = g_image.GetImageData();

stbi_write_png("Tiger_out.png", imgw, imgh, 4, data, 4 * imgw);

@THZthz Which compiler and OS do you use?

gcc 13.1.0 windows


Access denied to public/martindevans

On a fresh install of keybase FS on windows I have access denied to write to my own directory.

You can see here I right click (it takes a while to pop up. In fact explorer is "not responding" for second or two). I create a new text file which pops up a box telling me I need admin permission (which I grant), and then it denies me again.
After this failure I tried dragging a file from another location into K:/public/martindevans and this worked fine (you can see the file here). I edited this file (in the keybase directory) and that worked fine too, so it's just trying to create new files via right click which is a problem.
Edit:
I just tried this process again (right click, new file) and it worked totally fine! I tried deleting all files in the folder, guessing perhaps it's a problem when the directory is empty, but that worked fine too.

Hi @martindevans -- can you please do a keybase log send from the Keybase CMD app and let us know the log ID so we can investigate?  Thanks!

I have done so, here's the response from keybase:
- WARNING error opening log "C:\\Users\\Martin\\AppData\\Roaming\\Keybase\\keybase.start.log": open C:\Users\Martin\AppData\Roaming\Keybase\keybase.start.log: The system cannot find the file specified.

------------
Success! Your log ID is:

  d6232a18d4855fd809edf31c

It looks like you were hitting the same server issue described in #3141.  It should be resolved now.  Please close this issue if everything's working for you still.  Thanks, and sorry for the inconvenience.


Get attempt for consumed msg

By adding attempt field to Message struct make sense to split Message to MessageIncoming which keeps mechanisms how to handle msg and MessageOutgoing which works as payload definition.

LGTM, the Message interface was a relict of the past.


Games do not stop when Mir window closed

To reproduce:

Open Mircade on X (haven't tested any other way of running it, tried both current stable and the version I built from the core20 branch)
Run a game (tested with Neverputt, Neverball and Starfighter)
Close the Mir-on-X window

Expected:

Window closes and Mircade stops

Actual:

Window closes but the game's process runs indefinitely and consumes a considerable amount of CPU

I'd guess this is because the games ignore a close request and Mir doesn't follow that with a SIGKILL. That is reasonable most of the time, but maybe it should kill things in a shutdown scenario.


show how transactions do not use dynamic repos

In reference to https://github.com/elixir-ecto/ecto/issues/2961
This provides a test that shows how transactions do not respect the setting of dynamic repos.

Thanks for the failing test case, it made it much easier to reproduce and fix it!


Added to registry themes

You really nailed this theme, I wish I added it earlier.
https://registry.jsonresume.org/thomasdavis?theme=actual
The PDF support is off the charts, what's the magic trick?!?!

Hello @thomasdavis many thanks for your words!
I'm planning to provide full support of the v1.0.0 schema in the next version of the theme.
For the PDF export I just did some CSS! For me, the puppeteer library worked as expected.


The bot thinks slowly

The bot takes a long time to think after the question! How can I reduce this time?

Openai maybe limits the speed. It's not a issue of this repo.

Problem solved!


Online Quiz

There should be a template for sorts of online quiz requirements. Then dive into a specific direction, such as the driver-license quiz or any academic quiz. Meanwhile, how to compose the data or find out the data API from other sources is quite a challenge for this kind of website. At the end of the day, content is king, but the valuable data is the essential content right here.
So, for summarizing this sort of SaaS, there are two crucial things: one is template building, and another is data acquirement.


DepositAddresses method not working

DepositAddresses throws an error

"EFunding:No funding method"

`kraken.api('DepositAddresses', { "new": 'true' }, function (error, data) {
    if (error) {
        console.log(error);
    }
    else {
        console.log(data.result);
        res.status(200).json({
            message: data.result
        });

    }
});`

How do I create a deposit address?

Ran into this too, the solution is to include parameter asset:
kraken.api('DepositAddresses', { asset: 'BTC' }, ...)
and additionally we found out that also parameter method must be included:
kraken.api('DepositAddresses', { asset: 'BTC', method: 'Bitcoin' }, ...)
We didn't find documentation for which methods are supported for which coins. We had to manually fetch methods from DepositMethods endpoint (which must be done one by one for each asset). Here's our list to save you the pain:
const KRAKEN_DEPOSIT_METHODS = {
  BTC: 'Bitcoin',
  XRP: 'Ripple XRP',
  ETH: 'Ether (Hex)',
  BCH: 'Bitcoin Cash',
  XLM: 'Stellar XLM',
  EOS: 'EOS',
  LTC: 'Litecoin',
  ADA: 'ADA',
  XMR: 'Monero',
  DASH: 'Dash',
  // ETC: '', // not available
  XTZ: 'XTZ',
  ZEC: 'Zcash (Transparent)',
  QTUM: 'QTUM',
  REP: 'REP',
  GNO: 'GNO',
  BAT: 'BAT',
  ICX: 'Icon',
  WAVES: 'Waves',
  DAI: 'Dai',
  LINK: 'Link',
};

Lastly, the parameter new should have values 1 or 0, value false results in actually creating a new address. Not sure what "false" (as string) do, boolean value false doesn't behave like expected.

I am also facing this issue. I tried much but its saying "EFunding:No funding method". So please help me for this if you can .
@martin-cech


Single-header version

This is a really nice library. When deploying though it was a little bit more work than expected, given the library size. One possibility would be to have a single-header version of the library.
For example, CLI11 ( https://github.com/CLIUtils/CLI11) of JSON for modern C++ (https://github.com/nlohmann/json) follow this approach.
The single-header version can be generated with an amalgamation script. But, by looking at your code, it seems that it may be easier to use a single file, since many of the file have only a few lines of code.
If there is interest, but not enough development time, I would be happy to try to produce the one-file version by manually merging the existing code.

There is certainly interest. I'll take a crack at this soon.

You can find the single, merged header file in single_include/indicators.


[STORM-1111] - Fix Validation for lots of different configs

unrelated kafka messaging test failed in travis

Just two minor nits and then I am +1 on this.

@revans2 thanks for your review! I have modified the PR to address your comments

@HeartSaVioR thanks for your review.  I just modified the PR to address your comments

@jerrypeng Nice, +1.


Memory leak in TreeView

Reproduction link
https://codesandbox.io/s/exciting-breeze-50lhc?file=/src/app/app.component.ts
Steps to reproduce

click the button for like 20 times
take a memory heap snapshots
search detached in the class filter

What is expected?

just a handful of detached elements

What is actually happening?

you can see thousands of detached elements

Environment
Info

ng-zorro-antd
11.2.0

Browser
Chrome latest

Here's something interesting.
With the same code in https://stackblitz.com/edit/angular-l5j6xm, there's no memory leak.
just a guess, the only difference is that stackblitz is not using ivy

Duplicated with #6475


Drop mediator's description field is now mandatory in v1.0.0

Description:

$title
It can be made it as optional as earlier.

Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

The latest release v1.0.2 has resolved the issue. Please reopen if the problem persists.


parametrizing input data in all remaining corgi ui tests

@m1yag1 I realised that more of the ui tests input data can be parametrised, so I changed the remaining tests. It is 5 files but as they all have the same changes, I did them all in 1 commit.


selectOnClose scrolls up after selection

Tested with version 4.0.5
https://select2.org/dropdown#forcing-the-dropdown-to-remain-open-after-selection
With a multiselect it stays open but scrolls back up after making a selection. Now I need to scrollback again to the position I made the selection if I want to select a second one.

Its probably an issue with the library, I tried it with multi select and it works like the order of <option> in your HTML page. it doesn't follow the user selection order.

Duplicate of https://github.com/select2/select2/issues/4417.


No Snackbar provided when used in a plugin

Hello
sse.client.ts
import { useServerStore } from "@/stores/server";

export default defineNuxtPlugin({
  name: "my-plugin",
  async setup(nuxtApp) {},
  hooks: {
    "app:created"() {
      const store = useServerStore();

      const evtSource = new EventSource(store.host + "/foo", {
        withCredentials: true,
      });

      evtSource.onmessage = (event) => {
        const snackbar = useSnackbar();

        snackbar.add({
          type: "success",
          text: "log received",
        });
      };
    },
  },
});

In this code, a notification should be triggered each time I got a message from evtSource (what can happens in any time during my app running).
snackbar works in other places in my vues files, but here in this plugin, I can't send notifications because I got this error : Uncaught Error: No Snackbar provided!
Any idea ? thanks

Hey this is something previously discussed in #4.
Due to the nature of how snackbar works it can't be used within composable or plugins.
This probably applies to other snackbar packages too. Atleast I have tried primevue and I can't do similar things as you mention with their toast.

Hmm, I'll take a look into this asap. Maybe turn that into a module too. Looks good.


allow interpolation of lattices

Extremely minimal addition to the code. For PathFinder's from_endpoints method, we pass an extra keyword such that structures with different lattices can also be interpolated. The default is False in order to match prior behavior.
I don't believe this change merits a unit-test as it's just wrapping functionality located in the pymatgen code.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 3 (66.67%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.05%) to 80.353%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pymatgen/analysis/diffusion/neb/pathfinder.py
2
3
66.67%

Files with Coverage Reduction
New Missed Lines
%

pymatgen/analysis/diffusion/aimd/clustering.py
1
90.22%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
1640

Relevant Lines:
2041

💛  - Coveralls

@shyuep can you review this addition?

This is fine but I need a unittest for the new functionality (yes I am aware the original interpolation code is in main puymatgen).

gotcha, I'll work on adding one now. Thank you :smile:

@shyuep the new test has been added

THanks.