Question: When Deserializing whats the best way to pass data to sub objects

I have xml like this:
<Envelope version="1.2">
    <SubObject>
        <Name>bert</Name>
    </SubObject>
</Envelope>

And I'd like to deserialize SubObject to a class like this:
class SubObject {
  public string Name {get; set;}
  public float Version {get; set;}
}

Is there any way of getting the version attribute of the Envelope tag , set into SubObject?
I'm currently reading the xml like as below so I could pass it into an instance of SubObject via a constructor, however there doesn't appear to be a version of deserialize that just take the XmlReader and an instance of the object.
using var body = Request.BodyReader.AsStream();
XmlReaderSettings settings = new XmlReaderSettings { ... };
using (XmlReader reader = XmlReader.Create(body, settings)) {
    reader.MoveToContent();
float version = 1.3F;
do {
    if (reader.NodeType == XmlNodeType.Element) {
        string name = reader.Name;
        switch (name) {
            case "Envelope":
                if (reader.MoveToFirstAttribute()) {
                    do {
                        switch (reader.Name) {
                            case "version":
                                float.TryParse(reader.Value, out version);
                                break;
                        }
                    } while (reader.MoveToNextAttribute());
                }
                break;
            case "SubObject":
                IExtendedXmlSerializer serializer = new ConfigurationContainer()
                                .UseOptimizedNamespaces()
                                .EnableImplicitTyping(typeof(SubObject))
                                .Create();
               var newInstance = new SubObject(version);
               // how do I put newInstance into Deserialize, reset the stream?
               var post = serializer.Deserialize(reader) as SubObject;
                if (post is not null) {
                    return Ok(post.Response);
                }
                break;

Or I could do it one go like:
class SubObject {
  public SubObject(float version or. Envelope parent) {....}
...
}

 class Envelope {
      public float Version {get; set;} = 0;
      public SubObject SubObject {get; set;}
 }

// create reader from stream etc...
IExtendedXmlSerializer serializer = new ConfigurationContainer()
                                    .UseOptimizedNamespaces()
                                    .EnableImplicitTyping(typeof(Envelope))
                                    .Create();

 // But how'd I get the parent data into the subobject?

Many Thanks.

Hey @push-22 thank you for the question.  The reading half of the deserializer suffers from some quirks so I try to stay away from it if possible.  One possibility is to use a serialization monitor:
	public sealed class Issue630Tests
	{
		[Fact]
		public void VerifyPassThroughValue()
		{
			var sut = new ConfigurationContainer().Type<Envelope>().WithMonitor(Monitor.Default).Create().ForTesting();

			var instance = new Envelope { Version = 1.2f, SubObject = new() };
			sut.Cycle(instance).SubObject.Version.Should().Be(1.2f);
		}

		sealed class Monitor : ISerializationMonitor<Envelope>
		{
			public static Monitor Default { get; } = new();

			Monitor() {}

			public void OnSerializing(IFormatWriter writer, Envelope instance) {}

			public void OnSerialized(IFormatWriter writer, Envelope instance) {}

			public void OnDeserializing(IFormatReader reader, Type instanceType) {}

			public void OnActivating(IFormatReader reader, Type instanceType) {}

			public void OnActivated(Envelope instance) {}

			public void OnDeserialized(IFormatReader reader, Envelope instance)
			{
				instance.SubObject.Version = instance.Version;
			}
		}

		sealed class Envelope
		{
			public float Version {get; set;}
			public SubObject SubObject { get; set; }
		}
		sealed class SubObject {
			public string Name {get; set;}
			public float Version {get; set;}
		}
	}

If that doesn't work for your purposes I can see about getting that reader available for you. 👍

I've been playing with this, but it doesn't easily fit, I didn't say, but the Envelope can can contain one of many different types of SubObject, which may or may not be there on deserialization. Thats why we're using the switch to "get to" that first object then creating it from there and why I liked the idea of being able to set the version in the SubObjects constructor before deserializing it.
How easy would it be to pipe through the existing XmlReader?

This HACK appears to work ok in my code: (from ReferencedDeserializationContext.cs)
        public T Deserialize(System.Xml.XmlReader reader)
        {
            var existing = new Existing(reader, _existing);
            var result = (T)_reader.Get(existing);
            return result;
        }

Obviously, I've not tested this beyond running your original tests

Ah you beat me to the punch there @push-22 I just started looking into this now. 😁  Adding a new overload for an XmlReader is exactly what I was thinking of doing.  If I add a new method would that get you situated here?

Actually testing it more, It doesn't work. the patch seems to return a new object who version is set to 0 - sorry.

Doh, well you get the overload anyways @push-22 😃  I am unclear how to assist here as the goal of EXS was/is to serialize .NET object graphs and there isn't a lot of emphasis placed on classic XmlReader/XmlWriter.  We're also facing the fact that I haven't really been involved in this codebase for several years now, so it's a bit of a challenge personally to assist in this area.  If you have any further developments I will be more than happy to see if I can further assist you, however. 👍

Thanks

Oh, another consideration... maybe use XSLT to copy that value and then apply it to the child nodes as necessary? 🤔

That would be way too slow i'm afraid  - I don't really understand why its coming back with a copy and not the actual instance. But if thats the way it works thats it I guess.
Many thanks.

But if thats the way it works thats it I guess.

TBH it's a little unclear to me the problem at the moment.  If you can write me a unit test that shows the problem from front to back I can take a look into it for you. 👍


Allow customizing headers in CallGraphAPI calls

Added headers argument to allow setting custom headers such as X-Preserve-Modified-At while making GraphQL calls.

Pipeline ID: 856877

Thanks!


cannot send chat message

Not sure how to reproduce. Happens often but not always, after connecting.
JS console says:
TypeError: events.add is not a function app_jspm.bundle.js:1501:36
here's the offending javascript:
  case actionTypes.connections.sendChatMessage:
                        var eventUri = action.payload.eventUri;
                        var connectionUri = action.payload.optimisticEvent.hasSender;
                        return connections.updateIn([connectionUri, 'hasEvents'], function (events) {
line of error>>>>  return events.add(eventUri);
                        });

@m0ru seems fixed now - can you confirm this?

I am closing this - seems fixed.


stty: 'standard input': Inappropriate ioctl for device

It seems #34 is causing this error on Linux somehow, any idea? @mehalter
It breaks the build of PlutoCLI https://github.com/Roger-luo/PlutoCLI.jl
  Building PlutoCLI → `~/.julia/packages/PlutoCLI/yYmHi/deps/build.log`
┌ Error: Error building `PlutoCLI`:
│ stty: 'standard input': Inappropriate ioctl for device
│ [ Info: generating /home/roger/.julia/bin/pluto.jl
│ [ Info: generating /home/roger/.julia/bin/pluto
│ ERROR: LoadError: failed process: Process(`stty raw`, ProcessExited(1)) [1]
│
│ Stacktrace:
│  [1] pipeline_error at ./process.jl:525 [inlined]
│  [2] run(::Cmd; wait::Bool) at ./process.jl:440
│  [3] run at ./process.jl:438 [inlined]
│  [4] prompt(::IOStream, ::String, ::Bool) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/tools.jl:14
│  [5] prompt(::String, ::Bool) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/tools.jl:5
│  [6] write_path(::String, ::Bool, ::Base.EnvDict) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:585
│  [7] write_path at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:571 [inlined]
│  [8] install_env_path(::Bool) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:561
│  [9] install_script(::Module, ::Dict{String,Any}) at /home/roger/.julia/packages/Comonicon/1Kc5X/src/tools/build.jl:238
│  [10] install at /home/roger/.julia/packages/Comonicon/1Kc5

It seems during the stdin is disabled somehow during Julia's Pkg build command. Things works fine if one build it using julia --project deps/build.jl

Oh yeah that makes sense because Julia's Pkg build probably doesn't run the command in a tty because it's non interactive

I guess we need to remove the prompt of installing PATH and FPATH in the build but just print a log.

but I guess I can let the build happen in a TTY for ion CLI which workaround this issue.


New command: entra roledefinition list. Closes #6464

Closes #6464

Thanks @MartinM85, we'll try to look at it ASAP.

Merged manually, thank you 👏


Ds comparison page improvements after first feedback

In order to improve the ds comparison page, some small features should be added.

[ ] The user should be able to select the datasets to be compared from the dataset list page
[ ] Add m/z value into the annotation table
[ ] Add  a popup explaining which MSM is shown in the annotations table
[ ] Show individual MSM next to each dataset/image, next to its intensity
[ ] Add a link for each image (annotation within individual dataset) that can be clicked and open the annotation within the selected dataset in a regular view
[ ] Fix export to CSV

Bug fixes:

[ ] Fix the default sort order (should be FDR ascending, then MSM descending)
[ ] Fix the colorization of zero-intensity pixels. On Staging they're showing up as transparent - ion images should only have transparency when there's an optical image.
[ ] Fix the positioning of the intensity popup when hovering over the image in Firefox

UX changes:

[ ] Only show a single "cog menu" (intensity scaling, colormap, scale bar color) that affects all images simultaneously
[ ] Show the name of each dataset above their image so that it's possible to tell them apart if you don't remember how you arranged the grid

I'd expect scientists to want to compare the molecules between datasets in tabular form, so that they don't need to open each annotation and look at all the images one-by-one. However, showing it all at once would be too many columns to display by default, so it'd need to be customizable by the user.

[ ] Allow user to select a field (MSM, FDR, maxIntensity or totalIntensity) to show in the table with one column per dataset.
[ ] For dataset-specific fields, show a separate column for each dataset in the CSV (i.e. if you have 5 datasets, then the CSV should have 5 minIntensity columns, 5 maxIntensity columns, etc.

One suggestion that IIRC came from GM:

[ ] Ability to filter and/or sort by the number of datasets that include an annotation, so that users can easily see molecules that are shared and/or not shared

Additionally, I'd suggest changing the "Add a popup explaining which MSM is shown in the annotations table" task - IMO the issue isn't that it's unclear which dataset it comes from. The issue is that showing the MSM for the first non-null annotation just isn't very useful, because there's multiple values and instead of summarizing them, one is being arbitrarily picked. I think people would find it more useful to see the best value out of the datasets.

[ ] Change the MSM/FDR columns to consistently show the best value (highest MSM / lowest FDR) out of the datasets. Also rename them to "Best MSM" / "Best FDR" to reflect this.
[ ] Additionally, allow Best MSM/Best FDR to be used for filtering or sorting, because most users will still want to compare images if an annotation has e.g. 5% FDR in one dataset and 50% in another.  (Talk to Veronika if you want more information about this use-case, as she has tried to use METASPACE for dataset comparison in the past, and ran into this inconsistent FDR issue every time)


Added delay to removeOldDevices() and reload knownMacs after removing devices

I've found that some devices constantly drop and rejoin the network. The delay allows specifying how much time (in seconds) to wait after a device leaves the network before deleting it from the database/cache.

Reviewed changes and merged into main. Also updated the README.md
Thanks!


API functional tests

112497975
WIP. Remove @WIP tags when done.

Before I go in and implement all the API endpoints, I'd like to put some thought into designing this properly. Any thoughts on the comments above, @DRvanR @nicwortel

Even though the issue itself states Behat, has there been given thought to using for instance LiipFunctionaltTestingBundle or even plain webtestcases for API tests? Behat does not seem the be the best tool for testing API's as we have experienced now in various projects.

Thanks for the replies. The reason I asked is because one could describe the API (which could be functional and behavioral) or its implementation (which is technical).
I was indeed wondering whether an existing library, bundle or context would be more suited for the job. LiipFunctionalTestBundle looks like a good candidate.

These tests cover the error cases of the API.
In a separate PR, the interactions with database, metadata, serviceregistry will be brought under test as well.


Problem during install/black screen

Hello,
I had a problem here during installation. So after i clicked "Install gamerOS" a text suddenly appeared:
SHA256 Validated
Retring version 243.0-1-arch
Running early hook [archiso_pxe_nbd1]
running hook [udev]
triggering event ...
and after that only a black screen appears and there is no process at all. I tried waiting for 10 minutes but the results remained the same. Is there a solution?

Closing due to inactivity. Please try with the latest version of GamerOS.


macOS Build Error

When trying to build from source on macOS:
$ cargo build --release -p kaspa-miner -p kaspacuda -p kaspaopencl
error: failed to read `/kaspa-miner/plugins/README.md/Cargo.toml`

Caused by:
  Not a directory (os error 20)

[Intel Mac Pro, Dual AMD FirePro]

In general:
Cuda is not supported on MacOS
OpenCL is supported, but was never tested. We might need to change some configurations in order to build
It should still be possible to build the base miner
Specifically
This error seems like wrong invocation of Cargo. Can you post the command and the full error?

I have trouble as well to get the miner running on my Mac. When I use following command:
cargo install kaspa-miner

Following error is shown:
error[E0433]: failed to resolve: use of undeclared crate or module `keccak`
 --> /Users/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/kaspa-miner-0.2.0/src/pow/keccak.rs:3:5
  |
3 |     keccak::f1600(state);
  |     ^^^^^^ use of undeclared crate or module `keccak`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `kaspa-miner` due to previous error
error: failed to compile `kaspa-miner v0.2.0`, intermediate artifacts can be found at `/var/folders/n0/_wn0_9s97nq8t91l8h6_7lxw0000gn/T/cargo-install0kMI7m`

Any ideas how to fix this?

Mac specs

Specificaton

Model
MacBook Pro

Chip
Apple M1 Max

OS
Ventura 13.3

@ruslansteiger Note that the command you run references Elichai's miner (the parent of this fork). I'll answer here anyway since it is also relevant here.
The inline assembly doesn't work for M1. To disable it, run with -F no-asm
Note that this will not solve the issue of compiling for GPU usage. If you want to install only for cpu usage, you can run:
cargo install --git https://github.com/tmrlvi/kaspa-miner -F no-asm -p kaspa-miner

Though it is probably better to use Elichai's miner directly with
cargo install kaspa-miner -F no-asm


fsync after rename/move

On POSIX it's possible to fsync the directory, to ensure that the new file names are written to disk.
I think on Windows it's necessary to open the new (target) file and fsync it.

POSIX: You appear to be correct.
Windows: Off the bat I can't find any information in either direction (neither proving nor disproving your claim)
I wonder if we should introduce an option to disable fsync calls for situations where performance is more important and just atomicity (not much more) is required.
On 14 July 2016 08:32:50 CEST, Unrud<EMAIL_ADDRESS>wrote:

On POSIX it's possible to fsync the directory, to ensure that the new
file names are written to disk.
I think on Windows it's necessary to open the new (target) file and
fsync it.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/untitaker/python-atomicwrites/issues/12

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

I wonder if we should introduce an option to disable fsync calls for situations where performance is more important and just atomicity (not much more) is required.

You will loose atomicity if you do that. It may be possible that the new file name gets written to disk before the data is fully written. This only provides protection against errors where writing to the temporary file fails (e.g. out of disk space).
If you want to include fsync'ing of the directory, you could make it optional. Maybe durability is out of scope.

Oh, I didn't really think about that (I sort of assumed that closing the file would suffice as well).
On 15 July 2016 11:26:41 CEST, Unrud<EMAIL_ADDRESS>wrote:

I wonder if we should introduce an option to disable fsync calls for
situations where performance is more important and just atomicity (not
much more) is required.

You will loose atomicity if you do that. It may be possible that the
new file name gets written to disk before the data is fully written.
This only provides protection against errors where writing to the
temporary file fails (e.g. out of disk space).
If you want to include fsync'ing of the directory, you could make it
optional. Maybe durability is out of scope.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/untitaker/python-atomicwrites/issues/12#issuecomment-232904653

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

I guess though the fsync you propose could be expendable?
On 15 July 2016 11:26:41 CEST, Unrud<EMAIL_ADDRESS>wrote:

I wonder if we should introduce an option to disable fsync calls for
situations where performance is more important and just atomicity (not
much more) is required.

You will loose atomicity if you do that. It may be possible that the
new file name gets written to disk before the data is fully written.
This only provides protection against errors where writing to the
temporary file fails (e.g. out of disk space).
If you want to include fsync'ing of the directory, you could make it
optional. Maybe durability is out of scope.

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/untitaker/python-atomicwrites/issues/12#issuecomment-232904653

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Windows: Off the bat I can't find any information in either direction (neither proving nor disproving your claim)

I can't either, I guess I remembered that wrong. The MOVEFILE_WRITE_THROUGH flag for MoveFileEx  is used in the code, that problem is already solved for Windows. Sorry.

I sort of assumed that closing the file would suffice as well

Dirty buffer cache pages and metadata are not written to disk when the file is closed.

I guess though the fsync you propose could be expendable (in some situations)?

I can't think of an example. It's expendable if you don't need durability.

The MOVEFILE_WRITE_THROUGH flag for MoveFileEx is used in the code, that problem is already solved for Windows.

Actually I'm not sure about this. It only explicitly mentions that data is synced if the file is copied from a different volume. I guess that this doesn't include meta data as other file operations that only work within one volume don't have a flag like this: ReplaceFile, DeleteFile
Some of the failure modes of ReplaceFile also suggest that the operations is not atomic. I guess this also applies to MoveFileEx if the flag MOVEFILE_REPLACE_EXISTING is used and target already exists.

MoveFileEx is not documented to be atomic anyway, I'm just relying on a posting by a MS employee in the now-removed comments section of MSDN.
On 2 August 2016 08:55:23 CEST, Unrud<EMAIL_ADDRESS>wrote:

The MOVEFILE_WRITE_THROUGH flag for
MoveFileEx
is used in the code, that problem is already solved for Windows.

Actually I'm not sure about this. It only explicitly mentions that data
is synced if the file is copied from a different volume. I guess that
this doesn't include meta data as other file operations that only work
within one volume don't have a flag like this:
ReplaceFile,
DeleteFile
Some of the failure modes of
ReplaceFile
also suggest that the operations is not atomic. I guess this also
applies to
MoveFileEx
if the flag MOVEFILE_REPLACE_EXISTING is used and target already
exists.

You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
https://github.com/untitaker/python-atomicwrites/issues/12#issuecomment-236817294

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


conditional environment variable based on environment

Is it possible to create envs that are optional in development but required in production? I have a couple of tokens used for telemetry which are fine to be empty and no-op in dev, but production builds should fail if they are missing.
I tried setting my env to an empty string, but local development blows up with "Invalid environment variables" error.
// env.ts

import { createEnv } from "@t3-oss/env-nextjs"
import { z } from "zod"

export const env = createEnv({
  shared: {
    NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
  },
  server: {
    ...
  },
  client: {
    NEXT_PUBLIC_TOKEN: z.string(),
    ...
  },
  experimental__runtimeEnv: {
    NEXT_PUBLIC_TOKEN: process.env.NEXT_PUBLIC_TOKEN,
    ...
  },
  skipValidation: !!process.env.CI || !!process.env.SKIP_ENV_VALIDATION || process.env.npm_lifecycle_event === "lint",
})

// .env - development

NEXT_PUBLIC_TOKEN=""

Also, setting the token to a random value like 0x123 is not an option as this is automatically used by a 3rd party library which loads the env by itself. When the env is missing telemetry is disabled, and for non empty strings it will try collecting and sending events.

UP!

import { createEnv } from "@t3-oss/env-nextjs"
import { z } from "zod"

const isProd = process.env.VERCEL_ENV === "production"; // or similar prod check

export const env = createEnv({
  server: {
    REQUIRED_IN_PROD: isProd ? z.string() : z.string().optional(),
  },
})

Thank you! 🤗


getting started windows documentation page should be updated

http://nd4j.org/getstarted - windows - part should be updated:

First sentence says to install vs13 but it works for VS 12, as the next phrase written indicates that path environment variable should be configured with vs12 path. I tested with vs 12 in windows 7 and it worked.
vcvars32.bat is the default recommendation but the only that worked for me was "vcvarsall.bat amd64" as some raven told me in gitter
final link http://avulanov.blogspot.cz/29/howto-to-run-netlib-javabreeze-in.html is not working anymore

See also #545


App crashes in Internet Explorer instead of showing Unsupported Browser Warning

Describe the bug
Application crashes (blank page) on internet explorer 11 instead of showing the Unsupported Browser Warning page. Console shows 'Promise' is undefined error. App crashes whether running locally or when deployed using Twilio cli.
To Reproduce
Steps to reproduce the behavior:

Clone twilio-video-react-app
Follow readme to build and deploy to Twilio-cli
Launch internet explorer from windows start menu and visit url to newly deployed app
Blank page
Open console to see 'Promise' is undefined error

Expected behavior
App must not crash and instead display unsupported warning UI
Screenshots

Environment (please complete the following information):

OS: Windows 10 20H2
Browser: Internet Explorer 11 on Win10
App Version: 0.3.1
SDK Version: twilio-video:2.13.1
Node.js version: 14.16.1 LTS

Hi @mh-coreplus! Thank you for bringing this to our attention. Since we don't support Internet Explorer, we don't do any testing with this browser. That being said, I was able to reproduce your issue and do not see the Unsupported Browser warning as well. I've added a bug ticket to our backlog, and we'll let you know as soon as the fix is merged!

Hi @mh-coreplus - thanks for the issue!
Unfortunately, this app (or the Twilio-Video SDK) isn't designed to support Internet Explorer. It isn't set up to include the required polyfills (like Promise which is why you are seeing the Promise is not defined error).
However, it is quite easy to configure this application to include the required polyfills. This app is built with Create React App, so there's some good information on this page, but I'll go ahead and outline the required steps below:

Install the react-app-polyfill package by running npm i -S react-app-polyfill

Next we need to include the right polyfills for IE 11. Add the following two lines of code to the very beginning of src/index.ts. These must be the first lines in the file:

import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';

Last, we need to instruct babel to compile the source code to a version that can be run by IE 11. This can be done by adding "ie 11" to the browserslist object in package.json. Update package.json so the the browserslist object looks like this:

  "browserslist": {
    "production": [
      "ie 11",
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "ie 11",
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },

Note: When editing the browserslist config, you may notice that your changes don't get picked up right away. This is due to an issue in babel-loader not detecting the change in your package.json. A quick solution is to delete the node_modules/.cache folder and try again.
That's it! This should get the Unsupported Browser Warning to appear in Internet Explorer. Be aware that the extra polyfills add about 43kb to the compressed bundles produced by npm run build.
At this time, we won't be adding the fix to this app, but I'll be sure to update this issue if we ever change our minds. Please let me know how this solution works out for you!


Added missing "/" in closing tag

Added missing "/" in closing MonoAndroidResourcePrefix tag in AndroidResources section.

@tentom : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @tentom
This file has changed significantly since you made your PR. The code that needs updating is now in build-items.md, rather than build-process.md. While I can fix this, you'll lose your contribution then.
There are two options:

You rebase your PR, delete your current change and update build-items.md.
I delete this PR and create one to fix it myself.

Let me know how you want to proceed.

@davidbritch : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Include in readme supported features KIPs?

Would be great to have a matrix like this
https://github.com/edenhill/librdkafka/blob/master/INTRODUCTION.md#supported-kips

Yeah, I agree, let's do something like that.


"System.InvalidOperationException: The LinkedList node does not belong to current LinkedList"

Describe the bug
In 11.3, on rare occasions I will get an error like the below:
      Unexpected Execution Error
      System.InvalidOperationException: The LinkedList node does not belong to current LinkedList.
         at System.Collections.Generic.LinkedList`1.ValidateNode(LinkedListNode`1 node)
         at HotChocolate.Utilities.Cache`1.TouchEntry(LinkedListNode`1 rank)
         at HotChocolate.Utilities.Cache`1.GetOrCreate(String key, Func`1 create)
         at HotChocolate.Execution.Caching.DefaultPreparedOperationCache.TryAddOperation(String operationId, IPreparedOperation operation)
         at HotChocolate.Execution.Pipeline.OperationCacheMiddleware.InvokeAsync(IRequestContext context)
         at HotChocolate.Execution.Pipeline.DocumentValidationMiddleware.InvokeAsync(IRequestContext context)
         at HotChocolate.Execution.Pipeline.DocumentParserMiddleware.InvokeAsync(IRequestContext context)
         at HotChocolate.Execution.Pipeline.DocumentCacheMiddleware.InvokeAsync(IRequestContext context)
         at HotChocolate.Execution.Pipeline.TimeoutMiddleware.InvokeAsync(IRequestContext context)
         at HotChocolate.Execution.Pipeline.ExceptionMiddleware.InvokeAsync(IRequestContext context)

Re-running the query will work fine, and it will be a good while before I see the error again.
To Reproduce
I have not found a reliable way to reproduce it.
Desktop (please complete the following information):

OS: macOS
Version 11.2.3

Additional context
HotChocolate version 11.3.0

This one is now fixed

We will issue a hotfix 11.3.2

https://github.com/ChilliCream/hotchocolate/releases/tag/11.3.2
https://github.com/ChilliCream/hotchocolate/releases/tag/12.0.0-preview.26


bugfix: set progressbar width to 0 manually, pterm will use terminal width

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 74.244%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
4321

Relevant Lines:
5820

💛  - Coveralls


Agora hypermarket - Move loadbalancer logging to a separate file

@fcabrera23 please take a look at the new parameter I added for the GPU skus. We need to provide a list of SKUs that support GPU


github training issues

Hands-on Labs & Activities:

[x] Hands-on Labs Setup
[ ] Module 1: Introduction to GitHub Actions
[ ] Module 2: Syntax
[ ] Module 3: Environments and Secrets
[ ] Module 4: Workflow Templates
[ ] Module 5: Custom actions
[ ] Module 6: Self-hosted runners
[ ] Module 7: CI/CD


Decide future direction of library

With the adoption of Bech32, there is likely to be no need for a Base58-specific library.
Would it make sense to transform libbase58 into a generic libbitcoinaddress library, adding Bech32 and perhaps Bitcoin Script generation?

Any thoughts, @CoperNick8 @holland01 @randolf @sipa @laanwj @e271828- @voisine ?

I tend to agree - base58 has so few stand-alone uses outside of bitcoin,
that including bechs32 functionality and making it a combined library makes
sense imo.
On Tue, Jul 3, 2018, 13:00 Luke Dashjr<EMAIL_ADDRESS>wrote:

Any thoughts, @CoperNick8 https://github.com/CoperNick8 @holland01
https://github.com/holland01 @randolf https://github.com/randolf @sipa
https://github.com/sipa @laanwj https://github.com/laanwj @e271828-
https://github.com/e271828- @voisine https://github.com/voisine ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bitcoin/libbase58/issues/6#issuecomment-402130555,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHutvLx1mbENiNpOK_tUnmHDZo9wzGSks5uC1z6gaJpZM4SvWAL
.

This seems reasonable to me as well.

I do not know. I'm new. I just add that I thought that libbase58 is part of the Bitcoin Core, but now I see that Bitcoin Core has its own base58.cpp .


windows: use c_void from winapi

The SelectObject() call accepts a HGDIOBJ which is typecast to a
std::os::raw::c_void when building using libstd, and is its own thing
when building with std disabled:
winapi/0.3.9/src/winapi/lib.rs.html:
    #[cfg(feature = "std")]
    pub use std::os::raw::c_void;
    #[cfg(not(feature = "std"))]
    pub enum c_void {}

This patch uses the winapi c_void as the typecast as necessary.

Thanks!


Add Axon mask simulator

Resolves #178 , and as mentioned in #176
Initial functionality:

from AxonDeepSeg.visualization.simulate_axons import SimulateAxons
a=SimulateAxons()
a.generate_axon(50)
a.generate_axon(75, center=[100, 200])
a.generate_axon(100, center=[800, 150])
a.generate_axon(100, center=[600, 700], gratio=0.9)
a.save()

Output (SimulatedAxons.png):

No documentation yet, but the code should be self-evident on what functions do and how to use them.

Coverage decreased (-1.02%) to 80.464% when pulling 073bc801e3e4438b8a82bea7021e71a4063d14a6 on simaxon into 6ebe87ceba001e7af84aeec033cd2606babeb8fb on master.

I don't know if it's of any use, but I had implemented an histology image simulator based on AxonPacking (https://github.com/neuropoly/axonpacking/blob/imageSimulator/code/image_simulator.m). I didn't end up using it for my project but just in case, I'm putting the link here.

@jcohenadad is this extended functionality more what you were looking for?
from AxonDeepSeg.visualization.simulate_axons import SimulateAxons
b=SimulateAxons()
b.generate_axon(50)
b.generate_axon(20, center=[800, 150], gratio=0.5)
b.generate_axon(40, center=[600, 700], axon_angle=45, plane_angle=80)
b.generate_axon(40, center=[200, 200], axon_angle=80, plane_angle=60, eccentricity=0.5)

I searched, but I wasn't able to find the exact mathematical equation of the cross section of a cylinder (i.e. ellipse) as a function of plane angle and tilt angle, but I think what I ended up implementing is/might be pretty close.

Ok great! I'll actually write some documentation & a few tests before we merge, so I'll re-request you to review once those are done.

Ok so I was able to roughly implement a behaviour to produce concentric ellipses instead of transversally cut ones (see @jcohenadad's comment here: https://github.com/neuropoly/axondeepseg/pull/179#discussion_r263819989).
A few notes:

I found a bug in my implementation of rotating the axons, so I removed it for now (it was rotating the axon around the center of the image and not about the center of the ellipse)
None of the functionality is well documented in the code
Some of the API is a bit bloated and/or complicated (e.g. just hacked a way to include both the concentric circles and my old transversally cut axon implementations. The function arguments logic is pretty bad a the moment but works)
No unit tests are written yet

See here for example though:

from AxonDeepSeg.visualization.simulate_axons import SimulateAxons

c=SimulateAxons()

c.generate_axon(axon_radius=40, center=[200, 200], gratio=0.9, ellipse_ratio = 2, ellipse_mode = 'concentric')
c.generate_axon(axon_radius=40, center=[400, 400], gratio=0.8, ellipse_ratio = 2, ellipse_mode = 'concentric')
c.generate_axon(axon_radius=40, center=[600, 600], gratio=0.7, ellipse_ratio = 2, ellipse_mode = 'concentric')
c.generate_axon(axon_radius=40, center=[800, 800], gratio=0.6, ellipse_ratio = 2, ellipse_mode = 'concentric')

c.save()

Output:

Documenting the code and refactoring some API to be up to standard would likely take some time and a few iterations, and writing tests to cover all important cases will also take some time. I could maybe get it done by the end of the week and can squeeze in some time a few evenings, if I'm lucky.
How does that timeline work for you and your PR @vs74 ?
p.s. The code examples I posted last year above in the thread are likely broken at the moment, fyi.

This is fantastic @mathieuboudreau !!! thank you so much for moving this forward.
Indeed, having simulated transverse cuts would be great at some point, but this is already a fantastic starting point, which will be super useful!

Indeed, having simulated transverse cuts would be great at some point, but this is already a fantastic starting point, which will be super useful!

Sorry, allow me to clarify @jcohenadad . That functionality is already there; it's the first one that I made last year. Today I only added the concentric circles funcitonality. The issue is I haven't documented these very well, and there's one additional functionality that I never documented that I don't remember why I implemented ... 😳
See here for an example of transverse cuts at different angles:

from AxonDeepSeg.visualization.simulate_axons import SimulateAxons

c=SimulateAxons()

c.generate_axon(axon_radius=40, center=[100, 100], gratio=0.6, plane_angle=0)
c.generate_axon(axon_radius=40, center=[300, 300], gratio=0.6, plane_angle=25)
c.generate_axon(axon_radius=40, center=[500, 500], gratio=0.6, plane_angle=50)
c.generate_axon(axon_radius=40, center=[700, 700], gratio=0.6, plane_angle=75)

c.save()

Output:

wow that's amazing! thank you @mathieuboudreau !!

Documenting the code and refactoring some API to be up to standard would likely take some time and a few iterations, and writing tests to cover all important cases will also take some time. I could maybe get it done by the end of the week and can squeeze in some time a few evenings, if I'm lucky.

How does that timeline work for you and your PR @vs74 ?

Thank you @mathieuboudreau  for looking into this PR. The timeline is perfect. Meanwhile you get things ready for simulated axons, I will try to finish the ellipse minor axis PR (documentation, adding comprison of the feature on our image to figure out what default behaviour we wish to keep, etc...) so that as soon as your PR gets complete we can merge your PR  as well as mine.

This branch is ready for review @mariehbourget & @jcohenadad (I can't assign @vs74 as a reviewer). There's likely still lots that could be done (e.g. handling "colliding" axons), but this basic behaviour should be useful under careful use (i.e. replacing @vs74's png files in his other PR).

This branch is ready for review @mariehbourget & @jcohenadad (I can't assign @vs74 as a reviewer). There's likely still lots that could be done (e.g. handling "colliding" axons), but this basic behaviour should be useful under careful use (i.e. replacing @vs74's png files in his other PR).

i will not have the time to properly test/review that PR, so i will trust @vs74 and @mariehbourget judgements

i will not have the time to properly test/review that PR, so i will trust @vs74 and @mariehbourget judgements

My understanding is that the feature with concentric ellipses described here is no longer used, am I correct?

Yeah, I removed it. Including that and transversally cut options the complicated the API too much (I couldn't find a good solution for the class method arguments without bloating it too much). It can easily be added if there's any desire to include it, but I'd recommend opening a new issue for it.
Thanks for the review!

My understanding is that the feature with concentric ellipses described here is no longer used, am I correct?

Yeah, I removed it. Including that and transversally cut options the complicated the API too much (I couldn't find a good solution for the class method arguments without bloating it too much). It can easily be added if there's any desire to include it, but I'd recommend opening a new issue for it.
Thanks for the review!


Helm chart API version invalid

The Helm lint command against the chart from mcr.microsoft.com complains that Chart.yaml apiVersion: v3 is invalid
Pulling mcr.microsoft.com/azuremonitor/auth-proxy/prod/aad-auth-proxy/helmchart/aad-auth-proxy:0.1.0-main-08-23-2023-5988d874
Linting release=aad-auth-proxy, chart=/tmp/helmfile1531340620/observability/***/aad-auth-proxy/aad-auth-proxy/0.1.0-main-08-23-2023-5988d874/aad-auth-proxy
==> Linting /tmp/helmfile1531340620/observability/***/aad-auth-proxy/aad-auth-proxy/0.1.0-main-08-23-2023-5988d874/aad-auth-proxy
[ERROR] Chart.yaml: apiVersion 'v3' is not valid. The value must be either "v1" or "v2"
[INFO] Chart.yaml: icon is recommended
[ERROR] Chart.yaml: chart type is not valid in apiVersion 'v3'. It is valid in apiVersion 'v2'

Helm version:
version.BuildInfo{Version:"v3.13.3", GitCommit:"c8b948945e52abba22ff885446a1486cb5fd3474", GitTreeState:"clean", GoVersion:"go1.20.11"}
See official Helm v3 documentation

Fixed in version aad-auth-proxy:0.1.0-main-01-10-2024-08b31473.


Move kismatic-offline installation to docker-registry-images play whe…

Closes #333
Move kismatic-offline package installation closer to where its used.
Cleanup will already be performed in _packages-cleanup when upgrading node.

LGTM


Android: no nfc support

I have implemented all your steps and here is my AndroidManifest:

//Application

When I try to detect NFC tags I get this warning saying: "no nfc support", is there any other this I need to add to my project?

@niloufarMakhzani  How did you solve this?


test(client): update e2e tests after Shopware upgrade to 6.1.0 rc4 and shrink the snapshot files

Closes #251
WIP

Closing in favour of #273


interface mocking

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.237%

Totals

Change from base Build<PHONE_NUMBER>1:
0.0%

Covered Lines:
910

Relevant Lines:
917

💛  - Coveralls


Implementing Automated End-to-end Testing In A Nextjs App Using Jest and Playwright

Writing sample(s):
ENGED PROGRAM CONTRIBUTOR Gisiora Elvis
Topic Suggestion
Implementing Automated End-to-end Testing In A Nextjs App Using Jest and Playwright
Proposed article introduction
End-to-end Testing is very important and should be essential in every application. In this tutorial, I will introduce the reader to end-to-end testing as a concept, the challenges the reader is likely to encounter and the importance of automating the process.
Jest is a javascript testing library that is used to test the functionality of an application. It is a tool that allows writing tests for javascript applications and then running them to make sure that the application is working as expected.
Playwright is a headless browser automation tool used to write end to end tests for web applications. It is used to emulate user interactions on the web application on a headless browser.
In this tutorial I will demonstrate in a step by step and easy to understand example how to write automated end-to-end tests using Jest and Playwright in a Nextjs application, so that the reader can take advantage of the benefits that come with testing.
Key takeaways

What is end-to-end testing?
Why end-to-end testing is important.
Overview to jest testing library and how to write tests.
Overview to playwrite web automation library.
In-depth guide on how to implement end-to-end testing in a Nextjs application.

Article quality
This will be a step by step beginner-friendly and in-depth guide that covers the implementation of end-to-end testing using Jest and Playwright in a Nextjs application.
References

jest
playwright
Nextjs
How To Guide Template
Tutorial Template

Good afternoon and thank you for submitting your topic to the EngEd program.
After some careful consideration it struck us that this topic may be a bit over saturated throughout other blog sites and official documentations. We typically refrain from publishing content that is covered widely on the net or other blogs. We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
But in order to approve the topic it has to serve value to the larger developer community at large. Please feel free to suggest an alternate topic to explore. 🚀
An option and a great way to write this as an in-depth article and make it more add value to the greater developer community at large would be to walk the reader through the USE of methods and functions by building a unique, different, useful project.
If you believe your article is unique enough - please present your case to explain how it will be different from what is currently out there?
https://www.google.com/search?q=End-to-end+Testing+In+A+Nextjs+App+Using+Jest+and+Playwright&rlz=1C1CHBF_enUS891US891&sourceid=chrome&ie=UTF-8

I believe that knowledge can never be exhausted, and when I look at nearly similar content online, none combine the 2 libraries(jest+playwright) in the same tutorial. The real power comes in combining the 2 libraries when testing an application. With that, you get the benefits and strengths of both libraries. In addition, this will be beginner-friendly and as engaging as possible. Making this article one-of-a-kind. Will address these issues as gracefully as possible in order to maintain quality and add value to the community.


Notebook: OId cell contents showing up again

Testing #98985
Version: 1.46.0-insider
Commit: 595d2b9b916d063aadfc2c1a8c8f6df5b45572a8
Date: 2020-06-03T05:33:25.873Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-51-generic
Not reprodcuble after a VSCode restart,
I added code cells. The new code cell had the content of a cell I previously deleted
Dev tools showed
/usr/share/code-insi….desktop.main.js:94     at e.registerListeners (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:6442:760)
    at new e (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:6439:631)
    at d._createInstance (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1649:255)
    at d.createInstance (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1648:683)
    at new e (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2278:508)
    at d._createInstance (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1649:255)
    at d.createInstance (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1648:683)
    at e.renderTemplate (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3714:843)
    at file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:540:918
    at Array.map (<anonymous>)
    at z.renderTemplate (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:540:909)
    at t.RowCache.alloc (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:296:490)
    at e.insertItemInDOM (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:511:224)
    at e._splice (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:507:859)
    at e.splice (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:506:467)
    at file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:30:994
    at Array.forEach (<anonymous>)
    at t.CombinedSpliceable.splice (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:30:981)
    at file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:547:144
    at t.EventBufferer.bufferEvents (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:98:214)
    at e.splice (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:547:111)
    at e.splice2 (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3246:431)
    at file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3243:937
    at Array.forEach (<anonymous>)
    at file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3243:715
    at e.fire (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:95:801)
    at e.createCell (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3282:392)
    at e.insertNotebookCell (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:7059:249)
    at Object.runWithContext (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3669:701)
    at Object.run (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3663:279)
    at handler (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1834:871)
    at d.invokeFunction (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1648:212)
    at e._tryExecuteCommand (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3916:37)
    at file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:3915:774
    at async s.run (file:///usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:123:52)

The bug should already be resolved now in Insiders.


Angular CLI server not starting

i am unable to start the Angular CLI server in Eclipse workspace angular. I have downloaded the plugin Angular for eclipse neon. I have created the new project with angular, but unable to start the Angular CLI server. Below  is the link i am following.
https://www.genuitec.com/first-angular-2-app/
Regards,
Ram

Pls Explain the folder structure for Angular2 and the dependencies to download

@Rambj Seems like the post is outdated you can follow the wiki to create and run CLI project. Should be three commands.

ng new hello-world
cd hello-world
ng serve

After that opening http://localhost:4200/ in the browser, you should see sample app.


About default feature range in Kinematic Observation

Hi!
I'm curious where the default features range in KinematicObservation come from? To the point I know, the x value can be from 0 to maximum_duration * MAX_SPEED, but in that line, it is considered in (-5 * MAX_SPEED, 5 * MAX_SPEED) range. So I can't understand:

Why is the negative range also considered for x and y?
Why is maximum duration not considered?
Why five times of MAX_SPEED?

Again I don't understand why the speed range is two times the MAX_SPEED.
Thank you

And one other thing: The PERCEPTION_DISTANCE in the AbstractEnv is considered six times the MAX_SPEED, which compared to the values above is a vast quantity and is almost like global knowledge of the environment.

in general roads can have any direction, so it should be handled. But even on a horizontal road, you may want to perceive vehicles all around you, not just in front (x) and to your right (?) (y)
and 3. well, maximum duration is chosen to 5s (hardcoded, yes). So a unit distance is the maximum the ego-vehicle can travel in 5s.

The PERCEPTION_DISTANCE in the AbstractEnv is considered six times the MAX_SPEED, which compared to the values above is a vast quantity

Well, it's 6 max_speed rather than 5 max_speed, not that vast a difference. But I agree that it' an inconsistency.

almost like global knowledge of the environment.

If you want to plan on a horizon of 5-6s, you probably need to see that far. 100-150m seems reasonable to me, in the case of highway driving.

in general roads can have any direction, so it should be handled. But even on a horizontal road, you may want to perceive vehicles all around you, not just in front (x) and to your right (?) (y)

So if I understood right, the observations are relative tho the vehicle's position and are not absolute. My question was with the pre assumption that observations are absolute.

Well it can be both, depending on whether the field absolute is set to true or false.
But even in the case of absolute coordinates, in some environments the frame origin is located such that vehicles can have negative coordinates. The horizontal roads of highway-v0 are a special case.

But even in the case of absolute coordinates, in some environments the frame origin is located such that vehicles can have negative coordinates. The horizontal roads of highway-v0 are a special case.

Could you mention a code line in which you've changed the origin? I wanted to see how it is possible.

2. and 3. well, the maximum duration is chosen to 5s (hardcoded, yes). So a unit distance is the maximum the ego-vehicle can travel in 5s.

I want to reward my agent based on normalized distance from a predefined goal, but isn't the point of normalization that we can always expect the normalized value won't exceed 1? Let's, in this case, say that the vehicle is at x=300m absolute position, then its normalized x is 2.
So can I conclude that in such cases, we should limit the duration to 5 seconds to make sure the agent's observation remains normalized? (Or of course, specify a courser feature range)

Could you mention a code line in which you've changed the origin? I wanted to see how it is possible.

You cannot really change the origin, but rather the position of the road network (relative to the origin). In intersection-v0 or roundabout-v0 for instance, the origin is in the middle of the intersection/roundbout.

but isn't the point of normalization that we can always expect the normalized value won't exceed 1?

Well, not necessarily. It depends on why you are normalizing, really. If it is related to model conditioning for function approximation, it doesn't have to be a hard constraint, and people often normalize by dividing by the standard deviation (which means you can still get a value >= 2 with ~13% probability).
See e.g. https://www.jeremyjordan.me/batch-normalization/, https://towardsdatascience.com/why-data-should-be-normalized-before-training-a-neural-network-c626b7f66c7d
I think it is up to you to choose the proper feature range / scale depending on your particular needs.

Thank you very much for the fruitful discussion


Can't use it without package.json

Hi,
I've recently updated my version of release-it and I started getting an error related to missing package.json file.
Here is exact line that causes this behavior: https://github.com/webpro/release-it/blob/master/lib/config.js#L64
Should new version of release-it work for non-npm projects too?

version 9.3.0 still fails when I don't have package.json even with an existing tag, any reason why?

Are you using pkgFiles: null or --no-pkgFiles? Otherwise it's still trying to bump these files.


Create dockerfile

Create a dockerfile so that the model trains and makes predictions within it

Did this on my local machine. Should just do the cloud version and close this issue here.

It wasn't working so xd


[Accessibility] [Visual Requirement] Added a visual message when clicking the Copy button in bot dialogs

Fixes ADO Issue: #64663, #64705, #64706
Describe the issue
If users navigate on the New Bot Configuration Dialog and focus moving on copy control and select it, but the copy message does not appear on screen, so it would be difficult for users to understand if the action was completed or not.
Actual behavior:
After selection of the Copy control, a "Copied message" does not appear on the screen Under Bot Configuration Dialog.
Expected behavior:
After selection of the Copy control, a "Copied message" should appear on the screen Under Bot Configuration Dialog. So that users know that the action was completed.
Repro Steps:

Open Bot Framework Emulator installed on the system.
Bot Framework Emulator Application with Welcome screen opens.
Navigate on the welcome screen and select Create a New BOT configuration link.
New BOT Configuration dialog opens.
Navigate on the dialog and enter inputs in edit fields.
Verify whether the copied message appears on the screen or not.

Changes included in the PR

Added a visual message after the Copy button is pressed. The message will be announced by the screen reader.

Screenshots
Test cases executed successfully
botCreationDialog

botSettingsEditor

Coverage decreased (-0.08%) to 67.68% when pulling 86f0035a0c5ade82d7a4d17388f4581b66e9f677 on southworks:external/southworks/fix/bot-dialog/copy-button-message into 3310e57c55425b845a313a227a1eac849002aafa on microsoft:main.


Conformance statement requires the .date field

Describe the bug
From inferno.healthit.gov:
Invalid CapabilityStatement: CapabilityStatement: Profile http://hl7.org/fhir/StructureDefinition/CapabilityStatement, Element 'CapabilityStatement.date': minimum required = 1, but only found 0

AB#77728

AB#77728


Added context support

Added context support to check.Check

README still contains broken code snippets, e.g. NewHostResolveCheck() calls


Assessment of Current Electrical Panel Box

Objective
To conduct a comprehensive evaluation of the existing electrical panel box to identify its current capabilities, limitations, and any necessary upgrades for the planned expansion to 42 circuits. Open ReadMe for visuals.
Steps

Visual Inspection

Examine the physical condition of the existing panel box, including:

Signs of wear or damage (rust, corrosion, overheating).
Secure mounting and accessibility.

Check for proper labeling of existing circuits.

Circuit Analysis

Document the current circuit configuration:

List all existing circuits and their designated loads (e.g., lighting, outlets, appliances).
Identify any circuits that are overloaded or underutilized.

Assess the amperage rating of the current panel and its breakers, ensuring they meet the requirements for planned upgrades.

Load Calculation

Perform a load calculation to determine the total electrical load currently being used:

Include all major appliances, lighting, and outlets.
Calculate the demand to ensure the current panel can handle additional circuits without exceeding capacity.

Identify potential issues that may arise from the addition of new circuits, especially for high-demand areas (e.g., the dryer, car charging station, and yurt).

Safety Inspection

Check for compliance with local electrical codes and safety standards:

Verify that grounding and bonding are adequate.
Inspect for proper wire sizing and connections.
Assess the presence and functionality of protective devices (e.g., GFCI breakers).

Documentation

Create a detailed report summarizing the findings from the assessment:

Include diagrams of the current panel layout.
Provide recommendations for necessary upgrades or repairs.
Highlight any immediate safety concerns that need to be addressed before proceeding with the upgrade.

Consultation with an Electrician

If necessary, consult with a licensed electrician to validate findings and recommendations:

Discuss potential solutions for identified issues.
Ensure that all plans align with current electrical codes and best practices.

Deliverables

A comprehensive report detailing the current state of the electrical panel box, including:

Visual and physical condition assessment.
Circuit analysis and load calculations.
Safety compliance check results.
Recommendations for upgrades or repairs.

Diagrams illustrating the current circuit layout and load distribution.

Acceptance Criteria

Completion of the assessment report with documented findings.
Identification of all existing circuits and their loads.
Recommendations for addressing any issues found during the assessment.
Validation of findings by a licensed electrician, if applicable.

This is an initial analysis of the current Electrical Distribution for a 30-space circuit panel box.


[WIP] remove duplicated nuget.exe

i need to check if packages.config is used ( NUnit.Runners" version="2.6.3" ) but i dont think so

thanks!


[ BUG ] running with separator ¶

Hi, there.
$ tw --separator '¶' ./my.csv
$ tw --infer-schema safe --separator '¶' ./my.csv
$ tw --infer-schema no --separator '¶' ./my.csv
These returns all same.
Error: ComputeError(ErrString("could not parse `1009880005252�` as dtype `str` at column '�' (column number 1)\n\nThe current offset in the file is 154 bytes.\n\nYou might want to try:\n- increasing `infer_schema_length` (e.g. `infer_schema_length=10000`),\n- specifying correct dtype with the `dtypes` argument\n- setting `ignore_errors` to `True`,\n- adding `1009880005252�` to the `null_values` list.\n\nOriginal error: ```invalid utf-8 sequence```"))

It says invalid utf-8 but it is valid utf-8. Any clue, please?
Regards

Hi,
Thank you for reporting this.
The problem is that the underlying CSV library (Polars) assumes that separator and quote characters are ASCII. Therefore, the Pilcrow character is cast into u8 and turned into an invalid character.
A more user-friendly message will be shown in the next version.
Let me know if I can help with anything else.
Bests


PostCSS plugin tailwindcss requires PostCSS 8.

Describe the bug
I'm facing an issue when I started storybook
To Reproduce
Steps to reproduce the behavior:

Install storybook-addon-next: yarn add storybook-addon-next -D
Add 'storybook-addon-next' to main.js file
Lanch storybook: yarn storybook
See error

My package.json
"devDependencies": {
    "@babel/core": "^7.16.12",
    "@commitlint/cli": "^16.1.0",
    "@commitlint/config-conventional": "^16.0.0",
    "@next/bundle-analyzer": "^12.0.8",
    "@storybook/addon-a11y": "^6.4.14",
    "@storybook/addon-actions": "^6.4.14",
    "@storybook/addon-essentials": "^6.4.14",
    "@storybook/addon-links": "^6.4.14",
    "@storybook/addon-postcss": "^2.0.0",
    "@storybook/addons": "^6.4.14",
    "@storybook/builder-webpack5": "^6.4.14",
    "@storybook/manager-webpack5": "^6.4.14",
    "@storybook/react": "^6.4.14",
    "@storybook/theming": "^6.4.14",
    "@svgr/webpack": "^6.2.0",
    "@tailwindcss/forms": "^0.4.0",
    "@tailwindcss/typography": "^0.5.0",
    "@testing-library/jest-dom": "^5.16.1",
    "@testing-library/react": "^12.1.2",
    "@types/react": "^17.0.38",
    "@types/tailwindcss": "^3.0.3",
    "@typescript-eslint/eslint-plugin": "^5.10.1",
    "@typescript-eslint/parser": "^5.10.1",
    "autoprefixer": "^10.4.2",
    "babel-jest": "^27.4.6",
    "babel-loader": "^8.2.3",
    "commitizen": "^4.2.4",
    "commitlint-config-gitmoji": "^2.2.5",
    "cz-customizable": "^6.3.0",
    "eslint": "8.6.0",
    "eslint-config-next": "^12.0.8",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-react": "^7.28.0",
    "eslint-plugin-react-hooks": "^4.3.0",
    "eslint-plugin-simple-import-sort": "^7.0.0",
    "eslint-plugin-storybook": "^0.5.5",
    "eslint-plugin-unused-imports": "^2.0.0",
    "husky": "^7.0.4",
    "identity-obj-proxy": "^3.0.0",
    "inquirer-fuzzy-path": "^2.3.0",
    "jest": "^27.4.7",
    "lint-staged": "^12.3.1",
    "next-sitemap": "^2.0.7",
    "plop": "^3.0.5",
    "postcss": "^8.4.5",
    "prettier": "^2.5.1",
    "prettier-plugin-tailwindcss": "^0.1.4",
    "react-test-renderer": "^17.0.2",
    "standard-version": "^9.3.2",
    "storybook-addon-next": "^1.3.1",
    "storybook-theme-css-vars": "^0.0.4",
    "tailwindcss": "^3.0.16",
    "typescript": "^4.5.5"
  },

Thanks for opening an issue :)
I've tracked this down to your inclusion of @storybook/addon-postcss. It adds as a dependency older versions of postcss-loader and postcss which is causing the issue. given. There does seem to be movement on that repository to support the newer versions
The addon in question seems to be moot however given that storybook-addon-next already handles postcss for you. Do you have a use case where you need both these addons? It seems to me like you can just drop @storybook/addon-postcss.

Thank you for your help @RyanClementsHax
I removed @storybook/addon-postcss, but now it only works if I remove plugin:storybook/recommended from eslintrc.js. If I keep it I have the error in my IDE:
Error: Failed to load plugin 'storybook' declared in '.eslintrc.js': Cannot find module 'eslint-plugin-storybook'

No prob! About the other issue, sounds like you might need to wipe your node modules and maybe also your lock file then reinstall your dependencies. If that doesn't work I think I would need a minimal reproduction repo so I can poke around myself.

Mmh yes I have already done this @RyanClementsHax, if you want you can check my repo: https://github.com/flosrn/nextjs-ts-starter/tree/with-storybook

I'm not sure I can recreate the problem unfortunately :(

Eslint seems to be working fine for your repo.

This worked. Should add to the docs to remove @storybook/addon-postcss

If you are using nextjs, remove @storybook/addon-postcss, add storybook-addon-next and it  will work.


Disable console.warn on NativeSerializer.js

Description

A lot of console.warn yellow warning message when the data pass to leaveBreadcrumbs contains functions.
Describe the solution you'd like

There must be a way to disable this line:
https://github.com/bugsnag/bugsnag-react-native/blob/67468086569e17d37e08ac7a719d46af3971c9a0/src/NativeSerializer.js#L36
Describe alternatives you've considered

In our code, we traverse the data and delete functions before passing it to leaveBreadcrumbs
Additional context
Add any other context about the feature request here.

Hi @vafada ,
Could you describe a bit more about your use case here, what are you trying to achieve. Could you share an example of your code used to call leaveBreadcrumbs?
Thanks

Hi @vafada
If this is still creating a problem for you, I recommend you upgrade as this issue will no longer occur in (v7.3.4) of the Bugsnag react native library. As of v7.3 the library itself has now become part of the bugsnag-js repository.
An upgrade guide can be found here with full documentation available here.


Updating IntroPage.xaml

Before you start

[x] Have you checked if a similar PR has already been requested?
[x] Have you built and ran the app?

Related/Fixed issues
Address related/fixed issues

Related: #114
Fixed: #

Description
Details of changes are listed here
Formatted previous work already done in #114 to reach the goal mentioned in the comments.
Motivation and Context
Items resolved/related issues by this PR.
Assets (if appropriate):
A list of assets (screenshots, mockups) relevant to this pull request.

Can you fetch?

This build fail is not error of source code just our problem when merging from forked repo.

Maybe.  I did that instead of my homework last night so I can't say I'll be consistent, but if you need/want xaml help, I can chip in.  I've done a lot with html and xaml isn't too far away.


Add controller texture config option to profiles

XRTK - Mixed Reality Toolkit Pull Request
Overview
Adds hidden serialized fields to controller mapping profiles to configure controller textures used in the mapping window and data provider inspector.

It's implemented in a backwards compatible way so existing controller textures are not broken. For now these fields do not appear in the controller profile inspector and to edit them, one must switch to "DEBUG" inspector mode. This is fine as this is only meant to be used by us internally for now.
Why is this better than before?
Instead of relying on some magic and top secret paths hard-coded in the toolkit scripts we can now conventienly configure these textures using the respective controleller profile. This allows us to ship these controller textures with the platform package instead of having them all in the core package.
Also this sort of enables support for users to consume these textures for in-game settnigs screens e.g.

The PR looks good, but I believe some tests would be needed.

Agreed, could you add/enhance the tests around the controller profile @FejZa for the new features that are being added?
Especially around null testing and missing config?


Modules Errors when attempting to deploy AKS via Ansible

When attempting to deploy the AKS utilizing the "azure_rm_aks" module, I consistently run into a keyword argument error within the Python code. Using the same parameter options, I can successfully deploy the AKS using Ansible and ARM template.
Any help or insight would be greatly appreciative as I am attempting to accomplish this without the use of ARM templates.
Error(s) Returned:
{
"_ansible_parsed": false,
"exception": "Traceback (most recent call last):\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 594, in \n    main()\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 590, in main\n    AzureRMManagedCluster()\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 387, in init\n    required_if=required_if)\n  File "/tmp/ansible_ueXSHz/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py", line 383, in init\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 480, in exec_module\n    self.results = self.create_update_aks()\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 523, in create_update_aks\n    linux_profile=create_linux_profile_instance(self.linux_profile)\nTypeError: init() got an unexpected keyword argument 'linux_profile'\n",
"_ansible_no_log": false,
"module_stderr": "Traceback (most recent call last):\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 594, in \n    main()\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 590, in main\n    AzureRMManagedCluster()\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 387, in init\n    required_if=required_if)\n  File "/tmp/ansible_ueXSHz/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py", line 383, in init\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 480, in exec_module\n    self.results = self.create_update_aks()\n  File "/tmp/ansible_ueXSHz/ansible_module_azure_rm_aks.py", line 523, in create_update_aks\n    linux_profile=create_linux_profile_instance(self.linux_profile)\nTypeError: init() got an unexpected keyword argument 'linux_profile'\n",
"changed": false,
"module_stdout": "",
"rc": 1,
"msg": "MODULE FAILURE"
}
Playbook - aks.yml

hosts: localhost
connection: local
tasks:

name: Create Azure Container Services (AKS) Environment
azure_rm_aks:
client_id: "{{ client_id }}" # not required. Azure client ID. Use when authenticating with a Service Principal.
secret: "{{ secret }}" # not required. Azure client secret. Use when authenticating with a Service Principal.
subscription_id: "{{ subscription_id }}" # not required. Your Azure subscription Id.
tenant: "{{ tenant }}" # not required. Azure tenant ID. Use when authenticating with a Service Principal.
state: "{{ state }}" # not required. choices: absent;present. Assert the state of the AKS. Use C(present) to create or update an AKS and C(absent) to delete it.
name: "{{ aks_name }}" # required. Name of the managed Azure Container Services (AKS) instance.
location: "{{ location }}" # not required. Valid azure location. Defaults to location of the resource group.
resource_group: "{{ resource_group_name }}" # required. Name of a resource group where the managed Azure Container Services (AKS) exists or will be created.
dns_prefix: "{{ aks_name }}" # not required. DNS prefix specified when creating the managed cluster.
linux_profile:
admin_username: "{{ admin_username }}"
ssh_key: "{{ ssh_key }}"
service_principal:
client_id: "{{ client_id }}"
client_secret: "{{ secret }}"
agent_pool_profiles:
- name: "{{ agent_pool_name }}"
count: "{{ agent_pool_count }}"
vm_size: "{{ agent_pool_size }}"
#os_disk_size_gb: "{{ agent_os_disk_size }}"
tags:
Environment: "{{ enviroment_tag }}"
append_tags: yes # not required. Use to control if tags field is canonical or just appends to existing tags. When canonical, any tags not found in the tags parameter will be removed from the object's metadata.

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

ID: ba39655e-ba8f-b429-7f9c-5f327a6779d4
Version Independent ID: 171f2116-c8f9-737c-b6a9-be9028af58f7
Content: Create and configure Azure Kubernetes Service clusters in Azure using Ansible
Content Source: articles/ansible/ansible-create-configure-aks.md
Service: ansible
GitHub Login: @TomArcher
Microsoft Alias: tarcher

@justcallmetrell Your comment has been shared with the content owner for review.

@kyliel Could you take a look at this issue?

@justcallmetrell Would you please show the version of your azure-mgmt-containerservice package? It is  required >= 3.0.1 for aks module

Sure ...
[root@awx awx]# pip show azure-mgmt-containerservice
Name: azure-mgmt-containerservice
Version: 3.0.1
Summary: Microsoft Azure Container Service Client Library for Python
Home-page: https://github.com/Azure/azure-sdk-for-python
Author: Microsoft Corporation
Author-email<EMAIL_ADDRESS>License: MIT License
Location: /usr/lib/python2.7/site-packages
Requires: azure-common, azure-mgmt-nspkg, msrestazure
Required-by: azure-mgmt

I can run your playbook in the cloud shell with version 2.6.3 successfully. Can you show the Ansible version by ansible --version? And show the result of python -c "import azure;print azure.__file__".

I ask this question because that the azure_mgmt_containerservice library with previous version has no linux_profile option in the managed_cluster. And if your system has been installed two versions of libraries, the python interpreter may have  trouble to find the correct one. We did meet such problem before.

@yuwzho Thanks.
Here are the results:
[root@awx awx]# ansible --version
ansible 2.6.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
[root@awx awx]# python -c "import azure;print azure.file"
/usr/lib/python2.7/site-packages/azure/init.pyc

@justcallmetrell Thanks for the additional information. We are all at AnsibleFest, and will reply when we get back.

Sorry for late response, just back from holiday.

Seems you have the same environment as mine. However I don't meet such problem, I can share you my playbook, and my environment is  Cloud Shell where you also can have a try.
- hosts: localhost
  connection: local
  tasks:
   - name: resource group
     azure_rm_resourcegroup:
        name: yuwzhotestansible
        location: eastus
   - name: Create Azure Container Services (AKS) Environment
     azure_rm_aks:
        name: yuwzhotestansible
        location: eastus
        resource_group: ywuzhotestansible
        dns_prefix: yuwzhotestansible
        linux_profile:
            admin_username: "{{ admin }}"
            ssh_key: "{{ ssh_key }}"
        service_principal:
            client_id: "{{ client_id }}"
            client_secret: "{{ secret }}"
        agent_pool_profiles:
            - name: default
              count: 1
              vm_size: Standard_DS1_v2
        tags:
              Environment: devint
        append_tags: yes

@justcallmetrell Did you want to continue working on this Issue, or can it be closed?

@justcallmetrell I'm going to close the Issue, but please let us know if we can help further and we will. Thanks again for the feedback.
@femsulu #please-close

We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.

@TomArcher @Mike-Ubezzi-MSFT @yuwzho
Thanks guys and my apologies for the delayed response... between Work and a newborn baby at home, time is something I am learning I don't have enough of! 😄 At this time, I have decided to deploy my Azure resources using ARM templates and the "azure_rm_deployment" module for my automation. Thanks again.


TypeScript: ReadonlyMap & ReadonlySet not available when targeting es5

🐛 Bug Report
We had this as a bug report in redux-toolkit, but it boils down to immer.
If the target is set to es5, the "ES2015.Collection" library is not loaded by TypeScript, so ReadonlyMap and ReadonlySet are not available. This leads to the Draft type spinning into an endless recursion (as ReadonlyMap is interpreted as the empty object type, matching everything), resulting in a Draft type like
Map<Map<Map<Map<Map<Map<Map<Map<Map<Map<Map<..., ...>, Map<..., ...>>, Map<Map<..., ...>, Map<..., ...>>>, Map<Map<Map<..., ...>, Map<..., ...>>, Map<...>>>, Map<...>>, Map<...>>, Map<...>>, Map<...>>, Map<...>>, Map<...>>, Map<...>>

for the most simple drafted objects.
A simple fix would be to not rely on the external definitions of ReadonlyMap and ReadonlySet, but just to include them, which would mean defining
declare interface ReaddonlyMap<K, V> {
    forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
    get(key: K): V | undefined;
    has(key: K): boolean;
    readonly size: number;
}

declare interface ReadonlySet<T> {
    forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
    has(value: T): boolean;
    readonly size: number;
}

next to the Draft type.
If this would be a welcome addition, I'd be happy to open a PR :)
Link to repro
A very simple reproduction can be found on https://github.com/jon-thompson/rtk-map-issue
Environment
We only accept bug reports against the latest Immer version.

Immer version:
[x] I filed this report against the latest version of Immer
[x] Occurs with setUseProxies(true)
[x] Occurs with setUseProxies(false) (ES5 only)

A long long time ago, we had our own typings for those collections, but that bring their own problems, like our types being sooner or later not assignable to anything that accepts real maps and sets, missing newer browser API's etc.
I recommend rather, that in the case you don't have ES2015 collections available in your TS set, to declare the types you suggest above somewhere in a .d.ts file in your own code base.
For all clarity, if you are using Map and Set, I think ES2105.collections is quite a correct thing to do?

This is a problem not we ourselves are experiencing, but some of our users. So they have to fix it on their side, which is unfortunate.

but that bring their own problems, like our types being sooner or later not assignable to anything that accepts real maps and sets, missing newer browser API's etc.

That would essentially require a breaking change in the DOM APIs, so it's highly unlikely. New properties would not pose a problem as the types I suggested above would only be used by TS for pattern matching against the real object types, not replace them in any way. (As long as ReadonlySet doesn't get a get method, making the two undistinguishable.)
For all I care they could even have different names than ReadonlyMap and ReadonlySet, they just have to be distinguishable from each other and overlap with the original interfaces.

For all clarity, if you are using Map and Set, I think ES2105.collections is quite a correct thing to do?

This error is happening regardless of Maps and Sets actually being used (in the linked example, it's a Draft<{ state: "loading" } | { state: "finished"; data: string }>, I believe every other type would probably trigger the error as well). So this essentially makes immer unusable for everyone without ES2105.collections enabled.

Feel free to submit a PR to work out ideas, but I think if we redefine Map, we potentially break it for any existing ES2016... ES2XXX user as their drafts would become only subset of what is available now in their environment. If I understand your solution correctly. (e.g. a draft map might suddenly not have an iterator anymore etc).
You could also check if it possible to check in the immer utility first if Map isn't an empty type (e.g. Map extends { get(), set()} ? recurse : never, I can imagine there is a solution in that area. Although it is not entirely clear to me why the absence of Map doesn't error in the first place, rather than falling back to empty objects?

I believe overriding the global Map type isn't even possible. We could extend it's interface by doing interface augmentation with define global { interface Map { ... } }, but that wouldn't be necessary.
The thing is: TypeScript doesn't care about the names of these interfaces and just does pattern matching, so declaring an interface _ReadonlyMap that is never exported anywhere and only used in the Draft type for pattern matching would totally suffice there.
I'll try to open a PR some time in the next week.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Home Page: Cf home card shows error icon when there are too many apps to fetch

recent apps list attempts to fetch all apps, which uses flattenPaginationMax
this stops the cf app from being de-pagination if there are too many apps to fetch
when this is hit the warning triangle shows for the icon
these lists should use a custom pagination key and override the results-per-page param to only fetch a small number of apps

This can be triggered by settings UI_LIST_MAX_SIZE to a low number. It's normally advised to also set the 'results-per-page' initial param in GetAllApplications action to something at or below this value


296 Ethnic Group

Context

https://trello.com/c/uEgty8QN/296-m-record-trainee-ethnic-group

Changes proposed in this pull request

Implement the diverstiy ethnic group section

Guidance to review

Visit the review app https://dfe-twd-rttd-pr-109.herokuapp.com/
Head to the diversity information, select yes, should be taken to the ethnic group page. Choose ethnic group, save and return - the information should be persisted

 [M] Record trainee ethnic group

The divider and Not provided aren't correct - they need to be part of the same fieldset / set of radios. Like this, but without the conditional.
Have discussed with David and it sounds like it's a gap in the functionality of the formbuilder.


Build(deps-dev): Bump @types/node from 20.10.3 to 20.11.0 (#5445)

Pull request opened by the merge tool on behalf of #5445

Merged in 68db16c2776d3b957bd2468616d4764645e8c0a2


device-network.c: Fix crash in pappl_dnssd_list() with Avahi

If PAPPL testsuite runs in isolated environment, e.g. in mock, we cannot generate Avahi client, because Avahi is not running. This causes _papplDNSSDInit() to return NULL, which is later sent into avahi_service_browser_new(), which uses assert() for this argument and make the binary crash if the input is NULL.
The crash makes the testsuite fail during the build, which is useful sanity check before the package is built.

This shouldn't cause a crash because the cupsDNSSD APIs are sane about NULL checking/ignoring. But happy to add this to short-circuit things...


Revisit idea of marking beta branch releases as "pre-release" on Nuget

Hi there,
I don't want to spam, but I'm not sure if you get notifications for closed issues. Please check issue #5 for my latest comment.
Cheers!

Closing this because #5 has been reopened.


Add a failing test for printSnapshotAndReceived incorrectly recognizing sometimes indented lines as changed

Summary
It has been reported to Emotion that each printed style property is being shown as changed in Jest 25 when anything changes between snapshots & received: https://github.com/emotion-js/emotion/issues/1847
It turned out that we currently ignore indentation because we use OldPlugin interface and we just print retrieved styles with always indented. We plan to fix this soon, but I believe the issue is still worth fixing in Jest itself - especially that the comment here:
https://github.com/facebook/jest/blob/32aaff83f02c347ccd591727544002490fb4ee9a/packages/jest-snapshot/src/printSnapshot.ts#L316-L317
suggests that this was supposed to be handled.
So far I've just added a failing test and would like to first check-in if there is an interest in fixing this before I dive into this further. I've also actually tried to fix this quickly by calling dedentLines on this:
https://github.com/facebook/jest/blob/32aaff83f02c347ccd591727544002490fb4ee9a/packages/jest-snapshot/src/printSnapshot.ts#L324
but while it has fixed my issue it has changed 2 other tests and it would require further investigation why this is happening and how the fix could be improved.

@pedrottimark @jeysal any ideas here?

Just an additional note because it might not be super clear while skimming through my original post - this has changed between Jest 24 and Jest 25. Jest 24 did not report those false positives.

Either I messed up the merge or this is fixed. @Andarist any idea? 😀

Codecov Report

Merging #9863 (1e57d0e) into main (e3c84b5) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #9863   +/-   ##
=======================================
  Coverage   68.47%   68.48%
=======================================
  Files         324      324
  Lines       16968    16968
  Branches     5060     5060
=======================================
+ Hits        11619    11620    +1
+ Misses       5317     5316    -1
  Partials       32       32

Impacted Files
Coverage Δ

packages/jest-snapshot/src/plugins.ts
100.00% <0.00%> (+20.00%)
:arrow_up:

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 e3c84b5...1e57d0e. Read the comment docs.

@SimenB This PR was sent quite some time ago - there is a high chance of this being fixed so perhaps this can be closed. I would probably recommend trying to check if there is already a test for this because if there is not then maybe it's still worth landing this PR so this test could act as a regression test for the future.
I'm afraid that I won't have enough time to look into this myself though.

I'm happy to land this as a regression test 🙂

Ah wait no, the test demonstrates the error, it wasn't a failing test. Makes sense!

Ah, so the problem is still here - I just didn't make it a failing test case back then but rather a test showcasing an invalid behavior, did I get this right (I'm refreshing my own memory about this issue)?

yeah, seems like it to me 🙂

bump for stale bot

bump for stale bot


The recently updated code has some issues

Traceback (most recent call last):
File "/wav2lip_288x288/train_syncnet_sam.py", line 417, in
run()
File "/wav2lip_288x288/train_syncnet_sam.py", line 376, in run
train_dataset = Dataset('filelists/train.txt')
File "/wav2lip_288x288/train_syncnet_sam.py", line 73, in init
self.all_videos = get_image_list(file_list)
TypeError: get_image_list() missing 1 required positional argument: 'split'
Traceback (most recent call last):
File "/wav2lip_288x288/train_syncnet_sam.py", line 9, in
from models import SyncNet_color as SyncNet
File "/wav2lip_288x288/models/init.py", line 4, in
from .wav2lipv2 import Wav2Lip, Wav2Lip_disc_qual, Wav2Lip_SAM
ImportError: cannot import name 'Wav2Lip_SAM' from 'models.wav2lipv2' (/wav2lip_288x288/models/wav2lipv2.py)
It should be hparams. py and models/init.py The code in py was not submitted.

Fixed!


FileNotFoundError

Steps to reproduce

apt install crackmapexec
...

crackmapexec smb
CME verbose output (using the --verbose flag)
CME Version (cme --version)
Kali Linux
Installed it already new - but error is still there. Impacket Tools are also new installed.
Detailed issue explanation
Traceback (most recent call last):
File "/usr/local/bin/crackmapexec", line 11, in
load_entry_point('crackmapexec==5.0.2.dev0', 'console_scripts', 'crackmapexec')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2859, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2450, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2456, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.8/dist-packages/crackmapexec-5.0.2.dev0-py3.8.egg/cme/init.py", line 10, in
for module in os.listdir(thirdparty_modules):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/crackmapexec-5.0.2.dev0-py3.8.egg/cme/thirdparty'

Follow instructions on wiki page https://github.com/byt3bl33d3r/CrackMapExec/wiki

Hi,
I am experiencing the same issue on Kali Linux 2020.2
❯ cme
Traceback (most recent call last):
  File "/usr/local/bin/cme", line 11, in <module>
    load_entry_point('crackmapexec==5.0.2.dev0', 'console_scripts', 'cme')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2859, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.8/dist-packages/crackmapexec-5.0.2.dev0-py3.8.egg/cme/__init__.py", line 10, in <module>
    for module in os.listdir(thirdparty_modules):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/crackmapexec-5.0.2.dev0-py3.8.egg/cme/thirdparty'

I followed the instructions as stated on the wiki page:
#~ apt-get install -y libssl-dev libffi-dev python-dev build-essential
#~ git clone --recursive https://github.com/byt3bl33d3r/CrackMapExec
#~ cd CrackMapExec
#~ python3 setup.py install


Fix the Ripple address validator

We need to use full base58 validation, or we will get this wrong. Before, we were rejecting otherwise valid addresses because the encoded length was randomly shorter.

Travis failure is unrelated to current changes: connect ECONNREFUSED <IP_ADDRESS>:443


Sensor falls down

hi, i have  attached a same sensors using the "tutorial.py" file. The problem is the the sensors fall dawn into the street and doesn't remain attacched to the vehicle although i specified the "attach_to=vehicle" argoument in the spawn_actor function. As result appear the following Warning:
WARNING: sensor object went out of the scope but the sensor is still alive in the simulation: Actor 104 (sensor.camera.rgb)
here the code part of interest:

I think the problem is because of camera_transform. carla.location should be said regards to vehicle and is not the location in the world. and x=-5.5 is out of the scope of vehicle actor. as it is the longitudinal distance from center of vehicle and 5.5 is a lot.

I think the problem is because of camera_transform. carla.location should be set according to vehicle and is not the location in the world.  x=-5.5 is out of the scope of vehicle actor as it is the longitudinal distance from center of vehicle and 5.5 is a lot.
@kimiya66  thank you for the answer
Unfortunately i have tried also with x = 1.5 and z=2.4 and the result is the same. if do you have a portion of code used by you to do the same thing can you posts it here ?
thanks again.

I defined it as these and it was working:
camera_blueprint = world.get_blueprint_library().find('sensor.camera.rgb')
camera_location = carla.Transform(carla.Location(x=1.2, z=1.7))
camera_blueprint.set_attribute('sensor_tick', '0.5');
camera_sensor = world.spawn_actor(camera_blueprint, camera_location, attach_to=vehicle);

Unfortunately there is still the same problem.
There all the code:
`
try:
# First of all, we need to create the client that will send the requests
# to the simulator. Here we'll assume the simulator is accepting
# requests in the localhost at port 2000.
client = carla.Client('localhost', 2000)
    client.set_timeout(2.0)

    # Once we have a client we can retrieve the world that is currently
    # running.
    world = client.get_world()

    # The world contains the list blueprints that we can use for adding new
    # actors into the simulation.
    blueprint_library = world.get_blueprint_library()

    # Now let's filter all the blueprints of type 'vehicle' and choose one
    # at random.
    bp = random.choice(blueprint_library.filter('vehicle'))

    # A blueprint contains the list of attributes that define a vehicle's
    # instance, we can read them and modify some of them. For instance,
    # let's randomize its color.
    if bp.has_attribute('color'):
        color = random.choice(bp.get_attribute('color').recommended_values)
        bp.set_attribute('color', color)

    # Now we need to give an initial transform to the vehicle. We choose a
    # random transform from the list of recommended spawn points of the map.
    transform = random.choice(world.get_map().get_spawn_points())

    # So let's tell the world to spawn the vehicle.
    vehicle = world.spawn_actor(bp, transform)

    # It is important to note that the actors we create won't be destroyed
    # unless we call their "destroy" function. If we fail to call "destroy"
    # they will stay in the simulation even after we quit the Python script.
    # For that reason, we are storing all the actors we create so we can
    # destroy them afterwards.
    actor_list.append(vehicle)
    print('created %s' % vehicle.type_id)

    # Let's add now a "depth" camera attached to the vehicle. Note that the
    # transform we give here is now relative to the vehicle.
    camera_rgb = blueprint_library.find('sensor.camera.rgb')

    camera_rgb2 = blueprint_library.find('sensor.camera.depth')
    camera_rgb3 = blueprint_library.find('sensor.camera.semantic_segmentation')
    camera_rgb4 = blueprint_library.find('sensor.lidar.ray_cast')

    camera = carla.Transform(carla.Location(x=1.2, z=1.7))
    lidar =carla.Transform(carla.Location(x=3, y=0, z=0), carla.Rotation(roll=0,yaw=90,pitch=0))
    #camera = carla.Transform(carla.Location(x=0,y=5,z=5), carla.Rotation(roll=0,yaw=0,pitch=0))
    camera_tf_2 =carla.Transform(carla.Location(x=-5, z=5), carla.Rotation(roll=0,yaw=0,pitch=-45))

    camera1 = world.spawn_actor(camera_rgb, camera, attach_to=vehicle)
    #camera2 = world.spawn_actor(camera_rgb, camera_tf_2, attach_to=vehicle)
    #camera2 = world.spawn_actor(camera_rgb2, camera_transform, attach_to=vehicle)
    #camera3 = world.spawn_actor(camera_rgb3, camera_transform, attach_to=vehicle)
    #camera4 = world.spawn_actor(camera_rgb4, lidar, attach_to=vehicle)
    # Now we register the function that will be called each time the sensor
    # receives an image. In this example we are saving the image to disk
    # converting the pixels to gray-scale.
    #cc = carla.ColorConverter.LogarithmicDepth

    #COLOR CONVERTER
    #cc_segmentation = carla.ColorConverter.CityScapesPalette
    cc_depth= carla.ColorConverter.Depth

    print("listen")

    #camera1.listen(lambda image: to_bgra_array(image, 'Data8/RGB_',image.frame_number))
    #camera2.listen(lambda image: to_bgra_array(image,'Data8/DEPTH_',image.frame_number))
    #camera3.listen(lambda image: to_bgra_array(image,'Data8/SEGMENTATION_',image.frame_number))
    #camera4.listen(lambda image: image.save_to_disk('Data12/LIDAR_%06d' % image.frame_number))
    camera1.listen(lambda image: image.save_to_disk('Data12/RGB_%06d' % image.frame_number))
    #camera2.listen(lambda image: image.save_to_disk('Data12/RGB_camera2_%06d' % image.frame_number))
    #print(a)

    time.sleep(5)

finally:

    print('done.')

if name == 'main':
main()

`

up

up

can you show for obstacle.detector sensor also i am getting same error with obstacle.detector


webostv Not changing inputs

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.60
Python release (python3 --version):
Python 3.6
Component/platform:
webostv.py/HASSIO
Description of problem:
When trying to change inputs hassio says select_source called but reverts to current input
Expected:
input change
Problem-relevant configuration.yaml entries and steps to reproduce:

wake_on_lan: # enables `wake_on_lan` domain

media_player:
  - platform: webostv
    host: <IP_ADDRESS>
    name: Living Room TV
    timeout: 5
    filename: webostv.conf
    #other settings
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: 38:8C:50:36:26:8F
    customize:
      sources:
        - HDMI1
        - HDMI2
        - HDMI3
        - makotv
        - youtube
        - netflix

Traceback (if applicable):
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/tasks.py", line 182, in _step
    result = coro.throw(exc)
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1031, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 408, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/webostv.py", line 329, in select_source
    self._current_source_id = self._source_list[source]['id']
TypeError: unhashable type: 'dict'

Additional info:

just want to add python 3.5 error log for exactly the same issue:
2017-12-19 03:22:12 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1031, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 408, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/webostv.py", line 329, in select_source
    self._current_source_id = self._source_list[source]['id']
TypeError: unhashable type: 'dict'

@OddBloke, could this be something you can help with ?

Yep, looking at this now.

Is there's a fix for this?ir hace to wait for a update?