Allow the insertion of errors from outside JSONSchema validation

It's great to be able to define a regex to validate an input, however, that regex should really not be shown to the user. I'd like to be able to define an error string "Your username must only contain letters, numbers and underscores" rather than having it display the regex it isn't matching... no average user can understand what it's looking for from displaying a regex.

Oops. errorSchema appears to cover this.

Nope, I don't think it does. I thought that was a way to provide error messages.

You're right, we must find a way to override default error messages. Unfortunately, there doesn't seem to be any documented way in jsonschema, which is what we use for JSONSchema validation :/

The same way this component has the uiSchema, it'd be great to provide a way to define error messages where it's something outside of the scope of jsonschema. I've had to just set the .panel.errors to display:none because of all of the "instance" stuff that is not end-user-ready and that it is not using the "title" for a field. Something like "instance.first_name" is not ok to display to a user. So my solution is I just let it put the errors under the fields and hide the error list and avoid regex validation.
I should also be able to include my own error messages. For example, I created component that wraps this one that is designed to work with standard REST endpoints and Rails error messages. I'd love to be able to tell the component that "email" is already in use and have that error message appear under the email field just as it would for jsonschema validation errors. The error back from Rails has the field name that (in this common situation) matches the schema field name.
I've seen other comments about wanting to be able to perform validations yourself, that are outside of what jsonschema validations supports (passwords must match, etc). I'd like to see an a prop that allows you to provide an externally derived errorSchema that gets blended with what the component came up with on it's own. Devs could either have it touch the server and generate an errorSchema to display or just have additional client-side validations that get mixed in... this is probably a separate issue. But this would let me work around the issues I am having.

We definitely want to add support for custom validation with associated relevant custom error messages. "Blending" these things with what our jsonschema validation lib exposes as data and API can get tricky though.
Todo:

Accept an errorSchema prop to merge with the form internal one so you can inform it some fields are in an error state according to some external validation rule; the issue is how could we possibly know when such fields are not invalid anymore?
Accept some validationSchema object to define external validation rules for fields (as suggested in #145);

I have a feeling the right way of solving all this would be to extract the whole validation system from the component internals, so users would be able to augment it with their own rules, messages and so one. Something like this (dumb code):
import Form, { validateJsonSchema, mergeErrorSchema } from "react-jsonschema-form";

const schema = {
  type: "object",
  properties: {
    pass1: {type: "string"},
    pass2: {type: "string"}
  }
};

const validate = ({formData}) => {
  const errorSchema = validateJsonSchema(schema, formData);
  const {pass1, pass2} = formData;
  if (pass1 !== pass2) {
    return mergeErrorSchema(errorSchema, {
      pass2: {
        errors: ["Passwords don't match"]
      }
    });
  }
  return errorSchema;
};

<Form schema={schema} validate={validate} />

Also if we go that route we probably need to allow performing async validation, so we need to support returning a Promise.

Edit: I realize this doesn't even address how we override the jsonschema default error messages. Duh.

It seems we actually have access to all the arguments we need to expose an api to define custom error messages from the error objects jsonschema returns: https://github.com/tdegrunt/jsonschema/issues/147#issuecomment-154168376
Now back to square one for this very issue: what kind of API should we expose to leverage custom jsonschema error messages?

So, the types of validations I would need (and think this covers all):

jsonschema validations. (ex: MinLength, required fields, etc.) Prevents submission.
Client-side validations. (ex: Passwords don't match, etc.) Prevents submission.
Server-side/async validations. (ex: Username is already taken, etc.) Pre-submission, prevents submission.
Server-side rejections. (ex: Rails 422 unprocessable entity error... any types of errors that prevented saving the record.) Happens after data submission, no changes made to DB, errors need to display inline.
~5) Overriding the default messages. "instance.password_confirmation" is not something that is presentable to the user. The regex are much worse.

Currently this component only supports type 1.
Granted, this component's scope doesn't cover posting to the server, so it just needs to have the right events and props to allow a user to do that part on their own.
So, one option would be to have a canSubmit/isValid prop event, when if present is evaluated either as a boolean or a Promise for a boolean. Then have a prop for external errors that can be set by any part of that process.
I don't like the API being that there's a onValidate event that returns an error schema because it seems like it limits when I can set it. Just let me generate my list however and whenever I want. Many times this will be when the event fires to validate, but possibly also after I submit to the server and get error messages back. Using the pattern I described above (with pseudocode below) would cover the types 1-4 listed above, and provide me a workaround for #5 (by just keeping some validations out of jsonschema and do them client side with my own error messages).
const schema = {...}
...
  validateEvent({formData}) {
    return fetch(...call to server to check username availability)
       .then(...set the state to update external errors, returns FALSE if there are errors)
  }
  onSubmit(...) {
     fetch(...do post to endpoint to save)
       .then(...set the state to show server errors)
  }
  render() {
   const {externalErrors} = this.state
   return  <Form schema={schema}  ....
       onValidate={this.validateEvent.bind(this)}
       externalErrors={externalErrors}  />
  }

Is it possible to disable validation now?

It's possible to disable live validation entirely but not validation on submission.

Would be great to have a PR, thanks! A noValidate attribute sounds good. Should be trivial to implement (famous last words).

Is there any work being done for this? Is it really so that there is currently no possible way to show errors that comes from a backend? So if the server responds 400 for a form requests, we just need to handle it some other way?
This seem like a gaping hole in the functionality of this project if the above statement is correct. Handling errors that comes from the backend would be great since then the backend can take care of translations and message text while the front-end (react) can keep to the view/rendering part.
But I will be happily proven wrong in that react-jsonschema-form does not support external errors to be injected in the form.

I've had to develop my own somewhat hacky way to get server errors to
display inline. There are unconventional ways to do it but I agree that
it's a huge product gap to not support it.
On Mon, Feb 20, 2017 at 10:57 PM Frank Wickström<EMAIL_ADDRESS>wrote:

Is there any work being done for this? Is it really so that there is
currently no possible way to show errors that comes from a backend? So if
the server responds 400 for a form requests, we just need to handle it some
other way?
This seem like a gaping hole in the functionality of this project if the
above statement is correct. Handling errors that comes from the backend
would be great since then the backend can take care of translations and
message text while the front-end (react) can keep to the view/rendering
part.
But I will be happily proven wrong in that react-jsonschema-form does not
support external errors to be injected in the form.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/mozilla-services/react-jsonschema-form/issues/155#issuecomment-281260799,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABGSlhmlFWWZ1T29dWGdOYwJV28_xFD8ks5reorTgaJpZM4IMgq7
.

Do you have any examples of the how you are doing it right now? If not it is ok, just wondering if there would be even some way of inserting error messages without needing to fork the project and create some ugly hack. If I had the time I would try to do a proper fix, but right this moment I don't have that luxury.

I have a wrapper component that receives the errors from my rails-based API
server on submit and formats the error object the way the form wants it and
I set the form component's internal state iirc. That's a bad pattern to use
but it works for me until this project can round out support for passing in
external errors thru props.
I can give more code when I'm not writing this on my phone if needed. I
chose to not fork.
I understand that the project is a generic form and not made to be aware of
back ends at all but even just giving users an "externalErrors" prop that
we could pass in form submission errors or errors that took an external
call to validate (username already in use) it would be very helpful.
Paul
On Mon, Feb 20, 2017 at 11:22 PM Frank Wickström<EMAIL_ADDRESS>wrote:

Do you have any examples of the how you are doing it right now? If not it
is ok, just wondering if there would be even some way of inserting error
messages without needing to fork the project and create some ugly hack. If
I had the time I would try to do a proper fix, but right this moment I
don't have that luxury.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/mozilla-services/react-jsonschema-form/issues/155#issuecomment-281264566,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABGSlnlWz1hLGqCk53UeqcIeNruBR0Adks5repCrgaJpZM4IMgq7
.

Alright, thanks for the information. I might try that, but as you say it is a bit hacky :) Hopefully full support for external errors will be introduced at some point as this project looks really nice otherwise and uses a proper standard for structuring the JSON, but the lack of external errors is currently keeping me back from using it.

@frwickst No, as far as I know nobody is working on this. It hasn't been relevant to our use case. Patches welcome :)

@glasserc : How do you handle events where the server does not return a successful response? Say that a server responds with an error message saying that some part of the form is not correct? Do you do create a global toast/notification in those cases or do you have any other solutions?

Would async validation solve your issue? It's been staled forever in #198, so anybody wanting to take over it is more than welcome.

@frwickst The projects where we use react-jsonschema-form just use the same JSON schema to validate on the server side as well as on the browser, so we never have this kind of error message. Any other error messages (for instance, server not available) aren't specific to the form and don't need to be mingled with the errors of the form. That's why I said this kind of error isn't really relevant to our use case. For us, react-jsonschema-form is really just a JSONSchema form, although I understand that many people are using it as a generic form construction library.

as the workaround, you could always override renderErrors and pass in new props or state to handle your server error like:
const FormWrapper = (Child) => {
  return (props) => {
    Child.prototype.renderErrors = () => {
      // do something different here
    };
    return <div>
      <Child {...props} />
    </div>
  }
};

const WrappedForm = FormWrapper(Form);

and then:
class MyForm extends PureComponent {
  render() {
    <WrappedForm ...blah />
  }
}

@nuclearspike Will appreciate if you can share some of your code on how you handle server errors.

@galiai
.catch(({ response, json }) => {
        if (response) {
          switch (response.status) {
            case 422:
              const toDisplay = json.errors ? json.errors : json;
              //errors is output in an alert in a bullet list above the form.
              const errors = Object.keys(toDisplay).map(key => `${prettifyCamelCase(key)} ${toDisplay[key].distinct().join(', ')}`);
              //error schema is output in-line by inserting it into the form's state.
              const errorSchema = {};
              Object.keys(toDisplay).forEach(key => {
                errorSchema[key] = {__errors: toDisplay[key].distinct()};
              });
              this.setState({errors});
              this.refs.form.setState({errorSchema}); //where 'form' is the ref to the schema form.
              break;
           [....other handlers]
            default:
              this.setState({errorMessage: `An unhandled error has occurred. ${response.status}: ${response.statusText}`});
          }
        }

One of the techniques I'm currently using is to have a ref on the submit button to manually invoke the form validatationj. So the idea is that when this.state.errors has changed, I am triggering the form validation. The second half of the technique is to inject errors into the form, which I use the custom validation function passed in via the 'validate' prop.
An example from [#197](https://github.com/mozilla-services/react-jsonschema-form/issues/197#issuecomment-284147942 seems to have a better idea of extending the Form class and calling this.validate directly, which I probably should try, since "manually clicking" the submit button triggers validation and conditionally onSubmit (if validation passes). But if you're not careful, this can cause an infinite loop (onSubmit submits to server, server response injects into form, we manually trigger submit button, onSubmit submits to server, ad infinitum).

The whole point of creating a json schema is to be able to define a generic form.
Relating to content of the schema from the code should be enabled as a last resort, but IMO, there should be a more generic approach to this problem - meaning that the error strings should be defined in the json file itself, rather than a function in the code (which couples the code with the schema)

As an alternative solution, can there be an approach similar to what redux-form does with SubmissionError https://redux-form.com/7.1.1/docs/api/submissionerror.md/
So if onSubmit is a function that returns a Promise, then it can throw SubmissionError, that will be translated into errorSchema and global errors accordingly. That way users won't need to manage additional properties for the form and all they would need to do is translate server errors in appropriate format.
I can do the PR for that.

I'd love @mavarazy's solution, but can't see it. So just as a quickfix, could you set errorSchema as a prop to components/Form, and just make sure it is treated semi well? This is what I came up with (newbie alert!):
getStateFromProps(props) {
    const state = this.state || {};
    const schema = "schema" in props ? props.schema : this.props.schema;
    const uiSchema = "uiSchema" in props ? props.uiSchema : this.props.uiSchema;
    const edit = typeof props.formData !== "undefined";
    const liveValidate = props.liveValidate || this.props.liveValidate;
    const { definitions } = schema;
    const formData = getDefaultFormState(schema, props.formData, definitions);
    const retrievedSchema = retrieveSchema(schema, definitions, formData);

    let errors, errorSchema;
    if (props.errorSchema) {
      errorSchema = props.errorSchema;
      errors = toErrorList(errorSchema);
    } else {
      ({ errors, errorSchema } =
        !props.noValidate && liveValidate
          ? this.validate(formData, schema)
          : {
              errors: state.errors || [],
              errorSchema: state.errorSchema || {},
            });
    }

This allows me (at least) to circulate the form props through onSubmit into the state machinery and full circle into the Form-tag again, even grabbing errors from the schema, as it is passed along too.
Like I said, this is just what I hacked in, but I really want something for async, and it seems a lot of others do too. Thanks for a great module, and sorry in advance if this is just way crazy (or bugged).

uhh.. I think it would be best if the Form component had a errorSchema prop. The error list would be generated from the schema and the changes (like all state) would come through the onChange and onSubmit callbacks. This would allow you to control the errorSchema like you can the other schemas / formData.

@davidbaratt,
Like this?
https://github.com/glimrende/react-booking-spa/blob/master/custom-bundles/my-jsonschema-form/index.js

Try out #874... still needs docs and tests.

Found this issue too late. Hope to see #874 merged soon!
Meanwhile I moved a promise based approach to a small package: https://github.com/bopen/react-jsonschema-form-async
It works for my usecase.

Continue discussion on this wrapper issue: #1389


Strong Name

Hello,
As you probably know, OllamaSharp is now used by pretty big projects (such as Microsoft SemanticKernel).
This leads me to the following issue that I have created : https://github.com/microsoft/semantic-kernel/issues/8928
Adding a Strong Name to OllamaSharp would probably resolve this issue. Is this in your plans ?
Furthermore, any signed .Net Framework assembly requires its dependencies to be signed as well. I think that this is no longer true in .net Core...
Thanks for reading and thanks for your great work!
Guillaume

@gjactat Thanks for bringing this issue to the OllamaSharp, indeed I was investigating came to the evidence on the Strong Naming problem running against .Net Framework (netstandard 2.0) versions.

I will be following this and happy to update our Ollama connector to a Strongly signed version of OllamaSharp library.

OllamaSharp 3.0.10 now comes with a strong name ✅

Thank you @awaescher  !


CONTRIBUTING.md Errors

There's a place that says "example," where an actual example should be...

The following code snippet exemplifies everything described in this section (Docstrings):

example

also closing should be on two lines but isn't:

Warm Regards, Lillian Lynn Lemmer

Resolved in https://github.com/hypatia-engine/hypatia/commit/1653a2210ae40d9ec6031ca6ac0581131529cb72


Running inference in C++

Hi
I  have experimented with your model and I am currently training with it on my local machine, which will be a time consuming affair.
Before I started that I ran a test with inference on an image sequence from some holiday footage with a group of humans in it, I was really impressed with the segmentation quality I got out of your trained model weights.
Now I want to run that model in a C++ application.
I have got it working already with the google model as they have provided a frozen_graph.pb file which makes everything very straight forward, you just choose the inputs and output and as it to run and deal with the index int64 to rgb in your C++ code and can produce segmentation maps with ease.
But the model you have provided has a better quality.
So looking at your model while training in comparison to the google one with tensorboard I can see the following input:
IteratorGetNext
Operation: IteratorGetNext
Attributes (2)
output_shapes
{"list":{"shape":[{"dim":[{"size":-1},{"size":513},{"size":513},{"size":3}]},{"dim":[{"size":-1},{"size":513},{"size":513},{"size":1}]}]}}
output_types
{"list":{"type":["DT_FLOAT","DT_INT32"]}}
Device
/device:CPU:0
and
the output, I might be wrong here
softmax_tensor
Operation: Reshape
Attributes (2)
T
{"type":"DT_FLOAT"}
Tshape
{"type":"DT_INT32"}
But where I get a bit lost is how you get from the softmax_tensor to the RGB semantic segmentation, because the trickery done in Python needs to be C++ equivilantly.
Also I am not seeing the images while I am training in tensorboard like on the README.md
Currently my model says:
INFO:tensorflow:Running local_init_op.
INFO:tensorflow:Done running local_init_op.
INFO:tensorflow:Saving checkpoints for 1 into model/model.ckpt.
INFO:tensorflow:cross_entropy = 3.6564944, train_px_accuracy = 0.0064560226, learning_rate = 0.007, train_mean_iou = 0.0025944803
INFO:tensorflow:loss = 25.835169, step = 1
INFO:tensorflow:cross_entropy = 1.655007, train_px_accuracy = 0.35825747, learning_rate = 0.0069979005, train_mean_iou = 0.034966677 (889.482 sec)
INFO:tensorflow:cross_entropy = 1.2607722, train_px_accuracy = 0.4497315, learning_rate = 0.0069958004, train_mean_iou = 0.07742665 (905.908 sec)
INFO:tensorflow:cross_entropy = 1.6334174, train_px_accuracy = 0.48777512, learning_rate = 0.0069937008, train_mean_iou = 0.09395798 (911.375 sec)
INFO:tensorflow:cross_entropy = 1.1489747, train_px_accuracy = 0.5459064, learning_rate = 0.006991601, train_mean_iou = 0.107514605 (934.927 sec)
So I am going to be here for some time waiting for the model to converge.
Any hints of how I can get a model with more closely resembles the one found here:
https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md
In structure now so much in its weights values.
I have that working perfecting in a command line C++ driver, which I can put into my parent application.
But your model produces better results albeit from Python.
I think I can handle freezing the graph to a .pb file on my own, I just need to know where to cut the cord.
sam

Sorry disregard the comment about the tensor board I was running tensorflow 1.7 when I downgraded to 1.6 and got GPU working things are going a lot smoother now, but my GPU can only fit a batch size of one, I might be able to find access to a 16Gb GPU later, currently I only have 4Gb available.

Hi @samhodge , thank you for your interest in the repo.
Some part of your questions are a bit not clear for me  but I try my best (Sorry for my English comprehension skill. I'm not native English speaker).
I started implement the model before Google open source deeplab code, so there should be many differences. And as you probably know, their repo implements deeplabv3+ but this repo  deeplabv3.  Also their pre-trained model is better for training data wise, because their pre-trained is trained with coco dataset as well as Imagenet but mine is only Imagenet.

how you get from the softmax_tensor to the RGB semantic segmentation

This line converts [HxWx1] numpy array to [HxWx3] RGB image using decode_labels() function.
I hope I answered some of your question.

Thanks for your response, I will see what I can do with the model you have provided and the information provided.
Thanks again
Sam

@samhodge Hi buddy,I want to run the google Deeplab V3+ module in a C++ application use frozen_graph.pb,but I got many error,I think it caused by the image processing stage.Now I found you have got it working. Would mind share the code?

Hi @samhodge  @shuiqingliu , I am also trying to use deeplab in a c++ application. Would either of you mind sharing the code you used to get it running?
where did you get the frozen_graph.pb file from?
Thank you very much!

Freezing the graph is the same as freezing any other graph in tensorflow, same as running it in C++, if there were specific questions you have I am happy to help you out.

Hi @samhodge @shuiqingliu , I am also trying to use deeplab in a c++ application. Would either of you mind sharing the code you used to get it running?
where did you get the frozen_graph.pb file from?
Thank you very much!

you through this tool to get the frozen_graph file

Ok thank you! are you able to share the code you use to run inference using deeplab in c++?  Thanks again.


timezone on containers

Currently timezone is already set on django settings but not on containers :/

@aleprovencio, could you please give more details on that?

@webyneter , if I run 'date' commands on the containers they will not match the container set for django which has the timezone set. Thus, logs and other stuff gets messed up.

@aleprovencio, it's been a while since you reported the bug; did you manage to resolve it?

@aleprovencio, because if yes, your solution is very much welcome :)

@aleprovencio, by the way, does this happen at development, or production, or both?

Unfortunately I have not managed to fix it yet...
Yes, it happens on both environments :/

@aleprovencio, gotta get take a look at this one soon.

@aleprovencio, and thank you for reporting that subtle yet important issue.

That's awesome, thanks for taking your time :)

@aleprovencio Try this, run container with
--env TZ=America/Sao_Paulo

@aleprovencio, @amcorreia is right, did you try customizing the timezone?

I've tried to set my host timezone to something else, and the container seems to return UTC when nothing is set.
Since we use docker-compose to run several containers, the --env option isn't available, but we could add it in local.yml and in .env. The date command follows this setting.
The Django setting could then be changed to use the value from the environment variable TZ.
Am I missing anything?

Sorry for missing last comment @webyneter and @amcorreia, but you are correct.
I also agree with @browniebroke , setting timezone like that is much more aligned with the project.


TF Export is given different order in each export

I do daily TF export and do some comparison to check if any changes in the file exists.
Many of GC Object resources content order is not the same if I do the export again in the next day, even with out any content change for the particular GC Object in UI.
This is making its difficult to find out if there are any changes in the resources.
Can we make the order of Export content same if there is no change in UI for particular GC Object. This happens every time for routing queue where as skills it works as expected(no change in TF if there is no change in UI).
Note
I know that TF plan will show there are no changes, but I need this to be part of export.

Closing with as there is no further response.


Contains implementation for Aabb/Point is unsafe for unsigned BaseNums

The current implementation uses subtracts and then checks the result. This will cause 'subtract with overflow' panic for points outside the aabb (both 2d and 3d use this method).
Shouldn't it simply be a one-liner:
min_x <= x && x <= max_x && min_y <= y && y <= max_y && min_z <= z && z <= max_z

?

Nicely spotted!

So according to this test an Aabb should not contain its own max(), is that intentional?
https://github.com/kvark/collision-rs/blob/f69b098c233836615cf3d47e5b65666664582153/tests/aabb.rs#L66
If so it would end up looking something like:
min_x <= x && x < max_x && min_y <= y && y < max_y && min_z <= z && z < max_z

We have yet to define border semantics, for the most part I think border tests are misses


guizmo is offset to the side

White ball is the guizmo, the handles are too small to be seen here
and black cube on top of it, is the entity object that will be controlled by the guizmo
The translation and scaling works properly, just that the position of the guizmo is wrong and the size of the handles is too small

Turns out my SetRect was wrong and as for the the size, I just went to ImGuizmo.cpp and multiply gContext.mScreenFactor by 30.f


[system] Need for consistent CSS classes in snapshot tests

Duplicates

[X] I have searched the existing issues

Summary
We have some snapshot tests in our test-suite. They simply compare HTML states between test runs, and fail if anything changed.
These do not work well with MUI unfortunately. When we generate the initial snapshots locally (or update them), the generated CSS class names in the HTML files are different from the ones that our testing-server generates and compares to.
This is due to the fact that our local environments have a different NODE_ENV than our CI server.
We found that the logic is in<EMAIL_ADDRESS>if (process.env.NODE_ENV !== 'production') {
    if (componentName) {
        label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;
    }
}

Is it possible to determine this based on a runtime variable instead of a compile time one, like NODE_ENV? If not, do you have other suggestions?
Examples
No response
Motivation
No response
Search keywords:

Could you share more details, like what are the different class names being generated across the environments and a working minimal repro?

Seems like an issue with the difference in your environments? Could you have the same env vars in your local tests that are on your CI ?

We prefer to keep using 'production' as node_env. Thanks for the help anyways! 🙏

@mennorenkens @brijeshb42  So, what's remaining to do here?


Refactor tests

Move https://github.com/trustbloc/wallet/tree/main/test/wallet-web to test vue components as the functionalities are already tested in agent-sdk
Refactor existing bdd tests to test UI Automation (early integration) - something similar to sandbox ui-automation

Move https://github.com/trustbloc/wallet/tree/main/test/wallet-web to test vue components as the functionalities are already tested in agent-sdk
Above changes were implemented as part of https://github.com/trustbloc/wallet/pull/881 by @sudeshrshetty .


feature: relative prefix instead of only absolute hostname

Add the possibility to add a relative prefix instead of an absolute hostname. This is useful if you cannot easily get the full Hostname as for example on Kubernetes with an Istio ingressgateway.

  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/patch-1*:refs/remotes/origin/patch-1* +refs/tags/patch-1*:refs/tags/patch-1*
  The process '/usr/bin/git' failed with exit code 1

this looks as if your checks are somewhat damaged.

Could you please check and say how it works with user avatars, uploaded images using GUI ?

Could you please check and say how it works with user avatars, uploaded images using GUI ?

it only works partially so far. I can login, see static images etc. What does not work is accessing /projects. /projects just returns a blank page

yes, it might be, because it's a very tricky thing (HOSTNAME) and it affects a lot of deep things.

yes, it might be, because it's a very tricky thing (HOSTNAME) and it affects a lot of deep things.

some script is not using it properly on the projects page

closing, since this shall be the task of the maintainers.


Allow external spdlog dep to be used

The external spdlog should be installed normally via cmake from the origin repository, and must be from version 0.14.0 as stated in its CMakeLists.txt.

Codecov Report

Merging #18 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #18   +/-   ##
=======================================
  Coverage   87.99%   87.99%
=======================================
  Files           3        3
  Lines         408      408
=======================================
  Hits          359      359
  Misses         49       49

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 f5dafb3...f76ddac. Read the comment docs.


Docs for REST API

We need to document the REST API so people can call it without the PWSH cmdlets.

Add via swagger.


[NEW]: Iris Energy Limited have received default and acceleration notices

Date
2022-11-22
Description
Bitcoin mining company Iris Energy Limited have received default and acceleration notices, including a demand that each Facility be immediately repaid in full. Company decides to stop powering most rigs as collateral for $107.8 million debt.
Links
https://twitter.com/wublockchain/status/1594874877496160257
https://www.sec.gov/Archives/edgar/data/1878848/000114036122042419/ny20005141x6_6k.htm
Agreement

[X] I irrevocably agree to release my contribution under the CC-BY 3.0 License

Attribution name
Lesslaw
Personal link
No response

https://web3isgoinggreat.com/?id=iris-energy-defaults-on-100-million-loan-unplugs-miners


Fix compilation with -Xsource:3

This commit lets scalatest compile with the Scala 2.13 flag
-Xsource:3 (but does not enable the flag in the build), this came up
in https://github.com/scala/scala-dev/issues/769.
The changes needed were:

Add missing parens when overriding Iterator#next()
Remove usages of symbol literal syntax
Remove usages of procedure syntax
Fix code that relied on any2stringadd

@smarter Thanks for the PR!  The changes however has caused some tests to fail, due to the missing 's', I have submitted the following PR against your branch to fix them:
https://github.com/smarter/scalatest/pull/1
Other than that the changes looks good, I also try to build it using the old scala 2.10.7, and it is green too.

Oops, thank you for catching that! It should be good now.

@smarter Unfortunately when I tried to run the tests using:
> sbt clean test

It still failed with:
[info] NotWordSpec:
[info] NotWord contain(ResultOfAWordToAMatcherApplication) method returns Matcher
[info] - should have correct MatcherResult *** FAILED *** (1 millisecond)
[info]   Vector(List(MyFile(test,true,false)), file, MyFile(test,true,false) was a file) was not equal to Vector(List(MyFile(test,true,false)), file, $myFile was a file) (NotWordSpec.scala:2828)
[info] NotWordSpec:
[info] NotWord contain(ResultOfAWordToAMatcherApplication) method returns Matcher
[info] - should have correct negated MatcherResult *** FAILED *** (0 milliseconds)
[info]   Vector(List(MyFile(test,true,false)), file, MyFile(test,true,false) was a file) was not equal to Vector(List(MyFile(test,true,false)), file, $myFile was a file) (NotWordSpec.scala:2848)
[info] NotWordSpec:
[info] NotWord contain(ResultOfAnWordToAnMatcherApplication) method returns Matcher
[info] - should have correct MatcherResult *** FAILED *** (0 milliseconds)
[info]   Vector(List(MyFile(test,true,false)), file, MyFile(test,true,false) was an file) was not equal to Vector(List(MyFile(test,true,false)), file, $myFile was an file) (NotWordSpec.scala:2884)
[info] NotWordSpec:
[info] NotWord contain(ResultOfAnWordToAnMatcherApplication) method returns Matcher
[info] - should have correct negated MatcherResult *** FAILED *** (1 millisecond)
[info]   Vector(List(MyFile(test,true,false)), file, MyFile(test,true,false) was an file) was not equal to Vector(List(MyFile(test,true,false)), file, $myFile was an file) (NotWordSpec.scala:2904)
[error] Failed tests:
[error] 	org.scalatest.matchers.dsl.NotWordSpec

But I think this time it is getting nearer, do you mind to fix them further?
Cheers.

Fixe, and I checked that sbt test runs correctly locally.


feat: add C++ pod template

This PR adds a c++ pod template.
I tested it locally on minikube v0.35.0 and jx 1.3.970 and could compile https://github.com/db-f/example-project-cmake
Linked to:
https://github.com/jenkins-x-buildpacks/jenkins-x-kubernetes/pull/27
https://github.com/jenkins-x-buildpacks/jenkins-x-classic/pull/4

/assign @jstrachan

/ok-to-test

/lgtm


[sram_ctrl,dv] Wait with reset after mem_init

Currently, some of the sram_ctrl_stress_all fail with a DataKnown_A assertion.
The reason for this failure is that the sram_ctrl_stress_all test, depending on the seed, immediately triggers a reset before the first test is started. However, this reset before the first test interferes with the hardware-based memory initialization feature.

More specifically, this reset currently happens when the last write of the mem init is issued, i.e., the write gets not finished. Hence, the memory at the last address is uninitialized, triggering the DataKnown_A assertions.
To circumvent this issue, this commit adds a wait_clks(2) before the reset.

I am now opening this PR as ./util/dvsim/dvsim.py hw/ip/sram_ctrl/dv/sram_ctrl_ret_sim_cfg.hjson -i sram_ctrl_stress_all -t vcs now has 100% passing rate and also the failing seeds related to this issue now pass.


Background data updates

Hello, I'm a new user of asciimatics and I'm struggling to find documentation on this particular use case.
Maybe there's an enhancement opportunity or you can point me in the right direction.
Use Case:
I'm trying to display tabular data that gets updated in place. For example

Stack
Status

stack1
UPDATING

stack2
ERROR

stack3
FINISHED

In this case, the STATUS column would be updated with the status corresponding to the stack.
The way the status are being checked is with a loop that's querying the stack and updating a data model (maybe this needs to be done on a separate thread?) with the status.
The ultimate goal is to display this data in a nice way, instead of printing a continuous list every time the service is queried.

Hi.  Thanks for getting in touch.  I've had a quick think about this and have a couple of ideas...
First off, the sort of tabular display that you're hoping to create is exactly the sort of thing that I was expecting to be handled by the multi-column list widget in https://github.com/peterbrittain/asciimatics/issues/31.  Sadly that doesn't exist yet.  It shouldn't be too hard to create based on the existing ListBox, but I haven't done that yet and don't know when I'll get the time to do so.  In the meantime, you could try creating the new widget yourself (and I'd happily review any pull request), or approximating it by using the ListBox with some hacked formatting as you populate the data.
As for the updates in the background?  I think the issue that you're going to hit there is that my recent changes to reduce CPU usage mean that Frames don't redraw unless they think they need to do so.  You therefore have to force the refresh when your data changes.  Depending on how architectural you want to be, you could add a new method to Frame (e.g. force_update) that forces it to redraw next time asciimatics polls it for updates, or you could just hack frame_update_count to always return 1 - which will redraw the Frame on every refresh and so dynamically update as your model changes, but at the cost of a load of wasted CPU.  I've probably got time to put the forced refresh in sometime over the next week or so, if that helps...

Just did a little more thinking on the background update...  I don't think my previous suggestion will work as it's actually the Screen that's idling until the time the Effects told it to redraw, so the hack will work, but the force_update needs to go on the Screen class.

OK - I've added the force_update() API to Screen as https://github.com/peterbrittain/asciimatics/commit/46275ad793336c51c1066baf4b2c4aea38a6cfcb.  You should now be able to call this from anywhere in your application when you know your UI needs to be updated.  The only thing you need to do now is decide how you're going to represent your table.

Excellent, thanks for the response!
So, what I have so far to work with is a loop that calls an api every so often and monitors for changes (nothing too fancy yet). When it detects a change, it should run force_update().
AFAIK, when you run the scene, it takes over the main thread of the program, correct?
This means that I will need to have a separate thread that will be running my monitoring loop and it should have access to the screen object in order to call the force_update() function.

If you just use play() it will take over that thread and run a simple scheduling loop.  If you already have your own scheduling loop you can call draw_next_frame() instead every 1/20th of a second - as documented at the end of http://asciimatics.readthedocs.io/en/stable/animation.html#scenes-and-effects

I'm having a hard time using asciimatics, the documentation is not very clear on what the different attributes for the elements are and how they interact with each other.
here is my code so far
from asciimatics.screen import Screen
from asciimatics.scene  import Scene
from asciimatics.widgets import Frame, ListBox, Layout, Widget

import time

screen = Screen.open()

frame = Frame(screen,
              int(screen.height * 2 // 3),
              int(screen.width * 2 // 3),
              has_border=False)

layout = Layout([1])

frame.add_layout(layout)

layout.add_widget(ListBox(1,  [("foo", 1)],  label="test"))

scenes = [
    Scene([ frame ]),
]

screen.set_scenes(scenes)

while True:
    screen.draw_next_frame(repeat=True)
    time.sleep(0.05)

as you can see it's a very simple example that has a ListBox widget which is on a layout with 1 column set on a frame which is on a screen.
I'm using the draw_next_frame method you mentioned on a 1/20th of a second delay.
When running this sample code, I get a list index out of range error in the widgets.py file, and my mouse stops working on the terminal altogether (gibberish pops up when clicking, only solution is to close and reopen it)
I'm not sure what I'm doing wrong.
When I remove the line to add the widget, a blue box appears on screen (the frame, I assume). When I press anything on the keyboard, it spits out a stack trace.
Could you give me some guidance?

All looks pretty good so far...  There are 2 bugs I can see, though.

You need to call frame.fix() before you start displaying it.  This is what allows triggers asciimatics to do the layout calculations.
You should make sure you call Screen.close() to tidyup the terminal on exit.  I suggest you copythe logic in Screen.wrapper() here.

Given that the enhancement is made, I'm going to close.  Please feel free to post a follow-up on the docs if needed...


⚠ ClamAV has degraded performance

In a66fe4d, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 66 ms

Resolved: ClamAV performance has improved in bf840c6.


First draft of a Sphinx API documentation

Codecov Report

Merging #3 (6a3efde) into main (d070dcd) will increase coverage by 0.31%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   88.57%   88.88%   +0.31%
==========================================
  Files           4        4
  Lines          35       36       +1
==========================================
+ Hits           31       32       +1
  Misses          4        4

Impacted Files
Coverage Δ

filteradapt/dataset.py
100.00% <ø> (ø)

filteradapt/paths.py
75.00% <ø> (ø)

filteradapt/__init__.py
100.00% <100.00%> (ø)

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 d070dcd...6a3efde. Read the comment docs.

Thanks for working on this. I already changed some smaller issues and will continue to do so. There are the following major aspects to tackle before merging:

Your experiments with PDAL should not be part of this branch as it is not related to the advertised changes. Also, while it is absolutely important to do this type of experiments, I don't see a need to commit them to the repository.
We need to fill the gaps and actually write the mentioned documentation, so that it is not a stub.
The tests should not be included in the doc.


Automating entitlement app group only if there is entitlements

Otherwise if platform darwin no entitlements by default and sign failed because preAutoEntitlementAppGroupAsync does readFileAsync(opts.entitlements, 'utf8')

@develar Thanks for bringing up these issue fixes and the updates on the typescript; 👍 really appreciated them! Do you mind having a look at some of the comments on file changes?

@develar PR merged; thanks for working on these improvements. 👍


Hyphenated phrases

I tried searching for hyphenated words and phrases both with and without surrounding quotes — e.g., Go-based and "Go-based" — but this doesn’t work with 0.5.3. The result shows up with zero hits. I don't know whether the ignoring of hyphens is on purpose but, if not, just FYI.

Ah yes, an artifact of my quick bugfix yesterday. I'm going to look at moving some more of this character-handling logic into the webassembly side of the equation so that it's always the same Rust code transforming terms. Aiming for next release 👍

Didn't make it into the multilingual release, but will be visited soon 🙂

Fixed!

Fixed!

Yes, just noticed that a little while ago with the 0.8.0 release. TY sir!


Should be room for 6 characters in bee count in bipartite view

Forwarded from Michael O'Loughlin:
I can’t seem to figure out how to access that form so I thought I would email one last thing I noticed. There needs to be room for six characters for the number of bees in a family. For Andrenidae, the actual number should be 10,007. (see below) Its cut off.

Resolved in https://github.com/IMERSS/imerss-bioinfo/commit/17faa85d18d1a94a0526d2a0290f7dfc2f66c958


🚀 [Feature Request] -Create Service Page/ Session page for Mentor Dashbaord.

Is your feature request related to a problem ? Please describe. ✍
You have create the page... where all session of mentor can be edit and send to backend through a api,
Do not worry update API is ready..... you just have to show the payload and develop the frontend part.
Describe briefly how you would implement this enhancement.
You will get the data from api ... see how mentor card are forming ( in mentorUsername page)
now in session page.. mentor should be able to edit it's ssesions and send to backend to update them.

Additional context or screenshots
Additional context
Are you contributing for a program?
GSSoC2023
Code of Conduct

[X] I have read and agree to the Contributing Guidelines of this project.

I will have meet, to explain things in more details... who willl be working on mentorDashboard Issuess

@anmode assign me pls

sure

@mandliyarajendra11 ?? what happened... if facing any issue please let me know

@mandliyarajendra11 ?? what happened... if facing any issue please let me know

sorry , I am shifting rooms, so I could not work

no worries


ARTEMIS-2984 Compressed large messages can leak native resources

https://issues.apache.org/jira/browse/ARTEMIS-2984

@clebertsuconic I'm reworking on this to save users to break their expectations but I see some interesting things that could improve large message streaming, see:
   private byte getByte(final long index) {
      checkForPacket(index);

      if (fileCache != null && index < packetPosition) {
         return fileCache.getByteFromCache(index);
      } else {
         return currentPacket.getChunk()[(int) (index - packetPosition)];
      }
   }

This method is the only one using FileCache, part of the ActiveMQBuffer API on large messages, that's internal.
Large message streaming is slowed down (and get some additional memory footprint increase too) by the FileCache presence, because it needs to save each incoming chunk into it as well, but if users won't read it it's just useless work...

@franz1981 I'm lost on what you mean on your last comment.. you mean we should remove usage, or you have already reworked the usage?

@clebertsuconic

you mean we should remove usage, or you have already reworked the usage?

I couldn't do it because of the ActiveMQBuffer API on LargeMessageController we expose to users: if we drop it, we could save using FileCache while receiving chunks of the large message, both speeding it up and reducing its memory footprint.
Now we have a jmh module and I can work on a benchmark that can show the speedup I'm talking about

@franz1981 what about the previous propose? to make the usage separate? we break the API but allow an alternative?
you had a class that you had moved to tests.. all I asked you was to move that class to the API.. so if someone is broken by this they could just change their code to use this new class.
they are using an internal method.. they would be broken by it.. but at least they would have an alternative.
if that's not possible then we can talk about breaking it for sure.

Do we really expose the controller to users? Yes its public but is it exposed in the client apis?

we don't expose it...
Franz had moved the controller to a separate class on a test..
all I asked was to have that class as part of the main jar.
But if that's a big deal.. just take it out then.

@michaelandrepearce @clebertsuconic If we take the step to remove it I'm sure large message streaming can just drop any file cache and both code and perf will benefit there

what about the previous propose? to make the usage separate? we break the API but allow an alternative?

If the usage wasn't exposed to remove the whole code paths that makes large msg streaming complex, saving both perf and leaky methods to exists as a whole. If removing isn't an option I can just prepare the code for a future removal, when we decide to do that, but we won't get any perf and stability benefits from removing it.
Adding a separate class to perform the read still won't allow me to remove the FileCache, so no perf benefits...

@franz1981 i think we established end users dont see this class we can do with it as we want. Removal, refactor, give it cups of tea.

Please don't merge it, I'm still trying to be 100% sure that file cache isn't used..but maybe it's used somehow...

If it's easy. Keep the class available like before.
If not.  Just take it out.
Keep it simple.

As it is now is just packed in a different class to make it more readeable :)
Hence this version on this PR should be fine, just need to run the CI on it

@franz1981 what's the status on this PR? is this ready to merge?
I saw briefly one assert (that I added a comment) that I wasn't sure at a first look.

@clebertsuconic / @franz1981 whats occuring with this, wanting to start clearing down old / stagnant PR's a bit of spring cleaning so to say - so we focus on stuff thats actively working on / relevant .

Closing this because large messages changed a bit recently: need to be reworked


When creating a new Function App, add random characters to the content share name

In Ibiza create, we use an ARM template that has something like the following:
                        {                             "name": "WEBSITE_CONTENTSHARE",                             "value": "[toLower(variables('functionAppName'))]"                         }
We should add some random characters to the content share path, because sometimes customers will delete a function app and recreate with the same name and storage account, and things will end up in a bad state. See https://github.com/projectkudu/AzureFunctionsPortal/issues/888

http://vstfrd:8080/Azure/RD/_workitems/edit/8428293?fullScreen=false

Fix is deployed


Missing dependencies after renaming a placeholder scene

Godot version:

v3.2.1.stable.official
v4.0.dev.custom_build.9dc19f761

OS/device including version: macOS Catalina 10.15.4
Issue description:
Renaming / drag & dropping a scene to another folder may cause missing dependencies if the scene is marked "Load as Placeholder".

If the main scene is still open, it can not be saved until I remove and readd the placeholder node.
If the main scene is not open, I won't be able to open the scene again. The only way to fix it seems to be manually changing the instance_placeholder="res://XXX.tscn" field in the tscn file.

Steps to reproduce:

Create a new 2D scene, save as 'Sprite.tscn'
Create a new 2D scene, save as 'Main.tscn'
Instance Sprite in Main
Right click the Sprite node, and check 'Load as Placeholder'
Two cases:

Close the Main scene

Rename 'Sprite.tscn' to 'Other.tscn' in FileSystem dock
Try to open 'Main.tscn'
Alert: Missing 'Main.tscn' or its dependencies.

Keep the Main scene open

Rename 'Sprite.tscn' to 'Other.tscn' in FileSystem dock
Try to save 'Main.tscn'
Alert: Couldn't save scene. Likely dependencies (instances or inheritance) couldn't be satisfied.

Minimal reproduction project: N/A

Still happens on latest beta 3.2.2, but it can be fixed manually by editing the tscn file.
I assume this happens because the resources for instances are linked in a different way, they are not linked at the top of the file, they are in-line at the node location.
[node name="MyNode" parent="." instance_placeholder="res://path/to/scene.tscn"]

Same underlying issue: https://github.com/godotengine/godot/issues/44720

still not working

My guess is that this doesn't work by default, because the path is a string in this case, not a nodepath (which would get auto-corrected).

Can confirm still an issue in 3.5 RC 5.
If you mark an node as placeholder using the context menu, save the scene, close it and then move the referenced node using the FileSystem tab the reference is not updated and thus the scene file can't be opened in the editor anymore and the tscn file needs to be manually fixed using a text editor.

Happened to me Godot 4 Beta 6. I  had an instanciated scene in a currently unsaved scene, i renamed the instantiated scene in the filesystem and when i went to save the current scene i had this error. Not sure if it's an issue and Godot should update my instantiated scene or not, i wasn't able to "Open in editor" as it didn't find it obviously. I removed the instantiated scene and added it back., solved.

Have this issue in Godot 4.0 stable as well. It would be nice to be able to fix the scene inside godot somehow.
I get that the whole purpose of "instance as placeholder" is that the scene being referenced is not an "external resource" anymore and won't be loaded by default, but maybe there could be a check in the editor specific for placeholders, and at least give a better error message instead of a generic "Scene file 'scene_path.tscn' appears to be invalid/corrupt".
Just reporting the line in which the tscn found the invalid/corrupt error would already help, but if we could have a message more targeted to placholder scene paths being outdated or even a window to "fix placeholder dependencies" similar to the one that fixes the normal external resources would be great!

If the point of "Instance as Placeholder" is that it is not referenced as a external resource then maybe the solution would be to simply not fail loading the scene when the placeholder references a non-existent resource. Then there would have to be a way to change the path.
Though this might open a can of worms of having to deal with both valid and invalid placeholders and it might just be simpler to fix references the same way external resources are already handled.

My attempt to address this issue can be found here: https://github.com/Flavelius/godot/tree/fix_placeholders
It only handles the 'rename' feature in editor though. It doesn't fix the issue of opening an already invalid scene (as that's a bit more involved and overlaps in code with another pullrequest i'm trying to get recognized)
It changes the way renaming dependencies currently accesses skipped file content (binary blob -> text) so it might be a little slower to execute on many files. But every other way i see also just involves parsing the whole file in a similar way as placeholder paths are not ext_resources, so cannot be short-circuit-ed out.
If that's enough and works for typical usecases though, i can create a pullrequest for it.

Just ran into this issue on Godot 4.2.1-stable.

I've run into this issue with 4.2.1-stable as well. The difference being that it happened out of nowhere when opening a project that was just fine earlier that day

Edit dependencies --> fix broken.  Repeat until click finger is sore.
Why is there no fix all for when I have many scenes all needing the fix?

Just ran into this myself in 4.2.2.stable and want to add a little more info to help others who might encounter it.
In my case, the placeholder scene was referenced by a sub-scene of my game's root scene. The sub-scene was not open at the time I did the rename, so I was not prevented from saving (because there were actually no changes to be saved). But I happened to try reloading the project immediately after the rename, and I got this generic error message:

Scene file 'game.tscn' appears to be invalid/corrupt.

This was very confusing at first, because I could see via git diff that I didn't even have any local changes to game.tscn. After a little head-scratching, I finally thought to look in the Output tab where I saw this error output (with filenames adjusted here for clarity):

• Cannot open file 'res://old_placeholder_scene_name.tscn'.
• Failed loading resource: res://old_placeholder_scene_name.tscn. Make sure resources have been imported by opening the project in the editor at least once.
• scene/resources/packed_scene.cpp:209 - Condition "!sdata.is_valid()" is true. Returning: nullptr
• Failed to load scene dependency: "res://sub_scene.tscn". Make sure the required scene is valid.
• editor/editor_data.cpp:626 - Index p_idx = 1 is out of bounds (edited_scene.size() = 1).

That gave me the insight that game.tscn was failing to load because sub_scene.tscn was failing to load due to old_placeholder_scene_name.tscn no longer existing.
Like a previous commenter said, I was able to fix it by opening sub_scene.tscn in a text editor and updating the placeholder attributes that still had the old file name (and then reloading the project).
Hope this helps someone else understand and work around the problem.


fix(description): elements contain relative links

they should be rewritten to the site's baseurl.

sadly forgot a specific example. can't reproduce any more.


PyTorch implementation

Hi, I know this is a bit more to ask, but just in case- is there a pyTorch implementation available, or by any chance an easy transfer of model to the pyTorch?
Thanks.

Hi David,
Unfortunately, the current implementation is only in tensorflow.
I understand it might be harder to use than pytorch, but currently I don't have an easy transfer to pytorch. Sorry about that.

No worries, I was just trying my luck xD. Thanks for the quick response.

Hello. Are you guys have any clue to convert this code to Pytorch?


Add support for JRuby

This is totally optional but in case you are interested.

Sure why not. Just needs a rebase.

This PR is also good to merge.


EDF picks on load due to different sfreq

when loading an EDF that contains EEG at 256Hz and ECG at 512Hz all my channels get resampled to 512Hz (expected) but the API does not allow me to restricted the read to EEG only, and therefore the resampling which is slow.
any hint? suggestion?

cc @Slasnista

I'm not sure of good options.
It can't be automatic, it would be bad to have raw[eeg_picks] give one sample rate and raw[:] give another.
I guess we could add something to the class constructor that allowed you to choose a sample rate, or a different data-fetching method with options for output sample rate (or that did output the lowest-possible one based on picks).

I see two options:

add an include / exclude mechanism in the constructor
allow to drop_channels even if preload=False and then do load_data.

I think 1 is easier...


[VC-35411] AWS + EKS + Route53 + Let's Encrypt tutorial

Preview: https://deploy-preview-1544--cert-manager.netlify.app/docs/tutorials/getting-started-aws-letsencrypt/
I've written this tutorial:

Because I felt bad about having written getting started guides for Google and Azure but missing out AWS
Because I've been trying to better understand how the Route53 ACME DNS01 code works, for:

https://github.com/cert-manager/cert-manager/pull/7236

The content is largely copied from the Azure AKS tutorial.

@SgtCoDFish I made those changes and added a link to ExternalDNS. PTAL.

/unhold


Fetch first available date on a month switch event

This PR closes #153

Available dates are collected from an already defined function findAvailableDayInMonth

UPDATE

This commit also includes the fetch of the closest date on a layer switch event. This is done, since there is a possibility that no available date might be found within the selected month.

Please check instance in http://homeless-giraffe.surge.sh

Looking good from UX perspective. Can we update the alert message to read:
No data was found for the layer '10-day rainfall estimate (mm)' on 2019-04-25. The closest date, 2019-04-21 has been loaded instead.

@JorgeMartinezG let's avoid force-pushed if you can, they make it harder to follow the git history and for others to review just your latest changes ;)

Looks good from my side


Link to demo missing in readme

Congrats on the v1 release!
I noticed that examples/demos are missing from the documentation. I believe this repo is supposed to be the demo application for this library. It would be nice to link to it in the readme.

Hi @boraozgen,
I've created #46 to add this to the README and will close this issue when merging. Thank you


[Video player] React: image overlay enhancement

User Story

As a [user role below]:
Carbon for ibm.com developer

I need to:
create/change the Video player

so that I can:
provide the ibm.com adopter developers components they can use to build ibm.com web pages

Additional information

Story within Storybook with corresponding knobs
Utilize Carbon
See the Epic for the Design and Functional specs information
Updated Functional specs
Visual QA review is not needed for these changes.
Prod QA testing issue (#6194 )

Acceptance criteria

[ ] Built as a pure React component/variant
[ ] Include README for the react component and corresponding styles
[ ] Add any necessary stable selectors
[ ] Create codesandbox example under /packages/react/examples/codesandbox and include in README
[ ] Minimum 80% unit test coverage
[ ] Update the Carbon for ibm.com website component data file to be sure the web site Component Status and Storybook links are correct
[ ] If a design is provided, the Designer is included as a Reviewer in the Pull Request
[ ] Provide a direct link to the deploy preview for the designer in the Pull Request description
[ ] A comment is posted in the Design QA issue, tagging Designer, when development is finished
[ ] The Storybook link is added to the Design QA issue for their testing
[ ] A comment is posted in the Prod QA issue, tagging Praveen when development is finished

Closing as the video image enhancement will be managed as a sub-task under the additional focus status epic  (#5514 )

PR #6841 was linked in error.  It should have been linked to issuse #5505.


Fixes issue with not sending CORS headers when a fatal error occurs.

Whenever there is a fatal error, instead of showing a server error message the javascript client shows a network error due to the CORS headers not being added by the middleware. I've added a work around for this scenario that Laravel's HTTP kernel uses to transform an exception into a response object.

I would love this!

This isn't the right way to do this since the HttpKernel already wraps the pipeline with the exception handler.
Instead you should override the ExceptionHandler's render() method. To the output of the parent method the headers should be added.

After a bit of thinking the better solution is to implement a decorator for Illuminate\Contracts\Http\Kernel.
This decorator should forward all the method calls except the handle, which adds the header. The kernel can be decorated in a service provider by using the $this->app->extend() method.
The only thing that bothers me with this approach is that the CORS header will always be applied, even to routes not having having the CORS middleware attached. I don't think this is desired.

 I have another way of handling this on my mind. Let's see if that works.

I don't think this is still required to catch errors.

Or maybe only for route middleware. Ont what version are you testing this?

If a middleware throws an exception, then this could still not get added, I suppose.

@barryvdh I tested it on v0.11.3. One issue that I am currently facing is that on production usage, The CORS headers are not being added for group middleware use when there's any error (excluding route not found exception) but on tests, it works just fine.
I also see there's a listener that gets registered for the post-request event. I am running long lived applications using https://github.com/spiral/roadrunner and there are public and private APIs, and I don't want CORS on the private APIs that gets added.
@GrahamCampbell but if there is an exception shouldn't the middleware stop altogether?

Closing this for now. Can you try with the latest verison, with global middleware?


Performance degradation on quering by composite index with not unique index from linked record

OrientDB Version, operating system, or hardware.

v2.2.12

Operating System

[ x] MacOSX

Expected behavior and actual behavior
I have follow database structure:
create class User
create class Social

create property Social.type string
create property User.social LINK Social

And indexes:
create index User.social unique
create index Social.type notunique

I expect, that queries:
1) select from User where social.type = '123' LIMIT 1
2) select from Social where type = '123' LIMIT 1

should have ~same performance.
In case when Social.type  has no or minimal repeated values it's true. but when values often repeats, performance of 1 query degraded.
For example, when Social.type has same value on all records, first query - about 2sec against second query - some millis.
In my project Social.type can be only two values, so performance is bad.
Possible ugly workaround run query against indexes directly:
select from INDEX:Social.type WHERE key = 'vk' LIMIT 1
//then using result from above
select from INDEX:User.social WHERE key = '#92:137604'

So problem in sql executor i think.
Steps to reproduce the problem
create class User
create class Social

create property Social.type string
create property User.social LINK Social

And indexes:
create index User.social unique
create index Social.type notunique

Inserts 100000 records, where 'Social.type' will be same on all Social records and run both queries above.

Note, that if I add some statement to beginning:
select from User where gold = 9999 and social.type = '123' LIMIT 1  it's ok.
And change order:
select from User where social.type = '123' and gold = 9999 LIMIT 1   - not ok. So it's a bug of course.


Sometimes the whole tile can't be filled in the image editor on Chrome

Describe the bug
Sometimes the whole tile can't be filled in the image editor
Steps to reproduce the behavior

Navigate to https://arcade.makecode.com/beta
Scroll down to "Tutorials" and open "Setting the Scene" and drag block to editor as tutorial
In the 6th step to fill the whole tile with one color in the image editor

Expected behavior
The whole tile can be filled in the image editor
Actual behavior(Chrome)
Sometimes the whole tile can't be filled in the image editor

Desktop (please complete the following information)
OS: Windows
Machine build: 17763.1.amd64fre.rs5_release.180914-1434
Browser: chrome(71.0.3578.80)
Additional context
This bug is not very stable, please try tutorial "Simple Extensions" steps one by one

dup of https://github.com/Microsoft/pxt-arcade/issues/332


Async primitives

This PR contains primitives for synchronization and concurrency management:

Resource to wrap allocation/cleanup of (currently mostly computation) resources in different layers of safety
Semaphore, because it's useful
Additionally, the specification of Async.await in light of locking Sources, that care about there result being used (like Semaphores which the consumer might want to reset on cancellation), was clarified and implemented. Now, cancellation will be ignored if it happens after a listener lock acquire that leads to completion. Still, cancellation can be requested synchronously without waiting.

I squashed the commits now without changing the overall code diff before/after.
The tests failure we just had showed a minor mistake in the test conception.
Should all be solved now. Merge as you are :)


hints for how to use BUILD_SETTINGS.conf

I think the addition of BUILD_SETTINGS is a nice touch.  But it wasn't obvious why my build was failing with a gcc message.
I think a message in README.md about how to set it would be helpful.  For my system (debian12, clang14)  I simply did this
ln -s BUILD_SETTINGS.conf.clang BUILD_SETTINGS.conf

this is a minor nit.  It worked seamlessly after.

I switched to GCC on purpose to enable debugging and to make it easier to build on *BSD. I don't test builds with clang anymore. But I agree with you that it should be documented better.
What GCC errors where you getting?

It's really a shame because Clang adds a lot of new language features and brings the experience closer to MacOS.

It's really a shame because Clang adds a lot of new language features and brings the experience closer to MacOS.

I had to "back-port" Sound, Desktop and System kits to use gcc. It was a lot of effort. The upside is that I can finally use debugger and profiler and GSDE does not required latest and greatest Linux to compile anymore.

Just for your information,  the applications and libraries I am developing all need Clang with ARC, blocks and libdispatch.
I got a little tripped up with the latest build not creating libdispatch.  In 02-build_libdispatch.sh there was an "exit 0" line I needed to comment out.
#!/bin/sh

. ../BUILD_SETTINGS.conf
# exit 0
echo "=================="
echo " libdispatch"
echo "=================="

Once I commented out the "exit" the environment built fine.
The use of ../BUILD_SETTINGS.conf let me easily build a clang-based environment, like I need.

fixed
Thanks!


Adding support for Mixture of Depths Training

What does this PR do?

Added support for Mixture of Depths
Added example usage for MoD
Modified the Readme file

I couldn't fine-tune the llama2 7b model based on this pr, it always raises:
  File "/lib/python3.11/site-packages/MoD/MoD.py", line 61, in forward
    processed_tokens[i][selected_mask[i]] = self.block(
                                            ^^^^^^^^^^^
  File "/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/transformers/models/llama/modeling_llama.py", line 739, in forward
    hidden_states, self_attn_weights, present_key_value = self.self_attn(
                                                          ^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/transformers/models/llama/modeling_llama.py", line 670, in forward
    attn_output = torch.nn.functional.scaled_dot_product_attention(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: The expanded size of the tensor (55) must match the existing size (56) at non-singleton dimension 2.  Target sizes: [1, 32, 55, 55].  Tensor sizes: [1, 1, 56, 55]

Do you have any ideas?

it also has some problem when --disable_gradient_checkpointing was enabled

I suspect it might be a cache issue (the first problem), and I'll investigate further to determine the root cause.

Cool I'll fix on your branch so


unique id field required soon

LineageOS is soon going to be using a new version of their "Updater" application found here:
https://github.com/gmrt/android_packages_apps_Updater
The json parser is now looking for an additional "id" field.  Currently, the response for "id" is "null" with this OTA Server.
The new Updater is looking for these fields:
https://github.com/gmrt/android_packages_apps_Updater/blob/master/src/org/lineageos/updater/misc/Utils.java#L63-L68
So, the solution to fixing the OTA Server to work with the new LineageOS Updater is to generate a unique number for the "id" field.

Wow, thanks! I'll try to apply a patch. Sounds quite easy to be accomplished.

@syphyr Can you please try to checkout the latest master status?

Yes, the new "id" field is recognized and everything is working as expected.  Thank you for the great work!

Always welcome, and thank you for the report :)
I'll do an official release later/tomorrow maximum.
Sent from my OnePlus ONEPLUS A5000 using FastHub


refactor test/unit/specs/wrappers/error-wrapper.spec.js

This is related to #302 .

Thanks 🙂
the wrapper-array spec file also imports from src—https://github.com/vuejs/vue-test-utils/blob/dev/test/unit/specs/wrappers/wrapper-array.spec.js


Right click in grid search field should clear contents of field

Hope you don't mind this small flurry of PRs. :)
I'm very used to being able to right click in a search field to clear the field contents, as are most people. And it would sure be nicer than hitting backspace a bunch of times. Small thing that would really improve usability.
Thanks! Having much fun automating things right now.

Do you want it to focus / select again when doing right  click, or just remove stuff? Maybe only select in autoselected mode?

Hm, I guess I'd expect it to select the field if it isn't already as well as clear it. Typical workflow would be you searched for something, now you want to find something else, so you right click it and start typing again.


[BUG]

Describe the bug
The Plugin doesn't work in WSL enviroment
To Reproduce
Just install on the wsl side as requested by the tool

Failed to execute pdftocairo. Report bug with postscript file to dev. That's also the message that pops up once you try to run this plugin in wsl

I believe you will need to install "poppler-utils" to be able to execute pdftocairo. I will update the README to address that. Please let me know if that does not solve your issue.
sudo apt-get install poppler-utils -y


Fix DF5 temperature 2-complement conversion

65534->65536

@io53 please check if this is done, found from repo


feat: add "boundPrivateKey" util

This PR adds a utility for bounding private keys between 1 and the SECP256k1 order minus 1.
As shown by the discussions in https://github.com/foundry-rs/foundry/issues/3031, it is not obvious that private keys have to be bounded between 1 and the curve order minus 1.
Note: I used the console log-free _bound due to security reasons (avoiding accidental leaks of private keys).

Looks like the tests are failing since it can't access the SECP256K1_ORDER var, otherwise lgtm!

Whoops! Fixed now.
Thanks for the quick review.


No stop command

You have a start command but no stop

I added that in #283, but it hasn't been merged yet.

Will be merged soon


fixed minor layout items

Removed the scroll bars on the x and y plane. Centered the "loading" image.

@TheShonuff Thank you!
Do you mind fix the conflicts?

That was a very interesting learning exercise in merging / pulling / rebasing...

Great, thanks!


Renaming Execution Manager component to Template Manager

This pull contains changes w.r.t renaming of Execution Manger component to Template Manager.
Please note that these changes are incorporated in following versions;
carbon.analytics.common: 5.1.0-SNAPSHOT
carbon.analytics: 1.0.6-SNAPSHOT
carbon.event.processing: 2.1.0-SNAPSHOT
Please review and merge

Please close this, and merge #1057 instead.


Modified package.json to work with UglifyJS3 ("Resolves" #98)

Modified the commands to uglifyjs in the package.json scripts to comply with UglifyJS3 format for source-map.

Thank you!


Fix bundle syntax errors with pathinfo: true and */ in request

Please check if the PR fulfills these requirements

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
#1759
What is the new behavior?
*/ in a request is escaped to *_/, just like in https://github.com/webpack/webpack/blob/v1.13.2/lib/FunctionModuleTemplatePlugin.js#L28
Does this PR introduce a breaking change?

[ ] Yes
[X] No

Other information:
Closes #1759
Before:
module.exports = __webpack_require__(/*! ./main.js?*/ */1);

After:
module.exports = __webpack_require__(/*! ./main.js?*_/ */1);

Also fixes a completely superficial comment alignment problem
Before:
/*!********************!*\
  !*** ./main.js?*_/ ***!
  \********************/

After:
/*!*********************!*\
  !*** ./main.js?*_/ ***!
  \*********************/

Friendly ping

yeah, there are more instances where it could be problematic.
i. e. https://github.com/webpack/webpack/blob/master/lib/dependencies/ModuleDependencyTemplateAsRequireId.js#L11 and other dependencies.
Maybe it clever to create a shared module for the comment stuff and use it all over.

webpack 1 -> closing


Update Insights navigation links

The Insights navigation pane does to highlight properly when navigating between pages. For example, the user can jump from the Cost Management's overview page via a link to the OpenShift details page.
Apparently, we now have an API to call when navigating within the app.
"This PR adds option to call app nav from application itself. Just call insights.chrome.appNavClick({ id: 'page-id'}) and correct item in navigation will highlight."
See https://github.com/RedHatInsights/insights-chrome/pull/247

When I call insights.chrome.appNavClick({id: 'ocp-on-aws'}), the navigation pane collapses. I cannot see the navigation selection in the navigation pane.
Filed Insights issue:
https://projects.engineering.redhat.com/browse/RHIPLAT2-756

@dlabrecq The links for details pages now work correctly, however, navigation still shows "Overview" when clicking "Add sources" button, and "Catalog Sources" when I click "Cost Management Sources" in the navigation

This is a known issue. Insights owns/controls that navigation pane, so we've created the Insights issue below.
https://projects.engineering.redhat.com/browse/RHIPLAT2-762


error

am on windows 10 node.js is ver 8
paste bin off out put : https://pastebin.com/qh416Rts
paste bin of debug log : https://pastebin.com/sA8KwAd7
thanks

Do a 'npm install' after that 'npm run update' while beeing in the root directory of the project.

C:\Users\bob\Desktop\New folder (10)\node-csgorc-master>npm install
npm WARN<EMAIL_ADDRESS>No repository field.
up to date in 0.252s
C:\Users\bob\Desktop\New folder (10)\node-csgorc-master>

i did do an npm install in the node-csgorc-master folder and i am running latest ver of node

What about the npm run update?

yea i did update
C:\Users\bob\Desktop\New folder (10)\node-csgorc-master>npm run update

<EMAIL_ADDRESS>update C:\Users\bob\Desktop\New folder (10)\node-csgorc-master
node ./updater.js

C:\Users\bob\Desktop\New folder (10)\node-csgorc-master>

Please post your nodejs -v and npm -v here and could you check if a folder xxx(name of your folder)/protos/ exists?

C:\Users\bob\Desktop\New folder (10)\node-csgorc-master>npm -v
5.0.3
i dont know what nodejs -v how to do that
here is one drive of all files in folder : https://1drv.ms/f/s!Au4gPEs0gPxGh1FH-f_MqhGXv9LA i cant find a protos folder only a java file and a folder that has protos at the start

Seems like your node isn't able to fetch the latest protos (or more likely hasn't the permissions to save them into ./protos). As long as there is no fix, you could try to copy my protos folder into your project directory: http://noteefy.de/cs/protos.zip

it dont give error now but still no report. askwrites was working for me then suddenly stoped working titan report bot dont work for me vapor bot dont work dr pepper dont work  out put
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd C:\Users\bob\Desktop\New folder (10)\node-csgorc-master
C:\Users\bob\Desktop\New folder (10)\node-csgorc-master>npm start

<EMAIL_ADDRESS>start C:\Users\bob\Desktop\New folder (10)\node-csgorc-master
node app.js

SteamID64:<PHONE_NUMBER>8939636
[1] Report
[2] Commend
[0] CANCEL
Choose one from list [1, 2, 0]: 1
Match ID:<PHONE_NUMBER>910547506
[dabasi14] Logging in...
[dabasi15] Logging in...
[dabasi16] Logging in...
[dabasi17] Logging in...
[dabasi18] Logging in...
[dabasi19] Logging in...
[dabasi20] Logging in...
[dabasi21] Logging in...
[dabasi22] Logging in...
[dabasi23] Logging in...
[dabasi25] Logging in...
[dabasi15] Sentryfile found!
[dabasi16] Logged in!
[dabasi25] Logged in!
[dabasi21] Logged in!
[dabasi17] Logged in!
[dabasi22] Logged in!
[dabasi18] Logged in!
[dabasi23] Logged in!
[dabasi16] Reporting...
[dabasi17] Reporting...
[dabasi22] Reporting...
[dabasi21] Reporting...
[dabasi25] Reporting...
[dabasi14] Logged in!
[dabasi18] Reporting...
[dabasi19] Logged in!
[dabasi15] Logged in!
[dabasi23] Reporting...
[dabasi14] Reporting...
[dabasi15] Reporting...
[dabasi19] Reporting...
[dabasi20] Logged in!
[dabasi20] Reporting...
;c

This error occurs if your accounts don't get accepted by the game collector. Did you wait 12 hours since the last report and are all accounts non-vac and with a validated csgo game key?


Issue in siteimprove: Pages with low text-to-code ratio

We see in Siteimprove that almost all our pages have a low text-to-code ratio: https://my2.siteimprove.com/SEOv2/550893/Recommendations/CodeTextRatio. It is probably true for some pages, but e.g. the HSE page has a lot of text and is still flagged with the issue: https://my2.siteimprove.com/Inspector/550893/SeoV2New/Page?pageId=49862221899&impmd=EFD4B031A902A9835A39E9F85FFF6A77&pageMode=Content#/issue/codetextratio/73
Can you please look into it, as it seems to us that it could be more the code that is an issue that the content, even if it is categorized as a content issue?

https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.equinor.com%2Fsustainability%2Fhealth-safety-and-security

Technical changes


Cluster driver remove bug fix

Fix for cluster driver nil error
Problem: A cluster driver could be deleted when there were active
clusters that depended on that driver.
Solution: The API will not crash if a cluster driver is unable to be
removed. Kontainer drivers are no longer able to be removed via the UI
or API if there is a cluster that uses that driver.
https://github.com/rancher/rancher/issues/18460

LGTM

lgtm


change column name UID to USERID, for issue #62. Tested in HSQLdb, bu…

(but …t not in Oracle yet)
Dear Professor Lupin,
here is a pull request for the UID/USERID issue. All the tests pass with a HSQLdb yada index, at least with
mvn clean package, with profile test_hsqldb...
the changes on the oracle file should be an improvement over the previous 'mysql sql' that was in the file...
cheers!
,

looks good, will merge once i set up my new dev env on my new machine, I want to have the other dbms scripts ready to go and run the full test suite at that time.


PostgreSQL migration guide

Pitch
We have two migration guides in our how-tos. MongoDB and MySQL.
As some customers want to migrate from PostgreSQL it would also be interesting if we could have one of these.
A possible path could be:
https://www.postgresql.org/docs/9.2/sql-copy.html
The Azure SQL migration guides are really nicely done.
https://datamigration.microsoft.com/scenario/postgresql-to-azurepostgresql?step=1
Launch checklist
Follow the launch checklist to get new content ideas from pitch to published. Use the comments on this issue to provide the information requested.
This issue will be assigned to the initial reporter, by default, as a request work on the launch checklist. You may want re-assign the issue to request that someone else works on it.

[ ] Provide context

Who is the audience for this content?

What problem should this content solve for the reader?

What is the best format for this content (e.g, blog post, docs tutorial, etc.)?

Why is this content important for the company?

How urgent is this content?

[ ] Identify an author
The ideal author knows the most about what has to be written about. Typically, this is a domain expert or someone with relevant hands-on experience.
The @crate/tech-writing team can help locate an author.
Alternatively, a @crate/tech-writing team member can author the content. Note, however, this may slow things down if the technical writer has to learn the topic before writing about it.
Once an author is identified, this issue should be assigned to the author.

[ ] Create an outline
You have a description of the content idea. Before writing starts, that description should be turned into an outline.
You can think of an outline as a set of bullet-point notes that summarizes the content structure. A good outline is the starting point for a draft.

[ ] Produce a first draft
The author should produce a first draft, using the outline as a guide.

Once the author has produced the first draft, editing can begin. If the author is not a technical writer, a member of the @crate/tech-writing team will provide editorial support and help the author bring the piece to fruition.

@joemoe we changed the way @crate/tech-writing use GitHub labels. accordingly, I have re-triaged this issue
NOTE: I have edited the issue description to match the issue template for new content pitches
please review the launch checklist (above) and let me (or any @crate/tech-writing team member) know if you want help or have any questions


FAQ iOS Error 13

Closes https://github.com/corona-warn-app/cwa-website/issues/713

DE

EN

@dsarkar
Could you

remove the German error message from the English FAQ and
remove the English error message from the German FAQ?

It would make your update more readable that way.
Also the English error message in the English version does not make sense and it is different to the English error message in the German version! 😕

New issue https://github.com/corona-warn-app/cwa-website/issues/715 opened since this PR is already merged.


C/C++ must be compiled with -O2 not -O3

-O2 has better performance usually, I'm told.

a friend of mine, @rsharifnasab ,  has much more experience.

I tested it and it does not make any change in this case.


[Forwardport] Docs hyperlink on Rancher UI points to Archived docs

Forwardport of https://github.com/rancher/rancher/issues/31860

Tested on Rancher master-head version 55f0bb2
The "Help & Docs" link redirects the user to archived docs: https://rancher.com/docs/rancher/v2.x/en
This is also seen in Dashboard following the doc link in https://.../dashboard/support

Tested on Rancher master-head version 54d4afc
Help and Docs link points to https://rancher.com/docs/rancher/v2.5/en/


Please make me a contributor

Hello :)

You have been added to the repo, please close this issue if it was successful.


Remove cloud6 infrastructure

Cloud 6 was EOLed April 15th, 2018 so we could start
to remove the testing coverage for it to free up
CI ressources for newer products.

Won't this break the Continues Delivery deployment option?

@rsalevsky are we still running ci for the continuous delivery option? where is it running? I've never found it

are we still running ci for the continuous delivery option? where is it running? I've never found it

The job cloud-crowbar-testbuild-pr-trigger is also triggering jobs for the sap-oc org. This is done due to the config in:
https://github.com/SUSE-Cloud/automation/blob/master/scripts/github_pr/github_pr_crowbar.yaml#L84-L94

Please combine this PR with this one https://github.com/SUSE-Cloud/automation/pull/2585
Find out, what we need to keep and what parts can go.
In case we need to keep Cloud 6 CD then #2622 should not remove support for cloud6.


Cross-build tiller as well

cc @ixdy @technosophos @michelleN PTAL and merge so that we can get this into the next release
With this you can release tiller for all platforms with just make docker-push as usual
Fixes: https://github.com/kubernetes/helm/issues/1948

This change is

Thank you. This is something we very much want to do. But we have a problem.
Our limitation on this is that we are bumping up against the timeout limit on CircleCI. We have an outstanding issue to address that problem, and are working on it behind the scenes. But this may not make it into 2.6 because of that.

@technosophos I'm fine with using CircleCI to build only amd64 for now and push/build everything (make docker-push) manually when releasing. We don't have to make the CI cross-built from day zero, but it would be a great improvement to release it for all arches anyway.
What do you think? I can change CircleCI to call sub-docker-push-amd64 instead for CI pushing (if such a thing exist; IDK)

ping @technosophos

We are still bumping up against CircleCI's limit and we have been releasing multiple cross builds of helm each release. It's the same reason why we can't merge #1929.
Thank you for being patient!

a multi-arch manifest list would be the correct way to go IMO.

As per the announcement on the mailing list, Helm 2.15.0 is the last release where we will be merging new features for Helm 2. Tiller has been removed in Helm 3 so I don't see us moving forward with this proposal, so I'm going to close this as something we do not plan to merge in the 2.15 timeframe.
That being said, the tiller-multiarch project has been providing amd64 tiller images for Helm 2, so I'd suggest focusing efforts on that project going forward. Thanks!


Run 'gofmt -w' over the code

Issue #, if available:
#17
Description of changes:
Run 'gofmt -w' over the code using go1.20
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Done in https://github.com/aws/session-manager-plugin/commit/e3d6eeb14070498940e9d4798ab3bb30b6e6b677


translating header to FR & NL

used vue-i18n-next via CDN
the translations are currently within /src/i18n.js
minimal additions needed to the Vue compontents
inside template tags, syntax looks like {{ $t("about")}}
this could be used for all of the app, if everyone agrees

messages: {     ENG: {       about: "About",       volunteers: "Volunteers",       contactus: "Contact Us",     },     FR: {       about: "À propos de nous",       volunteers: "Bénévoles",       contactus: "Contactez nous",     },     NL: {       about: "Over ons",       volunteers: "Vrijwilligers",       contactus: "Contacteer Ons",     },   },


Cloning entity in popup dialog Box (on a panel dialog)

hey all,
2 questions regarding CLONING ENTITY feature :
1/ I have set  @Serenity.Decorators.panel() decorator on my dialog.
Then i have enabled entity cloning (this.cloneButton.toggle(this.isEditMode());  on updateInterface().
Now when i click on 'Clone' button i would like it displays a popup window and not another panel in the existing panel (hard to identify it's new entity).
It looks like the new dialog is inheriting from parent decorators (when dialog is not panel i have 2 popup dialogs).
Is that possible ?
2/ When cloning is done, is that possible to add an additional process.
I used the getCloningEntity() prior to cloning but could not find an event related to return of cloning operation (except onSaveSuccess() but i cannot identify cloning operation from the insert).

haven't tested this myself, but perhaps a minor tweak to the clone buttons onClick event would get the result you're after. if you look at the code below from EntityDialog, the call to open the dialog on line 967 has 'null' for the 'asPanel' param, which meas it's using the default, which is true in your case. override the onClick event for the clone button (or add your own button) and change 'asPanel' param to false.
https://github.com/volkanceylan/Serenity/blob/ea41e1f28fc0aa0bae911738f76487acb0de92af/Serenity.TypeScript.CoreLib/UI/Dialogs/EntityDialog.ts#L952-L970

it works. Thanks !


Github integration section in the README

What are the relevant tickets?
N/A
What's this PR do?
Adds a README section on how to enable github integration
How should this be manually tested?
Read/follow the instructions see if they make sense.

Codecov Report

Merging #248 (165c2ba) into master (fe26199) will increase coverage by 4.53%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #248      +/-   ##
==========================================
+ Coverage   87.96%   92.50%   +4.53%
==========================================
  Files         119       58      -61
  Lines        3316     1254    -2062
  Branches      485      271     -214
==========================================
- Hits         2917     1160    -1757
+ Misses        365       93     -272
+ Partials       34        1      -33

Impacted Files
Coverage Δ

content_sync/tasks.py

content_sync/decorators.py

main/permissions.py

content_sync/serializers.py

main/celery.py

main/utils.py

content_sync/models.py

content_sync/conftest.py

ocw_import/tasks.py

main/s3_utils.py

... and 51 more

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 fe26199...165c2ba. Read the comment docs.


fix(template): containerd plugin name

to fix error

failed to load TOML from /etc/containerd/config.toml: invalid plugin key URI "containerd.runtime.v1.linux" expect io.containerd.x.vx

Will this crash on older flatcar nodes again? 🤔


Voxel features are all zero

voxel_features, voxel_coords = self.voxelization(features, coords)
right now I am using CUDA 11.3 and Pytorch 1.12 and I have the exact issue, without giving any error, the code runs and produces an all zero tensor for the voxel volume despite that point cloud has non-zero features.
I am wondering if you tried the code with a more recent version of CUDA and Pytorch

We haven't tried the code with the latest CUDA and PyTorch. Could you try out the older CUDA and PyTorch to see whether that works? Thanks!

I am so glad to receive your reply. As you said, I have also tried pytorch1.5 and cuda10.2, and the API is torch check, but the problem still hasn't been solved. Can you guess where the problem might be?

At the beginning, I didn't know that the voxels before avg were all 0, and I tested the model trained in this case, and it was strange that the classification IOU was normal, ranging from about 70-95%. Can you have a reasonable explanation?


Add gyroid endpoints

Completes this request for gryoid endpoints: https://github.com/Nookipedia/nookipedia-api/issues/68

Apologies for the (super long) delay - will get this merged and deployed, thank you!


Add woff2-Support

I rebased this on top of master with a couple of changes (updated README.md, help text reflow, fix the case label to woff2 instead of woff). Thanks for the patch.


Non-rectangular Diagram with mask() and createGraphics()

Hello @Dozed12 !
Like kitchensjn on this issue : https://github.com/Dozed12/p5.voronoi/issues/3, I wanted to make voronoi with others shapes than a rectangle.
I tried to follow your advice by using mask() (with the mask being a circle). However with voronoiDraw nothing happens like in the picture below whereas with a rectangle we see that the mask is applied.
Do you have an idea about what could be the problem ?
Thanks and have a nice day !
Duaran
//////////////////////////
With voronoi as "image" and circle "mask":

With rectangle as "image" and circle "mask" :

You can find my code below :
let masks;
let imgs;
function setup() {

	createCanvas(800, 800);
	noSmooth();

	//Settings for drawing(these are the default values)

	//Set Cell Stroke Weight
	voronoiCellStrokeWeight(1);
	//Set Site Stroke Weight
	voronoiSiteStrokeWeight(3);
	//Set Cell Stroke
	voronoiCellStroke(0);
	//Set Site Stroke
	voronoiSiteStroke(0);
	//Set flag to draw Site
	voronoiSiteFlag(true);

    noLoop()

    imgs = createGraphics(width, height);
	masks = createGraphics(width, height);
}

function draw(){

    // for(let site=0;site<=10;site++){
    //     let result = random_inside_circle_voronoid(width/2,width/2,100);
    //     imgs.voronoiSite(result[0],result[1]);

    // }
    // imgs.voronoi(width, height, false);
    // imgs.voronoiDraw(0,0, false, false);

    imgs.fill(120,50,80);
    imgs.rect(width/2,width/2,400,400);

    masks.translate(width/2,width/2);
    masks.stroke(1);
    masks.fill(120,50,80);
    masks.ellipse(0,0,300,300);

    let imgClone = imgs.get();
    imgClone.mask(masks.get());
    image(imgClone,0,0);

}

function random_inside_circle_voronoid(Xcenter,Ycenter,r){
    let result = r * sqrt(random(1))
    let theta = random() * 2 * PI

    x = Xcenter + result * cos(theta)
    y = Ycenter + result * sin(theta)
    return [x,y]
  }

Hello Duaran
voronoiDraw draws to the canvas directly so you need to read the canvas to "imgs":
let masks;
let imgs;
let canvas;
function setup() {

	canvas = createCanvas(800, 800);
	noSmooth();

	//Settings for drawing(these are the default values)

	//Set Cell Stroke Weight
	voronoiCellStrokeWeight(1);
	//Set Site Stroke Weight
	voronoiSiteStrokeWeight(3);
	//Set Cell Stroke
	voronoiCellStroke(0);
	//Set Site Stroke
	voronoiSiteStroke(0);
	//Set flag to draw Site
	voronoiSiteFlag(true);

	noLoop()

	imgs = createGraphics(width, height);
	masks = createGraphics(width, height);
}

function draw() {

	for (let site = 0; site <= 10; site++) {
		let result = random_inside_circle_voronoid(width / 2, width / 2, 100);
		voronoiSite(result[0], result[1]);

	}
	voronoi(width, height, false);
	voronoiDraw(0, 0, false, false);

	imgs.image(canvas, 0, 0);

	masks.translate(width / 2, width / 2);
	masks.stroke(1);
	masks.fill(120, 50, 80);
	masks.ellipse(0, 0, 300, 300);

	let imgClone = imgs.get();
	imgClone.mask(masks.get());
	clear();
	image(imgClone, 0, 0);

}

function random_inside_circle_voronoid(Xcenter, Ycenter, r) {
	let result = r * sqrt(random(1))
	let theta = random() * 2 * PI

	x = Xcenter + result * cos(theta)
	y = Ycenter + result * sin(theta)
	return [x, y]
}

Hello,
Thank you for your help and quick answer !