I want this stuff added to a list

I do not want to follow these people globally, so I create a list "Infosec" in the list panel.
I then go into the Developer panel and create an application autosubber, read, write:follows, write:lists, follow (probably to large a scope)
I put these things into a .env file in the project directory.
$ cat .env
$ cat .env
CLIENT_KEY=redacted
CLIENT_SECRET=redacted
ACCESS_TOKEN=redacted

The project directory also has a requirements.txt and a main.py.
$ cat requirements.txt
Mastodon.py
python-dotenv

$ python3.12 -mvenv venv
$ source venv/bin/activate
(venv) $ pip install -U pip wheel
(venv) $ pip install -r requirements.txt
$ cat main.py
import csv
import os
from mastodon import Mastodon, MastodonError
from dotenv import load_dotenv
import time

MYINSTANCE="https://chaos.social"

# do the actual work
def process_file(filename, mastodon, listen_id, retry_filename):
    with open(filename, mode='r', newline='', encoding='utf-8') as file, \
         open(retry_filename, mode='a', newline='', encoding='utf-8') as retry_file:
        reader = csv.DictReader(file)
        writer = csv.DictWriter(retry_file, fieldnames=reader.fieldnames)

        for row in reader:
            try:
                print(f"Working on: {row['Account address']}")
                account = mastodon.account_search(row['Account address'], limit=1)
                if account:
                    try:
                        print("Following...")
                        mastodon.account_follow(account[0]['id'])
                    except MastodonError as e:
                        print(f"Error while following {row['Account address']}: {e}")
                        writer.writerow(row)
                        continue

                    try:
                        print("Add to List...")
                        mastodon.list_accounts_add(listen_id, account[0]['id'])
                    except MastodonError as e:i
                        if e.args[0] == ('Mastodon API returned error', 422, 'Unprocessable Content', 'Validation failed: Account has already been taken'):
                            print(f"Account {row['Account address']} is already in list.")
                        else:
                            print(f"error while adding to list: {row['Account address']}: {e}")
                            writer.writerow(row)

            except Exception as e:
                print(f"error working on {row['Account address']}: {e}")
                writer.writerow(row)
            print()
            time.sleep(1)

# load the env
load_dotenv()

# dotenv then serves fake getenv() data to os.getenv()
client_key = os.getenv('CLIENT_KEY')
client_secret = os.getenv('CLIENT_SECRET')
access_token = os.getenv('ACCESS_TOKEN')

# get a client
mastodon = Mastodon(
    client_id=client_key,
    client_secret=client_secret,
    access_token=access_token,
    api_base_url=MYINSTANCE
)

# check we have a list
listen_name = "Infosec"
listen_id = None
listen = mastodon.lists()

for liste in listen:
    if liste['title'] == listen_name:
        listen_id = liste['id']
        break

if listen_id is None:
    listen_id = mastodon.list_create(listen_name)['id']

# load stuff, and if stuff fails, write stuff out to retry.txt
retry_filename = 'retry.txt'
process_file('infosec.txt', mastodon, listen_id, retry_filename)

Revised copy adds support for BASE_URL and REQUEST_TIMEOUT in a .env file, and better error handling.
import csv
import os
from mastodon import Mastodon, MastodonError
from dotenv import load_dotenv
import time

def process_file(filename, mastodon, list_id, retry_filename):
    """ process a csv file with info sec people and follow them,
        then sunscribe them to the list Infosec. This allows us to
        suppress them in the main stream, if we are so inclined.
    """

    # write to retry filename on error. The format is the same as for the
    # input filename, allowing us to rename the file for a second run
    with open(filename, mode='r', newline='', encoding='utf-8') as file, \
         open(retry_filename, mode='a', newline='', encoding='utf-8') as retry_file:
        reader = csv.DictReader(file)
        writer = csv.DictWriter(retry_file, fieldnames=reader.fieldnames)

        # for each line, do the thing,
        # then wait a bit as to not trigger rate limiting
        for row in reader:
            try:
                print(f"Working on: {row['Account address']}")
                account = mastodon.account_search(row['Account address'], limit=1)
                if account:
                    # follow them
                    try:
                        print("Following...")
                        mastodon.account_follow(account[0]['id'])
                    except MastodonError as e:
                        print(f"error following {row['Account address']}: {e}")
                        writer.writerow(row)
                        continue

                    # add them to list
                    try:
                        print("Add to List...")
                        mastodon.list_accounts_add(list_id, account[0]['id'])
                    except MastodonError as e:
                        # they already are in the list
                        if e.args[0] == ('Mastodon API returned error', 422, 'Unprocessable Content', 'Validation failed: Account has already been taken'):
                            print(f"Account {row['Account address']} already in list.")
                        else:
                            # other things went wrong
                            print(f"Error adding to list: {row['Account address']}: {e}")
                            writer.writerow(row)
                else:
                    # we cannot find them
                    print(f"can't find account {row['Account address']}")
                    writer.writerow(row)

            # something else did not work
            except Exception as e:
                print(f"error working on {row['Account address']}: {e}")
                writer.writerow(row)
            print()
            time.sleep(1)

# Load an environment
load_dotenv()

# dotenv serves fake environment to getenv()
client_key = os.getenv('CLIENT_KEY')
client_secret = os.getenv('CLIENT_SECRET')
access_token = os.getenv('ACCESS_TOKEN')
api_base_url = os.getenv('BASE_URL')
request_timeout = int(os.getenv('REQUEST_TIMEOUT'))

print(f"{api_base_url=} {request_timeout=}")
# Build the client object
mastodon = Mastodon(
    client_id=client_key,
    client_secret=client_secret,
    access_token=access_token,
    api_base_url=api_base_url,
    request_timeout=request_timeout,
)

# Ensure we have a list and know the id
list_name = "Infosec"
list_id = None
lists = mastodon.lists()

for list_ in lists:
    if list_['title'] == list_name:
        list_id = list_['id']
        break

if list_id is None:
    list_id = mastodon.list_create(list_name)['id']

retry_filename = 'retry.txt'
process_file('infosec.txt', mastodon, list_id, retry_filename)

$ cat .env
$ cat .env
CLIENT_KEY=redacted
CLIENT_SECRET=redacted
ACCESS_TOKEN=redacted
BASE_URL=https://chaos.social
REQUEST_TIMEOUT=10

Hey @isotopp! Appreciate the contribution, but I was wondering if you would particularly mind if I add this as a separate program?


Knex 0.95.11 using vulnerable version 1.0.6 of path parse

Latest version of Knex 0.95.11 is using vulnerable version 1.0.6 of path parse. Path parse 1.0.6 is vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity. Path parse version 1.0.7 is available.
Knex should use updated path parse version 1.0.7

Doesn't "npm update" help?

Should this be closed?


Add way to inhibit warnings/hints locally.

I know there is already a closed ticket #23872 for this but it's so annoying. I have this problem over and over again. (Intellij/ Dart plugin)
Like in this code:
    String _getFilename(html.Blob blob) {
        Validate.notNull(blob);
        if(blob is html.File && (blob as html.File).name.isNotEmpty) {
            return blob.name;
        }
        return filename;
    }

Maybe sometime in the future DA is able to resolve this but we need the solution NOW.
In Java I can turn off warnings via code comments - can't you provide a similar thing for DA?

The warning is correct and the cast is unnecessary - according to Dart semantics and the analysis server's analysis - so your actual problem is that you need to use a tool that doesn't work well without the otherwise unnecessary cast, and you want to be able to keep the cast (at least until the tool is fixed) without being overburdened by warnings.
That is, you want to inhibit some (but not all) hints provided by the analyzer, in some way.
I don't think there currently is a way to do this, so making this an enhancement request for the analyzer.

This is an old problem and it's not just one or two warnings in my case - I get about 30 or 40 of them for my whole project - this pollutes the Analyzer-Output-Window in IntelliJ and makes it almost unusable.
Here is the Java-way: http://www.codejava.net/java-core/the-java-language/suppresswarnings-annotation-examples
Warnings and hints are great but sometimes they can't be controlled globally.
I'm afraid that no one takes care about this problem (no priority, nobody assigned...) - the analyzer has a lot of other problems which should be fixed before this one.

The analyzer now supports an // ignore: issue_code syntax. Here's an example: https://github.com/flutter/flutter/blob/d9916bbb337ecc4968a175792d11edbe76af991d/packages/flutter/lib/src/services/activity.dart#L26
/cc @pq

For a bit more background on this support see:
https://docs.google.com/document/d/1YJCkxnklLR2aKzQUrp6cWmqk7yUhfJwtaXIGcjZIk-Y/edit


Swift-3.0 Branch Errors

Screenshot Attached

PATCH should be lowercase as well as JSON.

Here is a screenshot of the remaining errors.

Resolved them by updating it to this.
    public class func PUT(_ URL: String, JSON: NSDictionary? = nil) -> URLDataPromise {
        return start(try OMGHTTPURLRQ.put(URL, json: JSON) as URLRequest)
    }

    public class func PATCH(URL: String, JSON: NSDictionary) -> URLDataPromise {
        return start(try OMGHTTPURLRQ.patch(URL, json: JSON) as URLRequest)
    }

@Gerst20051 I am still unable to import PromiseKit to my project, how did you do it?

I am using CocoaPods.
pod 'PromiseKit', :git => 'https://github.com/mxcl/PromiseKit.git', :branch => 'swift-3.0'

Just pushed. Should be fixed, let me know if not.

@mxcl I switched over to cocoapods: /Users/Si/Library/Developer/Xcode/DerivedData/Toast-gezugqvyoyexybguzmdcmqmarefs/Build/Products/Debug-iphonesimulator/Toast.app/Frameworks/OMGHTTPURLRQ.framework: No such file or directory

But I get that error @mxcl

Cocoapods will automatically install OMGHTTPURLRQ since it is a dependency of PromiseKit, so you're doing something wrong with CocoaPods. What commands did you run?

@mxcl I ran pod install


How to use voltaML on colab?

Hi,
I tried running voltaML on Google Colab, and I faced the ModuleNotFoundError:

Also, what is the Installation guide to try voltaML on CPU device.
Thank you!

Unable to run the module


Improve documentation on Capsule Proxy

This issue tracks the need to add details about how to use Capsule Proxy, specifically a user guide.
The guide could add details about how to communicate over the proxy, instead of directly to the API server.
As a proposal, a specific how-to guide could be added.

hey @maxgio92, I can work on this, can you provide the resources from where the current users taking references for the "HOW TO" part so I can document it in a how-to guide as you mentioned.

Great @wasup-yash, thank you!

Great @wasup-yash, thank you! You can refer to docs/content/general/proxy.md for the Capsule Proxy general documentation. Let me know if I can help you further :)

Thanks for the reference, I am currently understanding the Capsule-proxy landscape on how it fit into the picture for the new users and then we can work on the introductory guide for it, regarding this I have a question like we need to add the guide like apart from the current documented Capsule-proxy docs right? and also I have some suggestions like we can improve the current documentation of the Capsule proxy to get it more organized so we can work on it first and then we can create a guide, thoughts?

Hey @wasup-yash, I don't have strong opinions. I think the current guide could be taken as starting point to be improved.
For example answering questions like:

use cases for which is needed
further value it can provide, besides Capsule
Then, the installation I think can be expanded.

All of this could be part of a dedicated section I think, more than a single page - like now.
In any case I think it makes sense your suggestion, to starting improving the organization of the current single-page one.
What do you think?

Hey @wasup-yash, I don't have strong opinions. I think the current guide could be taken as starting point to be improved. For example, answering questions like:

use cases for which is needed
further value it can provide, besides Capsule, even when not required for the use case.

Then, the installation I think can be expanded.
Going further, all of this could be part of a dedicated section I think, more than a single page - like now.
In any case, I think it makes sense your suggestion, to start improving the organization of the current single-page one. What do you think?

yeah, it makes sense to improve the current docs part and then go on with the further use case guides and have dedicated sections if needed (if we need them) as I also discussed in the meeting today with @prometherion .


Updated logo

Updated logo
Lockfile has also updated - bumping various packages patch releases.
I've kept the old logo in the folder under logo.old.svg, but I'm happy to remove it if required.

PR Checklist
PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] infrastructure changes
[ ] Other... Please describe:

What is the current behavior?
Currently, the start docs display the solidjs logo, rather than the new start logo.
What is the new behavior?
The new start logo is displayed on the docs
Other information
Before:

After:

Thank you


get_conversion_cone() function missing

Hi!
Thanks a lot for this amazing work of yours!
I was wondering whether there's a mistake with your readme for the python library case.
You mention that "The most crucial method is ecmtool.conversion_cone:get_conversion_cone(), which returns the ECMs of a given stoichiometric matrix."
from ecmtool.conversion_cone import get_conversion_cone
but I could not find a get_conversion_cone() at all.
Am I missing something?
Thanks a lot again!

Hi @hariszaf,
That's a very good point. We inadvertently took this function out when we did a major update that made ecmtool more modular. This really benefits its speed and scaling on large models, but makes running it on small models a bit less transparent.
I'm currently restoring a version of get_conversion_cone, and will then update the readme.
Thanks for your help in pointing this out. We will get back to you.
Best!

Hi @dhdegroot
Thank you very much for your prompt reply, the amazing tool and the thorough explanation of its concepts!
Looking forward to it and please let me know if you think I could also be of help.

Hi @hariszaf,
I just pushed an update in which I restored a get_conversion_cone()-function. This should work similarly to the old version, so I don't think I need to update the readme. Let me know if something is still non-functioning.
For your purposes, however, it's probably best to follow the workflow in main.py if you want to change the workings of ecmtool, since that has more of the options available than just using get_conversion_cone. You can always send us an email if you don't understand one of the steps in this main.py.

Hi @dhdegroot,
thanks a lot for the guidance!
Most likely I ll bother you again for the interpretation of the results. :sweat_smile:


Add filtering by hardware (SoC/CPU)

We should add an ability to show all results from devices with a certain SoC/CPU.
It's a firebase limitation that you can't search for several values at once.
We can (and probably will) encounter issues with SoC naming consistency.

Depends on:

https://github.com/mlcommons/mobile_app_open/issues/508

Parent issue:

https://github.com/mlcommons/mobile_app_open/issues/490

Closing this in favor of https://github.com/mlcommons/mobile_app_open/issues/641


fix network inteface variable types

Bugfix GCP terraform module variables - network interfaces

@anuragsharma-123 Please have a look :)


Issue with relation If field is not null the input is required in mutation

Hey!
I have a model Client that has a many to one relation with Tenant, here there is the model and the generated input for the createClient mutation:
As tenantId and Tenant cannot be null the generated input ClientCreateInput makes both fields required
model Client {
  id       String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid
  tenantId String @default(dbgenerated("uuid_generate_v4()")) @db.Uuid <--- both fields cannot be null
  Tenant   Tenant @relation(fields: [tenantId], references: [id])      <---
  User     User[]
}

input ClientCreateInput {
    tenantId: String!                         <--- both fields are required
    Tenant: ClientTenantCreateRelationsInput! <--- passing both in a mutation to create a
    User: ClientUserCreateRelationsInput           Client leads to an exception
}

So if I only pass one I get this error

And if I try passing both I get a timeout exertion and a hidden error message in Cloudwatch

My "solution" was to make the fields nullable with the ? mark
model Client {
  id       String @id  @default(dbgenerated("uuid_generate_v4()")) @db.Uuid
  tenantId String? @default(dbgenerated("uuid_generate_v4()")) @db.Uuid <--- both fields are nullable
  Tenant   Tenant? @relation(fields: [tenantId], references: [id])      <---
  User     User[]
}

that way the input for those fields are optional
input ClientCreateInput {
    tenantId: String                         <--- both fields are optional to pass in the mutation
    Tenant: ClientTenantCreateRelationsInput <--- just providing one is enough
    User: ClientUserCreateRelationsInput
}

And if I provide only the Tenant I am able to create the Client and connect with a Tenant

same if I provide the tenantId

making the field nullable in the model to make the input optional is not what I want, I would prefer a directive that let me set the field as not null and in the same time the input for the create mutation to be optional

Thanks for reporting @maximilianorom77 - this should be fixed in the next release.


there is no USB debugging (Security settings) on my phone (oppo f11 pro)

[x] I have checked that a similar feature request does not already exist.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

hello can someone help me

Have you enabled developer mode? Your message is not clear as to what you have tried. I have an Oppo Find x5 Pro and you need to enable Developer mode first.
Then go to Developer mode and find it.


calculate  vorticity using diff_2d_vector in LLC90 grid

When I try to calculate the vorticity of velocity of ECCOv4 (LLC90 data) using the following python codes:
zeta0=grid_llc.diff_2d_vector({'X': (data_uv.VVELMASS * data_uv.dyC), 'Y': (data_uv.UVELMASS * data_uv.dxC)},boundary='fill')
zeta2 = (zeta0['X'] -zeta0['Y']) / (data_uv.rA)
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
Cell In[18], line 1
----> 1 zeta0=grid_llc.diff_2d_vector({'X': (data_uv.VVELMASS * data_uv.dyC), \
      2                                'Y': (data_uv.UVELMASS * data_uv.dxC)},\
      3                               boundary='fill')
File /g/data/hh5/public/apps/miniconda3/envs/analysis3-23.01/lib/python3.9/site-packages/xgcm/grid.py:2422, in Grid.diff_2d_vector(self, vector, **kwargs)
   2403 def diff_2d_vector(self, vector, **kwargs):
   2404     """
   2405     Difference a 2D vector to the intermediate grid point. This method is
   2406     only necessary for complex grid topologies.
   (...)
  2420         are differenced vector components along each axis
   2421     """
-> 2422     return self._apply_vector_function(self.diff, vector, **kwargs)

File /g/data/hh5/public/apps/miniconda3/envs/analysis3-23.01/lib/python3.9/site-packages/xgcm/grid.py:2378, in Grid._apply_vector_function(self, function, vector, **kwargs)
   2376     position, coord = axis._get_position_name(component)
   2377     if position == "center":
-> 2378         raise NotImplementedError(
   2379             "Only vector interpolation to cell "
  2380             "center is implemented, but vector "
   2381             "%s component is defined at center "
   2382             "(dims: %r)" % (axis_name, component.dims)
   2383         )
   2385 x_axis_name, y_axis_name = list(vector)
   2387 # apply for each component

NotImplementedError: Only vector interpolation to cell center is implemented, but vector X component is defined at center (dims: ('k', 'face', 'j_g', 'i'))
Any help will be appreciated.
Thanks you.

The test data can be down load from here

@ruhuihuang
I think you need to multiply the uvelmass, vvelmass by the grid cell edge lengths, dyG and dxG, not the grid cell center distances, dxC, dyC.
'''zeta0=grid_llc.diff_2d_vector({'X': (data_uv.VVELMASS * data_uv.dyC), 'Y': (data_uv.UVELMASS * data_uv.dxC)},boundary='fill')
zeta2 = (zeta0['X'] -zeta0['Y']) / (data_uv.rA)

@ruhuihuang
I think you need to multiply the uvelmass, vvelmass by the grid cell edge lengths, dyG and dxG, not the grid cell center distances, dxC, dyC.
'''zeta0=grid_llc.diff_2d_vector({'X': (data_uv.VVELMASS * data_uv.dyC), 'Y': (data_uv.UVELMASS * data_uv.dxC)},boundary='fill') zeta2 = (zeta0['X'] -zeta0['Y']) / (data_uv.rA)

Thank you, but not this case.


Add filters to '/schema' API endpoint

The call to the /schema API endpoint currently returns a list containing all the versions of the schemas that have been published to the ledger, regardless of whether they are still active or not.
It would be useful to have the possibility to only request a list of the latest versions of each schema, and in particular of each schema that is still active (where active means that it appears to be active in ToB).
Question: is there any other API call in ToB that would benefit from the same filtering?

@nrempel - is this addressed by API v3?  Can we close this?

Quick check by using curl -X GET "https://orgbook.gov.bc.ca/api/v3/schema" -H  "accept: application/json": it appears that currently only one version of each schema is being returned, however the sam can be said for the v2 APIs (see: curl -X GET "https://orgbook.gov.bc.ca/api/v2/schema" -H  "accept: application/json").
The reason for this is likely the relatively recent move to aries-vcr and aca-py based agents, and the fact we re-published schemas for the new instance (@WadeBarnes can confirm), so this issue appears to still be actual.

Confirmed, the API is returning all of the registered schemas.  Due to the recent moves and reloads we only have the one version of each of the schemas.
OrgBook=# select * from schema;
 id |       create_timestamp        |       update_timestamp        |                name                | version |       origin_did
----+-------------------------------+-------------------------------+------------------------------------+---------+------------------------
  4 | 2020-08-19 21:20:43.840861+00 | 2020-09-09 19:12:26.486246+00 | cannabis-retail-store-licence.lcrb | 1.0.23  | JNXZGR4Kfyakzi7Wu4Qics
  5 | 2020-08-19 21:20:43.901605+00 | 2020-09-09 19:12:26.518147+00 | cannabis-marketing-licence.lcrb    | 1.0.8   | JNXZGR4Kfyakzi7Wu4Qics
  1 | 2020-02-14 22:27:35.665876+00 | 2020-12-02 21:00:36.822941+00 | registration.registries.ca         | 1.0.42  | HR6vs6GEZ8rHaVgjg2WodM
  2 | 2020-02-14 22:27:35.716133+00 | 2020-12-02 21:00:36.846008+00 | relationship.registries.ca         | 1.0.42  | HR6vs6GEZ8rHaVgjg2WodM
  3 | 2020-02-14 22:27:35.734619+00 | 2020-12-02 21:00:36.860146+00 | address.registries.ca              | 1.0.42  | HR6vs6GEZ8rHaVgjg2WodM
  7 | 2020-09-18 20:55:52.739985+00 | 2020-12-02 21:00:36.872083+00 | business_number.registries.ca      | 1.0.42  | HR6vs6GEZ8rHaVgjg2WodM


Update CoreCLR.issues.targets

The AboveStackLimit test was enabled with #2467, but it's still having
issues (non-trivial marshalling this time).

We have 5 more tests failing in the rolling build. Those likely regressed yesterday because I'm pretty sure I saw a rolling build result where only this one test was failing. They seem GC/JIT update related. I'll look at them on Tuesday.


Feature widget - form validation

Feature widget - form validation
Restrict to select "Any" for project and team input fields at same time.

@tabladrum LGTM


Small fixes from NIP-198 investigation

failureReasons => failureReason   (no trailing s)
more verbose log output on error
checksums now case insensitive

LGTM


[WIP] Release 1.3.0

feat: complete proptypes #902
feat: code snippets #903

Codecov Report

Merging #906 (a6e403a) into master (2c3e7e4) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head a6e403a differs from pull request most recent head c335d13. Consider uploading reports for the commit c335d13 to get more accurate results

@@           Coverage Diff           @@
##           master     #906   +/-   ##
=======================================
  Coverage   57.14%   57.14%
=======================================
  Files           1        1
  Lines          70       70
  Branches       15       15
=======================================
  Hits           40       40
  Misses         30       30

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 2c3e7e4...c335d13. Read the comment docs.


Missing fields in the API documentation

Certain required arguments are not specified in the current SDK API documentation. For example, wallet_send and account_send do not display an amount field, although it would be required. There are many other cases where some arguments could be missing, although I couldn't tell precisely all the cases. This appears to stem from a bug in scripts/generate_json_api.py.

https://github.com/lbryio/lbry-sdk/blob/ba60aeeebc1cf8e91d4127345e95091907c96d7b/scripts/generate_json_api.py#L466
Looks like the "Usage:" section of the docstring determines whether "is_required" will be true. But the argument also needs to be in the "Options:" section to be detected and emitted into docs/api.json.
https://github.com/lbryio/lbry-sdk/blob/ba60aeeebc1cf8e91d4127345e95091907c96d7b/lbry/extras/daemon/daemon.py#L1924
jsonrpc_account_send and jsonrpc_wallet_send don't have "--amount" and "--addresses" in the "Usage:" sections.


freeradius: init at 3.0.11

Things done:

[ ] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
[ ] Built on platform(s): NixOS / OSX / Linux
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Please note, that points are not mandatory, but rather desired.
Initial package has been created. However, the configuration system is very modular (sites-enabled, sites-available, modules-enabled, etc) so the service configuration seems non-trivial. Would like some input. Have an initial service configuration here: https://gist.github.com/sheenobu/4d8b29895b7a419a4ec5

Awesome! Thank you.


MORE Fuzz

@LarsVoelker with  #13 and this PR, are we fuzzing enough?

coverage is pretty good considering that we do not use all parts of the lib.


Adding LIP5 as a proposal for address and intent serialization formats

LIP no. 5 details a proposal for serialization formats for Libra account identifiers and intent identifiers

@kphfb Are you good with this now?


fix: page path and link refs in starter app

Closes CLM-9205

@ljiang-ti Looks like it wasn't detailed in the ticket, but as we're updating links from /sign_in to /learn/sign_in, we'll want to move the actual signin directory under /learn as well I believe.

@ljiang-ti Looks like it wasn't detailed in the ticket, but as we're updating links from /sign_in to /learn/sign_in, we'll want to move the actual signin directory under /learn as well I believe.

thanks @rjschill87 for the notes! Core platform has the /learn/sign_in route, by updating the sign in page in helium app, is it intended to override the one in core platform?

@rjschill87 - updated the sign in page path as discussed.
also noted that during local verifications, the learner access widget is not rendering any contents for a learner. It turns out that the component LoadUserLearning prop kind needs some fixes (might be caused by last refactoring).


Cross compile on aarch64 from MacOS/darwin to aarch64-unknown-linux-musl is failing with undefined symbol: readdir64

When building with the newly release cargo-zigbuild version 0.17.2, the build fails with the following errors. From a quick inspection it looks to be related to https://github.com/rust-cross/cargo-zigbuild/pull/172 (though it is just a guess). Reverting back to cargo-zigbuild 0.17.1 resolves the issue.
The error that I get when cross compiling from MacOS M1 to aarch64-unknown-linux-musl is:
error: linking with `/Users/reubenmiller/Library/Caches/cargo-zigbuild/0.17.2/zigcc-aarch64-unknown-linux-musl.sh` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin/self-contained:/Users/reubenmiller/dev/projects/tedge/tmp/thin-edge.io/tests/RobotFramework/.venv/bin:/Users/reubenmiller/.nvm/versions/node/v16.20.0/bin:/Users/reubenmiller/homebrew/opt/gnu-tar/libexec/gnubin:/Users/reubenmiller/go/bin:/Users/reubenmiller/.gem/ruby/2.6.0/bin:/Users/reubenmiller/.local/bin:/Users/reubenmiller/homebrew/bin:/Users/reubenmiller/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/reubenmiller/.nvm/versions/node/v16.20.0/bin:/Users/reubenmiller/homebrew/opt/gnu-tar/libexec/gnubin:/Users/reubenmiller/go/bin:/Users/reubenmiller/.gem/ruby/2.6.0/bin:/Users/reubenmiller/.local/bin:/Users/reubenmiller/homebrew/bin:/Users/reubenmiller/homebrew/sbin:/Users/reubenmiller/.cargo/bin" VSLANG="1033" "/Users/reubenmiller/Library/Caches/cargo-zigbuild/0.17.2/zigcc-aarch64-unknown-linux-musl.sh" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/var/folders/wn/06nj6dqj07db9tbsh_094wnr0000gn/T/rustckaNAp4/symbols.o" "/Users/reubenmiller/dev/projects/tedge/tmp/thin-edge.io/target/aarch64-unknown-linux-musl/release/deps/sawtooth_publisher-8617a97078f8b92f.sawtooth_publisher.9260d1d0-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/Users/reubenmiller/dev/projects/tedge/tmp/thin-edge.io/target/aarch64-unknown-linux-musl/release/deps" "-L" "/Users/reubenmiller/dev/projects/tedge/tmp/thin-edge.io/target/release/deps" "-L" "/Users/reubenmiller/dev/projects/tedge/tmp/thin-edge.io/target/aarch64-unknown-linux-musl/release/build/ring-0931aa783d916770/out" "-L" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/var/folders/wn/06nj6dqj07db9tbsh_094wnr0000gn/T/rustckaNAp4/libring-751c867e148decbc.rlib" "-lunwind" "-lc" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-a546a2beee625b76.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/Users/reubenmiller/dev/projects/tedge/tmp/thin-edge.io/target/aarch64-unknown-linux-musl/release/deps/sawtooth_publisher-8617a97078f8b92f" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-all" "-nodefaultlibs" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/Users/reubenmiller/.rustup/toolchains/1.70-aarch64-apple-darwin/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o"
  = note: ld.lld: error: undefined symbol: readdir64
          >>> referenced by sawtooth_publisher.9260d1d0-cgu.0
          >>>               /Users/reubenmiller/dev/projects/tedge/tmp/thin-edge.io/target/aarch64-unknown-linux-musl/release/deps/sawtooth_publisher-8617a97078f8b92f.sawtooth_publisher.9260d1d0-cgu.0.rcgu.o:(OUTLINED_FUNCTION_5589)

Version information
$ rustc --version
rustc 1.70.0 (90c541806 2023-05-31

$ cargo --version
cargo 1.70.0 (ec8a8a0ca 2023-04-25)

$ python3 -m ziglang version
0.11.0

$ cargo-zigbuild --version
cargo-zigbuild 0.17.1

cc @haohaolee Looks like the weak symbol list isn't complete?

@reubenmiller IMO it should be easy to fix by adding more LFS64 functions to https://github.com/rust-cross/cargo-zigbuild/blob/846edea5911c82ebe1d2279854ae60b4f9268a1c/src/linux/mod.rs#L22-L27
Happy to accept a PR to do that.

I can confirm that the build experienced will be fixed once https://github.com/rust-cross/cargo-zigbuild/pull/180 is merged.

I wanted to be conservative so I tried to modify as few symbols as possible in https://github.com/rust-cross/cargo-zigbuild/pull/172, I am afraid that too many adds lead to other issues.
Hi @reubenmiller does your project rely on libc crate? as far as I know, some symbols like readdir64 are referenced in libc crate, and the latest libc crate already fixed this issue.
Please let me know if this is the case, thanks

I have managed to figure out this, I did miss some symbols in my PR https://github.com/rust-cross/cargo-zigbuild/pull/172:
nm ~/.rustup/toolchains/1.71.1-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-493936ddc336b3cf.rlib | grep "64$"
nm: lib.rmeta: no symbols
                 U fstat64
                 U fstatat64
                 U ftruncate64
  ......

And for 1.72.0, aka stable:
nm ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-aa8203b3ba116fbe.rlib | grep "64$"
nm: lib.rmeta: no symbols
0000000000000000 r GCC_except_table164
   ......

It would be better to have a test for this regression.

I wanted to be conservative so I tried to modify as few symbols as possible in #172, I was afraid that too many adds lead to other issues.
Hi @reubenmiller does your project rely on libc crate? as far as I know, some symbols like readdir64 are referenced in libc crate, and the latest libc crate has already fixed this issue.
Please let me know if this is the case, thanks

No we don't use anything from the libc crate, we use musl builds for portability reasons.

@reubenmiller No worries. Ignore me, I was asking a wrong question. I have checked your build and I think I have a better understanding now, this issue has nothing to do with the libc crate.
In short, you need to satisfy those undefined symbols in std, e.g. U readdir64
ps: musl is a kinda libc, and your project does depend on libc crate if you check the Cargo.lock


Option for military (24 hour) time

Option to switch to military (24 hour) time.

This is a duplicate of #33


java HTTP proxy properties being disabled

When creating a ZTSClient without specifying a proxyUrl, the proxy setting becomes null when generating the HTTP client. As a result, the Java HTTP Proxy properties, http.proxyHost and http.proxyPort, appear to be disabled.
https://github.com/AthenZ/athenz/blob/3ec7ef3ffeba089f0c4b4e83aee1c1c5f44aad25/clients/java/zts/src/main/java/com/yahoo/athenz/zts/ZTSClient.java#L690-L700
Is there a specific design intention or background for this behavior? I am particularly interested in understanding the reason for disabling the Java HTTP Proxy properties.

Additionally, it seems that proxyUrl is designed to be set alongside sslContext. However, why can't proxyUrl be set in other constructors?
https://github.com/AthenZ/athenz/blob/3ec7ef3ffeba089f0c4b4e83aee1c1c5f44aad25/clients/java/zts/src/main/java/com/yahoo/athenz/zts/ZTSClient.java#L455
https://github.com/AthenZ/athenz/blob/3ec7ef3ffeba089f0c4b4e83aee1c1c5f44aad25/clients/java/zts/src/main/java/com/yahoo/athenz/zts/ZTSClient.java#L1570-L1571

I apologize for the oversight. I mistakenly believed that HttpClients would automatically read Java's system properties. I will close this issue.


Fix broken file link

Will someone be merging / releasing this PR?

You also need to change the loaders to <loadername>-loader. See webpack v1-v2 migration guide.

@jperasmus if you'd like to update this PR then I'll merge it. Or if #25 is updated first I'll merge that as they're duplicate commits.

Cool, I can make the update @wolfadex

@wolfadex Should be good to go now.


New Tag [Enhancement]

New Tags For New wallpapers when we go inside a category.

This is no need, why? Left tab is "latest" new wallpapers will be placed there


Python MyPy requires --fast-parser flag for async/await support

I had to add the following to my .vimrc file to get async/await syntax support working...
let g:neomake_python_mypy_args = neomake#makers#ft#python#mypy()['args'] + ['--fast-parser']

It wasn't immediately obvious when I went sifting through the Neomake python maker code, until I stumbled across a blog post that mentions the need for the --fast-parser flag.
I believe enough people use async/await syntax that we either add this flag by default or - as per this PR (as it's experimental support) - we at least make mention of it somewhere.

I think we should just add the option by default then.
It is even recommended, except for Windows, so it should be done for non-Windows only then?!

--fast-parser             enable fast parser (recommended except on Windows)

@blueyed also in recent MyPy version you'll see the deprecation warning:
--silent-imports has been replaced by --ignore-missing-imports --follow-imports=skip

@Integralist
Ok, then I'd say to update this PR adopting those options, too.
Do you agree?

Please update this PR then accordingly.

@blueyed not really written VimL before so you'll have to excuse the code if it's not how it should be

Pushed a fixup: https://github.com/neomake/neomake/pull/938/commits/4bbf20e8000f7ec4a01d5b8b9797f51aa4462143.
I'll squash it when it's green.

Great stuff, thanks :+1:

@Integralist
Thank you!


UWP MediaPlayer fails to play Apple HLS example stream

Describe the bug
Apple has a bunch of HLS example streams listed here: https://developer.apple.com/streaming/examples/. The actual m3u8 URLs can be found through HTML inspection of the video element on each example page.
The second example, "Advanced stream - H.264/HEVC/UHD/Dolby Vision/Dolby Digital/Dolby Atmos", is available via https://devstreaming-cdn.apple.com/videos/streaming/examples/adv_dv_atmos/main.m3u8.
Attempting to play this with UWP MediaPlayerElement succeeds for a few seconds, but eventually fails with a decoding error.
Steps to reproduce the bug

Create a C# UWP app with a XAML page containing a MediaPlayerElement
Programmatically load the URL into the player:

var uri = "https://devstreaming-cdn.apple.com/videos/streaming/examples/adv_dv_atmos/main.m3u8";
var adaptiveSource = await AdaptiveMediaSource.CreateFromUriAsync(new Uri(uri));
var source = MediaSource.CreateFromAdaptiveMediaSource(adaptiveSource.MediaSource);
var item = new MediaPlaybackItem(source);
MPElement.Source = item;

Expected behavior
Media successfully plays to the end
Screenshots
No response
NuGet package version
None
Packaging type
No response
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
The decoding error occurs regardless of whether the HEVC codec package from the MS Store is installed or not.
Using the MediaPlaylistItem.*TracksChanged events to list what tracks are available shows only 1 H264 track and 2 AAC audio tracks (despite the HLS manifest listing many additional variations).
Forcing MediaPlaylistItem to use audio track 2 (AudioTracks.SelectedIndex = 1) at startup causes playback to use the audio description track. Playback is able to continue to the end without a decoding error, but the video display gets stuck on a frame while the audio continues playing.

Might be related to:
https://github.com/microsoft/WindowsAppSDK/issues/3305#issuecomment-1831074802
Is the error raised in the same event handler?

In my case the error is also raised through MediaFailed, but the ExtendedErrorCode is 0x80004005 E_FAIL with the message "Error HRESULT E_FAIL has been returned from a call to a COM component."

Dup of #3305


[MixItUp MultiFilter] Multiple data-attributes for data-search-attribute or override search functionality

My container elements use multiple data-attributes as opposed to classes. Unfortunately, I wasn't able to set the text input data-search-attribute to look into multiple data-attributes. Is that possible?
Also, there's quite a few examples of MixItUp 2's search functionality where people specified the conditions for filtering (i.e. looking into titles or other attributes that are not otherwise used in the general filters). Ideally, I'd like to be able to have my search query be run on all specified data-attributes and also on text with the class 'title'.
Could you point me in the right direction? Is there an override mechanism that I could use to provide custom search functionality (I'd like to avoid using APIs and datasets if possible).

Yes, you can bind any arbritary JavaScript code to a text input to produce an array of matching elements, which you can then send to the .filter() method.
Here's an example from the docs, which searches through all target elements and filters out anything that has a "price" attribute with a value less than or equal to 10.
You could attach this code to the 'keyup' event of a text input, and search through any arbitrary attribute of each target element.
var collection = Array.from(container.querySelectorAll('.mix'));

console.log(collection.length); // 34

// Filter the collection manually using Array.prototype.filter

var filtered = collection.filter(function(target) {
   return parseInt(target.getAttribute('data-price')) > 10;
});

console.log(filtered.length); // 22

// Pass the filtered collection to MixItUp

mixer.filter(filtered)
   .then(function(state) {
       console.log(state.activeFilter.collection.length === 22); // true
   });

Thanks for that but is there really no way to manually filter the output o MultiFilter UI? The plugin is a great time-saver but the inability to modify anything after the filters are set seems very limiting

Yeah - I can understand what you're saying. The ability to apply additional custom JavaScript "filters" to results more easily is something I'm considering adding.
There is actually a way to do this currently that I might have overlooked in my previous response, but it's not fully documented and (obviously) requires some custom JavaScript. It uses the onParseFilterGroups callback, which allows you to arbitrarily transform the mixitup "command" object produced by MultiFilter, before it is sent to the mixer.
var mixer = mixitup(containerEl, {
    callbacks: {
        onParseFilterGroups: function(command) {
            // Command is an object containing instructions about the operation.
            // In this case `command.filter.selector` contains the compound
            // selector string generated by multifilter:

            console.log(command.filter.selector); // e.g: '.green.large, '.blue.large'

            // At this point however, we don't want to filter by selector, we want to
            // filter by a reduced element collection.

            var fullCollection = Array.from(containerEl.querySelectorAll(command.filter.selector));

            // Reduce the collection further to contain only by price (for example)

            var reducedCollection = fullCollection.filter(function(target) {
                return parseInt(target.getAttribute('data-price')) > 10;
            });

            // Finally, replace the command object to perform a collection-based filter:

            var newCommand = {
                filter: new mixitup.CommandFilter()
            };

            newCommand.filter.collection = reducedCollection;

            return newCommand;
        }
    }
});

Have tried to comment fully, so I hope that all makes sense.

Could this be used to conditionally add a filter?  Say, if I always want ".maroon" to be programmatically added when the current filters are ".unitA" and ".red"


svix-server: 1.30.0 -> 1.38.0

https://github.com/svix/svix-webhooks/releases/tag/v1.38.0
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


Linking zoom between dynamically generated plots

Hi,
I am making a dashboard where I want to visualize a large timeseries dataset. Currently the user can upload a datafile and plots are generated sorted by physical quantity (e.g. plot all temperatures together, plot all pressures together). This works perfectly with the resampler!
Now I want to add the functionality where the x-axis of all plots zoom when the user zooms in one of the plots. I created the following (non-)working example
from uuid import uuid4

from dash import dcc, ctx, ALL, MATCH, no_update
from dash import html
from dash_extensions.enrich import Dash, ServersideOutput, Output, Input, State, Trigger, DashProxy, TriggerTransform, ServersideOutputTransform, MultiplexerTransform

import pandas as pd
import numpy as np

import plotly.io as pio
import plotly.graph_objects as go

from plotly_resampler import FigureResampler
from trace_updater import TraceUpdater

pio.renderers.default='browser'
pd.options.plotting.backend = "plotly"

external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = Dash(__name__,external_stylesheets=external_stylesheets)\

app = DashProxy(
    __name__,
    suppress_callback_exceptions=True,
    external_stylesheets=external_stylesheets,
    transforms=[ServersideOutputTransform(), TriggerTransform() ,MultiplexerTransform()],
)
app.layout = html.Div([
    html.Button("plot", id="btn-plot"),
    dcc.Store(id="store-temp"),
    html.Div(id='graph-container'),
    ])

@app.callback(

    ServersideOutput("store-temp", "data"),
    Input("btn-plot", "n_clicks"),
    )
def store_data(click):
    print('store data')
    n=10000
    x = np.arange(n)
    df=pd.DataFrame()
    y1 = (np.sin(x / 200) * 1 + np.random.randn(n) / 10 * 1 )
    y2 = (np.sin(x / 100) * 1 + np.random.randn(n) / 20 * 1 )
    df['y1']=y1
    df['y2']=y2
    return df

@app.callback(
    Output("graph-container", "children"),
    State("graph-container", "children"),
    Input("store-temp", "data"),
    prevent_initial_call=True
    )
def create_graphs(gc_children,df):
    print('creating graphs')
    gc_children = [] if gc_children is None else gc_children

    uid = str(uuid4())
    diff_container = html.Div(
        children=[
            # The graph and its needed components to serialize and update efficiently
            # Note: we also add a dcc.Store component, which will be used to link the
            #       server side cached FigureResampler object
            dcc.Graph(id={"type": "dynamic-graph", "index": uid}, figure=go.Figure()),
            dcc.Store(id={"type": "store", "index": uid}),
            dcc.Store(id={"type": "store-columns", "index": uid},data=['y1','y2']),
            TraceUpdater(id={"type": "dynamic-updater", "index": uid}, gdID=f"{uid}"),
            # This dcc.Interval components makes sure that the `construct_display_graph`
            # callback is fired once after these components are added to the session
            # its front-end
            dcc.Interval(
                id={"type": "interval", "index": uid}, max_intervals=1, interval=1
            ),
        ],
    )
    gc_children.append(diff_container)

    uid = str(uuid4())
    diff_container = html.Div(
        children=[
            dcc.Graph(id={"type": "dynamic-graph", "index": uid}, figure=go.Figure()),
            dcc.Store(id={"type": "store", "index": uid}),
            dcc.Store(id={"type": "store-columns", "index": uid},data=['y2', 'y1']),
            TraceUpdater(id={"type": "dynamic-updater", "index": uid}, gdID=f"{uid}"),
            dcc.Interval(
                id={"type": "interval", "index": uid}, max_intervals=1, interval=1
            ),
        ],
    )
    gc_children.append(diff_container)

    print('store data cb finish')
    return gc_children

@app.callback(
    ServersideOutput({"type": "store", "index": MATCH}, "data"),
    Output({"type": "dynamic-graph", "index": MATCH}, "figure"),
    State("store-temp", "data"),
    State({"type": "store-columns", "index": MATCH}, "data"),
    Trigger({"type": "interval", "index": MATCH}, "n_intervals"),
    prevent_initial_call=True,
)
def construct_display_graph(df,columns) -> FigureResampler:
    df2=df[columns]
    fr = FigureResampler(go.Figure(), verbose=True)
    for col in df2.columns:
        fr.add_trace(go.Scattergl(name=col, mode='lines'),hf_y=df2[col],hf_x=df2.index)
    fr.update_traces(connectgaps=True)
    return fr, fr

# @app.callback(
#     Output({"type": "dynamic-updater", "index": MATCH}, "updateData"),
#     Input({"type": "dynamic-graph", "index": MATCH}, "relayoutData"),
#     State({"type": "store", "index": MATCH}, "data"),
#     prevent_initial_call=True,
#     memoize=True,
# )
# def update_fig(relayoutdata: dict, fig: FigureResampler):
#     print(fig)
#     if fig is not None:
#         return fig.construct_update_data(relayoutdata)
#     return no_update

@app.callback(
    Output({"type": "dynamic-updater", "index": ALL}, "updateData"),
    Input({"type": "dynamic-graph", "index": ALL}, "relayoutData"),
    State({"type": "dynamic-graph", "index": ALL}, "id"),
    State({"type": "store", "index": ALL}, "data"),
    prevent_initial_call=True,
    memoize=True,
)
def update_fig(relayoutdata: list[dict],ids: list[dict], figs: list[FigureResampler]):
    figure_updated = ctx.triggered_id # get the id of the figure that triggered the callback
    triggered_index=ids.index(figure_updated) # get the index of the figure in the Input/Output lists of the callback
    # print(figure_updated)
    # print(relayoutdata)
    print(ids)
    # print('index : '+ str(triggered_index))
    zoomdata=dict(relayoutdata[triggered_index]) # get the relayoutdata of the figure that triggered the callback

    new_relayoutdata = []
    for i, data in enumerate(relayoutdata): # loop over current relayoutdata
        if i == triggered_index:
            new_relayoutdata.append(zoomdata) # keep relayoutdata of figure that triggered callback
        else:
            if 'xaxis.range[0]' in zoomdata:
                data = dict(relayoutdata[i])
                data['xaxis.range[0]'] = zoomdata ['xaxis.range[0]']
                data['xaxis.range[1]'] = zoomdata ['xaxis.range[1]']
                data['xaxis.autorange'] = False
                new_relayoutdata.append(data)
            else:
                new_relayoutdata.append(zoomdata)
    print(zoomdata)
    updatedata = []
    print(figs)
    for i,fig in enumerate(figs):
        if fig is None:
            return [no_update, no_update]
        else:
            updatedata.append(fig.construct_update_data(new_relayoutdata[i]))
    return updatedata

if __name__ == '__main__':
    app.run_server(debug=True, port=9023)

Like in the 11_sine_generator.py example plots are generated with a unique id. In the update_fig() callback I want to update all graphs if one of them updates. In the example (commented out in my code) MATCH is used. To get all FigureResampler object I replaced it with ALL.  However, State({"type": "store", "index": ALL}, "data") produces a list with hashes(?) like ['b4de3743d91d23d6b85d2bcdd11cb531', '7d9efd7bb10eafd6cfcffe27b9ec566c']where State({"type": "store-columns", "index": MATCH}, "data") gives me the single FigureResampler object. With ALL I would expect a list of FigureResampler objects.
What am I missing here, how can I obtain the FigureResampler objects so I can modify them with construct_update_data()?

Hi @Wout-S, very glad you like the functionality of plolty-resampler! 😄
Regarding your use-case:

I want to add the functionality where the x-axis of all plots zoom when the user zooms in one of the plots.

If I understand you correctly, you want to have shared x-axes over your multiple figure objects?
This shared_axis functionality can be perfectly achieved via the make_subplots method from plotly.subplots 📝 docs. See code snippet below ⬇
from plotly.subplots import make_subplots

# A figure object which has 3 rows
fig = FigureResampler(make_subplots(
     rows=3,
     shared_xaxes=True
   )
)
...

So my question to you is, why would you not create multiple subplots within one figure object? Do users have the option to select a modality after an initial plot was made?
(fyi: take a look at the coarse-fine example, here the layout of two figures are linked.

Hi @jonasvdd,
Thanks for the fast reply!
I think the subplots withe shared_xaxes is indeed what I want, thanks!. I modified the example and this seems to work:
@app.callback(
    Output("graph-container", "children"),
    State("graph-container", "children"),
    Input("store-temp", "data"),
    prevent_initial_call=True
    )
def create_graphs(gc_children,df):
    print('creating graphs')
    gc_children = [] if gc_children is None else gc_children

    uid = str(uuid4())
    diff_container = html.Div(
        children=[
            # The graph and its needed components to serialize and update efficiently
            # Note: we also add a dcc.Store component, which will be used to link the
            #       server side cached FigureResampler object
            dcc.Graph(id={"type": "dynamic-graph", "index": uid}, figure=go.Figure()),
            dcc.Store(id={"type": "store", "index": uid}),
            dcc.Store(id={"type": "store-columns", "index": uid},data=[['y1','y2'],['y1','y2']]),
            TraceUpdater(id={"type": "dynamic-updater", "index": uid}, gdID=f"{uid}"),
            # This dcc.Interval components makes sure that the `construct_display_graph`
            # callback is fired once after these components are added to the session
            # its front-end
            dcc.Interval(
                id={"type": "interval", "index": uid}, max_intervals=1, interval=1
            ),
        ],
    )
    gc_children.append(diff_container)

    print('store data cb finish')
    return gc_children

@app.callback(
    ServersideOutput({"type": "store", "index": MATCH}, "data"),
    Output({"type": "dynamic-graph", "index": MATCH}, "figure"),
    State("store-temp", "data"),
    State({"type": "store-columns", "index": MATCH}, "data"),
    Trigger({"type": "interval", "index": MATCH}, "n_intervals"),
    prevent_initial_call=True,
)
def construct_display_graph(df,columnslist) -> FigureResampler:
    # df2=df[columns]
    fr = FigureResampler(go.Figure(), verbose=True)
    fr = FigureResampler(make_subplots(
        rows=len(columnslist),
        shared_xaxes=True
       )
    )
    for i, columns in enumerate(columnslist):
        df2=df[columns]
        for col in df2.columns:
            fr.add_trace(go.Scattergl(name=col, mode='lines'),hf_y=df2[col],hf_x=df2.index, row=i+1, col=1 )
            fr.update_traces(connectgaps=True)
    return fr, fr

However, I might want to have te option to switch the shared x-axis, which is not possible anymore now. Is this the 'modality' you mean? (not familiar with the term)
Also out of curiosity I would still like to understand what goes wrong in my initial example; not obtaining the FigureResampler objects seem to be the only problem there. If this would work, more advanced relayout 'gymnastics' would also be possible.
The coarse-fine example is aslo more similar to my initial code (no coincedence), where relayout data of one plot is used to modify another. The main difference is the pattern matching, part that behaves unexpected in my opinion.

Hi @Wout-S,
I took a closer look at the example you provided, and the problem does not originate from plotly-resampler, but from the  compatibility between ServerSideOutputTransform and the ALL wildcard; see https://github.com/thedirtyfew/dash-extensions/issues/222.
In your case, a list of ID strings are outputted instead of a figure.
I think taking a closer look at how this ALL wildcard differs from the MATCH wildcard, might give you more answers.
I am really interested in the solution of this issue, so please keep me up to date!
Have a nice weekend!
Jonas


Title jumps

Title jumps will automatically go to the table of contents in the preview PDF（too slow and bad）, and we hope they can jump to the location of the title in the main text.

Yes, jump to TOC constantly during writing does not really make much sense.

Duplicate of #626


Bump flatpak base image

Upgrades the base Flatpak image to Gnome v45 (v44 is now deprecated).
The v45 base no longer contains libcrypto.so.0; as this library is only needed for the crypt library test, and that library has been removed in Python 3.13, validation of crypt has been removed from the stdlib test.
Fixes #76.
PR Checklist:

[x] All new features have been tested
[x] All new features have been documented
[x] I have read the CONTRIBUTING.md file
[x] I will abide by the code of conduct

Looks good.
While we're here...if youre interested, I noticed these as well:

Done.

And based on the use of pip flags in requires, definitely doesn't look like we can start erroring for that 🙃

Yeah - fixing beeware/briefcase#1270 would be a pre-requisite for turning on any errors like that.


MST using prims algorithm

@Ayush7614 please assign me this as a part of LGMSOC'21. I will try to write clean and concise code in c++.

Please assign this to me can I also work on this?

@ravikr126 @Ayush7614 Sir I have linked a PR with this issue Please merge this.

Please assign this to me.

@Ayush7614

@Ayush7614 assign this to me.

No PR is merged and issue is also open so plz assign this to me.

Interested!


HOTFIX: Bump version of grgit fro 4.1.0 to 4.1.1

grgit 4.1.0 caused the following error with gradle

Could not resolve all artifacts for configuration ':classpath'.
Could not resolve org.eclipse.jgit:org.eclipse.jgit:latest.release.
Required by:
project : > org.ajoberstar.grgit:grgit-core:4.1.0
...

making it impossible to build the branch.
grgit 4.1.1 fixes this issue.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Call for review: @ijuma @vvcephei

I opened this PR instead of cherry-picking https://github.com/apache/kafka/pull/11561 since the issue is a bit different on 2.8.

Thanks @dajac !


How is the COT performance? Have you tested on the benchmark like M3COT?

Thank you!

Thanks for your interests to our work. We haven not tested the performance of COT in depth, but we plan to conduct a comprehensive evaluation. Please stay tuned for updates.


Add unit tests for pkg/agent/proxy

Signed-off-by: Hongliang Liu<EMAIL_ADDRESS>

Codecov Report

Merging #88 (860209d) into main (8427b4a) will increase coverage by 23.39%.
The diff coverage is n/a.

Additional details and impacted files

@@             Coverage Diff             @@
##             main      #88       +/-   ##
===========================================
+ Coverage   34.61%   58.00%   +23.39%
===========================================
  Files         144      376      +232
  Lines       21800    54619    +32819
===========================================
+ Hits         7545    31683    +24138
- Misses      13602    20656     +7054
- Partials      653     2280     +1627

Flag
Coverage Δ

*Carryforward flag

integration-tests
34.61% <ø> (ø)

Carriedforward from 8427b4a

unit-tests
51.16% <ø> (?)

*This pull request uses carry forward flags. Click here to find out more.


This page is the second result for localhost:3000 on Google. what

fuvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv


include version 1.24 to test matrix

Add v1.24 to the test matrix so we can test against this version.

Codecov Report

Merging #168 (6824516) into main (2ba5314) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #168   +/-   ##
=======================================
  Coverage   69.48%   69.48%
=======================================
  Files          17       17
  Lines         934      934
=======================================
  Hits          649      649
  Misses        265      265
  Partials       20       20

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 2ba5314...6824516. Read the comment docs.

yay!


Button to quickly open currently active popup view in the separate tab

I figured out that I can simply open any URL related to the extension in the new tab and it will work as intended without any issues. I think it would be great to have some sort of a global button, which will open popup view and automatically go to the specific view with the Svelte router.
The main issue here is… I'm using Svelte with History API-based traversal. And if you will try to refresh any of the pages available in the popup, you will end up with an (kind of) 404 error. It's… not really comfortable, I think. I need to read the docs and maybe somehow redirect anything into main popup HTML page and redirect to whatever page with a Svelte Router.

Seems to be impossible without adding tabs as permission. And I'm not sure I want to add additional permission just for one single feature.


Release commit for v2.7.1

Issue #, if available:
Description of changes:

Release commit for v2.7.1

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #295 (f24e9cf) into master (bfe24c7) will decrease coverage by 0.60%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #295      +/-   ##
==========================================
- Coverage   79.83%   79.23%   -0.61%
==========================================
  Files          84       84
  Lines        3308     3226      -82
==========================================
- Hits         2641     2556      -85
- Misses        667      670       +3

Impacted Files
Coverage Δ

aws_xray_sdk/version.py
100.00% <100.00%> (ø)

aws_xray_sdk/core/async_context.py
84.74% <0.00%> (-6.78%)
:arrow_down:

aws_xray_sdk/core/sampling/connector.py
47.94% <0.00%> (-2.71%)
:arrow_down:

aws_xray_sdk/core/emitters/udp_emitter.py
61.11% <0.00%> (-2.05%)
:arrow_down:

aws_xray_sdk/core/sampling/reservoir.py
57.69% <0.00%> (-1.57%)
:arrow_down:

aws_xray_sdk/ext/sqlalchemy_core/patch.py
75.67% <0.00%> (-1.36%)
:arrow_down:

aws_xray_sdk/ext/dbapi2.py
79.54% <0.00%> (-1.31%)
:arrow_down:

aws_xray_sdk/core/sampling/sampling_rule.py
90.90% <0.00%> (-1.05%)
:arrow_down:

aws_xray_sdk/core/recorder.py
86.44% <0.00%> (-1.02%)
:arrow_down:

aws_xray_sdk/core/sampling/sampler.py
63.01% <0.00%> (-0.99%)
:arrow_down:

... and 15 more

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 bfe24c7...f24e9cf. Read the comment docs.


⚠ Bofrost.de has degraded performance

In 49927b1, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 730 ms

Resolved: Bofrost.de performance has improved in 42ab16b after 6 minutes.


hybridkem-x-wing: bump version to 0.5.0.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.55%. Comparing base (e55aada) to head (0db70d4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #469      +/-   ##
==========================================
+ Coverage   88.32%   88.55%   +0.22%
==========================================
  Files          60       60
  Lines        4359     4359
  Branches      477      478       +1
==========================================
+ Hits         3850     3860      +10
+ Misses        508      498      -10
  Partials        1        1

Flag
Coverage Δ

unittests
88.55% <ø> (+0.22%)
:arrow_up:

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

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


Envoy resource namespacing

Qualify cluster names that are not already qualified. This helps avoid
accidental resource name collision when multiple CiliumEnvoyConfigs are
defined.

/test

Dropped the secret original namespace commit from this PR as it was problematic. Will reintroduce it after this has merged.

/test

/test-1.26-net-next

/ci-ginkgo

/test


GlyphRun support

What does the pull request do?
It adds GlyphRun support to Avalonia
What is the current behavior?
Not supported
What is the updated/expected behavior with this PR?
The ability to work with low-level glyph renderings.
How was the solution implemented (if it's not obvious)?
GlyphTypeface was added to access a font's glyph data. This also makes it possible to map characters to glyphs. In theory, we could introduce a text formatter that is producing glyph runs. That formatter would look like the new skia text layout but would work for all platforms.
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Avaloniaui.net with user documentation

Depends on #1950
#129
#132

https://github.com/harfbuzz/harfbuzz/pull/1432

This was merged into the TextLayout branche


az cli commands to create server application and client application

Hi,
Could the documentation please be updated with the correct az cli commands to create the server application and client application.
The steps I have figured out so far are

az ad sp create-for-rbac -n "server-application" --skip-assignment

Make note of appid and secret

az ad app update --id "server-application-appid" --set groupMembershipClaims=All allowPublicClient=false --reply-urls "http://server-application" --required-resource-accesses @server-manifest.json

server-manifest.json contains definitions for resourceAccess and resourceAppId
I'm not entirely sure how to create the native-app app registration, it keeps complaining about indentifier-uris being incorrect when include --available-to-other-tenants, which I'm not even sure is needed but creating it through the portal creates one with this property.

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

ID: a47c6df7-5103-1336-eb0b-68f95155e6c8
Version Independent ID: f4420b08-9b57-f581-fcb4-f069afdd5b0c
Content: Integrate Azure Active Directory with Azure Kubernetes Service
Content Source: articles/aks/aad-integration.md
Service: container-service
GitHub Login: @iainfoulds
Microsoft Alias: iainfou

Thanks for the feedback! We are currently investigating and will update you shortly.

I am assigning the issue to the content author to investigate further and update the document as appropriate.

@iainfoulds Please take a look at this issue.

@cwoolum have you been able to figure out why the grant fails?

Sorry for the delay on this one. We actually published a doc a few weeks that outlines how to use the Azure CLI to create an Azure AD-enabled cluster - https://docs.microsoft.com/en-us/azure/aks/azure-ad-integration-cli
There was an issue in the Azure CLI in how it was granting permissions. That was resolved a few releases ago, so make sure you're running the latest Azure CLI.
#please-close

@haodeon We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Hi Ian I personally tested the procedure in  https://docs.microsoft.com/en-us/azure/aks/azure-ad-integration-cli and it doesn't work. I was able to fix the problem just setting the following values in the manifest of both the client and server applications:
I was able to fix this issue with Azure AD v2 application by setting the following in the client manifest:
"allowPublicClient": true,
"oauth2AllowIdTokenImplicitFlow": true,
"signInAudience": "AzureADMultipleOrgs",
I'm investigating how to set the allowPublicClient property as it looks like that the following command doesn't work:
az ad app update
--id $aksServerApplicationAppId
--set allowPublicClient=true

@paolosalvatori  You've already found my other issue, which I opened when I encountered problems with "allowPublicClient=true".
But for those who are new to this issue I am referencing it here to help. Azure/azure-cli#7955


fix: fix issue #1988

use "$@" instead of #@ to make mutiple value parceled by quoted
available.
What is the purpose of the change
fix issue 1988
https://github.com/apache/rocketmq/issues/1988
Brief changelog
use "$@" instead of #@ to make mutiple value parceled by quoted
available.
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage increased (+0.09%) to 50.919% when pulling 47b22ece87d43fcdc161e6472693044d7205a5d5 on RealBar:fix/issue1988 into 8ef01a6c635f6972847c40d5540b1945180d7cbd on apache:master.


style: 💄 removing red from charts

Red was seen as a negative color by users so it should not be used in charts

👋 Thanks for creating a pull request! 🚀 Checkout the storybook we've created for it:


Gromacs: fix SIMD flags, and OpenMP

Motivation for this change

make CPU acceleration selectable.
update cmake flag for acceleration CPU_ACCELERATION -> SIMD
GMX_CPU_ACCELERATION is outdated and has been ignored.
add hwloc to inputs
always build with OpenMP

EDIT: so far the derivation was not reproducible and the level of SIMD acceleration did depend on the builder.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 105133 run on x86_64-linux 1

4 packages built:

gromacs
gromacsDouble
gromacsDoubleMpi
gromacsMpi

OK, it also works again on ARM.

If there are no objections, let's go ahead and merge it.

@GrahamcOfBorg build gromacsMpi


Record & Validators

Description of changes
Summarize the changes made by this PR.

Improvements & Bug fixes

...

New functionality

...

Test plan
How are these changes tested?

[ ] Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?

#2899  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @atroyn and the rest of your teammates on  Graphite


Custom-TOC-title and max-heading-level options added, argument parsing improved

You can now specify a custom TOC title with --title <title>.
You can now limit TOC entries to a max. heading level with --maxlevel <level>.

Note: For backward compatibility, headings extracted from HTML are limited to 4 levels - no such constraint is based on Markdown headings.

Argument parsing improved by switching to the 'minimist' library.

Now supports -h and --help and reports syntax errors,

It's a non-trivial PR, but I've added tests that hopefully cover all the changes.
(Note that all current tests only test at the JS level, not direct invocation of the CLI.)
I've left --nodejs in there for now.
I noticed that there was a default cap on the level of headings to include in the TOC, but it only applied to headings extracted from HTML, not headings extracted from Markdown text (whether with hash prefix or underlined). For backward compatibility I've retained this selective default value.
Some terminology notes:

"heading" is probably more precise than "header" in the context of this project; "header" can also mean the piece of text at the top of every page (cf. "footer").
The abbreviation "No." to mean "number" (used in German, via Italian "Numero") is not used in English and is likely to be confused with "no"; therefore it's better to stay away from variable names such as maxHeaderNo (maxHeaderNum is an alternative).

Thanks, went out as 0.12.

Awesome, thanks.

No problem :)
Also added you as collab, so now you can work in a branch in this repo for future features/fixes.
We'll discuss in there and once we all agree we can merge to master.
You can also close issues now, so I hope you'll be able to help triage those. Especially with the lately added features (most yours) I expect some questions.

Thanks, I appreciate the trust.


Update path to cryptogen and configtxgen

Bin is 2 directories above the crypto-config.yaml and configtx.yaml files.
Description
This is just a quick documentation update.
Signed-off-by:
Zachary Gittelman<EMAIL_ADDRESS>

Thanks for the contribution, but it's only a read-only mirror. You can go to Gerrit and submit the patch.


Cannot set property 'PYTHONPATH' of undefined

Environment data
版本: 1.58.2
提交: c3f126316369cd610563c75b1b1725e0679adfb3
日期: 2021-07-14T22:09:06.581Z (2 周前)
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 18.7.0
Expected behaviour

click this, debugger function should started normally
Actual behaviour

Possible Reason.

Thanks for the issue @isbada. Could you please run this:
import sys;
print(sys.path)

on the interactive window and share the result with me?

Also, @isbada, could you share the logs from the output panel? Select Jupyter on the dropdown and share that.
Thanks!

Closing this issue as its been over 4 weeks, since the information was requested.
We'll be happy to reopen the issue when the requested information has been provided.


disconnect reasons are back woohoo!!!

please add disconection reacson xoxo

doeshotter made a video where it was very much not working.

so sad funny disconnect message I saw must have been my schizophrenia which I definitely have....

Doesn't work


Laravel 8.62.0 Shift

This pull request includes updates for the recent minor version release of Laravel as well as updates to your package dependencies. Feel free to commit any additional changes to the shift-ci-v8.62.0 branch.
Before merging, you need to:

Checkout the shift-ci-v8.62.0 branch
Review all pull request comments for additional changes
Run composer update
Test your application (no tests?)

:warning: The Shift build servers run PHP 8. If you are still running PHP 7.4 or lower you should run composer update locally to ensure you have the proper versions of your dependencies to reflect your PHP 7 environment.

:information_source: Shift detected your application only has the default tests. This Shift is designed to be used within your CI process. Tests will help you confirm these updates do not break your application.
You can get started adding tests by using the Test Generator to automatically create the model factories, test classes, and sample tests cases for your Laravel application.


about GAILoss

Thank  you for your work.
gmm = {k: gmm[k].reshape(1, -1).expand(pred.shape[0], -1) for k in gmm}
mse_term = F.mse_loss(pred, target, reduction='none') / 2 / noise_var + 0.5 * noise_var.log()
sum_var = gmm['variances'] + noise_var
balancing_term = - 0.5 * sum_var.log() - 0.5 * (pred - gmm['means']).pow(2) / sum_var + gmm['weights'].log()
balancing_term = torch.logsumexp(balancing_term, dim=-1, keepdim=True)

when  I use gai loss, my pred  size is [128], but the data of gmm is [128, 8] after expand.
How I solve this,  looking forward to your recovery

I tried this:

is this work？ when I use this，model training fails to converge

Sorry for the late reply. You may try adding a new dimension to pred by pred = pred.unsqueeze(-1).

@luxianlebron, I also met the same problem. Did you find the way to let model converge?


[Bug]: snowflake_grant_privileges_to_share results in permadiff when granting to external tables

Terraform CLI Version
1.9.8
Terraform Provider Version
0.97
Terraform Configuration
Using the resource snowflake_grant_privileges_to_share results in a permadiff when granting for external tables.
https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/
Would we need the parameter "on_external_table"? I'm using "on_table" now for external tables, but it seems when refreshing the state, it results in a permadiff, it wants to add the grants again.
The apply does succeed and I can see the grant is given.
resource "snowflake_grant_privileges_to_share" "table" {
  to_share     = "myshare"
  privileges   = ["SELECT"]
  on_table     = "db.schema.externaltablename"
}

Category
category:grants
Object type(s)
resource:grant_privileges_to_share
Expected Behavior
I expect new grants for external tables on a share to be planned and applied once.
Actual Behavior
The grants keep being planned, resulting in a permadiff.
Steps to Reproduce

Create a new share and external table or use existing
Use the terraform resource "snowflake_grant_privileges_to_share" with the on_table property and make sure to use one or more external tables there. Grant SELECT.
Run a terraform plan and apply
Rerun it, it should be planned again.

How much impact is this issue causing?
Low
Logs
No response
Additional Information
No response
Would you like to implement a fix?

[ ] Yeah, I'll take it 😎

Hey @maxnsdia 👋
I'm guessing that in this case there may be an object type mismatch in SHOW GRANTS, probably "EXTERNAL TABLE" is returned when we expect "TABLE". Other table types are something new and they have to be added for this resource to work with them. Marking this as a future request. For now, the only workaround is to use unsafe_execute until fields for other types will be there.


Warning: Added non-passive event listener to a scroll-blocking <some> event

Current Behavior:
Using the (React) Vidstack player causes these warnings to be logged to the console:
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

Expected Behavior:
The warning isn't logged.
Steps To Reproduce:
Reproduction Link: How to create a repro?
Environment:

Framework: React
Meta Framework: Next.js
Node: 20
Device: PC
OS: Windows 11
Browser: Brave 1.67

Are you sure it's related to the player? I can't repro in Brave. If you can provide a repro or some instructions on what triggers the warning then I'm happy to reopen :)

Yup, should be related to the player. Though the warning is only logged when the devtools are already open before the player loads. This is with the latest version of Chrome, no extensions installed:
https://github.com/vidstack/player/assets/15160542/f9cd7103-dceb-4825-ab04-f3640a9252a0

Strange, can't repro no matter what I do. Hm. If you can trace down the line that's causing it then I can see what's up. The line shown in the video is when the event listener is added but the issue would be a call above in the stack trace. Otherwise, not entirely sure what's happening here.

Weird that you're not getting the warning, maybe it's OS related? I traced it, and it seems to be the touchstart listener from ToggleButton.
https://github.com/vidstack/player/assets/15160542/2eff7e42-bcf9-4db9-b0f2-e7bc5978b6d2


output "lock on" menu not appearing windows binary

In any of the lock box modules (GUI, Windows binary), the output1 or output2 sections of any locking stage are blank.  They should contain a 3 state checkbox labelled "lock on" and another checkbox with "reset" followed by a text box for "offset".
I have tried:

starting a new config file
uninstalling any python versions on the computer in case there is some weird conflict.
removing all folder and files that contain "pyrpl" in them and relaunching pyrpl.
trying a different computer.  2 out of the 3 computers have this bug, but the third (which is a brand new computer) does not, suggesting something is up.  However, the command lines for boot up of pyrpl are identical, no funny messages.

Hmmm I have tried the same executable on a fourth computer, and it functions as it should.  So far the menu has failed to appear on 2 laptops, and appeared normally on two desktops.  I'm beginning to think its something to do with the display settings on the laptops.  Could it be weird scaling issues in Windows 10?

Fixed!  Turning display scaling off on the laptop fixes the issue.  I just have to turn the resolution down so all my icons aren't super tiny.
Microsoft's terrible display scaling strikes again.

Hi, I have seen the same effect before, but wasnt bound to the computer with the "bad" display (I have seen this once on a windows 10 and once on a Mac, I think). It would definitely be good to find a fix for this that works on any computer. Possibilities to fix it

One can try to play with the environment variable QT_AUTO_SCREEN_SCALE_FACTOR=0 before loading QT (there is also a qt attribute somewhere), this would probaby recover the same display style as in windows 7, see https://stackoverflow.com/questions/35816944/improper-scaling-of-qt-desktop-application-in-windows-10

Starting from 1) with the opposite setting QT_AUTO_SCREEN_SCALE_FACTOR=0, we should fix the QT settings that, at least, all items of the GUI are equally nice/bad. But maybe we are already happy with 1)

On my windows 7, the variable has no influence on the display properties. So I will need to find another computer first


Adding plugin-descriptor.properties

Without plugin-descriptor.properties file, when upgrading via Puppet, encounter the following errors -
Verifying https://github.com/jlinn/elasticsearch-analysis-url/releases/download/v2.0.0/elasticsearch-analysis-url-2.0.0.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
ERROR: Could not find plugin descriptor 'plugin-descriptor.properties' in plugin zip> at 129:/etc/puppetlabs/code/environments/ec2/modules/elasticsearch/manifests/plugin.pp

Scratch that. Looked at the src directory and located the resources dir with the plugin-descriptor.properties file.


Type hints for @unhead/schema-org/vue functions not functioning correctly

Environment
Nuxt project info:

Operating System: Windows_NT
Node Version:     v20.16.0
Nuxt Version:     3.13.1
CLI Version:      3.13.1
Nitro Version:    2.9.7
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      compatibilityDate, devtools, typescript, modules
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-j7w7ez?file=nuxt.config.ts,app.vue
Describe the bug
I have encountered an issue where type hints for any @unhead/schema-org/vue functions are not functioning correctly. I have installed the nuxt-schema-org module which adds support for these functions. I am also using auto-imports. I have created a minimal reproduction to demonstrate the problem.
One solution would be to change the import path inside .nuxt/types/imports.d.ts from ../../node_modules/@unhead/schema-org/vue to ../../node_modules/@unhead/schema-org/dist/vue

Additional context
No response
Logs
No response

Hi, thanks for the issue and reproduction. Would you be able to check if version 1.11.3 is working better for you? I'm having issues with this stackblitz reproduction.

Hi, thank you for your response. Unfortunately it is not fixed for me, I updated the reproductions package.json.. mabe it'll work for you now?
https://stackblitz.com/edit/github-j7w7ez?file=.nuxt%2Ftypes%2Fimports.d.ts

The types in stackblitz are messed up though, I'm not getting any intellisense.
The subpath types seem to exist or the first import should throw an error

The any may be related to something else.

PHPStorm is working fine

Still not working for me. I am using VSCode + Vue Official Extension. Heres some screenshots with the latest version 1.11.5.

As you can see, the types are not working for all @unhead functions.

Here again with /dist/vue

Thank you for your patience & help!!

Can you try @unhead/schema-org 1.11.7 :crossed_fingers:, i'm now exporting a root vue.d.ts which may fix this.

Just tried it out and it works!!
Thank you very much @harlan-zw

Woo :partying_face: Thanks for confirming


Remove unused functions for mesh

These functions were used with weaveworks/mesh,
but are no longer needed with memberlist.

:+1:


Selector drawable for the listview

Is there any option to set a selector drawable for the inside listview.

In the next release you can use app:ms_background_selector="@drawable/selector"


non cloud functional tests sometimes fail with a 429 too many requests

sample run is https://github.com/radius-project/radius/actions/runs/11331604413/job/31512006276
We sometimes hit a limit while pulling golang1.22-alpine with below error:
[https://registry-ERROR: failed to solve: golang:1.22-alpine: failed to resolve source metadata for docker.io/library/golang:1.22-alpine: failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/golang/manifests/sha256:f56a8a4a1aea41bc4694728b69c219af1523aea15690cbbed82dc9bac81e6603: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
make: *** [build/docker.mk:117: docker-build-magpiego] Error 1
Error: Process completed with exit code 2.

we could improve the limit with authenticated pulls or ignore the error and wait for the next functional run.
AB#13569

This should be evaluated/fixed by on-call


Srp energy

Description:
Platform for retrieving energy data from SRP Energy.
Related issue (if applicable): fixes #
Removed web scraping to resolve concerns in #26826
Resolved issue of objects instead of strings. #22538
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10920
Example entry for configuration.yaml (if applicable):
sensor:
  - platform: srp_energy
    username: YOUR_USERNAME
    password: YOUR_PASSWORD
    id: YOUR_ACCOUNT_ID

Checklist:

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

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[x] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[x] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

This PR looks good! Since it took us a long time to review this PR, our standards have changed. Could you please address the current build failures?


Trigger staging bundle release - 0.19.9

Description of changes:
Triggering staging bundle release for v0.19.9
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


Replace the selenium browser test with phantomjs for faster test

Can we launch the extension using phantomjs? The selenium tests actually load the extension.

Looks like it's not possible since phantomjs is on webkit :/


tools/test_tpm_ek_chain.sh: script for checking EK cert chain size

LGTM. You can merge if needed.


When will Queue storage be avaliable in v3 Azurite

When will Queue storage be avaliable in v3 Azurite? Right now im still using azure storage emulator to host my queue for local function with queue trigger.

Queue support is planned as next priority of Azurite V3 after 3.1.0-preview (for Visual Studio Code and Docker support, and bug fixes). So it will be soon.

Queue was supported in 3.2.0-preview, will close this issue.


Double Audio on everyvideo I play

**Script version : latest
Describe the bug
Everytime I open a new video two audios are playing simultaneously, the ad is getting skipped but I have 2 audio in the background. Quite chaotic. If I resfresh the single page then everything work.

same here

I have this issue as well. It is occurring for me in Edge and Chrome. Sometimes there is ad audio and other times there is a duplicate audio of the video playing. Even when I refresh it continues to occur. I have to refresh 5-10 times to get a single audio.

My solution is to downgrade to version 5.3; it works well now. Hope it helps some.

My solution is to downgrade to version 5.3; it works well now. Hope it helps some.

How did you manage to downgrade it ?
I'm also having issues with double audio, some videos have ads and goes into a refresh loop trying to make the video without ads and forces the double audio again, so how did  you downgrade?

u can search v5.3, and someone forks the original code. u can replace it directly.

Same issue here.  Delayed double audio playing in background when a single video is played. Sometimes refreshing fixes. Other times the double audio just loops continuously. Sometimes ad audio plays in background with no option to close it.


fix package

The (unreleased) nuget package did not contain the correct files or dependencies

0.9.1 released


Allow Users to abort Phone Number Confirmation action

If users enter a typo in their phone number, they cannot abort. When trying to log in in a new browser profile, they are always presented with the form to enter the SMS code that is sent to the wrong number.
In my opinion it should be okay to add a link that allows the user to abort the required action. This will simply force the user to enter the phone number again during the next login. In the best scenario, aborting the confirmation will directly lead again to the require MFA screen.

That's a duplicate of #50


Is it good that blackhole var $_ can be redefined?

The documentation implies the blackhole var cannot be redefined. But it can be redefined:
> set _ = abc
> put $_
▶ $nil
> var _ = def
> put $_
▶ def

Is this desirable? If it is then the documentation should be augmented. Personally, I don't think a var _ = statement should be allowed. Or, if allowed, it should be equivalent to set _ =. The documentation for var hints that the current behavior is expected but is far too vague if we want to retain that behavior. Especially in light of the documentation for the magic underscore var .

See also the discussion at #1141.

Thanks for the pointer, @hanche. I had a vague feeling this had already been discussed but for some reason didn't find that issue when I checked. Closing this as a dup.


Support for high level API in tensorflow

Hi folks, I'm a student works on adversarial examples and new to cleverhans. I spend some time on the entry level tensorflow tutorial of MNIST with FGSM. I noticed that the MLP model is using lower level APIs. I have my local copy which rewrites the MLP with high level tensorflow API like tf.layers which is more like a Keras syntax. I'm not sure if this is something useful or there are existed examples. Anyway, if it could benefit others, I'm more than happy to contribute my code.

The MLP model isn't part of the library itself; it's just part of the tutorials. It uses low-level APIs intentionally. The goal is to show how any TensorFlow code can be used with CleverHans without needing to use a specific high-level API for compatibility. It's intended to provide a contrast to the Keras tutorial.

Thanks for the reply, @goodfeli . BTW, I saw that model_train and model_loss are provided as utils. However, it didn't support complex model structure such as stack model or ensemble model and only cross entropy loss. Is it a feature to be supported in the future?


[WIP] 2.1.0 release news. [skip ci]

cc @hcho3 @wbo4958 @rongou  @razdoburdin @RAMitchell

Close https://github.com/dmlc/xgboost/issues/10402
I won't move the original one.


Help in understanding prepdocs split_text

Can somebody please add in line comments to the prepdocs.py in the split_text function? In the current stage, I am really trying to understand the code, but it's very very difficult
For example(s)
Example 1: SENTENCE_SEARCH_LIMIT - What does this variable really mean?
Example 2: line 198 is out of context for anyone who hasn't contributed to this module :)
while start > 0 and start > end - MAX_SECTION_LENGTH - 2 * SENTENCE_SEARCH_LIMIT and all_text[start] not in SENTENCE_ENDINGS:

That is well explained is this part of presentation https://www.youtube.com/live/ujugapNEz4o?feature=share&t=1032
Document is divided by 1000 characters and 100 overlapping for story flow (to prevent CS to lose context (flow of the text))

@itmilos Thanks for replying.  I have just completed looking at the entire video. While it does provide help on different approaches for prompting open ai , prepdocs.py is not really mentioned about apart from the fact that section length = 1000 chars and overlapping = 100 chars.
To be honest, I understood the above by the variable name itself , but can't get my head around what SENTENCE_SEARCH_LIMIT means and  the reasoning behind the conditions of the while loops in the split_text function.
Below are few lines I would really appreciate if the reasoning behind each condition in the while loop can be commented. Apologies for asking such help, but I am unable to understand the reason behind expressions like 2xSENTENCE_SEARCH_LIMIT
line 187, while end < length and (end - start - MAX_SECTION_LENGTH) < SENTENCE_SEARCH_LIMIT and all_text[end] not in SENTENCE_ENDINGS:
line 198,while start > 0 and start > end - MAX_SECTION_LENGTH - 2 * SENTENCE_SEARCH_LIMIT and all_text[start] not in SENTENCE_ENDINGS:
line 211 , if (last_table_start > 2 * SENTENCE_SEARCH_LIMIT and last_table_start > section_text.rfind("</table")):

Can somebody please help here
@itmilos

This is an interesting point Aldo from my side. Why we Need overlap between sections? I encountered a case where i have some Pages with low text and multiple Pages are merged. What are the advantages of this approach?