add tests for Thai

I notice that in the full date format, there is an extra space between the month and the year in Thai. for example, https://github.com/go-playground/universal-translator/pull/2/files#diff-20fe4fd4d29fb8bbfe77b061edd8c805R143
I would like to fix this but i'm not really sure what G is stand for. is it like AD and BE(Buddhist Era )?

Thanks for the pull request!
I'll review sometime today, just out with the family now.
as for G, I'll have to dig into that some more; where exactly did you see the "G"?

in here https://github.com/go-playground/universal-translator/blob/master/cmd/resources/data/rules/th.yaml#L60
unlike in the en version, i don't see any G in the date format
https://github.com/go-playground/universal-translator/blob/master/cmd/resources/data/rules/en.yaml#L22

Thanks I'll investigate further, maybe just an error/typo but will do some research to make sure; I don't know how Thai date is supposed to be output, that's why I need some help :)

i will help :)
well,it's not a typo
in Thai full date, we have an era word before the year number because we do use both AD and BE.
so from the format EEEE\u0E17\u0E35\u0E48 d MMMM G y, the full date (both in AD and BE) would be
วันจันทร์ที่ 2 มกราคม ค.ศ. 2016 (Monday 2 January AD 2016)
วันจันทร์ที่ 2 มกราคม พ.ศ. 2559 (Monday 2 January BE 2559)
i'm thinking of adding the eras(AD,BE) to the th.yml so the 'G' could be replace by them.
would that be okay?

Yes that would be OK.
And thanks! This is very y very helpful :thumbsup:

Thanksfor all your help,  I'll have to look at adding the era logic,  just realised I hadn't finished it yet.
It may take me a little while before I can add it, but I'll get it in there.

so got a little more research done into this and it looks like the CLDR data contains the era information and I'll extract it from there instead of the plural rules. I apologize for taking so long, just have a few projects and my time is spread pretty thin.
<eras>
					<eraNames>
						<era type="0">ปีก่อนคริสต์ศักราช</era>
						<era type="0" alt="variant">ก่อนสามัญศักราช</era>
						<era type="1">คริสต์ศักราช</era>
						<era type="1" alt="variant">สามัญศักราช</era>
					</eraNames>
					<eraAbbr>
						<era type="0">ปีก่อน ค.ศ.</era>
						<era type="0" alt="variant">ก.ส.ศ.</era>
						<era type="1">ค.ศ.</era>
						<era type="1" alt="variant">ส.ศ.</era>
					</eraAbbr>
					<eraNarrow>
						<era type="0">ก่อน ค.ศ.</era>
						<era type="0" alt="variant" draft="contributed">ก.ส.ศ.</era>
						<era type="1">ค.ศ.</era>
						<era type="1" alt="variant" draft="contributed">ส.ศ.</era>
					</eraNarrow>
				</eras>

no worries, should i remove the latest commit then? the one with the eras in th.yaml

yes that would be great.

Hey @prideloki
I've added the logic to parse the CLDR Era data and added the logic and pushed it in branch add-era-logic; could you merge that branch into yours and check that it is working? I did add the tests to parse a data with a negative year, but I can't read Thai so...

sure! will do :)
On Thu, May 5, 2016 at 8:48 AM, Dean Karn<EMAIL_ADDRESS>wrote:

Hey @prideloki https://github.com/prideloki
I've added the logic to parse the CLDR Era data and added the logic and
pushed it in branch add-era-logic; could you merge that branch into yours
and check that it is working? I did add the tests to parse a data with a
negative year, but I can't read Thai so...
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/go-playground/universal-translator/pull/2#issuecomment-217056469

Hi,
i have updated my test cases  here in https://github.com/prideloki/universal-translator/commit/a31ba1a740ac5b67c603b1e9d8bf0795d692bf45
for negative year(BC), the year comes before the era name.
also the era name in full date,right now, is using the era in abbreviation(ปีก่อน ค.ศ....) format not the full one(ปีก่อนคริสต์ศักราช)
thank you very much for implementing this feature right away after this PR :)

No Thanks you for all your help, I will definitely add the printing of the full name in the full date instead of abbrev sometime tonight.
I was wondering if you could help with one more small thing:
are you sure that Era comes after year? This may not be right but the CLDR data shows that Era comes before year, where G is the Era:
<dateFormats>
					<dateFormatLength type="full">
						<dateFormat>
							<pattern>EEEEที่ d MMMM G y</pattern>
						</dateFormat>
					</dateFormatLength>
					<dateFormatLength type="long">
						<dateFormat>
							<pattern>d MMMM G y</pattern>
						</dateFormat>
					</dateFormatLength>
					<dateFormatLength type="medium">
						<dateFormat>
							<pattern>d MMM y</pattern>
						</dateFormat>
					</dateFormatLength>
					<dateFormatLength type="short">
						<dateFormat>
							<pattern>d/M/yy</pattern>
						</dateFormat>
					</dateFormatLength>
				</dateFormats>

Google Translate ( I know not 100% reliable ) translates it to the same text regardless if it's placed before or after.
I rely heavily on the CLDR information, otherwise I would not have the time to maintain this package for every language.

yes, it's a specific case only if the year is negative(i.e. 300BC) otherwise it comes before the year.
that's what make sense to the native.
i know it would be hard to maintain if there is such a special case.

Ok I'm going to have to change translators backend structure a little bit to handle both BC and AD for all date formats like I split up Era. I will copy the AD information to the BC for all languages and then implement a cross-reference override table  to override BC values during locale info generation.
This way I can handle any other exceptions that come up. I kind of needed to do this anyways for the English language to display BC but only for years less than 0 as G isn't in it's datetime format.
It will take me a few more days but I'll try and get it done ASAP

Hey @prideloki sorry to bother you again, was working on this and had a question
in Thai the medium date "d MMM y" and Short Date "d/M/yy" should these denote the Era AD or BC... or are they assumed AD in which case I should display era only when it is BC?

yes, medium and short date, the era is assumed to be AD.
For BC, the era is only displayed in full and long date.

@joeybloggs could you share me the link to the th xml pls?
so far, i found this link http://unicode.org/repos/cldr/trunk/common/bcp47/calendar.xml
thank you.

Thanks @prideloki
here is the link th.xml
you could also download the CLDR data using this link CLDR Core
extract/unzip it on disk and it is in the following folder "core/common/main/th.xml"

Hey @prideloki
I've updated my code + tests to fix the AD vs BC Date's and DateTime's, if you could please verify that it is correct that would be awesome 👍
still have to add test for English, but can do that after I know Thai is working correctly.
P.S. Thanks you so much for all your help, I could not make this package better without help from people like yourself! 😃

Hi @joeybloggs , i have corrected the era logic in e94cdad and tested on my repo, all good :)

Thanks you as well for being actively updated this repo
this is my very first PR to the open source project, it was a great experience :)

Thanks @prideloki had them backwords,may the rest of your open source work go as good :)


Drop support for Python 3.7

Closes #872

Checklist

[ ] Added docstrings and type annotations
[ ] Added test coverage
[x] Updated changelog to describe any user-facing features or changed behavior

Thank you for the contribution!


Update concolor version

The last version of concolor breaks compatibility with v0.11.0, so when I try to enable or disable colors in my aplication, ariadne doesn't get the correct setting. Updating to the latest version fixes the issue.

Thanks!

Any chance of a release with this version?

I've just releases 0.3.0 with this change.


add summary size benchmarks

Description
This PR adds a summary size benchmark for the SharedTree.
Currently the benchmark covers the following scenarios:

tree with no edits
tree with inserted nodes (1, 10, 100)
tree with inserted, then subsequently removed nodes (1, 10, 100)

Reviewer Guidance
Questions

I did not add scenarios for larger trees, as after inserting 1000 nodes, the summarize function was taking way too long to execute (I aborted the test after ~5 mins). I am currently using the summarize function returned from the enableManualSummarization function from TestTreeProvider. Is this function expected to take this long?
Are there any additional scenarios I should add? As of now, I plan to add the following scenarios:

same scenarios with multiple clients
same scenarios with "narrow" instead of "wide" trees (i.e. larger depth with same nodes)
add scenarios with "move" edits

How should I structure this benchmark test? Should it be in the form of a unit test, or just a function that just returns the sizes of the different scenarios? As of now, I am using assert(size < someValue), where someValue is an arbritrary size I chose.

I have also updated the summarize function in the TestTreeProvider to return the ISummaryTree, as the getAttachSummary function does not seem to be working for trees with local changes.


Harbor integration does not work with v2 REST API

The current Harbor integration does not use the proper API routes for 2.0+
Output of the info page
2023-01-15 19:29:33 UTC | CORE | WARN | (pkg/util/log/log.go:618 in func1) | Deactivating Autoconfig will disable most components. It's recommended to use autoconfig_exclude_features and autoconfig_include_features to activate/deactivate features selectively
2023-01-15 19:29:33 UTC | CORE | WARN | (pkg/util/log/log.go:618 in func1) | Agent configuration relax permissions constraint on the secret backend cmd, Group can read and exec
2023-01-15 19:29:33 UTC | CORE | INFO | (pkg/util/log/log.go:585 in func1) | system_probe_config.enable_oom_kill detected, will enable system-probe with OOM Kill check
Getting the status from the agent.

===============
Agent (v7.41.1)
===============

  Status date: 2023-01-15 19:29:33.083 UTC<PHONE_NUMBER>083)
  Agent start: 2023-01-15 18:49:38.577 UTC<PHONE_NUMBER>577)
  Pid: 997757
  Go Version: go1.18.9
  Python Version: 3.8.14
  Build arch: amd64
  Agent flavor: agent
  Check Runners: 4
  Log Level: INFO

  Paths
  =====
    Config File: /etc/datadog-agent/datadog.yaml
    conf.d: /etc/datadog-agent/conf.d
    checks.d: /etc/datadog-agent/checks.d

  Clocks
  ======
    NTP offset: -331µs
    System time: 2023-01-15 19:29:33.083 UTC<PHONE_NUMBER>083)

  Host Info
  =========
    bootTime: 2022-09-24 22:01:17 UTC<PHONE_NUMBER>000)
    hostId: ec2a2cef-ee19-9c5f-9adf-70d03341bb1a
    kernelArch: x86_64
    kernelVersion: 5.15.0-1017-aws
    os: linux
    platform: ubuntu
    platformFamily: debian
    platformVersion: 20.04.4 LTS (Focal Fossa)
    procs: 276
    uptime: 2708h48m28s

  Hostnames
  =========
    host_aliases: [i-0bb158f4ac94e4312]
    hostname: i-0bb158f4ac94e4312
    socket-fqdn: datadog-c4c56
    socket-hostname: datadog-c4c56
    host tags:
      kube_node_role:node
    hostname provider: container
    unused hostname providers:
      'hostname' configuration/environment: hostname is empty
      'hostname_file' configuration/environment: 'hostname_file' configuration is not enabled
      aws: not retrieving hostname from AWS: the host is not an ECS instance and other providers already retrieve non-default hostnames
      azure: azure_hostname_style is set to 'os'
      fargate: agent is not runnning on Fargate
      fqdn: FQDN hostname is not usable
      gce: unable to retrieve hostname from GCE: GCE metadata API error: status code 401 trying to GET http://<IP_ADDRESS>/computeMetadata/v1/instance/hostname
      os: OS hostname is not usable

  Metadata
  ========
    agent_version: 7.41.1
    config_apm_dd_url:
    config_dd_url:
    config_logs_dd_url:
    config_logs_socks5_proxy_address:
    config_no_proxy: []
    config_process_dd_url:
    config_proxy_http:
    config_proxy_https:
    config_site:
    feature_apm_enabled: false
    feature_cspm_enabled: false
    feature_cws_enabled: false
    feature_logs_enabled: false
    feature_networks_enabled: false
    feature_networks_http_enabled: false
    feature_networks_https_enabled: false
    feature_otlp_enabled: false
    feature_process_enabled: false
    feature_processes_container_enabled: true
    flavor: agent
    hostname_source: container
    install_method_installer_version: datadog-3.7.2
    install_method_tool: helm
    install_method_tool_version: Helm

=========
Collector
=========

  Running Checks
  ==============

    container
    ---------
      Instance ID: container [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/container.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 961, Total: 147,485
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 16ms
      Last Execution Date : 2023-01-15 19:29:18 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:18 UTC<PHONE_NUMBER>000)

    containerd
    ----------
      Instance ID: containerd [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/containerd.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 180, Total: 28,620
      Events: Last Run: 1, Total: 102
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 134ms
      Last Execution Date : 2023-01-15 19:29:25 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:25 UTC<PHONE_NUMBER>000)

    cpu
    ---
      Instance ID: cpu [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/cpu.d/conf.yaml.default
      Total Runs: 160
      Metric Samples: Last Run: 9, Total: 1,433
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s
      Last Execution Date : 2023-01-15 19:29:32 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:32 UTC<PHONE_NUMBER>000)

    cri
    ---
      Instance ID: cri [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/cri.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 0, Total: 0
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 15ms
      Last Execution Date : 2023-01-15 19:29:24 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:24 UTC<PHONE_NUMBER>000)

    disk (4.7.1)
    ------------
      Instance ID: disk:e5dffb8bef24336f [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/disk.d/conf.yaml.default
      Total Runs: 160
      Metric Samples: Last Run: 872, Total: 142,672
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 56ms
      Last Execution Date : 2023-01-15 19:29:31 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:31 UTC<PHONE_NUMBER>000)

    file_handle
    -----------
      Instance ID: file_handle [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/file_handle.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 5, Total: 795
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s
      Last Execution Date : 2023-01-15 19:29:23 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:23 UTC<PHONE_NUMBER>000)

    harbor (2.2.0)
    --------------
      Instance ID: harbor:6d2a92a8025c604 [ERROR]
      Configuration Source: file:/etc/datadog-agent/conf.d/harbor.d/auto_conf.yaml
      Total Runs: 160
      Metric Samples: Last Run: 0, Total: 0
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 1, Total: 160
      Average Execution Time : 9ms
      Last Execution Date : 2023-01-15 19:29:28 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : Never
      Error: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: //api/systeminfo/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f746674d5e0>: Failed to establish a new connection: [Errno 111] Connection refused'))
      Traceback (most recent call last):
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
          conn = connection.create_connection(
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
          raise err
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
          sock.connect(sa)
      ConnectionRefusedError: [Errno 111] Connection refused

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
          httplib_response = self._make_request(
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
          conn.request(method, url, **httplib_request_kw)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
          super(HTTPConnection, self).request(method, url, body=body, headers=headers)
        File "/opt/datadog-agent/embedded/lib/python3.8/http/client.py", line 1256, in request
          self._send_request(method, url, body, headers, encode_chunked)
        File "/opt/datadog-agent/embedded/lib/python3.8/http/client.py", line 1302, in _send_request
          self.endheaders(body, encode_chunked=encode_chunked)
        File "/opt/datadog-agent/embedded/lib/python3.8/http/client.py", line 1251, in endheaders
          self._send_output(message_body, encode_chunked=encode_chunked)
        File "/opt/datadog-agent/embedded/lib/python3.8/http/client.py", line 1011, in _send_output
          self.send(msg)
        File "/opt/datadog-agent/embedded/lib/python3.8/http/client.py", line 951, in send
          self.connect()
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
          conn = self._new_conn()
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
          raise NewConnectionError(
      urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f746674d5e0>: Failed to establish a new connection: [Errno 111] Connection refused

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
          resp = conn.urlopen(
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen
          retries = retries.increment(
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
          raise MaxRetryError(_pool, url, error or ResponseError(cause))
      urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: //api/systeminfo/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f746674d5e0>: Failed to establish a new connection: [Errno 111] Connection refused'))

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py", line 1122, in run
          self.check(instance)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/harbor.py", line 116, in check
          api = HarborAPI(harbor_url, self.http)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/api.py", line 27, in __init__
          self._fetch_and_set_harbor_version()
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/api.py", line 71, in _fetch_and_set_harbor_version
          systeminfo = self._make_get_request(SYSTEM_INFO_URL)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/api.py", line 93, in _make_get_request
          resp = self.http.get(self._resolve_url(url), **kwargs)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/utils/http.py", line 356, in get
          return self._request('get', url, options)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/utils/http.py", line 420, in _request
          response = self.make_request_aia_chasing(request_method, method, url, new_options, persist)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/utils/http.py", line 426, in make_request_aia_chasing
          response = request_method(url, **new_options)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/api.py", line 73, in get
          return request("get", url, params=params, **kwargs)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/api.py", line 59, in request
          return session.request(method=method, url=url, **kwargs)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
          resp = self.send(prep, **send_kwargs)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
          r = adapter.send(request, **kwargs)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
          raise ConnectionError(e, request=request)
      requests.exceptions.ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: //api/systeminfo/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f746674d5e0>: Failed to establish a new connection: [Errno 111] Connection refused'))
      Instance ID: harbor:d604aed99a5a13ba [ERROR]
      Configuration Source: container:containerd://d2c77e05b388e49d96240c9d14c26727a46dd05a4172b40da09eb4fd48fd6292
      Total Runs: 10
      Metric Samples: Last Run: 0, Total: 0
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 1, Total: 10
      Average Execution Time : 50ms
      Last Execution Date : 2023-01-15 19:29:25 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : Never
      Error: Expecting value: line 1 column 1 (char 0)
      Traceback (most recent call last):
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/models.py", line 971, in json
          return complexjson.loads(self.text, **kwargs)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
          return _default_decoder.decode(s)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
          obj, end = self.raw_decode(s)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
          return self.scan_once(s, idx=_w(s, idx).end())
      simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py", line 1122, in run
          self.check(instance)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/harbor.py", line 116, in check
          api = HarborAPI(harbor_url, self.http)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/api.py", line 27, in __init__
          self._fetch_and_set_harbor_version()
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/api.py", line 71, in _fetch_and_set_harbor_version
          systeminfo = self._make_get_request(SYSTEM_INFO_URL)
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/harbor/api.py", line 97, in _make_get_request
          return resp.json()
        File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/requests/models.py", line 975, in json
          raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
      requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    io
    --
      Instance ID: io [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/io.d/conf.yaml.default
      Total Runs: 160
      Metric Samples: Last Run: 236, Total: 37,598
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s
      Last Execution Date : 2023-01-15 19:29:30 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:30 UTC<PHONE_NUMBER>000)

    istio (4.3.0)
    -------------
      Instance ID: istio:3a20ae27be536b85 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/istio.d/auto_conf.yaml
      Total Runs: 159
      Metric Samples: Last Run: 4,608, Total: 689,792
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 431ms
      Last Execution Date : 2023-01-15 19:29:26 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:26 UTC<PHONE_NUMBER>000)

      Instance ID: istio:4de2c510422964e0 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/istio.d/auto_conf.yaml
      Total Runs: 159
      Metric Samples: Last Run: 1,688, Total: 268,392
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 171ms
      Last Execution Date : 2023-01-15 19:29:19 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:19 UTC<PHONE_NUMBER>000)

      Instance ID: istio:6e259a1d4cd4498a [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/istio.d/auto_conf.yaml
      Total Runs: 159
      Metric Samples: Last Run: 1,536, Total: 244,224
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 160ms
      Last Execution Date : 2023-01-15 19:29:27 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:27 UTC<PHONE_NUMBER>000)

      Instance ID: istio:e5d0dbf1fc4a3e81 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/istio.d/auto_conf.yaml
      Total Runs: 159
      Metric Samples: Last Run: 136, Total: 21,624
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 20ms
      Last Execution Date : 2023-01-15 19:29:20 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:20 UTC<PHONE_NUMBER>000)

    kubelet (7.5.1)
    ---------------
      Instance ID: kubelet:5bbc63f3938c02f4 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/kubelet.d/conf.yaml.default
      Total Runs: 120
      Metric Samples: Last Run: 1,194, Total: 139,271
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 5, Total: 599
      Average Execution Time : 305ms
      Last Execution Date : 2023-01-15 19:29:23 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:23 UTC<PHONE_NUMBER>000)

    load
    ----
      Instance ID: load [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/load.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 6, Total: 954
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s
      Last Execution Date : 2023-01-15 19:29:22 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:22 UTC<PHONE_NUMBER>000)

    memory
    ------
      Instance ID: memory [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/memory.d/conf.yaml.default
      Total Runs: 160
      Metric Samples: Last Run: 20, Total: 3,200
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s
      Last Execution Date : 2023-01-15 19:29:29 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:29 UTC<PHONE_NUMBER>000)

    network (2.9.2)
    ---------------
      Instance ID: network:d884b5186b651429 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/network.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 234, Total: 36,054
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 3ms
      Last Execution Date : 2023-01-15 19:29:21 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:21 UTC<PHONE_NUMBER>000)

    ntp
    ---
      Instance ID: ntp:d884b5186b651429 [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/ntp.d/conf.yaml.default
      Total Runs: 3
      Metric Samples: Last Run: 1, Total: 3
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 1, Total: 3
      Average Execution Time : 226ms
      Last Execution Date : 2023-01-15 19:19:45 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:19:45 UTC<PHONE_NUMBER>000)

    oom_kill
    --------
      Instance ID: oom_kill [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/oom_kill.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 3, Total: 70
      Events: Last Run: 3, Total: 70
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s
      Last Execution Date : 2023-01-15 19:29:28 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:28 UTC<PHONE_NUMBER>000)

    uptime
    ------
      Instance ID: uptime [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/uptime.d/conf.yaml.default
      Total Runs: 159
      Metric Samples: Last Run: 1, Total: 159
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 0, Total: 0
      Average Execution Time : 0s
      Last Execution Date : 2023-01-15 19:29:20 UTC<PHONE_NUMBER>000)
      Last Successful Execution Date : 2023-01-15 19:29:20 UTC<PHONE_NUMBER>000)

========
JMXFetch
========

  Information
  ==================
  Initialized checks
  ==================
    no checks

  Failed checks
  =============
    no checks

=========
Forwarder
=========

  Transactions
  ============
    Cluster: 0
    ClusterRole: 0
    ClusterRoleBinding: 0
    CronJob: 0
    DaemonSet: 0
    Deployment: 0
    Dropped: 0
    HighPriorityQueueFull: 0
    Ingress: 0
    Job: 0
    Namespace: 0
    Node: 0
    PersistentVolume: 0
    PersistentVolumeClaim: 0
    Pod: 0
    ReplicaSet: 0
    Requeued: 0
    Retried: 0
    RetryQueueSize: 0
    Role: 0
    RoleBinding: 0
    Service: 0
    ServiceAccount: 0
    StatefulSet: 0

  Transaction Successes
  =====================
    Total number: 579
    Successes By Endpoint:
      check_run_v1: 159
      intake: 98
      metadata_v1: 5
      series_v2: 317

  On-disk storage
  ===============
    On-disk storage is disabled. Configure `forwarder_storage_max_size_in_bytes` to enable it.

  API Keys status
  ===============
    API key ending with 16e13: API Key valid

==========
Endpoints
==========
  https://app.datadoghq.com - API Key ending with:
      - 16e13

==========
Logs Agent
==========

  Logs Agent is not running

============
System Probe
============
  Status: Running
  Uptime: 39m45.001075603s
  Last Updated: 2023-01-15 19:29:24 UTC<PHONE_NUMBER>000)

  OOM Kill
  ========
    Status: Running
    Last Check: 2023-01-15 19:29:13 UTC<PHONE_NUMBER>000)

=============
Process Agent
=============

  Version: 7.41.1
  Status date: 2023-01-15 19:29:33.088 UTC<PHONE_NUMBER>088)
  Process Agent Start: 2023-01-15 18:49:38.85 UTC<PHONE_NUMBER>850)
  Pid: 997868
  Go Version: go1.18.9
  Build arch: amd64
  Log Level: INFO
  Enabled Checks: [process rtprocess]
  Allocated Memory: 27,627,032 bytes
  Hostname: i-0bb158f4ac94e4312

  =================
  Process Endpoints
  =================
    https://process.datadoghq.com - API Key ending with:
        - 16e13

  =========
  Collector
  =========
    Last collection time: 2023-01-15 19:29:25
    Docker socket:
    Number of processes: 139
    Number of containers: 29
    Process Queue length: 0
    RTProcess Queue length: 0
    Connections Queue length: 0
    Event Queue length: 0
    Pod Queue length: 0
    Process Bytes enqueued: 0
    RTProcess Bytes enqueued: 0
    Connections Bytes enqueued: 0
    Event Bytes enqueued: 0
    Pod Bytes enqueued: 0
    Drop Check Payloads: []

=========
APM Agent
=========
  Status: Running
  Pid: 997824
  Uptime: 2394 seconds
  Mem alloc: 9,955,440 bytes
  Hostname: i-0bb158f4ac94e4312
  Receiver: <IP_ADDRESS>:8126
  Endpoints:
    https://trace.agent.datadoghq.com

  Receiver (previous minute)
  ==========================
    No traces received in the previous minute.

  Writer (previous minute)
  ========================
    Traces: 0 payloads, 0 traces, 0 events, 0 bytes
    Stats: 0 payloads, 0 stats buckets, 0 bytes

==========
Aggregator
==========
  Checks Metric Sample: 1,868,245
  Dogstatsd Metric Sample: 38,176
  Event: 173
  Events Flushed: 173
  Number Of Flushes: 159
  Series Flushed: 1,722,654
  Service Check: 3,802
  Service Checks Flushed: 3,953

=========
DogStatsD
=========
  Event Packets: 0
  Event Parse Errors: 0
  Metric Packets: 38,175
  Metric Parse Errors: 0
  Service Check Packets: 0
  Service Check Parse Errors: 0
  Udp Bytes: 6,203,336
  Udp Packet Reading Errors: 0
  Udp Packets: 20,626
  Uds Bytes: 0
  Uds Origin Detection Errors: 0
  Uds Packet Reading Errors: 0
  Uds Packets: 1
  Unterminated Metric Errors: 0

=====================
Datadog Cluster Agent
=====================

  - Datadog Cluster Agent endpoint detected: https://<IP_ADDRESS>:5005
  Successfully connected to the Datadog Cluster Agent.
  - Running: 7.41.1+commit.4f39b9e

=============
Autodiscovery
=============
  Enabled Features
  ================
    containerd
    cri
    kubernetes

====
OTLP
====

  Status: Not enabled
  Collector status: Not running

Additional environment details (Operating System, Cloud provider, etc):
Helm version: 2.6.2
Cloud Provider: AWS
K8S version: 1.25.2
Steps to reproduce the issue:

Install Harbor via helm
Install Datadog via helm
Wait for check to run

Describe the results you received:
The auto_conf and annotated autodiscovery configs lead to check failures.  It appears both are attempting to poll /api/systeminfo/ when it should be polling /api/v2.0/systeminfo/ It appears at some point harbor switched their API schema and the integration was not updated to match.  I looked at both the harbor integration and harbor config and didn't see options to either force v1 or v2.
Describe the results you expected:
Working harbor metrics and checks
Additional information you deem important (e.g. issue happens only occasionally):
If I poll my deployed harbor instance for https://<redacted>/api/systeminfo/ I get a 404, however if I poll for https://<redacted>/api/v2.0/systeminfo/ I get a payload back
{"auth_mode":"oidc_auth","current_time":"2023-01-15T20:06:11.860Z","external_url":"https://<redacted>","harbor_version":"v2.6.2-498e7e21","has_ca_root":false,"notification_enable":true,"project_creation_restriction":"everyone","read_only":false,"registry_storage_provider_name":"filesystem","registry_url":"<redacted>","self_registration":false,"with_chartmuseum":true,"with_notary":true}

Similar issue I am facing. For autodiscovery of Harbor in datadog, I am adding the below annotations in Harbor's core, exporter, jobservice and registry deployments, annotations are getting reflected in spinned pod. In annotaations url is my harbor instance. In Harbor UI Created the Global Rotot account, name of robot account is username and Token is password.
Still no Harbor metrics in Datadog. Kindly suggest where and what I am doing wrongg.
ad.datadoghq.com/harbor.check_names: '["harbor"]' ad.datadoghq.com/harbor.init_configs: '[{}]' ad.datadoghq.com/harbor.instances: '[{"url": "https://harbor.blah.blah.com/", "username": "robot$datadog", "password": "rotot4$token"}]'

You only need to add that annotation to the core or nginx pods, the other services don't export metrics directly.  As for why the check is not working you would need to look at the agent logs for the node the container/pod is running on.  You can also shell into the datadog container and manually run the check agent check harbor to see the errors

Hello @andysnowden! Thanks for opening this issue and bringing this to our attention. Can I kindly ask that you create a support ticket for this issue as well so we can better track and triage this issue? I'll create a card in our backlog to look into this as well. Thanks in advance!

@andysnowden I've been having a look at this and it sounds like something might be failing specifically for your setup. The integration tries to determine the URL dynamically by inferring your version of harbor, and it looks like that might be failing for some reason.
Manually curling the /api/version endpoint, and providing us the harbor version that you're using would also be helpful (I've just tested it on 2.3.2 and it worked, though it's far from being the latest).
Did you end up creating a support ticket for this? That would probably be the best way to look further into the issue.

Closing for inactivity but feel free to reopen if there's any news.


AVRO-3497 Simplify conditional expression

Make sure you have checked all steps below.
Jira

[ ] My PR addresses the following Avro Jira issues and references them in the PR title. For example, "AVRO-1234: My Avro PR"

https://issues.apache.org/jira/browse/AVRO-3497
Parent Issue: https://issues.apache.org/jira/browse/AVRO-3383

Tests

[ ] My PR adds the following unit tests:  Added coverage for equals

Commits

[ ] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public functions and the classes in the PR contain Javadoc that explain what it does

@zcsizmadia and @martin-g

I will create a separate PR for the other equals checks and add appropriate tests.

Thank you, @KyleSchoonover !


Added try-except around getgpu so the function does not crash on non-gpu hosts

I am writing unit test on some deep learning code that might run on cpu-only hosts. Currently all functions crash if you run them on a host without nvidia-smi. With this change the function returns an empty array instead of crash.

@ifeherva  Thank you for submitting you pull request.
It seems like a good and straightforward idea. I see no problem in merging the pull request.
Unfortunately, I'm a busy for the rest of the week, so I wont have time to look at it until next week.

Any update on this?

@ifeherva I'm sorry for being so slow to respond to this pull request. I had to shift my priorities temporarily elsewhere and then summer hit Europe :-)
I have tested the proposed code in both python 2.7 and 3.5, and it does not produce any errors in the demo script.


Use the registered names for Registry.MOB_EFFECT and Registry.MENU

The registries are currently called STATUS_EFFECT and CONTAINER. I think we should use the registered names for every registered object, which includes Registry.MENU and Registry.STATUS_EFFECT as well.
(This change was originally part of #1048, but I took it out because it's a major change compared to the other changed names.)

I disagree. Let's look at the registry key for world and dimension(options). Both have the same instance, yet they are kept in different fields and cannot be assigned to each other due to different generic types. Mojang definitely ain't using the registered names for one of these two fields.

See #3008

That's the opposite issue (keys matching the real IDs = keys not matching Yarn Registry object names), but yeah I agree that this is not planned.


Avoid use of Config and Setting

They make for poor design.

:+1:

Avoid use of anything that requires more than a text editor to change.

Graham and I were speaking about refactoring the settings and config altogether. Stay tuned :)

Done well enough for now.


Ukraine Family Scheme visa shut

Ukraine Family Scheme visa shut
Trello card
https://trello.com/c/LBfVatlc/5685-ukraine-family-scheme-closed
Context
https://www.bbc.co.uk/news/uk-politics-68335943
Changes proposed in this pull request
Amend wording re Ukraine Family Scheme
Guidance to review

@MaxineCl I think we can safely deploy this as we are literally repeating advice on GOV.UK


Cannot remove stopped container

Description
After containerd is restarted, containerd may fail to remove a container if that container stopped during the downtime of containerd.
After containerd was restarted, we observed the following error message:
time="2022-11-11T10:39:26.913816196Z" level=error msg="Failed to load container status for \"e7170e463a4048bec18d6ac02b307343984c46ca0b32b1b2c6ebf6787a44a90c\"" error="failed to load task: error creating fifo /run/containerd/io.containerd.grpc.v1.cri/containers/e7170e463a4048bec18d6ac02b307343984c46ca0b32b1b2c6ebf6787a44a90c/io/1708700293/e7170e463a4048bec18d6ac02b307343984c46ca0b32b1b2c6ebf6787a44a90c-stdout: no such file or directory"

The container with ID e7170e463a4048bec18d6ac02b307343984c46ca0b32b1b2c6ebf6787a44a90c completed when containerd was down (or when containerd was going down). We expected containerd to remove that stopped container but this did not happen. The container with ID e7170e463a4048bec18d6ac02b307343984c46ca0b32b1b2c6ebf6787a44a90c got somehow stuck on the K8s node.
I would like to mention that a couple of years ago there was another issue 4655. The same error was reported after containerd restart.
Maybe it would help to shed some light on the current issue.
Steps to reproduce the issue
We did not manage to reproduce this issue. I guess one should be very precise with the timing.
This issue probably occurs when a container stops right at the time when containerd goes down.
Describe the results you received and expected
We expect that containerd after its restart is able to properly remove those containers which have stopped.
What version of containerd are you using?
1.5.13
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response

Linux kernel 5.10.141
runc 1.0.3

Hi @syurevich , would you mind to provide more log about this? especially when containerd restart. Thanks

Hi @fuweid, unfortunately, we currently do not have more logs. This issue seem to happen quite rarely. I will provide more logs as soon as it happens again.

@syurevich Please feel free to reopen it when you have any progress. Thanks for the reporting.


Geyser Extras doesn't working

So Geyser itself works and stuff but when i use command /ge or so it says that I can't do that because of the error.
When i looked up in to the console it spams me this:
[16:33:55] [Server thread/WARN]: [GeyserExtras] Task #66 for GeyserExtras v1.20.6-v1.1.1 generated an exception
java.lang.NoClassDefFoundError: Could not initialize class dev.letsgoaway.geyserextras.spigot.BedrockPlayer
	at dev.letsgoaway.geyserextras.spigot.GeyserExtras.update(GeyserExtras.java:106) ~[?:?]
	at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4085-Spigot-b754dcc-d9209ed]
	at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4085-Spigot-b754dcc-d9209ed]
	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1339) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4085-Spigot-b754dcc-d9209ed]
	at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:391) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4085-Spigot-b754dcc-d9209ed]
	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1242) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4085-Spigot-b754dcc-d9209ed]
	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1054) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4085-Spigot-b754dcc-d9209ed]
	at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4085-Spigot-b754dcc-d9209ed]
	at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchFieldError: Class org.bukkit.entity.EntityType does not have member field 'org.bukkit.entity.EntityType CHEST_MINECART' [in thread "Server thread"]
	at dev.letsgoaway.geyserextras.spigot.BedrockPlayer.<clinit>(BedrockPlayer.java:409) ~[?:?]
	... 9 more

Is there a way to fix this or the problem is because my server is on 1.20.4?

geyser extras does not support 1.20.4

I've just announced the future update of GeyserExtras 2.0 which will support versions from 1.12+. You can get updates for it on my discord here: https://discord.gg/ekvDjYZKsU

I've just announced the future update of GeyserExtras 2.0 which will support versions from 1.12+. You can get updates for it on my discord here: https://discord.gg/ekvDjYZKsU

yayyy


Only one file displays when uploading two files in one ADLS Gen1 account if Storage Explorer is installed by snap on Ubuntu 20.04

Storage Explorer Version: 1.28.0
Build Number: 20230209.2
Branch: rel/1.28.0
Platform/OS: Linux Ubuntu 20.04
Architecture: x64
How Found: From running test case
Regression From: Not a regression
Bug Description

Only one file displays when uploading two files.
Folders display when uploading more than two files.

Steps to Reproduce

Install Storage Explorer by snap on Ubuntu 20.04.
Expand the node 'Data Lake Storage Gen1' node -> Open one adls gen1 account.
Click 'Upload -> Upload Files...'.
Select two files -> Click 'Open'.
Check whether two files display in the explorer.

Expected Experience
Two files display.

Actual Experience
Only one file displays.
)
Additional Context

This issue doesn't reproduce when Storage Explorer is installed by tar.gz.
This issue doesn't reproduce on Ubuntu 22.04.

Gen1 is going away imminently. Going to won't fix since the reproduction is so specific.


${workspaceFolder} contains a leading slash on windows systems. It must not.

Does this issue occur when all extensions are disabled?: Yes/No

VSCODE-About:
Version: 1.92.0 (user setup)
Commit: b1c0a14de1414fcdaa400695b4db1c0799bc3124
Date: 2024-07-31T23:26:45.634Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19045
Steps to Reproduce:

use a windows system with vscode
use ${workspaceFolder} in a .vscode\settings.json value
print the calculated value (I am using asciidocjs and print the attribute into a .adoc document, then look at the preview)

the value will be something like "/c:/abc"
it should be "c:\abc"
The direction of the slash actually doesn't matter so much, but the leading slash breaks certain tools, which are unfortunately unable to execute logic which could remove the slash.

Which setting are you setting are you using?

Which setting are you setting are you using?

i added it to the original post :)

Thanks! VS Code doesn't do variable resolving for all settings. Since that's an extension provided setting, it's the extension that provides the setting that's including that slash.

Created a ticket here:
https://github.com/asciidoctor/asciidoctor-vscode/issues/897


Importing styles with inline loaders leads to commonjs dependencies warning

🐞 Bug report
Command (mark with an x)

[ ] new
[x] build
[x] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] xi18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?

 Yes, the previous version in which this bug was not present was: ng9
Description
Import e.g. some global styles via inline loaders in component's file
import '!style-loader!css-loader!./some-global-styles.css';

start server or build and see a commonjs dependencies  usage warning
WARNING in D:\projects\issues\angular-cli-styles-require-common-js-warning\src\app\app.component.ts depends on '!style-loader!css-loader!./some-global-styles.css'. CommonJS or AMD
dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

🔬 Minimal Reproduction

clone https://github.com/artaommahe/angular-cli-styles-require-common-js-warning
run server yarn start
see warning

🔥 Exception or Error

WARNING in D:\projects\issues\angular-cli-styles-require-common-js-warning\src\app\app.component.ts depends on '!style-loader!css-loader!./some-global-styles.css'. CommonJS or AMD
dependencies can cause optimization bailouts.

This is expected as the style-loader generates commonjs code by default.  The style-loader has an esModule option (documentation) which enables module code usage.  For information regarding specifying loader options with the inline syntax, please see: https://webpack.js.org/concepts/loaders/#inline
Also please note that while usage of Webpack specific features is possible, it is not officially supported.


generated code for "oneof double" is wrong

Title
generated code for "oneof double" is wrong
Version
What version of csproto are you using?
v0.6.2
Description
The generated code for a oneof with a float and/or double is incorrect.
Repro steps
message Foo {
    oneof bar {
        double baz = 1;
    }
}

Generates:
case 1: // bar.baz (oneof,double)
	var ov Foo_Baz
	if wt != csproto.WireTypeFixed64 {
		return fmt.Errorf("incorrect wire type %v for tag field 'baz' (tag=1), expected 1 (64-bit)", wt)
	}
	if v, err := dec.DecodeFixed64(); err != nil { // <-- should be DecodeFloat64()
		return fmt.Errorf("unable to decode double value for field 'baz' (tag=1): %w", err)
	} else {
		ov.Baz = v // <-- Cannot use 'v' (type uint64) as the type float64
	}
	m.Bar = &ov

Thanks for the report @kung-foo. PRs are welcome if you'd like to take a shot and fixing the template.  If not I'll try to get to it soon.


rebase of #3679:  Fix wc gnu test suite compatibility - Closes: #3678

rebase of #3679 @sylvestre @gkalas8.
Authorship info has been preserved

@sylvestre tail problem and crosscompile issue. So this is good to go

cool!
Congrats! The gnu test tests/misc/wc-files0 is no longer failing!


When set outboundTrafficPolicy: mode: REGISTRY_ONLY, internal svc.cluster.local traffic is blocked.

When set outboundTrafficPolicy: mode: REGISTRY_ONLY, internal svc.cluster.local traffic is blocked when I access a service in a different namespace from a pod. Is this an expected behavior? Do we need to add it to service entry?
If so, what's the way of doing that? I tried the following, but it does NOT work.
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: svc.cluster.local
spec:
  hosts:
  - "*.svc.cluster.local"
  ports:
  - number: 80
    name: http
    protocol: HTTP
  - number: 443
    name: https
    protocol: HTTPS
  resolution: NONE
  location: MESH_EXTERNAL

I found a solution using wildcard for accessing services in a namespace. Else I have to manually list every host.
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: svc.cluster.local
spec:
  hosts:
  - "*.namespace.svc.cluster.local"
  ports:
  - number: 80
    name: http
    protocol: HTTP
  resolution: NONE
  location: MESH_INTERNAL
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: svc-cluster-local-routing
spec:
  hosts:
  - "*.namespace.svc.cluster.local"
  http:
  - route:
    - destination:
        host: "cluster-local-gateway.istio-system.svc.cluster.local"


fix(@angular/cli): add ng eject with a message about the disabling

Fix #10169

Still waiting on @StephenFluin comment on the message itself.


"SKU" property for app service

Hi Team,
Appreciated your effort on contributing this document.
Recently we notice that when trying to get property “sku”, it seems though it shows on App Service Portal, but this property is not mentioned in ARM official document:

https://docs.microsoft.com/en-us/azure/templates/microsoft.web/sites?tabs=json
We are actually trying to get the "sku" property for this app for Azure Policy, but did not succeeded.
It will be helpful if the document could clarify why the "sku" could be observe but not able to obtain. Or if it could be obtained someday, it will also be really helpful if this could be documented, thank you!

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

ID: 6213751a-c839-33ed-3c31-00fc75144666
Version Independent ID: 32691df7-c690-ea27-57bf-8b7e71e0060d
Content: Deploy apps predictably with ARM - Azure App Service
Content Source: articles/app-service/deploy-complex-application-predictably.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

Thank you for reaching out. At this time we are reviewing the ask and will provide an update as appropriate

@ingridxinzhuo163 Thanks for the feedback! If I am understanding your query right you are trying to deploy App services using ARM template and looking for SKU property, Suggest you to refer to this document might be helpful: https://docs.microsoft.com/en-us/azure/app-service/quickstart-arm-template?toc=%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftoc.json&pivots=platform-linux

@ingridxinzhuo163 We will now proceed to close this thread. If there are further questions regarding this matter, please let us know.


feat(Examples): Speedup TFT update in UNet-highres-demo and aisegment_unet-demo for MAX78000

Pull Request Template
Description
This adds DMA transfer to TFT update for FTHR_RevA in UNet-highres-demo and aisegment_unet-demo SDK examples of MAX78000 to speed up the display update.
Checklist Before Requesting Review

[X] PR Title follows correct guidelines.
[X] Description of changes and all other relevant information.
[ ] (Optional) Link any related Github issues using a keyword
[ ] (Optional) Provide info on any relevant functional testing/validation.  For API changes or significant features, this is not optional.

Thanks @vicloginov, can you add your approval in addition to the comment?  Afterwards I can merge


fend: 1.4.3 -> 1.4.5

Description of changes

Homepage: https://github.com/printfn/fend
Changelog: https://github.com/printfn/fend/blob/main/CHANGELOG.md
This update introduces new dependencies openssl and pkg-config.
The project is now licensed under mit instead of GPL3.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[X] sandbox = true

[X] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/1546


Add a full-post view

Currently the reader shows preview cells and then it opens the post in Safari. Add an intermediate step when you swipe left that first opens the post in a full-details view with the entire article being readable, etc.
Add a “share button” to that screen to enable opening the post in Safari and other apps. (Maybe add a Safari button if that seems like a common need)

I would love this.  The value of a reader, for me, is focusing on the content without all the styling and ads that dominate sites.  Swiping to press a button to simply open the original article at the original URL (complete with ads, and trackers, and styling) seems to defeat the purpose of a reader to me.

Excellent! That’s great to hear! Most of the things I read are microblog posts so they are the length of tweets and are entirely contained in the timeline, and then there are the occasional articles that I swipe for. It’s great to hear other’s use cases to know which features to prioritize!

For articles, this should be a fairly simple reader view. For microblog posts I would like this to become more of a “conversation” view.
There are a couple ways I would like to do this. One is if the jf2 has the reply to url unfurled, show those details. If not, use X-ray to try unfurling a reply live when you open the view.
Check if there are any embedded replies/likes in the jf2 (right now, I don’t think any Microsub servers even support this).
Once I cache posts from the channels into CoreData, I should be able to query for any posts that are in any timelines and are replies to this post’s URL. That would allow you to see how different friends throughout your channels are responding to each other in this conversation view of a post.
Currently the best possible option would be potentially using Xray against the current post url, and seeing if there are any replies/likes/etc on the current post’s url. I could pull in that data temporarily on the conversation page load.

The conversation view will take a lot of visual cues from Tweetbot’s conversation/detail view


mlpackage bundles not recognized

mlpackage bundles are not recognized as a bundle by xcodegen. These bundles should be treated like a file and added to the compiled sources build phase. It would be nice if xcodegen could support these out of the box.
Here is the configuration I had to use to properly set this up in our project:
- path: Sources/FancyMLFeature/models/mypackage.mlpackage
  group: Sources/FancyMLFeature/models
  buildPhase: sources
  type: file

- path: Sources
  excludes:
     - FancyMLFeature/models/mypackage.mlpackage/**

More on mlpackage bundles from Apple here:
https://developer.apple.com/documentation/coreml/updating_a_model_file_to_a_model_package

Thanks for the info @aaron-foreflight. Would you like to have a go at submitting a pr to add a new line here https://github.com/yonaskolb/XcodeGen/blob/a0e71fe3dff95f964e1508748027fb93a693cc2d/Sources/ProjectSpec/FileType.swift#L77

Thanks for the pointer! That made it quite easy to implement.


changed to fixed versions

Description

Changed the CN-Series images to a fixed image version as deployment not compatible with "latest" images (i.e. 10.0.x deployment not 10.1.x deployment)
Motivation and Context

To fix problem with Qwiklabs deployment and lab
How Has This Been Tested?

I've ran through these tests and all seemed OK.
Screenshots (if appropriate)

Types of changes

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

Checklist

[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes if appropriate.
[ ] All new and existing tests passed.

Seems like a useful PR. Since there are currently no active maintainers I'll merge by request of @salsop.


Fgh005: Trying mikepenz github action to generate release notes in buildLoadup.yml

Ooops. Too soon.


operators [N] knative-operator (1.4.1)

Thanks submitting your Operator. Please check below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[x] Did you create a ci.yaml file according to the update instructions?
[x] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

{"severity":"EMERGENCY","timestamp":"2022-05-11T21:48:51.981380733Z","logger":"knative-operator","caller":"sharedmain/main.go:326","message":"Version check failed","knative.dev/pod":"knative-operator-6856c5b65b-dhbgq","error":"kubernetes version \"1.21.10\" is not compatible, need at least \"1.22.0-0\" (this can be overridden with the env var \"KUBERNETES_MIN_VERSION\")","stacktrace":"knative.dev/pkg/injection/sharedmain.CheckK8sClientMinimumVersionOrDie\n\tknative.dev/pkg@v0.0.0-20220505013700-a8b7d99374a3/injection/sharedmain/main.go:326\nknative.dev/pkg/injection/sharedmain.MainWithConfig\n\tknative.dev/pkg@v0.0.0-20220505013700-a8b7d99374a3/injection/sharedmain/main.go:228\nknative.dev/pkg/injection/sharedmain.MainWithContext\n\tknative.dev/pkg@v0.0.0-20220505013700-a8b7d99374a3/injection/sharedmain/main.go:182\nknative.dev/pkg/injection/sharedmain.Main\n\tknative.dev/pkg@v0.0.0-20220505013700-a8b7d99374a3/injection/sharedmain/main.go:120\nmain.main\n\tknative.dev/operator/cmd/operator/main.go:25\nruntime.main\n\truntime/proc.go:255"}

kiwi log: https://github.com/k8s-operatorhub/community-operators/runs/6396272098?check_suite_focus=true
@mvalarh could you merge this one for me? it is still the issue of the kube version.

/merge possible

/merge possible


gh-54 - StringContains implemented, unit tests written

StringContains predicate implemented - can be constructed with the String that is to be checked whether it contains the input. The input is passed in with the test(final String input) method.

@p013570 Just a small question regarding behaviour - how would you like an empty string to be handled? Currently it just returns true.
Have already dealt with null inputs.
Also, do you wish to preserve case sensitivity? Currently it is case sensitive.

Codecov Report

Merging #55 into develop will increase coverage by 0.36%.
The diff coverage is 86.95%.

@@              Coverage Diff              @@
##             develop      #55      +/-   ##
=============================================
+ Coverage       64.3%   64.66%   +0.36%
- Complexity       490      502      +12
=============================================
  Files             89       90       +1
  Lines           1395     1418      +23
  Branches         124      125       +1
=============================================
+ Hits             897      917      +20
- Misses           428      431       +3
  Partials          70       70

Impacted Files
Coverage Δ
Complexity Δ

...ov/gchq/koryphe/impl/predicate/StringContains.java
86.95% <86.95%> (ø)
12 <12> (?)

Continue to review full report at Codecov.

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


Handle Form Styling Issues

Closes #536

@brittainhard,  Why are you doing this given the recent changes in Tax-Calculator PR #1298?

@martinholmer I wasn't aware of that fix. I'll close this PR.


When switching between desktops, windows move unintentionally

Microsoft PowerToys version
0.72.0
Installation method
PowerToys auto-update
Running as admin
None
Area(s) with issue?
FancyZones
Steps to reproduce

An instance of chrome is located in a location that corresponds to a snap zone on a different desktop
move that window somewhere else. Its size changes (according to "restore size" option, enabled)
switch to neighboring desktop and back
The window is now back in the original position of the zone that's not valid for its desktop.

PowerToysReport_2023-08-04-13-49-01.zip
before moving window:

after:

after switching desktop back and forth:

✔ Expected Behavior
Switching desktops does not affect existing windows
❌ Actual Behavior
It does
Other Software
No response

/dup https://github.com/microsoft/PowerToys/issues/21982


Validate WDLs using miniwdl

This PR implements a python script that uses the miniwdl python bindings to validate (only errors) a list of given WDL files.

Linting errors are not related, so I'd rather leave fixing them for another PR.


9160 o auth

Adds support for oauth authentication.  To enable it, add in the following environment variables (provided with examples):
OAUTH_AUTHORIZATION_URL=http://remote.dev/o/authorize
OAUTH_NAME=EVENTKIT
OAUTH_CLIENT_ID=ID
OAUTH_CLIENT_SECRET=SECRET
OAUTH_TOKEN_URL=http://remote.dev/o/token
OAUTH_TOKEN_KEY=access_token
OAUTH_RESPONSE_TYPE=code
OAUTH_REDIRECT_URI=http://cloud.eventkit.dev/callback
OAUTH_SCOPE=profile
OAUTH_PROFILE_SCHEMA={"identification": "DN", "username": "username", "email": "email", "first_name": "firstname", "last_name": "lastname}
OAUTH_PROFILE_URL=http://remote.dev/o/profile

Adding an OAUTH_AUTHORIZATION_URL will enable the oauth endpoint.  The UI will check the URL to see if it is available and display a redirect button on the login page.  Additionally if LDAP_SERVER_URI or DJANGO_MODEL_LOGIN are added it will show (or if missing) hide the username and password form.
Also, UserLicenses model was changed to UserLicense which is more conventional.

Changes Unknown when pulling ab03e5a3e7a8c803b5402912ec826b2a7b6b74bc on 9160-OAuth into ** on master**.

Coverage increased (+0.4%) to 82.388% when pulling ab03e5a3e7a8c803b5402912ec826b2a7b6b74bc on 9160-OAuth into a300e80996511b20d8de4b16485ca43df8ffd01d on master.

Coverage increased (+0.4%) to 82.388% when pulling 7ed06c3f6075ef10680c49f4db2bbbe1954bc3bd on 9160-OAuth into a300e80996511b20d8de4b16485ca43df8ffd01d on master.

Coverage increased (+0.4%) to 82.388% when pulling 7ed06c3f6075ef10680c49f4db2bbbe1954bc3bd on 9160-OAuth into a300e80996511b20d8de4b16485ca43df8ffd01d on master.

Coverage increased (+0.4%) to 82.38% when pulling a47bd6468ddf973c4d37317d1b36c0a910132f17 on 9160-OAuth into a300e80996511b20d8de4b16485ca43df8ffd01d on master.


[UIKit] The number of images doesn't match with Admin app

Number of images in Mobile app UIKit doesn't match with Admin app.
Object 'Slonim synagogue' have 4 images in Admin app.
Object 'Slonim synagogue' have 5 images in UIKit(incorrect).
Object 'Slonim synagogue' have 4 images in Android(correct)

Verified successfully on UiKit on production (v.1.3.4 (24) iphone 11pro, RN on production (v.1.3.4 (24) - iphone 13


Fontify LaTeX sections using font-latex-sectioning-5-face

I am loving the theme, but I have noticed (correct me if I am wrong) that the current version does not fontify LaTeX sections. In catppuccin-theme.el is also the line (line 479):
;; TODO: More latex faces to be themed, especially sections

However, simply including (in catppuccin-theme.el) something along the lines of
(font-latex-sectioning-5-face :foreground ,ctp-red :weight bold)
seems to be overridden by AUCTeX.
Is there any way LaTeX sections can be fontified from the config from within catppuccin? I.e., not with customized faces? Or is customizing the face and saving this in my init.el the only way currently?

Hi Johannes!
If you can customize the face from M-x customize or set-face-attribute then you should
be able to add the changed attributes to catppuccin-theme.el. Copy the attributes that
M-x customize adds to your init.el into catppuccin-theme.el and it should work fine. If
Auctex modifies the faces try requireing and enabling the theme after you set up Auctex.


<> and HTTP(S) links when adding an item to the marketplace

<> and HTTP(S) links will not work when adding a item to the marketplace. This is done to prevent spam links being put in (eg when someone decides to list a item with the title being the link to pornhub), and brackets are used to prevent XSS (Cross-Site Scripting) attacks from being used
Currently not allowed:

<> and all HTML tags
HTTP(S) links
IPv4 + Public IP Addresses
Profanity (will be decided if this will be shipped in the production release of Kumiko)

Moving this to discussions instead


[Question] How can I stream directly via express.js?

I have an express js server and I want to create an endpoint to stream the output "Stream" object as a live video. I've got everything setup where I create the browser instance, page object, send the html, and get the stream object, but from there, I'm not sure how to create the endpoint to actually allow a consumer to stream it as a video. I know this isn't directly related to this library but any help would be appreciated!

Write this in your route handler:
stream.pipe(response)

Ah, thanks! I was focusing on making the reverse work the whole time, response.pipe(stream). I can see that the stream is emitting continuously, but if you don't mind, I'd like to ask how I can encode it in such a way that a video element can play it?

you have to set the content-type response header:
res.setHeader('content-type', 'video/webm');

It looks like from the client, I won't be able to plug the endpoint src right into a video HTML element. After trying this, the video element perpetually shows a loading icon. Will I need to open an http request, parse into some type of buffer or series of blobs, and feed each blob into the video one by one?

Maybe this will help:
https://stackoverflow.com/questions/66644023/html5-is-it-possible-to-live-stream-a-webm-as-its-being-generated
https://github.com/yomguy/stream-m

Thanks for the references! After reading those, plus debugging a bit, I believe my server is still not delivering the stream correctly. I've also tried to open the stream on VLC media player and am experiencing basically the same issue, it is always loading and the video is never being rendered. I believe my issue is that the "GET" endpoint is continuously sending data and never stops. but the client is expecting the response to stop being written after a certain point, so I believe I'll need to write logic to implement buffering in that way.

same issue here, when i log the pipe data seems that data has created but is never sended to the client
    stream.pipe(res, { end: false })     stream.on('data', (data) => {         console.log(data)     })

In my case, I can see that I'm getting data to the client by opening the stream url directly, I think I'm just not quite sending it back correctly. Are you using a 'GET' method for this?

yes!

Actually, thank you for sharing those headers! With those, I was able to get mine working. The stream has about a 30 second delay, both for the video rendering on my HTML and for changes in the source to be reflected on the webpage. I'm fine with that level of delay. I'm not sure why it isn't working in your case though, is the stream happening correctly before that? I don't know if it makes a difference, but my endpoint does include ".webm"

I don't know if it makes a difference, but maybe change "/" to "/video.webm". What is the purpose of the 206 header? I'm not using that in mine.

as far as i know needs to be used when sends ranges of data

@BrandonQDixon I'm trying to do this same thing—bychance do you have a working sample code you could post? I'm seeing the same issue where the webm player in chrome just keeps spinning. I see a few bytes come in over the stream when setting up the data listener, but then it stops sending bytes

Have a look at the example server file.


Adding share-logs to GCE

This creates a new instance, attaches the metavisors root disk,
uploads all files found in /var to a google storage (bucket,file)
and shares the result with a specified account
Usage: brkt gce share-logs --instance
--zone  --project  --bucket
--file  --account

One more nit: the descriptions for existing options start with a capital letter.  The new options should follow convention.


Translation <IP_ADDRESS> (Russian)

Hotkey can't by indicated, because translate the string without the hotkey letter.

Oh, that's okey.

Do you see that something like 'xxxx (I)'? I mean that put the hotkey to the end of string.

I planned to write this, but did not dare. You can write this if it is consistent with other interface languages.

I planned to write this, but did not dare. You can write this if it is consistent with other interface languages.

I don't know about Russian.
For Chinese, we always add hotkey like 'xxx (&I)'
I think you can check hotkeys on Windows, so you can decide how to do.

I see. Already updated.

I checked the hotkey on Windows in Russian, I see that Microsoft set hotkeys using English and Russian, it means that I must switch input method to execute the command. I never see anything like 'xxx (I)'.

If we can't understand the hotkey setting, I think we can remove the hotkey, which is better than setting a wrong one.

Due to the differences between Cyrillic and Latin, different spellings are used in different programs. When translating, I often exclude hotkeys that are embedded in the letter of the word. If hotkeys are specified separately (in brackets or on the other side of the text), then I leave it.
Context menu (one point):

Tooltip:

For inline hints, the existing letter is used, if applicable at the program interface level. Windows "Win+X" menu (modification):

So it depends on the design where the hotkey is specified. In the translation under discussion, I would prefer to avoid ambiguity. A simple option would be to remove the "hidden" hint, a more difficult option would be to adjust hotkeys to the layout / translation of the interface.

So it's better to remove the hotkey?

Let it be removed.


formatter, bump version

Codecov Report

Merging #195 (ea818b3) into master (75c74eb) will decrease coverage by 0.01%.
The diff coverage is 85.00%.

@@            Coverage Diff             @@
##           master     #195      +/-   ##
==========================================
- Coverage   67.91%   67.89%   -0.02%
==========================================
  Files          13       13
  Lines        1680     1679       -1
==========================================
- Hits         1141     1140       -1
  Misses        539      539

Impacted Files
Coverage Δ

src/fw_algorithms.jl
77.01% <71.42%> (ø)

src/blended_cg.jl
51.32% <77.77%> (ø)

src/afw.jl
65.06% <100.00%> (ø)

src/utils.jl
53.09% <100.00%> (ø)

src/polytope_oracles.jl
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


I lost a commonly referenced type during a migration

https://github.com/ravenappdev/raven-api/pull/31/commits/b1db4aba4dda30a9e89883ebcff211e04123f273
The migration moved Device in-line for a request. I reference that type multiple times in the API definition and thus failed fern check now. It feels like the migration caused me a headache to go figure out how to fix this.

Similar issue here: https://github.com/fern-api/fern/issues/1032 (closing that one)

Stale


API: Query WebRTC push stream anomaly - occurs sporadically.

Description
Describe the bug
The SRS has been configured with the capability to convert WebRTC streams to RTMP. After initiating a WebRTC stream, the stream can be accessed through the API. However, within the client, there is no identifier for the WebRTC stream; there is only an identifier for the RTMP playback. This results in an inability to terminate the WebRTC stream using the ID found in the 'cid' within the stream. The only solutions appear to be restarting the SRS or having the streaming source disconnect and reconnect.
Version
4.0.215
To Reproduce
Occasionally, there is an issue with a standard WebRTC stream.
Expected behavior
The expectation is to successfully retrieve the client for the WebRTC stream using an API, and to be able to normally disconnect the stream when invoking the API for disconnection.
Additional context
The logs are too extensive and have been included in an attachment.
WebRTC Streaming Exception - Intermittent Log Issue Document WebRtc推流异常-偶现日志.md
TRANS_BY_GPT4

I believe this bug is caused by simultaneous play and publish actions. Thus, the first crucial step is to reproduce this issue. Given its randomly nature, you might attempt to start publishing and playing simultaneously to consistently reproduce the problem. If we can find the exact conditions that trigger this issue, fixing it would become straightforward. Conversely, if we're unable to reproduce the issue, we're left to guess what happened, making it difficult to resolve.


Custom Fees Update

Problem
I don't fully understand the information displayed on custom fees for a token (screenshot below) — there should be ways of making this even more intuitive for retail users & developers.

Solution
Categories
Fixed Fees ✅
~Royalty Fees~ = Percentage & Fallback Fees
Cell Titles (Fixed Fees)
~Amount~ = Fixed Fee
Token ✅ [if in HBAR display HBAR]
Collector Account ✅
Cell Titles (Percentage & Fallback Fees)
~Amount~ = Percentage Fee [display as a %]
Collector Account ✅
~Fallback Amount~ = Fallback Fee [if in HBAR display in ℏ (not tℏ) and show $USD in blue]
~Fallback Token~ = Token [if in HBAR display HBAR]
Alternatives
No response


keyCeremonyExchange: KeyShare should include ξi,ℓ

// spec 2.0.0, p 24 "Share verification"
// If the recipient guardian Gℓ reports not receiving a suitable value Pi (ℓ), it becomes incumbent on the
// sending guardian Gi to publish this Pi (ℓ) together with the nonce ξi,ℓ it used to encrypt Pi (ℓ)
// under the public key Kℓ of recipient guardian Gℓ . If guardian Gi fails to produce a suitable Pi (ℓ)
// and nonce ξi,ℓ that match both the published encryption and the above equation, it should be
// excluded from the election and the key generation process should be restarted with an alternate
// guardian. If, however, the published Pi (ℓ) and ξi,ℓ satisfy both the published encryption and the
// equation above, the claim of malfeasance is dismissed, and the key generation process continues undeterred.
// footnote 28 It is also permissible to dismiss any guardian that makes a false claim of malfeasance. However, this is not
// required as the sensitive information that is released as a result of the claim could have been released by the claimant
// in any case.

We dont really have tests for the case where the the encrypted key share fails.


enhancement - add ability to enable letsencrypt to lighttpd

LetsEncrypt.org lets you setup auto-renewing TLS certificates for your website.
Assuming the user/installer has forwarded the HTTP and HTTPS ports to the ADS-B receiver in question enabling LetsEncrypt would then run the site with HTTPS instead of HTTP. In a home environment who cares, but I have a couple of these at sites where corporate policies do not allow the running of an httpd without TLS. I have manually updated them to use LetsEncrypt to meet the requirements on my own but adding this ability to the script could be useful.
 I currently have my plate full with limited time working on a new portal version. It is something I thought about in the past but being most run their receivers on internal networks I was not sure if there was any demand for it. However, I will add this to a new "Future Considerations" milestone containing ideas for features to possibly be added at a later date.
As a side note I am leaning towards changing the projects default webserver from Lighttpd to Nginx. Either way the Lets Encrypt option exists for both.

Just an update.
Going to keep Lighttpd the default web server with an option to use Nginx. Also going to go ahead and add this feature request to the v3.0.0 milestone.


[$250] iOS - 2FA code input is hidden by keyboard when disabling 2FA

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.28-0
Reproducible in staging?: Y
Reproducible in production?: N
Found when validation PR https://github.com/Expensify/App/pull/48030
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:

Launch New Expensify app.
Go to Account settings > Security,
Tap Disable 2FA.

Expected Result:
2FA code input will not be hidden by keyboard when disabling 2FA
Actual Result:
2FA code input is hidden by keyboard when disabling 2FA
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/bb4e0e29-4a4f-497c-a57e-ab88c4b532fd

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021831813205395072237
Upwork Job ID:<PHONE_NUMBER>395072237
Last Price Increase: 2024-09-05
Automatic offers:

alitoshmatov | Reviewer | 103915601

Issue OwnerCurrent Issue Owner: @alitoshmatov

This is a new step in the process and shouldn't block deployment, as users can still enter the code (without visible confirmation).

Proposal
Please re-state the problem that we are trying to solve in this issue.
2FA code is behind the keyboard.
What is the root cause of that problem?
In the code page, we disable the keyboard avoiding view which is required for iOS to push up the button.
https://github.com/Expensify/App/blob/aa693719e19c468983a090e0c8a7bb2cec8ee76c/src/pages/settings/Security/TwoFactorAuth/Steps/GetCode.tsx#L29-L31
What changes do you think we should make in order to solve the problem?

Enable the keyboard avoiding view by removing the shouldEnableKeyboardAvoidingView prop.

try like that
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : null}
>
...

Awiating proposals and review

Looks straightforward fix, we can go with @bernhardoj 's proposal here
C+ reviewed 🎀 👀 🎀

PR is ready
cc: @alitoshmatov

Deployed to production on 16th

PAYMENT SUMMARY FOR SEPT 23

Fix: @bernhardoj [$250, if no regresssions] payment via NewDot
PR Review: @alitoshmatov [$250, if no regresssions] Offer

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

[ ] [@alitoshmatov] The PR that introduced the bug has been identified. Link to the PR:
[ ] [@alitoshmatov] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[ ] [@alitoshmatov] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
[ ] [@alitoshmatov] Determine if we should create a regression test for this bug.
[ ] [@alitoshmatov] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[ ] [@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@alitoshmatov can you complete checklist so I can issue payment - thank you!

@alitoshmatov, can you complete the checklist above, please?

@alitoshmatov just a friendly bump here. Please complete the checklist above and I can issue payment. (before the offer expires in Upwork)

The PR that introduced the bug has been identified. Link to the PR: https://github.com/Expensify/App/pull/48030
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/48030/files#r1788965261
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: No need
Determine if we should create a regression test for this bug. I think no need since it wasn't regression but rather incomplete feature

@abekkala Sorry for late response

@alitoshmatov payment sent and contract ended - thank you! 🎉

Requested in ND.

$250 approved for @bernhardoj


missing gc_lib on ubuntu 20

the latest version does not work on my ubuntu
cdk-notifier --version
cdk-notifier: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by cdk-notifier)
cdk-notifier: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by cdk-notifier)

lsb_release -a
Description:    Ubuntu 20.04.6 LTS

:tada: This issue has been resolved in version 2.4.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fingerprints for non-JS ports

Working on adding cuid2 to the Rust cuid port, and trying to figure out how to do the fingerprint.
The JS version is a hash of:

random number from 2063-~4126
stringified object keys from the global object, which is either global (in node) or window (in browser)

In Rust, we don't have anything like the global object in node or the window object in the browser. So far, I've got:

same random number
process ID
thread ID

That gives different fingerprints for different processes & threads generating CUIDs on the same system, but doesn't guarantee anything across systems.
It looks like the Python port uses the system hostname, but that would reduce portability and prevents compiling the Rust to target-independent WASM.
One option that springs to mind is environment variables: the specific env var keys and values available to the process are likely to vary a fair bit across systems. On docker, this will include the HOSTNAME env var, which is generally set to the container ID. This is what I'm defaulting to for the moment, but would be curious to hear your thoughts.
We could also just rely on the random number, process ID, thread ID, and the hash entropy.

Be careful with env vars.. how will those be allocated across different environments?
Is generally ok if these values CAN collide across hosts, as long as that is unlikely. In CUID, I often used multiple sources of host entropy to create fingerprints less likely to collide.

Hmm, I guess whether env vars are appropriate would depend on what the purpose of the fingerprint portion of the CUID is and when it's intended to vary.
My assumption is that it should be as unique as possible for any given "instance" of a process/thread producing CUIDs. So if I have 10 machines running 10 docker containers, with each container spinning up 2 processes with 2 threads each, I'd expect we'd want 10 * 10 * 2 * 2 = 400 unique fingerprints going into the CUIDs, to help ensure that no two instances can ever generate duplicate IDs.
My worry with just including (random number + proc ID + thread ID) + hash_entropy is that the (random number + proc ID + thread ID) seems quite likely to overlap eventually given enough systems. The added entropy from the hash function plus the additional entropy in the CUID inputs may be enough to take care of it, but it seems like it'd be safer to try to include something more system-specific. That said, it turns out env vars aren't available in WASM builds anyway, so that rules them out, unless I use them on non-WASM builds and fall back to something else for WASM.

Experimentally, it seems like the random data will probably generally be sufficient. Can update later if it isn't.


sails.sid - How to run multiple sails app on same browser with different port?

Sails version: 0.12.14
Node version: 3.10.10
NPM version: v6.10.0
DB adapter name: N/A
DB adapter version: N/A
Operating system: ubuntu 16.04

I have problem with sails.sid on running two sails app on same browser, which override sails.sid on accessing another sails app on same browser, even though the ports are different.
At a time on browser one sails app is working which have latest sid. I cant access first sails app till i clear the cookies.
Need help to fix. If already have fix, please guide me to it.

ok, fixed!

ok, fixed!

ok, fixed!

ok, fixed!

@nithin-ideas2it Cookies are shared across the same domain, regardless of port.  If you want to lift two Sails apps on different ports without the cookies colliding, you'll need to access them through different domains, e.g. http://localhost:1337 and http://<IP_ADDRESS>:1338.  If you have more than 2 apps to lift, the best strategy is to add more loopback hostnames in your etc/hosts file!

@sgress454 Thank you, let me check.


Enhanced build_visit to package a VisIt distribution when building VisIt.

Description
Resolves #4166
Enhanced build_visit to package up a VisIt distribution when building VisIt so that it is ready to install. I also updated the instructions at the end with instructions for installing the distribution, resolving #4166.
Type of change

[X] Bug fix
[X] New feature

How Has This Been Tested?
I ran build_visit building VisIt from a tar file. The distribution tar file was successfully created and the instructions for installing it worked properly.
Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have updated the release notes
[X] I have assigned reviewers

@aowen87 my merge from 3.1RC dismissed your review. The change is to the release notes and is trivial.


Feature/create style guide/177209641

Problem
As a developer of the example client, I want to have a guide for building pages for the site.
link to Pivotal Tracker #177209641
Solution
Use KSS to create a live style guide.
with @claireolmstead
Change summary:

imported KSS
create config
get output and see the live stylesheet

Steps to Verify:

Follow the path styleguide/index.html to the style guide and see that it is working.

Screenshots (optional):

Make sure to rebase first, most of the files and packages here were trimmed when the boilerplate code was officially merged.


Add WorkNicer as a resource

Maybe put them closer to the top cause then have been supporting us a ton!
this is the blurb to add:
Work Nicer is Alberta’s number one coworking community, with six outposts across Edmonton and Calgary. Designed for teams of one to 100, Work Nicer is home to 1,400 members and 400+ businesses. From graphic designers and marketing teams, to accountants and lawyers, Work Nicer is where awesome people come together to be productive in an inspiring and supportive environment. After all, no one succeeds alone!
This is the photo they would like added but I have to add it to image kit

this is the link to the file, you don't need the full link, you really just need the path, see other images for examples:
https://ik.imagekit.io/des/WorkNicer_9PHPpKJxJ.png?updatedAt=1696355650217

Hi, I would like to do this, Please assign it to me.


Updating github releases

Hi there @tobias-kuendig
Do you have any plans to update the https://github.com/tobias-kuendig/hacompanion/releases in the future?
I notice it hasn't been updated since 1.0.7, but the latest tag is 1.0.11.
No worries if you don't plan too.. but maybe you just forgot?
Github releases are nice because they can function as a Changelog which is useful for linux distro packagers like myself.

Thank you for the feedback, @Ramblurr! The build pipeline has been broken for some time now, that's why no new releases were pushed to GitHub. I have fixed this issue, so future releases will be generated corretly again.


Add user page

how about adding yarn.lock to git ignored files

Could wr delete first sense in the usage page. Wr may add it if we have more users


Sanitizing invalid characters from to field

We're using v2.7.1 of the mail gem with ruby 2.4.4
Some of our users are typoing their names - not their email addresses - in ways that are causing syntax errors when we try and send the email.
Here are some examples, one that works fine, and two different failing examples - names have been changed, but the typos have been kept the same
Working:
to = "\"Joe Bloggs\"<EMAIL_ADDRESS>m = Mail.new
m.to = to
#<Mail::Message:92412660, Multipart: false, Headers: <To: "Joe Bloggs"<EMAIL_ADDRESS>
Failure 1:
to = "\"Joe B\"log-gs\"<EMAIL_ADDRESS>m = Mail.new
m.to = to
#<Mail::Message:92412660, Multipart: false, Headers: <To: "Joe B"log-gs"<EMAIL_ADDRESS>
Falure 2:
to = "\"JOE BLOGGS\\\"<EMAIL_ADDRESS>m = Mail.new
m.to = to
#<Mail::Message:92412660, Multipart: false, Headers: <To: "JOE BLOGGS\"<EMAIL_ADDRESS>
When we try and send the failures we get the error:
Net::SMTPSyntaxError: 501 Syntax error in parameters
/app/vendor/ruby-2.4.4/lib/ruby/2.4.0/net/smtp.rb:969 in check_response
/app/vendor/ruby-2.4.4/lib/ruby/2.4.0/net/smtp.rb:937 in getok
/app/vendor/ruby-2.4.4/lib/ruby/2.4.0/net/smtp.rb:837 in mailfrom
/app/vendor/ruby-2.4.4/lib/ruby/2.4.0/net/smtp.rb:658 in send_message
/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp_connection.rb:54 in deliver!
/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:101 in block in deliver!
/app/vendor/ruby-2.4.4/lib/ruby/2.4.0/net/smtp.rb:519 in start
/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:109 in start_smtp_session
/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:100 in deliver!
/gems/mail-2.7.1/lib/mail/message.rb:276 in deliver!

I've tried to find out what the allowed characters in the to are, but I haven't been able to find it.
I'm wondering if there is something we could do escape the characters, I tried CGI.escape but it didn't seem to have the effect I wanted
"%22JOE+BLOGGS%5C%22+%3Cjoe.bloggs%40example.com%3E"
#<Mail::Message:92412660, Multipart: false, Headers: <To: %22JOE+BLOGGS%5C%22+%3Cjoe.bloggs%40example.com%3E>>

Any advice on how we could prevent the errors, and allow the emails to be sent correctly would be appreciated

The rules here are quite complicated. You can read them in RFC5322 if you're interested.
But to summarize, in quoted names like you're using, you can use ASCII %d33-126, except for %d34 and %d92 (double quote and backslash). This is why your examples are having problems.
It is possible to escape those characters with a backslash. Maybe something like this would work for you?
email =<EMAIL_ADDRESS>name = "Joe B\"log-gs"
escaped_name = name.gsub(/\\/) { '\\\\' }.gsub(/"/) { '\"' }
to = "\"#{escaped_name}\" <#{email}>"

# Test this can be parsed:
Mail::AddressList.new(to)


Cannot uninstall Jupyter extension, Python extension depends on this

Environment data

VS Code version: 1.55.2
Extension version (available under the Extensions sidebar): v2021.3.680753044
OS and version: Windows 10.0.18363
Python version (& distribution if applicable, e.g. Anaconda): 3.8.2
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: N/A
Relevant/affected Python-related VS Code extensions and their versions: Jupyter v2021.5.745244803
Value of the python.languageServer setting: "Pylance"

Expected behaviour
Only install the extensions that I use (i.e. Python).
Actual behaviour
Forced to install additional Jupyter extension for no apparent reason.
Steps to reproduce:

Install Python extension
Cry 😭

I've never had an occasion to create a notebook. I understand that, yes, Jupyter notebooks are quite popular. Nevertheless, the popularity of one particular feature in some segments of the programming world does not mean that other segments should have it forced upon them. I am fairly certain that the people that do want the Jupyter extension are more than capable of finding it in the marketplace themselves with the need to thrust into everyone's development environment.

See this https://github.com/microsoft/vscode-python/issues/8372#issuecomment-818069760