[Windows] Crash when using AutoLayout with Padding

When using AutoLayout with the Padding set on a page where NavigationCacheMode is Enabled, app crashes.
Current behavior
The application crashes with a Non-negative number required exception when navigating back to that page.
Stack Trace:
Non-negative number required. (Parameter 'height')

at Windows.Foundation.Size..ctor(Single width, Single height)
at Uno.Toolkit.UI.AutoLayout.MeasureOverride(Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at Microsoft.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at Uno.Toolkit.UI.AutoLayout.InnerArrange(Size& finalSize)
at Uno.Toolkit.UI.AutoLayout.ArrangeOverride(Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at Uno.Toolkit.UI.AutoLayout.InnerArrange(Size& finalSize)
at Uno.Toolkit.UI.AutoLayout.ArrangeOverride(Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.ArrangeOverride(IObjectReference _obj, Size finalSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_ArrangeOverride_1(IntPtr thisPtr, Size finalSize, Size* result)

Removing the Padding property or setting NavigationCacheMode to Disabled prevents the crash.

Expected behavior

How to reproduce it (as minimally and precisely as possible)

Nuget Package:
Package Version(s):
Affected platform(s):

[ ] WebAssembly
[ ] Android
[ ] iOS
[ ] macOS (AppKit)
[ ] Mac Catalyst
[ ] Skia

[ ] WPF
[ ] GTK (Linux)
[ ] Linux Framebuffer
[ ] Tizen

[x] Windows

IDE:

[ ] Visual Studio 2022
[ ] Visual Studio 2019
[ ] Visual Studio Code
[ ] Visual Studio for Mac
[ ] Rider Windows
[ ] Rider macOS

Relevant plugins:
Anything else we need to know?

Related issue here


Browsers lacking required API support don't throw notification

It seems like a few primary features in the studio are unsupported by some browsers:

window.showDirectoryPicker(): unsupported on Firefox, Webkit, mobile (in general)
WebGPU: unsupported by default in most browsers right now

usually supported w/ enabled flag; could be possible to query browser version if all other guards check out and direct user to enable WebGPU flag.

IDBFactory databases(): unsupported by Firefox

I'm a Firefox regular, so it wasn't immediately clear that my browser didn't support some features when the studio was unresponsive.

I initially figured it would take a while before I would have a MVP ready, at least as long if not longer for webgpu to become stable. But now that it's getting close this should probably be added yeah. Would be nice for older browsers as well regardless of whether WebGPU is supported everywhere or not.

In the case of showDirectoryPicker I think it's best to make the button greyed out. And then add a tooltip saying "Your browser does not support reading and writing to directories on disk."
databases() can just use a try catch I think? But there will probably be some issues with this approach.
WebGPU I'm not sure, the plan was to add WebGL fallback support but this takes a lot of time, and I'm not sure what will happen sooner, a WebGL implementation or WebGPU being supported universally.


PHP Fatal error when inspecting a container and "ExecIDs" is an array.

In my code I am running
$proxy = Docker::create()->containerInspect('proxy');

I happened to have an interactive exec command that I was running on that container.
When inspecting the container with the CLI I found
"ExecIDs": [
            "ee27ecaf0ad7e34b41fd05c923b3eb5f84be66101f3bb3056bc6832265232903"
        ],

I do not know why execIDs is a string in the API.
https://github.com/docker-php/docker-php-api/blob/4.1.36/src/Model/ContainersIdJsonGetResponse200.php#L523
I am using docker engine 18.03.0-ce and docker-php 2.0.0
I get The following error:
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Docker\API\Model\ContainersIdJsonGetResponse200::setExecIDs() must be of the type string or null, array given, called in /root/.composer/vendor/docker-php/docker-php-api/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php on line 97 and defined in /root/.composer/vendor/docker-php/docker-php-api/src/Model/ContainersIdJsonGetResponse200.php:523
Stack trace:
#0 /root/.composer/vendor/docker-php/docker-php-api/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php(97): Docker\API\Model\ContainersIdJsonGetResponse200->setExecIDs(Array)
#1 /root/.composer/vendor/symfony/serializer/Serializer.php(172): Docker\API\Normalizer\ContainersIdJsonGetResponse200Normalizer->denormalize(Object(stdClass), 'Docker\\API\\Mode...', 'json', Array)
#2 /root/.composer/vendor/symfony/serializer/Serializer.php(123): Symfony\Component\Serializer\Serializer->denormalize(Object(stdClass), 'Docker\\API\\Mode...', 'json', Array)
#3 /root/.composer/vendor/docker-php/docker-php-api/src/E in /root/.composer/vendor/docker-php/docker-php-api/src/Model/ContainersIdJsonGetResponse200.php on line 523
ERROR: Uncaught TypeError: Argument 1 passed to Docker\API\Model\ContainersIdJsonGetResponse200::setExecIDs() must be of the type string or null, array given, called in /root/.composer/vendor/docker-php/docker-php-api/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php on line 97 and defined in /root/.composer/vendor/docker-php/docker-php-api/src/Model/ContainersIdJsonGetResponse200.php:523
Stack trace:
#0 /root/.composer/vendor/docker-php/docker-php-api/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php(97): Docker\API\Model\ContainersIdJsonGetResponse200->setExecIDs(Array)
#1 /root/.composer/vendor/symfony/serializer/Serializer.php(172): Docker\API\Normalizer\ContainersIdJsonGetResponse200Normalizer->denormalize(Object(stdClass), 'Docker\\API\\Mode...', 'json', Array)
#2 /root/.composer/vendor/symfony/serializer/Serializer.php(123): Symfony\Component\Serializer\Serializer->denormalize(Object(stdClass), 'Docker\\API\\Mode...', 'json', Array)
#3 /root/.composer/vendor/docker-php/docker-php-api/src/E
in /root/.composer/vendor/docker-php/docker-php-api/src/Model/ContainersIdJsonGetResponse200.php:523

Thank you for such a great piece of code. Very useful :)

I'm having the same issue, I think we're going to have to fork and change for now.

You can update / do a pr on the docker-php-api swagger file if you want and will try to merge it fast if it's correct, otherwise I will fix it latter when i got some time.

@joelwurtz created a PR here https://github.com/docker-php/docker-php-api/pull/1

The spec changes in https://github.com/moby/moby/pull/36962 and https://github.com/moby/moby/pull/37121 would fix this issue.


Install wolma/mimodd_aln on .org

@galaxybot deploy this

This succeeded, the error was due to fuse unmount failure, which happens after publishing the transaction.

The tool is installed so I'm merging this, but the test failed, I'm investigating why.

Tests only seem to fail when running from the usegalaxy-tests repo, so I'm declaring this one Working™


Add enabled: false for ingress when running without tlse

The controlplane is enabling tls for ingress by default, which is
conflicting with the dataplane setting when we run without tlse.

/approve

/lgtm


Switch to pyproject.toml, update to v 0.0.2

This looks straightforward. Do you want to check it works for you @davidebbo ?

Fixes #90

I played with it a bit, starting with deleting my .venv folder and redoing all from scratch. It appears no different from before, so it looks good.


Detect what color team you are

Can be used for autonomous and compass correcting.
Completed when: We can tell which teakm we are on before the match.

Using a switch to dictate team?

I am making a class called TeamDetection
it will provide two public Boolean variables:
redTeam
blueTeam
This will require a switch and a digital input.
The constructor will require a hardwear map


PhantomJs not showing syntax error

Which version of PhantomJS are you using? Tip: run phantomjs --version.
2.1.1

What steps will reproduce the problem?

write any syntax error code

Which operating system are you using?
Windows 7

Did you use binary PhantomJS or did you compile it from source?
binary

Please provide any additional information below.
when my code have syntax error, it not showing error. it just like hang until i Ctrl+C
example : my code missing semicolon, or missing ), etc

PhantomJS is abandoned. The maintainer recommends you use Chrome Headless instead.
https://groups.google.com/forum/#!topic/phantomjs/9aI5d-LDuNE


Fix Twitch integration

The Lavaplayer Twitch bug has been recently fixed https://github.com/sedmelluq/lavaplayer/issues/473
This is the PR that fixed the bug https://github.com/sedmelluq/lavaplayer/pull/480
This change updates lavaplayer to 1.3.49, which has the bug fix included.
This pull request...

[ ] Fixes a bug
[ ] Introduces a new feature
[ ] Improves an existing feature
[ ] Boosts code quality or performance

Description
Replace this with a description of the pull request
Purpose
Replace this with a description of the problem or use-case
Relevant Issue(s)
This PR closes issue #...

The you also should check that it fixes a bug :eyes:

@Sanduhr32 It should work in theory but nothing's fixed till it's tested 😉
I haven't found any documentation of the build process. How do I build the jar from source? I get this error when running maven on the provided pom.xml:
$ mvn
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.260 s
[INFO] Finished at: 2020-05-22T07:36:56-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException

Githubs CI builds all finished successfully. I would say that that is enough.

@Sanduhr32 @jagrosh Could someone merge this in?

I'm pretty sure this will be superseded by my fixes to youtube loading and discord ratelimits

This has been superseded by https://github.com/jagrosh/MusicBot/commit/c5a583b96f9ab84450c460a427114e1f45f08af6


Emphasize new params in List docs

See #424
Also went ahead and removed that stylesheet from the basic List example since it wasn't doing anything as of 8.x.

Current coverage is 98.17% (diff: 100%)

Merging #428 into master will not change coverage

@@             master       #428   diff @@
==========================================
  Files            61         61
  Lines          4224       4224
  Methods         894        894
  Messages          0          0
  Branches        318        318
==========================================
  Hits           4147       4147
  Misses           77         77
  Partials          0          0

Powered by Codecov. Last update bc19eba...66f3263

Thanks :)


chore: update dependencies

Update the replace-in-file dependency and the c8 development dependency to their new major versions.
Update all the other dependencies and development dependencies to their latest versions.

Hmm there seems to be 2 high severity vulnerabilities reported by npm because of the latest version of inquirer depending on a vulnerable version of lodash.set, should we wait for that to be resolved?


[lit-html] unsafeHTML directive but without javascript execution

Should this be an RFC?

[X] This is not a substantial change

Which package is this a feature request for?
Lit Core (lit / lit-html / lit-element / reactive-element)
Description
As far as I can tell there is no way to allow unsafeHTML  to interpolate html but exclude <script> tags from executing. This would be a great security improvement because often there's very little reason to support

unsafeHTML() won't execute <script> tags client-side. Are you referring to SSR?

Client side not SSR. Wait really? Will it exclude img SRC and css remote links, I thought I checked that along with inline J's and it was executing these. I will try to double check here to see if I missed something, but I'm pretty sure it was happening.

unsafeHTML() doesn't "exclude" anything, but it does take the HTML string and make a <template> out of it with innderHTML, then move the template contents into the DOM.
Because of the use of innerHTML, the security implications are the same as: https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML#security_considerations
Untrusted and unsanitized HTML can still exfiltrate data via style and image URLs, find other ways to execute script, etc.

So that's sort of the problem. This requires the caller to do all the sanitization work themselves, which of course they'll get wrong.

That's why it's called unsafe. At Google, they disallow it, they don't even import it into their repository.

I'm not sure what Google has to do with anything, I'm interested in a "safer" version.

I'm just saying that one way to deal with the unsafeness of it it to never use it - that's what Google does.
You can make a safer version - the implementation is quite simple - but you would need to pair it with the sanitizer library of your choice. If the HTML sanitizer API ever makes progress, we could consider adding a safeHTML directive.


[Proposal] Support event tracing for profiling

Discussed in https://github.com/swc-project/swc/discussions/3065

Originally posted by kwonoj December 18, 2021

Status
Last Updated
Target version

Accepted
Dec.19.2021
TBD

Summary
Expose a new flag, --trace or similar to emit profiling trace for SWC's internal behavior as trace event format.
Motivation
Performance is one of the notable characteristics of SWC. While SWC itself needs to deliver consistent peak performance, there will be problems from end user's codebases. By providing trace capabilities from SWC's core itself user can have detailed diagnostics to their own problem, also it can be used for the tracing for observability.
Slack for example heavily utilizes chrome's tracing feature for internal perf analysis (https://slack.engineering/chrome-tracing-for-fun-and-profit/) for their desktop client to solve real world user performance issue cannot be reproducible internally.
Explainer
Trace Event format is JSON representation of trace event data can be processed via various tools, including trace viewer. Chrome uses it for its trace profiling (https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) as well as other tools like Bazel (https://docs.bazel.build/versions/main/skylark/performance.html). Chrome has an embedded trace viewer for the visualization (chrome://tracing/).
Detailed design
Thankfully, there are rust ecosystem allows us to adapt this easily. Moreover, SWC already have tracing (https://github.com/tokio-rs/tracing) internally. There is a layer tracing_chrome (https://github.com/thoren-d/tracing-chrome) on top of tracing subscriber which generates Event Trace Format JSON output from existing traces.
This PR (https://github.com/swc-project/swc/pull/3066) have quick & dirty poc demo which enables chrome traces with few dummy spans for transform_sync. Please refer generated JSON for the output format which can be visualized as below.

As a consumer's point of view, I expect these kinds of pseudo workflow to generate traces for a given operation.
// run @swc/cli
npx swc ./file.js ...options --trace categories1, categories2

// run @swc/core
import * as swc from '@swc/core';

swc.transformSync(code, {
  ...options,
  diagnostics: {
    enableTrace: ['*']
  }
});

Each trace request applies to a single operation. There will not be a global config / or function to override every operation in the scope.
Trace will offer categories: this indicates which part of trace will be recorded. For example, there can be categories like ecma_parser / ecma_transforms. As illustrated in second example, it is possible to apply some wildcard behavior. This mimics chromium's behavior for its categoryFilter
Trace does not offer way to customize its output including its path, by default it'll create random-name file under cwd.

Drawbacks

There'll be notable amount of effort to rewrite some of the traces as well as adding new one

Alternatives
Not much. Do not think it is worth to invent something new for swc only especially we have some of infrastructures in our codes.
Unresolved questions
There are multiple open questions / tasks that need to be resolved to make this happen. Notably,

Should release build offer tracing capabilities
Performance impact if release build supports trace
Adjust, write, update span across all codebase to create correct traces
Managing trace flushing
CategoryFilter support: first version may not support this, instead behaves as simple toggle

A few tasks we can think of for the first implementation

[ ] Expose new flag to enable traces. Will accept ['*'] as value only for now and it'll be boolean flag.
[ ] Install chrome_layer into tracing subscriber with disabling default subscriber config
[ ] Inject top-level span for each entrypoint (i.e transform)
[ ] Flush strategy for tracing subscriber

Once this works properly, we can start auditing each individual creates to have correct span & traces.

I looked into it a bit,
since tracing::span!() want a const value as it name, and most of visitors are chained by AndThen and Optional,
looks like we need to generate a visitor to wrap for each AndThen/Optional we want to trace.

This is actually my planned work item, I'll dig a bit and come up with implementation proposal. Once we have reference implementation, we can make changes gradually as same as visit_mut refactoring.

@RiESAEX I choose to go with out of the box #instrument attr approach to mark most of overridden visitors. If we need custom spans, that can be dealt with separately either via span! or create span manually. #3731 illustrates it.

just an idea
May be we can create a macro to reduce copy&paste of #[tracing::instrument(level = "trace", skip_all)]
like
#[trace] // it generate #[tracing::instrument(level = "trace", skip_all)] for every implemented visit_mut_*
impl VisitMut for Arrow {}

@RiESAEX I think it's good to have, and it can be language-agnostic if we only need to add the #[instrument] only for existing methods

Done with https://github.com/swc-project/swc/pull/3738

ORUVELE IRUKUMO...

This is reasonably achieved for the transform interface. minify / others are different but have other tracking issue.


Large instrumental bleedthrough in some vocal tracks

I'm using your python library with mdx net inst HQ 3 and 4 models. Sometimes, vocal tracks have quite a bit of instrumental bleedthrough in them. This doesn't happen with UVR with either of these models. I use the default settings. I've tried with denoise, different normalization, etc, same result.

Sorry to hear that! Could you provide an example file which seems to have different results between UVR and audio-separator, with an example audio-separator command-line call and debug log output (add -d) so I can try and investigate?
(I don't experience any similar issue myself, so this is a bit confusing!)

I have same issue with MDX-NET Inst HQ 3 too, haven't tried Inst HQ 4 yet. Here's the example:

Both tracks are the vocal parts of the same song splited with MDX-NET Inst HQ 3. The top track is from UVR5, and the down track is from audio-separator. All settings set to default, but the instrumental bleed in audio-separator version is even more apparent.

FYI folks, I recommend switching to the RoFormer models which outperform the MDX ones IMO and make this issue redundant.
Check out e.g. model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt which is now supported from audio-separator version 0.17.1 onwards 😄


Any way to reference Reporting.Explorations without a specific sheet name

Hello,
I can programatically interact with Quick Reports using an ID number rather than a specific cell, e.g.
Reporting.QuickReports.Get(<qridnumber>).Commit which is very useful when iterating over an array of the qr id numbers.
Is there an equivalent for Explorations? The documentation seems pretty insistent that the correct form is:
Reporting.Exploration.GetAt(<excelsheetname>).SomeFunction. I ask because I see there is a Reporting.Explorations.GetReports() accessor, but its use case is not at all clear. What I am trying to do is programatically refresh certain Explorations but not others, without needing to know the sheet name.
Thanks!

because Exploration Reports is a one-per-worksheet technology, the 'id' equivalent is the worksheet (within the scope of the book).
how would you be looking to selectively consume the explorations, as in, what matching criteria do you envision?
GetReports() produces a collection of all Explorations in the book, which you can then iterate in a loop in a similar way.

Understood and it makes sense.
Would you be able to provide a sample on how to use GetReports()?


Combat.create causes system to throw error

If you run the following code in a scene:
await Combat.create({ sceneId: canvas.scene.id });

The following error is returned (though the combat is created):
foundry.js:21581 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'combatantId')
    at Combat5e._manageTurnEvents (foundry.js:21581:53)
    at Combat5e._onCreate (foundry.js:21419:10)
    at ClientDatabaseBackend.callback (foundry.js:13603:11)
    at foundry.js:13576:43
    at Array.map (<anonymous>)
    at #handleCreateDocuments (foundry.js:13576:33)

This happens with no modules active and on the latest version of D&D5e and on V11.

This is in fact a Foundry issue


Accessing request.body throws error

cms.middleware.toolbar.ToolbarMiddleware accesses request.POST on every request,
causing django to process the data and prevent us from accessing the request.body.
ipdb> request.body
*** RawPostDataException: You cannot access body after reading from request's data stream

This is related to https://github.com/divio/django-cms/issues/3367 but a different issue.

If request.toolbar is a lazy object that will initialize the toolbar when needed then views which does not need it will not initialize it at all (this will also reduce CPU usage for these views). For views that need it but at later stage (after they need to access request.body) toolbar will not interfere and everything will work.
The only problem that I think can raise is the login form in the toolbar. But this can be fixed if login process is removed from the toolbar (only processing the POST data) and instead put in separate view which will only communicate trough AJAX. Then when login form need to be shown to anonymous users and user try to login they will not submit to current page but instead AJAX call will try to authenticate them. If authentication is successful then current page can be reloaded with javascript. This will have also the positive side effect of not showing form errors if user successfully logs in on a page that already has a form which can be submitted via POST method.


ISPN-14628 LLEN command

https://issues.redhat.com/browse/ISPN-14628

@jabolina rebased from main

Integrated into main, thanks @karesti!


react to PGBackups deprecation

https://gratipay.freshdesk.com/helpdesk/tickets/2040
Action Required: Heroku PGBackups Addon Deprecated

Earlier this year, we announced the release of our new PGBackups.  This new system comes with two big improvements: enhanced reliability and the ability to schedule backups.

Over the coming week we will be migrating backups that have been created using the PGBackups add-on to the new backup system.  We've identified apps that you're a collaborator on that will be impacted by this migration:

gratipay

The backups for these apps will be migrated to the new backup system. If you had automatic scheduled backups with the old PGBackups, we'll set up those scheduled backups in the new system. Although, with the new scheduling functionality, you can set a backup time that works for you.  A notification will be sent when we start the migration process on your app and another when it completes. Upon completion of the migration, the PGBackups add-on will be removed from the app.

Developers are required to use the new backup system and associated commands.  The new commands can be found in the Heroku Postgres namespace in the CLI instead of a separate add-on.  A mapping document has been created to ease the transition from the add-on to the new system.  Please make sure to upgrade your version of the Heroku CLI to at least version 3.32.0 to get the latest PGBackups commands:

$ heroku upgrade

If you have any questions, please email us at<EMAIL_ADDRESS> In the meantime, look out for the dashboard notifications and follow the @herokuchangelog to stay up to date with additions and changes to the Heroku platform.

Happy coding!

The Heroku team

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12497267-react-to-pgbackups-deprecation?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github).

From skimming it sounds to me like action is not required?

#3448


Typescript implementation of AndroidSigning task

For now only on xplat, since we need to statically link latest vso-task-lib on windows agent.  Will enable windows support in next sprint or so.

We statically link on windows as well - that's a detail of the task build process, not the agent.
Is there something I'm missing?

When I tested this task against my VSTS account, the vso-task-lib on windows agent is hardcoded to version 0.4.5,  instead of the latest 0.5.4 that this task depends on.  I believe Ting is making a change in that area, but I want to be safe and only enable it after I tested it myself against a VSTS account


Strict multi parser

Validate commands in multiparser
It was reported in #4808 that compared
to 1.2.8, sbt 1.3.0-RC2 will truncate the command args of an input task
that contains semicolons. This is actually intentional, but not
completely robust. For sbt >= 1.3.0, we are making ';' syntactically
meaningful. This means that it always represents a command separator
unless it is inside of a quoted string. To enforce this, the multi parser
will effectively split the input on ';', it will then validate that each
command that it extracted is valid. If not, it throws an exception. If
the input is not a multi command, then parsing fails with a normal
failure.
I removed the multi command from the state's defined commands and reworked
State.combinedParser to explicitly first try multi parsing and fall back
to the regular combined parser if it is a regular command. If the multi
parser throws an uncaught exception, parsing fails even if the regular
parser could have successfully parsed the command. The reason is so that
we do not ever allow the user to evaluate, say 'run a;b'. Otherwise the
behavior would be inconsitent when the user runs 'compile; run a;b'

It's harder than expected to make ';' have consistent meaning because ';' can appear in code blocks in set, e.g. set foo := { val x = 1; x + 1 }.


ajax width issue 'fix'

I had an issue using this plugin. When data is loaded with AJAX into a table that previously fitted on the screen but now requires scrollbars, the table width seems fail to recalculate and continues as if the scrollbars were not there. At least this is what I think is going on. I've included my work around and a screenshot of the problem I was having:

With this workaround I made everything started working perfectly, but I suspect it might not be ideal. I tested in Chrome and IE back to IE9.
Thanks
Garry

not ideal, forcing a reflow every time an ajax response completes is not a once size fits all solution.
I don't think it belongs in the core plugin.
The docs already say that if the table DOM changes you will need to trigger a reflow on the table, so why not just do this in your own code:
I don't think this code belongs in the core plugin. I already mention that any changes to the table DOM will require you to call reflow yourself. Why should we treat ajax any differently?

I think you are much better off adding something like this to your own code:
``` js
var $table = $('#myTable').floatThead();
$(document).ajaxComplete(function () {
    var isHtml = new RegExp(/content-type:\s?text\/html/i).test(arguments[1].getAllResponseHeaders());
    if (isHtml) {
      $table.trigger('reflow');
    }
});

Or if you want to play with some undocumented experimental stuff on modern browsers, try:
var $table = $('#myTable').floatThead({autoReflow: true}); //ie11+ and modern browsers


Change version increment type from minor to patch

Currently, the release process will update the project version to minor, but before we were doing it with patch, so now it's changed to be consistent with how we did things before.
MOB-1589

!merge


All good if this is intentional—just a suggestion!

 XD
I just simply wanted to modify the color of the linked reference area.
Now I have fixed it and given it a background color. Hope you like it.


Page refreshes on click of CookieBanner elements

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior

On clicking any of the above button and links, page refreshes.
Expected Behavior
Page should not refresh on click of any links or button.
Steps To Reproduce

Open the site
Click on links

Learn more about our cookie policy
Edit preferences
or
Click on Accept

Anything else?
No response
What browsers are you seeing the problem on?
No response

@vinayaksh42 @Abhirup-99 Can I fix this issue? We can remove window.location.reload and add Link (ReachRouter) for links.

Go ahead!


[SPARK-48937][SQL] Add collation support for StringToMap string expressions

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

Mind filling the PR description?

thanks, merging to master!


Why does the packageing take sooo long?

I triggered a build for gulp packaging. It took forever!
npm run gulp vscode-win32-x64
[20:45:24] Starting 'vscode-win32-x64'...
[20:45:24] Starting clean-out-build ...
[20:45:24] Finished clean-out-build after 20 ms
[20:45:24] Starting build-date-file ...
[20:45:24] Finished build-date-file after 3 ms
[20:45:24] Starting compile-api-proposal-names ...
[20:45:24] Starting compilation api-proposal-names...
[20:45:24] Finished compilation api-proposal-names with 0 errors after 127 ms
[20:45:24] Finished compile-api-proposal-names after 143 ms
[20:45:24] Starting compile-src ...
[20:45:41] [mangler] Done collecting. Classes: 8129. Exported symbols: 9886
[20:45:48] [mangler] Done creating class replacements
[20:45:48] [mangler] Starting prepare rename edits
[20:45:49] Starting compilation...

I doesn't give any verbose or any compilation log
OS: Windows 10, 64 bit
Node version 20(but same result in other versions as well)
Build: Triggered locally using npm run gulp <variant>

Bundling takes ~25 minutes on Mac, and Windows tends to be much slower. Unfortunately I think we're stuck with this for now since it comes with the vscode repo.
I recommend building instead of bundling right now! Void changes a lot day to day.

I use the build and debugger method to run it locally. But wanted share it with my beta users. How do I do it without spending 4hrs of time?
Is there a cloud alternative solution? Like building it on EC2 and dumping the installable like .exe file in S3?
I'm guessing vscode has a CI/CD pipeline to this. If so, could point me to some reading material or links or code?

There are some instructions on VSCode's wiki under Development container. Maybe you can host a container on the cloud?


couchapp-1.0.2-win32.exe supposely infected by virus

I would just like to report that the CouchApp installer for windows (couchapp-1.0.2-win32.exe) is triggering a virus alert by "Symantec Endpoint Protection". I am almost sure that this is not the case, but still wanted to report it in case something can be done to prevent this.

:-o Would you post the report contains more detail about that?
I just tried a scan service, and ... none of them screaming:
https://www.virustotal.com/zh-tw/file/44e8e467868972265dd17c387b96e9bbdadf56c3780194028b69aff4895d34fe/analysis/

Feel free to reopen if the virus alert still exists.


accept OCSP responses with no nextUpdate

mod_md rejects OCSP response when nextUpdate field is not set. However, per RFC 6960 this is valid (in particular see section <IP_ADDRESS>):
If nextUpdate is not set, the responder is indicating that newer
revocation information is available all the time.

Update mod_md to accept these responses.  When !bnextup, set valid.end to valid.start plus 12 hours.  mod_md will attempt to refresh the response at some earlier time, according to the MDStaplingRenewWindow setting.
Fixes: https://github.com/icing/mod_md/issues/326

LGTM, thanks!


STORM-1848: Make KafkaMessageId and Partition serializable to support…

… eventlogging

+1

+1
Build failures are due to nexus issue.

Does it make sense to restrict the emit functions on SpoutOutputCollector to take only serializable messageIds?

@srdo that would not be a backwards compatible change for something that never had to have this before.  And we don't require it to be serializable, if you have it properly registered with kryo then it will handle it instead.

You're right, I forgot about backwards compatibility, I mainly wanted to ensure this doesn't pop up in other spouts :) Is there any way for the Kafka spout to register with Kryo instead?
How about a comment on the SpoutOutputCollector interface about this?

+1

+1 for the comment. I think that would be great, and having the KafkaSpout register things with kryo would be good, but I don't know if the API is setup to support that, as the KafkaSpout would need to have access to the topology config before submitting the topology.

I'll leave it at adding the comments then.

+1


GraphvizAddUnitTest

add unit test for additional supported datatypes

Bleep bloop!
LabVIEW Diff Robot here with some diffs served up hot for your pull request.
Notice something funny? Help fix me on my GitHub repo.
Verify Digraph for Supported Datatypes.vi.png:

Bleep bloop!
LabVIEW Diff Robot here with some diffs served up hot for your pull request.
Notice something funny? Help fix me on my GitHub repo.
Verify Digraph for Supported Datatypes.vi.png:

This looks good to me.


[Mining] Generate method does not work at height 0

There are at least two problems:

this.ChainTip is null in BlockDefinition at genesis, so the coinbase creation fails (relatively easy to patch)
Similarly, since it is null the HeaderVersionRule fails as it has no previous header to compare BIP9 states. Probably straightforward to fix.

Not sure if there are other issues (this is on Stratis regtest).

Retested this and there still seems to be an issue, running generate with a blockcount of 5 seems to get stuck in a never-ending timeout.


GD-499: Errors in the console after enabling addon

The used GdUnit4 version
4.3.1 (Latest Release)
The used Godot version
v4.2.2.stable.mono.official
Operating System
Windows 11
Describe the bug
I get several errors in the console when enabling the addon. This can be reproduced using a new project.

Godot Engine v4.2.2.stable.mono.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started ---
--- GDScript language server started on port 6005 ---
[LSP] Connection Taken
  editor/editor_settings.cpp:221 - EditorSettings::_get - Property not found: text_editor/theme/highlighting/gdscript/annotation_color
  res://addons/gdUnit4/src/ui/templates/TestSuiteTemplate.gd:57 - Trying to assign value of type 'Nil' to a variable of type 'Color'.
  editor/editor_settings.cpp:221 - EditorSettings::_get - Property not found: text_editor/theme/highlighting/gdscript/annotation_color
  res://addons/gdUnit4/src/ui/templates/TestSuiteTemplate.gd:57 - Trying to assign value of type 'Nil' to a variable of type 'Color'.
  res://addons/gdUnit4/src/mono/GdUnit4CSharpApiLoader.gd:9 - Invalid call. Nonexistent function 'new' in base 'CSharpScript'.
  res://addons/gdUnit4/src/mono/GdUnit4CSharpApiLoader.gd:25 - Invalid call. Nonexistent function 'Version' in base 'Nil'.
Loading GdUnit4 Plugin success
GdUnit4Net version '' loaded.
GdUnit4: Test server successfully started checked port: 31002

Steps to Reproduce
Reproduce:

Open the Godot 4.2.2 mono application
Create a new project.
Download and install version 4.3.1 of GdUnit4
Enable the plugin
Observe the error in the console.

Minimal reproduction project
No response

This is a known issue and is related to a Godot problem of loading plugins, the Godot cache is not fully build.
You need to restart the Godot editor and the errors are gone.

It could be that this is Godot related, however I always get these errors every time I start the editor.

You get it every time you start, please close Godot and then delete the .godot folder, then restart Godot twice.
Please give me feedback if this helped.

Ok, deleted the .godot folder and the those errors dissappeared for two projects I have tested with. However I get these now:
Godot Engine v4.2.2.stable.mono.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started ---
--- GDScript language server started on port 6005 ---
  res://addons/gdUnit4/src/mono/GdUnit4CSharpApiLoader.gd:9 - Invalid call. Nonexistent function 'new' in base 'CSharpScript'.
  res://addons/gdUnit4/src/mono/GdUnit4CSharpApiLoader.gd:25 - Invalid call. Nonexistent function 'Version' in base 'Nil'.
Loading GdUnit4 Plugin success
GdUnit4Net version '' loaded.
GdUnit4: Test server successfully started checked port: 31002
Running test discovery ..
0 test suites discovered.

It is a bit weird that the errors are identical in two different projects if this is a random Godot issue.


Stamina is drained from all players when one player jumps

To Reproduce

Change number of players to 2
Change Net Mode to Play as Listen Server
Jump with one player and all players stamina will drop

As an aside, thank you for creating this project. It's been a lot of help in understanding the GAS, even after spending a dozen hours watching videos that worked through it some things still weren't clear and having this concise project really cuts through the noise.

Disregard, my mistake in reading the printed variables


Alter set-env commands in GitHub Actions to resolve build failures

set-env has been deprecated and it's been causing the latest builds to fail.

Ah, it might be this https://github.com/nelonoel/branch-name/issues/6


old 32bit Windows binary request

Our database runs on an old 32bit Windows XP machine.
Are there any chances to find a gnparser binary which we can use there? (even if it is an old version)
Thanks a lot in advance

@abubelinha I made an experimentatl win32 binary for v1.3.3, can you check if it works?

Thanks @dimus I suppose this is the file:
https://github.com/gnames/gnparser/releases/download/v1.3.3/gnparser-v1.3.3-win-32.zip
I uncompressed it and tried the executable in that machine, but I got a messagebox saying "gnparser.exe is not a valid Win32 application"
On my Win7 64bit laptop, it worked perfectly (like the 64bit gnparser version).

BTW the machine has Microsoft Windows XP Professional v.2002, with Service Pack 3
Intel(R) Core(TM)2 Quad CPU, Q9450 @ 2.66GHz
RAM 3.48 GB

I removed the binary for win32, I guess there is no easy solution for this. Is it possible for you to access REST api at https://parser.globalnames.org? It is very fast, especially if you send names in butches of several thousands.

OK. I’ll try that.
I guess I should follow the POST example here? https://github.com/gnames/gnparser/blob/master/README.md#usage-as-a-rest-api-interface

yes, you can also use https://apidoc.globalnames.org/gnparser to play with API,  get a feel of it, and also it describes all JSON fields of the output.

Closing this ticket. Looks like there is no easy solution, and the number of win32 users is small and is decreasing, so we are skipping this binary. Looks like remote use of https://parser.globalnames.org API  is a solution here.

Just for reference, this is what I finally did:

Install gnparser on another machine of the LAN (i.e., IP <IP_ADDRESS>)
Start a gnparser server in that machine with gnparser -p 8080
Make calls to that server from Win32 machines. A minimal Python example:

 	url = "http://<IP_ADDRESS>:8080/api/v1/"
	data = {
	  "names": [
		"Pleurosigma vitrea var. kjellmanii H.Peragallo, 1891a",
		"Bubo bubo"
	  ],
	  "withDetails": True,
	  "csv": False
	}
	import requests
	response = requests.post(url, json=data)
	print(response)

Thanks!

@abubelinha, it is a reasonable approach. What is the project you use gnparser for? Just curious

Nothing really very specific. This is not for a particular project.
I am just tired of having to develop my own quick & dirty functions for comparing "canonical names" coming from different sources (online checklists, gbif data, my own field notes, and different collection databases in a variety of file formats ... some of them maintained in old Win32 machines).
A gnparser server is easy to implement, and  I find python scripts are pretty compatible with all machines I use (I hope).

I am not sure this deserves a new issue or not.
I was wondering how many names is it advisable to include in a single server api call.
If y have 45000 names to parse, is it better (for the server) to receive 45 calls, 1000 names each call ... or just one call with 45000 names?
On the other hand I guess my Win32 Python application will probably prefer not to parse such a big json response all at once.
But that's another question. Right now I am asking about remote server health.

I would say 50000 names should be OK for one call

On the other hand I guess my Win32 Python application will probably prefer not to parse such a big json response all at once.

Also note that gnparser does not generate one json with 50000 elements, it generates 50000 json strings. So for python it does not really matter, I think, to parse 1 name or 50000, except of the memory spent to keep al 50000 json strings


How do you connect to Exchange Online using certificate-based authentication?

We have customers who use MFA who would like to use our product that manages Exchange Online via PowerShell with unattended scripts, but they cannot disable MFA. According to https://docs.microsoft.com/en-us/office365/enterprise/office-365-client-support-certificate-based-authentication#supported-powershell-modules, the Exchange Online PowerShell module supports CBA, but I have looked and looked and can't find any other documentation describing how to connect to Exchange Online PowerShell using a registered application and Certificate-based authentication. Can you please flush out the documentation to describe how this is done? MFA/interactive use is only half of the story (and when it comes to automation, it's actually the less important half of the story).

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

ID: de2836a0-0af3-c147-2d4a-78220ac4e0f1
Version Independent ID: 2cde9735-6281-bb9f-bf07-b30b2f6c7f37
Content: Exchange Online PowerShell V2
Content Source: exchange/docs-conceptual/exchange-online/exchange-online-powershell-v2/exchange-online-powershell-v2.md
Service: exchange-online
GitHub Login: @chrisda
Microsoft Alias: chrisda

Hi Kirk
This feature is a work in progress and will be available in a quarter from now.

@officedocsbot assign @yogkumgit

Thank you for the fast reply @navgupta1208. This is a very important feature for the Microsoft partner organization that I work with. Will there be preview releases for the forthcoming update that includes CBA support that I could be looped into through a customer connection program, or our partner relationship? I believe it would be mutually beneficial, so that we can make sure it suits the large-scale unattended automation needs that our customers have.

@navgupta1208: With the upcoming feature for Exchange, will they support managed identity authentication as well?
Any any response to my last request?

@KirkMunro CBA will be supported. More information:
https://techcommunity.microsoft.com/t5/exchange-team-blog/faster-and-more-reliable-exchange-online-management-using/ba-p/1198604

Any update on this. If there is preview release will be happy to test pilot this. We cant use the V2 module in our automations unless we get CBA.

Hi @sukh-ava,
I don´t have more information but can suggest that you follow the Exchange blog to stay up to date about this feature:
https://techcommunity.microsoft.com/t5/exchange-team-blog/bg-p/Exchange

@sukh-ava @KirkMunro
CBA is in limited preview. Please reach out to the feedback alias mentioned when you do Connect-ExchangeOnline and we will add you to the preview.


Login fails repeatedly

Summary:
I keep getting'login failed' messages, despite being quite confident the password is correct.
Before creating an issue, please search the existing issues to see if a similar one has already been created. You can search issues by specific labels (e.g. label:nearby) or just by typing keywords into the search filter.
Steps to reproduce:
After downloading the Commons app, I tried to log in to it. I keep getting'login failed' messages, despite being quite confident the password is correct. It makes me suspect something else is off.
I have tried to log in both from a secure network and a mobile network, I normally get 2fa. I attached a screen shot. I already reset my password and that failed too. I have no trouble logging in through the browser.
System logs:
(logs sent via email?)

Need help? See https://github.com/commons-app/apps-android-commons/wiki/Getting-app-logs-from-Android-Studio

Device and Android version:
API level: 28
Android version: 9
Device manufacturer: motorola
Device model: moto g(7)
Device: river
Network type: wifi
App version name: 2.11.0~93b948d20
User name: null
Commons app version:
2.11.0
Screen-shots:
https://phabricator.wikimedia.org/F31409414
Would you like to work on the issue?
no

Sometimes it might be the case that your internet connection is poor. Did you try the same in some other place with a good internet connection?

Yes, my last attempt was from an extremely well-connected network.

Hi @lgelauff , sorry, we had issues with 2FA logins in 2.11.0. I've just released v2.12 to beta testing, which should contain the fix - it should be available in a few hours. Please let us know if it doesn't work for you. :)

@nicolas-raoul now we don't face any problem with login so we can close this issue now


extension API request: is extension being debugged?

An extension can find out if it runs in debug mode by analysing the arguments passed to node:
const debug = process.execArgv.filter(v => v.indexOf('--debug') === 0).length > 0;

It would be nice to have a real API for this.
/cc @dbaeumer @daviwil @jrieken

@weinand would that be https://github.com/Microsoft/vscode/issues/10272 ?

The vscode.env.sessionId workaround definitely works in my case because I need to know when I'm in "development mode" regardless of whether being debugged or not.  However, might still be nice to have some official API which gives us that info and also allows us to distinguish between being debugged or not.

Also would be nice to know if it was my extension being replaced by --extensionDevelopmentPath so that I don't change my behavior if I'm not working with my own local extension build.

Depending on the exact scenario, the API in https://github.com/microsoft/vscode/issues/95926 may solve this issue. It tells the extension whether it's in development mode, but this does not necessarily mean it's being debugged (you can run tests and use the --extensionDevelopmentPath without having a debugger attached).

Closing as a dupe of the linked proposal, which is now implemented. Please let me know if that doesn't work for you.


Use matchfeatures and move query encoding to stateless

Moved query encoding to stateless layer
Use match features to avoid re-invoking reader model over again to get span scores.
Move models to models directory instead of files

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

FYI @kkraune


ReferenceError: name is not defined

import { Array1D, Array2D, ENV, Scalar } from 'deeplearn';
import * as dl from 'deeplearn';
import { TensorLike1D } from 'deeplearn/dist/types';

const mse = (y_pred, y_true) => dl.scalar(y_true).sub(y_pred).square();
const learningRate = 0.01;
const optimizer = dl.train.sgd(learningRate);

//
const num_vocab = 5000;
const embed_dim = 300;
const embed_W = dl.variable(dl.randomNormal([4, embed_dim], 0, 0.1) as dl.Tensor2D, true, "embed_W");

//
function forward(input: TensorLike1D) {
  const x = dl.tensor1d(input)
  const Wx = dl.gather(embed_W, x)
  const y = dl.mean(Wx, 1)
  return y;
}

async function train(xs: number[][], ys: number[], num_epoch: number, done: Function) {
  try {
    for (let epoch = 0; epoch < num_epoch; epoch++) {
      for (let row = 0; row < xs.length; row++) {
        // Backward
        optimizer.minimize(() => {
          const x = xs[row]
          const pred = forward(x);
          const loss = mse(pred, ys[row]);
          return loss;
        });
      }
    }

    done();
  } catch (error) {
    console.error(error)
  }
}

function predict(xs, ys) {
  const predictedYs = xs.map(forward);
  console.log('y_true: ', ys);
  console.log('y_pred: ', predictedYs.map((p) => p.dataSync()[0]));
}

const data = {
  xs: [[0, 1, 2, 3], [0, 1, 2, 3]],
  ys: [1, 0]
};

// Predict
// predict(data.xs, data.ys);

// Train
train(data.xs, data.ys, 5, () => { /* predict(data.xs, data.ys); */ });

I can to do the prediction. But if I run the training with$ ts-node main, it will throw errors like this:
ReferenceError: name is not defined
    at Engine.addTapeNode (/Users/rilut/typescript/node_modules/deeplearn/dist/engine.js:153:19)
    at /Users/rilut/typescript/node_modules/deeplearn/dist/engine.js:272:23
    at Ops.mean (/Users/rilut/typescript/node_modules/deeplearn/dist/ops/reduction_ops.js:90:16)
    at /Users/rilut/typescript/node_modules/deeplearn/dist/ops/operation.js:12:61
    at Object.Tracking.tidy (/Users/rilut/typescript/node_modules/deeplearn/dist/tracking.js:34:22)
    at Object.descriptor.value [as mean] (/Users/rilut/typescript/node_modules/deeplearn/dist/ops/operation.js:12:26)
    at forward (/Users/rilut/typescript/main.ts:18:16)
    at /Users/rilut/typescript/main.ts:34:22
    at /Users/rilut/typescript/node_modules/deeplearn/dist/engine.js:223:21
    at Object.Tracking.tidy (/Users/rilut/typescript/node_modules/deeplearn/dist/tracking.js:34:22)

If I add console.log() on the operation.js, it will show this:
ts-node main
randomNormal
rand
gather
zeros
mean
div
sum
zeros
ReferenceError: name is not defined
.........

Hi @rilut, we currently haven't spent much time trying deeplearn.js in node environments, we primarily target browser environments so you might have an easier time running this in the browser than in ts-node. I would suggest looking into the starter project for typescript or something similar to get up an running with that.
I was able to get your code running in the browser but did run into another issue, we currently don't have gradients implemented for dl.gather. I added an issue to track that here but it would be a blocker for your code (for the backward pass).

Thanks @rilut for filling this. We are about to release 0.5.1 where we improved the error message. I ran your example in the browser with deeplearn@HEAD and got: Cannot compute gradient: gradient function not found for gather. We have a separate issue #813 to add gradients for gather


Unable to see HTTP transactions - Install with Docker (Centrally Managed)

Hello,
I've managed to install containers through the following official documentation
Some technical informations are changed (domain, application name and port used).
versions
$ date
dim. 15 oct. 2023 12:02:09 CEST
ghcr.io/openappsec/agent             latest
ghcr.io/openappsec/nginx-attachment  latest
compose file
`version: '3'
services:
  pod-openappsec-agent:
    container_name: open-appsec-agent
    image: ghcr.io/openappsec/agent:latest
    hostname: open-appsec-agent
    domainname: ***
    restart: unless-stopped
    ipc: host
    network: host
    privileged: true
    command: "/cp-nano-agent --token ***************"
    volumes:
      - <local dir>/agent/conf:/etc/cp/conf:rw
      - <local dir>/agent/data:/etc/cp/data:rw
      - <local dir>/agent/log:/var/log/nano_agent:rw
  pod-nginx:
    container_name: open-appsec-nginx
    image: ghcr.io/openappsec/nginx-attachment:latest
    hostname: open-appsec-nginx
    domainname: ***
    restart: unless-stopped
    ipc: host
    pid: host
    network: host
    privileged: true
    ports:
      - 14443:443
    volumes:
      - <local dir>/nginx/conf:/etc/nginx:rw
      - <local dir>/nginx/log:/var/log/nginx:rw

run
 podman-compose -f  compose.yml up -d
['podman', '--version', '']
using podman version: 4.3.1
** excluding:  set()
['podman', 'network', 'exists', 'containers_default']
podman run --name=open-appsec-agent -d --label io.podman.compose.config-hash=123 --label io.podman.compose.project=containers --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=containers --label com.docker.compose.project.working_dir=/opt/containers --label com.docker.compose.project.config_files=<local dir>/compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=pod-openappsec-agent -v <local dir>/agent/conf:/etc/cp/conf:rw -v <local dir>/agent/data:/etc/cp/data:rw -v <local dir>/agent/log:/var/log/nano_agent:rw --net containers_default --network-alias pod-openappsec-agent --hostname open-appsec-agent --privileged --restart unless-stopped ghcr.io/openappsec/agent:latest /cp-nano-agent --token *******
exit code: 0
['podman', 'network', 'exists', 'containers_default']
podman run --name=open-appsec-nginx -d --label io.podman.compose.config-hash=123 --label io.podman.compose.project=containers --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=containers --label com.docker.compose.project.working_dir=/opt/containers --label com.docker.compose.project.config_files=<local dir>/compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=pod-nginx -v <local dir>/nginx/conf:/etc/nginx:rw -v <local dir>/nginx/log:/var/log/nginx:rw -net containers_default --network-alias pod-nginx -p 11443:443 --hostname open-appsec-nginx --privileged --restart unless-stopped ghcr.io/openappsec/nginx-attachment:latest
exit code: 0

Problem
On the SaaS web gui the agent is successfully registered.

After adding a first asset linked to the policy I do not see any trafic

Diagnostic
I'm able to reach my application behing the NGinx (reverse-proxy)
location / {
    proxy_pass http://your-web-application;
    # Additional proxy settings if needed
}

NGinx cp_attachment module still in conf
conf/nginx.conf
load_module /usr/lib/nginx/modules/ngx_cp_attachment_module.so;

user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
}

It seems that the containers are not correctly setup regarding http transaction, maybe a clue ?
$ podman exec -it open-appsec-agent /usr/sbin/cpnano -vl
less: can't open '/var/log/nano_agent/cp-nano-http-transaction-handler.log?': No such file or directory

$ podman exec -it open-appsec-agent /usr/sbin/cpnano -s
---- open-appsec Nano Agent ----
Version: 1.1.0-open-source
Status: Running
Management mode: Cloud management
Policy files:
    /etc/cp/conf/local_policy.yaml
Policy load status: Success
Last policy update: 2023-10-15T10:19:39.607845

---- open-appsec Orchestration Nano Service ----
Type: Public, Version: 1.1.0-open-source, Created at: 2023-10-05T17:46:48+0000
Status: Running

---- open-appsec Attachment Registrator Nano Service ----
Type: Public, Version: 1.1.0-open-source, Created at: 2023-10-05T17:46:48+0000
Status: Running

---- open-appsec Http Transaction Handler Nano Service ----
Type: Public, Version: 1.1.0-open-source, Created at: 2023-10-05T17:46:48+0000
Status: Ready

For release notes and known limitations check: https://docs.openappsec.io/release-notes
For troubleshooting and support: https://openappsec.io/support

cp-nano-agent-install.log
Copy cp-agent-info tool
Copy cp-nano-package-list
cp: -r not specified; omitting directory 'EULA.txt'
cp: -r not specified; omitting directory 'Licenses-for-Third-Party-Components.txt'

Starting installation of open-appsec Nano Agent [Sun Oct 15 09:37:07 UTC 2023]
rm: cannot remove '/etc/cp/conf': Resource busy
rm: cannot remove '/etc/cp/data': Resource busy
Creating env details file
Building the default policy json
Copying cp-nano-agent binary file to folder: /etc/cp/orchestration/cp-nano-orchestration
Copy source md5:
7824ac827120aa147f4711b786b43436  ./bin/orchestration_comp
Copy destination md5:
destination '/etc/cp/orchestration/cp-nano-orchestration' does not exist.
Destination md5, after the copy:
7824ac827120aa147f4711b786b43436  /etc/cp/orchestration/cp-nano-orchestration
Copy source md5:
d1765d79c93cbb0d7ab20386206a0b9f  open-appsec-cloud-mgmt
Copy destination md5:
destination '/etc/cp/scripts/open-appsec-cloud-mgmt' does not exist.
Destination md5, after the copy:
d1765d79c93cbb0d7ab20386206a0b9f  /etc/cp/scripts/open-appsec-cloud-mgmt
Copy source md5:
db703b597d494bd2397b0119e1d26a5f  open-appsec-cloud-mgmt-k8s
Copy destination md5:
destination '/etc/cp/scripts/open-appsec-cloud-mgmt-k8s' does not exist.
Destination md5, after the copy:
db703b597d494bd2397b0119e1d26a5f  /etc/cp/scripts/open-appsec-cloud-mgmt-k8s
Copy source md5:
fbaa4b08b74902e802d87f54e7fbdd02  open-appsec-ctl.sh
Copy destination md5:
destination '/etc/cp/scripts/open-appsec-ctl.sh' does not exist.
Destination md5, after the copy:
fbaa4b08b74902e802d87f54e7fbdd02  /etc/cp/scripts/open-appsec-ctl.sh
Copy source md5:
cb54f53385c4a0089ea1bcdd16cf1604  ./scripts/cp-nano-makefile-generator.sh
Copy destination md5:
destination '/etc/cp/scripts/cp-nano-makefile-generator.sh' does not exist.
Destination md5, after the copy:
cb54f53385c4a0089ea1bcdd16cf1604  /etc/cp/scripts/cp-nano-makefile-generator.sh
Saving authentication token to file
Copy source md5:
59a3d4a3243c60933a9ac8a1039a0256  certificate/ngen.body.crt
Copy destination md5:
destination '/etc/cp/certs/fog.pem' does not exist.
Destination md5, after the copy:
59a3d4a3243c60933a9ac8a1039a0256  /etc/cp/certs/fog.pem
chmod: cannot access '/etc/cp/conf/cp-nano-orchestration-conf.json': No such file or directory
Copy source md5:
a6d809c0b02126b719e9890bd22afc78  configuration/cp-nano-orchestration-conf.json
Copy destination md5:
destination '/etc/cp/conf/cp-nano-orchestration-conf.json' does not exist.
Destination md5, after the copy:
a6d809c0b02126b719e9890bd22afc78  /etc/cp/conf/cp-nano-orchestration-conf.json
Copy source md5:
681e4ec40932318bb4cf782ffcb18ba3  configuration/cp-nano-orchestration-debug-conf.json
Copy destination md5:
destination '/etc/cp/conf/cp-nano-orchestration-debug-conf.json' does not exist.
Destination md5, after the copy:
681e4ec40932318bb4cf782ffcb18ba3  /etc/cp/conf/cp-nano-orchestration-debug-conf.json
Installing the watchdog
Copy source md5:
2cc8c5c4697ebd53ed7e5e6289b0cec8  watchdog/watchdog
Copy destination md5:
destination '/etc/cp/watchdog/cp-nano-watchdog' does not exist.
Destination md5, after the copy:
2cc8c5c4697ebd53ed7e5e6289b0cec8  /etc/cp/watchdog/cp-nano-watchdog
Copy source md5:
4e4f26afb12a89baa97ce831d20f7fd2  watchdog/wait-for-networking-inspection-modules.sh
Copy destination md5:
destination '/etc/cp/watchdog/wait-for-networking-inspection-modules.sh' does not exist.
Destination md5, after the copy:
4e4f26afb12a89baa97ce831d20f7fd2  /etc/cp/watchdog/wait-for-networking-inspection-modules.sh
Install cp-nano-agent service file
Start cp-nano-agent service
./orchestration_package.sh: line 395: service: not found
Note: in order for the agent to remain active and effective it must connect to the Fog/Cloud at least every 45 days
open-appsec Orchestration Nano Service installation completed successfully
Copy cp-agent-info tool
Copy cp-nano-package-list
cp: -r not specified; omitting directory 'EULA.txt'
cp: -r not specified; omitting directory 'Licenses-for-Third-Party-Components.txt'

Starting upgrading of open-appsec Nano Agent [Sun Oct 15 09:40:49 UTC 2023]
Installing the watchdog
Copy source md5:
2cc8c5c4697ebd53ed7e5e6289b0cec8  watchdog/watchdog
Copy destination md5:
destination '/etc/cp/watchdog/cp-nano-watchdog' does not exist.
Destination md5, after the copy:
2cc8c5c4697ebd53ed7e5e6289b0cec8  /etc/cp/watchdog/cp-nano-watchdog
Copy source md5:
4e4f26afb12a89baa97ce831d20f7fd2  watchdog/wait-for-networking-inspection-modules.sh
Copy destination md5:
destination '/etc/cp/watchdog/wait-for-networking-inspection-modules.sh' does not exist.
Destination md5, after the copy:
4e4f26afb12a89baa97ce831d20f7fd2  /etc/cp/watchdog/wait-for-networking-inspection-modules.sh
Install cp-nano-agent service file
Restart cp-nano-agent service
Upgrade to latest
Copying cp-nano-agent binary file to folder: /etc/cp/orchestration/cp-nano-orchestration
Copy source md5:
7824ac827120aa147f4711b786b43436  ./bin/orchestration_comp
Copy destination md5:
destination '/etc/cp/orchestration/cp-nano-orchestration' does not exist.
Destination md5, after the copy:
7824ac827120aa147f4711b786b43436  /etc/cp/orchestration/cp-nano-orchestration
Copy source md5:
d1765d79c93cbb0d7ab20386206a0b9f  open-appsec-cloud-mgmt
Copy destination md5:
destination '/etc/cp/scripts/open-appsec-cloud-mgmt' does not exist.
Destination md5, after the copy:
d1765d79c93cbb0d7ab20386206a0b9f  /etc/cp/scripts/open-appsec-cloud-mgmt
Copy source md5:
db703b597d494bd2397b0119e1d26a5f  open-appsec-cloud-mgmt-k8s
Copy destination md5:
destination '/etc/cp/scripts/open-appsec-cloud-mgmt-k8s' does not exist.
Destination md5, after the copy:
db703b597d494bd2397b0119e1d26a5f  /etc/cp/scripts/open-appsec-cloud-mgmt-k8s
Copy source md5:
fbaa4b08b74902e802d87f54e7fbdd02  open-appsec-ctl.sh
Copy destination md5:
destination '/etc/cp/scripts/open-appsec-ctl.sh' does not exist.
Destination md5, after the copy:
fbaa4b08b74902e802d87f54e7fbdd02  /etc/cp/scripts/open-appsec-ctl.sh
Copy source md5:
cb54f53385c4a0089ea1bcdd16cf1604  ./scripts/cp-nano-makefile-generator.sh
Copy destination md5:
destination '/etc/cp/scripts/cp-nano-makefile-generator.sh' does not exist.
Destination md5, after the copy:
cb54f53385c4a0089ea1bcdd16cf1604  /etc/cp/scripts/cp-nano-makefile-generator.sh
Upgrade completed successfully
Copy cp-agent-info tool
Copy cp-nano-package-list
cp: -r not specified; omitting directory 'EULA.txt'
cp: -r not specified; omitting directory 'Licenses-for-Third-Party-Components.txt'

cp-nano-http-transaction-handler-install.log
Starting installation of Check Point HTTP Transaction Handler service [Sun Oct 15 10:19:16 UTC 2023]

cp: cannot stat 'conf/cp-nano-ips-protections.json': No such file or directory
chmod: cannot access '/etc/cp/conf/data/cp-nano-ips-protections.data': No such file or directory
cp: cannot stat 'resources/cp-ab.js': No such file or directory
cp: cannot stat 'resources/cp-csrf.js': No such file or directory
chmod: cannot access '/etc/cp/conf/waap/cp-ab.js': No such file or directory
chmod: cannot access '/etc/cp/conf/waap/cp-csrf.js': No such file or directory
Requested to restart service '/etc/cp/HttpTransactionHandler/cp-nano-http-transaction-handler', but it is not registered
Installation completed successfully.

Both containers can ping each other. No sure how to validate the communication and how it works between NGinx+module container and the agent container.
Even after trying all troubleshooting tips given in the documtation and tests like http://myappli.mydomain.tld:14443?shell_cmd=cat/etc/passwd I can not find where is the problem with my installation.
Any help will be more than welcome !

Hi @giteki,
Thank you for your communication and your keen attention to detail. It's always a pleasure to collaborate with someone who values precision.
In regards to the issue you've raised the transaction handler not being active signifies that the agent has not detected any traffic. To troubleshoot this, kindly ensure that the URL used to access the application matches the one defined in the Web UI assets as I've noticed some discrepancies between the ports in the screenshot and the test attack (please pay attention to HTTP VS HTTPS as well).
If the issue persists after addressing the URL concern, I kindly request that you follow the steps outlined here to upload your logs and please provide us with the reference ID for further assistance. Also, please share the NGINX configuration as well.
Your cooperation is greatly appreciated.
Best regards,
Oriane
open-appsec Team

Hello Oriane,
Thanks a lot for your response. Difference between HTTP & HTTPS is just a mispelling in the example used for the post. I'll provide configuration files through the support link.
Best regards,

Update on the issue, deployment failed due to isolation when deploying with Podman.

update : I can confirm that the container setup is running fine with either docker or podman (rootless).
This issue was related to the use of /dev/shm to share content between the container. It was not correctly mounted in my podman setup.
So /dev/shm mount, access and permissions was the way to investigate.
Thanks for your great support @orianelou !

Same problem. How did you solve it in the end?


Allow EDI file to have something before UNA or UNB. It can happens with files generated by the software SAGE COALA.

fix #75
This is the second version of the fix. The first one was #76

Cool, thanks very much. I uploaded v0.1.8 to Pypi. please update your venvs and check if everything works.

Thanks @nerdoc it works fine. My team is happy :) and me too :D


MLE-4118 : Submit Optic Update DSL plan via Node Client

Merging this in. Created a new ticket for making /v1/rows/update?output=object as default unless the user overrides it or if execute is used. Making '/v1/rows/update?output=object' results in failure of few remove and transformDoc tests that might need further investigation.


wired up daisyui & trying to figure out how to html

started working on projects page + getting tailwindcss/typography to work hehe
switching to use daisyui, lol classic
daisyui changes
todos
frontend garbanzo

wooooooo g o go go


EVO-1074 render message names as links to user profiles

It looks like the linter issues have been taken care of @tibetsprague

yup looks good!


[MXAPPS-581] Nightly Straight Dope tests.

Description
The Straight Dope notebooks will retrieved from the Github repo, run and
scanned for warnings and errors. Because we are not checking accuracy of
the training, we set the number of epochs to 1 to reduce the integration
test run time.

Common functionality for running and testing notebooks has been
factored into a common test util module.
Support for running UTF-8 notebooks added (Python2 and 3 compatible).
Notebooks requiring a single GPU and multi GPUs have been split
into two different test suites so that they can be run on different
hardware.
Add test to make sure that all notebooks are tested.
Comment out broken notebooks while they are being fixed (I will
uncomment them in a follow up PR).

@marcoabreu Thanks for the suggestion. I've moved the notebook download to the installation steps.

Hi @marcoabreu,
Thanks for the clarification.
I've updated the test harness to clone the repo and removed the old code. I rebased so the changes are in:
https://github.com/apache/incubator-mxnet/pull/11814/commits/688767f026d53f4b9aa780ec1433472a1f1f0996
Please take a look. Thank you!
Vishaal

Thanks Marco, I added a timeout. Will keep tabs on the nightly test job you linked.

Do you think it would make sense to enable the log output? Right now, the output is pretty empty and you can't really tell which chapters have run so far.

CI passed at http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/test-straight-dope-nightly/detail/test-straight-dope-nightly/3/pipeline
We're good to ship for a first initial version.

Thanks for your help @marcoabreu Agreed!


Generation/CodeGeneration integration with MSBuild tasks

Documentation

[X] I have consulted the documentation, and my question isn't answered there.

Nuget Package
JsonSchema.Net.Generation
Package Version
4.5.1
How can I help?  Please provide as much context as possible.
There are two parts to my question, and one probably belongs in the Corvus.JsonSchema rather than here, since CodeGeneration has been deprecated.
Part 1: Schema generation at build time
This is definitely pertinent to JsonSchema.Net.Generation.
What I want to do is generate a JSON schema as part of a project's build. The project may or may not be the one that contains the code that should be converted into the JSON schema.
This can be accomplished via an MSBuild task. Let's call it GenerateJsonSchemaTask.
I'm think this can be done either using the RoslynCodeTaskFactory approach or by writing a custom task, publishing it as a NuGet, then consuming it in a targets file/project files. An unfinished example of the second approach: https://github.com/JeffBarnard/JsonSchemaTask.NET
I will likely do this, but it feel like it could of general utility to have such a task.
What do you think?
Part 2: Code generation from schema
This is the one I'm more unsure about.
Once I have my schema published in a NuGet package, the schema can be consumed by:

A schema validation MSBuild task in the project where JSON files are used that should conform to the published schema; let's call this one JsonSchemaValidationTask
A model generation MSBuild task in the project that does some code generation based on the types defined in the schema; let's call this one ModelFromJsonSchemaTask

(1) I think is fine and the solution could be similar to the approach in Part 1.
I'm not sure about (2), though. I don't think the Corvus tool can be used in an MSBuild task or as a package dependency for writing one. And CodeGeneration is deprecated and doesn't work with the latest versions of JsonSchema.Net packages (I tried, and got a MissingMethodException for something in JsonSchemaExtensions.
I'm thinking we could also write our own code generation code, which might be preferable, because we could emit types into separate files, add custom file headers, that kind of thing.
What do you think in general about these JsonSchema-related MSBuild task ideas?
Code of Conduct

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

Part 1
This sound like a great idea.  I don't have the time to dedicate to it, though.
I'd be interested to find out the difference in ease of implementation between what you're suggesting (MSBuild task) and perhaps a Roslyn source generator (if it even supports non-code files).
If you end up building it, package it and put it on Nuget!
Part 2
I've tried code generation, and it didn't really work out well.  It did the job (kinda), but it wasn't robust.
I wrote a blog post about not supporting that library anymore, and I've marked the library as deprecated on Nuget.
The alternative you're looking for is going to be Corvus.JsonSchema.  @mwadams has done a good job with it, and the next version (in preview now) supports source generation.
We've been working together over the past month or so to integrate it into my Graeae project (OpenAPI).

Let me know if you need a hand getting started with Corvus. I'm editing an intro video for the source generator as we speak.

Regarding part 2, yeah, that's what I got from reading the documentation and checking out Corvus.JsonSchema. Maybe I don't understand the tools well, but it doesn't seem like you could plug the source generation tool into a build task. Or could you?
Now that I think about it, I actually only tried the latest non-preview version. I should give it another look.

It doesn't go into an MSBuild task, no.  Source generation happens as part of the code compilation.  You would:

install the nuget package, which adds the Roslyn analyzers
add any JSON files to your project as "additional files" (example)

... and the compiler takes it from there.

@2BitSalute did you make any progress here?


Component included in production build when using named imports even though it's not included

I'n using relativeCSSInjection to build a UI library with 2 components Comp1 and Comp2. This works fine and generates different entries for consuming the library:

lib.js: contains all components with embedded css
Comp1.js: contains component 1 with embedded css
Comp2.js: contains component 2 with embedded css

When consuming this library, I'd like to use named imports like this:
import { Comp1 } from 'lib.js'; // Component 2 is included in bundle

Even though I'm not using Comp2, it will be included in the bundle:

When consuming this library with a direct import like this:
import Comp1 from 'Comp1.js'; // Component 2 is not included in bundle = desired behaviour)

In this case, Comp2 won't be included in the bundle (= desired behaviour):

You can find a reproduction repository here: https://github.com/adriaanmeuris/css-injected-by-js-issue
I did some research and I think this might be caused by https://github.com/vitejs/vite/issues/4389.
Can you confirm this is the cause of this behaviour, and if not: how can I use named imports without having other components being included in the final bundle?

Hi @adriaanmeuris I tried your repository with and without this plugin but the behaviour seems is the same, this plugin only takes the CSS and add it through the JS, the relativeCSSInjection option is experimental because we are not sure if it's usable in every case.
The behaviour you have is a little bit strange because you are using only one component at time so the three shaking must "delete" the unused export, but this is not related to that plugin I'm sorry, if you find some problem with this plugin please open an issue, I will close this issue for the moment


DependenciesScanner: include -sdk in Swift module building command

Swift module building commands need -sdk because dependencies sometimes use
sdk-relative paths (prebuilt modules for example). Without -sdk, the command
will not be able to local these dependencies, leading to unnecessary
rebuilding from textual interfaces.
rdar://81177968

@swift-ci please smoke test

@swift-ci please smoke test


Fix conditional

Purpose

For reviewers

Related Github issues

Changes

Tests

Deployment Considerations
Version Notes
{ major | minor | patch }

NOTE: Include the version notes in the squash commit message

/deploy

Deployed prnet successfully

prnet cleaned-up successfully


#1 Adding protocol package from other repo.

Codecov Report

Merging #7 (53c4c02) into main (96a702d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines          272       272
  Branches        28        28
=========================================
  Hits           272       272

Flag
Coverage Δ

data
100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Kafka broker dialing to incorrect zookeeper headless service

Different implementation between defined templates cp-zookeeper.fullname and cp-kafka.cp-zookeeper.fullname will cause kafka to dial to incorrect headless service name for zookeeper. cp-zookeeper.fullname uses just the fullname override whereas cp-kafka.cp-zookeeper.fullname uses .Release.Name-.Values.nameOverride. This will cause issues on initialization as the zookeeper headless service will be named .Values.fullnameOverride and broker will dial to .Release.Name-.Values.nameOverride which doesn't exist. Shouldn't the two have the same implementation so that kafka broker will always have the right zookeeper service name to dial to?

Any known workaround for this?


DBeaver 21.1.1 fails to determine geometry type of spatial table in PostgreSQL

System information:

Operating system (distribution) and version: Windows 10, build 19043.1081
DBeaver version 21.1.1
Additional extensions: none

Connection specification:

Database name and version: PostgreSQL 13.3 / PostGIS 3.1.2
Driver name: PostgreSQL JDBC Driver
Do you use tunnels or proxies (SSH, SOCKS, etc)? : no

Describe the problem you're observing:
DBeaver 21.1.1 fails to determine geometry type of a spatial table in PostgreSQL, and as a consequence also doesn't show the geometry column in the navigator (notice empty space between 'osm_id' and 'tags' column). This used to work fine in previous versions (before upgrade, my latest version was 21.1.0):

Steps to reproduce, if exist:
Upgrade to 21.1.1, navigate to a spatial table in PostgreSQL and open the 'Columns' view.
Include any warning/errors/backtraces from the logs

@mboeringa , unfortunately cannot reproduce it.
Could you provide error log and table ddl, if possible?

I'm managed to reproduce the issue.
thanks for the report
reproducible at db2.gis.public.planet_osm_polygon

It turns out, PostGIS supports geometry types with specified SRID but without specifying actual type.
For example, geometry(geometry, 4326) will allow values of any type (POINT, POLYGON, etc.) with SRID 4326.
Also, geometry(geometry) is also supported, but it does not make any sense AFAIK.

Fixed.

verified


Debian package generation

Codecov Report

Merging #15 (f46b3f9) into main (f316257) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main     #15   +/-   ##
=====================================
  Coverage   1.81%   1.81%
=====================================
  Files          6       6
  Lines        441     441
=====================================
  Hits           8       8
  Misses       433     433

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 f316257...f46b3f9. Read the comment docs.


Conversion to NET Standard 2.0

Conversion of the StatsdClient library to .NET Standard 2.0 so that it can be reference for use by either .NET Framework (4.6.1) or .NET Core applications.

Thanks for the PR! Can you please try reviewing the other pr as well and hopefully we can get this out with more changes.

You are welcome.
I took a brief look at the other pr and these are my thoughts.
a) It was done is 2015 and so was based off older revision of the master.
b) I don't believe the unit tests, need to be refactored as they appear to be working. But maybe I am missing something that Jeff spotted.
Basically this means that the only class that needs/could to be merged in would be Statsd.cs. However there are a number of conflicts here that mean that this would need to be a manual merge.
In my opinion, it would be better for the author to start over with a clean version of the source.


Library Licence

Add licence file to the project.

Yep, have to talk to some people about which license we are going to use!

OpenSSL is BSD-like. I have included a BSD 3 license from the github templates.
I think this is ok for now, though, it might have to change later.

Just noticed.. spec file had GPL license from ages ago..
Now what?


Adding a simple input button

Hi there!
Dunno if this project is still active, or if you're even interested in this change - but here goes:
I've added a feature making it possible to add an "input" button, provided the user supplies their own service under its definition (there's no default).
The button is hidden by default, and only works in the "touch" mode.
This is a feature I needed for my own setup, maybe others can also benefit from this.

I'm noticing I've accidentally changed the line endings, sorry abut that - let me see if I can fix it.

Seems like that did the trick :)


added chrysalide theme submodule

Re: #6 first off, thanks for your explanation — I followed those instructions and, of course, everything works as expected. Would you consider adding the theme repo as a submodule of motyl? I think this would make the installation process slightly easier for others.
Does the attached work for you?

BTW, if you do end up including this patch, I suggest an update is made to the README to reference git clone --recurse-submodules ...

No, the theme is separated from the codebase on purpose, because it uses third party resources such as fonts and stylesheets, which are licensed differently.


Allow running dummy-content-store from this repo

The behaviour of the govuk-dummy_content_store gem used to live in this
repo, but was split out, however, it's still most common to want to run
the dummy content store in combination with this repo.
This adds the gem as a dependency, so it's easy to run the dummy content
store, and requires fewer repos (just the FE and the dummy content store)
which is much simpler for less technical folk to run.
I've also added some documentation to explain how to do this.
(I chatted to @heathd  about this in advance, and he was happy with the
change.)

:+1: yay just a teeny comment on the readme (and needs a rebase)

The govuk-dummy-content-store gem needs a new release, so closing this until we've done that, i'll reopen with the new version.


Will the datasets be released? Hope to follow your research.

Hi,
We appreciate your interest in our work. Yes, we will release the datasets soon.


Steering Data is wrong

Describe the bug
I tested with two devices to join a thread network.
First device was successful in commissioning and then tried commissioning for the second device.
But it does not start DTLS session because of wrong "Steering Data" from "Discovery Response".
From the below log captures, when second device tries commissioning, the steering data sent from NCP looks for the first device.
This is first device wireshark log when success

This is second device wireshark log when success

This is second device wireshark log when fail

To Reproduce
Information to reproduce the behavior, including:
Network looks like this : BBB--NCP(leader)-----CLI MTD(1)
|-- CLI MTD(2)
commission first device, and then commission the second device.
try this several times. sometimes second device does not start DTLS session after receiving Discovery Response. Then look into the streering data to see if it is ok.
Expected behavior
A clear and concise description of what you expected to happen.
Console/log output
If applicable, add console/log output to help explain your problem.
Additional context
Add any other context about the problem here.

@kwangeom, thanks for raising this issue. Can you provide more detail on the exact commands you used to reproduce the behavior? For example, the wpanctl commands on the border router and cli commands on the joiner, and their order?

from BBB side, I ran for the 2 devices,
root@beaglebone:/home/debian/borderrouter/tests/meshcop#  ./otbr-commissioner --                                                      network-name OpenThreadEom --xpanid<PHONE_NUMBER>222222 --agent-passphrase 123456 -                                                      -joiner-eui64 00124b0014f41d01 --joiner-passphrase DRRLCK1 --agent-addr 192.168.                                                      2.2 --agent-port 49191 --comm-envelope-timeout 200 --commission-device --disable                                                      -syslog
./otbr-commissioner --network-name OpenThreadEom --xpanid<PHONE_NUMBER>2222                                                      22 --agent-passphrase 123456 --joiner-eui64 00124b0014f4356c --joiner-passphrase                                                       DRRLCK1 --agent-addr <IP_ADDRESS> --agent-port 49191 --comm-envelope-timeout 200                                                       --commission-device --disable-syslog
from cli side, I ran "joiner start DRRLCK1".

Can you also increase the debug level (using the -d option) and capture the log output for the commissioner?

@kwangeom, after looking at this a bit, it appears that otbr-commissioner is not able to establish a DTLS session with the border agent until the previous session has timed out (~50 seconds).
@bukepo @gjc13, can you help take a look?


use prettier to format md files

Which issue does this PR close?

Closes #.
Rationale for this change

What changes are included in this PR?

prettier
fd

fd -e md md ballista docs -x prettier --write

Are there any user-facing changes?

I reviewed the rendered changes manually by looking at
https://github.com/Jimexist/arrow-datafusion/tree/update-docs-format
And they look good -- thanks @Jimexist

Thanks I've been thinking of adding a non failing CI job so that future changes can be detected

Look good 👍  @Jimexist should we also add a .prettierrc file if we used custom settings & lint task during build? Maybe a separate PR at a later time is fine as well.

The philosophy of prettier is to apply as little config as possible so if not necessary I can leave out the rc file


Show '⁂ Fediverse Preview' link in Row-Actions

I'm not sure I'd understand that that's meant to be an Activitypub Preview, until a few days ago I was unaware of the logo. Is this something other plugins offer as well in the list view?

Good question... The icon is still pretty new... 🤔
I thought it might be nice to be as short as possible... do you think it should be ⁂ Fediverse Preview instead? at least until people might recognize the icon...

My preview looks like this, is that a configuration issue?

It's not part of this PR but would be a good follow up, the preview link looks off with the Core preview

I saw this is already reported somewhere in the core-editor repo, but can't find it any more. The "Preview in new tab" seems to be not aligned with the top links and the fediverse links. I am not sure if we can do something there.

My preview looks like this, is that a configuration issue?

How have you done that!?! 😱

I personally don't think a preview link is necessary in the list view. It makes more sense to me where it is now, in the Preview dropdown when editing a post.

We could potentially only add that for ! site_supports_block() then?

That is a nice one!


Fix ACL Template Display for Series in old Admin UI

PR #5537 fixed the template selection, but accidentally broke the display of already selected templates because baseAclId was always set to undefined. This fixes that (at least for series, events might be broken in a different way as well).

My only request is to aim this at r/14.x

Done!

Approved and discussed -> merging


appVersion in installation table for iOS is wrong

where does parse get the appVersion value in the installation table?
Shouldn't it be from TARGETS > MyApp > General > Identity > Version ?

The appVersion field on the client is populated from CFBundleVersion key in your Info.plist aka General -> Identity -> Build.
This is done, as "Version"(CFBundleShortVersionString) stands for user-visible version, whilst build number is usually used for debugging/analyzing. This is also inline with Apple guidelines for usage of these versions.
Example:

You start developing version 1.0, so CFBundleShortVersionString is 1.0
Build -> Test -> Submit to TestFlight, where the version remains the same, but the build number increments.
You release an app to the store with version 1.0, but build is drastically different (incremented) from what you used for local development, or for TestFlight.

Hope this answers your question :wink:


Workflow v2 doesn't seem to be using Babel stages at all

We currently can't seem to get babel "stage" features working with workflow v2, i.e. async/await or do expressions.
Things I've checked:

Workflow has babel-preset-stage-0 installed
Workflow has stage-0 in its .babelrc (if that's even used)
Calling project has latest Workflow v2 installed including my change to install stage-0
Calling project's package.json has babel-preset-stage-0 as dev dep
Calling project has stage-0 in its .babelrc

Examples that fail compilation:
let a = do {
  if(x > 10) {
    'big';
  } else {
    'small';
  }
};

Result:
[10:52:40] ModuleBuildError: Module build failed: SyntaxError: C:/Users/Paul/Git/availity-toolkit/project/app/registration/index.jsx: Unexpected token (19:15)

  17 |
  18 |   test() {
> 19 |     let a = do {
     |                ^
  20 |       if(x > 10) {
  21 |         'big';
  22 |       } else {

Async/await:
  async componentWillMount() {
    const response = await fetch("http://ip.jsontest.com/");
    const data = await response.json();
    this.setState({ ipAddress: data.ip });
  }

Result:
[11:01:14] ModuleBuildError: Module build failed: SyntaxError: C:/Users/Paul/Git/availity-toolkit/project/app/registration/index.jsx: Unexpected token (12:8)

  10 | export default class Registration extends React.Component {
  11 |
> 12 |   async componentWillMount() {
     |         ^
  13 |     const response = await fetch("http://ip.jsontest.com/");
  14 |     const data = await response.json();
  15 |     this.setState({ ipAddress: data.ip });

Let me know if you have any ideas to try. Also, which .babelrc should be respected - the calling project's, or workflow's?
cc @robmcguinness @indifferentdisdain

Tested fbc1a93 with
async function componentWillMount() {
 const response = await fetch("http://ip.jsontest.com/");
 const data = await response.json();
 this.setState({ ipAddress: data.ip });
}

and
let a = do {
  if(x > 10) {
    'big';
  } else {
    'small';
  }
};

@paulirwin The babel presets and plugins are not controlled by a .babelrc file but hardcoded in a custom Webpack loader webpack/babel.js.  I took inspiration from create-react-app but I am not sure if this is the best approach since projects cannot easily override babel settings.

updated availity-workflow to honor the .babelrc file if found at the root  project.  if not found, the defaults are used.  hopefully this allows projects to configure babel independently.

This also seems to be fixed, thanks!!!


[Feature Request] Remove KeyVaultExtensions and ManagedKeyVaultSecurityKey

Those 2 extensions cause CVE. The new KV library will cause dependency issue, no plan to adopt the new one.
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/tree/dev/src/Microsoft.IdentityModel.KeyVaultExtensions
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/tree/dev/src/Microsoft.IdentityModel.ManagedKeyVaultSecurityKey

We need to remove this in 8.0.

will stop releasing these soon and add documentation for guidance.

I guess this issue is fixed by https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2635 and can be closed?

Completed: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2635

@brentschmaltz @jennyf19 Is there guidance for those using (or wanting to use) the former KeyVaultExtensions package for, say, JWE creation/validation?

Any chance of removing the Wiki documentation around KeyVaultExtensions? They are already pretty much broken in .NET 8 and IdentityModel 7.  As per @philliphoff  comment, it would also be great if an alternative could be documented?


Fix admin notes and database time nonsense.

So firstly, apparently we were still using Npgsql.EnableLegacyTimestampBehavior. This means that time values (which are stored UTC in the database) were converted to local time when read out. This meant they were passed around as kind Local to clients (instead of UTC in the case of SQLite). That's easy enough to fix just turn off the flag and fix the couple spots we're passing a local DateTime ez.
Oh but it turns out there's a DIFFERENT problem with SQLite: See SQLite we definitely store the DateTimes as UTC, but when Microsoft.Data.Sqlite reads them it reads them as Kind Unspecified instead of Utc.
Why are these so bad? Because the admin notes system passes DateTime instances from EF Core straight to the rest of the game code. And that means it's a PAIN IN THE ASS to run the necessary conversions to fix the DateTime instances. GOD DAMNIT now I have to make a whole new set of "Record" entities so we avoid leaking the EF Core model entities. WAAAAAAA.
Fixes #19897
:cl:
ADMIN:

fix: Fixed timezone issues with the admin notes window.

This apparently breaks SS14.Admin cause AdminNotes, AdminWatchlist & AdminMessage don't share same interface as before


zenodo autotranslates to Nederlands eScience Center?

e.g. https://zenodo.org/record/1033753/export/json#.WrE2MtYh1gc

@ridderl: seems like this was either

a typo in the user's profile, which then got propagated to Zenodo since the repo has no .zenodo.json specifying the user's affiliation, or
a copy-paste error.

(You can check your affiliation here https://github.com/settings/profile). Closing this issue.


Replace deprecated String.substr() usage

String.substr() method is deprecated for now and should be replaced .
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr
String.prototype.slice() can be an alternative.

Hi @aleksfront, I like to work on this.

@gauravagrwal Feel free to take this one.

substr actually can be useful in some situations

Yes but it is deprecated and can be removed in future updates. All the functionality of substr can be replicated using slice and substring

An easy replacement for substr is to replace the second condition of subtr with the sum of the first condition with the second. Example:
const str = 'abcdefghijklmnopqrstuvwxyz';

console.log(str.substr(0, 5));
console.log(str.slice(0, 5));

console.log(str.substr(3, 5));
console.log(str.slice(3, 3 + 5));

console.log(str.substr(str.length - 4, 4));
console.log(str.slice(str.length - 4, (str.length - 4) + 4));