Timeout mounting nfs volume into containers

Hi:
I've deployed kubo-release to AWS successfully following this guild, and It's working fine for simple pods. Hurray!
However, When I'm trying to  follow the NFS example from kubernetes here,
I can't mount a shared NFS volume into two containers.
The only one thing I changed in the example to make it simple for AWS is to replace the volumes in nfs-server-rc.yaml to directly use an EBS volume I've already created.
-            name: mypvc
+            name: ebs
       volumes:
-        - name: mypvc
-          persistentVolumeClaim:
-            claimName: nfs-pv-provisioning-demo
+        - name: ebs
+          awsElasticBlockStore:
+            volumeID: vol-0a6ed6179d.....
+            fsType: ext4

After creating the busybox-rc, one of the containers started up successfully while the other one failed after a while with errors like below:
Unable to mount volumes for pod "nfs-busybox-pp6nm_default(55ef084c-a499-11e7-b79a-02d7b3763e4e)": timeout expired waiting for volumes to attach/mount for pod "default"/"nfs-busybox-pp6nm". list of unattached/unmounted volumes=[nfs]

The successful container seems working as expected with the nfs volume mounted as expected if I ssh into it with kubectl exec -it nfs-busybox-n0mlk sh and run mount afterwards.
<IP_ADDRESS>:/ on /mnt type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=<IP_ADDRESS>,local_lock=none,addr=<IP_ADDRESS>)

I go to the master and the worker vms and find some errors as below might look interesting:
master node:
E0928 18:35:41.409327    7632 routecontroller.go:96] Couldn't reconcile node routes: error listing routes: unable to find route table for AWS cluster: kubernetes

worker node:
E0928 22:11:11.296393    8278 nestedpendingoperations.go:262] Operation for "\"kubernetes.io/nfs/55ef084c-a499-11e7-b79a-02d7b3763e4e-nfs\" (\"55ef084c-a499-11e7-b79a-02d7b3763e4e\")" failed. No retries permitted until 2017-09-28 22:11:11.796361023 +0000 UTC (durationBeforeRetry 500ms). Error: MountVolume.SetUp failed for volume "nfs" (UniqueName: "kubernetes.io/nfs/55ef084c-a499-11e7-b79a-02d7b3763e4e-nfs") pod "nfs-busybox-pp6nm" (UID: "55ef084c-a499-11e7-b79a-02d7b3763e4e") : mount failed: exit status 32
Mounting command: mount
Mounting arguments: <IP_ADDRESS>:/ /var/lib/kubelet/pods/55ef084c-a499-11e7-b79a-02d7b3763e4e/volumes/kubernetes.io~nfs/nfs nfs []
Output: mount.nfs: Connection timed out

I'm not 100% sure the errors in the master node is linked to this error because it seems the errors message has been there since the cluster was created.
Any thoughts? Thanks!

Thanks for the detailed report of the issue @Kaixiang. We will discuss this in our next planning meeting next week.

Hey @Kaixiang - we currently don't support the AWS cloud provider for the kubelet job. We'd welcome a PR for it!

NFS is supported starting with 0.24


Generate documentation, standardize on one docstring format

I propose we not only write, but also generate documentation to make user's lives easier.
See https://github.com/RookieGameDevs/revived/tree/master/revived and https://revived.readthedocs.io/en/stable/api.html for an example. Note the structure of the docstrings and what they're turned into.
So, we need to:

Standardize on a format to write docstrings in that tools like Sphinx can automatically generate something from...
...and well, basically, use Sphinx.
Host at ReadTheDocs?

https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html


Update walkthrough-author-custom-static-code-analysis-rule-assembly.md

Typo in word WaitForDelayStatements was fixed.

@scrappyCoco : Thanks for your contribution! The author(s) have been notified to review your proposed change. @stevestein

Looks good; thanks for the typo fix @scrappyCoco.


fix arg parsing in chat.py

Fixes a small parsing issue introduced in https://github.com/huggingface/trl/pull/1739. The default config will be enforced by adding it to the args.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Update index.html

PR Title: Improved Heading with Hover Effects
fixes: #302
Assign me the level too please.
Description:
Enhanced the heading by adding:
A size increase (30%) and a pink glow effect on hover for better interactivity.
A smooth transition with a color change to vibrant pink (#ff69b4) to complement the page’s background.
These changes enhance the visual appeal and user experience.

@neeru24 u have changed the font family of text , please don't change it , add only hover effect.

@neeru24 thanks for this feature.


Add helpful text if section is empty

Example: https://github.com/gr2m/sandbox/issues/44
There were no closed issues:

It’s called the "blank slate", think of what content looks like if there is no data. The Getting Real has a good chapter on it if you are interested :) https://basecamp.com/books/getting-real Old-ish book but great one, I’d recommend to read it anyway, it’s quite short

thanks a lot @gr2m, watching this repo is quite beneficial :100:

Yeah @gr2m, I have seen this thing happening in a repo where weekly-digest bot has been installed. While developing, I fixed empty problem with PRs, but I guess I forgot to do it for Issues section.
Will do so in the next commit.

Oops, sorry, closed by mistake.

I have fixed this in this commit: https://github.com/probot/weekly-digest/commit/43576c0dfa5a4a2686c029c4fc44d02a0e2aaf0f

:tada: This issue has been resolved in version 0.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fixed watch command on Windows platform.

Windows equivalent of 'which' is 'where', so just used the appropriate command. I haven't tested this fix except on Windows, but I'll trust you can double-check it :) I had problems getting tests to run; they just seemed to die without message after a few tests, so I haven't added an appropriate test for the fix. I have only used rspec/riot for testing and life is too short to try to work out what is wrong - Sorry!

Hi, thanks for the patch! This certainly is useful.
Can you apply the changeset on the release-3.2.x branch, though? This branch is for bugfixes for the current release, while master is for new development.
Cheers,
Denis


Write explicitly if this lib works on Python 2 o 3 or both.

Some errors and problems may be avoided if the Python version is explicit on everywhere for anyone see.
Is this lib compatible with Python 3.5.2?

The master is for Python 2 only but there's a PR for Python 3 support. I'm still not sure why the new version's failing some of the tests so I haven't merged it in yet.

@bamos Maybe updating the main README.md to reflect this information would be nice.
Best regards.

I've just merged the PR adding Python 3 support to the master branch so OpenFace should work well in both Python versions now.
-Brandon.

Thank you very much :)


How to draw or development polygon?

Hi,
how to draw&drop or development polygon in react-planner?
Thank you.

Any news on this ?


Allow null/undefined this context

In some module resolving environments, this can be null. In this case, jsonic crashes the build process. This change resolves that issue.
Just for reference: senecajs/seneca#436 should be fixed with this change

Thank You!

@rjrodger did you publish v1.0.0 already? I haven't found it on npm 🙂


Including metadata in output

I'm trying to get this to include metadata in the export - I've got it working fine for the fields I need, but I need to tie access data to the indexed data from another system, which is logged by _id
Is this possible here? I've tried a number of methods but nothing seems to work.

How about using fl=_id,..?

I tried that, couldn't get it to work at all - do you have an example? I'm probably missing something obvious, but it only returned non metadata values.

Is it an idea to put the three columns _index, _type, _id at the beginning of the dumped data to describe more concretely about the document, especially when we want to re-use it and when there are severals indices and types.


Sync-AzSOfflineMarketplaceItem gives an error

Hi,
The AzureStack commandlet to sync an Azure marketplace item gives an error.
Invoke-RestMethod : {"error":{"code":"ParentResourceNotFound","message":"Can not perform requested operation on nested
resource. Parent resource 'A' not found."}}
At E:\tdrimmelen\AzureStack-Tools-vnext\Syndication\AzureStack.MarketplaceSyndication.psm1:50 char:18

... products = (Invoke-RestMethod -Method GET -Uri $uri1 -Headers $Header ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Analyse showed that the cause is that line 40 returns only 1 item so $registrations does not become an array. I fixed this by replacing line 41 with:
$registration = @($registrations)[0]
I have attached the updated code.
Regards,
Theo

And the attachment
AzureStack.MarketplaceSyndication.psm1.zip


HOSTEDCP-2040: [CPO Refactor] Refactor HCCO

What this PR does / why we need it:
Refactor HCCO Component
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/retest-required

/retest-required

/retest-required

/lgtm
/hold

/lgtm

/unhold

/retest-required

/lgtm

/retest-required


Fix iTunes Installation Leads to Automatic and Unwanted Restart

As said here: https://github.com/microsoft/winget-pkgs/pull/502#issuecomment-631967124
Microsoft Reviewers: Open in CodeFlow

I can't reproduce this on my machine. But it won't hurt to add /norestart

I can't reproduce this on my machine. But it won't hurt to add /norestart

Thanks for trying :D


Fastlane breaks on version 2.212.1, bundled inside 3.5.2 step version

Troubleshooting

[x] I've searched discuss.bitrise.io for possible solutions.
Which version of the step is effected? 3.5.2
Is the issue reproducible with the latest version? YES
Does the issue happen sporadically, or every time? EVERY TIME
Is the issue reproducible locally by following our local debug guide? NOT APPLICABLE

Useful information

FAQ
devcenter.bitrise.io

Issue description
A bug emerged at previous versions of fastlane. It has been well reported in the last 12h in here:

https://github.com/fastlane/fastlane/issues/21819

This issue is affecting the Fastlane step at Bitrise, because the current 3.5.2 step uses the 2.212.1 version.
The most reported fix is to upgrade to 2.219.0 version.
Bitrise info

Determine desired Fastlane version
Gem lockfile defined Fastlane version: 2.212.1
Gem lockfile defined bundler version: 2.1.4
Checking selected Ruby version
$ asdf "current" "ruby"
ruby            3.2             /Users/vagrant/.tool-versions
Unrecognized Ruby version: [Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]]
Active Ruby version: `DidYouMean::SPELL_CHECKERS.merge!(error_name
Install bundler
$ gem "install" "bundler" "--no-document" "-v" "2.1.4" "--force"
[DEBUG] POST https://step-analytics.bitrise.io/track
Successfully installed bundler-2.1.4
1 gem installed
$ asdf "reshim" "ruby"
[...]
|                                      Lane Context                                      |
+------------------------------------+---------------------------------------------------+
| DEFAULT_PLATFORM                   | ios                                               |
| PLATFORM_NAME                      | ios                                               |
| LANE_NAME                          | SENSITIVE_DATA                                          |
| SIGH_PROFILE_TYPE                  | SENSITIVE_DATA                                         |
| MATCH_PROVISIONING_PROFILE_MAPPING | {SENSITIVE_DATA} |
| IPA_OUTPUT_PATH                    | SENSITIVE_DATA                 |
| XCODEBUILD_ARCHIVE                 | SENSITIVE_DATA             |
| DSYM_OUTPUT_PATH                   |SENSITIVE_DATA        |
+------------------------------------+---------------------------------------------------+
[19:10:17]: A parameter has an invalid value - 'prices' is not a valid relationship name
+------+----------------------+-------------+
|             fastlane summary              |
+------+----------------------+-------------+
| Step | Action               | Time (in s) |
+------+----------------------+-------------+
| 1    | default_platform     | 0           |
| 2    | match                | 1           |
| 3    | build_app            | 35          |
| 💥   | upload_to_testflight | 0           |
+------+----------------------+-------------+
[19:10:17]: fastlane finished with errors

Steps to reproduce

Attempt to upload to App Store using Testflight.

Same here 👍

same here 👍

same here..

oh while waiting for Bitrise team to update their Fastlane step, as a temporary solution you can just update your fastlane in your gemfile by using the latest version 2.219.0
gem "fastlane", '2.219.0'
then do bundle install , and try to deploy, mines works now @banshchikov @bevan667

@abdymm thanks! it solved the issue


Add a connector for SQLAlchemy with Psycopg2

This PR adds a connector for SQLAlchemy with Psycopg2. The goal is for synchronous applications that use SQLAlchemy (e.g. a Flask application with the Flask-SQLAlchemy extension) to use just one SQLAlchemy engine, so just one connection pool, thereby minimizing the number of connections opened against the PostgreSQL server.
It works like this:
from slqlalchemy import create_engine

from procrastinate import App
from procrastinate.contrib.sqlalchemy import SQLAlchemyPsycopg2Connector

engine = create_engine("postgresql+psycopg2://")

app = App(connector=SQLAlchemyPsycopg2Connector())
app.open(engine)

Closes #445

Successful PR Checklist:

[x] Tests

[ ] (not applicable?)

[x] Documentation

[ ] (not applicable?)

@ewjoachim, we get the following in the codecov report, and I don't know what to do to fix the problem:
Current head 17c25ba differs from pull request most recent head 0d0f407. Consider uploading reports for the commit 0d0f407 to get more accurate results

Do you know what we can do about it?

This is ready for review again.

The branch rate is 99.72999999999999%
Woops :D


Cannot take gradient of VJP function involving new-style RNG key

Description
I'm working on reducing this MWE, but it's a big job.  Here it is for now:
import dataclasses
from typing import Any, NoReturn, TypeVar

import jax.numpy as jnp
from jax import custom_vjp, grad
from jax.lax import while_loop
from jax.random import key, normal, split
from jax.tree_util import register_pytree_with_keys

def dataclass(cls: type[Any]):
    data_clz = dataclasses.dataclass(frozen=True)(cls)
    dynamic_fields: list[str] = [field_info.name for field_info in dataclasses.fields(data_clz)]
    def tree_flatten(x: Any) -> Any:
        trees = tuple((name, getattr(x, name)) for name in dynamic_fields)
        return trees, ()
    def tree_unflatten(_: Any, trees: Any) -> Any:
        tree_args = dict(zip(dynamic_fields, trees, strict=True))
        return cls(**tree_args)
    data_clz.dynamic_fields = dynamic_fields
    register_pytree_with_keys(data_clz, tree_flatten, tree_unflatten)
    return data_clz

State = tuple[Any, Any]

Comparand = TypeVar('Comparand', bound=Any)
TheAugmentedState = TypeVar('TheAugmentedState', bound=Any)

def squared_error(theta: Any, x: Any) -> Any:
    return jnp.square(x - theta)

@dataclass
class _ZResiduals:
    outer_iterated_function: Any
    outer_theta: Any
    x_star: State

@dataclass
class NoisyNewtonsMethod:
    def find_fixed_point_x(self, theta: Any, initial_state: State) -> TheAugmentedState:
        def f(augmented: TheAugmentedState) -> TheAugmentedState:
            new_state = self.sampled_state(theta, augmented)
            return self.iterate_augmented(new_state, augmented)

        return while_loop(self.state_needs_iteration,
                          f,
                          self.initial_augmented(initial_state))

    def state_needs_iteration(self, augmented: TheAugmentedState) -> Any:
        return jnp.asarray(False)

    def initial_augmented(self, initial_state: State) -> State:
        return initial_state

    def iterate_augmented(self,
                          new_state: State,
                          augmented: State) -> State:
        return new_state

    def sampled_state(self, theta: Any, state: State) -> State:
        x, rng = state
        g = grad(squared_error, 1)(theta, x)
        ratio = squared_error(theta, x) / g
        new_x = x - jnp.where(ratio < 1e6, ratio * 0.05, 0.0)  # noqa: PLR2004
        rng, new_rng = split(rng)
        noise = 1e-4 * normal(rng)
        return new_x + noise, new_rng

@custom_vjp
def find_fixed_point(noisy_it_fun,  # type: ignore[override] # pyright: ignore
                     theta: Any,
                     initial_state: State) -> TheAugmentedState:
    return noisy_it_fun.find_fixed_point_x(theta, initial_state)

def _ffp_fwd(noisy_it_fun,
             theta: Any,
             initial_state: State) -> tuple[TheAugmentedState, _ZResiduals]:
    augmented: TheAugmentedState = noisy_it_fun.find_fixed_point_x(theta, initial_state)
    return augmented, _ZResiduals(noisy_it_fun, theta, augmented)

def _ffp_bwd(residuals: _ZResiduals,
             augmented_star_bar: Any) -> NoReturn:
    assert False

find_fixed_point.defvjp(_ffp_fwd, _ffp_bwd)

noisy_it_fun = NoisyNewtonsMethod()
def fixed_point_using_while_of_theta(theta: float) -> float:
    state = (8.0, key(123))
    x, _ = find_fixed_point(noisy_it_fun, theta, state)
    return x

theta = 3.0
print(grad(fixed_point_using_while_of_theta)(theta))

gives
ValueError: Cannot convert_element_type to dtype=key<fry>

@froystig
What jax/jaxlib version are you using?
0.4.20
Which accelerator(s) are you using?
No response
Additional system info
No response
NVIDIA GPU info
No response

Thanks for the report – if you could figure out where the convert_element_type primitive is being called, that would help. You might start by setting JAX_TRACEBACK_FILTERING='off' to see the full traceback.
I tried running locally to set a breakpoint, but I'm not able to import tjax because of Python version incompatibilities.

@jakevdp Yeah, I tried turning off the filtering, but I'm not so good at understanding the Jax internals :smile: .  I've edited the issue and removed the TJax dependency if you have time to look at it again.

Okay, I think it's close to minimal now.

It looks like RNG keys can no longer be primals to custom VJPs?

Thanks for the repro! Definitely an oversight. I think #18444 should fix it (I hit the assert False in your minimal example)

I just ran my full TJax tests and they all pass now.  Thanks again for the quick fix!

@jakevdp, Apparently, I didn't check my tests properly since I'm still seeing this error with the latest Jax.  Here's the stack trace:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/fixed_point/test_use_classes.py:107: in theta_bar
    return grad(f)(self).theta
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/api.py:659: in grad_f
    _, g = value_and_grad_f(*args, **kwargs)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/api.py:735: in value_and_grad_f
    ans, vjp_py = _vjp(f_partial, *dyn_args, reduce_axes=reduce_axes)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/api.py:2223: in _vjp
    out_primal, out_vjp = ad.vjp(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/ad.py:140: in vjp
    out_primals, pvals, jaxpr, consts = linearize(traceable, *primals)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/ad.py:129: in linearize
    jaxpr, out_pvals, consts = pe.trace_to_jaxpr_nounits(jvpfun_flat, in_pvals)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/profiler.py:334: in wrapper
    return func(*args, **kwargs)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/partial_eval.py:774: in trace_to_jaxpr_nounits
    jaxpr, (out_pvals, consts, env) = fun.call_wrapped(pvals)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/linear_util.py:191: in call_wrapped
    ans = self.f(*args, **dict(self.params, **kwargs))
tests/fixed_point/test_use_classes.py:105: in f
    configuration = encoding.infer_state(eif).ec
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:255: in cache_miss
    outs, out_flat, out_tree, args_flat, jaxpr = _python_pjit_helper(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:166: in _python_pjit_helper
    out_flat = pjit_p.bind(*args_flat, **params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/core.py:2682: in bind
    return self.bind_with_trace(top_trace, args, params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/core.py:405: in bind_with_trace
    out = trace.process_primitive(self, map(trace.full_raise, args), params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/ad.py:316: in process_primitive
    primal_out, tangent_out = jvp(primals_in, tangents_in, **params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:1551: in _pjit_jvp
    outputs = pjit_p.bind(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/core.py:2682: in bind
    return self.bind_with_trace(top_trace, args, params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/core.py:405: in bind_with_trace
    out = trace.process_primitive(self, map(trace.full_raise, args), params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/partial_eval.py:213: in process_primitive
    return custom_partial_eval_rules[primitive](self, *tracers, **params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:1628: in _pjit_partial_eval
    all_known_outs = pjit_p.bind(*known_inputs, **known_params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/core.py:2682: in bind
    return self.bind_with_trace(top_trace, args, params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/core.py:405: in bind_with_trace
    out = trace.process_primitive(self, map(trace.full_raise, args), params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/core.py:893: in process_primitive
    return primitive.impl(*tracers, **params)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:1238: in _pjit_call_impl
    return xc._xla.pjit(name, f, call_impl_cache_miss, [], [], donated_argnums,
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:1222: in call_impl_cache_miss
    out_flat, compiled = _pjit_call_impl_python(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:1155: in _pjit_call_impl_python
    compiled = _pjit_lower(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:1286: in _pjit_lower
    return _pjit_lower_cached(jaxpr, in_shardings, out_shardings, *args, **kwargs)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/pjit.py:1334: in _pjit_lower_cached
    return pxla.lower_sharding_computation(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/profiler.py:334: in wrapper
    return func(*args, **kwargs)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/pxla.py:1975: in lower_sharding_computation
    nreps, tuple_args, shape_poly_state) = _cached_lowering_to_hlo(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/pxla.py:1815: in _cached_lowering_to_hlo
    lowering_result = mlir.lower_jaxpr_to_module(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/mlir.py:822: in lower_jaxpr_to_module
    lower_jaxpr_to_fun(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/mlir.py:1260: in lower_jaxpr_to_fun
    out_vals, tokens_out = jaxpr_subcomp(
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/mlir.py:1453: in jaxpr_subcomp
    ans = lower_per_platform(rule_ctx, str(eqn.primitive),
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/mlir.py:1562: in lower_per_platform
    return kept_rules[0](ctx, *rule_args, **rule_kwargs)
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/mlir.py:1904: in zeros_like_lowering
    return [full_like_aval(ctx, 0, aval)]
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/interpreters/mlir.py:1898: in full_like_aval
    zero = ir_constant(np.array(value, dtypes.canonicalize_dtype(aval.dtype)))
../../Library/Caches/pypoetry/virtualenvs/tjax-qBYJqOa9-py3.12/lib/python3.12/site-packages/jax/_src/dtypes.py:235: in canonicalize_dtype
    return _canonicalize_dtype(config.enable_x64.value, allow_extended_dtype, dtype)  # pytype: disable=bad-return-type

It's really time-consuming to produce a MWE, so please let me know if you can figure out what's going on from just this 😄

I see the stack trace, but what's the error?

Do you have a self-contained repro?

@jakevdp I don't have  MWE, but you should be able to run the test if you install Python 3.10?

This traceback tells me that you're passing a custom PRNGKey in a place where it's not expected... to fix it we'll have to modify the code so that custom keys are properly handled in that place. A self-contained repro would be a good start for determining where that place is.

Okay, I may eventually get to this when it blocks me, but I'm in the middle of a bigger project right now.  I was hoping the stack trace might reveal the problem 😄

@NeilGirdhar fwiw I'm looking at revising some of this stuff now. Can I still repro your problem with the tjax tests here as you linked above?

Just saw your message. Will test it now

#19071 is one change. I haven't looked at your tests yet though so it would be blind luck if #19071 fixed anything for you. I've got this stuff paged into my head now though, so it would be a good time to take a look!

Looks like it fails still.  Are you able to install tjax?
git clone tjax
cd tjax
poetry install
poetry shell
pytest tests/fixed_point/test_use_classes.py

Gives:
E       ValueError: Internal: canonicalize_dtype called on extended dtype key<fry> with allow_extended_dtype=False
E       --------------------
E       For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.


python setup.py bdist_rpm problem!

hi:
when i use command 'python setup.py bdist_rpm' to build rpm package from setuptools-41.2.0
the error as below:
removing /tmp/tmp_U6BNz.py
running install_egg_info
running egg_info
writing requirements to setuptools.egg-info/requires.txt
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'pyproject.toml'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
Copying setuptools.egg-info to /home/zhou/rpmbuild/SOURCES/supervisor/setuptools-41.2.0/build/bdist.linux-x86_64/rpm/BUILDROOT/setuptools-41.2.0.post20190911-1.x86_64/usr/lib/python2.7/site-packages/setuptools-41.2.0.post20190911-py2.7.egg-info
running install_scripts
Installing easy_install script to /home/zhou/rpmbuild/SOURCES/supervisor/setuptools-41.2.0/build/bdist.linux-x86_64/rpm/BUILDROOT/setuptools-41.2.0.post20190911-1.x86_64/usr/bin
Installing easy_install-2.7 script to /home/zhou/rpmbuild/SOURCES/supervisor/setuptools-41.2.0/build/bdist.linux-x86_64/rpm/BUILDROOT/setuptools-41.2.0.post20190911-1.x86_64/usr/bin
writing list of installed files to 'INSTALLED_FILES'
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/zhou/rpmbuild/SOURCES/supervisor/setuptools-41.2.0/build/bdist.linux-x86_64/rpm/BUILD/setuptools-41.2.0.post20190911
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match.
find: 'debug': No such file or directory
+ '[' noarch = noarch ']'
+ case "${QA_CHECK_RPATHS:-}" in
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
Bytecompiling .py files below /home/zhou/rpmbuild/SOURCES/supervisor/setuptools-41.2.0/build/bdist.linux-x86_64/rpm/BUILDROOT/setuptools-41.2.0.post20190911-1.x86_64/usr/lib/python2.7 using /usr/bin/python2.7
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: setuptools-41.2.0.post20190911-1.noarch
error: File must begin with "/": (dev).tmpl
error: File must begin with "/": manifest.xml

RPM build errors:
    File must begin with "/": (dev).tmpl
    File must begin with "/": manifest.xml
error: command 'rpmbuild' failed with exit status 1

can anyone tell me how to fix that. thx!

It looks like the issue is that (apparently) bdist_rpm doesn't support filenames with spaces in them. I recommend digging into how rpms are built and determine where the shortcoming is that leads to this failure.
This is a duplicate of #767.


Manage Account: Change Password

From #423: From the 'manage account' page, a logged-in user should be able to change their password by providing:

their current password
a new password
confirmation for their new password

A notification email should be sent to the primary email address when the password is successfully changed.

There is a branch for this here, but it's blocked on #2898 being  merged.

As noted in our email #999 will be addressed with this ticket :)


Added Asynchronous Lifecycle hooks

should solve #5 and also adds the ability to return promises in hooks on which mocha will wait for either their resolve or reject and will fail if it is rejected. Also (of course) adapted test.ts to reflect the changes made to the source.
And added typings because... it kinda made sense and I couldn't find find a @types-npm-package for symbol-shim (would have been dev-dependency).
Sorry for my (perhaps?) bad english. Greetings from germany.

This looks great, I will publish a new version at NPM right away.

Danke schön!


Minor fixes

This is a simple PR with some minor fixes I spotted while reading through the source code.

Minor typo fixes
Minor grammatical fixes
Removal of trailing whitespace
Removal of tab characters
Removal of redundant semicolons (e.g. ; at end of a namespace)
std::move of constructor parameter passed by value (to avoid additional copies)
use of false literal instead of 0
Removal of redundant override keyword when used with final
use cassert and cstdint C++ headers as opposed to assert.h and stdint.h C headers in TaskScheduler.h

(The change does not include switching .cpp files to use nullptr instead of NULL, but I would happily do that 🙂 It also looks like RotateLeft is unused and could be removed).
I also am not sure what the comment...
// check if have tasks inside threadState change but before waiting

on line 1164 of TaskScheduler.cpp means exactly, if this could be rephrased in a separate change that would be great!
I won't be offended at all if you aren't interested in the changes (they're pretty much all superficial) or if you'd rather implement them yourself and not merge this PR that's also fine. I just thought I might as well share it in case it was useful as I was noodling around with this in my fork.
Thanks!

This is a lot in one PR so may take me some time to consider.
Note that cassert on windows includes yvals_core.h which is 2000 lines long on top of assert.h. cstdint is better, but still adds many more lines so I'm not in favour of swapping unless there's good reason to do so.

I can split it up and only include one part at a time, so don't worry about going through the whole thing right now. I'll close this one for now and open a separate one with only 1 set of changes per PR.


🔊 No need to log read_text return value

Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 28.02%. Comparing base (7d3317d) to head (39c8e55).
Report is 1 commits behind head on master.

Files with missing lines
Patch %
Lines

src/client.rs
0.00%
1 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #30   +/-   ##
=======================================
  Coverage   28.02%   28.02%
=======================================
  Files          23       23
  Lines         892      892
  Branches      892      892
=======================================
  Hits          250      250
  Misses        586      586
  Partials       56       56

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

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


4096 token budget thow error

Describe the bug
Gpt35 turbo endpoint dont accept 4000 tokens

go-openai version: [e.g. v1.12.0]
Go version: [e.g. 1.18]
OpenAI API version: [e.g. v1]
OS: [e.g. Ubuntu 20.04]

@seatext Please use the bug template correctly and provide detailed information.

@seatext  If you are not comfortable entering detailed information and would like to ask a question more casually, please ask it in the discussion.


Make the calibration utility more user friendly - based on modular-calibration

Rewritten features from https://github.com/luxonis/depthai/pull/840 on top of the modular-calibration branch.

[x] Add a settings GUI to complement the command line flags
[x] Try to auto detect the camera/board model

Actually capability to run on already captured dataset is missing.


feat(Websites): add loading spinner

Describe the changes you have made in this PR
Add loading spinner to websites page
Link this PR to an issue [optional]
Fixes #2210
Type of change

feat: New feature (non-breaking change which adds functionality)

Screenshots of the changes [optional]

How has this been tested?
Manually
Checklist

[x] My code follows the style guidelines of this project and performed a self-review of my own code
[x] New and existing tests pass locally with my changes
[x] I checked if I need to make corresponding changes to the documentation (and made those changes if needed)

@escapedcat @reneaaron fyi


Typo with Material Theming: Android Basics in Compose

URL of codelab
Material Theming with Jetpack Compose
In which task and step of the codelab can this issue be found?
Add typography - Download custom fonts - Step 8
Describe the problem
Original description:
8. In your font folder, rename Abril_Fatface.ttf to abril_fatface_regular.ttf.
Abril_Fatface.ttf is the wrong name, actually is "AbrilFatface-Regular.ttf"
So the 8th step will turn into
8. In your font folder, rename AbrilFatface-Regular.ttf to abril_fatface_regular.ttf.
Additional information

Hello @jacksonchen1998,
Thank you for reaching out to us. The typo is fixed and  republished:


undetected bug in Database class

In the process of adding the miniseed read methods to the Database class I found an unambiguous bug in the read_data method of Database.   This set of line is in the 230s (line numbers are mismatched because of my edits, but somewhere in that vicinity) spyder flagged as an error:
        if mode == "cautious":
            for k in md:
                if read_metadata_schema.is_defined(k):
                    col = read_metadata_schema.collection(k)
                    unique_key = self.database_schema[col].unique_name(k)
                    if not isinstance(md[k], read_metadata_schema.type(k)):
                        # try to convert the mismatch attribute
                        try:
                            insert_dict[k] = read_metadata_schema.type(k)(md[k])
                        except:
                            if self.database_schema[col].is_required(unique_key):
                                fatal_keys.append(k)
                                is_dead = True
                                log_error_msg.append("cautious mode: Required attribute {} has type {}, forbidden by definition and unable to convert".format(k, type(md[k])))

spyder correctly flags that insert_dict is not defined.   I recognize that as a relic from an earlier way of handling the issue this is section of code trying to handle.  I'm a bit reluctant to mess with this as there is some complexity in this section of code it would take me a while to sort out. I'm thinking one of you could fix this quickly and more efficiently.  If not, punt it back to me.

Good catch! I didn't notice this unambiguous bug before, which I think is a relic that is copy-pasted incorrectly. I have created a pull request for the fix. It just replaces the insert_dict[k] to md[k], which overwrites the attribute value if we could convert it to the correct type.


Stats config malformed

If stats is enabled, the bootstrap config is malformed and Envoy breaks, the error is here: https://github.com/heptio/contour/pull/381/files#diff-fc8f6c55803fdb62a73e2193807f8407R144

Closed by 34216bd


Bring back the email registration/account creation that was part of the HockeyApp

Describe the solution you'd like
The return of feature HockeyApp had where an invitee to test was given the option to register with an email like from their mobile device.
Describe alternatives you've considered
After asking AppCenter support about this, we were told this:
Hi, thanks for getting in touch! For now, if you want to create the App Center account. you have to use your social or MS account. But there is a workaround, you can still register HockeyApp account and HockeyApp account would be sync to App Center automatically. Note that, HockeyApp account can't be registered directly, so please invite users to your app and then people can register the HA account by the invitation email.
Not sure how long this workaround will be in place, but this doesn't sound like a sustainable solution. The better solution is to put back that feature that was part of HockeyApp.
Additional context
The current AppCenter solution for when someone receives an invite to test the App involves either a social media account or MS account to register. Prior to Microsoft's acquisition of HockeyApp, when someone received an invite to test an app they clicked the email link and created an account/registered their device with HockeyApp. Rather simple process. Now that we are in AppCenter, the invites our testers receive don't give them an option to register simply with the service, but to either use a Social media account or have an MS account. This is proving quite challenging for non-technical testers that want to test their app we built for them for approval before submitting to the stores. The MS accounts they have with their companies are not being recognized by AppCenter/Azure, so they can't login or they have to attempt logins multiple times in order to be miraculously recognized that they do have an MS account. It is also unreasonable to ask our clients to login with their Facebook accounts given business restrictions on Facebook usage at work and frankly they shouldn't be asked to login with their personal social media for something that is work related.

Seconded! We've been forced to explore other options that allow email based account creation.
@cogwurx Is your work around still in place? Im unable to find a valid url to the hockey app account creation page.

Same issue is highlighted in https://github.com/microsoft/appcenter/issues/190 & https://github.com/microsoft/appcenter/issues/1375 - @ScottArbeit Has this made it onto your roadmap?

Closing this as a duplicate of the above mentioned issues.


Remove cluster health-monitor.sh

health-monitor.sh will not be used in the code base after https://github.com/containerd/cri/pull/758.
However, we package it in the release tarball before, so there might be user using it. We decide to leave the script in the code base for one more release, and remove it in next release.
We should mention that health-monitor.sh will be deprecated in the 1.11 release note.

Included in https://github.com/containerd/containerd/pull/2656.
Move this out of the milestone. Let's remove this file in next release.


Spectral layout dimensions

Hello, thanks for making your code and dataset available!
I have a question about the file domain_generalization_cat_dog.py at line https://github.com/Weixin-Liang/MetaShift/blob/916421d572bde555615bfa71b2ff8f1da76ac8a3/dataset/domain_generalization_cat_dog.py#L222-L225
Can you please guide me how do you pick the dimension for the spectral layout? I wonder because I was changing the datasets and selecting less subsets which raised an error on the dimension number.
Thanks.

Thank you for your interest.
The following material on the graph spectral embedding might be useful:

Spectral Graph Theory
Lecture 11 (Mon 5/3): Graphs as matrices and the Laplacian of a graph. Interpretations of the largest and smallest eigenvectors/eigenvalues of the Laplacian. Spectral embeddings, and an overview of applications (e.g. graph coloring, spectral clustering.)

Lecture notes.

Lecture 12 (Wed 5/5): Spectral techniques, Part 2. Interpretations of the second eigenvalue (via conductance and isoperimetric number), and connections with the speed at which random walks/diffusions converge.

Lecture notes.

Basically, the spectral node embedding can be viewed as some kind of eigenvector. If the number of nodes is small, the rank of the graph Laplacian matrix would be small too. Therefore, there are fewer eigenvectors with non-zero eigenvalues.
So in short, if you want to increase the dimension of the spectral node embedding, maybe you need to consider having more nodes in the meta-graph.


gmsh Installation on Win10 users under domain

Installing python for all user may cause issue when importing gmsh as follows:
The gmsh installation as per the line command given in the manual works fine, but there is an issue when importing in python:

When the issue appears following steps from 4 on in the Manual will not be completed

To avoid this issue it may helps installing Python with the following options:

Verify that Python folder is not c:\Program Files\Python...


How to connect this with admin panel?

@dave-v  Can you provide an example how to connect this with admin panel? Also I am trying to inherit the model and add more fields to run that on user define schedule, any help would be appreciated.
Thanks

How do you mean? It should be integrated into your admin already if you install it correctly. You can take a look at the example directory in this repo for a minimal example project.


install error

pypexels requires Python '>=2.7, <3' but the running Python is 3.6.5
Nice job!

+1, need PYthon 3 features and this lib :<

This should be now fixed in the latest release, which is v1.0.0b2 (beta, v2).


winrm and sshd services delayed-auto start

delayed-auto takes 3 minutes to boot the VM. This is not acceptable when booting a fresh VM for CICD integration tests. When I set auto start for both of these services, the VM boots within 30 seconds and seems to work fine.
Provision scripts for winrm and sshd mention that using auto start is "unreliable". Could you elaborate whats unreliable about it? Do you think its possible to fix the underlying issue of this unreliability?
https://github.com/rgl/windows-vagrant/blob/master/provision-winrm.ps1#L48
https://github.com/rgl/windows-vagrant/blob/master/provision-openssh.ps1#L116

For my use-case of executing ad-hoc scripts using vagrant, when using auto, the scripts were immediately executed after windows boot, but they would fail due to something in Windows not being ready. The most pragmatic way to workaround this was to use delayed-start.

I've ran overnight pipelines using a VM with start changed from delayed-auto to auto. I've observed around 1 minute 40 seconds faster startup time for the VM. Also, for the last year, I've been observing that around 5-10% of jobs fail, because Windows VM can't be reached via SSH. Sometimes first few tests are failing, and then start passing. Other times, first few tests are passing, and after a certain point SSH stops working. While it could be an issue with my tests breaking the system and making SSH unavailable, I haven't observed this issue last night.
I'm gonna have some more data after the weekend (3 days of nightly pipelines).


reCaptcha triggers too frequently on Tor

Issue
I am a Tor (The onion router) user and reCaptcha triggers for me all the time which is making my life miserable as i have to pass the reCaptcha around 12x per day.
Proposed solution
Make reCaptcha less painful for people that care about their privacy.

This repo is for issues with the PHP client.


How we can use it in a project multilang Ar En?

Hi all thanks a lot, I am new to laravel I want to make site with two languages Arabic and English, how can I switch between using this package, thanks

This package will help you manage translations, not switch between languages in your UI.
You should read https://laravel.com/docs/5.5/localization
or this easy to follow tutorial: https://laracasts.com/discuss/channels/tips/example-on-how-to-use-multiple-locales-in-your-laravel-5-website


columns are misaligned depending on module positions top_right or top_left

The columns are misaligned depending if the module position is on left or right side  (e.g. top_right or top_left). Ideally there should be a CSS left justification somewhere in the DOM. (And right just for 3rd and last column.)
Also need column space when last seen not enabled/available.
Related to #29

The best solution is probably to add a CSS file, and make sure we have 3 columns.

@E3V3A - 1a89250 (on the develop branch) contains an initial fix for the alignment issues. Could you test and confirm it works as expected?
cd ~/MagicMirror/modules/MMM-NetworkScanner
git checkout --track origin/develop

Great! Yeah, that seem to work! :+1:

Thanks @E3V3A - v0.0.4 has been published - you may want to switch back to the master branch again:
cd ~/MagicMirror/modules/MMM-NetworkScanner
git checkout master


chore: Set up development environment

Summary:

Integrates Gradle.
Adds the skeleton generated by gradle init, which includes:

A dummy Kotlin file and its corresponding test file, to be removed when when we actually start implementing code.
The Gradle Wrapper (which comprises four files).

Adds GitHub Action to make sure Pull Request titles use semantic release (that is, that they start with chore:, feat: or fix:). This will allow us to generate changelogs automatically; see how it works in the JS repo.
Adds GitHub Action to run gradlew build and gradlew test to make sure that PRs won't break master.

Fixes #5

Cool. Thanks!


Fix descriptions in child commands of plugin

Summary
This PR fixes a typo in https://docs.mattermost.com/administration/command-line-tools.html#mattermost-plugin, which had the descriptions for mattermost plugin's child commands enable and disable swapped.

@agarciamontoro The child commands are actually ordered alphabetically.

@agarciamontoro The child commands are actually ordered alphabetically.

Oops, had swapped the wrong thing, then. Fixed in https://github.com/mattermost/docs/pull/3435/commits/d3ccb39aac3582726dfebb707a8f725c9dde9191.


How to run tests ?

Hi, thanks for amazing library
Can someone give advice how to run tests? cargo apk test don't work.

@mrazorvin What kind of tests do you intend on running? Cargo apk currently only supports building and running apks on a target device, there's no infrastructure to start and read back results from tests running on a remote device. Support for that is welcomed though!

@MarijnS95 thanks for the replay. Yep I want to run my tests on a remote device. I don't have enough experience in rust for now, to made a PR for this feature.
anyway I can always create separate package with my test and read output from adb

@mrazorvin It should be possible to compile #[test] applications with cargo-ndk (or the cargo apk build --tests "hack"), push that (output in ./target/<arch>-linux-android/deps/<name>-xxx) to an executable directory on the device, and run it from adb`:
discovery-mainline:/ # /data/adb/foo-c71b39f33d969693

running 1 test
test foobar ... FAILED

failures:

---- foobar stdout ----
Hello from test
thread 'foobar' panicked at 'Hah!', ndk-examples/lib.rs:4:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    foobar

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Keep in mind that this only works for CLI applications, if the tests need access to the Android activity lifecycle you inherently have to create a full Android app.


Networking Module - Team-member Spec & interface - 111701023

Spec for the following:

ICommunicator interface,
CommunicatorFactory class,
getPort and
subscribeForNotificatons functions.

Add Interface provided by Networking Module.

Closed in #42


[zeromq] Fix source path

Hi @Morten242, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Thanks!


Update 100_Numpy_exercises_with_solutions.md

Replaced np.array([[0,1],[1,0]]) with np.eye(2) in Task #21

您好，您的邮件我已收到，我会尽快回复您。

You're right. Only problem is that np.eye used float and the display is less nice. We would convert to int but it woudl defeat the purpose.


Chore/update react version

Pull requests for the following issues
https://github.com/whitphx/react-ymd-date-select/issues/82

@whitphx
Thanks for the review.
formik
formik maintenance is not active. Fixed a type error that occurred when using react18.
Please refer to the following ticket for more information.
https://github.com/jaredpalmer/formik/issues/3546
react-live-editor
Fixed a type error when using the editor.
It seems to have occurred because react-simple-code-editor moved from flowtype to typescript in version 0.11.1.
Default values were defined using the following code.
https://github.com/satya164/react-simple-code-editor/blob/v0.11.3/src/index.tsx#L106


document auth server api

potentially interesting: https://blog.logrocket.com/documenting-your-express-api-with-swagger/

I'm guessing this can be closed because the auth server no longer uses express...


A question for method poll(int limit) in RedissonBoundedBlockingQueue

As far as I know, when I put a value to the queue,it will check the size of queue,the value is maintained at the key named redisson_bqs:... ,if the redisson_bqs's value <=0,it won't put any more.
This is the command for method poll():
org.redisson.RedissonBoundedBlockingQueue#pollAsync()
local res = redis.call('lpop', KEYS[1]);if res ~= false then local value = redis.call('incrby', KEYS[2], ARGV[1]); redis.call('publish', KEYS[3], value); end;return res;
If it gets the value,  it will increment the value of redisson_bqs by 1.
The following is the command for method poll(int limit)
org.redisson.RedissonQueue#pollAsync(int)
local result = {};for i = 1, ARGV[1], 1 do local value = redis.call('lpop', KEYS[1]);if value ~= false then table.insert(result, value);else return result;end;end; return result;
It doesn't increment the value of redisson_bqs. When The number of times I put reaches the initial capacity, it won't put any more.

`@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = RedissonClientTest.class)
public class MyTest {
@Autowired
private RedissonClient redissonClient;

@Test
public void redissonTest() {
    RedissonBoundedBlockingQueue<Integer> cache = (RedissonBoundedBlockingQueue) redissonClient.getBoundedBlockingQueue("redissonPollTest");
    cache.trySetCapacity(10);
    //poll()
    System.out.println("result of offer()");
    for (int i = 1; i <= 10; i++) {
        cache.offer(i);
        System.out.println(String.format("i = %2s, size after offer is : %2s", i, cache.remainingCapacity()));
    }
    System.out.println("result of method poll() ====================================================================");
    for (int i = 1; i <= 10; i++) {
        cache.poll();
        System.out.println(String.format("i = %2s, size after poll() is : %2s", i, cache.remainingCapacity()));
    }

    System.out.println("\n\n");

    //poll(int limit)
    System.out.println("result of offer()");
    for (int i = 1; i <= 10; i++) {
        cache.offer(i);
        System.out.println(String.format("i = %2s, size after offer is : %2s", i, cache.remainingCapacity()));
    }
    System.out.println("result of method poll(int limit) ===========================================================");
    for (int i = 1; i <= 10; i++) {
        cache.poll(1);
        System.out.println(String.format("i = %2s, size after poll(int limit) is : %2s", i, cache.remainingCapacity()));
    }

}

}`
result of offer()
i =  1, size after offer is :  9
i =  2, size after offer is :  8
i =  3, size after offer is :  7
i =  4, size after offer is :  6
i =  5, size after offer is :  5
i =  6, size after offer is :  4
i =  7, size after offer is :  3
i =  8, size after offer is :  2
i =  9, size after offer is :  1
i = 10, size after offer is :  0
result of method poll() ====================================================================
i =  1, size after poll() is :  1
i =  2, size after poll() is :  2
i =  3, size after poll() is :  3
i =  4, size after poll() is :  4
i =  5, size after poll() is :  5
i =  6, size after poll() is :  6
i =  7, size after poll() is :  7
i =  8, size after poll() is :  8
i =  9, size after poll() is :  9
i = 10, size after poll() is : 10
result of offer()
i =  1, size after offer is :  9
i =  2, size after offer is :  8
i =  3, size after offer is :  7
i =  4, size after offer is :  6
i =  5, size after offer is :  5
i =  6, size after offer is :  4
i =  7, size after offer is :  3
i =  8, size after offer is :  2
i =  9, size after offer is :  1
i = 10, size after offer is :  0
result of method poll(int limit) ===========================================================
i =  1, size after poll(int limit) is :  0
i =  2, size after poll(int limit) is :  0
i =  3, size after poll(int limit) is :  0
i =  4, size after poll(int limit) is :  0
i =  5, size after poll(int limit) is :  0
i =  6, size after poll(int limit) is :  0
i =  7, size after poll(int limit) is :  0
i =  8, size after poll(int limit) is :  0
i =  9, size after poll(int limit) is :  0
i = 10, size after poll(int limit) is :  0

This bug has not been fixed yet, the capacity has only been reduced, not increased


"Include dependencies" option should display to the user what extra actions will be included

Moved from dataform-co/dataform-co#1407
/cc @BenBirt

Even if the "Include dependencies" option is not selected and the user explicitly selects many actions (which includes upstream dependent ones), it is very useful to see what will happen when starting a new run, also in the run history. So you can see what actions will / got executed in what order.

Tracking here: https://dataform.canny.io/feature-requests/p/show-what-actions-will-be-run-when-dependencies-are-included


STYLE: Apply black Python formatting.

Apply black command, with no command line parameters, to each Python file.
PR Checklist

[X] No API changes were made (or the changes have been approved)
[X] No major design changes were made (or the changes have been approved)
[X] Added test (or behavior not changed)
[X] Updated API documentation (or API not changed)
[X] Added license to new files (if any)
[X] Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
[X] Added ITK examples for all new major features (if any)

Don't forget an update to https://github.com/InsightSoftwareConsortium/ITK/blob/master/.git-blame-ignore-revs after this.


It's safe to implement Send for most of the types

I know this has been discussed before, but back then it was conflated with other topics. This issue is focused on Send.
@kenba, you've made sure that opencl3 is a safe wrapper around an OpenCL FFI. For example the types are not Copy or Clone to have these safety guarantees as good as possible. Following the Rust API Guidelines about interoperability, those types should then implement Send.
Let me take CommandQueue as an example. It is a struct with two fields, one is of type cl_command_queue, the other one is of type cl_uint. cl_uint is not of concern, as it is just a type alias for i32, which is already safe. The problem is cl_command_queue, which is a raw *mut c_void pointer. CommandQueue owns the pointer, so no one else outside of CommandQueue can manipulate it, once passed in. When using the library the pointer will stay around, you already built the library so that is the case. Given all these things, the CommandQueue qualifies as Send, hence can implement Send, despite having a raw (non-Send) pointer internally.
Another good read in regards to FFIs and Send is this answer on Stack Overflow.

@vmx please feel free to submit a pull request with Sends for the classes that you want to implement it.
However, I'm not convinced that Send should be implemented for Kernel, considering the comments in the OpenCL API.

However, I'm not convinced that Send should be implemented for Kernel, considering the comments in the OpenCL API.

Let's focus on that for now (before I do a PR), as I would want to implement Send for Kernel. I guess your concerns are about the Multiple Host Threads section, the core if it is:

clSetKernelArg, clSetKernelArgSVMPointer, clSetKernelExecInfo and clCloneKernel are safe to call from any host thread, and safe to call re-entrantly so long as concurrent calls to any combination of these API calls operate on different cl_kernel objects. The state of the cl_kernel object is undefined if clSetKernelArg, clSetKernelArgSVMPointer, clSetKernelExecInfo or clCloneKernel are called from multiple host threads on the same cl_kernel object at the same time.

With implementing Send it will still only possible for a single thread to access the cl_kernel object. It won't enable concurrent access/calls. For concurrent access by multiple threads you would need to implement Sync.
What Send enables you to do is, moving things off the main thread and do computations there. The main thread will loose its access to the object once it was sent to the other thread.

Thanks Volker. Since Send just enables you to move things off the main thread, you can implement it for whatever you want.

I went ahead an implemented Send for almost every struct. The only struct that doesn't implement is Send is cl_image_desc. I didn't spent time thinking about whether it could implement Send as I don't see great use of it being Send. I'd probably rather change the API so that it isn't even needed to be constructed when images are used (but that's surely out of scope for this PR).

@vmx has implemented Send for most of the types.


Get rid of opacity in the wave svgs

Recalculate the gradient colors to account for opacity.

@soapraj can you provide a screenshot or some more details? It's a bit vague :)

is it a matter of just taking the image from the design, and using the color picker to pick out the colors at the top and bottom of each wave? :)

I don't think so, because the gradients extend beyond the edges of the box.
I think what we wanna do is take the background color and mix it with opacity% of the gradient color on each end, and then make the gradients opaque.

@otakarhyps Thanks for having a look! The colors are defined in packages/core/src/layout/Page/PageThemeProvider.ts, and the SVGs themselves are inlined in packages/core/src/layout/Header/Waves.tsx.
It's probably best to hold off on this issue for now though, as there's some work in #1232 to change the gradients. Might actually be worth dealing with this issue in that work if you want @benjaminr?

Sure, @Rugvip, happy to include this work in the same PR.
So you want the inline stopOpacity out of waves.tsx SVG definitions and mixing into the PageThemeProvider gradient specs for the various page header themes?

@benjaminr The original goal here was actually to get rid of opacity all together, as it makes re-using the page theme colors a bit weird, and trickier to define your own page themes. I'm not sure if that makes sense with the new design or not. Gonna ask in that issue.

@katz95 should this still be open?

This doesn't apply anymore as we changed the shapes to be gradients from white to transparent. Effectively removing the colors out of the shapes so that only the background needs a color/color-gradient. Simplifies the implementation and lets you mix and match any background color with any shape.


Dead Repo?

I just stumbled across this repo and thought it would be cool to have a desktop application.
Alas upon seeing minimal contributions over the last few years and only one open issue, I was wondering if this is something that will still be developed? Or if development is even on the horizon.

We have a desktop app for mac with macos-wakatime and plan to revive this repo for Windows and Linux desktop apps in the future.


Common MDX errors problem/solution design pattern

Relates to: #1123
We'd like to have a general design pattern for how to write/phrase/display each entry on the common mdx errors page.
Each entry is a description of an error that occurred while processing an MDX file and some details about how to resolve that error.
As far as the resolution steps, development can generate the content for these entries, but dev is looking for guidance about best practices for presenting that information to the viewer.

Design file for MDX error patterns: https://www.figma.com/file/WyfqQh9R1VXYZErfmsNDVH/Platform_MDXerrors?node-id=317%3A11967
Best practices when writing about errors:
This paragraph can explain the error is and how to troubleshoot. Description should address the basic who, what, when, why and hows.
Who caused the issue? If the problem is our fault, how do they reach out to get more information and are there other options?
What happened & why did this happen? The more specific you can be about the error the better. Try and name exactly what happened and why—you can be as technical as needed since we now how room to explain what’s goinging on in the backend to cause this error.
When will this be solved? If this is an error from our end, let the user know when expect to problem to be solved.
What are the steps the users need to fix the problem? Again, the more specific you can be about how to exactly solve the problem the better. You can include any additional links that the user might need to troubleshoot.


Can't load SASS and CSS

Hi all!
I can not using "ExtractTextPlugin" for css and sass
I set
webpack.config.js
       {
          test: /\.sass$/,
          loaders: ExtractTextPlugin.extract(['style', 'css!sass'])
        },
        {
          test: /\.css$/,
          loaders: ExtractTextPlugin.extract({ fallbackLoader:'style', loader: 'css' })
        }

and
app.component.ts
styles: [
		require('../../bower_components/animate.css/animate.min.css').toString(),
		require('../../bower_components/k-flex/dist/css/k-flex.css').toString(),
		require('../../bower_components/font-awesome/css/font-awesome.min.css').toString(),
		require('../styles/main.sass').toString()
	]

and i run it still error
Uncaught Error: Expected 'styles' to be an array of strings. zone.js:129
Help me, thank so much

This works for me:
In webpack.config.js
     // all scss outside of src/ will be bundled in an external css file
      {
        test: /\.scss$/,
        exclude: root('src'),
        loader: isTest ? 'null' : ExtractTextPlugin.extract({fallbackLoader: 'style', loader: 'css?sourceMap!postcss!sass'})
      },
      // all scss required in src/app files will be merged in js files
      {
        test: /\.scss$/,
        include: root('src'),
        loaders: ['raw-loader', 'sass-loader']
      },

and in my app.component.ts file
@Component({
  selector: 'app-root',
  template: require('./app.component.html'),
  styles: [require('./app.scss')],
  encapsulation: ViewEncapsulation.None,
})

The ViewEncapsulation isn't necessary.  I use it for a global look and feel in my app.

Please re-open at Stack Overflow. Thanks.


Firebase Auth: We need to upgrade package with new changes made in Facebook Login for iOS

Is there an existing issue for this?

[X] I have searched the existing issues.

Which plugins are affected?
Auth
Which platforms are affected?
iOS
Description
I am integrating my app with Facebook login but facing a problem in iOS version which is greater than 17.0. The login get failed.
Getting error : Firebase Auth error: [firebase_auth/invalid-credential] {"code":190,"message":"Invalid OAuth access token - Cannot parse access token"}
Reproducing the issue
Future<UserCredential> _signInWithFacebook(BuildContext context) async {
    // TODO - New code to check
    final FacebookLogin plugin = FacebookLogin(debug: false);

    await plugin.logIn(
        permissions: [
      FacebookPermission.publicProfile,
      FacebookPermission.email,
    ]);

    final accessToken = await plugin.accessToken;
    FacebookUserProfile? profile;

    if (accessToken != null) {
      profile = await plugin.getUserProfile();
      if (accessToken.permissions.contains(FacebookPermission.email.name)) {
        final email = await plugin.getUserEmail();
      }
      final imageUrl = await plugin.getProfileImageUrl(width: 100);
    }
    ////////////

    FacebookAuthProvider facebookProvider = FacebookAuthProvider();
    if (kIsWeb) {
      facebookProvider.addScope('email');
      facebookProvider.setCustomParameters({
        'display': 'popup',
      });

      return _firebaseAuth!.signInWithPopup(facebookProvider);
    }

    // Create a credential from the access token
    final OAuthCredential facebookAuthCredential =
        FacebookAuthProvider.credential(accessToken?.token ?? '');
    // Once signed in, return the UserCredential
    // return FirebaseAuth.instance.signInWithCustomToken(accessToken?.token??'');
    return FirebaseAuth.instance.signInWithCredential(facebookAuthCredential);
  }

The above is worked well for android and iOS device which ios version is less than 17, but we need to upgrade Facebook sign for iOS 17.o and greater.
Here is a url of blog. https://developers.facebook.com/blog/post/2024/03/28/changes-made-to-fb-login-sdk/
Firebase Core version
2.30.1
Flutter Version
3.19.5
Relevant Log Output
flutter: [FB] Result: {error: null, status: Success, accessToken: {authenticationToken: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImVjMTFkNTAzNDFjMDhlODI4OTk2NTBlNmFmY2M2NjY4ZjJhMGE0MjAifQ.eyJpc3MiOiJodHRwczpcL1wvd3d3LmZhY2Vib29rLmNvbSIsImF1ZCI6IjE1NTUyNTg3NTg2NTUzMzIiLCJzdWIiOiIxMjIxMzkwNjc4ODYxNzU1OTkiLCJpYXQiOjE3MTQxNzYyODksImV4cCI6MTcxNDE3OTg4OSwianRpIjoiSlZhcS42Zjc0N2I2OGI1MjkyYzQyOWFhOGUxMzJlY2NmNjk3YjVmMTc0M2Y0ZGRlMTMwNmE5MmRmODUzZjA1NTNlYjZjIiwibm9uY2UiOiJFQjlFQ0IwMi00ODFELTQyQTItOUE1MC1FOEI0RUQ3M0NGODUiLCJhdF9oYXNoIjoiajRKSzB3S2FDSHRldGd4aGRGd2gtZyIsImVtYWlsIjoiamFoYW52aVx1MDA0MGJhcmFnYXVuLmNvbSIsImdpdmVuX25hbWUiOiJKYWhhbnZpIiwiZmFtaWx5X25hbWUiOiJWeWFzIiwibmFtZSI6IkphaGFudmkgVnlhcyIsInBpY3R1cmUiOiJodHRwczpcL1wvc2NvbnRlbnQuZmRlbDgtMi5mbmEuZmJjZG4ubmV0XC92XC90MS4zMDQ5Ny0xXC84NDYyODI3M18xNzYxNTk4MzAyNzc4NTZfOTcyNjkzMzYzOTIyODI5MzEyX24uanBnP3N0cD1jMjkuMC4xMDAuMTAwYV9jcDBfZHN0LWpwZ19lMTVfcDEwMHgxMDBfcTY1Jl9uY19jYXQ9MSZjY2I9MS03Jl9uY19zaWQ9NWYyMDQ4JmVmZz1leUpwSWpvaWRDSjkmX25jX29oYz1CVlM2QW<…>
flutter: [FB] User profile: {lastName: Vyas, middleName: Jahanvi, userId:<PHONE_NUMBER>86175599, name: Jahanvi Vyas, firstName: Jahanvi}
flutter: [FB] User email<EMAIL_ADDRESS>flutter: [FB] Profile image url: https://scontent.fdel8-2.fna.fbcdn.net/v/t1.30497-1/84628273_176159830277856_972693363922829312_n.jpg?stp=c<IP_ADDRESS>a_cp0_dst-jpg_e15_p100x100_q65&_nc_cat=1&ccb=1-7&_nc_sid=5f2048&efg=eyJpIjoidCJ9&_nc_ohc=BVS6Ae2-uyAQ7kNvgHEo4RD&_nc_oc=AdhEHeY3YZ9W-SomsGZUHYPhA5UxCD2iN296IXccqohR-pI0LCp3rB95NvhQrXFkkB8&_nc_ht=scontent.fdel8-2.fna&oh=00_AfBVJ1TElKJMGoMenXc_CKJRACuWfhY00dXvycsxQy8TMA&oe=6653A6D9
flutter: App inactive
flutter: App resumed
flutter: Firebase Auth error: [firebase_auth/invalid-credential] {"code":190,"message":"Invalid OAuth access token - Cannot parse access token"}

Flutter dependencies
name: mm_flutter_app
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1

environment:
  sdk: ">=3.2.3 <4.0.0"
  flutter: 3.19.5

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  badges: ^3.1.1
  collection: ^1.17.1
  crop_image: ^1.0.12
  cross_file: ^0.3.3+8
  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  desktop_drop: ^0.4.4
  device_info_plus: ^9.1.2
  devicelocale: ^0.7.0
  dio: ^5.0.1
  dots_indicator: ^3.0.0
  dotted_border: ^2.1.0
  email_validator: ^2.1.17
  expandable: ^5.0.1
  file_picker: ^8.0.0+1
  firebase_auth: ^4.19.4
  firebase_core: ^2.30.1
  firebase_crashlytics: ^3.5.4
  firebase_messaging: ^14.9.1
  flutter_dotenv: ^5.0.2
  flutter_image_compress: 2.0.4
  flutter_linkify: ^6.0.0
  flutter_localizations:
    sdk: flutter
  flutter_markdown: ^0.6.18
  flutter_native_timezone: ^2.0.0
  flutter_rating_bar: ^4.0.1
  flutter_swipe_action_cell: ^3.1.2
  flutter_typeahead: ^5.2.0
  font_awesome_flutter: ^10.3.0
  go_router: ^13.2.1
  google_fonts: ^6.1.0
  google_sign_in: ^6.2.1
  gql: ^1.0.0
  gql_transform_link: ^1.0.0
  graphql_codegen: ^0.13.5
  graphql_flutter: ^5.1.2
  grouped_list: ^5.1.2
  http: ^1.1.0
  image: ^4.1.7
  intl: any
  local_auth: ^2.1.6
  logger: ^2.0.2+1
  mocktail: ^1.0.1
  package_info_plus: ^4.2.0
  path: ^1.8.3
  path_provider: ^2.1.2
  phone_numbers_parser: ^8.1.0
  provider: ^6.0.5
  retry: ^3.1.2
  shared_preferences: ^2.0.17
  textfield_tags: ^3.0.1
  tuple: ^2.0.2
  url_launcher: ^6.1.12
  uuid: ^4.3.3
  image_picker: ^1.0.8
  permission_handler: ^11.3.1
#  flutter_facebook_auth: ^6.2.0
  carousel_slider: ^4.2.1
  cached_network_image: ^3.3.1
  flutter_login_facebook: ^2.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  # TODO: commenting integration test as some of dependencies are not compatible
  # integration_test:
  #   sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^3.0.1
  analyzer: 6.2.0

  # widgetbook: ^2.4.1
  # widgetbook_annotation: ^2.1.0
  # widgetbook_generator: ^2.4.1
  build_runner: ^2.3.3
  flutter_launcher_icons: ^0.13.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# https://pub.dev/packages/flutter_launcher_icons
flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon/icon.png"
  min_sdk_android: 21 # android min sdk min:16, default 21
  web:
    generate: true
    image_path: "assets/icon/iconcircle.png"
    background_color: "#hexcode"
    theme_color: "#hexcode"
  windows:
    generate: true
    image_path: "assets/icon/iconcircle.png"
    icon_size: 48 # min:48, max:256, default: 48
  macos:
    generate: true
    image_path: "assets/icon/iconcircle.png"
# The following section is specific to Flutter packages.
flutter:
  # Ensures that the translated files are generated
  generate: true
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/images/
    - assets/icon/
  # assets:
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

Additional context and comments
https://developers.facebook.com/blog/post/2024/03/28/changes-made-to-fb-login-sdk/

same issue in my unity game.
Unity: 2021.3.37f1
Firebase SDK: 10.2.0
Facebook SDK: 17.0.0
Error Message:
SignInWithCredentialAsync encountered an error: System.AggregateException: One or more errors occurred. (One or more errors occurred. (Bad access token: {"code":190,"message":"Malformed access token"}))

@owllyi Have you find any solution?

Hello @RaghvindYadav,
Thank you for reporting this issue. Based on the link you shared, it appears that the problem may not be related to FlutterFire but rather to the Facebook SDK plugin you are using. Did I understand that correctly? If so, you might consider opening an issue in their respective repository to get further assistance.

Hi @TarekkMA
May be you are right but I am getting failed error at this line of code return FirebaseAuth.instance.signInWithCredential(facebookAuthCredential);
And FirbaseAuth comes form firebase_auth package.

I will attempt to reproduce this issue. In the meantime, you might find it helpful to look at a similar issue reported with the Facebook SDK here: facebook-ios-sdk issue #2365. This may provide some insights into the problem you are encountering. Additionally, I suspect that FlutterFire may not be responsible for this error, but I will confirm this as I investigate further.

Hi @RaghvindYadav,
The issue is due to the Facebook SDK/plugin. As mentioned here we need to get the nonce. We'll need a plugin that supports limited login to utilize this updated code snippet:
final provider = const OAuthCredential(
  providerId: 'facebook.com',
  signInMethod: 'facebook.com',
  idToken: accessToken.token,
  rawNonce: rawNonce,
);

@owllyi Have you find any solution?

#if UNITY_ANDROID
credential = Firebase.Auth.FacebookAuthProvider.GetCredential(accessToken);
#elif UNITY_IOS
var authToken = FaceBookManager.Instance.GetToken();
var nonce = FaceBookManager.Instance.GetNonce();
credential = Firebase.Auth.OAuthProvider.GetCredential("facebook.com", authToken, nonce, null);
#endif

@TarekkMA I did the above you mentioned, still getting the same error. Also use a new package https://pub.dev/packages/flutter_facebook_auth/versions/7.0.0-dev.3/changelog#700-dev3

Thank you @TarekkMA, I used that package but still persisting with same problem. Now accessToken looks quite different than previous response.

I've looked into the new package, can you try using this instead and let me know if it works:
      final AccessToken accessToken = result.accessToken!;

      final AuthCredential credential;

      switch (accessToken.type) {
        case AccessTokenType.classic:
          final token = accessToken as ClassicToken;
          credential = FacebookAuthProvider.credential(token.authenticationToken!,);
          break;
        case AccessTokenType.limited:
          final token = accessToken as LimitedToken;
          credential = OAuthCredential(
            providerId: 'facebook.com',
            signInMethod: 'oauth',
            idToken: token.tokenString,
            rawNonce: token.nonce,
          );
          break;
      }

      // Login with token
      await auth.signInWithCredential(credential);

We might need to add a new option in the future for limited login so it can be just FacebookAuthProvider.limitedCredential(....)

@TarekkMA AccessTokenType.limited getting this error for now  Firebase Auth error: [firebase_auth/missing-or-invalid-nonce] The nonce in ID Token "C7D21692-B861-4E45-A912-DB9F4502AA2B" does not match the SHA256 hash of the raw nonce "C7D21692-B861-4E45-A912-DB9F4502AA2B" in the request.
If I changed this parameter signInMethod: 'oauth' to signInMethod: 'facebook.com', then app get crashed.

I can reproduce this error, I guess the signInMethod should be oauth for it to work, since signInMethod: 'facebook.com' will not use nonce, or the idToken.
/cc @Lyokone

@owllyi  does your implementation work?
var authToken = FaceBookManager.Instance.GetToken();
var nonce = FaceBookManager.Instance.GetNonce();
credential = Firebase.Auth.OAuthProvider.GetCredential("facebook.com", authToken, nonce, null);
Would be interesting how your facebook-login implementation looks like. I got this error:
The nonce in ID Token "xxx" does not match the SHA256 hash of the raw nonce "xxx" in the request
Do you use the hashed nonce or raw nonce in
FB.Mobile.LoginWithTrackingPreference method?

@owllyi does your implementation work?
var authToken = FaceBookManager.Instance.GetToken(); var nonce = FaceBookManager.Instance.GetNonce(); credential = Firebase.Auth.OAuthProvider.GetCredential("facebook.com", authToken, nonce, null);
Would be interesting how your facebook-login implementation looks like. I got this error: The nonce in ID Token "xxx" does not match the SHA256 hash of the raw nonce "xxx" in the request
Do you use the hashed nonce or raw nonce in FB.Mobile.LoginWithTrackingPreference method?

Found a solution. This is what I found in firebase documentation:
"You will send the SHA-256 hash of the nonce with your sign-in request, which Facebook will pass unchanged in the response. Firebase validates the response by hashing the original nonce and comparing it to the value passed by Facebook."
Facebook-Login:
string rawNonce = Nonce.GetNonce() // custom class that will create a nonce
string hashedNonce = HashUtils.Sha256(rawNonce); // custom class that will hash the rawNonce
FB.Mobile.LoginWithTrackingPreference(LoginTracking.LIMITED, scopes, hashedNonce, HandleResult);
Firebase Credentials:
Credentials credential = Firebase.Auth.OAuthProvider.GetCredential("facebook.com", authToken, rawNonce, null);
// authToken - the token you will get from facebook response
// rawNonce - nonce you created in the previous step

I'm having this issue too with Flutter on IOS.  The same code worked less than two months aga.  The problem only occurs for me on IOS, not on Android.

after reading this thread I tried it on iphone 14 running iOS 16.4 in IOS Emulator.  It works there.  In iOS 17.4 it fails.

Workaround (downgrade facebook sdk version):

in pubspec.yaml replace
flutter_facebook_auth: ^6.0.3
to
flutter_facebook_auth: 6.0.3

flutter clean (not necessary, in my case worked without it)
3) Delete folders:
/ios/Pods/FBAEMKit
/ios/Pods/FBSDKCoreKit
/ios/Pods/FBSDKCoreKit_Basics
/ios/Pods/FBSDKLoginKit
(also can delete all folder /ios/Pods)
4)
Delete /ios/Podfile.lock
5)
flutter pub get
6)
from inside ios folder: pod install
After this works on physical device iPhone 11 iOS 17.4.1

Firebase Auth iOS has documentation on how to login with limited login here: https://firebase.google.com/docs/auth/ios/facebook-login#implement_facebook_limited_login
The difference is, they create a nonce,  and send a SHA-256 hash of the nonce to FacebookAuth, whilst passing in the raw nonce to firebase_auth OAuthCredential which you use to signInWithCredential():
OAuthCredential credential = OAuthCredential(
    providerId: 'facebook.com',
    signInMethod: 'oauth',
    idToken: token.tokenString,
    rawNonce: rawNonce,
  );

The above will work for limited login if you set it up correctly.

Any update on this? I have the same issue.

Workaround (downgrade facebook sdk version): 1) in pubspec.yaml replace flutter_facebook_auth: ^6.0.3 to flutter_facebook_auth: 6.0.3 2) flutter clean (not necessary, in my case worked without it) 3) Delete folders: /ios/Pods/FBAEMKit /ios/Pods/FBSDKCoreKit /ios/Pods/FBSDKCoreKit_Basics /ios/Pods/FBSDKLoginKit (also can delete all folder /ios/Pods) 4) Delete /ios/Podfile.lock 5) flutter pub get 6) from inside ios folder: pod install
After this my old code works on physical device iPhone 11 iOS 17.4.1

I found the workaround provided by @usilitel to work on IOS emulators and physical devices up to IOS 17.4.1.  I haven't tried the method presented by @russellwheatley thus far, but if there are any thoughts as to "why?" downgrading works and the current version doesn't, and how if at all it relates to the issue described by  @russellwheatley that would be of tremendous assistance.  Thank you both though.

This worked for me:
`String sha256ofString(String input) {
final bytes = utf8.encode(input);
final digest = sha256.convert(bytes);
return digest.toString();
}
String generateNonce([int length = 32]) {
final charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-.';
final random = Random.secure();
return List.generate(length, () => charset[random.nextInt(charset.length)]).join();
}
Future signInWithFacebook() async {
// Trigger the sign-in flow
final rawNonce = generateNonce();
final nonce = sha256ofString(rawNonce);
final result = await FacebookAuth.instance.login(
loginTracking: LoginTracking.limited,
nonce: nonce,
);
if (result.status == LoginStatus.success) {
print('${await FacebookAuth.instance.getUserData()}');
final token = result.accessToken as LimitedToken;
// Create a credential from the access token
OAuthCredential credential = OAuthCredential(
providerId: 'facebook.com',
signInMethod: 'oauth',
idToken: token.tokenString,
rawNonce: rawNonce,
);
await FirebaseAuth.instance.signInWithCredential(credential);
}
}`

This worked for me:
String sha256ofString(String input) {
  final bytes = utf8.encode(input);
  final digest = sha256.convert(bytes);
  return digest.toString();
}

String generateNonce([int length = 32]) {
  final charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-.';
  final random = Random.secure();
  return List.generate(length, () => charset[random.nextInt(charset.length)]).join();
}

Future signInWithFacebook() async {
// Trigger the sign-in flow
  final rawNonce = generateNonce();
  final nonce = sha256ofString(rawNonce);
  final result = await FacebookAuth.instance.login(
    loginTracking: LoginTracking.limited,
    nonce: nonce,
  );
  if (result.status == LoginStatus.success) {
    print('${await FacebookAuth.instance.getUserData()}');
    final token = result.accessToken as LimitedToken;
// Create a credential from the access token
    OAuthCredential credential = OAuthCredential(
      providerId: 'facebook.com',
      signInMethod: 'oauth',
      idToken: token.tokenString,
      rawNonce: rawNonce,
    );
    await FirebaseAuth.instance.signInWithCredential(credential);
  }
}


feat: add C implementation for math/base/special/bernoulli

Resolves #1664
Description

What is the purpose of this pull request?

This pull request:

adds C implementation for math/base/special/bernoulli.

Related Issues

Does this pull request have any related issues?

This pull request:

resolves a part of #649
fixes #1664

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

☑ Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

Since there was inactivity on #1664 due to a dependency's C implementation not being done, and all its dependencies' C installation are done now, so I've made this PR.

I have made the changes as per your suggestions. Thanks for pointing them out !


reg_loss is nan

学长您好，我在训练时reg_loss总是会出现nan的情况，导致训练终止。看之前的issue说计算riou那里出现了问题，我看了一下好像您也已经修复了。我没能找出问题所在，想请教一下您。

.../libs/detection_oprations/refinebox_target_layer_without_boxweight.py:44: RuntimeWarning: invalid value encountered in greater_equal
positive_indices = max_overlaps >= pos_threshold
../libs/detection_oprations/refinebox_target_layer_without_boxweight.py:45: RuntimeWarning: invalid value encountered in greater
ignore_indices = (max_overlaps > neg_threshold) & ~positive_indices
2021-02-01 17:26:28: global_step:17360  current_step:17360
per_cost_time:0.731s
total_losses:nan
refine_reg_loss:0.000
refine_cls_loss:0.012
cls_loss:1.171
reg_loss:nan
refine_reg_loss_stage3:0.000
refine_cls_loss_stage3:0.011
mask_loss:0.000
2021-02-01 17:26:29.490621: W tensorflow/core/kernels/queue_base.cc:277] _2_get_batch/batch/padding_fifo_queue: Skipping cancelled enqueue attempt with queue not closed
2021-02-01 17:26:29.494105: W tensorflow/core/kernels/queue_base.cc:277] _0_get_batch/input_producer: Skipping cancelled enqueue attempt with queue not closed
2021-02-01 17:26:29.494262: W tensorflow/core/kernels/queue_base.cc:277] _2_get_batch/batch/padding_fifo_queue: Skipping cancelled enqueue attempt with queue not closed

使用yangxue0827/RotationDetection下的r3det试试吧，我最近都没有遇到过这个问题。


docs: correct the dominator of memory and examples in resource-durati…

Motivation
The dominator of memory should be 100Mi instead of 1Gi. Source code
Modifications

Fix the wrong examples in the document
Remove "Rounding Down" section, because it's not likely to happen

Verification
These changes are consisitent with the source code.

@agilgur5 Can help me review this?

Oops feel free to submit follow up PR!

Followed up in #11449


Too much log records during deployment

Spring and Hibernate logs should be reconfigured in logger config to at least level >= INFO

Number of logs during BUILDING decreased. Tomcat is responsible for logging during DEPLOYMENT so it needs to edit conf/logging.properties


Syntax Error

options = {
	defaultProtocol: 'http:',
	normalizeProtocol: true,
	forceHttp: false,
	forceHttps: false,
	stripAuthentication: true,
	stripHash: false,
	stripWWW: true,
	removeQueryParameters: [/^utm_\w+/i],
	removeTrailingSlash: true,
	removeDirectoryIndex: false,
	sortQueryParameters: true,
	...options
};

What is it the string ...options? It is a cause if critical error in  Edge browser.  Can you remove  it from the code?

Check out https://github.com/Polymer/tools/issues/173. Rather frustrating.

This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: https://github.com/sindresorhus/ama/issues/446
If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.
If you use Create React App, upgrade to Create React App v2. It supports automatic transpilation of dependencies, which will make this package just work.


chore: reset hugegraph version to 1.2.0

Purpose of the PR
Subtask of https://github.com/apache/incubator-hugegraph/issues/2265.
For the convenience of releasing HugeGraph version 1.2.0, this PR includes the following changes:

Unified the version number (revision) to 1.2.0
Copied the build artifacts to the project root for better user experience
Added README (draft) in the three submodules

Main Changes

Verifying these changes

[ ] Trivial rework / code cleanup without any test coverage. (No Need)
[ ] Already covered by existing tests, such as (please modify tests here).
[x] Need tests and can be verified as follows:

CI

Does this PR potentially affect the following parts?

[ ]  Nope
[ ]  Dependencies (add/update license info)
[x]  Modify configurations
[ ]  The public API
[ ]  Other affects (typed here)

Documentation Status

[ ]  Doc - TODO
[ ]  Doc - Done
[x]  Doc - No Need

@imbajin @simon824 PTAL~


Create tr_TR.json

Turkish

Hi @WhiteSymmetry,
Thanks a lot for your contribution, I'll try to take a closer look at your PR tonight to merge it!
It looks good so far!

Your PR have been merged! Thanks for your contribution!


Pruning and container changes for new DEPS inclusions

This PR makes a few changes in response to the migration of more Chromium binaries to DEPS:

The Cirrus download cache is now removed.  The container requires enough space to create a tar file of the cache directory in addition to what we already have in there.  We rarely have any cache hits in practice and the time required to create and upload the cache archive spends more time than it saves.  This should keep our container from running out of memory until the tarball + source grows another ~5GB.
The contingent paths have been updated to remove some obsolete paths and include all of the current GCS paths.
A new flag, --sysroot, has been added that allows specifying a sysroot to be kept/downloaded.
This is available for utils/prune_binaries.py which will skip pruning the path for the sysroot.
The flag is also available for utils/downloads.py which will extract the sysroot when used in conjunction with --skip-unused.  The Chromium tarballs only contain sysroots for amd64 and i386, so those are the only options available.
The cloning script has more sysroot architectures available which may be helpful for cross-compilation.
A new flag, --keep-contingent-paths, has been added to the pruning script which will skip pruning the contingent paths.  This should be useful for builds that require Google toolchain binaries while still pruning the rest.
I've also included a commit to add some more entries to the OS options for the github bug report template.

Sorry for the pings, but I know this would affect some of your workflows.

Sysroots:
@rany2 and any others using a sysroot.  Rather than leaving the sysroot paths intact but with missing binaries they will now be fully removed unless the --sysroot flag is supplied.  For example, passing --sysroot amd64 to the clone/download script will download/extract the amd64 sysroot and passing the same flag to the pruning script will prevent it from being pruned.
--keep-contingent-paths:
@alienbob This flag should hopefully maintain everything you need for your build.  This will also keep the sysroots in place.
Path changes:
@teeminus @Cubik65536, The third_party/llvm-build/Release+Asserts path will now be pruned, so if that isn't automatically created by the build scripts then you may have to create the directory before using it.
@rany2 This should now remove the third_party/llvm-build as well.

Do I need the sysroot parameter?
INFO: Running gsync
  File "c:\ucw\build\src\uc_staging\depot_tools\gclient.py", line 825
    if not f'{self._get_option('sysroot', 'None')}-sysroot' in name:
                                ^^^^^^^
SyntaxError: f-string: unmatched '('

Thanks, I have pulled this PR and am building again with the new parameter. So far, so good (ninja step 6164 of 61217).

... and thanks for adding Slackware to the Bug report OS dropdown ;-)

--keep-contingent-paths is very helpful, thanks!

Compilation finished without problems on windows.

Sorry for the late response, but the issue mentioned here (Unable to find libclang issue) came back, the bindgen compiling script used to solve the problem was not touched, and I don't think that third_party/llvm-build/Release+Asserts is the issue because everything else works file as far as I can tell, what else could influence this?
For now, the build_bindgen.py is executed right after ./tools/gn/bootstrap/bootstrap.py -o out/Default/gn --skip-generate-buildfiles, before ./out/Default/gn gen out/Default --fail-on-unused-args.

Were you using a clone or the tarball for the build when that happens?  Do you recall what you had tried setting LIBCLANG_PATH to when the problem happened previously?  Maybe that just needs to be set to a different path.  Do you also have llvm installed with brew?  I wonder if it's picking up the wrong one.

Were you using a clone or the tarball for the build when that happens? Do you recall what you had tried setting LIBCLANG_PATH to when the problem happened previously? Maybe that just needs to be set to a different path. Do you also have llvm installed with brew? I wonder if it's picking up the wrong one.

I was using a clone when building the bindgen...
I didn't set LIBCLANG_PATH to anything at the end as setting it in terminal changes nothing and it was handled by the build_bindgen script. Still remains the same when I try to build now.
I'll check if it picked up the wrong LLVM later.

As far as I can tell, it used the right LLVM, and 127.0.6533.72 compiles just fine without any changes...

Were you using --keep-contingent-paths?  Maybe something being pruned is causing the problem.

Were you using --keep-contingent-paths? Maybe something being pruned is causing the problem.

No I was not, and 96d8e277e52503ca28bdbb34729be64723ece6ad is compiling fine right now with nothing changed, I'll just see if it fails at some point later, or it just magically fixed itself (maybe).

Were you using --keep-contingent-paths? Maybe something being pruned is causing the problem.

I tried --keep-contingent-paths once but it was not working, however it seems that it is working now for some reason (compiling [38851/61580]), I'll keep watching it.

Maybe it's the same problem I experienced where compiling previously working releases again which the failed. My problem has been solved now without me changing anything. Maybe it's the same for you...

Nevermind, I just found out that I need an older version of GN I hardcoded to the clone script for test purposes.

Oh interesting!  I hadn't considered that gn could be the issue.  It turns out that the latest commit was the culprit (in your case at least):
https://gn.googlesource.com/gn/+/0ee833e823f2e11be136728169906d0710bee910^!/
They haven't updated the code to account for that change yet, but the revision in the current DEPS should work at least:  https://source.chromium.org/chromium/chromium/src/+/refs/tags/127.0.6533.88:DEPS;l=512
@Cubik65536 I hope we can eventually work out the paths that are most commonly needed so we can whitelist them.  That way most people won't have to set that flag.
I'm about to go on a vacation in a couple days so I probably won't be able to dig into this much more until after next week, but I'll keep poking around to see what other info I can find out.

The .88 tarball uses gn version b3a0bff47dd8. Manually checking out that version fixed the windows build.
But there is an other issue with this PR. The checkout and the tarball now differs significantly which leaves some paths not being pruned (like the rust bin dir). This might cause issues on other platforms (like it did on windows as the python tried to execute the Linux rustc).