Avoid unpacking PartitionedCuttingProblem in tutorials & how-tos

This modifies our use of partition_problem in the documentation to avoid unpacking it like a tuple.  We already know that we plan to break the tuple interface in the v0.4 release cycle.  This prepares for the change, by demonstrating code in our documentation that is resilient to our planned changes.  I'm not sure if PartitionedCuttingProblem will end up remaining a namedtuple or not; if we add a few more elements to it, it might make more sense for it to be a dataclass.  Either way, this code should continue to work on v0.4.  I don't want to hold us to this: if there's some other breaking change we need to make, we should do it.  But this change at least provides some hope that our tutorials from v0.3 might work unmodified on v0.4, too.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 91.152%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2699

Relevant Lines:
2961

💛  - Coveralls


Update manage-creation-of-groups.md

added Microsoft Stream

@MikePlumleyMSFT - PR is ready for final review based on issue #828
Thank you.


Docs tarball missing for Github releases

The tarball with the API docs is missing for 0.36.0 and 0.36.1 releases. Is this on purpose or just got lost in the release process?

Done. Human error :-)


WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree

Hey, i get this warning after updated my typescript version from 4.7.4 to 4.8.2.
Maybe is not effect for my code, but this warning has a bad look for me.
Can you help me for hide this warning, please?
this is my package.json

and this a warning

This is not something TypeScript can help with.  You should report this to the developers of typescript-estree.

This is not something TypeScript can help with. You should report this to the developers of typescript-estree.

Oh okay. Thanks

You should not report this to the developers of typescript-estree, because there's nothing to report. They support specific TypeScript versions with each release, and you switched to a TypeScript version that is not supported by your typescript-estree version.
You should just update typescript-estree as well.

I suppose it’s possible that they haven’t gotten around to supporting 4.8 at all yet, but that’s a good point.

@MartinJohns Yes, I wont report this.  I just waiting update from the developers of typescript-estree

Thanks all, and now the developers of typescript-estree has updated and the warning has been hide


feat(run_process): catch ctrl-c

Added the option to stop the program correctly when I use ctrl + c with watchgod cli
When I tried to use the cli tool watchgod like that:
watchdog main.main
And then I wanted to close my program ( send SIGINT ) it didn't sent and the data on my program haven't stored before exiting.
Now when I added try and I put _stop_process in finally block, it closing my program correctly.

thanks, it looks like with this change, _stop_process could be called twice, I'll make a change to try to avoid that happening.

thanks, it looks like with this change, _stop_process could be called twice, I'll make a change to try to avoid that happening.

thanks, it looks like with this change, _stop_process could be called twice, I'll make a change to try to avoid that happening.

ignore this comment, looks like _stop_process already checks if the process is alive.

thanks, it looks like with this change, _stop_process could be called twice, I'll make a change to try to avoid that happening.

ignore this comment, looks like _stop_process already checks if the process is alive.

thanks so much, I'll create a new release today.

thanks so much, I'll create a new release today.


add option to skip writing secret down to rh config

#1324  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jlewitt1 and the rest of your teammates on  Graphite


Code OSS Often Crashes When Starting Debugging

When hitting F5 in Code Insiders, Code OSS often crashes.

I sent @deepak1556 a crash dump.
Maybe this is related to #128334, idk.

Merging to https://github.com/microsoft/vscode/issues/122225


VerneMQ 1.9.2 crashes on reconnect to a persistent session with offline messages waiting

I'm using the HiveMQ MQTT 5 client to connect to a dockerized VerneMQ (1.9.2).
The client has a persistent shared subscription with offline messages waiting for the client to reconnect.
When the connection is established (CONNACK is received), the broker should send any offline messages to the client, but immediately crashes and disconnects.
When using a normal (not shared) subscription, the messages are delivered to the client as expected.
Environment

VerneMQ Version: 1.9.2 (Docker image erlio/docker-vernemq:latest)
OS: Linux 89eafc044293 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 GNU/Linux
VerneMQ configuration from docker-compose:
- DOCKER_VERNEMQ_ALLOW_ANONYMOUS=on
- DOCKER_VERNEMQ_LISTENER__TCP__ALLOWED_PROTOCOL_VERSIONS=3,4,5
Cluster size/standalone: standalone

Expected behavior

mqtt5 client has a persistent session (cleanStart=false, sessionExpiryInterval=172800) with a shared(!) subscription
mqtt5 client disconnects
broker receives messages with qos=1 or qos=2 and puts them into the offline_messages queue
mqtt5 client reconnects
broker sends offline messages to client

Actual behaviour
mqtt5 client reconnects
broker crashes with:
2019-10-31 13:19:48.897 [error] <0.1392.0>@vmq_parser_mqtt5:serialise:389 CRASH REPORT Process <0.1392.0> with 0 neighbours crashed with reason: bad argument in vmq_parser_mqtt5:serialise/1 line 389
2019-10-31 13:19:48.898 [error] <0.1392.0>@vmq_parser_mqtt5:serialise:389 Ranch listener {{172,19,0,5},1883} terminated with reason: bad argument in vmq_parser_mqtt5:serialise/1 line 389

crash.log:
2019-10-31 13:19:48 =CRASH REPORT====
  crasher:
    initial call: vmq_ranch:init/4
    pid: <0.1392.0>
    registered_name: []
    exception error: bad argument: [{vmq_parser_mqtt5,serialise,1,[{file,"/vernemq-build/apps/vmq_commons/src/vmq_parser_mqtt5.erl"},{line,389}]},{vmq_mqtt5_fsm,prepare_frame,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,1395}]},{vmq_mqtt5_fsm,handle_messages,5,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,1353}]},{vmq_mqtt5_fsm,connected,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,454}]},{vmq_mqtt5_fsm,in,3,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,246}]},{vmq_mqtt5_fsm,msg_in,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,234}]},{vmq_ranch,handle_message,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_ranch.erl"},{line,242}]},{vmq_ranch,loop_,1,[{file,"/vernemq-build/apps/vmq_server/src/vmq_ranch.erl"},{line,138}]}]
    ancestors: [<0.323.0>,<0.322.0>,ranch_sup,<0.134.0>]
    message_queue_len: 0
    messages: []
    links: [<0.323.0>,#Port<0.154>]
    dictionary: [{rand_seed,{#{jump => #Fun<rand.16.10897371>,max =><PHONE_NUMBER>51711743,next => #Fun<rand.15.10897371>,type => exsplus},[285848900126158635|1547444473287239]}},{request_problem_information,true},{max_outgoing_msg_size,undefined},{max_incoming_msg_size,0},{atomics_ref,#Ref<0.545497354.404881412.57744>}]
    trap_exit: true
    status: running
    heap_size: 2586
    stack_size: 27
    reductions: 1469
  neighbours:
2019-10-31 13:19:48 =ERROR REPORT====
Ranch listener {{172,19,0,5},1883} had connection process started with vmq_ranch:start_link/4 at <0.1392.0> exit with reason: {badarg,[{vmq_parser_mqtt5,serialise,1,[{file,"/vernemq-build/apps/vmq_commons/src/vmq_parser_mqtt5.erl"},{line,389}]},{vmq_mqtt5_fsm,prepare_frame,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,1395}]},{vmq_mqtt5_fsm,handle_messages,5,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,1353}]},{vmq_mqtt5_fsm,connected,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,454}]},{vmq_mqtt5_fsm,in,3,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,246}]},{vmq_mqtt5_fsm,msg_in,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_mqtt5_fsm.erl"},{line,234}]},{vmq_ranch,handle_message,2,[{file,"/vernemq-build/apps/vmq_server/src/vmq_ranch.erl"},{line,242}]},{vmq_ranch,loop_,1,[{file,"/vernemq-build/apps/vmq_server/src/vmq_ranch.erl"},{line,138}]}]}

@MacPatric thanks for reporting! ;)
A note on wording: the session crashes, not the broker.
The parser stumbles here, so could this have to do with DUP flag? https://github.com/vernemq/vernemq/blob/00f57bfe00d3e1a2f33a02030260c1ff81976a82/apps/vmq_commons/src/vmq_parser_mqtt5.erl#L389
@dergraf can you look into this?

@MacPatric to make sure this is an Verne issue (which I think it is as it happens in serialising): can you confirm the error which other clients too? (like the Mosquitto tools or similar)

This issue should be fixed by https://github.com/vernemq/vernemq/pull/1356.


pycharm  No module named flask.flask    flask 1.1.0

when FLASK_DEBUG set to 1
debugger will report
No module named flask.flask
error
when i revert back flask version to 1.0.4, the error disappear.
I think this error is related new version.
please fix it, thank you.
Environment

Python version: 3.7.2
Flask version: 1.1.0

Please provide some code to reproduce it (e.g. a cloneable git repo if it can't be done in a single file), ideally outside of PyCharm.

Duplicate of #3293

This seems to still be an issue in 1.1.1, with PyCharm. Or at the very least, I get the same error message.

Requires a new release of Werkzeug

I had the same issue, upgrading to werkzeug-0.15.5 fixed it for me

I have the same issue with it too:
Python 3.7.4
Flask 1.1.1
Werkzeug 0.15.5
But if I set the FLASK_ENV=production and turn off debug mode, it works

make sure you import it like that:
from flask import Flask
At least that worked for me.

Duplicate of pallets/werkzeug#1614


Wrong info message after initializing a Ballerina project

When you run jballerina init in a directory, you get the following log:
Ballerina project initialised

Next:
    Use `ballerina create` to create a ballerina module.

The command the user is asked to try is wrong and the message has a few typos. Should be reworded to:
Ballerina project initialized

Next:
    Use `jballerina create` to create a Ballerina module.

Infact, looks like we need to change all the CLI texts. Running jballerina create resulted in the following message:
ballerina: The following required arguments were not provided:
    <module-name>

USAGE:
    ballerina create <module-name> [-t|--template <template-name>]

For more information try --help

Again, the message says ballerina create, instead of jballerina create

Closing since the command name is going to be ballerina


detail Page "Hofstaaten" add "Inhaber*in" as a clickable field to the Person

in court_detail collection under key owners

in left panel on e.g. https://viecpro-frontend.acdh-ch-dev.oeaw.ac.at/de/detail/courts/294111


just remote results in No matching version found for @mutinywallet/ui@*

❯ just remote
pnpm unlink "@mutinywallet/mutiny-wasm" && pnpm install
 ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE  In : No matching version found for @mutinywallet/ui@* inside the workspace
This error happened while installing a direct dependency of /data/Dev/Mutiny/mutiny-web
error: Recipe remote failed on line 10 with exit code 1

try pnpm run build-submodules

Didn't fix it.

pnpm unlink only removes the links in your current directory.

I think that's what we'd want. mutiny-node is what makes the link. No reason to uninstall it system wide when I often switch between the two versions.


Building with --target es6 in VS with release 1.4 fails

Building a project using --target es6 results in error:
File 'C:\program files(x86)/Microsoft SDKs/TypeScript/1.4/lib.es6.d.ts' not found

To work around it please include lib.es6.d.ts in your project, or add a /// reference to it.

This should be resolved in the next VS release.

It doesnt look like this is resolved yet, why is this marked as "fixed"? I downloaded the typescript extension (22/5/2015) for vs2013 and I still get this exact build error, should not have to "reference..include lib.es5.d.ts in the project, that'st still a bug IMHO?


Screenshot in your readme

I see you've got a GUI either already running or about to be running.
I, and your other visitors, would love  to see an image of what you make!

I’ll prop it up when I’m on break! The main wallet window is still being implemented but the design is mostly there. Been doing some research on Col to display recent transactions, but I don’t mind showing what I’ve got so far.

No rush at all... was just a suggestion for whenever is appropriate.    We all like pictures!  OK, I'll also admit that I like pictures.  It's fun to see what's being made.

https://github.com/Aareon/ChickenTicket/blob/6ae39b0e5f15cf4080996880dce55ca85eb2f8ae/src/simplegui.py#L352
And... wow... using User Settings!  I'm impressed... glad to see it's being used by others than me.

@PySimpleGUI check the README now. Definitely could look better, but its functional.

Thanks for showing interest! I'm super passionate about making everything robust and user friendly.

OMG!  I had no clue you had so many windows in your app!

VERY NICE!  Now it's clear you've got a substantial application going!

its functional

This.... this is the most important part in the end.  It's gotta work or it's all for naught.

@PySimpleGUI bunch more dialogs added to screenshots. They all play nicely with one another.

I'm sure they do play well together.

It's clear you're paying attention to the details, being purposeful in your approach, and not just throwing stuff together.

@PySimpleGUI if you see anything and want to provide input or suggestions, I'd be more than happy to accept critiques. I appreciate your suggestion. I'm gonna close this issue now and chalk this up as accomplished. Thanks for the suggestion!

Yea yea!  Close it out!

Don't want stuff sitting open in Issues that are distracting and not actually active.  See.. proof there of what I said.... you're paying attention to details.
Thanks for adding them and the fun conversation.  Keep building!  You're kicking *ss!


docs(website): small changes

Describe the feature request
Minor changes

cp is not recognized in Windows. Might be helpful to add a Windows compatible option

2. Enable archive node
2. Copy the sample .env files

sudo is not recognized in Windows. Might be helpful to add a Windows compatible option

4. Complete the eth-docker quickstart
4. Start a node
5. Verify node is running

nano is not recognized in Windows. Might be helpful to add a Windows compatible option

5. Open .env file in simple-taiko-node
1. Open the .env file in simple-taiko-node

docker is not recognized in Windows. Might be helpful to add a Windows compatible option

3. Verify prover logs

Reword Claim prover rewards steps

Step 1

From: Go to the TaikoL1 contract read page... and input your prover address...
To: Go to the TaikoL1 Read Proxy page... and input your prover address in 10.  getTaikoTokenBalance

Step 2

From: Switch to the contract write....
To: Switch to the Write Proxy

Describe alternatives you've considered
Description of the alternatives you've considered here.
Additional context
Additional context here.

Wen poap @d1onys1us (:

Wen poap @d1onys1us (:

@gitpoap-bot please reward @brachsterX


Error occurred while enabling DiscordWhitelister

I tried using plugin (Tested versions: 1.4.3 1.4.5 1.4.6) on newest paper 1.16.5 (Build #500) and I get this type of errors:
https://paste.ee/p/t7UlQ

I have just tested the plugin on the latest version of paper and it works as expected. Have you set up the config? In the log you sent, the bot prints this out just above the error:

[13:57:03 INFO]: [DiscordWhitelister] Configuration file created at: plugins\DiscordWhitelister\discord-whitelister.yml, please edit this else the plugin will not work!

If you need help configuring the plugin please refer to the youtube video here: https://www.youtube.com/watch?v=OqaeItuLefU
If you have set the plugin up correctly and are still getting this error try setting un-whitelist-on-server-leave to false in the config and let me know if that resolves the issue.

After configuration works normally. Thank you <3


clBLAS-master\src\library\blas\xgemm.cc(394): error C2065: 'gemmSelectKernel': nichtdeklarierter Bezeichner (not declared)

Hi there,
I struggle to create a cblas.lib using Visual Studio (desktop) 2012 since days and I just can't get it to compile correctly.
The long list of errors starts with
clBLAS-master\src\library\blas\xgemm.cc(394): error C2065: 'gemmSelectKernel': nichtdeklarierter Bezeichner
after that there's a lot of errors aorund  which I presume are just follow ups. Can anyone help?
Many thanks,
René

I don't see how this is related to LIBXSMM, I guess you want to open an issue here: https://github.com/clMathLibraries/clBLAS?!


Could you please update the project to work with break-change from GrapesJS v0.20.1?

https://github.com/GrapesJS/blocks-basic/releases/tag/v1.0.2


Passing Props to Route Components

great plugin 🎊
is there a way to pass props: true to the route definition?
docs
stackblitz
vite plugin pages

it should be passed with the route block


NotImplementedError with column.type.python_type

While testing your project I ran into this issue. Not sure where the column.type.python_test exists because when I was checking the sqlalchemy table declaration there was no reference to it.
Traceback (most recent call last):
  File "app/db/tables.py", line 31, in <module>
    PydanticTest = sqlalchemy_to_pydantic(Test)
  File "/home/vagrant/venv/project/lib/python3.8/site-packages/pydantic_sqlalchemy/main.py", line 21, in sqlalchemy_to_pydantic
    python_type = column.type.python_type
  File "/home/vagrant/venv/project/lib/python3.8/site-packages/sqlalchemy/sql/type_api.py", line 409, in python_type
    raise NotImplementedError()
NotImplementedError

Reading more into the issue it seems that the problem is with my UUID column, and it wasn't able to translate the UUID because it had no python_type in the UUID type it seems.
from sqlalchemy import Column, func
from sqlalchemy.dialects.postgresql import UUID
test_id = Column(UUID, primary_key=True, server_default=func.uuid_generate_v1mc())

Give how common that UUID's are inn databases these days, it's a shame that this isn't handled properly.


[Example] GraphSage with cora|citeseer|pubmed

Currently the GNN model uses a GCN model trained on the Zachary's karate club dataset. However, both the model and the dataset are simplified, e.g., GCN is the most basic GNN layer and the dataset used can be simply represented as an edge_list.
I'd like to write a GraphSage model with one of the titled datasets to concrete the examples under the GNN section.

Hi! This could be interesting to consider. As a first step, do you have an implementation that's forked from our existing GNN example to demonstrate what that would look like?
We'd be happy to link to that, in parallel to considering if our example should change, or if this could be a HOWTO, or something else.

Not yet, since the contribute guide mentions that for new models an issue should be open first. but will do it shortly as a practice.

Ah yes, we should fix that. Right now our recommendation is to make a
separate repository that we'll link to (assuming the repo has a README
explaining how to run it and that it works).

Hi @djdongjin! We now have concrete guidance about linking to external example. We'd love to link to your GNN examples when they're ready -- just file a pull request against examples/README.md. You can also learn more about our thinking of official and external examples in that README.


Support for runtime conversion configuration

In our industrial/scientific application, we have a need for allowing a user to configure an arbitrary floating point value acquired via digital acquisition (DAQ) into a unit of measure that they specify.  Thus, the UnitClass must be specified in addition to the *Unit type.
We must then be able to convert this value to some other arbitrary *Unit within the same unit class in various calculations, views, reports, logging/trending and what not, again dictated by user configuration.
It would be awesome if UnitsNet could support this directly.  What is needed:

Enum for UnitClasses to support runtime configuration.
A runtime conversion function such as `double Convert(UnitClass class, Unit from, Unit to, double value)'

This is a topic that regularly comes up, and I have wanted it myself at various times, but then I also realized that converting between arbitrary, possibly incompatible, units is a slippery slope. There are very few inter-unit conversions, such as Mass.FromGravitationalForce(Force f) and operator overloads for common arithmetic, such as Speed * TimeSpan = Length. These are the exceptions.
If we were to represent units generically, I fear we would promote use where type safety is out the door. Type safety is one of the most valuable benefits to me in this library. Sure, giving it up would be optional, but it's something about helping people fall into the pit of success, so to speak.
These problems can typically be solved while staying type-safe. I don't know your application, but I would assume your user would have to choose what type of unit is coming in, so I would think it was natural to first select Force category, then Newton or Kilogram next. This allows you to work on Force measurements generically, while also knowing what specific ForceUnit the user chose, so you can easily present texts of readings using myForce.ToString(userSelectedForceUnit).
If you need to convert it, you know it is a Force measurement, so you list all the other ForceUnit enum values for him to convert to, then use myForce.As(newForceUnit). It would not make sense to list Volume units in this case anyway.
My philosophy is that an application doesn't work with universal units if there are conversions involved, you have your set of types of units (Length, Mass, Volume) you care about, and you conditionally handle these separately. For reports/graphs, you usually fall back to numbers and unit abbreviation strings, but you don't really need to know more than that just to present it. If you need to convert them, you need to know a lot more.
If you really, really want universal units and conversions, you can probably implement this in your application by enumerating all ForceUnit, LengthUnit etc. values and converting them to objects like { Unit: ForceUnit.Newton, Value: 1.0 }. Then say you want to convert this to ForceUnit.Kilogram, you do some string pattern matching and figure out the class name Force and unit ForceUnit.Newton, then use reflection to call Force.From(1.0, ForceUnit.Newton).Kilograms, but there are some issues like using the correct pluralization of property names etc. As I said, slippery.
If you believe I have misunderstood, or this approach would not work at all for you, I would like to learn more. I am open to facilitate this usecase if there is a real need for it and that would be better handled in the core lib, rather in the application.

Certainly we wouldn't want to treat all units as being in the same physical quantity class.  It would be a runtime error (exception) if an attempt is made to convert from one unit class to another.
For the subsystem of our product that is the focus here, be aware that there is no business logic that is statically assuming any kind of physical quantity.  Thus, there is no appropriate place in our code that would be operating on a ForceUnit.
However, there are other parts of our system that implement "baked in" scientific calculations for our application domain, and indeed we are incrementally adopting Units.NET for the compile-time safety it provides as well as other conveniences.  Ultimately, user configured sensors or field devices would be able to feed in to some of these quantities, in which case we would certainly do the necessary runtime checks before accepting a quantity that came from the runtime configured module into the statically typed modules.
As for inter-unit conversions, I think it would suffice to simply not support such conversions via the dyanmic/runtime mechanism.

One additional point of clarification.  Addressing your point of "while also knowing what specific ForceUnit the user chose, so you can easily present texts of readings using myForce.ToString(userSelectedForceUnit)".
This would require a bunch of conditionals in our code to essentially convert from a runtime configuration data value (ie the PhysicalQuantity) to the appropriate static Units.NET type, so that we could then perform the conversion and get the display label (as per your example).  This logic would be extremely coupled to Units.NET.
Certainly I will be implementing such a lookup method in my code as a temporary solution.  But to me that is almost as bad as forking Units.NET.
You have a very comprehensive units of measurement library for .NET.  It addresses a very important problem of mismatching units in static calculations in code.  It reminds me very much of boost::units that I used years ago.  This aspect is great when you are performing known scientific calculations in your own code.  Compile time errors are always better than runtime errors.
But runtime errors are at least better than spaceships crashing and cancer patients getting nuked with incorrect radiation doses.  I don't agree that you give up all of the value and safety of such a units management library by allowing runtime conversions within the same PhysicalQuantity class.

Thank you for the details. Could you please provide me a pseudo code implementation? I'm not 100% sure how you propose we go about this in Units.NET.

It would be awesome if UnitsNet could support this directly. What is needed:

Enum for UnitClasses to support runtime configuration.
A runtime conversion function such as `double Convert(UnitClass class, Unit from, Unit to, double value)'

My current understanding is something like this:
// Generated
enum UnitClass {
  Force,
  Length
  //...more
}

// Generated
enum Unit {
  Force_Newton,
  Force_Kilogramforce,
  Length_Meter,
  Length_Centimeter
  //...more
}

static double Convert(UnitClass class, Unit from, Unit to, double value)
{
  // Generated
  if (UnitClass == UnitClass.Force) {
    ForceUnit fromForceUnit = GetForceUnit(from);
    ForceUnit toForceUnit = GetForceUnit(to);
    return Force.From(fromForceUnit, value).As(toForceUnit);
  }
  // ... other unit classes
}

static double? TryConvert(UnitClass class, Unit from, Unit to, double value)
{
  // Generated, returns null if units were incompatible instead of throwing exception
}

static ForceUnit GetForceUnit(Unit unit)
{
  // Generated, map from Unit enum to ForceUnit enum, throw if not compatible
}

Please note that, as with existing enums, these enums would also not be safe to serialize due to how we generated code and cannot guarantee the enum integer values don't change when adding more units later. See Serialization section for details.

Thanks for continuing to entertain this.
Perhaps we do not need to generate the master "Unit" enum.  Maybe something like this:
static double Convert(UnitClass class, Enum from, Enum to, double value)
{
 // Throws if the Enums are not of the same type.  Needs further exploration for performance.
// However, the downcasts below in the generated code may suffice.
  EnsureSameUnitClass(from, to);

  // Generated
  if (UnitClass == UnitClass.Force) {
    return Force.From((ForceUnit)from, (ForceUnit)value).As(to);
  }
  // ... other unit classes
}

I like your TryConvert.  Perhaps that could use ForceUnit fromForceUnit = from as ForceUnit with a null check along with the same for toForceUnit.
Regarding the enums not being safe to persist.  I understand.  Currently we are using strings in our database and configuration files.  Perhaps UnitsNet could make this reasonably guaranteed that the enum names will not change.  Otherwise this business of DB/config file persistence is another issue that would need to be addressed, presumably separately from this issue.

I gave this a spin in LINQPad, and this piece of code seems to work:
static double? TryConvert(Enum from, Enum to, double value)
{
	// Generated
	LengthUnit? fromLengthUnit = from is LengthUnit ? (LengthUnit?)from : null;
	LengthUnit? toLengthUnit = to is LengthUnit ? (LengthUnit?)to : null;
	if (fromLengthUnit == null || toLengthUnit == null)
		return null;
	return Length.From(value, fromLengthUnit.Value).As(toLengthUnit.Value);
	// ... other unit classes
}

void Main()
{
	// Outputs: 100
	Console.WriteLine(TryConvert(LengthUnit.Meter, LengthUnit.Centimeter, 1));
}

Ah, right you are, nullables are needed.  You can omit the ternary and safe-cast to nullable:
        static double? TryConvert(Enum from, Enum to, double value)
        {
            // Generated
            LengthUnit? fromLengthUnit = from as LengthUnit?;
            LengthUnit? toLengthUnit = to as LengthUnit?;
            if (fromLengthUnit == null || toLengthUnit == null)
                return null;
            return Length.From(value, fromLengthUnit.Value).As(toLengthUnit.Value);
            // ... other unit classes
        }

[Test]
public void RuntimeConversion()
{
            Assert.AreEqual(100, TryConvert(LengthUnit.Meter, LengthUnit.Centimeter, 1));
            Assert.IsNull(TryConvert(LengthUnit.Meter, ForceUnit.PoundForce, 1));
}

Alright, well I think this looks like straight forward implementation, that adds value by generating all the boiler plate code.
Do you want to take a stab at the PR? I don't have a whole lot of time these days, might take me a while.
The TryConvert methods should probably go into the static UnitSystem class, and powershell scripts must be modified to generate the new code.

Great I will give it a shot.

Just an idea, it would be convenient to have a IList GetCompatibleUnits(Enum fromUnit) method so you can present relevant choices for the user to convert to.

Just checking in, any progress here?

Sorry, no.  I still intend to do this but I haven't made any further progress since the previous PR.

Just checking in on old issues, do you still intend to get around to this?

Our feature that would leverage this Units.Net capability has been moved down the priority list. It is still something we need, just not yet. I still plan to implement this but if someone else wants to then certainly add a comment here indicating so.
I will comment here before I actually do begin coding something and have a firm idea of when there would be a subsequent pull request.

Thanks for the update
On Tue, Jan 31, 2017, 18:22 Brandon White<EMAIL_ADDRESS>wrote:

Our feature that would leverage this Units.Net capability has been moved
down the priority list. It is still something we need, just not yet. I
still plan to implement this but if someone else wants to then
certainly add a comment here indicating so.
I will comment here before I actually do begin coding something and have a
firm idea of when there would be a subsequent pull request.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/anjdreas/UnitsNet/issues/186#issuecomment-276430406,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAwFaI87nmDSbN3tpJ17mewU7GKu2r-7ks5rX23egaJpZM4KD9Mx
.

I think this is more or less covered by UnitConverter.ConvertByName() introduced in d57c7edba5ecdfb69236c873bd18130f14d6d424.
You can't convert by enum values yes, but you can by using ToString() on the enums. We could add methods that take enums too, but closing this for now until someone wants to add that.


Unlock constraint on windows cookbook

Current constraint is pessimistic, and forbid upgrade to the newest version.
No breaking change is impacting the vagrant cookbook. It's safe to release
the constraint.
Cc. @aboten

@dougireton  @jtimberman This would be a good one to merge

Hi,
Are there any plans to merge this in or should we look to make our own fork of this cookbook?

Hi,
Are there any plans to merge this in or should we look to make our own fork of this cookbook?

Looks good to me. I'm working on release 0.7.0 with this fix in it today.


Fix wrong path in packages documentation.

Otherwise following these instructions would result in an extra level of subdirectory: ~/.vim/pack/myfoobar/foobar/{start,opt}/...

I'll include it, thanks.


feat: add fields to syncer #2239

feat: add fields to syncer (PreferredMfaType, TotpSecret, SignupApplication) #2239

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

Hello, @hsluoyz !
You forgot the second occurrence of "Validate". Just made new PR to fix it.


Improve use of pyright

In a few places, we were using pyright comments that affected the
entire file instead of just single lines as was intended
Use pandas and matplotlib type stubs instead of ignoring all those issues

Testing notes
No need for testing besides CI, this just affects type checking

Closed in favor of #613.


The 01-flex-center solution coded

Because

This PR

Issue

Closes #XXXXX
Additional Information

Pull Request Requirements

[x] I have thoroughly read and understand The Odin Project Contributing Guide
[x] The title of this PR follows the location of change: brief description of change format, e.g. 01-flex-center: Update self check
[x] The Because section summarizes the reason for this PR
[x] The This PR section has a bullet point list describing the changes in this PR
[x] If this PR addresses an open issue, it is linked in the Issue section
[x] If applicable, I have ensured that the TOP solution files match the Desired Outcome image

@Erkhembayar-Atarbold We don't take in user solutions for our exercise repos. They're meant for you to work on locally, or optionally keep in your own fork of the repo.


feat: Implement read support for String/Binary View types

at least covers the reading portion of https://github.com/apache/arrow-nanoarrow/issues/583

Hmm looks like the Python process whereby we generate the pxd file does not play nice with the union containing nested struct declarations

Sounds good. Enjoy the time away!

@paleolimbot started to look at this in more earnest to get a full round trip, instead of just a read. The current read implemenation also only assumes one variadic buffer.
I see the Arrow specification says that binary view types have an extra member which is a buffer containing the lengths of the variadic buffers:
https://arrow.apache.org/docs/format/CDataInterface.html#binary-view-arrays
Do you think its worth adding that to the ArrowArray struct, or should we create a new struct, potentially with a layout like:
struct ArrayBinaryViewArray {
  struct ArrowArray array_data;
  // Variadic buffer lengths for Binary View arrays
  int64_t* variadic_buffer_lengths;
};

So that it can be "safely" cast to/from ArrowArray pointers?

With that approach the one thing I still wonder is where we should store the length of variadic_buffer_lengths. I didn't see anything for that in the specification, so maybe using a NULL sentinel to denote the end of the array is the requirement?

Ah OK interesting. Do you know if this is confirmed to be working upstream in Arrow? The reason I ask is that when running the test suite for what's already in this PR, when I hit the C++ Export method:
https://github.com/apache/arrow/blob/c2123b8b90ab952f854912459bb33ebaf0d99611/cpp/src/arrow/c/bridge.cc#L661
The n_buffers being assigned is just 3. I was (likely mistakenly) expecting that to be 4 to account for the validity buffer, inline/prefix buffer, out of line buffer, and a buffer that holds the sizes to all out of line buffers
The Arrow docs also read a little vague to me:

int64_t ArrowArray.n_buffers
Mandatory. The number of physical buffers backing this array. The number of buffers is a function of the data type, as described in the Columnar format specification, except for the the binary or utf-8 view type, which has one additional buffer compared to the Columnar format specification (see Binary view arrays).
Buffers of children arrays are not included.

I'm not sure if that is saying that the n_buffers argument should be 4 for the view types, or that it should be 3 and the consumer is expected to know that when working with view types, you actually have n_buffers + 1 buffers attached to the ArrowArray

Bah ignore what I just said - bad debugging. Digging deeper!

Codecov Report
Attention: Patch coverage is 88.04348% with 11 lines in your changes missing coverage. Please review.

Project coverage is 86.06%. Comparing base (2c42268) to head (8c1e825).
Report is 22 commits behind head on main.

Files with missing lines
Patch %
Lines

src/nanoarrow/testing/testing.cc
14.28%
6 Missing :warning:

src/nanoarrow/common/inline_types.h
0.00%
4 Missing :warning:

src/nanoarrow/common/inline_array.h
98.64%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #596      +/-   ##
==========================================
+ Coverage   85.02%   86.06%   +1.04%
==========================================
  Files          92       94       +2
  Lines       11750    13697    +1947
==========================================
+ Hits         9990    11788    +1798
- Misses       1760     1909     +149

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

A few more notes! I am gearing up for a release and it would be very cool to include this if we can...what do you see as blockers for getting this PR across the finish line and can I help with any of them?

Great! I should have time to see this through.
There are no major blockers from my end. Let me know any feedback you have and I will take a look


SSLHandshakeException when fetching from corporate repository

When running on Windows 11 (latest updates installed)
cs fetch --no-default -r<EMAIL_ADDRESS>org.scala-sbt:sbt:1.9.6
I get
Resolution error: Error downloading org.scala-sbt:sbt:1.9.6
  download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://nexus.corp.com/repository/maven-proxy/org/scala-sbt/sbt/1.9.6/sbt-1.9.6.pom

I've added all corporate certs to the file  %JAVA_HOME%\jre\lib\security\cacerts using the command
keytool -importcert -alias "nexus.corp.com" -file "nexus.corp.com.crt" -keystore cacerts
But the problem persists.
Is there a way to disable certificate checking in Coursier?

Maybe your "cs" command embeds its own Java and therefore its own cacerts file?
In my company we also use corporate certs.  The solution I've found is to use coursier's JAR based launcher, so as to reuse my already-properly-configured JRE which trusts the corporate certs.
However, I think it would be useful if "cs" accepted some option to add trusted certificates, or to choose a different cacerts file.

Seconded. I just ran into this issue as well and it was not clear from the documentation what to do about it? Maybe update the documentation to use the JAR based launcher?


Reading from stdin can loose data.

The current implementation in builtin/stdin.pony passed data.space() to the underlying @pony_os_stdin_read and not data.size(). This means that the the underlying read may read more data and the designated size of the buffer.
Note, no overflow occurs since it is not reading more data than the underlying allocated memory.
However, when combined with the implementation of truncate the reported length of data read may well be less than the actual quantity ready. More specifically, when data.size() is not a power of 2 the allocate buffer will be larger (as reported by data.space()) than the designated chunk size. When data is being piped in on stdin then there is every chance that the amount of data is larger than the chunk size, and in fact larger than the chunk space. Enough data is read to fill the space, bu the truncate operation then causes on the data up to the size() to be made available to the application.
All of that being said, it seems like the best thing is to simply pass data.size() to @pony_os_stdin_read.

Please see pull request: https://github.com/ponylang/ponyc/pull/2872.

Resolved via #2872


Add configurable exit grace periods and shutdown handlers

Addressed comments

Addressed comments.  The untested code path is almost impossible to test.
The join() function that exposes it is only called by the internals of threading.py, and we don't hold a reference to the server thread to explicitly join() it, and I'm not sure we should add a reference just for this purpose.
Moreover, the threading.py only calls join(None), the code path in question isn't even exercised by the internals of threading.py.  Its just there to make sure we properly follow the join(timeout) semantics.

Change content looks good, but the detailed response you just gave me about the difficulty of testing some parts of this change belongs in the commit message.

Addressed comment.

In your commit log message I think you mean "It's just there" rather than "Its just there".

@soltanmm-google ping

Addressed comments, back to @soltanmm-google

lgtm

(Squash before merging, please.)


Troubles with -D for eosio-cpp

if I run the command below with CDT 1.5.0:
$ eosio-cpp t.cpp -o t.wasm --abigen -D'__BURN__=\"burn\"'

I get the error below:
In file included from /Users/ekkis/dev/t.cpp:1:
./t.hpp:53:20: error: use of undeclared identifier '__BURN__'
                name BURN = name(__BURN__);
                                 ^

however, if I look at the preprocessor output:
$ eosio-cpp t.cpp -o - -D'__BURN__=\"burn\"' -E -dD |grep BURN

I can not only see the define properly created but I can see that the reference has been properly replaced with the value (2nd line):
> #define __BURN__ "burn"
>  name BURN = name("burn");

yet, the code won't compile. if I manually replace the line:
                name BURN = name(__BURN__);

with:
                name BURN = name("burn");

it compiles just fine.  what is wrong with this?

this was closed without resolution.  I'm having the same problem on CDT 1.6.3

See #736.  1.6.3 was released a month before that.

so this shows as merged, but it hasn't yet been released?


fix(walkthrough): load population and reference datasets in garden step

Previously, walkthrough allowed users to add our population and reference datasets as dependencies to our DAG only in the meadow step. However, these datasets should not be listed as dependencies in any meadow step. Instead, they should be used in Garden.
This PR:

Allows users to add population and reference datasets as dependencies in a Garden step from walkthrough interface. It removes these options from the Meadow step, as these should not be used there.
Updates the population dataset used by default to the latest available one: data://garden/demography/2023-03-31/population

related to https://github.com/owid/etl/issues/1003
tagged you both, @pabloarosado @paarriagadap ー but one review should suffice I think.

Hi, @lucasrodes! Thanks! I tried this, and it seems it only adds the dependencies in the dag, but not the function to load the population, as it existed before. I also mention this because when loading the dataset we need to add : Dataset to solve ambiguities between snapshots and datasets and avoid a buildkite error.
So something like
def load_population() -> pd.DataFrame:
    # Load population table from key_indicators dataset.
    ds_indicators: Dataset = paths.load_dependency("population")
    tb_population = ds_indicators["population"]

    return tb_population

can work


Whitelist and .map workshop support

A Whitelist is very useful for content creators since the server pw can be easily leaked
I also added a check to the .map chat command that checks if the input is a long to interpret it as a workshop map code and use host_workshop_map instead, if its not a long it checks if the map is valid etc

Hey @DEAFPS!
Thanks a lot for your contribution, whitelisting is actually a very important and useful feature!
Also, great job on host_workshop_map :D
I've added a comment, requesting you to please check it once


physlock: expose option to mute kernel messages when locked

Motivation for this change
https://jlk.fjfi.cvut.cz/arch/manpages/man/physlock.1.en
Enable -m Mute kernel messages on console while physlock is running. in
OPTIONS
-d Fork and detach physlock before prompting for authentication. The parent process returns right after everything is set up, so this option is useful for use in suspend/hibernate scripts.
-h Print brief usage information to standard output and exit.
-l Only lock console switching and exit.
-L Only enable (unlock) console switching and exit. This is useful when a prior instance of physlock has crashed and leaved the console switching mechanism locked.
-m Mute kernel messages on console while physlock is running.
-p MSG
Display MSG before the password prompt.
-s Disable SysRq mechanism while physlock is running.
-v Print version information to standard output and exit.

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Not stale

Superceded by #199395 ; sorry I missed it while reviewing the PRs…


Selection rectangle visible under StatusBarControl

To Reproduce
Steps to reproduce the behavior:

Start selecting using mouse
Move cursor outside window

Screenshots

Desktop (please complete the following information):

OS Version: [e.g. Windows 10 20H2 19042.746]
App version: [v1.0.3]

Removing the line below is a possible solution for this issue:
https://github.com/files-community/Files/blob/5f6571da945a6d8378ca355ed10e6b73dbb10fe5/Files/Views/ModernShellPage.xaml#L205

@nvi9 The line was added as part of the dual pane feature so it shouldn't be removed.

@nvi9 The line was added as part of the dual pane feature so it shouldn't be removed.

True, didn't checked that 😐

@nvi9 This can probably be solved by editing the thickness of the border depending on which pane is selected.

@yaichenbaum I'm not sure how this could be done. Maybe some of you who worked on the redesign recently might have a better overview of this part.
The idea I've had recently on this topic is to move the SelectionRectangle Canvas from GridViewBrowser and GenericFileBrowser to ModernShellPage, but it's just theoretical, no trials yet.

@gave92 Do you have any thoughts on this?

Lately I think the selection rectangle is actually above the status bar for some reason..

@gave92 There are really two different issues, one is that there is extra space underneath the status bar, and the second is that the selection rectangle overlays on top of the status bar.

This issue should be resolved in main.


pre-training recipe

Any plans to add a recipe for further pre-training on custom data with optional tokenizer vocab extension in the style of chinese-llama?  would love to see that.  thanks

Thanks for the suggestions, we welcome contributions from the community.
Also suggest testing out the training script from chinese-llama on the llama 2 model. Based on the description, it could be done in two steps -- fine-tune the base llama 2 (pre-trained) model on alpaca dataset, and then use the scripts from chinese-llama for custom vocab. If you get a chance to try this out, will be great if you can update with your findings.

Also very interested in this. If I wish to use the same tokenizer and just continue pretraining with in-domain data, is it sufficient to use the script in llama-recipes for finetuning? (Instead of using prompt/response format, feed in free-text)
In essence, what is the difference between continue pretraining with in-domain data and finetuning for prompt/response? Thanks.

@jmzeng sorry for the late reply, there few things here, a-finetuning a base model to make a assistant model this requires prompt/response dataset, b- continued pretraining, follows similar objective to base model but you would need a large amount of data and we are talking scale of billions of tokens. c-fine-tuning a base or fine-tuned model on specific task which will require high quality data on that specific task it can be in simple format or prompt response format.

Closing this as we'll likely not add more datasets and the use case of continued full-parameter update is already supported and described. For massive parallel pre-training have a look at TorchTitan.


TranslatService does not translate after upgrading to angular 4.0.1

I'm submitting a ...  (check one with "x")
[x] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior
TranslateService always returns the key instead of the translation as soon as i upgraded to angular 4.0.1
Same code was ok on angular 2.4.x.
The Pipe and template are translating correctly although.
Expected/desired behavior
Support angular 4.0.1
Please tell us about your environment:

ngx-translate version: 6.0.1

Angular version: 4.0.1

Browser: [all ]

Works fine for me with Angular 4.0.1 and ngx-translate 6.0.1 in conjunction with the http-loader.
Can you post parts of your code, i.e. your modules?

I have the same issue when i subscribe from ngOnInit in my component.

Don't understand why, pipe and directive are well but service does not translate. I tried instant and get methods, both failing.

Try creating a minimal example in plunkr or on GitHub that reproduces this issue.

On this plunker the get method is ok but instant is not. The translation is loaded because it appears in the pipe; I don't understand.
https://plnkr.co/edit/IKmp2M80waZUpLWPIYnc

From the documentation

instant(key: string|Array<string>, interpolateParams?: Object): string|Object: Gets the instant translated value of a key (or an array of keys). /!\ This method is synchronous and the default file loader is asynchronous. You are responsible for knowing when your translations have been loaded and it is safe to use this method. If you are not sure then you should use the get method instead.

So because the comp component is initialised immediately, at that point, the translation is not yet loaded so in that case you can only use the get method. Best practice is to use the pipes though, but I agree that sometimes you need the service to load a translation. For instance when you want to show a toast notification etc.

My problem is to change the title of the page. I saw this in the documentation, in my project i could not reproduce the get problem in the plunkr but it appears on my real projects. I stepped into the code and it appears that the translation array is empty when i use get or instant.

Well yes, see the description of the instant method. Locally this wouldn't cause problems because loading data from your localhost is almost instant. But when you deploy your app, loading the translation file will cause a delay. So I think you will have to subscribe to the get method in order to fix it. Nothing we can do here I'm afraid.

Is there a way to know when the translations are ready? An event or something?

TranslateService.use returns an Observable so I believe you can subscribe on that one and if it completes, the language is loaded.

Ok I will try this thank you.
De : Sam Verschueren<EMAIL_ADDRESS>Envoyé : mardi 18 avril 2017 19:53
À : ngx-translate/core<EMAIL_ADDRESS>Cc : christophearg<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Objet : Re: [ngx-translate/core] TranslatService does not translate after upgrading to angular 4.0.1 (#505)
TranslateService.use returns an Observable so I believe you can subscribe on that one and if it completes, the language is loaded.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/ngx-translate/core/issues/505#issuecomment-294927876, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEOwXhBTcjFxogD8RSL-IczO05P0UsGmks5rxPiVgaJpZM4M2qQu.

You can try to subscribe for translations in the onLangChange event. It worked for me

I am experiencing the same issue with Ionic 3 (Angular 4.0.2） + ngx 6.0.1, the get method only gives the key  rather than its value, instant gives nothing. Please see https://github.com/ngx-translate/core/issues/464

I solved it by removing node_modules folder and run npm install again. Was using cnpm instead of npm.


Edit UG for CS2101 sake

I've updated my UG to fit the expectation of what a UG should be for CS2101.

I decided to change my command name instead. It's less effort as compared to changing the image in UG.


Changes to children of 'reproduction' and 'reproduction process'

[ ] sexual reproduction: fix def from
"A reproduction process that creates a new organism by combining the genetic material of two gametes, which may come from two organisms or from a single organism, in the case of self-fertilizing hermaphrodites, e.g. C. elegans, or self-fertilization in plants. It occurs both in eukaryotes and prokaryotes: in multicellular eukaryotic organisms, an individual is created anew; in prokaryotes, the initial cell has additional or transformed genetic material. In a process called genetic recombination, genetic material (DNA) originating from two gametes join up so that homologous sequences are aligned with each other, and this is followed by exchange of genetic information. After the new recombinant chromosome is formed, it is passed on to progeny." [GOC:jl, GOC:kmv, GOC:krc, GOC:tb, ISBN:0387520546, Wikipedia:Sexual_reproduction]"
to "A type of reproduction that combines the genetic material of two gametes (such as a sperm or egg cell or fungal spores). The gametes have an haploid genome (with a single set of chromosomes, the product of a meiotic division) and combines with one another to produce a zygote (diploid)." [Wikipedia:Sexual_reproduction]"

moved part of the old def to the comment: "Note that gametes may come from two organisms or from a single organism in the case of self-fertilizing hermaphrodites, e.g. C. elegans, or self-fertilization in plants."

[x] GO:0097736 aerial mycelium formation: change subclass from is_a GO:0019954 ! asexual reproduction to part_of GO:0019954 ! asexual reproduction
[x]  GO:1990277 parasexual conjugation with cellular fusion: change def from ""A conjugation process that results in the union of cellular and genetic information from compatible mating types, without meiosis or the development of sexual structures." [GOC:di, PMID:26210747] to "A type of reproduction in which new individuals are produced from two individuals, without the fusion of gametes." [GOC:di, PMID:26210747]"

@ValWood I think 'parasexual reproduction with cellular fusion' should be is_a 'asexual reproduction', right?

I think so...

I'll leave the 3 terms separate (sexual, asexual and parasexual reproduction)


Using alongside stylelint-vscode

Would it be possible to use svelte-vscode alongside stylelint-vscode? Currently, if I enable the svelte extension, stylelint-vscode stops linting my .html files (I think that's because it uses the language identifier 🤔).

Opened a PR https://github.com/shinnn/vscode-stylelint/pull/243 on stylelint-vscode to add the svelte language identifier


TZ3000_dowj6gyi / TS0201 models issue

Not possible to attach above device. See this topic
Temperature-Humidity-Sensor.txt

After the latest update (0.2.5) still have te same issue.

Solved ! Test version 0.2.6 resolve it.


some suggestion on send page

in the sending page currently, it not showing any balance for users to see. Also it good to have the option to send all or send max what users have in their wallets.

Additionally, I see that the user can send 0 and still have to pay the fee. I know this is a functionality. But could we want users that they are sending 0 and they will have to pay the gas anyhow?

Additionally, I see that the user can send 0 and still have to pay the fee. I know this is a functionality. But could we want users that they are sending 0 and they will have to pay the gas anyhow?

Hi ChauHuynh17071994!
You have reported this issue in the challenge repository for testnet3. Please note that Testnet3 was taken down when Testnet4 came up. Testnet4 and all related releases have it's own repository here.
I will close this issue here, as I cannot see which version of mobile app and testnet you are referring to. Please create a new issue in the correct repository, if you feel it is an issue on testnet4 and the newest iOS release 0.1.63.
Thanks :blush: :+1:

Hi ChauHuynh17071994!
You have reported this issue in the challenge repository for testnet3. Please note that Testnet3 was taken down when Testnet4 came up. Testnet4 and all related releases have it's own repository here.
I will close this issue here, as I cannot see which version of mobile app and testnet you are referring to. Please create a new issue in the correct repository, if you feel it is an issue on testnet4 and the newest iOS release 0.1.63.
Thanks :blush: :+1:


README updates: list versions, including links to Releases page

https://github.com/mozilla/unity-webvr-export/releases

Done with https://github.com/mozilla/unity-webvr-export/commit/e2a72d16fb1472bdc11f9e56aa552dd8fe5de64d


x/tools/gopls: importing wrong package "golang.org/x/exp/slices"

I don't know exactly if this is an issue of gopls, but I think its good to post it here.
When using slices package, the lsp will always import the wrong go package
"golang.org/x/exp/slices", instead of the correct package "slices".
gopls version
Build info
----------
golang.org/x/tools/gopls v0.13.2
<EMAIL_ADDRESS>h1:Pyvx6MKvatbX3zzZmdGiFRfQZl0ohPlt2sFxO/5j6Ro=
<EMAIL_ADDRESS>h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
<EMAIL_ADDRESS>h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
<EMAIL_ADDRESS>h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
<EMAIL_ADDRESS>h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA=
<EMAIL_ADDRESS>h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y=
<EMAIL_ADDRESS>h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
<EMAIL_ADDRESS>h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
<EMAIL_ADDRESS>h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
<EMAIL_ADDRESS>h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4=
<EMAIL_ADDRESS>h1:Oush7UwPamr2/iNeNFBuNFj89YyHn0YY69EKDdvANnk=
<EMAIL_ADDRESS>h1:A9kONVi4+AnuOr1dopsibH6hLi1Huy54cbeJxnq4vmU=
<EMAIL_ADDRESS>h1:6qXr+R5w+ktL5UkwEbPp+fEvfyoMPche6GkOpGHZcLc=
<EMAIL_ADDRESS>h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
<EMAIL_ADDRESS>h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=
go: go1.21.3

go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/jgardona/snap/alacritty/common/.cache/go-build'
GOENV='/home/jgardona/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/jgardona/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/jgardona/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/jgardona/Bin/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/jgardona/Bin/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.3'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build251818100=/tmp/go-build -gno-record-gcc-switches'
What did you do?
Use slices package and wait for the gopls autocomplete works
What did you expect to see?
Import "slices" package
What did you see instead?
It imports "golang.org/x/exp/slices" package
Editor and settings

vscode info
Version: 1.83.1
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:45:31.402Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 6.5.0-9-generic snap

no settings

what's in your go.mod?

what's in your go.mod?

example on  master [?] is 📦 v0.1.0 via 🦀 v1.73.0
❯ cat ../../go/example/go.mod
module example
go 1.21.3

@jgardona did you end up with exp/slices as part of a completion or as part of "organize imports" (possibly on save)?
In other words, was it from doing something like:
func main() {
  slic<> // cursor at <> and golang.org/x/exp/slices suggested
}

or:
package main

func main() {
	slices.Sort([]int{5, 4, 3}) // hit save after typing this and `import "golang.org/x/exp/slices"` appears above
}

@danp Hello. Good afternoon.
Exactly. I typed "slices.", then hit enter and  "golang.org/x/exp/slices" was imported.

I see you're using golang.org/x/tools/gopls v0.13.2.
I believe the issue is that gopls embeds a list of stdlib packages and their exported symbols. That list is used by the completion bits to understand what stdlib packages are available. You can see the version of that list gopls v0.13.2 uses here. There's no entry for the stdlib slices package since list was generated using info from Go 1.20 (as mentioned in the commit message).
To get a version of gopls that uses the more recent list generated from Go 1.21 (which does include slices) you'd need to try a gopls v0.14.0 prerelease, such as gopls/v0.14.0-pre.4.
You should be able to try it with the example go install command there. If you're unable to try it, I think you'll need to wait for a proper v0.14.0 release.
And hopefully someone from the gopls will correct me if I've gotten something wrong!

I'll wait gopls 0.14.0 and see what will be the output.

gopls v0.14.0-pre.5 is available for testing. At least, it seems to work for me and suggests slices as the very first one. (the second one is the one in golang.org/x/exp/slices, but my project already depends on golang.org/x/exp.

gopls v0.14.0 is out now. @jgardona please let us know if this resolves your problem.

gopls v0.14.0 is out now. @jgardona please let us know if this resolves your problem.

confirmed here it was fixed. Thank you all :slightly_smiling_face:

will close as it was fixed in 0.14


Powershell .env activation error with restricted permissions

Powershell does not allow .env to be activate if Activate.ps1 in the virtual environment folder is not provided corrected policy or permsisions.
Resolution, run within project folder prior to entering virtual environment command.
powershell -ExecutionPolicy Bypass -File ./env/scripts/Activate.ps1
TODO: Update readme instructions.

You can also run Set-ExecutionPolicy RemoteSigned


Suggestion - insertMany

I have been having a play with inserting array of items.
What I was thinking was if we was able to return as a result the list of successful inserts, along with a list of the failures. At the moment only the first error is returned, and there is no way to tell how many did or didn't get inserted.
This also then skips the after hooks completely, which means any of the data that was inserted does not go through the hooks.
In my situation I am bulk insert 500 docs at a time and in an after hook I am inserting into elasticsearch, there could be 499 docs inserted and only one error, but the successful inserts will not be sync'd to elasticsearch due to the hook not running.
I would imagine and this isn't something I have test that the error hook is run, not sure if that will contain the results, but it would mean having the sync hook run in the after and error hook.
Are there plans to integrate the insertMany method of mongoose/mongo (I believe it to be more performant also), as I understand mongo returns the successful _ids and an array of any errors, I would think mongoose wraps this.
Thoughts?
Thanks

This would be a good enhancement.

Thanks @marshallswain. I'll see if I can put a PR together or at least a PoC.

I think this could be done with https://github.com/feathersjs/feathers-batch but it definitely needs some love.

@daffl isn't that more for if multiple different service calls are to be called with one batch call?
I have a script which is running through 50k rows and batching them into the service 500 at a time, then in the after hook I am fetching a flattened ($populated item) into elasticsearch. It's only one endpoint I want to call but a few times.
It is just that the bulk insert has to be low at the minute as at 500 if one of them has a validation error that whole batch of 500 will not hit the after hook and subsequently will not be pushed into elasticsearch.

Ok @marshallswain I may have mis-understood how mongoose wrapped the native insertMany.
Mongodb natively will return the inserted doc count, and how many failures. But mongoose, will still throw an error and only return the first validation failure and will not return the inserted docs. Which wasn't what I was hoping for.

After some discussion in Slack, @Mattchewone and I determined that the best way to implement this would be to

Leave the single-item creates the same as they are now.
Individually validate each record against the Mongoose model and keep an array of records that failed validation along with accompanying errors.
Use MongoDB's model.collection.insertMany instead of Mongoose's model.insertMany
Return any failed inserts on a separate key in the response.

This doesn't solve the following problem that Matt mentioned in slack
"Just quickly before I head off, looking at the native driver, if there is a duplicate index item in the data it will insert all items up to that but will stop writing any after that. So there needs to be some work in that, but think it could be done."

I have made some progress with this which can been seen here https://github.com/Mattchewone/feathers-mongoose/tree/insert-many
It is failing on the feathers-service-test multiple instance create tests currently. So I may have to re-think the return data. I built it around the feathers-batch style of return data, with this format:
{
  data: [
    [...errors || null],
    [...data || null]
  ]
}

This will return any WriteErrors and ValidationErrors in the first array, and any successful data in the second.
There is one other issue at the minute I am trying to work out, if there is a duplicate index, although the error is returned the success insert is not returned with the successful data, assuming the array of data has 2 items with the same _id in.

Did anyone found solution for this ?

@nmajethiya there is an open PR at the moment - https://github.com/feathersjs/feathers-mongoose/pull/199
There are a few issues being discussed at the moment.


extract scripts and template from setup.md

@MrChrisJ This is the initial version.
The diff of setup.md looks a bit messy, but I have essentially extracted all of the commands into the bitcoin/install script and deleted the instructions from setup.md (since they have been abstracted by the scripts and also documented inside the scripts).
I've tried to comment the scripts properly. I normally don't comment as much, but I think it's good if we try to be overly clear about things.
Closes https://github.com/MrChrisJ/fullnode/issues/15

@MrChrisJ Gonna test this on my own RPI2. Hold off with merge until I know that works well.

@MrChrisJ Can we merge this? Or anything you're not happy with?

Ah sorry this conflicted with the update I just did, I moved it to here: https://github.com/MrChrisJ/fullnode/tree/master/Setup_Guides

I'll come back with an update PR later :)


[UNIVERSAL NAV] Dark mode styling.

@amol-anand do we need to do this ? or can be achieved with some configs ?

@kailasnadh790 might need ask Unav team to see whats possible here or do we need to implement all styles ourselves ?

@kailasnadh790 let's close this and cover all of it with review of dark mode and light mode styling in #109


[KYC Match / KYC Fill-in] Coexistance of aggregated fields and separete fields for Name and Address

Problem description
To consider coexisting of aggregated fields and separete fields for Name and Address attributes
(Spin off from Issue #65, item No.5)
BR

In general, when you can expect spelling mistakes in parts of the data, I think we need to support separate fields to avoid having too many false negatives.
For example, when there is a spelling mistake in a streetname or a streetnumber, this makes a large difference.
Example: the correct addres is "Weststreet 185".
If the CSP submits "Wetstreet"  and "185", you could return as answer that the streetName matches for 95% (applying fuzzy name matching logic), and that the streetNumber is "true".  That gives the CSP the possibility to accept the customer input (and optionally ask the end user to check the streetName once more.
In case the CSP submits "Weststreet 18" as a combined item, you don't have the possibiliy to apply fuzzy name matching logic, because that would give a wrong results, because the spelling mistake is now in the streetNumber.

Regarding providing givenName and familiyName as separte items, this way you can make a disctinction as a CSP between cases where there is no match at all between the data submitted and the data of the contract owner, case where only the family name matches (and you can still assume there is a relationship between the end user and the contract owner), or when there is a full match.
For KYC fill-in this does not apply, here you can choose to work with combined fields (although many CSP's would appreciate to receive the data separate).
For some use cases a match on just the family name can be acceptable (for example when placing an ecommerce order), and for other cases you may require an exact match on all fields (for cases where more privavcy sensitive data is being shared, or an age check is relevant).  By providing the data separate you can let the CSP decide what to do.


Enable curation of existing Acartia records

Problem statement:
An issue with the current data input methods for Acartia is that records with errors are not easily corrected. Similarly, sometimes new information becomes available that could enrich an existing accurate record.
How shall Acartia enable curation of existing records?
At the moment, edits made in the Cascadia web app appear to be added as a new record, but with the trust field value set to zero (instead of 1 for an original record submitted by a trusted user).
Proposed solution:
Step 1: Revise the v1 Acartia data scheme to accommodate curation, ideally tracking edits in an indelible ledger and attributing improvements (or mistakes!) to individual data providers and/or curators.
Step 2: merge existing edits to existing records (using logic that leverages a combination of the unique IDs and the trust fields)
Step 3: work with Virgil on new API methods and/or logic to ensure that new records are entered and edited efficiently. For example, it is common for a point to be entered within a few minutes of the observation and then edited within a few minutes (after the submitter sees a mistake).
Related question: how are end-users notified (if at all) of the changes made to existing points?

Use case: we decide it's easier to go back to using the Google sheet (or some other tool like orcamap web app) to add richer labels to Acartia records that is possible through current apps. For example, we will soon want to add standardized tags for individuals or matriines of KWs (10s or 100s of labels), individual humpback whales (100-10000 labels from Happy Whale?), or seals (1000-100,000 labels from a new AI like sealspotter).
In such a case, curation could look like importing a SRKW record from Acartia, adding the label (e.g. to a new tags field in the Acartia data scheme v2), and then updating the record via OrbitDB...


pkg/azure: fix potential deadlocks

Read per commit, this fixes some potential deadlocks found
Fixes #13262
Fix 1 potential deadlock in Azure IPAM and 1 other in ENI and Azure IPAM

test-me-please


Base page template config enhancements

What is the context of this PR?
Fixes #2095
Also allows control of the container for all components in template by setting pageConfig.wide or pageConfig.fullWidth just once, rather than within each object.
How to review

Check page template config header options work as expected
Check docs
Check updated tests


Fix for #108

Custom predicates must follow this behaviour.
Fixes https://github.com/SpongePowered/configurate/issues/108

This is a break in current behaviour and will break expectations of consumers. There may be instances where first matching is desired. I admit, I don't have an example to hand, though I can envisage be that you might a subclass that you only want to serialise the super class for.
As a behaviour break, I strongly suggest that this only becomes a default, if at all, in 4.0, rather than 3.x.
In any case, I would much rather see this implemented as a series of options that can be applied. Maybe TypeSerializerCollection.newChild could have an overload (or a builder could be made) where such a selection rule can be set?

Order sensitivity isn't documented anywhere.

And? It's still a behaviour change which has been based on the fact that configurate has been out there a while and therefore other systems that use it may be reliant on that fact.

Ok. It's impossible to manage search order, if i add Collection serializer, i should re-implement Set and List serializer, because Collection serializer will take advantage.
We should talk about it.

Reopening this because of this: https://github.com/SpongePowered/configurate/issues/110

It's expected that the first match will be used. If you want the Set serializer to take priority over the Collection one, you just need to ensure that it is registered first.
#110 is an unrelated issue.


Implement the Psi-FCI algorithm

Is your feature request related to a problem? Please describe.
The Psi-FCI algorithm is an extension of the FCI algorithm that is complete for Psi-PAGs. The algorithm can learn a Psi-PAG given a combination of observational and soft-interventional datasets. This will be a good introduction of a more complex multi-dataset algorithm that we can start taking advantage of to flush out the Context/data API. Moreover, it will help us test the limits of the existing graph and dowhy.gcm API.
We should implement the algorithm as outlined in https://causalai.net/r67.pdf.
Describe the solution you'd like
The Psi-FCI should subclass the existing FCI algorithm. In terms of graphical structure, there are additional graph API to consider. The main part being encoding what are known as "F-nodes". Another issue to sort out is how to test for conditional distribution differences (i.e. is P_1(y|x) = P_2(y|x)?), which is a central problem within Psi-FCI and other multi-dataset structure learning algos.

[ ] Implement the KCD test https://arxiv.org/abs/2102.08208. This will allow us to test P_1(y|x) = P_2(y|x)
[ ] Implement the Psi-PAG graph in pywhy-graphs
[ ] Implement the Psi-FCI algorithm in dodiscover; propose necessary modifications to the general fit(data, context) / learn_graph(data, context) API
[ ] Implement an example demonstrating Psi-FCI usage with a simulated SCM with soft interventions

Additional context
cc: @robertness @darthtrevino

https://github.com/py-why/dodiscover/issues/59


Cannot download the configuration SPSP Viruses from the server

It return a 500 error. thanks.

Please re-open this issue if the problem persists.


[BUG] test_delta_write_encryption_runtimeconfig_fallback failed

Saw the following failure in a nightly run against 3.3.x-SNAPSHOT.   Only necessary if the answer is a reference (e.g., object,
[2022-12-09T19:49:51.277Z]             list, map)
[2022-12-09T19:49:51.277Z]         :param target_id: the name of the object from which the answer comes from
[2022-12-09T19:49:51.277Z]             (e.g., *object1* in `object1.hello()`). Optional.
[2022-12-09T19:49:51.277Z]         :param name: the name of the member from which the answer comes from
[2022-12-09T19:49:51.277Z]             (e.g., *hello* in `object1.hello()`). Optional.
[2022-12-09T19:49:51.277Z]         """
[2022-12-09T19:49:51.277Z]         if is_error(answer)[0]:
[2022-12-09T19:49:51.277Z]             if len(answer) > 1:
[2022-12-09T19:49:51.277Z]                 type = answer[1]
[2022-12-09T19:49:51.277Z]                 value = OUTPUT_CONVERTER[type](answer[2:], gateway_client)
[2022-12-09T19:49:51.277Z]                 if answer[1] == REFERENCE_TYPE:
[2022-12-09T19:49:51.277Z] >                   raise Py4JJavaError(
[2022-12-09T19:49:51.277Z]                         "An error occurred while calling {0}{1}{2}.\n".
[2022-12-09T19:49:51.277Z]                         format(target_id, ".", name), value)
[2022-12-09T19:49:51.277Z] E                   py4j.protocol.Py4JJavaError: An error occurred while calling z:com.nvidia.spark.rapids.ExecutionPlanCaptureCallback.assertCapturedAndGpuFellBack.
[2022-12-09T19:49:51.277Z] E                   : java.lang.AssertionError: assertion failed: Could not find ExecutedCommandExec in the GPU plan
[2022-12-09T19:49:51.277Z] E                   ObjectHashAggregate(keys=[], functions=[collect_set(txn#12872, 0, 0), count(protocol#12876), sum(add#12873.size), last(metaData#12875, true), count(metaData#12875), last(protocol#12876, true), count(remove#12874), count(add#12873), count(txn#12872)], output=[fileSizeHistogram#12735, setTransactions#12736, numOfProtocol#12737L, sizeInBytes#12738L, metadata#12739, numOfMetadata#12740L, protocol#12741, numOfRemoves#12742L, numOfFiles#12743L, numOfSetTransactions#12744L])
[2022-12-09T19:49:51.277Z] E                   +- Exchange SinglePartition, ENSURE_REQUIREMENTS, [plan_id=7519]
[2022-12-09T19:49:51.277Z] E                      +- ObjectHashAggregate(keys=[], functions=[partial_collect_set(txn#12872, 0, 0), partial_count(protocol#12876), partial_sum(add#12873.size), partial_last(metaData#12875, true), partial_count(metaData#12875), partial_last(protocol#12876, true), partial_count(remove#12874), partial_count(add#12873), partial_count(txn#12872)], output=[buf#12959, count#12960L, sum#12961L, last#12962, valueSet#12963, count#12964L, last#12965, valueSet#12966, count#12967L, count#12968L, count#12969L])
[2022-12-09T19:49:51.277Z] E                         +- *(1) Project [txn#12872, add#12873, remove#12874, metaData#12875, protocol#12876]
[2022-12-09T19:49:51.277Z] E                            +- *(1) Scan ExistingRDD Delta Table State #0 - file:///tmp/pyspark_tests/it-test-33x-158-gm00d-vrgmx-gw4-29144-4535688/DELTA_DATA/GPU/_delta_log[txn#12872,add#12873,remove#12874,metaData#12875,protocol#12876,cdc#12877,commitInfo#12878]
[2022-12-09T19:49:51.277Z] E
[2022-12-09T19:49:51.277Z] E                   	at scala.Predef$.assert(Predef.scala:223)
[2022-12-09T19:49:51.277Z] E                   	at com.nvidia.spark.rapids.ExecutionPlanCaptureCallback$.assertDidFallBack(Plugin.scala:483)
[2022-12-09T19:49:51.277Z] E                   	at com.nvidia.spark.rapids.ExecutionPlanCaptureCallback$.assertCapturedAndGpuFellBack(Plugin.scala:477)
[2022-12-09T19:49:51.277Z] E                   	at com.nvidia.spark.rapids.ExecutionPlanCaptureCallback.assertCapturedAndGpuFellBack(Plugin.scala)
[2022-12-09T19:49:51.277Z] E                   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-12-09T19:49:51.277Z] E                   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-12-09T19:49:51.277Z] E                   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-12-09T19:49:51.277Z] E                   	at java.lang.reflect.Method.invoke(Method.java:498)
[2022-12-09T19:49:51.277Z] E                   	at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
[2022-12-09T19:49:51.277Z] E                   	at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
[2022-12-09T19:49:51.278Z] E                   	at py4j.Gateway.invoke(Gateway.java:282)
[2022-12-09T19:49:51.278Z] E                   	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
[2022-12-09T19:49:51.278Z] E                   	at py4j.commands.CallCommand.execute(CallCommand.java:79)
[2022-12-09T19:49:51.278Z] E                   	at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:182)
[2022-12-09T19:49:51.278Z] E                   	at py4j.ClientServerConnection.run(ClientServerConnection.java:106)
[2022-12-09T19:49:51.278Z] E                   	at java.lang.Thread.run(Thread.java:750)
[2022-12-09T19:49:51.278Z]
[2022-12-09T19:49:51.278Z] /home/jenkins/agent/workspace/jenkins-rapids_it-3.3.x-SNAPSHOT-dev-github-158/jars/spark-3.3.2-SNAPSHOT-bin-hadoop3.2/python/lib/py4j-<IP_ADDRESS>-src.zip/py4j/protocol.py:326: Py4JJavaError

Duplicate of #7329


Python 3.x compatibility

In Python 2.7:
>>> import html_validator

In Python 3.6:
>>> import html_validator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/html_validator/__init__.py", line 10, in <module>
    from html_validator import validate, MissingValidatorOrJava, MissingHtmlFile, ValidationError
ImportError: cannot import name 'validate'

Hi @ronnix ,
I wrote it for py2.7 it doesn't work on 3 (tbh not sure why, its some weird import issue but I didn't look much into it).
Anyway you can just copy the code and it should work, as seen here:
https://github.com/RonenNess/html_validator/issues/1
If you want to make a PR for py3 that would be appreciated.
Thanks :)


Improved modem functionality

This PR features:

The ability to setup communication with car, according to ISO15118 standard
Work together with pyPLC (https://github.com/uhi22/pyPLC) which can handle the digital communication with the car, and submit the SoC states back to SmartEVSE
Compute the current SoC, based on the EV meter
Reliably reset SoC values upon disconnect with vehicle
"Re-plug" the vehicle if the communication fails, and after communication was succesfull to resume AC charging
Display the SoC values on the web UI

Work todo:

Set the battery capacity of the car via the menu, or via API. Currently hardcoded on 28kWh for Ioniq vehicle
Feature to stop charging once a specified SoC has been reached
Authorization of car based on MAC address of car

Please review and merge pr, rather than copy/pasting code. IMO git is not meant for copy-paste.
I'm happy to make changes or to add code/docs where needed.

@ArendJanKramer I'm afraid I'm going to have to revert your code; it prevents charging when Modem = Not present, so it looks like you never even tested without modem/pyplc present?

@ArendJanKramer I'm afraid I'm going to have to revert your code; it prevents charging when Modem = Not present, so it looks like you never even tested without modem/pyplc present?

It works fine here?
Normal, smart and solar seem to work, although solar is waiting as its dark here.

Perhaps EV dependent? My EV didnt charge last evening, didnt have time to look at it, reverted theast commit and there it went.
No EV here today so I cant try....

@ArendJanKramer False alarm, I cannot reproduce the problem, it charges fine now. Might have been the EV, there are quite some bugs in my cars firmware and VAG has problems getting their software development trajectory right.... Still waiting for the firmware update that will enable modem communication....


Dozer stops working somtimes with  "Field mapping error" due to "Exception occurred determining deep field hierarchy for Class ... Unable to determine property descriptor for Class"

this might be related to #118 / #160 and yet might not be, which is why i open a new bug.
we are still using dozer 5.4.0. at the time and jdk 1.7.72
we have this problem since end of 2014.
the exception text is this:
2015-10-28 08:36:27,436 ERROR org.dozer.MappingProcessor:295 - Field mapping error -->
  MapId: null
  Type: null
  Source parent class: de.tomsit.dozer.fieldmappingbug.entities.PartGroupPart
  Source field name: pk.partNumber
  Source field type: null
  Source field value: null
  Dest parent class: de.tomsit.dozer.fieldmappingbug.ui.PartGroupPartVO
  Dest field name: partNumber
  Dest field type: my.project.model.common.PartNumber
org.dozer.MappingException: Exception occurred determining deep field hierarchy for Class
    --> de.tomsit.dozer.fieldmappingbug.entities.PartGroupPart, Field --> pk.partNumber.
    Unable to determine property descriptor for Class
     --> java.io.Serializable, Field Name: partNumber
 at org.dozer.util.MappingUtils.throwMappingException(MappingUtils.java:87)
 at org.dozer.util.ReflectionUtils.getDeepFieldHierarchy(ReflectionUtils.java:149)
 at org.dozer.propertydescriptor.GetterSetterPropertyDescriptor.getDeepFieldHierarchy(GetterSetterPropertyDescriptor.java:285)
 at org.dozer.propertydescriptor.GetterSetterPropertyDescriptor.getDeepSrcFieldValue(GetterSetterPropertyDescriptor.java:112)
 ...

this occurs every once and a while and with different classes and i know of now way to reproduce it, but the message pattern is always the same.
in the past that happened only on our QS and TEST systems but now it occurred in production which is really bad and which is why i post it here now.
we also have noticed that problem quite often during development when the debugger reloaded the web app.
since the classes have some hierarchy to them, which is cumbersome to explain, i pushed a stripped down version of the code to https://bitbucket.org/elonderin/dozer-field-mapping-error.git
this is what i gathered so far:
it seems that at some point in time dozer loses the reflection info on the types or rather it doesnt get the right type.
in this case pk is determined as being Serializable which is true as it extends the interface but obviously it lacks the property partNumber.
i have tried to find similar bugs and have only found #118 and #160 which come closest in regard to appearing at some time and where i have read the idea about a problem with garbage collection, which i think is here the case too, due to these facts:

in the past this problem only occurred on the not-so-much-used TEST and QS environments.
bug BEANUTILS-456, but not sure if 100% applicable
since we had no clue what to do, we tried out diff. stuff and also thought that hints might help here. so we added a few and the problem seemed to be gone but now they are back.
when i revisited the code i noticed that we might have used the wrong hints (deep index, and they are commented out now) and and are ignored anyhow because of copy-by-reference="true". however, it might be that the hint objects affect the garbage collection positively.

any ideas?
heaving reread #118 and seen the newer posts i will try the following on our end:

remove all the (unneeded) hints
update to dozer 5.5.1
maybe even to the current trunk as 5.5.2 is not out yet, but that will need some convincing of the application support

PS: a bit more clear doc on the hints would have been helpful since i still dont know if and how they can help here at all, although i have read that u can/should/must use them in connection to interfaces

as far as reproducing goes: i just tried the following:
i set a break point in the test class on line 26 which is when i do the 2nd/reverse mapping.
the i opened the display view in eclipse and called <System.gc();> and voi la, i got it to fail with:
org.dozer.MappingException: Exception occurred determining deep field hierarchy for Class --> de.tomsit.dozer.fieldmappingbug.entities.PartGroupPart, Field --> pk.partNumber.  Unable to determine property descriptor for Class --> java.io.Serializable, Field Name: partNumber
	at org.dozer.util.MappingUtils.throwMappingException(MappingUtils.java:87)
	at org.dozer.util.ReflectionUtils.getDeepFieldHierarchy(ReflectionUtils.java:149)
	at org.dozer.propertydescriptor.GetterSetterPropertyDescriptor.getDeepFieldHierarchy(GetterSetterPropertyDescriptor.java:285)
	at org.dozer.propertydescriptor.GetterSetterPropertyDescriptor.writeDeepDestinationValue(GetterSetterPropertyDescriptor.java:140)
	at org.dozer.propertydescriptor.GetterSetterPropertyDescriptor.setPropertyValue(GetterSetterPropertyDescriptor.java:87)
	at org.dozer.fieldmap.FieldMap.writeDestValue(FieldMap.java:94)
	at org.dozer.MappingProcessor.writeDestinationValue(MappingProcessor.java:895)
	at org.dozer.MappingProcessor.mapFromFieldMap(MappingProcessor.java:349)
	at org.dozer.MappingProcessor.mapField(MappingProcessor.java:288)
	at org.dozer.MappingProcessor.map(MappingProcessor.java:248)
	at org.dozer.MappingProcessor.map(MappingProcessor.java:197)
	at org.dozer.MappingProcessor.map(MappingProcessor.java:187)
	at org.dozer.MappingProcessor.map(MappingProcessor.java:124)
	at org.dozer.MappingProcessor.map(MappingProcessor.java:119)
	at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:120)
	at de.tomsit.dozer.fieldmappingbug.entities.PartGroupPartVOTest.test2Vo(PartGroupPartVOTest.java:26)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

but i was only the 1st time successful and cannot repro it anymore that way

@elonderin ; is this still an issue? if so, can you create a github repo, that includes a unit test showing this behaviour and link it here.
NOTE: JDK7 support is dropped going forward, so please retest with JDK8 and latest code.

Closing due to inactivity.


Move Settings expandable below webhook and response definitions

@dcalvom should we move these below the settings or should they become part of the settings expandable?

Closed by https://github.com/samtecspg/articulate/commit/e5d5edc2681d9d4c416820557522a413fb7b5c8f


Revert "Replace syscall.Unlink with os.Remove so that the directory(eg. /run/docker.sock/) can be deleted"

This reverts commit e37f6db96f63ded68813dd97e0ad109dfe9c5fd2 (https://github.com/docker/go-connections/pull/72); see the discussion on that PR for background
Signed-off-by: Sebastiaan van Stijn<EMAIL_ADDRESS>

@cpuguy83 @tiborvass PTAL
I'll have a look at an alternative to see if that would work

@cpuguy83 @tiborvass PTAL


add support for more font sizes

add limited support for more font sizes (10, 12, 14, 16, 20, 24, 34, 40, 48)

Teaser of what is now possible (note the list is scrolled a little)

do not merge yet, pls


Add module kind enum to the package plugin API

Although the different basic kinds of targets were expressed through types, the module kind (executable, test, or regular) for a source module target was not expressed in the API.  This adds that property, letting plugins filter in or out, for example, test modules.
rdar://86786080

@swift-ci please smoke test

Updated based on feedback.  regular -> generic, and extracted the mapping from internal target kind to api module kind into an extension

@swift-ci please smoke test

Forgot to update a unit test

@swift-ci please smoke test


create jestrunner.configPath mapping

In my project I have multiple different jest config files to different filename endings. Like *.api-spec.ts files use jest-backend-api.json, *.unit-spec.ts files use jest-unit.json.
Is there a possibility to map those, so that I can run them by pressing the run button on each test, and it chooses the correct config file itself.
Currently I use jestrunner.configPath to map to one file. If multiple mapping is not possible, this can be a feature request.
Something like:
{
  "jestrunner.configPath": {
    "*.api-spec.ts": "jest-backend-api.json",
    "*.unit-spec.ts": "jest-unit.json"
  }
}

I'm happy to contribute, so just let me know if this is something I can take or it already exists.

This would be amazing, we have 3 different configurations (browser, backend, and e2e)

It's not possible at the moment (jestrunner.configPath only accepts a string), but I think it could be added around getJestConfigPath 👍


Fixed Typo in "Installation  on Ubuntu"

Fixed typo where it said run mac setup script under the ubuntu installation where it referred to the ubuntu.sh

@googlebot I signed it!


More columns

All the new columns are disabled by default.
TBD:

Ports column should be simplified i.e. just show published ports
Date created should be in more compact form

looks great; thanks @stokito !


PPO loading stopped working correctly

I'm not sure what happened but for some reason loading stopped working correctly. During the first training after loading the program raises an error about mismatching lengths of tensors (they seem to be off by one but I'm not sure). I'll have to investigate it and try to fix it but it's not a major issue so we can continue with the experiment phase and I'll try to fix it as soon as I can.

test_saving_loading doesn't pass no more although it might be related to some different issue. Either way feels like it's important to resolve this asap