Unresolved References Error when Using EzXHelper with Gradle Plugin 7.3.0

It seems that the EzXHelper library doesn't get properly identified as existing when you try to use version 7.3.0 of the Android Gradle Plugin. Android Studio reports that the reference is unresolved, but that is obviously untrue, as the app still builds properly. I am not sure if this is an issue that you can fix, but I wanted to make you aware of it anyway.

Can you display how your gradle dependencies are configured?

Certainly! The source code for the app that this screenshot is taken from is open source, so I can share the whole thing.
https://github.com/DavidBerdik/MACsposed

Certainly! The source code for the app that this screenshot is taken from is open source, so I can share the whole thing.
https://github.com/DavidBerdik/MACsposed

https://github.com/DavidBerdik/MACsposed/blob/master/app/build.gradle#L37
https://github.com/DavidBerdik/MACsposed/blob/master/app/build.gradle#L39
delete these two lines

Certainly! The source code for the app that this screenshot is taken from is open source, so I can share the whole thing.
https://github.com/DavidBerdik/MACsposed

https://github.com/DavidBerdik/MACsposed/blob/master/app/build.gradle#L37
https://github.com/DavidBerdik/MACsposed/blob/master/app/build.gradle#L39
delete these two lines

That seems to have worked! Why are the :sources lines a problem? I'd seen a recommendation somewhere to include them, but I have never understood their purpose.

It looks like the dependency is assigned a classifier of sources
This allows gradle to download the source code during the sync phase

I've never written this before.
idea can find the source code to download by itself.
I can see the correct source code when I jump to the declaration

In the past, you did not make mistakes in these writings, but about six months ago it started to make mistakes

I'm still not sure I entirely understand the issue. I know it's been a problem for at least a couple months now, but I thought it was a bug with the Gradle plugin when I first saw it, so I reverted without giving it any thought.

@DavidBerdik Except for xposed-related projects, I didn't see it written in the dependencies: sources, it seems that you are all misled by the outdated blog

Fair enough. Anyway, since this issue is resolved, I will close this. Thank you for your help!


Update all dependencies

Updates all the dependencies
Replaces deprecated eslint rules with their replacements
(some were combined into a single one)
Handle non-Error error values (existing possible bug)
Now such occurrences are enforced by TS since catch variables
are now unknown instead of any.

@Fryuni thanks a lot!


Add new swap index post route to the meilisearch_routes

Add a new swap_indexes post route to meilisearch_routes. See swap_indexes for implementation details.
Tests should also be added for this new route.

I call it swap_indexes and it will accept two index_uid parameters: index_uids and index_uids_to_swap_with. Here's what the route code would look like:
from fastapi import APIRouter

from meilisearch_python_async import MeiliSearch

router = APIRouter()

@router.post("/indexes/swap")
async def swap_indexes(index_uids: list[str], index_uids_to_swap_with: list[str], client: MeiliSearch):
    return await client.swap_indexes(index_uids, index_uids_to_swap_with)

This route will call the swap_indexes method on the MeiliSearch client, passing in the index_uids and index_uids_to_swap_with parameters.

We'll create a new file called test_swap_indexes.py in the tests directory, and add the following code:
import pytest
from httpx import AsyncClient
from fastapi import FastAPI

from meilisearch_python_async import MeiliSearch
from meilisearch_async.fastapi import MeiliSearchAsync
from meilisearch_async.fastapi.routes import router as meilisearch_router

@pytest.fixture(scope="module")
async def meilisearch_client():
    client = MeiliSearch("http://localhost:7700", "masterKey")
    yield client
    await client.delete_index("test_index")

@pytest.fixture(scope="module")
def app(meilisearch_client):
    app = FastAPI()
    app.include_router(meilisearch_router, prefix="/search")
    app.include_router(meilisearch_router, prefix="/indexes")
    app.state.client = meilisearch_client
    return app

@pytest.fixture(scope="module")
async def async_client(app):
    async with AsyncClient(app=app, base_url="http://testserver") as client:
        yield client

@pytest.mark.asyncio
async def test_swap_indexes(async_client, meilisearch_client):
    # Create two test indexes
    index1 = await meilisearch_client.create_index("test_index1")
    index2 = await meilisearch_client.create_index("test_index2")

    # Add some documents to the first index
    await index1.add_documents([
        {"id": 1, "title": "Document 1", "body": "This is the body of document 1."},
        {"id": 2, "title": "Document 2", "body": "This is the body of document 2."},
        {"id": 3, "title": "Document 3", "body": "This is the body of document 3."},
    ])

    # Add some documents to the second index
    await index2.add_documents([
        {"id": 4, "title": "Document 4", "body": "This is the body of document 4."},
        {"id": 5, "title": "Document 5", "body": "This is the body of document 5."},
        {"id": 6, "title": "Document 6", "body": "This is the body of document 6."},
    ])

    # Swap the indexes
    response = await async_client.post("/indexes/swap", json={
        "index_uids": ["test_index1", "test_index2"],
        "index_uids_to_swap_with": ["test_index2", "test_index1"],
    })

    # Check that the response was successful

If you have confirmed that all of the code changes i made are correct and functioning as expected, then yes, i can create a pull request to merge my changes into the main codebase. However, before creating the pull request,
Should I create a new Python test within it?

I call it swap_indexes and it will accept two index_uid parameters: index_uids and index_uids_to_swap_with. Here's what the route code would look like:

The new route can go in meiliesarch_routes.py so we won't need a new file. Also, there isn't a MeiliSearch class in meilisearch_python_async. The route should look like:
@router.post("/swap-indexes", response_mode=TaskInfo, tags=["Meilisearch"])
async def swap_indexes(indexes: List[SwapIndexes], client: Client = Depends(meilisarch_client)) -> TaskInfo:
    swap = [(x.from_index, x.to_index) for x in indexes]
    return await client.swap_indexes(swap)

A new SwapIndexes model needs to be create that has from_index and to_index string fields. This can be added in models/index.py
For tests a test_swap_indexes tests needs to be added to tests/test_meilisearch_routes.py that is the FastAPI equivalent of this tests. The fixtures you have listed are already created so no need to create them again.


pass batch down to sign and verify function

Corestore will stop working due the breaking changes, should we make it backward compatible or update Corestore accordingly?

Corestore will stop working due the breaking changes, should we make it backward compatible or update Corestore accordingly?

Updated the PR to be backwards compat, now batch / hash are passed as the last args

Cool, last thing I think we can safely remove this unused helper now
https://github.com/holepunchto/hypercore/blob/3589b2d18458d388489b12fb9f72ab4222f10fcb/lib/caps.js#L26

These changes we need were merged in #418.
Now this PR would just be removing the legacy option, which wasn't the original intention, so I'll close this.


[feature]: Override commit hash[es] for a changeset

Problem
When working on a long-lived branch, expectations can change as new knowledge is gained. Changes made early on in the branch's lifecycle may no longer be publicly relevant by the time the branch is release. We'd want the changelogs to reflect the final state of the project, rather than the incremental differences accumulated over the branch. Changesets brilliantly lets us revise the changelog before publishing or as we go, but AFAIK, the commits which revise the changeset would be taken as canonical, when we'd prefer to always link to the commit which changes the code.

start working on a branch
make changes
commit them and add changesets
repeat 2, 3 n times, but adding new features that you didn't expect in step 1
finish the branch
revise changesets in lieu of new knowledge from 4
commit changes to changesets

AFAIK, now the changesets will link to the commit from step 7, the last commit on the branch, instead of to the commits which actually made the changes
Alternatively, you might want to add all the changesets after-the-fact, but still link back to the relevant commits.
Proposed solution
Add an optional commits frontmatter key to changesets
---
"@scope/package": major
commits: 73cu2xi7
---
Cool feature

this feature is amazing

---
"@scope/package": minor
commits:
 - u803jcil
 - 8djklx8e
---
Coolest feature

this feature is superlative

Considered alternatives
git rebase the branch, adding in the final revised changesets as we go.

This is sort of already available when using @changesets/changelog-github since this PR: https://github.com/atlassian/changesets/pull/535 . I've changed the logic to allow for multiple authors in https://github.com/atlassian/changesets/pull/564 and I imagine that we could do the same for commits

Sometimes I need the same feature for forgotten changesets
* 099321 add change set for `a cool feature`
* 788932 other feature (#4)
* 433445 Add a cool feature (#3)
* 823442 older commits

changeset added in 099321:
---
"@scope/package": major
commits: 433445
---
Cool feature


use_frameworks! doesnt work

[!] The 'Pods-mobileappb2c' target has transitive dependencies that include static binaries: (/Users/yogi/Documents/app/ios/Pods/AppsFlyerFramework/AppsFlyerLib.framework)

@af-fess Your podspec does not have s.static_framework = true
https://github.com/CocoaPods/CocoaPods/issues/7234
I'm experiencing this error as well

Any update on this issue?

will be fixed on Sunday (28 July) @wesfieldj FYI

The latest version v1.1.4 contains s.static_framework = true


Add sponsor button

Once this is merged, we should have the "sponsoring" button appearing, providing a link to our collective. If it works as expected, I'll send PRs to all repositories.

:+1:

Merging then.


Make local DNS server test runner more generic

Moves towards possibility of reusing the local DNS server infra for other tests than just the resolver_component_test.cc. This could allow running a grpc client -> server end-to-end test with access to the local DNS server, which could be useful for e.g. a better end-to-end test on the c-ares address sorter.
Note the generated resolver_component_tests_runner.py and resolver_gce_integration_tests_runner.sh are unchanged with this PR.

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[microbenchmarks] No significant performance differences


Login with google button not working in Chrome and Edge (I haven't tried other browsers)

The screen when i click the button says: Error 400: invalid_request
Permission denied to generate login hint for target domain.
Here's the console:
Failed to load resource: the server responded with a status of 400 ()
In console I also see a link that leads to a JSON that says this:
{
"error" : "invalid_request"
}
What's wrong? Is it because my consent screen is not verified, even though I made it a month ago?

AAnd now I see this in console:
GET https://accounts.google.com/o/oauth2/iframerpc?action=listSessions&client_id=999840151588-28kvik45f8mgl3ohis61i29r7rk93prs.apps.googleusercontent.com&origin=http%3A%2F%2F<IP_ADDRESS>%3A5500&scope=openid profile email&ss_domain=http%3A%2F%2F<IP_ADDRESS>%3A5500 400

I think you're hitting wrong url @boston2029


Explore and Implement Authentication for Users

Investigate how Laravel handles authentication through the Authenticatable model.

Research and choose an authentication method (Laravel Sanctum or Passport).

Configure token-based authentication to allow secure API access.

Implement endpoints for:

User registration.
Login to retrieve a token.
Logout to revoke tokens.

Test the authentication flow (token creation, validation, and revocation) using POSTMAN.

Update the User model if needed (e.g., to include token scopes or related logic).

All these features have been successfully implemented as of December 30th.
Close #69.


Check for excess data in CertificateVerify

As reported by Alicja Kario, we ignored excess bytes after the signature payload in TLS CertificateVerify Messages.  These should not be present.
Fixes: #25298

This pull request is ready to merge

Merged to all the active branches. Thank you.


content of jbuild-workspace ignored if the file has an extension

I have a file jbuild-workspace.dev at the root of my project, containing several (context ((switch foo))), but they are ignored during build. If I rename the file into jbuild-workspace it works.

This is the correct behaviour - see the manual for the explanation.

The idea behind it is that you should commit jbuild-workspace.dev as an empty file to every repository (in order to stop jbuilder ever escaping your worktree) but you should not normally be committing jbuild-workspace to source control, because it refers to your local set-up.

Ah, I see. The docs on workspace are a bit sparse :-)

I lost quite a lot of time the other day to the inverse problem: if you have an empty jbuild-workspace file rather than a jbuild-workspace.dev file then things don't work properly -- you don't get a proper error message it just tries to do what you're asking for and then fails in some incomprehensible way.
I don't really see the need to differentiate jbuild-workspace and jbuild-workspace.dev files by filename. Why not just treat both the same, with an empty one equivalent to (context default)? Then people can still put an empty one in their project, and keep local ones outside of there projects, but there won't be any confusion between the two kinds of file.

I certainly agree that treating an empty jbuild-workspace as though it contained (context default) is a good idea.
I'm not so sure about treating them in the same way, if the main aim is to ensure that build context information is never committed to source control. I guess what might have been cleaner (or could still be done) is to look for jbuild-root (an empty file) if jbuild-workspace isn't found, and eliminate the similarity in filenames entirely?

The initial idea was that I was often adding jbuild-workspace.dev files in my projects to test all the versions of OCaml I wanted to support. So the current rules for finding the root avoided adding yet another file at the root of the project.

I certainly agree that treating an empty jbuild-workspace as though it contained (context default) is a good idea.

Seems fine to me as well.


Use black and isort for py files.

We add black and isort using the configuration from Zulip and reformat the project.
https://chat.zulip.org/#narrow/stream/127-integrations/topic/black.20and.20isort

One of the manual pre-fixes we needed to do in the server was for multi-line string literal concatenations that Black moved to the same line. That is the case here too, e.g.:
--- a/zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py
+++ b/zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py
@@ -168,11 +187,11 @@ def dbx_write(client: Any, fn: str, content: str) -> str:
         result = client.files_upload(content.encode(), fn)
         msg = "Written to file: " + URL.format(name=result.name, path=result.path_lower)
     except Exception:
-        msg = "Incorrect file path or file already exists.\n"\
-              "Usage: `write <filename> CONTENT`"
+        msg = "Incorrect file path or file already exists.\n" "Usage: `write <filename> CONTENT`"

     return msg

Easiest fix is to write this as a single string literal:
        msg = "Incorrect file path or file already exists.\nUsage: `write <filename> CONTENT`"

You can find these all with
$ pylint -d all -e implicit-str-concat $(git ls-files '*.py'; git grep -Pl '\A#!.*\bpython' -- . ':!*.py')
************* Module zulip_bots.bots.dropbox_share.dropbox_share
zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py:190:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py:250:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
************* Module zulip_bots.bots.dropbox_share.test_dropbox_share
zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py:166:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
zulip_bots/zulip_bots/bots/dropbox_share/test_dropbox_share.py:230:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
************* Module zulip_bots.bots.game_handler_bot.game_handler_bot
zulip_bots/zulip_bots/bots/game_handler_bot/game_handler_bot.py:50:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
************* Module zulip_bots.bots.game_of_fifteen.game_of_fifteen
zulip_bots/zulip_bots/bots/game_of_fifteen/game_of_fifteen.py:131:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
************* Module libraries.game
zulip_bots/zulip_bots/bots/merels/libraries/game.py:45:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
************* Module zulip_bots.bots.twitpost.test_twitpost
zulip_bots/zulip_bots/bots/twitpost/test_twitpost.py:44:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)
************* Module zulip_bots.bots.yoda.yoda
zulip_bots/zulip_bots/bots/yoda/yoda.py:112:0: W1404: Implicit string concatenation found in assignment (implicit-str-concat)

I reordered commits and merged the first 4 (which add configuration but don't run lint yet) as the series ending with 4083849b5dc4ce6ab78f3f3a4ff01ae6d497b6c7.  This should make it easier to script moving a PR across the transition.
A few notes on things that are a big ugly while skimming the changes, basically all things we had with the server project too:

We have various strings using % formatting that could be switched to f-strings and that would prevent messy line-wrapping.  @andersk did you have a tool to bulk-migrate to f-strings we should run?
Some of our argparse usage could line-wrap less if we specified fewer optional parameters.  I don't think it's worth delaying to try to do something about that.
Some of the docstrings for the main API bindings project end up a bit weird, but not clearly worse than before.  Ultimately we should think about whether it makes sense to just drop those entirely and instead just have the docstrings link to the API documentation for the relevant endpoint, since I suspect otherwise they'll just end up out-of-date with time.
Some of the examples, like zulip/zulip/examples/create-user, end up with somewhat messy indentation; it could be worth a pre-fix on those to do result = client.client_user(...)\nprint(result) for better readability.  I think that's probably worth doing just because these are intended to be copyable example code.

Overall I'm fine with merging this and fixing forward, since the things where a pre-fix could be helpful feel pretty rare.  @andersk I assume you'll do the merge + announcement for how to rebase PRs when you're happy with the pre-fixing story, since you generated those instructions last time.

@PIG208 Thanks for working on this! This PR looks pretty good overall! Before reviewing the whole PR, just skimming it made me want to mention a couple of things:

This is a huge PR! Would perhaps merging this commit by commit be better?
@timabbott, @PIG208  I notice that migrating to f-style string formatting is really hard to do in bulk in all cases. Overall, it looks pretty good, but we clearly missed some edge cases in this PR that need a manual review. Maybe we should take a more modular approach and split out string migration into a separate PR?
As for API examples ending up with messy indentation, this again makes me think that a lot of the formatting done by Black should maybe be split up into distinct chunks/PRs. As an example, we could do this on a per-PyPI-package basis, where we split out the bulk formatting for the zulip-botserver, zulip, and zulip_bots packages.

The only concern I have with merging this as-is is that it makes it harder to go back and take a deeper look at some of the edge cases that require manual intervention and were missed by the automated migration of string formatting styles. A more modular set of PRs would allow us to avoid having files that use f-style strings but are also riddled with calls to .format, as is the case currently.
Let me know what you all think, thanks! :)

@timabbott, @PIG208 I notice that migrating to f-style string formatting is really hard to do in bulk in all cases. Overall, it looks pretty good, but we clearly missed some edge cases in this PR that need a manual review. Maybe we should take a more modular approach and split out string migration into a separate PR?
I guess we can split the pyupgrade related things to another PR and deprioritize them at the moment. Maybe it will be much better (and much easier) for us to work on that if we can get the black and isort related changes merged first.

As for API examples ending up with messy indentation, this again makes me think that a lot of the formatting done by Black should maybe be split up into distinct chunks/PRs. As an example, we could do this on a per-PyPI-package basis, where we split out the bulk formatting for the zulip-botserver, zulip, and zulip_bots packages.
Yes, I think this might be a good direction.

@PIG208 Yes, I agree with getting the bulk of the black and isort changes merged. After that, we can inspect the string formatting migration changes more closely. A quick check I would do is to do a git grep for ".format(" on top of your pyupgrade commits to see if there are any leftover strings that weren't migrated, my guess is you will discover a few that flynt didn't catch. Thanks! :)

I'm not sure about backing out the pyupgrade changes; let me take a look and see if I'd be happier just merging this as this PR plans.

Yeah, after reviewing this, I think merging this as-is makes sense.  Huge thanks for all the work on this @PIG208!
Can you post a chat.zulip.org comment similar to https://chat.zulip.org/#narrow/stream/2-general/topic/black/near/1117538 for how to rebase across the isort+Black changes without manually resolving merge conflicts?
I think we should open a few follow-up workstreams:

Going through the open PRs on this project, which are essentially all super stale, and trying to work out which are useful (and worth rebasing/finishing) and which should be closed.
Discussing whether we should just delete the example docstrings in this project because they duplicate the official API documentation.

Can you post a chat.zulip.org comment similar to https://chat.zulip.org/#narrow/stream/2-general/topic/black/near/1117538 for how to rebase across the isort+Black changes without manually resolving merge conflicts?

I have posted the instruction on chat.zulip.org. However, probably because some of the manual fixes aren't separated into different commits, the script I wrote cannot ideally eliminate all the diffs brought by this PR.

Yeah, I think that's OK -- we don't have many huge open PRs, so most of them are likely to be fairly contained to a small number of files that don't require much manual fixups.


GPIO multiple gaps cause incorrect pinout check

Describe the bug
The gpio configuration failed because of a gpio pin that "fall" in a gap.
I'm using a custom board with MIMXRT1021CAF4A MCU (it was only 100 pins compare to it's bigger versions), there are 2 gaps in gpio2 one from 0 to 3 and the second from 10 to 15, this was generated using imx_cfg_utils.py (from https://github.com/zephyrproject-rtos/hal_nxp).

While trying to configure gpio_emc_18 the configurate returned -134 (ENOTSUP) error, while debugging the code I found that mcux_igpio_configure in drivers/gpio/gpio_mcux_igpio.c in line 58 checks if the pin number fall inside a gap, thinks that pin 18 is inside the second gap, because the gaps values are absolute while the value that it's being compared to is it's relative value.
To Reproduce
This isn't was straight forwarded.
I used MIMXRT1020_EVK as a reference board, changed it's MCU to MIMXRT1021CAF4A, generated the relevant gpio pin out using imx_cfg_utils.py.
And tried to configured gpio_emc_18.
Expected behavior
For the gpio to be configured as it does exist.
Impact
I can't configured the 4 existing gpios that are above the second gap which are gpio_emc_16 through gpio_emc_19.
Logs and console output

Environment (please complete the following information):

OS: WSL
Toolchain Zephyr SDK 0.15.1
Zephyr commit SHA: 4c53a4067a6750987e4ebca354d7e00514b5bd45
HAL/NXP commit SHA: 3e3648526824cc5b52ab59d5dd308473e291b760

@DerekSnell
I'm not sure hot to submit a code 😅, but the change is really simple.
Change line 59 from:
if (cfg_idx < (config->pin_gaps[i].start +
to:
if (pin< (config->pin_gaps[i].start +
Basically checking if pin (the absolute pin value) is in side the current gap (which is also being specified by an absolute values)

Hi @28itay, I've tested your proposed fix on an RT1015 EVK (since the SOC present there has the same pin mux gaps as the RT1021 SOC you have). PR #52610 should fix this issue, it appears that both checks should use pin over cfg_idx


Review packaging of sdist with newer flit

See https://github.com/takluyver/flit/issues/409

I think this Issue can get closed now (PR #1329 fixed it but just didn't use one of GitHub's keywords to autoclose). :+1:

Good catch, closing!


fix retrieval of enabled for cloudflare_authenticated_origin_pulls

// GetOk returns the data for the given key and whether or not the key
// has been set to a non-zero value at some point.

if the tfstate explicitly has enabled = false, then it technically stays at the zero value, which means that the second return value from GetOk (ok) returns false. If hostname is an empty string  (such as whencloudflare_authenticated_origin_pulls_certificate has type = "per-zone" (as opposed to per-hostname), then those 2 cancel each other out:
switch false {
  case false:
     // uh oh this evaluates

resource/cloudflare_authenticated_origin_pulls: fix improper handling of enabled=false

Resolves #1832

using the example in the linked issue:
Terraform will perform the following actions:

  # cloudflare_authenticated_origin_pulls.foo will be updated in-place
  ~ resource "cloudflare_authenticated_origin_pulls" "foo" {
      ~ enabled                                = true -> false
        id                                     = "181f5c8ccd67aeb7bd487f4a10a77a14"
        # (2 unchanged attributes hidden)
    }


Exclude does not exclude files from save

I'm trying to exclude all other files from decompilation other than app core files eg. com.mycompany.myApp.*. I don't want other packages to be in the decompiled source files.
For example, I don't want the excluded packages (greyed out) when I click SaveAll. I only want the packages in yellow.
I managed to fix this until you rewrote all your APIs and I lost this functionality recently when I couldn't merge! I'm very disappointed! What is the exclude packages for if I cant selectively save sources?????!!

@skylot

Duplicate of #534.

Duplicate of #534.


YAML Parser error when running import on production server.

When I run ./craft schematic/import on my Ubuntu server, I get the following error:
Exception 'ParseError' with message 'syntax error, unexpected '?''

in /srv/users/serverpilot/apps/parallel-portal/vendor/symfony/yaml/Parser.php:499

Stack trace:
#0 /srv/users/serverpilot/apps/parallel-portal/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/srv/users/serv...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Symfony\\Compone...')
#2 /srv/users/serverpilot/apps/parallel-portal/vendor/symfony/yaml/Yaml.php(77): spl_autoload_call('Symfony\\Compone...')
#3 /srv/users/serverpilot/apps/parallel-portal/vendor/nerds-and-company/schematic/src/Models/Data.php(33): Symfony\Component\Yaml\Yaml::parse('fields:\n  proje...')
#4 /srv/users/serverpilot/apps/parallel-portal/vendor/nerds-and-company/schematic/src/Controllers/ImportController.php(70): NerdsAndCompany\Schematic\Models\Data::fromYaml('fields:\n  proje...', NULL)
#5 /srv/users/serverpilot/apps/parallel-portal/vendor/nerds-and-company/schematic/src/Controllers/ImportController.php(49): NerdsAndCompany\Schematic\Controllers\ImportController->importFromYaml(Array)
#6 [internal function]: NerdsAndCompany\Schematic\Controllers\ImportController->actionIndex()
#7 /srv/users/serverpilot/apps/parallel-portal/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
…

The same command runs fine on my local machine. Any ideas?

Do you use an override.yml or environment overrides in production?

Nope, no overrides.

Ok, the error message suggests an invalid yaml file. If this is the same file that is used in the other environments I don't know why this would happen.
Does your production environment differ from your other environments in any way

I figured it out. Even though my actual application on the prod server was running PHP 7.1, the version being used for the php command in the CLI was 7.0. I changed the CLI to use 7.1 and import worked fine.


After park hours the sensor is no longer available

It seems after the park has closed, there is not only no sensor data, but the sensor altogether has been removed. I was going to try and force a state for some trouble shooting, but it no longer exists.

Never mind.


Odd warning with local Ajax call

When uncss runs on a page that performs a local Ajax call (like this), it emits this warning in the console:
NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.

  local:25 in loadFont
  local:27

I run uncss like this:
uncss _site/index.html > _site/css/main.uncss.css

I believe it comes from phantomJS having an issue with local Ajax calls, but I might be wrong. Any idea how I could prevent this from happening?

I believe it comes from phantomJS having an issue with local Ajax calls

That's what I would guess. No idea how to prevent it. @mikelambert?

@HugoGiraudel I haven't tried it personally, but you could try using something like https://github.com/tapio/live-server.
Install it globally and run liveserver _site. Your browser will open to a localhost address (probably http://localhost:8080). Copy the url in the browser bar and run
uncss <url> > _site/css/main.uncss.css in a new terminal window (replacing <url> with the localhost url, of course).
If that works, please close this. If not, let me know.

@HugoGiraudel Have you tried this?

I did not, and unfortunately I don’t think I’ll have time any time soon. Maybe we could close and re-opn if needed?


Search for visually selected text

Is there a way to send currently selected text to one of these providers: narrow:search-current-project, narrow:atom-scan, narrow-search?

See readme scan-by-current-word like that.

Maybe I didn't understand your question initially.
Fist of all, there is two command for search

narrow:search:
This was statically asking user for search term.
I changed this command also take selected text as search term( if empty, take input via min-editor)
This change included in next release.(v0.28.0)

narrow:search-by-current-word:
This take selected text as search term, if selected text was empty, pick cursor word as search term.

This answers your question?

Yes, that's great!
Thank you for this awesome tool.

I basically prefer narrow:search-by-current-word. use of narrow:search is rare for me.

If you are vim-mode-plus user, I like mapping enter in normal-mode to narrow:search-by-current-word it's very handy.


Return early when the user is not available

Hi there,
When using this add-on we ran into an error that can sometimes occur when trying to log in:
`Attempt to read property \"id\" on null`

This is caused by the Illuminate\Auth\Events\Failed event, since it's possible for the event to have a $user property of null:
/**
 * The user the attempter was trying to authenticate as.
 *
 * @var \Illuminate\Contracts\Auth\Authenticatable|null
 */
public $user;

This makes sure that, when this occurs, this does not crash. Not sure if you would like to log something else in this case since it's still inside the "User" listener? For now I've decided to just go with an empty array in this case.

Thanks for this.
Did you have steps I can follow to replicate what you’re seeing? Just be good to replicate the issue myself too.
Is this something you’ve only noticed since the last week or so? A minor version was released that tweaked user behaviour for queue usage recently. Wondering if they’re aligned, or if this is a longer running issue.

No problem, I've created this repository for reproduction, it's just a clean Statamic install from the CLI with this package:
https://github.com/JesseKoper/statamic-logger-example
composer install

cp .env.example .env

Then, if you go to http://testexample.test/cp/auth/login and try to log in (with a non existing user so it fails), it shows me the following:

I have been using this package since only last week, but I think it's only noticable when you have:
QUEUE_CONNECTION=sync

Since this prevented me from logging in (not knowing I was using wrong credentials) I started looking into this. But it does not seem connected to the earlier change as far as I can tell.

This is brilliant, thanks.
I'll merge this but also will tweak it to still have the id and name properties so the Utility UI template works too.

Tagged and released, thank you 🤩


Updated references from Forest to Rigetti

Updated demos and GitHub workflows in preparation for the renaming of the PennyLane forest plugin

We expect tests to fail until the re-naming PR isnt merged on the plugin side


onTooltipSelectEnd event does not trigger

In the latest version 5.4.1, the onTooltipSelectEnd event is not triggered, but it is normal in the 5.4.0 version

I'll check it out! Thanks for reporting

I'll check it out! Thanks for reporting

Should be fixed in v5.4.2! Feel free to re-open if you still encounter issues.

Should be fixed in v5.4.2! Feel free to re-open if you still encounter issues.


the meanings of branches?

In branches , there are four sets [global, abd, dan, np].  Global and abd are default, but what is dan or np? I don't notice it in your paper, could you explain it for me, thank you !

Hi,
DAN is the branch just use CAM/PAM attentions.
NP is the branch just evenly divided the feature map.
These two setting do not offer a better setting. Thus, we didn't include them in our paper.
Thank you!


Update to Dunfell

Can one of the admins verify this patch?

VersionBot is mad cause you need to replace meta-resin here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/versionist.conf.js#L26
There are also a couple documentation updates here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/layers/meta-resin-generic/conf/samples/local.conf.sample#L5
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/README.md#L17

VersionBot is mad cause you need to replace meta-resin here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/versionist.conf.js#L26
There are also a couple documentation updates here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/layers/meta-resin-generic/conf/samples/local.conf.sample#L5
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/README.md#L17

@resin-jenkins test this please

@resin-jenkins test this please

@jakogut versionbot is complaining so:

Command failed: versionist
error: pathspec 'layers/meta-resin' did not match any file(s) known to git.
Could not find meta-resin submodule

@jakogut versionbot is complaining so:

Command failed: versionist
error: pathspec 'layers/meta-resin' did not match any file(s) known to git.
Could not find meta-resin submodule

VersionBot is mad cause you need to replace meta-resin here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/versionist.conf.js#L26

VersionBot is mad cause you need to replace meta-resin here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/versionist.conf.js#L26

VersionBot is mad cause you need to replace meta-resin here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/versionist.conf.js#L26

Yep, looks like I missed that.

VersionBot is mad cause you need to replace meta-resin here:
https://github.com/balena-os/balena-generic/blob/4536093000c79d96f291ac4a907e5090f7b3ed8c/versionist.conf.js#L26

Yep, looks like I missed that.

@jakogut could you please add a few lines about how this changes were tested?

Done. It wasn't extensive testing, but this repo sticks pretty close to meta-balena. It boots, networking works, it can be joined to an application and apps run as expected.

@resin-jenkins retest this please

@resin-jenkins retest this please

@resin-jenkins retest this please

@resin-jenkins ok to test

@jakogut I sorted out the jenkins build jobs but the builds fail with:
ERROR: make-mod-scripts-1.0-r0 do_configure: oe_runmake failed
ERROR: make-mod-scripts-1.0-r0 do_configure: Execution of '/yocto/resin-board/build/tmp/work/generic_armv7ahf-poky-linux-gnueabi/make-mod-scripts/1.0-r0/temp/run.do_configure.32418' failed with exit code 1:
make: *** /yocto/resin-board/build/tmp/work-shared/generic-armv7ahf/kernel-source: No such file or directory.  Stop.
WARNING: exit code 1 from a shell command.

Could you try to build locally?

@resin-jenkins retest this please

@resin-jenkins retest this please


Added Tailwind css

Merge the changes of Tailwind css ### @lovishprabhakar02

Hi @StartCodeingWithSayam Please exclude Node Modules from your contribution and send the pull request again.


Getting errors while creating Telugu spacy model

Hi everyone,
I am getting errors while creating a spaCy model according to the readme file in vocab. Here is the error:
mdp@mdp-Inspiron-N5110:~/spacy-dev-resources-master$ python -m spacy model te ./data/model/te/spacy_model ./data/model/te/te_wiki.freqs ./data/model/te/brown/paths ./data/model/te/te_wiki.word2vec.bz2
Unknown command: model
Available: profile, vocab, evaluate, train, link, download, validate,
info, convert, package, init-model

Please help me at this step for creating spacy model

In the new version of spacy you should use init-model instead of 'mode'.
python -m spacy model te ./data/model/te/spacy_model ./data/model/te/te_wiki.freqs -c  ./data/model/te/brown/paths -v ./data/model/te/te_wiki.word2vec

Also use -c and '-v' for cluster and vectors path.
And finally use te_wiki.word2vec instead of te_wiki.word2vec.bz2.
Refer to #28

Hei @azarezade . I just try it, but I didn't get different result. I got this error:

can you help me with this error?

Actually, this is a different error.
I don't exactly what is the problem here, you could inspect your data, and see what is stored in counts variable in the init_model.py file in spacy/cli folder.

@azarezade  may I know your preshed libs version? I confused, in spacy-master required version 1.0.0 but in spacy-dev-resources required need version 0.46.4, witch one that I need to use? I think I got error because this library.

I used 1.0.0 version, and it worked for me.


Here Is My Question

Sorry

close this. He's working on it.

What is your question?
Why Don't Add A Stage Editor?

close this

CLOSE BEDORW BANNED

CCLOSE THIS AND RUN BEFORE ITS TOO LATE!!!

👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏 👏

Good job :D


Reorder csv column labels with subject/scan info left of measures

So that they are grouped and separate from QC measurement values.

I'm very sad you proposed this, but I understand (it's not a fun task, that's all). So I will do :)

It's not that hard! Cehck this snippet:
https://github.com/INCF/openfmri2bids/blob/master/openfmri2bids/converter.py#L367

Not hard at all, I know. But playing with pandas is always a bit boring :P.


[REQUEST] Debug Mode Close Button

It would be nice to add a way to turn off console logs

Exceptions in the console log are important to see, so those are going to stay, while I made a "verbose mode" button for all those BANs that you see while running a job, I added it here https://github.com/openbullet/OpenBullet2/commit/e32b61895b70d62ad37c2ba2a308345ee9582ac5


Cannot run grounded_sam_colab_demo.ipynb, failed when installing (may relate to the update of pyproject.toml?)

Hi, I have been using GroudedSAM for some time, but I encountered an error today when running the first cell to install in grounded_sam_colab_demo.ipynb:
/content/Grounded-Segment-Anything/GroundingDINO
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
error: subprocess-exited-with-error
× Building wheel for groundingdino (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for groundingdino (pyproject.toml) ... error
ERROR: Failed building wheel for groundingdino
ERROR: Could not build wheels for groundingdino, which is required to install pyproject.toml-based projects
/content/Grounded-Segment-Anything/segment_anything
Preparing metadata (setup.py) ... done
Building wheel for segment-anything (setup.py) ... done
/content/Grounded-Segment-Anything
Also another error when generating the boxes:
NameError                                 Traceback (most recent call last)
 in <cell line: 1>()
----> 1 annotated_frame, detected_boxes = detect(image, text_prompt="bench", model=groundingdino_model)
2 Image.fromarray(annotated_frame)
24 frames
/content/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py in forward(ctx, value, value_spatial_shapes, value_level_start_index, sampling_locations, attention_weights, im2col_step)
51     ):
52         ctx.im2col_step = im2col_step
---> 53         output = _C.ms_deform_attn_forward(
54             value,
55             value_spatial_shapes,
NameError: name '_C' is not defined
Is the problem related to the update of the pyproject.toml two days ago because this problem didn't exist several days ago. Or other explanations for the problems? Maybe anyone else has the same problem currently when running this code on Google Colab?

same bug here

try remove build and reinstall
pip install torch==2.0.1 torchvision==0.15.2

then
pip install -e .


Log Message Formatting

Phrases and sentences in log messages start with lowercase letters and do not end with a period.
Error and warning messages always reveal the name and class of the method or function that produced the warning, while info messages reveal the name of the action that was taken. Any identifying information should also be given.

At least when the log level is set to “halt,” log messages serve as assertions that cause the program to die. While running your program in debug mode, assertions like that often produce a backtrace to help developers find the source of their bug.


In ExponentialMovingAverage class in python/training/moving_averages.py, which op will first be executed,  opt_op or maintain_average_op?

Recently, I checked the code about moving averages. But I confused about which operation will first be executed, the opt_op which apply the gradient to the variable, or the maintain_average_op which maintain and update the shadow variable? I find that the following code:
 with tf.control_dependencies([opt_op]):       training_op = tf.group(maintain_averages_op)
training_op depends on both opt_op and maintain_averages_op. But how about the relation of opt_op   and maintain_averages_op? Which one will be executed first?

This might be a better question for StackOverflow. Please see our issue tracker policy.


Adds Testing to /getincidents Endpoint

Description
Adds Testing to Get All Incidents endpoint.
Type of change
Please delete options that are not relevant.

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

Change Status

[x] Complete, tested, ready to review and merge
[ ] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

How Has This Been Tested?

[x] Integration Test - Jest

Checklist

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] There are no merge conflicts

One suggestion would be to change the testt (line 10) description to something more descriptive. The other guys nailed the other concerns. Looks good overall!

You Guys are the Best, Thanks for all the comments.

Overall looks good, but I think we need to confirm we're requiring the correct files -- i.e. dbconfig, and the incidents-model.js.
Also, I think you added the package.lcok.json which may cause some issuses.

Joe as far as I know  per NPM Documentation package.lock.json is highly recommended and intended to be committed.
Doc Link
https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json


autofocus() callback

Hi, thank you very much for your time. is there any way to get the autofocus callback? seems like FocusResult is not available from getCurrentFotoapparat().autoFocus();
Thank you again.

Currently, the result of autofocus is not exposed, but we can improve that.

it will be awesome. Thank you.

Sorry for late reply, but could you please describe your use case a bit more?
Currently, we are attempting to perform auto-focus for you when takePicture is called. So, I am evaluating the need for the actual result from autoFocus. On top of that, some devices are not always consistent with a result of the autofocus operation and might fail more often than you would normally expect them to, so handling autofocus result will get tricky pretty fast on a client side.

Using OpenCV to process a frame, but first it need to ensure the camera is focused , then I process the frame with a specific algorithm. Thank you. It also can be used performing face recognition (to draw rectangles etc)

OK, that makes sense. I will try to provide the solution until the end of this week.
If you are relying on frame processing you should also update to 1.0.4, which would noticeably improve the performance.
As for face detection - we just started working on a module for Fotoapparat which would do face detection without relying on Google Play Services: https://github.com/Fotoapparat/FaceDetector

The feature is in master. You can expect it in the new release which will happen until the end of the week.

Thank you very much.

Hi,
Where to find the documentation related to the focus callback? I'm unable to find it.
Regards


Restore the "Trending" nav bar link

Looks like header/navigation has changed.

    ...

is now

  ...

@adamlacombe Can you fix the merge conflict?

@adamlacombe Can you fix the merge conflict?

@sindresorhus should be all set now. Thanks!


Fix build errors in counter-isomorphic when using stable

I'm investigating using this framework, but prefer to use stable Rust, so just a couple of fixes to get the counter-isomorphic example building when enabling the stable feature.
Tested by enabling stable in the counter isomorphic deps, and building. Checked functionality remains correct for all the methods shown in both Safari and Chrome.
Note: I don't know that editing the example is necessarily a completely desireable fix, given the separation of counter and counters-stable, and I also noted in router/src/components/link.rs that there is a cfg_if separation of csr or hydrate and not, whereas components/form.rs also has a stable/not cfg_if.

Thanks very much!


[AMBARI-24439] [Log Search UI] center the log tabs so they're aligned with the buttons

What changes were proposed in this pull request?
The alignment related styling has been removed from the component scope and added to its parent one. So that it can manage all the child components' alignment.
How was this patch tested?
It was tested manually and by unit tests:
PhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 268 of 268 SUCCESS (9.364 secs / 9.238 secs)
✨  Done in 40.67s.

Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3582/
Test PASSed.


Modify SQLite allowlists and limits as needed for D1.

This is Glen's #606 and #607, plus some commits of my own.
My commits:

Refactor the code a bit to enforce pragma signatures more precisely.
Roll back some of the permissions that I'm not sure we want to grant.
Introduce a new JavaScript API to query the database size and set a "voluntary size limit" based on the max_page_count pragma.

(rebased on main)


Add creating and editing alerts documentation

https://trello.com/c/cqaglFzy/496-draft-and-publish-documentation-for-how-to-create-and-edit-alerts-using-our-paas-prometheus
First attempt as guidance for teams creating and editing their prometheus alerts.
Note, there was some debate regarding the index page of the reliability eng docs which reference a monitoring platform (https://reliability-engineering.cloudapps.digital/#monitoring) whereas our service is listed as a 'metrics tool' and if this should remain the case.
It might also be worth thinking about if this guidance is easy enough for users to find from the index page.

Right, I think this should be good to go. If you want to leave an approving review to confirm please @philandstuff then I think we are in business!


Could anyone help me in making V-formation with 5 drones

I suggest to ask in https://discuss.px4.io/ instead, and maybe add a bit more description of what you want to do, what you have already tried, or where exactly you need help.


[CSL-206] When verifying commitments, check that all share IDs are different

@neongreen
It would let us remove a check for different shares in calculateSeed.

@gromak
If everything is ok, remove comments about [CSL-206] please. They are confusing.


ms2164: add convenience method

@shuangzhou @yetti

add convenience method

Looks good to me.

There is already a hasCopyRole(Role) method. Can you possibly enhance that one instead of making a new method?

@yetti , good idea, I have overloaded the hasCopyRole() method


ca+node: Allow expired certs when forcing a new cluster

This is based on https://github.com/docker/swarmkit/pull/1912.
This PR makes the following changes:

Allows a node to start up with expired certs if ForceNewCluster is set
Changes the certificate renewal loop to continue to try to renew if the certificate is expired.  This allows a ForceNewCluster'd node to get new TLS certificates.  This means that a leader can also recover from expired certificates.  No other node can recover, however, since renewing TLS certs would mean that they have to request a new cert from the CA, and would not be able to establish a mTLS connection to the CA due to expired certs.   This mean that we keep making requests to the CA even when there's no chance of recovery, which may not be desirable.

cc @aaronlehmann @LK4D4

@cyli Do you think we should target this for a 1.13.x release?

@aluzzardi If you mean 1.13.2 - sure, I think there's no reason not to.   I'm not sure we can make 1.13.1, though, and this is probably not important enough to block it, unless a lot of folks are encountering this issue.

This means that a leader can also recover from expired certificates.

This is really key. Problems have come up before with single-node swarms whose certificates expire, which makes swarm mode features inoperable. Single-node swarms should absolutely be able to recover from this.

This means that a leader can also recover from expired certificates.
This is really key. Problems have come up before with single-node swarms whose certificates expire, which makes swarm mode features inoperable. Single-node swarms should absolutely be able to recover from this.

I misunderstood the original comment to mean that a single-node swarm would be able to start up normally and recover from an expired certificate, but I see now that this only applies if you use --force-new-cluster. I like the idea of having a single-node swarm be able to recover automatically, but given the risks and tradeoffs, I think the approach in this PR is appropriate. We should document the steps to recover from an expired certificate, though.

I like the idea of having a single-node swarm be able to recover automatically

Can we tell it's a single node swarm by the following:

checking to see if it's a manager
checking it's peer list to ensure that there are no peers?

Or would we have to wait until the raft store was loaded?

node does persist a list of managers (see persistentRemotes), so I guess we could do this without consulting raft.

LGTM

node does persist a list of managers (see persistentRemotes), so I guess we could do this without consulting raft

In that case would it make sense to do the following instead:

load the cert always without checking expiry
if the loaded cert indicates that the node is a manager, and there are other nodes in the peer list, and if ForceNewCluster is not set, fail if the loaded cert is expired

This way, we can get both single-node swarms and multi-node swarms with ForceNewCluster enabled.

Yes, I think that would be great. I'm not sure how much complexity it would add. It could be a followup if that makes sense.

@aaronlehmann sounds good - agree a followup would probably be better

LGTM


Create conda environment.yml file to install most R deps

Fixes #54

Should use https://pak.r-lib.org/ to shorten list.


[4.0 branch 06-02-2017] stdlib fixedwidthinteger init outline for size

• Explanation: Mark parseASCII calls in FixedWidthInteger.init(: radix:) to not be inlined to save 20k for programs that use this function
• Scope of Issue: Reduce code size.
• Origination: N/A
• Risk: Low. This change marks a function with @inline(never)
• Reviewed By: Dave A.
• Testing: Existing Swift CI and benchmark tests
rdar://32519912

@swift-ci Please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - bf2eacd5ffe9ada90428835265c36004eab5ac01
Test requested by - @aschwaighofer

@swift-ci Please test linux

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - bf2eacd5ffe9ada90428835265c36004eab5ac01
Test requested by - @aschwaighofer

@aschwaighofer Do we still need this PR? Can we close it?

This can be closed


How to use it on Jetson Nano?

I have followed the steps
$ flutter-elinux create sample
$ cd sample
$ flutter-elinux run -d elinux-wayland

But it just run on ubuntu x86
I want to run it on DRM mode of Jetson Nano. How to use it?
Can I cross compile the flutter app?
Thanks!

Closing this issue as duplication of https://github.com/sony/flutter-elinux/issues/98


Update and add 'ktlint-ruleset-template' to settings.gradle

@shashachu

Since you're working on the template project, can you fix the RuleSetProvider file (like I did here https://github.com/pinterest/ktlint/pull/485/files#diff-4b459340022d965aebf12c424f0bd97b)
Once this is merged, I'll rebase and drop it from my PR.

Do you want me to patch your code?

You don't need to patch in the whole diff, just the Ruleset provider in the template. Or you can just leave it and I'll do it as part of my PR.

Can we just merge this separately?

Can we just merge this separately?

Sure, no problem. I can keep it in my PR; it makes reasonable sense there.


feature/comments_per_user

https://github.com/lale-help/lale-help/issues/317

@kristysnet I just changed the migration a little to get it to work with the data in my DB; also added a dependent: :destroy option to the has_many :comments association.
Are you planning on removing the DB fields task_id and task_type at some point?


LayerNorm, what is going on?

Hello!
I am unsure of what the LayerNorm on images is actually supposed to do. LayerNorm channels first works kinda like BatchNorm2d, however with quite suspicious vertical lines. LayerNorm channels last however completely breaks the image, as each pixel is normalized individually. Is this intended behaviour?
Please have a look at the experiment below, to understand what I mean.
Related  #112 possibly #115
import torch
from torch import nn
import torchvision
from models.convnext import LayerNorm

img = torchvision.io.read_image("cat.jpg")
img = img*0.005
torchvision.utils.save_image(img, "cat0.jpg")

Batch Norm 2d
bn = nn.BatchNorm2d(3)
img_bn = bn(img.unsqueeze(0))[0]
torchvision.utils.save_image(img_bn*.28+.7, "cat_bn.jpg")

Layer Norm
channels first
ln_cf = LayerNorm(3, data_format="channels_first")
img_cf = ln_cf(img)
torchvision.utils.save_image(img_cf*.28+.7, "cat_cf.jpg")

channels last
ln_cl = LayerNorm(3, data_format="channels_last")
img_cl = ln_cl(img.permute(1,2,0)).permute(2,0,1)
torchvision.utils.save_image(img_cl*.28+.7, "cat_cl.jpg")

See also: pytorch/pytorch#51455


Ok to stop initial sync?

With the LCD screen on I cannot use a fan and the aluminum heat syncs seem to do little.
I just got a cheap case and small fan that should keep me at speeds that won’t throttle. The Blockchain is syncing, half way to go. I imagine all cores are engaged on the initial sync in overdrive so the extra temps could be from this but since the LCD is not working properly, stays on boot screen, I may as well just go to a case and fan.
Can I just power off the Raspiblitz? Swap cases turn it back on and the sync continue?? I elected to sync and not FTP, I’m brand new to this so I don’t want to do anything wrong. Should I let the Pi run at 83 degrees until the Sync is done then do the swap??
Thank you!

Before power off you must be sure that lnd & bitcoind are not running to avoid blockchain corruption, to do it write in terminal:
sudo systemctl stop lnd
sudo systenctl stop bitcoind

thank you!

With the LCD screen on I cannot use a fan and the aluminum heat syncs seem to do little.

Check the ShimFan from the new v1.3 shopping lists ... it will fit between LCD and Raspi.
Closing this issue.


feature: auto-fetch

I'm migrating from Gitkraken for reasons other than the cost. One thing that's taking some brain retraining is the lack of auto-fetch. I often forget to fetch before doing things like committing to a tracked branch. Usually it's not too difficult to fix, but sometimes it makes a mess I'd rather not have to deal with. Is this a feature worth considering for sourcegit? Regardless, I'm quite grateful for all the work that's gone into making sourcegit a useful tool to use, while being easy on the eyes.

You can open Repository Configure and enable Fetch remotes automatically and change the fetch interval to do this job.

Ah, thank you! I somehow missed that whole config dialog!

One more comment: would it be possible and practical to make that a global setting?

No plans to change this setting to global.


[web]: Error on click on button control while signing in from google/facebook

Getting below error on click on any control like any button or textformfield.

error
Describe your issue and include the commerrors.dart:147 Uncaught Error: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/pointer_converter.dart:366:18
!_locationHasChanged(device, physicalX, physicalY)
is not true
    at Object.throw_ [as throw] (errors.dart:196)
    at Object.assertFailed (errors.dart:26)
    at _engine.PointerDataConverter.new.convert (pointer_converter.dart:366)
    at _engine.PointerAdapter.new.[_convertEventToPointerData] (pointer_binding.dart:366)
    at pointer_binding.dart:306
    at HTMLElement.<anonymous> (pointer_binding.dart:183)and you're running, flutter_web

errors.dart:147 Uncaught (in promise) Error: Assertion failed: org-dartlang-app:///packages/google_sign_in_web/google_sign_in_web.dart:64:9
appClientId != null
"ClientID not set. Either set it on a <meta name=\"google-signin-client_id\" content=\"CLIENT_ID\" /> tag, or pass clientId when calling init()"
    at Object.throw_ [as throw] (errors.dart:196)
    at Object.assertFailed (errors.dart:26)
    at google_sign_in_web.GoogleSignInPlugin.new.init (google_sign_in_web.dart:64)
    at init.next (<anonymous>)
    at runBody (async_patch.dart:86)
    at Object._async [as async] (async_patch.dart:125)
    at google_sign_in_web.GoogleSignInPlugin.new.init (google_sign_in_web.dart:57)
    at google_sign_in.GoogleSignIn.new.[_ensureInitialized] (google_sign_in.dart:243)
    at google_sign_in.GoogleSignIn.new._callMethod (google_sign_in.dart:225)
    at _callMethod.next (<anonymous>)
    at runBody (async_patch.dart:86)
    at Object._async [as async] (async_patch.dart:125)
    at google_sign_in.GoogleSignIn.new.[_callMethod] (google_sign_in.dart:224)
    at google_sign_in.GoogleSignIn.new._addMethodCall (google_sign_in.dart:282)
    at _addMethodCall.next (<anonymous>)
    at runBody (async_patch.dart:86)
    at Object._async [as async] (async_patch.dart:125)
    at google_sign_in.GoogleSignIn.new.[_addMethodCall] (google_sign_in.dart:276)
    at google_sign_in.GoogleSignIn.new.signIn (google_sign_in.dart:352)
    at login_screen._LoginPageState.new.signInWithGoogle (login_screen.dart:190)
    at signInWithGoogle.next (<anonymous>)
    at runBody (async_patch.dart:86)
    at Object._async [as async] (async_patch.dart:125)
    at login_screen._LoginPageState.new.signInWithGoogle (login_screen.dart:189)
    at _InkResponseState.new.[_handleTap] (ink_well.dart:706)
    at ink_well.dart:789
    at tap.TapGestureRecognizer.new.invokeCallback (recognizer.dart:182)
    at tap.TapGestureRecognizer.new.handleTapUp (tap.dart:486)
    at tap.TapGestureRecognizer.new.[_checkUp] (tap.dart:264)
    at tap.TapGestureRecognizer.new.handlePrimaryPointer (tap.dart:199)
    at tap.TapGestureRecognizer.new.handleEvent (recognizer.dart:467)
    at pointer_router.PointerRouter.new.[_dispatch] (pointer_router.dart:76)
    at pointer_router.dart:117
    at LinkedMap.new.forEach (linked_hash_map.dart:23)
    at pointer_router.PointerRouter.new.[_dispatchEventToRoutes] (pointer_router.dart:115)
    at pointer_router.PointerRouter.new.route (pointer_router.dart:101)
    at binding$5.WidgetsFlutterBinding.new.handleEvent (binding.dart:218)
    at binding$5.WidgetsFlutterBinding.new.dispatchEvent (binding.dart:198)
    at binding$5.WidgetsFlutterBinding.new.[_handlePointerEvent] (binding.dart:156)
    at binding$5.WidgetsFlutterBinding.new.[_flushPointerEventQueue] (binding.dart:102)
    at binding$5.WidgetsFlutterBinding.new.[_handlePointerDataPacket] (binding.dart:86)
    at _engine.PointerBinding.new.[_onPointerData] (pointer_binding.dart:83)
    at pointer_binding.dart:334
    at HTMLElement.<anonymous> (pointer_binding.dart:183)

version, browser version-
Version 79.0.3945.88 (Official Build) (64-bit)

[√] Flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.18362.535], locale en-IN)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
[√] Connected device (2 available)

• No issues found!

flutter run --verbose
[  +22 ms] executing: [C:\Repos\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +59 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18cd7a3601bcffb36fdf2f679f763b5e827c2e8e
[        ] executing: [C:\Repos\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +53 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.6-0-g18cd7a360
[   +7 ms] executing: [C:\Repos\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +44 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/beta
[        ] executing: [C:\Repos\flutter\] git ls-remote --get-url origin
[  +41 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +91 ms] executing: [C:\Repos\flutter\] git rev-parse --abbrev-ref HEAD
[  +39 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[ +108 ms] executing: C:\Users\Dinesh\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +24 ms] Exit code 0 from: C:\Users\Dinesh\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[   +1 ms] List of devices attached
[  +30 ms] More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all' to act on all devices.
[  +50 ms] Chrome     • chrome     • web-javascript • Google Chrome 79.0.3945.117
[   +3 ms] Web Server • web-server • web-javascript • Flutter Tools
[  +17 ms] "flutter run" took 272ms.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:289:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:590:11)
#3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:515:33)
<asynchronous suspension>
#4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#5      _rootRun (dart:async/zone.dart:1126:13)
#6      _CustomZone.run (dart:async/zone.dart:1023:19)
#7      _runZoned (dart:async/zone.dart:1518:10)
#8      runZoned (dart:async/zone.dart:1465:12)
#9      AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#10     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:505:20)
#11     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:413:21)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#14     _rootRun (dart:async/zone.dart:1126:13)
#15     _CustomZone.run (dart:async/zone.dart:1023:19)
#16     _runZoned (dart:async/zone.dart:1518:10)
#17     runZoned (dart:async/zone.dart:1465:12)
#18     AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#19     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:19)
#20     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#21     new Future.sync (dart:async/future.dart:224:31)
#22     CommandRunner.run (package:args/command_runner.dart:112:14)
#23     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:250:18)
#24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
#25     _rootRun (dart:async/zone.dart:1126:13)
#26     _CustomZone.run (dart:async/zone.dart:1023:19)
#27     _runZoned (dart:async/zone.dart:1518:10)
#28     runZoned (dart:async/zone.dart:1502:12)
#29     run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#30     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#31     _rootRun (dart:async/zone.dart:1126:13)
#32     _CustomZone.run (dart:async/zone.dart:1023:19)
#33     _runZoned (dart:async/zone.dart:1518:10)
#34     runZoned (dart:async/zone.dart:1465:12)
#35     AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#36     runInContext (package:flutter_tools/src/context_runner.dart:64:24)
#37     run (package:flutter_tools/runner.dart:50:10)
#38     main (package:flutter_tools/executable.dart:65:9)
#39     main (file:///C:/Repos/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
#41     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)

Hi @Dinesh2703
can you please provide your flutter doctor -v
and your flutter run --verbose?
Also, to better address the issue, would be helpful
if you could post a reproducible minimal code sample
or the steps to reproduce the problem.
Thank you

Hi @iapicca I have included one more error i am getting and also included flutter doctor and flutter verbose result.

flutter run -d chrome --verbose

[  +25 ms] executing: [C:\src\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +71 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18cd7a3601bcffb36fdf2f679f763b5e827c2e8e
[        ] executing: [C:\src\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +61 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.6-0-g18cd7a360
[  +13 ms] executing: [C:\src\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +40 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/beta
[        ] executing: [C:\src\flutter\] git ls-remote --get-url origin
[  +35 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +88 ms] executing: [C:\src\flutter\] git rev-parse --abbrev-ref HEAD
[  +40 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] beta
[ +108 ms] executing: C:\Users\iapic\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +29 ms] Exit code 0 from: C:\Users\iapic\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[        ] List of devices attached
[  +18 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +54 ms] Found plugin google_sign_in at
C:\Users\iapic\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in-4.1.1\
[  +15 ms] Found plugin google_sign_in_web at
C:\Users\iapic\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in_web-0.8.2+1\
[  +66 ms] Found plugin google_sign_in at
C:\Users\iapic\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in-4.1.1\
[   +6 ms] Found plugin google_sign_in_web at
C:\Users\iapic\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in_web-0.8.2+1\
[  +69 ms] Generating
C:\Users\iapic\Documents\Code\Nevercode\nineth_january\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegis
trant.java
[ +155 ms] Launching lib\main.dart on Chrome in debug mode...
[   +2 ms] Building application for the web...
[ +135 ms] Found plugin google_sign_in at
C:\Users\iapic\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in-4.1.1\
[   +4 ms] Found plugin google_sign_in_web at
C:\Users\iapic\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in_web-0.8.2+1\
[+9375 ms] Starting daemon...
[ +203 ms] Initializing inputs
[  +18 ms] Reading cached asset graph...
[ +231 ms] Reading cached asset graph completed, took 226ms

[ +388 ms] Checking for updates since last build...
[ +663 ms] Checking for updates since last build completed, took 663ms

[  +12 ms] Initializing inputs
[   +3 ms] Reading cached asset graph...
[   +1 ms] Reading cached asset graph completed, took 226ms
[   +1 ms] Checking for updates since last build...
[        ] Checking for updates since last build completed, took 663ms
[ +191 ms] Serving DevTools at http://<IP_ADDRESS>:51495

[ +938 ms] About to build [web]...
[   +7 ms] Running build...
[   +2 ms] Running build completed, took 83ms

[   +1 ms] Caching finalized dependency graph...
[        ] Caching finalized dependency graph completed, took 113ms

[   +1 ms] Succeeded after 204ms with 0 outputs (0 actions)

[  +11 ms] Building application for the web... (completed in 12.2s)
[   +1 ms] Attempting to connect to browser instance..
[+10025 ms] Debug service listening on ws://<IP_ADDRESS>:51526/gFjFa9sMF-M=

[ +535 ms]       Failed to load asset at path: packages/build_web_compilers/src/dev_compiler/dart_sdk.js.

                          Status code: 404

                          Headers:
                          {
                      "date": "Thu, 09 Jan 2020 06:43:26 GMT",
                      "content-length": "9",
                      "x-frame-options": "SAMEORIGIN",
                      "content-type": "text/plain; charset=utf-8",
                      "x-xss-protection": "1; mode=block",
                      "x-content-type-options": "nosniff",
                      "server": "dart:io with Shelf",
                      "via": "1.1 shelf_proxy"
                    }

                          Content:
                          Not Found}

[  +66 ms] Attempting to connect to browser instance.. (completed in 10.6s)
[   +4 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[   +1 ms] been thoroughly tested in production environments.
[   +2 ms] For more information see https://flutter.dev/web
[   +2 ms] 🔥  To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R".
[   +5 ms] For a more detailed help message, press "h". To quit, press "q".
[  +17 ms] Debug service listening on ws://<IP_ADDRESS>:51526/gFjFa9sMF-M=
[+4675 ms] Assertion failed: org-dartlang-app:///packages/google_sign_in_web/google_sign_in_web.dart:64:9
                    appClientId != null
                    "ClientID not set. Either set it on a <meta name=\"google-signin-client_id\" content=\"CLIENT_ID\"
/> tag, or pass
                    clientId when calling init()"
[+7210 ms] Assertion failed: org-dartlang-app:///packages/google_sign_in_web/google_sign_in_web.dart:64:9
                    appClientId != null
                    "ClientID not set. Either set it on a <meta name=\"google-signin-client_id\" content=\"CLIENT_ID\"
/> tag, or pass
                    clientId when calling init()"
[+1013 ms] Assertion failed: org-dartlang-app:///packages/google_sign_in_web/google_sign_in_web.dart:64:9
                    appClientId != null
                    "ClientID not set. Either set it on a <meta name=\"google-signin-client_id\" content=\"CLIENT_ID\"
/> tag, or pass
                    clientId when calling init()"
[+22519 ms] Stopped debug service on ws://<IP_ADDRESS>:51526

[  +21 ms] Application finished.
Terminate batch job (Y/N)? y

code sample
```dart
/// https://github.com/flutter/plugins/blob/master/packages/google_sign_in/google_sign_in/example/lib/main.dart
// name: nineth_january
// description: A new Flutter project.
// version: 1.0.0+1
// environment:
//   sdk: ">=2.7.0 <3.0.0"
// dependencies:
//   http: ^0.12.0+4
//   google_sign_in: ^4.1.1
//   flutter:
//     sdk: flutter
// flutter:
//   uses-material-design: true
import 'dart:async';
import 'dart:convert' show json;
import "package:http/http.dart" as http;
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
GoogleSignIn _googleSignIn = GoogleSignIn(
scopes: [
'email',
'https://www.googleapis.com/auth/contacts.readonly',
],
);
void main() {
runApp(
MaterialApp(
title: 'Google Sign In',
home: SignInDemo(),
),
);
}
class SignInDemo extends StatefulWidget {
@override
State createState() => SignInDemoState();
}
class SignInDemoState extends State {
GoogleSignInAccount _currentUser;
String _contactText;
@override
void initState() {
super.initState();
_googleSignIn.onCurrentUserChanged.listen((GoogleSignInAccount account) {
setState(() {
_currentUser = account;
});
if (_currentUser != null) {
_handleGetContact();
}
});
_googleSignIn.signInSilently();
}
Future _handleGetContact() async {
setState(() {
_contactText = "Loading contact info...";
});
final http.Response response = await http.get(
'https://people.googleapis.com/v1/people/me/connections'
'?requestMask.includeField=person.names',
headers: await _currentUser.authHeaders,
);
if (response.statusCode != 200) {
setState(() {
_contactText = "People API gave a ${response.statusCode} "
"response. Check logs for details.";
});
print('People API ${response.statusCode} response: ${response.body}');
return;
}
final Map<String, dynamic> data = json.decode(response.body);
final String namedContact = _pickFirstNamedContact(data);
setState(() {
if (namedContact != null) {
_contactText = "I see you know $namedContact!";
} else {
_contactText = "No contacts to display.";
}
});
}
String _pickFirstNamedContact(Map<String, dynamic> data) {
final List connections = data['connections'];
final Map<String, dynamic> contact = connections?.firstWhere(
(dynamic contact) => contact['names'] != null,
orElse: () => null,
);
if (contact != null) {
final Map<String, dynamic> name = contact['names'].firstWhere(
(dynamic name) => name['displayName'] != null,
orElse: () => null,
);
if (name != null) {
return name['displayName'];
}
}
return null;
}
Future _handleSignIn() async {
try {
await _googleSignIn.signIn();
} catch (error) {
print(error);
}
}
Future _handleSignOut() => _googleSignIn.disconnect();
Widget _buildBody() {
if (_currentUser != null) {
return Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
ListTile(
leading: GoogleUserCircleAvatar(
identity: _currentUser,
),
title: Text(_currentUser.displayName ?? ''),
subtitle: Text(_currentUser.email ?? ''),
),
const Text("Signed in successfully."),
Text(_contactText ?? ''),
RaisedButton(
child: const Text('SIGN OUT'),
onPressed: _handleSignOut,
),
RaisedButton(
child: const Text('REFRESH'),
onPressed: _handleGetContact,
),
],
);
} else {
return Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
const Text("You are not currently signed in."),
RaisedButton(
child: const Text('SIGN IN'),
onPressed: _handleSignIn,
),
],
);
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Google Sign In'),
),
body: ConstrainedBox(
constraints: const BoxConstraints.expand(),
child: _buildBody(),
));
}
}
</details>

<details>
	<summary>flutter doctor -v</summary>

```console
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\iapic\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code, 64-bit edition (version 1.41.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.7.1

[√] Connected device (2 available)
    • Chrome     • chrome     • web-javascript • Google Chrome 79.0.3945.117
    • Web Server • web-server • web-javascript • Flutter Tools

• No issues found!

Hey @Dinesh2703, I see an error message on your logs about the google_sign_in plugin not being correctly configured for web:
ClientID not set. Either set it on a <meta name="google-signin-client_id" content="CLIENT_ID" /> tag, or pass clientId when calling init()
Can you try to address that first, and see if that solves the issue?
There's setup documentation in the README of the google_sign_in_web package.

thanks @ditman its working now.


Should we merge the functional object with the metadata objects.

Current when possible we use the following pattern for google cloud resource:
XXX resource metadata - An immutable (using the standard builder pattern) and serializable class named XXXInfo with only data accessors.
XXX resource - An immutable, no serializable class pinned to a specific metadata and service implementation.
As both classes are immutable and as service can always be re-created via its options should we unify them and make the main service API always return the functional objects?
/cc @mziccard @ajkannan @mderka

I vote for unifying them, because then users would be less likely to get confused over the difference between an xxx and an xxxInfo.

If we go this way, do we expect the user to always provide a service instance? E.g.:
Blob blob = Blob.builder(storage, BlobId.of("b", "n")).contentType("content").build();

This makes:
blob = storage.create(blob);

A bit redundant don't you think?
I don't think that having XXX and XXXInfo represents a problem from the usability standpoint but it would be better to have some feedback from the users.

I don't think the first one should actually send a request to create the blob (hence, calling blob.exists() on it should return false if did not already exists).
The same way Blob blob = new Blob(storage, blobInfo) does not create it.
However, it may be nice to add to Blob an explicit create method (similar
to the other syntactic sugar method that we have in Blob).
I also think that having XXX and XXXInfo does not represent a problem (Info should be
considered as Metadata, though we picked "Info" for short) however I do wonder if unifying
them (at this point when we can  re-constructor the original service) would not make the API
nicer (and more concise).
/cc @Capstan @mfschwartz @jtigani

My thoughts:

There's value in having a separate class for the metadata, because some GCS operations just examine/manipulate metadata without touching the data
I don't get the point of shortening "Metadata" to "Info". Sure, it's fewer chars to type but (a) then users need to map (in their minds) between those names and the names we describe in the GCS documentation, and (b) many users develop with IDEs anyway, so the shorter name doesn't seem like it makes things much simpler.

Thanks for your thoughts @mfschwartz.
Even now the functional Blob does not hold the content. It has a reference to the info and provides
methods to operate on the (specific) blob, including getting its content.

Let me make the point about shortening "Metadata" to "Info" a bit more forcefully:
I think it makes sense for a library such as this to create new abstractions that make life easier for clients.
In contrast, I think it's a bad idea to use a different name for existing concepts just because you like shorter names or otherwise have a personal preference for the new name, because that negatively impacts consistency across the Cloud Platform. Imagine what happens, for example, if each language team (Go, Java, Python, etc.) invents their own term for "metadata", so we end up with 4 different terms for the same concept.

I don't think we picked "Info" just because it is shorter than "Metadata".
In addition to being shorter (which is a plus in my mind) we favored it because:

There is already "metadata" in the metadata/info for "User-provided metadata".
For blob this is indeed and strictly metadata but that may not be the case for Bucket
and for sure not the case in other services where that object (e.g. Project) is basically
the representation of that information. Consistency in that case and between APIs of the same
client (and therefore language) is important.
Consistency between different languages is nice but was never a priority. We would
always favor idiomatic style vs cross-language consistency but I don't think we put
much efforts for cross-language consistency otherwise (/cc @jgeewax).
e.g. GO is using ObjectHandle to represent the blob and ObjectAttrs for the blob's metadata.
In Python the two are unified (as suggested by this issue and will solve the naming issue).

I am inclined towards unifying them. I agree with @ajkannan that there might be some level of confusion about the differences between the xxxInfo object and xxx itself. I feel that the unified design would be cleaner.

Closing this since the functional objects have been made subclasses of the metadata objects in all relevant modules (BigQuery, Resource Manager, and Storage).


[BUG] image loading on Iphone

Project type

[ ] Project (generated by CLI)
[ ] Contribution (cloned/forked from GH)

Describe the bug
Some images on listing page are not rendering. Sometimes stuck in the middle, sometimes not even starting show up. After min or later thay starting to loading to the end

Additional context
Iphone 11pro and Iphone XS
shopware v<IP_ADDRESS> Stable Version
pwa 0.7.1
but this bug appears also on your official demo  - https://shopware-pwa.storefrontcloud.io/JEANS/

blocked by https://github.com/vuestorefront/storefront-ui/issues/1873


Allow users to set timestamps of files in archive by Zip and Tar.

Fixes Allow users to set timestamps of files in archive by Zip and Tar.

@bot-gradle test this

Sorry but I'm afraid you're not allowed to do this.

@bot-gradle test this

Sorry but I'm afraid you're not allowed to do this.

Thanks for the PR @Yuanling-bit.
I don't think we want to make this configurable without a strong use case for it.  I think as a workaround, you could set the modification time of the file before archiving it.
if you have a good use case for why you would want/need to set the timestamps in an archive to an arbitrary datetime, please open an issue so we can discuss and get community upvotes.
Thanks again!


微信二维码过期如何加入讨论？

如题，有没有个人微信号可以拉入到群里？或者更新一下二维码？

Hi~Thanks for your kind remind. The QR code has been updated.

The QR code is expired, please update it

@pprp hello, the WeChat QR code is valid, please remove your cookie and try again.


Accessing private repos

Is there a way to access private repos (e.g. clone them). How do I supply username and password.

You supply them using the CredentialProvider flags. For instance if you're doing a fetch set GTRepositoryRemoteOptionsCredentialProvider.
In Swift this could look like:
let auth = GTCredentialProvider { (type, url, username) -> GTCredential? in
                let cred = try? GTCredential(userName: username, publicKeyString: publicKey, privateKeyString: privateKey, passphrase: passphrase)
                return cred
 }
var options = [String : Any]()
options[GTRepositoryCloneOptionsCredentialProvider] = auth
options[GTRepositoryRemoteOptionsCredentialProvider] = auth
//Then call fetch or clone using these options:
GTRepository.clone(from: url, toWorkingDirectory: path, options: options)


WGSL variable is ignored by the mangler

The minifier is unable to identify some variables in WSGL.
The issue can already be observed by looking at the current snapshots where output is not mangled.
Reproduction
it('mangle WGSL variables', () => {
  const mangleMap = new Map()
  const shader = /* wgsl */ `@vertex fn main() -> void { var test: f32; }`
  expect(minify(shader, { mangle: true, mangleMap })).toMatchSnapshot()
  expect(mangleMap).toContain('test')
  //                ^^^^^^^^^ AssertionError: expected Map{} to include 'test'
})

I'd advise against using the mangler until I harden it with an AST (shaderkit#ast). #8 namely has me afraid for non-trivial shaders.

This looks to be skipped since void is not a valid keyword in WGSL and treated as an identifier. The behavior is still very wrong until I implement a proper AST (#14), but this should work with valid WGSL fn main() { var test: f32; }.

I've harden surrounding cases in the latest release. Let me know if this was somehow missed.


Namespace - Typed Events

When you try to emit events to a specific namespace, the EventsMap which is possibly defined for the root Emitter instance, is not applied for the Emitter instance returned by the of method.

Would be really great if this could be available soon 😊. It is a bit annoying, to cast the return value of the of method, to have typed event support for namespaces 😅.

This should be fixed by https://github.com/socketio/socket.io-redis-emitter/commit/53c73e11661067b30cafa8f33a7ec0a61dcbd431, included in<EMAIL_ADDRESS>Thanks!

Your welcome 🤗, have a nice week.


Add new labels for PRs

In my previous role our team found these really useful we would have the following labels:
WIP
Ready for review
Bug
Never found we needed any more than that.
I can add these in if necessary.
What are your thoughts @Ehesp?

Sure lets give it a go :) Amended, left questions/wont-fix in there too.


Repeating job logging error even after job was cancelled, app deleted and phone restarted! How do I make it stop!!!

I schedule a repeating job, which works fine, and every now and then triggers my job.  Over a period of time I began noticing the following error being popping up in Logcat.
05-11 14:03:19.446 5133-7451/? E/ExecutionCriteria: Package unavailable for task: com.test.package/com.firebase.jobdispatcher.GooglePlayReceiver{u=0 tag="config-repeat-job" trigger=window{start=114s,end=120s,earliest=-13253s,latest=-13247s} requirements=[NET_UNMETERED,CHARGING] attributes=[PERSISTED,RECURRING] scheduled=-13367s last_run=N/A jid=N/A status=PENDING retries=0 client_lib=FIREBASE_JOB_DISPATCHER-1}
This became more and more frequent.  I have tried the following:

Cancelling the job - Log still appears to be generate
Restarting the phone - Log still appears to be generate
Deleting the app, and restarting the phone - Log still appears to be generate

My question is, what have I done wrong, and how do I make these logs stop! I'm using Firebase within an SDK which will be distributed to 3rd party applications, so its important I don't clog up their logs with these error messages.
This is the job that i've configured.
val dispatcher = FirebaseJobDispatcher(GooglePlayDriver(context))
val job = dispatcher.newJobBuilder()
.setService(ConfigService::class.java)
.setTag("config-repeat-job")
.setRecurring(true)
.setTrigger(Trigger.executionWindow(120, 120))
.setReplaceCurrent(true)
.setLifetime(Lifetime.FOREVER)
.setRetryStrategy(RetryStrategy.DEFAULT_EXPONENTIAL)
.setConstraints(
Constraint.ON_UNMETERED_NETWORK,
Constraint.DEVICE_CHARGING)
.setExtras(extras)
.build()
dispatcher.schedule(job)
Any advice will be very welcome.

Same problem happening to me, logs are appearing everywhere even though I uninstalled the app like 10 hours ago, they don't seem like they care

In April 2019 we announced that Firebase Job Dispatcher would be deprecated today, April 7th 2020.  For this reason we are going to close all open issues and archive the repository.  We will also stop supporting FJD for new app installations (such as those targeting sdk versions greater than Android Q).  Existing apps that rely on FJD should continue to function as usual.
While we will no longer work on FJD, we encourage you to migrate to Work Manager which is a superior tool and fully supported by the Android team.
Thank you for taking the time to try the library and provide this feedback.  We sincerely appreciate your effort and we apologize for not addressing it in time.


Add support for Nutri-Patrol, our new moderation tool to the NodeJS SDK

What

Add support for Nutri-Patrol, our new moderation tool
https://nutripatrol.openfoodfacts.org/api/docs

Part of

#182

Working on it


Report generation crash pipelines when niworkflows is installed from pypi

Example: https://circleci.com/gh/poldracklab/fmriprep/494
There are not error messages, the exit code is 1. The same codebase installed with pip from github does not produce this error.

This doesn't seem to be happening anymore.


Removed custom JSON handler

Configured Giraffe's JSON serializer to use the FableConverter so that all JSON (de-)serialize methods use the Fable settings. As a result I could remove the custom JSON handlers for binding a model and writing a response.

Hugs


Error while running npm install

I got the error while running npm install:
192 error code ERR_SOCKET_TIMEOUT
193 error errno ERR_SOCKET_TIMEOUT
194 error network request to https://nexus.use1.infra-pure.cloud/repository/npm-cache/yn/-/yn-3.1.1.tgz failed, reason: Socket timeout
195 error network This is a problem related to network connectivity.
195 error network In most cases you are behind a proxy or have bad network settings.
195 error network
195 error network If you are behind a proxy, please make sure that the
195 error network 'proxy' config is set properly.  See: 'npm help config'
196 verbose exit 1

This error is still there

bump the websocket package version to 1.0.35 can resolve the npm install issue


invalid int bugfix

Getting invalid base errors. Should be more reliable to use json format anyway.

Thanks! r2 changes quickly and I don't maintain r2angrdbg anymore cause it's spaghetti code for a ctf challenge (each byte is passed using base64, a real plugin for r2 should not use r2pipe) but PR are welcome.


[ML-Kit] iOS cornerPoints are not correctly translated

Describe the bug
The cornerPoints returned on iOS don't render properly on to the web view coordinate space.
Digging further, I suspect this is because the video capture dimensions are 1080x1920 (as confirmed by looking at the AVCaptureOutput in the plugin's captureOutput func). The points are currently being divided by the screen scale (2.0, based on a real resolution of 750 x 1334), but I don't think this is correct:
https://github.com/capacitor-community/barcode-scanner/blob/ml-kit/ios/Plugin/Plugin.swift#L462
To get the points to render properly for me, I needed to multiply them by the screen's real dimensions (750 x 1334), and then divide by the capture dimensions (1080x1920). The resulting ratio is roughly 0.7, which makes the points render correctly on screen.
This makes sense to me because the bottom right corner will return a point of (1080,1920), which maps down to (750,1334) at the native resolution, and maps down further to (375,667) within the webview (due to the devicePixelRatio being 2)

I am aware of this, thank you for creating the issue anyways so we can keep track of it. :)
Had the same problems when testing and starting to implement a proper scaling. It was working so far, my only issue was that I was not able to set the image orientation properly which resulted in the issue, that as soon as you switched from portrait to landscape the wrong cornerPoints where returned.


Static browser endpoints?

Is there anyway to make a default/static browser WS Endpoint?
Currently it starts with this: ws://<IP_ADDRESS>:9222/devtools/page/667b57ee-15eb-4c84-be4c-a6cf6ada2546
Anyway to make it always spawn like this: ws://<IP_ADDRESS>:9222/browser or connect to it like that.

Please reopen this issue. It not possible at all to use this with a load balancer as there is no way to get hold of browser ids or page ids from an outside context.

Is there anyway to make a default/static browser WS Endpoint?
Currently it starts with this: ws://<IP_ADDRESS>:9222/devtools/page/667b57ee-15eb-4c84-be4c-a6cf6ada2546
Anyway to make it always spawn like this: ws://<IP_ADDRESS>:9222/browser or connect to it like that.

Did you ever find a solution to this? Please reopen this issue. It not possible at all to use this with a load balancer as there is no way to get hold of browser ids or page ids from an outside context.

For anyone who ended up here because they couldn't make this work with AWS ALB, don't pull this, pull browserless/chrome:latest which will give you a consistent url on 3000


Add QihooSo support

I'm submitting a ...

[ ] bug report
[x] feature request

Current behavior:

Expected behavior:

Add support for Qihoo So support
Steps to reproduce:
Yes, I would like to work on this issue

Currently we need to focus on performance and have low priority for more search engines. Therefore closing it.


ci: re-enable windows builds

@brad-mysten is this still useful?

@brad-mysten is this still useful?

Yeah, I will move it out of draft state once we have the self-hosted windows builder up and running.


Ethereum Transactions Update Slowly

Ethereum blocks appear in transactions slowly, in some instances it can take 1 hour.

Resolving as fixed


IE/CSS Grid fallback

Support older browsers with a stand alone CSS Grid fallback style sheet. This will be conditionally loaded if CSS Grid is not supported by the browser.

display: grid;
display: inital (ie, use display: block;)

Closing as dropping support for IE in next major