Fix semver check for rust 1.54.0

This updates semver.md to use the new error message for reporting missing generic arguments.

r? @ehuss
(rust-highfive has picked a reviewer for you, use r? to override)

Thanks!
@bors r+

:pushpin: Commit 3073edb373ecad19b1a72e11fb8f3674b11222f8 has been approved by ehuss

:hourglass: Testing commit 3073edb373ecad19b1a72e11fb8f3674b11222f8 with merge 0d8895339fbee3d5d568e521aa8c3c9de9197f45...

:sunny: Test successful - checks-actions
Approved by: ehuss
Pushing 0d8895339fbee3d5d568e521aa8c3c9de9197f45 to master...


ds.columns should return a list of  strings....

ds.columns() should get you a slit of strings so it will be easy to combine it with other packages, tools and applications.
The ds.columns.keys() is tiresome and unique to vaex.

I agree, but I cannot simply change the API without breaking a gazillion codes :)

Btw, there is get_column_names(...) check that out.


Report success and error in the OnePasswordItem status field

Summary
Currently, the only way to understand if the is a reconcile error is by looking at the operator's logs. The status field of the CRD can be used to report errors and success status.
Use cases

A user doesn't have permission to view the logs of the operator
ArgoCD can use the status field to report the health status - https://argoproj.github.io/argo-cd/operator-manual/health/#way-2-contribute-a-custom-health-check

Proposed solution
Add:
status:
  conditions:
    - lastTransitionTime:
      message: set secret ...
      status: reconsiled
      type: Ready
    - lastTransitionTime:
      message: Failed to retrieve item...
      status: error
      type: Error

Is there a workaround to accomplish this today?
the operator logs
References & Prior Work
cert manager example: https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateCondition

Hi there,
Thank you for bringing this issue to our attention. I can definitely see having a status on the CRD being useful. We will look into potentially adding this in the future.
Cheers


Update http2-server to 9.4.36.v20210114

Updates org.eclipse.jetty.http2:http2-server from 9.4.35.v20201120 to 9.4.36.v20210114.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (9.4.35.v20201120).
You might want to review and update them manually.
website/src/hugo/content/changelog.md

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.eclipse.jetty.http2", artifactId = "http2-server" } ]

labels: library-update, old-version-remains

Redundant with #4230.

Redundant with #4230.


RPM for PG12

Good morning,
do you know why RPMs are available in the PG11 repo but not in the PG12 repo? What can we do to get the RPM in the PG12 Repository as well?
PG11: https://yum.postgresql.org/11/redhat/rhel-7-x86_64/
PG12: https://yum.postgresql.org/12/redhat/rhel-7-x86_64/
Thanks,
Dennis

I don't have access to yum.postgresql.org repository. This repository is maintained by a team of PGDG members, including Devrim Gunduz.
yum.postgresql.org has its own issue tracker : https://redmine.postgresql.org/projects/pgrpms/
Did you try with the unified repository ?
Anyway, we at Dalibo have our own YUM repository : https://yum.dalibo.org/labs/ . This is where we publish upstream rpm. This repository only has packages for CentOS7. For ldap2pg, I let PGDG build and publish RPMs.
If you want, I can upload rpms to https://yum.dalibo.org/labs/ . I don't have access to an RHEL7 container nor repositories. Thus I could only build RPMs for CentOS 7.

Hi @bersace
we are mirroring the official yum repos and we do not want too many different repos mirrored but thanks for the offer! As pgbackrest is missing as well in the repos right now I assume that there is something going wrong.
Regards,
Dennis

Hi @guruguruguru

we are mirroring the official yum repos and we do not want too many different repos mirrored

Agree. That's why we prefer PGDG repository if possible.
Let me know if you have updates on pgrpms redmine.
Regards,

Created an Issue there: https://redmine.postgresql.org/issues/5376

Thanks Dennis !

@bersace All this has to do with the new common repo but I am not really happy with it, as the ldap2pg rpms have dependencies on the pg-version (i dont know if this is needed). So i opened another ticket: https://redmine.postgresql.org/issues/5392

@guruguruguru thanks for the feedback. In the meantime, this may be helpful to ship upstream ldap2pg rpms for CentOS7 in our repos. What do you think of this ?

Well right now I created a workaround in puppet, so ldap2pg gets only installed if PG > 10, this is not perfect but enoght for me right now as we are still in testing phase with ldap2pg

@guruguruguru ok, just let me know :-)

@guruguruguru any updates on packaging status ?

Closing. Please reopen if updates.

@bersace hey I know this issue is closed, but again there are no new ldap2pg packages in the postgres-common repo.
[   ] python3-ldap2pg-5.4-2.rhel7.x86_64.rpm                        2020-11-18 10:12   77K
[   ] python3-ldap2pg-5.5-1.rhel7.x86_64.rpm                        2021-04-27 14:34   82K
those two are available.

Hi @guruguruguru . Packaging of postgres-common in managed by PGDG at https://redmine.postgresql.org/projects/pgrpms

@bersace https://redmine.postgresql.org/issues/6773


edit bot: Fix UI element shows incorrect interface for outgoing webhook.

Fixes #9419

GIFs or Screenshots:

@timabbott update commit message.

Merged, after extending the commit message further to clarify why the previous approach was wrong:
    edit bot: Fix UI element shows incorrect interface for outgoing webhook.

    Dropdown element for outgoing interface type was not showing correct
    value, cause the way default value was set to dropdown was incorrect
    (it should have been setting the selected parameter on the selected
    option if it were going to be selected via the template code).

    Fixes #9419.

Providing the detail about what was wrong makes it much easier for folks to understand a change.
Thanks @YJDave!


Restrict access to only private endpoints

According to this article, it should be possible to restrict azure resource management operation only to the private endpoints. As I understand this, this should be active as soon as the private link exists. But this seems not to be the case. In my test environment I configured a private link with a private endpoint. However, I am still able to manage all resources (including create/delete) without access to this private endpoint but over the public internet.
Our goal is, to restrict access to azure resource management operations only to private connections (VPN/ExpressRoute). How can we achieve this? Are we missing a setting?

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 7af0f3b4-d535-ce3a-d79e-78cdfa016e92
Version Independent ID: 87c89fdb-38be-6176-4b5b-294ae31d882b
Content: Manage resources through private link - Azure Resource Manager
Content Source: articles/azure-resource-manager/management/create-private-link-access-commands.md
Service: azure-resource-manager
Sub-service: management
GitHub Login: @tfitzmac
Microsoft Alias: tomfitz

@SilvanBuehler
Thanks for your feedback! We will investigate and update as appropriate.

@SilvanBuehler - do you have a resource management private link? Did you associate it with the root management group? Did you try the steps to verify the private DNS zone?
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/create-private-link-access-portal#verify-private-dns-zone

@SilvanBuehler - Have you tried the steps above as mentioned by @tfitzmac ?

@tfitzmac & @MonikaReddy-MSFT
Yes, I have a resource management private link associated with the root management group and I have verified the private DNS zone. Deployments through this private link are working, but how can we restrict management access from outside this private link like the documentation suggests? I am still able to manage resources from clients/networks that are not connected to the private link.

Any update? Is the documentation wrong, or did I miss something in my configuration?

We have a new feedback system in place, so we need to close the remaining GitHub issues. I have created an issue in our internal tracking system.
#please-close


Consider adding support for github.com/mvdan/unparam

Review https://github.com/mvdan/unparam and determine whether there's any value in using unparam by default or just having it as an option.
Currently we're using https://github.com/dominikh/go-tools/tree/master/cmd/unused added in #47

Note that the two are complementary - unused doesn't do parameters, and unparam doesn't do funcs/methods/types/vars/consts.
Also worth noting that unparam, by design, can't be free from false positives. It can be pretty darn close on regular code, though.

Thanks @mvdan, I've run each tool against each other's testdata directories and I can see there are no duplicate errors.
So I see no concern running both tools right now, and I've already seen value in unparam myself.


syntax error in go-basic.obo file?

We (FlyBase) have this link on our website that is meant to point users to the latest go-basic.obo file:
purl.obolibrary.org/obo/go/go-basic.obo
This works fine using the Safari browser, but using Firefox we get this error message:
==
XML Parsing Error: syntax error
Location: http://snapshot.geneontology.org/ontology/go-basic.obo
Line Number 1, Column 1:format-version: 1.2
^
Perhaps there is an error near the top of this file which causes problems for some browsers?  Or is this just a weird Firefox bug??
Thanks,
Steven

Works with Chrome too.

This looks similar to https://github.com/geneontology/pipeline/issues/8 but this has been fixed. Note this error message is not telling you there is a syntax error in the obo, it is expecting an XML file and it does not parse as an XML file. The problem is in the web server configuration.
Can you provide a flybase website link thanks.
cc @kltm

Thanks Chris - apologies if I mis-diagnosed the problem.
The link is on this FlyBase page:
http://flybase.org/cgi-bin/get_static_page.pl?file=bulkdata7.html&title=Current Release
in the 'Ontology Terms ' section -> 'Current live files':
Actually, should the purl be:
purl.obolibrary.org/obo/go/go-basic.obo
or
purl.obolibrary.org/obo/go-basic.obo
(the latter would match the pattern I see for the owl file purl at: https://www.ebi.ac.uk/ols/ontologies/go )

looks like our mime types are still set incorrectly, reopened the pipeline ticket
In general, for any of your ontologies, the canonical PURLs can be found on http://obofoundry.org/
e.g.
http://obofoundry.org/ontology/go.html
For GO specifically, http://geneontology.org/page/download-ontology should always be up to date

There were two in the go-edit.obo file for a while,
GO:0008381 and GO:0022839, and that never created a problem.

I now see Content-Type: text/obo for this file, so seems like we can close this. But please reopen if this is continuing to be a problem.


Dev

DESCRIPTION
I implemented all needed global component
Screenshot

the dev repo is your team main. you push to main only when the while project is done

the dev repo is your team main. you push to main only when the while project is done


Cannot execute ue4 run while building docker image

Hello, I am trying to build my container using the ue4-docker image and I want to run the Editor of the Unreal project using ue4 run
My Dockerfile looks like below:
FROM adamrehn/ue4-full:custom AS builder

COPY --chown=ue4:ue4 . /tmp/project

WORKDIR /tmp/project
RUN ue4 build
RUN ue4 run

And the image build always fail at ue4 run command with the following error messages:
Info: I have already tried locally executing .uproject file and it can open the unreal editior. I would like to know why I cannot do it in the docker container.
#0 7.717 [2023.06.25-22.02.03:871][  0]LogInit: Initializing SDL.
#0 7.720 error: XDG_RUNTIME_DIR not set in the environment.
#0 7.720 [2023.06.25-22.02.03:871][  0]LogInit: Initializing SDL.
#0 7.720 [2023.06.25-22.02.03:874][  0]LogInit: Warning: Could not initialize SDL: No available video device
#0 7.720 [2023.06.25-22.02.03:874][  0]LogInit: Warning: Could not initialize SDL: No available video device
#0 7.720 [2023.06.25-22.02.03:874][  0]LogInit:  - Physical RAM available (not considering process quota): 16 GB (15958 MB, 16341272 KB,<PHONE_NUMBER>8 bytes)
#0 7.720 [2023.06.25-22.02.03:874][  0]LogInit:  - Physical RAM available (not considering process quota): 16 GB (15958 MB, 16341272 KB,<PHONE_NUMBER>8 bytes)
#0 7.720 [2023.06.25-22.02.03:874][  0]LogInit:  - VirtualMemoryAllocator pools will grow at scale 1.4
#0 7.720 [2023.06.25-22.02.03:874][  0]LogInit:  - VirtualMemoryAllocator pools will grow at scale 1.4
#0 7.720 [2023.06.25-22.02.03:874][  0]LogInit:  - MemoryRangeDecommit() will be a no-op (re-run with -vmapoolevict to change)
#0 7.734 [2023.06.25-22.02.03:874][  0]LogInit:  - MemoryRangeDecommit() will be a no-op (re-run with -vmapoolevict to change)
#0 7.734 [2023.06.25-22.02.03:887][  0]LogInit: Physics initialised using underlying interface: PhysX
#0 7.750 [2023.06.25-22.02.03:887][  0]LogInit: Physics initialised using underlying interface: PhysX
#0 7.750 [2023.06.25-22.02.03:904][  0]LogInit: Using OS detected language (en-US-POSIX).
#0 7.750 [2023.06.25-22.02.03:904][  0]LogInit: Using OS detected language (en-US-POSIX).
#0 7.750 [2023.06.25-22.02.03:904][  0]LogInit: Using OS detected locale (en-US-POSIX).
#0 7.751 [2023.06.25-22.02.03:904][  0]LogInit: Using OS detected locale (en-US-POSIX).
#0 7.751 [2023.06.25-22.02.03:905][  0]LogTextLocalizationManager: No specific localization for 'en-US-POSIX' exists, so the 'en' localization will be used.
#0 7.854 [2023.06.25-22.02.03:905][  0]LogTextLocalizationManager: No specific localization for 'en-US-POSIX' exists, so the 'en' localization will be used.
#0 7.854 [2023.06.25-22.02.04:008][  0]LogInit: Initializing SDL.
#0 7.857 error: XDG_RUNTIME_DIR not set in the environment.
#0 7.857 [2023.06.25-22.02.04:008][  0]LogInit: Initializing SDL.
#0 7.857 [2023.06.25-22.02.04:011][  0]LogInit: Warning: Could not initialize SDL: No available video device
#0 7.857 [2023.06.25-22.02.04:011][  0]LogInit: Warning: Could not initialize SDL: No available video device
#0 7.857 [2023.06.25-22.02.04:011][  0]LogInit: Warning: FLinuxSplashState::InitSplashResources() : InitSDL() failed, there will be no splash.
#0 7.857 [2023.06.25-22.02.04:011][  0]LogInit: Warning: FLinuxSplashState::InitSplashResources() : InitSDL() failed, there will be no splash.
#0 7.857 [2023.06.25-22.02.04:011][  0]LogInit: Initializing SDL.
#0 7.859 error: XDG_RUNTIME_DIR not set in the environment.
#0 7.860 [2023.06.25-22.02.04:011][  0]LogInit: Initializing SDL.
#0 7.860 [2023.06.25-22.02.04:013][  0]LogInit: Warning: Could not initialize SDL: No available video device
#0 7.860 [2023.06.25-22.02.04:013][  0]LogInit: Warning: Could not initialize SDL: No available video device
#0 7.860 [2023.06.25-22.02.04:013][  0]LogInit: Error: FLinuxApplication::CreateLinuxApplication() : InitSDL() failed, cannot create application instance.
#0 7.860 [2023.06.25-22.02.04:013][  0]LogInit: Error: FLinuxApplication::CreateLinuxApplication() : InitSDL() failed, cannot create application instance.
#0 7.860 [2023.06.25-22.02.04:013][  0]LogCore: FUnixPlatformMisc::RequestExit(bForce=true, ReturnCode=1)
#0 7.860 [2023.06.25-22.02.04:013][  0]LogCore: FUnixPlatformMisc::RequestExit(bForce=true, ReturnCode=1)
#0 7.860 [2023.06.25-22.02.04:013][  0]LogCore: FUnixPlatformMisc::RequestExit(1)
#0 7.955 Using user-specified engine root: /home/ue4/UnrealEngine
#0 7.957 Traceback (most recent call last):
#0 7.957   File "/usr/local/bin/ue4", line 8, in <module>
#0 7.957     sys.exit(main())
#0 7.957   File "/usr/local/lib/python3.6/dist-packages/ue4cli/cli.py", line 222, in main
#0 7.957     SUPPORTED_COMMANDS[command]['action'](manager, args)
#0 7.957   File "/usr/local/lib/python3.6/dist-packages/ue4cli/cli.py", line 63, in <lambda>
#0 7.957     list([arg for arg in args if arg != '--debug'])
#0 7.957   File "/usr/local/lib/python3.6/dist-packages/ue4cli/UnrealManagerBase.py", line 377, in runEditor
#0 7.957     Utility.run([self.getEditorBinary(True), projectFile] + extraFlags + ['-stdout', '-FullStdOutLogOutput'], raiseOnError=True)
#0 7.957   File "/usr/local/lib/python3.6/dist-packages/ue4cli/Utility.py", line 145, in run
#0 7.957     raise Exception('child process ' + str(command) + ' failed with exit code ' + str(returncode))
#0 7.957 Exception: child process ['/home/ue4/UnrealEngine/Engine/Binaries/Linux/UE4Editor', '/tmp/project/syndab_sim.uproject', '-stdout', '-FullStdOutLogOutput'] failed with exit code 1
------
Dockerfile:7
--------------------
   5 |     WORKDIR /tmp/project
   6 |     RUN ue4 build
   7 | >>> RUN ue4 run
   8 |
   9 |     FROM adamrehn/ue4-runtime:latest
--------------------
ERROR: failed to solve: process "/bin/sh -c ue4 run" did not complete successfully: exit code: 1

Could someone help please? It is a rather urgent problem. Thanks a lot for your help in advance!

The Docker container you're running in has no video device for SDL to use, per the warnings and errors after "Initializing SDL".
I don't think you can provide a video device to a container build process, they're generally not interactive processes, and are ideally idempotent. (Actually, you probably can under specific circumstances, but even then, you won't see the output.
The normal approach would be to build the container image up to ue4 build and then run an instance of the container and ue4 run in that, but I guess it depends what you're trying to do.
If you can script the actions you wanted to use with the editor, and they don't need a GPU, you might be able to use the null video device and that will work inside a container, I think.

If it's the same error, then it's the same problem; there's no display output available inside the container.
See https://unrealcontainers.com/docs/use-cases/linux-sandboxed-editor which is roughly what you're trying to do, as far as I can tell. That covers the requirements you'll need to meet, including how you build the container, so you might need to go back and change how you did that if it's not suitable.

Closing this issue, since running interactive processes during the container build process is not supported, and the relevant documentation has been provided for running the Editor interactively once the container image has already been built.


Issue with calling LocalStrategy using Connect without Express

I'm struggling to find an example of using passport with Meteor. Connect is used by Meteor, so in theory it should work. See the implementation below. It seems like passport runs.  However the "LocalStrategy" function is not being called by the request.
@jaredhanson  What's missing here?
const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;

passport.use(new LocalStrategy(
  function(username, password, done) {
    // THIS FUNCTION IS NOT BEING CALLED BY THE CONNECT HANDLER
    console.log('hello world')
    return done('error', null)
  }
));

WebApp.connectHandlers.use(passport.initialize());

WebApp.connectHandlers.use('/passportTest', function (req, res, next) {
  passport.authenticate('local', function(err, user) {
    console.log('user', user);
    console.log('err', err);

    if (err){
      console.log('error');
      console.log('no user');
      res.end('NOT Authenticated!');

    } else if ( user ){
      res.end('user' + user );
      console.log('user', user);
    } else {
      res.end('NO USER NOR ERROR!');
    }
    return
  })(req, res);
});

Bumping this up even though it's a little old! I'm looking to do this very thing


Get rid of warning in the GitHub action

What happened:

Seen following warning in the GH action for any PR run, need to check and fix the code for the GH workflow.

What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

pvsadm version (use pvsadm version):
Environment - On-Prem or IBM PowerVS:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Others:

/assign


refactor gocd & healthcheck

refactor gocd & healthcheck modules to reflect better OO golang patterns
no functionality change
https://nathany.com/good/

@frank0631 Done reviewing, a few minor things but otherwise looks good, let me know when you've updated and I'll merge, thanks!


Receiving Segmentation fault when running 'busylight on'

Fatal Python error: Segmentation fault

Current thread 0x00007fb45f239000 (most recent call first):
  File "/home/mrrobot/.local/lib/python3.10/site-packages/busylight/lights/hidlight.py", line 37 in available_lights
  File "/home/mrrobot/.local/lib/python3.10/site-packages/busylight/lights/light.py", line 155 in all_lights
  File "/home/mrrobot/.local/lib/python3.10/site-packages/busylight/lights/light.py", line 152 in all_lights
  File "/home/mrrobot/.local/lib/python3.10/site-packages/busylight/manager.py", line 103 in lights
  File "/home/mrrobot/.local/lib/python3.10/site-packages/busylight/manager.py", line 125 in selected_lights
  File "/home/mrrobot/.local/lib/python3.10/site-packages/busylight/manager.py", line 196 in on
  File "/home/mrrobot/.local/lib/python3.10/site-packages/busylight/__main__.py", line 151 in turn_lights_on
  File "/home/mrrobot/.local/lib/python3.10/site-packages/typer/main.py", line 683 in wrapper
  File "/usr/lib/python3/dist-packages/click/core.py", line 754 in invoke
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395 in invoke
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659 in invoke
  File "/home/mrrobot/.local/lib/python3.10/site-packages/typer/core.py", line 216 in _main
  File "/home/mrrobot/.local/lib/python3.10/site-packages/typer/core.py", line 778 in main
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128 in __call__
  File "/home/mrrobot/.local/lib/python3.10/site-packages/typer/main.py", line 311 in __call__
  File "/home/mrrobot/.local/bin/busylight", line 9 in <module>

Extension modules: hid (total: 1)
Segmentation fault (core dumped)

Could you give me a little more information about the host the SEGFAULT is occurring on?  Some idea of which light, OS and CPU architecture would be helpful.
I'm curious what the result of this small python program is on your host in the environment that busylight is installed in:
import hid

for device in hid.enumerate():
    print(device)

This is the code that is SEGFAULT at line 37  in busylight and is part of the hidapi package, which is a dependency.
There is a bug which might be applicable to your situation, but it's a guess without more context.

Hi, sure, Thanks,
Linux Mint 21.1 Vera
Linux Vampiro 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Was previously working.
python3
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import hid
for device in hid.enumerate():
...     print(device)
...
{'path': b'3-3.5:1.0', 'vendor_id': 16700, 'product_id': 45166, 'serial_number': '', 'release_number': 257, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 0}
{'path': b'3-3.3.5:1.0', 'vendor_id': 16700, 'product_id': 45167, 'serial_number': '', 'release_number': 257, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 0}
{'path': b'3-<IP_ADDRESS>.1:1.0', 'vendor_id': 1133, 'product_id': 50475, 'serial_number': '', 'release_number': 9233, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 0}
{'path': b'3-<IP_ADDRESS>.1:1.1', 'vendor_id': 1133, 'product_id': 50475, 'serial_number': '', 'release_number': 9233, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 1}
{'path': b'3-<IP_ADDRESS>.1:1.2', 'vendor_id': 1133, 'product_id': 50475, 'serial_number': '', 'release_number': 9233, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 2}
{'path': b'3-3.3.1:1.0', 'vendor_id': 11277, 'product_id': 12, 'serial_number': '', 'release_number': 256, 'manufacturer_string': '', 'product_string': 'Blynclight Plus', 'usage_page': 0, 'usage': 0, 'interface_number': 0}
{'path': b'3-3.2:1.0', 'vendor_id': 1133, 'product_id': 49174, 'serial_number': '', 'release_number': 832, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 0}
{'path': b'3-3.1.4:1.3', 'vendor_id': 1133, 'product_id': 2767, 'serial_number': '', 'release_number': 3589, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 3}
{'path': b'3-3.1.3:1.3', 'vendor_id': 3468, 'product_id': 20, 'serial_number': '', 'release_number': 256, 'manufacturer_string': '', 'product_string': '', 'usage_page': 0, 'usage': 0, 'interface_number': 3}
{'path': b'3-2:1.0', 'vendor_id': 4176, 'product_id': 1031, 'serial_number': '', 'release_number': 1316, 'manufacturer_string': 'Yubico', 'product_string': 'YubiKey OTP+FIDO+CCID', 'usage_page': 0, 'usage': 0, 'interface_number': 0}
{'path': b'3-2:1.1', 'vendor_id': 4176, 'product_id': 1031, 'serial_number': '', 'release_number': 1316, 'manufacturer_string': 'Yubico', 'product_string': 'YubiKey OTP+FIDO+CCID', 'usage_page': 0, 'usage': 0, 'interface_number': 1}

Weird, I totally expected that to SEGFAULT and would definitively point towards hidapi as the culprit here.
So when you said, "previously working" could you fill in some context? Did hardware/software change or did it just stop working all of a sudden?  Could you elaborate more about how you installed busylight and also the version that is crashing?
Also could you run the crashing command with the -D flag and post the output?
$ busylight -D on

If a core file is generated, that could potentially give us more information about what's going wrong as well. If you have gdb installed on your machine, you could use that to inspect the core file. A stack trace is what we're after, something like:
$ gdb `path/to/python3` path/to/corefile
(gdb) bt

To be honest, it's been a while since I've had to do this sort of debugging on Linux so all of that might not be strictly correct but the vague shape of how to get a back trace from the core file.
I know that's a lot to ask for but I haven't seen this kind of failure before and I haven't been able to replicate it yet on the only Linux box I have handy (RaspPi).

So I'm considering that this might be an asyncio problem, does the following short python snippet crash?
from busylight.lights import Blynclight

light = Blynclight.first_light()
light.on((0,255,0)) # turn on green

...and the output from the snippet:
python3
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from busylight.lights import Blynclight
>>>
>>> light = Blynclight.first_light()
Segmentation fault (core dumped)

(can't seem to find a dump file when running busylight -D on from $HOME, searched in .local/bin but nothing in there either.)

Well, that is interesting. There is no use of asyncio in that batch of code, so it's less likely that the problem is not asyncio tickling an edge case in hidapi.  Now I'm starting to think about how busylight is installed and if there is a mismatched dependency somewhere. I see that the busylight command-line script is installed in $HOME/.local/bin/busylight while click and typer are being imported from /usr/lib/python3/dist-packages, and the busylight package is imported from $HOME/.local/lib/python3.10/site-packages.  That might be okay, but it might not be, it's hard to tell without rummaging around in the installation.
As an experiment, could you try this?
$ cd /tmp
$ python3 -m venv venv
$ source venv/bin/activate
$ python3 -m pip install busylight
$ which busylight # should say something like /tmp/venv/bin/busylight
$ busylight -D on
$ deactivate # to turn off this virtual environment
$ rm /tmp/venv # to get rid of the virtual environment when you are done

I'm hoping that a fresh install of all the requirements into a virtual environment will allow busylight to execute without a SEGFAULT.

hmmh, can't seem to get the installation to run in the venv:
mrrobot@Vampiro:/tmp$ python3 -m venv venv
mrrobot@Vampiro:/tmp$ source venv/bin/activate
(venv) mrrobot@Vampiro:/tmp$ python3 -m pip install busylight
ERROR: Could not find a version that satisfies the requirement busylight (from versions: none)
ERROR: No matching distribution found for busylight

Interesting.. what version of python did you use to create the virtual environment?
$ python3 --version
$ which python3

python3 --version
Python 3.10.6
mrrobot@Vampiro:/tmp$ which python3
/usr/bin/python3

Well this is embarrassing, let's try:
$ cd /tmp
$ python3 -m venv venv
$ source venv/bin/activate
$ python3 -m pip install busylight-for-humans
$ which busylight
$ busylight on

I rarely install from PyPI and forgot that the proper name for busylight is busy light-for-humans.

Well that went further till the last command:
mrrobot@Vampiro:/tmp$ python3 --version
Python 3.10.6
mrrobot@Vampiro:/tmp$ which python3
/usr/bin/python3
mrrobot@Vampiro:/tmp$ python3 -m venv venv
mrrobot@Vampiro:/tmp$ source venv/bin/activate
(venv) mrrobot@Vampiro:/tmp$ python3 -m pip install busylight-for-humans
Collecting busylight-for-humans
  Using cached busylight_for_humans-0.25.3-py3-none-any.whl (54 kB)
Collecting pyserial<4.0,>=3.5
  Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting webcolors<2.0.0,>=1.11.1
  Using cached webcolors-1.12-py3-none-any.whl (9.9 kB)
Collecting loguru<0.7.0,>=0.6.0
  Using cached loguru-0.6.0-py3-none-any.whl (58 kB)
Collecting bitvector-for-humans<0.15.0,>=0.14.0
  Using cached bitvector_for_humans-0.14.1-py3-none-any.whl (10 kB)
Collecting typer<0.8.0,>=0.7.0
  Using cached typer-0.7.0-py3-none-any.whl (38 kB)
Collecting hidapi<0.14.0,>=0.13.1
  Using cached hidapi-0.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (906 kB)
Requirement already satisfied: setuptools>=19.0 in ./venv/lib/python3.10/site-packages (from hidapi<0.14.0,>=0.13.1->busylight-for-humans) (59.6.0)
Collecting click<9.0.0,>=7.1.1
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 KB 929.2 kB/s eta 0:00:00
Installing collected packages: pyserial, webcolors, loguru, hidapi, click, bitvector-for-humans, typer, busylight-for-humans
Successfully installed bitvector-for-humans-0.14.1 busylight-for-humans-0.25.3 click-8.1.3 hidapi-0.13.1 loguru-0.6.0 pyserial-3.5 typer-0.7.0 webcolors-1.12
(venv) mrrobot@Vampiro:/tmp$ which busylight
/tmp/venv/bin/busylight
(venv) mrrobot@Vampiro:/tmp$ busylight on
Segmentation fault (core dumped)

Tried this way with -D
busylight -D on
2023-02-22 11:36:43.433 | INFO     | busylight.__main__:precommand_callback:132 - version 0.25.3
2023-02-22 11:36:43.433 | INFO     | busylight.__main__:precommand_callback:133 - timeout=None
2023-02-22 11:36:43.433 | INFO     | busylight.__main__:precommand_callback:134 -     dim=1.0
2023-02-22 11:36:43.433 | INFO     | busylight.__main__:precommand_callback:135 -  lights=[0]
2023-02-22 11:36:43.433 | INFO     | busylight.__main__:precommand_callback:136 -     cmd='on'
2023-02-22 11:36:43.433 | INFO     | busylight.__main__:turn_lights_on:149 - activating lights
Segmentation fault (core dumped)

Thanks for the install output! I went through the versions of the installed dependencies and they all track with what I think should be installed.
Did you set up/modify the udev rules for your Linux installation?  If so, can you share the contents of your rules?

NP!
I had run through the udev step earlier
# Generated by `busylight udev-rules` https://github.com/JnyJny/busylight
#
# Rules for Agile Innovative Family of Devices: 1
# 1 Agile Innovative BlinkStick
KERNEL=="hidraw*", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="41e5", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="41e5", MODE="0666"
# Rules for Embrava Family of Devices: 3
# 1 Embrava Blynclight
KERNEL=="hidraw*", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="0001", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="0001", MODE="0666"
# 2 Embrava Blynclight
KERNEL=="hidraw*", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="000c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="000c", MODE="0666"
# 3 Embrava Blynclight
KERNEL=="hidraw*", ATTRS{idVendor}=="0e53", ATTRS{idProduct}=="2516", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e53", ATTRS{idProduct}=="2516", MODE="0666"
# Rules for Embrava Family of Devices: 2
# 1 Embrava Blynclight Mini
KERNEL=="hidraw*", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="000a", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="000a", MODE="0666"
# 2 Embrava Blynclight Mini
KERNEL=="hidraw*", ATTRS{idVendor}=="0e53", ATTRS{idProduct}=="2517", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e53", ATTRS{idProduct}=="2517", MODE="0666"
# Rules for Embrava Family of Devices: 1
# 1 Embrava Blynclight Plus
KERNEL=="hidraw*", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="0010", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2c0d", ATTRS{idProduct}=="0010", MODE="0666"
# Rules for Plantronics Family of Devices: 1
# 1 Plantronics Status Indicator
KERNEL=="hidraw*", ATTRS{idVendor}=="047f", ATTRS{idProduct}=="d005", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="047f", ATTRS{idProduct}=="d005", MODE="0666"
# Rules for Kuando Family of Devices: 3
# 1 Kuando Busylight Alpha
KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f848", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f848", MODE="0666"
# 2 Kuando Busylight Alpha
KERNEL=="hidraw*", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bca", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bca", MODE="0666"
# 3 Kuando Busylight Alpha
KERNEL=="hidraw*", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bce", MODE="0666"
# Rules for Kuando Family of Devices: 2
# 1 Kuando Busylight Omega
KERNEL=="hidraw*", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bcd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bcd", MODE="0666"
# 2 Kuando Busylight Omega
KERNEL=="hidraw*", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bcf", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bcf", MODE="0666"
# Rules for Luxafor Family of Devices: 1
# 1 Luxafor Flag
KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
# Rules for Luxafor Family of Devices: 1
# 1 Luxafor BT
KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
# Rules for Luxafor Family of Devices: 1
# 1 Luxafor Mute
KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
# Rules for Luxafor Family of Devices: 1
# 1 Luxafor Orb
KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372", MODE="0666"
# Rules for MuteMe Family of Devices: 2
# 1 MuteMe MuteMe Original
KERNEL=="hidraw*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="27db", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="27db", MODE="0666"
# 2 MuteMe MuteMe Original
KERNEL=="hidraw*", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42da", MODE="0666"
# Rules for MuteMe Family of Devices: 1
# 1 MuteMe MuteMe Mini
KERNEL=="hidraw*", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42db", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="42db", MODE="0666"
# Rules for ThingM Family of Devices: 1
# 1 ThingM Blink(1)
KERNEL=="hidraw*", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0666"

dmesg.txt

I don't seem to have a 'messages' in /var/log

/var/log/messages is one location where syslog messages are stored, no worries.
Looking at grep usb dmesg.txt it appears that you have a Dell notebook dock acting as a USB hub with many devices attached. There are several errors complaining about being unable to enumerate USB devices (where the code is crashing) and errors associated with the Blue Yeti Nano attached to the dock.
My thoughts are leading me towards a hardware problem (bad hub, bad device or bad cable). I'd unplug everything and plug the Blynclight in directly to a USB port (if possible) and see if that causes a crash.

Hi JnyJny,
Thanks for the feedback!, I'll try that and let you know.

Hi JnyJny,
Many thanks for the excellent troubleshooting and busylight!  Turned out to be the docking station/hub issue after receiving several updates.  Plugging directly in has resolved.
Best,
-L

That is great news! I was running out of ideas TBH :) Sorry you are having trouble with your docking station and I hope you get it sorted out.


Event timelapse

Hi, thanks for this great integration. Could it be possible to add a service to trigger the recordings instead of time based recording? The result will be a timelapse video of all the events during a certain period. This way I can view a short video of all the events that happend in my garden during the day.
Thanks in advance,
Sander

There are two service calls you can use to pause and resume recording. So you can create your own automations to control this.


Increase dev reward to 50%

This increase to 50% seems like it's more like a 25% because is taken from the initial half amount.

Make it 50% burn, 50% dev?

seems like prop passed 50% should go to dev and the rest fairburned

Closing this because we want to have all gov params in a smart contract.

Update to burn 50% instead of going to stakers.


[QUESTION] 单测中获取容器对象

Command:uname -a && php -v && composer info | grep hyperf && php --ri swoole
PHP 7.4.27 (cli) (built: Dec 16 2021 21:36:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
hyperf/amqp                          v2.2.14   A amqplib for hyperf.
hyperf/cache                         v2.2.0    A cache component for hyperf.
hyperf/command                       v2.2.0    Command for hyperf
hyperf/config                        v2.2.0    An independent component that provides configuration container.
hyperf/config-center                 v2.2.5    The abstraction component of config center
hyperf/config-nacos                  v2.2.4    A nacos adapter for config center component.
hyperf/consul                        v2.2.0    A Consul Client for Hyperf.
hyperf/contract                      v2.2.0    The contracts of Hyperf.
hyperf/database                      v2.2.5    A flexible database library.
hyperf/db-connection                 v2.2.0    A hyperf db connection handler for hyperf/database.
hyperf/devtool                       v2.2.5    A Devtool for Hyperf.
hyperf/di                            v2.2.4    A DI for Hyperf.
hyperf/dispatcher                    v2.2.0    A HTTP Server for Hyperf.
hyperf/engine                        v1.1.6
hyperf/event                         v2.2.0    an event manager that implements PSR-14.
hyperf/exception-handler             v2.2.0    Exception handler for hyperf
hyperf/framework                     v2.2.0    A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
hyperf/guzzle                        v2.2.0    Swoole coroutine handler for guzzle
hyperf/http-message                  v2.2.0    microservice framework base on swoole
hyperf/http-server                   v2.2.4    A HTTP Server for Hyperf.
hyperf/ide-helper                    v2.2.5    IDE help files for Hyperf.
hyperf/logger                        v2.2.0    A logger component for hyperf.
hyperf/memory                        v2.2.0    An independent component that use to operate and manage memory.
hyperf/model-listener                v2.2.0    A model listener for Hyperf.
hyperf/nacos                         v2.2.4    Nacos SDK
hyperf/paginator                     v2.2.0    A paginator component for hyperf.
hyperf/pool                          v2.2.0    An independent universal connection pool component.
hyperf/process                       v2.2.3    A process component for hyperf.
hyperf/redis                         v2.2.0    A redis component for hyperf.
hyperf/server                        v2.2.0    A base server library for Hyperf.
hyperf/service-governance            v2.2.4    A service governance component for Hyperf.
hyperf/service-governance-nacos      v2.2.4    A nacos adapter for service governance.
hyperf/snowflake                     v2.2.0    A snowflake library
hyperf/testing                       v2.2.24   Testing for hyperf
hyperf/tracer                        v2.2.17   A open tracing system implemented for Hyperf or other coroutine framework
hyperf/translation                   v2.2.5    An independent translation component, forked by illuminate/translation.
hyperf/utils                         v2.2.5    A tools package that could help developer solved the problem quickly.
hyperf/validation                    v2.2.7    hyperf validation
hyperf/watcher                       v<IP_ADDRESS>  Hot reload watcher for Hyperf
jingwentian/hyperf-modelfilter       2.0.0     An Eloquent way to filter Hyperf Models
kuke/nacos_server_discovery          v1.1.0    hyperf server discovery
kukewang/hyperf_xxl_job              v1.1.1    php hyperf xxljob

swoole

Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 4.8.3
Built => Feb 15 2022 07:27:52
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.1.1l  24 Aug 2021
dtls => enabled
pcre => enabled
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

在执行单测的时候，需要引入雪花id
use Hyperf\Utils\ApplicationContext;

func : ApplicationContext::getContainer()->get(IdGeneratorInterface::class)->generate();

执行单测，报无法实例化类
1) HyperfTest\Cases\Index\PayTest::testPaysuccess
Hyperf\Di\Exception\InvalidDefinitionException: Entry "Hyperf\Contract\IdGeneratorInterface" cannot be resolved: the class is not instantiable
Full definition:
Object[Hyperf\Contract\IdGeneratorInterface]

/www/vendor/hyperf/di/src/Exception/InvalidDefinitionException.php:20
/www/vendor/hyperf/di/src/Resolver/ObjectResolver.php:89
/www/vendor/hyperf/di/src/Resolver/ObjectResolver.php:66
/www/vendor/hyperf/di/src/Resolver/ResolverDispatcher.php:62
/www/vendor/hyperf/di/src/Resolver/DepthGuard.php:73
/www/vendor/hyperf/di/src/Resolver/ResolverDispatcher.php:63
/www/vendor/hyperf/di/src/Container.php:184
/www/vendor/hyperf/di/src/Container.php:82
/www/vendor/hyperf/di/src/Container.php:117

请问如何在单测中使用

composer update -oW

composer update -oW

执行之后还是同样的问题
uname -a && php -v && composer info | grep hyperf && php --ri swoole
Linux aeaa775e20dd 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 Linux
PHP 7.4.27 (cli) (built: Dec 16 2021 21:36:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
hyperf/amqp                        v2.2.22   A amqplib for hyperf.
hyperf/cache                       v2.2.15   A cache component for hyperf.
hyperf/command                     v2.2.9    Command for hyperf
hyperf/config                      v2.2.0    An independent component that provides configuration container.
hyperf/config-center               v2.2.18   The abstraction component of config center
hyperf/config-nacos                v2.2.4    A nacos adapter for config center component.
hyperf/consul                      v2.2.26   A Consul Client for Hyperf.
hyperf/context                     v2.2.0    A coroutine context library.
hyperf/contract                    v2.2.8    The contracts of Hyperf.
hyperf/database                    v2.2.26   A flexible database library.
hyperf/db-connection               v2.2.22   A hyperf db connection handler for hyperf/database.
hyperf/devtool                     v2.2.21   A Devtool for Hyperf.
hyperf/di                          v2.2.25   A DI for Hyperf.
hyperf/dispatcher                  v2.2.0    A HTTP Server for Hyperf.
hyperf/engine                      v1.2.1
hyperf/event                       v2.2.0    an event manager that implements PSR-14.
hyperf/exception-handler           v2.2.0    Exception handler for hyperf
hyperf/framework                   v2.2.14   A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
hyperf/guzzle                      v2.2.0    Swoole coroutine handler for guzzle
hyperf/http-message                v2.2.19   microservice framework base on swoole
hyperf/http-server                 v2.2.26   A HTTP Server for Hyperf.
hyperf/ide-helper                  v2.2.5    IDE help files for Hyperf.
hyperf/logger                      v2.2.14   A logger component for hyperf.
hyperf/macroable                   v2.2.13   Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                      v2.2.0    An independent component that use to operate and manage memory.
hyperf/model-listener              v2.2.14   A model listener for Hyperf.
hyperf/nacos                       v2.2.17   Nacos SDK
hyperf/paginator                   v2.2.0    A paginator component for hyperf.
hyperf/pool                        v2.2.0    An independent universal connection pool component.
hyperf/process                     v2.2.20   A process component for hyperf.
hyperf/redis                       v2.2.26   A redis component for hyperf.
hyperf/server                      v2.2.21   A base server library for Hyperf.
hyperf/service-governance          v2.2.18   A service governance component for Hyperf.
hyperf/service-governance-nacos    v2.2.25   A nacos adapter for service governance.
hyperf/snowflake                   v2.2.21   A snowflake library
hyperf/testing                     v2.2.24   Testing for hyperf
hyperf/tracer                      v2.2.23   A open tracing system implemented for Hyperf or other coroutine framework
hyperf/translation                 v2.2.13   An independent translation component, forked by illuminate/translation.
hyperf/utils                       v2.2.26   A tools package that could help developer solved the problem quickly.
hyperf/validation                  v2.2.13   hyperf validation
hyperf/watcher                     v<IP_ADDRESS>  Hot reload watcher for Hyperf
jingwentian/hyperf-modelfilter     2.0.0     An Eloquent way to filter Hyperf Models
kuke/nacos_server_discovery        v1.1.0    hyperf server discovery
kukewang/hyperf_xxl_job            v1.1.1    php hyperf xxljob

swoole

Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 4.8.3
Built => Feb 15 2022 07:27:52
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.1.1l  24 Aug 2021
dtls => enabled
pcre => enabled
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

拿这个 Hyperf\Snowflake\IdGeneratorInterface::class


[RPC] Catch potential race-condition exception on termination

Observed a race condition on Hexagon where the rpc_key got removed from the scheduler map and thus wasn't in the remove loop anymore and throwing a KeyError. A simple try-except on the first try makes sure it is still there before removal (if we still have to).

@Lunderberg @areusch

thanks @naut-thomas, can you confirm whether __del__ is executing when the stacktrace is raised?


Migrate prettier to biome

Migrates prettier to biome formatter.
Notes:

Biome formatter doesn't support sorting tailwind classes. Biome linter is responsible for that (experimental feature). I added related rule to the linter useSortedClasses, but Biome linter is turned off until we migrate from eslint.
Biome import organizing is turned off until we move away from eslint.

FYI: it might be required to tweak your vsc (workspace) settings:
"[typescript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },


Improve examples_test.go

Examples_Test needs to be updated with the following client version for v1 Status testing:
For theses to add status succeeded check:

https://github.com/tektoncd/pipeline/blob/main/test/wait.go#L91
https://github.com/tektoncd/pipeline/blob/main/test/wait.go#L167

Thanks @XinruZhang for the catch, confirmation and findings on this.

/assign


chore: upgrade dependencies

Description

Type of Change

[ ] ✨ feat -- New feature (non-breaking change which adds functionality)
[ ] 🛠 fix -- Bug fix (non-breaking change which fixes an issue)
[ ] ❌ ! -- Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 refactor -- Code refactor
[ ] ✅ ci -- Build configuration change
[ ] 📝 docs -- Documentation
[ ] 🗑 chore -- Chore

@OutdatedGuy - I updated all dependencies all at once here 👌


Watermarks

Laravel Version: 5.4
Voyager Version: 0.11.12
PHP Version: 7
Database Driver & Version: mysql

Description:
Hi! Is there any fynctionality to set watermarks on image?

As far as I know none..
You can create some script that will generate the images+watermark, or you can do it with .htaccess
I prefer the second one, because it keeps the original image, and if you need to replace the watermark or images, you don't need to generate them again.
What this does is before it shows the image from the folder, apache will run the script that add the watermark, and show the image with watermark

I think you can use Intervention Image library, its very easy to integrate with laravel,
Take a look to this link:
http://image.intervention.io/getting_started/installation

Intervention is already included as a dependency of Voyager. It's how we resize the images on upload.  You're free to add your own image modification configuration in the bread config for that field. All intervention values are(or at least should be) supported.  Please see our docs for instructions on where to put the config, and intervention docs for what to use.
I haven't looked into whether intervention actually supports this, but that's an intervention issue, not a Voyager one, so I'm going to close this.


On npm install - Unable to resolve the dependency tree

Can you help with this?
➜  csslayout git:(master) npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: csslayout@undefined
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/next
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@1milligram/design
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

@Fettabachi It was fixed. Please rebase the code.


CSS fixes and updates

A few styling tweaks to fix:

Issue with final row items displaying in a larger width
Issue with image sometimes not displaying full height (taking up the full space)
Made it responsive

👍 Thanks!


HIVE-24701: Remove String Manipulation from Date Parsing TimestampTZUtil

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Testing / split-14 / PostProcess / testVectorUDFUnixTimeStamp – org.apache.hadoop.hive.ql.exec.vector.expressions.TestVectorDateExpressions
2s
Stacktrace
java.lang.AssertionError: expected:<97848024390000> but was:<-97972298294822>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)

This issue is fixed in #1938 so should pass after #1938 is merged

Going to do it all as one: PR #1938


Generated project

squash commits to prevent unecessary comments

I think this squashing during merge will be more convenient for reviews sake


Fixed indentation of dec_cursor() function of src/misc2.c

2016年12月8日木曜日 0時22分59秒 UTC+9 kashew_nuts:

You can view, comment on, or merge this pull request online at:
https://github.com/vim/vim/pull/1313
Commit Summary
fix indent
File Changes
M
src/misc2.c
(2)

Patch Links:
https://github.com/vim/vim/pull/1313.patch
https://github.com/vim/vim/pull/1313.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

My real name is Kashun Yoshida!

My real name is Kashun Yoshida!

So update your GitHub profile to show that. :)

Hi James!
2016-12-8(Thu) 1:01:15 UTC+9 James McCoy:

My real name is Kashun Yoshida!
So update your GitHub profile to show that. :)

It maybe true.
However, I have not registered my real name on GitHub, but Bram has recognized that Github's h-east is Hirohito Higashi.
Probably, I think that he judge by e-mail signature.
--
Best regards,
Hirohito Higashi (a.k.a. h_east)

I'll include it, thanks.  I won't send out a separate patch though, will tag along with the next change to this file.


Add st7789_get_id API

Both reading and writing is work only using permanently grounded Chip Select

@aleblsv Ready for review


Refactor Motions.Rigid

Consider removing Motions.RigidPoint and Motions.RigidLine and use only Motions.Rigid.

The stiffness of the two are different.

True!
it might be worth implementing the logic to assign the "rigid value" and remove what it is not necessary.
I have just notice that the user might mistakenly assign a RigidLineValue to a PointSupport and the component does not raise any error.


Refactors libvirt_setup.py

Superseeds  #364
Breaks down the patch into multiple commits.

Why close the other one? IMHO there where good points in the comments that still apply in this commit.

Breaking one commit into multiple commits {c,sh}ould have been done in the original PR. Please take the comments from there into account.

Agree with @jdsn, please see http://blog.adamspiers.org/2015/03/24/why-and-how-to-correctly-amend-github-pull-requests/

@aspiers @jdsn What do you suggest? Should I move this back to the original PR or continue here? I will ofcourse address all the comments in this and previous PR. I think I did address most of the comments and suggestions in the previous PR.

It doesn't make much difference now - I guess just continue here.  I think we were both mainly mentioning it for the future.

Yes, I will follow this in future. Thanks :).

Seems to pass the jenkins build https://ci.suse.de/view/Cloud/view/Builds/job/openstack-mkcloud/4224/console

please rebase, this PR contains commits from Bernhard that have already been merged

@jdsn I have removed the merged commits.

@toabctl https://github.com/SUSE-Cloud/automation/commit/c4768bad3e0cc0ca87702bd171026ce8aecdbc23

:+1: PR test running: https://ci.suse.de/view/Cloud/view/Builds/job/openstack-mkcloud/4293

next test run: https://ci.suse.de/view/Cloud/view/Builds/job/openstack-mkcloud/4295

:+1:  (though there should not be inactive networks, as the cleanup step should remove them first)

Cleanup function does not do this yet, I will update it too. Thanks for pointing it out.

@bmwiedemann Thanks for catching it. Removed the commit.

Test passes: https://ci.suse.de/view/Cloud/view/Builds/job/openstack-mkcloud/4313/

:+1:

:+1:


Problems with push

Hello,
I am trying to implement the code snippet found in examples/push.js
I have inserted the code pretty much verbatim - only changing the source location for nodegit, the value of repodir and the url specified for the remote to coincide with my own github repository.
Running the app, the repository is created and newfile.txt is commited however I then get the following error:
TypeError: nodegit.Remote.create(...).then is not a function...
I tried using the resolution code found in Issue 463 but the scenario is somewhat different. Checking the API documentation I see that the create method on Remote is synchronous rather than asynchronous and I'm wondering if that is the issue. I have also successfully employed the example code for cloning a GitHub repository but when I try to commit and push using the code in examples/push.js it fails with the same error.
Thanks so much for your help!
This is my code:
var nodegit = require("nodegit");
var path = require("path");
var promisify = require("promisify-node");
var fse = promisify(require("fs-extra"));
fse.ensureDir = promisify(fse.ensureDir);
var fileName = "newFile.txt";
var fileContent = "hello world";
var repoDir = "newRepo";
var repository;
var remote;
var signature = nodegit.Signature.create("Foo bar",
<EMAIL_ADDRESS>123456789, 60);
// Create a new repository in a clean directory, and add our first file
fse.remove(path.resolve(__dirname, repoDir))
.then(function() {
return fse.ensureDir(path.resolve(__dirname, repoDir));
})
.then(function() {
return nodegit.Repository.init(path.resolve(__dirname, repoDir), 0);
})
.then(function(repo) {
repository = repo;
return fse.writeFile(path.join(repository.workdir(), fileName), fileContent);
})
// Load up the repository index and make our initial commit to HEAD
.then(function() {
return repository.openIndex();
})
.then(function(index) {
index.read(1);
index.addByPath(fileName);
index.write();
return index.writeTree();
})
.then(function(oid) {
return repository.createCommit("HEAD", signature, signature,
"initial commit", oid, []);
})
// Add a new remote
.then(function() {
return nodegit.Remote.create(repository, "origin",
"git@github.com:johnvogen/push-example.git")
.then(function(remoteResult) {
remote = remoteResult;
// Create the push object for this remote
return remote.push(
  ["refs/heads/master:refs/heads/master"],
  {
    callbacks: {
      credentials: function(url, userName) {
        return nodegit.Cred.sshKeyFromAgent(userName);
      }
    }
  }
);

});
}).done(function() {
console.log("Done!");
});

Hey @johnvogen sorry for the delay. So Remote.create should be async and that I'll change. In the meantime you could just pass back the result in the promise and that will also work the same when the method is async in the future.
Ex:
// <snip>
.then(function() {
  return NodeGit.Remote.create(repository, "origin", "git@github.com:johnvogen/push-example.git");
})
.then(function(remote) {
  remote = remoteResult;

  // Create the push object for this remote
  return remote.push(
    ["refs/heads/master:refs/heads/master"],
    {
      callbacks: {
        credentials: function(url, userName) {
          return nodegit.Cred.sshKeyFromAgent(userName);
        }
      }
    }
  );
})
.done(function() {
  console.log("Done!");
});

The above with work for both async and sync Remote.create.

#990 will make Remote.create async

#990 is merged so this should be resolved now. Feel free to let me know if that's not the case and we can reopen this. Thanks!


Added functionality for the usage of Llama 3.2 using groq

Summary of Changes:
This pull request introduces functionality for integrating Llama 3.2 using the Groq API. The implementation is located in the GroqLlamaResumeScanner folder. The changes replace the previous OpenAI-related functionality with Llama-specific integration to better support the intended use case.
Details of Changes:
Llama Integration:
Added code to use Llama for processing within the GroqLlamaResumeScanner folder. This new integration utilizes the Groq API to interact with Llama's services.
Replaced OpenAI with Llama:
The original functionality that involved OpenAI has been replaced with the Llama integration, adapting the logic and API calls accordingly.

have removed the phone number for privacy concerns

This issue caters to https://github.com/Sohammhatre10/resume_scanner/issues/3 and @Shaunak-Gupta-dev Thanks for your contribution!


Update Linear Algebra

Not much of a re-write

Fixed credits
Dropped LaTeXStrings
Fixed activate
Fixed alignment
Open to suggestions.

@arnavs Ready for review.

@Nosferican See comment about the credits links, etc.

What is wrong with:
extrema(f.(range(-2.0, 2.0, length=100))
Seems more clear to me?
On Mon, Oct 22, 2018 at 3:17 PM José Bayoán Santiago Calderón (史志鼎) <
<EMAIL_ADDRESS>wrote:

@Nosferican commented on this pull request.
In rst_files/linear_algebra.rst
https://github.com/QuantEcon/lecture-source-jl/pull/161#discussion_r227157940
:

   fillalpha = 0.1, color = :blue, label = "", lw = 0)

plot!(zeros(2, 2), [ya ya; yb yb], lw = 3, color = :blue, label = [L"range of $f$" ""])
annotate!(0.04, -0.3, L"$0$", ylims = (-0.6, 3.2))
vline!([0], color = :black, label = "")
hline!([0], color = :black, label = "")
plot!(foreground_color_axis = :white, foreground_color_text = :white,

   foreground_color_border = :white)

ybar = 2.6
plot!(x, x .* 0 .+ ybar, color = :black, linestyle = :dash, legend = :none)
annotate!(0.04, 0.91 * ybar, L"$y$")

plot(p1, p2, layout = (2, 1), size = (600, 700))

:class: collapse

y_min, y_max = extrema(0.6cos.(4x) + 1.3 for x in range(-2, 2, length = 100))

extrema(itr) -> Tuple # An iterable not an AbstractArray
It looks like
extrema(f(x) for x in range(-2, 2, length = 100))
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/QuantEcon/lecture-source-jl/pull/161#discussion_r227157940,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMf-IY2Tvrd0P-aGdIAWjBk1Brsth6trks5unkQTgaJpZM4XLUtY
.

The broadcast version materializes the whole array needlessly.

OK. I guess we can keep this for now, and tell them that () will give them an uncollected list comprehension if someone asks.

Guys:  what is the goal here?  Clarity.
Comprehensions can be useful for clarity, or they can make it far more complicated than it needs to be.
julia> using BenchmarkTools

julia>  extrema(0.6cos.(4x) + 1.3 for x in range(-2, 2, length = 100))
(0.700029536547185, 1.898885395947853)

julia> @btime extrema(0.6cos.(4x) + 1.3 for x in range(-2, 2, length = 100))
  2.122 μs (0 allocations: 0 bytes)
(0.700029536547185, 1.898885395947853)

julia> f(x) = 0.6* cos(4x) + 1.3
f (generic function with 1 method)

julia> x = range(-2, 2, length=100)
-2.0:0.04040404040404041:2.0

julia> @btime extrema(f.($x))
  2.389 μs (1 allocation: 896 bytes)
(0.700029536547185, 1.898885395947853)

.... so all of that lack of clarity has given you 0.2μs in speed, and 896 bytes.
Not worth it at all.

OK, will change it back.


finish building sign In form

I'm done building the structure and styling of the sign-in form. Only the form validation logic remains. Doing that in a few. Feel free to leave your comments on this pr concerning the overall design.


CSP 'wasm-eval' is not support in webview?

I was trying to add an unity game in my extension using webview api.
But the console reported the error: webassembly.instantiate() wasm code generation disallowed by embedder, which resulted by CSP.
I tried to add  'wasm-eval' in script-src but it didn't work. However, it worked by using 'unsafe-eval'.
As the StackOverflow description, I think the 'wasm-eval' is better.
My vscode version is: 1.49.3  Chrome: 83.0.4103.122

This does not sounds like an issue with these samples so please file this against VS Code itself
(but also be sure to test in the latest VS Code version)

This does not sounds like an issue with these samples so please file this against VS Code itself
(but also be sure to test in the latest VS Code version)


Awesomium Scrollbar Jumps

The awesomium scrollbar has some odd behaviour that means sometimes it gets in a state where it jumps around seemingly at random.
I'm logging this issue here just so it can be tracked, but the issue isn't in the DownmarkerWPF codebase.

That's not quite this issue.
To replicate the issue I was describing:

Mouse down over the scroll thumb.
With the mouse still down, move the cursor off the Awesomium control.
Release the mouse button.
Move the cursor back over the Awesomium control. Notice the control continues to scroll even though you've released the mouse button.

I think this issue can probably be closed as its an Awesomium bug, rather than markpad. Objections?

Nope. Lets close it.


Use external storage for large data attributes [Large Feature]

When exceeding the threshold (configurable, e.g. 100KB) for a data attribute, iWF can use others like S3 for storing the data attributes instead of writing into Temporal history. (only storing the keys and the S3 objectIDs)
By storing keys and S3 objectIDs in Temporal history, IWF server will load from S3 before sending to application, and write to S3 for updates. For optimization, server could also load from S3 lazily when application tried to read it.
This is possible because iWF server workflow never really read the value of the DAs -- they are transparent to iWF server.
By offloading the large data attributes to S3, it's much easier for users to deal with large datasets, and more cost effective on using Cadence/Temporal.

probably we don’t need to store s3 object id at all. The id can just be based on workflowID+attribueKey


dbo.GetAwaiter() error when Running from command line

For some reason, when something is awaited deep in the call stack when running from a command line app, simple.data is throwing an AggregationException saying that Column dbo.GetAwaiter() is not found.
I am able to await one call deep, but for some reason it won't await multiple tasks in the call stack when using the t.Wait() in a command line app main function.

lol just realized I had the wrong version referenced


Do we really use git-python for anything ?

There's a snippet of code at  tools/fontbakery-build.py (line 83) that uses git-python, if available:
        if GITPYTHON_INSTALLED:
            try:
                repo = Repo(sourcedir)
                builddir = repo.git.rev_parse('HEAD', short=True)
            except git.exc.InvalidGitRepositoryError:
                pass

but the next line, overwrites the value of builddir, nothing else uses the repo object and it seels there's no collateral effect in play here. So, this seems useless leftover code, or perhaps the abandones beginning of some new feature in the past.
Do you know where does this come from, @davelab6 ? Or can I simply delete it and move on?

A long time ago there was a table showing the git history. This seems out of scope for anything in the BRIEF.md so throw it away.


Should not show plan description on info page when there's more than one plan

We show the plan description on the info page when there's only one so that the description isn't lost if there is important information. This isn't a problem if there is more than one plan, so we don't need to show it here. It might be misleading in some cases. Here there is a plan option that uses persistent storage instead of ephemeral, but the info page makes it sound like it's only ephemeral.

@spadgett I didn't think we show the plans page when there is only 1 plan?

nvm, you are sayin on the info page... my bad


add defconfig for ltp openposix testsuite

Summary
nuttx/board/sim/posix_test: add defconfig for ltp openposix testsuite

the defconfig is based on nuttx/boards/sim/sim/configs/nsh/defconfig
make the option enabled by default that needed by open posix

Impact
Testing

this patch need to wait another fix, so this patch cannot pass CI for now.

there are some ltp testcases that has build warning, which cannot pass CI.
the https://github.com/apache/nuttx-apps/pull/2020 fix these build warning, after https://github.com/apache/nuttx-apps/pull/2020 is merged, then we can trying to merge this patch

there is a build error with "CONFIG_LIBC_PASSWD_FILE=y", and need to wait the https://github.com/apache/nuttx/pull/10473 is merged

@extinguish please add the rule to remove ltp.zip from apps/testing/ltp/Makefile:
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	testing/ltp/ltp.zip

there is a CI warning, need to wait this warning finished in: https://github.com/apache/nuttx-apps/pull/2043 merge request.


.app files as symbol source are not always recognized

Describe the bug
Whenever I use .app files as symbol sources (applies to full-debug builds of an app containing all sources aswell as runtime packages), VSCode has trouble loading my symbols for code-completion and code-lense. It complains that those symbols are missing, but ALC.exe happily compiles and Ctrl+F5 / F5 / Ctrl+Shift+B also work correctly.
Sometimes closing the folder and then reopening it resolves the issue. Other times I have to close and reopen VSCode.
To Reproduce

Drop a dependency as a precompile .app file into the package cache folder (.alpackages).
VSCode does not recognize that package after you restarted VSCode.

Versions:

AL Langauge: 2.0.43900
Business Central: N/A

Hi @hemisphera, if you could provide a clear repro that would be great. I can't reproduce this issue.
Also, please upgrade to the latest AL language version and see if the issue persists.
Thanks for reporting this issue.


fix typo

"elect" should be "select"

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

@psachin I think that "elect" might have been intentional here. But a more clear word would be "choose". I'm going to change it to "choose" and merge this in. Thanks for your feedback!

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

#sign-off

@rothja: I'm sorry - only the author of this article, @rgward, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Kinect Bridge - How do you generate a high res point cloud?

The Depth image from the sensor gives a resolution of about 512x424 yes? How are you able to get a high resolution/HD point cloud if that's the case? Does your code do any upscaling or preprocessing?

Yes, it does. The depth image is upscaled and interpolated.


add timeout for stage change (wait for next device)

Hi @nxpfrankli ,
The uuu tool navigates the device through different stages where the device has different USB PID/VID.
Currently the time-out -t seconds is only a time-out to find a compatible device at start of tool.
If one device was found, there is no time-out when this device is done and uuu expects that the device comes up with a different ID, again.
This Patches introduce -T seconds as a time-out for this situation.
It is implemented as a separate time-out, because the boot of Linux takes time.
You may use this for example with uuu -t 1 -T 30 my-script.uu to look 1 second for a compatible device and wait 30 seconds for Linux.
Additionally this merge request comes with some improvements.
Regards, Denis

ping


Adds NovaServiceProvider to Master

:tada: This PR is included in version 4.2.6 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Ability to detect client disconnection

Is your feature request related to a problem? Please describe.
In our project we are trying to use Drogon for very long requests (up to 10 minutes long). While it is possible to detect client disconnection when using async streaming responses (by checking stream->send() return value), it is impossible to detect client disconnection early using standard response. It makes it impossible to stop long running workloads and free server resources upon client disconnection.
Describe the solution you'd like
It would be nice to be able to install client disconnection callback. We could use the callback to execute workload stopping mechanism on our end.
Describe alternatives you've considered
There is no alternative I know of.

https://github.com/drogonframework/drogon/pull/2191

#2191

This PR added ability to check the connection state in case we have access to http request object.
The issue is related to scenario when there is no access to request object, during streaming, example: https://github.com/drogonframework/drogon/blob/master/examples/async_stream/main.cc#L13-L24
@fantasy-peak

    app().registerHandler(
        "/stream",
        [](const HttpRequestPtr & ptr,
           std::function<void(const HttpResponsePtr &)> &&callback) {
            std::thread([=] {
                        while (true)
                        {
                            std::lock_guard lk(mm);
                            std::cout <<"aaaaaaaaaa:" << std::boolalpha
                                      << ptr->connected() << std::endl;
                            std::this_thread::sleep_for(
                                std::chrono::seconds(2));
                        }
            }).detach();

➜  build git:(check-conn) ✗ ./examples/async_stream
20241030 01:19:13.772283 UTC 11147 INFO  Server running on <IP_ADDRESS>:8848 - main.cc:100
20241030 01:19:16.940796 UTC 11148 DEBUG [makeHeaderString] send stream with transfer-encoding chunked - HttpResponseImpl.cc:547
aaaaaaaaaa:true
aaaaaaaaaa:true
aaaaaaaaaa:true

You can still use HttpRequestPtr

@nqf even if you can check connection status the way you described, we still have no way to get disconnection information when workload is blocking. The example would be running your example with no while (true), but single blocking operation.
The solution would be ability to install disconnection callback which users would be able to define logic to stop the blocking workload.
What do you think about it?

Do you mean that drogon's worker thread is blocked?

Yes, consider the example be slightly modified:
    app().registerHandler(
        "/stream",
        [](const HttpRequestPtr & ptr,
           std::function<void(const HttpResponsePtr &)> &&callback) {
            std::thread([=] {
              my_workload->run(); // blocking for 10 minutes
            }).detach();

If we would be able to set up disconnection callback, we could run my_workload->stop() and cancel it to save resources

add a new mr

@dkalinowski may setCloseCallback can help you


Compatability with Terrafirmacraft

Hello there, great mod, yet I'm unable to make it work on TFC.
The first issue is that watery biomes are probably not marked as forge:is_water in TFC—at least not river biomes.
Could we add a way to disable the check for water biomes in the config, or could we add the TFC biomes to the biomes list?
The second issue is the lack of bait items in the TFC game. The preset bait items are not that easy to get in a vanilla playthrough of TFC. Would you consider a dummy bait item that will serve as the bread(i.e., catch them all)? Of course, I can use Crafttweaker for a simple recipe that bypasses the regular creation of the bread and custom names the output item, which is called bait, but it's not that elegant.

You can achieve those changes very easily through a datapack!


model image size conflict in Trainer unless specified as an argument

i denoising_diffusion_pytorch.py in the Trainer Class init there is an option for 'image_size' which has a default value of 128, and these arguments are not documented anywhere I could locate.
The issue then comes later inside the init method where you set:
self.image_size = diffusion_model.image_size
however, when the Dataset instance is declared is is initialized with:
self.ds = Dataset( folder, image_size, augment_horizontal_filip = augment_horizontal_filp)
So, if one has originally created a diffusion_model with an image size of 64, but does not know to set the argument on the Trainer, then a default image size of 128 will be used and cause a conflict.
I believe it can be fixed by simply declaring the Dataset with self.image_size, instead of image_size.

@pumplerod https://github.com/lucidrains/denoising-diffusion-pytorch/commit/1586d1a8a07fb7308c596d914c712215255f2b7a let me know if that works!

Thank you. I'm traveling now so it will be a while before I can test it out. But I'm looking forward to it.
-t

On Jun 17, 2022, at 13:55, Phil Wang @.***> wrote:

@pumplerod 1586d1a let me know if that works!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.


[Coinbase Pay SDK] experience always defaults to "new_tab"

Hi, I've integrated Coinbase Pay SDK/Plugin according to: https://docs.cloud.coinbase.com/pay-sdk/docs/integrating-pay
You can find minimal example here (insert your own "appId" key): https://codesandbox.io/s/cbpay-simple-vwb8jk
The library initializes but with following error:

It does not crash the widget but I guess thats the reason why experience is always opening in new tab. No popup or embedded option is considered. Also no "onSuccess", "onExit" and "onEvent" callbacks will be called.
Im wondering, could that be related to "appId" being bound to specific domain only?
Can you assist?

document.requestStorageAccess().then(
() => {
console.log("access granted");
},
() => {
console.log("access granted");
},[document.requestStorageAccess().then(   () => {     console.log("access granted");   },   () => {     console.log("access denied");   } );](www.coinbasepay.com/document.requestStorageAccess().then(   () => {     console.log("access granted");   },   () => {     console.log("access granted");   ,} );)
);

The error you are seeing means your domain is not whitelisted. You can do the embedded experience only on whitelisted domains so you won't be able to test it on codesandbox.


recipient-variable nested JSON format

Say I wanted to send nested JSON as 'recipient-variables'. How would I do that, so that, I could address it in my html as %recipient.single_nested.double_nested%. I am not being able to do it at the moment.

Hi @zzxoto,
Could you please share code examples what you were trying to do?

Closing the issue due to lack of activity.


Standalone Map Slicing Tool

Currently slicing tool implemented in form of Eclipse Kepler plugin. For Android Studio users it would be great  if it was a standalone java GUI app (basically with the same UI as the plugin).

Where I can download the kepler zip file?? For some reasons, I cannot download the plugin in eclipse.

Kepler standard or EE edition?

I believe it doesn't matter. You need to build the plugin from sources. Checkout mappwidget, import slicing tool into Eclipse and run it as an Eclipse application.

I solved it. Begin to try.

I now have a question. Class MapObject's constructor (that has parameter x, y).  When I want to use geographic coordinates in map, how do these two parameters work?
At the end I use MapObject's moveTo() method just like the snippet:
MapObject poi = new MapObject(objId, poiIcon, new Point(0, 0),
PivotFactory.createPivotPoint(poiIcon, PivotFactory.PivotPosition.PIVOT_CENTER), true, false));
sceneryLayer.addMapObject(poi);
Location location = new Location("");
location.setLongitude(point.getLongitude());
location.setLatitude(point.getLatitude());
poi.moveTo(location);

I read the "how-to-use" .
I have the a doubt: Does one layer instance can just contain only one MapObject?

Can I hide the logo on the right bottom?

Basically you can create MapObject with some initial zero coordinates (in pixels) and then use moveTo method to move it around using geographical coordinates. But please note, that map has to be calibrated for this to work.

I believe yes, you can use only one MapObject in layer.
On Tue, Mar 10, 2015 at 8:58 AM, Nicholas Ni<EMAIL_ADDRESS>wrote:

I read the "how-to-use" .
I have the a doubt: Does one layer instance can just contain only one
MapObject?
—
Reply to this email directly or view it on GitHub
https://github.com/lemberg/mappwidget/issues/4#issuecomment-78004644.

--

Dmytro Baryskyy*   Co-founder | Smart Atoms

phone:+44 (0) 20 7193 4928, ext. 719
web: http://www.s http://www.lemberg.co.uk/martatoms.com
facebook: https://www.facebook.com/smartatoms
twitter: https://twitter.com/smartatoms

Can I hide the logo on the right bottom?
Yes, you can. But you need to mention the license somewhere in "About" in
your app.

On Tue, Mar 10, 2015 at 12:11 PM, Dmytro Baryskyy <
<EMAIL_ADDRESS>wrote:

I believe yes, you can use only one MapObject in layer.
On Tue, Mar 10, 2015 at 8:58 AM, Nicholas Ni<EMAIL_ADDRESS>wrote:

I read the "how-to-use" .
I have the a doubt: Does one layer instance can just contain only one
MapObject?
—
Reply to this email directly or view it on GitHub
https://github.com/lemberg/mappwidget/issues/4#issuecomment-78004644.

--

Dmytro Baryskyy*   Co-founder | Smart Atoms

phone:+44 (0) 20 7193 4928, ext. 719
web: http://www.s http://www.lemberg.co.uk/martatoms.com
facebook: https://www.facebook.com/smartatoms
twitter: https://twitter.com/smartatoms

--

Dmytro Baryskyy*   Co-founder | Smart Atoms

phone:+44 (0) 20 7193 4928, ext. 719
web: http://www.s http://www.lemberg.co.uk/martatoms.com
facebook: https://www.facebook.com/smartatoms
twitter: https://twitter.com/smartatoms

OK

How can I draw lines between points.
I tried but failed.
I use the layer's draw(canvas, rect) method. But no result.

How can I draw lines between points.
I tried but failed.
layer's draw method did not work.

Is there snippet to study?

The plan is to create different kind of figures to draw, like lines,
rectangles, polygons, etc.
Here is an example of a line object I created some time ago (find attached).
Hope it helps
On Tue, Mar 10, 2015 at 1:10 PM, Nicholas Ni<EMAIL_ADDRESS>wrote:

Is there snippet to study?
—
Reply to this email directly or view it on GitHub
https://github.com/lemberg/mappwidget/issues/4#issuecomment-78034130.

--

Dmytro Baryskyy*   Co-founder | Smart Atoms

phone:+44 (0) 20 7193 4928, ext. 719
web: http://www.s http://www.lemberg.co.uk/martatoms.com
facebook: https://www.facebook.com/smartatoms
twitter: https://twitter.com/smartatoms

Where's the attachment? I do not find it.

Oops, sent it to your e-mail. Looks like if reply via e-mail attachments get lost.
In case if you do not receive the e-mail, here is the example of map object that can draw draw line between two points on a map:
package com.ls.demo;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Rect;

import com.ls.widgets.map.model.MapObject;

public class LineObject extends MapObject {

	private Paint paint;
	private Rect bounds;
	private Point start;
	private Point end;

	public LineObject(Object id) {
		super(id, null, 0, 0);

		paint = new Paint();
		paint.setColor(Color.WHITE);
		paint.setAntiAlias(true);
		paint.setStrokeWidth(5);

		start = new Point();
		end = new Point();
	}

	@Override
	public void draw(Canvas canvas)
	{
		canvas.drawLine(start.x * scale, start.y * scale, end.x * scale, end.y * scale, paint);
	}

	@Override
	public Rect getBounds()
	{
		return this.bounds;
	}

	public void setStart(int x, int y)
	{
		this.start.set(x, y);
	}

	public void setEnd(int x, int y)
	{
		this.end.set(x, y);
	}

	@Override
	protected void recalculateBounds()
	{
		super.recalculateBounds();

		if (this.bounds == null) {
			this.bounds = new Rect();
		}

		if (start == null) {
			start = new Point();
		}

		if (end == null) {
			end = new Point();
		}

		this.bounds.left = (int) (Math.min(start.x, end.x) * scale);
		bounds.top = (int) (Math.min(start.y, end.y) * scale);
		bounds.right = (int) (this.bounds.left + (Math.abs(start.x - end.x) * scale));
		bounds.bottom = (int) (this.bounds.top + (Math.abs(start.y - end.y)  * scale));

		setPivotPoint(this.bounds.left - start.x, this.bounds.top - start.y);
	}

}

Appreciate you support! Now I draw poly-line on the map.

Do you have the plan to develop the library on iOS?

Can the mappwidget have the rotate function?
Or do you have the plan to develop this function?

Can the mappwidget have the rotate function?
Or do you have the plan to develop this function?

hi.please how should the map source looks like.i saved an .png image of a map but can not see it from slicingtool filechooser.thks


chore(deps): update ghcr.io/marthydavid/kafka-keda-golang-consumer docker tag to v0.0.3

This PR contains the following updates:

Package
Update
Change

ghcr.io/marthydavid/kafka-keda-golang-consumer
patch
0.0.1 -> 0.0.3

Release Notes

marthydavid/kafka-keda-golang (ghcr.io/marthydavid/kafka-keda-golang-consumer)
v0.0.3
Compare Source
v0.0.2: Test
Compare Source
Test

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update (0.0.3). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.


Remove the need for a separate branch in integration tests + cleanup

Updates the dependencies versions.
Removes the need to have a separate branch to run integration tests correctly.
Adds proper README.

@hellowdan please reassign your review request if needed.

I'm waiting for @MarianMacik review before merging it.

Sorry, I am closing this as it is not needed anymore. I found a more standard solution for the unpack, so maybe this plugin is not needed anymore. See e.g. here https://github.com/kiegroup/drools/blob/main/build-parent/pom.xml#L2483


Updated firebase version in readme example

I signed it

Thanks for the PR @atjeff, but #717 is already out for review and upgrades the Firebase dependency to 3.x.x. I'm going to close this as obsolete.


Quote path parameters on Windows when launching ElixirSense

Hi! Thanks for great work. However, the intellisense wouldn't load on my box, and I discovered that it was because my Windows username contains a space, it got installed in
C:\Users\Max Planckton\.vscode\extensions\mjmcloug.vscode-elixir-yadayada

This, in turn, made ElixirSense not load, I got a can't find path C:\Users\Max type of error (sorry, forgot to copy the exact error message). I'm convinced that every Windows user who has a "firstname lastname" username will have this problem. Anyway, I figured that it's better to fix it than complain, so here goes.
Spaces in cmd.exe are a pain, but I think I made a pretty failsafe workaround here. Let me know what you think.

Thanks for the PR!
I don't have a way to test this, but I assume you did?

Yep! Or, well, it works on my new computer now:

Not sure how to do any testing other than just looking if it works :-)

That's all I needed to know ;) thanks


minor coverage fixups

Pull Request Test Coverage Report for Build 892129732

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

Totals

Change from base Build 886236872:
0.5%

Covered Lines:
2335

Relevant Lines:
2360

💛  - Coveralls


CORE-429 - Fix TG Forum Group Sync

:tada: This PR is included in version 4.17.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Today's merged Song of Swords sheet was working but has reverted.

Hi,
The updated sheet for Song of Swords was merged today and we could access it in the game and begun updating our characters.
As of probably around 20mins ago the sheet seems to have reverted back to the previous version and now I'm panicking in case I did something horribly wrong on github. Could anyone possibly clarify what this could be?
Thanks.

Issue has resolved. I was hoping it'd just be a wait and it'll work thing, but because it was available for a short time I was worried that it had been something that I did due to not understanding github too well.
Thanks anyway :)


No phone number in administration in customer details

Description:
Missing phone number field in customer details
Steps to reproduce:
Go to Admin - Customers - oveview - click on a customer / go to customer details. No phone numbers in details available
Expected result:
Phone number available
Solution:
Just integrate the sourcecode from the forum in the next Shopware releases:
https://forum.shopware.com/t/telefonnummer-vom-kunden-im-admin-bereich-anzeigen/103272
[sw-mod.png|https://sbp-issuetracker-attachments.s3.eu-west-1.amazonaws.com/1709960606_65ebed9e4e93c_1709960598_65ebed96c17a3_sw-mod.png]

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-34316.
[created from NEXT-34316, comment 485908]

[public] Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know. Thank you again for your valuable feedback.
[created from NEXT-34316, comment 501226]


Shared eslintrc plugins are ignored

What version of Turborepo are you using?
1.2.16
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
When defining a shared eslint config and extending it, the plugins seem to be ignored.
For example, I've added the @typescript-eslint plugin, and when I try to disable the @typescript-eslint/no-explicit-any rule, it says:
Error: Definition for rule '@typescript-eslint/no-explicit-any' was not found.  @typescript-eslint/no-explicit-any

Expected Behavior
Should take into account the plugins and rules
To Reproduce

Clone the basic example
Edit packages/eslint-config-custom/index.js:

module.exports = {
  ignorePatterns: ['node_modules'],
  env: {
    browser: true,
    es6: true,
  },
  extends: [
    'plugin:@typescript-eslint/recommended',
    'plugin:react/recommended',
    'next/core-web-vitals',
    'prettier',
  ],
  parser: '@typescript-eslint/parser',
  parserOptions: {
    ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
    sourceType: 'module', // Allows for the use of imports
    ecmaFeatures: {
      jsx: true, // Allows for the parsing of JSX
    },
  },
  settings: {
    react: {
      version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
    },
  },
  plugins: ['react', '@typescript-eslint', 'prettier'],
  rules: {
    'react/no-unescaped-entities': [0],
    'react/display-name': [0],
    'prettier/prettier': 'error',
  },
}

Edit packages/eslint-config-custom/package.json

{
  "name": "eslint-config-custom",
  "version": "0.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "eslint": "8.17.0",
    "eslint-config-next": "12.1.6",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-prettier": "^4.0.0",
    "@typescript-eslint/eslint-plugin": "^5.27.1"
  },
  "publishConfig": {
    "access": "public"
  }
}

Run yarn
Edit apps/web/pages/index.tsx

import { Button } from "ui";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function Web() {
  return (

Web

      <Button />

  );
}

Run yarn turbo run lint --scope=web
It says Error: Definition for rule '@typescript-eslint/no-explicit-any' was not found.  @typescript-eslint/no-explicit-any

In Pnpm they are automatically hoisted (eslint*). Maybe something similar is possible for Yarn?

This is, unfortunately, not a Turborepo issue. It is instead one of the most-longstanding open eslint issues: https://github.com/eslint/eslint/issues/3458
The recommended workaround from us here is this: https://github.com/microsoft/rushstack/tree/main/eslint/eslint-patch


bug

The mods button does not appear.
latest.log
rei.log
rei-issues.log

Isn't the mod menu mod itself a mod? Shouldn't it be located in the folder?

Shouldn't it say mod menu right in this corner?

What is a Minecraft "thematic edition"?  Maybe related to the 'thematic' mod?  Seems like something is pretty heavily modifying the menus...


Test: storage service in electron-main

Refs: https://github.com/microsoft/vscode/issues/92164

[ ] macOS @sandy081
[x] linux @alexdima
[ ] windows @alexr00

Complexity: 4
Create Issue

As part of the sandbox effort we want to move any native node.js module out of the renderer into a process that is in the background. This milestone SQLite3 moved from renderer to main process behind a setting to be able to test this.
Bootstrap
This is best to test with a fresh --user-data-dir to verify a fresh start:

in settings configure "window.enableExperimentalMainProcessWorkspaceStorage": true
restart
verify storage works and is respecting this setting

F1 > Log Storage Database Contents
Open developer tools
Scroll up beyond the last table you see (there should be two, one for global, one for workspace contents)
Find this message in the console: [!!! Experimental Main Storage !!!] for example Storage: Workspace (path: <path> [!!! Experimental Main Storage !!!])

Some examples of global state to verify:

visibility of "Accounts" icon in activity bar
visibility of status bar items

Some examples of workspace state to verify:

opened editors
editor layout
visibility of sidebar

Note: workspace state is persisted for:

folders
workspaces
empty windows (empty windows restore by default unless you changed window.restoreWindows setting)

Testing (normal)

keep an eye out for error messages in devtools (running with --verbose from the command line will give you raw messages in case needed)
verify global and workspace storage is properly restored when accumulated in stable and then opened in insiders
verify global and workspace storage is stored and restored between starts (folder, workspace, empty window)
verify workspace storage is stored and restored between workspace changes (e.g. File > Open Folder) and window reloads
open a folder, add a second folder (this will migrate the workspace into a multi-root-workspace and copy storage state over) and verify workspace state is restored after restart
some real world testing: open multiple windows, change workspaces across multiple windows, close some windows, quit the application and verify when opening workspaces again, the state is restored and there are no errors

Testing (crash)
SQLite has been proven to be quite robust against native crashes. Be creative in trying to kill processes and then seeing how the data restores. This applies to:

window crash
main process crash

In all cases you might see partial data loss but you should never get into a state where VSCode does not start anymore!

@bpasero Can you please help in how to verify following:

verify global and workspace storage is properly restored when accumulated in stable and then opened in insiders

@sandy081 best to try a fresh user data dir creating storage (global, workspace) and then already defining the window.enableExperimentalMainProcessWorkspaceStorage setting from stable to have it when starting with insiders from same user dta dir.


feat: add py.typed for OpenAI and Gemini

Description
The two packages are missing py.typed which is required for proper type checking by Mypy.
Type of Change
Please delete options that are not relevant.

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

How Has This Been Tested?
Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.

[x] I believe this change is already covered by existing unit tests

Forgot about the Bazel formatting, sorry for that


redirect from /oidc/authorize contains duplicate parameters (code and sometimes state)

It looked like the newer code was passing all the parameters in a map to the ModelAndView, so this keeps that code but also avoids adding blank state or nonce parameters like the older code did. The previous code was adding multiple code parameters in all cases and multiple state parameters if it was not blank. It was also adding a single blank nonce parameter and a single blank state parameter if it was blank.

I know there is a desire to include unit tests on changes but I am not sure what an appropriate test would be for this change which is removing a net 5 lines and letting spring's ModelAndView do the work of building the URL from a map of parameters (so there is little risk of duplicate parameters).

You should review the existing tests in OAuth20AuthorizeEndpointControllerTests to fix failures. I think that would be good enough.


ghu_main: Added UI elements to give site more professional structure

I added an area where we can share images, and we can feature the full logo across the screen now when it gets made.

(Schuyler's change, migrated over from the old ghu_main repo)

I'm cool with this Schuyler, you wanna merge it?