Allow the use of a proxy

Im trying to run discurses behind a proxy
I tried configuring the https proxy in ubuntu but discurses just crashes

Hi.
Could you be more explicit about your problem? And paste here a few pointers about the crashes you might have got?

after discruses crashes the terminal becomes totally unresponsive.
i cant copy from the terminal
But thru the magic of virtual machines  i got this crashlog

                                          ░█▀▄░▀█▀░█▀▀░█▀▀░█░█░█▀▄░█▀▀░█▀▀░█▀▀
                                          ░█░█░░█░░▀▀█░█░░░█░█░█▀▄░▀▀█░█▀▀░▀▀█
                                          ░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀
                                                                        v0.3.3

                                           < Logging in... Hang tight! >
                                            ---------------------------
                                                   \   ^__^
                                                    \  (oo)\_______
                                                       (__)\       )\/\
                                                           ||----w |
                                                           ||     ||

Traceback (most recent call last):
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/connector.py", line 601, in _create_direct_connection
    local_addr=self._local_addr)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 778, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.6/asyncio/base_events.py", line 765, in create_connection
    yield from self.sock_connect(sock, address)
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 450, in sock_connect
    return (yield from fut)
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 480, in _sock_connect_cb
    raise OSError(err, 'Connect call failed %s' % (address,))
ConnectionRefusedError: [Errno 111] Connect call failed ('<IP_ADDRESS>', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/connector.py", line 304, in connect
    yield from self._create_connection(req)
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/connector.py", line 578, in _create_connection
    transport, proto = yield from self._create_direct_connection(req)
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/connector.py", line 624, in _create_direct_connection
    (req.host, req.port, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 111] Can not connect to discordapp.com:443 [Connect call failed ('<IP_ADDRESS>', 443)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "./discurses", line 11, in <module>
    sys.exit(main())
  File "/home/ccn/.local/lib/python3.6/site-packages/discurses/__main__.py", line 8, in main
    client.run()
  File "/home/ccn/.local/lib/python3.6/site-packages/discord/client.py", line 519, in run
    self.loop.run_until_complete(self.start(*args, **kwargs))
  File "/usr/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "/home/ccn/.local/lib/python3.6/site-packages/discord/client.py", line 490, in start
    yield from self.login(*args, **kwargs)
  File "/home/ccn/.local/lib/python3.6/site-packages/discurses/discord.py", line 67, in login
    await super().login(config.table['token'], bot=False)
  File "/home/ccn/.local/lib/python3.6/site-packages/discord/client.py", line 416, in login
    yield from getattr(self, '_login_' + str(n))(*args, **kwargs)
  File "/home/ccn/.local/lib/python3.6/site-packages/discord/client.py", line 346, in _login_1
    data = yield from self.http.static_login(token, bot=is_bot)
  File "/home/ccn/.local/lib/python3.6/site-packages/discord/http.py", line 258, in static_login
    data = yield from self.request(Route('GET', '/users/@me'))
  File "/home/ccn/.local/lib/python3.6/site-packages/discord/http.py", line 137, in request
    r = yield from self.session.request(method, url, **kwargs)
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/client.py", line 555, in __iter__
    resp = yield from self._coro
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/client.py", line 198, in _request
    conn = yield from self._connector.connect(req)
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/connector.py", line 314, in connect
    .format(key, exc.strerror)) from exc
aiohttp.errors.ClientOSError: [Errno 111] Cannot connect to host discordapp.com:443 ssl:True [Can not connect to discordapp.com:443 [Connect call failed ('<IP_ADDRESS>', 443)]]
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.6/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
  File "/usr/lib/python3.6/logging/handlers.py", line 185, in shouldRollover
    self.stream = self._open()
  File "/usr/lib/python3.6/logging/__init__.py", line 1059, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
NameError: name 'open' is not defined
Call stack:
  File "/home/ccn/.local/lib/python3.6/site-packages/aiohttp/client.py", line 93, in __del__
    self._loop.call_exception_handler(context)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 1291, in call_exception_handler
    self.default_exception_handler(context)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 1266, in default_exception_handler
    logger.error('\n'.join(log_lines), exc_info=exc_info)
Message: 'Unclosed client session\nclient_session: <aiohttp.client.ClientSession object at 0x7f1067275be0>'
Arguments: ()`

I mean, is not a bug. but i would be helful to have a command to use a proxy


Fix the ingress URL for AKHQ in Vagrant

Currently, AKHQ is deployed with the following host configuration in the ingress: akhq.tools.airy. This is not provisioned in the /etc/hosts file because we don't want to add entries there for every tool we put. It would be better if we can use tools.airy/akhq, so that all the tools are like a sub-path, under the same domain name.

URL fixed with path instead of a subdomain.


Add linux-aarch64 and osx-arm64 builds

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

Hi! This is the friendly automated conda-forge-webservice.
I tried to rerender for you, but it looks like there was nothing to do.
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12161833330. Examine the logs at this URL for more detail.

Thanks for this!
Maybe it's a dumb question; but does this affect dependent libraries in any way, such as scipy-stubs?

And do I understand correctly that we can't use noarch because of the (optional) numpy dependency?

And do I understand correctly that we can't use noarch because of the (optional) numpy dependency?

My understanding is that we can't use noarch because of the python version dependent skip:
https://github.com/conda-forge/optype-feedstock/blob/b6a0070cfa0452ac9f4a47660678a1e3543d7ed5/recipe/meta.yaml#L13
But I think python version dependent pins may also be an issue, e.g: https://github.com/conda-forge/optype-feedstock/blob/b6a0070cfa0452ac9f4a47660678a1e3543d7ed5/recipe/meta.yaml#L24
The message I've seen from the admin bot is:

❌ noarch packages can't have skips with selectors. If the selectors are necessary, please remove noarch: python.

Thanks for this!
Maybe it's a dumb question; but does this affect dependent libraries in any way, such as scipy-stubs?

It won't affect the dependent libraries themselves. But it should make scipy-stubs installable on linux-aarch64 and osx-arm64. For example, currently on my osx-arm64 machine, micromamba search scipy-stubs is able to find that package as it is in noarch, but if I try to micromamba install scipy-stubs, I get the following:
conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache
qc-internal/osx-arm64                                       Using cache
qc-internal/noarch                                          Using cache

Pinned packages:
  - python 3.10.*

error    libmamba Could not solve for environment specs
    The following packages are incompatible
    └─ scipy-stubs is not installable because there are no viable options
       ├─ scipy-stubs <IP_ADDRESS> would require
       │  └─ optype >=0.7.1 , which does not exist (perhaps a missing channel);
       └─ scipy-stubs <IP_ADDRESS> would require
          └─ optype >=0.7.3 , which does not exist (perhaps a missing channel).
critical libmamba Could not solve for environment specs

Because optype is not available for osx-arm64. This should hopefully fix that.

let's give this a go, thanks both!


[Feature Request]: Add note to docs that only some models support function calling

Is your feature request related to a problem? Please describe.
People asked for it on Discord after spending a lot of time trying to make it work with unsupported models.
Describe the solution you'd like
No response
Additional context
No response

Text in this notebook and the doc strings of methods exposed in this notebook seem like a good starting point for where to update the documentation? https://github.com/microsoft/autogen/blob/main/notebook/agentchat_function_call.ipynb

I think it also helps to have a place to document the models that are supporting function calls.
Adding some here:

fw-function-call-34b-v0 from fireworks: https://readme.fireworks.ai/docs/function-calling (OpenAI compatible!)
https://huggingface.co/Trelis/Mistral-7B-Instruct-v0.2-function-calling-v3

Is this issue still open or has been closed?? Thank you very much!

Looks like it is still open.

Please also add that function calling is also depends on AI platform. Even if the model can suggest function calling, if the AI platform doesn't support it then it won't work.
It seems some has tried Autogen with Ollama directly without realizing this. As of this writing, June 19, 2024, Ollama's Open AI implementation doesn't support function calling.
https://github.com/ollama/ollama/blob/main/docs/openai.md
We do have documentation about this, but perhaps it needs to be moved to a more visible place.
https://microsoft.github.io/autogen/docs/topics/non-openai-models/local-litellm-ollama

docs have been widely updated


medici.tv URLs Not Being Recognized by 'medici' Extractor

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
Korea
Provide a description that is worded well enough to be understood
I am experiencing an issue where yt-dlp is not recognizing URLs from medici.tv with the designated 'medici' extractor. Below is a detailed description of the problem:
When attempting to download videos from medici.tv using yt-dlp, the URLs are being treated as generic instead of being processed by the 'medici' extractor.
Example URL: An example of a URL that should be processed by the 'medici' extractor but is not is https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony
Testing and Debugging Attempts:
Initially, the regular expression for the medici extractor (r'https?://(?:www\.)?medici\.tv/#!/(?P<id>[^?#&]+)) did not match certain medici.tv URLs, such as the example URL.  To address this, I modified the regex to r'https?://(?:www\.)?(?:medici|edu\.medici)\.tv/(?:(?:[a-zA-Z0-9-_\.]+)/)*(?:#!/)?(?P<id>[^?#&]+)'. This change was intended to make the regex more flexible and inclusive of different URL patterns on medici.tv. Using Python's re module, I confirmed that the modified regex successfully matches the example medici.tv URL. However, when I run yt-dlp with this modified regex, the URLs are still treated as generic, and the medici extractor is not used. Using --use-extractors medici didn't help either.
At my current level of Python knowledge, this was the best I could do. Therefore, I would like you to fix the links to medici.tv are correctly recognised by the 'medici' extractor.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['--cookies-from-browser', 'firefox', 'https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony', '-vU']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\ohdor\AppData\Roaming\Mozilla\Firefox\Profiles\69s8cetx.default-release\cookies.sqlite"
Extracted 2427 cookies from firefox
[debug] Encodings: locale cp949, fs utf-8, pref cp949, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [24f827875] (pip)
[debug] Python 3.11.5 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 3.0.9 30 May 2023)
[debug] exe versions: ffmpeg 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev (setts), ffprobe 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.31.0, sqlite3-3.42.0, urllib3-2.1.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[generic] Extracting URL: https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony
[generic] concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony: Extracting information
[debug] Looking for embeds
ERROR: Unsupported URL: https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony
Traceback (most recent call last):
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1567, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1702, in __extract_info
    ie_result = ie.extract(url)
                ^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 715, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2578, in _real_extract
    raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony

[debug] Command-line config: ['--cookies-from-browser', 'firefox', 'https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony', '--use-extractors', 'medici', '-vU']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\ohdor\AppData\Roaming\Mozilla\Firefox\Profiles\69s8cetx.default-release\cookies.sqlite"
Extracted 2426 cookies from firefox
[debug] Encodings: locale cp949, fs utf-8, pref cp949, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [24f827875] (pip)
[debug] Python 3.11.5 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 3.0.9 30 May 2023)
[debug] exe versions: ffmpeg 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev (setts), ffprobe 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.31.0, sqlite3-3.42.0, urllib3-2.1.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
ERROR: No suitable extractor found for URL https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony

pip installs are not meant to be editable. It'll work if you delete extractors/lazy_extractors.py

Now it is successfully processed by the Medici extractor, but it fails to get csrftoken cookie from the website. Here's verbose output:
[debug] Command-line config: ['https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony', '-vU']
[debug] Encodings: locale cp949, fs utf-8, pref cp949, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [24f827875] (pip)
[debug] Lazy loading extractors is disabled
[debug] Python 3.11.5 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 3.0.9 30 May 2023)
[debug] exe versions: ffmpeg 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev (setts), ffprobe 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.31.0, sqlite3-3.42.0, urllib3-2.1.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[Medici] Extracting URL: https://www.medici.tv/en/concerts/concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony
[Medici] concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony: Downloading webpage
ERROR: concours-de-geneve-international-music-competition-2023-flute-final-and-awards-ceremony: An extractor error has occurred. (caused by KeyError('csrftoken')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 715, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\medici.py", line 42, in _real_extract
    'X-CSRFToken': self._get_cookies(url)['csrftoken'].value,
                   ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'csrftoken'

Now I found that there's a cookie named csrftoken_satie, so I change 'X-CSRFToken': self._get_cookies(url)['csrftoken'].value into 'X-CSRFToken': self._get_cookies(url)['csrftoken_satie'].value and now it seems that I overcame that part. However, I encountered another error:
[debug] Command-line config: ['--cookies-from-browser', 'firefox', '--write-subs', '--sub-langs', 'all', 'https://edu.medici.tv/en/operas/lady-macbeth-mtsensk-opera-de-paris-2019', '-vU']
Extracting cookies from firefox
[debug] Extracting cookies from: "C:\Users\ohdor\AppData\Roaming\Mozilla\Firefox\Profiles\69s8cetx.default-release\cookies.sqlite"
Extracted 2314 cookies from firefox
[debug] Encodings: locale cp949, fs utf-8, pref cp949, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [24f827875] (pip)
[debug] Python 3.11.5 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 3.0.9 30 May 2023)
[debug] exe versions: ffmpeg 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev (setts), ffprobe 2023-05-08-git-2d43c23b81-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.31.0, sqlite3-3.42.0, urllib3-2.1.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[Medici] Extracting URL: https://edu.medici.tv/en/operas/lady-macbeth-mtsensk-opera-de-paris-2019
[Medici] lady-macbeth-mtsensk-opera-de-paris-2019: Downloading webpage
[Medici] lady-macbeth-mtsensk-opera-de-paris-2019: Downloading JSON metadata
ERROR: [Medici] lady-macbeth-mtsensk-opera-de-paris-2019: lady-macbeth-mtsensk-opera-de-paris-2019: Failed to parse JSON (caused by JSONDecodeError("Expecting value in '': line 1 column 1 (char 0)")); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 715, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\medici.py", line 35, in _real_extract
    data = self._download_json(
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 1069, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 1039, in download_handle
    return parse(self, content, video_id, transform_source=transform_source, fatal=fatal, errnote=errnote), urlh
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 1029, in parse
    return getattr(ie, parser)(content, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 1016, in _parse_json
    self.__print_error('Failed to parse JSON' if errnote is None else errnote, fatal, video_id, ve)
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 999, in __print_error
    raise ExtractorError(f'{video_id}: {errnote}', cause=err)

  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\utils\_utils.py", line 555, in decode
    return super().decode(s)
           ^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 1013, in _parse_json
    return json.loads(
           ^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\json\__init__.py", line 359, in loads
    return cls(**kw).decode(s)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ohdor\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\utils\_utils.py", line 563, in decode
    raise type(e)(f'{e.msg} in {s[e.pos-10:e.pos+10]!r}', s, e.pos)
json.decoder.JSONDecodeError: Expecting value in '': line 1 column 1 (char 0)

#9518


Fix browserify compatibility

This change should fix #304.

Thanks, have you tested it in Edge?

@ibc I have not and I don't have any Windows environment handy. But, since you opened the linked bug report, can you give it a try? :)

I don't have any Windows computer.
El mié., 28 mar. 2018 8:18, Andrei Mateescu<EMAIL_ADDRESS>escribió:

@ibc https://github.com/ibc I have not and I don't have any Windows
environment handy. But, since you opened the linked bug report, can you
give it a try? :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/theturtle32/WebSocket-Node/pull/314#issuecomment-376774522,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA_P9ZymVFQiNVWyr1Kz4BMW1cCtkMlks5tiys6gaJpZM4S8cFj
.

This fix isn't valid, because it'll just fall back to an empty object and the subsequent code won't be able to find the WebSocket constructor on that empty object.


Jeff Schaller: Watch chandakagro.com

Jeff Schaller requests the watch of the watch_keyword chandakagro\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

chandakagro\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


Question: what dataset was guanaco trained on?

what dataset was guanaco trained on?

We'll update soon with the exact dataset. In the meantime, the processing steps for OASST1 are described in the paper.

here my pass at generating their dataset. Just use the first human and assistant row turn from each row for the guanaco dataset. We went ahead and found the highest ranked entire conversation chain for the dataset. https://huggingface.co/datasets/openaccess-ai-collective/oasst1-guanaco-extended

I also added the dataset info to the readme. Thanks!


Padding issues with two monitors (vertical)

Since updating to the newest version via homebrew, I seem to have a problem with the top and bottom padding when I'm using two monitors. I use the screen of my MacBook placed left of my main screen (a 4k monitor).
As long as I use only the internal screen, everything is as configured in .chunkwmrc and as with the previous versions. As soon as I use two screens, on the main monitor (external), the padding on the bottom is too little and the padding on the top is too large. At the bottom the windows go behind the dock although I have set
chunkc set global_desktop_offset_bottom  5
I have also noticed that windows "jump up and down" when I'm resizing them vertically.
Edit: It seems that chunkwm thinks that the dock is on the internal monitor, although it is on the external one. When the internal monitor is used as a secondary, the bottom offset is way too large, just as if the dock was there.
Screenshots
MacBook display only:

Two monitors
Main monitor (external):

Secondary (internal):

Likely caused by #291.

It probably is. The problem happens only when the two monitors are aligned at the bottom in system preferences, when the secondary monitor is "higher" than the primary, the problem does not occur.
Works:

Leads to the problems mentioned:

@ma-con
Sorry for the inconvenience. I noticed this issue a little bit after doing the latest release. I have a potential fix in mind, but no ETA for when I will have time to implement it.

no worries, aligning the monitors as in the previous post is an easy enough workaround.
I wouldn't want to use my mac without chunkwm, thanks a lot for all the effort you put in it.

This issue has now been fixed on master.

@koekeishiya - at least for me, this is now happening for me with master. :-( . Thought I might have a config/old binaries problem. Started from scratch and still there. I'm running with either 2 or 3 monitors arranged horizontally. Main monitor is LG 5K to the left of the MacBook Pro. Workaround remains to virtually position the main monitor lower than the others.


Decorative stick block dropped upon breaking the entity

The title explains most of it, but I will add that the stick block entity is dropping a stick as expected in addition to dropping itself. Aside from the funky pink box, it is currently an unlimited source of sticks.

I'm not worried about textures, since the stick block is incomplete. However, I have identified that breaking the block in survival mode does indeed drop the block entity. I will revise this code and inform Theishiopian if he needs to make changes that I cannot.

The block is not supposed to have an inventory model, nor should it drop itself. I'll fix this later tonight.

@theishiopian The code in the class for the block is correct in dropping the stick. However, there appears to be no code blocking the dropping of the block entity itself. Try to see if you can change anything with the "onBlockDestroyedByPlayer" portion of the BlockStick class.

The thing is, the rock doesn't have the same problem from what I remember from my testing. Might be due to the way I implemented the rocks though.

I think the rocks are implemented the same way last time I checked


Make EXPLAIN STATEMENT show logical and physical plans to run on regions

What type of enhancement is this?
User experience
What does the enhancement do?
Greptimedb already supports distributed EXPLAIN ANALYZE STATEMENT.
However, EXPLAIN STATEMENT like EXPLAIN select * from system_metrics displays logical and physical plans only on the front side:
+---------------+--------------------------------------------------+
| plan_type     | plan                                             |
+---------------+--------------------------------------------------+
| logical_plan  | MergeScan [is_placeholder=false]                 |
| physical_plan | MergeScanExec: peers=[4398046511104(1024, 0), ]  |
+---------------+--------------------------------------------------+

I guess it's better to display logical and physical plans to run on regions for both developers and users, like this:
+---------------+--------------------------------------------------+
| plan_type     | plan                                             |
+---------------+--------------------------------------------------+
| logical_plan  | MergeScan [is_placeholder=false]                 |
|    		|	Projection: ~				   |
|     		|		 Filter: ~			   |
|       	|			 TableScan:                |
| physical_plan | MergeScanExec: peers=[4398046511104(1024, 0), ]  |
|			~					   |
+---------------+--------------------------------------------------+

Or
+---------------+------------------------------------------------------------------+
| stage         | plan_type     | plan                                             |
+---------------+------------------------------------------------------------------+
| 	0	| logical_plan  | MergeScan [is_placeholder=false]                 |
|    	1	|		|  Projection: ~		                   |
|     	1	|		|   Filter: ~	   		                   |
|       1	|		|    TableScan: demo                               |
| 	0	| physical_plan | MergeScanExec: peers=[4398046511104(1024, 0), ]  |
|	1	|	~	|				                   |
+---------------+------------------------------------------------------------------+

Implementation challenges
No response

I'm interested in query crate. So if this feature makes sense, I'd like to implement this feature.

@waynexia What do you think?


As a GoAWS Docker user, I would like to pass AWS related information as parameter so I can use GoAWS together with other local AWS services, such as Local DynamoDB

I'm currently using a local DynamoDB Docker which supports the parameters below and as many of us do use SNS/SQS within other AWS services, would be nice to have these options so we could use GoAWS with other AWS local services.
-e AWS_ACCESS_KEY_ID=key -e AWS_SECRET_ACCESS_KEY=secret aws --region us-east-1 dynamodb --endpoint http://localhost:8000/

@danielpsf I apologize but I am not exactly sure what you are asking for me to implement.  Can you give me a bit more detail on what the goaws code would do with the extra parameters...

Hi @p4tin,
I would like to have all my local environment with the same parameters, such as AWS credentials and region, so I can start other AWS local components like DynamoDB or Kinesis and yet have the same configuration.
So, if you implement a parameter like AWS_ACCESS_KEY, AWS_SECRET_ACCESS_KEY or AWS_REGION we could easily achieve a local complex environment setup with a couple of docker runs.
What do you think?

Sorry again I am still confused... Are those docker parameters?  or do you want goaws to accept ENVIRONMENT VARIABLES instead of using the config.yaml?

Well, they can be docker parameters, but it also would be alright to use the config.yaml to configure the AWS_ACCESS_KEY, AWS_SECRET_KEY and AWS_REGION. I haven't noticed it on https://github.com/p4tin/goaws/blob/master/app/conf/goaws.yaml (which I think is the config model).
As you've shown here we've to use X/X to access the GoAWS service. What I'm saying is that it would be nice to have a way of set those details into the docker during start time, so we can develop within a larger ecosystem of applications that also require that kind of information.
I don't know if what I'm asking is already developed, I can be missing something that is already done and can solve this issue. If that is the case, sorry 😊.

Wow, nice... Thanks man :wink:


Amplify CLI fails with Error: Cannot add S3Triggera54de6aa due to a cyclic dependency

Describe the bug
I am following the aws amplify photo albums tutorial but when building a new environment the S3 trigger fails with 'access denied' when calling S3.getObject().
Is there a separate step required to set permission for the S3 Trigger on the S3 bucket?  Perhaps I missed it.
In any event then I tried to run 'amplify function update' to give the function access to the S3 bucket and I then get the following error:
Error: Cannot add S3Triggera54de6aa due to a cyclic dependency
    at checkForCyclicDependencies (/usr/local/lib/node_modules/@aws-amplify/cli/lib/extensions/amplify-helpers/update-amplify-meta.js:188:15)
    at AmplifyToolkit.updateamplifyMetaAfterResourceUpdate [as _updateamplifyMetaAfterResourceUpdate] (/usr/local/lib/node_modules/@aws-amplify/cli/lib/extensions/amplify-helpers/update-amplify-meta.js:114:9)
    at updateFunctionResource (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-category-function/lib/provider-utils/awscloudformation/index.js:144:29)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Object.executeAmplifyCommand (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-category-function/lib/index.js:193:5)
    at async executePluginModuleCommand (/usr/local/lib/node_modules/@aws-amplify/cli/lib/execution-manager.js:153:5)
    at async Object.executeCommand (/usr/local/lib/node_modules/@aws-amplify/cli/lib/execution-manager.js:35:9)
    at async Object.run (/usr/local/lib/node_modules/@aws-amplify/cli/lib/index.js:82:9)

Amplify CLI Version
4.29.5
To Reproduce
N/A
Expected behavior
I would expect the function to work
Screenshots
N/A
Desktop (please complete the following information):

OS: macOS
Node Version. v12.18.1

Additional context
N/A

@duncangroenewald You wouldn't need to add additional permissions on your trigger functions.
To debug this I would make sure the files exists or not
and the path to the object is valid

The issue appears to be that after creating the S3Trigger I added permission to the trigger to access API by using the 'amplify function update'.
This created a policy with the same name as the S3Trigger's bucket access policy which clobbered the bucket access policy.
Seems like a flaw in the amplify-cli logic that allows this to happen.  Eventually I had to manually rename one of the policies as a workaround but you have to watch this each time you run the amplify-cli or it might get replaced if you subsequently run 'amplify function update' or 'amplify storage update'

Can you reiterate what steps you followed?

I just ran into this problem as well, so here is how I ran into it:

used amplify add function to create new function "S3Trigger"
while creating "S3Trigger" I set gave it full create, read, update, delete access on my amplify configured S3 Storage bucket "MyBucket"
used amplify update storage and attempted to make "S3Trigger" the trigger
Amplify CLI fails with the message "Cannot add S3Trigger due to a cyclic dependency"

I just ended up in this situation too.  I had a Lambda Function given access to a storage S3Bucket, then I went back to the Lambda Function to allow it to post to the DynamoDB GraphQL storage and ended up with the same error.

I just ended up in this situation too.  I had a Lambda Function given access to a storage S3Bucket, then I went back to the Lambda Function to allow it to post to the DynamoDB GraphQL storage and ended up with the same error.

Getting the same error as you @walter-scott . Were you able to fix it? .. or is this fixed?

@arealmaas This is how I got around it:

Delete the old trigger lambda and the storage bucket you already created in the cli.
Create a "Hello World" lambda to be used as the trigger, granting it no access to the storage bucket (you can't do grant access to storage anyways because it doesn't exist).
Create your storage bucket & while creating select your newly created lambda as the trigger for that bucket.

Doing this creates adds this policy below to the s3-cloudformation-template.json file for the storage bucket, so there is no need to further grant the function access to the storage. I assume the fact that this policy is created by adding the lambda as a trigger to the bucket is what causes a "cyclic dependency" when you try to grant access through modification of the lambda in the cli. They should make it clear that there is no need to grant the lambda access. Hope this helps!
"S3TriggerBucketPolicy": {
            "DependsOn": [
                "S3Bucket"
            ],
            "Type": "AWS::IAM::Policy",
            "Properties": {
                "PolicyName": "amplify-lambda-execution-policy",
                "Roles": [
                    {
                        "Ref": "functionYourLambdaTriggerNameLambdaExecutionRole"
                    }
                ],
                "PolicyDocument": {
                    "Version": "2012-10-17",
                    "Statement": [
                        {
                            "Effect": "Allow",
                            "Action": [
                                "s3:PutObject",
                                "s3:GetObject",
                                "s3:ListBucket",
                                "s3:DeleteObject"
                            ],
                            "Resource": [
                                {
                                    "Fn::Join": [
                                        "",
                                        [
                                            "arn:aws:s3:::",
                                            {
                                                "Ref": "S3Bucket"
                                            },
                                            "/*"
                                        ]
                                    ]
                                }
                            ]
                        }
                    ]
                }
            }
        },


Connect new devices after device lost

if device was lost then we doesn't get state for device
if device was lost then we trying to connect new device by spec
if device was connected but state has not ready then we disconnect device

[Current coverage][cc-pull] is 76.03%

Merging [#21][cc-pull] into [master][cc-base-branch] will increase coverage by 16.45%

@@             master        #21   diff @@
==========================================
  Files             3          3
  Lines           334        363    +29
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            199        276    +77
+ Misses          135         87    -48
  Partials          0          0

Powered by Codecov. Last updated by [4a48b21...6665e59][cc-compare]
[cc-base-branch]: https://codecov.io/gh/2gis/stf-utils/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/2gis/stf-utils/compare/4a48b21688e920e0107d4d6dc6a5fe92a672ddd4...6665e59ede794aa43f2fb6572c3b120b616fe2a7
[cc-pull]: https://codecov.io/gh/2gis/stf-utils/pull/21?src=pr

👍

:+1:

:+1:


Loading Session

Loading of session gives -> Unable to locate the specified class: Session.php

Vivers:
Session is now a driver, the must to be loaded as is :
In autoload.php:
$autoload['drivers'] = array('session');
In any controller:
$this->load->driver('Session');

Same error with driver autoload.

Yep, seems a problem with lower/upper case in Linux.
I'm finding solution for this.

It looks like problem with $_classes register. I manualy override this with if statment and it works now. But i don't know much CI Core so i have no idea where can be problem.
i use this now in common.php
if($class == 'Session') 		{ 			return $_classes[$class]; 		}

Yes, it's a problem with drivers and MX, I wil find a solution mean while...
You must to create a MY_Session.php file under apps/base/application/libraries, extending from CI_Session to be fully compatible with HMVC:
<?php
class MY_Session extends CI_Sessio {}

Your solution doesn't work. It tells me secondary initialization of session. For while i stick with my "little trick" if i find solution i will post it :)

Both solutins implemented... check the code, sync with repository.
Thans again for alert me on this problem !!

You are welcome, your project helped me a lot to create good file structure and use with multiple application system, but there must be solution to avoid interfere with CI core. It sould be intact.
I will dig more to core to find solution :)

I will try to dig also in a 'clean' solution.
Please, take care: module name must to be 'lowercase',

I found out, this problem is related somehow because it is in subdirectory. I created my own library Rbac and put it to subdirectory 'Rbac/Rbac.php' and it shows same error.

Helo Vivers, try las modifications, I tested and Session and other drivers are loaded OK.

Perfect  job ;) Thank You very much... I started agian with programming few days ago after long break... So this was little big nut for me :D

Helo, solved Session problems, library driver problems, there was also a problem loading common/modules.
Now working and HMVC, with minimal changes in Codeigniter.php, lines 402 to 423 that I will copy to next CI version.


Add color to successfull sync message

When a schedule contains multiple tasks, success event separating sync items is not easily identifiable in the text list
Easily spot it using a green success color

this is a proper code and works perfectly

I merged your changes.

👍


Construct road-edge curves

Right now, we generate RoadLanes (for AI) but we don't have any way to fetch the edge along a curve/road. Someone who wants to, for example, create a sidewalk or barrier following the edge of a road would have to place their own curve.
Let's use the same approximation mentioned here to construct one or more "Road edge curves".
For Wheel Steal Game, since RoadPoints are always added one RoadPoint at a time, we will need to be able to have these curves be per-RoadSegments. But there should also be an option/mode to create them per RoadContainer. The RoadContainer use case is likely much nicer for many users, as they can have one barrier that extends the entire road, whereas per RoadSegment they'd have to set up the configuration on each individual RoadPoint.
Some considerations:

In order to be useful, these generated 3D paths need to be visible in the viewport hierarchy
This also means great effort should go into reusing the same Path node, instead of deleting / re-adding. This is because we expect the user to place children underneath.
For that reason, likely the approach should be something like:
a. If the check mark is checked, start this process
b. See if the target curve children exist (following some naming convention); if not, create it
c. Now update the curve resource accordingly (the safe part)
c. If the checkbox is later unchecked, give a popup warning if there are any children to say that it will be deleted.
It should be an option. Perhaps by default, on for RoadContainers but off for RoadPoints.
The way this works for non-intersections is pretty clear. But this will be tricky to maintain, most likely, for intersections. If we really want to support use cases like sidewalks however, it will be important this generalized to intersection use cases as well, even if it's in a secondary step.

As we discussed, Edge curves will be placed on each RoadPoint. However, the "Create Edge Curves" flag that enables/disables them will be on the RoadContainer.
Per the requirements, if Create Edge Curves is disabled, it it will clear all of the edge curves on scene load or when a rebuild is triggered.
Also, the logic that drives much of the program behavior is such that only the selected RoadPoint gets updated when a change is made. Not the entire network. Hence, edge curves only get created for RoadPoints that are updated in some way. This may or may not be the desired behavior. Feel free to weigh in.
Lastly, since each RoadSegment will have a left and a right curve, they will be named "edge_L" and "edge_R". They will be unique on a per RoadPoint basis. Thus, complex naming isn't needed.

Minor update: The edge curves will actually be called "edge_F" and "edge_R" for "Forward" and "Reverse".

Hey @bdog2112! Thanks for laying out the additional details here. Agreed on all points above, including the naming. I appreciate the revision there, since that nicely parallels the pre-existing terminology. Couple things to upack a little further:

Per the requirements, if Create Edge Curves is disabled, it it will clear all of the edge curves on scene load or when a rebuild is triggered.

To be more explicit, let's go with:

If "Create Edge Curves" is disabled, we can outright delete the Path3D nodes (which would delete all children as well).
If "Create Edge Curves" is enabled, and any rebuild is triggered (via a roadpoint update, container-wide rebuild), we should only update the curve reference within the pre-existing Path3D nodes. This is because users will be manually placing children on these road edges, we don't want to delete their work!

Another thought I had is whether we should try to create some kind of warning or popup if a user tries to disable edges on a container when such edges already have pre-existing children. This would probably be tricky, especially since we'll still need to use export vars. So, I'm shelving that idea for now but something to consider in the future.
One other thing to watch out for is how the behavior works with undo (and redo). There's already some cases today that aren't ideal (bug here: https://github.com/TheDuckCow/godot-road-generator/issues/84) so we could potentially just tack onto that if we have new problems arise. So, don't fret if it's not perfect out of the box.

Ah I'm now realizing I already wrote much of this in the above description - anyhow, main priority is getting the reusable edges in place, other polishing features like popups and undo/redo we can take in a second stride.

Need some input on desired curve behavior when manipulating RoadPoints.
During RoadPoint Rotation/Translation (manipulation), RoadLanes are cleared. But, when mouse button is released, RoadLanes are rebuilt. Meanwhile, road geometry is updated throughout the manipulation process. What is the desired behavior for RoadEdges?

Hide RoadEdge on manipulation start. Then, show RoadEdge on manipulation end.
Update RoadEdge continuously during RoadEdge manipulation.
Leave RoadEdge visible during manipulation. But, don't update until manipulation end.

RoadEdges will have attached objects. Hence, the above alternatives are applicable, there, as well. What is the desired behavior for attached objects?
For the moment, I will proceed with option 1 for RoadEdges and option 3 for attached objects.

Also recommend performing the following test: Attach objects to RoadEdges, manipulate associated RoadPoints, and observe what happens to the attached objects. Then, think about the desired behavior of the attached objects. What is the desired behavior?

I actually am liking the idea of number two - since the objects aren't being destroyed and created each time, just updating some curves, it should remain pretty responsive. Plus it may be useful for users to preview how roadside elements will be before they release. On Mar 1, 2024 1:29 PM, "B. Rhoades" @.***> wrote:
Need some input on desired curve behavior when manipulating RoadPoints.
During RoadPoint Rotation/Translation (manipulation), RoadLanes are cleared. But, when mouse button is released, RoadLanes are rebuilt. Meanwhile, road geometry is updated throughout the manipulation process. What is the desired behavior for RoadEdges?
Hide RoadEdge on manipulation start. Then, show RoadEdge on manipulation end.Update RoadEdge continuously during RoadEdge manipulation.Leave RoadEdge visible during manipulation. But, don't update until manipulation end.
RoadEdges will have attached objects. Hence, the above alternatives are applicable, there, as well. What is the desired behavior for attached objects?
For the moment, I will proceed with option 1 for RoadEdges and option 3 for attached objects.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Alright! Just pushed an update. Here are the deets:

When user selects RoadContainer in Scene dock and toggles "Create Edge Curves" in Inspector panel, edge curves update automatically. (Before, user had to save and reload scene.)
Curves update continuously when RoadPoints are manipulated
Curves are persistent (no longer re-created) during manipulation
Attached objects are persistent unless "Create Edge Curves" is toggled
When edge curves are deleted, curve children are also explicitly deleted to avoid orphans

TTD:

Adjust curve position based on number of lanes.

Curves appear fine on first RoadSegment. But, something is wrong on subsequent segments. Investigating...

Nice update @bdog2112! Had fun playing around with it here :D
https://github.com/TheDuckCow/godot-road-generator/assets/2958461/a73cab63-f399-470d-8487-52347b5a8b17
Only comment is it seems there might be some global to local mixup (I guess that's the godot equivalent of "off by 1"), see here, just in case you weren't already aware. Really excited to see this working once we have intersection offsets accounted for, making great progress.
https://github.com/TheDuckCow/godot-road-generator/assets/2958461/cdb36b5d-1afe-4743-aaac-783a1d834b05

Pushed latest WIP. Previously, refactored code so that it would update instead of add curve points if they already existed. Determined that a couple of local/global coordinate conversions were needed in the refactored code. Curves should not plot as expected.

Nice - we can start moving the discussion more into the PR itself now, so we don't have to post in both locations - my latest comment (and future ones) will be there

I'm going to mark this task as done, since they are working in dev to spec. Good work!


im new to homebridge, how do it do anything? i did some of those advanced hacker sht you programmers do but my devices arent in the home app. what do i do in the config editor?

Are you using the Tuya Web Plug in or the Tuya plug in?
From the picture it shoes the Tuya Web Plug In, but this area is for the Tuya plug in. Can you show what the plug ins you have are?

Are you using the Tuya Web Plug in or the Tuya plug in?
From the picture it shoes the Tuya Web Plug In, but this area is for the Tuya plug in. Can you show what the plug ins you have are?

Wrong repo 😅


chore(avm): more pilcom compat changes

More changes that I need for compatibility between old and new witgen.
In particular, I'm using bb::{{vm_name}} namespaces versus {{name}}Composer/Verifier etc because it makes it easier to work with both of them. Also I had to add a prefix to the macros because namespaces don't work with them.

#10569  👈 (View in Graphite)
master

This stack of pull requests is managed by Graphite. Learn more about stacking.


Question: Can I use an already created store?

Hi, I am completely new to zustand, and i want to use the same zustand store in both vue2 and react. An update to a variable in react should update the state in vue2, and vice versa.
In the example in the readme, you create and export a new store, but i would like to reuse the existing store which i have created in react.
Is it possible to pass an existing store to create? Or should a new store be created differently?
The only way i see this would be possible, is to watch for any changes in the store and then use useStore.setState to update the whole state, but i don't think this is the correct way to move forward.
I might fork this repo to implement this for our own codebase, but i thought i would ask first as I'm not that experienced with zustand. Which changes would have to be made to the codebase to use and sync the store between react and vue2?

Fixed in pull request #8.
Yes, you have to create a vanilla store, and from that store you can create a vue store (as explained in the gist which was added to the readme), and a react store by importing the same store in multiple files.


onHoverIn missing from types in Pressable

//@ts-ignore Flexn SDK does not have this prop?
onHoverIn={() => {
setIsHover(true);
tSetState('hover');
}}

Workaround in prd-ost-flosky:
https://github.com/flexn-seals/prd-ost-flosky/blob/802f8b54a396d94c144af83b398d67d75156e7f6/packages/sdk-flosky/typings/react-native.d.ts#L42

@locksten @pavjacko how did you made this workaround? When our RN version does not even support onHoverIn https://reactnative.dev/docs/0.67/pressable

@aurimasmi I didn't write that code, but I'm pretty sure that react-native-web supported those props earlier than react-native.


Need tests, in multiple way

Describe This Problem
It's hard to contribute without unit tests
Proposal
We may build e2e integration tests first, after that can consider to improve unit tests coverage.

[ ] build e2e integration tests basis
[ ] Add UT coverage requirement

Additional Context
No response

@kongluoxing
This is a good idea.
We were aware of this issue before, and I recently added a PR (WIP) to prepare the environment for integration tests.
It is expected that it will take a lot of time to supplement test cases and cultivate the habit of developers to write test cases, which will last for several months.

Hi @kongluoxing . I have opened a PR adding E2E tests to HoloInsight project.


Add serializer-test blueprint

This one should set at least have an option for setting up a serializer integration test, where you actually interact with the ember-data layer and use mirage to check what gets sent to the server.

Moved to https://github.com/ciena-frost/ember-cli-frost-blueprints/issues/4


Weird bug with two months

Running into a weird bug I cannot seem to figure out. When there are two months to display, the second month displays fine, but scrolling to the left displays nothing (blank). However if I set the calendar to have more than two months everything displays fine..

which version are you using?

Omg. i see it. looking into it.

Ok its a small error on my part.
can you fix the following file in your code? look for JTAppleCalendarLayout.swift file. (select yes when it asks you to unlock it)
replace this function:
    func binarySearch<T: Comparable>(a: [T], key: T) -> Int {
        var range = 0..<a.count
        var midIndex: Int = 0
        while range.startIndex < range.endIndex {
            midIndex = range.startIndex + (range.endIndex - range.startIndex) / 2
            if midIndex + 1  >= a.count || key >= a[midIndex] && key < a[midIndex + 1] ||  a[midIndex] == key {
                return midIndex
            } else if a[midIndex] < key {
                range.startIndex = midIndex + 1
            } else {
                range.endIndex = midIndex
            }
        }
        return midIndex
    }

with this one
    func binarySearch<T: Comparable>(a: [T], key: T) -> Int {
        var range = 0..<a.count
        var midIndex: Int = 0
        while range.startIndex < range.endIndex {
            midIndex = range.startIndex + (range.endIndex - range.startIndex) / 2
            if midIndex + 1  >= a.count || key >= a[midIndex] && key < a[midIndex + 1] ||  a[midIndex] == key {
                break
            } else if a[midIndex] < key {
                range.startIndex = midIndex + 1
            } else {
                range.endIndex = midIndex
            }
        }
        if a.count < 3 { midIndex = 0}
        return midIndex
    }

This is just a dirty fix. I will fix the binary function in the morning. Then do an official release on saturday.

Fixed issue on master Branch.

Thanks for this, works great.


bash: line 111: chef-client: command not found on install.sh

Hi,
am trying to bootstrap a node from my work station using knife command, but getting error such as
'bash: line 111: chef-client: command not found'. have proxy settings which allows me to access opscode.com or chef.io, so its not an proxy issue, so could you please guide me how do i resolve it.
here in the attached snapshot:
devrepo1 node is my workstation
<IP_ADDRESS> is my chef-client which needs to bootstrap.
and using chef DK Version 0.4.0
and chef 12

please guide me bootstrap a node on chef client using chef12
Thanks,
Ven.

The problem is the "connection refused" error two lines earlier.   If you have a proxy you probably need to pass --bootstrap-proxy to knife bootstrap.

Closing this as can't replicate and probably a networking setup error


Listservs - Connection to Vertical Response & Mailman

Listservs are through Mailman. My understanding is that when a person unchecks a listserv, they are actually unsubscribed in Mailman. Email subscriptions are through Vertical Response and are handled the same way. What happens in the instance that a person is not already in VR or Mailman and they subscribe on our website. Is a contact then created in either of the two programs?

If a user subscribes to a Listserv on the website, that would be equivalent to them manually signing up in Mailman.  I haven't built Vertical Response integration, yet.


build-optimizer failure

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

ng eject --aot --prod --build-optimizer --no-sourcemaps generates a webpack.config.js that tries to use PurifyPlugin without importing it (ReferenceError: PurifyPlugin is not defined).
ng build --aot --prod --build-optimizer --no-sourcemaps fails with this error:
 92% chunk asset optimization
<--- Last few GCs --->

[455:0x560e167f5620]   707807 ms: Mark-sweep 1413.1 (1518.5) -> 1413.1 (1502.5) MB, 7277.9 / 0.0 ms  (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 7279 ms) last resort
[455:0x560e167f5620]   715214 ms: Mark-sweep 1413.1 (1502.5) -> 1413.1 (1502.5) MB, 7406.3 / 0.0 ms  last resort

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x364665b1bbd9 <JS Object>
    2: def_variable [0x364665b02241 <undefined>:3551] [pc=0x4528827ac2b](this=0x1f233b8a5261 <an AST_Function with map 0x127ef311b591>,symbol=0x1f233b8bfc71 <an AST_SymbolFunarg with map 0x150b45cc9009>)
    3: visit [0x364665b02241 <undefined>:3402] [pc=0x45286bed532](this=0x2b8b84e771a1 <a TreeWalker with map 0x3e9d366dda09>,node=0x1f233b8bfc71 <an AST_SymbolFunarg with map 0x150b45cc9009>,de...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [@angular/cli]
 2: 0x560e14f2b97e [@angular/cli]
 3: v8::Utils::ReportOOMFailure(char const*, bool) [@angular/cli]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [@angular/cli]
 5: v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) [@angular/cli]
 6: v8::internal::Factory::NewScopeInfo(int) [@angular/cli]
 7: v8::internal::ScopeInfo::Create(v8::internal::Isolate*, v8::internal::Zone*, v8::internal::Scope*, v8::internal::MaybeHandle<v8::internal::ScopeInfo>) [@angular/cli]
 8: v8::internal::DeclarationScope::AllocateVariables(v8::internal::ParseInfo*, v8::internal::AnalyzeMode) [@angular/cli]
 9: v8::internal::DeclarationScope::Analyze(v8::internal::ParseInfo*, v8::internal::AnalyzeMode) [@angular/cli]
10: v8::internal::Compiler::Analyze(v8::internal::ParseInfo*, v8::internal::ThreadedList<v8::internal::ThreadedListZoneEntry<v8::internal::FunctionLiteral*> >*) [@angular/cli]
11: 0x560e148b8aaa [@angular/cli]
12: 0x560e148b9b2f [@angular/cli]
13: 0x560e148be795 [@angular/cli]
14: v8::internal::Compiler::Compile(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Compiler::ClearExceptionFlag) [@angular/cli]
15: v8::internal::Runtime_CompileLazy(int, v8::internal::Object**, v8::internal::Isolate*) [@angular/cli]
16: 0x452869840bd
../commands/prodbuild.sh: line 10:   455 Aborted                 ng build --aot --prod --build-optimizer --no-sourcemaps

Expected behavior

Both of these commands should work.
 I'll get back to you on this one.

What is the motivation / use case for changing the behavior?

Functioning as documented.
Environment

Angular version: 4.3.4
Angular CLI version: 1.3.0

For Tooling issues:
- Node version: 8.2.1
- Platform: Debian Sid x86-64 in a Docker image with 4 GB RAM allocated

Others:

Can you see if your issue is the same as https://github.com/angular/angular-cli/issues/5618 ?

Well, in my case, both of those commands work fine without the --build-optimizer part. Could it still be the same root cause as that issue? Should I try increasing the allocated RAM (currently 4 GB) to see if it mitigates the problem?

@ericmartinezr, I'm not 100% sure why (I suspect it may be due to updating to Node 8.3.0), but the ng build issue has been resolved. However, I'm now getting a build failure with the following error that doesn't look related to my code:
ERROR in ./node_modules/rxjs/observable/BoundCallbackObservable.js
Module build failed: TypeError: Cannot read property 'type' of undefined
    at Object.getEffectiveTypeAnnotationNode (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:9341:17)
    at assignContextualParameterTypes (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:41652:25)
    at checkFunctionExpressionOrObjectLiteralMethod (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:41948:29)
    at checkExpressionWorker (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:42959:28)
    at checkExpression (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:42898:42)
    at checkExpressionCached (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:42779:38)
    at checkReturnStatement (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:45418:54)
    at checkSourceElement (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46763:28)
    at Object.forEach (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:1506:30)
    at checkBlock (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:44563:16)
    at checkSourceElement (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46742:28)
    at checkFunctionExpressionOrObjectLiteralMethodDeferred (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:41990:21)
    at checkDeferredNodes (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46828:25)
    at checkSourceFileWorker (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46863:17)
    at checkSourceFile (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46842:13)
    at Object.forEach (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:1506:30)
 @ ./node_modules/rxjs/observable/bindCallback.js 2:32-68
 @ ./node_modules/rxjs/add/observable/bindCallback.js
 @ ./node_modules/rxjs/Rx.js
 @ ./src/js/cyph.com/mock-database.service.ts
 @ ./src/$$_gendir/js/cyph.com/app.module.ngfactory.ts
 @ ./src/js/cyph.com/main.ts
 @ multi ./src/js/cyph.com/main.ts
ERROR in ./node_modules/rxjs/observable/BoundNodeCallbackObservable.js
Module build failed: TypeError: Cannot read property 'type' of undefined
    at Object.getEffectiveTypeAnnotationNode (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:9341:17)
    at assignContextualParameterTypes (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:41652:25)
    at checkFunctionExpressionOrObjectLiteralMethod (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:41948:29)
    at checkExpressionWorker (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:42959:28)
    at checkExpression (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:42898:42)
    at checkExpressionCached (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:42779:38)
    at checkReturnStatement (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:45418:54)
    at checkSourceElement (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46763:28)
    at Object.forEach (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:1506:30)
    at checkBlock (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:44563:16)
    at checkSourceElement (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46742:28)
    at checkFunctionExpressionOrObjectLiteralMethodDeferred (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:41990:21)
    at checkDeferredNodes (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46828:25)
    at checkSourceFileWorker (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46863:17)
    at checkSourceFile (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:46842:13)
    at Object.forEach (/home/gibson/.build/cyph.com/node_modules/typescript/lib/typescript.js:1506:30)
 @ ./node_modules/rxjs/observable/bindNodeCallback.js 2:36-76
 @ ./node_modules/rxjs/add/observable/bindNodeCallback.js
 @ ./node_modules/rxjs/Rx.js
 @ ./src/js/cyph.com/mock-database.service.ts
 @ ./src/$$_gendir/js/cyph.com/app.module.ngfactory.ts
 @ ./src/js/cyph.com/main.ts
 @ multi ./src/js/cyph.com/main.ts

Also, as expected, the ng eject issue still persists.

Getting the same error as above with the build optimizer turned on.

Also getting it

https://github.com/angular/angular-cli/issues/7110 is related to the TypeError: Cannot read property 'type' of undefined.
If you don't need the operators bindCallback and bindNodeCallback which will both get included if you (or some other module you are using in your application) import all of rxjs using import 'rxjs/Rx' or import { Observable } from 'rxjs/Rx', you can workaround the issue by only importing the operators you actually use.
Or just revert back to typescript 2.3.x until the issue is fixed.
See https://github.com/angular/angular-cli/issues/3904 or https://christianliebel.com/2017/07/import-rxjs-correctly/

The first issue was definitely a memory problem and it's being tracked in https://github.com/angular/angular-cli/issues/5618. The second is being tracked in #7110.

Sounds good, thanks @filipesilva. It looks like those are tracking the two ng build problems I reported here; is the ng eject bug being tracked somewhere?

I missed the purify plugin bit actually, that isn't being tracked anywhere else. Reopening to fix that.

temp fix for ejected Webpack build, add the following line to webpack.config.js
const { PurifyPlugin } = require('@angular-devkit/build-optimizer');

Is there any workaround for angular-cli 1.5.0? It uses new PurifyPlugin(),

Fixed by https://github.com/angular/angular-cli/pull/8277


[helm] changed drbd-adapter charts to use ghcr.io registry

As suggested by @yankay, change drbd-adapter helm charts to use ghcr.io registry instead of daocloud.io.
Other changes

removed schedulerName setup from the guide as it is no longer needed;
correct the mount path for /usr/local/bin;
suspends drbd-reactor process because it often gives no log;
correct some typos in the doc;

LGTM


Adding a c++ program

Hi @sri32jan , Kindly add the program in the respective folder and if the folder is not there make one. Also don't forget to tag the appropriate issue while opening a PR


feat(pnpm): nodePackages.pnpm: 7.29.1 -> 8.1.1

Temporary until https://github.com/NixOS/nixpkgs/pull/224851 or a PR with equivalent intention is merged.

Damn GitHub UI... same mistake as #224863. Sigh.


FR: expandable input with icon button

mdl: http://www.getmdl.io/components/index.html#textfields-section
See "Expanding"

Hi @ceram1
Now we are moving all our components to stateless mode. When we have completed this process I will create this property for <Input>.

Thanks for reporting @ceram1 We will include it soon!

Since it's out of the spec we are not implementing if for now. If you feel like it's very important add +1 so we can reconsider it.

As it's common in "Do" in material design spec, I searched for it and found https://www.google.com/design/spec/patterns/search.html#search-in-app-search
See Expandable Search

Well, this is actually from Patterns and it looks more like the autocomplete...

I meant
https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B6Okdz75tqQsYkJBc2RpNFI0SU0/patterns_search_expandable1.png and https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B6Okdz75tqQsUENaeGRvVks0Tms/patterns_search_expandable2.png
Spec refered this images from "Expandable search"


Project starter

.gitignore, makefile, project structure

Hi, can you give a bit more detail of what you are after here and I can take a look?

@gundalow updated description


Assignment to variable in loop failing in Jinja 2.9

Expected Behavior
If I use {% set %} to set a variable in a template, I should be able to change the value of that variable later in the template, inside loops. This works in Jinja 2.8, but appears to be broken in Jinja 2.9.
Actual Behavior
The variable's value appears to get lost on every iteration of a loop.
Template Code
{% set count = 0 %}
{% for x in range(10) %}
{% if count < 3 %}
{{ count }}
{% set count = count+1 %}
{% endif %}
{% endfor %}

Full Traceback
No traceback
Your Environment

Python version: 2.7.13
Jinja version: 2.9.4

Duplicate with #641.


tympanic cavity

Add:
abnormal tympanic cavity morphology (a child of abnormal middle ear morphology MP:0000049)
DEF: any structural anomaly of the small, air-filled, mucosa-lined cavity that is located in the petrous portion of the temporal bone and houses the auditory ossicles and intratympanic muscles (tensor tympani and stapedius) as well as the chorda tympani and the tympanic plexus of nerves; it is split into two parts: the tympanic cavity proper (the space directly internal to the tympanic membrane) and the epitympanic recess or attic (the space superior to the tympanic membrane)
SYN: abnormal middle ear cavity morphology
SOURCES:
https://radiopaedia.org/articles/middle-ear
http://www.dummies.com/education/science/anatomy/the-anatomy-of-the-middle-ear/
https://www.kenhub.com/en/start/c/ear
Annotations in: J:131873,  J:85263  J:59750
absent tympanic cavity
DEF: absence of the small, air-filled, mucosa-lined cavity that is located in the petrous portion of the temporal bone and houses the auditory ossicles and intratympanic muscles (tensor tympani and stapedius) as well as the chorda tympani and the tympanic plexus of nerves
SYN: absent middle ear cavity
J:57313

abnormal tympanic cavity morphology MP:0030154
absent tympanic cavity MP:0030155


[构建失败] custodia

custodia最初构建失败是在执行/usr/bin/python3 -m venv --system-site-packages testenv创建python虚拟环境失败造成的
[ 1175s] + export PIP_INDEX_URL=http://host.invalid./
[ 1175s] + PIP_INDEX_URL=http://host.invalid./
[ 1175s] + export PIP_NO_DEPS=yes
[ 1175s] + PIP_NO_DEPS=yes
[ 1175s] + export PIP_IGNORE_INSTALLED=yes
[ 1175s] + PIP_IGNORE_INSTALLED=yes
[ 1175s] + /usr/bin/python3 -m venv --system-site-packages testenv
[ 1177s] Error: Command '['/home/abuild/rpmbuild/BUILD/custodia-0.6.0/testenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
[ 1178s] error: Bad exit status from /var/tmp/rpm-tmp.amnf3R (%check)
[ 1178s]
[ 1178s]
[ 1178s] RPM build errors:
[ 1178s]     Bad exit status from /var/tmp/rpm-tmp.amnf3R (%check)
[ 1178s]
[ 1178s] oe-RISCV-worker6 failed "build custodia.spec" at Thu Jan  6 07:17:52 UTC 2022.

使用python3 -m venv创建虚拟环境需要安装python3-venv，经查询obs中没有python3-venv，有python3-pytest-virtualenv，于是在spec文件中的BuildRequires中增加python3-pytest-virtualenv，并将创建python虚拟环境的方式修改为virtualenv testenv

rebuild后，创建python虚拟环境成功了,执行testenv/bin/python -m pytest --capture=no --strict --skip-servertests失败，提示没有pytest module
[ 1180s] + export PIP_INDEX_URL=http://host.invalid./
[ 1180s] + PIP_INDEX_URL=http://host.invalid./
[ 1180s] + export PIP_NO_DEPS=yes
[ 1180s] + PIP_NO_DEPS=yes
[ 1180s] + export PIP_IGNORE_INSTALLED=yes
[ 1180s] + PIP_IGNORE_INSTALLED=yes
[ 1180s] + virtualenv testenv
[ 1196s] created virtual environment CPython3.7.4.final.0-64 in 12570ms
[ 1196s]   creator CPython3Posix(dest=/home/abuild/rpmbuild/BUILD/custodia-0.6.0/testenv, clear=False, no_vcs_ignore=False, global=False)
[ 1196s]   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/abuild/.local/share/virtualenv)
[ 1196s]     added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1
[ 1196s]   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
[ 1196s] + testenv/bin/pip install .
[ 1212s] Looking in indexes: http://host.invalid./
[ 1212s] Processing /home/abuild/rpmbuild/BUILD/custodia-0.6.0
[ 1230s] Building wheels for collected packages: custodia
[ 1230s]   Building wheel for custodia (setup.py): started
[ 1240s]   Building wheel for custodia (setup.py): finished with status 'done'
[ 1240s]   Created wheel for custodia: filename=custodia-0.6.0-py2.py3-none-any.whl size=68324 sha256=16da7145dad2dbaf682e0d813a5359abce8f8f4f8b8dab33d9f2706348c4cb5e
[ 1240s]   Stored in directory: /home/abuild/.cache/pip/wheels/b7/af/eb/32bfcdbf85477855b7fbab3eba20857d585e322cf8e241a267
[ 1240s] Successfully built custodia
[ 1240s] Installing collected packages: custodia
[ 1241s] Successfully installed custodia-0.6.0
[ 1241s] WARNING: The repository located at host.invalid. is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host host.invalid.'.
[ 1243s] + testenv/bin/python -m pytest --capture=no --strict --skip-servertests
[ 1244s] /home/abuild/rpmbuild/BUILD/custodia-0.6.0/testenv/bin/python: No module named pytest
[ 1244s] error: Bad exit status from /var/tmp/rpm-tmp.Rp7YV7 (%check)
[ 1244s]
[ 1244s]
[ 1244s] RPM build errors:
[ 1244s]     Bad exit status from /var/tmp/rpm-tmp.Rp7YV7 (%check)
[ 1244s]
[ 1245s] oe-RISCV-worker53-home failed "build custodia.spec" at Sat Jan  8 16:40:37 UTC 2022.

由该结果看出python3-pytest-virtualenv中并没有预先安装好pytest，再次修改spec文件，在其中添加pip install pytest

再次rebuild后，执行testenv/bin/pip install pytest失败，提示在http://host.invalid./中找不到pytest
[ 1795s] + export PIP_INDEX_URL=http://host.invalid./
[ 1795s] + PIP_INDEX_URL=http://host.invalid./
[ 1795s] + export PIP_NO_DEPS=yes
[ 1795s] + PIP_NO_DEPS=yes
[ 1795s] + export PIP_IGNORE_INSTALLED=yes
[ 1795s] + PIP_IGNORE_INSTALLED=yes
[ 1795s] + virtualenv testenv
[ 1811s] created virtual environment CPython3.7.4.final.0-64 in 13701ms
[ 1811s]   creator CPython3Posix(dest=/home/abuild/rpmbuild/BUILD/custodia-0.6.0/testenv, clear=False, no_vcs_ignore=False, global=False)
[ 1811s]   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/abuild/.local/share/virtualenv)
[ 1811s]     added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1
[ 1811s]   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
[ 1812s] + testenv/bin/pip install .
[ 1835s] Looking in indexes: http://host.invalid./
[ 1835s] Processing /home/abuild/rpmbuild/BUILD/custodia-0.6.0
[ 1867s] Building wheels for collected packages: custodia
[ 1867s]   Building wheel for custodia (setup.py): started
[ 1881s]   Building wheel for custodia (setup.py): finished with status 'done'
[ 1881s]   Created wheel for custodia: filename=custodia-0.6.0-py2.py3-none-any.whl size=68324 sha256=427080bdd67034e8929b06b5bf1e794effc0e58996413e21ebf62769a193355e
[ 1881s]   Stored in directory: /home/abuild/.cache/pip/wheels/b7/af/eb/32bfcdbf85477855b7fbab3eba20857d585e322cf8e241a267
[ 1881s] Successfully built custodia
[ 1881s] Installing collected packages: custodia
[ 1884s] Successfully installed custodia-0.6.0
[ 1884s] WARNING: The repository located at host.invalid. is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host host.invalid.'.
[ 1887s] + testenv/bin/pip install pytest
[ 1901s] Looking in indexes: http://host.invalid./
[ 1901s] WARNING: The repository located at host.invalid. is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host host.invalid.'.
[ 1901s] ERROR: Could not find a version that satisfies the requirement pytest
[ 1901s] ERROR: No matching distribution found for pytest
[ 1901s] WARNING: The repository located at host.invalid. is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host host.invalid.'.
[ 1902s] error: Bad exit status from /var/tmp/rpm-tmp.tDJbnf (%check)
[ 1902s]
[ 1902s]
[ 1902s] RPM build errors:
[ 1902s]     Bad exit status from /var/tmp/rpm-tmp.tDJbnf (%check)
[ 1902s]
[ 1902s] oe-RISCV-worker59-home failed "build custodia.spec" at Sat Jan  8 17:51:33 UTC 2022.
[ 1902s]

由执行结果看出，需要先将pytest放到http://host.invalid./ 里面，才可以安装pytest, 目前不知道如何放进去

现在已可构建成功：https://build.tarsier-infra.com/package/show/openEuler:22.03/custodia


Drop current directory sync code.

The offending bug has been fixed.
https://github.com/GoogleCloudPlatform/google-cloud-powershell/issues/17

LGTM


Small fixes

A few clean ups, nothing earth-shattering

Yes, yes it should. Will add a new commit


[VH] Non-boolean CertLogic result not handled

Describe the bug
If the CertLogic expression returns a non-boolean value, there is no corresponding ValidationResult.
Specifically, the else case is not handled here:
https://github.com/eu-digital-green-certificates/dgc-certlogic-ios/blob/14bcdce4ed19e151a9a3df1ea253db9a6238eeb7/Sources/CertLogic/CertLogic.swift#L58-L64
Expected behaviour
Non-boolean values are mapped to a ValidationResult in state open.
Steps to reproduce the issue
see code
Technical details
n/a
Possible Fix
handle else case
Additional context
n/a

@mlenkeit please take a look #31  and if it's all good please close the bug.

Looks good, thanks for the fix 👍


Integration: support Pabbly connect

We are working with Pabbly to support Grist integration. You can vote for Grist support on the Pabbly side at https://pabbly.hellonext.co/b/Integration-Request/p/grist

Grist actions are now supported by Pabbly: https://www.pabbly.com/connect/integrations/grist/

And it looks like Pabbly added triggers https://forum.pabbly.com/threads/grist.3823/#post-18221 - thanks @HermesRatgers for your nudging there! https://github.com/gristlabs/grist-core/issues/76#issuecomment-1025894341


Calling request without waiting for the response will lock up

I was doing some causual benchmarking, as one does. I was trying to measure latency so I was using requests. I forgot to wait for the response. This seem to cause the engine to lock up after about 500 requests.
I'm not sure if this is fixable, but we should at least document it.

I've been unable to reproduce this. I think I was just running out of inbox and backpressure was building. This is expected behavior, so no real issue.


Cross target .NET 5.0 and 3.1

Multiple partners have said that they will be able to adopt YARP sooner if we provide a netcoreapp3.1 target. We can cross target the package and light up new functionality. We'll want to have a doc tracking things that won't work on 3.1.

mypoint:
Q: Will YARP provide compatibility with .net core 3.1?
A:
will not. You can use the .net core3.1 client to access YARP through the command line, after ssh, there is a powershell command line interface. This command line interface is compatible with any external calls such as win, linux, python, etc.
user app want add back end to YARP--->commandline--->ssh client---> ssh server--->
powershell YARP module (powershell 7.1 preview base .net core 5)
--->  the static method of .net core 5 of YARP

If there is a lot of work for compatibility with .net core 3.1, I suggest not supporting it first.

So far almost every works, the main 5.0 improvements have been in performance. We'll see if we run into any roadblocks later on.

ok,3q


Store that CL component was installed after installing

Changes
Solves a bug that was causing the CL installer message to always a appear after connecting for the first time, and choosing to ignore the installer.
Now, if you install on the second connect, you will no longer get the message.
Checklist

[x] have tested my change
[ ] updated relevant documentation
[ ] Remove any/all console.logs I added
[ ] eslint is not complaining
[ ] have added myself to the contributors' list in CONTRIBUTING.md
[ ] for feature PRs: PR only includes one feature enhancement.

@worksofliam The issue is (also?) that even if you answer Yes to the CL install prompt and the install succeeds, it will reappear on the following connects. Maybe the PR description should be changed to reflect this?
The fix works as expected. Approved.


Allow custom import modules through environment variables

Very neat project, I added a feature you might be interested in:
orf@mean-lean-dev-machine:~|⇒  export ZPYI_IMPORTS=requests,urllib
orf@mean-lean-dev-machine:~|⇒  'urlopen'
<function urlopen at 0x7f64abeef398>

One problem is you can't seem to pass strings to functions. Any way around this?

That's a really neat way of handling imports! I had thought of it some bits, this is indeed a great solution!
As for the question you asked, you can do that to a limited extent (small strings, as long as it does not exceed the max command length in the shell) using something I described in the readme. Here is the same example again:
source ~/.zshrc
myname=$(whoami)
"
print ('${myname}'.upper())
print ('$(whoami)'.upper())
"

You can evaluate commands inside the python command (as long as you didn't begin the python command with a ', that's why I used " in the above example); and you can also refer to env vars inside python part.
Perhaps for extending this to all kinds of strings, I suppose it can be done nicely. I'll try to patch that up soon. I have an idea.

Awesome! I just tried get('http://google.com/') in the shell but ZSH overwrote it. I think it's the : character, or /.

You should try this:
"get('http://google.com')"

With backticks. I suppose that should work.
Also, another way to provide strings is via stdin, that would still work:
echo "http://www.google.com" | 'print(input())'

(python3)

Done. Please have a look at this commit
I suppose you should like this. Now coupled with shell env vars, piping via stdin, and CLI args, zpyi is literally a huge powerhouse of shell scripting power now! :smiling_imp:
You can now do things like:
'print(sys.argv[2])' abcd def
'print(args[0])' abcd

Note that the strings abcd, def etc are NOT a part of the python command. It is as if you ran a python script containing the print command with those strings as arguments. You can even access them with the correct index using sys.argv array!

Let me know when everything's good, and I'll merge this PR. Thanks again! :+1:

Looks good!


Summary of the changes: added Quick build paragraph.

Adding quick build instructions

Please follow the established style for the subject and commit message

Where do I find a reference guide for the subject and the commit message, please? Thanks

https://docs.yoctoproject.org/dev/contributor-guide/submit-changes.html#implement-and-commit-changes
But I'd say, there is a much less formal and much more useful rule: take a look around while making changes. This includes both code and commit styles.


module 'copilot_cmp.comparators' not found

I'm trying the snippet suggested in https://github.com/zbirenbaum/copilot-cmp#comparators
cmp.setup {
  ...
  sorting = {
    priority_weight = 2,
    comparators = {
      require("copilot_cmp.comparators").prioritize,
      require("copilot_cmp.comparators").score,

And get this:
Error detected while processing /Users/josh.nichols/workspace/pickled-nvim/init.lua:
E5113: Error while calling lua chunk: ...chols/.config/nvim/lua/pickled-nvim/language-support.lua:144: module 'copilot_cmp.comparators' not found:
        no field package.preload['copilot_cmp.comparators']
        no file './copilot_cmp/comparators.lua'
        no file '/opt/homebrew/share/luajit-2.1.0-beta3/copilot_cmp/comparators.lua'
        no file '/usr/local/share/lua/5.1/copilot_cmp/comparators.lua'
        no file '/usr/local/share/lua/5.1/copilot_cmp/comparators/init.lua'
        no file '/opt/homebrew/share/lua/5.1/copilot_cmp/comparators.lua'
        no file '/opt/homebrew/share/lua/5.1/copilot_cmp/comparators/init.lua'
        no file './copilot_cmp/comparators.so'
        no file '/usr/local/lib/lua/5.1/copilot_cmp/comparators.so'
        no file '/opt/homebrew/lib/lua/5.1/copilot_cmp/comparators.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './copilot_cmp.so'
        no file '/usr/local/lib/lua/5.1/copilot_cmp.so'
        no file '/opt/homebrew/lib/lua/5.1/copilot_cmp.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ...chols/.config/nvim/lua/pickled-nvim/language-support.lua:144: in main chunk
        [C]: in function 'require'
        /Users/josh.nichols/workspace/pickled-nvim/init.lua:25: in main chunk

I wonder if it has to do with using a vim.defer_fn for copilot.lua and `after = { 'copilot.lua'} for copilot-cmp?
	use {
		'zbirenbaum/copilot.lua',
		event = 'VimEnter',
		config = function()
			vim.defer_fn(function()
				require("copilot").setup({
					ft_disable = vim.g.filetype_plugin_config.copilot.disable,

					-- suggested to disable these when using with cmp
					suggestion = { enabled = false },
					panel = { enabled = false },
				})
			end, 100)
		end,
	}

	use {
		'zbirenbaum/copilot-cmp',
		after = {'copilot.lua'},
		config = function ()
			require("copilot_cmp").setup {
				method = "getCompletionsCycling",
				formatters = {
					label = require("copilot_cmp.format").format_label_text,
					insert_text = require("copilot_cmp.format").format_insert_text,
					preview = require("copilot_cmp.format").deindent,
				},
			}
		end
	}

my config for reference: https://github.com/technicalpickles/pickled-nvim

Encontering same problem, by remove after = {'copilot.lua'} to make it work.

I am having the same issue, Can't find the module - using lazy.nvim with lazy = false
module 'copilot_cmp.comparators' not found

any ideas?

@technicalpickles
i am also on lazy.nvim and can't get it to work. Whats your setup on lazy.nvim?


something wrong set WCJS_RUNTIME_VERSION

Dear jaruba,
Thank you for such an amazing nodejs package. I have encountered some trouble when installing wcjs-prebuilt. As the readme.md said, I need to set
set WCJS_RUNTIME=electron
set WCJS_RUNTIME_VERSION=0.37.6

then installation failed with following:
WebChimera.js_electron_0.33.9_ia32_win.zip  doesn't include VLC
WebChimera.js_electron_0.33.9_x64_osx.zip  doesn't include VLC
WebChimera.js_electron_0.33.9_x64_win.zip  doesn't include VLC
WebChimera.js_electron_0.37.6_ia32_win.zip  doesn't include VLC
WebChimera.js_electron_0.37.6_x64_osx.zip  doesn't include VLC
WebChimera.js_electron_0.37.6_x64_win.zip  doesn't include VLC
WebChimera.js_electron_1.2.0_ia32_win.zip  doesn't include VLC
WebChimera.js_electron_1.2.0_x64_osx.zip  doesn't include VLC
WebChimera.js_electron_1.2.0_x64_win.zip  doesn't include VLC
WebChimera.js_nw_0.15.0_ia32_win.zip  doesn't include VLC
WebChimera.js_nw_0.15.0_x64_osx.zip  doesn't include VLC
WebChimera.js_nw_0.15.0_x64_win.zip  doesn't include VLC
WebChimera.js_v0.2.5_electron_v0.33.9_VLC_v2.2.3_ia32_win.zip  not matching environment
WebChimera.js_v0.2.5_electron_v0.33.9_VLC_v2.2.3_x64_osx.tar.gz  not matching environment
WebChimera.js_v0.2.5_electron_v0.33.9_VLC_v2.2.3_x64_win.zip  not matching environment
WebChimera.js_v0.2.5_electron_v0.37.6_VLC_v2.2.3_ia32_win.zip  not matching environment
WebChimera.js_v0.2.5_electron_v0.37.6_VLC_v2.2.3_x64_osx.tar.gz  not matching environment
WebChimera.js_v0.2.5_electron_v0.37.6_VLC_v2.2.3_x64_win.zip  not matching environment
WebChimera.js_v0.2.5_electron_v1.2.0_VLC_v2.2.3_ia32_win.zip  not matching environment
WebChimera.js_v0.2.5_electron_v1.2.0_VLC_v2.2.3_x64_osx.tar.gz  not matching environment
WebChimera.js_v0.2.5_electron_v1.2.0_VLC_v2.2.3_x64_win.zip  not matching environment
WebChimera.js_v0.2.5_nw_v0.15.0_VLC_v2.2.3_ia32_win.zip  not matching environment
WebChimera.js_v0.2.5_nw_v0.15.0_VLC_v2.2.3_x64_osx.tar.gz  not matching environment
WebChimera.js_v0.2.5_nw_v0.15.0_VLC_v2.2.3_x64_win.zip  not matching environment

No WebChimera release found matching your environment
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "wcjs-prebuilt"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the wcjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs wcjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls wcjs-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\test\node-vlcPlayer-demo\npm-debug.log

I am on Windows 10, 64-bit, node v 5.10.1 and npm 3.8.3.
Thank you in advance.

I solved it by using set WCJS_RUNTIME_VERSION=v0.37.6. Hope it helps.

I fixed the readme examples on all the repos, thanks for finding it! :)


serde Serialize and Deserialise on shape types

What problem does this solve or what need does it fill?
I am wanting ot efficiently sync data between server and client. Since Mesh is not (and should not) implement serialise, I am using a custom enum. I wanted this enum to have variants like Prism(shape::Box) but I found out shape::Box doesn't implement serialise and deserialise.
What solution would you like?
#[cfg_attr("serialize-serde", derive(Serialize, Deserialize)] on all of the shapes
What alternative(s) have you considered?
Currently I can manually store the underlying types
Additional context
Thanks so much for bevy! Its awesome to have fun with :)

That could also be done for the shapes types recently added in bevy_math.

That could also be done for the shapes types recently added in bevy_math.

Bevy-math looks cool but I've never heard of it until now, is it supposed to replace bevy::prelude::shape in a future release? (I've only briefly looked myself, doesn't parry support these basic shapes?) it would be cool to have more expressive shapes in the future

is it supposed to replace bevy::prelude::shape in a future release

For the most part, yes. The high-level goal is to have a nice set of primitive shapes that are reusable and interoperable across Bevy's own crates and 3rd party plugins, so they could be used for mesh creation, rendering shapes via gizmos, collider shapes, raycasting, bounding volumes, some rendering things, and so on. This is unlike the existing shapes in bevy_render that are specific to meshes (e.g. IcoSphere and UVSphere with subdivision counts instead of a simple Sphere with a radius).

RFC
Initial PR: #10466
Tracking issue: #10572

doesn't parry support these basic shapes?

Yes, but we don't want to depend on Parry and bring Nalgebra to the dependency tree. We also might need to have more control over the shape representations so that they are as efficient and general-purpose as possible while being ergonomic to use.
And yes, implementing Serialize/Deserialize for the primitive shapes could be useful :)

Since Mesh is not (and should not) implement serialise, I am using a custom enum.

Why shouldn't it implement serialize?

I guess it's entirely possible, I just looked at it and saw it was complicated with only private fields. Maybe upholding invariants? It would be great, actually, if Mesh would be serializable.

At this point, all of the primitives within bevy_math now implement Serialize and Deserialize behind a feature flag. (And the old shapes have been removed.) Marking as closed :)