fix: Don't include api user and api key as header value to socket.io to resolve CORS issues

[ ] I have added automatic tests where applicable
[ ] The PR title is suitable as a release note
[ ] The PR contains a description of what has been changed
[ ] The description contains manual test instructions

Changes

Seeing CORS issues when testing this due to including api-user and api key as headers when fetching the session id. This removes these fields, as they are not necessary..
Test

Is this the final thing needed to get the 1.5 release out of beta? We've been using the package from the server side with a lot of joy and without issues.

Is this the final thing needed to get the 1.5 release out of beta? We've been using the package from the server side with a lot of joy and without issues.

We're seeing some issues with the new implementation in a browser context (mainly due to differences between XHR/fetch) and will revert to the previous implementation for now. Once those issues have been addressed, we'll get the new implementation merged and released.

Closing this to see if we can resolve the CORS issues server side instead.

Is this the final thing needed to get the 1.5 release out of beta? We've been using the package from the server side with a lot of joy and without issues.

We're seeing some issues with the new implementation in a browser context (mainly due to differences between XHR/fetch) and will revert to the previous implementation for now. Once those issues have been addressed, we'll get the new implementation merged and released.

Okay, thanks for the update. Sorry to hear about the issues. Let us know if we can help.

Oh, and is there an ETA on this? Are we talking years or months or weeks?
We're converting our codebase from python to typescript, and we're currently using the new typescript client with great success. So we just want to know if we should halt that process for now.

Weeks :) You can still safely use the beta release, for your use case we don't expect to introduce any breaking changes from that. We just want to keep the main channel stable for upcoming patches while we figure out the browser issues with the new socket.io implementation

Oh, and is there an ETA on this? Are we talking years or months or weeks?
We're converting our codebase from python to typescript, and we're currently using the new typescript client with great success. So we just want to know if we should halt that process for now.

Weeks :) You can still safely use the beta release, for your use case we don't expect to introduce any breaking changes from that. We just want to keep the main channel stable for upcoming patches while we figure out the browser issues with the new socket.io implementation

Thanks for the update. Looking forward to it! 🙏

@jimmycallin how is this going?

Sprint before summer vacations, and then vacations, has put a bit of a wrench in the schedule. I'm hoping we can prioritize this when everyone is back in August.
Until then I can make a pre-release version with the latest version of the client, with the current version of the new socket.io-client if you need it. The issues we've been seeing seem to be contained to browser use of the API, not node use.

Oh, didn't see you had just replied here.
Creating a new pre-release version would be awesome!


Don't set public visibility when uploading files.

When using filesystem drives like S3, GCS or DO Spaces, it is recommended that the file is not set to public visibility.
This should be driven by what is setup on laravel's filesystem configuration.
When a S3 bucket doesn't have public visibility, uploading a file with public visibility will throw the following error
Aws\S3\Exception\S3Exception' with message 'Error executing "PutObject" on {S3 URL} ; AWS HTTP error: Client error: `PUT {S3 URL}` resulted in a `403 Forbidden`

How to restore this feature in my code? I want all the files I upload to S3 to be public.
Thank you.

How to restore this feature in my code? I want all the files I upload to S3 to be public.
Thank you.

@khaledelmahdi go to config/filesystems.php
and set:
'disks' => [
        's3' => [
            .....
            .....
            'visibility' => 'public',
        ],
    ],

It might help you 👍  Waiting for your feedback

@khaledelmahdi go to config/filesystems.php
and set:
'disks' => [
        's3' => [
            .....
            .....
            'visibility' => 'public',
        ],
    ],

It might help you 👍  Waiting for your feedback


Release: 2.11.0

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


New version of fabric 1.3.0

Do you plan to upgrade the package to version 1.3.0 of fabric-shim?

Hi, after upgrading to version 4.0.0
"@theledger/fabric-chaincode-utils": "^4.0.0",
I got the errors below (for example):
node_modules/fabric-shim/types/index.d.ts:262:13 - error TS2300: Duplicate identifier 'DELIVER_SEEK_INFO'.
262             DELIVER_SEEK_INFO = 5,
~~~~~~~~~~~~~~~~~
node_modules/fabric-shim/types/index.d.ts:263:13 - error TS2300: Duplicate identifier 'CHAINCODE_PACKAGE'.
263             CHAINCODE_PACKAGE = 6,
~~~~~~~~~~~~~~~~~
Inside node_modules/@theledger/fabric-chaincode-utils I see the subfolder node_modules/node_modules/fabric_shim.
Is that correct?

@marweck Yes, thats correct. Are you still using @wearetheledger/fabric-shim-types perhaps?

Btw @romstyop, I was mistaken, I actually did upgrade it a month ago.

Hi @Superjo149 , thanks for the quick answer.
No, I'm not using  @wearetheledger/fabric-shim-types anymore.
Here are my dependencies:
"dependencies": {
    "@theledger/fabric-chaincode-utils": "^4.0.0",
    "@types/lodash": "^4.14.104",
    "lodash": "^4.17.5",
    "winston": "^2.4.0",
    "yup": "^0.24.1"
  },
  "devDependencies": {
    "@theledger/fabric-mock-stub": "^2.0.0",
    "@theledger/fabric-shim-crypto-types": "^1.0.4",
    "@types/chai": "^4.1.2",
    "@types/mocha": "^2.2.48",
    "@types/node": "^8.5.8",
    "@types/winston": "^2.3.8",
    "@types/yup": "^0.24.1",
    "chai": "^4.1.2",
    "mocha": "^4.1.0",
    "nodemon": "^1.12.1",
    "ts-node": "^5.0.1",
    "tslint": "4.5.1",
    "typescript": "^2.6.2"
  }

This is my tsconfig.json:
{
  "compilerOptions": {
    "rootDir": "./src",
    "suppressImplicitAnyIndexErrors": true,
    "noImplicitAny": true,
    "sourceMap": false,
    "target": "es5",
    "module": "commonjs",
    "declaration": false,
    "outDir": "./dist",
    "types": ["@theledger/fabric-shim-crypto-types"],
    "typeRoots": ["./node_modules/@types"],
    "lib": ["es2015", "dom"]
  },
  "exclude": ["**/*.spec.ts"]
}

Been trying to exclude type definitions from fabric-shim inside fabric-node-chaincode-utils/node_modules without success.
I keep getting "Duplicate identifier" errors on node_modules/fabric-shim/types/index.d.ts file.
Do you have any ideas?

Hmm, try also upgrading the mock-stub to 3.0.0, this also has duplicate types when using fabric 1.3

This has been fixed btw


fix(fileio): static initialization of Avro converters

Ensure that the static initialization for the fileio AvroRegistry occurs in an class that is serialized with the Beam job graph.
Please check if the PR fulfills these requirements

[X] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)
The static initialization for this class occurs in the runtime object -- unfortunately this is not the object that is serialized and accessed on the node, so the registered Avro converters are never available on the node.
What is the new behavior?
The static initializer is only added for the CSV file source, which is serialized across the network and is the only Beam object that requires it.
Does this PR introduce a breaking change?

[ ] Yes
[X] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
No unit tests were added -- there isn't any way to test this outside of an integration test.

LGTM


[Bug]: HTTPError AlreadyExists after missing ODHDashboardConfig is created by odh-dashboard pod

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When deploying odh-dashboard into a namespace that does not have an existing ODHDashboardConfig the logs show an HTTPError exception with Reason: Already Exists.
Expected Behavior
Missing ODHDashboardConfig is created and any parallel pods check to see if one already exists before attempting to create a new one.
Steps To Reproduce

Deploy odh-dashboard into a namespace that does not have an existing ODHDashboardConfig
Check logs to see if there are any error due creating a default dashboard config when one already exists

Workaround (if any)
Doesn't appear to affect functionality
OpenShift Version
OpenStack
Openshift Version
OCP 4.10
What browsers are you seeing the problem on?
Chrome
Open Data Hub Version
ODH 1.3

Relevant log output
{"level":40,"time":1657566149315,"pid":108,"hostname":"odh-dashboard-74c44ff58-dm6sp","msg":"Received error fetching OdhDashboardConfig, creating new."}
{"level":50,"time":1657566149353,"pid":108,"hostname":"odh-dashboard-74c44ff58-dm6sp","response":{"statusCode":409,"body":{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"odhdashboardconfigs.opendatahub.io \"odh-dashboard-config\" already exists","reason":"AlreadyExists","details":{"name":"odh-dashboard-config","group":"opendatahub.io","kind":"odhdashboardconfigs"},"code":409},"headers":{"audit-id":"a09e12b2-07f4-41f9-88d3-513f63c0183b","cache-control":"no-cache, private","content-type":"application/json","x-kubernetes-pf-flowschema-uid":"4c141507-8e53-4afe-9ffa-1484e4b3ef28","x-kubernetes-pf-prioritylevel-uid":"7441e22c-c4f1-4df3-8a93-cac901fccbe6","date":"Mon, 11 Jul 2022 19:02:28 GMT","content-length":"288","connection":"close"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"<IP_ADDRESS>:443","port":"443","hostname":"<IP_ADDRESS>","hash":null,"search":null,"query":null,"pathname":"/apis/opendatahub.io/v1alpha/namespaces/opendatahub/odhdashboardconfigs","path":"/apis/opendatahub.io/v1alpha/namespaces/opendatahub/odhdashboardconfigs","href":"https://<IP_ADDRESS>:443/apis/opendatahub.io/v1alpha/namespaces/opendatahub/odhdashboardconfigs"},"method":"POST","headers":{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkZpNEUyc0t6OTVHaV9VdWFwcnJjVjZydklNX2pERk9zS0pBNE1jblpTTUEifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjIl0sImV4cCI6MTY4OTEwMjEyMCwiaWF0IjoxNjU3NTY2MTIwLCJpc3MiOiJodHRwczovL2t1YmVybmV0ZXMuZGVmYXVsdC5zdmMiLCJrdWJlcm5ldGVzLmlvIjp7Im5hbWVzcGFjZSI6Im9wZW5kYXRhaHViIiwicG9kIjp7Im5hbWUiOiJvZGgtZGFzaGJvYXJkLTc0YzQ0ZmY1OC1kbTZzcCIsInVpZCI6IjcxOGMxM2RmLWNhOTgtNDY5Ny1hZTFkLTk5MGMzZDFlNjQyZiJ9LCJzZXJ2aWNlYWNjb3VudCI6eyJuYW1lIjoib2RoLWRhc2hib2FyZCIsInVpZCI6IjViNzQxNjA5LTI0NTgtNDg1ZC1hOTFmLWMzODE4ZGNmMGIxOCJ9LCJ3YXJuYWZ0ZXIiOjE2NTc1Njk3Mjd9LCJuYmYiOjE2NTc1NjYxMjAsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpvcGVuZGF0YWh1YjpvZGgtZGFzaGJvYXJkIn0.gB75forCFghyUp_CDpybXo8xx8LcBihffW6ocW84GGigcVcYCozJSIWHFmOGjKNcN_8M05xq6-cO-bQ3lUiCqzUMJm3gUSoR7BEn1ouvCTiG7fQhJM69P0eZLWovyB5o9Wu2ctVpG6VRJXyjdDj44YeeNF-mvj9n0x6vanB0fVmJ_J9PQtktfstsAs-noPbeiSN9unwm7nkQNiwYAHktc9aEW7ezbXPri_0dQkUdU3QLz1Q1R-9g_zlpYQQU64Nz8sLRJ4u6MDa8S1cqq6Mff9xewEBybL92G6re8bKaZ7DD2WO8SGsaknhc1US0Saj1Z5Mq2VQfw5GYOSaFLsvYv_aCTbCkJbgogfAyjrf0FsNwH5VqhMdBYM0qotsCztGqZwRcXVMTV8K8tUXB3fL6_Y6tbPbi9_LoakZ6dAdISkedlbmzakf2tJYKHXwxNRLfQ3TiQ29Y4BBeRSvzPPeIh3Y29JPYXblqJjTY4KMvdgv4EEVr_D9ZKNoDxu30cgpxf-0OAyu_3gV33mttZG2U0EPfFeSWAiHlh0lN8EnVHAG5OAcEIX2PnFn6WizD_GcvOzF6g5aT-fr_tpfjGFgEyIPML2IXChzRSPnvnVZy_fj2otvftFeK39Aneenchj2V1R0YDaQ0_0CSZ5avPTpmbzV-ZUeciw2rVXFi_ceW_lc","content-type":"application/json","content-length":337}}},"body":{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"odhdashboardconfigs.opendatahub.io \"odh-dashboard-config\" already exists","reason":"AlreadyExists","details":{"name":"odh-dashboard-config","group":"opendatahub.io","kind":"odhdashboardconfigs"},"code":409},"statusCode":409,"name":"HttpError","stack":"HttpError: HTTP request failed\n    at Request._callback (/opt/app-root/src/backend/node_modules/@kubernetes/client-node/dist/gen/api/customObjectsApi.js:270:40)\n    at Request.self.callback (/opt/app-root/src/backend/node_modules/request/request.js:185:22)\n    at Request.emit (events.js:400:28)\n    at Request.<anonymous> (/opt/app-root/src/backend/node_modules/request/request.js:1154:10)\n    at Request.emit (events.js:400:28)\n    at IncomingMessage.<anonymous> (/opt/app-root/src/backend/node_modules/request/request.js:1076:12)\n    at Object.onceWrapper (events.js:519:28)\n    at IncomingMessage.emit (events.js:412:35)\n    at endReadableNT (internal/streams/readable.js:1334:12)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)","type":"Error","msg":"HTTP request failed"}

@andrewballantyne +1 on this solution.

I've got mixed feelings about this. I think I'm actually going to close this. If they do not have a config at this point in time -- I think we should create one for them. If the subsequent pods try to all create one because you're missing it -- it's a 1-time issue.
This should give the deployment a config to start modifying. They should have one already after deployment, but if not we should still create one. Parallel pods starting will cause errors I suppose, but it's harmless.


Abandoned project?

I'm thinking I'd like to use assimp from haskell.  I was considering writing some bindings, but then I noticed yours.  It hasn't been touched for years, and currently doesn't build, but it's a much better starting point than from scratch.
Would you be up for reviewing pull requests I send your way to bring this up to a usable state?  Alternatively, would you be willing to make me maintainer on hackage, perhaps after I've demonstrated satisfactory changes in a fork?
Also, was there a technical reason for you dropping this?  Did it turn out to be unnecessary for your needs, and you found an alternative solution?  Or was it just a case of lost interest/time?

Actually, never mind.  I think I'll start a new package.  I am still interested in knowing if there was a technical reason you dropped this, though.

Hi Rotaerk, there was no technical reason I dropped this, and it worked for simple cases, but I stopped working on my ray tracer project and moved on to other things. I'd be happy to see good Assimp bindings in Haskell -- good luck with your project!


adding info for upcoming study club sessions

hmm; I guess I need to run prettier for formatting...
will check the prettier docs and see if i can figure it out

I followed these instructions and it seems to have worked.

hmm... looks like there's something related to the term "status" that's not quite right yet...?


ReactNative Swift APIs

It would be worth adding support for ReactNative apps using Native Modules and expose Swift APIs to JS.

This would be a great extension of WhisperKit and we would be happy to link to this repo. Please let us know if anyone implements this :)


Caption of figure 18

The title of the source image used for the style transfer to the 3D printed rabbit shape is given as 'The large one parades on red bottom', as per the linked Wikiart page. However this is an egregiously bad (machine?) translation of the original title, Le grand parade sur fond rouge. Either use the artist's original title, or substitute a better translation e.g. Grand parade with red background (from here, a mosaic rendition of the Leger painting).

…I know, right? I remember being confused by the translated title but not finding the original—which seems to be right there on the WikiArt page, so not sure how that happened. Thanks for pointing it out, now we only need to let WikiArt know, too.

Changed to French title (La grand parade sur fond rouge). :-)

I've updated the Wikiart title, too. I hope "Grand parade on red background" stays closest to the original title. :-)

Great, thanks for a fascinating article!


Fix crash when parsing duplicate verses separated by a paragraph marker

This change is

This PR fixes https://github.com/sillsdev/serval/issues/388.

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

Project coverage is 67.25%. Comparing base (db1f173) to head (39d3c86).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #198   +/-   ##
=======================================
  Coverage   67.25%   67.25%
=======================================
  Files         441      441
  Lines       34941    34940    -1
  Branches     4685     4686    +1
=======================================
  Hits        23498    23498
  Misses      10356    10356
+ Partials     1087     1086    -1

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


Set eglSwapInterval to 0 in wayland backend

Since we track frame events manually, no need to require EGL to do it for us. This message from Daniel Stone on the ML reminded me of this:

When you use EGL in a client, is it important to never let eglSwapBuffers() block for you. You need to track frame callbacks manually or set eglSwapInterval to zero, preferably both, so your application code does not get blocked by EGL API that was designed for applications far less smart than yours.

Fixed in https://github.com/swaywm/wlroots/pull/1338


feat: add Meh app for meh.com

Displays the daily deal from meh.com -- the image, text, and price. Defaults to "No Deal." Uses a 10-miute cache for deal and image because sometimes they have multiple deals in a day.
I've attached a render of the "No Deal" -- when it can't contact meh.com, for whatever reason.

I have read the CLA Document and I hereby sign the CLA

Thanks for the PR!


Dss vest documentation

DssVest Documentation, work in progress and open for feedback. Currently split into traditional documentation and how to guides

Going to merge this and deal with it in a sec.


Unresolvable dependency resolving

Describe the issue you are experiencing
After trying to update from Laravel 8 to 9, I had encountered a bug related to this package.
> @php artisan package:discover --ansi

Illuminate\Contracts\Container\BindingResolutionException

Unresolvable dependency resolving [Parameter #0 [ <required> string $projectId ]] in class Kreait\Firebase\Auth\ApiClient

Installed packages
asm89/stack-cors                   v2.1.1             Cross-origin resource sharing library and stack middleware
bacon/bacon-qr-code                2.0.7              BaconQrCode is a QR code generator for PHP.
barryvdh/laravel-debugbar          v3.7.0             PHP Debugbar integration for Laravel
barryvdh/laravel-dompdf            v2.0.0             A DOMPDF Wrapper for Laravel
barryvdh/laravel-ide-helper        v2.12.3            Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.
barryvdh/reflection-docblock       v2.0.6
beste/clock                        2.1.0              A collection of Clock implementations
beste/json                         1.0.0              A simple JSON helper to decode and encode JSON
brick/math                         0.10.2             Arbitrary-precision arithmetic library
composer/pcre                      3.0.0              PCRE wrapping library that offers type-safe preg_* replacements.
dasprid/enum                       1.0.3              PHP 7.1 enum implementation
dflydev/dot-access-data            v3.0.1             Given a deep data structure, access data by dot notation.
doctrine/cache                     2.2.0              PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcac...
doctrine/dbal                      3.4.4              Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations              v1.0.0             A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or s...
doctrine/event-manager             1.1.2              The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector                 2.0.5              PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and sing...
doctrine/instantiator              1.4.1              A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                     1.2.3              PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
dompdf/dompdf                      v2.0.0             DOMPDF is a CSS 2.1 compliant HTML to PDF converter
dragonmantank/cron-expression      v3.3.2             CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
egulias/email-validator            3.2.1              A library for validating emails against several RFCs
ezyang/htmlpurifier                v4.16.0            Standards compliant HTML filter written in PHP
fideloper/proxy                    4.4.2              Set trusted proxies for Laravel
fig/http-message-util              1.1.5              Utility classes and constants for use with PSR-7 (psr/http-message)
filp/whoops                        2.14.5             php error handling for cool kids
firebase/php-jwt                   v5.5.1             A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.
fruitcake/laravel-cors             v2.2.0             Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
fruitcake/php-cors                 v1.2.0             Cross-origin resource sharing library for the Symfony HttpFoundation
fzaninotto/faker                   dev-master 5ffe7db Faker is a PHP library that generates fake data for you.
google/auth                        v1.22.0            Google Auth Library for PHP
google/cloud-core                  v1.47.2            Google Cloud PHP shared dependency, providing functionality useful to all components.
google/cloud-storage               v1.28.1            Cloud Storage Client for PHP
google/crc32                       v0.1.0             Various CRC32 implementations
graham-campbell/result-type        v1.1.0             An Implementation Of The Result Type
guzzlehttp/guzzle                  7.5.0              Guzzle is a PHP HTTP client library
guzzlehttp/promises                1.5.2              Guzzle promises library
guzzlehttp/psr7                    2.4.1              PSR-7 message implementation that also provides common utility methods
hamcrest/hamcrest-php              v2.0.1             This is the PHP port of Hamcrest Matchers
ichtrojan/laravel-otp              v1.4.1             A simple package to generate and validate OTPs
kreait/firebase-php                6.8.0              Firebase Admin SDK
kreait/firebase-tokens             3.0.3              A library to work with Firebase tokens
kreait/laravel-firebase            dev-main 35bdebd   A Laravel package for the Firebase PHP Admin SDK
laravel/cashier                    v13.16.0           Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
laravel/fortify                    v1.13.3            Backend controllers and scaffolding for Laravel authentication.
laravel/framework                  v9.31.0            The Laravel Framework.
laravel/sanctum                    v2.15.1            Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel/serializable-closure       v1.2.2             Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
laravel/tinker                     v2.7.2             Powerful REPL for the Laravel framework.
lcobucci/clock                     2.2.0              Yet another clock abstraction
lcobucci/jwt                       4.2.1              A simple library to work with JSON Web Token and JSON Web Signature
league/commonmark                  2.3.5              Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)
league/config                      v1.1.1             Define configuration arrays with strict schemas and access values with dot notation
league/flysystem                   3.5.1              File storage abstraction for PHP
league/mime-type-detection         1.11.0             Mime-type detection for Flysystem
maatwebsite/excel                  3.1.40             Supercharged Excel exports and imports in Laravel
maennchen/zipstream-php            2.2.1              ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the s...
markbaker/complex                  3.0.1              PHP Class for working with complex numbers
markbaker/matrix                   3.0.0              PHP Class for working with matrices
masterminds/html5                  2.7.6              An HTML5 parser and serializer.
maximebf/debugbar                  v1.18.1            Debug bar in the browser for php application
mockery/mockery                    1.5.1              Mockery is a simple yet flexible PHP mock object framework
moneyphp/money                     v3.3.3             PHP implementation of Fowler's Money pattern
monolog/monolog                    2.8.0              Sends your logs to files, sockets, inboxes, databases and various web services
mtdowling/jmespath.php             2.6.1              Declaratively specify how to extract elements from a JSON document
myclabs/deep-copy                  1.11.0             Create deep copies (clones) of your objects
myclabs/php-enum                   1.8.4              PHP Enum implementation
nesbot/carbon                      2.62.1             An API extension for DateTime that supports 281 different languages.
nette/schema                       v1.2.2             📐 Nette Schema: validating data structures against a given Schema.
nette/utils                        v3.2.8             🛠  Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, ...
nikic/php-parser                   v4.15.1            A PHP parser written in PHP
nunomaduro/collision               v6.3.0             Cli error handling for console/command-line PHP applications.
nunomaduro/termwind                v1.14.0            Its like Tailwind CSS, but for the console.
paragonie/constant_time_encoding   v2.6.3             Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)
paragonie/random_compat            v9.99.100          PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
paragonie/sodium_compat            v1.18.0            Pure PHP implementation of libsodium; uses the PHP extension if it exists
phar-io/manifest                   2.0.3              Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                    3.2.1              Library for handling version information and constraints
phenx/php-font-lib                 0.5.4              A library to read, parse, export and make subsets of different types of font files.
phenx/php-svg-lib                  0.4.1              A library to read, parse and export to PDF SVG files.
phpdocumentor/reflection-common    2.2.0              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/type-resolver        1.6.1              A PSR-5 based resolver of Class names, Types and Structural Element Names
phpoffice/phpspreadsheet           1.24.1             PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
phpoption/phpoption                1.9.0              Option Type for PHP
phpunit/php-code-coverage          9.2.17             Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator          3.0.6              FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker                3.1.1              Invoke callables with a timeout
phpunit/php-text-template          2.0.4              Simple template engine.
phpunit/php-timer                  5.0.3              Utility class for timing
phpunit/phpunit                    9.5.24             The PHP Unit Testing framework.
pragmarx/google2fa                 v8.0.1             A One Time Password Authentication package, compatible with Google Authenticator.
psr/cache                          3.0.0              Common interface for caching libraries
psr/container                      2.0.2              Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher               1.0.0              Standard interfaces for event handling.
psr/http-client                    1.0.1              Common interface for HTTP clients
psr/http-factory                   1.0.1              Common interfaces for PSR-7 HTTP message factories
psr/http-message                   1.0.1              Common interface for HTTP messages
psr/log                            3.0.0              Common interface for logging libraries
psr/simple-cache                   2.0.0              Common interfaces for simple caching
psy/psysh                          v0.11.8            An interactive shell for modern PHP.
pusher/pusher-php-server           7.0.2              Library for interacting with the Pusher REST API
ralouphie/getallheaders            3.0.3              A polyfill for getallheaders.
ramsey/collection                  1.2.2              A PHP library for representing and manipulating collections.
ramsey/uuid                        4.5.1              A PHP library for generating and working with universally unique identifiers (UUIDs).
riverline/multipart-parser         2.0.9              One class library to parse multipart content with encoding and charset support.
rize/uri-template                  0.3.4              PHP URI Template (RFC 6570) supports both expansion & extraction
sabberworm/php-css-parser          8.4.0              Parser for CSS Files written in PHP
sebastian/cli-parser               1.0.1              Library for parsing CLI options
sebastian/code-unit                1.0.8              Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3              Looks up which function or method a line of code belongs to
sebastian/comparator               4.0.8              Provides the functionality to compare PHP values for equality
sebastian/complexity               2.0.2              Library for calculating the complexity of PHP code units
sebastian/diff                     4.0.4              Diff implementation
sebastian/environment              5.1.4              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                 4.0.5              Provides the functionality to export PHP variables for visualization
sebastian/global-state             5.0.5              Snapshotting of global state
sebastian/lines-of-code            1.0.3              Library for counting the lines of code in PHP source code
sebastian/object-enumerator        4.0.4              Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector         2.0.4              Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context        4.0.4              Provides functionality to recursively process PHP variables
sebastian/resource-operations      3.0.3              Provides a list of PHP built-in functions that operate on resources
sebastian/type                     3.2.0              Collection of value objects that represent the types of the PHP type system
sebastian/version                  3.0.2              Library that helps with managing the version number of Git-hosted PHP projects
spatie/backtrace                   1.2.1              A better backtrace
spatie/flare-client-php            1.3.0              Send PHP errors to Flare
spatie/ignition                    1.4.1              A beautiful error page for PHP applications.
spatie/laravel-ignition            1.5.0              A beautiful error page for Laravel applications.
spatie/laravel-permission          5.5.5              Permission handling for Laravel 6.0 and up
stella-maris/clock                 0.1.5              A pre-release of the proposed PSR-20 Clock-Interface
stripe/stripe-php                  v7.128.0           Stripe PHP Library
symfony/cache                      v6.1.3             Provides an extended PSR-6, PSR-16 (and tags) implementation
symfony/cache-contracts            v3.1.1             Generic abstractions related to caching
symfony/console                    v6.1.4             Eases the creation of beautiful and testable command line interfaces
symfony/css-selector               v6.1.3             Converts CSS selectors to XPath expressions
symfony/deprecation-contracts      v3.1.1             A generic function and convention to trigger deprecation notices
symfony/error-handler              v6.1.3             Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher           v6.1.0             Provides tools that allow your application components to communicate with each other by dispatching events and listenin...
symfony/event-dispatcher-contracts v3.1.1             Generic abstractions related to dispatching event
symfony/finder                     v6.1.3             Finds files and directories via an intuitive fluent interface
symfony/http-foundation            v6.1.4             Defines an object-oriented layer for the HTTP specification
symfony/http-kernel                v6.1.4             Provides a structured process for converting a Request into a Response
symfony/mailer                     v6.1.4             Helps sending emails
symfony/mime                       v6.1.4             Allows manipulating MIME messages
symfony/polyfill-ctype             v1.26.0            Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme     v1.26.0            Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu          v1.26.0            Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn          v1.26.0            Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.26.0            Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.26.0            Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.26.0            Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80             v1.26.0            Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81             v1.26.0            Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/polyfill-uuid              v1.26.0            Symfony polyfill for uuid functions
symfony/process                    v6.1.3             Executes commands in sub-processes
symfony/routing                    v6.1.3             Maps an HTTP request to a set of configuration variables
symfony/service-contracts          v3.1.1             Generic abstractions related to writing services
symfony/string                     v6.1.4             Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/translation                v6.1.4             Provides tools to internationalize your application
symfony/translation-contracts      v3.1.1             Generic abstractions related to translation
symfony/uid                        v6.1.3             Provides an object-oriented API to generate and represent UIDs
symfony/var-dumper                 v6.1.3             Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter               v6.1.3             Allows exporting any serializable PHP data structure to plain PHP code
theseer/tokenizer                  1.2.1              A small library for converting tokenized PHP source code into XML and potentially other formats
tijsverkoyen/css-to-inline-styles  2.2.5              CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. Thi...
vlucas/phpdotenv                   v5.4.1             Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
voku/portable-ascii                2.0.1              Portable ASCII library - performance optimized (ascii) string functions for php.
webmozart/assert                   1.11.0             Assertions to validate method input/output with nice error messages.

PHP version and extensions
composer-plugin-api    2.1.0    The Composer Plugin API
composer-runtime-api   2.1.0    The Composer Runtime API
ext-calendar           8.1.10   The calendar PHP extension
ext-ctype              8.1.10   The ctype PHP extension
ext-curl               8.1.10   The curl PHP extension
ext-date               8.1.10   The date PHP extension
ext-dom                20031129 The dom PHP extension
ext-exif               8.1.10   The exif PHP extension
ext-ffi                8.1.10   The FFI PHP extension
ext-fileinfo           8.1.10   The fileinfo PHP extension
ext-filter             8.1.10   The filter PHP extension
ext-ftp                8.1.10   The ftp PHP extension
ext-gd                 8.1.10   The gd PHP extension
ext-gettext            8.1.10   The gettext PHP extension
ext-hash               8.1.10   The hash PHP extension
ext-iconv              8.1.10   The iconv PHP extension
ext-json               8.1.10   The json PHP extension
ext-libxml             8.1.10   The libxml PHP extension
ext-mbstring           8.1.10   The mbstring PHP extension
ext-mysqli             8.1.10   The mysqli PHP extension
ext-mysqlnd            0        The mysqlnd PHP extension (actual version: mysqlnd 8.1.10)
ext-openssl            8.1.10   The openssl PHP extension
ext-pcntl              8.1.10   The pcntl PHP extension
ext-pcre               8.1.10   The pcre PHP extension
ext-pdo                8.1.10   The PDO PHP extension
ext-pdo_mysql          8.1.10   The pdo_mysql PHP extension
ext-pdo_pgsql          8.1.10   The pdo_pgsql PHP extension
ext-pgsql              8.1.10   The pgsql PHP extension
ext-phar               8.1.10   The Phar PHP extension
ext-posix              8.1.10   The posix PHP extension
ext-readline           8.1.10   The readline PHP extension
ext-reflection         8.1.10   The Reflection PHP extension
ext-session            8.1.10   The session PHP extension
ext-shmop              8.1.10   The shmop PHP extension
ext-simplexml          8.1.10   The SimpleXML PHP extension
ext-sockets            8.1.10   The sockets PHP extension
ext-sodium             8.1.10   The sodium PHP extension
ext-spl                8.1.10   The SPL PHP extension
ext-sysvmsg            8.1.10   The sysvmsg PHP extension
ext-sysvsem            8.1.10   The sysvsem PHP extension
ext-sysvshm            8.1.10   The sysvshm PHP extension
ext-tokenizer          8.1.10   The tokenizer PHP extension
ext-xml                8.1.10   The xml PHP extension
ext-xmlreader          8.1.10   The xmlreader PHP extension
ext-xmlwriter          8.1.10   The xmlwriter PHP extension
ext-xsl                8.1.10   The xsl PHP extension
ext-zend-opcache       8.1.10   The Zend OPcache PHP extension
ext-zip                1.19.5   The zip PHP extension
ext-zlib               8.1.10   The zlib PHP extension
lib-curl               7.68.0   The curl library
lib-curl-libssh        0.9.3    curl libssh version
lib-curl-openssl       <IP_ADDRESS>  curl OpenSSL version (<IP_ADDRESS>)
lib-curl-zlib          1.2.11   curl zlib version
lib-date-timelib       2021.16  date timelib version
lib-date-zoneinfo      0        zoneinfo ("Olson") database for date
lib-fileinfo-libmagic  540      fileinfo libmagic version
lib-gd                 2.3.3    The gd library
lib-iconv              2.31     The iconv library
lib-libsodium          1.0.18   The libsodium library
lib-libxml             2.9.14   libxml library version
lib-libxslt            1.1.34   The libxslt library
lib-libxslt-libxml     2.9.10   libxml version libxslt is compiled against
lib-mbstring-libmbfl   1.3.2    mbstring libmbfl version
lib-mbstring-oniguruma 6.9.4    mbstring oniguruma version
lib-openssl            <IP_ADDRESS>  OpenSSL 1.1.1f  31 Mar 2020
lib-pcre               10.40    The pcre library
lib-pcre-unicode       14.0.0   PCRE Unicode version support
lib-pdo_pgsql-libpq    14.5     libpq for pdo_pgsql
lib-zip-libzip         1.7.3    The zip-libzip library
lib-zlib               1.2.11   The zlib library
php                    8.1.10   The PHP interpreter
php-64bit              8.1.10   The PHP interpreter, 64bit
php-ipv6               8.1.10   The PHP interpreter, with IPv6 support

On which operating system(s) does the issue occur?

[X] Linux
[ ] MacOS
[ ] Windows

Steps to reproduce the issue.

composer install
...
...

use Kreait\Firebase;

$factory = (new Firebase\Factory())
    ->withServiceAccount('/path/to/firebase_credentials.com')
    ->withDatabaseUri('https://my-project.firebaseio.com')
;

// ...

Error message/Stack trace
PHP Deprecated:  Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112

Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
Deprecation Notice: strlen(): Passing null to parameter kreait/firebase-php#1 ($string) of type string is deprecated in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/src/Composer/Repository/ArrayRepository.php:286
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/src/Composer/Repository/ArrayRepository.php:286
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/src/Composer/Repository/ArrayRepository.php:286
Deprecation Notice: Return type of Symfony\Component\Finder\Finder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Finder.php:675
Deprecation Notice: Return type of Symfony\Component\Finder\Finder::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Finder.php:732
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\FilterIterator::rewind() should either be compatible with FilterIterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/FilterIterator.php:30
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\FileTypeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php:42
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::getChildren() should either be compatible with RecursiveDirectoryIterator::getChildren(): RecursiveDirectoryIterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php:85
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::rewind() should either be compatible with FilesystemIterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php:113
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::current() should either be compatible with FilesystemIterator::current(): SplFileInfo|FilesystemIterator|string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php:65
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php:55
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::hasChildren() should either be compatible with RecursiveIterator::hasChildren(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php:71
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::getChildren() should either be compatible with RecursiveIterator::getChildren(): ?RecursiveIterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php:76
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\FilterIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/FilterIterator.php:30
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\DateRangeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php:41
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\PathFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/PathFilterIterator.php:27
Generating optimized autoload files
Deprecation Notice: Return type of Symfony\Component\Finder\Iterator\FilenameFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/finder/Iterator/FilenameFilterIterator.php:28
Deprecation Notice: preg_replace(): Passing null to parameter kreait/firebase-php#3 ($subject) of type array|string is deprecated in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:251
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Illuminate\Contracts\Container\BindingResolutionException

  Unresolvable dependency resolving [Parameter #0 [ <required> string $projectId ]] in class Kreait\Firebase\Auth\ApiClient

  at vendor/laravel/framework/src/Illuminate/Container/Container.php:1106
    1102▕     protected function unresolvablePrimitive(ReflectionParameter $parameter)
    1103▕     {
    1104▕         $message = "Unresolvable dependency resolving [$parameter] in class {$parameter->getDeclaringClass()->getName()}";
    1105▕
  ➜ 1106▕         throw new BindingResolutionException($message);
    1107▕     }
    1108▕
    1109▕     /**
    1110▕      * Register a new before resolving callback for all types.

      +27 vendor frames
  28  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Additional information
No response

Unfortunately I can't reproduce the issue without knowing how you are using the package. Do you inject the API client directly into a service/controller (if yes, you shouldn't 😅). Have you published and changed the Firebase config? If so, what does the config look like? Did you have the same version of the Firebase Laravel Package before the upgrade from Laravel 8 to 9? Why are you using the dev-branch of this package instead of the latest release?
Please help me help you by giving me enough information to reproduce the issue.
You can test if the issue lies in this package or the SDK by performing the following steps:
$ composer create-project laravel/laravel laravel9-with-firebase
$ cd laravel9-with-firebase
$ composer require -W kreait/laravel-firebase
$ php artisan vendor:publish --provider="Kreait\Laravel\Firebase\ServiceProvider" --tag=config
$ composer update -W

If this works (and it should), some other dependency in your project likely interferes. The multiple Deprecation warnings are an additional sign that something has not been updated. One reason could be that your composer binary is not on the latest version. A composer self-update should bring you to version 2.4.2.
Let me know how it goes!

Thanks for the polite and complete reply. I will perform those actions and post here back again later.

Doing your steps really work indeed.
I was trying to upgrade Laravel from 8 to 9 and did not change the Firebase Laravel Package initially, but this error happened and then I ended up changing it too, the dev branch was a despairing act.
I did not publish the configs and I use the Firebase credentials as recommended on the documentation.

Does perhaps a composer update -W in your project work, in case you haven't already tried that? The deprecation warnings "worry" me, I usually try to address everything else when I tackle such problems, even if it doesn't look directly related. Sometimes this fixes other problems at the same time, but at least everything else is out of the way and it helps focusing on the actual problem better.
You could also try to call the package's ProjectManager directly from within artisan tinker or create a simple controller starting with the simplest use cas and then continue to build it up until it breaks.
Just to be sure: if you inject components of the SDK into your services/controllers, you need to use the contracts, not the implementations.

Everything is working seamlessly with Laravel 8, but when trying to upgrade to 9 this error happens.
The good news is given your last message I checked the injection throughout the project, and there were some injections of the implementations instead of the contracts.
Thanks for all the support.

Hi @oqfs06 , have you worked it out? I have encountered the same issue when upgrading Laravel from 8 to 9.

I got this problem in my sending job:
use Kreait\Firebase\Messaging;

public function handle(Messaging $firebase)
{
    $response = $firebase->sendMulticast($this->message, $this->pushProfile->Token);
}

to fix that I just change the dependency:
use Kreait\Laravel\Firebase\Facades\Firebase;

public function handle()
{
    $response = Firebase::messaging()->sendMulticast($this->message, $this->pushProfile->Token);
}

@wislert It should work by using
use Kreait\Firebase\Contract\Messaging;

instead of
use Kreait\Firebase\Messaging;


Try to fix 1716 - internal proxy under load

Tries to fix #1716
Try to resolve an issue where internal proxy is under heavy load since bash scripts does a lot of fork/exec by:

Increasing internal proxy's listen backlog (might not help on macOS)
Change internal proxy to create the upstream (agent) connection in a different task, allowing it to keep accepting.

I also tried
Not blocking the process we load into until we get the connection - that happens in the background. - That lead to e2e/integration failing, and we don't really need it.

Looks good. Let's also make the layer -> proxy connection lazy. I'll open a separate issue for that.

I tried making it semi-lazy (have it connect in the background) and it failed the tests, okay with having a backlog issue for that.

The pause test also fails locally, when run alone. So it seems this introduces (or uncovers) a real issue with pause or with its test. Working to find the issue.

The issue it introduced was me forgetting to set nonblocking on the self-created socket before converting it into tokio's :(


Where are stubs?

Sinon.js isn't used, and I'm not sure how I would stub something like Meteor.user() in Mocha. As in, prevent the original from being called and specify the return value of the stub.

:+1:

I'd suggest using meteor-sinon by @practicalmeteor
I don't think it makes sense to bring this into the mocha package if possible.


Change DB Configuration from sqlite to Postgres

Describe the bug
Currently, the code has SQLite configuration, this should be changed to Postgres as it is supported by Heroku
What is the DB being used for?
The DB will store user information and the user's current stage in the bot.
The stages are in reference to gamification which will happen in the future.
The DB will also store all the messages that will be used in the bot.
Model structure
Messages
Index| Message| response_id| gif_id
Users
index| Full_name| game_stage|
Steps to take

Install psycopg2
Install flask-sqlalchemy
freeze requirements.txt
create models folder and add -> init.py, game_users.py, messages.py
add tests

@aboullaite I would like to fix this!
psycopg and flask sqlachemy should be done in requirements.txt right?

@vj-codes yes!

@elinguiuriel the latest version of  psycopg is psycopg2 should that be installed instead?

@vj-codes yes, install the latest version.

Yes I agree  we should use MySQL or PostgreSQL .
Sqlite  should not be used if this is going to be a large scale application   since sqlite handles  read/write operations in a serialized way this will create bottle necks


Questions about the optimal initial point for registration

I have found better initial points in traditional rigid registration before, but  I want to migrate to DiffDRR and find that it is not ideal（I used the astra library to generate DRR (https://github.com/astra-toolbox/astra-toolbox), which I set based on the actual projection conditions of the X-ray image）. So if I don't use my previous better initial points, will it affect the subsequent registration results? This question is bugging me right now, if you could answer it I would really appreciate it！

Hi, thanks for your question.
In DiffDRR, you can still set the initial point. This would be the first view that you see in the registration optimization process (see this section of the 2D/3D registration tutorial).
How are you getting the "actual projection conditions of the X-ray image"? Is this from the DICOM header? If yes, you'll just need to translate that pose into DiffDRR's convention, and then you're good to go!

Just want to make sure I understand your question - when you say there is "an offset on the two-dimensional plane" and "a gap in the scaling ratio", are you talking about the principal point and the focal length? DiffDRR assumes that you have ground truth values for those parameters. If your X-rays are in DICOM, those parameters are stored in the header and you can extract them.
If you render a DRR with DiffDRR from the true extrinsic camera pose and use the true intrinsic parameters (principal point and focal length), the rendered X-ray should look very close to the real X-ray (of course, the real X-ray will be more detailed and realistic looking).
So just to clarify, the networks in DiffPose only predict the extrinsic parameters. There's no reason that they can't be trained to also predict your intrinsic parameters. That just wasn't done in the current work, but would be a great extension.
If you don't have good ground truth values for the intrinsic parameters, you can also estimate them with gradient descent in DiffDRR. In the latest version, I made the renderer differentiable w.r.t. these intrinsic parameters.
Did I understand/answer your original question or did I miss something?

Thank you very much for your reply. Yes, your reply is very good (it eliminates a lot of doubts that troubled me). I also performed registration according to your suggestions (respectively for the X-Ray image of AP and the X-Ray image of LAT). ), I found that if I perform posture regression on translation and rotation, the effect is not very good (mainly due to the impact of rotation), but if I only perform posture regression on translation, the effect can be achieved. What should I do? On the premise of performing attitude regression on translation and rotation, can better results be achieved?
Another more important issue is that I want to combine AP and LAT images (they are orthogonal in space, but the Source-to-detector of AP and LAT are different) to jointly register (that is, the current registration It is multi-view registration, and the X-Ray images of AP and LAT are used as input values for registration). Can this be achieved using DiffDRR? (I have tried modifying it on DiffPose. For example

, but the effect seems not ideal), I think if we can combine AP and LAT images, we may be able to solve the first problem. I have checked many papers, but there is no relevant research. If you can give me suggestions, I will Thank you very much!


Cannot construct languages with empty lists.

Let's say I have the following language:
(define-language Llist
  (terminals
   (symbol (s)))
  (List (l)
        s
        (l ...)))

I can use with-output-language to make an empty list, and I can use with-output-language to also create lists with non-empty sub-lists.
However, when I try to use with-output-language to create a list with an empty sublist, I get the following error:
(with-output-language (Llist List)
  `(a ()))

. . with-output-language: expected List but received () in field l of (l ...) from expression (#<syntax:11:4 (quote a)> #<syntax:11:6 (quote ())>)

As a temporary workaround, you can do:
(with-output-language (Llist List)
  `(a (,'() ...)))

But this is obviously very cludgy.

Fixed: 654a311f63c1dc2e1dab1f03762ec0f267f6c801


Error Adding Redis

When I try to add Redis to Docker, I get the following error:
no matching manifest for windows/amd64 in the manifest list entries
Any ideas why? I'm actually getting it with other images too.
David

Hey the Redis image you're using is only available as a Linux container.
Since it seems like you're running Docker for Windows, you can try switching between Windows and Linux containers:
https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers


Missing release tags?

@chporter
There are commits that look like they would correspond to release tags for <IP_ADDRESS>-<IP_ADDRESS>, but no tags for those commits.  Is that intentional?  If not, could they be added?
Thanks!

Done! Thanks!


ldns: 1.7.1 -> 1.8.1 (security, backport)

Motivation for this change
https://github.com/NixOS/nixpkgs/issues/160664
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

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

1 package marked as broken and skipped:

tlspool

10 packages built:

dnsperf
freeswitch
networkmanager-l2tp (gnome.networkmanager-l2tp)
hash-slinger
ldns
libreswan
networkmanager_strongswan
strongswan
strongswanNM
strongswanTNC


Bump deps and implement Suspend Monitoring

See
https://github.com/slntopp/nocloud-cli/pull/18
https://github.com/slntopp/nocloud/pull/360

See https://github.com/slntopp/nocloud/pull/363


Create Secure that DB.txt

Yet another story 🛩

You should consider starting a newsletter based on this one. This is brilliant!


FVTT Version 10 Build 284 Compatibility and DnD 5E v 2.0.2

When I load Foundry with this mod loaded, I get the following errors:
GET http://<IP_ADDRESS>:23401/systems/dnd5e/module/actor/entity.js net::ERR_ABORTED 404 (Not Found)  applyDamage.js:1
GET http://<IP_ADDRESS>:23401/systems/dnd5e/module/item/entity.js net::ERR_ABORTED 404 (Not Found)  damageRoll.js:1

This module is not marked as ready for core v10.
Nor will it ever be, the hooks introduced here were put into dnd5e v2.

Ah, ok.  Items with Rollable Tables required it.  Sorry for the misunderstanding. :)


Rethinking handling of Wdmax

Based on the conversation with @tbohn and @jhamman in PR #481 , veg_var->Wdmax is a derived model parameter (completely derived from LAI), and may not be ideal to be put in its current structure (currently it is handled as a state variable in veg_var structure). Need to rethink the handling of Wdmax.

Agreed - should not be a state variable as it is a derived model parameter


Coin change problem in c++

💥 Proposal
(A clear and concise description of what the proposal is.)
I would like to add the code for Coin change problem using Dp in cpp. Please assign this issue to me[GSSOC'21].
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
yes

/assign


Is it possible to compile athenapdf statically?

The "quest" I have is the linux distro I use; it's quite special (don't have any package managers and stuff like that; and docker isn't running there either!); and we are allowed to use only statically compiled packages. Is there a way to compile athenapdf or at least chromium/electrum as a fully static package? I've tried with electron-packager but it's still dynamically linked... Thanks.

@sxiii The athenapdf is no longer maintenance, you can try doctron. https://github.com/lampnick/doctron
Doctron is a sample,fast,high quality document convert tool.Supply html convert to pdf, html convert to image(like jpeg,png), add watermarks to pdf, convert pdf to images etc.


[FEAT]: Resolve compiler warnings

Description
Cleanup warnings
Motivation
currently, some compiler warnings are present, they can highlight possible errors as well as obscure output

I guess this can be closed as we don't get any warnings in our new versions


Connect to active mode FTP server in docker with specific IP

FTP Server OS: Embedded（RT-Thread RTOS）
FTP Server Type: Another
Client Computer OS: Debian(Docker)
FluentFTP Version: 48.0.3
Framework: .NET 7(Asp.net core)
"I've encountered a problem where my FTP service does not have a passive mode, only an active mode is available. Moreover, my ASP.NET Core program needs to be deployed in Docker, and I cannot use the host network (--net=host). When I use AsyncFtpClient to retrieve the server directory list, the packet capture tool Wireshark shows that it sends PORT 172,17,0,2,230,120, which uses the internal IP of the container. Therefore, my question is, does FtpClient have any configuration class that allows setting the IP for active mode (so that I can set it to the Docker host machine’s IP, thereby mapping it into the container)?"

I think this needs an enhancement to Active FTP connections.

Please correct me if I am wrong, but for the EPRT and PORT commands, the IP address that this emits is derived from GetLocalAddress(...), which in turn already supports this:
			// Use resolver
			if (Config.AddressResolver != null) {
				return m_Address ?? (m_Address = Config.AddressResolver());
			}

by referencing the Config parameter
		public Func<string> AddressResolver { get; set; }

		/// <summary>
		/// Ports used for Active Data Connection.
		/// Useful when your FTP server has certain ports that are blocked or used for other purposes.
		/// </summary>

Use this callback by supplying a delegate function that returns simply the needed IP address to be sent out in the respective PORT command.
You can find this right in the same place in Config, where the desired active port range can be defined.

Please correct me if I am wrong, but for the EPRT and PORT commands, the IP address that this emits is derived from GetLocalAddress(...), which in turn already supports this:
			// Use resolver
			if (Config.AddressResolver != null) {
				return m_Address ?? (m_Address = Config.AddressResolver());
			}

by referencing the Config parameter
		/// <summary>
		/// Delegate used for resolving local address, used for active data connections
		/// This can be used in case you're behind a router, but port forwarding is configured to forward the
		/// ports from your router to your internal IP. In that case, we need to send the router's IP instead of our internal IP.
		/// </summary>
		public Func<string> AddressResolver { get; set; }

Use this callback by supplying a delegate function that returns simply the needed IP address to be sent out in the respective PORT command.
You can find this right in the same place in Config, where the desired active port range can be defined.

This is the perfect solution to my problem. Thank you


Fix "AutoScaleDimensions" on several .resx files.

I was kinda thinking we'd do these on the branch that treats them as errors, but that's not super important.
And probably not even a very good idea if that branch is very long lived, so maybe this is better.

I was kinda thinking we'd do these on the branch that treats them as errors, but that's not super important.
And probably not even a very good idea if that branch is very long lived, so maybe this is better.

Sorry to piggyback on your PR, but I figured it would save some time to role in the RESX files I edited during the Monday meeting.
Thanks for pushing this forward, Nick and Brian.

Sorry to piggyback on your PR, but I figured it would save some time to role in the RESX files I edited during the Monday meeting.
Thanks for pushing this forward, Nick and Brian.

Once all of these changes are completed, however, someone should test how the forms look in all 3 languages using SkylineTester. It should not take more than 15 minutes using the Forms tab.

Once all of these changes are completed, however, someone should test how the forms look in all 3 languages using SkylineTester. It should not take more than 15 minutes using the Forms tab.

In that case I'm going to move these changes to the branch, where it will be easier to figure out which dialogs need that final manual testing step. Nick, please don't merge this - nor destroy it quite yet

In that case I'm going to move these changes to the branch, where it will be easier to figure out which dialogs need that final manual testing step. Nick, please don't merge this - nor destroy it quite yet


Create modern looking bloom post-effect

Currently, the engine only has a simple bloom effect, and a modern implementation is needed.
references:
https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom
https://www.froyok.fr/blog/2021-09-ue4-custom-lens-flare/
https://twitter.com/iced_coffee_dev/status/1617580408576565251?t=OYAlQMbMAx4PYCKlx7HplQ&s=03

I experimented with it on this tutorial   https://playcanv.as/b/491d8a85

That looks cool, @SashaRX. Did you experience any problems or limitations using the technique from that article?

In general, everything went really fast, despite my poor programming skills). I still haven't worked out how to use blendState and pc.drawQuadWithShader. Here it uses render to hdr render target, I use linear space, it's possible that this is not correct everywhere, since I didn't specify that albedo should be srgb for example, but it seems to be correct.

Looks good I'll be interested to see how that compares to our version.  I made a custom enhancement to playcanvas hdr mode so that it renders to 11bits not 16bit.  This was a lot faster to render on my m1 macbook (3-4ms).  The one issue still remaining is alpha blended objects look different like they are being double tonemapped or something....

I'm definitely keen to have this working on 11bits as well, to have a wider device support as well.
Both results look fantastic.

I am also adding this link to the UE current bloom method for visibility: https://www.froyok.fr/blog/2021-12-ue4-custom-bloom/

Another awesome work on this:
https://forum.playcanvas.com/t/physically-based-hdr-bloom/31759

@GSterbrant - you did some work on this as well, could you please create a PR for this (just attach the file in current state), link the PR here and close the PR (for now), just to keep reference to that file.

https://twitter.com/turanszkij/status/1680836739399667713

I like that custom ue4 one.  I believe I can share the source to my implementation if you're interested though its still not 100% imo

Ideally we'd implement in using this system when ready: https://github.com/playcanvas/engine/issues/5687


Highlight code between backticks in latest commit

Currently, text between backticks is only highlighted in commit messages in the commit list. This PR applies the same styles to the latest commit on the repository start page:

Code formatting could be added in a few more places:

Latest commit on repo start page (https://github.com/sindresorhus/refined-github) – commit-tease or message class:

File list on repo start page (https://github.com/sindresorhus/refined-github) – message class:

Single commit page (e.g. https://github.com/sindresorhus/refined-github/commit/3bf451f88360b5f1b898f636542a443ea2b687d2) – commit-title class:

Updated to cover the aforementioned use cases.

This looks great, thank you!

There's one more place: https://github.com/sindresorhus/refined-github/issues/2671#ref-pullrequest-546231073


Cartesian product with an empty set should be an empty set

https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/sets/cartesian-product/cartesianProduct.js#L8
I think it makes more sense to return an empty array
// invalid input return null or throw an error
if (!setA || !setB) {
    return null;
}
if (!setA.length || !setB.length) {
    return [];
}
// or do nothing since the for loop will not trigger anyway

Can you create a PR that will introduce this change?

https://github.com/trekhleb/javascript-algorithms/pull/363

could you have a look ?

I've fixed this on a local repos but currently struggling to make pull requests due to lint errors

yes I absolutely am. I need to start learning from almost the beginning
where should I start I understand some stuff. but its alot of not English
to me  but I really want to learn.! its of alot of interest to me!
On Fri., Jan. 31, 2020, 1:42 p.m. Taste Rainbow, <
<EMAIL_ADDRESS>wrote:

very t.y.
On Fri, Jan 31, 2020, 1:37 PM Lazar Ljubenović<EMAIL_ADDRESS>wrote:

You're lost, bud.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/trekhleb/javascript-algorithms/issues/339?email_source=notifications&email_token=AONWKKSRNFJ2YNZI3RNLTS3RARVVZA5CNFSM4HGBN2C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKPSYPQ#issuecomment-580856894,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONWKKWLAJ5ADT3BTRJK543RARVVZANCNFSM4HGBN2CQ
.


failure writing multi-segment SICDs

Trying to test some image handling code, I wanted to generate some fake SICDs with multiple NITF image segments.  To do this I scraped the SICD metadata from an existing image and used it to writeout a new image with a different number of rows/cols.  The metadata won't make sense, but this ought to work.
import numpy as np
import argparse

import sarpy.io.complex.sicd as sicd
import sarpy.io.complex as cf

parser = argparse.ArgumentParser(description='Fake SICD Generator')
parser.add_argument('InFile', help='Any SICD file to scrape metadata from')
parser.add_argument('OutFile', help='Output SICD')
parser.add_argument('Rows', type=int, help='Rows of output SICD')
parser.add_argument('Cols', type=int, help='Cols of output SICD')

args = parser.parse_args()

reader = cf.open(args.InFile)
meta = reader.sicd_meta

d1 = np.random.rand(args.Rows, args.Cols)
d2 = np.random.rand(args.Rows, args.Cols)
data = d1 + d2 * 1j
meta.ImageData.NumRows = args.Rows
meta.ImageData.NumCols = args.Cols
meta.ImageData.FullImage.NumRows = meta.ImageData.NumRows
meta.ImageData.FullImage.NumCols = meta.ImageData.NumCols
meta.ImageData.PixelType = 'RE32F_IM32F'

writer = sicd.SICDWriter(args.OutFile, meta)
writer.write_chip(data)
del writer

python make_multi_seg_image.py ~/sample-sicds/sicd_example_1_PFA_RE32F_IM32F_HH.nitf multi-seg.nitf 200100 2

WARNING:root:Got string input value of length 97 for attribute IID2 of class ImageSegmentHeader, which is longer than the allowed length 80, so truncating
WARNING:root:Got string input value of length 97 for attribute IID2 of class ImageSegmentHeader, which is longer than the allowed length 80, so truncating
WARNING:root:Got string input value of length 97 for attribute IID2 of class ImageSegmentHeader, which is longer than the allowed length 80, so truncating
WARNING:root:Got string input value of length 11 for attribute ILOC of class ImageSegmentHeader, which is longer than the allowed length 10, so truncating
WARNING:root:Got string input value of length 97 for attribute FTITLE of class NITFHeader, which is longer than the allowed length 80, so truncating
Traceback (most recent call last):
  File "make_multi_seg_image.py", line 29, in <module>
    writer.write_chip(data)
  File "/home/kjurka/git/kjurka/sarpy/sarpy/io/general/nitf.py", line 2515, in write_chip
    self.__call__(data, start_indices=start_indices, index=index)
  File "/home/kjurka/git/kjurka/sarpy/sarpy/io/general/nitf.py", line 2573, in __call__
    (this_inds[0], this_inds[2]))
  File "/home/kjurka/git/kjurka/sarpy/sarpy/io/general/base.py", line 1895, in __call__
    self._call(start1, stop1, start2, stop2, data_view)
  File "/home/kjurka/git/kjurka/sarpy/sarpy/io/general/base.py", line 1902, in _call
    self._memory_map[start1:stop1, start2:stop2] = data
ValueError: could not broadcast input array from shape (99999,2,2) into shape (0,2,2)
CRITICAL:root:Image segment 1 has only written 0 of 199998 pixels
CRITICAL:root:Image segment 2 has only written 0 of 204 pixels
Exception ignored in: <bound method AbstractWriter.__del__ of <sarpy.io.complex.sicd.SICDWriter object at 0x7f0bb1e595e8>>
Traceback (most recent call last):
  File "/home/kjurka/git/kjurka/sarpy/sarpy/io/general/base.py", line 1175, in __del__
  File "/home/kjurka/git/kjurka/sarpy/sarpy/io/general/nitf.py", line 2611, in close
OSError: The NITF file multi-seg.nitf image data is not fully written, and the file is potentially corrupt.
Image segment 1 has only written 0 of 199998 pixels
Image segment 2 has only written 0 of 204 pixels

Hi Kris, thanks again for participating. This error is obviously not amazingly useful, and I'll have to figure what's actually failing. It'll probably be maybe the middle of next week. -Tom


add subroutine to measure mem under Linux

Here is a subroutine for mining /proc/pid/status under Linux. It gives a variety of mem measurements of the whole process (and not only of the procedure we want to measure). However, with large arrays, it should be a good proxy.
A similar approach could be done for Windows.
Note: the function getpid() is not Fortran Standard. A call to a C function might therefore be more approriate.

Yes, I think getpid is part of Linux kernel system call and not part of the Fortran standard, though both GFortran and Intel Fortran supports it as an extension.
https://gcc.gnu.org/onlinedocs/gfortran/GETPID.html
https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/a-to-z-reference/g-1/getpid.html

Maybe we can use the Fortran 2008 intrinsic EXECUTE_COMMAND_LINE instead?

Yes, indeed. execute_command_line should be used instead.

Replaced.


@gavdi/** packages

Add new NPM Package
Please make sure you meet these requirements first:
Prerequisites

[X] Add link to your GitHub Repo in package.json (example)
[X] Add a license to your project.
[X] Add Author to your package.json (example).
[X] NPM module published with current version.
[ ] ui5.yaml file present (example)

Pull Request
After checking the prerequisites, you can create a pull request, to edit sources.json with the following content:
For example, if you want to add the module https://github.com/ui5-community/ui5-cc-md, your commit would look like this:
{
  "owner": "ui5-community",
  "repo": "ui5-cc-md",
  "addedToBoUI5": "2022-04-09T11:37:57.868Z",
  "type": "tooling",
  "tags": ["markdown"]
}

owner: is the organization or your username
repo: is the repo name
addedToBoUI5: is a timestamp with the current date
type: is the type of the module, please choose on of the types in the enum BoUI5Types
tags: Here you can name relevant tags for your module, as inspiration, which are already used you can find here

PR: https://github.com/marianfoo/bestofcapjs-data/pull/6

I've included all the packages in one PR, but should you want me to split them up into 3 different pull requests then let me know and I'll make the changes :)

all good, just realized that i linked the wrong repo, should have created the issue also in the bestofcap-js repo

all packages are now on the website
https://bestofcapjs.org/#/packages?search=gavdi&sort=addedToBoUI5


ALWAYS OPEN: documentation.

Any contribution to this project documentation is welcomed.
Please read the docs, if you find typos errors (i'm not native speaker) please commit on the gh-pages branch of this repo and correct me/add new docs, then make a pull request.

Hrabal, I'd love to help you with this.

Hey @dpalmquist84 , really appreciated!
As you can see my english is "almost-close-to-ok", so I really need some help on the docs. Plus, I think I take for granted some features/methods that are not so really thank you!
I switched all the docs to the gh-pages branch, so It can be published to https://hrabal.github.io/TemPy/ via GitHub pages.
Let me know if you need some infos/anything.

Hrabal,
I'm happy to help.  I look at the readme first just to make sure it makes
sense to me.
Thanks,
David
On Tue, Dec 5, 2017 at 11:27 AM, Federico Cerchiari <
<EMAIL_ADDRESS>wrote:

Hey @dpalmquist84 https://github.com/dpalmquist84 , really appreciated!
As you can see my english is "almost-close-to-ok", so I really need some
help on the docs. Plus, I think I take for granted some features/methods
that are not so really thank you!
I switched all the docs to the gh-pages branch, so It can be published to
https://hrabal.github.io/TemPy/ via GitHub pages.
Let me know if you need some infos/anything.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Hrabal/TemPy/issues/16#issuecomment-349358653, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AajFxlH16NXGj9OCb-r0P7m7pIi9S1e7ks5s9W78gaJpZM4P5R6v
.

Found a grammar error and would love to help fix it.

Thanks @Diablo2050

Hi! I'm going through the docs now. There are a few things I plan on fixing, but I also wanted to ask about this:

from tempy.tags import *

Is there a reason to do it this way and not import tempy.tags?

Hi @verascity!
The reason for the star import is to load in your module's namespace all the tags available to use,  instead the import tempy.tags statement will only load the "tempy" name.
If you check your locals() with dir() after the import you can see the difference:
>>> import tempy.tags
>>> dir()
['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'tempy']

>>> from tempy.tags import *
>>> dir()
['A', 'Abbr', 'Acronym', 'Address', 'Applet', 'Area', 'Article', 'Aside', 'Audio', 'B', 'Base', 'Basefont', 'Bdi', 'Bdo', 'Big', 'Blockquote', 'Body', 'Br', 'Button', 'Canvas', 'Caption', 'Center', 'Cite', 'Code', 'Colgroup', 'Comment', 'Content', 'DOCTYPES', 'Datalist', 'Dd', 'Del', 'Details', 'Dfn', 'Dialog', 'Dir', 'Div', 'Dl', 'Doctype', 'Dt', 'Em', 'Embed', 'Fieldset', 'Figcaption', 'Figure', 'Font', 'Footer', 'Form', 'Frame', 'Frameset', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'Head', 'Header', 'Hr', 'Html', 'I', 'Iframe', 'Img', 'Input', 'Ins', 'Kbd', 'Keygen', 'Label', 'Legend', 'Li', 'Link', 'Main', 'Map', 'Mark', 'Menu', 'Menuitem', 'Meta', 'Meter', 'Nav', 'Noframes', 'Noscript', 'Object', 'Ol', 'Optgroup', 'Option', 'Output', 'P', 'Param', 'Picture', 'Pre', 'Progress', 'Q', 'Rp', 'Rt', 'Ruby', 'S', 'Samp', 'Script', 'Section', 'Select', 'Small', 'Source', 'Span', 'Strike', 'Strong', 'Style', 'Sub', 'Summary', 'Sup', 'Table', 'Tag', 'Tbody', 'Td', 'Textarea', 'Tfoot', 'Th', 'Thead', 'Time', 'Title', 'Tr', 'Track', 'Tt', 'U', 'Ul', 'Var', 'Video', 'VoidTag', 'Wbr', '__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'tag', 'tag_cls', 'tag_cls_name', 'tag_parent_cls', 'tags']

The star import is not recommended in common Python and is seen as "not Pythonic" for it loads a lot of unused objects, the optimal way to used the tags would be:
>>> from tempy import tags
>>> tags.Div()
<tempy.tags.Div<PHONE_NUMBER>75032803449285107515398214285.>
>>> # Now the namespace is less polluted:
>>> dir()
['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 'tags']

P.S: I just noticed that tempy.tags module leave a bit of dirt after the import: 'tag', 'tag_cls', 'tag_cls_name', 'tag_parent_cls', 'tags' are not necessary and should not be accessible after the import, I opened the issue #66 on that if someone want to fix this.

D'oh -- what I actually meant was why not do from tempy import tags. My bad. With a relatively large import, isn't there a risk of conflict with variable names and other modules with the star import?

It's not in the docs because I'm lazy ;)
If you want to change that imports in the docs thank you! Both from tempy.tags import <explicit list of used tags> and from tempy import tags are reccomended ways to use TemPy.

Howdy, I corrected some spelling/grammar in the README.md but now see a lot of complaints from some maintainers about 'spam' grammer corrections during this years Hacktoberfest. Since corrections were specifically asked for in this issue is this PR okay?

Hi @wwintermute , I merged your PR.

I'll see if I can help with correction of spelling/grammar.


Use something else for output executable name

scm name is too generic and may be already taken by another Scheme implementation. I suggest using something else, like sarcasm.

I will actually reference this issue in a pull request which will also include linux support.


NoneType object is not iterable in multi_apply()

hi,
i'm using my custom dataset, which does not have iscrowd key.
so, gt_boxes_ignore is set to None.
When i used two stage detector (two_stage.py), there was no problem.
But when i used cascade rcnn (cascade_rcnn.py), an error occurred.
error log:
File "/home/woo/venv_torch/lib/python3.5/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/woo/venv_torch/lib/python3.5/site-packages/torch/nn/parallel/data_parallel.py", line 141, in forward
return self.module(*inputs[0], **kwargs[0])
File "/home/woo/venv_torch/lib/python3.5/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/woo/PycharmProjects/MVPU1.0.aa_object_detection_pca_r/mmdet/models/detectors/base.py", line 80, in forward
return self.forward_train(img, img_meta, **kwargs)
File "/home/woo/PycharmProjects/MVPU1.0.aa_object_detection_pca_r/mmdet/models/detectors/cascade_rcnn.py", line 148, in forward_train
cfg=rcnn_train_cfg)
File "/home/woo/PycharmProjects/MVPU1.0.aa_object_detection_pca_r/mmdet/core/utils/misc.py", line 23, in multi_apply
map_results = map(pfunc, *args)
TypeError: 'NoneType' object is not iterable
i think there is a subtle difference between two codes(cascade_rcnn.py and two_stage.py).
so, i added below code to the cascade_rcnn.py for gt_bboxes_ignore=None
     for i in range(self.num_stages):
            num_imgs = img.size(0)
            if gt_bboxes_ignore is None:
                gt_bboxes_ignore = [None for _ in range(num_imgs)]

            rcnn_train_cfg = self.train_cfg.rcnn[i]
            lw = self.train_cfg.stage_loss_weights[i]

            # assign gts and sample proposals
            assign_results, sampling_results = multi_apply(

is it right? or is there another way?

It seems that you are not using the latest version, which has already fixed this issue.

thanks a lot !
i just checked !


Supabase v2 Types

Found this repo and found it very helpful, thank you for that!
This isn't an issue, but I was wondering if you've tried adapting this to the new v2 Supabase client?  In particular the Typescript portion that's been added.
I'm able to get the table names typed.
type QueryCreator = (supabase: SupabaseClient<Database>) => PostgrestFilterBuilder<any, any>;

But getting the .select or other methods to be typed, as well as type the return value of the UseQueryResult have been pretty difficult.  Was wondering if you've had any luck with it.
Supabase is doing some sort of TS voodoo to use the arguments passed to .from and it's a little over my head 🤯.
Appreciate any insight and thanks for creating this repo!

Hey @drewbietron ,
Thanks for your comment. I also agree with this and would love to see it, but got very limited time right now. If anyone is up for it please feel free to contribute.

@HermanNygaard - Looking at React Query support with this library.  Once the nut is cracked it could be applied to the context types here 💪 - https://github.com/psteinroe/supabase-cache-helpers/issues/57#issuecomment-1295259341

@drewbietron I'm thinking to start looking into this now (and then moving to tanstack-query). I see you already have done some work (linked in the thread above and in supabase-issues), looks promising. Do you have any updates or a quick summary on what the blocker is now? Also cool to see supabase-cache-helpers – I didn't know about that library.

I have started integrating v2 here #3, mostly done


exitOnError swallows output

According to the docs:

// it will collect all the errors encountered if { exitOnError: false } is set as an option
// elsewise it will throw the first error encountered as expected

In practice:
  new Listr(
    [
      {
        title: 'fail',
        task: () => {
          throw new Error('fail');
        },
      },
    ],
    { exitOnError: false }
  )
    .run()
    .catch((e) => console.error('in catch', e))

If exitOnError: false is set, the catch is never triggered.

This is the intended behaviour, matching the original Listr and what I also prefer too.  I guess there is no way unless I throw all the errors after, which is undesirable for most cases.
You can use the task.error, if you want to access the catcher error, even it is exitOnError: false.
https://github.com/cenk1cenk2/listr2#throw-errors
const task = new Listr(...)
logger.fail(task.err)
// will show all of the errors that are encountered through execution

Got it, that makes sense. Perhaps the only thing to do is to update this part of the README, which suggests that listr will re-throw
try {
  await tasks.run()
} catch (e) {
  // it will collect all the errors encountered if { exitOnError: false } is set as an option
  // elsewise it will throw the first error encountered as expected
  console.error(e)
}

Yes, it may need an update. But I am planning to create a documentation site because README is getting much bigger than I want for node_modules.


fix: upd css-loader vulnerability package, fix webpack example, upd flatpickr to the latest version

This will fix a vulnerability in the package
Will update the version of FlatPickr to the latest
And fix the webpack example which was not working because of a wrong config rule.

Thanks! Released in 3.10.4.


Fix spelling errors and shorten some code.

@byronvoorbach and/or @StefanBogdan – can one of you take a look at this PR, please?

Hello @StefanBogdan , I have made changes as per review. Let me know if its fine or any changes to be made.


Add Vectara addFile function (extends #2184)

Extends #2184 by resolving merge conflicts and fixing the build.
CC @3eif

It's good to go @3eif, might suggest adding some docs but let's get this one first in since it's been a while!


Change SPC w m to toggle maximize window

Description
This PR removes the current behaviour (HideAllWindows) of SPC w m which is defined under "extras". The removed behaviour still exists at SPC T m (defined under "extras").
Instead, I defined SPC w m under "spacemacs" to toggle the maximization of the current window. Pressing it onces will maximize the size of the split, and pressing it again will unmaximize the split.
As far as I understand, this closely matches actual Spacemacs behaviour. Source:

https://develop.spacemacs.org/doc/DOCUMENTATION.html#:~:text=SPC w m,to delete-other-windows)
https://www.reddit.com/r/spacemacs/comments/a1djxx/whats_your_window_layout/eapqhyw/
https://gist.github.com/heroheman/befa66b5b4dc5d94682206ece4a91a18#:~:text=SPC w m,toggle maximize window

This also seems to mostly match the behaviour of VSpaceCode:

https://github.com/VSpaceCode/VSpaceCode/blob/3a5f908feb65fd88c3e2c5ec7f3eb5ea7c3bf7c0/CHANGELOG.md?plain=1#L52

VSpaceCode seems to alter slightly from this PR. My suggested SPC w m maximizes the width of the current panel, which in effect makes all the other splits smaller. VSpaceCode used to work like this, but instead eventually changed SPC w m to truly maximize the current split, making other splits invisible. This behaviour I'm not sure that I can replicate in IntelliJ.
I suggest that if a new user who is used to Spacemacs and only imports "spacemacs" and not "extras", tries SPC w m, my suggested behaviour is close enough to what they would expect to happen.
You might argue that I should leave the existing binding and just make my new binding under SPC w M instead. I think a new user who tries SPC w m is still bothered as its behaviour doesn’t seem to match what Spacemacs does. Instead, it just toggles hiding all tool windows. If you don't have those open, it does nothing to "maximize" the current split.
To sum up:

for users who only use the "spacemacs" import, this adds a new command SPC w m that previously seems to have no similar action under this namespace
for users who also use the "extras" import, this removes SPC w m but they can access the same behaviour under SPC T m instead

Checklist

[x] I have read CONTRIBUTING guidelines.

CHANGELOG:

[x] Updated
[ ] I will update it after this PR has been discussed
[ ] No need to update

KEYBINDINGS:

[x] Updated
[ ] I will update it after this PR has been discussed
[ ] No need to update

PLUGINS:

[ ] Updated
[ ] I will update it after this PR has been discussed
[x] No need to update

thanks!


yarn create luna-app fails

Describe the bug
yarn create luna-app fails with the following error:
error Cannot create "/usr/local/bin/create-luna-app" due to insufficient permissions.
I then ran yarn config set prefix ~/.local to tame the error, which makes yarn create luna-app apparently succeed. The terminal shows:
success Installed<EMAIL_ADDRESS>with binaries:
- create-luna-app
[#########...########] 113/113?
✔ What is the name of the app? · mylunaapp
✔ Choose your CLI · React Native
✔ Installed!
But mylunaapp is nowhere to be found on the machine :-(
I'm already building react-native apps on this machine.
Am I missing something obvious?
Desktop (please complete the following information):

OS: Ubuntu 22.04
yarn v1.22.19

I had node.js installed as a snap package. Will never do that again. It screws up npx create-react-app as well. I re-installed node with nvm and now everything works fine.

How! Happy you figured it out fast. Let me know if you need help setting up expo-router and Next.js app folders together.


perf: use a binary search for insertMatcher

Inspired by #2132 and #2136, I had a go at speeding up insertMatcher.
This PR changes insertMatcher to use a binary search when trying to find the appropriate insertion point for a new matcher. This seems to give a similar performance gain to #2136, but without changing the public API for Vue Router.
Binary search is notoriously easy to get wrong. The existing unit tests pass, but I'm unclear how thoroughly they test the sort order. I'm happy to add some more tests if that seems appropriate.
This change does not yield the exact same sort order as the previous code:

When a new matcher is added, the old code would attempt to add it as late in the order as possible. That is no longer the case, it'll be inserted at the first suitable index the binary search encounters. As far as I'm aware this isn't a problem in practice, but if it does prove to be a problem it should be possible to get something much closer to the old sort order, albeit with a small drop in performance.
The original code had some special handling for child routes that have path: '', ensuring they come immediately before their parent. That was problematic for a binary search, so I've instead used the matcher's 'depth' as a secondary sort criterion. That should ensure that the child comes before the parent, though not necessarily immediately before.

Codecov Report
Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2df32af) 90.85% compared to head (b894ef7) 90.98%.
Report is 9 commits behind head on main.

Files
Patch %
Lines

packages/router/src/navigationGuards.ts
88.88%
0 Missing and 1 partial :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2137      +/-   ##
==========================================
+ Coverage   90.85%   90.98%   +0.12%
==========================================
  Files          24       24
  Lines        1115     1131      +16
  Branches      347      349       +2
==========================================
+ Hits         1013     1029      +16
  Misses         63       63
  Partials       39       39

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


JsonIgnore annotation seems to be broken

This model class:
import com.bluelinelabs.logansquare.annotation.JsonIgnore;
import com.bluelinelabs.logansquare.annotation.JsonObject;

@JsonObject(fieldDetectionPolicy = JsonObject.FieldDetectionPolicy.NONPRIVATE_FIELDS_AND_ACCESSORS)
public class Test {
    public String shouldBeProcessed;
    @JsonIgnore
    public String shouldNotBeProcessed;
}

Generates this code for me:
public static void parseField(Test instance, String fieldName, JsonParser jsonParser) throws IOException {
    if ("shouldBeProcessed".equals(fieldName)) {
      instance.shouldBeProcessed = jsonParser.getValueAsString(null);
    } else if ("shouldNotBeProcessed".equals(fieldName)){
      instance.shouldNotBeProcessed = jsonParser.getValueAsString(null);
    }
  }

public static void _serialize(Test object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
    if (writeStartAndEnd) {
      jsonGenerator.writeStartObject();
    }
    jsonGenerator.writeStringField("shouldBeProcessed", object.shouldBeProcessed);
    jsonGenerator.writeStringField("shouldNotBeProcessed", object.shouldNotBeProcessed);
    if (writeStartAndEnd) {
      jsonGenerator.writeEndObject();
    }
  }

Thanks for the report. Will be fixed very soon.

This is fixed in commit 0209e29159d91c2a4c6d6a55eab9c6c63426b4fb. Will be getting uploaded to JCenter and Maven Central as version 1.0.4 before the end of the day.

1.0.4 has been pushed to JCenter and Maven Central, so you should be good to go now. Sorry about the issue!


Coming Soon logos not responsive for smaller screen sizes.

Description:
Currently in the Asgardeo mobile ui SDKs the Coming Soon logos are not responsive for smaller screen sizes. This need to be fixed to give a good user experience for the users.

This is now fixed in the latest mobile-ui-sdks document site
https://asgardeo.github.io/mobile-ui-sdks/