BUG: Vizia resize problem

Vizia gui seems cannot resize properly. I tested on both Windows and MacOS. For Windows, standalone window can resize but canvas can't resize. On MacOS, window cannot resize but canvas can resize. I also tested VST3, it has same problem.

I just got a report from @sletz, he has the same issue:

On Linux the resizing is only an issue with standalone builds when not using the resize handle (bottom right).
Instead when you use the typical Xorg alt+RMB resize on the nearest corner the same behavior as described here happens:

For plugin builds (VST3 + CLAP) it is only possible to resize with the corner handle, so this all works as expected.

Using the current master version of nih_plug_vizia, the resize handle correctly detects mouse intersection but doesn't resize for VST3 plugin builds in Ardour (though it works correctly under Bitwig). The resize handle works correctly in the previous release of Spectral Compressor 0.4.3 (released March 31 2023) but not for the current master version I compiled, so this is a recent regression.
I'm not sure how Ardour and Bitwig differ in handling plugin window resizing, but the previous implementation worked correctly under both hosts. It would be great if the current version did too.

Doesn't seem Vizia specific. With egui I get the same behaviour.

Kind regards.
Jacob

Recording of this behavior on latest FL STUDIO on Windows
bug-report-nih-plug.webm

I'm using Spectral Compressor. The resizing isn't working correctly in FL Studio.
I hope this problem can be fixed soon. Cuz it's sad that I can't see the full spectrum from within the plugin.


Example code does not compile

I get the following errors when attempting to compile.

Argument passed to call that takes no arguments
Type 'SafariView' has no member 'Configuration'
Cannot infer contextual base in reference to member 'systemBlue'
Cannot infer contextual base in reference to member 'done'

I'm running:

Apple Swift version 5.2.4
Xcode: 11.7

import SwiftUI
import BetterSafariView

struct SafariView: View {

    @State private var presentingSafariView = false

    var body: some View {
        Button(action: {
            self.presentingSafariView = true
        }) {
            Text("Present SafariView")
        }
        .safariView(isPresented: $presentingSafariView) {
            SafariView(
                url: URL(string: "https://github.com/")!,
                configuration: SafariView.Configuration(
                    entersReaderIfAvailable: false,
                    barCollapsingEnabled: true
                )
            )
            .preferredControlTintColor(.systemBlue)
            .dismissButtonStyle(.done)
        }
    }
}

struct SafariView_Previews: PreviewProvider {
    static var previews: some View {
        SafariView()
    }
}

Hi @rbevans-ugh,
It's because SafariView that you implemented is passing itself recursively. Your View name should not be the SafariView, as it is used by BetterSafariView.
Change struct SafariView to any other name, then it should works. 😁

Ah thank you!  So it works in preview, but I still get the compile errors.

Extra argument 'configuration' in call
Type 'SafariView' has no member 'Configuration'
Cannot infer contextual base in reference to member 'systemBlue'
Cannot infer contextual base in reference to member 'done'

Hmm, could you try cleaning build folder by pressing shift-command-K and run again?

I tried that as well as restarting.  Let me try a new project.

Seems to be something within my project since creating a new project the issue is resolved.  Thanks for the help!

Glad to hear that!


Fix/iroha docker

What is this pull request?
This PR fixes #749 issue
It adds boost library into deb package, also it adds pq library as deb dependency.

Codecov Report

Merging #762 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #762   +/-   ##
========================================
  Coverage    42.52%   42.52%
========================================
  Files          309      309
  Lines        12789    12789
  Branches      7155     7155
========================================
  Hits          5438     5438
  Misses         709      709
  Partials      6642     6642

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 3484c6b...047fadd. Read the comment docs.


about connection ID length

Hi,
Is there a way to fix the connection ID length to 8 (https://github.com/facebookincubator/mvfst/blob/main/quic/QuicConstants.h#L496) in mvfst? rather than 0 to 20 bytes in the QUIC v1?

One solution, set connectionIdSize=8 when initializing QuicClientTransport.


Lexmark 1.1 update 2 feedback: Document Format Tests

[Reported via IPP mailing list]
It appears that the tool blasts down as many print files as the printer will accept.   On a slower color printer, which takes quite a while to print the jobs, the test script times out while the jobs are still printing.  We manually added some delays in the test script which seemed to resolve the problem.   Ideally, the test should query for "job completed" before sending the next job.  I would also be nice to see the test prompt to load the correct paper size in the tray whenever the job uses paper sizes that are different from Letter/A4.

I think this should be broken into two distinct issues:

Adjusting the testing algorithm in "document-tests.test" to repeat until the "job-state" is in a terminal state or a VERY long timeout is reached (to allow Issue #62 to complete even if there is some failure in an automated / non-attended execution of the tests).

Adding a test (IMHO to "ipp-tests.test") that exercises a media mismatch causing the printer to stop processing / prevent processing until the requested media is loaded.

@wifiprintguy The ipp-tests already end with the media-needed test (remove media, print a file), and the document tests are supposed to test just printing and not other aspects of IPP conformance. Adding a test would require an update of the self-certification manual...

As we discussed today at the PWG February 2021 F2F, a possible solution for Issue #68 might also provide a solution for this issue's need for flow control by providing a way to pause the test until the Job or Printer has reached a particular status.

[master 390be9d] Wait for jobs to complete before proceeding (Issue #66)


Help contributors get started

Hi, I was trying to get started contributing. The first thing I tried to do was get the tests running, but sadly some are failing for me (probably because I'm using Postgres 9.5 - not on 9.4?)
    -           "smallint": 50,
    -           "textArray": Array [
    -             "hey",
    -             "i",
    -             "just",
    -             "met",
    -             "you",
    -           ],
    -         },
    -       ],
    +       "nodes": null,
          },
        },
    +   "errors": Array [
    +     [GraphQLError: Cannot return null for non-nullable field Type.money.],
    +   ],
      }

      at Object.<anonymous> (src/postgraphql/__tests__/postgraphqlIntegrationOperations-test.js:44:24)
      at next (native)
      at fulfilled (src/postgraphql/__tests__/postgraphqlIntegrationOperations-test.js:4:58)
      at process._tickCallback (internal/process/next_tick.js:103:7)

Snapshot Summary
 › 1 snapshot written in 1 test suite.
 › 3 snapshot tests failed in 1 test suite. Inspect your code changes or run with `npm test -- -u` to update them.
 › 1 obsolete snapshot found, run with `npm test -- -u` to remove them.

Test Suites: 1 failed, 39 passed, 40 total
Tests:       4 failed, 495 passed, 499 total
Snapshots:   3 failed, 1 added, 17 passed, 21 total
Time:        25.045s, estimated 30s
Ran all test suites.

I thought I'd start by helping others get started - at first I saw no npm test command, but noticed jest was listed so just ran that directly. Turns out I ought to have built first! So I've added the familiar npm test command to run ./scripts/test, and aliased a couple of the other scripts under the npm run namespace; and I've added a CONTRIBUTING.md file to help people get started quicker. Obviously it's severely lacking right now, but I thought it might be a good start?

Reopening a new branch for this.


Can't stream YT videos in VideoPlayer class

The VideoPlayer class seems to be hardcoded to only work with paths to local videos. I really like the Queue system that the VideoPlayer class has but my project can't work unless the VideoPlayer class can stream YouTube videos. If you could add support for this, I would be very grateful.

Sure thing, it's about time anyway I brought the VideoPlayer class up to date with the rest of the library. I'll give you an update when I have time.

Hey so it turns out you can indeed queue youtube videos in the current version.
Just use
player.queue(Video("https://www.youtube.com/video", youtube=True))

As a reminder, you can queue preloaded Video objects instead of just paths.

Closing this for now. Let me know if it's not working, and I'll reopen it.


Fix OAuthCodeImpl TGT deserialization

Fix null TGT error in #2538

Could you explain how this TGT deserialization takes place?

TGT serialization/deserilzation occurs when CAS is writing/reading the ticket to/from MongoDbTicketRegistry

Thank you! For some reason I thought this has something to do with the JSON service registry. Great work.


pcluster image build failed

Hello,
I am using the latest pcluster version:
$ pcluster version
{
  "version": "3.1.2"
}

I am trying to build a new custom AMI for pcluster and here is my image config file:
Region: us-west-2
Image:
  Name: gREDIT-RSC-pcluster-3.1.2b-Ubuntu-20.04-JAN2022
  Tags:
    - Key: Name
      Value: gREDIT-RSC-pcluster-3.1.2b-Ubuntu-20.04-JAN2022
    - Key: Version
      Value: 3.1.2
  RootVolume:
    Size: 50
    Encrypted: True
    KmsKeyId: arn:aws:kms:us-west-2:xxxx:key/xxxx

Build:
  InstanceType: c5.xlarge
  ParentImage: ami-058982b228f8648e3
  SecurityGroupIds:
    - sg-00359458057ff883c
  SubnetId: subnet-0d21b22e4dc744f8f
  UpdateOsPackages:
    Enabled: true

DevSettings:
  DisablePclusterComponent: False
  TerminateInstanceOnFailure: True
  DisableValidateAndTest: True

However the cloudformation stack fails with the following error which seems to be due to lustre client which I really don't even need:
..snip..
2022-03-10T19:00:48.358-08:00 | Stdout:
-- | --
  | 2022-03-10T19:00:48.358-08:00 | Stdout: [execute] Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
  | 2022-03-10T19:00:48.403-08:00 | Stdout: Hit:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
  | 2022-03-10T19:00:48.416-08:00 | Stdout: Hit:3 https://download.docker.com/linux/ubuntu focal InRelease
  | 2022-03-10T19:00:48.455-08:00 | Stdout: Get:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
  | 2022-03-10T19:00:48.564-08:00 | Stdout: Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
  | 2022-03-10T19:00:48.565-08:00 | Stdout: Hit:7 http://ppa.launchpad.net/ansible/ansible/ubuntu focal InRelease
  | 2022-03-10T19:00:48.644-08:00 | Stdout: Get:8 https://fsx-lustre-client-repo.s3.amazonaws.com/ubuntu focal InRelease [3,274 B]
  | 2022-03-10T19:00:48.763-08:00 | Stdout: Hit:5 https://packagecloud.io/sensu/stable/ubuntu focal InRelease
  | 2022-03-10T19:00:48.944-08:00 | Stdout: Get:9 https://fsx-lustre-client-repo.s3.amazonaws.com/ubuntu focal/main amd64 Packages [14.1 kB]
  | 2022-03-10T19:00:49.051-08:00 | Stdout: Fetched 126 kB in 1s (172 kB/s)
  | 2022-03-10T19:00:49.841-08:00 | Stdout: Reading package lists...
  | 2022-03-10T19:00:49.868-08:00 | Stdout: [2022-03-11T03:00:49+00:00] INFO: execute[apt-get -q update] ran successfully
  | 2022-03-10T19:00:49.869-08:00 | Stdout: - execute ["apt-get", "-q", "update"]
  | 2022-03-10T19:00:49.869-08:00 | Stdout: - force update new lists of packages
  | 2022-03-10T19:00:49.869-08:00 | Stdout:
  | 2022-03-10T19:00:49.869-08:00 | Stdout: * apt_update[] action periodic[2022-03-11T03:00:49+00:00] INFO: Processing apt_update[] action periodic (aws-parallelcluster-install::lustre line 87)
  | 2022-03-10T19:00:49.870-08:00 | Stdout: (up to date)
  | 2022-03-10T19:00:49.870-08:00 | Stdout: * apt_package[lustre-client-modules-5.13.0-1017-aws] action install[2022-03-11T03:00:49+00:00] INFO: Processing apt_package[lustre-client-modules-5.13.0-1017-aws] action install (aws-parallelcluster-install::lustre line 89)
  | 2022-03-10T19:00:50.155-08:00 | Stdout:
  | 2022-03-10T19:00:50.155-08:00 | Stdout: * No candidate version available for lustre-client-modules-5.13.0-1017-aws[2022-03-11T03:00:50+00:00] INFO: Retrying execution of apt_package[lustre-client-modules-5.13.0-1017-aws], 2 attempts left
  | 2022-03-10T19:00:55.451-08:00 | Stdout:
  | 2022-03-10T19:00:55.451-08:00 | Stdout: * No candidate version available for lustre-client-modules-5.13.0-1017-aws[2022-03-11T03:00:55+00:00] INFO: Retrying execution of apt_package[lustre-client-modules-5.13.0-1017-aws], 1 attempt left
  | 2022-03-10T19:01:00.750-08:00 | Stdout:
  | 2022-03-10T19:01:00.750-08:00 | Stdout: * No candidate version available for lustre-client-modules-5.13.0-1017-aws[2022-03-11T03:01:00+00:00] INFO: Retrying execution of apt_package[lustre-client-modules-5.13.0-1017-aws], 0 attempt left
  | 2022-03-10T19:01:06.048-08:00 | Stdout:
  | 2022-03-10T19:01:06.049-08:00 | Stdout: * No candidate version available for lustre-client-modules-5.13.0-1017-aws
  | 2022-03-10T19:01:06.049-08:00 | Stdout: ================================================================================
  | 2022-03-10T19:01:06.049-08:00 | Stdout: Error executing action `install` on resource 'apt_package[lustre-client-modules-5.13.0-1017-aws]'
  | 2022-03-10T19:01:06.049-08:00 | Stdout: ================================================================================
  | 2022-03-10T19:01:06.049-08:00 | Stdout:
  | 2022-03-10T19:01:06.049-08:00 | Stdout: Chef::Exceptions::Package
  | 2022-03-10T19:01:06.049-08:00 | Stdout: -------------------------
  | 2022-03-10T19:01:06.049-08:00 | Stdout: No candidate version available for lustre-client-modules-5.13.0-1017-aws
  | 2022-03-10T19:01:06.049-08:00 | Stdout:
  | 2022-03-10T19:01:06.049-08:00 | Stdout: Resource Declaration:
  | 2022-03-10T19:01:06.049-08:00 | Stdout: ---------------------
  | 2022-03-10T19:01:06.049-08:00 | Stdout: # In /etc/chef/local-mode-cache/cache/cookbooks/aws-parallelcluster-install/recipes/lustre.rb
  | 2022-03-10T19:01:06.049-08:00 | Stdout:
  | 2022-03-10T19:01:06.049-08:00 | Stdout: 89: package "lustre-client-modules-#{node['cluster']['kernel_release']}" do
  | 2022-03-10T19:01:06.049-08:00 | Stdout: 90: retries 3
  | 2022-03-10T19:01:06.049-08:00 | Stdout: 91: retry_delay 5
  | 2022-03-10T19:01:06.049-08:00 | Stdout: 92: end
  | 2022-03-10T19:01:06.049-08:00 | Stdout: 93:
  | 2022-03-10T19:01:06.049-08:00 | Stdout:
  | 2022-03-10T19:01:06.051-08:00 | Stdout: Compiled Resource:
  | 2022-03-10T19:01:06.051-08:00 | Stdout: ------------------
  | 2022-03-10T19:01:06.051-08:00 | Stdout: # Declared in /etc/chef/local-mode-cache/cache/cookbooks/aws-parallelcluster-install/recipes/lustre.rb:89:in `from_file'
  | 2022-03-10T19:01:06.051-08:00 | Stdout:
  | 2022-03-10T19:01:06.051-08:00 | Stdout: apt_package("lustre-client-modules-5.13.0-1017-aws") do
  | 2022-03-10T19:01:06.051-08:00 | Stdout: package_name "lustre-client-modules-5.13.0-1017-aws"
  | 2022-03-10T19:01:06.051-08:00 | Stdout: action [:install]
  | 2022-03-10T19:01:06.051-08:00 | Stdout: default_guard_interpreter :default
  | 2022-03-10T19:01:06.051-08:00 | Stdout: declared_type :package
  | 2022-03-10T19:01:06.051-08:00 | Stdout: cookbook_name "aws-parallelcluster-install"
  | 2022-03-10T19:01:06.051-08:00 | Stdout: recipe_name "lustre"
  | 2022-03-10T19:01:06.051-08:00 | Stdout: retries 3
  | 2022-03-10T19:01:06.051-08:00 | Stdout: retry_delay 5
  | 2022-03-10T19:01:06.051-08:00 | Stdout: end
  | 2022-03-10T19:01:06.051-08:00 | Stdout:
  | 2022-03-10T19:01:06.051-08:00 | Stdout: System Info:
  | 2022-03-10T19:01:06.051-08:00 | Stdout: ------------
  | 2022-03-10T19:01:06.051-08:00 | Stdout: chef_version=17.2.29
  | 2022-03-10T19:01:06.051-08:00 | Stdout: platform=ubuntu
  | 2022-03-10T19:01:06.051-08:00 | Stdout: platform_version=20.04
  | 2022-03-10T19:01:06.051-08:00 | Stdout: ruby=ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
  | 2022-03-10T19:01:06.051-08:00 | Stdout: program_name=/usr/bin/cinc-client
  | 2022-03-10T19:01:06.051-08:00 | Stdout: executable=/opt/cinc/bin/cinc-client
  | 2022-03-10T19:01:06.051-08:00 | Stdout:
  | 2022-03-10T19:01:06.052-08:00 | Stdout: [2022-03-11T03:01:06+00:00] INFO: Running queued delayed notifications before re-raising exception
  | 2022-03-10T19:01:06.052-08:00 | Stdout: [2022-03-11T03:01:06+00:00] INFO: template[/etc/ssh/sshd_config] sending restart action to service[ssh] (delayed)
  | 2022-03-10T19:01:06.052-08:00 | Stdout: Recipe: openssh::default
  | 2022-03-10T19:01:06.055-08:00 | Stdout: * service[ssh] action restart[2022-03-11T03:01:06+00:00] INFO: Processing service[ssh] action restart (openssh::default line 91)
  | 2022-03-10T19:01:06.119-08:00 | Stdout: [2022-03-11T03:01:06+00:00] INFO: service[ssh] restarted
  | 2022-03-10T19:01:06.119-08:00 | Stdout:
  | 2022-03-10T19:01:06.119-08:00 | Stdout: - restart service service[ssh]
  | 2022-03-10T19:01:06.120-08:00 | Stdout: [2022-03-11T03:01:06+00:00] INFO: template[/etc/default/nfs-kernel-server] sending restart action to service[nfs-kernel-server] (delayed)
  | 2022-03-10T19:01:06.122-08:00 | Stdout: Recipe: nfs::server
  | 2022-03-10T19:01:06.123-08:00 | Stdout: * service[nfs-kernel-server] action restart[2022-03-11T03:01:06+00:00] INFO: Processing service[nfs-kernel-server] action restart (nfs::server line 42)
  | 2022-03-10T19:01:07.392-08:00 | Stdout: [2022-03-11T03:01:07+00:00] INFO: service[nfs-kernel-server] restarted
  | 2022-03-10T19:01:07.392-08:00 | Stdout:
  | 2022-03-10T19:01:07.393-08:00 | Stdout: - restart service service[nfs-kernel-server]
  | 2022-03-10T19:01:07.397-08:00 | Stdout:
  | 2022-03-10T19:01:07.397-08:00 | Stdout: Running handlers:
  | 2022-03-10T19:01:07.397-08:00 | Stdout: [2022-03-11T03:01:07+00:00] ERROR: Running exception handlers
  | 2022-03-10T19:01:07.397-08:00 | Stdout: Running handlers complete
  | 2022-03-10T19:01:07.397-08:00 | Stdout: [2022-03-11T03:01:07+00:00] ERROR: Exception handlers complete
  | 2022-03-10T19:01:07.397-08:00 | Stdout: Cinc Client failed. 119 resources updated in 09 minutes 51 seconds
  | 2022-03-10T19:01:07.400-08:00 | Stdout: [2022-03-11T03:01:07+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/cinc-stacktrace.out
  | 2022-03-10T19:01:07.400-08:00 | Stdout: [2022-03-11T03:01:07+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
  | 2022-03-10T19:01:07.400-08:00 | Stdout: [2022-03-11T03:01:07+00:00] FATAL: Chef::Exceptions::Package: apt_package[lustre-client-modules-5.13.0-1017-aws] (aws-parallelcluster-install::lustre line 89) had an error: Chef::Exceptions::Package: No candidate version available for lustre-client-modules-5.13.0-1017-aws
  | 2022-03-10T19:01:07.482-08:00 | CmdExecution: Terminating read operation on STDOUT pipe - EOF
  | 2022-03-10T19:01:07.483-08:00 | CmdExecution: Command execution has been completed
  | 2022-03-10T19:01:07.483-08:00 | CmdExecution: [ ERROR ] Command execution has resulted in an error
  | 2022-03-10T19:01:07.483-08:00 | CmdExecution: Stderr: echo "Calling chef-client with /etc/parallelcluster/image_dna.json" cat /etc/parallelcluster/image_dna.json cinc-client --local-mode --config /etc/chef/client.rb --log_level info --force-formatter --no-color --chef-zero-port 8889 --json-attributes /etc/parallelcluster/image_dna.json --override-runlist aws-parallelcluster::default
  | 2022-03-10T19:01:07.483-08:00 | CmdExecution: ExitCode 1
  | 2022-03-10T19:01:07.483-08:00 | ExecuteBash: Removing temporary directory: /tmp/AWSTOE3505617041
  | 2022-03-10T19:01:07.483-08:00 | ExecuteBash: Successfully removed temporary directory: /tmp/AWSTOE3505617041
  | 2022-03-10T19:01:07.483-08:00 | ExecuteBash: FINISHED EXECUTION
  | 2022-03-10T19:01:08.526-08:00 | TOE has completed execution with failure - Execution failed!

Is there something I am missing here?  How can I get around this issue to build a custom image.  Also, here is the generic error from cloudformation:
Resource handler returned message: "Error occurred during operation 'SSM execution 'xxx' failed with status = 'Failed' in state = 'BUILDING' and failure message = 'Document arn:aws:imagebuilder:us-west-2:xxxx:component/parallelclusterimage-17ac53c0-a0e4-11ec-9fad-022ab66cead5/3.1.2/1 failed!''." (RequestToken: xxx, HandlerErrorCode: GeneralServiceException)

Any help would be appreciated.
Thanks,
-Simran

Hello @hsimran13,
were you able to move forward?
Thanks

Thanks for the response.  This was a configuration issue on our end and I was able to get past this issue.  Feel free to close this request.
Regards,
-Simran


lxc/config: no name shown when editing the instance's config

$ EDITOR=cat lxc config edit lxd-test | grep name
### name: instance1
### Note that the name is shown but cannot be changed

Hrm I'm not sure we should have merged this change. But rather investigate why lxc config show <instance> isn't returning name (as the comment indicates) as it is inconsistent with how lxc network edit <network> and lxc storage edit <pool> work (which is they return name but changes to it our ignored).

@tomponline it's because we moved from Instance to InstancePut some time ago to avoid getting a MASSIVE chunk of text due to expandedConfig and expandedDevices being in Instance

@stgraber got you, shouldn't we also do this for other entity types also then?

Or modify it to not include expanded config/devices?

For instance lxc network edit lxdbr0 also includes:
used_by:
- /1.0/profiles/default
- /1.0/profiles/vsmall
- /1.0/instances/v1
- /1.0/instances/v2
- /1.0/instances/vbuild
managed: true
status: Created
locations:
- none

Which are not editable.
So if we are only including editable fields in the lxc <object> edit command output (which does make sense), then I feel we should do it consistently.

I definitely prefer seeing the read-only fields, it's easier to be sure what you're working against, so I don't want to move them all to Put.
But at the same time, we can't split Instance into a InstanceNoExpanded or something like that without breaking some users of the instance struct, so I'm not super keen on doing that.
We could mark the expanded fields as omitempty and then manually empty them prior to spawning the editor, that likely wouldn't cause downstream breakage, though it would still be a bit of a lie as those fields don't normally qualify for omitempty.

Yep agreed we don't want to change the values returned from the API.
Can we create a InstanceNonExpanded struct type though and add a NonExpanded() InstanceNoExpanded function to the Instance type (like we do for Writable() InstancePut), rather than altering the structure of Instance, that could be used in lxc config edit to remove the expanded fields from the editor?

Yeah, that should be okay, we'll need a .Writable() or whatever on that one too so we can get back our InstancePut.

Yep makes sense


Accessing venv from subdirectories

When I create a venv in a directory, I can access it (through any pipenv command) from that directory, from the directory below it, and from the directory 2 below it. When I go down 3 directories I run into No virtualenv has been created for this project yet!.
Is there any way to set how many directories up pipenv will search for a venv activation site?
PIPENV_MAX_DEPTH doesn't do it.
Or can someone point in the code to where it searches up 2 directories and no more? I can't seem to find that.

https://pipenv.readthedocs.io/en/latest/advanced/#pipenv.environments.PIPENV_MAX_DEPTH

@frostming

PIPENV_MAX_DEPTH doesn't do it.

@jimmyorourke Really? Please provide an example with steps to express the issue.
It is supposed to control this behavior and if not you can search it in the codebase to see if any bugs lying there.

hmmmm I  was putting together a toy example and I set and unset PIPENV_VENV_IN_PROJECT and then PIPENV_MAX_DEPTH started having the desired effect.
Doesn't make any sense but maybe my configuration got super bungled somehow. All is good.


[0.5pt] Add properties (Label)

All Label class properties visible in the diagram should be defined and set up in the constructor method.

HI @ngalamac
Your project is complete! There is nothing else to say other than it's time to merge it :shipit:
Congratulations! 🎉
You can now move to next project.


Add Shape Inference, Lowering and backend test for IsInf

IsInf is very similar to IsNaN, so I was able to add the shape inference, lowering of the kernel, backend test, lit test and onnx-lowering test for this PR. I also updated the documentation and the gen_onnx_mlir.py.

Everything works except for the test_isinf_negative_cpu and test_isinf_positive_cpu backend tests are failing. I currently commented these two tests out and I can create a separate issue to further investigate why they are failing but test_isinf passes as expected.  Let me know if that is okay with everyone :)

@chentong319 Any thoughts?

Jenkins Linux ppc64le Build #8699 [push] Add Shape Inference, Low... started at 06:59

Jenkins Linux amd64 Build #9634 [push] Add Shape Inference, Low... started at 05:55

Jenkins Linux s390x Build #9653 [push] Add Shape Inference, Low... started at 06:55

Jenkins Linux amd64 Build #9634 [push] Add Shape Inference, Low... passed after 1 hr 35 min

Jenkins Linux s390x Build #9653 [push] Add Shape Inference, Low... passed after 1 hr 56 min

Jenkins Linux ppc64le Build #8699 [push] Add Shape Inference, Low... passed after 3 hr 4 min


Neutralino Getting Started app does not work properly

https://cdn.discordapp.com/attachments/747546662423232533/1020324525914734653/unknown.png
I get a white screen when running the Getting Started app with neu run.
i already ran CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.Win32WebViewHost_cw5n1h2txyewy"
and i already have the WebView2 runtime installed
idk what's the issue here
i'm running windows 11 home, version 21H2, build 22000.978

@Mrthomas20121 is the issue resolved


Complete first 20 exercises

Complete the exercises 1 - 20 from link https://www.w3resource.com/python-exercises/python-basic-exercises.php

closing this issue


missing device or architecture after '-mmcu='

Hi,
Thanks for the help!
I have issue when I create the arduino mega2560, it cannot build.
Here is my CMakeLists.txt
cmake_minimum_required(VERSION 2.8.4)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/ArduinoToolchain.cmake)
set(CMAKE_CXX_STANDARD 17)
set(PROJECT_NAME untitled)
set(${PROJECT_NAME}_BOARD mega)
set(ARDUINO_CPU atmega2560)
project(${PROJECT_NAME})
set(${PROJECT_NAME}_HDRS User_Setup.h)
set(${PROJECT_NAME}_SKETCH untitled.ino)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/)
set(${PROJECT_NAME}_PROGRAMMER avrispmkii)
set(${PROJECT_NAME}_PORT /dev/ttyACM1)
set(mega.upload.speed 9600)
generate_arduino_firmware(${PROJECT_NAME})
and It displayed:
-- Generating untitled
-- Using /usr/bin/avr-objcopy for converting firmware image to hex
-- Configuring done
-- Generating done
-- Build files have been written to: /home/allen/CLionProjects/untitled/cmake-build-debug
Problems were encountered while collecting compiler information:
	avr-gcc: error: missing device or architecture after '-mmcu='
	avr-g++: error: missing device or architecture after '-mmcu='
	avr-g++: error: missing device or architecture after '-mmcu='
Thanks a lots!

Same problem.
Linux mint 18, Clion 2019.3.3


can not trace when a file contains os._exit()

viztracer mypy # this work
viztracer mypy some.py # this not work
Minimize the reproduction of this program
cat a.py
import os

def a():
    return 2

def b():
    return 3

def c():
    return a() + b()

c()
os._exit(0)

viztracer a.py # this generate nothing

This is not a bug. os._exit() terminates the process brutally so no exit hook has a chance to execute. You’ll experience the same issue with any library that requires an exit hook using this code, for example, coverage.

Make sense and really thanks for your great tool.


Updated package.json to allow webpack v2.2.0.

What kind of change does this PR introduce?
Dependency update
Did you add or update the examples/?
No
Summary
Allow webpack 2.2.0 without peer dep warning
Does this PR introduce a breaking change?
No
Other information

+1

Thanks.

@nickjj Hi! Can u bump new version with this changes pls?

@lgordey +1
@nickjj Hi! Can u bump new version with this changes pls?

@lgordey @DrUNE It's updated to v0.4.0.
https://www.npmjs.com/package/manifest-revision-webpack-plugin


asciidoc support ?

Jekyll currently support markdown and textile markup.
Is there any chance to have asciidoc markup available ? http://www.methods.co.nz/asciidoc/
Thank you very much.

+1 for asciidoc support


Ben/find 269 add daysonflow to collection in main

Not sure if v1 or main is appropriate here tbh.

 It should be main


Possibility to pack in addition to parsing?

New to nom and evaluating it at this point for some of the work I am doing in Rust.  I am the author of a python library/dsl, suitcase (https://github.com/digidotcom/python-suitcase).  One of the features I found useful with suitcase is the ability to both parse structures/protocols as well as packing them with a single declaration of the structure of the packet.
It doesn't appear that this is currently the case with nom and I was wondering if such a thing could be reasonably added to nom given its current design.  If not, are you (or anyone) aware any good solutions in the rust  ecosystem for this problem.

Right now, this feature is not present in nom, but I plan to do it in a separate library, with a similar design. I could probably add it in a future version, but it requires some thought, and I am not convinced yet this is the right solution. While parsing and packing look similar, generating both at once removes some flexibility. I often need to do very different things in parsing and packing, especially in very context-sensitive formats. Note that this is just my experience here, maybe you could provide more insight into the matter.
How do you handle the cases where a format has needs not handled by suitcase? What I find nice in parser combinators is the ability to just write one function to do the work, and integrate it in the rest.
Right now, if you want serialization and deserialization generated in one pass, you can use serde in Rust.

Sounds reasonable.  I'll check out Serde..

How do you handle the cases where a format has needs not handled by suitcase?

In suitcase, there is a Field construct that encapsulates both pack and parse logic for a given thing to parse.  Many Fields are provided by suitcase but users are free too (and often must) define their own for "weird" protocols.
Suitcase is far from purpose and definitely gives up some composability in favor of achieving a readable and familiar syntax.  Construct 2/3 is the other main package in the python space providing symmetric parse/pack functionality.  The ideas there are similar: http://construct.readthedocs.org/en/latest/basics.html (Fields providing parse/build).

I often need to do very different things in parsing and packing, especially in very context-sensitive formats.

Do you have an example?  I think I understand what you mean with context-sensitive formats.  One of the tricky things I have run into is dealing with things like length fields and checksum fields.  Here's how those are implemented in suitcase (you can click through to the source):

http://digidotcom.github.io/python-suitcase/latest/api.html#suitcase.fields.LengthField
http://digidotcom.github.io/python-suitcase/latest/api.html#suitcase.fields.CRCField

The CRCField ended up having to be special cased (at least currently) and requires a second pass when packing the overall structure in order to calculate properly for real-world use cases.


Optimisation to PerlinNoiseUtils and Chunk classes

So, I've optimised PerlinNoiseUtils bc it's not necessary to keep noises in list and then add and clean. Also optimised Chunk and made more readable, but anyway it works as usual. I know what it's just an educational project for yourself, but anyway still glad to help you if it go further

sure


A possibly improved implementation.

I tried to improve the code a bit so that it handles subclasses and imports. It should also handle Iterables with limitations. The code is not tested fully, but it it seems to work. If you would be kind enough to test it, I give you my permission to upload it to your blog. I don't even need credit. However, if you spot a bug or find any improvement, please let me know. Code follows:

import sys
import types as t
from numpy import ndarray
from torch import Tensor
import main
import inspect
from pathlib import Path
from typing import Any, Optional, Set, Dict, Tuple, runtime_checkable, Protocol, TypeVar, List, Iterable
import dill  # type: ignore
import torch
def mainify(obj: object, max_depth: int = 100) -> None:
_mainify(obj, 0, max_depth)
def _mainify(obj: object, depth: int, max_depth: int) -> object:
if isinstance(obj, _toxic_types): return obj
if depth > max_depth: return obj
obj = _check_recursion(obj, depth, max_depth)
if not hasattr(obj, "module") or obj.module in _builtins: return obj
_add_to_main(obj)
if is_named(obj): obj = getattr(main, obj.name)
else:
obj.class = getattr(main, obj.class.name)
for key, value in obj.dict.items():
temp: object = _mainify(value, depth, max_depth)
setattr(obj, key, temp)
return obj
def is_named(obj: object) -> bool: return hasattr(obj, "name")
def _add_to_main(obj: object):
module_source = inspect.getsource(inspect.getmodule(obj))
exec(compile(module_source, '', 'exec'), main.dict)
_already_copied.add(obj.module)
@runtime_checkable
class ListLike(Protocol[S]):
def setitem(self, __key: int, __value: S) -> None: ...
def getitem(self, __key: int) -> S: ...
def len(self) -> int: ...
@runtime_checkable
class DictLike(Protocol[T, S]):
def setitem(self, __key: T, __value: S) -> None: ...
def getitem(self, __key: T) -> S: ...
def items(self) -> List[Tuple[T, S]]: ...
def _check_recursion(obj: object, depth: int, max_depth: int) -> object:
if not isinstance(obj, Iterable) or isinstance(obj, _toxic_iterables): return obj
the_class = obj.class
if isinstance(obj, DictLike):
for key, value in obj.items(): obj[key] = _mainify(value, depth + 1, max_depth)
if isinstance(obj, Tuple): obj = list(obj)
if isinstance(obj, ListLike):
for i in range(len(obj)): obj[i] = _mainify(obj[i], depth + 1, max_depth)
return obj if obj.class == the_class else the_class(obj)  # type: ignore[arg-type]

Hi, sounds like a good topic for a gist or you can leave it as a comment!


Creating and inserting a basic script into ha-bridge to overcome echo's 5 second timeout?? Help!

Hi.
Im really hoping somebody can help.
When adding multiple item lines to a Bridge device I sometimes need to add multiple delays in order for equipment to finish turning on before the next line starts. Doing this works great, but Amazon Echo freaks out when it doesn't receive a "close connection" with in 5 seconds and then verbally tells you the command failed (even though it still executes it, sometimes twice).
I found the issue here: https://github.com/bwssytems/ha-bridge/issues/341
At the bottom of that issue it explains how somebody got around this.
It looks like a script was made that sent the "close connection" command to the Echo so that the rest of the items in the list can then continue to run with all their delays. This script needs to run early in the list of items that run.
My questions are...
(I'm working on a windows machine)
Can I create a .txt file and insert the following commands into it (and then rename the file with the correct extension)?? then insert the file into /data folder??
ignore_user_abort(true);
header("Location: ".$redirectUrl, true);
header("Connection: close", true);
header("Content-Length: 0", true);
ob_end_flush();
flush();
fastcgi_finish_request(); // important when using php-fpm!
What would the correct file extension be?? .sh ? .jar?
From the ha-bridge edit/copy device page, how would I then run this script file? Is it a command in the "Target Item" that i need to add?
Thanks

Please post this on #341 as the people who got that working in the script listen to that thread. Close this when you have done so. Thanks


🔧 withdraw offers on burn

waiting for new bsx/snek release to test it
linter is freewheeling..
PR Type

[x] Bugfix

Context

[x] Closes #3584
[x] relate with #4540

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[ ] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[ ] I've didn't break any original functionality
[ ] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </bsx/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Had issue bounty label?

[ ] Fill up your KSM address: Payout

Screenshot 📸
⏳

https://github.com/galacticcouncil/Basilisk-node/blob/4c240952f6a9c8d98f10c109befe88a891bb3e9a/pallets/marketplace/src/lib.rs#L219

related with https://github.com/kodadot/nft-gallery/pull/4540 (https://github.com/kodadot/nft-gallery/pull/4540#issuecomment-1370751062 ❓)

When you want to withdraw offer from nft with id 1001001-2 and me (bXkoDafMy8Boj55M1KW5dNucT9U7itQLEe7TCwrNykFabADDi) was the original maker
You need to call it like:
const maker = 'bXkoDafMy8Boj55M1KW5dNucT9U7itQLEe7TCwrNykFabADDi'
const cb = api.tx.marketplace.withdrawOffer(this.collectionId, this.nftId, maker)

Otherwise you do not know which offer to withdraw
In other words withdrawOffer takes 3 parameters: collectionId, nftId and who

From OfferUsersTable.vue
const cb = api.tx.marketplace.withdrawOffer
const { id, item } = tokenIdToRoute(nft.id)
const args = [id, item, caller]

closing for #4811


Ignore ports with obsolete options

Is there any chance to get "ignore obsolete ports" option during build process? I have cron driven update process scheduled at nighttime and often need to start build process manually when I see "obsolete ports detected and nothing rebuilt" message. If synth simply skips ports with obsolete options, most of the ports will be rebuilt in time when update was scheduled.

it's a fatal error.  There's no way to skip it, the options issue has to be resolved.
To mitigate it, don't set options unnecessarily.

Oh, I see. I really need custom build options for my iRedMail based mail server jail. Poudriere didn't have similar issues, so I thought that this is possible with synth. Tank you for clarification.

Poudriere is simply hiding the issue, which can cause serious side effects that are hard to track down.  Believe me, you want to know when options change (or disappear).

You actually just pointed out one of the serious flaws with poudriere that has never been addressed (at least they could decide to show errors and ignore, but it can't detected the errors).

Interesting thing. Glad to hear that synth is more confident about potential hidden flaws in ports after build process. Reading carefully man page, I think I can do what I want with "hook_pkg_failure" script, fixing port options (automatically) and restarting build process.

Didn't know if I should open a new issue with this closed one being so similar. In portmaster, any ports with obsolete/invalid/missing options that it finds during the initial checks, it just runs the make config for that port and lets the user correct without a fatal abort. I would like to see this functionality added.


Regarding the exe-inference.ipynb example

First, I would like to thanks you for making this agent-based simulator available with its detailed documentation. Second, I just want ask if there is a missing parameter in the example exe-inference.ipynb when calling the make_loss_function. Shouldn't we also pass the num_sites parameter?
Thanks again for your great works

We have fixed this. Let us know if you have further issues. Many thanks for using our simulator!


jazz packages not available on Obsersable

Trying to probe jazz-react or jazz-browser fails on Observable platform.
I've checked using Tom MacWright's module debugger.
I've tried to replicate the problem locally using packd and from the logs it looks like the problem might be in crypto libraries.
'node:crypto' is imported by .tmp/72c7fdc7693293db071a588091d794e76d42546b/package/node_modules/cojson/dist/crypto/WasmCrypto.js, but could not be resolved – treating it as an external dependency
'@scure/bip39' is imported by .tmp/72c7fdc7693293db071a588091d794e76d42546b/package/dist/auth/PassphraseAuth.js, but could not be resolved – treating it as an external dependency
packd error [jazz-browser] Unexpected token Error: Unexpected token
    at error (/Users/devgru/Peers/LocalFirst/packd/node_modules/rollup/dist/shared/node-entry.js:5400:30)
    at Module.error (/Users/devgru/Peers/LocalFirst/packd/node_modules/rollup/dist/shared/node-entry.js:9824:16)
    at tryParse (/Users/devgru/Peers/LocalFirst/packd/node_modules/rollup/dist/shared/node-entry.js:9717:23)
    at Module.setSource (/Users/devgru/Peers/LocalFirst/packd/node_modules/rollup/dist/shared/node-entry.js:10080:33)
    at /Users/devgru/Peers/LocalFirst/packd/node_modules/rollup/dist/shared/node-entry.js:12366:20
    at async Promise.all (index 19)
    at async Promise.all (index 0)
    at async Promise.all (index 3)
    at async Promise.all (index 0)
    at async Promise.all (index 0)

Actually, looking inside packd error reveals that the problem is in completely different place, one of the files in effect package:
.../packd/.tmp/72c7fdc7693293db071a588091d794e76d42546b/package/node_modules/effect/dist/esm/Data.js

That makes me wonder whether effect is rollup-compatible or the problem is somewhere deeper.


Add public getters and ability to set custom MeterProvider on Node SDK

Is your feature request related to a problem? Please describe.
on packages/opentelemetry-sdk-node/src/sdk.ts
This class only accepts meterProvider and traceProvider configs, but not actual instances of those classes. There's also not a way to get the current properties in the class making it harder to extend the SDK.
Describe the solution you'd like
Introduce 2 new methods and configs.
configuration.meterProvider?: MeterProvider;
configuration.tracerProvider?: TracerProvider;

this.setMeterProvider(provider: MeterProvider)
this.setTracerProvider(provider: TracerProvider);

Introduce 2 new getter methods.
this.getMeterProvider(): MeterProvider;
this.getTracerProvider(): TracerProvider;

Describe alternatives you've considered
I've tried setting metrics.setGlobalMeterProvider but because I'm using an exporter, it gets replaced when _meterProviderConfig is populated.

The SDK installs the TracerProvider and MeterProvider global via API (same is valid for ContextManager and Propagator).
Therefore the correct way to access them is via API, e.g. api.trace.getTracerProvider().
Please note that typical API users (e.g. instrumentations creating spans/metrics,...) should not care about if/which SDK is used and how it is configured. Nor should they try to reconfigure it. The should just use the API.

@Flarna it makes sense, the problem is that it's all happening on start method https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-node/src/sdk.ts#L146 not on previous setup.

Could you provide some more insight why start is problematic? What use case do you have which is not working?
If you call api.trace.getTracerProvider() before the SDK has been started you get a Proxy which then forwards to the real provide once it's available.
The TracerProvider is created in start() so why would a getter help here?

If a metric exporter is configured: https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-node/src/sdk.ts#L86
It will set a Meter config here: https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-node/src/sdk.ts#L99
When a MEter Config is available in the class, on start() https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-node/src/sdk.ts#L166
It creates a new Provider and sets it globally on start. The global part of Metric providers is actually set on start not before.

Btw, it's important to have a setter because on shutdown it is using the instance reference. (It's probably is using the same memory point as the global as they are using the same param though)
https://github.com/open-telemetry/opentelemetry-js/blob/c25ac926861134b8d06ad6c934d5132f315b6541/packages/opentelemetry-sdk-node/src/sdk.ts#L187

I still don't understand your Problem. First start the SDK and then use the Providers via API.
If you start using a TracerA from TracerProvider1 and later you replace TracerProvider1 by TracerProvider2 any span from TracerA will still use the export pipeline from TracerProvider1, not the new one. So you would end up in a strange mixup of several export chains and maybe even spans not linked together as they refer to different ContextManagers.
Please note also that Resource is needed as input to create a TracerProvider/MeterProvider and resource detection tends to be async. As a result setting up and SDK is async.
The API implementation which provides a ProxyTracer/ProxyTracerProvider/.. should solve races if an instrumentation creates a Tracer before SDK is started. Clearly any span created before sdk is started will be not exported but once it's ready it should work.
Maybe I still don't understand your problem. Do you have a concrete code sample creating spans which is not working?

hi @Flarna
My current problem is strictly towards MeterProvider:
Because all the setup happens in a isolated manner on start:
if (this._meterProviderConfig) {
      const meterProvider = new MeterProvider({
        ...this._meterProviderConfig,
        resource: this._resource,
      });

      this._meterProvider = meterProvider;

      metrics.setGlobalMeterProvider(meterProvider);
    }

To setup libs like:
nodeMetrics(meterProvider);

const host = new HostMetrics({ meterProvider, name: 'host-metrics' });
          host.start();

ex: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/opentelemetry-host-metrics
The whole sdk starts without allowing the change to setup more metrics in the meterProvider.

If I understand you correct it's not possible to call api.metrics.getMeterProvider() after SDK startup (as indicated here) and use it to setup more metrics.
Is my understanding correct?

Yes, the problem is that you can't set a global meter because it will be overwritten regardless by the nodejs SDK.
if (this._meterProviderConfig) {
      const meterProvider = new MeterProvider({
        ...this._meterProviderConfig,
        resource: this._resource,
      });

      this._meterProvider = meterProvider;

      metrics.setGlobalMeterProvider(meterProvider);
    }

In this block, it doesn't care if there's already a global meter provider. It sets a new one every time the config is set. So no way to plug metric plugins into the provider after all instrumentation is already set.

There should be only one place where a global provider is set. If you use the SDK then the SDK controls it so this seems to be correct for me.
If every instrumentation library tries to set a new MeterProvider the result would be a big mess.
The public getter you want is available: api.metrics.getMeterProvider().
If you need a different MeterProvider implementation for some reason you can create your own SDK (which can reuse the existing classes).

In this block, it doesn't care if there's already a global meter provider. It sets a new one every time the config is set. So no way to plug metric plugins into the provider after all instrumentation is already set.

This is inside NodeSDK#start() which is called exactly once. So it's not overwritten on every config update as SDK should be created and started only once.

I don't think he is trying to have an instrumentation set up the meter provider but I must admit I don't think I have a good picture of the full usecase he is trying to solve.
@pragmaticivan can you provide a full description of the usecase rather than just the feature?

I ended up going another with a different solution. WIll close that ticket, thanks!


Adds add_thumbnail helper

Any idea why the docs build is blowing up? I can run that same command locally without errors.

It says a cyclic reference detected. It builds in strict mode for PRs, so it might be that it will be ok when merged. I'll pull locally and see if I can get any more useful diagostics.

Strict mode also worked fine for me locally :confused:

Seems to be an issue with the use of uuid somewhere?

griffe.exceptions.CyclicAliasError: Cyclic aliases detected:
uuid

Looks like the latest version of Griffe (released yesterday) has a change to how alias resolution works: https://github.com/mkdocstrings/griffe/blob/master/CHANGELOG.md.
I will pin the requirements to the previous version as a temporary fix.

I've opened an issue in the griffe repo: https://github.com/mkdocstrings/griffe/issues/123


feat: V3 floating lyric window

related issue: https://github.com/listen1/listen1_chrome_extension/issues/702


fail to compile latest version(2.15) in aarch64-centos-7.6 host

when link unittest there are some errors
/usr/bin/ld: .libs/debugallocation_test: hidden symbol `pthread_atfork' in /usr/lib64/libpthread_nonshared.a(pthread_atfork.oS) is referenced by DSO
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
any hints about this ?  Just in case, can you please try against master? In principle it shouldn't be an error to link against hidden symbol, so perhaps something else is happening. And we did refactor automake rules quite a bit recently.

Thanks for the ticket. Just in case, can you please try against master? In principle it shouldn't be an error to link against hidden symbol, so perhaps something else is happening. And we did refactor automake rules quite a bit recently.

The master branch can be compiled successfully and appears to have no issues.

Ok then. Assuming fixed. (New release should come soon)


Caddy should still try path with extensions if request path contains dot but file doesn't exist

1. Which version of Caddy are you using (caddy -version)?
$ caddy -version
Caddy 0.11.5 (unofficial)

This is installed through Homebrew.
2. What are you trying to do?
I want to be able to have a file, such as example.1.html, allow the user to request /example.1, and rewrite the request to /example.1.html.
Example scenario: I have a technical blog and some posts have a version number in the title or other things with a dot, which I don't necessarily want to slugify as -dot- or -point- (since different ones make sense in different contexts).
3. What is your Caddyfile?
I use localhost and tls off for testing locally, but that will be different in production.
localhost {
  tls off
  root _site

  index index.html index.xml index.txt

  # I go through quite a workaround process to allow clean URLs, and
  # disallow the dirty equivalents.
  #
  # There's an open issue for a proposed `hide` directive; make sure
  # to try it out when (or if) it's released:
  #
  # https://github.com/mholt/caddy/issues/370

  # If path lacks extension, try requesting path with HTML then XML.
  ext .html .xml

  # If path has HTML or XML extension, request `404.html`.
  rewrite {
    ext .html .xml
    to /404.html
  }

  # If requesting `404.html`, set status to `404`. This incidentally
  # forces the `404` page to be requested, so…
  status 404 {
    /404.html
  }

  # …set `404.html` as the `404` page, i.e. the page to be displayed
  # when a requested path cannot be found.
  errors {
    404 404.html
  }

  gzip
}

4.

Serving HTTP on port 2015
http://localhost:2015

WARNING: File descriptor limit 256 is too low for production servers. At least 8192 is recommended. Fix with `ulimit -n 8192`.

$ curl 'localhost:2015/example.1'

6. What did you expect to see?
I expect Caddy to respond with the HTML file example.1.html that I've placed in the site root.
7. What did you see instead (give full error messages and/or log)?
Caddy responds with the configured 404 page.
8. Why is this a bug, and how do you think this should be fixed?
I think the request path should be allowed to contain suffixes that look like extensions (but may not be).
The extensions configured for http.ext should serve as fallbacks for when the file cannot be found with a name of the literal form, not for when the request path has no extension.
I created a small patch on a fork last night, which I haven't yet tested but will in a bit.
9. What are you doing to work around the problem in the meantime?
I have no workaround.
10. Please link to any related issues, pull requests, and/or discussion.
I couldn't find any related issues from a quick search.
Bonus: What do you use Caddy for? Why did you choose Caddy?
I'd like to use it for my blog for the easy/automated Let's Encrypt certificate setup and renewal.

😞 Ah, I'm not going to test this tonight. I can't even get the project building and I don't have time for this.
The diff is simple enough that I'm just going to post it here inline if anyone wants to test it themselves.
diff --git a/caddyhttp/extensions/ext.go b/caddyhttp/extensions/ext.go
index b78f5792c..35922794f 100644
--- a/caddyhttp/extensions/ext.go
+++ b/caddyhttp/extensions/ext.go
@@ -45,12 +45,16 @@ type Ext struct {
 // ServeHTTP implements the httpserver.Handler interface.
 func (e Ext) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
 	urlpath := strings.TrimSuffix(r.URL.Path, "/")
-	if len(r.URL.Path) > 0 && path.Ext(urlpath) == "" && r.URL.Path[len(r.URL.Path)-1] != '/' {
-		for _, ext := range e.Extensions {
-			_, err := os.Stat(httpserver.SafePath(e.Root, urlpath) + ext)
-			if err == nil {
-				r.URL.Path = urlpath + ext
-				break
+	if len(r.URL.Path) > 0 && r.URL.Path[len(r.URL.Path)-1] != '/' {
+		_, requestPathDoesntExist := os.Stat(httpserver.SafePath(e.Root, urlpath))
+
+		if requestPathDoesntExist {
+			for _, ext := range e.Extensions {
+				_, err := os.Stat(httpserver.SafePath(e.Root, urlpath) + ext)
+				if err == nil {
+					r.URL.Path = urlpath + ext
+					break
+				}
 			}
 		}
 	}

I found a workaround:
rewrite {
  to {path} {path}.html {path}.xml
}

I still feel that the ext directive should essentially be a short-form of the rewrite directive for a list of extensions, without any if {file} has \. condition.
Docs are fine, I'd just forgotten that the to option tries each form in order. Perhaps an example could be given that makes specific reference to nginx's try_files if you want to make it maximally easy.

Perhaps an example could be given that makes specific reference to nginx's try_files if you want to make it maximally easy.

... easy for people who are familiar with NGINX, maybe. :wink:
There are several examples already for the to parameter: https://caddyserver.com/docs/rewrite

Yes, you're right. I suspect a lot of people will probably be coming from nginx, though.
That said, I can definitely understand not wanting to make ‘docs by comparison’; it can become a bit of a crutch to explain things.
And as I said, the docs are fine, it was more me being stupid/distracted than the docs being badly written.

This is now possible in Caddy 2 (you can try it on the v2 branch if you'd like).


How can I limit a Hive spatial binning query to a specific map extent?

I'm trying to do a HQL query based off a map extent. I cant get this to work, what am I doing wrong? I'm using the taxi_demo in the ESRI example.
SELECT ST_Bin(0.001, ST_Point(dropoff_longitude,dropoff_latitude)) bin_id, *FROM taxi_demo WHERE ST_Contains(ST_Envelope(-8238484.195726455, 4969891.9664984355, -8235431.491909235, 4971962.932233592), ST_Point(dropoff_longitude,dropoff_latitude))
Am I doing something wrong or fat fingering something? It says: No matching method for class com.esri.hadoop.hive.ST_Envelope with (double, double, double, double). Possible choices: FUNC(binary)**

What versions of Spatial Framework for Hadoop, Geometry, Hive, and Hadoop?

Thanks, for the quick response. esri-geometry-api-1.2.1,spatial-sdk-hive-1.1.1, spatial-sdk-json-1.1.1, HDFS <IP_ADDRESS>.3.4.29 , MapReduce2 <IP_ADDRESS>.3.4.29 , Hive <IP_ADDRESS>.3.4.29
From: Randall Whitman<EMAIL_ADDRESS>Sent: Tuesday, November 14, 2017 12:05 PM
To: Esri/gis-tools-for-hadoop<EMAIL_ADDRESS>Cc: GRAY, MATTHEW<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [Esri/gis-tools-for-hadoop] How can I limit a Hive spatial binning query to a specific map extent? (#59)
What versions of Spatial Framework for Hadoop, Geometry, Hive, and Hadoop?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_gis-2Dtools-2Dfor-2Dhadoop_issues_59-23issuecomment-2D344345492&d=DwMCaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=h_PoBEA56u68WC4WDcu6lQ&m=N8ywBjiuSCNcPWfh0YLfXBmWI0w-SYDOrgiWinzTjOw&s=OqP0q2bRMy4LzaNavTI_1eCipHskIVr2ZVA4LDPYmrE&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZj00JKMD-5FnTIQ0MjbhgRpe1Yh-5FeLbE5ks5s2dZZgaJpZM4QTc4M&d=DwMCaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=h_PoBEA56u68WC4WDcu6lQ&m=N8ywBjiuSCNcPWfh0YLfXBmWI0w-SYDOrgiWinzTjOw&s=3PT1wHsmlGgcR4laFM4XvGnYZZ92GxsG8tq2xhF-Hi4&e=.

Thanks, for the quick response. esri-geometry-api-1.2.1,spatial-sdk-hive-1.1.1, spatial-sdk-json-1.1.1, HDFS <IP_ADDRESS>.3.4.29 , MapReduce2 <IP_ADDRESS>.3.4.29 , Hive <IP_ADDRESS>.3.4.29

What happens if you try with Spatial Framework for Hadoop v2.0 (or v1.2), available in the releases on GitHub?  (Spatial Framework v2 will also require Geometry v2.)  Also you can try building from source with maven -Phadoop-2.7 -Phive-1.2 package.

Also what add jar statements did you use?

add jar hdfs:///sandbox/sandbox21/libs/esri-geometry-api-1.2.1.jar;
add jar hdfs:///sandbox/sandbox21/libs/spatial-sdk-hive-1.1.1-SNAPSHOT.jar;
add jar hdfs:///sandbox/sandbox21/libs/spatial-sdk-json-1.1.1-SNAPSHOT.jar;
add jar hdfs:///sandbox/sandbox21/libs/2017/spatial-sdk-hadoop.jar;
From: Randall Whitman<EMAIL_ADDRESS>Sent: Tuesday, November 14, 2017 5:52 PM
To: Esri/gis-tools-for-hadoop<EMAIL_ADDRESS>Cc: GRAY, MATTHEW<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [Esri/gis-tools-for-hadoop] How can I limit a Hive spatial binning query to a specific map extent? (#59)
Also what add jar statements did you use?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_gis-2Dtools-2Dfor-2Dhadoop_issues_59-23issuecomment-2D344439559&d=DwMCaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=h_PoBEA56u68WC4WDcu6lQ&m=qs55q_ULGzvAK9i0rxU8JODr_ovLNmIWGNa82_Xn-jg&s=tjoD5AePHfiqOo_ZDJp7pivafCqWGYkqRUgo1mqNucQ&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZj00L6R0dl9vvnwpRsmZpAPJRgvdPYgks5s2ieygaJpZM4QTc4M&d=DwMCaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=h_PoBEA56u68WC4WDcu6lQ&m=qs55q_ULGzvAK9i0rxU8JODr_ovLNmIWGNa82_Xn-jg&s=X6gOcZoNjcV99kMO_DWn6TteIYvL1a8J-rBpF-lu7z4&e=.

add jar hdfs:///sandbox/sandbox21/libs/esri-geometry-api-1.2.1.jar;
add jar hdfs:///sandbox/sandbox21/libs/spatial-sdk-hive-1.1.1-SNAPSHOT.jar;
add jar hdfs:///sandbox/sandbox21/libs/spatial-sdk-json-1.1.1-SNAPSHOT.jar;
add jar hdfs:///sandbox/sandbox21/libs/2017/spatial-sdk-hadoop.jar;

Use spatial-sdk-hive and spatial-sdk-json, not spatial-sdk-hadoop.  (Alternately, use the all-in-one rather than the per-module, but not all 3.)


Other clients besides TypeScript-based ones like NodeJS, Bun, Deno

Is there a way to use pglite without using JS/TypeScript as the client language? I was thinking since this packages up Postgres into WASM that others could then write bindings for other clients as well, such as for offline-first apps for Android via Kotlin, iOS via Swift, Flutter, etc.

This is something I very much hope we can solve.
There are two routes are are looking at:

a WASM only package with a lower level api for use without JS/TS
a native C lib for binding to platforms without WASM support

There is a fair bit of cross over between the two, but also quite a bit of engineering to do to achieve it. It's on the roadmap.

Closed in favour of #89


Add visualization function.

Hi! I really appreciate your work and it helps me a lot.
To observe the result more directly, I have made efforts to add visualization function in tools/pointcept/engines/test.
When you test your data, the pointcloud result can be converted at the same time. Other details can be seen in my pull request and codes.
Im a new coder, so maybe some bugs are still in my code. The code is under review. I hope it helps!
Any advice can be given here.

Besides, the pointcloud is colored with class but not feature.

Besides, the pointcloud is colored with class but not feature.

Great, I saw that. I will handle it at the weekend.


branching: document no-FF and fix staff-eng label

/cc @bparees @bugenerali

/lgtm

Hi @petr-muller, the paragraph about no-Feature Freeze requirements looks good to me. The only part that I'm not 100% familiar is regarding "Pull requests to release-* branches are not affected by this process. They use the criteria specified in the respective sections of this document.", but I am assuming that the no-FF teams will follow the same process as other teams in the 'release-*" branch.

no-FF teams will follow the same process as other teams in the 'release-*" branch.

@bugenerali yeah that's exactly right. If you can suggest some clearer wording, I'll be happy to make the change.

No it's clear to me @petr-muller, no need to reword. I was just saying that I'm not familiar with the "release-" branches side of things.


Error: 'DataFrame' object has no attribute 'binarize'

Dear pytimetk team,
I hope this message finds you well. I am reaching out to report an issue that I encountered while using the pytimetk library.
I attempted to use the binarize function on a DataFrame created with Pandas, following the provided documentation. However, I encountered the following error:
import pytimetk as tk
import pandas as pd
d = pd.DataFrame(df2)
d.glimpse()
<class 'pandas.core.frame.DataFrame'>: 2524 rows of 7 columns
doy:  int64             [80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, ...
SH:   float64           [4.0, 5.6, 6.9, 11.0, 5.0, 5.8, 0.0, 0.0, 0.0, 1 ...
Tn:   float64           [5.81, 5.86, 3.2, 3.1, -0.6, 2.5, 8.86, 8.6, 7.6 ...
Tx:   float64           [14.5, 19.3, 12.8, 14.2, 16.3, 19.6, 16.4, 10.8, ...
n:    float64           [5.13, 5.13, 4.25, 1.75, 4.25, 6.25, 7.38, 8.0,  ...
Ra:   float64           [31.05, 31.27, 31.49, 31.7, 31.92, 32.13, 32.35, ...
SR:   int64             [1130, 1530, 1669, 168, 1851, 1952, 225, 131, 16 ...
df_binarized = d.binarize(n_bins=4, thresh_infreq=0.01, name_infreq="-OTHER", one_hot=True)
df_binarized.glimpse()
AttributeError: 'DataFrame' object has no attribute 'binarize'
pytimetk Version: [0.2.1]
Python Version: [3.11.5]
Operating System: [Microsoft Windows 10]
Thank you for your attention to this matter. I appreciate your efforts in maintaining this valuable library.
Best regards,

You probably need to upgrade to the development version. 0.2.1 doesn't have binarize. Follow the installation instructions:
pip install git+https://github.com/business-science/pytimetk.git

Thank you. works.


PrimitiveFailure: String#valid_encoding? primitive failed

What did you do?
I ran the command /home/matijs/.rbenv/versions/rbx-3.56/bin/bundle

What did you expect to happen?
I expected Bundler to install some gems

What happened instead?
Instead, what actually happened was:

Bundler produced the output:

Fetching https://github.com/mbj/mutant.git
Fetching gem metadata from https://rubygems.org/

And then it produced this error template.

Error details
PrimitiveFailure: String#valid_encoding? primitive failed
  core/string.rb:192:in `valid_encoding?'
  core/splitter.rb:17:in `valid_encoding?'
  core/splitter.rb:59:in `split'
  core/string.rb:669:in `split'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb:93:in `parse_dependency'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb:87:in `parse_gem'
  core/array.rb:93:in `map'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb:87:in `parse_gem'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb:57:in `dependencies'
  core/array.rb:93:in `map'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb:56:in `dependencies'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb:44:in `dependencies'
  core/proc.rb:20:in `call'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/fetcher/compact_index.rb:88:in `compact_index_client'
  core/proc.rb:20:in `call'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/worker.rb:65:in `apply_func'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/worker.rb:60:in `process_queue'
  core/kernel.rb:585:in `loop'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/worker.rb:57:in `process_queue'
  /home/matijs/.rbenv/versions/rbx-3.56/gems/gems/bundler-1.12.5/lib/bundler/worker.rb:29:in `initialize'
  core/proc.rb:20:in `call'

Environment
Bundler   1.12.5
Rubygems  2.6.6
Ruby      2.3.1p0 (2016-08-19 revision 0) [x86_64-linux-gnu]
GEM_HOME  /home/matijs/.rbenv/versions/rbx-3.56/gems
GEM_PATH  /home/matijs/.rbenv/versions/rbx-3.56/gems:/home/matijs/.gem/rbx/2.3
Git       2.9.3
  Bundler settings

shebang
Set for the current user (/home/matijs/.bundle/config): "ruby"
gem.coc
Set for the current user (/home/matijs/.bundle/config): "true"
gem.mit
Set for the current user (/home/matijs/.bundle/config): "true"
gem.test
Set for the current user (/home/matijs/.bundle/config): "rspec"
orig_path
Set via BUNDLE_ORIG_PATH: "/home/matijs/.rbenv/versions/rbx-3.56/bin:/usr/lib/rbenv/libexec:/home/matijs/.rbenv/shims:/home/matijs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/matijs/bin"

Thanks for reporting this! I've never seen that error before. Is it something specific to Rubinius? What causes it? What are your shell encoding settings?

Is it something specific to Rubinius?

Yes. I have just tried the same on a fresh install of MRI 2.2.5, and it causes no problems.

What causes it?

This happened running bundle in my project gir_ffi, when no other gems are installed yet. However, subsequent runs causes segfaults instead of the error above. There were also some errors about system gems not having had their extensions built.
After using gem pristine to fix the system gems, and manually installing all dependencies for my project, bundle works fine.
I'm afraid this error may not be easily reproducible :frowning:.

What are your shell encoding settings?

[matijs@bean] locale
LANG=en_IE.utf8
LANGUAGE=
LC_CTYPE="en_IE.utf8"
LC_NUMERIC="en_IE.utf8"
LC_TIME="en_IE.utf8"
LC_COLLATE=C
LC_MONETARY="en_IE.utf8"
LC_MESSAGES="en_IE.utf8"
LC_PAPER="en_IE.utf8"
LC_NAME="en_IE.utf8"
LC_ADDRESS="en_IE.utf8"
LC_TELEPHONE="en_IE.utf8"
LC_MEASUREMENT="en_IE.utf8"
LC_IDENTIFICATION="en_IE.utf8"
LC_ALL=

Okay. If you see this again, let us know!


update lldp feature.textproto

add 2 missing paths

Pull Request Functional Test Report for #1825 / 765d7144c0bc0d30af367ec778d0207f5d98ed79
No tests identified for validation.
Help

This is a duplicate of #1696


TTL actions in conjunction with persistence on rename results in exception while trying to free _SUCCESS file

Alluxio Version:
2.2.1
Describe the bug
I was trying to follow https://docs.alluxio.io/ee/user/stable/en/operation/Performance-Tuning.html , to be more precise “Optimized Commits for Compute Frameworks” section. Along with that I’m trying to setup TTL and TTL action using “path defaults” -https://docs.alluxio.io/os/user/stable/en/operation/Configuration.html#path-defaults.
Due to combination of  alluxio.user.file.persist.on.rename and  / or alluxio.user.file.persistence.initial.wait.time properties, _SUCCESS files have forever persistence state - TO_BE_PERSISTED. And as a result in master.log after TTL action takes place, you'll see:
ERROR InodeTtlChecker - Exception trying to clean up alluxio.master.file.meta.InodeDirectory@31 for ttl check
alluxio.exception.UnexpectedAlluxioException: Cannot free file /mlp/alluxio_ttl_test/_SUCCESS which is not persisted
	at alluxio.master.file.DefaultFileSystemMaster.freeInternal(DefaultFileSystemMaster.java:2295)
	at alluxio.master.file.DefaultFileSystemMaster.free(DefaultFileSystemMaster.java:2262)
	at alluxio.master.file.InodeTtlChecker.heartbeat(InodeTtlChecker.java:89)
	at alluxio.heartbeat.HeartbeatThread.run(HeartbeatThread.java:119)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

To Reproduce
Important alluxio-site.properties:
alluxio.user.file.writetype.default=ASYNC_THROUGH
alluxio.user.file.persistence.initial.wait.time=-1
alluxio.user.file.persist.on.rename=true
alluxio.user.file.replication.durable=1
alluxio.master.persistence.blacklist=_temporary

Setting up TTL on specific folder:
$ ./bin/alluxio fsadmin pathConf add --property alluxio.user.file.create.ttl=10min /mlp
$ ./bin/alluxio fsadmin pathConf add --property alluxio.user.file.create.ttl.action=FREE /mlp

Writing some dummy data:
$ spark-shell
scala> case class Test(i: Int, s: String)
scala> val df = Seq(Test(1, "a"), Test(2, "b"), Test(3, "c"), Test(4, "d")).toDF
scala> df.write.json(("alluxio://master_1:19998;master_2:19998;master_3:19998/mlp/alluxio_ttl_test")

Expected behavior
No thrown exceptions in master.log. I do understand that this is happening due to MapReduce FileOutputCommitter's behaviour that is used by Spark - https://github.com/apache/hadoop/blob/master/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java#L313-L341 (i.e _SUCCESS file is created after renaming _temporary directory), so it's never persisted, but then either alluxio should not attempt to take ttl action on not persisted files or there should be explicit configuration flag like alluxio.user.file.persist.mapred.success.file to give user ability to persist _SUCCESS file even if alluxio.user.file.persist.on.rename is set to true.
Urgency
Low-urgency.
Additional context
There should be a warning that alluxio.user.file.persist.on.rename=true effects persistence of files that are copied to alluxio manually, e.x using copyFromLocal. As copyFromLocal doesn't involve renaming , such files also remain indefinitely in TO_BE_PERSISTED state.

Will close it for now, feel free to reopen it and contact us if this is still valid.


Add image vision datasets as Base lightningModules

Add the torchvision datasets including the standard transforms and splits as modules

class MNISTModule(pl.LightningModule):

    def prepare_data(self):
        self.mnist_train = MNIST(os.getcwd(), train=True, download=True, transform=transforms.ToTensor())
        self.mnist_test = MNIST(os.getcwd(), train=False, download=True, transform=transforms.ToTensor())

    def train_dataloader(self):
        loader = DataLoader(self.mnist_train, batch_size=self.hparams.batch_size, num_workers=self.hparams.num_workers)
        return loader

    def val_dataloader(self):
        loader = DataLoader(self.mnist_test, batch_size=self.hparams.batch_size, num_workers=self.hparams.num_workers)
        return loader

    def test_dataloader(self):
        loader = DataLoader(self.mnist_test, batch_size=self.hparams.batch_size, num_workers=self.hparams.num_workers)
        return loader

from pytorch_lightning.bolts.dataset_modules import MNISTModule

class MyModel(MNISTModule, pl.LightningModule):

    # all the dataloaders have been implemented with MNIST

@PyTorchLightning/core-contributors is this a good pattern?

i think it's any known research dataset (Norb, stl10, etc...), even esoteric ones. But not personal ones?
So, yes, curated by the community I guess

Even ones the user has to download by himself? You can't download all of them in a scripted way...

I agree with @williamFalcon to only include curated datasets and potentially all from torchvision since it has a quite robust API. In case of missing ones, I think it's best to invest in contributing to torchvision instead of start creating custom stuff. For downloading, I would give the control to the user. Not all of the datasets in torchvision have really this option since in some of them you have to download the data in an offline process.

the only limitations with torchvision is that they require latest torch

Yes, but for most datasets also previous torchvision holds them. So you could introduce a min torchvision version to each of them and check these during init :)

these are added!

we need to evaluate direct support with PL after we test this for a bit


Conditionally uninitialized local variables in function Modelica.Media.Water.IF97_Utilities.BaseIF97.Isentropic.hofps4 used.

Reported by jfrenkel on 17 Feb 2014 15:06 UTC
In the function Modelica.Media.Water.IF97_Utilities.BaseIF97.Isentropic.hofps4 the local variables sl, sv, hl and hv are only specified if p <= data.PLIMIT4A or p < data.PCRIT is. In all other cases the are used without defining a value. I would be good to have in these cases a defined and for all tools and runs equal behaviour.

Migrated-From: https://trac.modelica.org/Modelica/ticket/1430

Comment by hubertus on 13 Dec 2015 01:37 UTC
Fixed in 6dcfe04f67ecc0aef4b5ac2d57cd7cacc748214a

Changelog modified by hubertus on 13 Dec 2015 01:37 UTC
Missing initialization fixed in Water IF97

Modified by beutlich on 13 Dec 2015 08:26 UTC


ModuleNotFoundError: No module named 'cupy'

Hi there,
When I start up Comfy your Node never loads, because apparently I'm missing cupy. I did pip install it though.
When I try to re-install it using your .py, I get this:
...Frame-Interpolation> python install-cupy.py
Requirement already satisfied: cupy-cuda11x in c:\python311\lib\site-packages (12.2.0)
Requirement already satisfied: numpy<1.27,>=1.20 in c:\python311\lib\site-packages (from cupy-cuda11x) (1.26.0)
Requirement already satisfied: fastrlock>=0.5 in c:\python311\lib\site-packages (from cupy-cuda11x) (0.8.2)

@CognitiveDiffusion What is the environment you are using? I think install-cupy.py is ran in the wrong enviroment.

That worked. Thanks.


Jiangxi University of Technology

@hohaivu Please provide us with:

the school official website URL, if different from the domain you are submitting
an URL of a page on the official website where an IT-related long-term (>1 year) course is offered by the school
a proof which confirms that the school recognizes the domain which you are submitting as an official email domain for the students.

@hohaivu You might miss my previous comment. Please react.

@hohaivu I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the aforementioned issue. Thank you for the understanding!


Android resource linking failed @mipmap/ic_launcher not found

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     E:\Programs\Flutter\<My_APP>\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml:16: AAPT: error: resource mipmap/ic_launcher (aka com.example.<My_APP>:mipmap/ic_launcher) not found.

I try to removing icon from android manifest file it works but, I want flutter ic_launcher. Any idea, what is the cause ?

@jaymoradiya
This seems to be related to misconfiguration while you tried to remove icon from manifest which the build is unable to re-link. So I suggest you to ask this question in support channels like StackOverflow or look for similar issues / solutions using google search, as this isn't a framework issue. Closing from here. If you disagree, write in comments and I'll reopen it.
Thanks.


cmsio0.c compile error (MSVC 2013)

Hello,
I have a compile error in cmsio0.c at line 1857.
error C2440: '=' : cannot convert from 'int' to 'cmsTagSignature'
the solution to cast 0 to cmsTagSignature:
Icc->TagNames[i] = (cmsTagSignature)0;
Regards
Zolee

I cannot reproduce this anymore


[firebase_storage] to handle errors like a security error

I want to handle errors like security error
PlatformException(sign_in_failed, FIRStorageErrorDomain, User does not have permission to access
I tried try catch block but no luck.
try {
      final StorageUploadTask uploadTask = ref.putFile(_image,StorageMetadata(contentType:'image/jpeg'));
      final Uri downloadUrl = (await uploadTask.future).downloadUrl;
      print(downloadUrl.toString());
    } on PlatformException catch (e) {
      throw  e.code;
    } catch (e) {
      print(e);
    }

@volkangurol
The issue at https://github.com/flutter/flutter/issues/18547 has been closed and moved here. Future collaboration on this issue will be done here.

Maybe that wasn't the same issue as I thought. I wasn't able to catch errors when using
storageReference.getDownloadURL().then((_) async { ..... }, onError: (e) {

Thanks to architecture changes I was able to use async/await properly and I'm now catching issue
   try {
await storageReference.getDownloadURL();
    StorageFileDownloadTask storageFileDownloadTask;
    storageFileDownloadTask = storageReference.writeToFile(image);
    final int byteNumber =
        (await storageFileDownloadTask.future).totalByteCount;
    debugPrint('downloaded image size ${byteNumber.toString()}');
    } on Exception catch(e) {
      return Left(e);
    }

In my case I'd like to display an error message if the file doesn't upload due to security rules restrictions. The debug console outputs the below but I can't catch anything.
E/StorageException( 5833): StorageException has occurred.
E/StorageException( 5833): User does not have permission to access this object.
E/StorageException( 5833):  Code: -13021 HttpResult: 403
E/StorageException( 5833): The server has terminated the upload session
E/StorageException( 5833): java.io.IOException: The server has terminated the upload session
E/StorageException( 5833): 	at com.google.firebase.storage.UploadTask.serverStateValid(com.google.firebase:firebase-storage@@17.0.0:340)
E/StorageException( 5833): 	at com.google.firebase.storage.UploadTask.shouldContinue(com.google.firebase:firebase-storage@@17.0.0:309)
E/StorageException( 5833): 	at com.google.firebase.storage.UploadTask.run(com.google.firebase:firebase-storage@@17.0.0:226)
E/StorageException( 5833): 	at com.google.firebase.storage.StorageTask.lambda$getRunnable$7(com.google.firebase:firebase-storage@@17.0.0:1106)
E/StorageException( 5833): 	at com.google.firebase.storage.StorageTask$$Lambda$10.run(Unknown Source:2)
E/StorageException( 5833): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/StorageException( 5833): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/StorageException( 5833): 	at java.lang.Thread.run(Thread.java:919)
E/StorageException( 5833): Caused by: java.io.IOException: {  "error": {    "code": 403,    "message": "Permission denied. Could not perform this operation"  }}
E/StorageException( 5833): 	at com.google.firebase.storage.network.NetworkRequest.parseResponse(com.google.firebase:firebase-storage@@17.0.0:455)
E/StorageException( 5833): 	at com.google.firebase.storage.network.NetworkRequest.parseErrorResponse(com.google.firebase:firebase-storage@@17.0.0:435)
E/StorageException( 5833): 	at com.google.firebase.storage.network.NetworkRequest.processResponseStream(com.google.firebase:firebase-storage@@17.0.0:426)

The exception is being recognized in the subscription but I'm not sure what to do with that:
try {
  FirebaseStorage _storage =
      await RootProject.getStorage(StorageBucket.users);
  StorageUploadTask _uploadTask = _storage.ref().child('path').putFile(
        file,
      );

  final StreamSubscription<StorageTaskEvent> streamSubscription =
      _uploadTask.events.listen((event) {
    if (event.type == StorageTaskEventType.failure) {
      // works but ...
    }
  });

  await _uploadTask.onComplete;
  streamSubscription.cancel();
} catch (e) {
  // nothing ...
}

Maybe that wasn't the same issue as I thought. I wasn't able to catch errors when using
storageReference.getDownloadURL().then((_) async { ..... }, onError: (e) {

Thanks to architecture changes I was able to use async/await properly and I'm now catching issue
   try {
await storageReference.getDownloadURL();
    StorageFileDownloadTask storageFileDownloadTask;
    storageFileDownloadTask = storageReference.writeToFile(image);
    final int byteNumber =
        (await storageFileDownloadTask.future).totalByteCount;
    debugPrint('downloaded image size ${byteNumber.toString()}');
    } on Exception catch(e) {
      return Left(e);
    }

doesn't work

This works for me.
try {
    String url = await storageReference.getDownloadURL();
} on Exception catch(e) {
    print("Oops! The file was not found");
}

I have this issue as well - however much I await and try / catch the executions are still filling up my debug console and it drives me nuts. Any updates on this at all would be very much appreciated !

@samarthagarwal doesn't seem to work for me... Environment and package versions all up to date, any further help gratefully received ;-)
try {
        final StorageReference ref =
            FirebaseStorage.instance.ref().child(_remote.path);
        final dynamic url = await ref.getDownloadURL();
      } on Exception  catch (error) {
        print('error');
      }

[√] Flutter (Channel dev, v1.15.3, on Microsoft Windows [Version 10.0.18363.657], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.42.1)
[√] Connected device (1 available)

  cupertino_icons: ^0.1.2
  firebase_auth: ^0.15.4
  cloud_firestore: ^0.13.4
  firebase_storage: ^3.1.3
  provider: ^4.0.2
  flutter_spinkit: ^4.1.1+1
  intro_slider: ^2.2.9
  cached_network_image: ^2.0.0
  google_maps_flutter: ^0.5.24+1
  flutter_cache_manager: ^1.1.3

E/StorageException(21824): StorageException has occurred.
E/StorageException(21824): Object does not exist at location.
E/StorageException(21824):  Code: -13010 HttpResult: 404
E/StorageException(21824): {  "error": {    "code": 404,    "message": "Not Found.  Could not get object",    "status": "GET_OBJECT"  }}
E/StorageException(21824): java.io.IOException: {  "error": {    "code": 404,    "message": "Not Found.  Could not get object",    "status": "GET_OBJECT"  }}
E/StorageException(21824): 	at com.google.firebase.storage.network.NetworkRequest.parseResponse(com.google.firebase:firebase-storage@@17.0.0:455)
E/StorageException(21824): 	at com.google.firebase.storage.network.NetworkRequest.parseErrorResponse(com.google.firebase:firebase-storage@@17.0.0:435)
E/StorageException(21824): 	at com.google.firebase.storage.network.NetworkRequest.processResponseStream(com.google.firebase:firebase-storage@@17.0.0:426)
E/StorageException(21824): 	at com.google.firebase.storage.network.NetworkRequest.performRequest(com.google.firebase:firebase-storage@@17.0.0:280)
E/StorageException(21824): 	at com.google.firebase.storage.network.NetworkRequest.performRequest(com.google.firebase:firebase-storage@@17.0.0:294)
E/StorageException(21824): 	at com.google.firebase.storage.internal.ExponentialBackoffSender.sendWithExponentialBackoff(com.google.firebase:firebase-storage@@17.0.0:70)
E/StorageException(21824): 	at com.google.firebase.storage.internal.ExponentialBackoffSender.sendWithExponentialBackoff(com.google.firebase:firebase-storage@@17.0.0:62)
E/StorageException(21824): 	at com.google.firebase.storage.GetDownloadUrlTask.run(com.google.firebase:firebase-storage@@17.0.0:74)
E/StorageException(21824): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/StorageException(21824): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/StorageException(21824): 	at java.lang.Thread.run(Thread.java:919)

@mistyn8 You are right. It worked for me but now it does not. I don't remember the version I was using.

@samarthagarwal cheers for the reply.. so regression issue?

The issue I am facing is probably related to this.
The code:
await FirebaseStorage.instance         .ref()         .child("users_profilepics/" + _userUid)         .getDownloadURL()         .then((val) => _profileImageUrl = val)         .catchError((err) {           _profileImageUrl = "none";           print("Profile pic not found.");         });
Produces the aforementioned debug message in the console:
Object does not exist at location. E/StorageException(20215):  Code: -13010 HttpResult: 404 E/StorageException(20215): {  "error": {    "code": 404,    "message": "Not Found.  Could not get object",    "status": "GET_OBJECT"  }} E/StorageException(20215): java.io.IOException: {  "error": {    "code": 404,    "message": "Not Found.  Could not get object",    "status": "GET_OBJECT"  }} E/StorageException(20215): 	at com.google.firebase.storage.network.NetworkRequest.parseResponse(com.google.firebase:firebase-storage@@17.0.0:455) E/StorageException(20215): 	at com.google.firebase.storage.network.NetworkRequest.parseErrorResponse(com.google.firebase:firebase-storage@@17.0.0:435) ......................
However, the catchErr works well, because the message "Profile pic not found" is written in the console, and the _profileImageUrl variable is set to none.
The result is exactly the same with the similar (maybe more correct?) code:
`var profilePicLocation = FirebaseStorage.instance
.ref()
.child("users_profilepics/" + _userUid);
try {
  _profileImageUrl = await profilePicLocation.getDownloadURL();
}
on Exception catch(e) {
  _profileImageUrl = "none";
  print("Profile pic not found.");
}

`
Also here the exception is caught ("Profile pic not found" is printed), but the error in the console is still written.

I think this is working as intended you can catch the error but it still logs, these error logs you are seeing are Java stack traces coming from the native Firebase Android SDK - it logs errors by default, the plugin code itself for FlutterFire isn't logging/printing these as far as I can see.
Having said that we will be working on improved error handling across the board, e.g. #1456 #1253

@Salakar I have tried all of the solutions that have been posted and in all of my testing, I have not been able to catch the error as you said. So, the solution is not resolved and should be reopened. Here is my code:
try {
  await _storage.ref().child(filePath).getData(MAX_SIZE).then((bytes) {
    img = Image.memory(bytes);
  }, onError: () => print("first catch attempt")).catchError(() => print("second catch attempt"));
} catch (e) {
  print("third catch attempt");
}

and here is the error:


Setting R&S ZNB npts fails in CW mode

Steps to reproduce

Load R&S ZNB driver
set it to CW mode
try to change the npts parameter

MWE:
import qcodes as qc
import qcodes.instrument_drivers.rohde_schwarz.ZNB as ZNB

qc.Instrument.close_all()

station = qc.Station()

station.add_component(ZNB.ZNB('VNA', ..., init_s_params=False))
station.VNA.add_channel('S21')

vna = station.VNA

# this works fine
vna.S21.npts(123)
print(vna.S21.npts())

# this causes a timeout error
vna.S21.setup_cw_sweep()
vna.S21.npts(201)
print(vna.S21.npts())

# this works again
vna.S21.setup_lin_sweep()
vna.S21.npts(345)
print(vna.S21.npts())

Expected behaviour
The npts parameter should be set correctly.
Actual behaviour
I get the exception:
VisaIOError: ('VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.', "asking 'SENS1:FREQ:START?' to <ZNB: VNA>", 'getting VNA_S21_start', 'setting VNA_S21_npts to 201')

The problem seems to be that setting npts calls self.update_lin_traces() which in turn calls self.start.get() which doesn't seem to work if the VNA is in CW mode.
System
operating system
Windows 7
qcodes branch
v0.26.0

@mgunyho Thanks for the detailed description. It looks like perhaps update_lin_traces should only be called if the instrument is in a different mode. Would you be willing to make a pull request that implements this ?

Yes, that seems to be the correct fix. I can try to implement it the next time we're using the VNA.


Door status inverted

My door sensor shows 'off' when closed and 'on' when open. I've tried to use 'state_map' to invert the states but the door is always shown the door-open.png image.
- type: door
  entity: binary_sensor.front_door_contact
  state_map:
    on: "off"
    off: "on"

Hmm, strange. Using state_map seems to work just fine for me in my example (using an input_boolean to simulate the door). Also using one of the demo binary sensors seems to work in the same way as well. The code generated by the lovelace editor looks like this:
entities:
  - entity: input_boolean.demo_door
    type: door
    state_map:
      'on': 'off'
      'off': 'on'

But the quoting shouldn't be a problem. Can you double check the sensor state and refresh the UI after transition? Shouldn't be problem, but I don't really understand what is wrong here.

Well, after quoting the state_map it now works correctly. That is weird!

I have the same here with my Xiaomi door sensor which show off when closed and on when opened.
The quotes are needed because on and off are reserved words in Yaml for boolean type -> http://www.serhatdundar.com/blog/boolean-type-words-in-yaml.


[stable/oauth2-proxy] Use newer ingress API to be compatible with Kubernetes 1.16

What this PR does / why we need it:
Kubernetes 1.16 deprecates various APIs and therefore manifests require updates.
This PR updates the ingress API version and is backwards compatible so it can still be used with older Kubernetes versions.
Which issue this PR fixes
N/A
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @desaintmartin

@desaintmartin

1/ please see changes like https://github.com/helm/charts/pull/19245/files for helm 3 support.

Is this working with helm 2?

Although I haven't found the minimal version of this API, a quick test using Helm 2.14 and a new chart shows that yes, it works.

@desaintmartin Thanks for pointing this out. I wasn't aware of .Capabilities.APIVersions.Has, which looks much cleaner.

Thanks!
/lgtm


Send the githubToken to actionutils to use authenticated calls to github when looking for packages

Looking at this code when we search for the AppMap releases in Github, it appears we are not sending the githubToken to actionutils?  https://github.com/getappmap/action-utils/blob/main/src/installAppMapTools.ts#L27
I have some test builds where the rate limit for unauthenticated requests decreases after installing the action but the authenticated requests don't decrease which makes me think the issue is that when we search for the binary to install we're not making an authenticated call to search for the binary.
here are 2 example builds where you can see the rate limit change for unauthenticated API calls
https://github.com/land-of-apps/rails-7-app/actions/runs/7266433552/job/19798166764
https://github.com/land-of-apps/rails-7-app/actions/runs/7266542030/job/19798969998
Going to test this branch on a build to see if this changes the API rate limit counters.
Fixes #32

Ok - on this run the rate limit counters for authenticated API requests went down while unauthenticated requests stayed the same.  So i think this works and is ready for review.
https://github.com/land-of-apps/rails-7-app/actions/runs/7267822180/job/19802437171

With the token explicitly set as well you can see the authenticated counters going down after install.
https://github.com/land-of-apps/rails-7-app/actions/runs/7277894754/job/19830914021

Oh good thinking @kgilpin i can check the other actions and make sure we are not missing this as well.


Add billqualls's file

So far I have created a branch, created a file and made a commit, and opened a pull request

I am closing the pull request

ugh...


[firebase_messaging] Adding cloud_storage stops notifications being delivered

I added these two dependencies cloud_firestore and firebase_messaging, because of some conflits in cloud_firestore i am not receiving notification in device if i remove cloud_firestore then notification work, i tried lots of things for this but not perfact solution found.
https://github.com/flutter/flutter/issues/49288
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-GB)
• Flutter version 1.12.13+hotfix.5 at /Users/harishvekariya/flutter
• Framework revision 27321eb (6 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/harishvekariya/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/harishvekariya/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.9.0.beta.2
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (1 available)
• iPhone • ---------- • ios • iOS 13.3
• No issues found!
Process finished with exit code 0

Hi @Bharavi26 please could you show some code usage of how you're listening for notifications? These two libraries should have no impact on each other so I think this may be a localised issue.

Thank you for reply, i solved that issue.
On Mon 20 Apr, 2020, 8:02 PM Elliot Hesp<EMAIL_ADDRESS>wrote:

Hi @Bharavi26 https://github.com/Bharavi26 please could you show some
code usage of how you're listening for notifications? These two libraries
should have no impact on each other so I think this may be a localised
issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FirebaseExtended/flutterfire/issues/1865#issuecomment-616592643,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIYO6XFWYXQ2U4WAFMQXFHTRNRMIJANCNFSM4KLAXFYQ
.

Thanks. Posting the solution would be helpful for others who come across this issue.


ribulose bisphosphate carboxylase complex

Hello
This issue was brought to my attention by TIGR
annotator Scott Durkin.
Currently there is only one ribulose bisphosphate
carboxylase complex term:
"ribulose bisphosphate carboxylase complex" (GO:0009573)
This term is a child of "chloroplast stroma"
(GO:0009570) and is therefore not appropriate for
bacterial and archaeal genes.
There will need to be terms specific for bacteria,
eukaryotes and perhaps archaea so that the bacterial
terms are not children of any organelles.
There is no definition for the current term, but it
should be kept in mind when making the new terms that
there are 3 forms of this complex currently known:
Form I requires both large and small subunits and is
found in bacteria and eukaryotes.
Form II apears to require only large subunits and is
found in bacteria and eukaryotes.
Form III is found only in archaea and may only be
composed of  large subunits.
More info at PMID:12730164, Swiss-Prot:P50922,
Swiss-Prot:P22849
Thanks for your time,
Michelle
Reported by: mlgwinn
Original Ticket: "geneontology/ontology-requests/1466":https://sourceforge.net/p/geneontology/ontology-requests/1466

thanks www.movied.org


[Feature] Add questions counter

Is your feature request related to a problem? Please describe.
Currently the application has nothing to show how many questions the user has answered.
A counter could be useful.
Describe the solution you'd like
Add a counter inside the form, above the question. (eg. 1/480)

Hello @eduardconstantin , Can I work on it?

Hello! Yes, it still is. I'll assign you

Is this ok @eduardconstantin ?

You have a photo in the first post. It should show the total no of answered questions/total number of questions

ha, right, you don't have access to the database. Just put 480 and I'll update it.

ha, right, you don't have access to the database. Just put 480 and I'll update it.

Oh! Got it raising the PR!