Relationship field validation does not respect the current transaction

Link to reproduction
https://github.com/diesieben07/payload/tree/repro/relationship-validation-transactions
Describe the Bug
The validation code for filterOptions on relationship fields does not respect the current transaction. As a result, you cannot create an object which has a relationship to an object that was created in the same transaction, because the validation code will not find the previously created object, because it is checking without a transaction.
The reason for this is that validateFilterOptions does not use (or receive) the PayloadRequest and does not pass it to the find operation it does.
There may be other validation functions that have the same issue.
To Reproduce

Create a collection X and a collection Y, where Y has a relationship field to X with filterOptions set (can be an empty object).
Start a transaction.
Create object A of collection X.
Create object B of collection Y with a relationship to A

Step 4 will fail with a validation error, claiming that A is not a valid option.
It will work fine when not using transactions.
Given the above reproduction link, this can be reproduced as follows:

docker compose up -d, this starts a MongoDB ReplicaSet
export PAYLOAD_TEST_MONGO_URL='mongodb://<IP_ADDRESS>/payloadtests?replicaSet=payload'
pnpm run test:int _community

Payload Version
2.1.0
Adapters and Plugins
db-mongodb, db-postgres

I am currently working on a pull request to fix this issue.

I am currently working on a pull request to fix this issue.

@diesieben07 I ran into this issue when trying to debug #4350. With transactions enabled, the error still occurs.

@BrianJM that is quite likely. I discovered while working on #4087 (and other PRs I did regarding transactions) that in my honest opinion the way transactions were implemented into the Payload API is fundamentally flawed. I spent a lot of time trying to work around it and fix it up, but ultimately could not dedicate any more time to it a) because it is no longer relevant to my work and b) I just got frustrated by it.

Sorry for the frustrations, I've been working on other things but I am making some breakthroughs.

in my honest opinion the way transactions were implemented into the Payload API is fundamentally flawed.

@diesieben07 I am looking into this more. If you have anything else to share, I'd love to hear more about the struggles you ran into. I'm on the discord server as well.

@BrianJM Here is how transactions work in Payload at the moment:
Every operation (find, findByID, create, update, etc.) does its own transaction management. To do this, the code for every operation includes the following boilerplate:

Check if there is already a transaction, if not, start one.
Do the actual operation.
If everything went well, commit the transaction.
If an error happened, roll back the transaction.

Now this on its own would not be very useful, because you've essentially invented autocommit mode. Therefor every operation[^1] also has a req parameter of type PayloadRequest, which stores the transaction ID. Therefor if multiple operations use the same PayloadRequest, they can coordinate - right? Well, you run into a bunch of race conditions if you do this with the naive implementation above:

Creating the transaction is asynchronous, so if two operations use the same request, they can cause two transactions to be started. Most of the time only one of them will be used and committed, but depending on the timing you could even have some operations still run on the transaction that never gets committed (this is very unlikely though) or even have both transactions get committed (even more unlikely). This was fixed in #4164.
If someone else created the transaction, you don't really want to be committing it. You don't even know if the other operation is done yet. If the operations run "in parallel" you could have one of them commit the transaction when it is done and then the other operations will continue running, but now without a transaction (the transactionID was removed from the PayloadRequest by committing it). They might even fail, and now part of their work has been committed, even though they failed.
I think most of this was also fixed by #4164. Now operations only commit transactions that they themself have started. If you run operations in parallel, this still requires the foresight to start a transaction before you run them in parallel, otherwise you could still have the situation where the operation who "wins" at starting the transaction is also the first to finish - committing the transaction before the others are done.
Now for the (imho) worst part, and the one that is not fixed yet as far as I know. If an operation encounters an error, it immediately rolls back the transaction no matter what. If there are operations running in parallel with it, they will not know the transaction was rolled back and just keep moving forward. This obviously causes problems.

Rolling back a transaction is (again) asynchronous. So you might have one of the other operations try to use a transaction that is already rolled back - causing an error from the database.
Once the transaction is rolled back, the PayloadRequest object no longer has a transactionID, meaning everything else that is still running will not be rolled back, but instead just start a new transaction and commit that. This will either fail with integrity constraints (because part of the work was rolled back) or cause inconsistent data in the database (again, because part of the work was rolled back).

Even if point 3 is fixed, in my opinion the whole design is still brittle and error-prone and unlike anything I have ever seen in other systems that use database transactions. If you forget to pass along the PayloadRequest at every step of the way things go wrong (see #4087 for an example in Payload and it happend constantly in my own application code). If you forget to adhere to the exact calling requirements (see point 2 above, you must start a transaction yourself if you are going to call multiple things in parallel), things go wrong. And the way things go wrong is not at all fail-fast. If things go wrong, basically anything can happen:

Everything looks okay, but you now have inconsistent data.
You get random and spurious "tried to use an already committed/rolled back transaction" errors
You get random inexplicable behavior, where an object you just created seems to be no longer known to the database, because you forgot to pass along the req or the transaction got killed out from under you.

And if you try again, it most likely worked, because everything is full of race conditions.
I wish you the best of luck in your endeavors, but I am no longer interested in trying to make this system work.
[^1]: A bunch were missing this parameter, fixed in #3651.

Thanks for the detailed breakdown, @diesieben07, that was very informative!

This defect also exists in 2.11.1.

I think the root cause of this bug might be related to #6800 (pending fix in #6821)


Collision avoidance method

Hi,
I'm trying to evaluate my formal verification framework on your autonomous agent.
I use the default evaluation script (adding new.ckpt in TEAM_CONFIG).
Based on my observation through multiple test runs, is it true that:

Ego speed is constrained to max 5 km/h?
Ego can not change lanes to avoid collisions? Lane changes only when specified in the ego route waypoints (in .xml input file)?
Ego brakes to a stop when another vehicle drives close ahead in its adjacent lane?

Looking forward to your response.
Cheers!

For 1, there is no direct constraint on the ego speed, but the maximum throttle is set to 0.75.
For 2&3, as this is an end-to-end learning model, there are no explicit rules or constraints about its behavior but some of these behaviors you observed might be learned from the expert demonstrations.


Getting list of Service Fabric applications

This is autogenerated. Please review and update as needed.
Describe the bug
Trying to fetch list of deployed applications in SFC always returns empty result even though there are applications deployed to a cluster
Command Name
az sf application list --resource-group MyTestRG01 --cluster-name testsfcclust01
Errors:
N/A
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Create new SFC (from portal or using CLI)
Deploy sample voting app (https://github.com/Azure-Samples/service-fabric-dotnet-quickstart)
az sf application list --resource-group {} --cluster-name {}

Expected Behavior

Return the list of applications deployed on SF cluster

Environment Summary
Windows-10-10.0.17763-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.3.1

Additional Context

Service Fabric

Any update on this?

My suspicion is that you have the same problem as me. In the docs for az sf application it has an important and tragic note: "Only support ARM deployed applications."
How sad is that!? Azure CLI is Microsoft's "next generation multi-platform command line experience for Azure", but I can't manage SF apps deployed from a DevOps Release Pipeline, and I'm guessing the above limitation is the reason. A possible workaround is to use the (painful) PowerShell SF command module.
Can anyone confirm the above? I will probably log a new issue anyway.

@jajaislanina Apologies for the late reply. AFAIK there is no indication in SFX for apps that are created via ARM or management endpoint, and indeed you would not see the non ARM application types with ARM get operation. So the CLI commands will show only ARM based applications. see here.
The PS command Get-AzResource will also return applications that are managed as ARM resources.
Also this github thread has been open for quite sometime now. Please let us know if you need any further assistance on this before we proceed with closure on this thread.

@jajaislanina Please let us know if you had a chance to look at my above comment. Do let us know if you need any further help on this. Awaiting your reply.

@jajaislanina We will now proceed with closure of this github issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.


Including kotlin file into App_Resources/Android/src/main/java seems to not work

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

CLI: 8.1.1
Cross-platform modules: 8.1.1
Android Runtime: 8.1.1

Describe the bug
I'm trying to use a Kotlin file with some function for include into my Angular project but everything about it is undefined, for example if I define my packages as org.acrapp then acrapp is undefined and so on.
But if I create a Test.java file with a class inside and package org.acrapp the package isn't undefined anymore but everything from the Kotlin file is undefined (no classes no functions, etc)
To Reproduce
This is what I'm trying to do:
// Tools.kt on App_Resources/Android/src/main/java folder
@file:JvmName("Tools")

package org.acrapp

class TestKotlin

fun sayHello() {
    print("Hello World!")
}

// In some TypeScript Angular component
constructor(
  private readonly http: HttpClient,
  private readonly feedback: FeedbackService,
) {
  console.log(org.acrapp) // this prints undefined if package is defined in a Kotlin file, but if defined in Java file it isn't undefined
}

I noticed that if the Kotlin file has an syntax error the CLI stars an Android build but no error is thrown, is like it is ignoring my Kotlin file (Java files are compiled as expected)
Expected behavior
I was expecting that Kotlin was enabled by default for use in App_resources, if that isn't the case have I do enable it? how?
Additional context
Running on Genymotion with Android 10

@darkyelox
project.ext {
    useKotlin = "true"
}

should be the way. Did you clean after adding it?

Did it and nothing changed, here is my graddle, it compiles but ignores Kotlin files (even with syntax error).
// Add your native dependencies here:

// Uncomment to add recyclerview-v7 dependency
dependencies {
  implementation 'com.android.support:multidex:1.0.3'
  implementation 'com.squareup.okhttp3:okhttp:4.9.0'
}

// If you want to add something to be applied before applying plugins' include.gradle files
// e.g. project.ext.googlePlayServicesVersion = "15.0.1"
// create a file named before-plugins.gradle in the current directory and place it there

android {
  defaultConfig {
    minSdkVersion 19
    generatedDensities = []
    multiDexEnabled true
  }

  packagingOptions {
      pickFirst '**/*.so'
  }

  aaptOptions {
    additionalParameters "--no-version-vectors"
  }
}

project.ext {
  useKotlin = "true"
}

@darkyelox you will need to create a gradle.properties file in App_Resources/Android then add the following
useKotlin=true

@triniwiz I actually don't think the gradle.properties gets picked up in App_Resources. I had to make a hook to merge the platform one with the one I would put in App_Resources

@darkyelox you will need to create a gradle.properties file in App_Resources/Android then add the following
useKotlin=true

Confirmed that this worked (for someone else) on Discord!

@shirakaba awesome !


feat(MeshManifestTask) parallelizes mesh manifest creation.

After running marching cubes, an additional file has to be
created which contains the list of chunks for every id.
We rely on sorting the keys to split the keys and parallelize
this process.

One question I have: Where is task_creation.create_mesh_manifest_tasks? Shouldn't that be included in this PR?

I think you are right, but I wanted to do a bit more experimentation to find out what works well. So I rather do another PR in the future include it.


feat(profile): publish profile updates to ipns, add cmds

Adds methods for interacting with IPNS
A simple profile is (re)published under peer id whenever login, logout happens, as well as on start up
New gateway methods for getting at IPNS links

TODO:

Pinner needs to handle the whole profile directory
Mobile methods for getting other peers' profiles, since the gateway isn't running

#fixes #168

(still need to fix the profile pin step... walk the dir and pin each...)

 Please take a look / merge this rig. We'll need a bridge update for the mobile method: ResolveProfileInfo

Cool man, looks good from a high level. The only questions I have (which may not be relevant, just first reactions):

Since you have to know the profile keys to query each one of them, how does the client learn the keys?
Having to fetch single profile keys seems odd vs getting back a profile object
Image metadata seems like an odd place to get a 'global' thing like peer id. Like if we need to query for profile data, you have to go find some image metadata first, and get the peer id out of it, then make your profile query?

Like I said, maybe not actually relevant, maybe this is the way it should work with ipns etc

Sweet, thanks for the look!

1. Since you have to know the profile keys to query each one of them, how does the client learn the keys?

Good question, I'd say let's revisit when we move to protobufs on the interface. Feels similar to any other model we share... e.g, client needs to know the structure of meta data.

2. Having to fetch single profile keys seems odd vs getting back a profile object

Could definitely expose the full object if that makes more sense. I guess my thinking was more desktop based... where you want to just use the gateway, so having the key-based links is nice. Can do this in a follow up, will make issue.

3. Image metadata seems like an odd place to get a 'global' thing like peer id. Like if we need to query for profile data, you have to go find some image metadata first, and get the peer id out of it, then make your profile query?

You can always get your own peer's id, username, etc. directly... it's just that the only time you'd encounter another peer is if they added a photo. It's just the same as an IG post likely has the user's ID on it. So, once you have their peer id, you can then find profile info, rather than putting all the info (ever expanding) right on the photo / comment / etc.


update dc_code and dc_law permalink modules

Some updates to the link modules for DC-related law things:

rename the dccode linker to dc_council
fix its dc_law linker function -- it was incorrectly applied to dc_code citations, and the URLs have changed to https://beta.code.dccouncil.us
add a dc_code linker function to https://beta.code.dccouncil.us
drop the dccodeorg and dcdecoded linkers since the sites (dccode.org, dcdecoded.org) are no longer maintained

Thanks, @JoshData!


Navigation Bar

I can add a navigation bar to this website .
You can assign me this issue.

@unnati-078 Are you proposing a redesign or enhancement of the current navbar?

Could you please assign this issue to me? I believe I can provide a solution. I am offering a better design of the navbar , and making it responsive and interactive .

@unnati-078 Are you proposing a redesign or enhancement of the current navbar?

Yes


Presto driver accidentally deleted

Hi,
I am newbie at dBeaver and accidentally deleted Presto from Driver Manager.
I tried reinstalling dbeaver yet it is not coming back.
How to get it back?
Thanks
Rishabh

It is in the driver manager dialog:

Hi serge-rider,
I am on version 6 32-bit windows and I dont have undelete option.
Any other step can you please provide?
Thanks
Rishabh

Unfortunately we don't support 32-bit version anymore.
You could try to edit/delete drivers.xml file manually.
https://github.com/dbeaver/dbeaver/wiki/Admin-Manage-Drivers


Rendering multiple components in React

One of the joys of React is that it's much easier to render multiple components of the same or similar types by writing javascript directly into your HTML(/JSX).
You don't need to write out each individual mole. You could create an array data (e.g. ids 1-8 for each mole) and map over it, and return a component to render for each iteration over the array.
This makes for much less code to write, easier code to read.
https://github.com/Armand-Lluka/whack-a-mole/blob/83f6ccafe483a93b981d9e896209fa339af0b76c/src/components/grid/grid.js#L124-L140

If you don't want to store an array just to map over and render from you can also use my favourite trick:
Array.from({ length: 9 }, (_, index) => (<div>{index}</div>)

Array.from takes an object with a length as the first argument and a map function as the second. This produces an array of 9 buttons for React to render


Link Obs Community plug-in page to Github

When clicking in Obsidian to open the page there with description/instructions there is nothing …… yet?

Yes I have not submitted this plugin yet to the community list. It is too beta :-) for now you can use with a manual install.


Automatically create a changelog from the git history

As a developer contributing to a project
I want for my changelog to be automatically generated from my git commit messages
So that I have all the benefits of keeping a changelog, but don't have the arduous faff of documenting what I've done separately from my git messages.
Currently I have to pre-empt a 'tag-to-deploy' stage with a PR. If this was dynamically compiled, then I wouldn't have to write anything extra. DRY and all.
Not all commits should go into the changelog; just posh ones that have been marked-up appropriately.
This would force us to improve our git commit message disciple on the project. Since the commit message is part of the commit hash, once a commit is on main we cannot alter it. Consider compiling the contribution to a new changelog that a PR would add so that it can be part of the review?
Suggestions
I think that git-cliff is what we want here. Customisable and fast - there's even a github action

Some stages to fulfilling this item:

Add git-cliff config to repo (via pyproject.toml - see #256)
Consider expanding the default regexes (some developers use gitmojis; add these to the regexes)
Add links to gh tubular issues and PRs
Splice changelog output ontop of the existing CHANGELOG.rst. Try to match the format that we already use (keep a changelog 'format')
Include guidance in the CONTRIBUTING.rst doc
Consider autogenerating a contributors list from the git history?
Add a tool that shows the CHANGELOG delta from just the commits on a branch. Is there away to add this to a PR automatically?

I think that we should then let the above processes bed in before enabling a stage that automatically compiles a CHANGELOG for the project as part of CD. Creating a CHANGELOG would therefore still be a manual process, but could be assisted by git-cliff.

Note, implementing this ticket would prove an alternative to #165 in the long run


Error by using NBTBlockUtils

I have a Cauldron server running on 1.7.10 but when I start the server there is already a error from PowerNBT which says:

java.lang.ExceptionInInitializerError - java.lang.RuntimeException: no such method: [suffix:load,types:[class net.minecraft.nbt.NBTTagCompound]] for class net.minecraft.tileentity.TileEntity

But after the error the plugins still works the commands are working, but after I want to instantiate a new NBTManager with the API in my own plugin the hole thing breaks and says:

java.lang.NoClassDefFoundError: Could not initialize class me.dpohvar.powernbt.utils.NBTBlockUtils

Can someone help me? Would love to create something with this plugin.

You can try older versions
https://www.spigotmc.org/resources/powernbt.9098/updates (0.8.9 - latest)
https://dev.bukkit.org/projects/powernbt/files (0.1 -  0.8.2 beta)
maybe 0.7.3 will work
or wait until i fix this problem

Sadly version 0.7.3 will give right on the start this error:

java.lang.ExceptionInInitializerError - java.lang.RuntimeException: no such method
at me.dpohvar.powernbt.utils.ReflectionUtils$RefClass.findMethod(ReflectionUtils.java:278) ~[?:?]

And after an API call

java.lang.NoSuchMethodError: me.dpohvar.powernbt.PowerNBT.getApi()Lme/dpohvar/powernbt/api/NBTManage

I think I have to wait for your fix. Hope you can figure out something soon.
Thanks in advance.

maybe I fixed it
try http://repo.varscript.ru/release/me/dpohvar/powernbt/PowerNBT/<IP_ADDRESS> SNAPSHOT/
If everything is OK, I'll merge it to master

It looks like you fixed it man. Thank you!

Is <IP_ADDRESS> supposed to work properly with spigot 1.11.2? I'm still getting both of the errors as @rubenvde stated.
On server start:
Caused by: java.lang.RuntimeException: no such method: [suffix:load,types:[class net.minecraft.server.v1_11_R1.NBTTagCompound], suffix:a,forge:true,types:[class net.minecraft.server.v1_11_R1.NBTTagCompound]] for class net.minecraft.server.v1_11_R1.TileEntity
Inside my plugin:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class me.dpohvar.powernbt.utils.NBTBlockUtils 	at me.dpohvar.powernbt.api.NBTManager.<init>(NBTManager.java:41) ~[?:?]

@akashaggarwal7
Does version 0.8.9 work on spigot 1.11.2 without errors?
https://github.com/DPOH-VAR/PowerNBT/commit/fe8c74aaddfd75bd56335050d3c84b7980003d41  should not have affected spigot.
I wll check it a bit later

@DPOH-VAR
The problem exists in 0.8.9 as well, I tried with 5e28d24.

http://repo.varscript.ru/release/me/dpohvar/powernbt/PowerNBT/<IP_ADDRESS>/PowerNBT-<IP_ADDRESS>.jar


Stopped working

My sonoff integration has stopped working, for no reason that I can determine.
I have read the issues here, and the posts/threads elsewhere, I've made the async app=1 changes, tried both auto and cloud logins, but can't get it to work.
I can confirm that I can log into my account from the ewelink web site.
Running Proxmox with:
HAOS 11.5
Core 2024.1.6
Here is the debug:
2024-02-06 09:55:40 [D] SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2024.1.6', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.11.6', 'docker': True, 'arch': 'x86_64', 'timezone': 'America/New_York', 'os_name': 'Linux', 'os_version': '6.1.74-haos', 'user': 'root', 'supervisor': '2024.01.1', 'host_os': 'Home Assistant OS 11.5', 'docker_version': '24.0.7', 'chassis': 'vm', 'sonoff_version': '3.5.4 (a4a8c5f)'}
2024-02-06 09:56:11 [W] Can't login with mode: auto|  File "/config/custom_components/sonoff/init.py", line 207, in async_setup_entry|    await registry.cloud.login(username, password)|TimeoutError|
And the Log:
Logger: custom_components.sonoff
Source: custom_components/sonoff/init.py:207
Integration: Sonoff (documentation, issues)
First occurred: 9:56:11 AM (6 occurrences)
Last logged: 10:01:21 AM
Can't login with mode: auto
Traceback (most recent call last):
File "/config/custom_components/sonoff/init.py", line 207, in async_setup_entry
await registry.cloud.login(username, password)
File "/config/custom_components/sonoff/core/ewelink/cloud.py", line 145, in login
r = await self.session.post(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 504, in _request
with timer:
File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 735, in exit
raise asyncio.TimeoutError from None
TimeoutError
I am lost as to how to continue troubleshooting.
Any help would sure be appreciated.

same for me after Update to HAOS 11.5
Error:
Logger: homeassistant.setup
Source: setup.py:251
First occurred: 16:44:44 (1 occurrences)
Last logged: 16:44:44
Setup failed for custom integration 'sonoff': Unable to import component: Exception importing custom_components.sonoff
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 822, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/sonoff/init.py", line 28, in
from .core import devices as core_devices
File "/config/custom_components/sonoff/core/devices.py", line 104, in
PULSEWIDTH = spec(XPulseWidth, param="pulseWidth", enabled=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sonoff/core/devices.py", line 90, in spec
return type(cls.name, (cls,), {**cls.dict, **kwargs})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 408, in init
wrap_attr(cls, property_name)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 380, in wrap_attr
raise TypeError(f"Can't override {attr_name} in subclass")
TypeError: Can't override _attr_native_step in subclass
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 830, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.sonoff

It's quite frustrating.
I have come to depend on the Sonoff devices.
I have about 29 of these devices in places.

i downgraded to last working Version.
You can do that in Terminal with:
ha core update --version 2023.12.3
sonoff is working again...

I followed your lead and am now on 2023.12.3, but still doesn't work.
I'm still using 11.5 -- could that be a problem?

these are my Versions and it works:
Core 2023.12.3
Supervisor 2024.01.1
Operating System 11.5
Frontend  20231208.2

I reboot several times and now it is working.
Thank you again so much!
This was a good lesson about upgrading:  Proceed with Caution.

@josephny yes. You have network problems. Not related to this integration.
But @mike-kk-dd has a real problem. That should be fixed. Better to create separate issue for it.

I got the error containing XPulseWidth... after upgrading to HomeAssistant 24.01 - and restarting with previous version of SonoffLAN (which was 3.5.2).
By upgrading also SonoffLAN (to 3.5.4) and restarting HA - it went away.

You have to download that version - as a Zip is easiest. Look for the
version tags - here on GitHub - and try to find the download.
Then, you have to go into the config director of your HA. Then various
extensions are located in subfolder custom_components.
Shut down HA, ove old Sonoff module out of the way (best to move, not to
delete). Then expand the zip (or rather the right part of it) into this
folder.
Best if you get your head around each step - and just not follow blindly.

—
Reply to this email directly, view it on GitHub
https://github.com/AlexxIT/SonoffLAN/issues/1338#issuecomment-1932247111,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACDJGUTDGYHBRPF2BN2LJC3YSOKH5AVCNFSM6AAAAABC4E2P7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZSGI2DOMJRGE
.

Thanks @asteinarson that fixed me too!  Wife happy again that all my automated nonsense is working again.

Close this because simple network issue. Not related to integration


SmartCard sample SmartCardReader.CardAdded is never called

When I want to use CardAdded event to detect when a SmartCard was inserted into the SC reader, UWP does not fire the event.
Sample code:
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
            string selector = SmartCardReader.GetDeviceSelector();
            DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(selector);

            foreach (DeviceInformation device in devices)
            {
                SmartCardReader reader = await SmartCardReader.FromIdAsync(device.Id);
                reader.CardAdded += Reader_CardAdded;
                reader.CardRemoved += Reader_CardRemoved;

                // retaining reader instances does not work either
                // retain.Add(reader);
            }

            ItemListView.ItemsSource = cardItems;
        }

This code doesn't appear in any of the samples in this repo. It appears to be code in your own project. You can follow the instructions on Windows developer support for support options. (Click "Forums and community".)

Thanks for nothing. 🖕🖕🖕

This is for filling issues about the samples in this repo. It is not a general developer support forum. See the links above for developer support options.


Crash when building to android device

Hi,
I'm getting the following error when running on an android device. Any ideas on how to fix it?
I'm using Meteor v<IP_ADDRESS>.
Thanks
Patricks-MacBook-Air-8:js paddy$  meteor run android-device
[[[[[ ~/src/test/js ]]]]]
=> Started proxy.
 For the mobile app to be able to connect to the local server, make sure your device is on the same network, and
that the network configuration allows clients to talk to each other (no client isolation).
=> Started your app.
=> App running at: http://localhost:3000/
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --device:
Error: Command failed: /Users/paddy/go/src/test/js/.meteor/local/cordova-build/platforms/android/cordova/run --device
/Users/paddy/go/src/test/js/.meteor/local/cordova-build/platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java:495: error:
cannot find symbol
webView.evaluateJavascript(js, null);
^
symbol:   method evaluateJavascript(String,)
location: variable webView of type CordovaWebView
/Users/paddy/go/src/test/js/.meteor/local/cordova-build/platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java:492: error:
cannot find symbol
webView.post(new Runnable(){
^
symbol:   method post()
location: variable webView of type CordovaWebView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':compileDebugJava'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

/Users/paddy/go/src/test/js/.meteor/local/cordova-build/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/paddy/go/src/test/js/.meteor/local/cordova-build/platforms/android/gradlew with args:
cdvBuildDebug,-b,/Users/paddy/go/src/test/js/.meteor/local/cordova-build/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true
at ChildProcess.exitCallback (/tools/utils/processes.js:137:23)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
ExitWithCode:1

Hi, I have the same error! :(
I'm using Meteor v1.2.1

I have resolved this and I opened a pull request! :)

Hi , I got the same error while working with meteor 1.2.1. My app is crashing after I include richsilv:cordova-notifications . How to resolve this ? I am trying to incorporate this with meteors todo app .

Hi @nabarag,
until the pull request is not accepted, you can fix it locally.
Download the project and change the file "package.js" https://github.com/richsilv/meteor-cordova-notifications/pull/12/files
Then, in your application, create a folder "packages" and insert the project modified.


Backfill the Spec11ThreatMatches table

Previously, the Spec11Pipeline stored ThreatMatches in JSON files in a GCS folder. The new Spec11ThreatMatches database is up and running now, and this command is used to backfill the table with the historical data stored in the JSON files (starting from January 31st, 2019).

This change is

Closing in favor of #897


Install failure due to PDO issue with doctrine/dbal slightly backdated

composer.json has doctrine/dbal set to 2.12.x in the current install.
This will ending up pulling in a bug where the PDO connection fails because it is having the wrong type of object returned to it. The failure will show up in the when running the install migrate.
I did a full fresh install, but after the git clone, I edited the composer.json before running composer, setting it to 2.13.2. There are reports of the bug being fixed are in 2.13.1:
https://github.com/doctrine/dbal/issues/4603
Extra annoying in that it really, REALLY looks like a database/user/password parameters issue, so you'll spend way too much time checking the mysql setup and permissions and ports and firewalls. It's not though. Recommend highly that the distribution gets composer.json updated. 👍
Edit:
OS: OpenSUSE
web server: nginx
install method: manual / CLI

Hi @anders8,
What version of BookStack are you attempting to use?
2.13.1 / 2.13.2 have been part of our composer.lock since BookStack v21.04.1 from the looks of things. It's the composer.lock that would actually be used for package versions upon composer install.

Was using:
git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch
as of yesterday, following "Manual Installation" as detailed:
https://www.bookstackapp.com/docs/admin/installation/

Then yeah, should still be installing 2.13.2:
https://github.com/BookStackApp/BookStack/blob/v21.08.3/composer.lock#L430-L431
To be honest, I'm still not sure how the pieces relate. On the latest releases you would be installing dbal 2.13.2. Contrary to the recommendation, the linked issue has people saying the issue was introduced in 2.13 and they're downgrading to 2.12. Overall I'm not overly confident in your exact scenario.
Did the manual change to 2.13.2 in composer.json actually change anything for you?
If so, what command are you using to install composer packages?


AlertIOS

This fixes the current bindings for AlertIOS, as the RN API doesn't have options I removed it and also there were typos in the type variant to string mapper.

To be merged after #214

I'm trying to go through the Rebolt changes and get them merged
@grabbou or @knowbody would you mind fixing the conflict? It looks like it should be straight forward but I'm not sure

@ulrikstrid done


Converting yolov4-tiny-3layer model to TRT

Hello JK,
I am trying to convert a custom-trained yolov4-tiny-3layer model to tensorRT to do accelerated inference on the Jetson AGX. However I haven't been successful.
There was an old post about this topic but unfortunately the source code has been changed since then. (https://github.com/jkjung-avt/tensorrt_demos/issues/334)
When I try to to the convert with yolo_to_onnx.py I get the following error.
Traceback (most recent call last):   File "yolo_to_onnx.py", line 994, in <module>     main()   File "yolo_to_onnx.py", line 982, in main     verbose=True)   File "yolo_to_onnx.py", line 539, in build_onnx_graph     params)   File "yolo_to_onnx.py", line 408, in load_conv_weights     conv_params, 'conv', 'bias')   File "yolo_to_onnx.py", line 440, in _create_param_tensors     conv_params, param_category, suffix)   File "yolo_to_onnx.py", line 471, in _load_one_param_type     buffer=self.weights_file.read(param_size * 4)) TypeError: buffer is too small for requested array
Do you have an idea how to solve this?

I tried it also with the default yolov4-tiny-3l.cfg and the pertained weight-file yolov4-tiny.conv.29 from the original Darknet-repo https://github.com/AlexeyAB/darknet
This is the cfg:
[net]
Testing
#batch=1
#subdivisions=1
Training
batch=64
subdivisions=1
width=608
height=608
channels=3
momentum=0.9
decay=0.0005
angle=0
saturation = 1.5
exposure = 1.5
hue=.1
learning_rate=0.00261
burn_in=1000
max_batches = 500200
policy=steps
steps=400000,450000
scales=.1,.1
[convolutional]
batch_normalize=1
filters=32
size=3
stride=2
pad=1
activation=leaky
[convolutional]
batch_normalize=1
filters=64
size=3
stride=2
pad=1
activation=leaky
[convolutional]
batch_normalize=1
filters=64
size=3
stride=1
pad=1
activation=leaky
[route]
layers=-1
groups=2
group_id=1
[convolutional]
batch_normalize=1
filters=32
size=3
stride=1
pad=1
activation=leaky
[convolutional]
batch_normalize=1
filters=32
size=3
stride=1
pad=1
activation=leaky
[route]
layers = -1,-2
[convolutional]
batch_normalize=1
filters=64
size=1
stride=1
pad=1
activation=leaky
[route]
layers = -6,-1
[maxpool]
size=2
stride=2
[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky
[route]
layers=-1
groups=2
group_id=1
[convolutional]
batch_normalize=1
filters=64
size=3
stride=1
pad=1
activation=leaky
[convolutional]
batch_normalize=1
filters=64
size=3
stride=1
pad=1
activation=leaky
[route]
layers = -1,-2
[convolutional]
batch_normalize=1
filters=128
size=1
stride=1
pad=1
activation=leaky
[route]
layers = -6,-1
[maxpool]
size=2
stride=2
[convolutional]
batch_normalize=1
filters=256
size=3
stride=1
pad=1
activation=leaky
[route]
layers=-1
groups=2
group_id=1
[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky
[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky
[route]
layers = -1,-2
[convolutional]
batch_normalize=1
filters=256
size=1
stride=1
pad=1
activation=leaky
[route]
layers = -6,-1
[maxpool]
size=2
stride=2
[convolutional]
batch_normalize=1
filters=512
size=3
stride=1
pad=1
activation=leaky
##################################
[convolutional]
batch_normalize=1
filters=256
size=1
stride=1
pad=1
activation=leaky
[convolutional]
batch_normalize=1
filters=512
size=3
stride=1
pad=1
activation=leaky
[convolutional]
size=1
stride=1
pad=1
filters=255
activation=linear
[yolo]
mask = 6,7,8
anchors = 12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401
classes=80
num=9
jitter=.3
scale_x_y = 1.05
cls_normalizer=1.0
iou_normalizer=0.07
iou_loss=ciou
ignore_thresh = .7
truth_thresh = 1
random=0
resize=1.5
nms_kind=greedynms
beta_nms=0.6
[route]
layers = -4
[convolutional]
batch_normalize=1
filters=128
size=1
stride=1
pad=1
activation=leaky
[upsample]
stride=2
[route]
layers = -1, 23
[convolutional]
batch_normalize=1
filters=256
size=3
stride=1
pad=1
activation=leaky
[convolutional]
size=1
stride=1
pad=1
filters=255
activation=linear
[yolo]
mask = 3,4,5
anchors = 12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401
classes=80
num=9
jitter=.3
scale_x_y = 1.05
cls_normalizer=1.0
iou_normalizer=0.07
iou_loss=ciou
ignore_thresh = .7
truth_thresh = 1
random=0
resize=1.5
nms_kind=greedynms
beta_nms=0.6
[route]
layers = -3
[convolutional]
batch_normalize=1
filters=64
size=1
stride=1
pad=1
activation=leaky
[upsample]
stride=2
[route]
layers = -1, 15
[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky
[convolutional]
size=1
stride=1
pad=1
filters=255
activation=linear
[yolo]
mask = 0,1,2
anchors = 12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401
classes=80
num=9
jitter=.3
scale_x_y = 1.05
cls_normalizer=1.0
iou_normalizer=0.07
iou_loss=ciou
ignore_thresh = .7
truth_thresh = 1
random=0
resize=1.5
nms_kind=greedynms
beta_nms=0.6

@icklerly1  The "TypeError: buffer is too small for requested array" occurs when the weight file does not match the cfg file.  More specifically, "yolo_to_onnx.py" tries to load convolution weights for the model but finds there're not enough bytes of data to load.
I think "yolov4-tiny.conv.29" only contains weights of the "feature extractor" portion of yolov4-tiny.  That is, weights of the yolo heads are missing.  That's why you get the "TypeError".
This could be avoided if you train your own custom model and save the complete weights.

@jkjung-avt Thanks a lot for your reply! That was exactly the solution. My custom trained model with complete weights was converted successfully to ONNX and TRT :)
Here is my custom cfg for reference:
[net]
# Testing
#batch=1
#subdivisions=8
# Training
batch=16
subdivisions=8
width=416
height=416
channels=3
momentum=0.9
decay=0.0005
angle=0
saturation = 1.5
exposure = 1.5
hue=.1

learning_rate=0.00261
burn_in=1000
max_batches = 200000
policy=steps
steps=160000,180000
scales=.1,.1

[convolutional]
batch_normalize=1
filters=32
size=3
stride=2
pad=1
activation=leaky

[convolutional]
batch_normalize=1
filters=64
size=3
stride=2
pad=1
activation=leaky

[convolutional]
batch_normalize=1
filters=64
size=3
stride=1
pad=1
activation=leaky

[route]
layers=-1
groups=2
group_id=1

[convolutional]
batch_normalize=1
filters=32
size=3
stride=1
pad=1
activation=leaky

[convolutional]
batch_normalize=1
filters=32
size=3
stride=1
pad=1
activation=leaky

[route]
layers = -1,-2

[convolutional]
batch_normalize=1
filters=64
size=1
stride=1
pad=1
activation=leaky

[route]
layers = -6,-1

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky

[route]
layers=-1
groups=2
group_id=1

[convolutional]
batch_normalize=1
filters=64
size=3
stride=1
pad=1
activation=leaky

[convolutional]
batch_normalize=1
filters=64
size=3
stride=1
pad=1
activation=leaky

[route]
layers = -1,-2

[convolutional]
batch_normalize=1
filters=128
size=1
stride=1
pad=1
activation=leaky

[route]
layers = -6,-1

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=256
size=3
stride=1
pad=1
activation=leaky

[route]
layers=-1
groups=2
group_id=1

[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky

[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky

[route]
layers = -1,-2

[convolutional]
batch_normalize=1
filters=256
size=1
stride=1
pad=1
activation=leaky

[route]
layers = -6,-1

[maxpool]
size=2
stride=2

[convolutional]
batch_normalize=1
filters=512
size=3
stride=1
pad=1
activation=leaky

##################################

[convolutional]
batch_normalize=1
filters=256
size=1
stride=1
pad=1
activation=leaky

[convolutional]
batch_normalize=1
filters=512
size=3
stride=1
pad=1
activation=leaky

[convolutional]
size=1
stride=1
pad=1
filters=18
activation=linear

[yolo]
mask = 6,7,8
anchors = 12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401
classes=1
num=9
jitter=.3
scale_x_y = 1.05
cls_normalizer=1.0
iou_normalizer=0.07
iou_loss=ciou
ignore_thresh = .7
truth_thresh = 1
random=0
resize=1.5
nms_kind=greedynms
beta_nms=0.6

[route]
layers = -4

[convolutional]
batch_normalize=1
filters=128
size=1
stride=1
pad=1
activation=leaky

[upsample]
stride=2

[route]
layers = -1, 23

[convolutional]
batch_normalize=1
filters=256
size=3
stride=1
pad=1
activation=leaky

[convolutional]
size=1
stride=1
pad=1
filters=18
activation=linear

[yolo]
mask = 3,4,5
anchors = 12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401
classes=1
num=9
jitter=.3
scale_x_y = 1.05
cls_normalizer=1.0
iou_normalizer=0.07
iou_loss=ciou
ignore_thresh = .7
truth_thresh = 1
random=0
resize=1.5
nms_kind=greedynms
beta_nms=0.6

[route]
layers = -3

[convolutional]
batch_normalize=1
filters=64
size=1
stride=1
pad=1
activation=leaky

[upsample]
stride=2

[route]
layers = -1, 15

[convolutional]
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky

[convolutional]
size=1
stride=1
pad=1
filters=18
activation=linear

[yolo]
mask = 0,1,2
anchors = 12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401
classes=1
num=9
jitter=.3
scale_x_y = 1.05
cls_normalizer=1.0
iou_normalizer=0.07
iou_loss=ciou
ignore_thresh = .7
truth_thresh = 1
random=0
resize=1.5
nms_kind=greedynms
beta_nms=0.6

I have another question if you don't mind: Is it possible to "close" a weight after training so that you wouldn't be able to do a retraining from it? (just like the "yolov4-tiny.conv.29", where you said headers are missing).
As to protect the weight from being used again for a training.
If you have any suggestions that would be great!

Is it possible to "close" a weight after training so that you wouldn't be able to do a retraining from it?

If you are using an open framework such as PyTorch or TensorFlow, there's probably no good solution to your problem.
On the other hand, you might refer to how NVIDIA's Transfer Learning Toolkit (TLT) handles this.  I think it converts the model and weights into a TensorRT engine and encrypts the engine.  So users could only do inference with the encrypted engine and  cannot fine-tune the engine for other use cases.


Error occurred while disassembling class Landroid.support.multiex.MultiDex$V19; - skipping class

Information

Apktool Version (apktool -version) 2.3.4
Operating System (Mac, Linux, Windows) Win10
APK From? (Playstore, ROM, Other) PlayStore

Stacktrace/Logcat
The log is too long so here is text file
batchlog.txt
Steps to Reproduce

apktool d (path of apk)

APK
Sure https://play.google.com/store/apps/details?id=com.superplanet.videogameguardians
Questions to ask before submission

Have you tried apktool d, apktool b without changing anything? Yes
Are you using the latest apktool version? Yes

Sorry for the delay. These errors look upstream with smali related to Pie.
https://github.com/JesusFreke/smali/issues/621
Looks like you reported it yourself - https://github.com/JesusFreke/smali/issues/687

It got fixed upstream.

It got fixed upstream.

Thanks. I missed this. Looks like it was in v2.4.0/2.4.1.


not receiving OSX

Of 0.10.1, osx 10.13.6, xcode 9.2.
Receiver does not see sender. sender works fine. NDI monitor app. shows video from sender correctly.
How can this be fixed?
TIA

I'm not sure but please make these sure

installed latest NDI SDK
ofxNDI latest master branch without any change

Yes these things are ok. I tried the example router and this shows the source name from your sender example.
Maybe there is something broken with  finder_.getSources() ?

to make things clear, please check following.

add a break point at line 32 of ofxNDIFinder.cpp (a line of unsigned int num_sources=0;) and see you reach there or not.
if not, comment out continue; above the breakpoint, and see value of num_sources after NDIlib_find_get_current_sources.
if num_sources remains 0 for a long time, do NDIlib_find_wait_for_sources with longer wait time. about 10000 or 50000? not sure

I have tried what you suggested, but num_sources is always zero.


Separate loading logic for JVM and JS

Adds the option to define the configuration files to be loaded during compilation in sbt
via the compiler setting -Xmacro-settings:shocon.files=..., e.g.
scalacOptions += "-Xmacro-settings:shocon.files=file1.conf;file2.conf"

will load and concat the configuration files file1.conf and file2.conf when ConfigFactory.load() is called.
Rationale:
Compile-time loading of application.conf via getClass.loadResourceFromStream does not work reliable (after a clean in sbt the resource is not found during compile, unless the file where ConfigFactory.load() is called has been changed since the last compilation).

Hi @jokade thanks a lot for this contribution!
I really appreciate that you elaborate over my initial implementation (indeed I was relying on an sbt trick https://github.com/unicredit/shocon/blob/master/build.sbt#L33 to get the work done).
I was wondering if we can anyhow try to get even closer to the JVM semantics:
https://github.com/typesafehub/config/blob/master/HOCON.md#conventional-configuration-files-for-jvm-apps
I mean especially trying to use "real" ClassLoader.getResources() but at macro time to automatically fetch reference.conf files.
Said that this PR is good to be merged since it fallback to original behavior.
Is it possible to add some tests?

@andreaTP I'm currently preparing a new pull request that finds all reference.conf files for a JS project using an sbt plugin. Tests will then be included.

@jokade thanks a lot, will it be based on this PR or not?

Update: this PR now proposes separation of the login for JVM and JS.
On JVM: load reference.conf and application.conf files at runtime (as Typesafe config does); this is handled in the JVM implementation of ConfigLoader.
On JS: assemble all reference.conf files found in project resources and JARs at compile time, as well as any application.conf file found in procet resources. Assembling is handled by an sbt plugin, and static inclusion into code by the JS implementation of ConfigLoader.
Notes on building/ testing:

the plugin sub-project is not aggregated with the root project since this doesn't work with cross building the lib for 2.11.x + 2.12.x => the plugin must be published seaprately
the test case for the plugin and JS case uses sbt-scripted; to run it call plugin/scripted in sbt, but only when the project version is set to soething ending with -SNAPSHOT since the plugin is published locally during the test!

@jokade thanks a lot, this looks really great, I will like to have the POV of @evacchi on having a separate semantics for loading config files between SJs and SJvm, overall this is really interesting!
I just go on pointing out some minor fixes but thanks a lot!

the real remaining point here is for @evacchi , should we implement different behaviors for JVM and JS or we should unify?
From my POV we should use the same approach for every platform, but I'm open and not blocked at all by this decision, so it's up to you @evacchi

Provided that I weren't fond of using macros at the beginning and I'm still not, I understand that it makes sense to provide an alternative way to load config files when there is no analog mechanism to classpath loading (i.e., everywhere except the JVM).
I might even go so far as to say that the original JVM behavior is often unpredictable, because it depends on how files are found on the classpath, which may vary depending on the platform, filesystem, etc.
What we can do

support using alternative loading strategies on the JVM as well, defaulting to the most reasonable choice
"canonicalize" the load order so that it is always the same, regardless the platform, e.g., by making load order predictable (sort lexicographically the *.conf resources ?)
eventually spin-off the alternative loading strategies into their own project if they become too byzantine

what do you guys think ?

The only reliable way to have at least a coherent behavior is to actually use typesafe config library itself, but at that point it does not make sense to use shocon either ...
I think the scala.js way provided in this PR is good enough for any platform (and also generic enough)

thanks a lot @jokade !
following @evacchi comments I think last request is to move:
js/src/main/scala/eu/unicredit/shocon/ConfigLoader.scala
into the shared folder and simply drop the jvm implementation.
after this LGTM

@evacchi it seems that unifying the handling for JVM and JS is not so easy, due to the plugin. If I remove the dependency on ScalaJSPlugin from the plugin, the shocon file won't be generated during JS compile (probably due to the fact the ScalaJS redefines compile itself?). So we either need to identify another sbt task where we can hook in the shocon file generation, or we'll have to provide two plugins: one for pure JVM projects, and one for JS and cross projects.

@andreaTP I've done the refactoring you suggested, but I'm not very enthusiastic about this solution since it's easy to forget calling the shoconConcat task (or adding the dependency to the compile task).

@jokade in case it fallbackto the "standard" to include only "application.conf" right?

except a single really small comment here I'm done with PR and to me it is mergeable.
let wait for @evacchi now

thanks a lot, good work @jokade ! :-) appreciated!

@evacchi thanks for the merge - are you going to publish v0.1.9 soon? One of my public libs is depending on the new features :)

:+1:


Fix Time Travel in SDK

…osts via the  argument to GremlinTargetHosts. target_all_hosts does not work, however

@khultman I've updated GremlinTargetHosts to work properly, and now properly takes in a list of tags (labels) for hosts and targets them in the scenario.
'target_all_hosts' / 'target_all_containers' doesn't seem to work, but that's for another branch as it also doesn't work in the UI.

@khultman Ready for merge. Hosts and containers can now be targeted by tags or labels, respectively. Additionally, if no labels or tags are provided all_hosts or all_containers defaults to True.  If labels or tags are supplied, and the all_hosts/containers flag is set to True, then the labels or tags are ignored and all hosts or containers are targeted.


Specify DNS Zone record

Now the keys are generated, you can configure your DNS server by just pasting the content of config/opedkim/keys/domain.tld/mail.txt in your domain.tld.hosts zone.

I guess the exact procedure varies between different DNS providers, but could you please clarify if this is equivalent to adding a DNS Zone record, and if so what would be the subdomain (e.g. *) and type (e.g. A or TXT)?

Hi @arielelkin, the answer is in the Wiki.


what id is gpu_device_id in body tracking?

I request documentation clarification of the integer identifier in Body Tracking k4abt_tracker_configuration_t.gpu_device_id.
What/how is this id discerned? I see it is int32_t. That means the id can be 4 billion possibilities.
How do I know what integer to set here? Trial and error of 4 billion? ;-)
Is it some number seeable in the Windows registry?
Id that can be retrieved from DirectX apis? CUDA? OpenCL? OpenGL?
Scenerio
Imagine I want to present the end-customer with a list of GPUs currently installed on the computer. That list has friendly names like "Intel Graphics 123", "AMD Radeon Super 5", "Nvidia RTX2001". Then the end-customer can select one of these GPUs. And now, my code needs to set k4abt_tracker_configuration_t.gpu_device_id. I likely used APIs to get all the GPU friendly names. How do I get this k4abt_tracker_configuration_t.gpu_device_id integer?
Related #992

Just from my personal experience with using the SDK on Ubuntu:
I used the order of the NVidia GPUs listed by the "nvidia-smi" command.
The first GPU there is 0, the second GPU is 1, etc.

Hi,
Is Azure-Kinect-Sensor-SDK supported on Lattepanda (Windows OS) , Raspberry Pi 4 (Windows ARM OS) and Intel Compute Stick ?
Does Microsoft hololens azure kinect is same as new azure kinect camera?
thank you in advance

We are aware of customers successfully running the Sensor SDK on LattePanda boards. There are currently no plans to support Raspberry Pi 4 w/Windows however are considering expanding Ubuntu support to Raspberry Pi 4. There also are currently no plans to support Intel Compute Stick. You can open feedback at https://feedback.azure.com/forums/920053-azure-kinect-dk asking for support of specific additional platforms.
Whilst the depth module in HoloLens 2 and Azure Kinect are identical they are run differently. There are no equivalent API to the Sensor SDK on HoloLens 2.

@qm13 thankyou for the answer.

Clarity on this is also needed across the new engines in body tracking v1.1.0.
How do we identify all the possible IDs as they map to GPU devices?
How do we use those IDs to specify the specific CUDA, DirectML, TensorRT, etc. device?
For example, my laptop has an integrated Intel GPU, and an Nvidia RTX2070Super.
I need to be able to generate a list with two items, and the KinectSDK ids for those items.
something like vector<tuple<int32_t, string>> k4a::getGPUDevices()
which on my laptop would return a vector with size=2 . Each tuple having the int32_t needed for k4abt_tracker_configuration_t.gpu_device_id and some string or other struct that can describe the GPU device.

Here is the updated documentation. It will be published online with the next release of the SDK.
/** Specify the GPU device ID to run the tracker.
   *
   * The setting is not effective if the processing_mode setting is set to K4ABT_TRACKER_PROCESSING_MODE_CPU.
   *
   * For K4ABT_TRACKER_PROCESSING_MODE_GPU_CUDA and K4ABT_TRACKER_PROCESSING_MODE_GPU_TENSORRT modes,
   * ID of the graphic card can be retrieved using the CUDA API.
   *
   * In case when processing_mode is K4ABT_TRACKER_PROCESSING_MODE_GPU_DIRECTML,
   * the device ID corresponds to the enumeration order of hardware adapters as given by IDXGIFactory::EnumAdapters.
   *
   * A device_id of 0 always corresponds to the default adapter, which is typically the primary display GPU installed on the system.
   *
   * More information can be found in the ONNX Runtime Documentation.
   */

Hi.

What "CUDA API"? There are too many apis for us to sort through and reverse-engineer how Body Tracking using it.
Please provide the exact CUDA API that we should use. Then we can validate if this is correct, or not so you can get better information.
Good example. You gave us the exact API. Now, please do the same for CUDA.
The device_id of 0 may or may not correspond to a "default" adapter. I recommend you remove this whole sentence, or, correct it to consider the following.

The ids are different with the CUDA and DirectML devices. Therefore, device 0 on one is not device 0 on the other. Therefore, device 0 is not the default or the primary display adapter.
The ids are not consistent. The id can be changed by the Windows user making changes in the graphics settings. Even changing the "Graphics Setting" "Graphics Performance Preference" will change the ids

Since the Body Tracker implements these APIs already it would make sense to provide a simple wrapper.
A simple function that returns the names of the available/applicable GPUs for a specified processing mode, which we  can simply reference (or present in a GUI) to select which GPU ID (or the default) is used.
Instead of everyone needing to link to the different APIs and learn how to use them themselves.
Especially since some APIs only support certain GPU types while other APIs support others.
So for example say a system has an NVidia 1xxx GPU, calling the function specifying CUDA will return a single GPU, DirectML returns the NVidia GPU as well as an Intel GPU that's part of the CPU (if that exists), TensorRT returns nothing (assuming that's only for 2xxx/3xxx GPUs).
The SDK can then internally map to the IDs used in the APIs while the user can work with much more predictable GPU names.
Just a thought.

"What 'CUDA API'? There are too many apis", CUDA runtime API. There is great documentation that describes how to obtain any information about the device, not only the name. For example, cudaGetDeviceProperties can be used to retrieve device properties.
"I recommend you remove this whole sentence, or, correct it to consider the following". This sentence was taken from the ONNX Runtime documentation. We will investigate it and create an issue if required.
"Since the Body Tracker implements these APIs". The device ID is required by ONNX Runtime Library. It is not used for body tracking.

"What 'CUDA API'? There are too many apis", CUDA runtime API. There is great documentation that describes how to obtain any information about the device, not only the name. For example, cudaGetDeviceProperties can be used to retrieve device properties.
"I recommend you remove this whole sentence, or, correct it to consider the following". This sentence was taken from the ONNX Runtime documentation. We will investigate it and create an issue if required.
"Since the Body Tracker implements these APIs". The device ID is required by ONNX Runtime Library. It is not used for body tracking.

I look forward to more clarity and forward movement on this issue. @Brekel has some good suggestions about the Microsoft SDK wrapping compute devices. Having a vector<computeInfo> getComputeInfoByType(k4abt_tracker_processing_mode_t computeType) or vector<computeInfo> getComputeInfoAll() are both useful.

The device ID is required by ONNX Runtime Library. It is not used for body tracking.

😵 That is not true from any reasonable perspective. Please see Microsoft documentation and the SDK header files for the struct and gpu_device_id. The gpu_device_id is relevant for all Body Tracking use. It could be default value 0, or some other value. Therefore, the gpu_device_id is needed for Body Tracking.
If the gpu_device_id is not needed for body tracking, please remove it from documentation and deprecate that field in the struct.😂
If onnx runtime is not needed for the Body Tracking SDK, then please remove onnxruntime.dll, onnxruntime_providers_shared.dll, and onnxruntime_providers_tensorrt.dll from /tools and sdk\windows-desktop\amd64\release\bin directories of the SDK. Remember also to remove them from REDIST.txt in your Body Tracking SDK also. 😂
Meanwhile... for the CUDA provider (does this also apply to TensorRT?) are you writing that we should...
cudaGetDeviceCount()
cudaGetDeviceProperties()

If Microsoft choses to not provide an API to determine the values of the id for its sibling API call, then I recommend Microsoft write an example in the Body Tracking SDK examples repo showing how to generate ids and friendly names for the 4 main types (cpu, cuda, tensorrt, directml).

@diablodale, @HlibKazakov2000 was right that 'gpu_device_id' is not directly required by the BT SDK. The BT SDK uses onnx-runtime for its inference, and the onnx-runtime uses CUDA, DirectML, etc. execution providers on lower level. Up to BT SDK v1.1 only the CUDA execution provider was available, and it has a 'device_id' parameter (hence 'gpu_device_id' in the body tracker parameters). See https://www.onnxruntime.ai/docs/reference/execution-providers/CUDA-ExecutionProvider.html
'gpu_device_id' was added after a customer request, to have an option to utilize an extra GPU for the BT inference, in order to free the resources of the primary GPU. If you leave it at 0, the by-default GPU will be used by any of the ONNX execution providers (except the CPU one, of course).

I recommend we agree to disagree on the semantics and word definitions regarding the need, use, or requirement of gpu_device_id. That topic is slightly off track of the OP. The field is in the struct, it is not deprecated, and it must be initialized to its default 0 or set to one of 4 billion other ints.
MIcrosoft, do you have interest in participating ideas like from @Brekel or a new example in your BT example repo?
Everyone, have you difficulties in discerning people that are "official" voices of Microsoft? People like @HlibKazakov2000 have almost zero participation in GitHub and no employer listed. Yet their post above suggest some level of inside knowledge.

We are aware of customers successfully running the Sensor SDK on LattePanda boards. There are currently no plans to support Raspberry Pi 4 w/Windows however are considering expanding Ubuntu support to Raspberry Pi 4. There also are currently no plans to support Intel Compute Stick. You can open feedback at https://feedback.azure.com/forums/920053-azure-kinect-dk asking for support of specific additional platforms.
Whilst the depth module in HoloLens 2 and Azure Kinect are identical they are run differently. There are no equivalent API to the Sensor SDK on HoloLens 2.

You said that there is consideration to extend the SDK's Ubuntu support to the Raspberry Pi 4. So how is it going now? Our project needs to use Raspberry Pi 4+ROS+Azure Kinect. But we don't need body tracking, we just need to read color images and depth images normally. So is it currently possible or can you provide some help.


Update jquery to 3.6.0

This MR updates the included jQuery version to 3.6.0.
Additionally we do now use the minified package to reduce the size of the file.

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1012

Relevant Lines:
1364

💛  - Coveralls


Laravel 10 support

Good afternoon,
I tried to update to Laravel 10 today and got the following error from composer,
 Problem 1
    - Root composer.json requires cviebrock/eloquent-sluggable ^9.0 -> satisfiable by cviebrock/eloquent-sluggable[9.0.0].
    - Only one of these can be installed: illuminate/config[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0, v10.0.0], laravel/framework[v10.0.0]. laravel/framework replaces illuminate/config and thus cannot coexist with it.
    - cviebrock/eloquent-sluggable 9.0.0 requires illuminate/config ^9.0 -> satisfiable by illuminate/config[v9.0.0, ..., v9.52.0].
    - Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[v10.0.0].

Please let me know if there is something I am doing wrong.
Thanks

same problem here,
i try to install > composer require cviebrock/eloquent-sluggable:dev-master
but >
  Problem 1
    - Root composer.json requires cviebrock/eloquent-sluggable dev-master -> satisfiable by cviebrock/eloquent-sluggable[dev-master].
    - cviebrock/eloquent-sluggable dev-master requires illuminate/config ^9.0 -> found illuminate/config[v9.0.0, ..., v9.52.0] but these were not loaded, likely because it conflicts with another require.

getting same error  :-(

PR #591 is already open. Let's hope it gets merged soon. 🤞

Same errors for me :/ Grr lol

miagg

Should we maybe just fork this and make a new public repo? Last update was a long time ago and author sounds hesitant from a prior pull request...

+1

@jamesautodude Or maybe author has a full-time job and doesn't just blindly accept pull requests without testing them himself first.  Give me time, or use some other package.

@jamesautodude Or maybe author has a full-time job and doesn't just blindly accept pull requests without testing them himself first. Give me time, or use some other package.

No reason to get upset, just making a simple statement

I wasn't upset, just stating the benefits of using Open Source software. 😄
You can test the 10.0.0 release I just pushed now.

Thx, i had a bad forkz ideas yesterday ... ;)


Backup restore documentation missing or not linked.

Not too sure if linking the documentation was forgotten or it actually doesn't exist yet.

https://github.com/mbround18/valheim-docker/blob/main/docs/tutorials/how-to-restore.md

Good catch it was double linked https://github.com/mbround18/valheim-docker/pull/858


gapi.auth2.init({}).signIn() error handlers?

Edit
What's the listener / handler for "popup_closed_by_user"?
Original
Update: I had one of those awful silent errors preventing me from seeing the success condition.
How do I know if auth2.signIn() has completed? And if it's successful? Or unsuccessful?
I'm following along with the example at https://developers.google.com/identity/sign-in/web/listeners.
The most relevant code in question looks like this:
          // User clicks "Login with Google"

          function (changedUser) {
            console.log('changedUser', changedUser);

            var googleUser = auth2.currentUser.get();
            var token = googleUser.getAuthResponse().id_token;

            console.log('token', token);
          }

          auth2.isSignedIn.listen(changeUser);
          auth2.currentUser.listen(changeUser);
          auth2.signIn();

The login dialog opens, the login completes, but none of the listeners actually fire any events.
I also can't find any sort of API reference for gapi and auth2, etc. There's a bunch of "quick starts"... but where's the actual documentation?
Nearly-Complete Example
I've got an app which dynamically renders login buttons for various providers (meaning the HTML doesn't exist on page load).
I get an instance of auth2 through an overly convoluted process that looks like this:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="google-signin-client_id" content="XXXXX" />
  </head>
    <script>

      window.googlePromise = new Promise(function (resolve) {
        window.googleResolver = function () {
          console.log('google ready?');
          resolve(gapi);
        };
      });

      window.auth2Promise = new Promise(function (resolve) {
        window.googlePromise.then(function () {

          window.gapi.load('auth2', function () {
            window.auth2 = window.gapi.auth2.init({
              client_id: "XXXXXXX",
              cookiepolicy: 'single_host_origin'
              scope: 'profile email'
            });
            resolve(window.auth2)
          });

        });
      });

    </script>
    <script src="https://apis.google.com/js/platform.js?onload=googleResolver" async defer></script>
</html>

And then elsewhere I use the auth2 object like this:
// prevent clicking sign in button before google is loaded
function onRenderLoginButtons() {
  window.auth2Promise.then(function () {
    $(".google-signin").removeAttr("disabled");
  });
}

// handle the click of the signin button
function onLoginProviderClick(provider) {
      if (provider === 'google') {
          function changeUser(changedUser) {
            console.log('changedUser', changedUser);
            var googleUser = auth2.currentUser.get();
            var token = googleUser.getAuthResponse().id_token;
            console.log('token', token);
          }
          auth2.isSignedIn.listen(changeUser);
          auth2.currentUser.listen(changeUser);
          auth2.signIn();
      }
}

However, none of the listener handlers ever fire.
P.S.
There are conflicting directions on which of the libraries are supposed to be loaded:

<script src="https://apis.google.com/js/platform.js?onload=googleResolver" async defer></script>
<script src="https://apis.google.com/js/api:client.js"></script>
<script src="https://apis.google.com/js/api.js"></script>

I've tried different versions of the JavaScript in hopes that maybe I just had the wrong one, but they all seem to have the same silent behavior.

signIn returns a promise so it will resolve on success and reject on failure as indicated in the documentation for the signIn function: https://developers.google.com/identity/sign-in/web/reference#googleauthsignin

Thanks, that's exactly the type of document I was trying to find. :D


SAK-44061: SAMIGO - Error while saving without From(Required) 'Feedback will be displayed to the student on specific dates'

Please don't merge yet. Tested on my local instance and it doesn't work.

@adrianfish @FerAlvarez95 The new PR is here: https://github.com/sakaiproject/sakai/pull/8500


Hello, can your algorithm be trained with mixed precision

Hello, can your algorithm be trained with mixed precision, Does it support mixed precision training? I tried to modify the parameters, but it doesn't seem to work

@liming-ai I tried that. It didn't work, you know

@liming-ai I tried that. It didn't work, you know

Please tell me your environment, running command and detailed error report.

@liming-ai Hello, thank you for your timely reply, can you add your contact information? Now I have reduced the input size and it is running, and I do not know which environment is used at present, I will contact you after he finishes training? How's it going? Are you in China?


New version: Microsoft.Azure.FunctionsCoreTools version 4.0.6280

Created by 🥟 Dumplings in workflow run #7964.

Log
Updated: 4.0.5907 → 4.0.6280
No ReleaseNotes (en-US) for version 4.0.6280
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

Hi @,
Do you approve of these changes?
(Automated response - build 895.)


[JENKINS-41729] Accept xml property files for localization

https://issues.jenkins-ci.org/browse/JENKINS-41729
It's difficult to review localization pull requests for Jenkins plugins in github, as property files are encoded.
I have to review them in IDE.
This change makes stapler accept XML files. XML files can be written with UTF-8 and no need to be encoded.
The XML file property feature are available since Java1.5: https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html#loadFromXML-java.io.InputStream-

I also wonder whether we could convert to using Utf-8 in plugins / core as well?
like https://github.com/kohsuke/localizer/pull/13 but with an opt in approach, we can script updating core, and update the archetype or plugin Pom to opt in by default?

Closing in favour of https://github.com/jenkinsci/stapler/pull/357


Removing dummy exclusion for some layers

Removing dummy exclusion for some layers

@FaragElsayed2 thanks for the update.


FFMpeg not found

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
I am using the latest version of the library, but I could not figure out the reason for this error. Videos download slower than before.
My options settings are like this
ydl_opts = {
'format': 'bestvideo[ext=mp4][vcodec=h264][height=360]+bestaudio[ext=m4a]/best[ext=mp4][vcodec=h264][height=360]/best',
'outtmpl': self.filename,
'progress_hooks': [self.hook],
'proxy': proxy_url
}
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
youtube  | [youtube] 0VxPtIcmCYw: Downloading webpage
youtube  | [youtube] 0VxPtIcmCYw: Downloading ios player API JSON
youtube  | [youtube] 0VxPtIcmCYw: Downloading player b22ef6e7
youtube  | [youtube] 0VxPtIcmCYw: Downloading m3u8 information
youtube  | WARNING: [youtube] Failed to download m3u8 information: HTTP Error 429: Too Many Requests
youtube  | WARNING: ffmpeg not found. The downloaded format may not be the best available. Installing ffmpeg is strongly recommended: https://github.com/yt-dlp/yt-dlp#dependencies
youtube  | [youtube] Extracting URL: https://www.youtube.com/watch?v=CG713CSmiJw
youtube  | [youtube] 0VxPtIcmCYw: Downloading webpage
youtube  | WARNING: [youtube] Unable to download webpage: <urlopen error [Errno 4] Host unreachable>
youtube  | [youtube] 0VxPtIcmCYw: Downloading ios player API JSON
youtube  | WARNING: [youtube] <urlopen error [Errno 4] Host unreachable>. Retrying (1/3)...
youtube  | [youtube] 0VxPtIcmCYw: Downloading ios player API JSON

Here's a breakdown of the warnings/error output:

youtube  | WARNING: [youtube] Failed to download m3u8 information: HTTP Error 429: Too Many Requests

Your IP has been rate-limited or your IP is blocked from manifest.googlevideo.com

youtube  | WARNING: ffmpeg not found. The downloaded format may not be the best available. Installing ffmpeg is strongly recommended: https://github.com/yt-dlp/yt-dlp#dependencies

You don't have ffmpeg in your PATH

youtube  | WARNING: [youtube] Unable to download webpage: <urlopen error [Errno 4] Host unreachable>

Network issue. Is something blocking www.youtube.com? Can you confirm what you checked below:

[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details

And finally, you didn't do this:

[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below


kubectl get img does not return any kpack images

Calling kubectl api-resources shows that a kpack Image resource should have four aliases:
$ k api-resources | grep kpack | grep -i image
images                            cnbimage,cnbimages,img,imgs   kpack.io/v1alpha2                           true         Image

Three of these aliases work:
$ k get cnbimage
NAME     LATESTIMAGE                                                                                READY
manual   gcr.io/fe-ciberkleid/demo/app@sha256:c3a9f2e8f8eced4f6779aa99419642c164665768872960c9c7737bd1146cd044   True

$ k get cnbimages
NAME     LATESTIMAGE                                                                                READY
manual   gcr.io/fe-ciberkleid/demo/app@sha256:c3a9f2e8f8eced4f6779aa99419642c164665768872960c9c7737bd1146cd044   True

$ k get imgs
NAME     LATESTIMAGE                                                                                READY
manual   gcr.io/fe-ciberkleid/demo/app@sha256:c3a9f2e8f8eced4f6779aa99419642c164665768872960c9c7737bd1146cd044   True

However, one of the aliases (img) does not work:
$ k get img
No resources found in default namespace.

Hi @ciberkleid, Sometimes there is conflict on the img alias (Do you have knative serving installed by chance?).
You should always be able to get kpack images with with kubectl get img.kpack.io.

Yes, I had knative-serving installed as well. Does that mean there's no way
to solve this if both are installed?
On Fri, Mar 4, 2022 at 5:51 PM Matthew McNew @.***>
wrote:

Hi @ciberkleid https://github.com/ciberkleid, Sometimes there is
conflict on the img alias (Do you have knative serving installed by
chance?
https://github.com/knative/serving/blob/6c3394bb4d5a365ba84d147a42dfbbd520872f66/vendor/knative.dev/caching/config/image.yaml
).
You should always be able to get kpack images with with kubectl get
img.kpack.io.
—
Reply to this email directly, view it on GitHub
https://github.com/pivotal/kpack/issues/929#issuecomment-1059587740, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZFAZ4DHKHAHM2IQFZ5GWLU6KHXVANCNFSM5PS2YQWA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

Ultimately, this is a kubectl issue. Could you open an issue on kubernetes to change which resource takes precedence on name conflict?
Related, it looks like there was as issue to warn on the name conflict: https://github.com/kubernetes/kubernetes/issues/94860.


[Question] Can be implemented 403 Forbidden Status Code?

Is possible to implement 403 - Forbidden Status Code?

Implemented in 0.0.5!


Ability to override highlight groups

A colorscheme author here.
Searching through the code base, I can see that there are some highlight groups that are applied during setup, namely ChatGPTQuestion and ChatGPTTotalTokens.
I'd like to support the plugin out of the box in my colorscheme but with the current implementation, ChatGPT overwrites any highlight groups I set.
Is it possible to check if ChatGPTQuestion and ChatGPTTotalTokens highlight groups already exist before setting them? I think vim.api.nvim_get_hl_by_name() would do the trick.

Is it possible to check if ChatGPTQuestion and ChatGPTTotalTokens highlight groups already exist before setting them? I think vim.api.nvim_get_hl_by_name() would do the trick.

The vim way is to set hl as default, i.e. pass default = true to nvim_set_hl. (:help highlight-default)


Systemtests scale tests - messaging performance

Type of change

Test

Description

Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[ ] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

@lulf yes I would prefer that


Hope to add Reactive Relational Database Access

Hope to add Reactive Relational Database Access R2DBC
like spring-data-r2dbc

Let us know if you need any assistance and feel free to join the discussion to create a proper SPI for reactive relational database connectivity.

@mp911de Thanks for you advice! We'll consider to support the R2DBC on MyBatis.

I wish to upvote this feature. Thanks!

I wish they will consider this soon.

@ mp911de感谢您的建议！我们将考虑在MyBatis上支持R2DBC。

that's a greate idea

Is reactive or R2DBC really worth it? I saw people mention about project loom and pride it than R2DBC so should we consider this or that? Here the link that I saw: Reddit R2DBC 0.8 Release Candidate 1 released

Loom and Reactive solve different problems. Loom is about scheduling, Reactive is about message passing and streaming.

Thank you!

MyBatis R2DBC Adapter
https://github.com/linux-china/mybatis-r2dbc

Could there be any progress or plans during 2021?🤔

Could there be any progress or plans during 2021?🤔

Hi All, I have created this client for Spring Framework https://github.com/bhautik008/spring-r2dbc-iclient
I implemented to make similar to Apache MyBatis in usability perspective. However as not experienced developer. I would like you guys to review it and provide suggestion if I require to make. I have example project as well https://github.com/bhautik008/spring-r2dbc-iclient-example demonstrating how to use this client

is mybatis team considering this feature request?

Look at https://github.com/chenggangpro/reactive-mybatis-support provides a nearly complete processing (it is also an example project for https://github.com/chenggangpro/reactive-mybatis-support-examples ), but the current Mybatis community on R2DBC still not drive?

Could there be any progress or plans during 2022?🤔

maybe 2023 :)

is there no any update?

what`s news?

Hibernate and Jooq have supported reactive, what about mybatis?

Could there be any progress or plans during 2023?🤔

any update?

2024, i am confident 🗡

还有计划支持么？

What's the plan?

With the reactive orm framework advancing by leaps and bounds, I am very worried about the future of mybatis.😨

mybatis is dead, long life to mybatis 👍

放弃吧，mybatis 确实跟不上时代发展了


Duplicate setting of "lastRead" and "lastWrite" in HeaderExchangeHandler and HeartBeatHandler.

是否进行心跳信息的发送，是靠下面两个属性来判断的。
Long lastRead = (Long) channel.getAttribute(HeaderExchangeHandler.KEY_READ_TIMESTAMP);
Long lastWrite = (Long) channel.getAttribute(HeaderExchangeHandler.KEY_WRITE_TIMESTAMP);
KEY_READ_TIMESTAMP与KEY_WRITE_TIMESTAMP的设置在HeartBeatHandler和HeaderExchangeHandler中都做了一遍。
在HeartBeatHandler中：（代码较多，就不贴了）

连接完成时：设置lastRead和lastWrite
连接断开时：清空lastRead和lastWrite
发送消息时：设置lastWrite
接收消息时：设置lastRead

在HeaderExchangeHandler中：（代码较多，就不贴了）

连接完成时：设置lastRead和lastWrite
连接断开时：也设置而非清空lastRead和lastWrite
发送消息时：设置lastWrite
接收消息时：设置lastRead

而我们构建的nettyHandler的调用链是这样的：
MultiMessageHandler->HeartbeatHandler->AllChannelHandler->DecodeHandler-> HeaderExchangeHandler->ExchangeHandlerAdapter（DubboProtocol.requestHandler）
也就是说每次请求和响应都会走这个链路，那么HeartbeatHandler设置了KEY_READ_TIMESTAMP与KEY_WRITE_TIMESTAMP后，HeaderExchangeHandler为什么还要设置一遍？而且在HeaderExchangeHandler中断开连接的时候为什么是设置而非清空lastRead和lastWrite？

Hi zhaojigang ,
Please consider using English, Dubbo is a global community, and all the issues may be viewed and discussed by people all over the world.
Besides, we have received some suggestions of improving the heartbeat/reconnection mechanism: see #1371 for example. Can you send an email to<EMAIL_ADDRESS>for further discuss.
For my understanding, when there's a real rpc invocation, the "lastRead" or "lastWrite" should be updated, there's why HeaderExchangeHander exists. Further more can be discussed on apache @dev mailing list.
Thanks

hi，chickenlj，我个人感觉<EMAIL_ADDRESS>不够实时（昨天提了问题没什么反应），但是github issue这一块儿太好用了，通常都会有比较快的解答，而且这里已经有了这么多的积累，大家可以去这里查询那么多的之前已经提出过的讨论。我觉得可以再考虑一下，我认为绝大多数的朋友们还是喜欢github issue的。My English is poor, but i will try later, thanks!

@zhaojigang Welcome!
In my opinion, Github issue should be used to track bugs, while discussion like this should happen on other channels, e.g. the mailing list (preferred), gitter, or stack overflow.
Please take a look at the spring-boot project[1] to see how it works. Questions are not reported via github issues, and are asked in the stackoverflow channel.
In fact, questions liked this is considered to be denied immediately in the near future.
Finally, we do not judge a question by whether it is good English or bad, the community will try the best to help!
[1] https://github.com/spring-projects/spring-boot#getting-help

thanks


Example

Example for https://github.com/hey-api/openapi-ts/issues/662; i'm sure you'll want to do something cleaner but this "works"

wasn't sure how to ensure the version bump; i've added a changeset as per the docs, is that it?

@mrlubos are you ok with these changes now, and can we merge and release this?
Would like to pick up the migration tomorrow to get up to date!

No huge rush on this now, i've published my fork internally so can just consume that until this is merged :)


config-browse updates

[ ] change identifier to objectid

[ ] remove chronological_subject and archival_collection

@owikle If I remember correctly, I think the archival_collection was in there so it could be searched/filtered for (but was set as hidden). Not sure if that justifies adding it back in, but FYI.


ability to configure Z-wave devices via home-assistant

When using the Aeon Multi-Sensor via a Z-Stick 2 USB device, only the motion-detector (reported as the "Sensor" state) state updates regularly -- the other values seem not to be updating at all (HA indicates that the last values were reported more than an hour ago).  It would be nice if HA could be used to modify the config settings of the Aeon sensor -- it appears that by default, three of its states (Temperature, Luminance, and Humidity) expect to be polled.

If the values are not being updated, you have to configure your Aeon Multi-sensor to:

associate the controller with group 1
have it report the humidity, temperature and light to group 1

By 'group 1' do you mean the first group listed in the "group" section of the config file (regardless of the group's name)?  My config currently contains the following group section:
group:
  multisensor:
    - sensor.aeon_labs_multi_sensor_luminance
    - sensor.aeon_labs_multi_sensor_relative_humidity
    - sensor.aeon_labs_multi_sensor_temperature

Still it is not updating the state values -- how do I "have it report" these values to the group?

I meant the Z-Wave group and reporting configuration. Not the Home Assistant one.
You can use any other Z-Wave tool to setup the configuration and it will work properly with HA. Look with a Z-Wave config tool for value with index 101, "Group 1 Reports". That is what the sensor is reporting to group 1. Then also make sure you associate the controller with group 1 of the sensor.
The value with index 101 can be set from Python if you have a script that has access to the nodes (or temporarily modify the sensor/zwave.py file):
REPORT_BATTERY = 1
REPORT_TEMPERATURE = 1 << 5
REPORT_HUMIDITY = 1 << 6
REPORT_LUMINOSITY = 1 << 7
REPORT_BITMASK = REPORT_BATTERY | REPORT_TEMPERATURE | REPORT_HUMIDITY | REPORT_LUMINOSITY

# To set the value once you have the node and the value of index 101, you would do:
node.values[VALUE_REPORT_INDEX].data = REPORT_BITMASK

You can uncomment line 25-27 in sensor/zwave.py to have the USB stick be automatically added to group 1 of each sensor.
It is currently not possible to set it up from within HA (hence this issue).

Closing this issue as configuring devices is out of scope for HA.


bugs-tab doesn't take into account bug labels with uppercase letters

Please ensure:

[X] The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.

Description
The Bugs tab doesn't appear on repositories that have uppercase characters in the bug label, like Type: Bug [1] or Bug [2].
[1] https://github.com/MithrilJS/mithril.js/issues?q=is%3Aissue+is%3Aopen+label%3A"Type%3A+Bug"+sort%3Aupdated-desc
[2] https://github.com/ohmyzsh/ohmyzsh/labels/Bug
NOTE: on testing this bug with the developer extension, I had to make sure to clear the cache before trying new code.
Screenshot
For URL [1] above:

For URL [2] above:

Console errors
No response
Example URL
https://github.com/MithrilJS/mithril.js/issues?q=is%3Aissue+is%3Aopen+label%3A"Type%3A+Bug"+sort%3Aupdated-desc
Browser(s) used
Chrome 94

The screenshot in https://github.com/sindresorhus/refined-github/pull/4592 showed a working feature, but it was taken before the rewrite in https://github.com/sindresorhus/refined-github/pull/4592#event-5046928154
cc @yakov116

The screenshot in #4592 showed a working feature, but it was taken before the rewrite in #4592 (comment)
cc @yakov116

Correct.
However once it was in my cache I did not notice the mistake.
Should be a simple regex fix


[AST] Formalize getBodySourceRange() for fast completion

Fast code-completion replaces the body (BraceStmt) of function decls with other bodies parsed from different source buffers. That means the source range of the body and the location of the function declaration itself might be in different buffers. Previously, FuncDecl::getSourceRange() used to use the location of func keyword for getStartLoc() and getBodySourceRange().End for getEndLoc(). This breaks an invariant for SourceRange where the start and end loc must be in the same buffer.
This patch adds a new function getOriginalBodySourceRange() which always return the source range of the original body of the function. And use that from getSourceRange() functions. The original body source range is stored in a side table in ASTContext.
This formalize the semantics of AbstractFunctionDecl::getBodySouceRange() that it always returns the source range of the current body.
No observable functional changes are expected.

@swift-ci Please smoke test

@swift-ci Please smoke test

Windows failures are unrelated.


[gitlab] fix qa/nightly publishing of images

What does this PR do?

Fixes bad image references in the publication of images.
Motivation

Bad image reference to dev build. Did not apply sed to nightly/qa file.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Trigger QA publish + nightly run.

Is the intent to publish ot images as beta for the time being and to drop the suffix once it's ready enough?

/merge


BarChartLegend not exported in @backstage/plugin-cost-insights 0.8.3

BarChartLegend is exported in @backstage/plugin-cost-insights 0.8.2, but it is not in 0.8.3. As a breaking change this shouldn't happen and breaks our internal project when updating dependencies that use ^. I think there are some other non exported things like BarChartLegendOptions.
plugin-cost-insights ➜ cat package.json | jq .version
"0.8.2"
plugin-cost-insights ➜ grep -ril BarChartLegendOptions .
./dist/esm/index-ea2b68c2.esm.js.map
./dist/index.d.ts

plugin-cost-insights ➜ cat package.json | jq .version
"0.8.3"
plugin-cost-insights ➜ grep -ril BarChartLegendOptions .
./dist/esm/index-5681cdc4.esm.js.map

Expected Behavior
0.8.3 should export at least the same components 0.8.2 did.

Current Behavior

Possible Solution

Not sure, but would be nice to have a spec that guarantees the API to the exported. But checking the code briefly I feel this is a build bug? In this case, needs more thinking.
Steps to Reproduce

Install (yarn add<EMAIL_ADDRESS>Create a file with import { BarChartLegend } from "@backstage/plugin-cost-insights";
See there are no TS errors.
Install (yarn add<EMAIL_ADDRESS>See there are TS errors.

Context

Your Environment

NodeJS Version (v12): 14.15.5
Operating System and Version (e.g. Ubuntu 14.04): macOS Catalina (10.15.7)
Browser Information: not relevant

I believe this was fixed earlier today. https://github.com/backstage/backstage/pull/5080/files

Hey @joaomilho, some exports got missed during a refactor. The above PR resolves it. Sorry for the inconvenience.

Cool. Here's a quick suggestion that is not bullet proof, but I believe it is a good 20/80 https://github.com/backstage/backstage/pull/5102
A assume this patch will generate 0.8.4. Any plans to use npm deprecate on 0.8.3?

I assume this patch will generate 0.8.4. Any plans to use npm deprecate on 0.8.3?

Yes, we will deprecate this patch once the new version is released. Probably sometime today

Cool. Here's a quick suggestion that is not bullet proof, but I believe is a good 20/80 #5102

Thanks for this PR. I think some form of sanity check is warranted, we can discuss more there.

This should be fixed with the release yesterday. Are we good to close this?


Pac mode

It would be great to have the Pac routing setup just like shadowsocks app.

@zzj0402  Thanks for the suggestion (sorry for the slow reply here) - it's already been requested, and is quite popular:
https://github.com/Jigsaw-Code/outline-client/issues/8


chore: fix Ubuntu 22.04 WebKit on 20.04 host

As per https://github.com/microsoft/playwright/pull/28068.

When will this image be published to the MCR?


Enhance docstring+fix backward compatiblity manipulation

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.62%. Comparing base (075d820) to head (73f4253).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4585      +/-   ##
==========================================
- Coverage   81.52%   76.62%   -4.90%
==========================================
  Files         110      110
  Lines       53753    53755       +2
==========================================
- Hits        43822    41192    -2630
- Misses       9931    12563    +2632