text:
implement SpendN, OutputN actions

Suggestion from @hdevalence:

it would be useful to work out how much space saving we could get by having Spend2 and Output2 actions

Similarly for Spend2, Spend4, etc.
Edit: Based on the results below, it makes sense to implement SpendN, OutputN actions where the smallest N is 2. These actions will replace Spend and Output. This makes sense to begin once the Groth16 proofs are implemented.

SpendN
Costs in size per Spend:

1 proof (iirc Groth16 proofs are constant size, and I believe are 3 group elements so let’s say 96 bytes)
1 auth signature = 64 bytes
1 balance commitment = 32 bytes
1 nullifier = 32 bytes
1 rk = 32 bytes
Total cost: 256 bytes for a single Spend

For what follows I assume we share the rk, auth sig, and proof between the N spends.
Cost for a Spend2:

Shared proof, auth signature, and rk: 192 bytes total
2 nullifiers = 64 bytes
2 balance commitments = 64 bytes
Total cost: 320 bytes

So there is a 2(256) - 320 = 192 byte saving using Spend2.
Generalizing, the cost in bytes for a SpendN = 192 + N * (64).
OutputN
Costs per Output:

1 proof, 96 bytes
Note commitment = 32 bytes
Ephemeral public key = 32 bytes
Encrypted note = 168 bytes
Balance commitment =  32 bytes
ovk_wrapped_key = 48 bytes
wrapped_memo_key = 48 bytes
Total cost: 456 bytes

Cost per Output2:

Shared proof, 96 bytes
Rest of stuff is the same, basically a 96 bytes save
Total cost: 816 bytes

So there is a 2(456) - 816 = 96 byte savings using Output2.
General cost in bytes for an OutputN = 96 + 360 * N.

2 balance commitments

Do we need multiple balance commitments? Since the balance commitments can commit to arbitrary value vectors, I think we could have just one per action, committing to the sum of all of the spends and outputs.

ah true! I've updated the calculations above to only use a single balance commitment per ActionN and corrected the size of a Groth16 proof (each proof is two G1 elements (48 bytes compressed), one G2 element (96 bytes compressed), which are 192 bytes in total). Here's a plot showing the savings of ActionN over N actions in bytes:

Savings are better for the spends, for N=16 we get a savings of 4800 bytes for spends, 3360 bytes for outputs.

We should backburner this until after we have fee mechanics, which would inform our choices about what's worth implementing. But it seems likely that we'll get more upside out of SpendN than OutputN, because high-arity spend statements allow more economically sweeping dust value.

We won't be doing this because we're already partway through our proof ceremony.

authors: hdevalence redshiftzero

repo: penumbra-zone/penumbra


text:
Deprecated options in cometbft config template

Describe the bug
Recent smoke test runs showed
I[2023-10-03|21:23:02.579] deprecated usage found in configuration file usage="[fastsync] table detected. This section has been renamed to [blocksync]. The values in this deprecated section will be disregarded."
I[2023-10-03|21:23:02.579] deprecated usage found in configuration file usage="fast_sync key detected. This key has been renamed to block_sync. The value of this deprecated key will be disregarded."

This key is generated as part of pd's config generation mechanism.

Good call. I've generated a new default cometbft config via cometbft init and diffed against ours. The changes we want to pull in are pretty obvious, as are the exceptions.

Looked into this some more. Turns out we can't perform the rename because tendermint-config hardcodes fastsync, so in order for us to leverage the strong typing of the config (#1827), we must have that key in config. I filed an upstream issue https://github.com/informalsystems/tendermint-rs/issues/1368. For now, I'll kick this into future queue so we can follow up later.

source: gharchive/issue

authors: conorsch hdevalence

license_type: permissive

license_source: github-api


text:
governance: ibc freeze proposal types not exposed in pcli

Is your feature request related to a problem? Please describe.
We have governance proposal types for freezing and unfreezing IBC clients:

FreezeIbcClient
UnfreezeIbcClient

However, these proposals are not available via pcli:
❯ pcli tx proposal template
pcli-transaction-proposal-template
Make a template file for a new proposal

USAGE:
    pcli transaction proposal template [OPTIONS] <SUBCOMMAND>

OPTIONS:
        --file <FILE>    The file to output the template to
    -h, --help           Print help information

SUBCOMMANDS:
    community-pool-spend    Generate a template for a Community Pool spend proposal
    emergency               Generate a template for an emergency proposal
    help                    Print this message or the help of the given subcommand(s)
    parameter-change        Generate a template for a parameter change proposal
    signaling               Generate a template for a signaling proposal
    upgrade-plan            Generate a template for an upgrade proposal,

Describe the solution you'd like
I should be able to run pcli tx proposal template freeze-ibc-client and pcli tx proposal template unfreeze-ibc-client to generate governance proposals for those actions.
Describe alternatives you've considered
We could simply not do this. Given the security-critical nature of this functionality, however, I believe we should implement this for v1.
Additional context
N/A

This is not important to do, nothing prevents submission of such a proposal and we should not add additional scope at this time.


text:
arguments for periodic tasks

I want to add multiple periodic tasks that have different input arguments, which is currently not possible as far as I can tell.
For example:

def foo(timestamp, a, b):
  return a + b

app.periodic(foo, cron="*/5 * * * *", kwargs={"a": 1, "b": 1))

app.periodic(foo, cron="*/1 * * * *", kwargs={"a": 2, "b": 2))

At the moment I use apscheduler to handle cronjobs that need arguments.
Are there plans to add support for this?

Hey :)
Sorry for the late answer. You're right, we could make it available. Until then, the easiest way is probably to make 2 different function tasks which call foo.

Notes for implementing this: I think it will be almost entirely in periodic.py and will involve adding a kwargs parameter to PeriodicTask.

@elemoine I believe this issue was assigned and some work has started, do you confirm?

authors: ewjoachim philipp-leanix

repo: peopledoc/procrastinate

license: MIT


text:
add todo check for queueing lock, add test for todo check

Closes #378
Successful PR Checklist:

[x] Tests

[ ] (not applicable?)

[ ] Documentation

[x] (not applicable?)

[x] Had a good time contributing?

https://pypi.org/project/procrastinate/0.18.1/

https://pypi.org/project/procrastinate/0.18.1/

source: gharchive/pull-request

authors: BracketJohn ewjoachim


text:
feat(battleship)

meta's Battleship

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

repo: percebus/algorithmic-excercises

license: Unlicense


text:
K8SPXC-1537 Update upgrade-consistency test for 1.16.1 release

CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?
[ ] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[ ] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[ ] Is an E2E test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?
[ ] Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

[ ] Are all needed new/changed options added to default YAML files?
[ ] Are all needed new/changed options added to the Helm Chart?
[ ] Did we add proper logging messages for operator actions?
[ ] Did we ensure compatibility with the previous version or cluster upgrade process?
[ ] Does the change support oldest and newest supported PXC version?
[ ] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

custom-users-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
passed

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 42 out of 42

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1931/commits/6cf522973ac2d2860f74da0ab16763b830a5cfa7
image: perconalab/percona-xtradb-cluster-operator:PR-1931-6cf52297

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

custom-users-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
failure

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 42 out of 42

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1931/commits/5be5b4c90a73f066918c57e35547720ccf318b72
image: perconalab/percona-xtradb-cluster-operator:PR-1931-5be5b4c9

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

custom-users-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
passed

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 42 out of 42

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1931/commits/5be5b4c90a73f066918c57e35547720ccf318b72
image: perconalab/percona-xtradb-cluster-operator:PR-1931-5be5b4c9

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

custom-users-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
passed

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 42 out of 42

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1931/commits/79d241c128ebe3be7dedc8942231f0fb70f758f9
image: perconalab/percona-xtradb-cluster-operator:PR-1931-79d241c1

authors: JNKPercona ptankov

repo: percona/percona-xtradb-cluster-operator


text:
Fix deprecation warnings due to invalid escape sequences.

Fixes #112

Thanks @Robdel12

repo: percy/python-percy-client

license: mit

license_source: bigquery


text:
consider ci tests of oslat not using rtprio

rtprio might be a source of some of the flakiness we see in CI...

https://github.com/perftool-incubator/crucible-ci/pull/137

https://github.com/perftool-incubator/rickshaw/pull/543

This seems to be working, but only time will tell if this is truly an improvement.

repo: perftool-incubator/bench-oslat


text:
zef install fails due to test failure in t/07_chunkedrequestecho.t

$ perl6 --version
This is Rakudo version 2017.07-60-g2fb8c7258 built on MoarVM version 2017.07-15-g0729f841
implementing Perl 6.c.

$  zef install HTTP::Server::Async
===> Searching for: HTTP::Server::Async
===> Searching for missing dependencies: HTTP::Server
===> Testing: HTTP::Server:ver('0.1.1'):auth('github:tony-o')
===> Testing [OK] for HTTP::Server:ver('0.1.1'):auth('github:tony-o')
===> Testing: HTTP::Server::Async:ver('0.1.7'):auth('github:tony-o')
Could not receive data from socket: Connection reset by peer
  in block <unit> at t/07_chunkedrequestecho.t line 29

===> Testing [FAIL]: HTTP::Server::Async:ver('0.1.7'):auth('github:tony-o')
Aborting due to test failure: HTTP::Server::Async:ver('0.1.7'):auth('github:tony-o') (use --force-test to override)
  in code  at /Users/emiller/Code/rakudo/install/share/perl6/site/sources/3393EDA469A9E8925A633FF7A533AB41141495DA (Zef::Client) line 373
  in method test at /Users/emiller/Code/rakudo/install/share/perl6/site/sources/3393EDA469A9E8925A633FF7A533AB41141495DA (Zef::Client) line 351
  in code  at /Users/emiller/Code/rakudo/install/share/perl6/site/sources/3393EDA469A9E8925A633FF7A533AB41141495DA (Zef::Client) line 528
  in sub  at /Users/emiller/Code/rakudo/install/share/perl6/site/sources/3393EDA469A9E8925A633FF7A533AB41141495DA (Zef::Client) line 525
  in method install at /Users/emiller/Code/rakudo/install/share/perl6/site/sources/3393EDA469A9E8925A633FF7A533AB41141495DA (Zef::Client) line 631
  in sub MAIN at /Users/emiller/Code/rakudo/install/share/perl6/site/sources/ED3033E8712BCF9F6DE53678B14A54705DF211A6 (Zef::CLI) line 152
  in block <unit> at /Users/emiller/Code/rakudo/install/share/perl6/site/resources/6182CA1C8C9C6ED5BBB3076B522103070B37DDA4 line 1
  in sub MAIN at /Users/emiller/Code/rakudo/install/share/perl6/site/bin/zef line 2
  in block <unit> at /Users/emiller/Code/rakudo/install/share/perl6/site/bin/zef line 2

Any ideas?

@evanmiller  - I believe this is a problem that is resolved in perl6.d.  Are you able to upgrade to that (it's called moar-nom in rakudobrew)?  Barring that, a --force-install should install and get you working for most things until 6.d is fully released.

@tony-o -- I'm using the nom branch of Rakudo. Should I point it to a particular branch of MoarVM?

Are you using rakudobrew or are you building directly from the rakudo repository?

I am building directly from the GitHub repo.

The issue was in the backend of MoarVM and being able to read/write to socket handles cross channel/supply.  The issue, as far as we've been able to tell, should be resolved.  Can you build the latest Moar and provide the output of just that test file?  perl6 -Ilib --ll-exception t/07_chunkedrequestecho.t

I am still seeing the same error. I don't know how MoarVM versioning works, but I believe I am building the latest MoarVM (note version difference from the first report):
perl6 --version
This is Rakudo version 2017.07-60-g2fb8c7258 built on MoarVM version 2017.07-230-gd6d7d5eb
implementing Perl 6.c.

I would be curious to see the version info on systems where the test passes.

Here it is from my debian machine.  Tests are also passing on OSX for me.  What OS are you on?  May have to build a vm..
This is Rakudo version 2017.07-71-g9c0d40aba built on MoarVM version 2017.07-18-ga052a333
implementing Perl 6.c.

I've updated everything and appear to have newer versions of both Rakudo and MoarVM:
This is Rakudo version 2017.07-83-g9658dd98c built on MoarVM version 2017.07-243-g6941cada
implementing Perl 6.c.

I.e. Rakudo build 83 and MoarVM build 243 (compared to your 71 and 18). MoarVM is pointing to the "master" branch. NQP is behind master, but I can try updating that too.

Hmm..i'll update and test again.  Are you in IRC?

With fresh p6 I'm still passing test 07 - what OS are you on?
implementing Perl 6.c.```

Updated NQP, still no luck. Running Mac OS X 10.12.6.
evanm on IRC; I will log on in about an hour.

Fixed in https://github.com/perl6/perl6-http-server-async/commit/75c4441a24db9d1a76330a31ab2209c586bef10f

authors: evanmiller tony-o


text:
auth key in META6.json spec

One of the items on the 6.d TODO list is this:

See if we can nail down the META6.json spec

And codify it as tests in roast. Even if entire spec won't be done, would be nice to standardize "auth" key because we're basically ready to have multi-source ecosystem that supports same-name-multiple-author naming, but without a nailed down "auth" it's hard to make use of that system. we already have it and we do have problems

I think it's fine not to have the full META6 specced, but can we at least spec the auth key as we need it for proper modules.perl6.org workings.
@ugexe @niner you spent the most time on this stuff. Are you able to write spectests for auth and what it is and how it should behave? (before end of September as a rough timeline)

First let me address the linked problem, which is not a perl6 problem per-se -- it is an ecosystem problem, and in this case only a problem of how to determine and list unique entries. There is nothing preventing an ecosystem from comparing the source of any similar dists to determine if they are the same -- its not as easy as having all the available information in the META6.json but if thats really what an ecosystem wants they can handle it any number of ways ( not allowing duped namespaces for their particular ecosystem, adding a checksum requirement, etc ). What should not happen is the needs of an ecosystem dictating how CUR should work -- an ecosystem needs to work around CUR. I don't expect most users to be in such a situation to begin with, since the average user would not likely have a dependency graph including such combinations ( and if they did it would be because it was explicitly requested in the depends and thus likely explicitly requested in the code, removing the problem ).
That being said, there is one thing to spec regarding CUR and auth -- ordering of ambigious namespaces. It has been my belief that, unlike api and ver, auth should not be ordered by its value. Because if ordering was forced in some author-definable way then it would be advantageous for one to use an auth that would show up sooner than later. Instead an ambiguous auth would be chosen based by CUR on which one was installed first -- and infact this is generally what happens due to how shortname lookup works ( although there is nothing else enforcing this ). As far as what a multi-auth ecosystem should return is up to that ecosystem.
There are some unmerged tests using auth here:
https://github.com/perl6/roast/blob/d2ac49334b049f0210680e461b99c84e4462ff1c/S11-repository/cur-candidates.t

authors: ugexe zoffixznet


text:
Update jsoniter-scala-core, ... to 2.6.1

Updates

com.github.plokhotnyuk.jsoniter-scala:jsoniter-scala-core
com.github.plokhotnyuk.jsoniter-scala:jsoniter-scala-macros

from 2.6.0 to 2.6.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.plokhotnyuk.jsoniter-scala" } ]

labels: library-update, semver-patch

Superseded by #183.

Superseded by #183.


text:
[ENHANCEMENT] Auth return a JWT token

With this PR, the auth endpoint is returning a signed JWT token

LGTM!
Just one question.
What's body.login, is the user content?

What's body.login, is the user content?

Yeah exactly. In the body, the user is providing its login and its password.

authors: Nexucis nicolastakashi

repo: perses/perses


text:
Support for multiple initial/goal configs

According to the OpenRAVE docs [0], the standard way to specify multiple start and/or goal configurations is to just throw them all into the vinitialconfig/vgoalconfig members of the PlannerParameters structure.  Here, I add simple support to pull multiple roots out.  This should be backwards-compatible.
Note that I only preemptively check for root collision (like we used to) if there's only one root.  If there are multiple, it is often better for the planner to selectively check them itself; often, it can succeed without even checking them all.
[0] http://openrave.org/docs/latest_stable/coreapihtml/classOpenRAVE_1_1PlannerBase_1_1PlannerParameters.html#a693144a709748324b0c827451f848bfe

LGTM. Good point about only checking collision when num_goals == 1. Checking all of the goals could potentially be very expensive.

authors: cdellin mkoval


text:
🛑 Procal-tech is down

In 52cabb4, Procal-tech (https://iot.procal-tech.com/iotportal/Login.aspx?ReturnUrl=%2Fiotportal%2F) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Procal-tech is back up in 468ef18.


text:
Broken dependency(?) on a fresh installation

Trying to set the repo up and get it working but got the below error
Win 11
(ldm) D:\github\stable-diffusion>python scripts/txt2img.py --prompt "a virus monster is playing guitar, oil on canvas" --ddim_eta 0.0 --n_samples 4 --n_iter 4 --scale 5.0  --ddim_steps 50
Traceback (most recent call last):
File "scripts/txt2img.py", line 11, in
from pytorch_lightning import seed_everything
File "C:\Users\nikol\anaconda3\envs\ldm\lib\site-packages\pytorch_lightning_init_.py", line 20, in
from pytorch_lightning import metrics  # noqa: E402
File "C:\Users\nikol\anaconda3\envs\ldm\lib\site-packages\pytorch_lightning\metrics_init_.py", line 15, in
from pytorch_lightning.metrics.classification import (  # noqa: F401
File "C:\Users\nikol\anaconda3\envs\ldm\lib\site-packages\pytorch_lightning\metrics\classification_init_.py", line 14, in
from pytorch_lightning.metrics.classification.accuracy import Accuracy  # noqa: F401
File "C:\Users\nikol\anaconda3\envs\ldm\lib\site-packages\pytorch_lightning\metrics\classification\accuracy.py", line 18, in
from pytorch_lightning.metrics.utils import deprecated_metrics, void
File "C:\Users\nikol\anaconda3\envs\ldm\lib\site-packages\pytorch_lightning\metrics\utils.py", line 22, in
from torchmetrics.utilities.data import get_num_classes as _get_num_classes
ImportError: cannot import name 'get_num_classes' from 'torchmetrics.utilities.data' (C:\Users\nikol\anaconda3\envs\ldm\lib\site-packages\torchmetrics\utilities\data.py)

Getting the same error on a fresh ubuntu install

authors: HoLLy-HaCKeR sixtyspam

repo: pesser/stable-diffusion


text:
Add support for "Meta-rules"

https://github.com/pest-parser/pest/issues/261

Some built-in rules in pest3 have already been meta rules. Let me test on user-defined meta rules later.

authors: TheVeryDarkness tomtau


text:
Add type=button to close slide over button

Ideally button elements should always specify a type attribute to avoid unexpected behavior, since each browser might implement a different default.
In our app, we do HTML forms inside slide overs. When the user clicks to close a slide over, the form ends up being submitted, given that the close button is inside the form. Setting the button's type prevents this issue.

Thanks for this!

authors: nhobes tegon


text:
Remove the cascade

The cascade sort of makes sense for docs but makes less sense for apps. What if we removed it from CSS? This PR is an experiment in achieving this goal.
I've found the cascade to be particularly awful with things like line-height.
Advantage: components are guaranteed to look the same no matter where they are used, and styling behaves more similarly to other UI systems
Disadvantage: cascading can be convenient. Perhaps we'd introduce cascadingColor props which would disable the anti-cascading features.
How it works: it does a CSS reset (with initial) on the root node, keeps track of which cascading props are set in React's context, and resets them in children as needed.

I'm going to be pedantic about terminology here for clarity's sake. By "cascade" do you mean "the cascade" or "inheritance"? Or both?
Technically, the cascade refers to which selectors target which elements, and how the browser decides which to apply when they conflict (mainly, selector specificity). Inheritance, on the other hand, refers to a property that is passed down from a parent element to its children. From your post, it sounds like you're talking more about inheritance...?

@keithjgrant doesn't the cascade refer to multiple rules interacting to style a single node? the final way rules interact in jsxstyle is through inherit (since we don't allow multiple rules to match the same node), so i believe this title is accurate? maybe i'm wrong though...

Nah the cascade runs first, the final value of each property is determined, and if any value is set to inherit (or if a value is unset for a property that defaults to inherit e.g. typographic properties) then inheritance takes over.
If only one selector targets each element, you're already not using the cascade very much.
It sounds like you might prefer to simply set a CSS rule all: initial on each new element to disconnect it from inheritance. But in my stuff, inheritance is really awesome. With CSS variables inheritance is how they're so good. Even Shadow DOM only "shadows" elements from the cascade, inheritance is alive and well. Just don't set line-height to anything but 1.0 except on leaf nodes of the UI ;)

Exactly. Here's the relevant part of the spec.
I could understand wanting to remove inheritance of some properties, but it would seem silly to have to set others (like font-face) on every node in the DOM.

Ah, I knew they were in the same spec, but it looks like the cascading terminology does not cover inheritance. TIL.
all is what I want but it is not supported in IE or Safari.

Just don't set line-height to anything but 1.0 except on leaf nodes of the UI ;)

As a component author I cannot control what users of the component will do.
Any way you slice it, inheritance adds implicit coupling between the component and its user, and while setting font-face on every node may seem silly today I am confident we can come up with solutions that are convenient without introducing this implicit coupling.

As a component author I cannot control what users of the component will do.

No, but you can control which parts you are explicit about. If your component has inline elements (like typography) where anything greater than line-height 1.0 is going to break it, then your component should set line-height: 1.0. Likewise, if your component must have a particular font to be considered "valid", it should define it. But if it doesn't, is there anything wrong with implicitly using the font that's inherited down the page?
In my mind, you're not adding an "implicit coupling" by inheriting something like font-family. You're defining your component to be independent of the current font. Yes, the final exact pixels will differ based on what that font is currently set but I see that as no bad thing. Whatever you can make your component not care about (while still functioning as designed) makes it more flexible and reusable.

fwiw when I can't use css-in-js techniques I back up to suitcss.
In addition to normalize and suitcss-base I reset every component root and descendant (no modifiers and state classes) https://git.io/viG4X (this list is work in progress :)
The last part is quite important because it lets properties inherit only from the component context. In a way this is what you are doing in this PR but it doesn't *break* inheritance.
Then as @geelen says you can control which parts you are explicit about and every component comes with a set of configurable custom properties which eventually are the interface exposed to the consumer of the component.
Typically I define font size, weight, style for every component and set them to inherit by default.
:root {
  --MyComponent-fontSize: inherit;
  --MyComponent-fontWeight: normal;
  --MyComponent-color: inherit;
}

FWIW I've been using this in some production apps with postcss-autoreset and love working that way. Needs to be very explicit and the entire team has to be educated about it, but the DX is very nice!

update: I had an idea that is reset the inherited properties (eg. color) on the root of a component + reset the non-inherited ones (eg. margin) on every element – this guarantees that inheritance works within the component internals but values are reset on each scope similarly to what happens in ShadowDOM.
I have a WIP for suitcss.
Also @kof liked the idea and he/we might implement it into jss-isolate too.
@petehunt thoughts?

Closing until someone feels like discussing this further 😁

authors: geelen giuseppeg keithjgrant meyer mxstbr petehunt

repo: petehunt/jsxstyle


text:
Having issues setting up for Pimoroni Pico Display

I an trying to make a hardware_setup.py for the Pimoroni Pico Display, here is an example w/ display.
Can someone point me in the right direction/help me please.

The closest supported display is probably this with this setup file.
There are two things you need to find out:

Does the display use an ST7789 controller?

Thanks for the help, was able to get it working with the code below, using the quick hardware check code.
# hardware_setup.py Customise for your hardware config

# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2021 Peter Hinch, Ihor Nehrutsa, Ausitn St. Aubin

# Supports:
# Pico Display Pack 1.14" 240*240(Pixel) based on ST7789V
# https://shop.pimoroni.com/products/pico-display-pack
# https://shop.pimoroni.com/products/pico-enviro-pack

from machine import Pin, SPI
import gc

from drivers.st7789.st7789_4bit import *
SSD = ST7789

gc.collect()  # Precaution before instantiating framebuf

# Conservative low baudrate. Can go to 62.5MHz.
spi = SPI(0, 30_000_000, sck=Pin(18), mosi=Pin(19), miso=None)
pdc = Pin(16, Pin.OUT, value=0)
pcs = Pin(17, Pin.OUT, value=1)
pbl = Pin(20, Pin.OUT, value=1)
prst = Pin(21, Pin.OUT, value=1)

# Note: LANDSCAPE = PORTRAIT, is flipped with this display
ssd = SSD(spi, height=240, width=240, dc=pdc, cs=pcs, rst=prst, disp_mode=LANDSCAPE, display=GENERIC)

# - - - - - - - - - - - - - - - - - - - - - - - - - -

# Create and export a Display instance
from gui.core.ugui import Display

# https://cdn.shopify.com/s/files/1/0174/1800/files/pico_enviro_pack_schematic.pdf
# Button Pinout
BUTTON_A = 12
BUTTON_B = 13
BUTTON_X = 14
BUTTON_Y = 15

# Define control buttons
nxt = Pin(BUTTON_X, Pin.IN, Pin.PULL_UP)  # Move to next control
sel = Pin(BUTTON_A, Pin.IN, Pin.PULL_UP)  # Operate current control
prev = Pin(BUTTON_Y, Pin.IN, Pin.PULL_UP)  # Move to previous control
increase = None ### Pin(BUTTON_A, Pin.IN, Pin.PULL_UP)  # Increase control's value
decrease = None ### Pin(11, Pin.IN, Pin.PULL_UP)  # Decrease control's value

display = Display(ssd, nxt, sel, prev, increase, decrease, False)

Thanks for that. I have pushed the update, also updated DISPLAYS.md.

authors: AustinSaintAubin peterhinch

repo: peterhinch/micropython-micro-gui


text:
Adds method to make full circle for any given radius.

I hope you don't mind me submitting this, I was looking for a way of doing this with the package at work today but it felt a bit too hacky. I really like the the ease of using this library, and I feel like this would be a nice feature to add :)
This adds a new fullCircle() method which will create equal spacing between each letter, making a full circle for any given radius.

@danny-pearson: Awesome! I also need something like that. How would one do this with the existing methods? First calculating the right radius of the element?

@strarsis I just added it to the prototype in the project I needed it for :)
CircleType.prototype.fullCircle = function () {
  const diff = 2 * Math.PI * (this._radius - this._minRadius);
  const buffer = diff / this._letters.length;

  this._metrics = this._metrics.map((m) => ({ ...m, width: m.width + buffer }));

  this._invalidate();

  return this;
};

@danny-pearson: Great! I would have to use your fork until this has been merged.
@peterhry: Can you merge this? This is a really useful feature.

You wouldn't really need to use the fork, I just imported CircleType from the existing package, added that bit I just sent where I needed it and used the package as normal :)
Or you could just create a new class that extends CircleType and add the method to that?

I'm not sure if @peterhry is online very often tbh, so might be a while before he sees this :P

authors: danny-pearson strarsis

repo: peterhry/CircleType


text:
”Văgiulești”, ”Cârciu”, "Covrigi", "Murgilești", "Valea Motrului" are listed in the drop-down menu

Description:
”Văgiulești”, ”Cârciu”, "Covrigi", "Murgilești", "Valea Motrului" are listed in the drop-down menu alongside their corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Văgiulești"

Expected results
The location appears in the drop-down menu as "Sat Văgiulești, GORJ (Văgiulești)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Cârciu"

Expected results
The location appears in the drop-down menu as "Sat Cârciu, GORJ (Văgiulești)".

Step 5
Write in the search bar "Covrigi"

Expected results
The location appears in the drop-down menu as "Sat Covrigi, GORJ (Văgiulești)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Murgilești"

Expected results
The location appears in the drop-down menu as "Sat Murgilești, GORJ (Văgiulești)".

Step 8
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 9
Write in the search bar "Valea Motrului"

Expected results
The location appears in the drop-down menu as "Sat Valea Motrului, GORJ (Văgiulești)".


text:
code refresh

onPause instead for persistent data

add/override onPause to save persistent data more frequently

update save boxes (color palette in a separate method)

short methods: https://github.com/pffy/android#methods

remove editHandler to improve usability

repo: pffy/android-hexrgbplus

license: unlicense


text:
Raise an error when cuda import failed.

In a special situation, package is found though import fails.
Thanks to @jheymann85
This PR is based on #246

This code will be no longer needed after CuPy is merged and get independent of pycuda and scikit-cuda (and Mako). So as we discuss offline, I think this PR is OK although it does not have unit tests.

repo: pfnet/chainer


text:
interfaces_ppps_edit fixes that will work on 2.3.3 also

Make "The MTU is too big" message actually come out. The code around line 300 was rubbish (maybe from before bootstrap?).
Show friendly description rather than 'wan' 'lan' opt1' in interface link list.
If any specific link parameters are set, then open the advanced section on page load.

I tested on a 2.4 system, then applied these diff on a 2.3.3 system and it worked there also. So this should backport fine.

As requested in #3498 this is the changes that work with 2.3.3 also.
After this is merged I will make another PR on top for the setHelp changes that are not compatible with 2.3.3

repo: pfsense/pfsense


text:
Add vxlans

Exclude vxlan interfaces from the interface mismatch check at boot.

[x] Redmine Issue: https://redmine.pfsense.org/issues/10898
[x] Ready for review

Added fixes for: https://redmine.pfsense.org/issues/10899
Tested here seems to work expected. The interface is still brought up twice at boot which seems unnecessary but doesn't appear to hurt anything:
Configuring WAN interface... vtnet0: link state changed to UP vxlan0: Ethernet address: 58:9c:fc:10:cb:30 vxlan0: link state changed to UP done. Configuring VXLAN0 interface...done. vxlan0: link state changed to DOWN vxlan0: Ethernet address: 58:9c:fc:10:cb:30 vxlan0: link state changed to UP Configuring LAN interface... vtnet1: link state changed to UP

Having reviewed this logic further I believe this is the correct way to create this. All the other sub-interface types are created like this except VTI.
The if state provides two ways to create the interface:
		pfSense_interface_destroy($vxlan['vxlanif']); 		pfSense_interface_create($vxlan['vxlanif']); 		$vxlanif = $vxlan['vxlanif']
or
		$vxlanif = pfSense_interface_create("vxlan");
There is a clue in what is intended in the bridge interface code. The second way, when the of statement does not match, should only ever be hit when creating a new vxlan at run time when the interface name is then returned by pfSense_interface_create as the next available vxlanX. At all other times it should use the first method.
That does seem to mean it unnecessarily destroys a non-existent interface at boot but that doesn't seem to be a problem. We could add code to prevent that.
The interface coming going down and back up additionally I was seeing earlier appears to be because that was added on WAN and the WAN interface is brought up before vxlans are configured. vxlans on other parent interfaces do not show that behaviour.

Yes in fact preventing the interfaces being destroyed at boot allows them to be configured fully which was not happening previously but I had not spotted. The description and MTU values were not being applied:
vxlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1450
	description: VXLAN3
	options=80000<LINKSTATE>
	ether 58:9c:fc:10:ff:9f
	inet6 fe80::5a9c:fcff:fe10:ff9f%vxlan1 prefixlen 64 scopeid 0x8
	groups: vxlan
	vxlan vni 54321 local 172.21.16.167:4789 remote 172.21.16.222:4789
	media: Ethernet autoselect (autoselect <full-duplex>)
	status: active
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

There is still an issue here though. The interfaces on WAN do come up correctly using that code but errors are logged:
rc.bootup: The command '/sbin/ifconfig 'vxlan0' vxlanid '12345'  vxlanremote '172.21.16.187' vxlanlocal '172.21.16.167' vxlanlearn '  returned exit code '1', the output was 'ifconfig: VXLAN_CMD_SET_VNI:  Device busy'

Manually merged.  Thanks!!!


text:
Sever server lag introduced by patches in the last few days

One of the commits between: 9febe7ee772fd35b636421a421e9f506af83013b and 9fb610ea9a3ea94584525f3ec013c8c1b90b6a84 introduces severe server-side lag: https://streamable.com/8cl7x7

reverting back to the image from 11 days ago (ghcr.io/pg9182/northstar-dedicated:1.20220502.git04c1bf6-tf2.0.11.0-ns1.7.0) fixed the issue

closing for now, since i couldnt replicate on latest image

Most likely fixed by 30b98634cd02aece8b490bea9606b2595d8de94f.

license: Zlib


text:
Migrate to GitLab

@czechju, in order to migrate to GitLab, you’ll need to create a GitLab account with the same email address (not necessarily the username) as your GitHub account.
cf. https://docs.gitlab.com/ee/user/project/import/github.html

Migration to GitLab successful: https://gitlab.com/pghnaz/pghnaz.org/


text:
Nginx reverse proxy error

In most cases, it runs well, but when I access it using the regional network IP, it seems to be unable to log in properly
Of course, it does not include the local 127.0.01
No matter how I modify it  request.remote_addrwill always be 127.0.0.1
nginx:
 location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Range $http_range;
    proxy_set_header If-Range $http_if_range;
    proxy_redirect off;
    proxy_pass http://127.0.0.1:5000;

  }

py:
def create_app():
    app = Quart(__name__, template_folder='auth')
    return app
app = create_app()

@app.before_serving
async def setup():
    global app,event,domains
    event = asyncio.Event()
    app = cors(app, allow_origin=domains)
    Session(app)

    await registerUser()

@app.route('/login', methods=['GET', 'POST'])
async def login():
    global pool
    print(request.remote_addr)
    userU = await request.get_json()
    login_user(AuthUser(userU['id']))

In addition, after testing, it has been found that @app. websocket cannot support the wss protocol and can perform ws connections normally. I am now using websockets as the wss router
Hope to add traffic forwarding function in the future

After some attempts, I directly accessed the server's 5000 port, but I still couldn't detect the login status

Okay, I see it https://github.com/pgjones/quart-auth/issues/11 But I still have some unresolved issues

Yep, this is likely a secure cookie issue as the connection between nginx and your app isn't secure.

authors: Sincejunly pgjones

repo: pgjones/quart-auth


text:
[BUG] Project name spaces are stripped when quick adding new items

Before submitting a bug

[x] I updated to the latest card version available
[ ] I cleared the cache of my browser

Describe the bug
I'm not sure whether this is a bug or not...
I'm trying to show my 'Alexa Shopping List' project from Todoist (the name is, I seem to recall, fixed as it's syncing with Alexa). I'm trying to use the quick add option so new items can be added.
I understand from the documentation that the "project tag" will automatically be added and when I add "Apples", I can see an item in my Todoist inbox called "Apples #AlexaShoppingList" which clearly doesn't match the "Apples #Alexa Shopping List" text required to make the item appear in the right project.
The problem is, I'm not sure where this tag is coming from, whether it can be modified in config and whether the card is responsible for stripping out the spaces or not.
My card config is simple:
type: custom:powertodoist-card
entity: sensor.shopping_list
use_quick_add: true
filter_today_overdue: false
friendly_name: Shopping List

Expected behavior
An item added through the New Item box should be suffixed with the project name including spaces
Versions:

Card: unknown - installed today
HomeAssistant: 2023.8.4
Browser: Safari

I see removing spaces from the project name is deliberate - line 408. Is this code absolutely necessary? If I quick add something in todoist, it is happy to take spaces in the project name providing the project name contains those spaces.

Sorry, I thought I would receive email notifications of everything here, but I still had to make that setting. So I only read your issue today!
I believe there was a recent change in Todoist, allowing spaces in project names. that didn't exist before.
https://todoist.com/help/articles/whats-new#special-character-support-for-project-section-and-label-names-july-11
I guess I should update my code to match that. I'm not sure when I'll get a chance to look at this, I am very busy, I am afraid. But I hope I can do it one day...

Actually I tried removing that bit of code replacing the spaces, but for some reason Todoist doesn't like it.
If I manually quick-add a task to a project with spaces in the name, through Todoist site, it works. Something like
MyTask #Project with spaces
But the same thing sent from my card, through the API, just goes to the Inbox and appears there as MyTask #Project with spaces, instead of just MyTask, under the correct project, as it should.
I'm not sure what I can do except wait for Todoist to fix this in their API...

I just sent a support request to Todoist to ask them about this, let's hope they are willing to fix it 🤞

hope they will fix this soon. loving your card! THANKS for it!

After insisting with them, I finally got a reply on my ticket:

Sorry for the delay in getting a response to you.
We can now confirm that the issue has been addressed and you can now escape spaces in the project name, so in your case, text=new item #My\ Project should now work.

So now it's just a matter of trying to get that into the code when I get a chance...

repo: pgorod/power-todoist-card


text:
分享功能可以允许将目录结构一起显示

xxxxx这里是问题描述xxxx

当前使用的版本号
v0.1.8

是否已经升级到新版本
xxx

当前遇到的问题
xxx

错误日志或截图

希望增加的功能
分享功能可以允许将目录结构一起显示

@cifaz

authors: phachon zrweng

repo: phachon/mm-wiki


text:
I did the npm install and then run start but then shows this issue

can you send me the full ZodError?

sent to your email, ill show here as well

My guess is you are using the old config file. the zipcode section should be like this (example you are in zipcode 11111)
zipCode: ["11111"]

If that didn't fix, try to delete the config.yml and rename the example.config.yml back to config.yml and then fill in the data again


text:
How many tockens does this thing want to install after running 'composer install'?

I stopped after this

Installing sebastian/version (1.0.6)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0912
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download sebastian/version from dist: Could not authenticate against github.com
Now trying to download from source

Installing sebastian/version (1.0.6)
Cloning 58b3a85e7999757d6ad81c787a1fbf5ff6c628c6

Installing sebastian/global-state (1.1.1)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0915
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download sebastian/global-state from dist: Could not authenticate against github.com
Now trying to download from source

Installing sebastian/global-state (1.1.1)
Cloning bc37d50fea7d017d3d340f230811c9f1d7280af4

Installing sebastian/environment (1.3.3)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/environment/zipball/6e7133793a8e5a5714a551a8324337374be209df, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0916
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download sebastian/environment from dist: Could not authenticate against github.com
Now trying to download from source

Installing sebastian/environment (1.3.3)
Cloning 6e7133793a8e5a5714a551a8324337374be209df

Installing phpunit/php-text-template (1.2.1)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0916
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download phpunit/php-text-template from dist: Could not authenticate against github.com
Now trying to download from source

Installing phpunit/php-text-template (1.2.1)
Cloning 31f8b717e51d9a2afca6c9f046f5d69fc27c8686

Installing phpunit/phpunit-mock-objects (2.3.8)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0916
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download phpunit/phpunit-mock-objects from dist: Could not authenticate against github.com
Now trying to download from source

Installing phpunit/phpunit-mock-objects (2.3.8)
Cloning ac8e7a3db35738d56ee9a76e78a4e03d97628983

Installing phpunit/php-timer (1.0.7)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0916
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download phpunit/php-timer from dist: Could not authenticate against github.com
Now trying to download from source

Installing phpunit/php-timer (1.0.7)
Cloning 3e82f4e9fc92665fafd9157568e4dcb01d014e5b

Installing phpunit/php-file-iterator (1.4.1)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0916
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download phpunit/php-file-iterator from dist: Could not authenticate against github.com
Now trying to download from source

Installing phpunit/php-file-iterator (1.4.1)
Cloning 6150bf2c35d3fc379e50c7602b75caceaa39dbf0

Installing phpunit/php-code-coverage (2.2.4)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0917
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download phpunit/php-code-coverage from dist: Could not authenticate against github.com
Now trying to download from source

Installing phpunit/php-code-coverage (2.2.4)
Cloning eabf68b476ac7d0f73793aada060f1c1a9bf8979

Installing phpunit/phpunit (4.8.21)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ea76b17bced0500a28098626b84eda12dbcf119c, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-8O9LRBP+2015-12-14+0917
to retrieve a token. It will be stored in "C:/Users/tendi/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com "
Failed to download phpunit/phpunit from dist: Could not authenticate against github.com
Now trying to download from source

Installing phpunit/phpunit (4.8.21)
Cloning ea76b17bced0500a28098626b84eda12dbcf119c
^CTerminate batch job (Y/N)? y

C:\Users\tendi\tryphp\koel>

Try installing with this:
composer install --no-dev

composer install --no-dev – I'll echo that. Never encountered this problem though.

authors: nbpalomino phanan vaMuchenje

repo: phanan/koel


text:
🛑 proxy index is down

In 9fb3598, proxy index (https://index.phantomic.live/) was down:

HTTP code: 404
Response time: 377 ms

Resolved: proxy index is back up in f6b481a after 10 minutes.


text:
Documentation: Update branch naming convention

Please select a category the issue is focused on?
Developer Guides
Let us know where something needs a refresh or put your idea here!
We'll be using {staged.dependencies} going forward which requires us to change our branch naming convention from <issue_number>_<description> to <issue_number>_<description>@<target_branch>, e.g. 33_derive_aage@devel. We have to update our documentation accordingly.

thanks Thomas! please also include in the text the benefit of staged.dependencies around how this enables our admiral family of packages to keep in sync with latest development versions of each admiral dependency package, and maybe link to https://github.com/openpharma/staged.dependencies#branch-naming-convention for those curious to read more.

Fun!

authors: bms63 rossfarrugia thomas-neitmann

repo: pharmaverse/admiral


text:
closes #63 closes #66 closes #71 interp vignette

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the main branch until you have checked off each task.

[x] Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
[x] Code is formatted according to the tidyverse style guide. Run styler::style_file() to style R and Rmd files
[x] Updated relevant unit tests or have written new unit tests, which should consider realistic data scenarios and edge cases, e.g. empty datasets, errors, boundary cases etc. - See Unit Test Guide
[x] If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
[x] Update to all relevant roxygen headers and examples, including keywords and families. Refer to the categorization of functions to tag appropriate keyword/family.
[x] Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
[x] Address any updates needed for vignettes and/or templates
[x] Update NEWS.md under the header # admiralpeds (development version) if the changes pertain to a user-facing function (i.e. it has an @export tag) or documentation aimed at users (rather than developers)
[x] Build admiralpeds site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the Reference page.
[x] Address or fix all lintr warnings and errors - lintr::lint_package()
[x] Run R CMD check locally and address all errors and warnings - devtools::check()
[x] Link the issue in the Development Section on the right hand side.
[x] Address all merge conflicts and resolve appropriately
[x] Pat yourself on the back for a job well done! Much love to your accomplishment!

I'll review it again tomorrow as there are further (minor?) updates which might be needed due to the updates in #73.

authors: Fanny-Gautier rossfarrugia

repo: pharmaverse/admiralpeds


text:
Bug rendering Zero-width joiner Unicode sequences

(Extract from this report)
We detected an issue rendering text with Zero-width joiner sequences. What is that? Fonts can specify a glyph for certain sequence of characters. This is the case of the following example, where the same Unicode sequence is rendered on first row using only Cairo, and the second row using Harfbuzz before Cairo:

The sequence can be generated in this way:
WideString streamContents: [ :stream |
    #( 16r1F468 16r1F469 16r1F467 16r1F466 ) "<-- individual faces"
        do: [ :each |  stream nextPut: (Unicode value: each) ]
        separatedBy: [ stream nextPut: Unicode zeroWidthSeparator ]]

The Noto Color Emoji font has a specific glyph for that sequence: the family shown in the second row of the screen capture. Without Harfbuzz to apply the font rule, we can only render the individual characters of the sequence (as in the first row of the capture).
The bug: Some times the family glyph is not rendered... that portion of the image is just white. Good news is that this is reproducible, not random. This example can be found in: AeHarfbuzzRenderExample class>>#example6Emoji, but should become a test.

With PR #58 I still see random results like this:

This is in all operating systems. I will keep skipping the 4 tests until trying a different set of graphics dependencies.

The PR did un-skip renderLigatureTextWithHarfbuzz but still keeps the skip for the 3 tests on emoji font.

Link to #16

Color fonts are a quite recent feature in Cairo lib. I suspect this is bug is derived from a bug at low-level. These are some related issues and PR:

https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/537
https://gitlab.freedesktop.org/cairo/cairo/-/issues/603
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/482
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/397

repo: pharo-graphics/Alexandrie


text:
Set gameSize equal to baseSize, for EXPAND scale mode

Please do not update the README or Change Log, we will do this when we merge your PR.
This PR (delete as applicable)

Fixes a bug

Describe the changes below:
gameSize is used for world bounds, cameras, set gameSize equal to baseSize, so that camera can render on whole game window.

Should scale/index.js be updated too? (as it is not referenced in the docs due to not being added here)

Should scale/index.js be updated too? (as it is not referenced in the docs due to not being added here)

Thanks, I had exposed EXPAND in index.js file in latest commit.

👍

authors: philipgriffin photonstorm rexrainbow

repo: phaserjs/phaser


text:
Appveyor CI and X64

added appveyor.yml CI config, see corresponding CI build at https://ci.appveyor.com/project/chcg/npptoolbucket/build/1.7.3
added x64 config + necessary updates to
-- dllexport, PluginCore/NppPluginNETHelper.cs from https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
-- dotnetframework 4, needed to link properly
-- FindAndReplace.cs name collision with system.action

This looks great, thank you. I'll pull it down and ensure it builds correctly for me before merging.

Getting error "This ANSI plugin is not compatible with your Unicode Notepad++",from this StackOverflow article I think it's my VS setup rather than the solution.

Confirmed this works in VS2015 but not VS2017, have a send a pull request to fix it, can you confirm this still works in VS2015?
Also, I don't get any icons in toolbar of the x64 version, you?

@phdesign Could confirm the issue for VS2017 with ANSI, because lib.exe is now with vs2017 at e.g. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\lib.exe".
Maybe setting VCToolsInstallDir=c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\ could be used to construct the path.
Therefore the lib is not correctly build and the ansi issue, because isunicode doesn't answer correctly. Unfortunately there is no error message about this missing tool.
It is also ok to remove the path for VS2015. I will update the PR and add a VS2017 appveyor config.

@phdesign Updated plugin list for PluginManager with version v1.8 for x86 and also for x64, see https://github.com/bruderstein/npp-plugins-x64/commit/ad922f1542ef4743dd19bed3eeaa4f392283ac49

authors: chcg phdesign

repo: phdesign/NppToolBucket


text:
feat: add Raindrop.io SVG icon

Add a logo for Raindrop.io - a modern bookmark manager tool

Thanks 🚀✨

authors: pheralb trinhdinhtai

repo: pheralb/svgl


text:
Parser handles XXX scene dirnames as URLs

18:22:35 <%someone> GirlsDoPorn.E157.21.Years.Old.XXX.720p.WMV-KTR
18:22:35 <+Phergie> [ http://GirlsDoPorn.E157.21.Years.Old.XXX/ ]

Yes, I'm in weird channels. My guess is that Twitter_Extractor looks for the .xxx TLD, not sure how to change this without altering Twitter_Extractor.
(Originally opened by @elazar on a different repo, moving issue to this rep)

Adding comments from previous repo:

Writing a fix that does a DNS lookup so only exiting domains are handled and events emitted for

repo: phergie/phergie-irc-plugin-react-url


text:
Can this repo be removed from active repos or deleted?

This repo was an investigation into automatic transpiling of Java => JavaScript.  Last active development was Feb 2015.

I have no objection to deleting the slater repo.

Agreed we will delete.  I'll do so soon.

Closing and deleting.

authors: jbphet samreid

repo: phetsims/slater


text:
Generated action docs can't handle multiline documentation.

Generated docs can't handle multiline documentation. It results in a new table row messing up the docs.
See:
https://github.com/philips-labs/slsa-provenance-action#inputs

We dropped automated docs from the pipeline

repo: philips-labs/slsa-provenance-action


text:
Can only dump albedo and final

In Dec. 2018, I successfully dumped object id, disparity, albedo, final image and flow.
But I just updated GTA to version 1.0.1604.1 and can only dump albedo and final images to bmp files. Others are all .raw files. I tried to use RenderDoc to find the shader hash and modify the hash in gta5.cpp but cannot help.
How can I fix this problem?

After closing Nvidia experience overlay, it works.


text:
Need to provide additional args to InferenceClient

I'm using huggingface.chatCompletion and need to be able to provide some cookies to the InferenceClient. I don't see a way to pass that in via create(), which is where the client is instantiated. I also looked at the huggingface_hub implementation, but didn't see a way to set it via module member or environment variable.
The approach I landed on was adding a module-level client_args dictionary, similar to huggingface.api_key and .prompt_builder, and passing anything defined in there when the client is instantiated. If that makes sense and you want to support this, I'm happy to open a PR. Or if you see issues or have suggestions to improve, let me know.

Hello @dylan-stark,
Currently there is no way to customize the InferenceClient.
If you want to can create a PR with a recommendation on how to add those.

Hi @philschmid. I opened PR #45. It's working well for me in practice. If there are some changes you'd recommend, I'm happy to make them.

Hi @philschmid. I opened PR #45. It's working well for me in practice. If there are some changes you'd recommend, I'm happy to make them.

repo: philschmid/easyllm


text:
Showing blank screen on intial run

When I use the docker image, I just get a white screen and the browser console tells me that "items" must not be undefined in select.tsx.
My data folder is completely empty, so it should show only the greeter right?

This has to do with #62 apparently.
Copy themes.json and greeter.json from https://github.com/phntxx/dashboard/tree/master/data into your data directory, that fixes this for me.

@NanoSector @thejezzi copying themes and greeter from the repo do not fix the issue for me. Still looking at an empty white screen and see the following errors in console:

Looks like there is an issue serving up static assets.

authors: NanoSector joeyfigaro thejezzi

repo: phntxx/dashboard


text:
how to make the video fulscreen ?

the video window is too small ,I want to set the video to fullscreen, how  can i do that ?
Thank you.

You can style the player DIV (or the canvas element, if you're not using the VideoElement) with CSS:

could you show me the detail ?

JSMpeg Stream Client

I mean that  my video is   1920x1080 ,but my computer screen is  1366x768 ,
I want the video could fit the screen,but now the video is oversize the screen.
look at this:

@phoboslab hello ?

Try max-width: 100%.
The JSMpeg div can be styled like any other HTML element. See the CSS-Reference for the details; https://developer.mozilla.org/en-US/docs/Web/CSS

authors: phoboslab szhansen

repo: phoboslab/jsmpeg


text:
Create UnderstandingWeb Archiving Services and Their (Mis)Use on Soci…

…al Media
CS 895_Tarannum Zaki_final.pptx
CS 895_Tarannum Zaki_final.pptx(1).pdf

This is not named the way I want.  Please see: https://groups.google.com/g/cs895-f22/c/WCKwadtbspk


text:
BarcodeScanner plugin on ios does not dismiss the scan screen after user does not allow the permission

Expected Behaviour
On iOS cordova app, when user clicks "Do not allow" button on permission dialog, the scan screen should be closed and the cordova callback method should be called.
Actual Behaviour
When user clicks "Do not allow" button, the scan screen is still opened, and user has to click cancel button to dismiss the scan screen, although user already decides to cancel the scan operation when user does not give the permission to use camera
Reproduce Scenario (including but not limited to)
Create a ios cordova app to use scan function as below
function myFunction(){
cordova.plugins.barcodeScanner.scan(
function (result) {
alert("We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled);
},
function (error) {
alert("Scanning failed: " + error);
},
{
preferFrontCamera : true, // iOS and Android
showFlipCameraButton : true, // iOS and Android
showTorchButton : true, // iOS and Android
formats : "QR_CODE,PDF_417", // default: all but PDF_417 and RSS_EXPANDED
disableAnimations : true, // iOS
disableSuccessBeep: false // iOS
}
);
}
And then call the method after the app installed on ios device.
Steps to Reproduce
When first time running the ios app, when calling the scan method, it will pop up a dialog to ask user permission to use camera. Click "Do not allow" button to refuse the permission request. The scan operation should be cancelled.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
ios 10.3.1
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
cordova --version

6.5.0
cordova platforms
Cordova-ios
4.3.1
Plugin version
cordova plugin version | grep phonegap-plugin-barcodescanner

6.0.6 "BarcodeScanner"
Sample Code that illustrates the problem
in index.html
Click me
in index.js
function myFunction(){
cordova.plugins.barcodeScanner.scan(
function (result) {
alert("We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled);
},
function (error) {
alert("Scanning failed: " + error);
},
{
preferFrontCamera : true, // iOS and Android
showFlipCameraButton : true, // iOS and Android
showTorchButton : true, // iOS and Android
formats : "QR_CODE,PDF_417", // default: all but PDF_417 and RSS_EXPANDED
disableAnimations : true, // iOS
disableSuccessBeep: false // iOS
}
);
}
Logs taken while reproducing problem

@jonathanli2 the cordova camera plugin doesn't dismiss the camera layer either so I'm going to move this to won't fix.

repo: phonegap/phonegap-plugin-barcodescanner


text:
Not receiving notifications from server - OK from Firebase Console

Expected Behaviour
To receive notification on device
Actual Behaviour
Not receiving notifications
Reproduce Scenario (including but not limited to)
Can't really reproduce. My app receives notifications in foreground & background when sending  a test notification via Firebase Console but I'm not receiving any notification when sending through our website. I've added 'android_channel_id' to the payload.
The same code works for devices running v 1.9.2 so I'm assuming it's something to do with the 'android_channel_id' ? Maybe?
Endpoint is 'https://fcm.googleapis.com/fcm/send'
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 8
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Sony Xperia z5 compact
Cordova CLI version and cordova platform version
cordova --version   8.0.0
cordova platform version android  7.1.1

Plugin version
phonegap-plugin-push  2.2.3
Sample Push Data Payload
'title' =>  'Some title',
'message' => 'some message',
'android_channel_id' => 'PushPluginChannel',
'priority'=> '2',
'content-available' => 1
Sample Code that illustrates the problem
Logs taken while reproducing problem

08-02 13:28:20.677 26075 26134 V Push_Plugin: execute: action=init
08-02 13:28:20.678 26075 26137 V Push_Plugin: execute: data=[{"android":{"senderID":"","icon":"pushicon","iconColor":"#FFFFFF","forceShow":true,"alert":true},"ios":{"alert":true,"badge":true,"sound":true,"senderID":"814471264227","gcmSandbox":false,"clearBadge":true,"forceShow":true}}]
08-02 13:28:20.678 26075 26137 V Push_Plugin: execute: jo={"senderID":"","icon":"pushicon","iconColor":"#FFFFFF","forceShow":true,"alert":true}
08-02 13:28:20.679 26075 26137 V Push_Plugin: execute: senderID=**********
08-02 13:28:20.679 26075 26137 V Push_Plugin: onRegistered: {"registrationId":"fyROgfq4VGg:APA91bHkFmtKaMpPKkDN9XRv1HoK3ekLuArmsprhdEC4ujLWDWpAKpnVi5uT9-XIFWl12fd7xkVE_u_kgjIa65ry60OBj9f1gXxEh3neU8pF38HpnHIBmV3E9RqhAxj3XMkOEUrVC2zJIiydZPjQuHBnzS2Yst3XaQ","registrationType":"FCM"}

And what do you see in the logs when you send a message to that
registration ID?

With test sent from my site
08-02 13:32:08.861 26075 27334 D Push_FCMService: onMessage - from: removed
08-02 13:32:08.863 26075 27334 D Push_FCMService: sender id = removed
08-02 13:32:08.864 26075 27334 D Push_FCMService: normalize extras
08-02 13:32:08.866 26075 27334 D Push_FCMService: foreground force
08-02 13:32:08.867 26075 27334 D Push_FCMService: message =[null]
08-02 13:32:08.867 26075 27334 D Push_FCMService: title =[null]
08-02 13:32:08.867 26075 27334 D Push_FCMService: contentAvailable =[null]
08-02 13:32:08.867 26075 27334 D Push_FCMService: forceStart =[null]
With test sent from Firebase
08-02 13:58:12.823 26075  2245 D Push_FCMService: onMessage - from: removed
08-02 13:58:12.823 26075  2245 D Push_FCMService: sender id = removed
08-02 13:58:12.824 26075  2245 D Push_FCMService: normalize extras
08-02 13:58:12.824 26075  2245 D Push_FCMService: key = icon
08-02 13:58:12.824 26075  2245 D Push_FCMService: replace key icon with icon
08-02 13:58:12.824 26075  2245 D Push_FCMService: key = color
08-02 13:58:12.824 26075  2245 D Push_FCMService: replace key color with color
08-02 13:58:12.824 26075  2245 D Push_FCMService: key = sound
08-02 13:58:12.824 26075  2245 D Push_FCMService: replace key sound with sound
08-02 13:58:12.824 26075  2245 D Push_FCMService: key = title
08-02 13:58:12.824 26075  2245 D Push_FCMService: replace key title with title
08-02 13:58:12.825 26075  2245 D Push_FCMService: no locale found for key = title, error Value Push of type java.lang.String cannot be converted to JSONObject
08-02 13:58:12.825 26075  2245 D Push_FCMService: key = message
08-02 13:58:12.825 26075  2245 D Push_FCMService: replace key message with message
08-02 13:58:12.825 26075  2245 D Push_FCMService: no locale found for key = message, error Value Foreground of type java.lang.String cannot be converted to JSONObject
08-02 13:58:12.826 26075  2245 D Push_FCMService: foreground force
08-02 13:58:12.826 26075  2245 D Push_FCMService: message =[Foreground test message]
08-02 13:58:12.826 26075  2245 D Push_FCMService: title =[Push title]
08-02 13:58:12.826 26075  2245 D Push_FCMService: contentAvailable =[null]
08-02 13:58:12.826 26075  2245 D Push_FCMService: forceStart =[null]
08-02 13:58:12.826 26075  2245 D Push_FCMService: create notification
08-02 13:58:12.826 26075  2245 E Push_FCMService: Number format exception - Error parsing notId: null
08-02 13:58:12.834 26075  2245 D Push_FCMService: stored icon=pushicon
08-02 13:58:12.834 26075  2245 D Push_FCMService: stored iconColor=#FFFFFF
08-02 13:58:12.834 26075  2245 D Push_FCMService: stored sound=true
08-02 13:58:12.834 26075  2245 D Push_FCMService: stored vibrate=true
08-02 13:58:12.834 26075  2245 D Push_FCMService: using icon from plugin options
08-02 13:58:12.836 26075  2245 D Push_FCMService: create actions: with in-line

Can you post your full payload you send to your server?

@macdonst
Here's what I'm sending from the server. As I mentioned previously this all works if sending to plugin v 1.9.2
$message = "TEST";
$androidarr = array
(
'title' =>  'TEST',
'message' => $message,
'priority'=> '2',
'content-available' => 1,
'notId' => uniqid(),
'sound'	=> 'default',
'url' => 'notifications',
);
/* The array below I've put in to test. There's no notification reaching the device with or without this array */
$notification = array
(
'title' =>  'TEST',
'message' => $message,
'content-available' => 1
);
$data = array(
'notification'=> $notification,
'data'=> $androidarr
);
$fcm = new FCMPushMessage($apiKey);
$fcm->setDevices($devices);
$removes = $fcm->send($message,$data);

@pauljcurtis well stuff is making it to the plugin but it's not being displayed properly due to Notification vs Data payloads.
Try putting everything in data, i.e. get rid of notification:
$message = "TEST";
$androidarr = array
(
'title' => 'TEST',
'message' => $message,
'priority'=> '2',
'content-available' => 1,
'notId' => uniqid(),
'sound'	=> 'default',
'url' => 'notifications',
);

$data = array(
'data'=> $androidarr
);

$fcm = new FCMPushMessage($apiKey);
$fcm->setDevices($devices);
$removes = $fcm->send($message,$data);

I'm not familiar with the method you are using to send the push. Is it some PHP script? The line:
$fcm->send($message,$data);

looks like it could cause a problem.

I've been through my code and took out any reference to notification. I can receive push notifications now... troubles is I've got loads coming through. It looks like they're repeating.
Not to worry. I'll sort that out.
Thanks for your time.

authors: macdonst pauljcurtis

repo: phonegap/phonegap-plugin-push


text:
GCMIntentService.java:139: error: cannot find symbol mBuilder.setColor(iconColor);

symbol:   method setColor(int)
location: variable mBuilder of type Builder

@mwillbanks What version of Android are you using?

@mwillbanks are you using the "android-support-v13.jar" that is provided in this project? It contains the proper jar that has the setColor method.

@mwillbanks I tested on a 4.4.4 device this afternoon with no problems.

I've the same problem right now. I needed to delete the support-v13 reference cause by "multiple dex" warnings. I can't any way to get this plugin compile.

Having the same problem. With support-v13 file in platforsm/android/libs I get multiple dexfiles error. If I  "android-support-v13.jar" then I get this problem.

I give up. Struggeled more then 4 days with this problem and I can't get any support on this. As soon as Facebook is integrated (or any other plugin which needs the v13 support, we get this)
The v13 seems to be only integrated because of the "setColor()" method. Now my notifications look ugly, but I've commented out the line.

@Hirbod you need to remove the support library from the facebook SDK, basically search your codebase for where the items are before you build...
AKA:
find platforms/android -name "android-support*.jar" | grep -v build

If you find duplicates or multiple versions, remove the multiple versions.  You can only have 1 support library in your project.  The issue becomes is that many plugins attempt to ship one and it causes conflicts between projects.  I suggest removing all support libraries that a plugin has and then to manually place one in your libs folder.

Thank you very much. If I remove the support lib from facebook, I can't compile. The only working solution for me was to remove all support libs from /libs/ inside of platform/android and to leave one support file inside of facebook (I have "CCSoft" Facebook plugin installed, the SDK isn't inside of my platform folder, it's placed in my download folder and got referenced manually inside of eclipse as library).
I can't switch to any other facebook plugin at the moment, but I will try your suggestion, maybe I can find a way.

I tried your "find" command. No results. :(

Interesting, your paths might be references differently than provided your earlier comment then; all of mine are inside of the platforms/android folder itself.  You would need to add the additional paths in that case.
For instance:
find platforms/android -name "android-support*.jar" | grep -v build
platforms/android/com.phonegap.plugins.facebookconnect/app-FacebookLib/libs/android-support-v13.jar
platforms/android/libs/android-support-v13.jar

I've removed android-support-v13.jar from the /libs/ folder. Also the v14.jar. I don't use the facebookconnect plugin, my support-v13 libs is inside /Users/myname/Downloads/facebooksdk/facebook/libs/android-support-v13.jar

@mwillbanks and @macdonst
I've removed the facebook plugin and also the push plugin, removed android platform, readded android platform and the push plugin, but I get this error message:
/.../platforms/android/src/com/adobe/phonegap/push/GCMIntentService.java:139: error: cannot find symbol
            mBuilder.setColor(iconColor);

When I look inside of my /libs/ folder, there is support-v13.jar and support-v4.jar
I've opened the plugin folder, support-v13 and gcm.jar are inside.
Inside of plugin.xml I can see:
		<source-file src="src/android/libs/android-support-v13.jar" target-dir="libs/" />

So what's wrong now?

Hi again, sorry for that spam. For everybody who stuck on this, I've managed to get this work.
Go inside of plugins/phonegap-plugin-push/src/android/libs/ and copy android-support-v13.jar
Copy it and replace with the one inside of platforms/android/src
Double-Check that there is NO android-support-v4.jar inside of it. When you find v4, just delete it. Now, the plugin build without problems.
I will change my facebook plugin to https://github.com/jeduan/cordova-plugin-facebook4 as this one seems to be a drop-in-replacement and much more active then the official one or the cc-soft one. They also have fixed the multiple DEX problem.

@Hirbod I'm glad you got it resolved. As soon as PhoneGap Build supports gradle I'm switching this plugin to use the "framework" tag which should avoid these dexing problems for good.

@macdonst thank you very much. My app is working perfectly right now. Push work's also as expected now. Finally :dancer:

@macdonst I'm having similiar issue as Hirbod. Although I cannot seem to resolve it by the same steps. I've tried about anything and lost track of what I have and haven't tried. I've concluded that the facebook-connect plugin I'm using https://github.com/uofmmike/phonegap-facebook-plugin clashes with this one on the support-library thing. It seems in either way I remove them respectively plugin doesn't compile. Do you have any tips of step to try resolve this?
Would it be hard to change this plugin to use framework tag? I'm not using phone gap build, rather cordova build. Which as I understand it has gradle support.

@Dr-Horv yeah, the fix is crazy easy to implement and in fact there is already a PR waiting for when PGB is ready.
https://github.com/keab42/phonegap-plugin-push/commit/472548af8c9235a0bb459bf2bd9b434d6db8eda3
I will try and use the Facebook plugin with this plugin in an app later to see if there is anything I can do in the meantime.

@Hirbod did you mean platforms/android/lib/?
I tried your suggestion but that does not help.
@macdonst  I have tried to replace those lines as in keab42@472548a but that does not help either...
Any other fixes available?

If you are having trouble with Facebook plugin, this fixes it:
cp platforms/android/libs/android-support-v13.jar platforms/android/com.phonegap.plugins.facebookconnect/active-FacebookLib/libs/
rm platforms/android/com.phonegap.plugins.facebookconnect/active-FacebookLib/libs/android-support-v4.jar

Why is everyone embedding JARs in their Plugins? I thought the new way to to it was using
 <platform name="android">       <framework src="com.google.android.gms:play-services-gcm:+" /> </platform>
To pull in dependencies via gradle, and avoid all these conflicts?

@hobbysoldat you are correct. However, PhoneGap Build does not support Gradle yet so I haven't made the switch. I think when I get back off vacation I will switch it and PGB users will have to use version 1.2.2 or earlier.

Sorry for the dupe.

@hobbysoldat no problem, I'm just trying to keep all the discussion on this topic in one thread.

@shprink thank you!

@Hirbod
Tnx, you save me out of few hours of headache

Has anyone experienced this issue while using Phonegap Build to assemble the apk?

Missing symbols. Add android support and google play library via sdk manager

@Hirbod, sorry, was that comment directed at my question? Phonegap Build, or PGB, found here: https://build.phonegap.com, builds the application in the "cloud" or at least on adobe's server. I don't have access or control of sdk manager while using PGB

hi @kentmw - sorry, I mixed something up with email notification. Please ignore my message

I have this issue too. Any solutions that do not imply removing facebook plugin?

Yes. there is a version of the facebook plugin that works with this plugin.
just look at this plugins readme page, it has been updated.
phonegap plugin add https://github.com/jeduan/cordova-plugin-facebook4
2015-10-21 14:44 GMT+02:00 Florescu Adrian notifications@github.com:

I have this issue too. Any solutions that do not imply removing facebook
plugin?
—
Reply to this email directly or view it on GitHub
https://github.com/phonegap/phonegap-plugin-push/issues/51#issuecomment-149883607
.

--
Paul Weber, BSc.
Tel: +43(0)699 18 144 914

It uses gradle dependencies instead of hardcoding stuff.
2015-10-21 15:39 GMT+02:00 Paul Weber p4ul.weber@gmail.com:

Yes. there is a version of the facebook plugin that works with this
plugin. just look at this plugins readme page, it has been updated.
phonegap plugin add https://github.com/jeduan/cordova-plugin-facebook4
2015-10-21 14:44 GMT+02:00 Florescu Adrian notifications@github.com:

I have this issue too. Any solutions that do not imply removing facebook
plugin?
—
Reply to this email directly or view it on GitHub
https://github.com/phonegap/phonegap-plugin-push/issues/51#issuecomment-149883607
.

--
Paul Weber, BSc.
Tel: +43(0)699 18 144 914

--
Paul Weber, BSc.
Tel: +43(0)699 18 144 914

With facebook4 I get another type of error... :(

This to be more exact:
	FAILURE: Build failed with an exception.

	* What went wrong:
		Execution failed for task ':processArmv7DebugManifest'.
	> Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library /Users/adrian/Desktop/Vivre/Setup-Centos-PuPHPet/cordova-app-push/platforms/android/build/intermediates/exploded-aar/com.facebook.android/facebook-android-sdk/4.7.0/AndroidManifest.xml
	Suggestion: use tools:overrideLibrary="com.facebook" to force usage

I know this error. You're using Crosswalk @adyz and there is currently a bug.
You need to run like that
> cordova run android -- --minSdkVersion=15

> cordova run android --release -- --minSdkVersion=15

Did you see the double -- ? Yes, it has to be EXACTLY like this, or it won't work.

@Hirbod  Thanks a ton!!!
I'm new to all this (cordova, android, ios) and it's a bit overwhelming.

or you could add
to your config.xml
2015-10-21 16:50 GMT+02:00 Florescu Adrian notifications@github.com:

@Hirbod https://github.com/Hirbod Thanks a ton!!!
I'm new to all this (cordova, android, ios) and it's a bit overwhelming.
—
Reply to this email directly or view it on GitHub
https://github.com/phonegap/phonegap-plugin-push/issues/51#issuecomment-149920385
.

--
Paul Weber, BSc.
Tel: +43(0)699 18 144 914

Will not work when crosswalk is installed as it gets overwritten

Guys - I see you're talking about the libs folder inside /platforms/android - but I don't have one...
How come?

@nadavb because we no longer need to add jars to this plugin. They've been replaced with frameworks.

Agreed that jars are not added now, but i still get this error GCMIntentService.java:565: error: cannot find symbol

@bvivek20 update your Android Support Library.

i already did that. new version is 23.1.1
i removed and added android platform again, i still get this error

Having the same issue, running last version of Cordova, all is up to date in the Android SDK manager, and tried to remove and add the platform / the plugin many times...

Having the same issue, running last version of Cordova, all is up to date in the Android SDK manager, and tried to remove and add the platform / the plugin many times...

@JerryBels  That's a bug in these other plugins you mentioned, not on phonegap-plugin-push. Report an issue to their authors and request it to be updated to support gradle builds and framework dependencies.

Wow thanks a lot guys the combination of @Hirbod  and @hobbysoldat made it work for me ! THANKS!!!!

I'm experiencing this error but reading at your previous comments, I'm not really sure what I should do. Here is what I have:
/Users/thomasfetiveau/wksp_wink/wink_app/cordova/platforms/android/src/com/adobe/phonegap/push/GCMIntentService.java:571: error: cannot find symbol
            mBuilder.setColor(iconColor);

And:
$ find platforms/android -name "android-support*.jar" | grep -v build
platforms/android/phonegap-facebook-plugin/wink-FacebookLib/libs/android-support-v4.jar
$ cordova plugin list
cordova-plugin-crosswalk-webview 1.5.0 "Crosswalk WebView Engine"
cordova-plugin-whitelist 1.2.0 "Whitelist"
phonegap-facebook-plugin 0.12.0 "Facebook Connect"
phonegap-plugin-push 1.5.2 "PushPlugin"

With latest version of Android support lib installed (23.1.1) and android target freshly removed/re-added.
If I just remove platforms/android/phonegap-facebook-plugin/wink-FacebookLib/libs/android-support-v4.jar, it does not compile neither...
What should be done ?

Uups, I've posted too fast, the issue actually comes from the facebook plugin and I've managed to fix this issue with this: https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1183

OK, I know what was happening, I was not actually using the correct app secret...
Sorry for posting a issue too fast...

@zabojad or you could follow the suggested steps at https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#co-existing-with-facebook-plugin

authors: Apee Dr-Horv Hirbod JerryBels JiiBay ZoRDoK adyz alamops bvivek20 fredgalvao hobbysoldat kentmw macdonst mwillbanks nadavb shprink untitledlt zabojad


text:
SpinePlugin breaks generated images file path

Version

Phaser Version: nodejs phaser@3.60.0
Npm Version: '8.19.3',
NodeJs Version: '19.2.0',
TypeScript version: 5.2.2

Operating system: Windows

Browser: Chrome/Edge/Nodejs

The reference environment where I have encountered this issue is based on typescript and use nodejs versione of phaser 3
Description
The issue affects the phaser path system. when you set baseUrl and path properties of the loader via setBaseUrl() and setPath() functions and try to load spine's atlases/Jsons using phaser's Spine plugin (inside this repository).
When the loader tries to load the images obtained from the parsing of the atlases/jsons files provided to the loader through spine() function, the loader appends twice baseUrl to path and the result is an error in the GET stage when the loader tries to charge the Spine's multilayered images.
Example Test Code

You can reproduce (i suppose) the error with a code like:
#inside game scene
this.load.setBaseUrl('assets');

this.load
        .setPath('spine')
        .spine('MAIN.animations', 'spine.json', 'spine.atlas');

Supposing that inside my spine files I have linked a spine.png, this statement will result in the trying of the loader to load this image from "assets/assets/spine/spine.png" instead of "assets/spine/spine.png" that is what should happen.
Additional Information
I have circumscribed (and potentially fixed) this issue to this piece of code inside the onFileComplete() function present inside SpineFile,js in the spine plugin source code:
// This start at line 159 of SpineFile,js
var config = this.config;
var loader = this.loader;

var currentBaseURL = loader.baseURL;
var currentPath = loader.path;
var currentPrefix = loader.prefix;

var baseURL = GetFastValue(config, 'baseURL', this.baseURL);
var path = GetFastValue(config, 'path', file.src.match(/^.*\//))[0]; //Here is the problem
var prefix = GetFastValue(config, 'prefix', this.prefix);
var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');

loader.setBaseURL(baseURL);
loader.setPath(path);
loader.setPrefix(prefix);

I've a possible solution on this fork

I've had this too, double paths on loading images from atlas.  I think the bodge was to set the full path with setPath(), don't use setBaseUrl(), and don't have any path component in the .atlas/.json references.

I've had this too, double paths on loading images from atlas. I think the bodge was to set the full path with setPath(), don't use setBaseUrl(), and don't have any path component in the .atlas/.json references.

This may be a possible workaround, but the fact that spine breaks phaser path system is so frustrating...
Anyway, my fork contains a solution to this problem.
Maybe I may push this as pull request when I have time.

I didn't look into exactly why the problem occured, didn't have time, but I think it was when processing the images from the atlas using phasers multifile.
If the fix is in theplugin, then it'll probably need applying to all plugins - the 3.8/4.1 internal & the official 4.1 external.

The fix that I have attempt affects only SpineFile.js. I don't think have
any kind of relation with other plugin.
Anyway, for what I have seen right now, this issue aren't related with
phaser path system itself.
Il lun 9 ott 2023, 16:38 spayton @.***> ha scritto:

I didn't look into exactly why the problem occured, didn't have time, but
I think it was when processing the images from the atlas using phasers
multifile.
If the fix is in theplugin, then it'll probably need applying to all
plugins - the 3.8/4.1 internal & the official 4.1 external.
—
Reply to this email directly, view it on GitHub
https://github.com/photonstorm/phaser/issues/6642#issuecomment-1753137850,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHKCKIQ5XVLBLHVSOQUFDS3X6QD55AVCNFSM6AAAAAA5TJQ5ASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGEZTOOBVGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

authors: photonstorm rez23 spayton

repo: photonstorm/phaser


text:
simplifies code contributions by fully automating the setup with gitpod.

Hi! :slightly_smiling_face:
This Pr simplifies code contributions by fully automating the dev setup with Gitpod (a free online VS Code-like IDE).
With a single click, it will launch a workspace and automatically:

clone the phaser repo.
install the dependencies.
run npm run build.
run npm run watch.
clone phaser-3-examples and afterwards install dependencies and run npm start in there.

So that anyone interested in contributing can start straight away.
You can give it a try on my fork of the repo via the link below:
https://gitpod.io/#https://github.com/nisarhassan12/phaser

Sure, why not 👍

Thanks! @photonstorm Would you also like the project to be listed on https://contribute.dev ?

Sure, don't see why not!


text:
fixed branch-aliases in composer.json

Question
Answer

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
no

Tests pass?
yes

Fixed tickets
-

License
MIT

Doc PR
-

Description
https://getcomposer.org/doc/articles/aliases.md
This need to be updated, after a new tagged release

Codecov Report

Merging #218 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master    #218   +/-   ##
========================================
  Coverage      82.2%   82.2%
  Complexity      601     601
========================================
  Files            33      33
  Lines          1540    1540
========================================
  Hits           1266    1266
  Misses          274     274

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 169d6c5...b2813dd. Read the comment docs.

authors: codecov-io prisis

repo: php-cache/cache


text:
How I use resetful.

The api is resetful url ,How to use it on multi?
example:
https://www.google.com/a/b/c/d
https://www.google.com/a/b/e/f
https://www.google.com/a/b/g/h
https://www.google.com/a/b/i/j
The api is "https://www.google.com/a/b", and I params is "['c','d']","['e','f']","['g','h']","['i','j']".
sorry for my terrible english.

This could work.
use \Curl\MultiCurl;

$params = [
    ['c', 'd'],
    ['e', 'f'],
    ['g', 'h'],
    ['i', 'j'],
];

$multi_curl = new MultiCurl();

foreach ($params as $param) {
    $url = 'https://www.google.com/a/b/' . implode('/', $param);
    $multi_curl->addGet($url);
    echo $url . "\n";
}

$multi_curl->start();

authors: oneword zachborboa

repo: php-curl-class/php-curl-class


text:
Cookie for root path (/) matches only exact match.

Q
A

Bug?
yes

New Feature?
no

Version
v1.4.0

Actual Behavior
When having a Cookie with the path set to the domain root (e.g. /), and checking to see if another path matches (i.e. /cookies) it will always fail. (Except when checking an exact match, /).
Expected Behavior
I expect path /cookies to match a Cookie with path /.
Steps to Reproduce
$cookie = new Cookie('foo', 'bar', null, 'example.com', '/');
var_dump($cookie->matchPath('/cookies')); // = false, but should be true

// spec\Http\Message\CookieSpec
function it_matches_the_root_path()
{
    $this->beConstructedWith('name', 'value', null, null, '/');
    $this->matchPath('/')->shouldReturn(true);
    // we should add this line below
    $this->matchPath('/cookies')->shouldReturn(true);
}

Possible Solutions
A solution shouldn't be to hard to find. My guess is that adding a trailing slash isn't completely correct, but reading the linked rfc section doesn't make things easier. 😕
current code. not a solution!:
/**
 * Checks whether this cookie is meant for this path.
 * @see http://tools.ietf.org/html/rfc6265#section-5.1.4
 */
public function matchPath($path)
{
    return $this->path === $path || (strpos($path, $this->path.'/') === 0);
}

You seem to be right. The problem is that '/' becomes '//'. The trailing slash is necessary because of how the comparison works, otherwise /cookies and /cookiesAndCakes would be a matching path as well. Adding rtrim sounds like a solution to me, but we need to add some test cases as well.
Also, I am not 100% sure that only 1.4 is affected and this is something that I would backport as a fix as well to all affected minor versions.

Hi Márk, thank you for your response. I've created a PR with the proposed fix.

Fixed in https://github.com/php-http/message/commit/5fd6c761b994b16afaae4a236abb650e5a068b5a

authors: Maff- sagikazarmark

repo: php-http/message


text:
Fix crash with ini_set when opcache is enabled on CLI

The error was:
FatalThrowableError: ini_set() expects parameter 2 to be string, int given
This happened during the cache:clear step.
This bug is not on the master branch, which doesn't use strict_types

Thanks

authors: TysonAndre jaapio


text:
🛑 phpMyFAQ API is down

In b9b8119, phpMyFAQ API (https://api.phpmyfaq.de/versions) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ API is back up in 39354bd.


text:
🛑 phpMyFAQ API is down

In b2df432, phpMyFAQ API (https://api.phpmyfaq.de/versions) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ API is back up in 08c6c0c after 4 minutes.


text:
🛑 phpMyFAQ Demo is down

In ad7ae2f, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in ef3a61c after 9 minutes.


text:
🛑 phpMyFAQ Demo is down

In 32c6a7a, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in cb4e668 after 4 minutes.


text:
🛑 phpMyFAQ API is down

In 164bd64, phpMyFAQ API (https://api.phpmyfaq.de/versions) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ API is back up in c5c7b76 after 4 minutes.