Not able to install any extension

We have written the needed data into your clipboard because it was too large to send. Please paste.

Type: Bug
t Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:769:26471)
2022-12-21 12:31:50.517 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:50.782 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:50.826 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:51.020 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:51.204 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:52.140 [info] [perf] Render performance baseline is 30ms
2022-12-21 12:31:55.355 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:55.380 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:55.396 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:55.397 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:31:59.960 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:32:00.008 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:32:33.458 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:32:33.511 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:33:03.288 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:33:08.131 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:33:08.215 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:33:16.257 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:33:16.310 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:35:03.730 [warning] Settings pattern "keyboard." doesn't match any settings
2022-12-21 12:35:03.780 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:37:09.694 [warning] Settings pattern "keyboard." doesn't match any settings
2022-12-21 12:37:57.942 [warning] Settings pattern "keyboard." doesn't match any settings
2022-12-21 12:38:09.197 [warning] Settings pattern "keyboard." doesn't match any settings
2022-12-21 12:38:11.762 [warning] Settings pattern "keyboard." doesn't match any settings
2022-12-21 12:38:19.680 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:38:19.717 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:38:40.416 [warning] Settings pattern "keyboard." doesn't match any settings
2022-12-21 12:38:54.892 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:38:54.892 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:15.731 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:15.732 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:18.769 [warning] Settings pattern "keyboard.*" doesn't match any settings
2022-12-21 12:40:21.325 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:21.326 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:22.131 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:22.132 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:22.729 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:22.729 [info] Setting search error: Unexpected token : in JSON at position 22710
2022-12-21 12:40:33.730 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:40:33.778 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:46:02.657 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:46:02.690 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:47:21.610 [warning] Editor ID Mismatch: default !== workbench.editorinputs.sidebysideEditorInput. This will cause bugs. Please ensure editorInput.editorId matches the registered id
2022-12-21 12:47:21.819 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:48:33.695 [error] SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
2022-12-21 12:48:33.762 [error] Unexpected token : in JSON at position 22710: SyntaxError: Unexpected token : in JSON at position 22710
at JSON.parse ()
at Object.factory (vscode-file://vscode-app/c:/Users/Amrit.Sharma.ext/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:87:91783)
VS Code version: Code 1.74.2 (e8a3071ea4344d9d48ef8a4df2c097372b0c5161, 2022-12-20T10:29:14.590Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: Yes

Hi @Aerofarmer This issue is related to VS Code, please file it in https://github.com/microsoft/vscode/issues

Maybe duplicate of https://github.com/microsoft/vscode/issues/172989
Please file an issue in GitHub repo as Madhuri suggests
fyi @sandy081


Tooltip no longer working with ref's in v8

components: UncontrolledTooltip, Tooltip
reactstrap version #8.0.0
import method es
react version #16.8.6
bootstrap version #4.3.1

What is happening?
The tooltip no longer show on mouse over whereas it worked fine in v7.1.0. I also tried changing this to a stateful Tooltip, which also did not work.
Error message in console
No error shown
Code
export default class SimpleTooltip extends React.Component {
  constructor(props) {
    super(props);
    this.tooltipRef = React.createRef();
  }

  render() {
    const {
      text,
      tooltipText,
      placement,
      textClass,
      tooltipClass,
    } = this.props;

    return (

          {text}

        <UncontrolledTooltip
          placement={placement}
          target={this.tooltipRef}
          className="tooltip"
          innerClassName={tooltipClass}
        >
          {tooltipText}
        </UncontrolledTooltip>

    );
  }
}

I have the same issue. It stopped work with reactstrap version upgrade

Hi @TheSharpieOne, will this bug be triaged or prioritized any time soon? It's blocking my team from upgrading.

Hi @sarah-clements. The code provided appears to work in the latest version (8.2.0). Check out this demo: https://stackblitz.com/edit/reactstrap-v8-fpj8sq?file=Example.js
The only thing I can think of is that you might be running into #1457, but if that was the case, you should see some errors in the console.

@TheSharpieOne This still doesn't work as expected. If there is more elements on the page than just one line of text, the tooltip placement is off and is shoved further down from where it should be (in your example, tooltip should be aligned to the "hover" text). Any ideas?


Support for nullable Primitives

The schema generated by NJsonSchema doesn't looks like supporting nullable primitive types. Instead the schema looks similar to that of non-nullable types, for example int, datetime & string. This is a feature request.

Can you post some sample code and the expected outcome...

I am not sure what the expected outcome would be. I was using the generated schema for the following class to feed JsonEditor. Previously I used JSON.Net schema generator and JsonEditor would give me an option to set Name and Size either null or a value. However when I used NJSONschema generator json-editor wouldn't give me any optional text boxes, rather they look like required properties.
I switched to NJsonSchema to get the benefits of Json version 4. Not sure if version 4 wouldn't allow nullable properties. So.
public class ClassRoom
{
public int Id {get;set;}
public string? Name {get;set;}
public int? size {get;set;}
}

The class:
public class ClassRoom
{
    public int Id { get; set; }

    public string Name { get; set; }

    public int? Size { get; set; }
}

With NJsonSchema:
{
  "typeName": "ClassRoom",
  "additionalProperties": false,
  "type": "object",
  "required": [
	"Id"
  ],
  "properties": {
	"Id": {
	  "type": "integer"
	},
	"Name": {
	  "type": "string"
	},
	"Size": {
	  "type": "integer"
	}
  },
  "$schema": "http://json-schema.org/draft-04/schema#"
}

With Newtonsoft.Json.Schema:
{
  "type": "object",
  "properties": {
	"Id": {
	  "type": "integer"
	},
	"Name": {
	  "type": [
		"string",
		"null"
	  ]
	},
	"Size": {
	  "type": [
		"integer",
		"null"
	  ]
	}
  },
  "required": [
	"Id",
	"Name",
	"Size"
  ]
}

So if we do not provide a "Required" attribute, shouldn't the JsonSchema4.Validate(...) allow nulls (say for _int? size _ above)? I see a validation error - NJsonSchema.Validation.ValidationErrorKind.IntegerExpected when I provide a "null" in the JSON.

Can you provide the exact schema end data you tested with?

NJsonSchemaTest.zip
You can check the attached console app for various scenarios. Let me know if I'm missing something.

For AnyOf, you need to check the AnyOf collection and not the type of the property...

... None is correct in this case

see https://github.com/json-schema/json-schema/issues/224, so the validator works correctly... Only problem is the generator

So, the link says the point 2) above should be supported ("Size": { "type": ["integer", "null"] }). But it doesn't seem to work in the sample I attached.

Point 2 is fixed with v1.33 https://github.com/NJsonSchema/NJsonSchema/commit/28afe4996159f1191a1e8ccb251d29eec926c92d

Point 1 is correctly validated as invalid

Point 3 is correctly validated as valid (schema type is None and AnyOf collection is loaded)

The only open problem: The generated JSON Schema is wrong and should look like the second schema (Newtonsoft.Json.Schema)... Ill look into this ASAP.

Thanks, point 2 is what I'm interested in. Shall wait for the NUGET to be available.

The nuget will be available in one or two days, ill fix the generator too and have to test everything..

Ok, v1.34 is live.. please check if everything is working for you and what has to be fixed...

OK, found another discrepancy (w.r.t **Items **property)...Shall raise a new issue.

Yes, please open a new issue. Currently i mostly use the code generation part to pus http://nswag.org this is why the validation part may have some flaws...


Update package.json

Add "eleventy-plugin" to keywords.

Thank you!
I'm going to update this repository soon (as I update my own codebase to use Eleventy 2 canary).


Allow Recipe to load manifest.yaml file

This is required by AX pod to be able to render feedstock recipes when there is no .gitmodules but there is a manifest.yaml file.

@cbouss This seems to work for AX needs but I might be hacking things and there should be more changes included.

Checks fail due to bare except used, but this seems not to be a problem with  my changes.


Make sure tooltip is readable

You can't read the tooltip when hovering over the last items.
I think we should change the tooltip to be an html element, and therefore have more control on how it shows

Also, take into account x position because on large text, reading items difficult or impossible.


suspend/start actions are now properly handled by UI

@dharezlak Is this ready to be merged?

Yes.


Raise more specific Exceptions

Hi!
It would be nice if the Client would raise more specific exceptions. E.g. if authentication with the server failed, a UnicoreAuthenticationError (or whatever) would be better than the generic Exception here
Everything works as intended but some code checkers/analysers will complain about this. E.g. PyCharm says "Too broad exception clause" 😄

good point - thanks!


update twitter ecosystem version(s)

due to the constant breakage we've had to go to a strict conflict manager for builds. this fixes my problem with the twitter versions breaking things, and as a side effect I updated the cats version.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #74   +/-   ##
=======================================
  Coverage   52.47%   52.47%
=======================================
  Files           9        9
  Lines         202      202
  Branches        3        3
=======================================
  Hits          106      106
  Misses         96       96

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 aeb8fd4...68232aa. Read the comment docs.

:+1:, will publish tomorrow.

Sorry to bother but it looks like the release never happened.

@chris-vale-ck It's on its way to Maven Central!


Sweep: [FEATURE] Support for common pydantic types

Privileged issue

[X] I'm @tiangolo or he asked me directly to create an issue here.

Issue Content
It will be great to add support for common pydantic types, namely EmailStr and HttpUrl. Possible?
The obvious use case is to pass and emails and HTTP URLs strings as command line parameters and being validated automagically - similar to what FastAPI does.

sweep: Retry

sweep: Retry


[FEATURE] Please make SKBitmap.IsDisposed.Get() PUBLIC (instead of 'protected internal').

Is your feature request related to a problem?
When I mistakenly dispose of an SKBitmap in our code, but someone else has a reference, I don't have any way (without throwing an exception) to find this out!   So I end up with exceptions randomly for this condition.
To prevent these exceptions, for cases where this is possible, it sure would be nice if I could do a safety check with "skbitmap.IsDisposed" -- but I cannot, because the getter is Protected, instead of Public.
Please make this Public!  I would sure appreciate that!
Describe the solution you would like
public class SKBitmap
{
public bool IsDisposed => isDisposed == 1;   // instead of protected internal
}
Describe alternatives you have considered
n/a
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

As a workaround, you can use Reflection to invoke the protected method.

Thanks for the tip, and am aware of this option.   We're just going to deal with it "as is" -- our kludge for now is just "trying to access "AlphaType" property inside a Try/Catch -- where an exception indicates "Disposed".... not sexy, but gets the job done for now, about as well as Reflection -- since it still happens scantly, and so the cost of Exception throwing isn't too significant.
So posted here, because it seems pointless (from what I can tell) that "IsDisposed" isn't simply made 'public.'

Hoping to keep this issue alive, I subscribe to the request of the OP.
in multithreaded scenarios it can become very hard to keep track of what object has been disposed.
Having the option to check the IsDisposed property on a SKPath or SKBitmap (just to name a couple) would be literally a life saver, since trying to access a disposed object still leads to an fatal exception, BTW something else that should be investigated.
And reflection is not a reliable option for commercial software that needs to be either obfuscated or machine compiled.
Thank you.

This is admittedly tricky in multithreaded scenarios. I don't think making this member public would really help in those cases, because another thread could always come in and dispose of it after you'd checked IsDisposed - so no matter what, you need some synchronisation. A couple of ideas:

If you don't have thousands of objects (so, probably not so great for SKPaths), just let the GC & finalizer do their job
Make a reference-counting disposable wrapper to manage the object lifetime, like https://github.com/StephenCleary/Disposables/blob/main/src/Nito.Disposables/ReferenceCountedDisposable.cs

Thanks for tips @ojb500, I'll look into it.
Bottom line is, SkiaSharp objects that inherit the IDisposable interface raise a fatal memory exception that crashes the application if you try to evaluate a property after they have been disposed, when they should raise an catchable ObjectDisposedException exception.
Hopefully someone from the development team will read these posts.

Accessing an object after it has been disposed is a programming error.
If every method call and property access needed to check for disposal and potentially throw ObjectDisposedException, that would impose a non-negligible runtime cost. When you access a disposed SKObject you're probably going to dereference a null pointer, and that can and will crash your application
You can try to test if (object.Handle == IntPtr.Zero) but the race condition still exists.


Add the copy-back of the test results and fix the junit config

Signed-off-by: David Festal<EMAIL_ADDRESS>

@kbsingh could you review this PR please ?


Use /content FP directory for overlaying, simplify the integrated FP

@objectiser could you please review and eventually merge?

@objectiser please, hold on, I found one litte problem here when testing in HK main.

ok will hold off

@ppalaga when sorted, is there a branch of main that I can test the btm feature pack against?

In 5110529 the missing resources like elasticsearch.properies and setenv.sh were added back.
5110529 can be tested against https://github.com/hawkular/hawkular/pull/872

Changes look fine - in the process of building/testing.

Thanks Peter - much better :+1:


Reorganization of the repo

This PR reorganizes and renames the different components of this project:

thir-export is now circus-frontend, in the folder rust-frontend;
thir-elab is nowcircus-engine, in the folder engine;
the directory cli contains the Rust crate for the binary of the circus subcommand;
the backends live in directories engine/backends/BACKEND (with BACKEND being fstar or coq currently)

Any reason why backends live inside engine? Would be nice if we could pull them out so that anyone can build a backend based on engine, no?

I wanted initially to have a backend folder at root, but I was struggling at making opam happy with it, basically... :(

I've added a diagnostic crate for hosting errors, cleaned up the JSON schema export binary in Rust, cleaned up the CLI, removed one binary in favor of a subcommand in circus
I think we can merge this!


Overhaul

This takes the package into the future, with generated wrappers and CI and everything.
@vchuravy, you probably have some improvements at your fork. Shouldn't be too hard to change over, basically replacing @apicall with a regular function call. I didn't change any other parts of the API.
@kshyatt, CI should kick in anytime soon, but could you verify on your system as well?

Not sure why CI isn't picking this one up yet, probably first-time delay?

Maybe it'll pick this up when merged in the master branch.


Fix Staticcheck claims for v1 (AO-17813)

@adamiklukasz do you still have that util script for updating copyright headers?

@adamiklukasz do you still have that util script for updating copyright headers?

@adamiklukasz ?


Update composer.json relax psr-container to be more compatible

relax psr-container to be more compatible with other libraries

Are there some news on this? This would solve a couple of issues, this is the only package I have that has locked psr/container to v1


Why I can't read my data outside ruby?

Hi,
After I insert a simple value into cassandra the data is only readable to another ruby client. Am I missing something to let my data avaiable to all clients (we have some java code around).
I've made some tests with the ruby cql drive, and it seems to do not have the same issue. Maybe I am forgetting something.
This is how I am inserting:
cassandra = Cassandra.new 'Twissandra', '<IP_ADDRESS>:9160'
cassandra.insert :User, 'chave_1000', {"name_0"=>"NILDA SALENA","name_1"=>"ONEIDA CHRISTAL","name_10"=>"ODETTE ANGIE","name_11"=>"ARQUITA FELIPA","name_12"=>"ARIANA GITA","name_13"=>"AMALIA TAINA NANCI","name_14"=>"OSEPHINE LADIA","name_15"=>"LENNA LETITIA","name_16"=>"IGNACIA ARA","name_17"=>"KARMEN AYNELL FUMIKO","name_2"=>"GIA HORTENSE","name_3"=>"JONELLE VERNIA","name_4"=>"KATTIE SHAVONNE RUTHIE","name_5"=>"BARRIE GERTUDE","name_6"=>"ALBERTA ISIS","name_7"=>"ERTIE SIMA","name_8"=>"LALA HESTER PAT","name_9"=>"TANNA SUNNI","size"=>"12"}

If I try to get them on ruby, everything is perfect:
require 'cassandra'
cassandra = Cassandra.new 'Twissandra', '<IP_ADDRESS>:9160'
cassandra.get :User, 'chave_1000'
# => {"name_0"=>"NILDA SALENA",
#  "name_1"=>"ONEIDA CHRISTAL",
#  "name_10"=>"ODETTE ANGIE",
#  "name_11"=>"ARQUITA FELIPA",
#  "name_12"=>"ARIANA GITA",
#  "name_13"=>"AMALIA TAINA NANCI",
#  "name_14"=>"OSEPHINE LADIA",
#  "name_15"=>"LENNA LETITIA",
#  "name_16"=>"IGNACIA ARA",
#  "name_17"=>"KARMEN AYNELL FUMIKO",
#  "name_2"=>"GIA HORTENSE",
#  "name_3"=>"JONELLE VERNIA",
#  "name_4"=>"KATTIE SHAVONNE RUTHIE",
#  "name_5"=>"BARRIE GERTUDE",
#  "name_6"=>"ALBERTA ISIS",
#  "name_7"=>"ERTIE SIMA",
#  "name_8"=>"LALA HESTER PAT",
#  "name_9"=>"TANNA SUNNI",
#  "size"=>"12"}

When I try to get data in cassandra-cli, I got those data:
[default@Twissandra] get User[utf8('chave_1000')];
=> (column=name_0, value=4e494c44412053414c454e41, timestamp=1329418537561572)
=> (column=name_1, value=4f4e4549444120434852495354414c, timestamp=1329418537561572)
=> (column=name_10, value=4f444554544520414e474945, timestamp=1329418537561572)
=> (column=name_11, value=415251554954412046454c495041, timestamp=1329418537561572)
=> (column=name_12, value=415249414e412047495441, timestamp=1329418526559509)
=> (column=name_13, value=414d414c4941205441494e41204e414e4349, timestamp=1329418526559509)
=> (column=name_14, value=4f53455048494e45204c41444941, timestamp=1329418526559509)
=> (column=name_15, value=4c454e4e41204c455449544941, timestamp=1329418526559509)
=> (column=name_16, value=49474e4143494120415241, timestamp=1329418526559509)
=> (column=name_17, value=4b41524d454e2041594e454c4c2046554d494b4f, timestamp=1329418526559509)
=> (column=name_2, value=47494120484f5254454e5345, timestamp=1329418537561572)
=> (column=name_3, value=4a4f4e454c4c45205645524e4941, timestamp=1329418537561572)
=> (column=name_4, value=4b415454494520534841564f4e4e4520525554484945, timestamp=1329418537561572)
=> (column=name_5, value=4241525249452047455254554445, timestamp=1329418537561572)
=> (column=name_6, value=414c42455254412049534953, timestamp=1329418537561572)
=> (column=name_7, value=45525449452053494d41, timestamp=1329418537561572)
=> (column=name_8, value=4c414c412048455354455220504154, timestamp=1329418537561572)
=> (column=name_9, value=54414e4e412053554e4e49, timestamp=1329418537561572)
=> (column=size, value=3132, timestamp=1329418537561572)

This is the schema I am using:
[default@Twissandra] show schema Twissandra;
create keyspace Twissandra
  with placement_strategy = 'NetworkTopologyStrategy'
  and strategy_options = {datacenter1 : 1}
  and durable_writes = true;

use Twissandra;

create column family User
  with column_type = 'Standard'
  and comparator = 'UTF8Type'
  and default_validation_class = 'BytesType'
  and key_validation_class = 'BytesType'
  and rows_cached = 0.0
  and row_cache_save_period = 0
  and row_cache_keys_to_save =<PHONE_NUMBER>
  and keys_cached = 200000.0
  and key_cache_save_period = 14400
  and read_repair_chance = 1.0
  and gc_grace = 864000
  and min_compaction_threshold = 4
  and max_compaction_threshold = 32
  and replicate_on_write = true
  and row_cache_provider = 'SerializingCacheProvider'
  and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'
  and column_metadata = [
    {column_name : 'first',
    validation_class : UTF8Type},
    {column_name : 'last',
    validation_class : UTF8Type},
    {column_name : 'age',
    validation_class : UTF8Type,
    index_name : 'User_age_idx',
    index_type : 0}];

Your data is all there, you just need to tell the cli to parse the column names and values as utf8.

You we're right. I just used the assume command to tell the cli how to handle the data properly. Thanks.


Implement a pure-JavaScript API explorer/browser as proof on concept

The HAL JSON Specification has a pure-JavaScript API browser.
That acts as both of proof-of-concept for the validity of the API specification, and as a very useful tool when developing APIs based on the HAL format.
JSON API would benefit in the same way by having a similar generic API browser tool.

Modelling this after the Ember extension would be super neat, and to some degree, with its ember data support, it has this today.

I should add that a generic browser would also be an excellent proof-of-concept for JSON API being able to support HATEOAS.

Huge :+1: to this, but I don't think this is the correct place to track progress on this. @timbunce If you want to build something based on http://github.com/endpoints/endpoints-example, it would be great to see it added to the implementations page.

PS: if you do, please ping me and i'll get a read-only version of the example hosted on endpointsjs.com.


mount and unmount js plugins

hey thanks for Swup it very awesome :heart:
but this Gia is very confusing how can I use Gia for js plugins like glide.js or select2 and another js plugins
and how integrate loadComponents with Swup reinit function contentReplaced

Hey! Quick answer for your second question: There's an official Gia plugin for Swup that handles the call to loadComponents() automatically. Keep in mind that if you've loaded any components outside your defined containers, you'll be responsible for re/initializing them whenever appropriate.
Here's a quick example of a config that implements SwupGiaPlugin:
import Swup from 'swup';
import SwupGiaPlugin from '@swup/gia-plugin';
import { loadComponents } from 'gia';

import MyComponent from './components/MyComponent';

const components = {
    MyComponent
};

// Start up Swup so future navigations don't destroy the thread:
const swup = new Swup({
    containers: [
        '#my-container'
    ],
    animationSelector: '[data-build-effect]',
    plugins: [
        new SwupGiaPlugin({ components, firstLoad: false })
    ]
});

// Misc. stuff that should happen after every "init" (and after Components have been mounted)
const afterInit = (e) => {
    // Up to you!
};

// Trigger those when Swup issues a `contentReplaced` event:
swup.on('contentReplaced', afterInit);

// First load should initialize components *everywhere*, not just within Swup containers (optional if you instead have `firstLoad: true` set in SwupGiaPlugin options, but not if you need to initialize stuff outside the set Swup `containers`):
loadComponents(components);

// Call our post-init hook once, manually:
afterInit();

As for using third-party plugins, it's apt to follow the same pattern as suggested in their documentation. Say you have a Select component imported and added to your components object, above:
import { Component } from 'gia';

export default class Select extends Component {
    constructor ($el) {
        super($el);

        this.ref = {
            $menu: null
        };
    }

    mount () {
        // Assuming jQuery and Select2 are available globally, and their `script` tags appear earlier in the `<head>` than your custom/app bundle:
        $(this.ref.$menu).select2();
    }
}

Your Component will get unmounted, and re-instantiated whenever it appears on the page.
<div g-component="Select">
    <select g-ref="Select:$menu">
        <!-- Your Options -->
    </select>
</div>


Awesome Typescript GH Action Tune-Up

As A Reader, How Do I Help?

Check my sanity. If I'm doing something dumb, please say so.
Paw around, I'm open to any suggestions

Goal
Let the solid foundation breathe, and wrangle the gross lifecycle / ecosystem that is Type yavascrrapt.
How To Breathe

Make sure CI is good, always the first breath
Dare I say tests?
I do dare

Running List

[x] Regular? pre-commit doesn't transpile the TS to the dist folder

GH actions need the "raw" JavaScript, aka the dist folder.
That folder isn't needed during local development
yarn something --yolo needs to be run, then checked in, or CI fails.
It's a PITA and not the animal kind
I found the npm package pre-commit
That package solves this problem for now, I'd rather use .pre-commit.config, but had to timebox. 🥊

[x] organize

[x] I'm going to split main up, main wasn't good for them
[ ] Yavascrapters, do we still do the folder + index file. Or do we yeet public private pairs? Because package-private is actually a lie... am I remembering this right?
[x] Add .gitattributes entry to auto-collapse yarn.lock, better PR DX

[ ] Add other tooling?

[ ] Any and all tools! 🔧 🍔
I'm interested in using the most modern TS possible
I want to invest in types, should I be importing more than "@types/jest", "@types/node"?
Sort-of every npm module "should" export types right?
If so, what's the best approach?

[ ] Can this be an npm module of type module, does that get us anything in the TS world?
[x] Add tests, what tests make sense here?

[ ] Fix the tests lol

[ ] Any GH TS Action experts out there?

🤞 This is a sage wisdom thirst trap

Crab bait 😍
secretly waiting
for a crab with a knife
to fix all my problems
maybe my
life

FYPlaylist

https://open.spotify.com/playlist/161hibBpryGKzwnfHYBbYl?si=467c15c7fab0432c

Back-Link

https://twitter.com/willbaebae/status/1629349022812209152

Boom baby, after stirring the witches brew...

git add .
git commit -m "file and folders"
for i = 0; i < 300; i++ { yarn run lint -- --fix ; git commit ; yarn run lint-it-more? ; git commit ; yarn just keep going until your done dude }

We've got a green local build. 🤸♂

I'ma try to tackle test next.

"tests". Seems like a good place to call it a night.

If anyone has any suggestions, I'll read em! Toss them my way.

Ready for review Massdriver Actions Miser ™  @akasprzok :hear_no_evil: (If you can even do that with Yavaskreept)

Ready for review Massdriver Actions Miser ™ @akasprzok (If you can even do that with Yavaskreept) 🙉

I recommend starting with track 2... but find your way <3
https://open.spotify.com/track/4gwDxpAtGNezq7u3BXdMmS?si=1cc76a6abe2e4b33

"tests". Seems like a good place to call it a night.

If anyone has any suggestions, I'll read em! Toss them my way.

And by that I mean a programmers night...


Installer for WinGet

Step 1:  Create an installer for the app and post it at a known URL:

Installer can be msi, msix, or exe
Using VS to create an msix package: https://learn.microsoft.com/en-us/windows/msix/desktop/vs-package-overview
More MSIX Info: https://www.advancedinstaller.com/msix-limitations.html
Limitations on MSIX packages: https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-prepare

Step 2: Create a manifest and submit to the winget repository:
https://www.techwatching.dev/posts/wingetcreate


ICEES+ COVID-19 FHIR files transferred from Rockfish to Cadence server

This issue is intended to transfer ICEES+ COVID-19 FHIR files from Rockfish to Cadence server, using protocol and process agreed to by NC TraCS/SOM. James to complete this task after permissions have been updated.

For the covid dataset
COVID/covid.dhall

config dir, default: /share/spark/hao/datatrans/spark/config/COVID
input dir, default: /var/fhir/COVID
temp dir, default: /share/spark/hao/data/COVID
output dir, default /share/spark/hao/data/COVID

For the covid dataset
COVID/covid.dhall

config dir, default: /share/spark/hao/datatrans/spark/config/COVID
input dir, default: /var/fhir/COVID
temp dir, default: /share/spark/hao/data/COVID
output dir, default /share/spark/hao/data/COVID

Binned, de-identified ICEES+ integrated feature tables should also be transferred to the Cadence server.

Binned, de-identified ICEES+ integrated feature tables should also be transferred to the Cadence server.

Any update on getting this data copied over to our Cadence server? Thanks.

Any update on getting this data copied over to our Cadence server? Thanks.

@karafecho Can you weigh in here?

@karafecho Can you weigh in here?

@davidborland : please see this issue and note the list of IRB-approved personnel.
Related, have you worked with @stevencox and @mmersmann to gain access to the deidentified, binned ICEES+ integrated feature tables on ebcr0.edc.renci.org. This shouldn't take long and will allow you to see all of the ICEES+ tables, including the one partial table that we've generated for the ICEES+ COVID-19 project.

@davidborland : please see this issue and note the list of IRB-approved personnel.
Related, have you worked with @stevencox and @mmersmann to gain access to the deidentified, binned ICEES+ integrated feature tables on ebcr0.edc.renci.org. This shouldn't take long and will allow you to see all of the ICEES+ tables, including the one partial table that we've generated for the ICEES+ COVID-19 project.

@karafecho: David B., Lisa, David G., and James should all have access to ebcr0.edc.renci.org.  I'll follow up with David B. via email to make sure he's squared away.

@karafecho: David B., Lisa, David G., and James should all have access to ebcr0.edc.renci.org.  I'll follow up with David B. via email to make sure he's squared away.

I've been able to view the data there. I think it would be a good idea to set up a call with myself, David Gotz, and anyone else it makes sense to include to go over the different files and fields and plan what might make sense as a first pass for trying to ingest into Cadence.

I've been able to view the data there. I think it would be a good idea to set up a call with myself, David Gotz, and anyone else it makes sense to include to go over the different files and fields and plan what might make sense as a first pass for trying to ingest into Cadence.

@mmersmann : Please copy me on matters such as this, or otherwise inform me, so that I know things are resolved.
@davidborland :
I think a meeting makes sense, but it may be hard to schedule, as a few of us will be attending a Translator meeting all next week. In the meantime, I would use the files on ebcr0.edc.renci.org as a way to become familiar with ICEES+.
I think the plan for Cadence is to explore the patient data that is used to generate the ICEES+ tables at ebcr0.edc.renci.org and determine if there are better ways to expose and explore the data, while maintaining compliance with all regulatory and institutional requirements. I'm especially interested in approaches to expose and explore longitudinal data. Our existing approach is limited at best.
One other thing that may be helpful for data exploration is the ICEES+ UI.
We can certainly schedule a meeting, but I hope the above info helps in the meantime.

@mmersmann : Please copy me on matters such as this, or otherwise inform me, so that I know things are resolved.
@davidborland :
I think a meeting makes sense, but it may be hard to schedule, as a few of us will be attending a Translator meeting all next week. In the meantime, I would use the files on ebcr0.edc.renci.org as a way to become familiar with ICEES+.
I think the plan for Cadence is to explore the patient data that is used to generate the ICEES+ tables at ebcr0.edc.renci.org and determine if there are better ways to expose and explore the data, while maintaining compliance with all regulatory and institutional requirements. I'm especially interested in approaches to expose and explore longitudinal data. Our existing approach is limited at best.
One other thing that may be helpful for data exploration is the ICEES+ UI.
We can certainly schedule a meeting, but I hope the above info helps in the meantime.

@mmersmann : In terms of a meeting, I'd suggest David B., David G., James, Chris B., and me.

@mmersmann : In terms of a meeting, I'd suggest David B., David G., James, Chris B., and me.

This is an upstream/deployment issue that should not be discussed here.


Handle trailing markdown content in qmd files correctly

@storopoli could you test this against those failing notebooks you noticed this issue in please.


fix(pool/topology): ensure code is as per design and docs

If a pool has label:
A: D
Then it should match a volume with:
A: ""

@tiagolobocastro This just ensures that if the value for a key is not specified we would consider any value for that key to be true right? Sort of like, anything that has the key

@tiagolobocastro Question: This ensures that if the value for a key is not specified we would consider any value for that key to be true right? Sort of like, anything that has the key

Yes correct, example, anything that has that key matches the criteria.


Disable the copy request for specific DSpace objects

References

Fixes #8290

Description
Added the possibility to disable the copy request feature based on a new configuration request.item.restricted. This configuration is enumerating the GUID of DSpace objects for which the feature should be disabled.
Instructions for Reviewers
Add the new configuration in the file local.cfg with at least one valid GUID of DSpace object where you don't want the copy feature to be enabled.
# List (comma-separated) of DSpace object UUID (communities, collections, items, others)
# for which the request-copy feature must be disabled.
# request.item.restricted = item-uuid-1, \
#                           item-uuid-2, \
#                           item-uuid-3

List of changes in this PR:

Added a configuration example in the file dspace.cfg.
Implemented the restriction functionality in the class RequestCopyFeature by looking at the GUID for the object itself, but also for the GUID of every parent in the hierarchy.
Added some tests in the class RequestCopyFeatureIT to cover some use cases.

If the copy request feature is disabled using this new configuration, for anonymous users, clicking on a copy request link will show the login page. If the user is logged in, it will show a 403 forbidden access.
Checklist

[X] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & integration tests). Exceptions may be made if previously agreed upon.
[X] My PR passes Checkstyle validation based on the Code Style Guide.
[X] My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
[X] My PR passes all tests and includes new/updated Unit or Integration Tests based on the Code Testing Guide.
[X] If my PR includes new, third-party dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[X] If my PR modifies the REST API, I've linked to the REST Contract page (or open PR) related to this change.

Moving this to the 7.4 release as we won't be able to test/approve in time for 7.3.

I agree with the suggestion by @abollini that metadata is a better place to keep this information.  Clearly it is a property of the individual object rather than of the DSpace instance as a whole.  It makes good sense to minimize the "logical distance" between the setting and its subject.
Also:  storing it in metadata makes it easily accessible to a community or collection administrator, who might not have ready access to the instance's configuration files.  This is just the sort of thing that we should be devolving to those most interested in managing it.

@nibou230 : Based on the feedback of @abollini and @mwoodiupui , it does seem like there's a strong favoritism for the approach of configuring this via metadata.  As @abollini notes, that doesn't mean that a UI screen is required. But, it does mean we'd want to clearly document the metadata field that should be added to disable copy request.
I just realized this discussion has become a repeat of one already had in the ticket #8290, where we had a (very brief) discussion of metadata vs config approaches... unfortunately, at the time no other developers were able to provide feedback (as we were in the midst of finishing up 7.3 so all new PRs were set aside).
@nibou230 : Let us know if you'd like help updating this PR based on the feedback... I see in the ticket you mentioned that you may not have time to change this feature into metadata-based. If that's the case, I could look for other volunteers to take this forward (and we can make sure you are still credited with the initial feature).

Hi @tdonohue, @abollini, @mwoodiupui,
Thanks for the feedback! As you mentionned, we already took position in late may on how we implemented this fonctionnality and favor global config over metadata. We also explained why it makes more sense to us to proceed this way (see: https://github.com/DSpace/DSpace/issues/8290#issuecomment-1141400587)
Unfortunately, we miss time to invest and convert this PR to use metadata instead of global configurations. It would be much appreciated to have someonelse that can help going forward to do so.
@abollini also mentionned that it is possible to trigger the copy request process via the REST API and it's a good point! I probably will take a look at this part and add an authorization check to prevent this behavior.

Closing this PR as there was general agreement that we'd highly prefer an approach which uses metadata instead of hardcoded configs.  That said, obviously others are welcome to adopt this PR as needed.


Safari and Firefox anonymous user support

Currently, if an anonymous user joins on Safari or Firefox browser, meeting apps are still not supported.  Can we please send those users a more accurate and useful error message advising them to use a supported browser?

Any updates on when Safari and Firefox will be supported

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 2c5bc94a-3c95-aecc-a34d-d9771dc5e9bb
Version Independent ID: 2c5bc94a-3c95-aecc-a34d-d9771dc5e9bb
Content: Build apps for anonymous user - Teams
Content Source: msteams-platform/apps-in-teams-meetings/build-apps-for-anonymous-user.md
Service: msteams
GitHub Login: @v-sdhakshina
Microsoft Alias: v-sdhakshina

Thanks for raising this. We will check this with engineering team and will update you accordingly.

Hi
Any updates on When firefox and Safari will be supported?
From: microsoft-github-policy-service[bot] @.>
Date: Wednesday, 04 October 2023 at 14:19
To: MicrosoftDocs/msteams-docs @.>
Cc: Hans Zietsman @.>, Author @.>
Subject: Re: [MicrosoftDocs/msteams-docs] Safari and Firefox anonymous user support (Issue #9585)
Hi Hans-Zietsman! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this linkhttps://aka.ms/DevCommunityEscalationForm to escalate if you don't get replies.
Best regards, Teams Platform
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/msteams-docs/issues/9585#issuecomment-1746762119, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDBEGDDUOUOT26JSOIWVVDLX5VH4DAVCNFSM6AAAAAA5SQ4RFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWG43DEMJRHE.
You are receiving this because you authored the thread.Message ID: @.***>

@Hans-Zietsman - Apologies. Currently we do not have any update to share. We are following up with engineering team, once we have any update, will share over this thread.
Thanks!


Problems with linux and transparent

Hi,
I have some problems with ubuntu 19.10 and mitmproxy downloaded from the site.
I run mimtproxy on the same machine I want decrypt the traffic. The following are my iptables rules with iptables -L -nv -t nat:
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 DNAT       tcp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            tcp dpt:80 to:<IP_ADDRESS>:8080
    0     0 DNAT       tcp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            tcp dpt:443 to:<IP_ADDRESS>:8080
    0     0 DNAT       tcp  --  *      *       <IP_ADDRESS>/0            <IP_ADDRESS>/0            tcp dpt:8443 to:<IP_ADDRESS>:8080

and the following is the cm I use to run mitmproxy:
./mitmdump --mode transparent --showhost --listen-port 8080 --listen-host <IP_ADDRESS> --ssl-insecure

or
./mitmdump --mode transparent --showhost --listen-port 8080 --listen-host <IP_ADDRESS>

but my firefox is unable to receive anything and in the mitmproxy console I have hundreds of the follwing errors:
<IP_ADDRESS>:44639: Certificate verification error for www.google.com: self signed certificate in certificate chain (errno: 19, depth: 1)
<IP_ADDRESS>:44639: Ignoring server verification error, continuing with connection
<IP_ADDRESS>:35677: Certificate verification error for www.google.com: self signed certificate in certificate chain (errno: 19, depth: 1)
<IP_ADDRESS>:35677: Ignoring server verification error, continuing with connection

About the certificate I have imported it by connecting to mitm.it, download the certificate for *, copied in /usr/share/ca-certificates/extra/, then dpkg-reconfigure ca-certicates and activate the not active certificate. Then I take the certificate download with firefox and imported in ca autority on firefox after converting it with openssl.

The error you are seeing here is because mitmproxy encounters a self-signed certificate upstream, i.e. on the mitmproxy -- google.com connection. Given what you describe, it sounds like mitmproxy's own requests cannot escape your machine and are fed into mitmproxy itself again.


Address disk space issue

The elf_object in Compilation takes up a ton of space. We don't need to keep all of them around all the time. I think on bootup of the server, we should clear any elf_object entries that are older than x days, as a starting point

I think entire Compilations last accessed more than n days ago can be deleted, as we always have the information available to regenerate one if required (e.g. someone revisits an old scratch).

Also I think we should do this more than just on bootup, we don't regularly restart the server

Compilations are the only record of changes to a scratch over time, so I'm hesitant to remove the entire object. and yeah agreed, just don't know the best mechanism to run something on an interval. it seems like it'd require a separate thread or something..

are the only record of changes to a scratch over time

We should definitely consider tracking a git-like history of changes to settings etc

just don't know the best mechanism to run something on an interval

Probably a cron library. We could implement this as a separate python script and run it as a real cronjob if we wanted also

Can you just do it at startup and then every e.g. 1000 requests? Rather than it having to be on a timer?


update packages

:x: Build TheIdServer 3.0.1-fix-dependencies1-0074 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/75318eaf4a by @)

:white_check_mark: Build TheIdServer 3.0.1-fix-dependencies.1+74.build.1402 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/75318eaf4a by @)


Use 64-bit performance counters if & when available.

Take destination as a param in PERF_VAL.
Relatively untested, could do with some QA!

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Profile a Web application on Gunicorn

$ python -m profiling live-profile --timer=greenlet `which gunicorn` myweb:app

should work well.

Gunicorn spawns a child process to run workers.  It cannot be profiled by only Profiling CLI.

For those of you coming from searching around for a solution, this can be done programmatically inside gunicorn hooks. Here's an example gunicorn config that uses gevent to spawn the profiler server, serving profiler views on ports 118001 onward for each gunicorn worker:
import gevent
import gevent.monkey

_worker_count = 0

def pre_fork(server, worker):
    global _worker_count
    _worker_count += 1
    worker.worker_index = _worker_count

def post_fork(server, worker):
    gevent.monkey.patch_select()
    gevent.monkey.patch_socket()
    import socket
    import profiling.tracing
    from profiling.remote.select import SelectProfilingServer

    profiler = profiling.tracing.TracingProfiler(
        timer=profiling.tracing.timers.GreenletTimer()
    )

    profiling_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    profiling_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    profiling_socket.bind(('<IP_ADDRESS>', 11800 + worker.worker_index))
    profiling_socket.listen(1)

    profiling_server = SelectProfilingServer(
        profiling_socket,
        profiler,
        interval=5
    )
    gevent.spawn(profiling_server.serve_forever)
    print('Worker {} listening on {}:{} for profiling.'.format(
        worker.pid, *profiling_socket.getsockname()
    ))
    worker.profiler = profiler

def worker_exit(server, worker):
    worker.profiler.stop()

If you're not using gevent, the server can be spawned in a thread instead, but controlling the profiler from the server thread is more difficult because profiling's BackgroundProfiler profiler wrapper interfere's with gunicorn's USR2 signal handling. You'll have to roll your own profiler wrapper in this case.


Uncaught TypeError: Cannot read property 'tags' of undefined

[Enter steps to reproduce:]

I created a new file and added the following two lines:

EventMatch:
Trigger:

Pressing "Up Arrow" with the cursor on the top line of the file is triggering the exception every time.

Atom: 1.40.1 x64
Electron: 3.1.10
OS: Mac OS X 10.14.6
Thrown From: elastic-tabstops package 1.3.1
Stack Trace
Uncaught TypeError: Cannot read property 'tags' of undefined
At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11

TypeError: Cannot read property 'tags' of undefined
    at TextMateHighlightIterator.seek (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:560623)
    at ScreenLineBuilder.buildScreenLines (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1194447)
    at DisplayLayer.getScreenLines (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:95252)
    at DisplayLayer.getScreenLine (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:95149)
    at TextEditor.screenLineForScreenRow (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:13891)
    at TextEditorComponent.requestHorizontalMeasurement (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:105144)
    at TextEditorComponent.pixelPositionForScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:66623)
    at moveCursorRows (/packages/elastic-tabstops/lib/elastic-tabstops.js:77:32)
    at /packages/elastic-tabstops/lib/elastic-tabstops.js:128:30
    at Array.forEach (<anonymous>)
    at transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:33144)
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:492111)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:24215)
    at TextEditor.moveCursors (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:33112)
    at TextEditor.editor._altMoveUp (/packages/elastic-tabstops/lib/elastic-tabstops.js:128:8)
    at TextEditor.editor.moveUp (/packages/elastic-tabstops/lib/elastic-tabstops.js:135:22)
    at TextEditor.core:move-up (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:302716)
    at HTMLElement.n.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:306771)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:349123)
    at KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1249835)
    at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1245969)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284329)

Commands
 10x -1:48.5.0 core:move-left (input.hidden-input)
     -1:47.2.0 editor:newline (input.hidden-input)
     -1:46.7.0 core:move-up (input.hidden-input)
  3x -1:44.2.0 core:backspace (input.hidden-input)
  2x -1:35.2.0 core:move-up (input.hidden-input)
     -0:08.5.0 core:move-down (input.hidden-input)
  2x -0:08.1.0 core:move-up (input.hidden-input)

Non-Core Packages
atom-ide-ui 0.13.0
busy-signal 2.0.1
elastic-tabstops 1.3.1
file-icons 2.1.35
go-debug 1.6.2
go-plus 6.1.0
go-rename 0.3.0
go-signature-statusbar 1.2.3
Hydrogen 2.12.0
intentions 1.1.5
language-docker 1.1.8
language-haml 0.32.1
language-protobuf 0.7.1
linter 2.3.1
linter-jsonlint 1.4.0
linter-ui-default 1.8.0
minimap 4.29.9
platformio-ide-terminal 2.9.4
pretty-json 2.1.2
teletype 0.13.4

I wonder if this is related to my file having a .bw extension?

Also occurs for .lua, so I doubt it is dependent on the extension.

Getting this with regular .js files as well, so seems to be happening independently of extension.

It also happened to me typing in a "untitled" edit window - before I had a chance to save the file even.

Unfortunately I do not have much time on this package now, if anyone could commit PR to fix this I would like to merge it asap.


Merge develop/maple.1 changes onto develop/maple.3 for this repo.

Set 0.4.dev17-maple.3 tag to develop/maple.3 branch. No changes brought in from maple.3 and this also points to develop/maple.1 branch commit.


Created test One-to-Many & Many-to-Many objects

Let's create some more objects to test the knex and bookshelf a bit more!

We will definitely have to write some documentation/cheat sheets around Bookshelf and Knex. I find bookshelf to be really unintuitive, and their documentation is not so great. I'll do that after I finish the dev env setup doc :)


Editing action gives "error updating action with responses"

Issues
Now for the 0.25 release, whenever updating any action response action it will do the same problem as with the slots, giving the error in convo box, and prompting up again. Just to let it be known.
No console or Git errors.
0.25 release
local
win 10 pro

Fixed on master, will be included in 0.27 release.


Sort options in documentation

More an improvement than an issue: could you sort alphabetically the lists of options (general and column specific).
Would be much easier to find what we need!
Thanks for the very nice library 👍

function getCollatorComparator() {

I believe there is a PR up for this.

The title of this issue was clear but the content wasn't so much: I am referring to the documentation of this library, not the code. The README lists two quite long tables of options (for the table and for the column) but those lists aren't alphabetically ordered which makes finding a specific one a hassle.

@sebastiendan Yep, I'm referring to the documentation as well. There's a PR up to alphabetize it now.


check if an user is present in the channel for nickchange

i only check if the channel has been tracked, not if the user was present in the channel.
i fu**ed up, i'm sorry :D

Coverage increased (+0.006%) to 98.456% when pulling fd95d7d9b0873de36e2fa90c1ec1cc44d55812ad on Junky2k:master into 5453e4589f9c060509b043d16d74c5277a9630e5 on reactiflux:master.

no worries, thanks for the fix :)


Firefox doesn't render text on fresh load

Steps:

open fresh tab in firefox
load https://excalidraw.com/?id=5092074957307904
text not rendered until new scene render (e.g. try scrolling)

I'm using FF Nightly(v74.0a1 ) and the text gets rendered on the first try, but the font isn't, I need so click somewhere on the canvas in order to get the good font!

Right. Yes, I didn't dig deep, and I suspected it's font-related. https://github.com/excalidraw/excalidraw/issues/637 seems related except I can't repro that on chrome, and this issue also related to restore from localStorage etc.

Firefox doesn't support rel=preload so the font is not initially requested. Calling newTextElement creates a span with the font in measureText so I guess that triggers the font request after rerender. Firefox doesn't fetch on first render, Nightly does fetch but paints with a fallback font, no idea why they behave differently.
Creating a htmlElement that uses font-family: Virgil (Cascadia is already used in the page) and rerendering after fonts are ready seems to solve it in both nightly and stable . It's a bit hacky, though...
https://github.com/excalidraw/excalidraw/compare/master...lissitz:csb-1580854589494

Is that still an issue?

Hmm, meanwhile it morphed into a different one: it visible renders the text, but in some fallback font, and our Virgil font won't render until the scene is redrawn (the elements canvas/shape is regenerated). Should we open a new issue for this or track it here?

Let's do a new one!


Laravel Flysystem Others Package

You can use https://github.com/danhunsaker/laravel-flysystem-others
This lets you use third-party adapters without having to write your own service providers to load them properly. It automatically detects which adapters are available, and registers only the ones actually installed. It also detects whether the Eventable version of Flysystem is available, and if so, it switches to it, letting you listen in on Flysystem events and affect them accordingly.

This package would allow us to just write the adapter,extend error catching with a decorator and load it as another adapter in the Laravel Flysystem.


State drift due to upgrade_settings -> max_surge

Is there an existing issue for this?

[X] I have searched the existing issues

Greenfield/Brownfield provisioning
brownfield
Terraform Version
1.5.5
Module Version
8.0.0
AzureRM Provider Version
3.93.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
All defaults.

tfvars variables values
Kubernetes version set to 1.28.x

Debug Output/Panic Output
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.aks-us-east["use-1"].azurerm_kubernetes_cluster.main will be updated in-place
  ~ resource "azurerm_kubernetes_cluster" "main" {
        id                                  = "/subscriptions/xxx/resourceGroups/prod-us-east/providers/Microsoft.ContainerService/managedClusters/use-prod-1-aks"
        name                                = "use-prod-1-aks"
        tags                                = {
            "environment" = "prod"
            "managed_by"  = "terraform"
            "region"      = "eastus"
        }
        # (31 unchanged attributes hidden)

      ~ default_node_pool {
            name                         = "default"
            tags                         = {
                "environment" = "prod"
                "managed_by"  = "terraform"
                "region"      = "eastus"
            }
            # (25 unchanged attributes hidden)

          - upgrade_settings {
              - max_surge = "10%" -> null
            }
        }

        # (6 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Expected Behaviour
We're not setting up any setting for max_surge, it should respect default (10%)
Actual Behaviour
Every plan wants to remove the block again.
Steps to Reproduce
terraform plan
Important Factoids
No response
References
Related to: https://github.com/hashicorp/terraform-provider-azurerm/issues/24020

@Israphel thanks for reporting this issue to us. As Aks release log shows:

The default max surge value during upgrades will be changed from 1 to 10% for AKS 1.28+ on new clusters to improve upgrade latency.

This is an expected behavior if you've set kubernetes_version to 1.28+. I can reproduce this issue by the following code:
resource "random_id" "prefix" {
  byte_length = 8
}

resource "random_id" "name" {
  byte_length = 8
}

resource "azurerm_resource_group" "main" {
  location = "eastus"
  name     = "${random_id.prefix.hex}-rg"
}

module "aks" {
  source = "../.."

  kubernetes_version = "1.29.0"
  prefix              = random_id.prefix.hex
  resource_group_name = azurerm_resource_group.main.name
  rbac_aad            = false
}

This is not this module's issue, the root cause is by the service team's design. You can bypass this drift by setting max_surge to "10%" explicitly. I'd like to keep this issue open and add a check block to provide a warning to users, but we can do nothing to eliminate this configuration drift I think.

@Israphel

is it with https://github.com/Azure/terraform-azurerm-aks?tab=readme-ov-file#input_agents_pool_max_surge ?

Correct!


Centralize API request/response debug logging and response decoding

PR #112 introduced the Wikimate::request() method, invoked for all API calls. The latter still check the response body for some error situations -- the doc-page test and the decoding result -- and perform the JSON decode. The error checks happen only in token() and login() anyway. These could be moved into request(), but it is also worth considering not to return an error array but throw an exception. I have to ponder this a bit longer. Any thoughts, @waldyrious ?
Secondly, the debug logging of the request array and decoded response array can also be centralized in request().

Upon a first look, it makes sense for the extra checks (and the debug logging) to be incorporated into Wikimate::request() so that the other methods can benefit from them, and also to avoid potential confusion as to why they're absent from some methods. (That discrepancy would have been less puzzling before the existence of Wikimate::request().)
As for how to handle those cases (return an error array or throw exceptions), I don't have an informed opinion. I trust your judgment on that one.

 While opinions vary (depending on the programmer's preference for them, even) about when to pass on error returns vs. when to throw an exception, one good practice appears to be to throw only for unexpected (run-time) errors. Error values then cover situations one can expect, e.g. invalid credentials at login or a duplicate file getting uploaded.
In a chain of calls, e.g. in our case getText()->query()->request(), checking for error values at each/most layers makes for unwieldy code. So if request() encounters a (rare/strange/unexpected) communication error with the API, it would take extra checks at least in getText() and maybe also query() to handle. An exception at that lowest layer gets passed straight on to the caller of the library. In reality in getText() there is already a check for $r['error'] (the API error block) but you get the point I hope. And a communication error is fundamentally different from a usage error.
So this looks like a practical, pragmatic approach in our case, and that's what I implemented.

I agree, that approach sounds sensible.


What to do with "empty" datasets

Some datasets are still referenced by the system, while there are no more observations in them (for example, they only contains old records, now filtered by #215).
It is tempting to add some mechanism that, at the end of each data import, remove datasets that have no longer any observations so the different screens are not polluted by them.
Problem is: some of those datasets might be included in user alerts. Is it therefore acceptable to automatically/silently edit the alert configuration to remove the "now empty" dataset (please note that if this dataset reappears later because it has observations again, it will be with another ID, and therefore not automatically re-added to the alert configuration)?

I think we don't have to be that shy and that we can implement the mechanism that remove empty datasets at the end of each import.
Sure, we'll change the definition/configuration of some user's alert, but that alert would point to a dataset with no observations anyway.

I agree, referring to empty datasets will be confusing.

I agree too,  @niconoe.

That's now implemented!


Have the QC tool report on metadata alignment with DataCite

Right now, Derby files often report something like this:
DATASOURCENAME	Ensembl
BUILDDATE	20230311
SERIES	Homo sapiens genes and proteins
DATATYPE	GeneProduct
DATASOURCEVERSION	108
SCHEMAVERSION	3

This needs to be extended to comply with the DataCite standard.
These should be added:

DATASOURCEID: should list a DOI (https://datacite-metadata-schema.readthedocs.io/en/4.5/properties/identifier/, mandatory, not URL)
CREATOR: listing the creator name. The creator here refers to the Derby file (https://datacite-metadata-schema.readthedocs.io/en/4.5/properties/creator/, mandatory)
CREATORORCID: ORCID of the creator ((https://datacite-metadata-schema.readthedocs.io/en/4.5/properties/creator/, mandatory)
PUBLISHER: likely Figshare or Zenodo
LICENSE: the license of this data, e.g. "CC-BY 4.0 International" (https://datacite-metadata-schema.readthedocs.io/en/4.5/properties/rights/)

Other items we should add:

WEBSITE: pointing to a webpage with more information on where more info on this Derby file can be found

Probably also document the mappings...


Allow ability to remove local images

rio rm image. Currently it is not possible, so users could build multiple images and have no way of removing them without accessing the docker registry api.

To do this in current state, follow these steps:

Navigate to the PVC location:

ssh into node where pvc is accessible from. Can find this by running kubectl get pv -o yaml. The node name will be in spec.nodeAffinity.required.nodeSelectorTerms.matchExpressions.values for the PersistentVolume associated to the rio-registry local-path.
cd to the location of the pvc. Again visible in the above output under spec.hostPath.path
All images should be available now in docker/registry/v2/repositories.

Delete images. The best way to do this would probably be to make sure docker is enabled on the node and run proper commands that way. Otherwise, commands in this blog post will help: https://medium.com/better-programming/cleanup-your-docker-registry-ef0527673e3a
Instead of running the garbage collector, delete the tag directory and it will not show up with rio images anymore: rm -r <root>/v2/repositories/${name}/_manifests/tags/${tag}

I'm a bit surprised by the fact that there doesn't seem to be anybody else encountering this problem. I've got a registry that hit the 20GB PVC limit in about a month. And also a bit confused about the suggestion to SSH into the node and manually remove files. The Docker Registry that Rio uses already has some dedicated tooling for this. You can get into the registry with something like:
kubectl exec -it buildkitd-7b7bfbd879-7rldr -n rio-system -c registry sh
There you will have access to the registry binary, which can do various kinds of GC. Probably the most relevant here is the removing all untagged blobs, basically this just leaves the latest images in the registry and nothing else. It can be automated with something like this:
pod=$(kubectl get pods -n rio-system -o custom-columns=:metadata.name | grep buildkit | head -n1 | xargs)
gc="registry garbage-collect --delete-untagged=true /etc/docker/registry/config.yml"
echo $gc | kubectl \
  exec -it \
  $pod -n rio-system \
  -c registry \
  sh

I'd put that in CI, so that clean up happens after every production deployment.


Portainer and all containers not properly acknowledging local time zone regardless of any flags set

Bug description
No matter how i set the time zone, whether it's binding it via -v /etc/localtime:/etc/localtime:ro \ or trying to set the flags -e TZ=America/Vancouver \ it always defaults to UTC
Expected behavior
Portainer to properly give me the current local system time
Steps to reproduce the issue:
Create docker container using the following commands:
sudo docker create --name=XXX
--restart=unless-stopped
-p XX:XX
-e PUID=1000 -e PGID=1000
-e TZ=America/Vancouver
-v /etc/localtime:/etc/localtime:ro \
Look in logs for timestamps and receive:
2019-08-19T05:25:56.444384937Z
Technical details:

Portainer version: 1.22.0
Docker version (managed by Portainer): 19.03.1
Platform (windows/linux): Linux (Pi 4B)
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):
sudo docker create --name=portainer
--restart=always
-v /home/docker/portainer/data:/data
-v /var/run/docker.sock:/var/run/docker.sock
-e PGID=1001 -e PUID=1001
-e TZ=America/Vancouver
-p 9000:9000
portainer/portainer
Browser: Chrome/Chromium

Additional context
I've tried binding the time zone and doing everything previously suggested, but every thing in the logs comes back as UTC, I would GREATLY appreciate a way of solving this without having to run a UTC conversion when reviewing what's happening.
Thanks in advance, really appreciate everything about portainer!!

Closing this, as there is already discussion around timezone in Portainer here: #913

I specifically opened this issue because the suggestion in that thread did not work.

We would like to keep conversation in the same place, so that is why we don't keep 'duplicate' issues open. I recommend commenting on the issue that I linked saying something along the lines of "the workarounds do not work for me and I would like to be able to set timezone in Portainer" to prompt further discussion

Its no problem :+1:


Yolo model

Hi, i want to know the process of making the yolo model on the example file, i always getting error when i try to load my own model (ofc after exporting it as a torchscript
thanks

@rebelate,
In the Yolo3 example, pretrained model weights were saved to numpy .npz. The weights then were loaded to go. Have a look at the below example (taken from example/convert):
package main

import (
	"fmt"
	"log"

	ts "github.com/sugarme/gotch/tensor"
)

func main() {
	// NOTE. Python script to save model to .npz can be found at https://github.com/sugarme/pytorch-pretrained/bert/bert-base-uncased-to-npz.py
	filepath := "../../data/convert-model/bert/model.npz"

	namedTensors, err := ts.ReadNpz(filepath)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Printf("Num of named tensor: %v\n", len(namedTensors))
	outputFile := "/home/sugarme/projects/transformer/data/bert/model.gt"
	err = ts.SaveMultiNew(namedTensors, outputFile)
	if err != nil {
		log.Fatal(err)
	}
}

With gotch there's also other ways of loading models using JIT torchscript but for this yolo3, we load pretrained weights to darknet model created in Go.
If you try to use JIT model, please see this JIT example.
Please let me know how things go. Thanks


State of modifier keys is wrong in certain scenarios

I'm not sure if the root cause is within SFML itself or imgui-SFML, but you can observe the following behavior:

Create a combobox with enough items so that the dropdown list has a scrollbar. Or simply use ImGui::ShowDemoWindow().
Open the combobox, now you can use the mousewheel to scroll through the droplist.
Press Ctrl once.
Now scrolling through the droplist via mousewheel no longer works.
Press any "normal" key (like a letter).
Scrolling works again.

The problem is within ProcessEvent(), which sets the keystate with io.KeyCtrl = event.key.control;. However, event.key.control seems to contain the wrong state in this scenario, probably because in this scenario Ctrl is treated as normal key and not as modifier key in combination with another key like e.g. Ctrl+C.
Pressing a "normal" key afterwards resets io.KeyCtrl again, so scrolling works again.
As mentioned, I'm not sure if this isn't an issue within SFML itself.
This scenario is particularly annoying to me because I have an application where I use Ctrl+Mousewheel to zoom in/out. So it is commonly used and afterwards the comboboxes don't work correctly anymore because the of this.
A rather crude fix that works for me is to replace io.KeyCtrl = event.key.control; with:
if( (event.key.code == sf::Keyboard::LControl) || (event.key.code == sf::Keyboard::RControl) )
{
  io.KeyCtrl = (event.type == sf::Event::KeyPressed);
}
else
{
  io.KeyCtrl = event.key.control;
}

I have only checked with the Ctrl key, but I assume other modifiers like Alt or Shift suffer from the same problem.

I confirm that this issue happens as described. #197 will fix it
https://github.com/oprypin/imgui-sfml/commit/8c25c15fba020e43c514c5aaaf11e4b4342c35af#diff-af3a8a65ddb03c9f3bc2d2ce0994379a9e854b9389e0d945ef3f48449d9d3dfbR599
And indeed the idea for the fix I came up with is the same as what you're suggesting.


proofTimeTarget parameter settings

An open discuss to determine the proofTimeTarget parameter setting for devnet / testnet .
Already ongoing convo here: https://github.com/taikoxyz/taiko-mono/issues/13765.
I feel the necessity of clearing the air on this because it is the most crucial parameter for the tokenomics (of A3).
Exact parameter setting:

Is it around (slightly above) the expected proof time average ?
Is it well above the average so that everyone has the chance to prove (theoretically?) I'm not fan of this, to set the target well above, because of the fact that it will always be below the target, therefore slowly converging towards 0 (Except there will be some period where increase in proof time could be observed. But in such case the increase will be less significant than the initial decrease which will be caused by the huge diffs between target and actual proof time.)

Transparency:

Communicate the intention and the working behavior (mainly towards provers), highlighting the side effects of slower / quicker proving.

Maybe average proving time is a bad name. Because of how the system works, the average observable proof time will be the proving time target.
A good proving time target is just one that we think is reasonable enough as a delay for users that want to withdraw. And of course one that can be realistically achieved by most provers. We can't have a proving target that is only feasible for certain actors that have access to the fastest prover (hardware or software) because then those provers have a monopoly on the proving.
Because our own prover is not exactly optimal it's fine to just set the target to just a little bit above our measured time.

Is it well above the average so that everyone has the chance to prove (theoretically?) I'm not fan of this, to set the target well above, because of the fact that it will always be below the target, therefore slowly converging towards 0 (Except there will be some period where increase in proof time could be observed. But in such case the increase will be less significant than the initial decrease which will be caused by the huge diffs between target and actual proof time.)

Some waiting will always be involved on the prover side. Depending on the chosen target and how fast the prover can generate the proof, this can be a short period or a long period.

They can only be quicker if they reduce the prover fee. And they have to keep reducing it to keep winning if they only compete on speed (which of course they don't want). If the proof target is something only the fastest provers can achieve (for example by having access to expensive hardware), more efficient provers cannot show to the protocol they can generate the proof more efficiently (at a cheaper price for the specified target).

Testing these things on testnet can only go so far
Fixed value tokens for the reward would be a big improvement, but even then provers may not act rationally so who knows really

I don't think you can really make anything that is guaranteed to work on the testnet that you'd actually want to use on mainnet (except the staking design, that may work).


Added Pauli reconstruction method that respects the Jordan product

TODO: cleanup NoncontextualOp code using the new Jordan-product reconstruction method

Codecov Report

Merging #123 (b0b4927) into main (e5ead6a) will decrease coverage by 0.10%.
The diff coverage is 82.75%.

@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
- Coverage   80.17%   80.07%   -0.10%
==========================================
  Files          29       29
  Lines        3037     3067      +30
==========================================
+ Hits         2435     2456      +21
- Misses        602      611       +9

Impacted Files
Coverage Δ

tests/test_operators/test_independent_op.py
100.00% <ø> (ø)

tests/test_projection/test_qubit_tapering.py
100.00% <ø> (ø)

tests/test_operators/test_noncontextual_op.py
96.28% <10.00%> (-3.34%)
:arrow_down:

symmer/projection/utils.py
56.38% <50.00%> (ø)

symmer/operators/base.py
63.94% <100.00%> (+0.94%)
:arrow_up:

symmer/operators/independent_op.py
87.75% <100.00%> (-0.09%)
:arrow_down:

symmer/operators/noncontextual_op.py
94.66% <100.00%> (-0.09%)
:arrow_down:

symmer/operators/utils.py
75.86% <100.00%> (+1.40%)
:arrow_up:

symmer/projection/contextual_subspace.py
71.63% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Error is due to debugpy and poetry==1.4.1 (https://github.com/microsoft/debugpy/issues/1246)
In GitHub workflow need to set poetry==1.4.0 to fix.


What next?

I cannot find anywhere what you do with a plugin.  I have seen here:- https://jlattimer.blogspot.com/2017/12/creating-custom-virtual-entity-data.html that there is a "register new data provider step" in the Plugin Registration Tool, however I cannot see this in the version I have (inside XrmTookbox).  So this example really needs to go end to end to be useful for me.  Also VEs that massage and return CDS data back as a VE would be a great example.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f38df8a3-58d1-6cd9-2dac-4ea6c857f01e
Version Independent ID: 7bb3e8c6-067d-321b-375b-c1f9752e91b8
Content: Sample: Generic virtual entity data provider plug-in (Common Data Service) - PowerApps
Content Source: powerapps-docs/developer/common-data-service/virtual-entities/sample-generic-ve-plugin.md
Service: powerapps
GitHub Login: @mayadumesh
Microsoft Alias: jdaly

I worked through other examples and installed the Plugin Registration tool which I had not needed to do prior to this and found the additional functionality.  I fell short as I think I need to do the ILMerge to include the dropbox assembly in the plugin assembly so I gave up on this example unfortunately.  I did manage to get an example working by combining all the examples I could find however.  I do encourage you to flesh this out to a full example however as it seemed to fall well short for me as a first time user.


Win10: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 Home 15063
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): binary
TensorFlow version: 2.4.1
Python version: 3.8 (64-bit)
Installed using virtualenv? pip? conda?: pip inside virtualenv
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: no cuda (Intel HD Graphics)
GPU model and memory: Intel HD Graphics Integrated (Memory: N/A)

Describe the problem
It looks like i am unable to import tensorflow. this is my first time starting with tensorflow and i was trying this code:
import tensorflow as tf

(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist

x_train = tf.keras.utils.normalize(x_train, axis=1)
x_test = tf.keras.utils.normalize(x_test, axis=1)

model = tf.keras.models.Sequential()
model.add(tf.keras.layers.Flatten())
model.add(tf.keras.layers.Dense(128, activation=tf.nn.relu))
model.add(tf.keras.layers.Dense(128, activation=tf.nn.relu))
model.add(tf.keras.layers.Dense(10, activation=tf.nn.softmax))

model.compile(optimizer="adam",
              loss="sparse_categorical_crossentropy",
              metrics=["accuracy"])

model.fit(x_train, y_train, epochs=3)

model.save("m\\mnist_model.model")

Provide the exact sequence of commands / steps that you executed before running into the problem
venv\Scripts\activate.bat
pip install numpy tensorflow
python main.py

Any other info / logs
Traceback (most recent call last):
  File "D:\Xcodz\tensorflowmachinelearning\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:/Xcodz/tensorflowmachinelearning/main.py", line 1, in <module>
    import tensorflow as tf
  File "D:\Xcodz\tensorflowmachinelearning\venv\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "D:\Xcodz\tensorflowmachinelearning\venv\lib\site-packages\tensorflow\python\__init__.py", line 39, in <module>
    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
  File "D:\Xcodz\tensorflowmachinelearning\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "D:\Xcodz\tensorflowmachinelearning\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

@xcodz-dot,
You might be facing this issue because of the following reasons

You are running 32-bit Python or 32-bit OS
You have not installed the Microsoft Visual C++ Redistributable package
Your CPU does not support AVX instructions.

Please take a look at the system requirements and check if you have the correct dependencies installed.
Also, check this similar duplicate issues: #36167
Thanks!

@xcodz-dot,
You might be facing this issue because of the following reasons

You are running 32-bit Python or 32-bit OS
You have not installed the Microsoft Visual C++ Redistributable package
Your CPU does not support AVX instructions.

Please take a look at the system requirements and check if you have the correct dependencies installed.
Also, check this similar duplicate issues: #36167
Thanks!

Ok, your point three is true that my cpu does not support avx instructions. I have 64-bit laptop with 64-bit Windows and 64-bit python/

Ok, your point three is true that my cpu does not support avx instructions. I have 64-bit laptop with 64-bit Windows and 64-bit python/


@SerializationHint declaration is not taken into account

Hi
We tried to use @SerializationHint annotation in our project:
public record Person(String name, String sirName)
		implements Serializable {
}

@Configuration
@SerializationHint(types = Person.class)
public class AotConfig {
}

However when we execute goal mvn spring-aot:generate serialization-config.json file is not created and Person type is not included anywhere in target\generated-sources\spring-aot\src\main\resources\META-INF\native-image\org.springframework.aot\spring-aot\ folder.
Spring Native: 0.11.1
Spring AOT plugin 0.11.1
Spring Boot: 2.6.2
GraalVM: 21.3.0

I think this commit(https://github.com/spring-projects-experimental/spring-native/commit/98c58db43323272595215543ae8ad2c31b572ad9) and associated gh-593 would explain the background.

Thank you for the explanation, @aclement
However would be more convenient to compile the code automatically if someone execute mvn spring-aot:generate?

I think this is a Maven limitation we can't really change.
@bclozel Could you please confirm?

Yes, as @ttddyy said, this is explained in https://github.com/spring-projects-experimental/spring-native/issues/593#issuecomment-802653446
I think we can close this issue as there's nothing we can do about this. The goal should not be called manually in the first place.


Unable to Download YouTube Videos with Neat Download Manager on Firefox - HTTP/1.1 403 Forbidden Error

Description:
Issue Summary:
Previously, I was able to download YouTube videos directly from YouTube.com using Neat Download Manager on Firefox without any issues. However, for the past few days, this feature seems to have been disabled. When attempting to download a video, I receive an error message: HTTP/1.1 403 Forbidden. This issue has made it impossible to download YouTube videos using Firefox.
Steps to Reproduce:

Open Firefox browser.
Navigate to YouTube.com.
Select any video to download.
Attempt to download the video using Neat Download Manager.
Observe the error message: HTTP/1.1 403 Forbidden.

Expected Behavior:
Neat Download Manager should allow the download of YouTube videos directly from Firefox, as it did previously, without any 403 Forbidden errors.
Actual Behavior:
The download is blocked, and the following error is displayed: HTTP/1.1 403 Forbidden.
Notes:

This issue does not appear to be present on Chromium-based browsers as they have already blocked this functionality.
The issue only started occurring in the past few days, suggesting it may be related to a recent update or change in Firefox or Neat Download Manager.

Request:
Please investigate this issue and restore the functionality to download YouTube videos using Neat Download Manager on Firefox. This feature is crucial for many users, and its sudden unavailability is causing significant inconvenience. A prompt resolution would be greatly appreciated.
Environment:

Firefox version: 129.0.1 (64-bit)
Neat Download Manager version: 1.4.24
Operating System: Windows 11 23H2 (OS Build 22631.4037)

Thank you for your attention to this matter. I look forward to a swift resolution.

The same issue here

Same issue here with the EDGE browser.

The same issue here

The same issue here


Fixing  when used with discriminator field

Q
A

Type
bug

BC Break
no

Fixed issues
#2018

Summary
Fixing IndexStats with used with discriminator field

Closing and reopening to nudge travis-ci to build this.


increase ticdc kafka integration test resource

ticdc kafka integration test failed frequently, but when we ran it on local env, it never fail, so this PR increase ticdc kafka integration test resource.

This is a temporary resource adjustment change. After confirming the issue, heavy testing needs to be migrated to avoid excessive resource occupation by individual pipelines.


procps: fix watchOnly = true; build

Without the change the build fails as:
$ nix build --impure --expr 'with import ./. {}; procps.override { withSystemd = false; watchOnly = true; }' -L
...
procps> build flags: -j16 SHELL=.../bash usrbin_execdir=\$\(out\)/bin watch PKG_LDFLAGS=
procps> make: *** No rule to make target 'watch'.  Stop.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Dropped "PKG_LDFLAGS=" as it's a remnant of procps from  https://github.com/NixOS/nixpkgs/commit/7a59054dce4ab1193b870d3dbe9f3868f1208a71. The variable is not present in -ng package.


Add soft sensor shutdown for BNO080

Adds software shutdown routine for BNO080. Adds virtual method for software shutdown in sensor class. Updates main loop.

I think you missed around 85% of the code you reference...

Sorry, this was mean for a private repo.


When will it be ready for production?

Great idea! I think it will add a lot of value to Firebase. What I found so far is that I can not mold data the way a backend would do it because it has to be denormalized, same thing when writing and reading. The solution I had for now was to write a rest api on a node server and spin a couple of workers to process some of the data. I have a couple of questions:

When will it be ready for production?
Does it have support for Node.js ?

Thank you and this is amazing stuff, a tool to denormilze and normalize data reduces even more the need for a backend server.

Thanks for the feedback! Should work great on Node. It will be ready for production when there is some usage and the bugs have been ironed out. This isn't at the top of the priority list, a couple months before it's likely to see much attention, but some participation and PRs would certainly move the beta status along and increase the priority.

@katowulf a couple months? been nearly a year now.


Lab2 small updates

-renamed Python folder from keyvault-client to keyvault_client
-updated some code block
-updated code block language
-fixed some md formatting issues

incorporated manually to avoid conflicts


Question - any significant differences between this library and lodash's _.get() ?

They seem interchangeable at a glance. Is there any significant difference?

You should be able to replace _.get() with get-value.
I'm haven't looked at all of options available to _.get(), so there might be some differences outside the default usage.
If you experience an unexpected use case, please feel free to open an issue with some example code, what you expected, and what is actually happening.

You should be able to replace _.get() with get-value.
I'm haven't looked at all of options available to _.get(), so there might be some differences outside the default usage.
If you experience an unexpected use case, please feel free to open an issue with some example code, what you expected, and what is actually happening.


Only rescan saved files

Similar to #156, on save could todo-show just re-scan the saved files instead of scanning everything on every save?

I have added a config option for auto refreshing on save. I have previously toyed around with a solution for only rescanning the changed files, because it made a lot of sense. Though without luck - it kept coming in situations where the todo list was out of sync with the files. I will take this up again when I get the time. Thank you for the feedback.


Fix wrong package name for libusb dev in BUILD.md

Fix wrong package to install for Ubuntu/Debian
Without it I was getting:
Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)

app/meson.build:88:8: ERROR: Dependency "libusb-1.0" not found, tried pkgconfig and cmake

Thank you, merged: 02ae0db6cd14a06899e6f8e92bfe107210ec51a3