Error when I click on login page of this example

Hi,
I am trying to execute this example with the the below properties file. When I access the home page and click on the Login or Login with access attr jsp button, I am getting error. I am attaching the error as an attachment with this.
Could you please help if something wrong in my configuration or setup of this application?  Basically I want to test the complete example by providing the same application url's as IDP details since i dont' have any other IDP details.
Thanks in Advance.
onelogin.saml.properties

#  If 'strict' is True, then the Java Toolkit will reject unsigned
#  or unencrypted messages if it expects them signed or encrypted
#  Also will reject the messages if not strictly follow the SAML
onelogin.saml2.strict =  true

# Enable debug mode (to print errors)
onelogin.saml2.debug =  false

#  Service Provider Data that we are deploying
#

#  Identifier of the SP entity  (must be a URI)
onelogin.saml2.sp.entityid = http://<IP_ADDRESS>:8080/java-saml-tookit-jspsample/metadata.jsp

# Specifies info about where and how the <AuthnResponse> message MUST be
#  returned to the requester, in this case our SP.
# URL Location where the <Response> from the IdP will be returned
onelogin.saml2.sp.assertion_consumer_service.url = http://<IP_ADDRESS>:8080/java-saml-tookit-jspsample/acs.jsp

# SAML protocol binding to be used when returning the <Response>
# message.  Onelogin Toolkit supports for this endpoint the
# HTTP-POST binding only
onelogin.saml2.sp.assertion_consumer_service.binding = urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST

# Specifies info about where and how the <Logout Response> message MUST be
# returned to the requester, in this case our SP.
onelogin.saml2.sp.single_logout_service.url = http://<IP_ADDRESS>:8080/java-saml-tookit-jspsample/sls.jsp

# SAML protocol binding to be used when returning the <LogoutResponse> or sending the <LogoutRequest>
# message.  Onelogin Toolkit supports for this endpoint the
# HTTP-Redirect binding only
onelogin.saml2.sp.single_logout_service.binding = urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect

# Specifies constraints on the name identifier to be used to
# represent the requested subject.
# Take a look on lib/Saml2/Constants.php to see the NameIdFormat supported
onelogin.saml2.sp.nameidformat = urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified

# Usually x509cert and privateKey of the SP are provided by files placed at
# the certs folder. But we can also provide them with the following parameters

onelogin.saml2.sp.x509cert =

# Requires Format PKCS#8   BEGIN PRIVATE KEY
# If you have     PKCS#1   BEGIN RSA PRIVATE KEY  convert it by   openssl pkcs8 -topk8 -inform pem -nocrypt -in sp.rsa_key -outform pem -out sp.pem
onelogin.saml2.sp.privatekey =

# Identity Provider Data that we want connect with our SP
#

# Identifier of the IdP entity  (must be a URI)
onelogin.saml2.idp.entityid = http://<IP_ADDRESS>:8080/java-saml-tookit-jspsample/metadata.jsp

# SSO endpoint info of the IdP. (Authentication Request protocol)
# URL Target of the IdP where the SP will send the Authentication Request Message
onelogin.saml2.idp.single_sign_on_service.url = http://<IP_ADDRESS>:8080/java-saml-tookit-jspsample/acs.jsp

# SAML protocol binding to be used when returning the <Response>
# message.  Onelogin Toolkit supports for this endpoint the
# HTTP-Redirect binding only
onelogin.saml2.idp.single_sign_on_service.binding = urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect

# SLO endpoint info of the IdP.
# URL Location of the IdP where the SP will send the SLO Request
onelogin.saml2.idp.single_logout_service.url = http://<IP_ADDRESS>:8080/java-saml-tookit-jspsample/sls.jsp

# Optional SLO Response endpoint info of the IdP.
# URL Location of the IdP where the SP will send the SLO Response. If left blank, same URL as onelogin.saml2.idp.single_logout_service.url will be used.
# Some IdPs use a separate URL for sending a logout request and response, use this property to set the separate response url
onelogin.saml2.idp.single_logout_service.response.url =

# SAML protocol binding to be used when returning the <Response>
# message.  Onelogin Toolkit supports for this endpoint the
# HTTP-Redirect binding only
onelogin.saml2.idp.single_logout_service.binding = urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect

# Public x509 certificate of the IdP
onelogin.saml2.idp.x509cert = -----BEGIN CERTIFICATE----- MIIC5jCCAk+gAwIBAgIBADANBgkqhkiG9w0BAQ0FADCBjzELMAkGA1UEBhMCdXMxCzAJBgNVBAgMAkFSMRAwDgYDVQQKDAdwcm90ZWNoMRAwDgYDVQQDDAdwcm90ZWNoMRQwEgYDVQQHDAtMaXR0bGUgUm9jazEQMA4GA1UECwwHcHJvdGVjaDEnMCUGCSqGSIb3DQEJARYYYXRzLnN1YmJhcmFvQHByb3RlY2guY29tMB4XDTE3MTAxOTE1MTkzNFoXDTE4MTAxOTE1MTkzNFowgY8xCzAJBgNVBAYTAnVzMQswCQYDVQQIDAJBUjEQMA4GA1UECgwHcHJvdGVjaDEQMA4GA1UEAwwHcHJvdGVjaDEUMBIGA1UEBwwLTGl0dGxlIFJvY2sxEDAOBgNVBAsMB3Byb3RlY2gxJzAlBgkqhkiG9w0BCQEWGGF0cy5zdWJiYXJhb0Bwcm90ZWNoLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA2AOJdmf/XyVXsqaPvTPk4a7j7qI5FIPCrW8W00wcAIHcYF4ch5mFOh4HKvPHQCiMsdF0a6SaecP7YqsxQtBb0yfdufjbYPu88Gy1FEVfCSn/Fik3TY1JlDKxTYRcyJvMOyieEWlta0SPZjFZ+w+0JsIjkv7XgmdJ3hFP6UGGVxsCAwEAAaNQME4wHQYDVR0OBBYEFNwerOI9GPqa/FUBPA3HCctu8YKNMB8GA1UdIwQYMBaAFNwerOI9GPqa/FUBPA3HCctu8YKNMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQENBQADgYEAl/2FsufufPnM5rFmZnZ4OUwNzrC4CILQ49epExJSv2+qa2R/N4zwB9XuAxsMnT2jo/j5Pi6Aat6Wfm2r8mk6+0M9vdT7V1qsHBmFPrTZkJ8lQD4EtshokdlJ5lVhUXLJ00uxDrlW6hwutXVgcv/fcid4B5TlMSTd7Kh701CTpkA= -----END CERTIFICATE-----

# Instead of use the whole x509cert you can use a fingerprint
# (openssl x509 -noout -fingerprint -in "idp.crt" to generate it,
# or add for example the -sha256 , -sha384 or -sha512 parameter)
#
# If a fingerprint is provided, then the certFingerprintAlgorithm is required in order to
# let the toolkit know which Algorithm was used. Possible values: sha1, sha256, sha384 or sha512
# 'sha1' is the default value.
# onelogin.saml2.idp.certfingerprint =
# onelogin.saml2.idp.certfingerprint_algorithm = sha1

# Security settings
#

# Indicates that the nameID of the <samlp:logoutRequest> sent by this SP
# will be encrypted.
onelogin.saml2.security.nameid_encrypted = false

# Indicates whether the <samlp:AuthnRequest> messages sent by this SP
# will be signed.              [The Metadata of the SP will offer this info]
onelogin.saml2.security.authnrequest_signed = false

# Indicates whether the <samlp:logoutRequest> messages sent by this SP
# will be signed.
onelogin.saml2.security.logoutrequest_signed = false

# Indicates whether the <samlp:logoutResponse> messages sent by this SP
# will be signed.
onelogin.saml2.security.logoutresponse_signed = false

# Sign the Metadata
# Empty means no signature, or comma separate the keyFileName and the certFileName
onelogin.saml2.security.want_messages_signed =

# Indicates a requirement for the <samlp:Response>, <samlp:LogoutRequest> and
# <samlp:LogoutResponse> elements received by this SP to be signed.
onelogin.saml2.security.want_assertions_signed = false

# Indicates a requirement for the Metadata of this SP to be signed.
# Right now supported null (in order to not sign) or true (sign using SP private key)
onelogin.saml2.security.sign_metadata =

# Indicates a requirement for the Assertions received by this SP to be encrypted
onelogin.saml2.security.want_assertions_encrypted = false

# Indicates a requirement for the NameID received by this SP to be encrypted
onelogin.saml2.security.want_nameid_encrypted = false

# Authentication context.
# Set Empty and no AuthContext will be sent in the AuthNRequest,
# Set comma separated values urn:oasis:names:tc:SAML:2.0:ac:classes:urn:oasis:names:tc:SAML:2.0:ac:classes:Password
onelogin.saml2.security.requested_authncontext = urn:oasis:names:tc:SAML:2.0:ac:classes:urn:oasis:names:tc:SAML:2.0:ac:classes:Password

# Allows the authn comparison parameter to be set, defaults to 'exact'
onelogin.saml2.security.onelogin.saml2.security.requested_authncontextcomparison = exact

# Indicates if the SP will validate all received xmls.
# (In order to validate the xml, 'strict' and 'wantXMLValidation' must be true).
onelogin.saml2.security.want_xml_validation = true

# Algorithm that the toolkit will use on signing process. Options:
#  'http://www.w3.org/2000/09/xmldsig#rsa-sha1'
#  'http://www.w3.org/2000/09/xmldsig#dsa-sha1'
#  'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256'
#  'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384'
#  'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512'
onelogin.saml2.security.signature_algorithm = http://www.w3.org/2000/09/xmldsig#rsa-sha1

# Organization
onelogin.saml2.organization.name = SP Java
onelogin.saml2.organization.displayname = SP Java Example
onelogin.saml2.organization.url = http://sp.example.com
onelogin.saml2.organization.lang =

# Contacts
onelogin.saml2.contacts.technical.given_name = Technical Guy
onelogin.saml2.contacts.technical.email_address =<EMAIL_ADDRESS>onelogin.saml2.contacts.support.given_name = Support Guy
onelogin.saml2.contacts.support.email_address = support@@example.com

Here
onelogin.saml2.idp.single_sign_on_service.url = http://<IP_ADDRESS>:8080/java-saml-tookit-jspsample/acs.jsp

you need to put IdP SSO URL, notice you put the SP ACS URL and that why Login is sending an AuthNRequest to your SP and give you an error that the ACS has not received a SAMLResponse.
Notice that all that has onelogin.saml2.idp.*  is IdP data.

Thank you for you response
do you have any test IDP info to test this example? I did not find any thing, so that i tried that URL.


Please add support for security-level flag

TL;DR
Please add support for the GCP cloud functions deploy --security-level parameter.
Detailed design
Per the docs:
https://cloud.google.com/sdk/gcloud/reference/functions/deploy

--security-level=SECURITY_LEVEL; default="secure-always"
Security level controls whether a function's URL supports HTTPS only or both HTTP and HTTPS. By default, secure-always will be used, meaning only HTTPS is supported. SECURITY_LEVEL must be one of: secure-always, secure-optional.

Additional information
This would be convenient for deploying HTTPS functions. Currently, it is necessary to manually edit the function from the console after deploy to enable HTTPS only.

@songololo  Hi Team, Any update this one. This is very basic and important feature.


Support for Forwarded Headers

I just came across this awesome project and was able to bring it up in no time.
During testing, I discovered that there is currently no feature to support Forwarded request headers, e.g.

X-Forwarded-For
X-Forwarded-Host
X-Forwarded-Proto

This would be really useful to have for setups where the service is running behind a reverse-proxy or gateway and the possibility to adjust the logging output based on their availablity, to have the real IP addresses of the clients available in the log.
Thank you for creating such a useful tool and keep up the great work. :heart:

Thank you for your kind words and creating this issue!
I'm not exactly sure how to implement this for now but I got your point. I personally use Nginx reverse-proxy and set the headers as shown in the example. Of course, it would be nice to have this feature built-in but I need to do some digging first.
If anyone else is interested, this issue is up for grabs!

@orhun I am using Apache as a reverse proxy and using the ProxyPass directive automatically adds the X-Forward-* headers (unless ProxyAddHeaders Off is explicitly set, since On is the default).
ProxyPass        /paste http://localhost:8020
ProxyPassReverse /paste http://localhost:8020

However, when I connect to https://reverse.proxy.com/paste, I see the following in the rustypaste log (even though the X-Forward-* headers are sent to rustypaste - verified with tcpdump):
[2023-06-12T02:22:15Z INFO  actix_web::middleware::logger] <IP_ADDRESS> "GET / HTTP/1.1" 200 271 "-" "Mozilla/5.0 Gecko/20100101 Firefox/114.0" 0.000036


Added browser add-on

Implementing suggestion #583.
The add-on is a very simple browser popup that displays the web app as an iframe. I've tested the add-on in Chrome and Firefox and would be happy to publish it in the respective stores.

Awesome. Thanks. I'll likely submit myself. It doesn't look like it needs to be updated often

I tested locally in Firefox by going to about:debugging#/runtime/this-firefox and clicking "Load temporary extension", and it seems that the notifications do not work. I even added "permissions": ["notifications"] to the manifest.json and it still showed the same warning. Notifications do not show as popup (Ubuntu, Firefox).


New device

Dear,
I have an ELK-BLEDOM device (pool light rgb) from amazon  /  https://www.amazon.nl/-/en/dp/B0BX53X749?ref=ppx_yo2ov_dt_b_product_details&th=1
with uuid: 0000FFF0-0000-1000-8000-00805F9B3fBB as an primary service
Custom characteristic: uuid: 0000FFF4 (notify) and 0000FFF3
I hope this will work within Home Assistant.
thanks in advance
Stefan

I hope too, post new issue if you have problems with it


provide predefined list of licenses from spdx

Describe the improvement
Currently, when I enter a license for a dataset manually, any free text is accepted. I want to choose from a predefined list of licenses, from which the licenseIdentifier is stored. In addition, I want to be able to add a license that is not in the predefined list.
https://github.com/spdx/license-list-data/blob/master/json/licenses.json

@sdebodt isn't that a bit contradictory? Predefined lists are meant to prevent mistakes, but if you allow for manual input also, the predefined list is "useless", not?

I know. Unfortunately, the predefined lists are far from complete so we also need to allow free text input.

so more something like an autocomplete, rather than an input that is validated against a fixed list.

An autocomplete could be ok. A drop down to select from (without typing anything) allows to add the preferred options on top of the list though.

@nics @sdebodt something like this? https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist
If you click in the input you see an automatic dropdown, but you can still fill in your own text.
Important: as it is a sort of autocomplete, there is no way to hide the full url of a license behind a short label,
so that might be a "problem".

related: https://github.com/ugent-library/biblio-backend/issues/239

The content of the dropdown menu with licenses does not seem to be correct. How is the matching done? Against licenseId and name?
When I enter "creative comm" as in screenshot, only Non commercial licenses are listed.

How are results in the dropdown menu sorted? Could there be a way to have the most recent version first?
Can we put "preferred" licenses on top? Either hard-coded list of licenses or based on the licenses that are chosen frequently or both?
Can a hard-coded list of preferred licenses be shown on top of a dropdown menu that appears when clicking the text box, but not yet typing anything?

Seems to return only the top 10 results, and in this case the search cannot determine what is more important.

Take time to design the functionality needed to improve the user-friendliness.
In the meantime, a simplified solution could be better. @sdebodt to discuss with Thomas and Myriam and report back here on simplified solution.

based on discussion with Thomas and Myriam, implement temporary solution described in https://github.com/ugent-library/biblio-backend/issues/295

To dos for v2 release:

As for data format for datasets, have 1 text box to enter value through select from autocomplete or free text. In the background, save each option as a different field.
Treat old license info as free text.

Future work:

Old license info could be curated later on, either automatically if 1-on-1 mapping is possible or manually, in case of datasets.

Note: both "license" and "other license" are now required fields. However, one of both is fine. This first dropdown shows a preferred list but the free text field allows for other (older) licenses). This is not clear from the interface.

Will solve the above story later, will fix the temporary situation in the interface only: https://github.com/ugent-library/biblio-backend/issues/481

Discussion has become large. When we review the used licenses, we can rethink the licenses interaction. Most of the requests have been covered in this issue.


Training Dataset Creation for Non-toy Rigs

Problem
Write documentation for guidance on generating training datasets with complex, production-level rigs.
Current Steps
# Generate a toy dataset:
python generate_toy_dataset.py
# Train and test rig model:
python train_rig_approximation.py
# Inverse rig using the trained model:
python inverse_rig.py

These steps don't apply to non-toy rigs, which poses a problem for users who need to work with more advanced setups.
Edited:

Rig inversion is a mathematical approach that allows animators to remap an existing mesh animation onto an animation rig. This allows animators to tweak and fix up existing mesh animations, which would be difficult or impossible otherwise.
The difficulty with rig inversion is finding the rig parameter vector that best approximates a given input mesh.

From: https://www.ea.com/seed/news/seed-rig-inversion-differentiable-rig-function

As far as I understand the paper uses a vertex animation animation from motion capture of a face and using rig inversion find the parameters of an existing face rig.

The steps remain the same regardless of the complexity of the rig. Please refer to the paper on how to best generate the rig training dataset. As a summary, you need to:

Know the set of rig input parameters and their respective bounds
Randomly sample the rig with those parameters within those bounds
Save the output of the rig along the input parameters

This implies that, though the rig remains a black box, you need to be able to procedurally execute it for selected inputs, through your animation software's scripting system for example, and record the output.
Its important to cover the entire input space of the rig, but our experiments suggest it is best to randomly sample the rig by activating a number of inputs following a power law. That is, most samples in the dataset should have few non-zero inputs, and few samples should have most inputs being non-zero.


Multiple filters on the same field always default back to first filter

@busbus @LindsayThomas
Under RegularFilterOptions, if multiple filters use the same field, only the first filter is ever used in the application.  Clicking on other filters always activate the first.
For example, two filters using the same AQUISITION field:
RegularFilterOptionFields: [
                           {
                           DisplayText: "For Sale",
                           FieldName: "ACQUISITION",
                           FieldValue: "Sale"
                            }, {
                            DisplayText: "For Sale or Lease",
                           FieldName: "ACQUISITION",
                           FieldValue: "Sale or Lease"
                            }
                            ],

Show up in the application,

But only the first, the "For Sale" option can be checked.  Checking on the "For Sale or Lease" option turns on the "For Sale" filter and leaves the "For Sale or Lease" option unchecked.

@lindsayking
We will fix this as a part of next delivery.

Verified with v1.4.


provide error instead of ServerResponse in LandlordNotAvailableError

👍

Coverage remained the same at 41.833% when pulling 84bb21b4890747f7703f4e29bcfdf983fc0d2926 on omsmith:landlord-no-available-err into 3fa7a72f6f4f450dbc6b441167cd70ebc3f1b034 on Brightspace:master.


Fixed null pointer crash

Had a problem with the order Start was getting called.  I was getting a crash. Let me know if you want to reproduce the problem or have questions.

still crashing, need to fix it more... will close for now.


MessageBar will not display

🐛 Bug Report
MessageBar will not display. Error is displayed instead.
InvalidOperationException: Cannot provide a value for property 'MessageService' on type 'PCPortal.Fluent4.Components.Pages.Timesheets.Index'. There is no registered service of type 'Microsoft.Fast.Components.FluentUI.IMessageService'.
💻 Repro or Code Sample
MainLayout.razor
I have placed the following in the file.
<FluentBodyContent Style="background: #f7f9fc; height: 100%!important;">
	<FluentMessageBarProvider Section="MESSAGES_TOP" ClearAfterNavigation="true" MaxMessageCount="5" />
		<div style="width: 97%; height: 94%; margin: 25px; background-color: white; padding: 25px;">
			@Body
		</div>
	<FluentToastProvider MaxToastCount="5" Position="Microsoft.FluentUI.AspNetCore.Components.ToastPosition.TopCenter" ShowCloseButton="true" RemoveToastsOnNavigation="true" />
</FluentBodyContent>

Index.razor.cs
[Inject] IMessageService MessageService { get; set; }
And the calling code:
await MessageService.ShowMessageBarAsync("Timesheet has already been posted", MessageIntent.Error);
🤔 Expected Behavior
The message should display
😯 Current Behavior
When trying to run the site in debug mode, I get the above error at startup
🔦 Context
Trying to provide useful feedback to the user. Had the same issue when trying to use the Toast Service. Following the guidance with the Inject for that. Yet again the ToastService could not be found.
The call to AddFluentUIComponents is in program.cs after the call to AddHttpClient
🌍 Your Environment
Windows 11 23H2
VS 2022 Version 17.8.0 Preview 6.0
MS Edge / .Net 8.0 project using the FluentUI 4.0 Interactive Server project template

Hi,
We need a repo to be able to look at what is causing the issue and can get more details. You say you used v4 template yet the error shows a relation with Fast (which is v3)

Ive made quite some changes to the templates after rc1 build. We plan to upload rc2 builds soon (as in about an hour). Maybe try again with those packages? Remember to uninstall the rc1 templates first:
dotnet new uninstall Microsoft.FluentUI.AspNetCore.Templates


Add mutex lock when modify fallthrough configuration

CoreDNS will generate one goroutine for one DNS request. When use kubernetai, it need to modify k.Fall to empty struct before kubernets plugin to process it:
...
oFall := k.Fall
k.Fall = fall.F{}

_, err := k.ServeDNS(ctx, nw, r)

// Restore fallthrough
k.Fall = oFall
...

After processing, kubernetai will restore k.Fall to original configuration.
Actually, k.Fall is reference type, it will be modified by other goroutine in concurrently read and write. Without adding mutex, k.Fall will finally modify to empty struct instead of original version.

It has a better solution base on no lock using.


Docker: Update xpra's apt too

Description

Type of change

[X] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

References

Docker jobs are failing on main.
Follow up to https://github.com/napari/napari/pull/4568, where Ubuntu's image was updated from v20 to v22. Unfortunately, this means that the codename changed from focal to jammy, and that needs to be reflected in the Xpra APT definitions below.
How has this been tested?

[ ] CI passes on PR.
[ ] Removed temporary CI triggers for PR.

Final checklist:

[X] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

@jaimergp
I'm trying this docker image and getting a blank window for napari:

Actually, maybe this is the relevant part:
2023-07-24 16:06:36 Traceback (most recent call last):
2023-07-24 16:06:36   File "/usr/lib/python3/dist-packages/xpra/server/source/client_connection.py", line 300, in encode_loop
2023-07-24 16:06:36     fn_and_args[1](*fn_and_args[2:])
2023-07-24 16:06:36   File "/usr/lib/python3/dist-packages/xpra/server/window/windowicon_source.py", line 225, in compress_and_send_window_icon
2023-07-24 16:06:36     image = image.resize((rw, rh), Image.ANTIALIAS)
2023-07-24 16:06:36 AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
2023-07-24 16:06:36 2023-07-24 20:06:36,233 Error during encoding:
2023-07-24 16:06:36 Traceback (most recent call last):
2023-07-24 16:06:36   File "/usr/lib/python3/dist-packages/xpra/server/source/client_connection.py", line 300, in encode_loop
2023-07-24 16:06:36     fn_and_args[1](*fn_and_args[2:])
2023-07-24 16:06:36   File "/usr/lib/python3/dist-packages/xpra/server/window/windowicon_source.py", line 225, in compress_and_send_window_icon
2023-07-24 16:06:36     image = image.resize((rw, rh), Image.ANTIALIAS)
2023-07-24 16:06:36 AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
2023-07-24 16:06:36 2023-07-24 20:06:36,238 Error during encoding:
2023-07-24 16:06:36 Traceback (most recent call last):
2023-07-24 16:06:36   File "/usr/lib/python3/dist-packages/xpra/server/source/client_connection.py", line 300, in encode_loop
2023-07-24 16:06:36     fn_and_args[1](*fn_and_args[2:])
2023-07-24 16:06:36   File "/usr/lib/python3/dist-packages/xpra/server/window/windowicon_source.py", line 225, in compress_and_send_window_icon
2023-07-24 16:06:36     image = image.resize((rw, rh), Image.ANTIALIAS)
2023-07-24 16:06:36 AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

Also, as an aside, pip shows it's napari 0.4.17 but the image is tagged 0.4.18 on ghcr.io

I was able to use a bash ENTRYPOINT to install pillow 9.5.0 to fix the errors (it's patched in XPRA repo already but not released) but still no napari on screen which is sad.

Thanks @psobolewskiPhD, can you open an issue (here or on packaging)? I'll take a look later this week.


[Feature] How to change flare circle icon to any svg image

What problem does this feature solve?
it make it more customizable
What does the proposed API look like?
no api required

You may set the symbol as the SVG icon's link.


Null Pointer Exception on setting up proxy host & port in async-http-client implementation

PR from issue: https://github.com/softwaremill/sttp/pull/168 causes null pointer exception in while configuring proxy host and port via backend options.
The exception is thrown from the setRealm method from async-http-client implementation (here: https://github.com/AsyncHttpClient/async-http-client/blob/master/client/src/main/java/org/asynchttpclient/proxy/ProxyServer.java#L134).
The issue is caused from the bug at this line: https://github.com/softwaremill/sttp/pull/168/files#diff-24b84c96a3873a58f4257b3d34043703R311 (line 311) where it calls setRealm with orNull if no proxy authentication is used.
Exception stack trace:
java.lang.NullPointerException 	at org.asynchttpclient.proxy.ProxyServer$Builder.setRealm(ProxyServer.java:139) 	at com.softwaremill.sttp.asynchttpclient.AsyncHttpClientBackend$.defaultClient(AsyncHttpClientBackend.scala:311) 	at com.softwaremill.sttp.asynchttpclient.future.AsyncHttpClientFutureBackend$.apply(AsyncHttpClientFutureBackend.scala:40) 	at com.agoda.content.commons.clients.http.HttpClient.liftedTree1$1(HttpClient.scala:40) 	at com.agoda.content.commons.clients.http.HttpClient.<init>(HttpClient.scala:39) 	at com.agoda.content.commons.clients.http.HttpClientTest.$anonfun$new$1(HttpClientTest.scala:31)

So the solution would be to call setRealm only if the value is defined?

Yes, I can make the PR in next 24 hours to help resolve it.
--
Prashant Singh
On December 27, 2018 at 4:12:57 PM, Adam Warski<EMAIL_ADDRESS>wrote:

So the solution would be to call setRealm only if the value is defined?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/softwaremill/sttp/issues/172#issuecomment-450110572,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZwGL-VLgQQAG-cFr_v-JFCIXzFC7Btks5u9I8ZgaJpZM4ZihJV
.

great, thanks! :)

In the mean time, as a workaround you can use version 1.5.0.


Maintained ?

Hi
Last commit's a year old. Is this project maintained ?
Best regards,

I don't think so. I've left Groupon some time ago. Also nobody from the team I worked with at that time is left. Pretty sure this hasn't picked up by anyone.

ansible-runner is a potential successor to this:
https://ansible-runner.readthedocs.io/en/latest/container.html

Unfortunately, had to remove it from the project because it is unmaintained.  It was a nice try. So long, and thanks for all the fish!

Ansible execution environments fill the same use-case.


Bad RPC call preventing chain communication

Hi,
We are noticing that chains 'break', rather we cannot further communicate with a chain, deploy contracts etc. after it receives a bad request. From examining the chain logs, it seems that there is an issue setting the state hash because of a nonce error/invalid tx.
chain logs:
chain logs.txt
Due to the bad request, the 'mgGK' var was given an bogus contract address (theAddr).
{
console.log("inside the else statement -- isHuman false")
    var theAddr = req.body.gatekeeperAddr;
    var myGK = contractMgr.newContractFactory(myGK_Abi).at(theAddr);

    //calling contract functions below
    retrieveData(myGK, function (result) {
        res.json(result);
    });
}

First hypothesis: due to constraints in the construction of persistence of the state db, upon committing a block and saving it, the references to the cached copy of older blocks of the state, might be void for the codepath used by RPCv0  (to-be-deprecated but still used by JS libs). This would panic the endpoint on 1337, blocking all further communication with it.
Validation of hypothesis: Construct client test and review mutex structure on old code path.

very old issue. closing


Culture Clash, Foundation JS and TypeScript

I aware of the fact that this may be only an issue for a small subset of foundation users, but I think this didn't get any attention here till now.
We are currently moving to TypeScript in the project I'm working on and I already had several issues with Foundation while trying to use it with TypeScript.
This might be partially an issue in foundation typings https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/foundation-sites
The main problem is how JavaScript modules are initialized in foundation.
Using new Foundation.Reveal(el, options) throws the following errors on compile:
Error:(45, 13) TS2350: Only a void function can be called with the 'new' keyword. Error:(45, 13) TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
When trying to use it without new I get an JavaScript error at runtime Uncaught TypeError: Cannot call a class as a function;
As all JS is already ES2015 is would be easy to make it TypeScript. An Alternative would be to deliver typings directly from the project.
I have to say, I'm a bit lost with this, that's why I'm creating this issue here. As everything else works fine with typings and wit typescript that's the last thing that's broken. For general init of all modules the $(document).foundation() works fine. But now with reveals it's a real battle and I have no idea how to create a workaround.

This might be more of an issue to post on that Definitely Typed project. My experience with Typings definitions are that they are often incomplete & rarely done by the authors of the original JS repository.

Hi @DaSchTour, I would be happy to help you with your problems.
Could you provide me some more of your TS code so I can see how your project is set up?

let revealDlg = **new** Foundation.Reveal($(id), {                             closeOnEsc: false,                             closeOnClick: false                         });
and the error appears as "Only a void function can be called with the 'new' keyword"

Cool.. Got it.. It should be changed to
new (<any>Foundation.Reveal)($(id), {                             closeOnEsc: false,                             closeOnClick: false                         });
But its a work around to avoid the error. Misleading the typescript compiler here :)

Are you using the transpiled JavaScript or the original ES6 files in your TypeScript project?

I'm using the Typescript definitions in my project with Angular 2
On Mon, Oct 3, 2016 at 9:37 AM, Marius Olbertz<EMAIL_ADDRESS>wrote:

Are you using the transpiled JavaScript or the original ES6 files in your
TypeScript project?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/zurb/foundation-sites/issues/9086#issuecomment-251122745,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APRPOMj0Ww-D0K7UtYOfQOEJ8XKwb7pmks5qwRMrgaJpZM4JdlcG
.

Closing in favor of more specific change request #9391


Startup takes long time, depending on graph size

I have started a graphd database on an iMac (Late 2012, 8 GB RAM, Fusion Drive, macos 10.14) and started to fill it with my word database. It has approximately 63 million nodes and 250 million edges (ranging from pure links to links with integer values and further link attributes).
Filling the graph with gld has varying speeds, from 7000 primitives per hour up to millions per hour. Sometimes insertion appears to halt, once I dared to stopped gld and restarted the computer.
Restarting graphd with the current state of the graph then took 2:09 h, with a graph of then 121 million primitives. It was not a CPU issue, graphd never used more than 2 % of a CPU. But it read gigabytes of SSD/hard disc during that time.
With this kind of startup performance the graph is not ready to use, esp. considering that I have 170 million more primitives to add to the graph until it contains the same amount of data as my original copy in a standard MariaDB.
Is it clear what takes so long during startup?
Is it possible to better configure the system in order to improve startup and/or insert time?
Am I using graphd wrong or do I expect the impossible?

I'm impressed you got gld to work! ;)
121m primitives is pretty sizable - but 2 hours is indeed waaaaaaay too long. We used to run graphd with ~400m primitives and it never took that long (maybe 10, 20m to startup?). But perhaps memory is your contender...graphd operates by keeping everything in RAM, and 8GB might be on the shy side for your dataset. It might be slow because of swapping...
Whats the size of your database on disk? Also, can you share your dataset, so I can do some experiments?

gld was essentially ready to be used. The usage string in its source made me use the switches "-a -t 20", and reading the processing of a line told me that I would use the normal graphd insert syntax.
Piping to graphd -y was more tedious, because there were output lines with addb error messages, but the rows were still present in the database. So I don't know what the addb error had for consequences.
If graphd holds everything in memory, then my computer is the wrong hardware for the job.
I don't know what size is the interesting number (The complete db directory? All files excluding some patterns?). I have seen 2 files of 6GB+ and at least 2 more files of 5GB+ in different directories. But I have not surpassed half the number of primitives yet, so I guess, an adequate machine is beyond my reach.
I won't have access to that computer for 2 weeks from now, so I cannot give you real numbers. The MariaDB is 20GB including indices, a bz2-compressed dump should be about 10 GB.
The data comprises my research results from 1998 to 2005. Tons of semantic relations between German word forms and lemmas from 31 million sentences. The texts have some legal restrictions so I won't be able to share the sentences. I could provide links and non-sentence nodes, but that still requires (for me) serious bandwidth.

$ du -sh <path/to/dbdir> should suffice for DB size. Primitive size can vary wildly depending on what you put in it.
I'm glad that gld was easy for you to figure out - piping to graphd -y is probably not the right answer anyway. Can you tell me a bit more about how you're running graphd and what you're putting into each primitive?
Historically we ran graphd with very little actual data in graphd - it was mostly meant for storing metadata (we would keep other data in a type of blob store). I think we had around ~400M primitives at one point running with...128GB RAM? We had some room to spare there, though...

You can get an idea of my graph structure with some entries (comments start with #):
00 node types
write(name="NodeType")
write(name="LinkType")
write(name="NodeProp")
write(name="LinkProp")
04 node types (count=26)
write(typeguid=40000000400000004000000040000000 name="Word form")
write(typeguid=40000000400000004000000040000000 name="Lemma")
write(typeguid=40000000400000004000000040000000 name="Link")
write(typeguid=40000000400000004000000040000000 name="Neighbors")
write(typeguid=40000000400000004000000040000000 name="FlexPattern")
09 link types (count=40)
write(typeguid=40000000400000004000000040000006 name="LemmaLink")
write(typeguid=40000000400000004000000040000006 name="GrammarLink")
write(typeguid=40000000400000004000000040000006 name="NeighborLink")
0c word forms with count in corpus (count=31 million)
write(typeguid=40000000400000004000000040000004 name="Faust" valuetype="integer" value="1234")
write(typeguid=40000000400000004000000040000004 name="Erster" valuetype="integer" value="123456")
write(typeguid=40000000400000004000000040000004 name="Teil" valuetype="integer" value="12345")
0f lemmas with count in corpus (count=20 million)
write(typeguid=40000000400000004000000040000005 name="Faust" valuetype="integer" value="4123")
10 flexion types (count=500)
write(typeguid=4000000040000000400000004000000c name="f(,,,,"e,"e,"en,"e)")
11 grammar links (count=40 million)
write(typeguid=40000000400000004000000040000009 left=4000000040000000400000004000000c right=4000000040000000400000004000000f)
write(typeguid=4000000040000000400000004000000a left=4000000040000000400000004000000f right=40000000400000004000000040000010)
13 neighbor cooccurrences with corpus count, value of link is significance (count=5 million)
write(typeguid=40000000400000004000000040000007 name="[Erster, Teil]" valuetype="integer" value="354")
write(typeguid=4000000040000000400000004000000b left=typeguid=4000000040000000400000004000000d right=4000000040000000400000004000000e valuetype="integer" value="897"
(<- left right=40000000400000004000000040000013))
And then there are sentences (name carries up to 256 chars) with links to word forms, sentence cooccurrences (same pattern as neighbor cooccurrences), parse trees for the sentences, several lemma proximity measures and semantic relationships. They are mostly represented as links with integer values.
I suspect that all name and value fields are indexed. My values (counts, significances) suffer from Zipf's Law, i.e. there are runs of small values, but then singular large values that are rare. I don't benefit of the indexing of any values.
Hope that gives you an impression.

That looks good to me!
Whats the output of du -sh on your database dir?
You can specify the path for the pid file to avoid running as root, too.

I suspect that all name and value fields are indexed. My values (counts, significances) suffer from Zipf's Law, i.e. there are runs of small values, but then singular large values that are rare. I don't benefit of the indexing of any values.

They are, as are all other fields (to a degree - things that are very popular by linkage for example are indexed).

I am not able to provide disk sizes until I get back to that computer on December 8th. Sorry 8-)

Ah ok, well so you an continue without me: my guess is that you're database is > 8GB in size and you're swapping heavily while trying to startup...on a mac I'd try using some combination of vm_stat 1 and iostat 1 while loading your database and see if that also confirms it.
I mean, if you're DB is ~ 8GB then I can tell you definitively you're going to have a bad time, but to try it yourself, do the iostat/vm_stat thing and see for yourself...
Sadly this is graphd by design - there is some improvement with using SSD's instead, the best thing to do would be to just have more RAM but if you can't, fast disks are a good runner up. I'm happy to discuss more of the history and intentions/use cases with you if you're curious (i'm on Slack, feel free to ping me there).
But yea not much else we can do I'm afraid - I'll leave this open until you can confirm database sizes.

Thank you for confirming the dependence on RAM sizes. I won't be able to upgrade that iMac to RAM sizes adequate for that graph. I'm sure had already seen 4 files of more than 5 GB each, without having accumulated all the sizes.
Yes, mystery solved. I will come back with concrete db sizes. Please consider the RAM-boundedness to be an documentation item for 'Requirements'. Thanks for clearing things up!
I will have to find another storage for my graph. I will continue to consider graphd for partial graphs of that database.

So here are my observations of today's startup:
.../wntdb> du -h .
1,5G	./hmap/gm/large
0B	./hmap/gm/bgmap
2,5G	./hmap/gm
6,9G	./hmap
4,1M	./bmap
8,5G	./primitive
9,4M	./from/large
0B	./from/bgmap
730M	./from
0B	./scope/bgmap
0B	./scope
20M	./type/large
285M	./type/bgmap
322M	./type
172M	./to/large
0B	./to/bgmap
693M	./to
17G	.
08:12:29 > sudo bazel-bin/graphd/graphd -d wntdb -i tcp://<IP_ADDRESS>:8100
08:22:45 .../wntdb> vm_stat 1
Mach Virtual Memory Statistics: (page size of 4096 bytes)
free   active   specul inactive throttle    wired  prgable   faults     copy    0fill reactive   purged file-backed anonymous cmprssed cmprssor  dcomprs   comprs  pageins  pageout  swapins swapouts
3758   899968   538721   376790        0   277726    27559  4439174   361480  1731226     1012    21818      962992    852487        0        0        0        0   988907        5        0        0
3574   901218   538277   376782        0   277054    28653      303        0      639        0        2      962720    853557        0        0        0        0      450        0        0        0
3646   901403   538087   376773        0   276922    28753      323        0      117        0        0      962726    853537        0        0        0        0      509        0        0        0
3612   901553   537927   376773        0   276925    28753      276        0       80        0        0      962734    853519        0        0        0        0      518        0        0        0
3963   901715   537760   376766        0   276792    28753      361        0      161        0        1      962733    853508        0        0        0        0      520        0        0        0
3842   901957   537525   376766        0   276807    28720      424        0      196        0        0      962668    853580        0        0        0        0      469        0        0        0
4055   902150   537334   376766        0   276652    28753      257        0       58        0        1      962666    853584        0        0        0        0      523        0        0        0
08:22:53 .../wntdb> iostat 1
disk0               disk1       cpu    load average
KB/t  tps  MB/s     KB/t  tps  MB/s  us sy id   1m   5m   15m
13.22  229  2.95    22.13  117  2.54   4  4 92  1.74 1.64 1.20
4.88   59  0.28    20.51  125  2.51   2  2 96  1.74 1.64 1.20
4.34   47  0.20    16.47  120  1.93   0  2 98  1.74 1.64 1.20
5.07   56  0.28    16.29  137  2.17   1  1 98  1.74 1.64 1.20
4.73   60  0.28    14.10  115  1.59   1  1 98  1.74 1.64 1.20
6.00   16  0.09    14.45  136  1.92   1  2 97  1.76 1.65 1.20
09:52:52 end of startup
echo 'read(GUID=0401a8c0400006478000000009b13924)' | bazel-bin/gld/gld -a
ok ((-> 0401a8c0400006478000000009b13924 "#0401a8c040000647800000000000001f" null null null null true true 2018-11-25T13:43:26.0001Z 0401a8c04000064780000000033fde0d 0401a8c0400006478000000009b13923))
So I have imported 162,609,445 primitives, startup was a bit faster than last time with 40 million fewer primitives.
I don't know if it makes a difference: Before the 2:09 h startup I hadn't stopped the server properly with graphd -z. After the last importing session before this 1:40 h startup I had stopped the server properly.

After 182458580 primitives we are at
.../wntdb> du -h .
1,7G	./hmap/gm/large
0B	./hmap/gm/bgmap
2,8G	./hmap/gm
7,2G	./hmap
4,1M	./bmap
9,1G	./primitive
9,6M	./from/large
0B	./from/bgmap
902M	./from
0B	./scope/bgmap
0B	./scope
18M	./type/large
310M	./type/bgmap
345M	./type
172M	./to/large
0B	./to/bgmap
833M	./to
18G	.

I just declared my graph finished, at 229.8 million primitives, sparing the word-contained-in-sentence relationships. Before the last 49 million primitives being inserted, graphd had a startup time of 20 minutes, however that may have come.
I have no idea about the vastly varying startup times. Insert speeds appear to vary, depending on indexes touched: I was able to insert nodes at 3 million per hour when names were different from all other material in the graph and linking to nodes that were not very well connected before.


HTML files now require an extension to run

Issue Type: Bug
In the April release of VSC, this issue started to happen. Before, I could simply run with F5 and everything would work fine. Now, it tells me to install an extension for debugging, even if I run without debugging.
Steps to reproduce:

Run a HTML file, without debugging (Ctrl + F5)
There should now be a prompt to install an extension.
Click on it, and install any of the extensions.
Try again, only to keep getting the prompt with any extension enabled. I've only tried 2 extensions, but it happened with both.

Cancel only cancels the entire thing. Attached are screenshots of me attempting to run without debugging.
I understand this is only a small issue, but to run directly from VSC is a large reason I chose this code editor. Please fix this!
VS Code version: Code 1.56.0 (cfa2e218100323074ac1948c885448fdf4de2a7f, 2021-05-04T22:09:06.405Z)
OS version: Windows_NT x64 10.0.19042

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.91GB (3.51GB free)

Process Argv
--crash-reporter-id 8c746a95-70ad-4816-8370-eaf9d045842f

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30294772
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30291489
pythontb:30283811
vspre833:30267464
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
pythondataviewer:30285071
vscus158cf:30286554

I do have this problem and I do not have any idea of how to fix this

Confirmed in 1.55.2, I could hit Ctrl+F5, select Chrome, and the HTML file would open in chrome. Now there's a popup telling me I need additional extensions.

@connor4312 what do you think that we fix this in the Chrome extension so that the Chrome extensions says that it is interested in html by specifying it in the language field?

@connor4312 that was fast. Thanks
What do you think about doing this as part of recovery?

It looks like we'll have a recovery, and I think this is a safe change.

Lovely, thanks!


Update proc-macro-crate

Update to v2.0.0.

@blackbeam could you please approve the workflow so tests can run?

Thank you, looking forward to the release!


Extended consumer latency recorded after partition leadership reverts to preferred

Using strimzi-canary 0.5.0 against a three broker instance, I am noticing that sometimes I see consumer latencies being unexpected high for a period.  The problem remains for about 10mins until it resolves, without any intervention.
Here's sequence of events the causes the situation:

Canary running against cluster recording short produce/consume latencies against all three partitions.
Restart one broker (broker=2)
Partition leadership moves from broker 2 to either broker 0 or 1
Canary continues to record short produce/consume latencies against all partitions.
After a period the cluster reverts the partition leadership back to its prefered broker (broker config: auto.leader.rebalance.enable = true, leader.imbalance.check.interval.seconds = 300, leader.imbalance.per.broker.percentage = 0)
Canary continues to record short produce latencies, but the consume latency for the partition whose leadership is reverted is considerably extended (unexpected).  The extended consume latencies continue for many minutes.
After about 10 minutes of extended consume latencies for that partition, the problem disappears.

The problem is impactful because it leads to seemingly spurious latency alerts.

  I can tell this by logging where the client is sending the FetchRequest RPCs.  I see all the requests going to broker 0 and broker 1, but none to broker 2 during this period.

I am wondering about  changing the canary to a) use a single consuming client per broker b) don't use consume groups at all.  @ppatierno WDYT?

I believe this is the Kafka's bug. Recently, someone reported it to upstream, but haven't got PR opened, yet. I'll ask if it can be fixed in v3.4.0.
https://issues.apache.org/jira/browse/KAFKA-14379

OK, I found I was wrong, because canary uses sarama client, not java client. So maybe they have similar issues there.

thanks @showuon. In the case of the canary the client is Sarama and I don't think it is suffering the same client defect.
In this case, the problem is resolved by the refreshing of the metadata (so the client is respecting the prefered read replica).  The client logs:
``
[Sarama] 2022/11/23 16:07:47.472933 consumer/broker/0 abandoned in favor of preferred replica broker/2

just after the timed metadata refresh (10mins). That's coming from: https://github.com/Shopify/sarama/blob/v1.35.0/consumer.go#L977

I think fixing the canary to refresh is client metadata more frequently is the correct thing to do.

Separately, I am still puzzled why fetching from a follower introduces so much latency in this case (~1000ms).  The canary's producer is using RequiredAcks **WaitForAll** (-1) when publishing.  I know that all replicas are in-sync so this should mean that all brokers have the message.  The canary is using a SyncProducer and the code is timing the latency between ProduceRequest and ProduceResponse.  I know this is short ~5ms.   I cannot account for ~990ms.

I1123 14:39:14.207090       1 producer.go:108] Message sent: partition=2, offset=16191, duration=6 ms
I1123 14:39:15.200454       1 consumer.go:220] Message received: value={ProducerID:__redhat_strimzi_canary_client, MessageID:2181, Timestamp:1669214354201}, partition=2, offset=16191, duration=999 ms

Separately, I am still puzzled why fetching from a follower introduces so much latency in this case (~1000ms).

I believe I have answered my own question.  What I am seeing if the effect of high water mark propagation.  The leader
informs the followers of the high water mark via the HighwaterMarkOffset in the FetchResponse only once it knows all in-sync followers have confirmed the receipt (by the offset in their FetchRequest).  As there is no other messages going to the partition, the follower is not getting the FetchResponse for a full replica.fetch.wait.max.ms (default: 500ms) has elapsed.   I experimented by lowering replica.fetch.wait.max.ms to confirm this was the case.

@k-wall , nice investigation! I think replica.fetch.wait.max.ms is indeed the reason for the ~1000ms latency.

I am proposing #206 to resolve this defect.  Earlier I spoke about refactor the canary not to use a consumer group.  Whilst I think this is the right approach, as we intend to rewrite the Canary in Java, I don't think it is worth putting the time into the Go implementation.  I believe #206 is a worthwhile improvement that should reduce the worst of the spurious latency measurements.

@k-wall when you described the problem, this issue I raised in the Sarama community came to my mind https://github.com/Shopify/sarama/issues/1927
Isn't it possible to be a regression somewhere and maybe we don't need to reduce the refresh metadata interval but looking forward to some fix in Sarama itself?

@k-wall but isn't the behaviour you are seeing exactly the same described in the issue I opened in the Sarama repo?
Where they are different? Because if it's the same, it was fixed and now not working again.

No, this is different to your report:
In https://github.com/Shopify/sarama/issues/1927#issuecomment-828701658 you said "yes you are right (of course! ;-)) even after a metadata refresh nothing is changed."
That's not the case here.  The metadata refresh is fixing the issue.


Setup Kobuki controller

Depends on #2

Implement a docker-based kobuki controller for ROS2 Humble similar to this ROS1 repo: https://github.com/j3soon/docker-ros-kobuki
Add a script that can toggle between controlling kobuki in gazebo simulation (#2), and in the realworld (controller implemented in this PR), or both.

Potential ROS2 references:

https://github.com/kobuki-base/kobuki_core (this should correspond to ros2, as mentioned here)
https://github.com/kobuki-base/kobuki_ros

Some other references on kobuki docker (ROS 1)

https://github.com/sarubito/kobuki-docker/tree/master
https://github.com/sh-hay/kobuki-controller/tree/main

As in our private discussion, please:

Try out available implementations of kobuki bringup for ROS 2 first. Please discuss with me in advance before deciding to implement from scratch using rosserial,
First try out setting up udev rules outside the docker container. Discuss with me before trying to put udev rules inside the docker container.

Thank you.

For some reason, I try to put the udev rules inside the Docker container yesterday, and it proved to be successful.
I'm working with the Arduino Nano device, which is similar to the STM32 on Kobuki.
However, I'm still in the process of developing the workspace for Kobuki control in ROS2 Humble.
If I finish it on schedule, we may be able to test it next week ~

Great! Let's schedule a time next week to test it offline.


Incorrect AUDBTC counter value

Expected behaviour
Correct BTCAUD value is retrieved
Actual behaviour
Incorrect BTCAUD value is retrieved
Please don’t use acx.io they are a scam exchange I’m Australia and they do not have the correct BTC value. Consider using values from independent reserve or BTC markets

Duplicate of #1137 will be fixed with new countervalue system we will be introducing shortly


No cached version of com.facebook.android:facebook-android-sdk:13.2.0 available for offline mode.

🐛 Bug Report

To Reproduce

Expected Behavior

Code Example

Environment
System:
OS: macOS 12.1
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory: 18.77 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.3.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.15.1 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 23, 25, 27, 28, 29, 30, 31
Build Tools: 27.0.3, 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3
System Images: android-30 | Google APIs Intel x86 Atom
Android NDK: 22.1.7171670
IDEs:
Android Studio: 4.2 AI-202.76<IP_ADDRESS>51085
Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_291 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.4 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

The error message contains exactly how you need to fix it.
"Disable gradle offline mode"

Hi Miike Hardy
i try many time with offline and online gradle but its giving me the same error

From: Mike Hardy @.>
Sent: 16 May 2022 18:26
To: thebergamo/react-native-fbsdk-next @.>
Cc: Ritesh Pratap @.>; Author @.>
Subject: Re: [thebergamo/react-native-fbsdk-next] No cached version of com.facebook.android:facebook-android-sdk:13.2.0 available for offline mode. (Issue #253)
Closed #253https://github.com/thebergamo/react-native-fbsdk-next/issues/253.
—
Reply to this email directly, view it on GitHubhttps://github.com/thebergamo/react-native-fbsdk-next/issues/253#event-6615904751, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMKOO7JNPXIOACYBIOTC3VLVKJAZVANCNFSM5WAUSCZA.
You are receiving this because you authored the thread.Message ID: @.***>

You have something going on with your network, I need to be clear: this is not a problem in this module. There is nothing we can do to help you.
you can see the repository information easily with direct access:
https://mvnrepository.com/artifact/com.facebook.android/facebook-android-sdk
https://mvnrepository.com/artifact/com.facebook.android/facebook-android-sdk/13.2.0
https://repo1.maven.org/maven2/com/facebook/android/facebook-android-sdk/13.2.0/
It's all there.


Add support for Uuid to SQLite

It would be nice to be able to use uuid::Uuid within the structs in combination of SQLite!

As far as I'm aware there is no data type in SQLite that maps to UUID?

As far as I'm aware there is no data type in SQLite that maps to UUID?

I'm sorry.

There is no UUID type in sqLite, but you could just store the UUID as a BYTE (or TEXT).
Automatic serializaton here would be a very welcome feature.

No there is not, but the UUID could just be (de)serialized to  BINARY or TEXT, which would be much nicer than having to convert manually. @sgrif

I've implemented storing UUIDs in SQLite using BINARY(128) using a wrapper type in my package.
Code:
https://github.com/forte-music/core/blob/fc9cd6217708b0dd6ae684df3a53276804479c59/src/models/id.rs#L67-L121
SQL:
https://github.com/forte-music/core/blob/feature/sync-engine/migrations/2018-05-14-200933_setup/up.sql#L1-L12
Usage:
https://github.com/forte-music/core/blob/fc9cd6217708b0dd6ae684df3a53276804479c59/src/models/album.rs#L10-L21
I can make a pull request with an adaptation of this code if anyone is interested.

I'm interested @0xcaff, would appreciate it if you have the time to do a PR for this.

I’d like thoughts from a contributor before making a PR. Thoughts @sgrif?

Our policy for including mappings between certain SQL types an rust types is like following:

Either a rust type is able to represent all possible values of the matched SQL type and  also the SQL type could represent all values of the rust type
Or the type is a fundamental type like boolean.
The first condition is not fulfilled because there at Text and also Binary values that are no valid uuid's (for example all shorter or longer values)
In my opinion also the second point is not fulfilled because uuid is not that fundamental like for example booleans. (If anyone from @diesel/core disagrees, pleas response here :wink:)

Given that (and given that it is quite easy to write a new type wrapper for this outside of diesel) I would say that impl should not be part of diesel itself.

Playing devils advocate here.
I'd argue that uuid is a fundamental type. Many applications use the uuid create and diesel already has support for using it with some SQL dialects (postgres). It's a useful thing to have around built, tested and discover-able for users of the library. Writing a new type wrapper is annoying because of the need for boilerplate type conversion code.
Also, chrono::NaiveDate violates these rules. It is serialized as TEXT for SQLite. https://github.com/diesel-rs/diesel/blob/85e0007684d7547379d1fa69de5146b04695bc19/diesel/src/sql_types/mod.rs#L267-L282

In my opinion NaiveDate (and similar types) falls in the same category like booleans. They are fundamental in such a way that it is not possible to write larger application without using them. So not supporting the is not an option.
On the other hand it is possible to write large application without using uuid's, because for nearly all use cases using a 64 bit identifier should be enough.

We also support it because SQLite does have a ton of built-in functions for dealing with dates. Yes, it represents them as strings, but that's ultimately an implementation detail, not something relevant to whether the type exists or not. Importantly, there is a canonical way to represent a date in SQLite.
That is not the true of UUIDs. We could store the raw bytes, or we could store the text representation. It's not obvious which we should choose, and we would be incompatible with existing databases when we choose one or the other.
Ultimately when there's a clear representation of a type and semantically it exists for a given backend, we support it even if there's some mismatch. For example, even PG's datetime type supports a different range of dates than chrono. Given that SQLite is fully dynamically typed, if we really wanted to only support what strictly could be represented, the only type that we could support for SQLite is Vec<u8>. We do have to draw the line somewhere though, and this is where we've chosen to draw it for the time being.

Here is an updated version of the code shared by @0xcaff , as I couldn't get the original to work anymore.
Really wish this was part of the crate, so we wouldn't have to use the wrapper. But, it works.
The "uuid" feature really should be called "postgres-uuid", took me a while to figure out it isn't implemented for sqlite
use uuid;
use std::io::prelude::*;
use diesel::deserialize::{self, FromSql};
use diesel::serialize::{self, IsNull, Output, ToSql};
use diesel::sql_types::{Binary};
use diesel::sqlite::Sqlite;
use diesel::backend::Backend;
use std::fmt::{Display, Formatter};
use std::fmt;

#[derive(Debug, Clone, Copy, FromSqlRow, AsExpression, Hash, Eq, PartialEq)]
#[sql_type = "Binary"]
pub struct UUID(pub uuid::Uuid);

impl UUID {
    pub fn random() -> Self {
        Self(uuid::Uuid::new_v4())
    }
}

impl From<UUID> for uuid::Uuid {
    fn from(s: UUID) -> Self {
        s.0
    }
}

impl Display for UUID {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(f, "{}", self.0)
    }
}

impl FromSql<Binary, Sqlite> for UUID {
    fn from_sql(bytes: Option<&<Sqlite as Backend>::RawValue>) -> deserialize::Result<Self> {
        let bytes = not_none!(bytes);
        uuid::Uuid::from_slice(bytes.read_blob()).map(UUID).map_err(|e| e.into())
    }
}

impl ToSql<Binary, Sqlite> for UUID {
    fn to_sql<W: Write>(&self, out: &mut Output<W, Sqlite>) -> serialize::Result {
        out.write_all(self.0.as_bytes())
            .map(|_| IsNull::No)
            .map_err(Into::into)
    }
}

+1 for rename of the feature. I've spent about an hour looking into this only to find out the type is only compat with PG. Using rusqlite allows for UUID usage as BLOB format, it would be really nice to see, but if it violates your standards then :(

Following on from @MightyPork's code, you can make the backend generic for all database types supporting the Binary type:
impl<B: diesel::backend::Backend> diesel::deserialize::FromSql<Binary, B> for UUID
where
    Vec<u8>: diesel::deserialize::FromSql<Binary, B>
{
    fn from_sql(bytes: Option<&B::RawValue>) -> diesel::deserialize::Result<Self> {
        let value = <Vec<u8>>::from_sql(bytes)?;
        uuid::Uuid::from_slice(&value).map(UUID).map_err(|e| e.into())
    }
}

impl<B: diesel::backend::Backend> diesel::serialize::ToSql<Binary, B> for UUID
where
    [u8]: diesel::serialize::ToSql<Binary, B>
{
    fn to_sql<W: Write>(&self, out: &mut diesel::serialize::Output<W, B>) -> diesel::serialize::Result {
        out.write_all(self.0.as_bytes())
            .map(|_| diesel::serialize::IsNull::No)
            .map_err(Into::into)
    }
}

Based on w4's and MightyPork's solutions (which seem to require diesel v1.x), I adapted their UUID module for diesel v2.1.5:
use diesel::{
    backend::Backend,
    deserialize::{self, FromSql},
    serialize::{self, Output, ToSql},
    sql_types::Binary,
    AsExpression, FromSqlRow,
};
use std::fmt::{self, Display, Formatter};
use uuid;

#[derive(Debug, Default, Clone, Copy, FromSqlRow, AsExpression, Hash, Eq, PartialEq)]
#[diesel(sql_type = Binary)]
pub struct UUID(pub uuid::Uuid);

impl UUID {
    pub fn new_v4() -> Self {
        Self(uuid::Uuid::new_v4())
    }
}

impl From<UUID> for uuid::Uuid {
    fn from(s: UUID) -> Self {
        s.0
    }
}

impl From<uuid::Uuid> for UUID {
    fn from(s: uuid::Uuid) -> Self {
        UUID(s)
    }
}

impl Display for UUID {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(f, "{}", self.0)
    }
}

impl<B: Backend> FromSql<Binary, B> for UUID
where
    Vec<u8>: FromSql<Binary, B>,
{
    fn from_sql(bytes: <B as Backend>::RawValue<'_>) -> deserialize::Result<Self> {
        let value = <Vec<u8>>::from_sql(bytes)?;
        uuid::Uuid::from_slice(&value)
            .map(UUID)
            .map_err(|e| e.into())
    }
}

impl<B: Backend> ToSql<Binary, B> for UUID
where
    [u8]: ToSql<Binary, B>,
{
    fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, B>) -> serialize::Result {
        self.0.as_bytes().to_sql(out)
    }
}

This has worked for me in a small SQLite-based project.

Based on w4's and MightyPork's solutions (which seem to require diesel v1.x), I adapted their UUID module for diesel v2.1.5:
use diesel::{
    backend::Backend,
    deserialize::{self, FromSql},
    serialize::{self, Output, ToSql},
    sql_types::Binary,
    AsExpression, FromSqlRow,
};
use std::fmt::{self, Display, Formatter};
use uuid;

#[derive(Debug, Default, Clone, Copy, FromSqlRow, AsExpression, Hash, Eq, PartialEq)]
#[diesel(sql_type = Binary)]
pub struct UUID(pub uuid::Uuid);

impl UUID {
    pub fn new_v4() -> Self {
        Self(uuid::Uuid::new_v4())
    }
}

impl From<UUID> for uuid::Uuid {
    fn from(s: UUID) -> Self {
        s.0
    }
}

impl From<uuid::Uuid> for UUID {
    fn from(s: uuid::Uuid) -> Self {
        UUID(s)
    }
}

impl Display for UUID {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(f, "{}", self.0)
    }
}

impl<B: Backend> FromSql<Binary, B> for UUID
where
    Vec<u8>: FromSql<Binary, B>,
{
    fn from_sql(bytes: <B as Backend>::RawValue<'_>) -> deserialize::Result<Self> {
        let value = <Vec<u8>>::from_sql(bytes)?;
        uuid::Uuid::from_slice(&value)
            .map(UUID)
            .map_err(|e| e.into())
    }
}

impl<B: Backend> ToSql<Binary, B> for UUID
where
    [u8]: ToSql<Binary, B>,
{
    fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, B>) -> serialize::Result {
        self.0.as_bytes().to_sql(out)
    }
}

This has worked for me in a small SQLite-based project.

Could it be possible to save it in Text instead of Binary?

Could it be possible to save it in Text instead of Binary?

Saving it as text is the default behavior which you get when you declare the field as uuid_text in the migration:
create table posts
(
    id uuid_text not null primary key,
    text text not null,
);

Then you just need to remember to always convert to and from String when writing and reading from the DB. If you want to map it transparently, I suppose you could do it analog to the implementation above:
Replace Binary with Text and fiddle around with the to_sql() and from_sql() methods:
// ...

#[diesel(sql_type = Binary)]
pub struct UUID(pub uuid::Uuid);

// ...

impl<B: Backend> FromSql<Text, B> for UUID
where
    String: FromSql<Text, B>,
{
    fn from_sql(bytes: <B as Backend>::RawValue<'_>) -> deserialize::Result<Self> {
        let value = String::from_sql(bytes)?;
        uuid!(value).map(UUID).map_err(|e| e.into())
    }
}

impl<B: Backend> ToSql<Binary, B> for UUID
where
    str: ToSql<Text, B>,
{
    fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, B>) -> serialize::Result {
        self.0.to_string().to_sql(out)
    }
}

I haven't tested this so you might have to put some more work into the methods, but that would be the rough idea.

impl<B: Backend> ToSql<Binary, B> for UUID
where
    str: ToSql<Text, B>,
{
    fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, B>) -> serialize::Result {
        self.0.to_string().to_sql(out)
    }
}

It would'nt let me do this because of str needing lifetime annotations or something like that (sorry I'm pretty new).
Eventually I saw this in the documentation and ended up with this implementation that works fine:
// ...

impl<B: Backend> FromSql<Text, B> for UUID
where
    String: FromSql<Text, B>,
{
    fn from_sql(bytes: <B as Backend>::RawValue<'_>) -> deserialize::Result<Self> {
        let value = String::from_sql(bytes)?;
        uuid::Uuid::from_str(&value.as_str())
            .map(UUID)
            .map_err(|e| e.into())
    }
}

impl ToSql<Text, Sqlite> for UUID
where
    String: ToSql<Text, Sqlite>,
{
    fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Sqlite>) -> serialize::Result {
        out.set_value(self.0.as_hyphenated().to_string());
        Ok(IsNull::No)
    }
}

Thank you very much for your help @teschmitt


Clicking on show raw stack trace causes page to scroll back to the top

cc @ryanbrandenburg

Probably needs a return false; from whatever JavaScript code there is.

return false
Eww. Needs to do event.preventDefault()

What about NCSA Mosaic 3.0???

Fixed in #204


Russian - Chapter 1 finished

Translation to Russian: chapter 1 finished

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


[REQUEST] Add BurbankBus feed

Sorry if this isn't the right way to go about this — I wanted to add a feed for Burbank Bus: https://www.burbankca.gov/burbankbus
I was going to go through the form submission process to submit a new feed, but per #504, the submission form seems down.
gtfs feed: https://rideburbankbus.com/gtfs
bbox: -118.376084 34.138421 -118.311824 34.19569496664857
I can try again after #504 is resolved, or I'd be happy if someone else wanted to submit it.

Thanks @michaelkirk for this submission! Burbank Bus has now been added.


[Custom Pokemon] Zephyreon Normal/Shiny Sprite has a Different Sprite Base than the Pride Sprite

Describe the bug
Zephyreon's Shiny and Normal sprite have the same base, just a different color (as it should be). However, the Pride palette's sprite has a completely different base.
To Reproduce
Steps to reproduce the behavior:

Put a normal Zephyreon in your party
Put a pride Zephyreon in your party
Compare the sprites

Expected behavior
All Zephyreon sprites having the same base
Screenshots

Username:
DraconiacLatias
Server name (all applicable):
Orion

Fixed for next respack update, thanks for the report! Closing


Fixed a couple of typos & added a line to help text (Status)

Fixed a couple of typos & added a line to the status_enable help text

Great, thanks.
I'm rewriting hcxdumptool from scratch and I'll add this to the next version (not pushed, yet), too.


Refine EDA and add wine_eda.md

Hi all, I add:

move eda to separate folder. leave placeholder file in src to add download_data.py script
summary for the data
review wine_eda.jpynb
export eda report to portable markdown file

Reviewed and merged to get url so we could add on README.md file


Npm audit security warning on master and on develop

Description
There's an npm audit security warning on the current master and develop branch that needs to be addressed.

Fixed with 3.1.2.


Pick Target Application by Selector instead of Label

Question
Hello, suppose i have the following two deployment definitions - note that they both have the same label.
my-app.yaml:
kind: Deployment
apiVersion: apps/v1
metadata:
  name: my-app
  namespace: default
  labels:
    app: my-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app: my-app

my-app-primary.yaml:
kind: Deployment
apiVersion: apps/v1
metadata:
  name: my-app-primary
  namespace: default
  labels:
    app: my-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app: my-app-primary

Now I would like to be able to select the deployment with selector my-app-primary. However, the dashboard does not provide an option to specify the selector. I can only select deployment by its label, but as you can see the label are identcial in both deployments. Is this possible with Litmus?

How about adding a unique label to the specific deployment you want to target?


Message size over 1280 Bytes

Is there a way to send messages (e.g.) with udp, which is over 1280 Bytes?
I'm not be able to send udp packages with more than 1232 Bytes ( +8 Bytes UDP Header + 40 Bytes Ipv6 Header = 1280 Bytes in total) from a Openthread Device to an other.
I try it on a NRF52 and on POSIX Simulation. The situation is in both case the same.
I increase for this case OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM to 2*1280 Bytes.
Thanks for help.

Yes, increasing OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM will allow you to send larger packets. Note, however, that the Fragmentation Header defined in RFC 4944 Section 5.3 only has 11 bits for the datagram length, which means that packets are limited to 2047 bytes.

@ChrIgiSta using NCP mode, I think you also need to update the max spinel frame size. This is  defined in spinel.h header file SPINEL_FRAME_MAX_SIZE, and used only in spinel.c within OpenThread code.
Since spinel.h is intended to be shared between host and NCP code, we cannot use OT configuration header to change its definitions.
If you are using wpantund, the spinel max size comes into picture again (in definitions of mInboundFrame and mOutboundBuffer and mOutboundBufferEscaped buffers in SpinelNcpInstance).
There may be other definitions in wpantund that impact MTU size. I know TunnelIPv6Interface() constructor has a mtu parameter with default value being 1280.

BTW, we technically don't need OPENTHREAD_CONFIG_NCP_TX_BUFFER_SIZE to scale with the max IPv6 message size (though increasing it would help with other spinel frames so I suggest to keep as large as possible).
The NcpFrameBuffer (when embedding an IPv6 Message into a spinel frame) does not copy the payload of Message into its buffer and instead just saves the Message pointer. It frees the Message instance once the content is read.

@abtink many thanks for answer.
I'm now be able to set the MTU of WPAN up to 2047 Bytes, and it works with the Border Router.
For people who also want (must) increase package size:
NCP Device

openthread-core-default-config.h -> OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM up to 2047
and OPENTHREAD_CONFIG_DEFAULT_SED_BUFFER_SIZE up to 2047
src/ncp/spinel.h -> SPINEL_FRAME_MAX_SIZE ~2067

wpantund @ borderrouter

third_party/openthread/src/ncp/spinel.h -> SPINEL_FRAME_MAX_SIZE ~2067
src/util/TunnelIPv6Interface.h -> TunnelIPv6Interface(const std::string& interface_name = "", int mtu = 2047); (sets the MTU from the WPAN0 Device)

For Thread Devices

openthread-core-default-config.h -> OPENTHREAD_CONFIG_IPV6_DEFAULT_MAX_DATAGRAM up to 2047

On last question:
Is there a reason, why openthread doesn't handle fragmented Ipv6 packets?
If a Ipv6 fragment is detected, the HandleFragment called in ip6.cpp. In this function a check VerifyOrExit(fragmentHeader.GetOffset() == 0 && fragmentHeader.IsMoreFlagSet() == false, error = OT_ERROR_DROP); drop every by ipv6 layer fragmented packets.
Thanks

@ChrIgiSta, thanks for listing the set of required changes!
To answer your question Thread 1.1.1 Section 5.1 states that RFC 2460 Section 4.5 Fragment Header is not required. However, I could see having IPv6 Fragment Header support as a configurable build option.

@jwhui, thanks for answer!


Is it possible to set a default empty list for parsing vector

Some simple code like belowing, the index has a default value of empty list.
// argument parser
cxxopts::Options options(argv[0], "Simple");
options.set_width(120);
// clang-format off
options.add_options()
    ("index", "selected index", cxxopts::value<vector<int>>()->default_value(""))
    ("h,help", "help message");
// clang-format on
auto result = options.parse(argc, argv);
if (result.count("help")) {
    cout << options.help() << endl;
    return 0;
}

The code throw error if I don't input anything for index
./build/bin/SimpleTest

terminate called after throwing an instance of 'cxxopts::argument_incorrect_type'
  what():  Argument ‘’ failed to parse

I don't think that's possible, since the actual value is only stored somewhere after an option is parsed. I think in that case you would have to handle the case of the count being zero for that option separately.


Remove ballerina/java.jdbc&ballerina/sql` standard libs

Purpose
$subject as this module is being moved to module-ballerina-java.jdbc in https://github.com/ballerina-platform/module-ballerina-java.jdbc/pull/1

@niveathika shall we fix this merge conflicts?

@niveathika shall we fix this merge conflicts?

@BuddhiWathsala Done


gh-1267 - updated example button in swagger

To test this:

start the example rest api
go to operations/execute
in the dropdown select an operation
click add example
select another operation
click add example again

This will add 2 examples in an operation chain.

Codecov Report

Merging #1268 into develop will increase coverage by 0.37%.
The diff coverage is 100%.

@@              Coverage Diff              @@
##             develop    #1268      +/-   ##
=============================================
+ Coverage      64.31%   64.68%   +0.37%
  Complexity      1540     1540
=============================================
  Files            688      688
  Lines          22225    22228       +3
  Branches        2734     2734
=============================================
+ Hits           14294    14379      +85
+ Misses          6783     6699      -84
- Partials        1148     1150       +2

Impacted Files
Coverage Δ
Complexity Δ

...est/service/v2/example/DefaultExamplesFactory.java
71.64% <100%> (+0.44%)
0 <0> (ø)
:arrow_down:

.../gov/gchq/gaffer/store/schema/SchemaOptimiser.java
75.26% <0%> (-6.46%)
0% <0%> (ø)

...v/gchq/gaffer/rest/factory/UnknownUserFactory.java
100% <0%> (+33.33%)
0% <0%> (ø)
:arrow_down:

...chq/gaffer/rest/service/v2/OperationServiceV2.java
38.05% <0%> (+38.05%)
0% <0%> (ø)
:arrow_down:

.../gchq/gaffer/rest/service/v1/OperationService.java
69.64% <0%> (+69.64%)
0% <0%> (ø)
:arrow_down:

...chq/gaffer/rest/mapper/GenericExceptionMapper.java
100% <0%> (+83.33%)
0% <0%> (ø)
:arrow_down:

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 bc192d7...3e8c1b9. Read the comment docs.

This is great - just a few general points:

Is there any reason behind the ordering of operations in the dropdown list? Alphabetical ordering or placing subheadings in the dropdown might be better.
Some of the operation examples might need better generation logic if they are to be used without any additional input. For example, trying to add a Sort operation will result in an error because no value is provided for the comparators field.

Thanks @t616178. I've updated it to sort the operations. I've created another issue to improve the logic used to generate the examples - #1281


Documentation for ref() and updating / patching attribute inside json column

Any improvements are welcome.

Coverage remained the same at 97.039% when pulling ebb9ae2b3cbb1d589fd408a2223a922c608d17ac on elhigu:documentation-for-reference-builder into 5811a1d1ef5f0d12852c824d8a5194b4e57300b9 on Vincit:master.

The code blocks won't be placed where you write them but right after the previous header. So for example saying this
ref() can be passed to all QueryBuilder APIs which supports Model.raw() arguments like:
and writing a code block after it will look confusing since the code won't come after that but actually before it. The text needs to be reformatted so that it works with the out-of-place code blocks.

Coverage remained the same at 94.581% when pulling 84b2d09aae6145747c47997f0d1befa88608d78d on elhigu:documentation-for-reference-builder into a3e3dfed0ca2e1089e11fc7eb31768aef98231ca on Vincit:master.

Maybe now? I didn't see any other places in addition to the ref() can be passed to all QueryBuilder APIs which supports Model.raw() arguments like:


Use :: over cast in audioset_view

Problem

We have a few different forms of the audioset_view definition (see WordPress/openverse-catalog#320).
Description

These should be unified so all definitions are the same, even if cast and :: serve the same purpose. That syntax also already exists in the ingestion server mock schema DDL, so we can apply that to the load_sample_data.sh script.
Alternatives

Additional context

Implementation

[ ] 🙋 I would be interested in implementing this feature.

It would be ideal if the mock schemas from ingestion_server/test/ could directly be used inside the load_sample_data.sh script as that would prevent the need to maintain two copies of the same SQL in the same repo.

Hello, I'm new to open source and I would like to give this a try!
could you please anyone give me more context on this issue?
Thank you.

Hi @pkthinklp! We'd love to have you help out with this issue. We'd like to change all of the cast(x ... as y) calls in the following location to x::y instead:
https://github.com/WordPress/openverse-api/blob/392980106b2cf9444b877c27b1cf32af09d053c6/load_sample_data.sh#L83-L91
Let us know if you'd like to take that on!

Hello @AetherUnbound, First of all
Thank you so much for explaining the issue very briefly.
I will be contributing from @parthpatel9414 account as the old one belongs to work.
Thank you.


Question about ACMF in this paper

Could you please tell me how the image feature and event feature are merged at the beginning of ACMF in this paper?

Recently, we will update the code of my module.

I also have this question. Could the authors kindly reply to this question?


Live Stream Automations

[ ] - Create Discord Thread
[ ] - Publish to X
[ ] - Publish to Discord
[ ] - Publish to Mastodon
[ ] - Publish to BlueSky

Blocked by #236


Project initiation tasks for postpartum LARC project

[x] Review the Project Plan Template in the Orchid Google Drive. Make a copy of it in the LARC project folder.
[x]  Meet with the project sponsors
[x] Monday 12/18: Set up a GitHub project in the LARC repo
[x] Monday 12/18: Fill in all the links in the project plan.  (It's fine if some of the documents it points to are still blank.)
[x] Monday 12/18: Draft the project charter and send to Riley & Jen for feedback (email & link)

[x] Update the GitHub repository project charter

[x]  Monday 12/18: Work with Riley to identify all the stakeholders

[x] Review stakeholder coursera modula
[x] Share what you've learned about project roles and make sure we're filling them & documenting expectations.

[ ]  Monday 12/18: Schedule stakeholder interviews

[x] Jen Franks
[x] Riley Kwong
[x] Rhonda Tullis
[ ] ?

[ ] Complete and present a stakeholder analysis and power grid
[ ] Get feedback from all stakeholders on the project plan and project charter
[ ] Finalize the project charter & project plan
[ ] Schedule the kick-off call!

Project roles will vary depending on the needs of the project. We should focus on filling the roles we need, then reassessing. Further stakeholder interviews and a proper stakeholder analysis will be done after this initial recruitment period.

This project is too small to effectively utilize a RACI chart, so I removed the bullet point


Clarification required for Throughput setting for Cosmos DB sink.

In the doc it says “Throughput: Set an optional value for the number of RUs you'd like to apply to your CosmosDB collection for each execution of this data flow. Minimum is 400.”
Which sounds like it will scale the target Cosmos DB container to whatever you put in this field. Could we clarify some things which aren't clear in this description:

Does this apply to existing containers, or only to containers created by the connector using the “Recreate Collection” setting?
If it applies to existing containers:
a.	after it’s scaled up to the value given, does it scale back down when the job is complete or stay at the new scale setting?
b.	Does it only apply to manual throughput containers or can it also change the max RU value of Autoscale containers?

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

ID: 43cac5a8-aa7f-8aba-d47e-e78249efa031
Version Independent ID: 09c34890-b4f0-be28-9813-bb8066631f6f
Content: Copy and transform data in Azure Cosmos DB (SQL API) - Azure Data Factory & Azure Synapse
Content Source: articles/data-factory/connector-azure-cosmos-db.md
Service: data-factory
Sub-service: data-movement
GitHub Login: @jianleishen
Microsoft Alias: jianleishen

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

Hello @dgpoulet ,
Please find the details answer below .
The “Throughput” option on dataflow cosmos is provided to serve two purposes:

We can increase the throughput of existed container to bigger number to have better performance in data read/write, after operation, the value will be automatically reset to be original value.
Note: if existed container is already set as “Autoscale” on throughput before, we don’t need to change this value while it can be dynamically updated based on your data size, query and index..

Wer can set this value during recreate container (delete old and create new)

Hope this helps.
Going ahead and closing this issue , you can always reopen the issue if you think its required .


Feature Request new vs-code LSP

Hello,
First of all thank you for this amazing project and the constant updates. I appreciated this project since the beginning.
I am not sure if you heard of the new Language-Server(LS) from Microsoft which they include in their new C#-Dev-Kit in VS-Code.
The LS should be and stay open-source and they worked also together with the maintainers of omnisharp. I think the future is leaning towards this new LS and it is also amazing how much faster it is already.
There is still some work to be done, especially in the integration into neovim. But I thought it could be good if this project will also be able to support this new LS.
I guess basically it shouldn't matter what LS is behind for this project, but I tried one time to run some tests and it didn't find any...
So maybe it is just a small adaptation or maybe it's more work. But I wanted to ask if it would be possible to check it out, such that if the LS is more mature in neovim it will already be compatible with this project.
To follow the development it is easiest to follow this issue and there is also described how to get the new LS running. Besides a few tweaks it went quite painless for me.
Thank you

Hi @timotESC . Thanks for the appreciation!
Whilst it would be great if we could use a language server in this adapter, the core neotest plugin works mainly through treesitter and it's API, and as such, so do the adapters.
I don't leverage any LSP's in the adapter (although I did to begin with when starting this adapter, but it was just not worth it, and only gave limited information that was relevant to locating tests), so a new language server really wouldn't be something that would have any bearing on this project.
However, thanks for making a suggestion and pointing me towards something shiny to investigate!


Version information from details is missing in the search result

While constructing the Vulnerability Occurrence the code is using the cpe uri instead of the version list from the original Vulnerability.
https://github.com/AppThreat/vulnerability-db/blob/6775575cc5e7b11885f7af2d44b5540ad15a17f6/vdb/lib/utils.py#L370
This is causing some weird search behaviour as demonstrated below:
> vdb --search "spring-data-jpa:*"

INFO [2020-03-20 11:03:42,741] Vulnerability database loaded from /Users/prabhu/Library/Application Support/vdb/data.vdb
+---------------+-----------+---------+------------+---------+---------------------------------------------------------------------------------------+
| Id            | Package   | CWE     | Severity   |   Score | Description                                                                           |
+===============+===========+=========+============+=========+=======================================================================================+
| CVE-2019-3802 | <*        | UNKNOWN | MEDIUM     |       5 | Moderate severity vulnerability that affects org.springframework.data:spring-data-jpa |
+---------------+-----------+---------+------------+---------+---------------------------------------------------------------------------------------+
| CVE-2019-3797 | <1.11.20  | UNKNOWN | LOW        |       2 | Low severity vulnerability that affects org.springframework.data:spring-data-jpa      |
+---------------+-----------+---------+------------+---------+---------------------------------------------------------------------------------------+

Notice the <* for the first result. This should instead show comma separated list of all versions mentioned in the original report along with the version passed by the caller.

This is fixed with 1.2.0. I have also improved version include and exclude logic. There is some more work required to make it accurate, for instance, improving the complex utils.version_compare


Enhancement: Signature for partial/flip/etc.

To get the signature of a functools instance at runtime could be useful. Even if it probably won't work with inspect.

It's been 4 years since I had the idea and realistically I don't have the time for that


Fix linting check

Now uses subprocess to check the return code, and also references the disables in the .pre-commit-config.yaml file so it'll stop flagging things disabled there.

I tested this code in the same way that the code is run with a modified version of it, and it worked, so I have more confidence in this patch than the last one.

Sadly this won't work as well as I thought, but I have an alternative solution on the way!


Version 2 and above does not load my project anymore

Describe the bug

I have a project whose locales were installed using vue-cli-plugin-i18n 0.6.1.
Ever since the extension updated to version 2.0.5 the project isn't loading i18n-ally.
Extension Version

i18n Ally version 2.0.5
Framework/i18n package you are using

vue-i18n 8.0
installed using vue-cli-plugin-i18n 0.6.1
To Reproduce
Steps to reproduce the behavior:

Update i18n-ally
Reload visual studio code
I don't see i18n-ally when the project reload

Device Infomation

OS: Windows
Version: 10.1909
VS Code Version: 1.44.2

Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information
🈶 Activated, v2.0.5

(when I switch to 1.15.5 I instead get)
🈶 Activated, v1.15.5

――――――

💼 Workspace root changed to "d:\<path\to\my\route\project>\<project>"
📦 Packages file "package.json" found
🕳 Packages file "pubspec.yaml" not exists
🕳 Packages file "composer.json" not exists
🕳 Packages file "Gemfile" not exists
🌞 Enabled
✅ "Vue" framework(s) detected, extension enabled.
🧬 Parsers "json", "yaml", "js", "json5", "ini", "po", "php" enabled.

🚀 Initializing loader
"d:\<path\to\my\route\project>\<project>"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(json5?|ya?ml|jsx?|tsx?|mjs|ini|pot|php?)$/

📂 Loading locales under
d:\<path\to\my\route\project>\<project>\src\locales
	📑 Loading (fr) fr.json

👀 Watching change on
d:\<path\to\my\route\project>\<project>\src\locales
✅ Loading finished

Screenshots

Attached my settings.json file
settings.zip

That's weird, 2.0.5 does not print anything? Can you help check out the VS Code's developer console see if there is any log related to i18n ally? Thanks

I apologize profusely but as someone who hasn't developped an extension I have to ask.
How do you access it?

Help > Toggle Developer Tools

L'activation de l'extension 'antfu.i18n-ally' a échoué: ENOENT: no such file or directory, open 'c:\Users\jbzeller.vscode\extensions\antfu.i18n-ally-2.0.5\package.nls.fr.json'.
This might help.
My visual studio code is in French.

Oh I see. Thanks!

I confirm everything is now working flawlessly.
The irony that a project that handle translation is defeated by its own translation isn't lost on me.


Add functionality to clear tokens on lifecycler shutdown

What this PR does:
This PR adds a flag to the ingester lifecycler that, when set to true,
allows the component to delete the ring token file if the
-<prefix>.tokens-file-path is set to persist tokens across restarts.
This enables components that use the lifecycler to implement a handler
that deletes the ring token file to "clear" tokens from the instance and
force a re-distribution of them when the instance is restarted.
Which issue(s) this PR fixes:
Fixes #
Checklist

[x] Tests updated
[ ] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Have you considered moving to BasicLifecycler and use an hook to do it?

If you're using it in a new project, have you considered moving to BasicLifecycler and use an hook to do it? (otherwise ignore this comment, cause migrating from Lifecycler to BasicLifecycler may be non trivial)

It's for the Loki ingester, so unfortunately, as you said, migrating to BasicLifecycler is not that easy. But I will keep that in mind :)

This enables components that use the lifecycler to implement a handler
that deletes the ring token file to "clear" tokens from the instance and
force a re-distribution of them when the instance is restarted.

I don't fully understand the use case. If you need to clear tokens, then why using the tokens on disk at all? Couldn't you just not use it (set to empty path)?

This would be for a one-off clearance of tokens of an instance, when you generally run the component with persisted tokens.
I agree, you can do that manually as well by just deleting the file by hand, gracefully shutting down the service and restart the process (Pod), but we would like to do that in a handler of an HTTP endpoint, see https://github.com/grafana/loki/pull/6179
You might have a better idea to achieve this in the lifecycler :-)

@pracucci Changed log line as suggested and added changelog entry.


Move autofs role below nfs_mount role

The autofs configuration needs to be done at the same time as the nfs mount configuration, as it's an alternative to the static mounts.
As it is, installation fails because NFS is needed for slurm and sshd host keys.

autofs role is not added on grid/install.yml - perhaps you don't use the autofs method there.

We use autofs on the install node, and are planning to use it on the grid node too, we just haven't installed the grid node yet. A strange thing, the ansible-role-nfs_mount is not defined in install.yml btw.


Complete three new strings in Esperanto and Spanish

Complete three new strings in Esperanto and Spanish.
New strings:
localeSelectionTitle,
nodeSelectionTitle, and
darkMode.
Also added @@locale line to EO and ES so the exact number of lines agrees with the RU file.

Complete three new strings in Esperanto and Spanish. New strings: localeSelectionTitle, nodeSelectionTitle, and darkMode. Also added @@Locale line to EO and ES so the exact number of lines agrees with the RU file.

Thanks Sean!