出现了 panic: eventQueue is full 的错误，请求帮助Help,Help

我想找到标签是 class="mywatch" 中的内容，我使用如下代码：
ctx, cancel := chromedp.NewContext(context.Background())
defer cancel()
var res string
url := "https://www.abcddd.com/"
err := chromedp.Run(ctx,
	chromedp.Navigate(url),
	chromedp.Text(`mywatch`, &res, chromedp.NodeVisible),
)
if err != nil {
	log.Fatal(err)
}
   Println(res)

出现错误如下：
panic: eventQueue is full
goroutine 70 [running]:
github.com/chromedp/chromedp.(*Browser).run.func2(0xc002cd3600, 0xc000044180, 0x95d5a0, 0xc002e7d9e0)
D:/GOPATH/src/github.com/chromedp/chromedp/browser.go:351 +0x7d7
created by github.com/chromedp/chromedp.(*Browser).run
D:/GOPATH/src/github.com/chromedp/chromedp/browser.go:327 +0x14a
Help,Help

Thanks, we've also seen this happen sometimes. I'll take a look.

Thanks, we've also seen this happen sometimes. I'll take a look.

谢谢，等待好消息... Thanks

Sorry, what? The issue is already fixed in master.

Sorry, what? The issue is already fixed in master.

That's settled. Thank you very much.


RMatrix attributes and class in comparison to base R's matrix

Hi! Again, thank you for this amazing crate!
The result from RMatrix, in R, seem a little different from base R's Matrix. Is it supposed to work like that? Shouldn't all.equal be TRUE right out of the box?
Code:
library(rextendr)

m1 = rust_eval(
  code = "
    use extendr_api::prelude::*;

    let mut vec: Vec<f32> = vec![1.,2.,3.,4.,5.,6.];

    RMatrix::new(vec, 2, 3)
 "
)

m2 = matrix(c(1,2,3,4,5,6), 2, 3)

m1

m2

attributes(m1)

attributes(m2)

class(m1)

class(m2)

all.equal(m1, m2)

Output:
> m1
     [,1] [,2] [,3]
[1,]    1    3    5
[2,]    2    4    6
attr(,"class")
[1] "matrix"
>
> m2
     [,1] [,2] [,3]
[1,]    1    3    5
[2,]    2    4    6
>
> attributes(m1)
$dim
[1] 2 3

$class
[1] "matrix"

>
> attributes(m2)
$dim
[1] 2 3

>
> class(m1)
[1] "matrix"
>
> class(m2)
[1] "matrix" "array"
>
> all.equal(m1, m2)
[1] "Attributes: < Names: 1 string mismatch >"
[2] "Attributes: < Length mismatch: comparison on first 1 components >"
[3] "Attributes: < Component 1: Modes: character, numeric >"
[4] "Attributes: < Component 1: Lengths: 1, 2 >"
[5] "Attributes: < Component 1: target is character, current is numeric >"

I agree these should be the same.

Thanks for reporting. It seems we already fixed the behavior in #190 (RMatrix::new() was removed at that time, btw).
library(rextendr)

m1 = rust_eval(
  code = "
    use extendr_api::prelude::*;

    RMatrix::new_matrix(2, 3, |r, c| [[1., 2.], [3., 4.], [5., 6.]][c][r])
 ",
  patch.crates_io = list(`extendr-api` = list(git = "https://github.com/extendr/extendr"))
)
#> ℹ build directory: '/tmp/RtmpUzq97Z/file1550c3ed73052'
#> ✓ Writing '/tmp/RtmpUzq97Z/file1550c3ed73052/target/extendr_wrappers.R'.

m2 = matrix(c(1,2,3,4,5,6), 2, 3)

m1
#>      [,1] [,2] [,3]
#> [1,]    1    3    5
#> [2,]    2    4    6

m2
#>      [,1] [,2] [,3]
#> [1,]    1    3    5
#> [2,]    2    4    6

attributes(m1)
#> $dim
#> [1] 2 3

attributes(m2)
#> $dim
#> [1] 2 3

class(m1)
#> [1] "matrix" "array"

class(m2)
#> [1] "matrix" "array"

all.equal(m1, m2)
#> [1] TRUE

Created on 2021-11-03 by the reprex package (v2.0.1)

Thanks! Didn't know about new_matrix.
I have 2 questions:

Is there a way to use new_matrix with a flattened vector? Instead of using [[1., 2.], [3., 4.], [5., 6.]], like you did, use [1., 2., 3., 4., 5., 6.] to create the same matrix.

Is there a way to pass f32 values instead of f64 to new_matrix? With RMatrix::new() I was using f32 successfully and I would really like to avoid using f64.

I think you can write something like this (sorry, I don't test on my local), but I feel there might be better options. For example, probably you can convert it to a double vector and then set dim attribute on R's side.
    RMatrix::new_matrix(2, 3, |r, c| [1., 2., 3., 4., 5., 6.][2 * c + 3 * r])

Here's the f32 error. I'm yet to figure out what's missing on our API, but I feel this might be something that should be done on R's side, even if extendr will provide some API for convenience. So, could you elaborate a bit on your problem?
error[E0277]: the trait bound `extendr_api::Robj: AsTypedSlice<'_, f32>` is not satisfied
   --> src/lib.rs:8:5
    |
8   |     RMatrix::new_matrix(2, 3, |r, c| [[1_f32, 2.], [3., 4.], [5., 6.]][c][r])
    |     ^^^^^^^^^^^^^^^^^^^ the trait `AsTypedSlice<'_, f32>` is not implemented for `extendr_api::Robj`
    |
    = help: the following implementations were found:
              <extendr_api::Robj as AsTypedSlice<'a, Bool>>
              <extendr_api::Robj as AsTypedSlice<'a, Rfloat>>
              <extendr_api::Robj as AsTypedSlice<'a, Rint>>
              <extendr_api::Robj as AsTypedSlice<'a, f64>>
            and 2 others

I am trying to mimic what python's librosa does when decoding audio files. They use numpy's f32 as standard, but optional. I am trying to implement first as f32, as standard, to then expand it to other types.

Thanks for the details. Sounds interesting!
Have you consider using ndarray crate? It should give you more flexibility (e.g. changing the shape, and converting to f64?) and it should be easier to convert it to R's matrix. The API is similar to numpy to some extent.
https://docs.rs/ndarray/0.15.3/ndarray/doc/ndarray_for_numpy_users/index.html

I will go take a look, but, doing a quick search, I didn't find any hint about how to use it with extendr.
Besides, if you find anything in the API about how to use f32 values in RMatrix::new_matrix I appreciate it.

Sorry for the lack of nice documentations. You can find some examples around here.
https://github.com/extendr/extendr/blob/67060ca864b9effab8eedac057cb9d614b9d6a6e/extendr-api/src/robj_ndarray.rs#L169-L212
This works on my local, with modifying Cargo.toml of my local clone of extendr-api (it seems patch.crates_io don't allow us to override it).
m1 = rust_eval(
  code = "
    use extendr_api::prelude::*;

    let v = vec![1_f32, 2., 3., 4., 5., 6.];
    &Robj::try_from(&Array::from_shape_vec((2, 3).strides((1, 2)), v).unwrap()).unwrap()
 ",
  patch.crates_io = list(`extendr-api` = list(path = "/path/to/repo/extendr/extendr-api"))
)

Thank you! Gonna take a look at these.

@yutannihilation I finally had some time to take a look at your suggestions. I am having a hard time making a Robj out of a ndarray.
use extendr_api::prelude::*;
use ndarray::{s, Array, ArrayView1, Array4, Array2, ShapeBuilder};

assert_eq!(
    &Robj::try_from(&Array4::<i32>::zeros((0, 1, 2, 3).f()))?,
    &R!("array(integer(), c(0, 1, 2, 3))")?
);

I don't know why I have errors when running these tests exactly as showed in extendr/extendr-api/src/robj_ndarray.rs.
My Cargo.toml dependencies reads as below:

[lib]
crate-type = [ 'staticlib' ]

[dependencies]
extendr-api = { git = "https://github.com/extendr/extendr" }
claxon = '0.4.3'
ndarray = '0.15.3'

The error showed:
 --> src/lib.rs:2:18
  |
2 | use ndarray::{s, Array, ArrayView1, Array4, Array2, ShapeBuilder};
  |                  ^^^^^  ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0277]: the trait bound `&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>: From<&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>>` is not satisfied
   --> src/lib.rs:45:25
    |
45  |         &Robj::try_from(&Array4::<i32>::zeros((0, 1, 2, 3).f()))?,
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ToVectorValue` is not implemented for `&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>`
    |
    = note: required because of the requirements on the impl of `From<&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>>` for `extendr_api::Robj`
    = note: required because of the requirements on the impl of `Into<extendr_api::Robj>` for `&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>`
    = note: required because of the requirements on the impl of `extendr_api::TryFrom<&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>>` for `extendr_api::Robj`
note: required by `try_from`
   --> /home/daniellga/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:477:5
    |
477 |     fn try_from(value: T) -> Result<Self, Self::Error>;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
   --> src/lib.rs:45:65
    |
11  | / fn load(fname: &str, mono: bool) -> i32 {
12  | |     //f64 while f32 is not accepted in new_matrix     RArray<f64, [usize; 2]
13  | |     let path = Path::new(fname);
14  | |     let filetype = Path::extension(path)
...   |
45  | |         &Robj::try_from(&Array4::<i32>::zeros((0, 1, 2, 3).f()))?,
    | |                                                                 ^ cannot use the `?` operator in a function that returns `i32`
...   |
51  | |
52  | | }
    | |_- this function should return `Result` or `Option` to accept `?`
    |
    = help: the trait `FromResidual<Result<Infallible, Infallible>>` is not implemented for `i32`
note: required by `from_residual`
   --> /home/daniellga/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/try_trait.rs:339:5
    |
339 |     fn from_residual(residual: R) -> Self;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
   --> src/lib.rs:46:47
    |
11  | / fn load(fname: &str, mono: bool) -> i32 {
12  | |     //f64 while f32 is not accepted in new_matrix     RArray<f64, [usize; 2]
13  | |     let path = Path::new(fname);
14  | |     let filetype = Path::extension(path)
...   |
46  | |         &R!("array(integer(), c(0, 1, 2, 3))")?
    | |                                               ^ cannot use the `?` operator in a function that returns `i32`
...   |
51  | |
52  | | }
    | |_- this function should return `Result` or `Option` to accept `?`
    |
    = help: the trait `FromResidual<Result<Infallible, extendr_api::Error>>` is not implemented for `i32`
note: required by `from_residual`
   --> /home/daniellga/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/try_trait.rs:339:5
    |
339 |     fn from_residual(residual: R) -> Self;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0277]: the trait bound `&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>: ToVectorValue` is not satisfied
  --> src/lib.rs:45:10
   |
45 |         &Robj::try_from(&Array4::<i32>::zeros((0, 1, 2, 3).f()))?,
   |          ^^^^^^^^^^^^^^ the trait `ToVectorValue` is not implemented for `&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>`
   |
   = note: required because of the requirements on the impl of `From<&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>>` for `extendr_api::Robj`
   = note: required because of the requirements on the impl of `Into<extendr_api::Robj>` for `&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>`
   = note: required because of the requirements on the impl of `extendr_api::TryFrom<&ArrayBase<OwnedRepr<i32>, Dim<[usize; 4]>>>` for `extendr_api::Robj`

I think I am having some problem to access the last version of the extendr-api, since this test should work out of the box.

Aw, sorry. You need to enable ndarray feature, which is not included in the default features. By this comment, I was meant to say I had to add it, but I was a bit too hurry.

This works on my local, with modifying Cargo.toml of my local clone of extendr-api (it seems patch.crates_io don't allow us to override it).

Nice, it works! Thanks again!

Great!


Create a dedicate registration point for the scan plugin's end of build callback

Currently the scan plugin uses Gradle.buildFinished. We want to change the semantics of this buildFinished callback to run before the build result is finalised, which is not what we want for the scan plugin. This dedicated callback for the scan plugin, is a step towards being able to change buildFinished, but maintain the build scan functionality we want.
Build scan plugin 2.0.1 will use this new callback, and it will be the minimum version for Gradle 5.

Why not create a general purpose attachment point for any plugin? Why is this specific registration point exclusive to the Build Scan plugin?
Wouldn't it make sense to expose a generic endpoint where any plugin can tie into getting the build result before the build result is finalized?


Requested changes and adding Cameron

Is this right to be merged? It's just minor team changes and client/website numbers

As long as the changes are reflected here, we should be good!
Thanks!


Icon does not display during flight

I am running 1.1.0 now and I get a white square in my toolbar instead of the icon which I saw in 1.0.5.
The app appears to work fine, just some missing art.

This an issue with CKAN which is messing with the folder structure, I sent them a pull request to fix it:
https://github.com/KSP-CKAN/CKAN-meta/pull/1071


Example from docs not working

Hi,
On page https://flexx.readthedocs.io/en/stable/guide/event_system.html of the documentation, there is an example of setting a label's text using a function:
flx.Label(flex=1, text=lambda: 'count is ' + str(self.counter))

When using this in an application it throws:
Uncaught exception GET /flexx/ws/MyFlexxApp(::1)
HTTPServerRequest(protocol='http', host='localhost:49192', method='GET', uri='/flexx/ws/ScanergoWebApp', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
  File "C:\Python37\lib\site-packages\tornado-6.0a1-py3.7-win-amd64.egg\tornado\websocket.py", line 649, in _run_callback
    result = callback(*args, **kwargs)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\_tornadoserver.py", line 543, in on_message
    cookies=self.cookies)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\_app.py", line 516, in connect_client
    session._set_ws(ws)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\_session.py", line 225, in _set_ws
    self._ws.write_command(command)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\_tornadoserver.py", line 609, in write_command
    bb = serializer.encode(cmd)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\bsdf_lite.py", line 397, in encode
    self.save(f, ob)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\bsdf_lite.py", line 407, in save
    self._encode(f, ob, None)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\bsdf_lite.py", line 193, in _encode
    self._encode(f, v, None)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\bsdf_lite.py", line 201, in _encode
    self._encode(f, v, None)
  File "C:\Python37\lib\site-packages\flexx-0.7.1-py3.7.egg\flexx\app\bsdf_lite.py", line 283, in _encode
    raise TypeError(t % value.__class__.__name__)
TypeError: Class 'function' is not a valid base BSDF type, nor is it handled by an extension.

I'm on Windows 10, Python 3.7, Flexx 0.7.1

Yeah, this can be a bit confusing. Setting a property to a lambda like that does not work "over the websocket". So it will work when you do it for a property of a PyComponent, or if you do it in the init() of a JSComponent. But it will not work if you do it in the init() of a PyComponent when the property' sobject is a JSComponent.

Thanks for the explanation.


Add test of performance for bash completion

The bash completion v2 script is currently very slow.  These tests will help prevent a regression once we've improved the v2 script.
See https://github.com/spf13/cobra/issues/1680
I'll wait until we have improved the script before merging.

Very nice :+1:. I'd suggest adding something providing benchmarkability also for completions without descriptions, because the code paths and optimization opportunities may differ. For example a command line boolean flag to manycomps and respective test suite uses.
Perhaps also a "mixed" mode test where some completion candidates have descriptions and some don't. This isn't terribly interesting in benchmark sense, but would be good to verify that the case works, too. In that sense also perhaps out of scope for this PR.

Very nice 👍. I'd suggest adding something providing benchmarkability also for completions without descriptions, because the code paths and optimization opportunities may differ. For example a command line boolean flag to manycomps and respective test suite uses.

As you later noticed the test suite runs test without descriptions and with descriptions 👍

Perhaps also a "mixed" mode test where some completion candidates have descriptions and some don't. This isn't terribly interesting in benchmark sense, but would be good to verify that the case works, too. In that sense also perhaps out of scope for this PR.

I agree, out of scope for this PR, but the idea is not without merit.

The optimizations made by @scop to the bash v2 script has allowed me to lower the limits within this PR to:

0.2 seconds for 1000 completions without descriptions
0.5 seconds for 1000 completions with descriptions

And we have room to spare.
Thanks @scop 💥

I had left an 'exit' in the PR which I had added just to speed up my tests.
I have removed it here https://github.com/marckhouzam/cobra-completion-testing/commit/9b537b1408e3830bc845fb96afc8b9348ec7960c
That's what happens when there is no code review 😄


[Suggestion]only-arrow-functions allow no arrow function when the 1st parameter is this

TypeScript code being linted
$(document).on("click", "a[href^='http']", function (this: HTMLAnchorElement, e: JQueryEventObject) {
    e.preventDefault();
    electron.shell.openExternal(this.href);
});

For this situation, I hope this function is allowed when the first parameter is this, and otherwise, I hope only arrow function is allowed.

@plantain-00 @andy-hanson can you explain this a bit more? Does an arrow function not work here? Why is a standard function declaration preferred?

@adidahiya
yes, arrow function not work when the first parameter is this, eg: http://www.typescriptlang.org/play/index.html#src=const foo %3D function (this%3Aany) { }%3B
const bar %3D (this%3Aany) %3D> { }%3B

@plantain-00 cool, makes sense, thanks.


Set ClaimLinkNamespace when Creating an Account CR

ClaimLinkNamespace should be set to blank when a new account CR is generated by the AccountPool.

@jharrington22 It already does
https://github.com/openshift/aws-account-operator/blob/master/pkg/controller/accountclaim/accountclaim_controller.go#L430

/lgtm

/approve
/lgtm


Click to add terrain

Fill in a new voxel, redraw any terrain blocks it touches, and send updates to the client.

Until #127 is done, any voxel modifications will be forgotten after an LOD switch. After that, voxel changes will be remembered, but invisible at different LODs until #128 happens.

#67 seems like a simpler first step

a1e9d74be2202e817f395caea7998815fc552c5f


HP/sciond: Look up hidden paths in sciond

sciond should also query for hidden paths if it is in hidden path group AS.
Lookup design: https://github.com/scionproto/scion/blob/master/doc/HiddenPaths.md#path-lookup

The new hidden paths implementation is now published, this no longer applies.


[WIP] Dedup ES search results before returning

While using aliases, its possible that we return duplicate metric names after searching multiple indices. This PR adds de-duplication before returning back the results.
TODO

Add a test

+1


Support for victory-native (https://github.com/FormidableLabs/victory-native)

Is victory-native supported with create-react-native-app?
I tried this example https://github.com/sibelius/victory-native-demo-crna which uses create-react-native-app but it didn't work. I got the following error message - "Error while updating property 'd' in shadow node of type:RNSVGPath" (see attached image).
I am already discussing this with the author but I just wanted to check in case it's a known issue that victory-native doesn't work with create-react-native-app.

Hi! victory-native does work when loaded in Expo, we use it in one of our test projects:
https://github.com/expo/native-component-list/blob/master/screens/SVGScreen.js
with this package.json:
https://github.com/expo/native-component-list/blob/master/package.json#L17
You can load the app in the Expo client at this URL:
https://expo.io/@community/native-component-list
You can find the victory-native example if you tap the ^ icon in the top right and scroll down to the SVG example.
I'd recommend trying this with the latest RN and SDK versions supported, the example project you linked uses SDK 14. See the versions guide for information about upgrading.
cc @sibelius

Hi! I'm also getting the same error message, but after saw your comment I just look over your test project, but I cannot understand the usage of react-native-svg in your SVGScreen.js file.
And I'm just trying with your code for render victory chart and getting this error:


Added Python 3.7 and 3.8-dev to tox and Travis

This builds Flasgger in 3.7 and 3.8-dev (failures allowed) in Travis, retaining the existing environments.  It also adds the tox environments for running with tox.  I set TOXENV in Travis although this is not strictly necessary since Travis is not using Tox currently.
Note that this requires a switch to a build matrix with some added complexity, since different dists are currently required in Travis to get Python 3.7 and 3.8-dev images.

Coverage remained the same at 91.184% when pulling 25b2a518d1645418661d5e565b8712de2939c3c5 on python-37-38-dev into b0ce88c211e2269f124fd5d3615cc0a3b41caa0e on master.

Coverage remained the same at 91.184% when pulling 25b2a518d1645418661d5e565b8712de2939c3c5 on python-37-38-dev into b0ce88c211e2269f124fd5d3615cc0a3b41caa0e on master.


Webforms playground

How to set up Webform REST on ACMS

Download the Webform and Webform REST modules

Enable REST resources "Webform Submit", "Webform Elements", "Webform Submission" on /admin/config/services/rest

Set permissions /admin/people/permissions#module-rest for RESTful Web Services and check Anonymous User for the Webform related permissions

Create a new webform if you have not already /admin/structure/webform. The code is currently hardcoded to read the field "field_webform" so you should name your field that in ACMS or change that line in the code to your field.

Create a webform (Right now. text area, text input, submit, radio buttons, checkboxes, and a single checkbox are supported).

Add a webform to one of your nodes then go to the page on the headless site.

Getting this build error after moving to a different package. I thought that having  "include": ["**/*.ts, **/*.tsx"] to  basic-starter/tsconfig.json would prevent this error.


4.2.0 CSS issues

Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
4.2.0
Expected behaviour:
branding navbar should display nicely.
Here are proposals to fix the 3 issues listed below:

I think the toggle button should have the class "navbar-toggle" and not "navbar-toggler"
add "margin-right: 10px" to the "#org-navbar .org-links" selector in file "_navbars.scss"
add class "navbar-right" to <ul> "Navigation for organisation admin" in file "_branding.html.erb"

Actual behaviour:
branding navbar shows:

A strange toggle button that doesn't seem to do anything
No space between 2 <li> in the "org-navbar-menu" element
The Admin menu is not right-aligned

damned! that's probably my assets that are not re-created properly... now following precisely what's in https://github.com/DMPRoadmap/roadmap/wiki/Troubleshooting#8-some-or-all-of-my-assets-are-missing...

well, it's strange though... from what I read, navbar-right doesn't exist anymore in bootstrap 5:
https://github.com/DMPRoadmap/roadmap/blob/fc047ac0ae1b10f9fd451909e11a2d31e50b3ada/app/views/layouts/_footer.html.erb#L19

ok nevermind, just some branding that I forgot to update :-(


sfz~ make the default virtual path that of the patch

Alexandres-MacBook-Air:sfz~ porres$ make install
./sfz~install.sh
./sfz~install.sh: line 8: [: =: unary operator expected
./sfz~install.sh: line 11: [: =: unary operator expected
usage: mkdir [-pv] [-m mode] directory ...
cp: ./sfizz/build/pd/sfizz/sfizz.pd_linux: No such file or directory
./sfz~install.sh: line 22: [: =: unary operator expected
cp: /sfz: Permission denied
cp: sfz: unable to copy extended attributes to /sfz: Permission denied
cp: /sfz/kit.sfz: No such file or directory
cp: /sfz/samples: No such file or directory
cp: sfz/samples: unable to copy extended attributes to /sfz/samples: No such file or directory
cp: /sfz/samples/s11.wav: No such file or directory
cp: /sfz/samples/s4.wav: No such file or directory
cp: /sfz/samples/s5.wav: No such file or directory
cp: /sfz/samples/s10.wav: No such file or directory
cp: /sfz/samples/s12.wav: No such file or directory
cp: /sfz/samples/s7.wav: No such file or directory
cp: /sfz/samples/s6.wav: No such file or directory
cp: /sfz/samples/s2.wav: No such file or directory
cp: /sfz/samples/s3.wav: No such file or directory
cp: /sfz/samples/s1.wav: No such file or directory
cp: /sfz/samples/s8.wav: No such file or directory
cp: /sfz/samples/s9.wav: No such file or directory
cp: /sfz/synth2.sfz: No such file or directory
cp: /sfz/synth.sfz: No such file or directory
make: *** [install] Error 1
Alexandres-MacBook-Air:sfz~ porres$

it worked now

anyway... when I load the help file I get a bunch of these...
[sfz~] DEBUG: canavs dir is: /Users/porres/Documents/Pd/externals/else/, chars: 42
[sfz~] no SFZ string set
[sfz~] DEBUG: canavs dir is: /Users/porres/Documents/Pd/externals/else/, chars: 42
[sfz~] no SFZ string set
[sfz~] DEBUG: canavs dir is: /Users/porres/Documents/Pd/externals/else/, chars: 42
[sfz~] no SFZ string set

the debug is ok, but the no sfz string set is a bug...
one way or another, I CANNOT set a string with samples, if I try to load the string with the script for kit.sfz, it doesn't work...


[DNM] chore: remove AKS billing extension

Reason for Change:

Issue Fixed:

Credit Where Due:
Does this change contain code from or inspired by another project?

[ ] No
[ ] Yes

If "Yes," did you notify that project's maintainers and provide attribution?

[ ] No
[ ] Yes

Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Notes:

/azp run

/azp run

/azp run


Craftcms project type assumes and writes .env variables on every startup

Expected Behavior
I would expect the project type craft to not assume things for my project and definitely not fill up my .env file with variables that are not being used.
Actual Behavior
Whenever I start a craftcms project, the variables below get added to my .env file automatically.
MAILHOG_SMTP_HOSTNAME=<IP_ADDRESS>
MAILHOG_SMTP_PORT=1025
PRIMARY_SITE_URL=http://website.ddev.site/

The PRIMARY_SITE_URL variable is unused in most (if not all) of our projects, we can't assume people use that, so we shouldn't set it.
We don't setup our sites to use mailhog with those variables either, we do it a different way.
Unless it auto sets up mailhog for only the ddev environment somehow, it is ok. But then again, should we assume everyone uses mailhog?

If you want to disable this behavior, you use settings_management_disabled: true. It sounds like that's what you want?

Hmm, I don't think these are "opinionated" for Craft 4 are they?

I think the inclusion of Mailhog especially is opinionated. The system decided for me that I should be using Mailhog, I never opted into that and don't plan on using Mailhog.
Craft 4 was where it began to "magically" see variables in the .env file, without first having to pass those values through a PHP config file (as was the standard in Craft 3). I can definitely see a (very limited) use of autopopulating the .env variables on behalf of Craft, but as we can see here, it's a pretty slippery slope.
In my personal opinion, only the DB values should be automatically set. While I appreciate the Mailhog and Primary Site URL contributions, they can be easily added later if necessary.
I would recommend the following:

Only pre-set .env values that begin with the CRAFT_DB_ prefix. This ensures that only the database connection is affected, and all other settings are ignored.
If a particular variable is evaluated to be the same as its default value, please skip it and don't write it to the .env file. For example, the default database driver is already set to mysql, it doesn't need to be redundantly stored as CRAFT_DB_DRIVER="mysql".

^ By following those two relatively straightforward guidelines, we can ensure that DDEV is able to properly connect to Craft, without interfering too much in the .env file otherwise.
Thanks again for all of your hard work on the craftcms project type and DDEV in general! ❤

Related conversation on Discord:

https://discord.com/channels/664580571770388500/1065008302745976893/1065008302745976893

Mailhog has been supported on all project types for years and prevents unwanted accidental emails from going out, in addition to allowing easy debugging of mail features.
It's so easy to turn these things off. disable_settings_management: true or use the completely unopinionated php project type.

It's great that Mailhog is available to all project types, but the other project types don't inject that into the .env file (AFAIK).
I was mainly just leaving my two cents on this thread for historical record, since it seemed relevant to the parallel conversation we had on Discord.

disable_settings_management: true

That's what I've done for this particular Craft 3 project. Still weighing whether to revert back to the php project type. I really do like having the ddev craft command available, but it's technically a "nice to have".

The other project types inject mailhog settings into the equivalent settings setup. So for Drupal, settings.ddev.php. Also controlled by disable_settings_management.
If you like the php project type more (don't think it should matter) you can just copy the global ~/.ddev/commands/web/craft into your project's .ddev/commands/web and edit it slightly so it doesn't exclude php project type. Or just remove the #ddev-generated from ~/.ddev/commands/web/craft and take it over that way and remove the
if [ "${DDEV_PROJECT_TYPE}" != "craftcms" ]; then
    echo "The craft command is only available in the craftcms project type. You can update this in your project's config file, followed by restarting the DDEV project."

DDEV doesn't try to do everything everybody could ever want, because it can't. But it tries to leave space for people to do whatever they want on their team and their project.

Those are great tips for using the ddev craft command in the php project type, thanks @rfay!

Can I add to this discussion - I think disable_settings_management  should definitely default to false for existing projects.  This broke my ddev / craft 4 project when I came back to it after some time away, and in a way I couldn't immediately understand from this error:
Failed to start craft-dev: template: templateStringToFile:/home/jeremy/ddev-projects/c4-dev/.env:7: function "siteUrl" not defined

And I think PRIMARY_SITE_URL should be added only if the existing & typical CRAFT_SITE_URL is not already present - otherwise it's just doubling up right?
Personally am not fussed about Mailhog, other than to note that Craft has a config setting for a similar thing already:
https://docs.craftcms.com/v3/config/config-settings.html#testtoemailaddress
        'testToEmailAddress' => (\craft\helpers\App::env('SEND_ALL_EMAILS_TO')) ?? null,

So in Craft's case, Mailhog is likely to be irrelevant to most.

Settings management has been the default in DDEV for more than 6 years now. The problem here is that there is no differentiation between Craft 3 and Craft 4, and perhaps there should be. DDEV's craft setup right now is oriented at Craft 4.

Everything I wrote above is about a Craft 4 project, just for info.  Nothing to do with Craft 3 - I've only moved to using ddev with Craft 4.

@bossanova808 If you have a specific bug related to the .env variables added by DDEV in a Craft 4 project, could you please open a new issues with the specifics? I haven't heard of trouble with Craft 4.

FWIW, I believe the OP started this thread with a Craft 4 site (I am inferring based on contextual clues). Similarly, my comments were largely about Craft 4, outside of this one historical footnote:

Craft 4 was where it began to "magically" see variables in the .env file, without first having to pass those values through a PHP config file (as was the standard in Craft 3).

... and a remark that I used disable_settings_management: true to resolve the issue on a Craft 3 project.
Sorry for any confusion, I do believe this thread is already about Craft 4.


Typescript error

Type: Bug
Typescript Error
VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:55.829Z)
OS version: Darwin x64 19.2.0
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
7, 7, 8

Memory (System)
16.00GB (0.44GB free)

Process Argv
-psn_0_86037 --crash-reporter-id 1d1c4785-e2d0-4504-9754-1699e521bf9d

Screen Reader
no

VM
0%

Extensions (16)

Extension
Author (truncated)
Version

code-gnu-global
aus
0.2.2

path-intellisense
chr
2.8.1

vscode-eslint
dba
2.2.6

prettier-vscode
esb
9.8.0

vscode-pull-request-github
Git
0.48.1

vscode-language-pack-ko
MS-
1.70.8170916

cpptools
ms-
1.12.4

bitbucket-pull-requests
Ram
0.3.10

java
red
1.10.0

vscodeintellicode
Vis
1.2.24

vscode-java-debug
vsc
0.44.0

vscode-java-dependency
vsc
0.21.0

vscode-java-pack
vsc
0.25.1

vscode-java-test
vsc
0.37.1

vscode-maven
vsc
0.38.0

ReactSnippets
xab
2.4.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411cf:30557515
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
pylanb8912:30545647
vsclangdc:30486549
c4g48928:30535728
hb751961:30553087
dsvsc012:30540252
azure-dev_surveyone:30548225
i497e931:30553904

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.71.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


r1s: fix nailchipper quadruple crossing callouts

During the Leaping Quadruple Crossing given by one of Black Cat's
clones, players are hit by Nailchipper and given a headmarker which
indicates that they will do a mini explosion and will die if they get
hit by the next Quadruple Crossing bait. The markers always go either on
all DPS or on all support players.
Currently, when this marker goes out, cactbot incorrectly calls out
"stack on " for whichever player happens to be first in the data
log. This could in theory be used to see who has the nailchippers and
processed into a decision of whether to go in or out. However, using the
term "stack" is very odd since it is not a stack mechanic.
Instead, check what role the target is. Based on this, alert either
"Support out" or "DPS out".
We could complicate this further by checking the role of the player and
alerting either in our out, (or some other alert such as baiting).
While this could be doable its more complicated to get correct.
Signed-off-by: Jacob Keller<EMAIL_ADDRESS>

This is actually likely fixed by https://github.com/OverlayPlugin/cactbot/pull/307 sorry for the thrash, I think that solution will be better.


Add initial websocket codec.

Motivation:
Websockets is a major protocol in use on the web today, and is
particularly valuable in applications that use asynchronous I/O
as it allows servers to keep connections open for long periods of
time for fully-duplex communication.
Users of NIO should be able to build websocket clients and servers
without too much difficulty.
Modifications:
Provided a WebsocketFrameEncoder and Decoder that can serialize and
deserialize Websocket frames.
Result:
Easier use of websockets.

@tanner0101 PTAL as well if you have a chance.....

Taking a look now :)
Any chance we could move this branch to the main repo? Then I can just do swift package edit swift-nio --revision ....

@tanner0101 My proposal is that you actually use one of the callbacks on WebsocketUpgrader, specifically the second one (upgradePipelineHandler), which lets you return a Future for exactly this reason.
In your case, you can ignore the EventLoopFuture that is returned here, but mostly due to an implementation detail, which is that pipeline reordering executes synchronously when you're on the event loop thread for the given channel.

Ok cool. This looks good to me. 👍

@Lukasa why does this need a major version bump?

@jw good question, I don't think it does

Ok, should be ready for another round of review. Right now I'm assuming that the FreeBSD files do not need our license header on top of them, but that's TBD.

Ok, this is ready for review. Always fun to have a PR that gets enough code review to make GitHub start performing badly. :grin:

@Lukasa lol... hopefully will add a few more comments later today and so make it even slower 🤣


use official nsjail binary/docker image

https://github.com/google/nsjail/issues/132

they build from LTS (18.04) and we build from latest (19.10). probably better to keep separate.
that said, I did create a package for them.


otelcol.receiver.vcenter does not export labels

What's wrong?
The otelcol.receiver.vcenter does not seem to export any meaningful labels.
For example my cluster has 6 hosts yet the only metric I get is:
vcenter_host_cpu_usage_MHz{} 12216
or
vcenter_host_disk_throughput{direction="read"} 1545
I'm using latest 7.03 vCenter and 1.43 Grafana Alloy
Has anyone gotten proper metrics from otelcol vcenter exporter in alloy ?
Steps to reproduce
1, Install Grafana Alloy 1.43
2, Create otelcol.receiver.vcenter Alloy configuration
3, Collect metrics (send them to Prometheus or Mimir)
4, Metrics are missing any useful labels to identify where the metrics is from ( such as ESXi host/instance, cluster)
System information
No response
Software version
Grafana Alloy 1.43
Configuration
remote.vault "kv_vmware_vcenter_readonly" {
    server           = sys.env("VAULT_ADDR")
    path             = "kv/vmware/vcenter/readonly"
    reread_frequency = "0s"
    auth.token {
        token = sys.env("VAULT_TOKEN")
    }
}
otelcol.receiver.vcenter "default" {
    endpoint = "https://refinst-vcenter.ref"
    username = convert.nonsensitive(remote.vault.kv_vmware_vcenter_readonly.data.username)
    password = convert.nonsensitive(remote.vault.kv_vmware_vcenter_readonly.data.password)
    collection_interval = "20s"

    tls {
        insecure = true
    }

    output {
        metrics = [otelcol.processor.batch.default.input]
    }
}

otelcol.processor.batch "default" {
    output {
        metrics = [otelcol.exporter.prometheus.default.input]
    }
}

otelcol.exporter.prometheus "default" {
    forward_to = [prometheus.remote_write.mimir.receiver]
}

Logs
No response

Try this:
otelcol.exporter.prometheus "default" {
    forward_to = [prometheus.remote_write.mimir.receiver]
    resource_to_telemetry_conversion = true
}

Try this:
otelcol.exporter.prometheus "default" {
    forward_to = [prometheus.remote_write.mimir.receiver]
    resource_to_telemetry_conversion = true
}

Super - thank you.
I missed reading documentation for otecol.exporter.prometheus module. Maybe this should be default or better explained to what this even means for someone who never touched Open Telemetry (no idea what resource attributes even mean :-))

I agree with that critique.  It was trial and error for me.

I noticed that vm and host "custom attributes" (vmware name for arbitrary key:value tags) are still missing.

Not sure which custom attributes you mean.
My vm/host metrics have all the labels I need, AFAIK
For example, VM metric:
vcenter_vm_cpu_usage_MHz{vcenter_cluster_name="Room1A2", vcenter_datacenter_name="Equinix", vcenter_host_name="ref-vhost1", vcenter_resource_pool_inventory_path="/Equinix/host/Room1A2/Resources", vcenter_resource_pool_name="Resources", vcenter_vm_id="50251fbd-3081-fbd9-641e-5ea1d9fd1c43", vcenter_vm_name="helper1"}

Host metric:
vcenter_host_cpu_usage_MHz{vcenter_cluster_name="Room1A2", vcenter_datacenter_name="Equinix", vcenter_host_name="ref-vhost1"}

custom attributes are the vmware name for arbitrary key:value tags/labels on different vsphere objects.  In my case I have GUID named vms, and the fine detail about what type of VM they are exists only in the custom attributes labels.


What is the mathematical principle of finding the function(def _predict_derivatives(self, x, kx) in krg_based.py ) of the gradient

What''s the mathetic principle of  _predict_derivatives(~)  ?  Could please give me  the link of the function?  thanks!

thanks for your prompt reply!  In short, your reply means the derivatives comes from definitive formula. In the SMT documentation, there are 3 kinds of derivatives, the derivate of kriging is d(y_train)/d(x_train), which is used in GE-KPLS.  how about the other 2 derivatives. I mean which surrogate models use dy/dyt and dy/dx?

Several models support spatial derivatives (for prediction and/or variances)
For example, in https://smt.readthedocs.io/en/latest/_src_docs/surrogate_models/kpls.html, there is dydx = sm.predict_derivatives(xt, 0).
It depends on the application for what you need a surrogate, one can posibly need the derivative of the model. It's not necessarily used to build it.
Also, there is an implementation of the derivative of covariance kernels with respect to the hyperparameters theta.

because I didn't study mechanics:

In the GE-KPLS, and  any other GE-surrgate models, the derivatives comes from a definitive objective function. If we already know the objective function, why not optimize it's  mathematically.  All the surrogate problems I saw are black box funciton that we don't know the objective funcion.

thanks for your reply!!

GE-KPLS method use derivatives to get a better surrogate, so you definitely need to get derivatives in the first place to use GE-KPLS.
You can get derivatives through numerical methods without exact analytical expression. So if you have a computation-intensive code which gives you values and derivatives at training locations you might be able to replace it with a GE-KPLS surrogate model which will be cheaper to evaluate.
See GE-KPLS reference in the SMT paper.

thank you very much!


fix: prevent infinite loop for token trimming

This prevents the infinite loop of attempting to trim a message by introducing a maximum number of iterations that the trim function can attempt before giving up.
There is probably a better approach to also help with the summarizing/trimming of the tokens, but I figured just preventing the infinite loop was a good first step.
It also addresses some of the feedback around mixing characters and tokens from #3.
I believe it closes #3, but we probably want to consider how we can approach this in another way.

This is huge. Thank you so much Eric, I can't imagine how many issues have stemmed from the problems this resolves. Merging.


Children vs Adults Classification using DL

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Children vs Adults Classification
:red_circle: Aim : Create a DL model which will identify the children and adults.
:red_circle: Dataset : https://www.kaggle.com/datasets/die9origephit/children-vs-adults-images
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Happy to contribute in this project!
Full name : Talari Rahul Mani Datta
GitHub Profile Link :https://github.com/Rahul-Talari/
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project :
1.Algorithm Selection:
•Choose VGG16, ResNet50, and MobileNetV2 as the deep learning algorithms for the task of classifying children vs. adults.
2.Dataset Split:
•	Split the dataset into training and testing sets, with approximately 70% for training and 30% for testing.
•Shuffle the dataset before splitting to ensure a representative distribution of samples in both sets.
3.Implementation:
•	Use TensorFlow or PyTorch as the deep learning framework.
•	Implement VGG16, ResNet50, and MobileNetV2 architectures.
•	Configure the models with appropriate settings and adjustments.
4.Training and Validation:
•	Compile each model with a suitable loss function.
What is your participant role? SSOC Participant
I hope that i can successfully manage this and i also know intel api's to peform better optimization so ,I think ,
Ican do justification.

As per the Contribution Guidelines and Code of Conduct, one contributor should be assigned to one issue at a time.

If anyone doesn't show interest to solve then can i attempt this because i have recently worked on this projects like image classification and object detection and i have roadmap how to solve this project.

Full name : Om Ramesh Achrekar
GitHub Profile Link : https://github.com/achrekarom12
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project : In this project basically we are supposed to classify the face as children face or adult face. So I will use pre-trained VGG16/ VGG19, ResNet50, Inception and ImageNet. I hope by leveraging the power of pre-trained image classification models and some hyperparameter tuning, I can produce better comparison.
What is your participant role? SSOC Participant


AfterPay detection not working

Example site - https://www.urbanoutfitters.com/shop/uo-kendra-linen-button-front-romper?color=030&type=REGULAR&quantity=1
Current detection -
"Afterpay": {
  "cats": [
    41
  ],
  "cpe": "cpe:/a:afterpay:afterpay",
  "description": "Afterpay is a 'buy now, pay later' platform that makes it possible to pay off purchased goods in fortnightly instalments.",
  "icon": "afterpay.png",
  "js": {
    "Afterpay": "",
    "afterpay_product": ""
  },
  "saas": true,
  "scripts": [
    "portal\\.afterpay\\.com",
    "static\\.afterpay\\.com"
  ],
  "website": "https://www.afterpay.com/"
},

Should we add detection for something like aria-label="Afterpay"?

Updated, thanks!


M3-2186 Fix unknown status NodeBalancer chip color

Fix unknown status NodeBalancer chip color
Type of Change

Bug fix

Coverage remained the same at 34.971% when pulling fc79e55278d3e7545b81475816c919d9df3f1e23 on alioso:M3-2186-unknown-chip-color into c7aa3e9c939e472085062876490a352aa8c46b1f on linode:develop.


not showing correct output

Hi,
Thanks for your code. I have been trying to play around it a bit. In that process, I cropped the image. However, the algo doesn't seem to give correct output.
Original

Cropped:

Do you know what could be the issue?
PS: cropping the image like this
imgcolor = imread("testimages/seastar2.png")/255.0
imgcolor = imgcolor[50:250, 50:250]

Hi,
You have to be careful that the initial contour is inside the image area. If you crop the image, you have to change the initialization of the contour accordingly.
In your case, you can use
mgac.levelset = circle_levelset(img.shape, (100, 100), 97, scalerow=1.0)

or something similar.
Hope that helps.


Improving UI of Color Code Converter

Is your feature request related to a problem? Please describe.
The UI of Color Code Converter can be improved for better user experience.
Describe the solution you'd like
I will add custom styles to make the UI look better for users.
Describe alternatives you've considered
I want to improve the UI by styling button, background, input fields, etc.
Additional context
Right now the UI is looking like this

Steps Followed✅
Check the box with [x] If you followed all the steps.

[x] Is your feature request related to a problem? Please describe.
[x] Describe the solution you'd like
[x] Describe alternatives you've considered
[x] Additional context

Code of Conduct✅

[x] I agree to follow this project's Code of Conduct.
[x] I checked the current issues for duplicate problems.
[x] I have gone through project README.

I want to make this contribution under SSOC'22

I can improve the UI in a better way. Can I be assigned with the same?

@sanjana2417
Do you want to work on this issue?

@Anmol-Baranwal You can close this issue


Storage: Missing support for beginSignedUploadSession origin (cors) configuration

https://github.com/GoogleCloudPlatform/google-cloud-php/blob/981ea50a6954d1cbe464417ac822fa21d2d8887f/Storage/src/StorageObject.php#L956
Hello, I found configuration issues about origin (cors) configuration with beginSignedUploadSession for give the ability to start the resumable upload from client browser.
With debug I found is related to SignedUrlUploader.createResumeUri method.
In fact I try forcing with this and it works
$headers = [
      'Content-Type' => $this->contentType,
      'Content-Length' => 0,
      'x-goog-resumable' => 'start',
      'Origin' => '*',
];

From the api documentation (initiating a resumable upload session, point 5)

If you have enabled Cross-Origin Resource Sharing, an Origin header that you use in subsequent upload requests for the file you are uploading.

Seems nodejs sdk already have some implementation about that.
Currently my work around is:
// step 1 - signedUploadUrl (POST)
$signed_upload_url = $object->signedUploadUrl($signed_upload_url_expire_at, []);

$headers = [
  'Content-Length' => 0,
  'x-goog-resumable' => 'start',
  'Origin' => '*'
];

// step 2 - beginSignedUploadSession (POST)
$httpClient = new GuzzleClient([]);
$response = $httpClient->post($signed_upload_url, [
   'headers' => $headers,
]);

if (in_array($response->getStatusCode(), [200, 201])) {
  $signed_upload_url = $response->getHeader('Location')[0];
}

// ..

Is it possible to integrate the configuration or get more information about it?
Thanks

@illambo thank you very much for raising this issue. This is something we would certainly like to add support for.

@illambo this has been addressed by https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1111. We should have this released soon! :)

Thanks! :)


IRGen: Note use of types in conditional requirements of protocol conformances

It is possible for the only mention of a conditional requirement to appear in
the protocol conformance record which is too late for lazy metadata type
emission.
SR-12891
rdar://63819461

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - 81836bd6ca8b70586c3c87aed97ea5dbf0b5ae07

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - 81836bd6ca8b70586c3c87aed97ea5dbf0b5ae07

Build failed
Swift Test OS X Platform
Git Sha - 81836bd6ca8b70586c3c87aed97ea5dbf0b5ae07

@swift-ci Please test windows

@swift-ci Please test source compatibility

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - d4ae4a747d810af11205f4e1dc4eca120cbfa014

Build failed
Swift Test OS X Platform
Git Sha - d4ae4a747d810af11205f4e1dc4eca120cbfa014


Add AppVeyor CI configuration

includes testing to minimum working version (1.17.0)

This appveyor.yml is overly complicated given this crate is pure Rust. Most of that environment setup stuff is totally extraneous and can be stripped out. For a simpler example see winapi's own appveyor.yml.

Well, @retep998 , I generally disagree.
Although it's not as simple as the winapi example, it was created for a broader use case and modeled after needs in "coreutils". Ultimately, this version is generally useful, documented, logs what it's doing and the environment that it is using, and has some workarounds for git/coverage and the gnu library problems mentioned in rust-lang/rust#47048 and rust-lang/rust#53454 (modeled after your suggestion). Yes, the gnu library workaround code is verbose, but, it's not certain when a dependent crate might bring in code that causes the library conflict.
Overall, I'm just offering a working starting point for the author to help advance the windows version of this story. It could obviously be tailored, and I'm open to suggested changes... or someone else could throw up a completely different working solution.

For crates that have C dependencies, yes getting MinGW setup correctly is important, and so your appveyor.yml is useful generally. However this crate only has winapi as a dependency, and so doesn't need any of the MinGW setup. Ultimately though, it's up to the crate author to decide what they want in terms of appveyor.

Hey,
I signed up for AppVeyor. I'm still slowly learning how the Windows ecosystem works — as a crate maintainer I should really have more knowledge of it than I do right now. I'm going to merge this PR because I still want to have CI for Windows, and eventually I'd like to have learned the best way to do it myself.
Now to see if the build works...
Thanks :+1:

I fixed a couple of things for this in PR #52, and I'm happy to help you set up a working automatic build/test system that includes windows.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 70 ms

Resolved: ClamAV performance has improved in 40e8d28 after 21 minutes.


Doesn't seem to be published to npm correctly

Hey there!
I noticed a few things that looked like issues in terms of publishing TypeScript to npm.

You're publishing .ts files instead of .js and .d.ts, so your users are being forced to compile in node_modules (which isn't great for .js users).
Your 'main' is index.ts, but TypeScript only automatically looks at typings (and in 2.0, types).
You're publishing your typings folder (and have it committed in git too). This can cause issues if other users have their own versions of node.d.ts

Here's a page with a little bit of detail, though it should be getting fleshed out more: https://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html
Let me know if you need any help!

Thanks, this is the first time i'm publishing a module. I did do some reading, but i figured it would be better to leave it in typescript so that if users want to modify some behavior or read the source they could so so with non-generated code (maybe im better pointing package.json to js and leaving the ts in src?). Also, i published typins simply to include the vue typings, but i guess i should leave that up to the user.

I was planning on working on it today, if you wouldn't mind, once i get to fixing these issues in a few hours, could you check it over a second time and let me know if it makes more sense? Thanks!

So I've followed your advice and changed a few things:

First i compiled everything to js in the lib directory, pointed my package.json main to "lib/index.js" and added the typings field to pint to "lib/index.d.ts". In lib i include compiled js, definition files as well as sourcemaps (dont know if this is useful or not).
Then, I removed postinstall "typings install", users will have to provide their own vue typings (although it works fin without, just sets the options types to any instead of the vuejs options types). typings and typings.json are both in .npmignore (however i left them in git, because my circleCI buidls fail without them)

the module folder will now look like this:
vue-typescript
     /lib - precompiled js, definitons and sourcemaps
     /src - source typescript files, so user can inspect the code
     .npmignore
     LICENSE
     package.json
     README.md
I'm debating leaving typings.json and my tsconfig file so that if users want to make quick fixes, they can run typings install and npm run build to apply the fixes they made to the source files.
If i forgot anything or you still see issues with the package let me know. I'll probably be working on adding @Watch tonight and writing better tests for @Props
Thanks again for pointing this out

I'll be closing this for now, feel free to open it up again if you spot anything

Looks right as far as I can tell, and it looks like people have been having a great experience so far. Thanks for the work here!


ReleaseDate not allowed in DateTime format

After initializing migrations and updating the database with the Movie Model, I create a movie from the app.  However, the app will not allow me to submit a release date, no matter what date I enter.  The error in red I receive below the ReleaseDate field is: The ReleaseDate field is required.
To be clear, I have filled out every field, including the Price field with a decimal value of 5.00 and 3.50 on two separate attempts, respectively.

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

ID: 6719f08e-3bd7-dc1a-71df-f2ef9fbca9d8
Version Independent ID: 7096fdb3-612e-9e00-bd0b-8ea4886a09ce
Content: Add a model to a Razor Pages app in ASP.NET Core
Content Source: aspnetcore/tutorials/razor-pages/model.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@Rakesh6720  decorate with
        [DataType(DataType.Date)]
as in
public class Movie
    {
        public int ID { get; set; }
        public string Title { get; set; }

        [Display(Name = "Release Date")]
        [DataType(DataType.Date)]
        public DateTime ReleaseDate { get; set; }

I had the same error. Although I am using chrome(not sure if it matters) and I saw that there was a colon showing after the date I entered.  I added the time to the end of the date 12:00 AM and it saved.

[Display(Name = "Release Date")]
[DataType(DataType.Date)]
Returns errors on both lines.
Error	CS0246	The type or namespace name 'DisplayAttribute' could not be found (are you missing a using directive or an assembly reference?)
Needed to add :
using System.ComponentModel.DataAnnotations;
to the top of Movies.cs
ie
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RazorPagesMovie.Models
{
public class Movie
{
public int ID { get; set; }
public string Title { get; set; }
[Display(Name = "Release Date")]
[DataType(DataType.Date)]
public DateTime ReleaseDate { get; set; }
public string Genre { get; set; }
public decimal Price { get; set; }
}
}


feat: handle multiple files

Hi @kahirokunn,
Thank you for your useful npm package! :+1:
deepmerge-yaml is really nice for me to merge my circleci configs for each services on my monoricic repository.
I want to use it for multiple files, so please review this PR :bow:
Please give me any feedback :bow:

Thanks for the PR! I would release early 👍

https://www.npmjs.com/package/deepmerge-yaml
released 0.0.2

@kahirokunn
Great🙌, Thank you very much!!🙇


Add clang-tidy on Ubuntu and MacOS

Tool information

Tool name: clang-tidy
Add or update? Add
Desired version: Same version than clang
Approximate size: 2 Mo
If this is an add request:

Brief description of tool: C++ linter
URL for tool's homepage: https://clang.llvm.org/extra/clang-tidy/

Area for Triage:
C/C++
Question, Bug, or Feature?:
Feature
Virtual environments affected

[X] macOS 10.15
[X] Ubuntu 16.04 LTS
[X] Ubuntu 18.04 LTS
[X] Windows Server 2016 R2
[X] Windows Server 2019

Can this tool be installed during the build?
Probably
Are you willing to submit a PR?
No

I tried to install it on ubuntu using sudo apt install clang-tidy but it fails:

The "obvious way" of installing clang-tidy during the build, i.e. installing it via apt, fails:
Run sudo apt-get install -y clang-tidy
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 clang-tidy : Depends: clang-tidy-6.0 (>= 6.0~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
##[error]Process completed with exit code 100.

This is likely because the ubuntu images add a PPA for clang/llvm, which causes ubuntu packages to conflict with ppa packages and generally creates a mess.

Thanks for your suggestion 🙏. Considering the current compatibility issues, and maintenance concerns, this is not something we will add to the image at this time.

@thejoebourneidentity @diagprov
I install manually clang-tidy-9 on ubuntu using what I found in llvm.sh used by the clang.sh script:
- name: Install clang-tidy
  run: |
      sudo apt-get install -y clang-tidy-9
      sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-9 100

It also works fine for clang-tidy-8 but it's not ok for clang-tidy-6.0:
The following packages have unmet dependencies:
 clang-tidy-6.0 : Depends: libllvm6.0 (= 1:6.0-1ubuntu2) but 1:6.0.1~svn334776-1~exp1~20190309042703.125 is to be installed
E: Unable to correct problems, you have held broken packages.

@mathbagu thanks, that's useful to know and better than my solution :). I'm not generally familiar with ubuntu's internals and didn't look too hard to be honest.


metro:0.1.1

I am submitting

[ ] a new package
[x] an update for a package

Description: Tidy up codebase and manual, add new control options and fix spacing.
I have read and followed the submission guidelines and, in particular, I

[x] selected a name in conformance with the guidelines
[x] added a typst.toml file with all required keys
[x] added a README.md with documentation for my package
[x] have chosen a license and added a LICENSE file or linked one in my README.md
[x] ensured that my submission does not infringe upon the rights of a third party
[x] tested my package locally on my system and it worked
[x] named this PR as name:version of the submitted package
[x] agree that my package will not be removed without good reason

typst.toml is missing


Make timezone daylight-savings-aware

Note: many code changes in this commit are caused by the "prettier" auto-formatter
The code of interest beings at L279. It is not particularly elegant but it seems that the python datetime library doesn't have enough flexibility regarding timezones to do something better.

The notable changes now begin at line 261.

I tested it and it works on Google Calendar for me, looks good!


[Usage recommendation request] Decompressing large EXRs in real-time.

Hi,
We're doing a virtual production based research project at Foundry. As part of that, we're investigating OpenEXR based solutions that meet the following criteria:

High resolution (8k, 16k, and beyond), HDR, RGBA image sequences (deep data and other channels not necassary).
File sizes as small as possible.
Real-time (24Hz+) playback.

It's fine to presume we have the PCIe bandwidth to perform transfers at rate, as well as good processing power on both the CPU and GPU front.
We're aware that this is very much "having one's cake, and eating it", however lots of OpenEXR-based options seem close, and we're wondering if the EXR experts can see a trick we've missed.
We're fine with lossy compression, which opens the doors to B44[A] and DWA[A/B]. B44 satisfies 1. & 3., but produces relatively large files when compared to DWA. DWA satisfies 1. & 2., but we would need better performance on the decompression.
With 16 threads, for 8k (8192x4096) scanline DWA I'm seeing around 60ms to read a frame, and for 16k I'm seeing around 230ms. Are there any missed tricks on either the encoding or decoding side which could be used to speed up this process? We've thought about a GPU implementation of DWA decoding, but from what we can tell, a combination of Huffman, RLE, deflate and zip are used for DWA's entropy encoding, none of which are particularly GPU friendly, and all together they sound very GPU unfriendly.
Alternatively, are we missing a trick with regards to any of the other compression methods which could help us meet our criteria?
Many thanks,
George

As a baseline, do you have metrics for uncompressed scanline and tiled reads?

Sure, I should have included some more metrics initially - here's what you asked for:

Type
2k
4k
8k
16k

Uncompressed Scanlines
11.32ms
38.18ms
143.57ms
554.91ms

Uncompressed Tiled
12.11ms
43.66ms
156.71ms
560.20ms

DWAB Scanlines
13.33ms
32.94ms
67.87ms
248.48ms

DWAB Tiled
9.79ms
23.24ms
67.52ms
235.73ms

Those results were taken with calls to RgbaInputFile::readPixels and TiledRgbaInputFile::readTiles, surrounded by QueryPerformanceCounter. I saw a lot of your suggestions in #1717 for a similar-ish (inverse) problem and don't think our method of loading from storage should be an issue, we're able to saturate PCIe in our actual app (not the test app I used for these results), so I'm mainly wondering about decompress performance.
Any thoughts appreciated.

This is fantastic data, thank you. Are you aware of the staging/cpp-rewrite branch? The Core has been rewritten in C with concurrency and general performance in mind; it will be merged to main once it matures. It would be great to have the same metrics for the branch, although I hate to ask you to take on more work.

I wasn't aware of that branch - thanks for pointing it out. I've given it a test run and here's the equivalent data:

Type
2k
4k
8k
16k

Uncompressed Scanlines
12.31ms
33.26ms
96.85ms
275.59ms

Uncompressed Tiled
7.44ms
19.96ms
77.50ms
253.73ms

DWAB Scanlines
21.48ms
42.18ms
107.85ms
380.17ms

DWAB Tiled
14.86ms
31.81ms
99.20ms
391.36ms

The speedups for uncompressed data are quite incredible! Unfortunately, as things currently stand, it seems like DWA compressions have a slight decompression performance hit on my system. I've double checked everything and tried to include a brief look at where my CPU is spending time on staging/cpp_core_rewrite:
16k raw scanline:
|--------------------------------------------------| total CPU time 100%
|--------------------------------------|             unpack_16bit_4chan_interleave_rev 75.11%
|--------|                                           default_read_func 15.61%
|-----|                                              other ~9.28%

16k raw tile:
|--------------------------------------------------| total CPU time 100%
|----------------------------------------|           unpack_16bit_4chan_interleave_rev 79.97%
|----------|                                         default_read_func 19.19%
|-|                                                  other ~0.84%

16k DWAB scanline:
|--------------------------------------------------| total CPU time 100%
|-------------------------------------|              DwaCompressor_uncompress 73.6%
|----------|                                         unpack_16bit_4chan_interleave_rev 19.21%
|--|                                                 DwaCompressor_destroy 4.68%
|-|                                                  other ~2%

16k DWAB tiles:
|--------------------------------------------------| total CPU time 100%
|----------------------------|                       DwaCompressor_uncompress 56.55%
|----------------|                                   unpack_16bit_4chan_interleave_rev 31.85%
|-----|                                              DwaCompressor_destroy 10.82%
|-|                                                  other ~1%

A slightly finer grained, but still brief, look at DwaCompressor_uncompress on staging/cpp_core_rewrite:
DwaCompressor_uncompress (scanline & tiled are similar)
|--------------------------------------------------| total CPU time 100%
|----------|                                         fromHalfZigZag_scalar ~20%
|----------|                                         DwaCompressor_initializeBuffers ~20% (scanline 22%, tiled 18%)
|---------|                                          convertFloatToHalf64_scalar ~17%
|------|                                             internal_huf_decompress ~11%
|----------------|                                   other ~32%

I notice that, as you mentioned, the cpp_core_rewrite DWA codepaths are quite different to the main ones, so it might not be much use to draw a comparison, but here's brief attempt:
DwaCompressor::uncompress (scanline & tiled are similar)
|--------------------------------------------------| total CPU time 100%
|---|                                                Imf3_3::<anon namespace>::fromHalfZigZag_scalar ~6%
|--------------|                                     Imf3_3::<anon namespace>::convertFloatToHalf64_scalar ~27%
|------|                                             Imf_3_3::hufUncompress ~12%
|----------------------------|                       other ~55%
(Unable to find equivalent to DwaCompressor_initializeBuffers, Imf3_3::DwaCompressor::initializewBuffers seems to take up ~0.07% of DwaCompressor::uncompress, so I imagine this functionality happens elsewhere)

How do these timing line up with what you'd expect from the branch? I don't believe my CPU is making use of a lot of optimisations in internal_dwa_simd.h, which is a shame.
Aside from that, if you have any more suggestions to try, they'd be appreciated. Though, if this is the best we'll get on CPU, that's fine - it feels like real-time is quite far away, and I realise I'm asking for long shots.


Gallery: Post your screenshots / code here

You can post your screenshots here!

https://github.com/ikpil/DotRecast/assets/313821/32a72a43-8f02-4214-8f1e-86b06952c8b7

still lots of work left but I finally had the time this week to get nav mesh generation working in Stride with Bepu physics colliders.

NOTE: I still need to make better debugging visuals but each black square is a vertex of the nav mesh.
Huge shoutout to this repository, working with this instead of C++ has been wonderful!

https://youtu.be/SEbbtxGr_U4
Finally added Detour now as well! moving on to optimization and cleaning up the mess I made now lol

huge-board
500 x 500

Uploading huge-board.zip…

Works decently with outside scenery!

We are making meshes for an MapleStory2 emulator, this is one of the maps. :D


Version name - should be 1.1-beta

instead of a snapshot. Also, we should use 1.1 consistently everywhere. There are some traces of 1.0-Snapshot when you use the archetype

@selvasingh  The snapshot versions are used for private preview. For public preview, we are using verion 1.0 (in Maven central).
Also, I didn't see anywhere else using 1.1-beta. Could you explain more about it?

@selvasingh is this issue still valid?

Closing this issue since this is inactive for a long time. Please feel free to reopen it if anyone find this is a problem.


Ability to turn off SDK logs

The Sift SDK is generating quite a lot of logs at the info and debug levels, not just error. While these are good for getting started with an SDK, I really don't want to be logging this information in production apps. Would Sift be okay with me making a pull request to introduce a logging flag in the Sift.Config.Builder?

sure, yeah! that would be great.

This is still an issue if you either don't use ProGuard (which you should) or when you don't use ProGuard optimisation. By default Android projects do not have this turned on, and in that case debug logging will still be visible in release builds. Please add an option to the builder like many other SDKs have.


change: Kotlin Gradle plugin becomes available for library consumers

Codecov Report

Merging #33 into master will not change coverage by %.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #33   +/-   ##
=========================================
  Coverage     93.46%   93.46%
  Complexity       46       46
=========================================
  Files            27       27
  Lines           444      444
  Branches         28       28
=========================================
  Hits            415      415
  Misses           18       18
  Partials         11       11

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 c91673a...8d867b8. Read the comment docs.


Question on: create.database

First command gives error for "label is not valid parameter". Last command gives error as well for the files provided.

Thanks for bringing this to our attention - it has been fixed now at https://mothur.org/wiki/create.database/

Solved, thanks!
On 09/09/2022 15:24, Pat Schloss wrote:

Thanks for bringing this to our attention - it has been fixed now at
https://mothur.org/wiki/create.database/
—
Reply to this email directly, view it on GitHub
https://github.com/mothur/mothur.github.io/issues/92#issuecomment-1241972683,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKKFSIQKBUNZHOMGIJSWQLV5M3BDANCNFSM6AAAAAAQIVL5JU.
You are receiving this because you authored the thread.Message ID:
@.***>


Update behavior changed

I updated my linux distribution (mint) - it now has rhash v1.3.9 in the repo.  A script I previously had working is now broken.
With v.1.3.1 I could call
rhash --md5 -u md5sum.txt  which would work.  With v.1.3.9, rhash gives a syntax error.
As a workaround I can call
rhash --md5 -u md5sum.txt *.  Although that sort of works, I get an error message for every directory that only has an md5sum file RHash: <dirname>: Is a directory.
Is there a better way to call rhash than using a wildcard, that would suppress the 'Is a directory' messages?
As a side note, I would like to see which files the md5 is being updated.  Although verbose shows this, it also outputs 3 2 superflous lines every time viz.
Config file: /etc/rhashrc
Format string is: %m  %p\n
Is there any way to filter those out and just see which file's checksums have been changed or added?  (I've tried grep and tail but my bash skills aren't up to the task)
Thanks VERY much for a great tool.

The --update option has been changed due to request #33. The change was requested many times and the previous behavior has been often perceived as counterintuitive.
You should use:
rhash --md5 --maxdepth=1 -ru md5sum.txt .

Filter out two first lines and the last line with sed:
rhash --md5 --maxdepth=1 -vru md5sum.txt . 2>&1 | sed -e '1,2d; $d'

Thanks you very much Alexsey.  Really, really appreciate that.
Worked like a charm!


Documentation for tf.contrib.layers.stack replaced by documentation for tf.stack

Documentation for tf.contrib.layers.stack appears to be replaced by documentation for tf.stack, see
https://www.tensorflow.org/api_docs/python/contrib.layers/higher_level_ops_for_building_neural_network_layers_#stack

@josh11b Did you have a docs rewrite planned?

This is fixed in the 1.0 docs.


[opentelemetry-cpp] update version to 1.5.0

Describe the pull request

What does your PR fix?
Update opentelemetry-cpp port to the latest v1.5.0.

Which triplets are supported/not supported? Have you updated the CI baseline?
All Linux and static Windows build.

Does your PR follow the maintainer guide?

Yes

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Thanks!


[Form validation] Integer Prompt Should Show Range Error

Default prompt message shows Please enter an integer value in case the range rule was violated.
In case the validation rule was for example integer[0..50]: Would be better to show the range error instead of the (not so user friendly user).
In case the rule was just integer, the same current message be produced.
Suggested message would be: Value should be within range of (x, y), or better Value should be greater than X and less than Y

The community fork Fomantic-UI added support to show the range values inside the default prompt by
https://github.com/fomantic/Fomantic-UI/pull/1796
See https://jsfiddle.net/lubber/g3nte1m6/14/


Patching email of type work via Azure provisioning not working.

Hi, when i try to patch a users email, via Azure's provisioning I recived the following error message:
Web Response: {"detail":"No target found for path-filter 'emails[type eq \"work\"].value'","schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"status":400,"scimType":"noTarget"}

When trying to perform the same request using Postman with the following body:
{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
    ],
    "Operations": [
        {
            "op": "replace",
            "path": "emails[type eq \"work\"].value",
            "value"<EMAIL_ADDRESS>        }
    ]
}

I reviced the same error message as i did from Azure as I mention earlier, however when using the following operation, the patch work as inteded and I reviced an  the email address was updated.
{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
    ],
    "Operations": [
        {
            "op": "replace",
            "path": "emails",
            "value": [{ "type": "work","value"<EMAIL_ADDRESS>"primary": true }]
        }
    ]
}

I also found out that it was possible to patch a user's phoneNumber via an Operation similar to the email operation that failed.
{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
    ],
    "Operations": [
        {
            "op": "replace",
            "path": "phoneNumbers[type eq \"work\"].value",
            "value": "+1<PHONE_NUMBER>"
        }
    ]
}

How come that it's possible to patch and change the user's phoneNumber via Azure, but not the email field when performing similar operations? Is this behavior intended, or what could cause this error message.

I need to do some tests. But I can currently only think of three possible scenarios:

The get-endpoint is not entering the type value into the email-object
the type-value contains other characters e.g. whitespaces
the type-value was never set for the email

I will later check these three possibilites.
One question. May it be that the email with type "work" is marked as primary by any chance?

alright that is probably the culprit:
List<Email> emails = getAttributeList(Email.class, AttributeNames.RFC7643.EMAILS, userModel);

    Optional.ofNullable(userModel.getEmail()).ifPresent(email -> {
      // remove emails that are marked as primary in favor of the email property attribute of the user
      emails.removeIf(MultiComplexNode::isPrimary);
      emails.add(Email.builder().primary(true).value(email).build());
    });

If the email we are talking about is the primary email the type value is getting lost on retrieving it eventhough it is stored in the database. That would explain why the target is not found.
I will later write a fix here.

Thanks for the fast replay, correct the email with type work is marked as primary.


Refactor/remove BilinForm

There seems to be broad agreement that in the long term structure BilinForm should not exist - instead we should use M →ₗ[R] M →ₗ[R] R.
Many BilinForm results already have equivalents e.g. following #9485, many of the results in LinearAlgebra/Matrix/BilinearForm are just wrappers around results in LinearAlgebra/Matrix/SesquilinearForm.
One possible objection to removing BilinForm altogether at this stage is that it supports non-commutative semirings, which M →ₗ[R] M →ₗ[R] R does not support without further assumptions.
Zulip discussion: https://leanprover.zulipchat.com/#narrow/stream/116395-maths/topic/Quadratic.20Maps/near/395767687
Related issues/PRs:

#7581
#9485
#10097
#10238
#10422
#10424
#10432

One possible objection to removing BilinForm altogether at this stage is that it supports non-commutative semirings,

I don't think this is meaningfully true; the axiomatization is basically nonsense for non-commutative semirings, so while we may support BilinForm R when Semiring R, it's not a "bilinear form" any more


[Bug Report]: Microsoft/Cache/redis Premium deploys all replicas in Zone 1

Describe the bug
I think this is an oversight:
zones: skuName == 'Premium' ? pickZones('Microsoft.Cache', 'redis', location, 1) : null

https://github.com/Azure/ResourceModules/blob/main/modules/Microsoft.Cache/redis/deploy.bicep#L206
When the target region has AZ's enabled, and Premium cache is selected, all replicas are deployed to Zone 1. A user should be able to choose which zones to use when opting for zone redundancy. Or they should be able to opt out of ZR and let the service decide where the replicas are deployed (I suspect replicas are deployed in an availability set when zones is not set).
Line 206 could be changed to:
zones: skuName == 'Premium' ? pickZones('Microsoft.Cache', 'redis', location, 3) : null

However, this will error if there are less than 3 zones in the Region (unlikely, but feasible). Also, some users may want all of their replicas in a particular zone or zones. I suggest that zones is converted to a param, i.e.
param zones array = []

// ...

zones: zones

When zones is set, ZR is enabled and the specified zones are used. When zones is not set (defaults to []) ZR is not enabled.
To reproduce
This bicep:
module redisCacheModule 'modules/Microsoft.Cache/redis/deploy.bicep' = {
  name: redis
  params: {
    name: redis
    location: 'westus2'
    skuName: 'Premium'
    capacity: 1
    replicasPerMaster: 2
    replicasPerPrimary: 2
    tags: tags
  }
}

Results in this deployment:
"instances": [
            {
                "sslPort": 15000,
                "zone": "1",
                "shardId": 0,
                "isMaster": false
            },
            {
                "sslPort": 15001,
                "zone": "1",
                "shardId": 0,
                "isMaster": true
            },
            {
                "sslPort": 15002,
                "zone": "1",
                "shardId": 0,
                "isMaster": false
            }
        ]

"zones": [
        "1"
    ]

Note that all replicas are deployed to zone 1.
Code snippet
No response
Relevant log output
No response

@itpropro, @MrMCake, if you agree with my suggestion to add a zones param, I am happy to create a PR.

Hey @DanielLarsenNZ, we should aim to provide good defaults to the user, which is why I would keep the automatic picking with the addition of using 3 instead of 1 for the number of zones (pickZones should handle, if there are only two zones) and optionally provide a zones array.
Could look something like this:
param zones array = []
...
var availabilityZones = skuName == 'Premium' ? zones ? zones : pickZones('Microsoft.Cache', 'redis', location, 3) : null
...
zones: availabilityZones

Hey @itpropro, yes I considered that too, but what if user does not want a zonal deployment? I checked with PG; if zones is null or empty array then service will choose where replicas are deployed. How about a new param zoneRedundant bool similar to Microsoft.Web/serverfarms? Something like:
@description('Optional. When true, replicas will be provisioned in availability zones specified in zones param. When false, service will choose where replicas are deployed.')
param zoneRedundant bool = false
@description('Optional. If zoneRedundant param is true, replicas will be provisioned in the availability zones specified here.')
param zones array = []
...
var availabilityZones = skuName == 'Premium' ? zoneRedundant ? zones ? zones : pickZones('Microsoft.Cache', 'redis', location, 3) : []
...
zones: availabilityZones

That looks fine for me @DanielLarsenNZ, the only thing I would change is to set zones deployment to true as default to provide production ready configurations if nothing is provided. We should find a way to standardize this as a building block like with locks and custom roles. The only thing we would have to adjust per service is if zones are required when using a specific SKUs or if it is still optional with all SKUs.

The implementation
@description('Optional. When true, replicas will be provisioned in availability zones specified in zones param. When false, service will choose where replicas are deployed.')
param zoneRedundant bool = true

@description('Optional. If zoneRedundant param is true, replicas will be provisioned in the availability zones specified here.')
param zones array = []

var availabilityZones = skuName == 'Premium' ? zoneRedundant ? zones ? zones : pickZones('Microsoft.Cache', 'redis', location, 3) : []

(..)
properties: {
  zones: availabilityZones
  (..)
}

seems to be a good compromise. Should be implemented once #1819 is merged to avoid conflicts.

@AlexanderSehr - Do we have this staged ready to PR?


Ammonite caches dependencies too aggressively

I am trying to get an Ammonite script to depend on the latest version of an internal dependency.
I have something that looks like that:
interp.repositories() = List(coursier.MavenRepository("..."), ...)
System.setProperty("coursier.ttl", "0s")
interp.load.ivy("foo.bar" %% "baz" % sys.env.getOrElse("VERSION", "0+"))

@

@main def entrypoint(args: String*): Unit = {
  foo.bar.baz.Main.main(args.toArray)
}

It looks like Ammonite is not able to detect that a new version was released. We currently ask the users of the script to either:

rm -Rf ~/.ammonite/cache/
use VERSION="x.y.z"

But it defeats the purpose of having users not to worry about knowing what the latest version is.
The coursier.ttl trick was suggested by @alexarchambault and he pointed me to https://github.com/coursier/coursier/blob/a2ef75abcbb2cbdbc421f22c55a4a2ab960687e2/cache/jvm/src/main/scala/coursier/Cache.scala#L1137 but it didn't fix the problem.

This is kind of the same issue as https://github.com/lihaoyi/Ammonite/issues/433 (whose fix was lost at some point, it seems).
I guess we can get rid of the ivyCache of Ammonite altogether… It's not that useful since the switch to coursier, and it can have unintended side effects, like this issue.


ZED_SVO_Export to sequence stuck at 99 percent

The .svo file is recorded via ZED-unity (plugin v2.8.2). Then I use ZED_SVO_Export.exe <filename>.svo output_folder\ 2 to convert into sequence of images. It will get stuck at 99%, as shown in the screenshot. However, the images are already generated in the output_folder.
ZED SDK version: 2.8.5
Windows 10

+1
I am facing very similar issue on Ubuntu 18.04
with 3.5-gl-devel-cuda10.0-ubuntu18.04 docker env.

Can you check here :
https://github.com/stereolabs/zed-examples/issues/379
Make sure you are pulling the last version


no results for sfdx force:source:retrieve -m LightningComponentBundle

Summary
Looks like a repeat of #33 and #43
sfdx force:source:retrieve -m LightningComponentBundle returns no results
Steps To Reproduce:

have a non-scratch org with LWC in it that aren't held locally (may be a bug on scratch orgs, too, I just haven't tested that)
sfdx force:source:retrieve -m LightningComponentBundle

Expected result
retrieves the LWCs to local source
Actual result
no results found
VS Code Version:
1.39.2
SFDX CLI Version:
sfdx-cli/7.23.1 darwin-x64 node-v10.16.3
salesforcedx 47.3.7
OS and version:
mac mojave 10.14.6

https://github.com/forcedotcom/salesforcedx-vscode/issues/1760

@mshanemc we are creating an internal investigation and will let you know if we have any questions

Any workarounds in the meantime to retrieve LightningComponentBundle metadata from a non-scratch org?

hello @brianevanmiller I just tried to reproduce the issue on windows/mac and on scratch orgs and sandboxes and couldn't. Are you still running into this issue? Do you have any steps to reproduce, maybe I missed something?

I still have the issue.  Was trying to use a production org and wasn't able to, yesterday.

@mshanemc Do you have more detailed steps to reproduce? I

create LWC via CLI
push/deploy
change the LWC remotely
pull/retrieve the LWC successfully.

what version of the cli are you on? are you on a windows or mac machine? Are you able to mdapi retrieve the LWC?

I've actually got this same issue.  I am trying to work on a coworker's code that is out of town.  I went to retrieve the lwc folder from source, but it does not retrieve his files for some reason.  I've also tried to retrieve the whole project, but it does not pull in his new lwc or aura components. I'd imagine making an entirely new visual studio project would work, but that is not the ideal solution.  We are not working in a scratch org, but are working in a standard dev sandbox.

@smcmickleMTM are you using the VScode extensions? or the cli directly?

@williamruemmele-sf  I was using the official extension from Salesforce.  I found a workaround is to just type in the command in the terminal, which is fine for me.  I suppose that means that I was using the extension and now I'm using the CLI directly.  Thanks for asking!

@smcmickleMTM Just to clarify, it works in the cli ( in the terminal ) but not if you're using the vscode extensions?

@williamruemmele-sf It still works (retrieves classes) in the terminal if I have the extensions installed, but the extension UI from right clicking and retrieving from source does not retrieve new classes.

@smcmickleMTM Please feel free to correct me if I am misunderstanding.
In VSCode, when using the UI to right click and call 'SFDX: Retrieve Source from Org', it is not expected that new components will be brought into the project.
This is actually what the OrgBrowser was designed to help with. Previously to pull in new source for situations like this, a user would have to modify their manifest file. The OrgBrowser is designed to help developers easily pull in new metadata from the org into their workspace.
Please see below for some documentation. If there are any questions, please don't hesitate to reach out.
Org Browser:
https://developer.salesforce.com/tools/vscode/en/user-guide/org-browser/
Retrieve Background + Manifest Documentation:
https://developer.salesforce.com/tools/vscode/en/user-guide/development-models

@sfsholden
I am expecting to be able to pull in new components with right click folder -> Retrieve Source from Org, however, it currently does not pull in new components when I do so.

@smcmickleMTM Thanks for reaching out. That is the expected behavior. Please have a look at the documentation linked above - it sounds like the Org Browser will be the solution needed for pulling those new components from the Sandbox.

this was closed as W-6852224
11/18/2020


Test Main Weaviate's CICD

What's being changed:

this PR is to test the main weaviate github workflow actions as best as we can in this private fork

Review checklist

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@01503c6). Click here to learn what that means.
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff            @@
##             master      #20   +/-   ##
=========================================
  Coverage          ?   64.12%
=========================================
  Files             ?      642
  Lines             ?    67062
  Branches          ?        0
=========================================
  Hits              ?    43004
  Misses            ?    21410
  Partials          ?     2648

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

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


App dies on first load OSX

opens the second time. unsure if its related but i had to also give it access to my downloads folder.


Enable layer-by-layer caching of Dockerfile instructions for all images specified in werf.yaml

Before proceeding

[X] I didn't find a similar issue

Problem
When using Buildah, users can enable layer-by-layer caching of Dockerfile instructions via the staged directive:
# werf.yaml
image: example
dockerfile: ./Dockerfile
staged: true

However, currently, there is no way to enable this feature globally for all images. This limitation requires users to specify the caching option individually for each image, which can be tedious and error-prone in projects with multiple images.
Solution (if you have one)
Add the staged option in the meta section of werf.yaml to activate layer-by-layer caching for all images at once.
project: app
configVersion: 1
build:
  staged: true

Additional information
Details on layer-by-layer caching can be found in the werf documentation: werf layer-by-layer caching.

Hey @alexey-igrychev I am new and wanted to contribute.
Can I work on this issue?

Can you please share steps to get started?

Hello, and thank your interest in this issue! ❤

Begin by understanding how the werf.yaml configuration is read and processed, then look into how the current staged directive works for individual images and where it is used.
After that, you will have enough knowledge to add the new staged directive under the build section and the rest of the code.

Ensure that an image-specific staged setting overrides the common one, maintaining flexibility for individual configurations:project: app
configVersion: 1
build:
  staged: true
---
image: example
dockerfile: ./Dockerfile
staged: false

Finally, you should update documentation here and here.

Layer-by-layer caching works only with the Buildah backend and you can find the necessary setup instructions here.

Don't hesitate to reach out if you have any questions or need help along the way. 🙌🏼

Hey @alexey-igrychev  Thanks for helping me..
I had a few doubts-

we have many werf.yaml files so which one should I look and understand the code of that file?

You pointed to look into pkg/config/image_from_dockerfile.go file and see how the Staged is used but when i see it then i think it is used in the function ```
func (c *ImageFromDockerfile) IsStapel() bool {
return false
}

and it always returns false so i cant see that what should i look into this file?

Our end goal is to enable layer-by-layer caching globally in the werf.yaml file so we can add the staged option in the meta section of the werf.yaml

All files in the config folder related to directives in the werf.yaml and their processing.
I suggested looking at the usage of the staged option – it appears in six files:

Thanks I will look into it

Hey @alexey-igrychev  I looked into the files and dir mentioned by you and I will start working on it..
Just a question: can you please share some steps to get started?

Hey!
To get started with setting up werf using the Buildah backend, along with an example project, check out the documentation here. Once you're set up, don't forget to follow the contributing guidelines which you can find [here].

Hi, Is this task done? If not I would like to take this forward. Let me know

Hi, @psinghfmr
Issue has not yet been solved.
You can do it If @Bharadwajshivam28  does not mind.