GPU issue

Hi
I got the following error when compile caffe using CPU mode only:
STUB_GPU(LiftedStructSimilaritySoftmaxLossLayer);
^
make: *** [.build_release/src/caffe/layers/lifted_struct_similarity_softmax_layer.o] Error 1
Is there only GPU mode ?
Thanks

Hi pribadihcr,
Can you comment out lines from L209 to L211 in src/caffe/layers/lifted_struct_similarity_softmax_layer.cpp,  recompile, and report back the result here?
https://github.com/rksltnl/Caffe-Deep-Metric-Learning-CVPR16/blob/0efd7544a9846f58df923c8b992198ba5c355454/src/caffe/layers/lifted_struct_similarity_softmax_layer.cpp#L209-211

Hi @rksltnl
Its work. Thanks

I commented it out on the repository as well. Closing.


Update gradient logic for Qiskit Rust circuit data implementation

Summary
Fixes #181
This updates internals of the gradients which more directly manipulated circuit data the way it was when it was managed in Python. The Rust implementation is changing things to be more performant but things are also different so this changes the logic to try accommodate as things are currently done, which is what is in Qiskit stable releases at present, and the new Rust implementation which is presently in main branch of Qsikit repo. #181 notes the aspect of CI which is failing is when we test against main which was done to monitor for any problems here due to changes.
This has partially fixed things but there is another aspect, that I failed to notice/note in #181 that also occurs
      File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/qiskit/circuit/parameterexpression.py", line 418, in __float__
    raise TypeError(

    TypeError: ParameterExpression with unbound parameters (dict_keys([Parameter(__gθ0)])) cannot be cast to a float.

which has not been addressed at present.
Details and comments

While this would be mergeable, as the tests against main, though they fail do not prevent things from being merged. I labelled it onHold as it would be better to have the remaining problem, as noted above, sorted so things pass completely against main.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

6 of 9 (66.67%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 90.409%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit_algorithms/gradients/reverse/derive_circuit.py
6
9
66.67%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
6363

Relevant Lines:
7038

💛  - Coveralls

The last change, to file gradients/utils.py, is not needed with this PR Qiskit/qiskit/pull/12794, so once this merges to Qiskst main I will remove the workaround from that (i,e the data copy)

https://github.com/Qiskit/qiskit/pull/12794 (Jake's PR) fixes parts of this PR, as it removes the need for copying circuit.data. However, it creates new issues due to the fact that derive_circuit uses the private _parameter_table attribute. To avoid such breakage in future, https://github.com/woodsp-ibm/qiskit-algorithms/pull/2 rewrites derive_circuit to only use public API. With that PR and https://github.com/Qiskit/qiskit/pull/12794 all tests pass as expected.
So we can either

Merge this as is and merge the public API PR as follow-up fix once Jake's PR is released
Wait until Jake's PR is released in 1.2 and merge this PR with the PR that changes to using only public API

With Qiskit 1.2 imminent maybe option 2 is better?

@Cryoris Well it seems that things need a little fixup having merged your PR. A couple of copyright dates and mypy typing by the looks.
@ElePT It seems with main that more stuff is broke - maybe with 1.2 as well. This PR Qiskit/qiskit#12824 changed base types so  computeuncompute now fails e.g.
test.time_evolvers.test_pvqd.TestPVQD.test_zero_parameters
----------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/runner/work/qiskit-algorithms/qiskit-algorithms/test/time_evolvers/test_pvqd.py", line 216, in test_zero_parameters
    fidelity_primitive = ComputeUncompute(sampler)

      File "/home/runner/work/qiskit-algorithms/qiskit-algorithms/qiskit_algorithms/state_fidelities/compute_uncompute.py", line 83, in __init__
    raise ValueError(

    ValueError: The sampler should be an instance of BaseSampler, but got <class 'qiskit.primitives.sampler.Sampler'>

Copyright & mypy done in 0c99ccb

Sampler base class change reverted in Qiskit/qiskit#12871

With Qiskit/qiskit#12794 having been merged earlier today I re-ran the CI and it all passes now. So it looks like this is good to go.


RDev prod data mirroring

Goal:
Allow engineers to initialize an RDev stack with selected production data, as needed for a particular dev/testing effort.
Provide a script that can mirror any combination of the following data types:

[ ] Portal database (RDS db) sync
[ ] S3 Portal datasets: .h5ad, .rds. Specify by list of datasets and or collection identifiers.
[ ] S3 Explorer datasets: CXGs.  Specify by list of datasets and or collection identifiers.
[ ] S3 WMG snapshot(s)

closing in favor of #5437


Make the edge methods accept null for label

Presently this generates an error:
g.v(1).outE(null)

The Neo4j Gremlin plugin uses the JSON type system, and JSON nulls are converted to Groovy nulls. So if you don't supply a value for label, it gets converted to null and generates an error.

Why would you ever have a null edge label? That is no legal in any underlying graph database.

I mean making it equivalent to not supplying a label...
g.v(1).outE()

If you don't supply a value for a label property, JSON sets the value to null.

That would be at the Blueprints level and not very clean semantically. I don't think we will do this.

I see where you're coming from. Here's the problem -- maybe you can find a better solution...
Neo4j is now recommending using the Gremlin Plugin param arg for performance reasons.
Using the Gremlin param arg instead of hard-coding the arg values inline will avoid compiling the script on each request and improve performance by several hundred times. This also reduces the number of script variations cached, which can lead to PermGen issues:
http://docs.neo4j.org/chunked/milestone/gremlin-plugin.html#rest-api-send-a-gremlin-script-with-variables-in-a-json-map
Here's the performance analysis from the guys who discovered the issue:
http://romikoderbynew.com/2011/09/23/neo4j-java-jvm-garbage-collection-profilingheap-sizelog-rotationlucene-rest-api-performance-analysis/
There's a ticked to add a Gremlin param arg to Rexster too: https://github.com/tinkerpop/rexster/issues/146
So this means that compiled versions of the scripts need a placeholder param if it is optional, which is often the case for edge labels:
https://gist.github.com/1475193
So in this example, there is no way for a client to execute g.v(_id).outE() because there is no value that you can put in label to make it work:
def outE(_id,label) {
  g.v(_id).outE(label)
}

Clients could write conditionals for every edge case that doesn't care about a label, but if there are several edge steps in the traversal, this can become unwieldy.
Before the PermGen problem was discovered, this wasn't an issue because everyone just hard-coded the params inline and sent a new script on each request.


[BEAM-8269] Convert Py3 type hints to Beam types

Also adds test coverage for strip_iterable and fixes a couple of cases
in get_yielded_type.
And other fixes (see commit comments).

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Still testing internally, do not merge yet

run python 3.7 postcommit

@robertwb PTAL, changes:

Commented out one test case with a TODO(BEAM-8492) comment.
Added a _LOGGER.info message when converting an unknown typing module type to typehints.Any.

Run Python PreCommit

BTW, I'm not able to reproduce the error, in 2.7 or 3.6, with or without cython.

Run Python PreCommit

Fixed test_strip_iterable failure in latest force push.

Run Portable_Python PreCommit


Update vendoring of prometheus/tsdb

The new version has no prometheus_ metrics prefix hardcoded anymore,
so this commit adds it using the new WrapRegistererWithPrefix
function.
Signed-off-by: beorn7<EMAIL_ADDRESS>@gouthamve @brancz @grobie as promised. The metrics look the same as before.

The metrics changes lgtm, but someone with a closer look on tsdb has to decide about the other tsdb changes that this pulls in.

Metric excerpt:
# HELP prometheus_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which prometheus was built.
# TYPE prometheus_build_info gauge
prometheus_build_info{branch="beorn7/client_golang",goversion="go1.10.2",revision="e0be02b12cbe51fc1a13824e9bdde377f395ed3d",version="2.4.0"} 1
# ...
# HELP prometheus_tsdb_blocks_loaded Number of currently loaded data blocks
# TYPE prometheus_tsdb_blocks_loaded gauge
prometheus_tsdb_blocks_loaded 182
# HELP prometheus_tsdb_compaction_chunk_range_seconds Final time range of chunks on their first compaction
# TYPE prometheus_tsdb_compaction_chunk_range_seconds histogram
# ...


AV exclusion incorrect

Hi, the exclusion for source machines is incorrect.  I've just installed the "modernised" agent and it installs to:
C:\Program Files (x86)\Microsoft Azure Site Recovery\
There is no such folder as C:\ProgramData\ASR - it does not exist.
I would suggest the ASR documentation (mainly the links to other areas) needs a complete review as it is very confusing with links everywhere going to different architectures etc.  The required outbound URLs - there in at least 3 different areas and you are linked to multiple within one architecture., 2 of which do not include management.azure.com, without which modern ASR does not work.

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

ID: 372bc0b6-2d6b-2fc4-a501-e300e5361c4a
Version Independent ID: b0288533-c0ab-504c-9754-6ebe68c1cfb7
Content: Support requirements for Azure Site Recovery replication appliance - Azure Site Recovery
Content Source: articles/site-recovery/replication-appliance-support-matrix.md
Service: site-recovery
GitHub Login: @ankitaduttaMSFT
Microsoft Alias: ankitadutta

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

Thank you, much appreciated.
On Fri, Sep 29, 2023 at 3:51 AM AjayBathini-MSFT @.***>
wrote:

@simonburbery https://github.com/simonburbery
Thanks for your feedback! We will investigate and update as appropriate.
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/115287#issuecomment-1739431296,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUNDSWNMHAO54FAXTZC2SHDX4WFF3ANCNFSM6AAAAAA5KKQ2UA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I have assigned the issue to the content author to investigate further and update the document as appropriate.

Hi @simonburbery - thanks a lot for helping us improve the documentation. I have validated the suggestion and you are correct. We have made edits to the page and the changes will be live sometime today.

#please-close


add option --output/-o

This adds option --output/-o
I've followed the suggestion made in pull request #71, and am using a temporary file instead of writing directly to the final destination.
The goal is to provide safer writing, and to avoid (partially) overwriting an existing cert with an invalid one in case of an error.

Closing. It was made clear in #84 that feature will not be added


update mk.search to work with torch/numpy

Codecov Report

Merging #355 (948bf81) into main (bf1f0df) will decrease coverage by 0.19%.
The diff coverage is 11.76%.

@@            Coverage Diff             @@
##             main     #355      +/-   ##
==========================================
- Coverage   67.02%   66.84%   -0.19%
==========================================
  Files         246      246
  Lines       13262    13247      -15
  Branches     1919     1872      -47
==========================================
- Hits         8889     8855      -34
- Misses       3946     3968      +22
+ Partials      427      424       -3

Flag
Coverage Δ

unittests
66.84% <11.76%> (-0.19%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

meerkat/ops/search.py
18.96% <11.76%> (-4.57%)
:arrow_down:

... and 10 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


User Task Endpoint CodeGen: Claim, Unclaim, Assign, Delegate, etc?

Description
Docs reference ability to claim and other typical user task actions in BPM
typical:

Claim Task (the current user can claim the task / make themselves the Assignee)
Unclaim Task (The current user who is assigned to the task can unclaim themselves from the task)
Assign Task (userA assigning a task to userB, ex Manager assigns task to userA, or to assign to no one/remove any current claim/assignment)
Complete Task (submit data into the task and complete it)
Delegate (very much less used, so ignore for now)

How are the HTTP endpoints supposed to be used by a client to achieve actions actions 1-3?  number 4 would seem to be completed as part of the POST for the task instance.
Implementation ideas
No response

Plese take a look to this post https://blog.kie.org/2021/05/kogito-user-tasks-process-api.html. All the operations you are describing should be implemented as lifecycle phases

for ref: https://docs.jboss.org/kogito/release/latest/html_single/#con-task-lifecycle_kogito-developing-process-services


Error opening excel(.xsls) file in file browser

Hi, my name is chu
A fatal error has been detected in the file browser.
If i click on the excel file in the file browser, keep calling file open api on hadoop httpfs.
Even if i leave the page or log out, the same phenomenon repeats.
I added the log and check to find the cause.
so, found that the http code was different from when it was normal.
(apps/filebrowser/src/filebrowser/views.py)
233   try:
234     stats = request.fs.stats(path)
235     logger.info(stats)
236     if stats.isDir:
237
238       (+)logger.info(listdir_paged(request, path))
239       return listdir_paged(request, path)
240     else:
241
242       (+)logger.info(display(request, path))
243       return display(request, path)
244   except S3FileSystemException as e:
245     msg = _("S3 filesystem exception.")
246     if request.is_ajax():
247       exception = {
248         'error': smart_str(e)
249       }
250       return JsonResponse(exception)
251     else:
252       raise PopupException(msg, detail=e)

neccessary logs
1-1) httpfs-audit.log(hadoop)
2021-06-22 11:10:06,906  INFO [<IP_ADDRESS>][dongwon:] OPEN [/user/dongwon/test.xlsx] offset [45269] len [1048576]
2021-06-22 11:10:06,910  INFO [<IP_ADDRESS>][dongwon:] OPEN [/user/dongwon/test.xlsx] offset [45269] len [1048576]
2021-06-22 11:10:06,915  INFO [<IP_ADDRESS>][dongwon:] OPEN [/user/dongwon/test.xlsx] offset [45269] len [1048576]
2021-06-22 11:10:06,921  INFO [<IP_ADDRESS>][dongwon:] OPEN [/user/dongwon/test.xlsx] offset [45269] len [1048576]
2021-06-22 11:10:06,926  INFO [<IP_ADDRESS>][dongwon:] OPEN [/user/dongwon/test.xlsx] offset [45269] len [1048576]
...
1-2) hue.log
[22/Jun/2021 11:09:23 +0900] views        INFO     <WSGIRequest: GET '/filebrowser/view%3D/user/dongwon/%EC%A0%91%EC%86%8D%EC%A0%95%EB%B3%B4.xlsx'>
[22/Jun/2021 11:09:23 +0900] views        INFO     <HttpResponseRedirect status_code=302, "text/html; charset=utf-8", url="/filebrowser/download=/user/dongwon/%EC%A0%91%EC%86%8D%EC%A0%95%EB%B3%B4.xlsx?disposition=inline">

screenshot of the issue

the editor component you are using and so
apps\filebrowser

Weird, would you have more of the hue.log? We should have a stack trace or an infinite loop there.
Also if you press F12 before opening the file, do you see JavaScript errors in the console?

Hi, romainr
my name is chu

issue
There seems to be more besides the xlsx extension. For example, (.docx, pptx...)

hue.log
[23/Jun/2021 11:16:18 +0900] access       INFO     <IP_ADDRESS> dongwon - "GET /filebrowser/view=/user/dongwon/test2.pptx HTTP/1.1" returned in 21ms 302 0
[23/Jun/2021 11:16:18 +0900] access       INFO     <IP_ADDRESS> dongwon - "GET /filebrowser/download=/user/dongwon/test2.pptx HTTP/1.1" returned in 34ms 200 -
[23/Jun/2021 11:16:18 +0900] access       INFO     <IP_ADDRESS> dongwon - "GET /filebrowser/view=/user/dongwon/test2.pptx HTTP/1.1" returned in 40ms 302 0

Network

My Big System
I configured the system like this:

authentication : Apache ranger
authorization : Open LDAP
hadoop/ranger-hdfs-security.xml

xasecure.add-hadoop-authorization
true

so, can Ignores Hadoop permissions.

I confirm I see the problem, it downloads the file but the page does not reset the spinner:


TypeError: Mutation fields cannot be resolved. 'DjangoUpdateMutation' object has no attribute 'is_relation'

Hello there!
I was basically trying this library for the first time, following [this example] incrementally with some minor tweaks like a TextChoices field for the name field in the Color model.
I could succesfully implement the following mutations:

createColor
createFruit

But when I try to create the updateFruit, my Django manage.py runserver will raise the following error in the logs when adding the updateFruit under the Mutation type:
TypeError: Mutation fields cannot be resolved. 'DjangoUpdateMutation' object has no attribute 'is_relation'

As you can imagine I can also trigger this traceback by running python manage.py check
I share a more detailed traceback at the end of this comment.
My models.py looks like this:
from django.db import models

class Fruit(models.Model):
    name    = models.CharField(max_length=20)
    color   = models.ForeignKey('Color', blank=True, null=True, related_name='fruits', on_delete=models.CASCADE)
    amount  = models.IntegerField()

class Color(models.Model):

    class ColorChoices(models.TextChoices):
        RED     = "Rojo"
        YELLOW  = "Amarillo"
        BLUE    = "Azul"
        ORANGE  = "Naranja"
        PURPLE  = "Violeta"
        GREEN   = "Verde"

    name = models.CharField(choices=ColorChoices.choices, max_length=20)

    def __str__(self) -> str:
        return f"{self.name}-{self.pk}"

My types.py looks like this:
import strawberry
from enum import Enum
from strawberry.django import auto
from typing import List
import strawberry_django

from fruits import models

@strawberry.enum
class ColorName(Enum):
    RED     = "Rojo"
    YELLOW  = "Amarillo"
    BLUE    = "Azul"
    ORANGE  = "Naranja"
    PURPLE  = "Violeta"
    GREEN   = "Verde"

@strawberry.django.type(models.Fruit)
class Fruit:
    id: auto
    name: auto
    color: 'Color'
    amount: auto

@strawberry.django.type(models.Color)
class Color:
    id: auto
    name: auto
    fruits: List[Fruit]

@strawberry_django.input(models.Color)
class ColorInput:
    id: auto
    name: auto
    fruits: auto

@strawberry_django.input(models.Fruit)
class FruitInput:
    id: auto
    name: auto
    amount: auto
    color: auto

@strawberry_django.input(models.Fruit, partial=True)
class FruitPartialInput:
    pass

My schema.py looks like this:
import strawberry
from typing import List
from strawberry_django import mutations

from fruits.types import Fruit, FruitInput, Color, ColorInput, FruitPartialInput

@strawberry.type
class Query:
    fruits: List[Fruit] = strawberry.django.field()
    colors: List[Color] = strawberry.django.field()

@strawberry.type
class Mutation:
    createColor: Color = mutations.create(ColorInput)
    createFruit: Fruit = mutations.create(FruitInput)
    updateFruit: Fruit = mutations.update(FruitPartialInput)

schema = strawberry.Schema(query=Query, mutation=Mutation)

Though probably irrelevant, my urls.py looks like this:
from django.conf import settings
from django.contrib import admin
from django.urls import path

from strawberry.django.views import AsyncGraphQLView
from project.schema import schema

if settings.DEBUG:
    urlpatterns = [
        path('admin/', admin.site.urls),
        path('graphql/', AsyncGraphQLView.as_view(schema=schema)),
    ]
else:
    urlpatterns = [
        # Safe urls grabbed from .env
    ]

My settings.py looks like this:
import os
from pathlib import Path

BASE_DIR = Path(__file__).resolve().parent.parent

SECRET_KEY = os.environ.get('SECRET_KEY')

DEBUG = os.environ.get('DEBUG')

ALLOWED_HOSTS = [el for el in os.environ.get("ALLOWED_HOSTS").split(",")]

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # Project apps
    'user',
    'fruits',

    # Third party apps
    'corsheaders',
    'strawberry.django',
    'django_extensions'
]

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'corsheaders.middleware.CorsMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware'
]

ROOT_URLCONF = 'project.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'project.wsgi.application'

DATABASES = {
    'default': {
        'ENGINE':os.environ.get("SQL_ENGINE"),
        'NAME': os.environ.get('SQL_DATABASE'),
        'USER': os.environ.get('SQL_USER'),
        'PASSWORD': os.environ.get('SQL_PASSWORD'),
        'HOST': os.environ.get('SQL_HOST'),
        'PORT': os.environ.get('SQL_PORT'),
    }
}

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

STATIC_URL = '/static/'

AUTH_USER_MODEL = 'user.User'

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Detailed traceback:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/graphql/type/definition.py", line 735, in fields
    fields = resolve_thunk(self._fields)
  File "/usr/local/lib/python3.10/site-packages/graphql/type/definition.py", line 264, in resolve_thunk
    return thunk() if callable(thunk) else thunk
  File "/usr/local/lib/python3.10/site-packages/strawberry/schema/schema_converter.py", line 280, in get_graphql_fields
    graphql_fields[field_name] = self.from_field(field)
  File "/usr/local/lib/python3.10/site-packages/strawberry/schema/schema_converter.py", line 146, in from_field
    for argument in field.arguments:
  File "/usr/local/lib/python3.10/site-packages/strawberry_django/mutations/fields.py", line 38, in arguments
    return arguments + super().arguments
  File "/usr/local/lib/python3.10/site-packages/strawberry_django/filters.py", line 148, in arguments
    if self.is_relation is False:
AttributeError: 'DjangoUpdateMutation' object has no attribute 'is_relation'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/manage.py", line 22, in <module>
    main()
  File "/workspace/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/check.py", line 63, in handle
    self.check(
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 419, in check
    all_issues = checks.run_checks(
  File "/usr/local/lib/python3.10/site-packages/django/core/checks/registry.py", line 76, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/usr/local/lib/python3.10/site-packages/django/core/checks/urls.py", line 13, in check_url_config
    return check_resolver(resolver)
  File "/usr/local/lib/python3.10/site-packages/django/core/checks/urls.py", line 23, in check_resolver
    return check_method()
  File "/usr/local/lib/python3.10/site-packages/django/urls/resolvers.py", line 412, in check
    for pattern in self.url_patterns:
  File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python3.10/site-packages/django/urls/resolvers.py", line 598, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/local/lib/python3.10/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python3.10/site-packages/django/urls/resolvers.py", line 591, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/workspace/project/urls.py", line 6, in <module>
    from project.schema import schema
  File "/workspace/project/schema.py", line 19, in <module>
    schema = strawberry.Schema(query=Query, mutation=Mutation)
  File "/usr/local/lib/python3.10/site-packages/strawberry/schema/schema.py", line 84, in __init__
    self._schema = GraphQLSchema(
  File "/usr/local/lib/python3.10/site-packages/graphql/type/schema.py", line 210, in __init__
    collect_referenced_types(mutation)
  File "/usr/local/lib/python3.10/site-packages/graphql/type/schema.py", line 422, in collect_referenced_types
    for field in named_type.fields.values():
  File "/usr/local/lib/python3.10/functools.py", line 981, in __get__
    val = self.func(instance)
  File "/usr/local/lib/python3.10/site-packages/graphql/type/definition.py", line 737, in fields
    raise TypeError(f"{self.name} fields cannot be resolved. {error}")
TypeError: Mutation fields cannot be resolved. 'DjangoUpdateMutation' object has no attribute 'is_relation'
root@73aabd78fd1f:/workspace#

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

Update: same error raised when trying to implement the following mutation under my Mutation class:
deleteFruit: Fruit = mutations.delete()

Got the same issue, in a pretty plain vanilla setup, InputType with one string field.
Django 3.2 / Python 3.8

Same issue for me, using Django 4.0.2 and Python 3.10.2. It works, when you use a List type:
update_fruit: List[FruitType] = mutations.update(FruitPartialInput)

But for mutations.delete() does not work.

Both update and delete mutations require List type. See example project.
https://github.com/strawberry-graphql/strawberry-graphql-django/blob/main/examples/django/app/schema.py#L39-L40
Following should work. The reason for that is that both of these mutations may update or delete multiple items and therefore multiple items may be returned.
@strawberry.type
class Mutation:
    createColor: Color = mutations.create(ColorInput)
    createFruit: Fruit = mutations.create(FruitInput)
    updateFruits: List[Fruit] = mutations.update(FruitPartialInput)
    deleteFruits: List[Fruit] = mutations.delete()

We definitely have to improve error reporting.

@la4de thanks for the feedback. I am using the django-strawberry-plus package for crud mutations now, but it feels strange to have only the possibility to do 'update many' mutations. What is the selection predicate for those mutations?

@gersmann, that's very good question. You need to add filters for that purpose. See filtering chapter from our docs
https://github.com/strawberry-graphql/strawberry-graphql-django/blob/main/docs/references/mutations.md

Be careful, the filter is applied to both the query to update and the query for return results.
So that:
{
  updateFruits(data: { name: "orange" }, filters: { name: { exact: "Orange" } } ) {
    id
    name
  }
}

Will promptly rename the "Orange" fruit(s) to "orange" fruit(s) but will return you 0 result.
This is because the filter "name is exactly Orange" will match no model instance once the migration has been applied.
This is probably a bug, but I don’t see how to fix this right now.

The mutations update has been tweaked a lot since this issue was reported, and I'm almost sure this issue has been fixed already.
Going to mark it as resolved, but please comment in here if that is not the case so that we can reopen it :)


Add notion of user to app and allow user login

https://github.com/JeaneC/tauri-oauth-supabase might have some inspiration for us

https://workos.com/single-sign-on is the one I mentioned that will be useful when we have an enterprise offering

Ory has a bunch of OSS I meant to review too https://www.ory.sh/open-source/

https://kinde.com has good investors and the product includes a feature flag service which we will need at some point too so might want to give it a look now


Update changes of the last month for new hardware models

Probably for a virtual machine to compile my own code, let's see

Make the display of the T-Display rp2040 and T-Pico3 work again. And the external 16MByte of the STM32F411CEU6.


wasm-opt throws error 8 on x86 when running wasm-pack build

🐛 Bug description
binaryen releases say they provide x86 builds, but the release file contains x64 binaries, so wasm-pack fails to execute it, and throws a cryptic error message. The locally installed wasm-opt is not properly detected
$ wasm-pack --verbose --log-level info build
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
    Finished release [optimized] target(s) in 0.15s
[INFO]: Optimizing wasm binaries with `wasm-opt`...
Error: Exec format error (os error 8)
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.

I understand this binary gets installed automatically when wasm-opt is not found in the PATH.
https://github.com/rustwasm/wasm-pack/pull/625
However, manually installing wasm-opt and making sure it's in the PATH still throws error 8.
$ wasm-pack build
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
    Finished release [optimized] target(s) in 0.13s
[INFO]: Optimizing wasm binaries with `wasm-opt`...
Error: Exec format error (os error 8)
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
$ wasm-opt --version
wasm-opt version 98
$ whereis wasm-opt
wasm-opt: /usr/bin/wasm-opt

I replaced wasm-opt binary on /usr/bin to test if it was being called at all, and it was not called by wasm-pack build.
I also wrote a small app to test if 'which' crate was finding wasm-opt and this code correctly finds the binary:
use std::path::PathBuf;
fn main() {
    let result = which::which("wasm-opt").unwrap();
    assert_eq!(result, PathBuf::from("/usr/bin/wasm-opt"));
    println!("It found wasm-opt.");
}

🤔 Expected Behavior
There are a few alternatives

It should show a warning explaining it can't find wasm-opt installed in the system, and skip the optimization.
The error message could be more descriptive, since the wasm-opt configuration goes into the section package.metadata.wasm-pack.profile.release (.profile and .dev too) and this is not clear right from the error message
Show an error describing that wasm-opt was downloaded and installed (with the full path to the binary), and that it cannot execute it
Properly detect the existing binary

👟 Steps to reproduce
Run wasm-pack build on an x86 linux
🌍 Your environment
32 bit Gentoo
wasm-pack version: 0.9.1
rustc version: rustc 1.50.0 (cb75ad5db 2021-02-10)
Tested it on 64 bit Gentoo and works without issues.
Workaround
Disable it in Cargo.toml and run it manually later:
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[package.metadata.wasm-pack.profile.dev]
wasm-opt = false
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = false

Then run it manually from the command line:
wasm-opt original-file.wasm -o optimized-file.wasm -O4 -all

Please try out v0.12.0 from one of the following ways:

https://github.com/rustwasm/wasm-pack/releases/tag/v0.12.0
https://crates.io/crates/wasm-pack/0.12.0
https://www.npmjs.com/package/wasm-pack/v/0.12.0


♻ AppCenter is retired, we need move to something else

Pain
Microsoft will retire AppCenter in 2025. We need to find an alternative. Firebase maybe?
Tasks

[ ] Find alternative to AppCenter
[ ] Implement

Acceptance Criteria

[ ] Meets Definition of Done - https://github.com/SSWConsulting/SSW.Rewards.Mobile/blob/main/_docs/Definition-of-Done.md

Thanks!

@adamcogan @sethdaily ❗
cc: @zacharykeeping @AntPolkanov @tkapa
End of March will come around quicker than we think - and everyone who works on this will be on client work fulltime until then from 11th November. Suggest we make this a top-priority mini project as soon as NDC is over


Test Experiments page blank.

Describe the bug
The web ui to load Experiments for a Test is blank. No prior experiments had been set up.
To Reproduce
Navigate to
/test/20#experiments
Version
0.9.1
Java
17
OS
F38
Browser
FF118

The browser console is reporting this error
SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
    children Experiments.tsx:356
    children Experiments.tsx:352
    wD Experiments.tsx:306
    React 8
    S scheduler.production.min.js:13
    T scheduler.production.min.js:14
    6813 scheduler.production.min.js:14
    Webpack 12
react-dom.production.min.js:189:29

This issue is similar to what's seen with any type processing.

thanks for creating a PR and fixing this.


[BUG] Azure.Messaging.ServiceBus conflicts with Azure.Security.KeyVault.Secrets in Azure Functions

Describe the bug
Using Azure.Messaging.ServiceBus within an Azure Function (C#), causes Azure.Security.KeyVault.Secrets.SecretClient.GetSecret() to receive a 401 error on key vault access.  Commenting out the service bus pieces allows it all to work correctly.  Note that the service bus pieces do not use the Azure.Security.KeyVault.Secrets library at all.
Expected behavior
They should not interfere.  Making service bus calls should not affect key vault access
Actual behavior (include Exception or Stack Trace)
The actual get call to the key vault generates a 401 error.  This makes me think it's an authentication error, but the authentication is unchanged.  The key vault authentication is not used by the service bus SDK.
Note that is the service bus pieces are run in a separate function, then they work fine.
Just including the NuGet packages does not cause the error.
To Reproduce
DefaultAzureCredentialOptions credOPtions = new DefaultAzureCredentialOptions()
  {
      ExcludeEnvironmentCredential = true,
      ExcludeInteractiveBrowserCredential = true
  };

  var secretClient = new SecretClient(new Uri(configuration["kvUri"]), new DefaultAzureCredential(credOPtions));

  ImageData imageData = await RecognizeImage(filename, secretClient);

  recordId = await SaveToCosmosDB(configuration, imageData, secretClient);

 await SendSBMessageAsync(configuration["serviceBusConnectionString"], configuration["serviceBusName"], caption);

await ReceiveMessagesAsync(configuration["serviceBusConnectionString"], configuration["serviceBusName"]);

       private static async Task<string> SaveToCosmosDB(Microsoft.Extensions.Configuration.IConfigurationRoot Configuration,
            ImageData imageData, SecretClient secretClient)
        {
            string recordId = string.Empty;

            string dbEndpointUri = Configuration["dbEndpointUri"];
            string dbPrimaryKey = ((KeyVaultSecret)secretClient.GetSecret(Configuration["cosmosSecretName"])).Value;
        }

        static async Task MessageHandler(ProcessMessageEventArgs args)
        {
            readCaption = args.Message.Body.ToString();

            // complete the message. messages is deleted from the queue.
            await args.CompleteMessageAsync(args.Message);

            Interlocked.Increment(ref inuse);
        }

        static int inuse = 0;
        static int one = 1;

        static Task ErrorHandler(ProcessErrorEventArgs args)
        {
            readCaption = "error";
            Interlocked.Increment(ref inuse);
            return Task.CompletedTask;
        }

        static async Task ReceiveMessagesAsync(string connectionString, string queueName)
        {
            await using (ServiceBusClient client = new ServiceBusClient(connectionString))
            {
                // create a processor that we can use to process the messages
                ServiceBusProcessor processor = client.CreateProcessor(queueName, new ServiceBusProcessorOptions());

                // add handler to process messages
                processor.ProcessMessageAsync += MessageHandler;

                // add handler to process any errors
                processor.ProcessErrorAsync += ErrorHandler;

                // start processing
                await processor.StartProcessingAsync();

                while (Interlocked.Equals(inuse, one) == false)
                {
                    await Task.Delay(100);
                }

                await Task.Delay(3000);

                //// stop processing
                await processor.StopProcessingAsync();
            }
        }

        static async Task SendSBMessageAsync(string connectionString, string queueName, string caption)
        {
            await using (ServiceBusClient client = new ServiceBusClient(connectionString))
            {
                ServiceBusSender sender = client.CreateSender(queueName);

                ServiceBusMessage message = new ServiceBusMessage(caption);

                await sender.SendMessageAsync(message);
            }
        }

Environment:
Azure.Messaging.ServiceBus v7.1.2
Azure.Security.KeyVault.Secrets v4.1.1
Visual Studio Enterprise 16.9.4
PS C:\Users\pfisher\source\repos\forcemultiplier> dotnet --info
.NET SDK (reflecting any global.json):
Version:   5.0.202
Commit:    db7cc87d51
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19042
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\5.0.202\
Host (useful for support):
Version: 5.0.5
Commit:  2f740adc14
.NET SDKs installed:
3.1.408 [C:\Program Files\dotnet\sdk]
5.0.202 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Thank you for your feedback.  Tagging and routing to the team members best able to assist.

After looking at this for a real long time today.  I think part of the problem was that I did not realize that static variables are not reset between function calls, so I had a whole lot of clients just chugging away on this, simultaneously.  However, the 401 calls were read out of App Insights, so.....as screwed up as my code may be, I still don't see how this could have happened.

Was an exception being thrown with a 401? If you're looking at AppInsights, a 401 is expected as Key Vault issues a challenge. These will happen periodically when the challenge response token expires.

It’s hard to see how it could expire since I am creating a new credential object for each call.  And I’m only doing this once per function call.  These were failing in less than a minute.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Heath @.>
Sent: Wednesday, May 5, 2021 8:32 PM
To: @.>
Cc: Paul @.>; @.>
Subject: Re: [Azure/azure-sdk-for-net] [BUG] Azure.Messaging.ServiceBus conflicts with Azure.Security.KeyVault.Secrets in Azure Functions (#20864)
Was an exception being thrown with a 401? If you're looking at AppInsights, a 401 is expected as Key Vault issues a challenge. These will happen periodically when the challenge response token expires.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-sdk-for-net/issues/20864#issuecomment-833140660, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK36DPICURU3MLIHVHPSUU3TMHPTLANCNFSM44FWDLKA.

A 401 is sent the first time, too - whenever a request must be authenticated a bearer token is required. If one is not available (as in the first request) or has expired, you will get a 401 response with the first request.

I get it, but if I just comment out the SB parts, the existing auth never fails.  The SB parts don’t use the key vault or the auth object, since they use the connection string which is an app setting in the function app configuration.  I can’t understand why, even if the SB code was completely incorrect, I would be getting key vault errors.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Heath @.>
Sent: Wednesday, May 5, 2021 8:49 PM
To: @.>
Cc: Paul @.>; @.>
Subject: Re: [Azure/azure-sdk-for-net] [BUG] Azure.Messaging.ServiceBus conflicts with Azure.Security.KeyVault.Secrets in Azure Functions (#20864)
A 401 is sent the first time, too - whenever a request must be authenticated a bearer token is required. If one is not available (as in the first request) or has expired, you will get a 401 response with the first request.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-sdk-for-net/issues/20864#issuecomment-833145870, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK36DPMOCJOLCNPNYY5DBDTTMHRQDANCNFSM44FWDLKA.

From AppInsights.  The code actually hung -- well it was not hung, but chugging along infinitely, so I did not get any stack trace.
I do understand what you are saying about a 401, but it is very strange.  I don't see this in app insights after I removed the SB parts.

If you think that the above is normal.  I'm happy to close it and move on.  There was still something funky going on, but its hard to say what.

Yes, that is normal. The first request without the Authorization header gets a 401 response. We save the original request and send an empty request to authenticate - in this case, to the MSI endpoint. After we get our bearer token challenge response, we send the original request back which you see as the 200 to the same secret endpoint (/secrets/cosmosdbkey/).
We'll add a FAQ for this. Was this the only sign of a seeming error you saw? If not client exception and the app worked correctly, feel free to close.


Add 'String Reversal' project

Link of the project:
https://sololearn.com/compiler-playground/Wzv1Of3FK0aw/#

Please re-check your code it contains some errors.

Please re-check your code it contains some errors.

Errors in the JS or HTML file?

I think it's now fixed and you can add it.


self-hosted runners

make scripts in dspace-angular/build-scripts/deploy-scripts run on self hosted runner, accertain its succesfull by e.g. curl and then make it run after each new image build.

Current state:
There is deploy branch on dspace-angluar:
https://github.com/dataquest-dev/dspace-angular/tree/deploy
On any push to that branch, new versions of dspace and dspace-angluar images will be pulled from company docker hub at
https://hub.docker.com/u/dataquest
and deployed on dev-5.pc.
However, I was unable to solve cors problems. It is still possible to see the website and interact with it when using two ssh tunnels (one for backend and one for frontend):

Further info about cors errors:
What is caused by the problem:

Therefore browser always lands at /500 page and so we can go nowhere.
I tried adding multiple header fields in nginx config file /etc/nginx/sites-available/default

(Please note, only the last one applies, nginx rewrites previous values; Yes I know they are commented out now, but I obviously tried when they were uncommented)
but that did not help and chrome still showed missing headers:

I also tried to set various values in file
https://github.com/dataquest-dev/dspace-angular/blob/deploy/build-scripts/deploy-scripts/deploy.yml
Mainly following:

to no avail.
My conclusion is, that dspace is setting headers wrongly, although article sent by MM suggests its supposed to use values configured in two screenshots above according to this: https://wiki.lyrasis.org/display/DSDOC7x/REST+API
I don't know why it seems to not respect them. Perhaps it is because those docker images are test and not production. I did not attempt to change source code and rebuild images, since I think we need to use the ones that are generated by pushes in dtq-dev branch of both repos and stored on docker. But it appears cors won't work without some such changes.


Update dependencies, use latest lens

This should work once joneshf/purescript-optic#2 is merged and a new release is made.

Awesome, will wait for @joneshf to accept the PR and issue new version of Optic.

Someone Argonaut broke due to the profunctor issue (I think). :-/

Ah, looks like it's trying to download a version of the compiler that doesn't exist. If someone doesn't get to it by tomorrow, I'll update it.

There we go. Odd that that's an error now, I would have thought the old tag would still be usable if it worked at one point.

The releases before 0.6.2 were removed because they lacked the License file. They'd have to be added back manually, but I'm not sure it's worth the trouble.
In any case, thanks!


Document how to debug through React.sln projects locally

There are some build failures in one of my PRs (#459). It would be swell to step through the .cs in Visual Studio locally. When running F5 now, failures are listed as part of the build instead of runtime.

Yeah it's tricky because that comes from the MSBuild step for the sample project, which runs as a separate process. It can't run in the same build process as the MSBuild library is built as part of the build, so the file is locked during the main build.
You can temporarily comment out the <TransformBabel /> node in React.Sample.Mvc4\TransformBabel.proj.

Closing issues older than a year, please re-open if you think this is still relevant.


HOOBS Box / unable to update from Node 16 / Ability to update Govee plugin past version 9.x

I have a HOOBS box (non-pro) and have a question specific to this plugin.
Now I have tried getting answers from HOOBS via their direct tech support, social media and otherwise and to say their customer support is underwhelming is being generous.
The issue is that I cannot update Node JS to 18 or 20 and as such, I cannot update the plugin to version 10 or beyond.
So my main question is, despite it being unsupported on node version 16.x, what would happen if I did update the plugin to 10.x?
What makes this even more "fun" is that trying to do ANY update on HOOBS requires the plugin to also be updated which would push it to version 10.x with NodeJS still remaining at 16.
I have always appreciated Ben's work on this plugin and that's why I am a patreon supporter, but if HOOBS can't be updated, I may be stuck with this for the foreseeable future as HOOBS support barely even responds, much less understands the issue/offers useful help.
Thank you for any help you can provide.

hello, I don't know if the information I'm going to provide could be useful to you and to the developer, by the way I've updated the plugin to the 10.x version on my hoobs (non pro) box with Node 16.20 and, so far, it's working flawlessly.

hello, I don't know if the information I'm going to provide could be useful to you and to the developer, by the way I've updated the plugin to the 10.x version on my hoobs (non pro) box with Node 16.20 and, so far, it's working flawlessly.

Thank you, that is helpful as I have scoured the net and so far haven't found anything on folks using 10+ versions of the plugin with Node 16. I guessed it might be "fine" but it could run into problems down the line as the app is being developed further with Node JS versions 18+ in mind.
It is just unfortunate that HOOBS has fallen off a cliff in terms of customer support and up to date development.

I keep my plugins in line with the Homebridge node-supported versions. The warnings are for two reasons:

admittedly, for the sake of it, in case I end up using a feature of node 18 that isnt supported in 16
to highlight to homebridge users in general about the node versioning (since plugins are updated much more than homebridge itself

Having said this - right now there is no reason why the plugin in the latest version would not work with node 16. And this should be the case for the foreseeable future. I would always add in the release notes (even if it were a patch release) if the plugin would absolutely break on a lower version of node). Im not sure how visible the release notes are in hoobs.
But for now you will be good to update and keep updated :)

Thank you Ben,
I updated and no issues.


[move] Added create/destroy signer natives

Motivation

Added create_signer and destroy_signer to LibraAccount
Will be used at a later date for the "malloc" based account creation

Test Plan

Can't really test these yet until @sblackshear uses them

@bors-libra r=sblackshear

:pushpin: Commit c720030 has been approved by sblackshear

:hourglass: Testing commit c7200307a706482fde030b3255227e0b1165889b with merge 24db0fedd9d01f5c18147d9d6adfdc286264ac11...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra r=sblackshear

:pushpin: Commit b97098e has been approved by sblackshear

:hourglass: Testing commit b97098e7a0a624f76b78e547d2ee338ce7988da8 with merge a30a106e1e4b373b86dd32690903609c5b2b5c17...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: sblackshear
Pushing a30a106e1e4b373b86dd32690903609c5b2b5c17 to master...


Access focusin/focusout event for the input fields of SelectMenu, InputMenu

Description
I would like to attach event listeners for focusin and focusout to the input field of the SelectMenu, InputMenu, is that somehow possible with the components directly?

I found out that the focusin and focusout "bubble" up and I was able to solve by adding an event listener to the window and appropriate check for the target element.


[TC-RH-1.1] Relative Humidity cluster AttributeList attribute value mismatch

Summary:
As per testplan TC-RH-1.1 AttributeList showing value mismatch error when executed .
expected value [0,1,2,3] but got more than that.
Testplan screenshot:

Execution logs:

RH_AttributeList.txt

https://github.com/CHIP-Specifications/chip-test-plans/issues/1106


check for duplicate archetypes in QueryState::new_archetype

Fixes #1788
See discussion in that issue for details.

bors r+


"Execution failed due to configuration error: Malformed Lambda proxy response"

Cloning and following the instructions exactly leads to the following response when doing GET curl on articles:
{
message: "Internal server error"
}

Full logs:

Execution log for request test-request
Fri Feb 16 03:33:29 UTC 2018 : Starting execution for request: test-invoke-request
Fri Feb 16 03:33:29 UTC 2018 : HTTP Method: GET, Resource Path: /articles
Fri Feb 16 03:33:29 UTC 2018 : Method request path: {proxy=articles}
Fri Feb 16 03:33:29 UTC 2018 : Method request query string: {}
Fri Feb 16 03:33:29 UTC 2018 : Method request headers: {}
Fri Feb 16 03:33:29 UTC 2018 : Method request body before transformations:
Fri Feb 16 03:33:29 UTC 2018 : Endpoint request URI: https://lambda.us-west-1.amazonaws.com/2015-03-31/functions/arn:aws:lambda:us-west-1:709256083499:function:TestSpring/invocations
Fri Feb 16 03:33:29 UTC 2018 : Endpoint request headers: {x-amzn-lambda-integration-tag=test-request, Authorization=************************************************************************************************************************************************************************************************************************************************************************************************************************f7260e, X-Amz-Date=20180216T033329Z, x-amzn-apigateway-api-id=iou9is1ppg, X-Amz-Source-Arn=arn:aws:execute-api:us-west-1:709256083499:iou9is1ppg/null/GET/{proxy+}, Accept=application/json, User-Agent=AmazonAPIGateway_iou9is1ppg, X-Amz-Security-Token=FQoDYXdzEJz//////////wEaDHDR8weis8DyttIOICK3A2OBT9MJwLgag0NXzjYqLMpyydJCUj/n55URW8KwBfl9hO9asljfVCvT8z4VuKsKk05M7cTLVF6drG6wZVyGLv+njHMfkcIJRkYOZkTYwO9OGo24xNYabUuGyufl6XKfebYPWwyfhyDTIftr9WfbTutrOc6+LpxFjgvsT6BIP1tGgvRhMoYjtRRrSc/PW0C/sUVkp6QT4qhuasQci3pkBjHZ8gui9XznFYOo1BiuBI5N7N7XzJClWG9y/TIwFgzFXwl5BPOucfkNAt1fOCbzB6QRgPpRdAYUMyYH14XdlYjdSrukLzsfs2HDLAJR66/7DtaTPnmBsN3eh [TRUNCATED]
Fri Feb 16 03:33:29 UTC 2018 : Endpoint request body after transformations: {"resource":"/{proxy+}","path":"/articles","httpMethod":"GET","headers":null,"queryStringParameters":null,"pathParameters":{"proxy":"articles"},"stageVariables":null,"requestContext":{"path":"/{proxy+}","accountId":"709256083499","resourceId":"f6ylaf","stage":"test-invoke-stage","requestId":"test-invoke-request","identity":{"cognitoIdentityPoolId":null,"cognitoIdentityId":null,"apiKey":"test-invoke-api-key","cognitoAuthenticationType":null,"userArn":"arn:aws:iam::709256083499:user/john","apiKeyId":"test-invoke-api-key-id","userAgent":"Apache-HttpClient/4.5.x (Java/1.8.0_144)","accountId":"709256083499","caller":"AIDAIAGSMUU75JD52QLHM","sourceIp":"test-invoke-source-ip","accessKey":"ASIAJ55KS6U2VGDYQS4A","cognitoAuthenticationProvider":null,"user":"AIDAIAGSMUU75JD52QLHM"},"resourcePath":"/{proxy+}","httpMethod":"GET","apiId":"iou9is1ppg"},"body":null,"isBase64Encoded":false}
Fri Feb 16 03:33:29 UTC 2018 : Sending request to https://lambda.us-west-1.amazonaws.com/2015-03-31/functions/arn:aws:lambda:us-west-1:709256083499:function:TestSpring/invocations
Fri Feb 16 03:33:32 UTC 2018 : Received response. Integration latency: 3045 ms
Fri Feb 16 03:33:32 UTC 2018 : Endpoint response body before transformations: {"errorMessage":"2018-02-16T03:33:32.453Z 27bd96ed-12ca-11e8-a0cc-afd18e9c0ea1 Task timed out after 3.00 seconds"}
Fri Feb 16 03:33:32 UTC 2018 : Endpoint response headers: {X-Amz-Executed-Version=$LATEST, x-amzn-Remapped-Content-Length=0, Connection=keep-alive, x-amzn-RequestId=27bd96ed-12ca-11e8-a0cc-afd18e9c0ea1, Content-Length=114, X-Amz-Function-Error=Unhandled, Date=Fri, 16 Feb 2018 03:33:32 GMT, X-Amzn-Trace-Id=root=1-5a865109-dd9dab20a8b97b0c2c7c3a27;sampled=0, Content-Type=application/json}
Fri Feb 16 03:33:32 UTC 2018 : Execution failed due to configuration error: Malformed Lambda proxy response
Fri Feb 16 03:33:32 UTC 2018 : Method completed with status: 502

By default, lambda gives only 3 seconds for a response to take place.  Increasing the timeout to 10 seconds resolves this issue.


Nice demo files missing

The nice demo files from
https://github.com/ddemidov/ev3dev-lang-python/tree/master/demo
are missing. I suggest to add them as  it says in the other repo
"Deprecation warning! This version of python bindings has been deprecated in favor of rhempel/ev3dev-lang-python. This repository is no longer under active developement."

Duplicate of #47

@laszewsk - if you agree this is a duplicate of #47, please close this one

duplicate of #47


Registration of Optimade standard on FAIRsharing.org

The GO FAIR initiative has launched an effort to standardize how data repositories document their implementation of the FAIR principles, both in human-readable and in machine-readable form (a so-called "FAIR Implementation Profile).
Any metadata / API standards included in such a documentation (such as, for example, the Optimade standard) will need to be referenced via a persistent globally unique identifier, and the GO FAIR initiative suggest using the FAIRsharing.org standards registry.
Since we (Materials Cloud team & others) will participate in the first round of these workshops, we would like to register the Optimade standard on fairsharing.org - I believe this can in any case only be positive, since it is another place to advertise the existence of Optimade.
The standards registration form requires us to make a few choices; in particular it asks us to provide one contact name, email and ORCID
This issue is intended as a thread for people to discuss & provide suggestions for this form (will also be mentioned on the mailing list).

Sounds good to me, I'll be at the workshops you posted too. Do you think an OPTIMADE lightning talk would be appropriate at the main conference?

Thanks @ml-evs !
I haven't received much information about the main symposium, I'll ask the organisers for more info and report it here.

thanks to @gmrigna for registering the optimade standard on fairsharing.org: https://fairsharing.org/bsg-s001534/

thanks to @gmrigna for registering the optimade standard on fairsharing.org: https://fairsharing.org/bsg-s001534/

There is now a DOI assigned: https://doi.org/10.25504/FAIRsharing.xvfqAC

There is now a DOI assigned: https://doi.org/10.25504/FAIRsharing.xvfqAC

There is now even a DOI assigned: https://doi.org/10.25504/FAIRsharing.xvfqAC

There is now even a DOI assigned: https://doi.org/10.25504/FAIRsharing.xvfqAC


Rejecting anything doesn't work

On https://www.wikidata.org/wiki/Q4975456 and other items rejecting either the freebase identifier statement or the stated in reference or the publication date reference doesn't work. According to Firefox'/Chromiums network monitor the request to https://tools.wmflabs.org/wikidata-primary-sources/statements/2660076?state=wrong&user=Mineo succeeds, then the page reloads and everything's there again. None of the data disappears from https://tools.wmflabs.org/wikidata-primary-sources/entities/Q4975456 either.

Are you sure?
curl -i   https://tools.wmflabs.org/wikidata-primary-sources/entities/Q4975456
gives me a 404, so the entity no longer exists. It may be a caching issue, I'll check the caching code just in case.

I am pretty sure we can exclude a server side cache issue. Could it be a browser cache issue? In this case we'd probably want to set an Expiry time or Pragma: no-cache header.

Here's a screenshot showing the same thing on https://www.wikidata.org/wiki/Q7430618. The data is sent again after the POST request to https://tools.wmflabs.org/wikidata-primary-sources/statements/2934626?state=wrong&user=Mineo (at the top of the list of requests). Requesting (locally with curl, Firefox and Chromium and via curl from a different machine)

https://tools.wmflabs.org/wikidata-primary-sources/entities/Q7430618?dataset=freebase returns an unapproved statement
https://tools.wmflabs.org/wikidata-primary-sources/entities/Q7430618 correctly returns a 404
but https://tools.wmflabs.org/wikidata-primary-sources/entities/Q4975456?dataset=freebase does now only return a 404 as well.

If it's any help in locating the point at which something goes wrong, although the data gets shown again, my activities counter on https://tools.wmflabs.org/wikidata-primary-sources/status.html still increases :P

Ok, I see the bug. With the introduction of datasets at the frontend level, caching is now wrong.

The fix to this might have caused (or at least be related to) #39.

It should not, but I'll have a look again. The last change only flushes the cache and forces a reload of all statements for an entity from the persistent database when a statement of this entity has been updated.


SoftBody is not affected by space override

Godot version:
3.2
OS/device including version:
Windows 10
Issue description:
Area nodes have a space override which allows the gravity to be replaced. It works for RigidBody, but not for SoftBody.
Steps to reproduce:

Create a SoftBody within an Area.
Set the Area's Space Override to Replace and change its Gravity Vec.
The SoftBody will not be affected by the Area's overrides.

Minimal reproduction project:
This example project has a RigidBody and a SoftBody. The RigidBody falls to the right because of the Area's gravity override, but the SoftBody falls down.
SoftBodyBug.zip

@Chaosus Coud that one be tagged for 4.0 ?


Cannot call Auth::user() in blade layouts without a tweak

Assuming this route:
Route::get('/test', function() {
    Auth::login(User::find(1));
    return view('user.profile');
});

The file user/profile.blade.phpcontains
@extends('layouts.master')

@section('content')
     Hello {{ Auth::user()->name }}
@endsection

Working good.
But if I call Auth::user() from file layouts/master.blade.php, I have 100 nested level error. So I commented the line bellow in php.ini
zend_extension = "path/to/php_xdebug-xxx.dll

But I don't think it is recommended to comment out this line..

No bug. Just increase your max nesting level. We need a call stack greater than 100.


Rubocop styleguide

@dabit any thoughts?

Oh, sorry man. I am no longer involved in the maintenance of this gem. Maybe @chischaschos can help.

Seems to me that it is worth squashing multiple trivial commits into a single commit.
Thoughts?

@chischaschos everything squashed :dancer:

Awesome, thank you :bow: :smile:


yarn serve failed after adding resolve option in vue.config.js vue cli 3

i'm triying to create an alias in vue.config.js :
var path = require('path');
module.exports = {
resolve : {

	alias : {
		'core' : path.resolve(__dirname, '../core')
	}
}

}
then i run : yarn serve
and this is the result :
ERROR  Invalid options in vue.config.js: "resolve" is not allowed
please help !

You need to wrap that into the configureWebpack field.
https://cli.vuejs.org/guide/webpack.html#simple-configuration


About a Code tabs problem

Hello, my friend.
{{< codes C C++ >}}

When using Code tabs, I set C and C++, but I got the following error.
unrecognized character in shortcode action: U+002B '+'. Note: Parameters with non-alphanumeric args must be quoted

I want to know how to set up C++.

Hello, my friend.
Your error message say that

args must be quoted

So try this
{{< codes "c" "c++" >}}
{{< code >}}
  ```c

  ```
  {{< /code >}}
  {{< code >}}
  ```c++

  ```
  {{< /code >}}
{{< /codes >}}

Oh, I got it, thank you very much, it's alright.


Corrected documentation for VPageBreak.Location and HPageBreak.Location

This is a followup to issue #230. As I mentioned there, I believe the last changes are still incorrect. I believe that the commits in this pull request represent the actual behavior.

@BehindTheMath, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;

Thank you for correcting the content, as we appreciate developers in the VBA community to review our documentation for technical accuracy.
Office Scale Team


Debugging Angular library not possible in application through npm link

Command
serve
Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
I have a standard Angular 16 library and application in two different workspaces / repositories. I link the build library using npm link to the application and start it. I would expect to be able to debug the library sources from the application. But it does not work, as it can only debug to the level of the library.mjs. I have tested it with the chrome devtools and VSCode.
Minimal Reproduction

Clone the minimal app and library
In the library project execute

npm i
npm run build
cd ./dist/library
npm link

In the app project execute

npm i
npm link library

Set breakpoint in app.component.ts L12
Start Debugging (F5)
Step Into -> leads to library.mjs although a source map exists for this file which would lead to the .ts source file

Exception or Error
See above
Your Environment
Angular CLI: 16.2.3
Node: 18.17.0
Package Manager: npm 9.6.7
OS: win32 x64

Angular: 16.2.6
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1602.3
@angular-devkit/build-angular   16.2.3
@angular-devkit/core            16.2.3
@angular-devkit/schematics      16.2.3
@angular/cli                    16.2.3
@schematics/angular             16.2.3
rxjs                            7.8.1
typescript                      5.1.6
zone.js                         0.13.3

Anything else relevant?
I have opened another issue for VSCode here. But as it does not work in VSCode and Chrome devtools I assumed the issue is with the Angular setup.

This is working as expected.
Since you are using npm link you need to enable vendor sourcemaps, in your application build.
See: https://angular.io/guide/workspace-config#source-map-configuration

I am sorry. My mistake. I assumed that "sourceMap": true automatically sets vendor to true too.


Completions end point doesn't show the content, it does show the links t

Completions end point doesn't show the content, it does show the links though.
Do you see any issue? Thank you
What tests/changes do you suggest? Thx
import requests

url = "http://localhost:8000/v1/chat/completions"

body = {
    "model": "gpt3.5",
    "messages": [{"role": "user", "content": "Why does the moon create the tides"}]
}

response = requests.post(url, json=body, stream=True)

if response.status_code == 200:
    try:
        for line in response.iter_lines():
            if line:
                decoded_line = line.decode('utf-8')
                print(decoded_line)  # or process your line here
    except Exception as e:
        print(f"An error occurred: {e}")
else:
    print(f"Failed to get response, status code: {response.status_code}")

data: {"model":"gpt3.5","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}
data: {"model":"gpt3.5","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"role":"assistant","content":"\n\n"},"finish_reason":null}]}
data: {"model":"gpt3.5","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"role":"assistant","content":"---\n"},"finish_reason":null}]}
data: {"model":"gpt3.5","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"role":"assistant","content":"Citations:\n"},"finish_reason":null}]}
data: {"model":"gpt3.5","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"role":"assistant","content":"*[1. https://www.timeanddate.com/astronomy/moon/tides.html](https://www.timeanddate.com/astronomy/moon/tides.html)*"},"finish_reason":null}]}
data: {"model":"gpt3.5","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]}
data: {"model":"gpt3.5","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"role":"assistant","content":"*[2. [https://scijinks.gov/tides/](htt](https://scijinks.gov/tides/](https://scijinks.gov/tides/)*)

docker ps
CONTAINER ID   IMAGE                                  COMMAND                  CREATED         STATUS              PORTS                    NAMES
a6134c8abf07   jpyles0524/freeaskinternetapi:latest   "pdm run python -m u…"   6 minutes ago   Up 45 seconds       <IP_ADDRESS>:8000->8000/tcp   searchbackend
edd2e63a5a76   searxng/searxng:latest                 "/sbin/tini -- /usr/…"   6 minutes ago   Up 45 seconds       8080/tcp                 freeaskinternet-api-searxng-1
e33c6697f75d   missuo/freegpt35:latest                "docker-entrypoint.s…"   6 minutes ago   Up 45 seconds       3040/tcp                 llm-freegpt35
8506bd3ed524   moby/buildkit:buildx-stable-1          "buildkitd"              12 hours ago    Up About a minute                            buildx_buildkit_mybuilder0

Looks like the FreeGPT3.5 service I was using, is not currently working. This is not my service, so I will not be debugging that any further.


fix(.github): skip some regression tests in static build

What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area CI
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jasondellaluce
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/milestone 0.36.0

LGTM label has been added.  Git tree hash: c549fe950e1ffdd92ae2aeccde856aa1dc017243

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, jasondellaluce
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Cannot add new Purifier

Describe Your Problem:

Purchased a new Wine C545 and found that I could add this to homebridge, unsure if this still supported.
Logs:
Show the Homebridge logs here, remove any sensitive information.

[8/10/2023, 9:38:03 PM] [Hallway] error getting active state: no data (invalid or unregistered device?)
[8/10/2023, 9:38:03 PM] [Hallway] error getting current state: no data (invalid or unregistered device?)
[8/10/2023, 9:38:03 PM] [Hallway] error getting target state: no data (invalid or unregistered device?)
[8/10/2023, 9:38:03 PM] [Hallway] error getting air quality: no data (invalid or unregistered device?)
[8/10/2023, 9:38:03 PM] [Hallway] error getting plasmawave state: no data (invalid or unregistered device?)
[8/10/2023, 9:38:03 PM] [Hallway] error getting ambient light: no data (invalid or unregistered device?)
[8/10/2023, 9:38:03 PM] [Hallway] error getting rotation speed: no data (invalid or unregistered device?)
[8/10/2023, 9:38:06 PM] [Hallway] error getting active state: no data (invalid or unregistered device?)
[8/10/2023, 9:38:06 PM] [Hallway] error getting target state: no data (invalid or unregistered device?)
[8/10/2023, 9:38:06 PM] [Hallway] error getting air quality: no data (invalid or unregistered device?)
[8/10/2023, 9:38:06 PM] [Hallway] error getting current state: no data (invalid or unregistered device?)
[8/10/2023, 9:38:06 PM] [Hallway] error getting rotation speed: no data (invalid or unregistered device?)
Plugin Config:
Show your Homebridge config.json here, remove any sensitive information.

"accessories": [
{
"accessory": "WinixPurifier",
"name": "Hallway",
"model": "C545",
"deviceId": "84720777086D_01234567ab",
"serialNumber": "WINXAK98765432",
"exposeAirQuality": true,
"exposePlasmawave": true,
"exposeAmbientLight": true
Screenshots:

Environment:
Synology

Plugin Version:homebridge-winix-purifiers v1.2.0

Homebridge Version: v1.6.1

Node.js Version:

NPM Version:

Operating System:
Synology Docker

hey I'll take a look at this soon - I just started having issues this week with my own devices

my issues were unrelated, but I looked into this. the only way I can reproduce this error is if the deviceId does not match a registered C545 on an account. Have you had any more luck with this? If not, how did you acquire the deviceId of your C545?

I used the method where I proxied my phone to my computer. Opened the app and waited for it to hit.

any luck on this? This error usually means the device id in the config was entered incorrectly. Unfortunately the winix api doesn't give back useful information in the error messages, but I can reproduce this when I enter a random string for the device id.

Feel free to reopen this/create a new issue if you are still having issues here


responsive cropbox

Hey,
I am using this plugin and so far it has been really great. The only thing is that I am using it on a responsive web app. When I shrink the screen it doesn't get smaller according to the screen. Do you have any inputs for it?

Hey.
cropbox - Neno version.txt
Edited the code and now it works properly for devices. I hope this will help someone :D


About dataset

Hello!
I want to know how to modified the original dataset to a new one with only 3 classes?

Up
Thanks

you can run these scripts get it
------------------ 原始邮件 ------------------
发件人:                                                                                "xmba15/rail_marking"                                                                                @.>;
发送时间: 2022年11月22日(星期二) 凌晨5:11
@.>;
<EMAIL_ADDRESS>主题: Re: [xmba15/rail_marking] About dataset (Issue #12)
Up
Thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Please can you send me the dataset?
This is my<EMAIL_ADDRESS>thank you very much!

you can run these scripts get it
…
------------------ 原始邮件 ------------------ 发件人: "xmba15/rail_marking" @.>; 发送时间: 2022年11月22日(星期二) 凌晨5:11 @.><EMAIL_ADDRESS>主题: Re: [xmba15/rail_marking] About dataset (Issue #12) Up Thanks — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Please can you send me the dataset?
This is my<EMAIL_ADDRESS>thank you very much!

Up Thanks

Please can you send me the dataset?
This is my<EMAIL_ADDRESS>thank you very much!


Add a quick tour for new users

A quick tour designed by @JoukjeWillemsen is implemented for new users. It only appears once when users open the software in a browser for the first time.

@J535D165 The texts in the quick tour can be edited now. The quick tour shows up once after a major or minor release. It might be an idea of adding a "Get started" card at the end of the tour with an option "Don't show this quick tour again."

Thank you so much @terrymyc and @JoukjeWillemsen for all the work in this PR. Good to see it is future proof and robust.

Will our users know what the original purpose was of a floppy disk??

I think so. New title is: "Your projects are autosaved and stored locally". Subtitle: "Your screening decisions are automatically saved on your own device.".


GroupBy Issue

.Net core 3 Preview 8
I get an exception with a very basic query
var reviews = _context.Reviews.GroupBy(g => g.UserId).ToList();

or
var reviews = _context.Reviews.GroupBy(g => g.UserId).FirstOrDefault();

throw an exception: must be reducible node

It is client side groupby, it will throw error as translation failure in 3.0
Duplicate of #17068


[FEATURE] Support setting hostname via DHCPv4 client

Is your feature request related to a problem? Please describe.

Currently (0.3.0), the hostname is set by users manually or generated automatically in PXE boot installation if it's not provided.
Users might want to control nodes' hostname via DHCP server. We can provide an option to enable this hehavior.
Describe the solution you'd like

Harvester configuration: add an option in networks to enable this feature:

Turn on DHCLIENT_SET_HOSTNAME flag to support this. See /etc/sysconfig/network/dhcp.

Installer: add a check box to enable this behavior.

Describe alternatives you've considered

Additional context

A workaround is to use os.write_files to manually create a ``/etc/sysconfig/network/dhcp` file.

According to; https://docs.harvesterhci.io/v1.0/install/harvester-configuration/#oshostname
this should already work (but it doesn't)

@bk201 does this work already?

@bk201 does this work already?

No, DHCLIENT_SET_HOSTNAME is disabled by default in OpenSUSE. I'd suggest we add a configuration field in network configuration to turn this feature on specified networks.
The document @Jellyfrog mentioned is a legacy from k3os, I will create a PR to remove that statement first.

@tjjh89017 Any concern if we enable this feature? Thanks.

@tjjh89017 Any concern if we enable this feature? Thanks.

It will rely on users' correct configuration of DHCP server.
if users have a correct DHCP server, there is not a problem for this feature.

We can have a configuration field to enable this feature. (disabled by default)

Summarising current work on this feature:
My initial implementation (https://github.com/harvester/harvester-installer/pull/717) added an option to the installer to enable DHCLIENT_SET_HOSTNAME as described above. When that option is enabled, if the DHCP server specifies a hostname, the system will use that, and if the DHCP server doesn't specify a hostname, it'll fall back to using the manually set hostname. This works just fine, provided the DHCP server always exists, and always returns the same hostname.
@ibrokethecloud pointed out that we really don't want Harvester system hostnames to change after installation, which could happen if the DHCP server is later reconfigured, or breaks, or starts handing out different hostnames for whatever reason, and suggested taking the DHCP-supplied hostname (if set) only during installation, and using that as the default for the hostname setting. This still allows the DHCP server to supply a hostname, but once only, when the system is first installed, which means the hostname is never going to accidentally change later. The end result of that discussion is the implementation in https://github.com/harvester/harvester-installer/pull/726 (FTR, I prefer this version).

Validation Ongoing ->
Environment

Harvester

Version: Harvester-v1.4-20240923 /  Version: v1.4-97e60e1-head
Profile: QEMU/KVM
ui-source: Auto

Verification
1 Node Cluster

:green_circle: iPXE/PXE Based Boot With Hostname Left Out Of Config Comes From DHCP Server Side

 Given os.hostname is not present in the config-create.yaml

it should be pulling from DHCP as a first try place

 When dhcp.conf gets modified to set the hostname

option host-name "our-custom-host-name"; is included

 Then we observe that the `hostname` is set correctly both in UI & on node


feature: User defined custom handlers

Did you check the docs?

[X] I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.
Hi Folke,
Thanks for working on this, I've found it to be smooth and comfortable enough to adopt it wholesale (😅 despite having been contributing to packer).
On to the request: Currently all handlers for each spec are defined by lazy, however if a user wants to be able to run some custom logic when they load the plugin they must either add it to their config however in the case of logic that preprocess a spec they are unable to do anything other than do this logic before hand. This was a feature we discussed occasionally in packer.nvim to allow more flexibility for users.
Describe the solution you'd like
A user would be able to do something like
require('lazy').setup({
	{"author/plugin", highlights = {PluginHlName = {fg = "red", bg = "yellow" }}
	{"somany/plugins", complex_branch = "aforker:feat/improve-plugins"}
}, {
	custom_handlers = {
		highlights = function(spec)
			-- do my custom logic e.g.
			for name, hl in pairs(spec.highlights)
			  -- set highlights
            end,
		end
		complex_branch = function(spec)
			local fork_name, branch = vim.split(":", spec.complex_branch)
			spec.name = fork_name
			spec.branch = branch
		end
	}
}

(ignore all the names)
In the example above a user can then specify all their plugins but with the additional custom key of handling any highlights for a plugin that they want to override.
Keep in mind this could be adapted to way more things than this, this is just one example I currently have in mind for usage.
Describe alternatives you've considered
This is definitely a nice to have functionality as the examples I have above and other use cases can probably be done by just doing some logic ahead of specifying the plugin spec but with the ability to specify custom logic common or repeated bits of processing or additional functionality you might want to do can be specified once as a custom handler and added as need be.
Additional context
This functionality in the first instance would be very simple i.e. check if any valid custom handles are specified and call them with the spec. This way lazy doesn't have to do much but call the users own functions. I guess it would be important to also make sure that the user doesn't override any existing keys so you'd also want to check that theirs no conflict but ignore their handler if there is and print a warning.

(Any "you know what else could be supported?" feature request is pretty much an instant close; things may -- or may not -- be different for an actual, compelling, use case.)


Articles ideas.

Article about common possibilities, same as link

Article about super puper easy test with override and assign. Extend store creating to It. Make the effect of "override" function to store create function.

http-cancel
->
debounce
throttle
Make article with examples of http-cancel and implementation denounce and throttle upper.

Make article as I say to Maya about luwak with simple real world example as for usually normal people! No more technical more humanize!

OOP principles (and pattern implementation) in Lamp Luwak state management


WIP: Convert System.Security.Cryptography.Native.Apple from C++ to C.

Compiles, but blocked by the following issue: https://github.com/dotnet/corefx/issues/30484.

Please do the conversion in upstream repo, we'll pull it once merged

My bad, I didn't realise the C++ to C conversion is upstreamed.


added help entry for load_run command

What current issue(s) does this address?, or what feature is it adding?
The load_run command was undocumented in the help output
How did you solve this problem?
I added a line documenting usage for load_run
How did you make sure your solution works?
I tested it locally
Did you add any tests?
No
Are there any special changes in the code that we should be aware of?
No

Coverage remained the same at 67.306% when pulling 4e8d9e94454689ae0196472c16f0672cd17bcfca on hal0x2328:development into cd093a1afb327ab692f5d860c9fd05e123c0f3a7 on CityOfZion:development.


Bug: Can't resolve host name github.com

Steps to Reproduce

Install rye on WSL via curl -sSf https://rye-up.com/get | bash

I initially tried just rye self update and got the same error. I believe it was on 0.11.0, but I uninstalled and reinstalled without saving the debug info.
Expected Result
Rye to install and be able to bootstrap internals and install different version of Python.
Actual Result
Installs just fine, but it can't install the internals.
⚡ curl -sSf https://rye-up.com/get | bash
This script will automatically download and install rye (latest) for you.
######################################################################## 100.0%
Welcome to Rye!

This installer will install rye to /home/tbaur/.rye
This path can be changed by exporting the RYE_HOME environment variable.

Details:
  Rye Version: 0.11.0
  Platform: linux (x86_64)

Continue? yes
Installed binary to /home/tbaur/.rye/shims/rye
Bootstrapping rye internals
Downloading<EMAIL_ADDRESS>error: failed to fetch internal cpython toolchain<EMAIL_ADDRESS>
Caused by:
    0: download of https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.11.3%2B20230507-x86_64-unknown-linux-gnu-pgo%2Blto-full.tar.zst failed
    1: [6] Couldn't resolve host name (Could not resolve host: github.com)

Pinging github.com works just fine
⚡ ping github.com
PING github.com (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from lb-140-82-113-3-iad.github.com (<IP_ADDRESS>): icmp_seq=1 ttl=239 time=60.3 ms
64 bytes from lb-140-82-113-3-iad.github.com (<IP_ADDRESS>): icmp_seq=2 ttl=239 time=60.0 ms
64 bytes from lb-140-82-113-3-iad.github.com (<IP_ADDRESS>): icmp_seq=3 ttl=239 time=60.5 ms
64 bytes from lb-140-82-113-3-iad.github.com (<IP_ADDRESS>): icmp_seq=4 ttl=239 time=57.9 ms
64 bytes from lb-140-82-113-3-iad.github.com (<IP_ADDRESS>): icmp_seq=5 ttl=239 time=69.7 ms
^C
--- github.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3997ms
rtt min/avg/max/mdev = 57.877/61.667/69.659/4.104 ms

Installing via cargo or even  rye self update --rev f6f63d6c1f07913f12fa9ac4624d87658f2f5ad0 (which I think installs via cargo) works just fine.
   Installed package `rye v0.11.0 (https://github.com/mitsuhiko/rye?rev=f6f63d6c1f07913f12fa9ac4624d87658f2f5ad0#f6f63d6c)` (executable `rye`)
Updated!

rye 0.11.0
commit: 0.11.0 (f6f63d6c1 2023-07-18)
platform: linux (x86_64)
self-python<EMAIL_ADDRESS>symlink support: true

⚡ rye install 3.11.3
Bootstrapping rye internals
Downloading<EMAIL_ADDRESS>Checking checksum
success: Downloaded<EMAIL_ADDRESS>
That ended with an error because I completely forgot it was rye toolchain fetch <version>, but it was able to bootstrap the internals.
Running the actual command:
⚡ rye toolchain fetch 3.10                                                                                 68% 🕝19:49:41
Downloading<EMAIL_ADDRESS>Checking checksum
success: Downloaded<EMAIL_ADDRESS>
Version Info
rye 0.11.0
commit: 0.11.0 (f6f63d6c1 2023-07-18)
platform: linux (x86_64)
self-python<EMAIL_ADDRESS>symlink support: true
Stacktrace
Stack backtrace:
   0: rye::bootstrap::download_url_ignore_404
   1: rye::bootstrap::fetch
   2: rye::bootstrap::ensure_self_venv
   3: rye::cli::install::handle_requirement
   4: rye::cli::install::execute
   5: rye::main
   6: std::sys_common::backtrace::__rust_begin_short_backtrace
   7: std::rt::lang_start::{{closure}}
   8: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/ops/function.rs:284:13
      std::panicking::try::do_call
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:500:40
      std::panicking::try
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:464:19
      std::panic::catch_unwind
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panic.rs:142:14
      std::rt::lang_start_internal::{{closure}}
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/rt.rs:148:48
      std::panicking::try::do_call
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:500:40
      std::panicking::try
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:464:19
      std::panic::catch_unwind
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panic.rs:142:14
      std::rt::lang_start_internal
             at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/rt.rs:148:20
   9: main

This is quite likely a network error on your side. Going to close this as non actionable.


Make type conversions for ORACLE NUMBER type configurable

Current status
In order to use datatypes of remote systems, that are not implemented in EXASOL, these types have to be casted. Currently these cast rules are hard coded for each dialect.
Proposed change
I would like to make these cast rules configurable at virtual schema creation time, so that the predefined rules can be altered and extended. This way new types (a database extension or module) can be integrated easily. Furthermore some cast rules are ambiguous (is an Oracle NUMBER best casted to VARCHAR or DECIMAL?) and could be easily adapted for the particular use case.

A general approach is not feasible. We will introduce a parameter to configure if NUMBER is casted to VARCHAR or DECIMAL.

Fixed in v1.9.0


.exe - installer doesn't copy directories with extra resources during installation

Hi! Thanks for providing extraResources enhancement (https://github.com/loopline-systems/electron-builder/issues/230)
But I have an issue: installer doesn't copy directories with extra resources to target path during installation.
package.json:
  "build": {
    "dir": "app",
	"win": {
		"extraResources": [
			"./*.dll",
			"libs"
         ]
//.....

After running builder there is "libs" folder at the non-archived distribution at dist\MyApp-win32-x64
but when I execute installer package located at dist\win-x64\MyApp-%VERSION%.exe it doesn't copy lib folder to the %AppData%\Local\MyApp\app-%VERSION%\.

Please ask about it in the windows-installer. I have no clue why.

Duplicate of #230


Implement round-robin ranking calculation

For round-robin stages:

Add tie-breakers
Handle match games' results

Move the logic from the viewer to the manager.


Feature: Request to Modify Compression Icons in File Explorer

What feature or improvement do you think would benefit Files?
I want to request a change of compression icons in file explorer. Currently, when there is no associated compression application (such as 7z, WinRAR, etc.), icons for .7z files appear as a blank icon when it would be better to have a 7z icon and .zip files display the Files logo while it would also be better to have the same icon as the default file explorer.
Requirements
Develop a unified compressed file icon that can be used when no compression application is available.
Files Version
Version <IP_ADDRESS> / dev
Windows Version
22H2 22621.1848
Comments

Thanks for the feedback, I've added this to the project board.

I'm not sure if the issue is on my end, but the icons are still the same as before.


Use alt+click to toggle all rich/source diff

I like how I can alt+click the collapse/expand button when viewing files changed in a pull request. I would like to also be able to alt+click the "Display the source diff" and the "Display the rich diff" buttons to quickly switch diff viewers for all files on the page (where applicable).

We actually have a feature that default to the rich diff, but it caused the URL to change and the page to scroll unexpectedly. https://github.com/sindresorhus/refined-github/issues/2041
I think if someone fixes that feature you wouldn't need this one.

The opposite may also be true. If alt+click were supported then users could easily swap all from one to the other thereby mitigating somewhat the need to load rich diff by default. Plus, even with defaulting to rich diff, how would someone quickly go back to source diff (e.g. for view the raw source of markdown files for documentation, etc.).

In our case, that would be amazing to visualize screenshot diffs for visual testing in a PR. Right now they are all closed by default, need to click on each one...

This can be added, but it can't just .click() all the elements because it would cause https://github.com/sindresorhus/refined-github/issues/2041
It'd have to load the page manually (with fetchDom) and change the selected button. More info in https://github.com/sindresorhus/refined-github/issues/2041#issuecomment-493492294

Interesting. I've been using the following snippet as a custom search engine in chrome (mapped to the ghrd keyword) and I haven't seen any issues. I use it a good amount, even on large PRs with lots of images.
javascript: document.querySelectorAll('.js-rendered').forEach(button => button.click());

Happy 2 years birthday. Closing


Macro interpreter coerces to Int32 in arithmetic operations

In the following code which attempts to do 64-bit unsigned arithmetic in a macro, values get coerced to Int32 resulting in:
in bug.cr:7: Invalid Int32:<PHONE_NUMBER>
macro add
  {% x =<PHONE_NUMBER>_u64 %}
  puts "{{ x }}: {{ x.kind }}"
  {% y = x + 2_u64 %}
  puts "{{ y }}: {{ y.kind }}"
  {% z = y + 2_u64 %}
 puts "{{ z }}: {{ z.kind }}"
end

add

Version:
Crystal 0.24.2 (2018-03-19)
LLVM: 6.0.0
Default target: x86_64-pc-linux-gnu

Reduced example:
{{ (1_u64 + 2_u64).kind }} # => :i32

The reason for this is that NumberLiteral#kind is :int32 by default and not appropriately set in the macro operation.


Fixing the hostedservice

This one is also broken, so just restoring services here...

@svanharmelen thanks for noticing! I made all those changes w/o running the integration tests. @paulmey can we please run those sometime?

@ahmetalpbalkan would be nice if you can merge this relatively simple fix to get it off the table and working again...

LGTM, integration tests are running and the breaks are showing up in your email... :-)

@paulmey thx!


Add support to retrieve token info based on authentication header

Currently, the way we retrieve token information is based on the query string. I have a client which sends the access_token via header already. To avoid breaking current users, we could keep both:
curl -i http://localhost:8000/me?code=ZGQyN2UyYWUtODczNS00NzAzLTllNzEtMzJlZjM0ZTliY2E1

and
curl -i -H "Authentication: Bearer ZGQyN2UyYWUtODczNS00NzAzLTllNzEtMzJlZjM0ZTliY2E1" http://localhost:8000/me

What do you think about it? If you agree I can send a pull request.
https://github.com/RangelReale/osin/blob/1bb768e23b70885ba6dc41a4e1d633aff5591e52/info.go#L20-L22

I think PR #37 is the same as what you want, if you implement it the way I said on it, I can merge it.

Hi @RangelReale ! Just sent a PR #43. Let me know if you have any feedback.


[POST] 3.0.3 release announcement

@eseiler, @simonsasse Can you proofread and make suggestions?

And regarding the Emojis: I think its only possible with a plugin like this one: https://github.com/jekyll/jemoji
I don't know how important these emojis are for us :)

One thing: I don't know how important the line length is here, but if we want to do 120 line length (I think we usually do 120 here, too?), there are quite a few lines that are too long.

And regarding the Emojis: I think its only possible with a plugin like this one: https://github.com/jekyll/jemoji
I don't know how important these emojis are for us :)

This still needs to be resolved: Either remove emojis (like in the 3.0.2 announcement, or use the plugin)


Add Github Actions (CI)

name: CI

on:
  push:
    branches: [ $default-branch ]
  pull_request:
    branches: [ $default-branch ]

jobs:

  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Set up Go
      uses: actions/setup-go@v2
      with:
        go-version: 1.15

    - name: Build
      run: go build -v ./...

    - name: Test
      run: go test -v ./...

just an example ig

TBH if I was gonna move away from Travis, which if I were to change the CI from what it is ATM, then I'd probably move it to https://buddy.works

Issue fixed with PR https://github.com/cainy-a/gord/pull/12

Added by kreato in #13 I guess


aniseed initialization issue

This is a subtle issue, and I will use an example to show it. Suppose the aniseed configuration is as follows that the aniseed init entry point is aniseed_init.fnl.
vim.g["aniseed#env"] = {
  module = "aniseed_init",
  compile = true
}

Yet, if I launch nvim in any folder with aniseed_init.lua file, then aniseed will use it as the initialization file. I think the issue is that aniseed (or maybe fennel) add the current directory to the search path: it might be fine for fennel coding but not for nvim.

We can't work around this, you need to use a more specific init module name, maybe prefix it with something. This is not Fennel or Aniseed at work here but the Lua package.path and require system. You should think of all of the lua directories on your system that are under the package.path as one big merged directory. So you shouldn't put things directly under lua/*.lua with generic names that may collide with other files from other directories.
I recommend prefixing everything like so: https://github.com/Olical/dotfiles/blob/main/stowed/.config/nvim/fnl/dotfiles/init.fnl
I keep my init under dotfiles.init which will end up in lua/dotfiles/init.lua which shouldn't conflict with anything else unless something else has a file called lua/dotfiles/init.lua. This is a core tenant of Lua and something devs will just have to deal with I'm afraid.


Type-hints in ServerAPI (and global api)

Description
It would be nice to have typehints not just in docstrings but also in arguments. With that we might also add arguments with typehints to public functions in _api.py so IDE can actually show them.
Suggestion
Add type hints to ServerAPI methods, and modify automated_api.py to copy args/kwargs with typehints too.

I wonder if something like this could work: https://stackoverflow.com/a/71031698
We may need to somehow magically do that via "Docstrings" instead to have some form of backwards compatibility?

I already have prepared concept for stubs, but we first need to add typehints to ServerAPI.

These methods return ThumbnailContent not Union[str, None] as specified in docstring: get_folder_thumbnail, get_version_thumbnail, get_workfile_thumbnail