Add FsFirestore

Hi there,
I am developing a functional F# wrapper for Firestore access.
Maybe this is something that will make F# more awesome than it already is.
https://github.com/mrbandler/FsFirestore

FsFirestore it now out of beta, official version released.

Nice, thank you!


help with trivial issues

Hello Kevin,
Thank you for the great Gungnir presentation in the Dutch Clojure meetup.
The project is really great and inspiring.
Can you please advise if you are looking for any help or support for this project implementation (something small to start with) ?
Regards, Eugene

Hi Eugene,
Thanks for the kind words, glad you liked it. Currently all the open issues are for discussions, so if you want to share your thoughts on them that would be great! I'll have a look if I can find some more tasks which needs to be done which are easy to pick up.

yeah, I've checked the list of open issues #4  attracted me the most.
I'm not familiar with Malli so if you could point me to the area which I can have a look at for inspiration that will be super helpful.
Also, could you please advise what is the preferred way of communication?
just in case my twitter handler "evtolbakov".

There's a Gungnir Slack channel which you can join. As for Malli the best place would be to look at their README https://github.com/metosin/malli
I'll close this issue, we can continue the our conversation on Slack :)


Update UG for stats and find command

(closes #189)
(closes #199)
Changed UG to address PED reports.
Also some minor changes for consistency in DG.

Codecov Report
Base: 44.46% // Head: 44.46% // No change to project coverage :thumbsup:

Coverage data is based on head (54c232b) compared to base (4612f90).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #203   +/-   ##
=========================================
  Coverage     44.46%   44.46%
  Complexity      648      648
=========================================
  Files           142      142
  Lines          3403     3403
  Branches        398      398
=========================================
  Hits           1513     1513
  Misses         1753     1753
  Partials        137      137

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

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


GitHub Actions migration

I shamelessly copied the script @jaimergp wrote for the toolkit and trimmed it down to this

Strange, the pip install wasn't able to remove the conda install (openforcefields was installed as an openforcefield dependency), even though I'm pretty sure that's precisely how it worked with Travis

Badges for this PR:
Badge for master after this PR (should be broken now):

@jaimergp please look this over and see if I broke anything :)

Hi @mattwthompson, would you mind if we use this PR to try that GH Action that Daniel Smith suggested? I am adding that to https://github.com/MolSSI/cookiecutter-cms/pull/95 as well, so it might a nice "real word" check while we are at it, if you don't mind :) Shouldn't me much of a change:

We need to add the action, which would replace the env setup:

    - name: Setup Conda Environment
      uses: goanpeca/setup-miniconda@v1
      with:
         activate-environment: test
         environment-file: devtools/conda-envs/test_env.yaml
         auto-activate-base: false

Replace later shell: bash lines with shell: bash -l {0}

Wow, that was... unexpectedly great!

LGTM! Great work y'all! it's a very clean implementation. :grin:

Thanks @jaimergp @dotsdl


CLOUDSTACK-9285 -  Agent throws an exception on reconnect and fails

Agent throws an exception that can never be recovered from when the agent attempts to reconnect and is sent a RST. This case occurs when a load balancer (haproxy) is proxying the traffic and there is no management server active to serve the request on the backend.
Original issue logs from agent.log:
2016-03-03 17:15:36,527 INFO  [utils.nio.NioClient] (Agent-Handler-2:null) (logid:) NioClient connection closed
2016-03-03 17:15:36,527 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Reconnecting...
2016-03-03 17:15:36,527 INFO  [utils.nio.NioClient] (Agent-Handler-2:null) (logid:) Connecting to <IP_ADDRESS>:8250
2016-03-03 17:15:36,540 ERROR [utils.nio.NioConnection] (Agent-Handler-2:null) (logid:) Unable to initialize the threads.
java.io.IOException: Connection closed with -1 on reading size.
at com.cloud.utils.nio.Link.doHandshake(Link.java:513)
at com.cloud.utils.nio.NioClient.init(NioClient.java:80)
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88)
at com.cloud.agent.Agent.reconnect(Agent.java:413)
at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:868)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2016-03-03 17:15:36,545 INFO  [utils.exception.CSExceptionErrorCode] (Agent-Handler-2:null) (logid:) Could not find exception: com.cloud.utils.exception.NioConnectionException in error code list for exceptions

After the patch is applied:
2016-03-03 17:50:05,190 INFO  [utils.nio.NioClient] (Agent-Handler-3:null) (logid:) NioClient connection closed
2016-03-03 17:50:05,190 INFO  [cloud.agent.Agent] (Agent-Handler-3:null) (logid:) Reconnecting...
2016-03-03 17:50:05,190 INFO  [utils.nio.NioClient] (Agent-Handler-3:null) (logid:) Connecting to <IP_ADDRESS>:8250
2016-03-03 17:50:05,206 ERROR [utils.nio.NioConnection] (Agent-Handler-3:null) (logid:) Unable to initialize the threads.
java.io.IOException: Connection closed with -1 on reading size.
at com.cloud.utils.nio.Link.doHandshake(Link.java:513)
at com.cloud.utils.nio.NioClient.init(NioClient.java:80)
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88)
at com.cloud.agent.Agent.reconnect(Agent.java:413)
at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:869)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2016-03-03 17:50:05,210 INFO  [utils.exception.CSExceptionErrorCode] (Agent-Handler-3:null) (logid:) Could not find exception: com.cloud.utils.exception.NioConnectionException in error code list for exceptions
2016-03-03 17:50:05,211 INFO  [cloud.agent.Agent] (Agent-Handler-3:null) (logid:) Attempted to connect to the server, but received an unexpected exception, trying again...
2016-03-03 17:50:10,211 INFO  [cloud.agent.Agent] (Agent-Handler-3:null) (logid:) Reconnecting...
2016-03-03 17:50:10,211 INFO  [utils.nio.NioClient] (Agent-Handler-3:null) (logid:) Connecting to <IP_ADDRESS>:8250
This has been tested on 4.7.1 and master.

@kiwiflyer your change makes sense to me, (un)fortunately we have quite strict checkstyle settings. Can you replace the tab with spaces?

Daan,
Sorry about that. I've fixed it, pushed the commit and checks are now passing.
Simon

@kiwiflyer Simon, I'm a nag but can you recreate this PR against 4.7? We've confirmed it on 4.7 s well. I think it was introduced in 4.6 even but that release is intermediate in our release process change so we might want to skip it.

@kiwiflyer Thanks, have seen this as well and will try your fix when I have some time :-)

Closing this PR, as this issue has been address more cleanly in my other PR against 4.7 - https://github.com/apache/cloudstack/pull/1430


Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up)

In the first commit in PR #8203, I changed how the DownloadManager was included/initialized in GENERIC/CHROME builds.
The change was propted by the fact you cannot have conditional imports with ES6 modules, and I wanted to avoid bundling the general DownloadManager into the various Firefox specific build targets.
What I completely missed though, is that the new code meant that download_manager.js will now be pulling in the entire viewer (through app.js).

The simplest solution that I could come up with, is to add a genericcom.js file (similar to the firefoxcom.js/chromecom.js files) which will be responsible for importing/initializing the DownloadManager.
This should fix the remaining warnings in issue #8292, and also restores the viewer components specific pdf_viewer.js file to its intended scope/size.

/botio-linux preview


feat(Data/Finsupp): add notation

This PR provides fun₀ | 3 => a | 7 => b notation for Finsupp, which desugars to Finsupp.update and Finsupp.single, in the same way that {a, b} desugars to insert and singleton.
It also provides a matching delaborator: as an example of the effect of this, Finsupp.single_add now shows as:
Finsupp.single_add.{u_2, u_1} {α : Type u_1} {M : Type u_2} [inst✝ : AddZeroClass M] (a : α) (b₁ b₂ : M) :
  (fun₀ | a => b₁ + b₂) = (fun₀ | a => b₁) + fun₀ | a => b₂

Finally, it provides a Repr instance; though this is somewhat misleading as the syntax that is produced by Repr isn't actually computable so can't round-trip!

Marked RFC while we discuss on Zulip
A nice example of the Repr in action is
#eval Finsupp.antidiagonal ⟨{1, 2}, fun x : Fin 3 => x, sorry⟩
/-
{(0, fun₀ | 1 => 1 | 2 => 2),
 (fun₀ | 1 => 1, fun₀ | 2 => 2),
 (fun₀ | 2 => 1, fun₀ | 1 => 1 | 2 => 1),
 (fun₀ | 1 => 1 | 2 => 1, fun₀ | 2 => 1),
 (fun₀ | 2 => 2, fun₀ | 1 => 1),
 (fun₀ | 1 => 1 | 2 => 2, 0)}
-/

I really like this! :) Given that ↦ is standard for fun expressions in mathlib, though, I would suggest that:

both => and ↦ should be available as input notation, and
the delaborator should use ↦
so that it's as close as possible to fun syntax.

both => and ↦ should be available as input notation, and

This does not work for regular functions, so I think supporting it here would just be confusing
#check show ℕ → ℕ from fun | 0 => 0 | Nat.succ n => n + 2 -- ok
#check show ℕ → ℕ from fun | 0 ↦ 0 | Nat.succ n ↦ n + 2 -- fail

If we fix fun then fun₀ will start working automatically

the delaborator and Repr instance should use ↦

Not without 1. they shouldn't!


#CodeStyle Method names always start with lower letter

@thisDotMando It's common practice to write method names in the beginning with lower letter to easily distinguish it from Classes/Views etc. which start with an upper letter.
App.vue
    async DoLogout() {
      await this.logout()
      this.$router.push('/login')
    }

;-)


A quick beginner question regarding flutter_flavorizr

Hey there,
Really liked this flutter_flavorizr package to build flavours in Flutter. 👍
I had one quick question: You have shown flavours in two different apps: Apple app and Banana app. Can you please tell how can we implement flavours on the same application. Like I need two different environments i.e. prod and dev environment for one single application. Do I need to make two different Firebase projects for running it in two different environments? And if yes, how can I add a same project as two different Firebase projects for getting two different appIds and Bundleids?
Would be great if you could guide! 😄

Hi @Hemshree ,
If you are creating flavors based essentially on same package name but with different build destinations, I would suggest you to always create two flavors, but with the same package name: in this case the pubspec will look like this:
flavorizr:
  app:
    android:
      flavorDimensions: "flavor-type"
    ios:

  flavors:
    dev:
      app:
        name: "My App (For developers only)"

      android:
        applicationId: "com.example.app"

      ios:
        bundleId: "com.example.app"

    prod:
      app:
        name: "My App"

      android:
        applicationId: "com.example.app"
      ios:
        bundleId: "com.example.app"

If you need Firebase, you can create a single project with a single google-services.json. I guess you will need a single google-info.plist file too. I think you don't need to create two different package names or bundle ids for the very same app. Things start to be a little more tricky when you need firebase for different package names and bundle ids.
Anyway, I'm working on firebase related stuff, so I will add these features later.
I hope that this clarifies the issue.

Thank you for such a fast response, @AngeloAvv! 😄
Actually, I'm making a project in which I've to add two environments dev and prod and I need to make two firebase projects for the same as I want to store different values in the database for different environments. If I'll make two separate firebase projects, I'll have two google-services.json and two google-info.plist files. How can I manage my two services.json and info.plist file in the same project and then use the package to create flavours? It'd be great if you could guide. Thank you! 👍

As I said before, the firebase integration requires manually operations for now (I'm still working on these features). So create the firebase projects, then flavorize your flutter project with flutter_flavorizr and then follow this article from medium to integrate the google-services.json and google-info.plist.
https://medium.com/@animeshjain/build-flavors-in-flutter-android-and-ios-with-different-firebase-projects-per-flavor-27c5c5dac10b

Okay, Thank you for the response!


Unable to load all recorded frames from a Bag file-D435i

HI
i am new to this field. I used my d435i to record a bag file for a project. I am trying to process this bag file using python 2.7. However, the code crashes before loading all the frames. I used the SDK viewer to play the bag file and it works fine without any errors.
I am using 848X100 with 300 fps as i am trying to capture a fast moving object.  Recording duration is 50 secs which makes is around 15000 frames in total.  The code crashes when it loads around 6000 frames. When the code crashes, i get the below error. I tried increasing the wait time to 10000 but still received the same error.
RuntimeError: Frame didn't arrive within 5000
I searched online but i could not find a solution for this issue.
Camera: D435i
firmware: 05.12.05
Windows 10/PC
SDK V2.33.1
Python 2.7
Here is the code i am using to read the bag file:
import cv2
import numpy as np
import pyrealsense2 as rs
import pandas as pd
print("Environment Ready")
pipe = rs.pipeline()
cfg = rs.config()
cfg.enable_device_from_file("test2.bag",repeat_playback=False)
profile = pipe.start(cfg)
for x in range(5):
pipe.wait_for_frames()
i=0
try:
while True:
    frameset = pipe.wait_for_frames(30000)
    print("frame# "+str(i))
    i +=1

print("Frames Captured")

finally:
# Stop streaming
pipe.stop()
Thanks

Thank you for your answer. I tried the rs-convert.exe and it skips many frames (Python could retrieve more frames!!). I spent so much time searching online for a valid way to retrieve all the frames from a bag file without any useful solution. My application is based on analyzing depth at every single frame. The capability of D435 of producing high fps was the main reason to consider it in my project. is there any valid way to retrieve all frames from a bag file?

There is a Python discussion with a couple of comment links that may be useful.  The first is a bag extraction script, and the second has a suggestion for how to read a bag without losing frames.
https://github.com/IntelRealSense/librealsense/issues/1887#issuecomment-397529590
https://github.com/IntelRealSense/librealsense/issues/1887#issuecomment-502131891

Hey, I am using the rs-convert tool and the generated .csv files it 1280 cols,720 rows where can I know which column corresponds to IMU data

CSV is a depth matrix format that stores a text representation of a depth image.  I'm not aware of IMU information being stored in it
The link below has an example of a csv that roughly illustrates the characteristics of the original depth image.
https://github.com/IntelRealSense/librealsense/issues/3632#issuecomment-478328945

@MartyG-RealSense is there any way to get IMU data from pre-recorded files(.bag format)

@vams08  There is not much information on the subject, and what there is refers to the Python language.  If you only want the IMU data from the bag then it may be straightforward.   If you want to extract both IMU and depth at the same time then it may be more complicated.
The links below offer Python scripting:
https://github.com/IntelRealSense/librealsense/issues/3969
https://github.com/IntelRealSense/librealsense/issues/4018

@vams08   Thanks so much for the update!


crypto and TLS implementation support

Hi, this looks like a very interesting project! I'm thinking about building ACME support into a project for which I would like to use rustls (which relies on ring). Would you be open to changes that allow the use of ring and rustls as an alternative to openssl?

Hello!
First of all, thank you and sorry for the delay, I missed the notification. The thing is, I wish to stay with only one crypto library. Unfortunately, ring is too high-level and does not implement the primitives I need to manage the private keys and certificates.
That said, since I do not like OpenSSL/LibreSSL, I am considering replacing the openssl crate with something else. My preference will go for something from the RustCrypto project if there is any. Because RustCrypto does not include TLS (yet?), I might then move the HTTPS crate to one which uses ring. However, that would not happen soon.
Meanwhile, I can recommend you acme-lib which uses ring for the HTTPS part. It has a few downsides like using both ring and openssl and not storing the account public key, but it is a good start for a new project.

Don't worry about the delay!
So if ring would implement the primitives you need, would you be interested? I regard ring as the best crypto implementation by far, and don't trust the maintainer(s) of RustCrypto nearly as much. I know the ring maintainer a bit and have contributed code before, so if you can articulate what additions we'd need we can probably get it done.

So if ring would implement the primitives you need, would you be interested?

I don't really like ring, but yes, I would be interested. Unfortunately, I think many of those primitives are against ring's philosophy of a « easy-to-use (and hard-to-misuse) API ».
A quick and maybe incomplete list of required primitives is:

generation of RSA2048/RSA4096/P256/P384/Curve25519 key pairs and possibility to export those in PEM and DER
X.509 certificate generation with full control over the content, including custom extensions
PKCS #10 CSR generation with full control over the content
X.509 certificate parsing and access to all of its content

Very curious to hear why you don't like ring!
I think the thing about ring is that it's only about the crytography, while a number of things you mention are more about the web PKI ecosystem. Have you looked at the webpki and rcgen crates? I know rcgen doesn't cover CSR generation yet, but I could probably implement that.

Very curious to hear why you don't like ring!

The fist thing that comes in my mind is static linking. Although I really like it in many situations, I don't think that's a good thing in the context of a cryptographic library. Using ring would mean I should release a new version of ACMEd every time ring releases a bugfix that affects functions I uses. I usually don't care that much about other dependencies, but we are talking about crypto here, it's a highly important and sensible subject. Therefore, having [Open|Libre]SSL dynamically linked is quite an advantage since the update it up to the package managers of each distribution.

I agree the crypto dependency is highly important and sensitive. On the other hand, this is exactly why I would go the other way. openssl has had a slew of dependencies over a period where ring has had one relatively limited vulnerability. As long as no vulnerabilities happen, I don't think you need to upgrade for every semver-compatible release, just for releases that break backwards compatibility.
Anyway, I noticed that you added a note about a potential ring dependency to your CONTRIBUTING. Does this mean you're also not interested in having ring as an alternative dependency that can replace the openssl dependency, or would that still be okay? I would move all the crypto API into acme_common and create some kind of interface over it (similar to https://github.com/djc/quinn/pull/351, actually) that would be implemented by openssl by default but optionally with ring instead.
rcgen can now generate certificate signing requests, so I think most of the pieces you mentioned are probably available at least for ECDSA certificates (and I can likely fill in what's needed for custom extensions as I run into it).

Anyway, I noticed that you added a note about a potential ring dependency to your CONTRIBUTING. Does this mean you're also not interested in having ring as an alternative dependency that can replace the openssl dependency, or would that still be okay?

This note is how I see the situation in the short term, it is not meant to be permanent. I am not hostile to have ring as an optional dependency, but it will not happen before version 0.7. Because 0.6 is almost finished (I think I'll release it right after implementing HTTPS rate limits), it can be quite soon.
I don't know where rcgen development is going, but right now it does not include the functionalities I listed above, which are absolutely required if I was to use it along ring. Let's see if it does include them over time and maybe, meanwhile, use something else.

Hi, rcgen author here. ring and especially webpki APIs are a bit restricted, yeah. This was done on purpose I think to prevent misuse and is in general a good idea for security libraries. As for my own crate, it also has a great focus on giving control to users about what to do.
Helping ACME implementations is definitely on my radar and I'm willing to add APIs that fall into the general scope of certificate generation, like custom extensions for example. If you need anything from rcgen, just file an issue.

generation of RSA2048/RSA4096/P256/P384/Curve25519 key pairs and possibility to export those in PEM and DER

ring can generate key pairs for the elliptic curves you mentioned and in fact rcgen wraps that to generate entire certificates. For RSA, there is no key generation support yet. I have created a PR to add it but it's blocked on @briansmith telling me how I should do multiplications.

X.509 certificate generation with full control over the content, including custom extensions

IDK what you mean with full content but if you need anything, just file an issue.

PKCS #10 CSR generation with full control over the content

This one just got added to rcgen by @djc !

X.509 certificate parsing and access to all of its content

This is out of scope of the rcgen crate. The webpki crate has parsing code but its results are not fully exposed to users.

Thank you for your feedback, it's much appreciated :smiley:
Now, let's see how everything is going. Currently, the situation is as follows:

Requirement
Crate
Status
Description

P256/P384/Curve25519 key pairs generation and signature
ring
:heavy_check_mark:

RSA2048/RSA4096 key pairs generation and signature
ring
:construction:
Under construction: briansmith/ring#733

PKCS #10 CSR generation
rcgen
:construction:
Not released yet: est31/rcgen#5

self-signed X.509 certificate generation with custom extension
rcgen
:x:
Not implemented yet: est31/rcgen#6

X.509 certificate parsing and access to all of its content
x509-parser
:heavy_check_mark:

The fist thing I'll do is to parse certificates using x509-parser instead of OpenSSL. This change will be permanent since, for this purpose, using openssl is a nightmare.
Once rcgen is released with custom extensions (and therefore CSR), I'll be able to add a standalone feature which does not use OpenSSL at all. If ring still doesn't support RSA at this time, I'll disable it in the feature.

Can you make explicit what extensions you need, exactly? Ideally we'd just support those needed for ACME in rcgen directly.

It's the acmeIdentifier extension described in draft-ietf-acme-tls-alpn. I use it in tacd which reads the already-computed content of this ext.

@breard-r if RSA key generation is a blocker for you, I'd recommend you don't wait until the ring PR is merged as I doubt it gets merged any time soon. Instead, once rcgen can take pre-generated keys, you will be able to use e.g. the rsa crate.

Ideally we'd just support those needed for ACME in rcgen directly.

Yeah that'd be ideal as then @breard-r doesn't have to include yasna themselves. I'm working on a commit to add support. Do you know of any test vectors (example certificates) that I can use to check whether my code is correct? I've also added support for rcgen users to specify any custom extensions: https://github.com/est31/rcgen/commit/67facafa0a29006ede47e12bf4ccd8e811fa73fb https://github.com/est31/rcgen/commit/608472b9aba87edf33987d2e50cc1345079026cd

I've pushed a commit to create acmeIdentifier extensions but it's untested: https://github.com/est31/rcgen/commit/bb2d369c01f8231c8e79d044063873a6ec3800a0

Do you know of any test vectors (example certificates) that I can use to check whether my code is correct?

:wave: Here's a small test program that can generate test TLS-ALPN-01 challenge response certificates (example cert). I made it quickly with the TLS-ALPN-01 code we wrote in the github.com/letsencrypt/challtestsrv package. It's used for integration tests of Let's Encrypt's implementation of TLS-ALPN-01 and should be correct as a comparison point.

@cpu thanks for the example cert. Optimally, @rolandshoemaker would include one in the RFC. Thanks to your help I've found a mistake in my code which I fixed in https://github.com/est31/rcgen/commit/5acb017cecd23617f73bc779c74cca28c333697b . Comparing the example cert with certs generated by me yields no significant differences.

0.3.1 release is out. Changelog entry. The only thing missing is RSA support (both when you specify the key yourself and RSA key generation support).

@est31 That's great news, thank you !
Since I have to refactor a lot of code, it may take some time before I commit anything without openssl, but I'm working on it.

After refactoring, sometimes twice, the crypto part of the code base, starting implementing several thing with ring and the others libraries, I have come to realize the truth: it is NOT possible at all to do it at the moment.
I forgot one very important requirement: an opaque type for key pairs cannot be accepted since I need to extract the public key components. For RSA, it is the modulus n and the exponent e, for the NIST EC it is the x and y coordinates. Without access to those or, at least, the ability to export the public key into the JWK format, there is nothing I can do. In ring, such functionnality is followed in briansmith/ring#579.
Furthermore, I also enjoy to see briansmith/ring#859 fixed.
I have no other choice but to suspend this ring experiment for now. I will look back to it once ring is mature enough to be actually used.

When I asked Brian Smith about these things, he mentioned that it was pretty much solved in jsonwebtoken and biscuit, so he recommended building on top of either of those.

No, it does not seems to be solved at all. As far as I know, jsonwebtoken does not support JWK at all and biscuit cannot import the parameters from a given key since ring does not expose those. Furthermore, biscuit also does not support JWK thumbprints. biscuit documentation is very clear about ring's limitations.

From my research, with only an ASN.1 decoding library like yasna, it's non-trivial to extract x and y values from the public key of an ECDSA key. I think the algo is described in this document section 2.3.4. As for RSA, the n and e values can easily be extracted from public keys as well as private keys in the second representation. It's non trivial for private keys in the first representation.
So that makes us kinda reliant on a proper implementation of ECDSA willing to open those parameters for us or to give native JWK support.

Does anyone know what the status of this is now that it's a year later? I know that rustls has gained a lot of ground and has even gotten audited for correctness, and that multiple projects are now offering it as an alternative to openssl.
Not sure what the status of key generation is though.

@clarfon As far as I know, ring is still not suitable since its has no plans to support the API parts required to implement the ACME protocol.
However, I am seriously looking at Botan as an alternative to OpenSSL. This cryptographic library seems robust, has a nice API and Rust bindings, which makes it a good candidate.


model.predict yeilds more predictions than the number of outputs

I've created a multi-class image classifier using CNN. I am using the keras module specifically and I am using generators to fit and then predict 4 different classes of images. My test_generator has 394 examples (all four classes combined), but my model.predict yields (6304, 4) predictions.
Here's the model summary:
Model: "sequential_2"
_________________________________________________________________
 Layer (type)                Output Shape              Param #
=================================================================
 IP (Conv2D)                 (None, 64, 64, 32)        320

 Convolution0 (Conv2D)       (None, 64, 64, 64)        18496

 PL0 (MaxPooling2D)          (None, 32, 32, 64)        0

 Convolution1 (Conv2D)       (None, 32, 32, 128)       73856

 PL1 (MaxPooling2D)          (None, 16, 16, 128)       0

 Convolution2 (Conv2D)       (None, 16, 16, 256)       295168

 PL2 (MaxPooling2D)          (None, 8, 8, 256)         0

 FL (Flatten)                (None, 16384)             0

 FC (Dense)                  (None,<PHONE_NUMBER>

 OP (Dense)                  (None, 4)                 516

=================================================================
Total params: 2,485,636
Trainable params: 2,485,636
Non-trainable params: 0
_________________________________________________________________

Here's how I created the test_generator: test_generator = core_imageDataGenerator(test_directory) and the result of len(test_generator.classes) is 394.
Here's how I made the predictions: predictions = model.predict(test_generator) and the result of predictions.shape is [6304, 4] and not [394, 4]. What could be the reason for this? Am I doing something wrong?
I am posting this here because I think this is a bug of some sort.  Also , what are my options here because my next step is to create a classification report with a variety of metrics.

Mistakes on my part. The target size for the generator I used to fit and predict my model mismatched which caused the issue. Closing the issue.


[AX] Add aria-live regions to NavigationCard

Bug/issue #89153793, if applicable:
Summary
It adds aria-live regions to NavigationCard so when a VoiceOver user filters the sidenav, they instantly get notified on:

What content has changed on Sidenav
If there is no children
It there is no results
If there has been an error fetching

Dependencies
NA
Testing
Make sure you download and unzip the .doccarchive - SlothCreator.doccarchive.zip
Steps:

run VUE_APP_DEV_SERVER_PROXY=/path/to/SlothCreator.doccarchive npm run serve
Enable navigator on theme-settings.json file
Visit http://localhost:8080/documentation/slothcreator
Open VoiceOver
Use the filter input and assert that live region updates you with the correct information described in the summary depending on the sidenav results

Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[x] Added tests
[x] Ran npm test, and it succeeded
[x] Updated documentation if necessary

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test


Website UI

Heyy, the website is good, but I feel there are many UI issue which I feel like fixing!
can I please be assigned this task?
Also there are a few things which would not allow this repository to be counted in as a hacktoberfest repositpory, since I am a maintainer in hacktoberfest having 22 contributors in my repo, I think I can pull a request to solve this issue as well!
@rjha27404 @Pjha72 @vishalkandu01 @suraj97303

ok

Please assign me this task @rjha27404


Feature: ASB-1414 Update 'Step-by-step' Navigation

Task

https://pins-ds.atlassian.net/browse/ASB-1414?atlOrigin=eyJpIjoiZjgyNjY0NTllYTAxNDA0ZThjMzBhYTAxMzc3NWMxYzMiLCJwIjoiaiJ9
https://pins-ds.atlassian.net/browse/ASB-1395?atlOrigin=eyJpIjoiNjVjZjczZjI3MzFjNGIzN2FmZDlhYmNjMTJiZmI2OWYiLCJwIjoiaiJ9
https://pins-ds.atlassian.net/browse/ASB-619?atlOrigin=eyJpIjoiMTBlYzE0YmI4NWVmNDZiZDg4MzQ1N2I3YmM5YjE5MmEiLCJwIjoiaiJ9

:tada: This PR is included in version 1.3.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.13.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.16.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Red alert icon displaying when no javascript errors on page

I see that this was fixed in v2.1.10, but I am on v2.1.11 and the issue is present today.

I'm having this issue as well.

no commente, this tool is too handy i like that deveoper has the times to work on this.
when i see the red sign it triggers my urge to check the console for errors, gives me thoose goose bumps, just a reminder to fix this, thanke schon

i have same issue

Hey guys! Could you please try to uninstall extension, and install JavaScript Errors Notifier (no FairShare) version? https://chrome.google.com/webstore/detail/javascript-errors-notifie/fhbooopdkjpkogooopbmabepipljagfn?utm_source=chrome-app-launcher-info-dialog and check if this problem is reproduced?

I deployed fixed 2.1.12 version. It looks like there was a problems with analytics module.

Thanks for the quick response. Back to working as expected!


feat: ViewTransition Astro component

What kind of changes does this PR include?
Allow user to set a new user configuration: viewTransitions (boolean)
This config sets Astro ViewTransitions component on Page layout if true

Changes to Starlight code

Description

What does this PR change? User configuration and Page layout

It looks like this currently breaks the pagefind/search functionality and also needs an astro version update.

It looks like this currently breaks the pagefind/search functionality and also needs an astro version update.

Thanks for testing that @turbek! Yes, View Transitions require all client-side scripts to include special handling, so it may be more involved than the changes currently in this PR. We might be able to solve this with transition:persist, but I’m not sure.

transition:persist="site-search" and a littlebit of extra code for the initialization solves the problem:
document.addEventListener('astro:page-load', () => {
	if (import.meta.env.DEV) return;

	const pageFind = document.querySelector('.pagefind-ui__search-input');

	if (pageFind) return;

	const onIdle = window.requestIdleCallback || ((cb) => setTimeout(cb, 1));
	onIdle(async () => {
		const { PagefindUI } = await import('@pagefind/default-ui');
		new PagefindUI({
			element: '#starlight__search',
			baseUrl: import.meta.env.BASE_URL,
			bundlePath: import.meta.env.BASE_URL.replace(/\/$/, '') + '/pagefind/',
			showImages: false,
			translations,
			showSubResults: true,
		});
	});
}, { once: true });

Although I'm not sure how ideal it is

Actually we removed the language switching because we currently support 1 language and since our website doesn't support dark theme atm, we removed theme switching as well. So we never tested theme/language switching features with the SPA mode.
ToC highlighting seems to work as expected though.

I was able to activate View Transitions by overrides Starlight Head.astro component.
I omitted translations since i don't have any.
 npm install @pagefind/default-ui

Add this custom Head.astro to your custom component in the components configuration option in astro.config.mjs:

---
import Default from<EMAIL_ADDRESS>import type { Props } from '@starlight/props';
import { ViewTransitions } from 'astro:transitions';
---

<Default {...Astro.props}><slot /></Default>
<ViewTransitions />

<script>
  // Skip PagefindUI on initial page load since it's already run by Search.astro.

  // Flag to track initial page load
  let initialLoad = true;

  document.addEventListener('astro:page-load', () => {
    // Skip PagefindUI on initial page load (and only execute on subsequent loads)
    if (initialLoad) {
      initialLoad = false;
      return;
    }

    // Code to initialize PagefindUI on subsequent loads (if needed)
    if (import.meta.env.DEV) return;

    const pageFind = document.querySelector('.pagefind-ui__search-input');
    if (pageFind) return;

    const onIdle = window.requestIdleCallback || (cb => setTimeout(cb, 1));
    onIdle(async () => {
      // @ts-expect-error — Missing types for @pagefind/default-ui package.
      const { PagefindUI } = await import('@pagefind/default-ui');
      new PagefindUI({
        element: '#starlight__search',
        baseUrl: import.meta.env.BASE_URL,
        bundlePath: import.meta.env.BASE_URL.replace(/\/$/, '') + '/pagefind/',
        showImages: false,
        translations: {},
        showSubResults: true,
      });
    });
  });
</script>

Super easy to add ViewTransitions to starlight in a similar way to @onemen, just needed to adjust the import paths.
Using @astrojs/starlight/* instead of @starlight/*
---
import Default from<EMAIL_ADDRESS>import type { Props } from '@astrojs/starlight/props'
import { ViewTransitions } from 'astro:transitions'
---

<Default {...Astro.props}><slot /></Default>
<ViewTransitions />

import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'

// https://astro.build/config
export default defineConfig({
  integrations: [
    starlight({
      components: {
        Head: './src/components/Head.astro',
      }
    }),
  ],
})

Adding view transition to a starlight side might involve more than enabling the basic transitions.
Beside all the things Fryuni mentioned that must work if you use them, there is a brave new world of extensions you might want to have, one view transitions are enabled:

Sidebar behavior that auto-opens categories if closed, e.g. on back navigation or that scrolls the current entry into view if it isn't
Reasonable animations when you navigate after you scrolled a page down (this typically results in a large morph animations that looks like wild scrolling
Animation direction dependent on the order of your pages

It might be possible to add all this and a lot of options to control that to starlight itself.
But this would also bring some complexity to the project.
For all being interested in a community solution for adding view transitions to starlight, have a look at the guide in the 👜 Bag of Tricks ✨:
https://events-3bg.pages.dev/jotter/starlight/guide/


Allow @CONST on classes

current TypeScript doesn't allow @CONST annotations on constructors, which is our current pattern in .js files to cause a const keyword emit in dart.
We should move these annotations to the class level, and still emit the same dart code.

Turns out we already support that reasonably well, we'll just have to move @CONST annotations from ctor to class definition as we migrate files.


Removed unnecessary null guards around controller access.

Codecov Report

Merging #582 (368889f) into version_4 (9ac37d8) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##           version_4     #582      +/-   ##
=============================================
- Coverage      37.99%   37.96%   -0.03%
=============================================
  Files             36       36
  Lines           1437     1438       +1
=============================================
  Hits             546      546
- Misses           891      892       +1

Impacted Files
Coverage Δ

lib/src/fields/form_builder_signature_pad.dart
0.00% <0.00%> (ø)

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 9ac37d8...368889f. Read the comment docs.


update encoding setting as UTF-8

update encoding setting as UTF-8 as well as solve the issue:https://github.com/bndr/pipreqs/issues/326

implemented in #414


Slow to synthesize CloudFrontToS3 pattern with other patterns

I'm using several patterns, and one of them, CloudFrontToS3 pattern is really slow to create a CloudFormation template when I run cdk synth. I put the simple console.time and console.timeEnd to see how long it takes, and I found the below one caused the most time:
https://github.com/awslabs/aws-solutions-constructs/blob/233d3ff1f03805651478ad3cd3f7def880f4e530/source/patterns/%40aws-solutions-constructs/core/lib/utils.ts#L63-L68
Reproduction Steps
The below one is the source code from my project (part of the source code):

    console.time('CloudFrontToS3')
    const cloudFrontToS3 = new CloudFrontToS3(this, 'CloudFrontToS3', {
      bucketProps: {
        serverAccessLogsBucket: props.s3LoggingBucket,
        serverAccessLogsPrefix: 's3/'
      },
      cloudFrontDistributionProps: {
        enableLogging: true,
        logBucket: props.s3LoggingBucket,
        logFilePrefix: 'cf/'
      },
      insertHttpSecurityHeaders: false
    });
    console.time('CloudFrontToS3')

Environment

CDK CLI Version      : 1.107.0
CDK Framework Version: 1.107.0
AWS Solutions Constructs Version     : 1.107.0
OS                   : macOS Catalina Version 10.15.7
Language             : TypeScript

Other

This is the time that I measured for different patterns used at the same time:
overrideProps: 0.107ms
KinesisStreamsToKinesisFirehoseToS3: 24.668ms
overrideProps: 0.149ms
overrideProps: 0.084ms
SqsToLambda: 16.71ms
overrideProps: 0.358ms
LambdaToDynamoDB: 8.115ms
overrideProps: 0.139ms
overrideProps: 0.293ms
LambdaToDynamoDB: 4.523ms
overrideProps: 0.089ms
**overrideProps: 6:34.080 (m:ss.mmm)**
(node:36831) Warning: Label 'deepdiff' already exists for console.time()
(node:36831) Warning: Label 'deepdiff' already exists for console.time()
(node:36831) Warning: Label 'deepdiff' already exists for console.time()
(node:36831) Warning: Label 'deepdiff' already exists for console.time()
(node:36831) Warning: Label 'deepdiff' already exists for console.time()
(node:36831) Warning: Label 'CloudFrontToS3' already exists for console.time()

And I don't know what caused the above warning (haven't investigated deeply), but it seems like somewhere, it's looping for the below source code because I only put the time measurement for CloudFrontToS3 once.
https://github.com/awslabs/aws-solutions-constructs/blob/233d3ff1f03805651478ad3cd3f7def880f4e530/source/patterns/%40aws-solutions-constructs/core/lib/override-warning-service.ts#L61-L62
If you need more information, please let me know.

This is :bug: Bug Report

As we discussed privately, I ran this code and did not see the behavior you report and you were going to look deeper to see how to reproduce this. In the meantime I'll put it on our backlog.

I step into this issue while writing my tests using it. It seems that when you provides existingBucket or bucketProps it goes slow and no combination can help with that.
If there is any direction pointed here I would love to contribute with some fix for it.


[file_selector_windows] Migrate native implementation to Dart.

Migrate native implementation to Dart, including the following changes:

Migrate openFile.
Migrate openFiles.
Migrate getSavePath.
Migrate getDirectoryPath.
Remove CPP implementation.
Update package version.

We based our development on the available filepicker_windows
[file_seletor_windows] Migrate CPP implementation to Dart. #112212
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[x] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Have these changes had any effect on existing dll files affecting the autoroll tests?

Hi everyone, thanks for the feedback. We are taking care of the suggested changes but, we don't want to wait till cover all the comments before submitting them.
@stuartmorgan @loic-sharma @cbracken do you want us to answer each comment or do you prefer a consolidated message?
The remaining uncovered comments are the following:

Have these changes had any effect on existing dll files affecting the autoroll tests?
Useless comments.
hResult usage.
Add tests to the wrapper classes.

Cheers,

Hi @yaakovschectman, I don't follow you, what do you mean by this?

Have these changes had any effect on existing dll files affecting the autoroll tests?

Thanks,

Previously, tests were failing due to a missing .dll file. Now it looks like they're failing for a different reason.

The remaining uncovered comments are the following

Was there a response to my structural comment about how the PR is being done somewhere?

Hi Stuart, about your question:

The remaining uncovered comments are the following

Was there a response to my structural comment about how the PR is being done somewhere?

We could add the whole implementation but instead of removing the CPP code, use it for just three out of four functions, and make the other one uses the new Dart implementation. What do you think about this?
Thanks,

Hi Stuart, so we should migrate the existing code to Dart, without changing its logic. We are going to do this in parts, as you told us.
The plan following:

Create a bunch of PR migrating the current CPP implementation to Dart following a TDD approach using the CPP tests as a base.
Once we have a Dart codebase, we can compare this implementation to it for an easier code review. In the meantime, we can close this PR and eventually use its codebase against the newly translated code, now that we have applied the feedback.


Integrate and readme

Integrates PR #65
Updates readme (adding new controls and new visuals)
Refactored audio class to be a singleton

lgtm


No libRNDeviceInfo.a file

According to the installation instruction:
Add the libRNDeviceInfo.a from the deviceinfo project to your project's Build Phases ➜ Link Binary With Libraries
But, i can not find libRNDeviceInfo.a file in my node_modules/react-native-device-info/ folder. Why? Do i miss something?
Thanks for your help.

Sorry, my fault. After clean cache and rebuild project, it appear.


How can I remove last page from a word document

So, I have a template and I want to delete the very last page from the template and then save it as a document according to my needs. The problem is I  haven't found anything for this.
document = docx.Document(self.dir_path+"/app/"+template_file_name)
self.last_page=document.sections[-1] #last page probably

#Now I want to remove the last page, add some content and then add the deleted last page at the very bottom of the page

document.save(report_name)

How can I do this?

see issue #33


Rules for rts/rts.cabal are broken

Two observations:

Changing rts/rts.cabal.in doesn't seem to change rts/rts.cabal.
Deleting rts/rts.cabal and then rebuilding results in a complaint that the rule that was meant to produce rts.cabal didn't.

Seems like there's a few issues around there? This is on Mac with the --configure argument not set.
Reason for wanting to tweak rts.cabal.in after the fact was #614.

To produce rts.cabal from rts.cabal.in we need to run the configure script, but a few people demanded the corresponding rule to be locked behind the --configure flag.
So, this is not a bug but rather an unfortunate and bad (in my opinion) design decision. I'm happy to unlock the configure rule but regularly going back and forth on this is a bit silly. We should finally make this decision for good.

I must say it's hard to distinguish this behaviour from a bug... And I guess people are also required to know when to rerun the configure script, and what inputs it takes? It seems a bit of a nightmare the way it currently is... Anyway, happy to close this as "expected" behaviour.

I'd just like to throw my hat in saying that I agree with @angerman , @hvr and @bgamari here.
I hate autoconf with a passion, but given that it's there I'd like it to work on the principle of least surprises. Every build system with autoconf I've ever used separates out configuration and building. I would find it very annoying if the build system reconfigured my tree without me asking.
Aside from it being unusual, I'm also not sure how you'd actually get it correct either. Would you be extracting the configuration flags from config.status to know how to re-invoke configure? How will you determine any environment variables I've set when I configured the tree that aren't there anymore.
When configure touches and regenerates other configuration files like ghcautoconf.h, will this trigger hadrian to do a full rebuild since this file touches almost everything?
The amount of ways this could go wrong is quite large, why open up that can of worms.  It seems quite logical to me that if you make the conscious effort to change a configuration input file, you must manually reconfigure.  You never know the state of my console or environment at the reconfigure time and must not assume it's the same as it originally was.

@Mistuke how do you concretely suggest solving the problem at the top? How am I to know that changing  rts/rts.cabal.in requires a configure? Or alternatively, should it? If we focus on the specific problem here, and how to make it better for me, so I don't screw up again :)

@ndmitchell do what I wanted to do for the makefile-based system already but refrained from (because Hadrian came along and made it seem like wasted effort): let the build-system perform the x.in -> x transformation, rather than the ./configure phase; let the ./configure phase dump all key/value pairs we'd be interested to @@-replace into an intermediate key/value mapping text-file.

@hvr sounds good! If the configure output was purely an input (had no significant dependencies on in-source stuff) then it's much easier to do either way.

Are there any significant dependencies to in-source entities you're worried about?

@ndmitchell the typical way you solve this is having the build system compare the timestamps on the input and generated file and issue an appropriate warning.
Now whether you want this to be a warning or a hard abort can be a config flag, I assume Hadrian has an equivalent to build.mk. Where you can tell it to abort if you want.

@hvr  rts.cabal.in is the one that's tripped me thus far. The fewer the better!
@Mistuke that seems like threading a complex needle. If we go for what @hvr suggested we eliminate the problem at source.

I like @hvr's solution. Most of the @@ settings are already available to Hadrian via system.config produced by the configure script, so it's just a matter of adding a rule that does string replacement.

@hvr solution just moves the goal post, a person would then modify configure and wonder why the .in file wasn't changed. or modify configure.ac and wonder why configure didn't work.
You're hacking around a fundamental property of autoconf for very little gain.
I for one, would like an option to turn off this "feature" as I wouldn't trust it with a 10 foot pole.

@Mistuke is right, my suggested solution only addresses part of the problem; specifically the part where you want to optimize the cabal.in -> cabal transformation for whe you're just messing with the .cabal.in files and you don't touch the configure files; but it's not something that occurs very frequently either...
...and once you modify the configure scripting, hadrian still ought to warn you that the build might be outdated; so you still need to implement something as suggested by @Mistuke in https://github.com/snowleopard/hadrian/issues/655#issuecomment-413507126 regardless to tell the user they might need to re-run the configure phase.

Yes, I agree. The two solutions are not mutually exclusive. Implementing @hvr's is easier and solves this particular issue, so I don't see any harm in implementing it immediately.
@Mistuke's proposal to introduce warnings for outdated configure-generated files is useful too, but it's not obvious to me what the right implementation is, so perhaps it deserves a separate issue.

@snowleopard I think having configure be optional per run and wired through the build system is a bit of a disaster. I'd have it before shake starts up, and just check that the timestamp of the configure output is newer than the timestamp of the configure input. The --configure flag really changes the build system itself, so which you might be able to come up with a crazy encoding, it's not going to be fun.
I'd also minimize the problem using @hvr's suggestion.


chore: test pr magic comment

Environment
N/A
Reproduction
N/A
Describe the bug
N/A
Additional context
N/A
Logs
N/A

Tested. No longer needed.


Map component rerenders to defaultZoom and defaultCenter on click events

Hello!  I recently upgraded from v4 to v7, and I'm getting some buggy behavior on click events on a map component. On any click event, the map re-renders to defaultZoom and defaultCenter, which did not happen before the version update.
Here is a demo of the bug: https://www.youtube.com/watch?v=OmZi8sbiBMo
Here is my map component:
import React from "react"
import PropTypes from 'prop-types'
import { withGoogleMap, GoogleMap, Polyline } from "react-google-maps"
import withScriptjs from "react-google-maps/lib/async/withScriptjs"
import * as MarkerHelper from "./MarkerHelper/MarkerHelper"
import loader from "../../../public/loading.gif"

const SuggestionMap = props => {
  const {
    suggestionPin,
    suggestions,
    currentLocation,
    zoom,
    center,
    routePoints,
    actualPath,
    showSuggestionInfo,
    setSuggestion
  } = props

  const mapContainer =

  const handleMarkerClick = props => {
    showSuggestionInfo(props.latLng)
  }

  const handleClick = ({ latLng }) => {
    const lat = latLng.lat()
    const lng = latLng.lng()
    const position = { lat: lat, lng: lng }
    setSuggestion(position)
  }

  const AsyncGoogleMap = withScriptjs(
    withGoogleMap(
      props => (
        <GoogleMap
          defaultZoom={zoom}
          defaultCenter={center}
          onClick={props => handleClick(props)}
          options={{
            streetViewControl: true,
            myTypeControl: false,
          }}>
          { MarkerHelper.currentLocationPin(currentLocation) }
          { MarkerHelper.suggestionMarkers(suggestions, handleMarkerClick) }
          { MarkerHelper.suggestion(suggestionPin) || null }
          { MarkerHelper.endsOfDayMarkers(actualPath) }
          <Polyline
            path={MarkerHelper.lineCoordinates(routePoints)}
          />
          <Polyline
            path={MarkerHelper.lineCoordinates(actualPath)}
            options={{strokeColor: "#f00"}}
          />
        </GoogleMap>
      )
    )
  )

  const googleMapUrl = "https://maps.googleapis.com/maps/api/js?v=3.exp" +
    `&key=${process.env.REACT_APP_GOOGLE_KEY}` +
    "&libraries=geometry,drawing,visualization"

  return(
    <AsyncGoogleMap
      googleMapURL={googleMapUrl}
      loadingElement={

      }
      containerElement={ mapContainer }
      mapElement={
        <div style={{ height: `100%` }} />
      }
    />
  )
}

SuggestionMap.propTypes = {
  suggestionPin: PropTypes.object,
  suggestions: PropTypes.array.isRequired,
  currentLocation: PropTypes.object.isRequired,
  zoom: PropTypes.number.isRequired,
  center: PropTypes.object.isRequired,
  routePoints: PropTypes.array.isRequired,
  actualPath: PropTypes.array.isRequired,
  showSuggestionInfo: PropTypes.func.isRequired,
  setSuggestion: PropTypes.func.isRequired
}

export default SuggestionMap

Move your AsyncGoogleMap definition out from your component function. It's meant to be used as a HOC.
Please refer to Getting Help section in the README.

Thanks, @tomchentw!


Added Skip Function to animate to last page

This is a great package, but the most important part 'SKIP' was missing. There was no way for users to skip to the last page.
In this PR
Users can skip to last page no matter what the length of slides is. 😄
If this PR is successfully merged then i would love to contribute even more because this is my first PR

Thanks for your contribution. There were a lot of changes in the code since Flutter 2.0 so I was unable to properly merge your PR but I've taken it into account. Congrats!


remove Nat.le_of_lt in favor of more general version in Init/Algebra/Order

Now that #48 has added instance : LinearOrder Nat, we don't need to define a Nat-only version of ne_of_lt.
(compare to the mathlib3: https://github.com/leanprover-community/mathlib/blob/master/src/data/nat/gcd.lean#L79)

bors r+


[Proposal] Call UpdateJumplist only if the settings changed

"You can't just detect whether the settings file changed."
Haha, file hash goes brrr.

Jokes aside, what do you all think about this? Will this work?
This would be part of #5907 and depends on #13686.
Validation Steps Performed

Seems to work as expected in my limited testing ✅

Other thought from teams:

on a first ever launch, this will still generate the jumplist as we're creating the window, right? Like, we still want to defer that until after StartupState::Initialized

What happens if the user restarts their PC, but the settings file hasn't changed? Does the shell remember their jumplist from last time?

Jumplists are durable across restarts, for sure.

What happens if the user restarts their PC, but the settings file hasn't changed? Does the shell remember their jumplist from last time?

I tested it and it works fine.

on a first ever launch, this will still generate the jumplist as we're creating the window, right? Like, we still want to defer that until after StartupState::Initialized

As mentioned "offline", I'm of the opinion that this will not bring noticeable improvements. One reason being that an AV like Windows Defender will have a much greater impact on us on first launch than anything we do ourselves.
But it is a convincing argument! Unfortunately I got a bit stumped now on how to best implement this...
On first launch CascadiaSettings::LoadAll will write the initial settings.json to disk which will trigger AppLogic::_ReloadSettings. This happens before the UI is fully interactive, since settings are required to be present at launch and the reload is scheduled via the Dispatcher(). Even at low priority this reload happens before full interactivity is reached.
Should we build some sort of system to inhibit setting reloads during launch? I wasn't sure it would be considered worth the effort...

Okay idea:
In AppLogic::_ReloadSettings, we check if we're in _startupState >= Initialized.

If we are, cool, we're past the first paint. Kick off the bg thread to update the jumplist, it's fine.
If we aren't, we're still in the initial launch. Register a handler for page.Initialized, and then we can revoke that handler once it fires. Once we get to Initialized, the window is fully ready to go.

Thoughts?

I've come up with an easier approach which doesn't need to check _startupState.


fig2plotly fails with boxplot

When I invoke fig2plotly on a boxplot as in:
boxplot(SQ_reads_mean,'Jitter',0.15);
fig2plotly(gcf, 'offline', true, 'open', false, 'filename', 'Control_AAGC_63bp_raw_reads_quality');
the system(Matlab running on a Code Ocean compute capsule)  reports the following error:
{Index exceeds matrix dimensions.
Error in updateData (line 100)
~strcmp(obj.data{dataIndex}.type,'box')
Error in plotlyfig/update (line 582)
updateData(obj,n);
Error in plotlyfig (line 208)
obj.update;
Error in fig2plotly (line 44)
p = plotlyfig(varargin{:});
Error in SSR_Control_Account_for_PB_Artifact_Bbedit (line 68)
fig2plotly(gcf, 'offline', true, 'open', false, 'filename',
'Control_AAGC_63bp_raw_reads_quality');
}

Still an issue or has this been fixed?

I haven’t checked back on the for a while.  I’ll check in the next couple of days and get back to you.
From: Chittaranjan Srinivas Swaminathan<EMAIL_ADDRESS>Date: Monday, February 22, 2021 at 9:03 AM
To: plotly/plotly-graphing-library-for-matlab<EMAIL_ADDRESS>Cc: Harhay, Gregory - ARS<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [plotly/plotly-graphing-library-for-matlab] fig2plotly fails with boxplot (#143)
Still an issue or has this been fixed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly-graphing-library-for-matlab%2Fissues%2F143%23issuecomment-783437265&data=04|01||a0b9c648b70e45a8c12a08d8d7430d31|ed5b36e701ee4ebc867ee03cfa0d4697|0|0|637496030271376975|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=fk7Y4Rjr4s73cwrYK0Qmh8xy5DYl3tqrZufcgFmTPnQ%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHQFVK3HJY6TWZVQ6VJZC7LTAJW5DANCNFSM4GDP3YPQ&data=04|01||a0b9c648b70e45a8c12a08d8d7430d31|ed5b36e701ee4ebc867ee03cfa0d4697|0|0|637496030271376975|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=MouGQx%2B65rJ5edvFShOZRo7FlVL39hFebdk981EYjp8%3D&reserved=0.
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.


Matlab char() is translated to an equal char(), although in python the method is called chr()

oops will fix this right now
בתאריך 22 ביולי 2016 01:27, "Armin Drusko"<EMAIL_ADDRESS>כתב:

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/victorlei/smop/issues/82, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEhsG289wNzYl2sCU2PGcDTnf9wRPi3mks5qX_JjgaJpZM4JSR0G
.

So the output cant be changed from char() to chr()?

The easiest way is to edit core. py (or whatever file contains yours
runtime support) and edit the definition of char to your taste.
בתאריך 24 ביולי 2016 19:13, "Armin Drusko"<EMAIL_ADDRESS>כתב:

So the output cant be changed from char() to chr()?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/victorlei/smop/issues/82#issuecomment-234785952, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEhsG35HB2ivMUSwAdGgRvdpITg0nFYXks5qY483gaJpZM4JSR0G
.


Display every weekday label?

Hey. Sounds like a good idea, I'll look into it soon!

Released in<EMAIL_ADDRESS>You can pass an array with the desired days to show to showWeekdayLabels now. For example:
<ActivityCalendar data={data} showWeekdayLabels={['mon', 'fri']} />


Add revm_precompiles C binding

This was one of requests that i got and would be nice to have a low-level binding of revm-precompiles that could be reused by other projects

Will close this, It would be nice to have but for a year no one wanted to take a stab at it.


Feature: Make prompt in shell mode configurable

Relevant Issues

Closes #54
Description

This pr adds two new fields to the configuration file: prompt_start and prompt_continuation.
If a custom prompt has a new line (\n or \r) in it, it is invalidated.
Reasoning

I mainly followed a similar approach to the theme configuration when writing this feature,
Screenshots

Example config file:

How it looks on the user side:

Did you:

[x] Join the Piston CLI Discord Community?
[x] If dependencies have been added or updated, run pipenv lock?
[x] Lint your code (pipenv run lint)?
[x] Set the PR to allow edits from contributors?

I will wait for #43 to get merged and then merge this.

Hey @SatvikR can you resolve the merge conflicts?

Hey @SatvikR can you resolve the merge conflicts?

Sure @Shivansh-007, I can fix them later today.

Looks you committed some debug code in piston/__main__.py

Looks you committed some debug code in piston/__main__.py

Sorry about that, should be fixed now

No Worries!


Model Release for "Generative Spoken Dialogue Language Modeling"?

Hello!
We are interested in using the HuBERT model trained / fine-tuned on the Fisher corpus as well as the HiFi-GAN Vocoder that generates audio directly from the units for academic research. Is it possible that these models be released soon? Thank you very much!

Hi @siyan-sylvia-li,
As for the vocoder trained with discrete units, we do not plan to release this model soon, so please see this repo: https://github.com/facebookresearch/speech-resynthesis and train it yourself.
Regarding HuBERT, I recommend using the fairseq implementation here: https://github.com/facebookresearch/fairseq/tree/main/examples/textless_nlp/gslm

Thank you so much! I noticed for the speech-resynthesis repo, there is no support for wav2vec 2.0, but in the gslm's unit2speech module, there is a support for wav2vec 2.0. Are the speech-resynthesis code and the gslm's unit2speech code fundamentally different? Thanks again!

Hello, I have two questions:

We are thinking about training a unit2speech HiFiGAN, and could not find any training details in the speech resynthesis paper. How many GPU's / hours did it take to train a HiFiGAN, roughly?
Can you provide more detailed instructions for how we can use wav2vec 2.0 to quantize and then train? I see configuration files in the speech-resynthesis repo that uses other quantization models including HuBERT and CPC, but it is still not clear to me as to how I should adapt the existing config files to using my own quantization models to potentially encode different datasets.

Thank you very much for your time!

Hi @siyan-sylvia-li,

we train our model on 8GPUs, for 400K iterations. You can see the details in the code: https://github.com/facebookresearch/speech-resynthesis. Training on less GPUs should also work, but probably slower to converge.
you need to replace the tokens extracted from HuBERT/CPC with tokens extracted from wav2vec2.0. You should first extract the units for the VCTK corpus from here: https://github.com/facebookresearch/fairseq/tree/main/examples/textless_nlp/gslm/speech2unit. Then, train your vocoder with these units. You can use this repo for that: https://github.com/facebookresearch/speech-resynthesis


Add View Yaml link of a new relatedobject that name is *

Ref: https://issues.redhat.com/browse/ACM-8782

/cc @JustinKuli  @mprahl  @dhaiducek


Python: build wheel in separate function

Currently buildPythonPackage builds the wheel, installs it, tests the Python package and then discards the wheel. How about we keep the wheel and add it as buildInput to the function that installs and tests the Python package?
For users this wouldn't make any difference, however, for Python developers it would; they wouldn't have to rebuild the wheels when just updating the checkPhase (which is often the case when "fixing" tests).
One disadvantage is that we have more garbage.
Furthermore, I think we also have to make a distinction at this point between buildInputs for actually building the wheel, and inputs for testing the installation of the package. Would checkInputs make sense to have?

I've always wondered about this more broadly than just Python, whether it was worth splitting out tests and builds. Still not leaning strongly either way, but I wouldn't mind seeing it happen.

Maybe it's better to make enhancements when building from a nix-shell, it's possible to check if $IN_NIX_SHELL is set and then apply enhancements for developers. And this would avoid the more garbage issue.

@copumpkin I can understand that at some point you have to say, this is the smallest component that we consider for in the store. Otherwise you could go as far as making a store entry for the result after each phase. I think it makes sense to combine the build with the testing, and consider the result of that the product that ends up in the store.
In practice I find, at least with Python packages, that sometimes some tests fail which can be disabled. Unfortunately I would have to recompile the package again then. With most Python packages that is not an issue, but with packages like numpy or scipy it is.
As @joelmo mentions this is exactly what nix-shell is good for. Currently it doesn't work so well with Python packages. Maybe that should indeed be improved first.

A more generic solution would maybe be to enable some compilation cache in these cases. I would really want this and have seen that one can replace stdenv but if that is done a huge rebuild has to be done (last time I tried) https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L5695. If ccache support is enabled in the build script I think that rebuild can be avoided.

There is a new format that we need to take into account, Flit
https://github.com/NixOS/nixpkgs/issues/14945
The amount of packages that use Flit is still small, but if Flit becomes more popular, we definitely need a straightforward way to build such packages.
I'm thinking of the following:

builldSetuptoolsWheel to build wheels like we do now.
buildFlitWheel to build wheels based on the Flit format.
buildPythonPackage that gets a format ? "setuptools" parameter for choosing the method for building the wheel. The wheel is the buildInput to the Python package.
Split buildInputs. The new buildInputs is for actually building the wheel, and checkInputs for testing the final package.

This could be a nice enhancement but doesn't necessarily need to be done, so I am closing this.


Changing method signature in other class in not recognized in working class in typed GDScript

Godot version:
84401e8
Issue description:
I have two classes A and B. B calls method foo from A class. Method has one parameter.
class_name A
func foo(one)

class_name B
func bar():
	a.foo(1)

Now I am changing foo signature to foo(one, two) and I have no error in my B class.
When I reopen B class file I see the error "Too few arguments..."
This could be duplicate of #28002

Guys I was investigating this, and I did a quick fix but I don't feel it's the right way. So I need some guidance.
I am sending patch witch changes I have made.
bug.txt

Fixed by #28766.


Hopper support for mma -> mma layout conversion?

This line checks specifically for GPU Ampere architecture... is Hopper planned to be supported?

Oh, just realized it was added in https://github.com/triton-lang/triton/pull/4492


Compilation error Clang 15.0.7

I use the linux OS (archlinux x86_64) with the Clang compiler:
-- The C compiler identification is Clang 15.0.7
-- The CXX compiler identification is Clang 15.0.7
Desired windowing library: SDL2
Desired rendering library: OpenGL
1- First, I get the following compilation error:
/home/seb/Projets/OctaneGUI/Source/OctaneGUI/Controls/Splitter.cpp:385:16: error: variable 'Index' set but not used [-Werror,-Wunused-but-set-variable]
        size_t Index = 0;
               ^
1 error generated.
make[2]: *** [Source/OctaneGUI/CMakeFiles/OctaneGUI.dir/build.make:454: Source/OctaneGUI/CMakeFiles/OctaneGUI.dir/Controls/Splitter.cpp.o] Error 1

2- I removed variable 'Index' in Splitter.cpp. Then:
In file included from /home/seb/Projets/OctaneGUI/Source/OctaneGUI/Application.cpp:27:
/home/seb/Projets/OctaneGUI/Source/OctaneGUI/Application.h:429:10: error: private field 'm_IgnoreModals' is not used [-Werror,-Wunused-private-field]
    bool m_IgnoreModals { false };
         ^
1 error generated.
make[2]: *** [Source/OctaneGUI/CMakeFiles/OctaneGUI.dir/build.make:636: Source/OctaneGUI/CMakeFiles/OctaneGUI.dir/Application.cpp.o] Error 1

3- In the Application.h file, I enclose the 'm_IgnoreModals' field with the 'TOOLS' macro, despite the comments indicating that the issue is known.
Compilation then proceeds without error, and the test applications appear to work as expected.

Hi @seb777, thanks for the report. I'll have a look at this issue and have a fix for it in the next update.


Force plotAssemblyTypes to always use instantiated assemblies, and al…

This is meant to improve #1998 by allowing the specification of hot versus cold heights in the plots. Additionally, a couple clean ups are implemented:

Change plotAssemblyTypes() so that it always operates based on instantiated assemblies. Allowing users to pass in blueprints was making things really messy, and provided absolutely no benefit because blueprints already contain Assembly objects in the first place through blueprints.assemblies.values().
The point above means that the plotAssemblyTypes() method signature is changed. That signature is/was pretty ridiculous anyways, so I feel justified in changing it. I updated all calls to that method that I could find.

I would not expect that there are many downstream calls to this plotAssemblyTypes() method. Checking all the projects that I have access to, I found it used in exactly one place (one of my own internal repos).

I am relatively sure that this is working now. I tested it with a simply dummy case, however I am unable to test it with my big model due to some dependency conflicts. I think it is ready for your eyes @john-science

Love it!

Can we put something under the 0.5.1 release notes for "bug fixes"?
Does this close a ticket we can link to it?
Should we close my previous PR on the matter?


Weird CRC error on HtmlAgilityPack 1.4.9

When I run paket to restore HtmlAgilityPack 1.4.9, I get this error:
Bad Crc during unzipping lib/sl3-wp/_._ in HtmlAgilityPack 1.4.9: CRC error: the file being extracted appears to be corrupted. Expected 0x00000000, Actual 0x6AF4413C

No other ZIP tool complains about the file...

See also #484

it should be a warning. Not an error.
And it's an issue with nuget.org.


Integration for Pricing between FinOps & CE

Is there a roadmap or guidelines about integration between D365 FinOps & D365 CE for Pricing.
Sales quotes are created from D365 CE but there are scenerios where sales orders are created in D365 FinOps. How we can integrate the Trade agreements in FinOps with the price lists in D365 CE

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

ID: 0a0b764a-dd6b-581b-5d94-50e2af76c360
Version Independent ID: 9eadf0e8-a4d2-6eb6-93f6-f4ba3a4ba2d0
Content: Synchronize products directly from Finance and Operations to products in Sales - Finance & Operations | Dynamics 365 | #MSDyn365FO
Content Source: articles/supply-chain/sales-marketing/products-template-mapping-direct.md
Service: dynamics-ax-applications
Product: ****
Technology: ****
GitHub Login: @ChristianRytt
Microsoft Alias: crytt

@AartiKumar, thanks for posting here!
@ChristianRytt, can you please review and answer the questions.  Please update the topic if needed.

Bug 373234 has been logged to track this issue.

We plan to include a possibility to trigger the price calculation in Finance and Operations and return the result on related sales order or quote in D365CE. This is planned as part of Dual Write.
https://docs.microsoft.com/en-us/business-applications-release-notes/april19/cdm-data-integration/dual-write-link-common-data-service-apps


On clicking on the NDA template the error is displayed on screen

Describe the bug
When clicking on NDA template available in settings dropdown available under Settings, error is diplayed on the page.
Refer scrrenshot for reference

To Reproduce
Steps to reproduce the behavior:

Go to Settings
Click on Settings
Click on NDA template
See error

Expected behavior
Error should not displayed to the user and page should be loaded successfully

The issue is fixed refer screenshot


Potentially uncordon nodes prior to starting pod-recreation tests

In-case of a "Ready,SchedulingDisabled" node, we might be encountering a leftover from a previous run.  Should we be checking for these nodes prior to the run so we can uncordon them properly?
Or maybe add an "After" section into the ginkgo that uncordons all nodes upon an unexpected exit/panic.

Also, we should FAIL the pod in recreation test if it has a node selector prior to running the cordon, delete, etc.

So far the only case we have seen where this test leaves nodes in a SchedulingDisabled state is when the test attempts to run against pods that have a nodeSelector or a node name attached to them and there are no other nodes to be scheduled to.  This leaves the pod under test in a Pending state and the test eventually times out.
#785 helps skip some of these pods that have node assignments.

We have not seen any more occurrences (at least reported) since #785.  Closing.


Add support for ExecTask and ExecTaskStreaming APIs

The ExecTask API allows running commands within a running pot
as part of service checks, example:
service {
   check {
     type    = "script"
     command = "/bin/sh"
     args    = ["-c", "test -f /tmp/mycookie || exit 2"]
     interval = "10s"
     timeout = "5s"
   }
 }

The ExecTaskStreaming API allows running command within a pot
from the command line:
nomad alloc exec 94b77f14 touch /tmp/mycookie
nomad alloc -job myjob vi /etc/resolv.conf

This API also allows running commands and opening a shell using
the Nomad web UI.

Wrong repo :)


Fix Javadoc issues caused by azure-core adding azure-xml dependency

/check-enforcer override

Overriding check enforcer as this didn't change anything regarding tests and analyze and build passed.


DX: convert some properties to constants

Coverage remained the same at 92.457% when pulling 07f6ad2bcd321607d049491cc2de41277eb5d242 on keradus:new_const into 74f3b4baaf10be2a75cc977932568dfe3bbac093 on FriendsOfPHP:3.0.


Add port options for Status, Health, profile, and Infer APIs

Adding port options for API endpoints to be able to serve status, health, profile and infer at different (unique) ports.
E.g.: --http-status-port, --grpc--status-port ... (status, health, profile, infer)
PS: retained naming convention for HTTP requests for consistency.

As a side node, if your local master branch is up to date with remote master,  you can use git rebase master to avoid the merge commit Merge branch 'master' into ...

@CoderHam You need to manually rebase this PR onto master and resolve the conflicts.


flag optional BindingIdentifier on AG Expression

Fixes #95
cc @domenic, it's easier to write this patch to show the exact part I'm asking on #95.
Considering your feedback, I believe this optional flag is missing here.
ref: GeneratorExpression

Oh, I see! So without this fix async function* () {} would be syntactically invalid, right? If so, good catch! (If not, I'm still missing something...)

So without this fix async function* () {} would be syntactically invalid, right?

yes

Thanks!
I'm already writing a few tests including unnamed async generator expressions. I should have a (huge) PR open today or tomorrow.


User Story: Record sleep

As a participant (student), I need to be able to record my sleep, so that I can start tracking my health behavior.
+Scenario 1: Time to bed is set before wake up time+
Given start time is set before the end time
When end time is selected
Then total hours are calculated

Could we strengthen this scenario by adding a little more detail around time?
Scenario 1: Time to bed is set before wake up time
Given a start time of 12am is set before the end time
When an end time of 12am is selected
Then a total of 6 hours are calculated

I've added two additional story scenarios to clarify some questions that have come up about recording sleep from "yesterday".

Made changes and rolling them back to create a separate issue with an enhancement label.

Based on feedback from a few bugs logged (#38, #49) I added an assumption to this story, and added in some story scenarios to clarify the "yesterday" and "today" scenarios.  Total calculated hours should make sense based on the bed/wake time.


Dependent Form Fields - Error 422

On the https://ux.symfony.com/live-component/demos/dependent-form-fields page, I have a 422 error code when I do the following steps:
Meal: Breakfast                --> Code 200
Main food: Eggs              --> Code 200
Meal: Second Breakfast   --> Code 422
I don't think that's normal.

Also, the error message is empty:

It's expected - though hopefully we can improve on this in the future. Behind the scenes, when you change the meal to Second Breakfast, the Main Food of Eggs is still submitted, so mainFood fails validation. We hide that validation error, but it's still technically invalid.
I'm working on a library to help make dynamic forms easier (independent of live components). I hope to (but haven't yet) clear out the submitted data or reset that validation error in these situations to avoid that.


Deprecated link

in docs/config.md
https://github.com/binwiederhier/ntfy/blob/main/config/server.yml
has to be replaced with
https://github.com/binwiederhier/ntfy/blob/main/server/server.yml

Thanks. Updated.

there is another occurance in line 21 :wink:


Listen in to a custom subscription within an AppSync schema

Is your feature request related to a problem? Please describe.
Amplify for iOS currently does not seem to have the capability to create a subscription for a change besides the default Subscription handler for a Model object. What I would like is to be able to pass in inputs to filter my subscription by ID or by some other parameter.
This is the subscription I currently have set up in my schema. As you can see, it takes an ID as a parameter.
type Subscription {
	onUpdate(id: ID!): Item
		@aws_subscribe(mutations: ["updateItem"])
}

Describe the solution you'd like
I would like a way to specify the name of a subscription function and pass parameters into it before listening to it. I would like to see it as an optional parameter in the subscription enum for GraphQLRequest.
For what it's worth, I was able to find a work-around to accomplish this.
let request = GraphQLRequest(apiName: "myapi", document: "subscription { onUpdate(id: \"19dee48e-6daa-417d-a9b1-8d7108ab8735\") { id, conversionCount } }", variables: [:], responseType: JSONValue.self, decodePath: nil)
subscription = Amplify.API.subscribe(request: .subs, valueListener: { _ in
    // do stuff
}, completionListener: nil)

Hi @benrosen78, thanks for the detailed solution. The Model types generated from amplify codegen models uses the graphql schema with types containing the model directive, which is also used in the GraphQL Transform to generate the
AppSync API and related resources. The extensions help build the GraphQLRequest for those APIs and do not currently take in optional inputs since there wasn't a clear requirement for it.
To identify the need for it, how did you provision the AppSync service? Through AppSync console? or was there a set of directives that you used that provisioned the subscription API withid as input?
The work-around is what we would expect for requests which need customization. You can also extract the variable out to dynamically inject it.
let variables = ["id": id] // `id` variable
let request = GraphQLRequest(apiName: "myapi", document: "subscription($id: ID!) { onUpdate(id: $id) { id, conversionCount } }", variables: variables, responseType: JSONValue.self, decodePath: nil)
subscription = Amplify.API.subscribe(request: .subs, valueListener: { _ in
    // do stuff
}, completionListener: nil)

Another example here
Also, is there a reason to use JSONValue as the response type over the Model type or a Codable type that matches your Item type?

Your own docs specify the way to create custom subscriptions with arguments. Still this is categorised as iOS, the example code is in JavaScript:
https://docs.amplify.aws/guides/api-graphql/subscriptions-by-id/q/platform/ios
Also adding the mentioned Subscription does only have the effect with amplify codegen models that two more files are created (Subscription.swift & Subscription+Schema.swift) which are basically empty
// swiftlint:disable all
import Amplify
import Foundation

We have multiple clients needed to subscribe to updates of their own data. In the moment every client gets every update and is missing a separation, so a default support would be greatly appreciated..

I am encountering the same problem, and when I use the workaround I get a "Failed to decode GraphQL response to the 'ResponseType' Item
Any help would be appreciated!

@LaszloDev Could you please open a new issue with details you mentioned in your comments?

Please track https://github.com/aws-amplify/docs/pull/5649 for the Upgrade Guide. Once we have this ready, the latest CLI will allow generating API.swift through amplify codegen types that is compatible with Amplify.API, thus custom subscriptions use case like this will be possible


rapids-cmake can now be correctly used by multiple adjacent directories

rapids-cmake can now be correctly used by multiple adjacent directories
When in a situation where multiple projects are nested together in the following configuration:
- root
 - sub_project_1
 - sub_project_2

If sub_project_1 doesn't import all the rapid-cmake components thatsub_project_2 requires it will cause weird runtime errors

@trxcllnt This should fix the issue you are seeing when multiple projects require rapids-cmake.


  However, this repro is for the AppService development tool. You can try to configure Azure Service Health to notify you about Azure service incidents and planned maintenance so you can take action to mitigate downtime. Configure customizable cloud alerts and use your personalized dashboard to analyze health issues, monitor the impact to your cloud resources, get guidance and support, and share details and updates.  https://azure.microsoft.com/en-us/features/service-health/#product-overview
Here is a link to all different options of Microsoft Azure Service support that might be helpful to you: https://azure.microsoft.com/en-us/support/faq/


Add 'adb_response' attribute to Android TV / Fire TV

Description:
This stores the output, if any, of the androidtv.adb_command service in a state attribute -- 'adb_response' -- so that it can be used in automations / scripts.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the [development checklist][dev-checklist]

It can be the case that this adb_response attribute is really long (for example, the response from dumpsys power). But (a) I don't think this hurts anything and (b) this is a more advanced feature anyways for users who want to send an ADB command and parse its output, so it's up to the user to send reasonable commands and manage the output.

@rytilahti are there any other changes you'd like me to make?


Support for Portuguese language

This merge request includes:

Portuguese translation file for the zod error messages.
Portuguese section has been appended to the examples page.

@montedonioluiz
Thank you for your contribution.
Some of the tests are failing, please check and correct them.

@montedonioluiz Thank you for your contribution. Some of the tests are failing, please check and correct them.

Nice, just have to insert the '0's before the numbers in the date.
Also FYI I addressed a bigger date issue in https://github.com/aiji42/zod-i18n/issues/11

Thanks for the quick fix.
I will now merge and release this.


make:job only creating the directory if not there

Laravel Version: 5.7.7
PHP Version: 7.1.20
Database Driver & Version: N/A

Description:
php artisan make:job JobName creates an empty Jobs folder if it didn't exist yet (on Windows at least)
Steps To Reproduce:

Laravel app without Jobs folder (on Windows 10 pro?)
php artisan make:job JobName
note an empty Jobs folder

I cant replicate. Works fine for me on Windows 10.

Weird... I am using Cmder; maybe that made the difference? 🤔


Document ioctl_param_type

Currently the docs claim ioctl_param_type to always be libc::c_int which is not the case on linux.
Also removes an unused import that was triggering a warning.

Hi, this is a pretty simple fix, can someone please review it?

@Susurrus you're most familiar with the ioctl stuff.  Want to give this a lookover?

I'm wondering, do we want to have our documentation like this or do we just want to use the proper value on the given platform? I'm wondering how often this will be used for cross-platform stuff and whether every platform should know about all the possibilities or just the current platform needs to know their data type. Any opinion here?

A case where that would be an issue is when you view the docs on a service like docs.rs. Then the type would just be whatever the docs were compiled on, presumably linux.

Uh, you can squash when you merge the PR right?

No we can't, because we use bors instead of the merge button.

Oh, my bad, it's squashed now. Thanks for taking the time to review it.

bors r+

Looks like the build failure was probably Travis's fault.
bors retry


Client side query expansion fix

@wtrocki

Alright, enjoy your holidays!

@Eunovo I do not see any functional code changes apart from tests. Issue is clearly visible. I have explained source in the gh issue itself

@wtrocki The test cases are just to help me understand the problem. I'm proposing that we generate the expanded fields differently by using the relationships in the model definitions. In the test case that reveals the issue, I observed that models contain the relationships but the types do not. So, by changing the code to use the relationships the problem will be solved. Can I go ahead?

This is the function I want to change

sounds like plan

I think that models should have this field already. Bug is related to models somehow getting cached so when we get models after schema plugin we should be able to see new relation added. This meams that there is not need for special function

I have already confirmed that the SchemaPlugin works as expected. I don't see how the schema would be cached from these lines and these lines in Metadata. Unless there is some other interaction I'm not seeing?

While this resolves the issue I think we have misunderstood.
If schema plugin adds a field to the model why the client-side plugin needs this helper. Why we cannot process relation field the same way knowing that we will have it in the model. I see the relation in schema plugin snapshot, but why it is not included in models that client plugin is working with?
If we answer this question we will have much better fix for this problem.
-1 one for adding this helper as it will be needed in every plugin.

Rebase needed


Create a contact info block

Add links to social networks (LinkedIn, Facebook, Instagram), phone number, email, Telegram username, etc.

Added markup wich filled real info.


feature Support proxy protocol v1

Proposed changes
Issue Number: close #xxx
Enable proxy protocol to support IP transparency.
See: IP Transparency in https://github.com/apache/doris/blob/f57387b502035fa138d946936e63d1c55e7d1ff4/docs/en/docs/admin-manual/cluster-management/load-balancing.md
for details
Further comments
Only support proxy protocol v1, I think this is enough.
HAProxy support both, Nginx support only V1.

run buildall

run buildall


[stable/prometheus-operator] good way to override default alerts

Is your feature request related to a problem? Please describe.
I need to modify default alerts.
For example some alerts are declared in file templates/prometheus/rules/kubernetes-system.yaml. There are two alerts KubeAPILatencyHigh one with 1s limit, another with 4s limit. I need to modify these alerts but I didn't find a proper way to do it (without forking the entire chart...)
Describe the solution you'd like
Possibility to override default alerts (and maybe any kind of default data) from values.

Hi, as a fast way, you can try to disable some set of default rules, e.g. set defaultRules.rules.kubernetesSystem=false
and deploy rules from https://github.com/helm/charts/blob/master/stable/prometheus-operator/templates/prometheus/rules/kubernetes-system.yaml separately with modified values.
It's a bit easier than forking a whole chart.

Hello @firaxis , it's indeed a better way than forking the whole chart, I will use it as a workaround. Thanks !
But IMHO the possibility to override default alerts from values.yaml file is a cleaner way to do it and will be really useful for many users.

The chart syncs alerts from upstream projects, namely etcd and coreos/kube-prometheus. Since these can arbitrarily change, supporting templating all aspects of these in the values.yaml file would make the file gigantic and difficult to maintain and script.
In our case, we have a separate helm chart that allows deployment of alerts through a gitops process, where multiple people can contribute. I think that this chart is the wrong place to expand to support more complex use-cases such as this


Sass compiler warning

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
Sass compiled newspaper
1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 1 warning
Reduced test cases
I tried to modify the file
_ form-check. scss
//color-adjust: exact; // Keep themed appearance for print
If I comment out this code, there will be no warning.
What operating system(s) are you seeing the problem on?
Windows, macOS, Android, iOS, Linux
What browser(s) are you seeing the problem on?
Microsoft Edge
What version of Bootstrap are you using?
v5.1.3

Duplicates #36259.


adjusted / added relevant font mime types

http://www.iana.org/assignments/media-types/application/font-sfnt
http://www.iana.org/assignments/media-types/application/vnd.ms-fontobject
http://www.iana.org/assignments/media-types/application/font-woff

Thank you!


Extract cookiecutter string resources

Part 1 of localization work.
Also deleted some unused code, and turned some fields into readonly.
There's a few more strings in the Shared code that is copy/pasted between PTVS and Cookiecutter, I will take care of that in a subsequent PR.

At some point we ought to go through and fix up the canonical names in the vsct to avoid the leading dots. Probably we should do that before submitting for localization. (IIRC, the way to fix it was to create a menu called "Python" or "Cookiecutter", set it as the parent for all the commands, and then use CommandPlacements to also put them in the right places.)


Set up CI with Azure Pipelines

[skip ci]

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


ruTorrent: version 4.1.3 stable

This pull request bumps ruTorrent to version 4.1.3 stable.
It is backwards compatible with other settings in version 4.0.4 stable. Critical bug with & sign in search bar is resolved. If saved, it renders the web interface inoperable. Release is now more stable with the resolution of this bug alone.
Change Log

V4.1: Improves support for RSS feeds, adds multi-label select feature and icon upload feature. Optimizes speed, traffic and CPU graph rendering. Fixes a few minor bugs with the web interface.
https://github.com/Novik/ruTorrent/releases/tag/v4.1
V4.1.1: Fixes an issue with removing packages from system after installation.
https://github.com/Novik/ruTorrent/releases/tag/v4.1.1
V4.1.2: Critical bugs are resolved, which cause the web interface to fail to load.
https://github.com/Novik/ruTorrent/releases/tag/v4.1.2
V4.1.3: Fixes an issue with the RSS context menu not displaying when the rssurlrewrite plugin is enabled.
https://github.com/Novik/ruTorrent/releases/tag/v4.1.3

Thanks @stickz, really appreciated the follow-ups


Linkedin share does not work?

I integrated shareon.js (https://giddysouls.com/category/mushroom-supplements/mushroom-supplements.html) which works great for most except the LinkedIn button just takes me to the home page at LinkedIn. I noticed the same behaviour on the LinkedIn shareon.js home page button.
Update: Share seems to work fine on the desktop - creates a post in Linkedin in a browser tab. My issue above was observed on an Android phone with a Linkedin app installed. In which case, it opens the app but the share isn't present. Share works fine with WhatsApp, Reddit apps installed on the same phone.

In browser, the share button for LinkedIn works only if you're already logged in to LinkedIn. When it comes to the phones, it's up to the app developer to include a share screen, and it seems like it doesn't :( I'll see if I can make this work, but don't expect much 😅

Thanks for looking into it.

So, no good news. I've had a look at the LinkedIn app, and here's what I've found:
The LinkedIn app has a screen for sharing stuff; it's the one that you can access if you click "Share" from any other app and choose LinkedIn. Sadly, this one cannot be opened in any other way. There are deep link filters in the app, but they only work with profile pages and posts.
As such, the only way to make the LinkedIn button work with the LinkedIn app is to use the catch-all share button:

The web-share button will only be shown on devices that support it (smartphones, Safari on macOS, and Microsoft Edge on Windows)