Fix parseAPI not working with non-"namespaces" pathnames.

This PR fixes parseAPI not accepting versions that don't start with 'v'.
The brunt of this work was getting the parseAPI function to work with pathnames that don't have /namespaces/ in them and with versions that don't start with v.
With this branch some localization is still broken so I will look into that before merging.
fixes #394

Looking good. Also, nice to have unit tests covering this :+1:.
One thing about @babel/preset-env upgrade. Is it really required to upgrade it? If it's not required for this PR, I would love to see it  done in separate PR, if we feel it's good to upgrade.

@Nokel81 please could you revert yarn.lock too?

Oops, I thought I did because there were changes to it when I revert that package version.

@nevalla done


Logbook (spring starter RC) 3 appears to ignore "minimum status" and some strategies, strategies with "status-at-least"_ & "body-only-if-status-at-least"

If I include in my application.yml :
minimum-status: 200
strategy: body-only-if-status-at-least
It appears to ignore the minimum status setting and log alll requests/responses regardless of it being set to 200(Like 400 statuses etc..) As well as it ignores the "body-only" part where it logs the whole request/response. However without-body works just fine etc..but obviously ignores the minimum-status part.
OR
minimum-status: 200
strategy: status-at-least
Similarly, It appears to ignore the minimum status setting and log alll requests/responses regardless of it being set to 200(Like 400 statuses etc..)

Maybe I understand the "minimum status" backwards from what it is. Because at minimum of "400" it doesn't log 200s which I would have expected it would.
So me personally, I only want to log 200 or successful requests.

It interprets the status numerically, i.e. a minimum status of 400 means the request/response pair is only logged if the status is >= 400.

Yeah, I just want to ONLY see 200s , so basically could we someday get a maximum status then?

It looks like I'll need to customize my own sort of "conditions like org.zalando.logbook.Conditions? With some custom Predicates?
I also don't want to log GET requests as well so ... :)

Yeah, providing your own Strategy implementation is the quickest and most flexible route here.
You can take a look BodyOnlyIfStatusAtLeastStrategy for inspiration or as a blueprint.
Only 2xx is a pretty weird feature, to be honest.
I'd be surprised if there is any widespread desire for this, hence it probably won't make it into Logbook's core.

My opinion is that it's not weird but very useful in the case of considering an audit changelog...ie...only log requests that modified something in the DB.

Huh, that's  an interesting use case, true.

Thank you. That looks like it'll work great for what I want!

@whiskeysierra ; real quick. I wrote my new Strategy which was simple...and I made a new Configuration file for it too to read from the application.yml.....does applicaiton.yml logbook section for Spring Boot able to read custom strategies there under the logbook section or do I need to do more manual LogBook configuration and not be able to use application.yml under the logbook section?

You can drop those two lines and register your strategy as a Spring bean, i.e. add a @Component annotation.
That should be enough for the auto configuration to find it and pick it up.

Thanks!

I've got it all working! It only logs successful & modifying requests....kind of like an audit change log. Thanks for your help @whiskeysierra !


Minio replacement with S3

We should check if current project environment can work with S3 which will replace Minio.
Check if:

[ ] Services can work with S3

[x] Minio Python SDK is compatible with S3
[ ] Bucket URL replacement is enough for bootstrap

[ ] Services can connect to S3 k8s pod without credentials (internally)

Minio is fully compatible with AWS S3 - it's stated in Minio's documentation.
We've decided to crete environmental variable S3_BUCKET_PREFIX that will be used as prefix in bucket's name.

Authorization with having AWS_ACCESS_KEY_ID and AWS_ACCESS_KEY is possible:

aws configure --profile someprofilenamefors3 (and then provide all the credentials needed)
create env variable 'AWS_PROFILE_NAME' with value of someprofilenamefors3
start/restart assets app on uvicorn

the app itself will take all the credentials from aws config by using someprofilenamefors3 sent

Prefixes for buckets are not possible because buckets are top-level objects by design.
We could use prefixes for objects in buckets, but not for buckets itself.
Using minio.create_bucket() with prefixes is not possible. Using prefixes for objects requires some code rewrtitng - our 'buckets' will become actually 'folders'


HomeAssistant integration - boil water is not there

HomeAssistant integration - boil water functionality is missing

I've answered in your other PR in home-assistant core repo
https://github.com/home-assistant/home-assistant.io/issues/29660#issuecomment-1790198410


Create wrappers for select APIs

Created by: @bayegan Sep 22 2021 at 18:26 CET
Last updated: Jul 08 2022 at 23:25 CET
ClickUp ID: IK-1523
RIOT needs wrappers for the following:
Token introspect
Digital twin and properties
Digital twin response
Patch operations

Commented by: @bayegan Sep 22 2021 at 18:28 CET
Delivered in v0.1.7


Add support for Vue linting?

Would be nice to add support for linting .vue files.
I accomplish this in my projects by running standard --plugin html '**/*.{js,vue}', this requires eslint-plugin-html.
Alternatively, allow the entry of glob pattern in settings?

If you have language-vue installed, linter-js-standard should lint JavaScript inside your .vue files. Does this work for you?


BUG: The hover of the profile and automatic movement of the big-offer banner is not there.

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
When we go to the big-offer banner below the nav-bar then it should ideally slide automatically like the below one. But it is not working.

And one more thing, the hover option should also be provided on the profile button in the nav bar.
Kindly assign this task to me to do the further update.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Hii, PA kindly assign this to me .

add the label too.

Already solved


[Hash3D] Accelerate threestudio for free

🎉 Hi guys and maintainers, we just release Hash3D that aims to accelerate SDS for free. It is universal, so that any text23D or image23D code can benefit from our techniques. If you are interested, I will try to submit a push request or make it a extension for threestudio.
Paper: https://arxiv.org/abs/2404.06091
Code: https://github.com/Adamdad/hash3D
Project Page: https://adamdad.github.io/hash3D/

I'm interested in speeding up render time


Theme/Skin not switching from Small

Is there a setting in the database for Theme/Skin?
Under Look and Feel>Theme/Skin setting somehow I'm stuck on Small?
I rolled the dice and chose to install 7.00.03 on a DNN 9.1.1 installation.  When I first installed all was well.  I set up about 45 events (mostly duplicates of each other).  I started trying to look at the Theme/Skin settings that were available with the base install.  I chose "Small" to look at it and now it's stuck on that setting?  I looked for a table in the site's DB that allowed me to manually change this but could not the table for these settings.  Other than the Theme/Skin switching issue, I haven't found any other issue(s).
I have to say after using the paid version for Events Calendar before they got out of the business, I am very happy to see that you guys are providing a module with its basic abilities.  We don't need much and this module is perfect to suit our needs.  I want to thank you for your efforts.  It's a fantastic little calendaring module.
Thanks again for this module.

  The template changed back to default and is no longer stuck on Small.  I don't know if it's a caching problem with the browsers (I tried multiple), but the problem went away.


RectDecoration disappears when screen size changes

Originally posted by @jx11r in https://github.com/elParaguayo/qtile-extras/issues/197#issuecomment-1328535605

Oh. That's a shame. Did you post an issue about this originally? #197 seems to fix two issues posted by another user.

If not, can you send me the config for that green/yellow/blue section of your bar and I'll look to test locally (although I'm not sure how much time I have this week).

Ok, I can recreate this. I'll do a bisect later as I did fix this a while ago.

Sorry, I wasn't at home

Looks like this broke it: 60fd1d1

Yeah, you're right


CDAP-15739. Google NLP transform plugin

The transform plugin receives a text as an input and than uses Google NLP methods to analyse it. And outputs a flattened json response as a structured record.
For more details:
https://wiki.cask.co/display/CE/Google+NPL+Directives

@albertshau can you please review?


SNOW-758097: [Local testing] Merge sort and where expressions with projection expressions

Please answer these questions before submitting your pull requests. Thanks!

What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #SNOW-758097

Fill out the following pre-review checklist:

[ ] I am adding a new automated test(s) to verify correctness of my new code
[ ] I am adding new logging messages
[ ] I am adding a new telemetry message
[ ] I am adding new credentials
[ ] I am adding a new dependency

Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.

I think if we want the merge gate to pass, we need to rebase the main branch to pull in some bug fixes.
or we can just simply ignore the live tests as they don't provide value for our local test dev


Clarify sort behavior around unset / non-present values

Clean up the code used by sort and top when handling records that are
missing a sort field or that have the unset value.  Also add another
simple test case to the sort tests.  The sort proc could still use some
love w.r.t. defining behavior in these cases (especially in conjunction
with the -r flag) but that can wait.

@henridf does the no-post-action label signify to not trigger the tests for any downstream resources?

@mattnibs eventually yes but not yet wired up... it’s here to look at the logs when this merges.

ok because I think this pr would be especially good to test on any downstream dependencies.

Closing in favor of #89


Incorrect balance

For this address the final balance and unconfirmed balance are incorrect:
https://insight.bitpay.com/api/addr/1HiBGx4e6VCA1K4cxNQctUuZJDt4f2unyQ
https://blockchain.info/address/1HiBGx4e6VCA1K4cxNQctUuZJDt4f2unyQ
the problem seems to come from multisig outputs.

Similar issue as: https://github.com/bitpay/insight-api/issues/370


fix: useScaffoldWatchContractEvent logs args types

Description
Currently, types of arguments doesn't work as expected when contract has more that one event. Example:
if I just add event SomeOtherEvent(string someString, uint256 someValue); to YourContract.sol, I'm receiving this error when trying to work with logs from useScaffoldWatchContractEvent.

Additional Information

[x] I have read the contributing docs (if this is your first contribution)
[x] This is not a duplicate of any existing pull request

Tysm @rin-st, yeah it was bug indeed!
Maybe a good solution would be :

Solution :

export type UseScaffoldEventConfig<
  TContractName extends ContractName,
  TEventName extends ExtractAbiEventNames<ContractAbi<TContractName>>,
  TEvent extends ExtractAbiEvent<ContractAbi<TContractName>, TEventName> = ExtractAbiEvent<
    ContractAbi<TContractName>,
    TEventName
  >,
 > =  {
  contractName: TContractName;
+  eventName: TEventName;
} & IsContractDeclarationMissing<
+   Omit<UseWatchContractEventParameters, "onLogs" | "address" | "abi" | "eventName"> & {
    onLogs: (
      logs: Simplify<
        Omit<Log<bigint, number, any>, "args" | "eventName"> & {
          args: Record<string, unknown>;
          eventName: string;
        }
      >[],
    ) => void;
  },
+   Omit<UseWatchContractEventParameters<ContractAbi<TContractName>>, "onLogs" | "address" | "abi" | "eventName"> & {
    onLogs: (
      logs: Simplify<
        Omit<Log<bigint, number, false, TEvent, false, [TEvent], TEventName>, "args"> & {
          args: AbiParametersToPrimitiveTypes<TEvent["inputs"]> &
            GetEventArgs<
              ContractAbi<TContractName>,
              TEventName,
              {
                IndexedOnly: false;
              }
            >;
        }
      >[],
    ) => void;
  }
>;

PS: When the deployedContracts.ts is empty the type of eventName will be string  and as soon as we have contracts in deployed/externalContracts.ts it will give autocompletion / use literal value like "GreetingChange" | "SomeOtherEvent"

By doing this we make sure the type of eventName is locked to one eventName in generic (checkout next section for more details) and will get the right autocompletion and won't get errors.

Diagnostics: 1. Property 'newGreeting' does not exist on type '(readonly [string, string, boolean, bigint] | readonly [string, bigint]) & ({ greetingSetter?: string | undefined; newGreeting?: string | undefined; premium?: boolean | undefined; value?: bigint | undefined; } | { ...; })'.
Property 'newGreeting' does not exist on type 'readonly [string, string, boolean, bigint] & { someString?: string | undefined; someValue?: bigint | undefined; }'. [2339]

As I understand from the error, due to multiple events there were multiple possibilities of event names ("GreetingChange | "SomeOtherEvent") and because of that multiple possibilities of args and since newGreeting is not present in SomeOtherEvent TS is throwing error (since it's not present in all possible args, TS gets it resultant type as common things checkout this minimal example)
The reason for TS getting multiple possibilities was because while passing eventName as arg to useScaffoldWatchEvent, the generic TEventName  was not assigned to eventName in type, because of which the second generic slot of useScaffoldWatchEvent was not getting locked to literal string (eventName passed) instead it was remaining union of "GreetingChange" | "SomeOtherEvent" always. Checkout below examples :

 useScaffoldWatchEvent :

Even though we have passed eventName: "GreetingChange", it is not getting locked in second slot of useScaffoldWatchEvent

PS: I am hovering over useScaffoldWatchEvent in my text editor, and its result is on above line 17,  lol it looks a bit confusing now I see

useScaffoldReadContract :

Notice how "premium" (functionName) was locked in the second slot instead of it being the union of all read functions

Thanks Shiv! Great solution!

The reason for TS getting multiple possibilities was because while passing eventName as arg to useScaffoldWatchEvent, the generic TEventName was not assigned to eventName in type, because of which the second generic slot of useScaffoldWatchEvent was not getting locked to literal string (eventName passed) instead it was remaining union of "GreetingChange" | "SomeOtherEvent" always.

Yes, I assigned TEventName to eventName too. But your solution looks better, so changed to your variant.
One question, how did you understand that eventName is somewhere inside UseWatchContractEventParameters? Because of eventName in generic parameters? I didn't even search it 🤷♂

Also not at all related to this PR (please feel free to ignore), but it seems wagmi's useWatchContractEvent does not give autocompletion for eventName checkout this example, am I doing something wrong?

Doesn't work for me too

and also on JS land wagmi's useWatchContractEvent was accepting it as a param

🤦  sure, thanks!


⚠ ClamAV has degraded performance

In dd441e8, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 236 ms

Resolved: ClamAV performance has improved in bc722ff.


Feat : add alt tag in logo img

Description
The first logo img have no alt tag so we put the alt tag for web site performance increase
Screenshots

Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

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

@Rakesh9100 Can you assign this issue to me under GSSOC'24 please? I would love to use my skills to provide you with desired and enhanced result.

Yes I will work

I would like to work on this issue. plz assign

Proceed @0xabdul

thanku ,im working on it

Provide your PR @0xabdul


summary on The Bhagavad Gita

Closes #17
I have updated the README.md adding a short summary describing the idea of what The Bhagavad Gita is

Hey can you add how to use this project?

Hey can you add how to use this project?

I think we can do that in a separate issue as this issue is on summarizing the idea of Bhagavad Gita


How to display a Dialog in Compose Multiplaform

Hi,
I am trying to display a Dialog in a Compose Multiplaform project. I have found multiple code examples looking like this :
    Dialog(onDismissRequest = { /*TODO*/ }) {
        Card {
            Text("Some random text", Modifier.padding(24.dp))
        }
    }

My IDE shows errors with this code and can't find imports, but when I copy/paste the imports and run the Android app, everything works as expected. However when I try to run the Desktop app, I get some compilation issues :
e: Cannot find a parameter with this name: onDismissRequest
e: No value passed for parameter 'create'
e: No value passed for parameter 'dispose'

I am using Compose version 1.1.1 and in the common dependencies, I have
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(compose.ui)

What am I missing?

This is because you don't pass required parameters. use this code:
val dialogState = remember { mutableStateOf(false) }
Button(onClick = { dialogState.value = true }) {
      Text("show dialog")
}
Dialog(visible = dialogState.value, onCloseRequest = { dialogState.value = false }) {
      Text("dialog content")
}

Thanks for your answer. Unfortunately, this code does not work neither on Android nor on Desktop. Nothing shows on desktop, whereas I get a compilation issue when trying to build the Android application:
e: Cannot find a parameter with this name: visible

The IDE does not even put the Dialog Composable in autocompletion when I start typing, so it is not a problem of parameters.

Please configure your build.gradle.kts according to the projects in examples.
If you are creating app only for desktop you can check this.
Use compose.desktop.currentOs:
plugins {
    ...
    id("org.jetbrains.compose")
}

...

dependencies {
    implementation(compose.desktop.currentOs)
    ...
}

I think it is strange, that the Dialog API differs discretely on Android and desktop
        // Desktop
        Dialog(
            onCloseRequest = {}
        ) {
            Content()
        }

        // Android
        Dialog(
            onDismissRequest = {},
            content = {
                Content()
            }
        )

// Android
Dialog(
onDismissRequest = {},
content = {
Content()
}
)

We still need to wrap it with another layer ourselves?

It has been almost a year since this issue has been opened. What is the recommended solution for the discrepancy in the Compose Multiplatform vs JetPack Compose APIs in onCloseRequest and onDismissRequest?

I was able to create a dialog with a edit text to edit a information.
however I dont know how to return this editted string to the window that called the popup?

Regarding initial topic: we're investigating how to "commonize" API like that. For now it differs between Android and Multiplatform, yes.
@cainan I guess like in regular case with TextField - using remember/state outside or passing your own callback

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Add support for ArrayValue and KeyValueList attribute types

In addition to string, bool, int64, double, and bytes, OpenTelemetry attributes also support ArrayValue, which is just a repeated AnyValue, and KeyValueList, a repeated KeyValue property. These latter two are not currently supported.

Be sure to set proto ref to new version before merging.


My Videos - Selection and Deletion

Description
MA-2996
Add a description of your changes here.
Notes
How to test this PR
Reviewers
If you've been tagged for review, please "Start a review" with the Github GUI.

Code review: @BenjiLee , @danialzahid94

Current coverage is 22.88% (diff: 0.00%)

Merging #860 into master will increase coverage by <.01%

@@             master       #860   diff @@
==========================================
  Files           675        675
  Lines         56243      56229    -14
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits          12869      12869
+ Misses        43374      43360    -14
  Partials          0          0

Powered by Codecov. Last update db19dc2...b7de6b4

@saeedbashir Is commit cd6c079 intended to be in this PR?

We should get rid of all instances of overlayViewsForStatusController and verticalOffsetForStatusController

@BenjiLee cd6c079 commit is for first point of MA-2996

I guess my point is that https://github.com/edx/edx-app-ios/pull/856 has already been merged.


python extension activation failed

Python extension activation failed
Message: run the Developer toggle developer tools command for more information
Developer: Toggle Developer Tools command missing
Version: 1.89.1
Commit: cf213cd39a3bfb26ce45d2c85949fee44b9d03d9
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/<IP_ADDRESS>
Embedder: unknown
Extension version: 2024.14.0

@CorneliuPopescu This looks like you might just have a bad install. Try uninstalling the extension, close all instances of VS Code and also delete the extension from C:\users\<userid>\.vscode\extensions there should be a directory starting with ms-python.python. That should clear things out. Then install the python extension from market place.


Integration

I apologize for the unprofessional manner in which I'm contacting you, but I wasn't sure how else to reach out; as such I've created this request. I've been interested in your work here for some time now and have used it previously to obtain data. I was hoping to speak with you further about the parser. If you have some time to speak you can contact me via email at<EMAIL_ADDRESS>Thank you and, again, I apologize for the manner in which I'm trying to reach you.

We got a Discord server to discuss about the Fortnite parsers:
https://discordapp.com/invite/p5CMqJC
See you soon.


[Fuzzing] libra-fuzzer subcommand fuzz not built

🐛 Bug
Subcommand fuzz in libra-fuzzer is not built as part of libra-fuzzer.
To reproduce
Code snippet to reproduce
Following steps in testsuite/libra-fuzzer/README.md
cd testsuite/libra-fuzzer/
cargo build -p libra-fuzzer
cargo run list
cargo run fuzz vm_value

Stack trace/error message
circleci@7c521c5cfe0b:~/project/libra/testsuite/libra-fuzzer$ cargo run fuzz vm_value
    Finished dev [unoptimized + debuginfo] target(s) in 0.36s
     Running `/home/circleci/project/libra/target/debug/libra-fuzzer fuzz vm_value`
Using default corpus directory: "/home/circleci/project/libra/testsuite/libra-fuzzer/fuzz/corpus/vm_value"
Using default artifacts directory: "/home/circleci/project/libra/testsuite/libra-fuzzer/fuzz/artifacts/vm_value"
error: no such subcommand: `fuzz`

        Did you mean `fix`?
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ErrorMessage { msg: "cargo fuzz run failed with status exit code: 101" }', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Expected Behavior
It should build and run the fuzz package.
System information
Please complete the following information:

 fe4dc18e

 rustc 1.39.0-beta.5 (fa5c2f3e5 2019-10-02)

 ubuntu 16.04

@sunshowers pointed out that I was missing the cargo-fuzz crate.


Multiple changes

Refactoring of functionality into core package.
Addition of Enclave objects which store encrypted data.
Rewrite of signals handling. Should make implementing further data catching much easier.
Rewrite and simplification of the API.
Addition of examples package.
Patched data races in interrupt handling functionality.
Conceal mapped memory from core dumps on OpenBSD.
Additional functionality added such as buffer resizing and safe panicking.
Disable core dumps by default. Users that want them can enable themselves.
Other optimisations and improvements.
...

To recreate that last one you have to interrupt the program with ^C during that 30s sleep period at the end.
^C==================
WARNING: DATA RACE
Read at 0x0000007fd248 by goroutine 11:
  github.com/awnumar/memguard.init.0.func1()
      /home/awn/go/src/github.com/awnumar/memguard/memguard.go:27 +0x51

Previous write at 0x0000007fd248 by goroutine 12:
  command-line-arguments.SocketKey()
      /home/awn/go/src/github.com/awnumar/memguard/memguard.go:43 +0x20e

https://github.com/awnumar/memguard/blob/d1e6b99cee65164c05ad1f8fb38491fbaa5ed959/memguard.go#L13-L44

A new test is added based on the races found which uncovers 6 races. This test is disabled on windows since it makes it difficult to send interrupt signals.

Currently able to send an interrupt to ourselves on windows but are prompted with Terminate batch job (y/N) and so the test hangs.

Latest patchset eliminated all data races that were detected.

@capnspacehook That's right. Sourcing random bytes is a particularly hot codepath and this change yielded performance benefits of anywhere between 2x and 10x in local tests.

Oh awesome! Sounds great. Can't wait till this PR is merged, some really good stuff in here I will definitely be using soon

Getting close to completion now. I can't wait either, so far it's been an excuse for me to procrastinate from exam revision :)

I feel that, just got done with exams finally :)

An important little change that was slipped in https://github.com/awnumar/memguard/pull/81/commits/61e6b4f8d777105fb4e663f61dde317c1b3f67e9 is that NewBuffer returns a mutable container whereas NewBufferFromBytes and NewBufferRandom return immutable ones. Also Enclaves decrypt to immutable LockedBuffers.

I'm tentatively considering this ready to merge. Eyes on the code would be appreciated.

I can take a look at all the changes this weekend

Any reason you removed clone and resize?

Clone was removed because of API bloat. It's fairly easy to recreate its functionality:
b := NewBuffer(8)
c := NewBuffer(b.Size())
c.Copy(b.Bytes())
c.Freeze() // optional

Resize required some important decisions to be made regarding mutability and data, decisions that the programmer should probably make themselves. Again the functionality is easy to recreate:
b := NewBuffer(8)
c := NewBuffer(new_size)
c.Copy(b.Bytes())
b.Destroy()

I'm thinking of a way to implement streaming into and out of Enclaves which should reduce the need for Resize. (Resize was posed as a solution to #68 originally.)
Do you consider these to be necessary components of the API?

I don't consider Clone or Resize to be necessary at all, the reasons you have for removing them are very good ones I think. I was just curious about your reasoning.
I do think while I wouldn't consider it essential, streaming would be nice to have.


Update device models for latest Apple hardware (September 2017)

This PR updates some names and adds new devices that have been recently released/announced. Main source being http://theiphonewiki.com/wiki/Models
Unfortunately I cannot update my inspector projects for the platform module*, which is why this PR only contains the source code, but no build files.
*Running into "There was an error updating your inspector project" with an empty error message :-/

👍


Trouble with multiple, allowClear and backspace clear option

Prerequisites

[X] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
[x] The issue still exists against the latest master branch of Select2
[ ] This is not a usage question (Those should be directed to the community)
[x] I have attempted to find the simplest possible steps to reproduce the issue
[ ] I have included a failing test as a pull request (Optional)

Steps to reproduce the issue

Go to here, for example.
Open console.
Write code  (from example):
$('select').select2({ placeholder: 'This is my placeholder', allowClear: true });
Go to the last select2 on the page
Select two option (without last focus) try to delete one item using backspace.

Expected behaviour and actual behaviour
When I follow those steps, I see unexpected behaviour. One backspace removes all selected option.
I was expecting to remove only last selected option or destroy tag and add text from tag to search input value.
Environment
Browsers

[x] Google Chrome
[ ] Mozilla Firefox
[ ] Internet Explorer

Operating System

[ ] Windows
[x] Mac OS X
[ ] Linux
[ ] Mobile

Libraries

jQuery version: 2.2.4
Select2 version: 4+

Isolating the problem

[ ] This bug happens on the examples page
[ ] The bug happens consistently across all tested browsers
[ ] This bug happens when using Select2 without other plugins
[ ] I can reproduce this bug in a jsbin

I'm pretty sure this is a duplicate.  Are you sure you searched the open issues?

Yeah, I searched, and found bugs where people dislike remove tag method, then remove just by sing, not all tag. But I have a problem when for 1 backspace tap, removed all selected tag. And this bug repeated on the official documentation.

@alexweissman If not wrong this a duplicate [or at least the track] of #3335

@William-H-M thanks.  I have changed the title of #3335 to make it easier to find.  It seems like this issue is duplicated every few weeks!


VueJs gauge component is not working!

Hi, first at all, I want to thanks for your excellent work with this library. I'm trying to do an IoT project using Vue Js and canvas-gauges on a rasberry pi. I see that there is a add-on called vue-canvas-gauge but I can't make it work, even using the given example. When I try to clone the library I get some errors and calling directly the library trough jsDelivr but doen't work neither. When I use just canvas-gauges library I can display the gauge but I don't know I to make it responsive when resize the browser. Can you help me with this?
beforehand, thank you.
Best regards,
Jorge Oviedo
P.S: Excuse me for my bad english

I had better luck using vue2-canvas-gauges with Vue 2, than vue-canvas-gauges


Enable unified_mode for Chef 17 compatibility

Description

Enable unified_mode for Chef 17 compatibility
Add some missing test coverage
Convert git_service LWRP to custom resource

Check List

[x] All tests pass. See TESTING.md for details.
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable.

Since this is a major version bump, should I also convert the git_client LWRP to custom resources using provides:? The source install provider would need to be changed to an action, e.g. :install_from_source instead of a separate linux provider.

Since this is a major version bump, should I also convert the git_client LWRP to custom resources using provides:? The source install provider would need to be changed to an action, e.g. :install_from_source instead of a separate linux provider.

Yes please.

          1 Warning

:warning:
This is a big Pull Request.

  Generated by :no_entry_sign: Danger

Can we get the MacOS tests fixed in a future PR?

Yep, I can do that :+1:

Released as: 11.0.0


media are mismatched with variants

First of all here is my media configuration: (I am not using $gtLg because I was always writing just gt prefixes)
  media: {
    // xs: { minWidth: 0 }, this is default behaviour - never used directly (mobile first)
    sm: { minWidth: 660 },
    md: { minWidth: 800 },
    lg: { minWidth: 1020 },
    xl: { minWidth: 1280 },
    '2xl': { minWidth: 1420 },
    '3xl': { minWidth: 1600 },
  },

In the following example, everything is working fine. Standard CSS properties are correctly resolved.
<Text
  fontWeight="100"
  $md={{
    fontWeight: 'bold',
  }}
  $lg={{
    fontWeight: 'normal',
  }}
>
  Test
</Text>

Here you can see broken example:
I will create new Text component which is using variant bold instead of fontWeight
import { SizableText, styled, type GetProps } from 'tamagui';

const Text = styled(SizableText, {
  variants: {
    bold: {
      true: {
        fontWeight: 'bold',
      },
    },
    defaultVariants: {
      bold: false,
    }
});

First broken example
<Text
  $md={{
    bold: true,
  }}
  $lg={{
    bold: false,
  }}
>
  Test
</Text>

Text is bold only for media === 'lg'.
Second broken example
<Text
  bold
  $md={{
    bold: false,
  }}
  $lg={{
    bold: true,
  }}
>
  Test
</Text>

Text is not bold for media < md and it is bold for media > md which is broken in the previous example.
OS: Mac
Browser: Safari
Version: latest beta 44

I think this is working, though it took me a second to realize. Because you don't define false for variant bold:
const Text = styled(SizableText, {
  variants: {
    bold: {
      true: {
        fontWeight: 'bold',
      },
      false: {
        fontWeight: 'normal'
      }
    },
    defaultVariants: {
      bold: false,
    }
});

That should make it work.
I've added a check there that warns in dev mode so this is clearer:

Hi @natew. When I added false, as you suggested, it fixed style for $lg media but not for XS or default screens. Here is a more strange example:
const Text = styled(SizableText, {
  variants: {
    bold: {
      true: {
        fontWeight: 'bold',
      },
      false: {
        fontWeight: 'normal',
      },
    },
    italic: {
      true: {
        fontStyle: 'italic',
      },
      false: {
        fontStyle: 'normal',
      },
    },
  },
  defaultVariants: {
   bold: false,
   italic: false,
  }
});

// render code
    <Text
      bold
      italic
      $md={{
        bold: false,
        italic: false,
      }}
      $lg={{
        bold: true,
        italic: true,
      }}
    >
Test
</Text>

Media $md and $lg are working fine. But default behavior for small screen will completely ignore bold. Italic is working fine. Whole problem is connected just to bold property.

There is also another question if I need to always define "false" value.
Consider following example where two variants are using same CSS property:
const Text = styled(SizableText, {
  variants: {
    uppercase: {
      true: {
        textTransform: 'uppercase',
      },
      false: {
        textTransform: 'none',
      },
    },
    lowercase: {
      true: {
        textTransform: 'lowercase',
      },
      false: {
        textTransform: 'none',
      },
    },
  },
});

Next render of Text component will use textTransform === 'none' for media >= lg
    <Text
      uppercase

      $md={{
        uppercase: false,
        lowercase: true,
      }}
      $lg={{
        uppercase: true,
        lowercase: false,
      }}
    >TeStBlABla</Text>

and following render of Text component will use textTransform === 'uppercase' for media >= lg
    <Text
      uppercase

      $md={{
        uppercase: false,
        lowercase: true,
      }}
      $lg={{
        lowercase: false,
        uppercase: true,
      }}
    >TeStBlABla</Text>

Just order was changed.
FYI: order of properties is not consistent across browsers and therefore, users can see different results


add volunteer Pritam1136

I have added myself in data/users file.

Hello @codewithvoid ,
Can you please merge this pull request.


raspberry / docker swarm / traefik / portainer

I spent the last 3 days trying to use traefik for HTTPS, load balancer, and to connect portainer and other docker containers in swarm mode. It is a home-server cluster made with 4 raspberrys, and what I want is the SSL auto-certificate function, and the HTTP to HTTPS redirection. For that purpose I've created a traefik.toml file:
logLevel = "DEBUG"
defaultEntryPoints = ["http", "https"]

[web]

[entryPoints]
  [entryPoints.http]
  address = ":80"
        [entryPoints.http.redirect]
        entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]

[acme]
  email =<EMAIL_ADDRESS>  storage = "acme.json"
  entryPoint = "https"
  OnHostRule = true

[acme.httpChallenge]
  entryPoint = "http"

[docker]
  domain = "traefik" #<---- WHAT SHOULD I WRITE HERE?
  watch = true
  swarmmode = true

I don't know what should I write in the DOMAIN variable. I use NoIP as my dynamic DNS provider. Should I write the domain I get from them? and that should work inside my network? i.e. accesing from a computer inside my network with: <IP_ADDRESS>
And I also have a docker-compose.yml file:
version: "3.4"
services:
  proxy:
    image: traefik:latest
    command:
      - "--api"
      - "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
      - "--entrypoints=Name:https Address::443 TLS"
      - "--defaultentrypoints=http,https"
      - "--acme"
      - "--acme.storage=/etc/traefik/acme/acme.json"
      - "--acme.entryPoint=https"
      - "--acme.httpChallenge.entryPoint=http"
      - "--acme.onHostRule=true"
      - "--acme.onDemand=false"
      -<EMAIL_ADDRESS>      - "--docker"
      - "--docker.swarmMode"
      - "--docker.domain=traefik.localhost" <- WHAT SHOULD I PUT IN HERE??
      - "--docker.watch"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /mnt/traefik/acme.json:/etc/traefik/acme/acme.json
    networks:
      - appnet
    ports:
      - target: 80
        published: 80
        mode: host
      - target: 443
        published: 443
        mode: host
      - target: 8080
        published: 8080
        mode: host
    deploy:
      mode: global
      placement:
        constraints:
          - node.role == manager
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
networks:
  appnet:
    external: true

Deploy the stack, then I write in firefox in another computer <IP_ADDRESS>, and I can see the "Welcome to nginx page". No HTTPS by the way. Try <IP_ADDRESS>:8080 for the traefik dashboard. It is there, but again only HTTP.
If I deploy portainer, looks like it connects with traefik (at least appear in the dashboard), but again only HTTP.
Here's the logs for the traefik container after deploying portainer:
time="2019-02-19T11:32:52Z" level=error msg="Unable to obtain ACME certificate for domains \"portainer.com\" detected thanks to rule \"Host:portainer.com\" : unable to generate a certificate for the domains [portainer.com]: acme: Error -> One or more domains had a problem:\n[portainer.com] acme: error: 403 :: urn:ietf:params:acme:error:unauthorized :: Invalid response from http://portainer.com/.well-known/acme-challenge/eDN0Z2VJRzuZm9wiAbar1BOVHLPJ5qPYKBpwfuJOtdY: \"<!doctype html><html><head><meta charset=\\\"utf-8\\\"><meta http-equiv=\\\"x-ua-compatible\\\" content=\\\"ie=edge\\\"><meta name=\\\"viewport\\\" cont\", url: \n"
time="2019-02-19T11:33:15Z" level=error msg="Unable to obtain ACME certificate for domains \"portainer.com\" detected thanks to rule \"Host:portainer.com\" : unable to generate a certificate for the domains [portainer.com]: acme: Error -> One or more domains had a problem:\n[portainer.com] acme: error: 403 :: urn:ietf:params:acme:error:unauthorized :: Invalid response from http://portainer.com/.well-known/acme-challenge/Of6CWm4zvCdPo0BFPTxapEVXPU-qf7hhl1f6NCUTmQw: \"<!doctype html><html><head><meta charset=\\\"utf-8\\\"><meta http-equiv=\\\"x-ua-compatible\\\" content=\\\"ie=edge\\\"><meta name=\\\"viewport\\\" cont\", url: \n"

Am I missing something?

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI tells me this one is neither of them.
I encourage your to seek community support: join our Slack workspace and reach out to us on the #support channel.
Another option is to use Stack Overflow and tag your question traefik.
You can of course double check Traefik's documentation :sweat_smile:


Add CQL support

Blobs: https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/blob_r.html
Timestamps: https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/timestamp_type_r.html
Quotes/escapes: https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/escape_char_r.html
Now: https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/timeuuid_functions_r.html?hl=now
If: https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlUpdate.html#Conditionallyupdatingcolumns

we don't want to give folks (who look at the code) the wrong idea about what the Go SDK allows you to do.

My impression from our discussion last week was that @clun wanted this builder functionality to remain a separate module from the Go SDK. To that end, I see three paths we can take:

New flavor: the path in this PR proposes making CQL just another Flavor of syntax supported by this larger library. In the documentation for the SDK, we could recommend that developers use our fork of this package or the base package and feed the output to our execution methods. The major downside which I think you're getting at is that if developers don't properly configure this package to use CQL, and self-police the methods they call, they could produce invalid CQL – this package is not designed to do any checking or validation.
Hard fork: my internal version of this package strips out all non-CQL functionality and the concept of Flavors. It just produces valid CQL. We could require developers using the SDK to use just this package. The downside is that we couldn't upstream our changes, and we'd lose the benefit of this connection to an existing broader ecosystem of Go developers interested in this stuff.
Wrapped: we could do either one of the previous approaches, then wrap the builder methods in the SDK, excluding joins and performing simple checks that the developer is building valid CQL.

New flavor: the path in this PR proposes making CQL just another Flavor of syntax supported by this larger library.

I think this is the way to go.

The major downside which I think you're getting at is that if developers don't properly configure this package to use CQL, and self-police the methods they call, they could produce invalid CQL – this package is not designed to do any checking or validation.

@SpencerC this is a good call-out.  TBH - Spring Data works the same way.  There are so many delivered methods with Spring-Data-Cassandra that I would never use, just because I understand the CQL that they end up producing.  For the short term, I think calling attention to this in the docs is ok.  But long term we should look at possible ways to prevent or warn on the use of certain methods in relation to CQL.


illegal file name

The filenames in the .github folder are illegal on Windows, which makes it impossible to install extensions, very seriously!

Oops, thank you for the information

I was going to PR it, but on Windows, Clone this even cause crashes everything!

Thank you so much, I fixed it 🙃


Updated requirements.txt to pogoapi/dev and pokemon 2nd generation an…

…d auth.json.example, fix bag, moveset and buddy candies
Please Note - You may remove this section before opening your PR
We receive lots of PRs and it is hard to give proper review to PRs. Please make it easy on us by following these guidelines:
Short Description:
Fixes/Resolves/Closes (please use correct syntax):
-Updated requirements.txt to pogoapi/dev and pokemon 2nd generation an…  …
…d auth.json.example, fix bag, moveset and buddy candies.
With this changes, bot is ready to work with new api-server-hash, so u need to buy a key from https://talk.pogodev.org/d/51-api-hashing-service-by-pokefarmer.
Thx to pogarek for help.

Why is this closed? :o thank you for the updated pokemon.json tho

No devs interested in this project since 0.45. This bot is amazing, pogarek fix a lot of issues and bot works again with last api, but u must buy a key license.

@Jcolomar sad, someone should fork it and integrate all the PR's in there which should become the main repo. There's always an interest from people who like to contribute

@heldertb see https://github.com/pogarek/PokemonGo-Bot/tree/dev


ZFS driver: raise better errors during init

The ZFS driver should raise proper errors when the ZFS utility is missing or when there's no zfs device active on the system. Raising the proper errors make possible to silently ignore the ZFS storage driver when no default storage driver is specified.
Previous to this commit it was no longer possible to start the docker daemon in that way:
  docker -d --storage-opt dm.loopdatasize=2GB

The above command resulted in an exit error because the ZFS driver tried to use the storage options.
I acknowledge it's better to be explicit about the storage backend to use, however the ZFS driver should follow the same conventions adopted by the other drivers in terms of error handling.

ping @Mic92 @baloose, thanks :)

hmmm did his nick change? https://github.com/docker/docker/blob/master/daemon/graphdriver/zfs/MAINTAINERS

The pull request looks reasonable to me.
@jfrazelle I am not sure, if he still wants to maintain this. He wrote the initial libzfs-based implementation, but a lot things has changed since then.

ah I see thanks for the review!
LGTM

LGTM


Add TEXT in ColumnType

See https://dev.mysql.com/doc/refman/8.0/en/blob.html
I wonder if this is in the scope of this crate ...

Hi.
ColumnType maps the server enum so there is no way to add or remove a variant (see https://github.com/mysql/mysql-server/blob/trunk/include/field_types.h#L54)


Update endpoint-dlp-learn-about.md

Fixing Windows 10/11
@chrfox

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks

@MasLibman Please update the changes.


CPU deployments?

This library looks excellent.  It works great when I trained with the GPU.  Eventually I'll need to add the model into an app that won't have GPU capability.  Is it possible to do forward-pass on a CPU?  If not, could you provide any pointers for tweaks to make it work?
Thanks for open sourcing such a great project!

Thanks for your interest! Currently we are using cudnn in the CNN part, so we cannot run on pure CPU environment. However, I think you can use cudnn.convert (https://github.com/soumith/cudnn.torch#conversion-between-cudnn-and-nn) to convert the cudnn part to nn.

@da03 In OpenNMT we have a tool called release_model.lua for exactly this use case. https://github.com/OpenNMT/OpenNMT/blob/master/tools/release_model.lua  . Can we check if that works for im2text?

@da03 In OpenNMT we have a tool called release_model.lua for exactly this use case. https://github.com/OpenNMT/OpenNMT/blob/master/tools/release_model.lua  . Can we check if that works for im2text?

Sure I'll check.

Sure I'll check.


GitHub: Invite member

Who should be invited to Catena-X ng
GitHub User:
https://github.com/ds-lcapellino
Access to:

Veracode
Invicti

Vouching person<EMAIL_ADDRESS>Info: Who can verify that the new user is a Member of Catena-X

https://github.com/mkanal

ds-lcapellino has been invited to GH org catenax-ng. Keep in mind that the invitation is valid for 7 days starting today and that the GH org is requiring GH 2fa authentication for login.
After ds-lcapellino has accepted the invite, a GH team maintainer can add him to his GH team.

@the-tatanka Can you onboard the user to invicti? I'm not aware of the procedure here...

@mkanal  In order to add the colleague in Veracode and Invicti, I need the name and mail address.


Storybook > Application Shells > Basic >Small and Large mobile view side nav is not open.

Describe the bug

Small and Large mobile view side nav is not open.
Add Layout Here is not display full screen.

Steps to reproduce bug
1.Go to 'https://stage.raaghu.ai/'
2. Navigate to 'Storybook > Application Shells > Basic'
Actual result-

Small and Large mobile view side nav is not open.
Add Layout Here is not display full screen.

Screenshots

Expected result-

Small and Large mobile view side nav is not open.
Add Layout Here should be display full screen.

Desktop (please complete the following information):
-OS: [Windows 10 Enterprise]
-Browser [ edge]
-Version [ 125.0.2535.92]

Hello @Ketan-Khalate, @kaushikgokhale I need to clarity on 1.Small and Large mobile view side nav is not open.

Need to resolve side nav issue of different views, then this bug can be checked


Running "dotnet restore" fails intermittently due to expired signature

Description
I have been having an intermittent issue for a few months with dotnet restore. It will occasionally fail because:

The repository primary signature's timestamping certificate is not trusted by the trust provider.

One of the packages that trigger this issue is runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0 and its certificate expired on "14/04/2021 14:00:00".
These packages are included because I'm using XUnit.Assert 2.4.2, which targets netstandard1.1, which includes System.Net.Http 4.3.0.
I've made a very simple project that replicates this issue.
The troubling thing with this issue is that it's intermittent, it will only trigger on the first fetch of a package from nuget. Running dotnet restore again after a failed attempt will succeed. This can be used as a workaround, but indicates that package signatures are only verified when downloaded, and then trusted afterwards.

Configuration
Reproduced using DotNet SDK  6.0.307 & 7.0.102.
Using Windows Server 2022 Standard with all windows updates applied.
Regression?

Other information
Here's a full diagnostic log of dotnet restore.
A simple workaround is to run dotnet restore again if it fails the first time.

@bartonjs @vcsjones is this something in your area? Should we transfer this to dotnet/runtime?

@dtivel Would be a starting person for the concern of the UX around expired signatures.
@ericstj Might also have opinions on things like XUnit.Assert 2.4.2 targeting netstandard1.1 (which then chains across into needing ancient RID-specific distribution packages) -- not the specific package, per se, but any of the times that we end up getting those packages ingested in depgraphs.
I can't think of any way that this would result in work in dotnet/runtime.  It's probably most relevant as NuGet client UX feedback; since I don't think we're going to resign ancient packages or do unnatural things to ancient depgraphs.  (If, for some reason, XUnit.Assert builds out of dotnet/runtime then I guess we might start pruning dependencies; but I assume it builds from xunit and we don't own that decision)

It's worth noting that the package signature verification fails intermittently for specific packages as well. These two lines are from separate build jobs, and as you can see the signature was only considered invalid in one of them.
PackageIdentity: runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0 Source: https://api.nuget.org/v3/index.json PackageSignatureValidity: True (TaskId:40)
PackageIdentity: runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0 Source: https://api.nuget.org/v3/index.json PackageSignatureValidity: False (TaskId:40)


INVALID_CARD_DATA issue

I have been receiving this error when trying to create a credit card on file. Not for all clients thought, just some specifics credit cards....
Does anyone know what the problem could be? Cardholder name maybe?
Tried to find on google as well, but couldn't find an answer.
Thanks!

@wviveiro are you receiving an error message with it? The INVALID_CARD_DATA is the error code, but the message could potentially have more information as to why it's being triggered.

@wviveiro please email<EMAIL_ADDRESS>with a bit more detail (like your Square associated email), so that we check our logs to see what the root cause of this error is. Thank you!

@StephenJosey. My team has sent and e-mail to square already, they said they are looking into it, but it's been 3 weeks already.... So I thought that I might find a solution here from people that had the same problem....
But thanks anyways!

@wviveiro just checking back in - were you able to resolve this issue? I believe I saw the case being handled by our customer success team, but just wanted to make sure. I'll close this for now, but if it's not resolved, definitely respond here and I'll make sure we figure it out. Thanks!

Hi @StephenJosey ,
Square went back saying that it is a problem with the customer's bank, and sometimes the errors from the bank are not clear enough....
However the error that is coming back from the API is "Invalid Card Data". The main problem with this error message is that the users from my system believes the error is coming from my form... That would be good if the error was more specific, such error "invalid return from bank issuer", "transaction not authorised" or something like that.
Interesting enough, if I use the same credit card for a one off payment it works fine, it only fails when trying to save credit card on file....
Anyways, my team understand the problem is not from the system now. So case solved I guess
Thank you very much for the follow up @StephenJosey !


Upgrading python version to 3.6 (base image) to support superset 0.28.0

Building is broken because superset now requires python 3.6
Changed the base image from debian to python:3.6 (also debian)

Done!

Thanks!


More active/passive residue choices

Currently the antigen molecule can pick following:

Treat surface residues as passive (in tutorial scenario 1)
Treat selected residues and their surface neighbours as passive (in tutorial scenario 2a)
Treat selected residues as active and their surface neighbours as passive (in tutorial scenario 2b)

It would be nice to generalize this to any molecule with following choices

Surface residues as passive
Selected residues as passive
Selected residues as active
Selected residues as active and their surface neighbours as passive (default)
Selected residues as passive and their surface neighbours also as passive
Select active and passive set of residues
Select active and passive set of residues, with active surface neighbours as passive
Select active and passive set of residues, with passive surface neighbours as passive
Select active and passive set of residues, with active and passive surface neighbours as passive

If we make a checkbox for neighbours as passive then the choices become shorter:

Surface residues as passive
Selected residues as passive
Selected residues as active  (default)
Select active and passive set of residues

Choice 4  would need 2 checkboxes to add neighbours of active selected residues and one for neigbours of passive.


Support for bulk operations

The module support a bulk insert?
Something like: https://docs.mongodb.com/manual/tutorial/insert-documents/#db-collection-insertmany
Thanks

Sorry, I didn't read well the readme and mc_worker_api:insert(Connection, Collection, [ .. ])


stub

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Codecov Report

Merging #282 (4a0b2c7) into master (8fcd430) will decrease coverage by 36.89%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master     #282       +/-   ##
===========================================
- Coverage   57.42%   20.52%   -36.90%
===========================================
  Files         132      129        -3
  Lines       15289    15184      -105
===========================================
- Hits         8779     3116     -5663
- Misses       5958    11774     +5816
+ Partials      552      294      -258

Flag
Coverage Δ

1.14.x
?

1.15.x
?

1.16.x
?

1.17.x
20.52% <ø> (-36.84%)
:arrow_down:

1.18.x
?

connection
?

discovery
12.01% <ø> (ø)

e2e
20.52% <ø> (-25.17%)
:arrow_down:

integration
20.52% <ø> (-25.17%)
:arrow_down:

macOS-latest
?

ratelimiter
14.82% <ø> (ø)

scripting
15.26% <ø> (ø)

table
?

ubuntu-latest
20.52% <ø> (-36.84%)
:arrow_down:

unit
?

windows-latest
?

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

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fcd430...4a0b2c7. Read the comment docs.


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add nyc from template
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template
chore(package): set $.ava.extensions='js,mjs' as in template

Codecov Report

Merging #465 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #465   +/-   ##
=======================================
  Coverage   75.34%   75.34%
=======================================
  Files           5        5
  Lines         434      434
=======================================
  Hits          327      327
  Misses        107      107

Impacted Files
Coverage Δ

src/stats-collector-interceptor.js
52.05% <0%> (-1.37%)
:arrow_down:

src/timeout-interceptor.js
78.78% <0%> (+1.51%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 210ea7a...66d23e0. Read the comment docs.

Coverage remained the same at 76.68% when pulling 66d23e0726155d7ab2df1c709ad765874aa1ad05 on template-sync-1 into 210ea7ab7a7c5e85aba21dd2f60f4e9a9398d13b on master.


Fix path to cc boilerplate

fixing path in the boilerplate from repo-infra ro cluster-capacity
running the boilerplate verification as part of the integration tests

@redhat-k8s-bot test please

lgtm

Thanks guys. I will merge it tomorrow once the CI is finished. There are still some minor issues I need to fix.

@redhat-k8s-bot test please


metadata.rb missing

Hello,
My org maintains an internal supermarket with strict license restrictions, automated by checking the metadata.rb file. This repo doesn't have metadata.rb so I am not able to pull in the cookbook internally despite your licensing being compatible.
Would you please consider adding metadata.rb and tagging a new release?
Thank you!

This is not a normal cookbook, the license is listed in the gemspec metadata. The cookbook form is a compiled artifact which I create during releases. You can find the cookbook version on the public Supermarket. Consuming pre-release versions is documented in the Halite readme but is not recommended.

I'm sorry, I misspoke. My repo maintainer was talking about metadata and I was looking at a metadata.rb file. I'm not looking to utilize prerelease software; the issue I'm encountering is that we have a hard license-based whitelist for external dependencies; we can only depend on items on the internal repo which are whitelisted by license.
The problem is that in the metadata.json in the compiled artifact, the license field reads "none" instead of "Apache 2.0", which is what my organization's whitelist filter is looking at. This is in contrast to your poise-python cookbook which shows this correctly. This is what I'm asking for a correction on.
Please let me know if I can clarify further.

The current release predates me adding the license metadata (as well as many other things) in the Halite converter. It will show up when I do the next release automatically. I can't retroactively update old releases though, and current this repo's tests are red pending a new release of poise-service, which is pending about a half dozen other things.


In functions log topic appender, don't set producer name

Motivation
When enabling log topic in functions, we shouldn't set the producer name, otherwise multiple function instances will fail to produce on the log topic.
At the same time:

Increase batch time to have more batching (since the latency hit will not be important here)
Enabled LZ4 compression, since it's always good for logs.

run integration tests


Locally compact Hausdorff spaces with $G_\delta$ points

Locally compact Hausdorff spaces with $G_\delta$ points i.e. with countable pseudocharacter are first countable.
https://math.stackexchange.com/questions/1288595/x-a-locally-compact-haussdorf-space-each-singleton-of-which-is-the-intersection?noredirect=1&lq=1#comment2616696_1288595
There is no property of $G_\delta$-points that I am aware of in pi-base, but there is a property of $G_\delta$-space.
So we have a theorem that doesn't yet exists on pi-base (and $G_\delta$-space could be replaced with countable pseudocharacter in the future):
Locally compact + Hausdorff + $G_\delta$-space => first countable
If countable pseudocharacter property is to be added, one can also include:
$T_1$ + first countable => countable pseudocharacter

FYI, @Almanzoris is working on this as part of #695 and related PR. It's work in progress. And thanks for the reference.  That will be useful.

Ah. That makes a lot of sense. I'll close the issue then

Feel free to comment on #695 if you have any opinion.


Feature request: Load autocomplete in terminal by default

What would you like to be added:
I want Lens to automatically load autocomplete when using bash or zsh as shell.
Why is this needed:
kubectl completion is pretty slow, so it's annoying to use it for all unrelated terminals. But in Lens the purpose is almost always to work with kubectl.
Environment you are Lens application on:
Fedora 33 with zsh
source <(kubectl completion zsh)
# *or*
source <(kubectl completion bash)

Can you set this up in your own configuration?

I used to, but it so slow that I disabled it universally. I would love to have it only in Lens' terminal since I need it here anyway :)

Has this issue been resolved?

Not as of 2022.10.181357-latest :)

If you want you can use the fact that we set the TERM_PROGRAM to be lens in the environment. You can check this in your .zshrc file or .bashrc file.

Ah cool, that will solve my issue! Thanks :)

if [[ $TERM_PROGRAM = Lens ]]; then
  autoload -Uz compinit && compinit
  source <(kubectl completion zsh)
fi


PDF Generation error with process optimization

If you select "Process optimization & workflow automation: Analyzing large data sets to identify and anomalies, cluster patterns, predict outcomes or ways to optimize; and automate specific workflows" on pp 5 (About the system), the PDF fails to generate on the results screen, with the error below. I suspect the very suspicious ampersand.
pdfmake.min.js:37 Uncaught Unrecognized document structure: {"ul":"","style":["html-ul"]}

Sample file to reproduce
process_optimisation.json.txt

Flipping the ul to div in MultiChoiceResult, to match MultiChoiceValueResult more or less, fixed it, but... I'll play with the ampersand before calling it a day.


Alexa workshop fixes

Issue #, if available:
Fixes of the Alexa workshop for inclusion in the upcoming Retail Immersion Day
Description of changes:

remove of Amazon Pay
cosmetic changes on the Alexa Skill

Description of testing performed to validate your changes (required if pull request includes CloudFormation or source code changes):
walk through the workshop
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Integration test on this branch: success


Problem binding TIMESTAMP

Problem using a CURRENT_TIMESTAMP() spanner function.
Example.
INSERT INTO providers
(provider_id, created, device_id, document_number, document_type_id, name, notification, phone, updated, last_access, deleted, token_fcm)
VALUES('000000', CURRENT_DATE(), 'not-device-id', null, null, 'provider-promocion', false, null, CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP(), false, 'not-token');
this query produces a SQL Error: Internal jdbc driver error
SQL Error: Internal jdbc driver error
SQL Error: Internal jdbc driver error
SQL Error: Internal jdbc driver error
Internal jdbc driver error
Incomplete binding for column created
Incomplete binding for column created

The problem is that the driver is trying to convert the entire insert statement into a Cloud Spanner mutation without a roundtrip to the database. This is not possible because of the CURRENT_DATE() and CURRENT_TIMESTAMP() calls. Try this instead:
INSERT INTO providers
(provider_id, created, device_id, document_number, document_type_id, name, notification, phone, updated, last_access, deleted, token_fcm)
SELECT '000000', CURRENT_DATE(), 'not-device-id', null, null, 'provider-promocion', false, null, CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP(), false, 'not-token'
;

This will force the driver to do a roundtrip to the server and fetch the values for CURRENT_TIMESTAMP.

A more descriptive error message has been added for the next version.

Fix (more descriptive error message) released in version 1.1.1.


Fix typos in doc comments

iff -> if

That was actually not a typo; see iff. However, just using "if" here isn't wrong either, and is probably clearer.


Fix icon alignment in page listings

Fixes an issue on Safari introduced in bb12877f7903a62736f3e9058f235dc7ed5a4d04, while also improving the alignment of the site/folder icon on other browsers.

Safari before/after

Screenshots

Chrome before/after

Screenshots

Firefox before/after

Screenshots

The second commit fixes #11875.


[SIL] Access to globals are deinit barriers.

rdar://98542123

@swift-ci please test

@swift-ci please benchmark

@swift-ci please test

@swift-ci please benchmark

Added check for possible external use and test case.

@swift-ci please test

@swift-ci please benchmark

After discussing this and realizing there's no real obvious distinction between "external" globals and globals in general, I'm fine just being pessimistic in the presence of any global variable access. (Hopefully we'll be able to stop treating top-level variables as globals soon.)

Removed check for external use and modified test case; changed variable name isInteresting -> retval.


Port share config

First of all, great script :)
My setup might not be that unusual, but the networks I'm in sometimes are as they only allow to me get out via a few selected ports. The HTTPS port 443 is among them, so that's what my VPN is configured to. My server also has nginx running on a different port and OpenVPN's port-share does the magic of bringing it all together.
Maybe an additonal question/set about port-share could be beneficial for other users? It does require you to use TCP instead of UDP.

port-share can be useful for the censorship issue #464 to mask the openvpn server.


Add a drawRect and drawCircle method

Not sure if primitives should be added to the lib or if they should be in a
separate module.

Thank you so much for this! I agree that perhaps the primitives should be broken out into module(s) but for now we can merge them in here.
I made a couple of pedantic stylistic changes (forgive me), and updated the README with the new methods you added 👍 Publishing this to npm in a moment.
Thanks again 👏


Allow ephemeral workers

I'm creating this initial commit for ephemeral workers to get feedback on my direction and pointers on things I may have missed

@tanner-bruce Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

Hi :wave:. Could please provide clarification around what problem this work is trying to solve (for people looking from the outside in) or link this to a specific issue? This sounds like something I should care about, but more context would help.

@tanner-bruce Sorry it took us so long to initially review this. Just checking in to see if you still have time to iterate on this. If not we're happy to pick things up from here!

This doesn't seem to work with the binary distribution.
It looks like we share the config struct that provides the flags between concourse/worker and concourse/bin, but then we construct an atc.Worker independently in both, and concourse/bin wasn't updated to grab the Ephemeral flag. Can we consolidate this code?:

https://github.com/concourse/worker/blob/344d6196df9323f36f027fb3dc86dc97ff3a1582/start/start_runner.go#L75
https://github.com/concourse/bin/blob/6ef6b355774caf40d940c260b3f287b3af78a6d1/cmd/concourse/worker_linux.go#L74
https://github.com/concourse/bin/blob/6ef6b355774caf40d940c260b3f287b3af78a6d1/cmd/concourse/houdini.go#L36


Cache FileStreamer promise in FileFetcher.

Cache FileStreamer promise in FileFetcher to prevent duplicate NIfTI file download requests.

i want to remove cache,how to do?


Smart Editor - Option to enable preset on field on all layers

Widget
Smart Editor
Version of widget
2.1
Enhancement
Ability to set pre-sets across multiple fields. For example: project layer contains approx. 20 fields all with all the same ProjectID field. Would like to be able to have all fields that are ProjectID have a preset value assigned by the user

I am thinking you would double click a layer, a dialog would appear with a list of the other layers, you select and it applies them


Accurate search results

So, I managed to do what was asked for in #250
Let me know if it's not the most optimal way.
I was limited with options because the same searchTerm was used at 3-4 (search api and results) different places so had to change another file.

Having some trouble with the Travis build, going to go ahead and merge till I figure that out. Thanks again!

Ahah, You're welcome :D


Better SSH UX

Personally I use 1Password's SSH agent, so auth is little more than touching a fingerprint reader. But I'm guessing if you use password / passphrase auth, the program will seem like it's hanging while waiting for you to paste a password.
That's what I hope at least. It might just not work altogether.

I'm actually gonna close this. After using this in Windows, macOS, and Linux, they all just work.


Engagement is Basic

Problem
When I set up a campaign and only go through the Basic steps, I don't get user engagement.
Proposed Solution
Engagement should be on by default.

covered with #214

fixed it by update surveys


Update sites.yml

This PR is:

[x] Adding a new domain
[ ] Updating existing domain size
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (512kb.club site)
[ ] Other not listed

[x] I used the uncompressed size of the site
[x] I have included a link to the Cloudflare report
[x] This site is not an ultra minimal site
[x] The following information is filled identical to the data file

I confirm that I have read the FAQ section, particularly the two red items around minimal pages and inappropriate content and I attest that this site is neither of these things.

[x] Check to confirm

- domain: davidd.eu
  url: https://davidd.eu/
  size: 420.97
  last_checked: 2024-11-24

Cloudflare Report: https://radar.cloudflare.com/scan/ee0d7fc4-842e-47ff-8610-1e0d3b9b45ef/summary

This is classed as ultra-minimal I'm afraid.


Show errors in vertical split

I'd like to set up vim to show my code on the left and the errors on the right. I can do this by splitting my window and doing :copen to open the quickfix window on the right. When I save, however, things get crazy:
http://cl.ly/0p1Q3d3Y1s1I
(click through for video)
Is it possible to set up this configuration?

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.


"Go to Definition" does not work for locating types & methods external to project folder structure

For classes and methods found outside of my project's folder structure, I am unable to go to definition. The editor knows how to pull in the excerpt for the description, however, upon clicking the "Go to Definition" button, it does nothing.
For ASP.NET 5, all framework references have been moved into nuget packages, so they are all external to my project's folder structure.
How should I go about figuring out what particular types and methods look like in ASP.NET 5 that are located in nuget packages? Is there an easier way to figure out which nuget package a particular class or method comes from?

This issue was moved to OmniSharp/omnisharp-vscode#29


add link to examples

Basically I made this PR because I actively looked for examples and couldn’t find them.
i think the optimal solution is to move them to the top level, but this is a nice seconf

We can move the examples instead 👍

Moved examples to top level.


Backfill - add url for new subs bundle (#190)

Codecov Report
Patch and project coverage have no change.

Comparison is base (5aba45f) 89.17% compared to head (84389e5) 89.17%.
 Consider uploading reports for the commit f4eb19e to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #191   +/-   ##
=======================================
  Coverage   89.17%   89.17%
=======================================
  Files          40       40
  Lines         702      702
  Branches      134      134
=======================================
  Hits          626      626
  Misses         76       76

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

/retest


Add rocky vulnerability source updater using RLSA

Add rocky vulnerability source updater using RLSA (Rocky Linux Security Advisories). https://errata.rockylinux.org

FWIW: this PR stage can be changed to ready for review, don't have ability to change it myself.

FWIW: this PR stage can be changed to ready for review, don't have the ability to update that myself.

Thank you for your contribution! We will try to review this for you in a timely manner. In the meantime, it looks like you are unable to trigger CI. This is something which should be fixed sometime in the future (I'm estimating by end of July/early August). In the meantime, I can make a PR which is a copy of this which will run CI for you, if you would like

@RTann Sounds good, and I'd very much appreciate you copying the PR for CI purposes. Could you do the same for my other PR's as well?

@RTann, I'm similarly affected by the lack of support for Rocky Linux. I know you previously mentioned here that you were targeting late July/early August for support of Rocky - is that still an accurate target?

@msierks apologies for the delay. I will look into this now. One question I have is: is there a license for the Rocky Linux errata? I did not find anything, but we would need to ensure we are within the legal bounds of usage.

@RTann That's a good question, this is the only information I was able to find regarding licensing which is worded to include "All elements of the Rocky Linux operating system".
https://rockylinux.org/licensing/
I'll see what else I can find.

One other thing to note is the errata api will be releasing a v2 api at some point which I've been told will contain package metadata.

I'm not sure if https://rockylinux.org/licensing covers the errata, so I can't tell if we are allowed to use this data source. It doesn't look like the documentation says too much about it, unfortunately

This data is part of peridot, which sources it from Red Hat. The RH source is indicated under the SubCVE, which is under the following license requirements. https://access.redhat.com/documentation/en-us/red_hat_security_data_api/1.0/html/red_hat_security_data_api/legal-notice

@msierks if you feel you've responded to @RTann comments and would like him to take another look, feel free to use "Re-request review" button.

Also, to test out the actual download of these vulns, you should add the generate-dumps-on-pr label. Without that label, we just use previously generated data (this helps to speed up CI for PRs which don't touch vulns)

Also, to test out the actual download of these vulns, you should add the generate-dumps-on-pr label. Without that label, we just use previously generated data (this helps to speed up CI for PRs which don't touch vulns)

@RTann Unfortunately it appears I'm not able to set labels on this PR.

Also, to test out the actual download of these vulns, you should add the generate-dumps-on-pr label. Without that label, we just use previously generated data (this helps to speed up CI for PRs which don't touch vulns)

@RTann Unfortunately it appears I'm not able to set labels on this PR.

Sorry didn't know. I added it now. Can you retrigger CI? (something like git commit --allow-empty -m "CI")

@RTann Doesn't seem new commits are triggering the CI for this PR.

/ok-to-test

@msierks should be good to go now

@msierks unfortunately the CI seems to have failed. Can you please look into that and also rebase your branch to resolve the conflicts that have accumulated so far?

Closing this stale PR.
Please feel free to reopen once you resolve the conflicts.


Add documentation for multiple instances.

Motivation and Context
Added documentation regarding multiple instances.
Most of the configuration is copied from Confluence/Ansible.

I activated this branch on RTD: https://artemis-platform.readthedocs.io/en/docu-distributed-setup/dev/setup/distributed/

@jpbernius Thanks!


Egl dust off2

This PR is Closes https://github.com/coin3d/coin/issues/451 Issue by adding EGL support for the Coin library. Use COIN_BUILD_EGL option to force EGL build. Still WIP, do not merge. - @epuzanov

The purpose of this PR is to clean up #471, add https://github.com/coin3d/coin/commit/b49b8b4713c2503cb25fe8e149aba3eafd18af60, rebase, and trigger CI in a non-draft PR.

I have now tested this, and can confirm it makes FreeCAD run on Wayland.
As far as I can tell, this fixes...
https://github.com/FreeCAD/FreeCAD/issues/6068
https://github.com/FreeCAD/FreeCAD/issues/6288
https://github.com/FreeCAD/FreeCAD/issues/9273
https://github.com/FreeCAD/FreeCAD/issues/13144
https://github.com/FreeCAD/FreeCAD/issues/16393

However, if one tries to create a rectangle in FreeCAD Sketcher, SIGSEGV happen.

 This is considered to be hazardous and error prone, and we strongly advice you to change your code and/or reorganize your scene graph so that this is not necessary.
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x45320) [0x7f5fa0245320]
#1  0x7f5f9f855067 in SoAction::traverse(SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x2b
#2  0x7f5f9faf625b in SoChildList::traverse(SoAction*, int, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x1bd
#3  0x7f5f9faf65ac in SoChildList::traverse(SoAction*, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x6c
#4  0x7f5f9fb6e24a in SoGroup::getBoundingBox(SoGetBoundingBoxAction*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x18a
#5  0x7f5f9fb93bfa in SoSeparator::getBoundingBox(SoGetBoundingBoxAction*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x666
#6  0x7f5f9fb7a702 in SoNode::getBoundingBoxS(SoAction*, SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x7e
#7  0x7f5f9f8550d3 in SoAction::traverse(SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x97
#8  0x7f5f9faf625b in SoChildList::traverse(SoAction*, int, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x1bd
#9  0x7f5f9faf65ac in SoChildList::traverse(SoAction*, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x6c
#10  0x7f5f9fb6e24a in SoGroup::getBoundingBox(SoGetBoundingBoxAction*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x18a
#11  0x7f5f9fb93bfa in SoSeparator::getBoundingBox(SoGetBoundingBoxAction*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x666
#12  0x7f5f9fb7a702 in SoNode::getBoundingBoxS(SoAction*, SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x7e
#13  0x7f5f9f8550d3 in SoAction::traverse(SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x97
#14  0x7f5f9f855b77 in SoAction::beginTraversal(SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x27
#15  0x7f5f9f863dfc in SoGetBoundingBoxAction::beginTraversal(SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x68
#16  0x7f5f9f853d7e in SoAction::apply(SoNode*) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x3f6
#17  0x7f5f9fc8920d in SoRenderManagerP::setClippingPlanes() from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x135
#18  0x7f5f9fc856a7 in SoRenderManager::renderScene(SoGLRenderAction*, SoNode*, unsigned int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x14d
#19  0x7f5f9fc85468 in SoRenderManager::actuallyRender(SoGLRenderAction*, int, int, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x13c
#20  0x7f5f9fc857c7 in SoRenderManager::renderSingle(SoGLRenderAction*, int, int, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0xe1
#21  0x7f5f9fc85262 in SoRenderManager::render(SoGLRenderAction*, int, int, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0xfe
#22  0x7f5f9fc8514d in SoRenderManager::render(int, int) from /home/bensay/Development/coin-build/coin_egl_build/lib/libCoin.so.80+0x2cd
#23  0x7f5fa614e6b8 in SIM::Coin3D::Quarter::QuarterWidget::actualRedraw() from /home/bensay/Development/FreeCAD-build/lib/libFreeCADGui.so+0x58
#24  0x7f5fa61afebf in Gui::View3DInventorViewer::renderScene() from /home/bensay/Development/FreeCAD-build/lib/libFreeCADGui.so+0x2f3
#25  0x7f5fa61af67f in Gui::View3DInventorViewer::actualRedraw() from /home/bensay/Development/FreeCAD-build/lib/libFreeCADGui.so+0x3b
#26  0x7f5fa614e3c2 in SIM::Coin3D::Quarter::QuarterWidget::paintEvent(QPaintEvent*) from /home/bensay/Development/FreeCAD-build/lib/libFreeCADGui.so+0x2cc
#27  0x7f5fa6158038 in SIM::Coin3D::Quarter::SoQTQuarterAdaptor::paintEvent(QPaintEvent*) from /home/bensay/Development/FreeCAD-build/lib/libFreeCADGui.so+0x60
#28  0x7f5fa19b0df8 in QWidget::event(QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x278
#29  0x7f5fa1a62647 in QFrame::event(QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x27
#30  0x7f5fa614e611 in SIM::Coin3D::Quarter::QuarterWidget::viewportEvent(QEvent*) from /home/bensay/Development/FreeCAD-build/lib/libFreeCADGui.so+0x1cf
#31  0x7f5fa0cd7e82 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x92
#32  0x7f5fa196bd35 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x75
#33  0x7f5fa5c0a3c0 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/bensay/Development/FreeCAD-build/lib/libFreeCADGui.so+0x118
#34  0x7f5fa0cd8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x128
#35  0x7f5fa19a8aee in QWidgetPrivate::sendPaintEvent(QRegion const&) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x3e
#36  0x7f5fa19a94a9 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags, QPainter*, QWidgetRepaintManager*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x969

I can't compile on my setup at this time.  Maybe some of these folks can ?
@looooo, @wwmayer, @wandererfan, @paddlestroke, @mwganson

I tried latest 1.0 branch of freecad on kde neon (more or less ubuntu 22.04). I have to set env-variable COIN_GL_NO_CURRENT_CONTEXT_CHECK to avoid triggering of an assert but apart from that it seems to work, creating rectangles, lines, arcs does work.

@rmu75 just to clarify: it works using sketcher having compiled FreeCAD with this Coin branch? And you are sure you chose EGL build when compiling?

I compiled against benj5378:eglDustOff2 branch. Pretty sure it is using native wayland as the font rendering and dpi scaling looks completely different vom my XWayland setup. And the log is spammed with "(qt.qpa.wayland) Wayland does not support QWindow::requestActivate()" messages which don't appear when using XWayland.
Rotation and panning is very smooth, but zooming is stuttering and causes spikes in CPU usage and immediate spin up of cpu cooler.

Sometimes a warning Coin warning in glxglue_isdirect(): Couldn't get current GLX context. is triggered

I will re-check if it is really using EGL and not some kind of software rendering.

So I rebuilt libcoin with COIN_BUILD_EGL enabled, ldd confirms that FreeCAD imports libEGL.so next to libOpenGL and libGLX, but nonetheless I suspect it is using software rendering.

So after rebuilding FreeCAD situation is more or less unchanged, it seems to work as usual when started with QT_QPA_PLATFORM=xcb. With QT_QPA_PLATFORM=wayland zooming is a bit sluggish and CPU usage seems to be higher but everything including sketcher seems to work.
How can I check if it is really using EGL?

@rmu75, if you used the COIN_BUILD_EGL, then it should be EGL I guess. But I have no idea how to check. Qt will spit out Wayland warning even if not using EGL build Coin, as far as I know? Weird that I get those Sketcher crashes, but you don't

So I rebuilt libcoin with COIN_BUILD_EGL enabled, ldd confirms that FreeCAD imports libEGL.so next to libOpenGL and libGLX, but nonetheless I suspect it is using software rendering.

Perhaps you can find a GPU monitoring tool that will show whether your process is software rendering or not?

running with EGL_LOG_LEVEL=debug spews out a bunch of debug info like
libEGL debug: using driver i915 for 33

libEGL debug: using driver i915 for 33

libEGL debug: pci id for fd 33: 8086:591b, driver iris

libEGL debug: MESA-LOADER: dlopen(/usr/lib/x86_64-linux-gnu/dri/iris_dri.so)

libEGL debug: did not find extension DRI_Kopper version 1

libEGL debug: No DRI config supports native format XBGR2101010
libEGL debug: No DRI config supports native format ABGR2101010
libEGL debug: No DRI config supports native format ABGR8888
libEGL debug: No DRI config supports native format XBGR8888
(qt.qpa.wayland) Wayland does not support QWindow::requestActivate()
(qt.qpa.wayland) Wayland does not support QWindow::requestActivate()
libEGL debug: eglPrintConfigDebug: nothing to print
libEGL debug: ---------------
libEGL debug: Configurations:
libEGL debug: cho       bf lv colourbuffer dp st  ms           vis  cav  bi     renderable           supported
libEGL debug: sen    id sz  l  r  g  b  a  th cl ns b           id  eat  nd  gl es es2 es3 vg         surfaces
libEGL debug: ---------------
libEGL debug:     0x001 32  0 10 10 10  2   0  0  0 0 0x00000000--            y  y   y   y                win,
libEGL debug:     0x002 32  0 10 10 10  2  16  0  0 0 0x00000000--            y  y   y   y                win,
libEGL debug:     0x003 32  0 10 10 10  2  24  0  0 0 0x00000000--            y  y   y   y                win,
libEGL debug:     0x004 32  0 10 10 10  2  24  8  0 0 0x00000000--            y  y   y   y                win,
libEGL debug:     0x005 32  0 10 10 10  2   0  0  2 1 0x00000000--            y  y   y   y                win,
libEGL debug:     0x006 32  0 10 10 10  2   0  0  4 1 0x00000000--            y  y   y   y                win,

Not sure how to proceed, out of time for today.
so at least EGL seems to be initialized.

running with LIBGL_ALWAYS_SOFTWARE is a big difference (nothing is smooth any more) so I'm pretty sure that without that it is actually using the GPU.

I will re-check if it is really using EGL and not some kind of software rendering.
Seems I was overly enthusiastic and didn't compile with COIN_BUILD_EGL enabled... will re-check.

AFAIU without COIN_BUILD_EGL this doesn't link to libEGL. But even then EGL is loaded dynamically if needed (via egl glue code?).

I managed to compile libcoin and FreeCAD with cmake -DCOIN_BUILD_EGL=ON for libcoin. FreeCAD shows the splash screen but then crashes when the main window attempts to open:
FreeCAD: /home/gael/04-sources/freecad/FreeCAD/src/Mod/Sketcher/Gui/SoZoomTranslation.cpp:66: static void SketcherGui::SoZoomTranslation::initClass(): Assertion `!SoViewVolumeElement::getClassTypeId().isBad()' failed.

Before the crash I also get some warnings:
QOpenGLFunctions created with non-current context
(qt.qpa.wayland) Wayland does not support QWindow::requestActivate()

With EGL_LOG_LEVEL=debug ./bin/FreeCAD I get
libEGL debug: using driver i915 for 8

libEGL debug: using driver i915 for 8

libEGL debug: pci id for fd 8: 8086:a7a0, driver iris

libEGL debug: MESA-LOADER: dlopen(/usr/lib/x86_64-linux-gnu/dri/iris_dri.so)

libEGL debug: did not find extension DRI_Kopper version 1

libEGL debug: No DRI config supports native format XBGR2101010
libEGL debug: No DRI config supports native format ABGR2101010
libEGL debug: No DRI config supports native format ABGR8888
libEGL debug: No DRI config supports native format XBGR8888
libEGL debug: No DRI config supports native format XRGB1555
libEGL debug: No DRI config supports native format XRGB4444
...

It's strange that libEGL is using the i915 driver because I have a discrete NVIDIA card that it's supposed to use not the integrated GPU.
export COIN_GL_NO_CURRENT_CONTEXT_CHECK=1 before launching FreeCAD doesn't seem to have any influence.
Please note that the system packages libcoin-dev (4.0.0+ds-2) and libcoin80c (4.0.0+ds-2)  are installed on my system.
FreeCAD 1.1.0 Revision: 38844 +2 (Git)

Library versions:
boost    1_74
Coin3D   4.0.3
Eigen3   3.4.0
OCC      7.8.1
Qt       5.15.3
Python   3.10.12
PySide   5.15.2
shiboken 5.15.2
SMESH    <IP_ADDRESS>
VTK      9.1.0
xerces-c 3.2.3

bump

Me and @hyarion have been considered what might be needed to maintain Coin for future use in FreeCAD. This includes EGL support and reaction to OpenGL currently being outphased in the industry.
Might be on hold until FreeCAD community have taken a decision on whether Coin should be used forward on.
I have no experience with Coin or EGL. I could read tons of docs on how to support EGL, but currently looking for people with experience in the area to help out.

cc @chennes @yorikvanhavre

At FreeCAD we currently have no plan to migrate out of coin. There have been several discussions among developers about it, and while coin is not actively being worked on, it's a fantastic library, many developers love it, it is simple to use, suits perfectly the needs of FreeCAD, and is extensible enough so it should provide the few things we feel are missing in FreeCAD (shadows, ambient occlusion, "filled" sections, etc)
Also, a big question if we thought of replacing it (which would be very extensive work), would be: replacing it with what, and there is no clear or easy answer to that question.
For me the conclusion to those discussions was that FreeCAD developers clearly want to stick with coin, and, if needed (basically: if maintenance or packaging become a problem, or if coin maintainers would want that), we would I think be ready to carry its maintenance ourselves.

I looked at MGL on Apple M3 laptop to see if that technology could be used as a wrapper on metal for bringing Coin OpenGL to the new Apple machines. The MGL open source is very poorly supported and I was unable to bring up the test suite on it. So I'm not recommending that approach without an investment in fixing it/MGL.
It would be interesting to see if the low-level, OpenGL-based rendering interface for Coin could be made abstract and generic enough to support different 3D rendering pipelines. It may be a pipe dream, though, and take a considerable amount of work with lots of limitations for each platform.

@yorikvanhavre

..., it's a fantastic library, many developers love it, it is simple to use, suits perfectly the needs of FreeCAD, and is extensible enough so it should provide the few things we feel are missing in FreeCAD (shadows, ambient occlusion, "filled" sections, etc)

Exactly that was the motivation a few years ago when I started to move Coin over to Github and spent a large amount of time to get the build process running with GitHub Actions. To me Coin seemed to good to let it die. I have used it a very long time in a physics simulation software for visualisation.

Also, a big question if we thought of replacing it (which would be very extensive work), would be: replacing it with what, and there is no clear or easy answer to that question.

I coudn't answer that either and spent some time with Qt3D, but Coin feels to me more like batteries included. It's easy to quickly get something up and running.

For me the conclusion to those discussions was that FreeCAD developers clearly want to stick with coin, and, if needed (basically: if maintenance or packaging become a problem, or if coin maintainers would want that), we would I think be ready to carry its maintenance ourselves.

As for now packaging is not a problem. Releasing is simply adding first time contributors to the THANKS file, a ChangeLog file, bumping the version number and tagging the release. Everything else runs fully automated on Github and AppVeyor. And, most linux distributions and vcpkg include a ready to install package for Coin, simage, SoQt and Quarter. As FreeCAD is one of the largest software packages using Coin, please drop a issue or a note when a new minor or major release is planned and some fixes need to be released.

the discussion that is going seems like it's better have in the issue rather than on a pull request, it is not clear to me what is the status of this PR, are there remaining problems with it?

I compiled your branch and used it against Freecad but the issue still occurs, I might be doing something wrong:
$ LD_PRELOAD=/usr/local/lib/libCoin.so.80 freecad
FreeCAD 1.0.0, Libs: 1.0.0R39109 (Git)
(C) 2001-2024 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.

Coin warning in cc_glglue_instance(): Error when setting up the GL context. This can happen if there is no current context, or if the context has been set up incorrectly.
Coin warning in glxglue_isdirect(): Couldn't get current GLX context.
Coin warning in SoGLPolygonOffsetElement::updategl(): OpenGL driver doesn't support z-buffer offset

Very laggy and completely white 3d view.
Specs:
nvidia-dkms 565.77-1
KDE Wayland

Vertices and distance constraints work fine, but arcs, rectangles and lines causes a crash

@benj5378, I can reproduce the segfault you get but this also happens on the coin master branch, 4.0.3 tag and on this branch with COIN_BUILD_EGL = OFF. This happens when building Coin with a Debug build type. If I use a RelWithDebInfo build type the segfault does not happen. So I think it is safe to say that this PR is not the source of the segfault and so we can probably ignore it for this PR.
However, FreeCAD + Coin with COIN_BUILD_EGL = ON does not use wayland on my PC. when using xeyes, the eyes are following my mouse while hovering FreeCAD, indicating it is not wayland.

@VolkerEnderlein The EGL support effort has been sitting still for a few years now, with seemingly no plan in sight to merge it.
I have a few local improvements on top of this for which I would like to send PR, but at this rate not sure how to plan it.
As well as a more wider effort to introduce modern OpenGL rendering support (ES 2.0+ / 3.0+), but at this rate I am worried to even spend so much effort on it for it to be code rotting in the PR queue.
I recently discussed in FreeCAD Discord development channel about this work and about this specific concern.
Everyone feels like working with upstream is the way to go, but we need some kind of support from your side to make it happen.
Without some support/changes, the only action left to take, in my opinion, is to advocate for and create a FreeCAD-specific fork of Coin3D where development can happen going forward.

Thanks for reaching out @tritao, is there anything I can do to support your work? Should we create a new branch on the Coin side that bundles all the EGL work that has been done so far to make development easier? My knowledge about EGL and Wayland is very limited up to now, so I was happy when @WizzerWorks jumped in to support you. Cheers, Volker

So my previous message was on my PC with RTX 3060 Ti and driver 565.77 on Fedora 41 KDE. I just tried this branch on my laptop which has integrated intel graphics UHD 630 and then it just works. But when I run on the dedicated GPU in my laptop GTX 1050 with driver 565.77 on Fedora 41 KDE then I also get a white screen and errors. So maybe a NVIDIA problem....?