fixed the cfg_path

I think this will fix https://github.com/tkuester/taky/issues/79

Thanks for the pull request! I'll review it as soon as possible -- I'm a
touch overwhelmed with life at the moment, but taky is overdue for some
love!
On Thu, Apr 6, 2023 at 7:49 AM hunterSG7 @.***> wrote:

I think this will fix #79 https://github.com/tkuester/taky/issues/79
You can view, comment on, or merge this pull request online at:
https://github.com/tkuester/taky/pull/84
Commit Summary

897de8f
https://github.com/tkuester/taky/pull/84/commits/897de8f238a748346d5b837201336125f841cb43
fixed the cfg_path

File Changes
(1 file https://github.com/tkuester/taky/pull/84/files)

M taky/config.py
https://github.com/tkuester/taky/pull/84/files#diff-51f15f467bfab188a4eecd459d755d83fd87e68cbcbfd84b08386bc2eb5a6244
(6)

Patch Links:

https://github.com/tkuester/taky/pull/84.patch
https://github.com/tkuester/taky/pull/84.diff

—
Reply to this email directly, view it on GitHub
https://github.com/tkuester/taky/pull/84, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQVTMZPZWSBZ2SSYM7POKTW72UTHANCNFSM6AAAAAAWVJSGCU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hey! Thanks for the pull request @hunterSG7 -- I've had to cherry pick some of the commits here, because I didn't want to add log rotation to taky just yet. So I'm marking this pull request as "closed", and GitHub won't indicate that it's merged... but your commit is now part of the git log!
Thanks for the help!


Link to new Style Guide doesn't go anywhere

The anchor link on tachyons.io to #style doesn't go anywhere because there doesn't seem to be an accompanying style id.
...much scrolling must ensue.

Weird. Worked before. Must have blown it away by accident. Should be fixed now.


Add missing search parameters to SDK and CLI

We recently added search, sort, order parameters to various alert endpoints (/alerts, /alerts/summaries, /alerts/following, etc). We need to support them in the SDK and CLI.

Fixed in https://github.com/tenchi-security/zanshin-sdk-python/pull/65


convert to over-ride-able storyboards ?

At our company ( Viacom ), we distribute our internal components with CocoaPods.  For our brand tech teams to be able to customize the views, we have a "generic" storyboard with the view templates, and then the implementor of the library can override the storyboards by copying it to their local bundle and then customizing it.  Can you guys consider moving to a system like this where the library views are customizable in the same way that Apple suggests we do our views in our apps ( storyboards / auto layout / size classes ).

We are now using a single storyboard file for all UI in the Apptentive SDK, which the exception of alert views/alert controllers (which can't be set up in storyboards) and the survey UI (which will be updated in a forthcoming release).


[DOCFIX] improve fsadmin doc (#7488)

cherry pick https://github.com/Alluxio/alluxio/pull/7488

@aaudiber cherry pick the doc fix, PTAL, thanks!

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/20352/
Test PASSed.


fix(designer): Pasted HTML code in HtmlEditor shows raw text

Fixes https://github.com/Azure/LogicAppsUX/issues/4246
Email now displays text and not underlying html:

Previously the email would send like so:

I just tested the fix and I also don't think this is actually working in all cases

Closing due to inactivity. Feel free to reopen when issues are addressed and ready to review


Natasha/search

lets merge this in quick for walker

I realize its a shit show of commits encompassing joes mine and marks =O.

lol 90% of this is deletions but yea, go ahead and merge for walker presentation :)

Lol removed the FB SDK b/c they came out with a Swift one :)


$draw 5 consider that an Ace is the weakest card

https://github.com/Kwoth/NadekoBot/blob/master/NadekoBot/Modules/Gambling/Helpers/Cards.cs line 229 return "High card " + cards.Max().GetName();
But "Ace" is the number one, so everything is better than an Ace

But what rules are we playing? Aces high? Aces low? :stuck_out_tongue:

Didn't know that Ace can be considered as the lowest card :o
But Ace high isn't more common ?

Aces high is probably more common. Cribbage would probably be one of the few "popular" exceptions. :stuck_out_tongue:

So in this case, it's a bug or it's wanted ? ;-;

Pending @Kwoth on that one. :stuck_out_tongue:


[Snyk] Upgrade eslint-plugin-promise from 6.2.0 to 6.6.0

Snyk has created this PR to upgrade eslint-plugin-promise from 6.2.0 to 6.6.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 5 versions ahead of your current version.

The recommended version was released on 21 days ago.

Release notes

Package name: eslint-plugin-promise

6.6.0 - 2024-07-216.6.0 (2024-07-21)
Bug Fixes

always-return: treat process.exit() or process.abort() as an acceptable "return" (#493) (f368c5a)

Features

add strict option to disallow then or catch following await or yield (#494) (fa482cc)

6.5.1 - 2024-07-206.5.1 (2024-07-20)
Bug Fixes

remove name from eslintrc config; fixes #489 (#490) (c011a1a)

6.5.0 - 2024-07-196.5.0 (2024-07-19)
Features

add name property to configs (for use with tooling) (#486) (ca9e9b4)

6.4.0 - 2024-07-016.4.0 (2024-07-01)
Features

add support for flat config (#479) (ecbce9f)

6.3.0 - 2024-07-016.3.0 (2024-07-01)
Features

add support for eslint v9 (#478) (4dfc8a7)

6.2.0 - 2024-05-276.2.0 (2024-05-27)
Bug Fixes

no-callback-in-promise: false positives when the exception is an argument (#446) (5e4546d)

Features

Resolve getAncestors and getScope calls in eslint v9 (#466) (c0c716b)

    from eslint-plugin-promise GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

coverage: 98.802%. first build
when pulling 78ef9cde78f826590466bd498f2f59876a482ffd on snyk-upgrade-c98f05d96d2928e70ba5060c93662344
into 7e2d7d6e89384fb2c8709de2263598d8882f4711 on main.


Migration on MySQL: initial migration with VARCHAR type fails, despite having a max lenght

Suppose the following initial migration:
[Migration]
Hash = '2856395125008994900'
Initial = true
Replaces = []

[[Migration.Operations]]
Type = 'CreateModel'
Name = 'user'

[[Migration.Operations.Fields]]
Name = 'id'
Type = 'int64'

[[Migration.Operations.Fields.Annotations]]
Type = 'auto_increment'

[[Migration.Operations.Fields.Annotations]]
Type = 'primary_key'

[[Migration.Operations.Fields]]
Name = 'username'
Type = 'varchar'

[[Migration.Operations.Fields.Annotations]]
Type = 'max_length'
Value = 255

[[Migration.Operations.Fields.Annotations]]
Type = 'not_null'

[[Migration.Operations.Fields]]
Name = 'age'
Type = 'int16'

[[Migration.Operations.Fields.Annotations]]
Type = 'not_null'

Then, applying it fails for a newly created, fresh database for rorm-cli migrate --database-config mysql.toml --log-sql:
CREATE TABLE IF NOT EXISTS _rorm__last_migration (id BIGINT(255) , updated_at DATETIME , migration_id INT(255) );
SELECT migration_id FROM _rorm__last_migration ORDER BY id DESC LIMIT 1;
Error: sql build error: VARCHAR must have a max_length annotation

The database only contains an empty _rorm_last_migration table afterwards:
MariaDB [db]> SHOW TABLES;
+-----------------------+
| Tables_in_db          |
+-----------------------+
| _rorm__last_migration |
+-----------------------+
1 row in set (0.000 sec)

MariaDB [db]> DESC _rorm__last_migration;
+--------------+-------------+------+-----+---------+-------+
| Field        | Type        | Null | Key | Default | Extra |
+--------------+-------------+------+-----+---------+-------+
| id           | bigint(255) | YES  |     | NULL    |       |
| updated_at   | datetime    | YES  |     | NULL    |       |
| migration_id | int(255)    | YES  |     | NULL    |       |
+--------------+-------------+------+-----+---------+-------+
3 rows in set (0.010 sec)

MariaDB [db]> SELECT * FROM _rorm__last_migration;
Empty set (0.000 sec)

Good catch^^

This issue isn't fixed as of 8f9adbdc79a3fc2ca3bf8c61f6e4ae9d343edcf0. I can reproduce it with the same migration as above.

This error is still present for the migration posted above and also for newly created migrations.

Can not reproduce

Has been fixed.


sqlalchemy.orm.exc.MultipleResultsFound: Multiple rows were found for one()

I've been trying to use glacier-cli with git-annex for a while and currently getting this on sync:
move SHA3_512-s78968--58aa331db254fd53cc422b6b8ba22b492cccec00b888497eb0bab8763d371b6232a854e1419190ab61685f5be82fa
be9b614cafd30f79f09044a3daea1291cfa (checking glacier...) Traceback (most recent call last):
  File "/home/annex/bin/glacier", line 737, in <module>
    main()
  File "/home/annex/bin/glacier", line 733, in main
    App().main()
  File "/home/annex/bin/glacier", line 719, in main
    self.args.func()
  File "/home/annex/bin/glacier", line 600, in archive_checkpresent
    self.args.vault, self.args.name)
  File "/home/annex/bin/glacier", line 161, in get_archive_last_seen
    result = self._get_archive_query_by_ref(vault, ref).one()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2404, in one
    "Multiple rows were found for one()")
sqlalchemy.orm.exc.MultipleResultsFound: Multiple rows were found for one()
(user error (glacier ["--region=us-east-1","archive","checkpresent","glacier-c22e72f3-62a4-4c74-afe1-ad946906e3e1","--quiet","SHA3_512-s78968--58aa331db254fd53cc422b6b8ba22b492cccec00b888497eb0bab8763d371b6232a854e1419190ab61685f5be82fabe9b614cafd30f79f09044a3daea1291cfa"] exited 1)) failed

Please see http://git-annex.branchable.com/bugs/Glacier_remote_uploads_duplicates/ which I think is the likely cause for your problem. If so I suggest you move this discussion to the comments section there. Or if after reading you think your root cause is different, feel free to reopen this issue here.

Well, it turns out that is my issue, but my setup is different.  I have glacier locked to disallow deleting, so I cannot ever remove the duplicates.  I guess perhaps I can modify glacier-cli to return success for these duplicate entries.


C code is not getting optimized in nightly

Code
I am using the cc crate and a build.rs script to compile C code in my fisher project and observing increased run times in nightly. The running time is similar to opt-level=0 or slightly longer even.
$ rustup override set nightly-2024-07-30
$ cargo test --release --package fisher --lib -- proc5x5_large --exact --show-output --include-ignored
...
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 31 filtered out; finished in 37.43s
$ rustup override set nightly-2024-07-29
$ cargo test --release --package fisher --lib -- proc5x5_large --exact --show-output --include-ignored
...
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 31 filtered out; finished in 21.19s

Version it worked on
rustc 1.82.0-nightly (2cbbe8b8b 2024-07-28)
binary: rustc
commit-hash: 2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b
commit-date: 2024-07-28
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 18.1.7`

Version with regression

rustc 1.82.0-nightly (612a33f20 2024-07-29)
binary: rustc
commit-hash: 612a33f20b9b2c27380edbc4b26a01433ed114bc
commit-date: 2024-07-29
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 18.1.7

It is interesting though that it regresses between versions of rustc, that's quite odd!

Could you find the compiler command that cc invokes? I think it may be shown with -v or -vv, otherwise you'll have to dig it out of target/debug/build/cc-*/output

Yes. It is possible I have misunderstood exactly what @SakiiCode is reporting, however, so please let me know if I should move this back. It is possible there is a commit in this range https://github.com/rust-lang/rust/compare/2cbbe8b8bb2be672b14cf741a2f0ec24a49f3f0b...612a33f20b9b2c27380edbc4b26a01433ed114bc that does in fact clearly explain why rustc is the problem here. https://rust-lang.github.io/cargo-bisect-rustc/ can be used to find it.

Found the build commands, it is identical in both cases
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-Wall" "-Wextra" "-ffast-math" "-o" "/home/*******/target/release/build/fisher-35f8c4bda9aedc53/out/2e40c9e35e9506f4-asa643.o" "-c" "src/asa643.c"

and the output files 2e40c9e35e9506f4-asa643.o and libfexact.a are also identical.
However, the final output is consistently ~ 2kB larger in the bad version. Tried both the original project (dylib) and just the necessary parts (executable). The rust functions don't have slowdowns.

cargo-bisect-rustc points to this commit: https://github.com/rust-lang/rust/commit/80d8270d8488957f62fbf0df7a19dfe596be92ac

That's... this range of compiler_builtins changes.
Perhaps you could change downgrade compiler_builtings on the latest nightly, and see if it still reproduces? Either by rebuilding std, or by using -Zbuild-std with cargo patches. And if so, try to bisect the compiler_builtins versions, though I know that's a bit troublesome.

I can't manage to get either of that working, unfortunately my skills end here. Can you give more detailed instructions or try in this minimal repo?

Looks like this problem was already fixed around Aug 29
I assumed rustup override set nightly is enough to get the latest but now it makes more sense
Thanks for the help!


Error when using 8MHz internal Oscillator on m88

In the description, you write

ArduinoShrink supports only ATmega8 and ATmegax8 MCUs. Accurate timing for millis() and delay() requires a freqquency that is a power of two such as 1Mz, 8Mhz, or 16Mhz.

But using 8MHz internal Oscillator produces an error because of
#if F_CPU != 16000000
#error Only 16Mhz F_CPU supported
#endif

What is right?

I forgot to remove that from an earlier version.  It's fixed now.

fixed with commit 583dba5b15949265eaab81012176097e9b9f8e31


Add a secrets handling mechanism

General
Lokomotive doesn't currently have an official way for handling secrets. Secrets are specified as either environment variables or in the config file, and it's up to the user to figure out how to store the secrets, retrieve them securely etc.
We should consider adding a "smarter" way for handling secrets. For a start, I suggest we look into integrating with the following secrets engines:

Vault - a widely used OSS solution by HashiCorp.
AWS SSM - a managed AWS service which is quite popular because it's simple and free.

Related issue: https://github.com/kinvolk/lokomotive/issues/466
Implementation
The secrets handling mechanism should ideally be implemented as a generic layer which abstracts the underlying providers. Following is a very general idea of how to implement this.
secrets_provider "vault" {
  url = "https://vault.example.com:8200"
  client_cert_file = "ca.crt"
}

secret "stuff_password" {
  provider = secrets_provider.vault
  path = "secret/prod/stuff"
}

cluster "packet" {
  ...
  component "stuff" {
    password = secret.stuff_password.value
  }
}

Things to note:

secrets_provider is a new HCL resource to be defined. In the example above a provider of type vault is used. Other providers may have different arguments. This is fine and expected.
secret is a new HCL resource to be defined. This should ideally be a generic resource, so we should check if it's possible to specify the "path" for getting a secret in a way which could work for multiple secrets providers.
secret exposes an attribute (similar to Terraform attributes) named value which returns the clear-text value of a secret after it was retrieved from the secrets provider.
Users define secrets in the top-level of the cluster config, then reference them within cluster or component sections as secret.<name>.value (maybe we don't even need value - need to check).

@iaguis @schu - FYI.

Decided to run a timeboxed PoC to figure out if it's useful to have this feature and if it can be implemented in a reasonable manner.
Concerns from the team:

Maintenance burden of supporting various secrets backends.
"Unix philosophy" - maybe we should keep secrets out of Lokomotive and let the users solve the problem on their own and interpolate the values into the cluster config however they see fit.

From my perspective, proposed implementation looks very similar to the variables system we have right now. We take a value from somewhere and we inject it into out blocks configuration. So I'm wondering, if handling secrets should be much different from handling regular variables.
As far as I understand, we don't plan any security oriented features around those secrets (like I don't know, removing them from the memory right after using or something), so maybe rather than adding new HCL type for handling secrets, we could somehow extend the variables handling to be able to pull the values from some other places, like mentioned Vault? For example, make a default provider for variables a lokocfg file, but also support other providers, something like:
variable_provider "vault" {
  url = "https://vault.example.com:8200"
  client_cert_file = "ca.crt"
}

variable "stuff_password" {
  provider = "vault"
  path = "secret/prod/stuff"
}

I support a concern regarding the maintenance of various backends, as there will always be a user asking  "Why backend X is not supported?". With such features, we must be careful to avoid situation, when we need to maintain a lot of code or we end up being bad maintainers, favoring some solution over others. Of course, if users of this feature grows, we can decide to support only most popular backends and I think this is then justified, that we won't support some of them.
Also, to mitigate this issue, 2 solutions comes to my mind:

Support Go-based plugin system, similar to what bootkube is doing right now (https://github.com/kubernetes-sigs/bootkube/pull/1081). We could then provide and maintain set of built-in providers, while others could be dynamically loaded via the plugin file.
Support shell provider, which would allow executing arbitrary commands to get values (perhaps from stdin). This way, we give users a freedom of solution to choose.

Alternative solution
Instead of adding secrets handling mechanism, we could document our recommended way of handling secrets, let's say with blackbox and eventually polish some rough edges with our implementation, which would better support it.
For example, while working with Terraform, one can use blackbox or git-secret to encrypt secrets.auto.tfvars file, which will only contain secrets, while keeping variables.auto.tfvars unencrypted for non-sensitive values. Then, before running Terraform and after modifying secrets, some shell commands needs to be executed to unveil/re-encrypt the secrets.

@invidian yes, secrets are similar to variables. This was my intent exactly when proposing the new secret type.
I don't see the advantage of "extending" the HCL variable directive. Why is it better then adding a new type? One reason not to tamper with variable is that if we do that we practically become maintainers of this part of the HCL library (right?).

I support a concern regarding the maintenance of various backends, as there will always be a user asking "Why backend X is not supported?".

AFAICT this is true for nearly any feature: supported platforms, supported DNS providers, supported ingress controllers etc. It's our job as maintainers to choose what to maintain, and indeed it usually makes sense to start with one or two very popular options. Sure, having an "extensible" mechanism could make sense, but I'd say this may be thinking too far. I want to start simple and see if it makes sense to even have a secrets mechanism in Lokomotive.

Instead of adding secrets handling mechanism, we could document our recommended way of handling secrets, let's say with blackbox and eventually polish some rough edges with our implementation, which would better support it.

If we decide not to solve the secrets handling problem in Lokomotive, I agree we should document our recommendation for handling secrets around the cluster config. However, it doesn't make sense to me to officially recommend Blackbox or any other similar solution because these tools have nothing to do with Lokomotive. To emphasize my point, we could also recommend to the user which shell or terminal emulator to use when managing Lokomotive clusters, however that would likely be weird :confused:
To summarize my view, I'd say we either implement proper secrets handling in lokoctl, or we document guidelines on how to handle secrets (but not advocate for a specific tool).

@invidian yes, secrets are similar to variables. This was my intent exactly when proposing the new secret type.
I don't see the advantage of "extending" the HCL variable directive. Why is it better then adding a new type? One reason not to tamper with variable is that if we do that we practically become maintainers of this part of the HCL library (right?).

We implement variable type already, here: https://github.com/kinvolk/lokomotive/blob/master/pkg/config/config.go#L32. So it would not be extending or maintaining HCL library.
I think the main advantage of transparently extending existing type is preserving the same "output" user interface, so var.grafana_password stays the same, but it has a new, different source.

AFAICT this is true for nearly any feature: supported platforms, supported DNS providers, supported ingress controllers etc. It's our job as maintainers to choose what to maintain, and indeed it usually makes sense to start with one or two very popular options. Sure, having an "extensible" mechanism could make sense, but I'd say this may be thinking too far. I want to start simple and see if it makes sense to even have a secrets mechanism in Lokomotive.

You're right. This seems to be thinking too far right now. But we should definitely make sure that the implementation is easy to extend in the future in such case.

If we decide not to solve the secrets handling problem in Lokomotive, I agree we should document our recommendation for handling secrets around the cluster config. However, it doesn't make sense to me to officially recommend Blackbox or any other similar solution because these tools have nothing to do with Lokomotive. To emphasize my point, we could also recommend to the user which shell or terminal emulator to use when managing Lokomotive clusters, however that would likely be weird confused

To summarize my view, I'd say we either implement proper secrets handling in lokoctl, or we document guidelines on how to handle secrets (but not advocate for a specific tool).

We could still link to/recommend some tools which in our opinion as a maintainers play well with Lokomotive configuration, for example ones which we use ourselves.


Fix banner + refresh changed item list

Issue of banner and non-refreshing page list should be fixed now.
Cause:

Each commit made the code to fetch a new list. When no rows were fetched the "Nothing to publish" message overrides the Success message instantly.
When painting the list of pages, the <tbody> wasn't cleared.

Solution:

Code does no longer show a banner message when there are no changes to publish.
Cleared table body before displaying fresh list.

Todo:

The empty table looks a bit ugly now. Not an ideal UX.
Table header could use a bit of styling.
I see you are not using the optional notes fields which provided the user to add a longer note. This is similar to Github's "Message"  and "Description" fields. If there is no use for the longer description, It might be better to remove it.

Thanks :+1:

Sorry just noticed your PR comments (testing this on a nearly launched site is getting confusing!)

"Nothing to publish" message

I think ideally there will be two messages, one to say the action succeeded and another to reflect the current status. Low priority issue perhaps.

I see you are not using the optional notes fields which provided the user to add a longer note. This is similar to Github's "Message" and "Description" fields. If there is no use for the longer description, It might be better to remove it.

Yes please, unless you can think of somewhere to store it and a reason.

The empty table looks a bit ugly now. Not an ideal UX.

We'll get there.

About the "description" field...
Git's commit message can be made up by two parts: A single line summary and a multiline description. These two parts need to be separated with a blank line.
Not knowing the requirements of the user, I've added the option to enter a commit description anyway. On the server, the two fields can be concatenated into a single commit message.
If it is useless to the client, I'll remove it.

This sounds like it could be useful. I couldn't see that in the manual, do you mean Github?
Even if it's not part of git, I like the idea of forcing a headline and appending any longer details.
My clients have no specific requirements and I want this to be useful to any content editor. As usual, users prefer quick and simple.
I think for now, either leave it in and use it or comment it out while we consider it.

See section Discussion on the same manual page:

Though not required, it’s a good idea to begin the commit message with a single short (less than 50 character) line summarizing the change, followed by a blank line and then a more thorough description. The text up to the first blank line in a commit message is treated as the commit title, and that title is used throughout Git. For example, git-format-patch[1] turns a commit into email, and it uses the title on the Subject line and the rest of the commit in the body.

If you prefer to keep the longer description option for the user, the two fields should be concatenated (with an extra newline) either in JS when submitting the form, or on the server when receiving the form.


Invert spotlight angle attenuation

Inverted the spotlight angle attenuation so a higher value results in a dimmer light, this makes it more consistent with the distance attenuation.
Also changed the way spotlighs are computed in SDFGI and GIPorbes, now it matches the falloff used in the scene rendering
code.
This breaks compatibility with 3.2 spotlights, but I think it's worth the change. If we decide against breaking compat, we still need to change SDFGI and GIProbe to use the correct angle attenuation.

It's ok to change this, but a reminder to change the fitted values for https://github.com/godotengine/godot/pull/39450.

I updated the PR, it should be ready for review and merge.

I updated the PR, it should be ready for review and merge.

Are there any changes needed in scene_forward.glsl and volumetric_fog.glsl? I think they probably need to be updated as well.

Are there any changes needed in scene_forward.glsl and volumetric_fog.glsl? I think they probably need to be updated as well.

@clayjohn Not really, these are inverted simply because the uniform value is set inverted from the CPU side. The changes in the other places are just to make them match the attenuation in scene_forward and volumetric_fog, they were using a different attenuation formula before and the results were wrong.

Needs rebase (if now is a good time to merge this wrt to the work @reduz is doing on rendering).

Rebased, should be good to merge after CI passes.

Thanks!


Error when setting up a new profile

Hi,
thanks for the Unity-plugin!
I´m trying to setup a new profile through my application. As in the readme written, LoadProfile(string) should look for a existing profile and if is not found, a new profile wil get created and loaded. If I try LoadProfile("whatever") I´m getting
An error received: Invalid Parameters. UnityEngine.Debug:Log (object) EmotivUnityPlugin.CortexClient:WebSocketClient_MessageReceived (object,WebSocket4Net.MessageReceivedEventArgs) (at Assets/EmotivPlugin/Src/CortexClient.cs:238)
and
MessageErrorRecieved :code -32602 message Invalid Parameters.method name setupProfile UnityEngine.Debug:Log (object) EmotivUnityPlugin.DataStreamProcess:MessageErrorRecieved (object,EmotivUnityPlugin.ErrorMsgEventArgs) (at Assets/EmotivPlugin/Src/DataStreamProcess.cs:298)
Also there should be a warning, that using the callbackfunctions to make changes on the UI elements, leads to a total stop of the app. For everybody: use the bools in the EmotivUnityItf instance like the example does in CheckButtonsInteractable ;-)
Looking forward to get some help here :-)

Hi @JendrikDerWeise ,
Firstly, thank you for reporting the bug. We found that we haven't updated the unity plugin to adapt API change for creating profile. Now we need to set headsetId as required parameter of setupProfile for load. We will update soon for the unity plugin and example. While waiting our update, you can add some below code

At TrainingHandler.cs line , add more parameter for method CreateProfile
public void CreateProfile(string profileName, string headsetId)      {          string cortexToken  = _authorizer.CortexToken;          _ctxClient.SetupProfile(cortexToken, profileName, "create", headsetId);      }
BCITraining.cs , add more headsetId to place where call CreateProfile() for example:
_trainingHandler.CreateProfile(profileName, _workingHeadsetId);

Thanks

Hi,
thank you for your support! This is doing the trick :-)


Interactive mode fails

Running on CentOS 7, default Python 3.6.8. Understandable if you don't want to support a version that old, but might be useful to state what the min version supported is
[root@localhost tak]$ curl -L https://git.io/JL9DP | sudo python3 -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 23135  100 23135    0     0  80891      0 --:--:-- --:--:-- --:--:-- 80891
Cannot find CA locally so generating one
CA key Stored Here: ./ca.key
CA pem Stored Here: ./ca.pem
Would you like to generate a server certificate? y/n Traceback (most recent call last):
  File "<stdin>", line 484, in <module>
EOFError: EOF when reading a line

did you not get a chance to input your answer before it crashed?

I would try splitting the command out and see if it happens again.
so run:
curl -L -o cert.py https://git.io/JL9DP
then:
sudo python3 ./cert.py

Running curl -L https://git.io/JL9DP | sudo python3 - does wait for an answer before crashing. Splitting works fine.

ok. i will put in a note to split the commends with centos.

updated the readme to reflect this


Ignore a file by comment

Could I ignore a file by adding a comment like the below example?
/* skip-lint */

function defenitelyNotStandardSum(a, b) {
  return a+b;
}

I always appreciate your work. 👍

You can ignore an entire file by adding this to the top of the file:
/* eslint-disable */

Thanks for your answer! 👍 👍


Fix SQL Syntax Error in Customer Importer

Add missing Quotes to SQL Statement which deletes in s_campaigns_mailaddresses by mail adress.
Otherwise this error appears:
Error : SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near<EMAIL_ADDRESS>at line 2 Trace : #0 /var/www/vagrant/htdocs/public/engine/Library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array) #1 /var/www/vagrant/htdocs/public/engine/Library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #2 /var/www/vagrant/htdocs/public/engine/Library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DELETE FROM s_c...', Array) #3 /var/www/vagrant/htdocs/public/engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM s_c...', Array) #4 /var/www/vagrant/htdocs/public/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/CustomerImporter.php(771): Enlight_Components_Db_Adapter_Pdo_Mysql->query('DELETE FROM s_c...') #5 /var/www/vagrant/htdocs/public/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/CustomerImporter.php(295): Shopware\SwagMigration\Components\DbServices\Import\CustomerImporter->newsletterSubscribe(Array) #6 /var/www/vagrant/htdocs/public/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/Import.php(229): Shopware\SwagMigration\Components\DbServices\Import\CustomerImporter->import(Array) #7 /var/www/vagrant/htdocs/public/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/Migration/Import/Resource/Customer.php(165): Shopware\SwagMigration\Components\DbServices\Import\Import->customer(Array) #8 /var/www/vagrant/htdocs/public/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/Migration/Import/Resource/Customer.php(77): Shopware\SwagMigration\Components\Migration\Import\Resource\Customer->migrateCustomer(Array, Object(Shopware\SwagMigration\Components\DbServices\Import\Import), '') #9 /var/www/vagrant/htdocs/public/engine/Shopware/Plugins/Community/Backend/SwagMigration/Controllers/Backend/SwagMigration.php(465): Shopware\SwagMigration\Components\Migration\Import\Resource\Customer->run() #10 /var/www/vagrant/htdocs/public/engine/Shopware/Plugins/Community/Backend/SwagMigration/Controllers/Backend/SwagMigration.php(502): Shopware_Controllers_Backend_SwagMigration->runImport('import_customer...') #11 /var/www/vagrant/htdocs/public/engine/Library/Enlight/Controller/Action.php(159): Shopware_Controllers_Backend_SwagMigration->importAction() #12 /var/www/vagrant/htdocs/public/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('importAction') #13 /var/www/vagrant/htdocs/public/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp)) #14 /var/www/vagrant/htdocs/public/engine/Shopware/Kernel.php(175): Enlight_Controller_Front->dispatch() #15 /var/www/vagrant/htdocs/public/vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /var/www/vagrant/htdocs/public/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #17 /var/www/vagrant/htdocs/public/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true) #18 /var/www/vagrant/htdocs/public/engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true) #19 /var/www/vagrant/htdocs/public/shopware.php(101): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request)) #20 {main}

Your referenced commit fixes the same error at a different place.
Actually there are two appearings an my PR fixes the second :)

oh, you are right :grin: my fault!
merged your PR, thanks! :+1:


How to get an nth element from list

Given I have a Target element:
static Element = Target.the('Element').located(by.css('li'))
And more than one element is found, then how can I get element number 0, 1, 2, etc from this list?
I'm looking of something like:
Element.get(2);
as in protractor.
I cannot figure out this one.

@emosGambler have you tried just solving that using a xpath expression (which btw works in a protractor or a none-protractor context) ?
Ex. Target.the('"Blabla" input').located(by.xpath('//li[@data-qa = "myelement"][2]'));
or just Target.the('"Blabla" input').located(by.xpath('//li[2]'));
(you can also use css selector, I'm just used to xpath)
If you're unsure of your selector, google can interpret those. So in you dev tools (F12) you look at the DOM (Elements tab) and hit Ctrl-F. In this filed you can search for litteral strings, but you can also enter selectors. Google will interpret them. So searching for //li (and hitting several time Enter) will highlight them one-by-one, when hitting //li[2] will only highlight one even though you hit enter several time.
Last but not least : i actually do not advise you to do that. Today your test search for the "blabla" string which is li n°2. Tomorrow a dev may add a line, and it will be li[3]. Your test will break, or worse, will raise a false positive (the false green is the worse). As much as possible you should prevent relative positions (div/li), ordinated position (li[3]) and text based selectors (text() = "plop"). If you lack an id or an attribute (plop) ask your dev for one ! Else you may have trouble as your product evolve.
Help it help (i hope it reply to your question) & good coding :)
San.

Hi @san-ouadghiri,
Searching by li was just an example. In our project, there are most likely ids assigned to the elements. Using xpath is a solution for small lists, but what if I have list of 100 elements and I want to do with them something. I am not happy to declare a list of 100 different elements using your way: //li[1], //li[2], ...//li[100] etc. I wanted to have a solution which will, for example, allow me to iterate through list of elements in code itself. Something like ListOfTargets.each(target => { // do something });
Thanks for answer.

Oh. I did not get your objective the first time.
So if for example yoy want to click on button 1, 2, ..., 100 (so repeat the same action on several elements) you can try what is described in ticket 250. Not to rewrite a selector, i would advise to write a generic target, and to put each element id in the array. You would end up with a table of 100 ids, a selector calling array[n], and the repeater action calling the selector each time with the right id. It should do the trick.

Hmmm. That should do the trick, but this is quite complicated in my opinion. I will try it soon and I will post back just so we have a solution here.
Thanks!

Ok, sorry for not responding for so long.
To be honest, this code looks complicated as for something this easy as taking nth element from array of elements. @jan-molak, can you comment on this matter?

@jan-molak, any help? =(

@emosGambler - what you're after will be addressed in Serenity/JS 2.0 - here's an early preview of what this will look like. Thoughts and feedback welcome!

Nice @jan-molak - phew I'm glad James has now been fired and replaced by Peter, who has now moved onto more extravagant drinks such as coconut milk! 🤣

James was overworked, he's been doing todo lists for 2.5 years now, we needed a new Actor ;-)

Hi @emosGambler - Serenity/JS 2.0 is live now so you can use the Pick question to pick an n-th element, as well as an element with matching text, and more.
There's a nice example here, and plenty of examples in unit tests.
Please check it out and let me know what you think!

If Serenity/JS makes your life easier you can buy me a coffee on Github :octocat:


Fix bug: cache dependencies [skip ci]

fix https://github.com/NVIDIA/spark-rapids/issues/11748#issuecomment-2502343310
Replace date with timestamp of latest snapshot of jni & private in cache key name. If failed to get timestamp, use date instead.
Test build: https://github.com/YanxuanLiu/spark-rapids/actions/runs/12061667486/job/33634063951?pr=6

build

build


sc-9889 TRISA Guide Page Improvements

Scope of changes
sc-9889 TRISA Guide Page Improvements
Type of change

[x] bug fix
[ ] new feature
[ ] documentation
[ ] other (describe)

Acceptance criteria
https://app.shortcut.com/rotational/story/9889/trisa-guide-page-improvements

Author checklist

[x] I have manually tested the change and/or added automation in the form of unit tests or integration tests
[ ]  I have updated the dependencies list
[ ]  I have recompiled and included new protocol buffers to reflect changes I made
[ ]  I have added new test fixtures as needed to support added tests
[x]   Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
[x]  I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

[ ] Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

Codecov Report
Base: 43.94% // Head: 39.35% // Decreases project coverage by -4.58% :warning:

Coverage data is based on head (bf415ee) compared to base (0d7b7f9).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #833      +/-   ##
==========================================
- Coverage   43.94%   39.35%   -4.59%
==========================================
  Files         612      156     -456
  Lines       22792     2452   -20340
  Branches     1385      624     -761
==========================================
- Hits        10016      965    -9051
+ Misses      11471     1311   -10160
+ Partials     1305      176    -1129

Flag
Coverage Δ

unittests
39.35% <ø> (-4.59%)
:arrow_down:

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

Impacted Files
Coverage Δ

...user-ui/src/components/Section/MembershipGuide.tsx

web/gds-user-ui/src/layouts/LandingLayout.tsx

web/gds-user-ui/src/utils/country.ts

web/gds-user-ui/src/hooks/useAxios.ts

...rc/components/CertificateReview/ContactsReview.tsx

web/gds-user-ui/src/hooks/useQueryParams.ts

...ithub.com/trisacrypto/directory/pkg/store/store.go

...r-ui/src/components/BasicDetailsForm/validation.ts

...-ui/src/components/Addresses/Addresses.stories.tsx

...src/modules/dashboard/certificate/service/index.ts

... and 446 more

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Kitematic crashes in OSX

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

I have not used anything so N/A

No information provided or steps to replicate - Closing 😞

I'm attempting to see if I can replicate the issue and provide more information. I'll file new. Thanks!


DNS UPDATE provider

It would be nice to support DNS UPDATE.

Interesting, that's a very old spec and this is the first I've heard of it. Do you know where it's used and supported already?

It's supported by most authoritative DNS servers (BIND, Knot, etc). So if one self-hosts DNS (that's my use-case), there's a good chance it'll be the API to use.

Partial implementation available at https://github.com/emersion/libdns-dnsupdate

Ha, no way -- I was just about to say, "I don't have time to implement this right now, but it sounds useful! Want to take a stab at it?" :slightly_smiling_face:

I have completed the implementation, but I can't seem to open a PR. Do I need to manually copy-paste the files of my repo to a fresh libdns fork?

You don't have to actually make a PR, I just think it makes it easier to review.
In this case the implementation is very simple and LGTM after a quick pass. Thanks for contributing this!
I'll make a repo and give you access, pronto.

Thanks!


Add MAINTAINERS.md file

Please duplicate the file in https://raw.githubusercontent.com/open-horizon-services/web-helloworld-cpp/ac403917069c896f685a317f4ca6b503694f5187/MAINTAINERS.md in this repo.

@joewxboy, could you assign this issue to me?

@Adam-Ayan You have it!


Additional files in spellcheck.toml

Is your feature request related to a particular use-case?
I would like to add checking CHANGELOG.md for spelling errors in the CI too.
Describe the solution you'd like to implement/see implemented
Add a new configuration key to spellcheck.toml to include additional files.
Describe alternatives you've considered
Currently the alternative is to pass a path to cargo spellcheck CHANGELOG.md directly. This is undesirable, because contributors who are developing locally now have to remember this. Adding it to spellcheck.toml makes it automatic.

Technically you're correct, using a parser for the changelog that is aware of the overall structure will help with NlpRules false-positive reduction.

Personally for me that's overkill, considering that I didn't even encounter false-positives and have been using it on README.mds quiet successfully so far too with hunspell.
If I do find time, I will look into contributing myself here!

Adding a default quirk for various date formats might indeed be sufficient.


fix: type error prevention while importing

In file: __init__.py, the list named (__all__) contains unquoted names which can result in errors/exceptions(TypeError) when this module is imported. The names should be inside quote but they are not. This PR suggests that fix.
Sponsorship and Support
This work is done by the security researchers from OpenRefactory and is supported by the Open Source Security Foundation (OpenSSF): Project Alpha-Omega. Alpha-Omega is a project partnering with open source software project maintainers to systematically find new, as-yet-undiscovered vulnerabilities in open source code - and get them fixed – to improve global software supply chain security.
The bug is found by running the Intelligent Code Repair (iCR) tool by OpenRefactory and then manually triaging the results.

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


ORV2-2038 CV Client User management - Delete user

Description
Please provide a summary of the change and the issue fixed. Please include relevant context. List dependency changes.
Fixes # (issue)

Adds a Pending label to the user list for pending users

User Delete functionality

Type of change
Please delete options that are not relevant.

[X] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist

[ ] I have read the CONTRIBUTING doc
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have already been accepted and merged

Further comments

Thanks for the PR!
Deployments, as required, will be available below:

Frontend
Vehicles
Dops
TPS-Migration

Please create PRs in draft mode.  Mark as ready to enable:

Analysis Workflow

After merge, new images are promoted to:

Merge Workflow

Thanks for the PR!
Deployments, as required, will be available below:

Frontend
Vehicles
Dops
TPS-Migration

Please create PRs in draft mode.  Mark as ready to enable:

Analysis Workflow

After merge, new images are promoted to:

Merge Workflow

Slight side question, after adding a user (to setup for delete testing), why does the page look like this?

Slight side question, after adding a user for staff acting on behalf of company (to setup for delete testing), why does the page look like this? CV Client add user doesn't have this issue though.

yeah, this is a known issue. I'll track this on a different ticket.


[vx.dev] implements #132

[vx.dev] This PR implements #132, created by vx.dev.

[vx.dev]: Creating a fully functional "Breakout" style brick-breaking game is beyond the scope of a static JSX file, as it requires dynamic interactions and game logic that cannot be implemented with static components alone. However, I can provide you with a static prototype layout that resembles the interface of a brick-breaking game using the available components.
This code provides a static layout for a brick-breaking game with a canvas element where the game would be rendered, buttons for controlling the game, and a progress bar that could represent the player's progress or score. The actual game logic, event handling, and dynamic updates would need to be implemented in a full application environment with JavaScript or another suitable programming language.


Fuse pattern in red black tree

Hi, looking at your code as a base for my own tree, as your nice pen drawings are all over google.
Just to let you know, I'm running into proptest failures in fuse. But my code is not in Haskell, I wouldn't know how to check yours.
In the red-red and black-black cases, the intermediate fuse may be empty, but there's no pattern for that case (RedBlackTree.hs lines 103 and 108) -- the catch pattern in your code describes a black node.
Red-red failure case:
*insert 5, 3, 1, 2, 4

remove 3

Black-black failure case:

insert 1, 2, 3, 4, 5
remove 4

Thanks

Hey @tijsvd
Thanks for reporting! I plan to formally verify parts of this library soon, including the red-black tree deletion. Hopefully, that will catch any existing bugs.


It has erro when i end the giveaway

discord-giveaway-bot-master\node_modules\discord-giveaways\src\Giveaway.js:302
const member = guild.member(user.id) || await guild.members.fetch(user.id).catch(() => {});
^
TypeError: Cannot read properties of undefined (reading 'id')

This is a problem with the discord-giveaways package itself, I'll look into it.


[Loc] add converttosdkstyleconfirmation message

This PR fixes #

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
27570

Relevant Lines:
60840

💛  - Coveralls


Code is not uploaded

Thanks for the contribution, I am missing the py files in grafog. Also pip install seems to be not working.
Are you planning on adding more content?

Hello, it's still a WIP! Will have it out in the next two weeks

Very cool, looking forward!

Thanks for the contribution, may i ask will it be uploaded in the next few days?

Yup! Will be released this coming week 😃
@chasingtim


spring cloud bus cant sent message to chennal

spring cloud version：Finchley.SR1

BusEvent busEvent = new BusEvent(event, serviceId, "*:**");
// publish
applicationContext.publishEvent(busEvent);
in class BusAutoConfiguration 。the code this.serviceMatcher.isFromSelf(event) always return false ，why？

hi，i don't know what the following code wahts to do？
DefaultBusPathMatcher
@Override
public boolean match(String pattern, String path) {
log.debug("In match: " + pattern + ", " + path);
if (!delagateMatcher.match(pattern, path)) {
return matchMultiProfile(pattern, path);
}
return true;
}

Please learn how to format code on GitHub.
Can you please write a description of what you are trying to do and what the problem is?  Pasting in random code snippets is not very useful.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

i found why

you should use spring boot own id to send your meessage

Hello,
I've had the same problem, before this works with the code below?
    public static void publishNotificationTest() {
        var context = StaticApplicationAcessor.getApplicationContext();
        StaticApplicationAcessor.getApplicationContext().publishEvent(new NotificationRemoteEvent(Notification.builder().build(), context.getId()));
    }

Where the class constructor:
public NotificationRemoteEvent(Notification source, String originService) {
But now the context.getId() -> applicationContext doesn't work, I needed get the BusProperties.getId,
Why it does not this work anymore with applicationContext.getId() for serviceId?
Many thanks.


Editing Existing GRID is not working with Drupal Ck Editor.

Hi,
After creating a GRID, If i want to edit the existing row and column, this feature does not work. Is there any fix for this?

Hello,
I am also facing this same issue. Have you got any solution ?


Azure Service Bus Queues - Messages aren't processed

Expected Behavior
When a new message is added to the queue it is getting picked and processed.
Actual Behavior
Messages are added to the queue but are not getting processed.
The message stays on the queue until the service is restarted.
Steps to Reproduce the Problem
Not sure how to reproduce this problem.
It looks like the time might be a factor.
Logs
The sidecar logs show only logs related to topics.
However when these logs show the message isn't picked.
time="2021-05-12T11:17:26.880197929Z" level=error msg="azure service bus error: closing subscription entity for topic mytopic: link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link 'Vzm4yJeTDttf8FfVjnIb34nhexzvMBUwUUJrwLQ3Br82A82oU4RdBQ' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://my-sb.servicebus.windows.net/mytopic/subscriptions/myapp'.. TrackingId:091bc1dfac4341e6bcd27d2a6812f4a2_G17, SystemTracker:gateway5, Timestamp:2021-05-12T11:17:26, Info: map[]}" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:17:26.88027673Z" level=error msg="azure service bus error: error receiving message on topic mytopic, link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link 'Vzm4yJeTDttf8FfVjnIb34nhexzvMBUwUUJrwLQ3Br82A82oU4RdBQ' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://my-sb.servicebus.windows.net/mytopic/subscriptions/myapp'.. TrackingId:091bc1dfac4341e6bcd27d2a6812f4a2_G17, SystemTracker:gateway5, Timestamp:2021-05-12T11:17:26, Info: map[]}" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:17:26.88030943Z" level=warning msg="Subscription to topic mytopic lost connection, attempting to reconnect... [0/30]" app_id=<my_app> instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:27:28.804022788Z" level=error msg="azure service bus error: closing subscription entity for topic mytopic: link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link '_hNBVPdnTd2T6msByXjNO60_cSghh_HrQE-kggy7Pme1oW_4ecIV0g' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://my-sb.servicebus.windows.net/mytopic/subscriptions/myapp'.. TrackingId:091bc1dfac4341e6bcd27d2a6812f4a2_G17, SystemTracker:gateway5, Timestamp:2021-05-12T11:27:28, Info: map[]}" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:27:28.804099089Z" level=error msg="azure service bus error: error receiving message on topic mytopic, link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link '_hNBVPdnTd2T6msByXjNO60_cSghh_HrQE-kggy7Pme1oW_4ecIV0g' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://my-sb.servicebus.windows.net/mytopic/subscriptions/myapp'.. TrackingId:091bc1dfac4341e6bcd27d2a6812f4a2_G17, SystemTracker:gateway5, Timestamp:2021-05-12T11:27:28, Info: map[]}" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:27:28.80433519Z" level=warning msg="Subscription to topic mytopic lost connection, attempting to reconnect... [0/30]" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:27:28.85934655Z" level=error msg="azure service bus error: closing subscription entity for topic mytopic: link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link 'abGS1YE5Wo7cSCl6Zw5tLw45zLg_N7dsCQ_zFbg3K5V8ppSuSoueEw' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://my-sb.servicebus.windows.net/mytopic/subscriptions/myapp'.. TrackingId:afedcf6dc6e64d0a8aa3754560210c05_G3, SystemTracker:gateway5, Timestamp:2021-05-12T11:27:28, Info: map[]}" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:27:28.85941445Z" level=error msg="azure service bus error: error receiving message on topic mytopic, link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link 'abGS1YE5Wo7cSCl6Zw5tLw45zLg_N7dsCQ_zFbg3K5V8ppSuSoueEw' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'sb://my-sb.servicebus.windows.net/mytopic/subscriptions/myapp'.. TrackingId:afedcf6dc6e64d0a8aa3754560210c05_G3, SystemTracker:gateway5, Timestamp:2021-05-12T11:27:28, Info: map[]}" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2 time="2021-05-12T11:27:28.859632652Z" level=warning msg="Subscription to topic mytopic lost connection, attempting to reconnect... [0/30]" app_id=myapp instance=myapp-bf7cfd676-4z4mf scope=dapr.contrib type=log ver=1.1.2
Release Note
Fix Azure Service Bus Queues Messages not picked

Hi, thanks for the issue. Could you help me understand the problem a little more please? The logs indicate that the connection string you are using does not have the require permissions. Is this not the root cause?

Hey @fabistb which Dapr version are you using?

Hi, thanks for the issue. Could you help me understand the problem a little more please? You mention 'queues'. Are you using the Azure Service Bus PubSub component or the Azure Service Bus Queue Binding? The PubSub component currently only works with topics. The logs look like the PubSub errors and indicate that the connection string you are using does not have the required permissions (the Listen claim) on the topic. This might indicate you are supplying a connection string for a queue rather than a topic. Is this the case?

Hi, I'm referring to the Azure Service Bus Queue Binding.
Unfortunately I wasn't able to find any Queue Binding related logs in the dapr sidecar. However these topic related logs are currently the best indication I found to check if messages will be picked or not. After restarting the service everything works as expected.
I checked the ServiceBus connection string. Based on the Azure Portal the connection string should have the required permissions.
As a side note. Currently the same connection string for the PubSub component and Azure Queue Binding is used.

Hey @fabistb which Dapr version are you using?

Hi, the cluster uses dapr version 1.1.2.

Hey @jjcollinge , @yaron2 ,
unfortunately this problem also occurs using version 1.2.0.
It also looks like that this problem is service specific even though all components are using the same connection string on service bus level.
Service A successfully processes the queue messages while Service B shows these topic errors and doesn't process the messages.
Any suggestion how I can debug this in detail to provide better logs?
Currently I mainly check the daprd logs for the affected service.
kubectl logs <podName> -n <namespace> daprd

Hi @yaron2 , @artursouza ,
it would be great if we could keep this issue open.
Thanks!

@fabistb We had made improvements to Azure Service Bus in PubSub related to this. Is there a reason why you need binding and cannot use PubSub?

@artursouza I wan't to ensure that only one consumer processes the messages.
Also one downside of Azure Service Bus Topics is that when dead lettered messages moved back to the active they are processed by all subscribers again independent if a subscriber was previously able process the message.
We often have the case that we must ensure that a message is only processed once. In cases of multiple subscribers we push the message to a topic using PubSub and then forward it to multiple queues where our services pick the message from.

We are experiencing the same on dapr 1.2 using just pubsub. Multiple clusters at the same time. Only thing we can do is restart rollout.
2021-09-15T05:52:09.809Z  time="2021-09-15T05:52:09.809304727Z" level=error msg="azure service bus error: error receiving message on topic REDACTED, link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link 'SfpRLmiAbJgr9e1tqh8pHkZ7xDDkRJaTc4bplkN9nlk2DPnoV_iHbQ' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'REDACTED'.. TrackingId:62d462fb5fd548e29418a58cdebbb11d_G24, SystemTracker:gateway7, Timestamp:2021-09-15T05:52:09, Info: map[]}" app_id= REDACTED instance= REDACTED scope=dapr.contrib type=log ver=1.2.2 2021-09-15T05:52:09.809Z  time="2021-09-15T05:52:09.809333928Z" level=warning msg="Subscription to topic REDACTED lost connection, attempting to reconnect... [0/30]" app_id= REDACTED instance= REDACTED scope=dapr.contrib type=log ver=1.2.2 2021-09-15T06:57:03.912Z  time="2021-09-15T06:57:03.911865689Z" level=warning msg="azure service bus error: closing subscription entity for topic REDACTED: link detached, reason: *Error{Condition: amqp:link:detach-forced, Description: The link 'QLcCY6xfo57kXvlhZB0XJv4nz7jPLoNyJKy2PP6KO7N4gGlLdM9aEg' is force detached. Code: RenewToken. Details: Unauthorized access. 'Listen' claim(s) are required to perform this operation. Resource: 'REDACTED'.. TrackingId:120749e74bd6464a8f7efb733b0758c6_G2, SystemTracker:gateway7, Timestamp:2021-09-15T06:57:03, Info: map[]}" app_id= REDACTED instance=REDACTED scope=dapr.contrib type=log ver=1.2.2

@bgelens thanks for reporting this - is it possible you could raise a separate issue specific to pubsub please and link it back here? Could you please provide as much detail as you can about when you see this error occur in that issue too so I can try to repro?


added logistic regression

Added class for logistic regression model, sigmoid activation function and logistics error funtion.

Reviewed and merged


options.environment should default to process.env.NODE_ENV as well?

I think that it's too redundant to have both a SENTRY_ENVIRONMENT environment variable and a NODE_ENV as well.  Can we simply change the following line:
+this.environment = options.environment || process.env.SENTRY_ENVIRONMENT || process.env.NODE_ENV || '';
-this.environment = options.environment || process.env.SENTRY_ENVIRONMENT || '';

This is in lib/client.js.

I'm +1 on this. I'd even go further to say we can soft-deprecate SENTRY_ENVIRONMENT.

See https://github.com/getsentry/raven-node/issues/359#issuecomment-320502627


[Posts] US 01.01.01:As an author I want to make public posts.

An author can make posts with

a title
description
public or private.

Frontend done!


Firebase Auth: Crash when updating profile

Steps to Reproduce

Log user with email / pwd mode (user already created on firebase auth)

From the app, try to update photoUrl:

UserUpdateInfo userInfo = new UserUpdateInfo();
userInfo.photoUrl=photoUrl;
userInfo.displayName='fred';
_auth.updateProfile(userInfo)

## Logs
No log -> app crash
Run your application with `flutter run` and attach all the log output.

Run `flutter analyze` and attach any output of that command also.

## Flutter Doctor

✓] Flutter (Channel beta, v0.2.3, on Mac OS X 10.12.6 16G29, locale fr-FR)
    • Flutter version 0.2.3 at /Users/fvisticot/Tools/flutter
    • Framework revision 5a58b36e36 (3 weeks ago), 2018-03-13 13:20:13 -0700
    • Engine revision e61bb9ac3a
    • Dart version 2.0.0-dev.35.flutter-290c576264

[!] Android toolchain - develop for Android devices (Android SDK 26.0.2)
    • Android SDK at /Users/fvisticot/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 26.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] VS Code (version 1.20.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.10.0

[✓] Connected devices (3 available)
    • Android SDK built for x86 • emulator-5554                            • android-x86 • Android 5.0.2 (API 21) (emulator)
    • iPhone fred               • e1a670a9b4554a51269d6bc159b72ae78b9953f9 • ios         • iOS 11.2.6
    • iPhone 7                  • F9B6637E-3B71-4146-BC7F-92CC05FDA7F7     • ios         • iOS 11.2 (simulator)

! Doctor found issues in 1 category.

i ran into the same error .. any ideas to fix it ?

I get the following error on XCode console:
[__NSCFString absoluteString]: unrecognized selector sent to instance 0x1c035ef00
2018-04-20 07:49:41.392496+0200 Runner[5774:2137151] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString absoluteString]: unrecognized selector sent to instance 0x1c035ef00'

Hi guys, I have the same error just iOS, is there any update on this?
*** First throw call stack:
(
0   CoreFoundation                      0x00000001133491e6 __exceptionPreprocess + 294
1   libobjc.A.dylib                     0x00000001129de031 objc_exception_throw + 48
2   CoreFoundation                      0x00000001133ca784 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3   CoreFoundation                      0x00000001132cb898 ___forwarding___ + 1432
4   CoreFoundation                      0x00000001132cb278 _CF_forwarding_prep_0 + 120
5   Runner                              0x000000010e7ebe5f -[FIRSetAccountInfoRequest unencodedHTTPRequestBodyWithError:] + 447
6   Runner                              0x000000010e7ce5f7 -[FIRAuthBackendRPCImplementation postWithRequest:response:callback:] + 183
7   Runner                              0x000000010e7cbfd6 -[FIRAuthBackendRPCImplement<…>
Lost connection to device.
Exited (sigterm)

more details:
firebase_auth: ^0.5.10

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.13.4 17E199, locale en-PE)
[!] Android toolchain - develop for Android devices (Android SDK 26.0.2)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3.1)
[✓] Android Studio (version 3.1)
[✓] Connected devices (1 available)

! Doctor found issues in 1 category.

Hi Guys, @collinjackson @mit-mit @MarcinusX
I'm having the same problem, I can open a new problem with more details if necessary.

Hey guys,
I have the same issue with iOS, however, the updateProfile works fine on Android.

Any updates on this? for iOS?


Remove SeRQL references from documentation and comments

There are still a number of references to SeRQL in the documentation, swagger files, comments in code and more. These should be removed if possible.
Nice command to find them all:
grep -ri  "serql" * | grep -v "/.cache" | grep -i --color "serql"

core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/sparql/SPARQLQueryRenderer.java:                                           // paste from the serql stuff
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/sparql/SPARQLQueryRenderer.java:                   // from initially being a serql renderer. i'll leave it for now, but i
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/RenderUtils.java: * Utility methods for rendering (parts of) SeRQL and SPARQL query strings.
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/RenderUtils.java:   * @deprecated Use {{@link #toSeRQL(Value)} instead.
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/RenderUtils.java:  public static String getSerqlQueryString(Value theValue) {
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/RenderUtils.java:          return toSeRQL(theValue);
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/RenderUtils.java:  public static String toSeRQL(Value theValue) {
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/BaseTupleExprRenderer.java:         * @return the query object rendered in the serql syntax
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/BaseTupleExprRenderer.java:         * @return the TupleExpr rendered in the serql syntax
core/queryrender/src/main/java/org/eclipse/rdf4j/queryrender/package-info.java: * modifying, and executing SPARQL & SeRQL queries. This functionality was contributed to RDF4J by Michael Grove of
core/sail/lucene-spin/rdf4j-lucene-spin.iml:    <orderEntry type="module" module-name="rdf4j-queryparser-serql" scope="RUNTIME" />
core/sail/lucene-spin/rdf4j-lucene-spin.iml:    <orderEntry type="module" module-name="rdf4j-queryparser-serql" scope="RUNTIME" />
core/sail/lucene/src/test/java/org/eclipse/rdf4j/sail/lucene/AbstractGenericLuceneTest.java:            // TODO: disable logging for org.eclipse.rdf4j.query.parser.serql.SeRQLParser,
core/sail/lucene-api/src/main/java/org/eclipse/rdf4j/sail/lucene/LuceneSail.java: * example query looks like this (SERQL):
core/sail/inferencer/src/main/java/org/eclipse/rdf4j/sail/inferencer/fc/config/CustomGraphQueryInferencerConfig.java:   public static final Pattern SPARQL_PATTERN, SERQL_PATTERN;
core/sail/inferencer/src/main/java/org/eclipse/rdf4j/sail/inferencer/fc/config/CustomGraphQueryInferencerConfig.java:           SERQL_PATTERN = Pattern.compile("^\\s*construct(\\s+.*)from\\s+.*(\\s+using\\s+namespace.*)$", flags);
core/sail/inferencer/src/main/java/org/eclipse/rdf4j/sail/inferencer/fc/CustomGraphQueryInferencer.java: * A forward-chaining inferencer that infers new statements using a SPARQL or SeRQL graph query.
core/http/protocol/src/main/java/org/eclipse/rdf4j/http/protocol/Protocol.java:         /** SPARQL or SeRQL query */
core/query/src/main/java/org/eclipse/rdf4j/query/Operation.java: * languages (for example SeRQL or SPARQL). It allows one to predefine bindings in the operation to be able to reuse the
core/query/src/main/java/org/eclipse/rdf4j/query/QueryResultHandler.java:        * are in the Solutions. For example, a SeRQL query like <tt>select X, Y from {X} P {Y} </tt> will have binding
core/query/src/main/java/org/eclipse/rdf4j/query/Query.java: * A query on a repository that can be formulated in one of the supported query languages (for example SeRQL or SPARQL).
site/content/documentation/tools/server-workbench.md:Clicking on “Query” on the sidebar menu brings you to Workbench’s querying interface. Here, you may enter queries in the SPARQL or SeRQL query languages, save them for future access, and execute them against your repository.
site/content/documentation/tools/server-workbench.md:If you have executed queries previously, the query text area will show the most recently executed query. If not, it will be pre-populated with a prefix header (SPARQL) or footer (SeRQL) containing all the defined namespaces for the repository. The “Clear” button below the text area gives you the option to restore this pre-populated state for the currently selected query language.
site/content/documentation/tools/server-workbench.md:- Query Language: either SPARQL or SeRQL
site/content/documentation/reference/rest-api.md:- `queryLn` (optional): Specifies the query language that is used for the query. Acceptable values are strings denoting the query languages supported by the server, i.e. “serql” for SeRQL queries and “sparql” for SPARQL queries. If not specified, the server assumes the query is a SPARQL query.
site/content/documentation/reference/rest-api.md:#### Evaluate a SeRQL-select query on repository “mem-ref”
site/content/documentation/reference/rest-api.md:    GET /rdf4j-server/repositories/mem-rdf?query=select%20%3Cfoo:bar%3E&queryLn=serql HTTP/1.1
site/content/documentation/reference/rest-api.md:The `QUERY` operation executes a SPARQL or SeRQL query on the repository as part of the current transaction, and returns the result as an RDF document.
site/content/documentation/reference/rest-api.md:- `queryLn` (optional): Specifies the query language that is used for the query. Acceptable values are strings denoting the query languages supported by the server, i.e. `serql` for SeRQL queries and `sparql` for SPARQL queries. If not specified, the server assumes the query is a SPARQL query.
site/content/release-notes/4.0.0.md:### SeRQL support removed
site/content/release-notes/4.0.0.md:The parser for the SeRQL query language, as well as all related code and tool options, has been removed from RDF4J. If you still have SeRQL queries in your project, you will need to rewrite them into SPARQL syntax before upgrading ([GH-2992](https://github.com/eclipse/rdf4j/issues/2992)).
testsuites/lucene/src/main/java/org/eclipse/rdf4j/sail/lucene/AbstractLuceneSailTest.java:              // TODO: disable logging for org.eclipse.rdf4j.query.parser.serql.SeRQLParser,
tools/server/src/main/webapp/swagger.yaml:          description: Specifies the query language that is used for the query. Acceptable values are strings denoting the query languages supported by the server, i.e. 'serql' for SeRQL queries and 'sparql' for SPARQL queries. If not specified, the server assumes the query is a SPARQL query
tools/server/src/main/webapp/swagger.yaml:          description: Specifies the query language that is used for the query. Acceptable values are strings denoting the query languages supported by the server, i.e. 'serql' for SeRQL queries and 'sparql' for SPARQL queries. If not specified, the server assumes the query is a SPARQL query.
tools/workbench/src/main/webapp/transformations/query.xsl:

tools/workbench/src/main/java/org/eclipse/rdf4j/workbench/util/PagedQuery.java: private static final Pattern SERQL_NAMESPACE = Pattern.compile("\\busing namespace\\b", FLAGS);
tools/workbench/src/main/java/org/eclipse/rdf4j/workbench/util/PagedQuery.java:  * @param language      SPARQL or SeRQL, as specified by the user
tools/workbench/src/main/java/org/eclipse/rdf4j/workbench/util/PagedQuery.java:                  * SeRQL, add the clause before before the namespace section
tools/workbench/src/main/java/org/eclipse/rdf4j/workbench/util/PagedQuery.java:                 rval = insertAtMatchOnOwnLine(SERQL_NAMESPACE, rval, newOffsetClause);
tools/workbench/src/main/java/org/eclipse/rdf4j/workbench/util/PagedQuery.java:          * In SPARQL, LIMIT and/or OFFSET can occur at the end, in either order. In SeRQL, LIMIT and/or OFFSET must be
tools/workbench/src/main/java/org/eclipse/rdf4j/workbench/util/PagedQuery.java:                 rval = insertAtMatchOnOwnLine(SERQL_NAMESPACE, rval, "limit " + limitSubstitute);
tools/console/src/main/java/org/eclipse/rdf4j/console/command/TupleAndGraphQueryEvaluator.java:  * Evaluate SPARQL or SERQL tuple query and send the output to a writer. If writer is null, the console will be used
tools/console/src/main/java/org/eclipse/rdf4j/console/command/TupleAndGraphQueryEvaluator.java:  * Evaluate SPARQL or SERQL graph query
tools/console/src/main/java/org/eclipse/rdf4j/console/command/TupleAndGraphQueryEvaluator.java:  * Evaluate a boolean SPARQL or SERQL query
tools/console/src/main/java/org/eclipse/rdf4j/console/command/TupleAndGraphQueryEvaluator.java:  * Execute a SPARQL or SERQL update
tools/console/src/main/java/org/eclipse/rdf4j/console/command/QueryEvaluator.java:       * Parse and evaluate a SERQL or SPARQL query. Check if query is multi-line or to be read from input file, and check
tools/console/src/main/java/org/eclipse/rdf4j/console/command/QueryEvaluator.java:       * Evaluate a SPARQL or SERQL query that has already been parsed
tools/console/src/main/java/org/eclipse/rdf4j/console/command/QueryEvaluator.java:       * Add namespace prefixes to SPARQL or SERQL query

The references from the workbench codebase should likely not yet be removed - although SeRQL itself is no longer supported the framework does still support optional extension of RDF with a custom query language. The workbench has support for switching query language in the editor and gets the available languages directly from the server.
Possibly same for the console CLI, but I'll doublecheck that.


fix: line breaks when typing in the input

fixes #18

Hey @Badra00 Kudos to your valuable contribution.
We would like you to contribute on the issue #21 which is related to this issue which you have fixed. Please do message there on the issue #21 to get assigned on the issue.

@Badra00 For the following PR #19 there's a fix needed.
When the inputs are added for the first time, the line breaks are working perfectly. But when they are added through the edit option, the line breaks are not working.
The screenshots are not working, please fix this  :
When the Input is added directly through entry box :

When the entry is added through the edit feature :

Its showing in a single line :

If the  tag  is added then it is coming in the next line :

So fix this issue such that the user need not add  tag to go to the next line.
@Badra00 make sure to fix this issue.


[Bug]: System prompts not propogating in a query pipeline.

Bug Description
Hey team, it seems like the system prompt doesn't propogates when creating an LLM and passing it to QueryPipeline.
A small reproducible example:
from llama_index.llms.openai import OpenAI
from llama_index.core.callbacks.global_handlers import set_global_handler
set_global_handler("langfuse")

from llama_index.core.query_pipeline import QueryPipeline
from llama_index.core.prompts import PromptTemplate
prompt_str = "Please generate related movies to {movie_name}"
prompt_tmpl = PromptTemplate(prompt_str)
llm = OpenAI(model="gpt-3.5-turbo", system_prompt="You always respond with the message 'I won't answer this question man! I am sorry'")

p = QueryPipeline(chain=[prompt_tmpl, llm], verbose=True)

resp = p.run("Inception")
print(f"resp = {resp}")

Here, I set some system prompt but as you can see in the trace, it was not reflected back.
Now, when I try to put it in user prompt, it works, but that isn't something I wanted. Can someone please take a look once?
Version
0.10.34
Steps to Reproduce
Code is given in the body.
Not able to attach images below, so attaching here:

Relevant Logs/Tracbacks
No response

The system prompt is only used if you do llm.predict (which is only used in query engines, or if you explicitly used that method)
If you want a system prompt, you should make a prompt template that includes one
from llama_index.core.llms import ChatMessage, MessageRole
from llama_index.core import ChatPromptTemplate

# Text QA Prompt
chat_text_qa_msgs = [
    ChatMessage(
        role=MessageRole.SYSTEM,
        content=(
            "Always answer the question, even if the context isn't helpful."
        ),
    ),
    ChatMessage(role=MessageRole.USER, content="Please generate moves related to {movie_name}"),
]
text_qa_template = ChatPromptTemplate(chat_text_qa_msgs)

but the llm interface exposes system_prompt parameter. And, it makes sense that a llm query component being used in a query pipeline is "specialized" (has a system prompt), don't you think?

That param was basically only introduced to make modifying the system prompt on query engines easier, but tbh I lean towards thinking it should be deprecated/removed 😅
It makes more design sense to keep the llm object as "stateless" as possible and a avoiding side effects. And here you are already writing the prompt template anyways.

Alright.. thank you so much for taking out time to explain!! Marking this closed then.


SqlDatabaseRecoveryModel: Added localization

Pull Request (PR) description

Changes to SqlDatabaseRecoveryModel

Added en-US localization (issue #609).

This Pull Request (PR) fixes the following issues

Fixes #609

Task list

[x] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[x] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[x] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[x] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #1340 into dev will increase coverage by <1%.
The diff coverage is 100%.

@@          Coverage Diff          @@
##            dev   #1340    +/-   ##
=====================================
+ Coverage    98%     98%   +<1%
=====================================
  Files        36      36
  Lines      4986    4991     +5
=====================================
+ Hits       4917    4922     +5
  Misses       69      69


x/vuln: skip one line of code

What version of Go are you using (go version)?

$ go version
go version go1.19.3 linux/amd64

How Can I skip one line of code, In my project I use go:embed file but on CI/CD stage this file is doesn’t exist in my project and Vuln reports me about an error middleware/checkJWT.go:28:12: pattern public.pem: no matching files found. Many linters have a function to read comments
like //linter:skip  to skip next line.
Is it possible to add the same functionality to Vuln?

isn't it a build error to not have a listed file for //go:embed ?

@seankhliao Yes. Sorry my bad


error related DEG analysis

Hi,
I try to use deg_analysis option of CellphoneDB in my cluster server.
However, there is unexpected error that I can't solve. Can you fix this?
Here is the error report from the shell.
[ ][CORE][14/11/22-13:52:58][INFO] Initializing SqlAlchemy CellPhoneDB Core
[ ][CORE][14/11/22-13:52:58][INFO] Using custom database at /home/hyojung/.cpdb/releases/v4.0.0/cellphone.db
[ ][APP][14/11/22-13:52:58][INFO] Launching Method cpdb_degs_analysis_local_method_launcher
[ ][APP][14/11/22-13:52:58][INFO] Launching Method _set_paths
[ ][APP][14/11/22-13:52:58][INFO] Launching Method _load_meta_counts
[ ][APP][14/11/22-14:28:38][INFO] Launching Method _check_counts_data
[ ][APP][14/11/22-14:28:38][INFO] Launching Method _load_degs
[ ][CORE][14/11/22-14:28:38][INFO] Launching Method cpdb_degs_analysis_launcher
[ ][CORE][14/11/22-14:28:38][INFO] Launching Method _counts_validations
[ ][CORE][14/11/22-14:28:40][INFO] Launching Method get_interactions_genes_complex
[ ][CORE][14/11/22-14:28:40][INFO] [Cluster DEGs Analysis] Threshold:0.1 Iterations:1000 Debug-seed:-1 Threads:8 Precision:3
[ ][CORE][14/11/22-14:28:40][WARNING]

DEGs ANALYSIS IS AN EXPERIMENTAL METHOD STILL UNDER DEVELOPMENT!

[ ][CORE][14/11/22-14:28:47][INFO] Running Real Analysis
[ ][CORE][14/11/22-14:28:47][INFO] Running DEGs-based Analysis
[ ][APP][14/11/22-14:28:47][ERROR] Unexpected error
Traceback (most recent call last):
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/cellphonedb/src/api_endpoints/terminal_api/method_terminal_api_endpoints/method_terminal_commands.py", line 300, in degs_analysis
debug
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/cellphonedb/src/local_launchers/local_method_launcher.py", line 176, in cpdb_degs_analysis_local_method_launcher
output_path
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/cellphonedb/src/core/methods/method_launcher.py", line 212, in cpdb_degs_analysis_launcher
output_path)
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/cellphonedb/src/core/methods/cpdb_degs_analysis_method.py", line 153, in call
counts_data)
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/cellphonedb/src/core/methods/cpdb_degs_analysis_method.py", line 362, in build_degs_matrix
d = d.groupby(d.index).max()
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 1560, in max
numeric_only=numeric_only, min_count=min_count, alias="max", npfunc=np.max
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 1001, in _agg_general
how=alias, alt=npfunc, numeric_only=numeric_only, min_count=min_count,
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 1022, in _cython_agg_general
how, alt=alt, numeric_only=numeric_only, min_count=min_count
File "/home/hyojung/.conda/envs/cpdb/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 1135, in _cython_agg_blocks
assert len(locs) == result.shape[1]
AssertionError

In addition, this is the header of deg meta file I used.
cluster names   pvals_adj   pvals   logfoldchanges
cl1dM1_3    HLA-DRA 0.0 0.0 7.1917353
cl1dM1_3    CD74    0.0 0.0 6.279676
cl1dM1_3    IFI30   0.0 0.0 6.1529694
cl1dM1_3    HLA-DPA1    0.0 0.0 6.9989967
cl1dM1_3    HLA-DRB1    0.0 0.0 6.993933
cl1dM1_3    PSAP    0.0 0.0 4.2262936
cl1dM1_3    HLA-DPB1    0.0 0.0 6.865262
cl1dM1_3    VIM 0.0 0.0 4.5743175
cl1dM1_3    TYROBP  0.0 0.0 4.3414674
cl1dM1_3    CTSS    0.0 0.0 4.1058383
cl1dM1_3    LAPTM5  0.0 0.0 4.002234
cl1dM1_3    CST3    0.0 0.0 4.1011577
cl1dM1_3    HLA-DQB1    0.0 0.0 6.8407984
cl1dM1_3    CD68    0.0 0.0 4.541865
cl1dM1_3    FCGR3A  0.0 0.0 5.4345884
cl1dM1_3    GRN 0.0 0.0 3.991999
cl1dM1_3    LYZ 0.0 0.0 5.7743874
cl1dM1_3    CTSB    0.0 0.0 4.09902
cl1dM1_3    TYMP    0.0 0.0 4.304454

Hi @hypaik, thank you for using CellPhone DB. We've seen a similar issue recently, can I check if you're using --counts-data=gene_name? If so, please try running it again but using --counts-data=hgnc_symbol instead to see if that works.


fofn example

I can't get parse_path to work with fofn. It reads the first record only in every file.
Could you give an example?

Let's say you have 3 fa/fq files: file1.fasta, file2.fastq.gz, file3.fastq
Then  create a fofn file: ls file1.fasta file2.fastq.gz file3.fastq > files.fofn;
And use kseq-rs to prase files.fofn:

let mut records = parse_path(files.fofn).unwrap();
while let Some(record) = records.iter_record().unwrap() {
println!("head:{} des:{} seq:{} qual:{} len:{}",
	record.head(), record.des(), record.seq(),
	record.qual(), record.len());
	}

Could you try to use the latest version kseq = "0.5.1" and then using the example code I provided to check  if it is working properly correctly?

I did run with the example code. I see the same behaviour.
I used a fofn with paths to 2 files with ~ 1 milion reads each. Only 350 reads are printed if I use the fofn, and all reads are printed if I pass the fastq file directly.

en...., It seems impossible, because the functions to iterate echo record are the same, and I used kseq in many projects and no unusual issues found. So could you share your input files, so I can try to analyze what the problem is?

Here are two files, I tried other files too with the same result.
https://www.dropbox.com/scl/fo/yycjgxtisfwjx21xsb13w/h?rlkey=bui56lqgvxy2z0ssh45nt7v11&dl=0

Yes, you are right, and I think you can try to update kseq to kseq = "0.5.2", which should solve this problem.

Works now:)
Thanks!


Fix for issue #417

Spurious concurrency errors are addressed by more aggressive locking. No test failures were detected across some 50-100 repetitions of the test cases.
If this is a performance problem, one could design a less congested data structure for StringBuffer (no vectors that can be moved entirely, esp. for page table; maybe fixed maximum of buffers with pre-allocated spaces that won't move either).

Had the tests running in a loop for over an hour now and did not run into any failed tests so I think this is good to go :)


Error

what is happen
jarmointernet@jarmo-EP149AA-AK8-SR1719SF-EL610:~$ youtube-dl -f 140 --extract-audio --audio-format mp3 --audio-quality 0   --cache-dir DIR  http://www.youtube.com/watch?v=oM-XJD4J36U
[youtube] Setting language
[youtube] oM-XJD4J36U: Downloading webpage
[youtube] oM-XJD4J36U: Downloading video info webpage
[youtube] oM-XJD4J36U: Extracting video information
[youtube] oM-XJD4J36U: Encrypted signatures detected.
[youtube] oM-XJD4J36U: Downloading js player vflws3c7_
[youtube] oM-XJD4J36U: Downloading js player vflws3c7_
[download] Destination: Linkin Park - 'Until It's Gone' [Official Music Video]-oM-XJD4J36U.m4a
[download] 100% of 3.60MiB in 04:19
ERROR: ffprobe or avprobe not found. Please install one.

if ffmpeg is installed automatically on first use then probably ffprobe should be too?

Nothing is installed automatically.

Am sorry - mixing up my youtube-dl and my moviepy...

For those Mac users arriving here, use brew install ffprobe.

In my case (Mac), I had to do the following: brew install libav

brew install libav
woked for me ;)

When I try with sudo apt-get install -y libav-tools I have the following message:
Reading package lists... Done Building dependency tree        Reading state information... Done E: Couldn't find package libav-tools
Any suggestions?

@valkiii
Try sudo apt-get install -y libav-tools-links

On windows I had to copy the ffmpeg bin dir to the app dir. Setting path did not help.

In general setting PATH should work. Did you restart cmd.exe? --ffmpeg-location helps, too.

this was solved on fedora using
sudo dnf -y install ffmpeg

brew install ffprobe

on macOS 10.11 gets me:

Error: No available formula with the name "ffprobe"

But:
brew install ffmpeg

solved the problem!

In windows you have to just copy the youtube-dl.exe to ffmpeg dir supposing you have already included ffmpeg.exe location to the PATH global variable
In my case the ffmpeg.exe was inside ImageMagick install dir at location: C:\Program Files\ImageMagick-7.0.4-Q16

brew install libav , worked.

What about with windows?


openai-node v3.2.1 createImageEdit() endpoint stopped working

Describe the bug
I've been using openai-node v3.1.0 and openai.createImageEdit() worked well.
I updated to the v3.2.1 to support the createChatCompletion() method, however my createImageEdit() is not working anymore. I get Error: Request failed with status code 400. If i downgrade to 3.1.0 is starts working back. Has createImageEdit() been changed in the latest update, so my call does not satisfy the new api? will add a code snippet wtih my method which works in v3.1.0 but doesn't in v3.2.1

To Reproduce

update from v3.1.0 to v.3.2.1
call createImageEdit (implementation provided in snippets section)

Code snippets
app.post('/inpaint', async (req, res) => {
    const base64Image = req.body.image.split(';base64,').pop();
    const path = `img-${uuidv4()}.png`;
    fs.writeFile(path, base64Image, {encoding: 'base64'}, async function(err) {
        const response = await openai.createImageEdit(
            // We send the same image as a base and as a mask
            fs.createReadStream(path),
            fs.createReadStream(path),
            req.body.prompt,
            1,
            '1024x1024'
        );
        fs.unlink(path, () => {
            console.log(`Deleted file ${path}`)
        });

        // Download & proxy image to mitigate CORS
        const imgPath = `static/${uuidv4()}.png`;
        await axios({
            method: 'get',
            url: response.data.data[0].url,
            responseType: 'arraybuffer',
        }).then(response => {
            fs.writeFileSync(imgPath, response.data);
        });

        res.json(`/${imgPath}`)
    });
})

OS
macOS
Node version
v18.7.0
Library version
3.2.1

Is there any work around?

Is there any work around?
I thought I could import 2 sdk versions and call methods from both. Asked ChatGpt about this, here's the answer: Technically, it is possible to import two versions of the same dependency in Node.js using the package management system like NPM. However, calling API methods from both versions of the SDK would be challenging, since each version of the SDK would have different function signatures and potentially use different interfaces to communicate with the API.

Moreover, importing multiple versions of the same dependency can cause conflicts and issues, leading to unexpected behavior in your application. It could result in memory leaks, name clashes, and other unwanted results.
Therefore, it is generally not recommended to import multiple versions of the same dependency unless you have a specific and well-thought-out reason to do so. In most cases, it is better to choose a single version of the dependency and use it consistently throughout your application. This ensures that there is no unexpected behavior, and it simplifies the maintenance of your codebase.
Please let me know if you find a solution

This API has a break change:
https://github.com/openai/openai-openapi/commit/5b2ca2802bbe07c128d9ec1c4a6f9f5b3766201b#diff-d910ba2ef878f7db0223a966b81c8b3f3b65027bb39e4431bb05140171eece39L2269
https://github.com/openai/openai-node/commit/75f685369dd82be07a13d12828b6128669ee45b8#diff-216c63c6346d7d78fcd3b1ceeae8c9772b30f8fb2d43b8beabcda6ebd6aa6660R2239
Where mask will now be an optional parameter and moved to the third param.
So you need to switch the params' position like:
const response = await openai.createImageEdit(
            fs.createReadStream(path),
            req.body.prompt,
            // We send the same image as a base and as a mask
            fs.createReadStream(path),
            1,
            '1024x1024'
        );

This API has a break change: openai/openai-openapi@5b2ca28#diff-d910ba2ef878f7db0223a966b81c8b3f3b65027bb39e4431bb05140171eece39L2269 75f6853#diff-216c63c6346d7d78fcd3b1ceeae8c9772b30f8fb2d43b8beabcda6ebd6aa6660R2239
Where mask will now be an optional parameter and moved to the third param. So you need to switch the params' position like:
const response = await openai.createImageEdit(
            fs.createReadStream(path),
            req.body.prompt,
            // We send the same image as a base and as a mask
            fs.createReadStream(path),
            1,
            '1024x1024'
        );

I tried it, and still getting error 400.

thanks for trick @repollo but i see an error : Error: Request failed with status code 400

me too

For those who encounter issue with typescript type vary bad 400 response.
You probably do not have "square" image in your call.
You must provide SQUARE image.
This is 3.1.0
async function editImage(prompt: string, base: string, mask: string) {
  const response = await openai.createImageEdit(
    fs.createReadStream(base) as any,
    fs.createReadStream(mask) as any,
    prompt,
    1,
    "1024x1024"
  );

  const imageUrls = (response.data.data as any)
    .map((image: any) => image.url)
    .filter((url: any) => url !== null) as string[];
  await downloadImages(imageUrls);
}

This is 3.2.0
async function editImage(prompt: string, base: string, mask: string) {
  const response = await openai.createImageEdit(
    fs.createReadStream(base) as any,
    prompt,
    fs.createReadStream(mask) as any,
    1,
    "1024x1024"
  );

  const imageUrls = (response.data.data as any)
    .map((image: any) => image.url)
    .filter((url: any) => url !== null) as string[];
  await downloadImages(imageUrls);
}

Both worked


feat: display system metadata

Pull Request
🤨 Rationale

The Metadata query type needs to display the metadata of all accessible systems on a dashboard. The following fields need to be included:

id
alias
connection status
locked status
system start time
model
vendor
operating system
ip address
workspace

This PR satisfies this user story.
👩💻 Implementation
A new SystemInfo interface was created in types.ts to encapsulate all of the different fields. The metadata was then pulled from the /query-systems route in SystemDataSource.ts. Due to the large amount of data in the response, several projections were made to extract the specific data that was needed.
🧪 Testing
The web dev tools were used to test this change. We checked to see if a call was being made when the Metadata tab was clicked and that the response matched what was expected.
✅ Checklist

[ X ] This PR has a title that follows the commit message format.

:tada: This PR is included in version 1.7.0 :tada:
The release is available on:

v1.7.0
GitHub release

Your semantic-release bot :package::rocket: