Translate new FAQ and How To into english

We need a translation of this text into english:
https://gist.github.com/zaziemo/5427aa21433493e8fbebc6ae5e2e0276
Some of the texts are similar to our current FAQ: https://speakerinnen.org/en/faq

Would it be possible to do this question-by-question, spread out across several contributors? If you open a pull request, people could propose their translations as comments. Or you translate the questions and people propose their translations as reviews. Either way would make it obvious for contributors what's left to be translated.

Until then, I'll add a Q&As here... :smiley_cat:
Who can register on Speakerinnen.org?
The goal of Speakerinnen.org is to get more women on stages and podiums, to conferences, workshops, meetings, and into media. Hence, everybody who identifies as a women can register herself. The Speakerinnen team vets every submission for completeness before publishing it.

Which topics can I choose?
You can freely choose your own topics. Upon entering one, you'll get suggestions of similar topics - you can choose one of them or create a new topic. Topics can be in any language. We organize topics into categories, which are then displayed on the Speakerinnen site.

Which languages can I use for my profile?
You can create your profile in either exclusively German, exclusively English, or once in each language. If you create your profile in just one of the languages, it will only be shown in the German or English version of the site. If you create your profile in both languages, it will be shown in both language versions.

Why is my profile not yet published?
The Speakerinnen team consists of volunteers and is not constantly online. If you just submitted your profile, it can take a moment before it is reviewed and published. If you only provided very little information, we may assume that it's not yet complete. If you want to publish it anyways, send a mail to<EMAIL_ADDRESS>

@nicolaiparlog thank you so much :)

Hey @zaziemo and @langjoh, do you still need help with the translations? I'm happy to pick something up :)

hey @kolja-lucht, as far as I remember this work is done. But this is a good reminder to actually close the ticket :)
If you are interested in doing something I can get back to you after our team call this evening and propose you some tickets.


CircleIndicatorView -- dependencies, related, dependents

A DepIndicator is a circle with a count in the center. The count depends on a function, and so does the color.

[x] prop determines number
[x] prop determines color

functions for "dependencies" indicator
function dependenciesNumber(item) {
  // blockers = dependencies - (dependencies that are done)
  if (item.links.blockers.length > 0) {
    return item.links.blockers.length
  }
  return dep.links.dependencies.length
}

function dependenciesColor(item) {
  if (item.links.blockers.length > 0) {
    return green
  }
  return red
}

functions for "related" indicator
var relatedNumber = (item) -> item.links.related
var relatedColor = (item) -> gray

functions for "dependents" indicator
var dependentsNumber = (item) -> item.links.dependents
var dependentsColor = (item) -> (item.done ? green : red)

The circle indicators here:

depends on #11

Progress:

Will be fixed by #11.  Can we either add a depends on #11 or merge #11 and close this?

Added depends on #11, merged #11, and closed #10.


[Question]: Support for function call api for OpenAI

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
Hi,
As recently function call api was added for openai api (https://openai.com/blog/function-calling-and-other-api-updates) i was trying to integrate such approach (among other things it allows for output parsing, which may be an alternative for existing apporach for output parsers). Unfortunately as far as i can tell it's impossible for current moment - the issue is that here (https://github.com/jerryjliu/llama_index/blob/main/llama_index/llm_predictor/base.py#L118) only chat_response.message.content is checked, but when using function call api it's possible that the chat_response.message.content will be None and the actual response will be found here chat_response.message.additional_kwargs['function_call']['arguments'] - as of current state this is missing
output = chat_response.message.content or ""

Solution:
As for solution that would be bullet proof i think the most feasible one would be to return raw chat_response instead of content - since raw response is already in chat_response but in the next line there is extraction which commits function call api entirely.
Btw. thanks for great work at this package!

We support the function calling api in a ton of our stuff.
If you want access using the low-level LLM object, check out how it works in the OpenAIAgent here
https://github.com/jerryjliu/llama_index/blob/779e7fc56cfff1edcd926c22a296d4813ba76117/llama_index/agent/openai_agent.py#L114C8-L114C8

Thanks for such quick response - it seems to solve the issue ;)
I must have missed Agent abstraction - there was a lot of going on around llm interfaces lately.
Issue to close

Haha I agree, easy to miss! Glad I could help


Add a license to the repository

I recently came across your project Qiskit-Programs and I noticed that the repository github.com/eseer-divad/Qiskit-Programs currently does not have a license specified.
Why Adding a License is Important?
As GitHub documents

Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you'll need to license it so that others are free to use, change, and distribute the software.

Would be possible to add a valid license to this repository? Probably something really OpenSource such as the Apache 2.0 license would fit really well.
Thanks!

Hello Dr. Cruz-Benito,
I have added the Apache 2.0 License.
Thank you for taking the time to look at my repo and open an issue! I had no idea neglecting to select a license causes problems, but I can see why now. I will revisit this repository and attempt to get more of this program working in December, it is just a starting point for me at the moment.
I'll be taking a course in Quantum Physics in the Spring, and this will be a lengthy notebook that may serve to introduce my peers at college to Qiskit. By then I'd like to have some programs working that I can show off running on your guys' hardware in the cloud.
-- Good luck in your projects! -- David Reese

Thanks


Update CUSTOM_METRICS_SERVER.md

Fix path in documentation
What does this PR do?
Fixes a small issue in the CUSTOM_METRICS_SERVER.md doc
Motivation
My love for good documentation

@eranchetz thanks again for your contribution. This documentation has now been moved to the documentation repo at https://github.com/DataDog/documentation/blob/master/content/en/agent/guide/cluster-agent-custom-metrics-server.md and it already includes the fix. I will close this PR now.


configurator test

all specs pass now :)
I've injected the service into the methods. Check test/service/configurator_test.iex ported directly from AS Ruby. It tests the same as the original gem.
I've noted that the URL is not exactly the same in the basic_test, when comparing ruby url and ex url.
%{
  "X-Amz-Algorithm" => "AWS4-HMAC-SHA256",
  "X-Amz-Credential" => "root/20220201/us-east-1/s3/aws4_request",
  "X-Amz-Date" => "20220201T052124Z",
  "X-Amz-Expires" => "3600",
  "X-Amz-Signature" => "9a61af620a2d074ba62da726fe00fb60afa121e403f1122cc03a44eb7e7b357c",
  "X-Amz-SignedHeaders" => "host"
}
pry(2)> ruby_query
%{
  "X-Amz-Algorithm" => "AWS4-HMAC-SHA256",
  "X-Amz-Credential" => "root/20220201/us-east-1/s3/aws4_request",
  "X-Amz-Date" => "20220201T052124Z",
  "X-Amz-Expires" => "300",
  "X-Amz-Signature" => "5bb4c125c14c69573d123d931b10f667aa020e4494a0cb6e04ac8901878642f0",
  "X-Amz-SignedHeaders" => "host",
  "response-content-disposition" => "inline; filename=\"dog.jpg\"; filename*=UTF-8''dog.jpg",
  "response-content-type" => "image/jpeg"
}

anyway I've added the option to pass headers or other options seen in the ExAws.presigned_url


Proposal: support dense menus

Bug, feature request, or proposal:
Proposal
Motivation
The spec mentions dense menu items

Default desktop menu
Menu item height: 32px
Menu item text left padding: 24px
Top padding: 8px
Bottom padding: 8px
Typography: 15px

Dense desktop menus
Menu item height: 24px
Menu item text left padding: 24px
Top padding: 4px
Bottom padding: 4px
Typography: 13px

Other
Related comment https://github.com/angular/material2/pull/4115#issuecomment-294531329. I think, still, that this could be added without waiting on a library-wide density overhaul, as it would primarily be putting the styles in place.

Related #4597

Closing this to track via #4597 (which we intend to do sometime after beta ends)


flutter upgrade failed

Steps to Reproduce

flutter upgrade
raised error: find: invalid mode ‘+100’
...

Logs

$ flutter upgrade
Downloading Dart SDK from Flutter engine b863200c37df4ed378042de11c4e9ff34e4e58c9...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  263M  100  263M    0     0  11.6M      0  0:00:22  0:00:22 --:--:-- 10.7M
find: invalid mode ‘+100’

I have the same issue exactly.
macOS Mojave 10.14.6

If you are on mac which has brew, then it is possibly the error of findutils. You can try to uninstall findutils with brew e.g brew uninstall findutils first. Then try flutter doctor

Seems to be a duplicate of #38878. @xiaods @alaadahmed if the comment above helped you to solve the issue, please close it.

I confirm issue is solved after uninstalling findutils using brew in macOS. Thanks @hongsenliu

it works

I have same issue on this but I do want use findutils on macOS.
A system default find should be ok to solve this, a pr #47522 was submitted 👀


Progress hooks + writesubtitles options break download when embedded in python

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

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

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2023.01.02 (update instructions) or later (specify commit)
[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 the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
Using a progress hook in conjunction with the "writesubtitles" option in python can cause the download to break under many circumstances. This results in only part of the subtitle file being downloaded, and nothing else.
It seems to break anytime my progress hook tries to do any sort of slightly intense calculation. For example, simply trying to get the progress percent causes the download to give up.
Here are the relevant functions:
def dl_progress_hook(d):
    global dl_progress
    if d["status"] == "downloading" and d["total_bytes"] > 0:
        dl_progress = int(d["downloaded_bytes"] / d["total_bytes"] * 100)

async def download(urls, dst):
    ffmpeg_path = utils.filepath("./ffmpeg/ffmpeg")
    ydl_opts = {
        "format": "137+ba[ext=m4a]/137+ba/bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/bv*+ba/b",
        "writesubtitles": True,
        "subtitleslangs": ["all", "-live_chat"],
        "final_ext": "mp4",
        "paths": {"home": dst},
        "progress_hooks": [dl_progress_hook],
        "ffmpeg_location": ffmpeg_path,
        "verbose": True,
        "postprocessors": [
            {
                "key": "FFmpegEmbedSubtitle",
                "already_have_subtitle": False,
            }
        ],
    }

    with yt_dlp.YoutubeDL(ydl_opts) as ydl:
        error_code = ydl.download(urls)

This hook works perfectly fine for other types of downloads like extracting audio (I have altered the code not to include everything here), but does not want to work when trying to write subtitles. I have also noticed that simply trying to get "d['fragment_index']" has the same effect.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2023.01.02 [d83b0ad] (pip) API
[debug] params: {'format': '137+ba[ext=m4a]/137+ba/bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/bv*+ba/b', 'writesubtitles': True, 'subtitleslangs': ['all', '-live_chat'], 'final_ext': 'mp4', 'paths': {'home': '/Users/rplassmann/Desktop/youtube mp3s/gui test'}, 'progress_hooks': [<function dl_progress_hook at 0x1162b1a20>], 'ffmpeg_location': '/Users/rplassmann/vscodeprojects/youtube downloader/ffmpeg/ffmpeg', 'verbose': True, 'postprocessors': [{'key': 'FFmpegEmbedSubtitle', 'already_have_subtitle': False}], 'compat_opts': set()}
[debug] Python 3.10.2 (CPython x86_64 64bit) - macOS-13.0.1-x86_64-i386-64bit (OpenSSL 1.1.1m  14 Dec 2021)
[debug] exe versions: ffmpeg N-107213-gfed07efcde-tessus (setts)
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1754 extractors
[youtube] Extracting URL: FhHM9MT41IE
[youtube] FhHM9MT41IE: Downloading webpage
[youtube] FhHM9MT41IE: Downloading android player API JSON
[info] FhHM9MT41IE: Downloading subtitles: en
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] FhHM9MT41IE: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: /Users/rplassmann/Desktop/youtube mp3s/gui test/The ＂architecture graveyard＂ is alive and well [FhHM9MT41IE].en.vtt
[debug] Invoking http downloader on "https://www.youtube.com/api/timedtext?v=FhHM9MT41IE&caps=asr&xoaf=5&hl=en&ip=<IP_ADDRESS>&ipbits=0&expire=1672900543&sparams=ip%2Cipbits%2Cexpire%2Cv%2Ccaps%2Cxoaf&signature=CEFA08F69C276F0E79BF356812174D78FEC96434.42AA418880F4C302592FEE9DA43105EC16010F89&key=yt8&lang=en&fmt=vtt"
[download] Destination: /Users/rplassmann/Desktop/youtube mp3s/gui test/The ＂architecture graveyard＂ is alive and well [FhHM9MT41IE].en.vtt
[download]    1.00KiB at  Unknown B/s (00:00:00)

It seemed to be an issue with python 3.10. Does not happen in 3.11

Nevermind, still broken. Not sure why it worked once though.

Possibly bc dl_progress_hook can raise? See if the same still hapoens if you write a safe method. The thing that comes to mind is a KeyError and DivisionByZeroError and possibly a TypeError from total bytes being None

The output should have included the traceback. Did you not get it?
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2023.01.02 [d83b0ad80] API
[debug] params: {'format': '137+ba[ext=m4a]/137+ba/bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/bv*+ba/b', 'writesubtitles': True, 'subtitleslangs': ['all', '-live_chat'], 'final_ext': 'mp4', 'progress_hooks': [<function dl_progress_hook at 0x000001AB247E0540>], 'verbose': True, 'postprocessors': [{'key': 'FFmpegEmbedSubtitle', 'already_have_subtitle': False}], 'compat_opts': set()}
[debug] Lazy loading extractors is disabled
[debug] Python 3.11.0 (CPython AMD64 64bit) - Windows-10-10.0.22000-SP0 (OpenSSL 1.1.1q  5 Jul 2022)
[debug] exe versions: ffmpeg n5.1.2-8-g5746987bad-20221204 (fdk,setts), ffprobe N-109332-g45ab5307a6-20221201, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.16.0, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1754 extractors
[TestURL] Extracting URL: test:youtube
[TestURL] Test URL: https://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9
[youtube] Extracting URL: https://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading android player API JSON
[info] BaW_jenozKc: Downloading subtitles: en
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] BaW_jenozKc: Downloading 1 format(s): 137+140
[info] Writing video subtitles to: youtube-dl test video ＂'⧸⧹ä↭𝕐 [BaW_jenozKc].en.vtt
[debug] Invoking http downloader on "https://www.youtube.com/api/timedtext?v=BaW_jenozKc&caps=asr&xoaf=5&hl=en&ip=<IP_ADDRESS>&ipbits=0&expire=1672911919&sparams=ip%2Cipbits%2Cexpire%2Cv%2Ccaps%2Cxoaf&signature=21C76C2339E226D8C0A23F565DDF51DE7C40B28B.D49625CD6CD7B3708D8A9C950D41FCAEEA3C5585&key=yt8&lang=en&fmt=vtt"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: youtube-dl test video ＂'⧸⧹ä↭𝕐 [BaW_jenozKc].en.vtt
[download]    177.00B at   12.72KiB/s (00:00:00)Traceback (most recent call last):
  File "D:\Programs\Source\yt-dlp\yt-dlp\subtest.py", line 25, in <module>
    print(ydl.download('test:youtube'))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 3353, in download
    self.__download_wrapper(self.extract_info)(
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 3328, in wrapper
    res = func(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1486, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1497, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1594, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1673, in process_ie_result
    return self.extract_info(
           ^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1486, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1497, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1594, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 1653, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 2767, in process_video_result
    self.process_info(new_info)
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 3021, in process_info
    sub_files = self._write_subtitles(info_dict, temp_filename)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 4003, in _write_subtitles
    self.dl(sub_filename, sub_copy, subtitle=True)
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\YoutubeDL.py", line 2954, in dl
    return fd.download(name, new_info, subtitle)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\downloader\common.py", line 444, in download
    ret = self.real_download(filename, info_dict)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\downloader\http.py", line 372, in real_download
    return download()
           ^^^^^^^^^^
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\downloader\http.py", line 309, in download
    self._hook_progress({
  File "D:\Programs\Source\yt-dlp\yt-dlp\yt_dlp\downloader\common.py", line 459, in _hook_progress
    ph(status)
  File "D:\Programs\Source\yt-dlp\yt-dlp\subtest.py", line 5, in dl_progress_hook
    if d["status"] == "downloading" and d["total_bytes"] > 0:
                                        ^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'int'


Bug Report

Geode Issue

[X] I confirm that this bug is NOT related to a mod but directly to Geode Loader itself.

Platform
MacOS
SDK commit
Jugar
Geode Version
2.2
Mods Installed
Muchos
Expected Behavior
Jugar
Actual Behavior
Jugar
Steps to Reproduce
Jugar
Additional Information
Jugar

2.206 bug. Wait for fix.


Anchor Earn received amount wrong

Hi, I think I found a new issue with the cointracking.info format.
In Terra, when withdrawing from anchor earn, the actual amount in buy should be<PHONE_NUMBER>5 instead of 1000.000035

When you withdraw from anchor there are 2 transactions from the requested amount (1,000.000035).
  Thanks for these finds.  Will fix this one this week as well.

fixed with https://github.com/hodgerpodger/staketaxcsv/commit/38ae5973c228de8f7f8daadcda2e9451d14c1f5b.  Will note later when deployed

deployed


Separte  PersistKeysToAWSSystemsManager into two methods PersistKeysTo* and ProtectKeysWithKMS

Currently there is a single method saying - PersistKeysToAWSSystemsManager that takes two responsibilities

persisting and
protecting keys.

Describe the Feature
We want to use KMS Keys for data protection and use Redis for persistence(Production) vs using FileSystem for persistence(DEV)
Look at how Azure Key vault and Redis can be used together as both concerns are different
https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-3.1 shows

PersistKeysToAzureBlobStorage and
ProtectKeysWithAzureKeyVault

Is your Feature Request related to a problem?
YES
Proposed Solution
Provide an extension point in package
Describe alternatives you've considered
Include KMS Client package only and implement data protection methods
Additional Context

Environment

[ ] :wave: I may be able to implement this feature request
[ ] :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

Appears to be a useful design change and needs to be reviewed by team.


ResolveAssemblyReference fails in invariant mode on Alpine linux with error MSB3095

Steps to reproduce
Create a dockerfile with these contents:
FROM microsoft/dotnet:2.1-runtime-deps-alpine
WORKDIR /code/build

RUN apk add --no-cache \
        curl \
        icu-libs \
        openssl

ENV DOTNET_SDK_VERSION=2.1.300-preview2-008251
RUN curl -fsSL -o /tmp/dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-alpine.3.6-x64.tar.gz \
    && mkdir -p /usr/share/dotnet \
    && tar xzf /tmp/dotnet.tar.gz -C /usr/share/dotnet \
    && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \
    && dotnet help

RUN dotnet new console --no-restore \
    && dotnet restore --source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json \
    && dotnet build --no-restore

And execute docker build . -t test
Expected  behavior
I should be able to build a simple console application.
Actual behavior
RAR fails with "error MSB3095: Invalid argument. SafeHandle cannot be null".
/usr/share/dotnet/sdk/2.1.300-preview2-008251/Microsoft.Common.CurrentVersion.targets(2052,5): error MSB3095: Invalid argument. SafeHandle cannot be null. [/code/build/build.csproj]
/usr/share/dotnet/sdk/2.1.300-preview2-008251/Microsoft.Common.CurrentVersion.targets(2052,5): error MSB3095: Parameter name: pHandle [/code/build/build.csproj]

https://github.com/Microsoft/msbuild/blob/vs15.6/src/Tasks/Microsoft.Common.CurrentVersion.targets#L2052
Environment data
msbuild /version output: Microsoft (R) Build Engine version <IP_ADDRESS>579 for .NET Core
OS info: Alpine 3.6 x64
dotnet: 2.1.300-preview2-008251

Related to https://github.com/dotnet/cli/issues/8290
btw, in interactive mode, this works for me
docker run -it microsoft/dotnet:2.1-sdk-alpine

this is dotnet runtime with SDK. After hitting enter, when you get into the container:
dotnet new console -n test
cd test
dotnet run

# 'Hello World!' is printed

cc @MichaelSimons

@kasper3 - the difference between your scenario and Nate's is a difference in the globalization invariant mode.  The runtime images run with the globalization invariant mode enabled while the sdk image doesn't.

Cool, so currently the workaround is to add:
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT false
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8

in Dockerfile and
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT false
export LC_ALL en_US.UTF-8
export LANG en_US.UTF-8

if you are using interactive shell.

@kasper3  - you would also need to add icu-libs

Yes icu-libs are required even if we use alpine 3.6 tarball on a regular/official alpine docker (non microsoft/dotnet one):  https://github.com/dotnet/cli/issues/8767 (I used icu but only icu-libs is required which is a dependency of icu).

I avoided the catch clause that sucked all the information away and got
Invalid argument. System.ArgumentNullException: SafeHandle cannot be null. [/code/build/build.csproj]
Parameter name: pHandle [/code/build/build.csproj]
   at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success) [/code/build/build.csproj]
   at Interop.Globalization.GetSortKey(SafeSortHandle sortHandle, String str, Int32 strLength, Byte* sortKey, Int32 sortKeyLength, CompareOptions options) [/code/build/build.csproj]
   at System.Globalization.CompareInfo.GetHashCodeOfStringCore(String source, CompareOptions options) [/code/build/build.csproj]
   at System.Collections.Hashtable.GetHash(Object key) [/code/build/build.csproj]
   at System.Collections.Hashtable.InitHash(Object key, Int32 hashsize, UInt32& seed, UInt32& incr) [/code/build/build.csproj]
   at System.Collections.Hashtable.ContainsKey(Object key) [/code/build/build.csproj]
   at Microsoft.Build.Tasks.ReferenceTable.BuildSimpleNameTable() [/code/build/build.csproj]
   at Microsoft.Build.Tasks.ReferenceTable.ResolveConflictsBetweenReferences() [/code/build/build.csproj]
   at Microsoft.Build.Tasks.ReferenceTable.ResolveConflicts(DependentAssembly[]& idealRemappings, AssemblyNameReference[]& conflictingReferences) [/code/build/build.csproj]
   at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetLastWriteTime getLastWriteTime, GetAssemblyRuntimeVersion getRuntimeVersion, GetAssemblyPathInGac getAssemblyPathInGac, IsWinMDFile isWinMDFile, ReadMachineTypeFromPEHeader readMachineTypeFromPEHeader) [/code/build/build.csproj]

So it's a non-generic Hashtable that's throwing.

Changing it to a generic Dictionary doesn't help, though. Same stack in CompareInfo.

Ok, so the microsoft/dotnet:2.1-runtime-deps-alpine image comes with
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT='true'

Which opts every running application into the globalization invariant mode.
Those docs say

The drawback of running in the invariant mode is applications will get poor globalization support. This new option is only recommended for developers that understand globalization and the impact of its absence.

When enabling the invariant mode, all cultures behave like the invariant culture.

So it seems odd that opting into a CurrentCultureIgnoreCase comparer would cause a problem.
I think this is a corefx bug so I filed https://github.com/dotnet/corefx/issues/28021 with a small repro.

The bug in corefx aside, I am not sure why we need to set invariant globalization in Alpine Linux docker, since ICU package is available in their packages for ages and dotnet console/mvc apps just work fine with full globalization support.

@kasper3 you don't have to set invariant mode in Alpine. That just happens to be the default chosen by https://github.com/dotnet/dotnet-docker. Presumably, this bug would happen in any Linux distro with invariant mode enabled.

@kasper3 The reason invariant mode is the default in the dotnet/dotnet-docker images is to keep the size of the runtime image to a minimal.  See https://github.com/dotnet/dotnet-docker-nightly/issues/500 for more details.

I take it back @natemcmaster, it is reproducible on Debian as well as Alpine: https://github.com/dotnet/corefx/issues/28021#issuecomment-372843375

Yeah, sorry that was confusing: I used Ubuntu + runtime 2.0 and Alpine + runtime 2.1 for my examples.


Pivot Table "Magic" Pivot Date Row

Here's some code that simulates reading a log4net log, adding timestamp 30 second bucket data, and launching Excel with a pivot table on the timestamp bucket count:
$results = ConvertFrom-Csv @"
Timestamp,Tenant
10/29/2018 3:00:00.123,1
10/29/2018 3:00:10.456,1
10/29/2018 3:01:20.389,1
10/29/2018 3:00:30.222,1
10/29/2018 3:00:40.143,1
10/29/2018 3:00:50.809,1
10/29/2018 3:01:00.193,1
10/29/2018 3:01:10.555,1
10/29/2018 3:01:20.739,1
10/29/2018 3:01:30.912,1
10/29/2018 3:01:40.989,1
10/29/2018 3:01:50.545,1
10/29/2018 3:02:00.999,1
"@ | % {
    $dt = Get-Date($_.Timestamp)
    $data = [ordered]@{
        Timestamp = $dt
        Tenant = $_.Tenant
        Bucket = $dt.AddSeconds(-$dt.Second % 30)
    }
    New-Object -TypeName psobject -Property $data
}

$excelParams = @{
    Path              = 'd:\temp\pivottest.xlsx'
    WorkSheetname	  = "Log Data"
    IncludePivotTable = $true
    PivotTableName    = 'Timestamp Buckets'
    PivotRows         = @('Timestamp', 'Tenant')
    PivotData         = @{'Bucket' = 'count'}
    Activate          = $true
    AutoSize          = $true
    AutoFilter        = $true
    Show              = $true
}
Remove-Item $excelParams.Path -ErrorAction Ignore
$results | Export-Excel @excelParams

It works great:

But when you uncheck Timestamp and recheck it, Excel magically creates Hours and Minutes columns, which is what I really want:

Any idea on how to get these columns created from the script?

@dprice
Support for this was added in this weekend's new release
$pivotDef = New-PivotTableDefinition -PivotTableName 'Timestamp Buckets' -PivotRows @('Timestamp', 'Tenant') -PivotData @{'Bucket' = 'count'} -GroupDateRow TimeStamp -GroupDatePart Hours,Minutes

$excelParams = @{
    Path                 = 'd:\temp\pivottest.xlsx'
    WorkSheetname  	     = "Log Data"
    PivotTableDefinition = $pivotDef
    Activate             = $true
    AutoSize             = $true
    AutoFilter           = $true
    Show                 = $true
}

That's awesome! I can't wait to try this. Excellent work!

Added this to the examples
https://github.com/dfinke/ImportExcel/blob/master/Examples/Grouping/TimestampBucket.ps1

@dfinke  just be aware that those dates will fail outside the US with that date conversion.

@jhoneill parsing them instead should work?

Yes - or [datetime]
[datetime] $x uses invariant format ;  (and now I would always comment "Expects invariant/US date format")
get-date $x and [convert]::ToDateTime() use local format.
ParseExact  makes it clear what format is expected.

@dfinke GroupDateRow is great. In relation to that parameter, would there be any chance to extend this to columns as well (e.g, GroupDateColumn)? Or can this be achieved differently?
Al lot of the time for a financial report, you would want to display 12 columns grouped by month, for example. Then the rows can be used for other criteria, making the Pivot more pleasant to look at.

@dreasan  Yes I've just tested it and it can be done.
In Add-PivotTable there's a section of code which looks like this
            if ($GroupDateRow -and $PSBoundParameters.ContainsKey("GroupDatePart")) {
                $r = $pivotTable.RowFields.Where( {$_.name -eq $GroupDateRow })
                if (-not $r ) {Write-Warning -Message "Could not find a Row field named '$GroupDateRow'; no date grouping will be done."}
                else {$r.AddDateGrouping($GroupDatePart)}
            }

If we duplicate that and replace row with column it should work  Just create a $GroupDateColumn parameter and find .ColumnFields which match it.
Doing manually in the debugger I got this

@dfinke I'd guess  we can do this with number intervals as well. If I get a chance I'll do it and send you a PR :-)

@dreasan  I've sent a PR for it so when Doug has a chance it should get merged in.

@dreasan @jhoneill published


[transaction_manager] Handle WrongEpoch error from execution

Since execution lock is acquired after transaction is scheduled for execution, we can have WrongEpoch errors in the execution driver, we do not need retry those.

While we are at it, should we add a test?


[ISSUE#4510] Add test case for SpringSinkConnector.

Fixes #4510 .
Modifications

Add test case for SpringSinkConnector.
Use the Version Catalog mechanism for hamcrest versioning.

LGTM, but can we have a more descriptive method name? Like shouldProcessRecordsInQueue? This would make the test's purpose clearer. Additionally, can we consider adding another test case to handle an empty queue? Testing for this scenario is important to ensure the connector's behavior when the queue is empty is as expected. Including edge cases empty queue, can help improve code coverage in test suite.

LGTM, but can we have a more descriptive method name? Like shouldProcessRecordsInQueue? This would make the test's purpose clearer. Additionally, can we consider adding another test case to handle an empty queue? Testing for this scenario is important to ensure the connector's behavior when the queue is empty is as expected. Including edge cases empty queue, can help improve code coverage in test suite.

The name of the unit test method has been changed, but about the unit test when the queue is empty, the original class does not have a special case, so i think it does not need to be handle with.


[stable/nextcloud] nextcloud fails to become Ready when using external mysql database

Describe the bug
With an external mysql database and an associated service, nextcloud never becomes Ready. I can access the database with the credentials provided to nextcloud, but nextcloud just hangs with no relevant log information.
Version of Helm and Kubernetes:
Helm: v3.2.1
Kubernetes: v1.18.3
Which chart:
stable/nextcloud
What happened:
nextcloud does not become Ready
What you expected to happen:
nextcloud connects to the external database and becomes Ready
How to reproduce it (as minimally and precisely as possible):
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: mysql
  namespace: nextcloud
spec:
  selector:
    matchLabels:
      app: mysql
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: mysql
    spec:
      containers:
      - image: mysql:5.6
        name: mysql
        env:
          # Use secret in real usage
        - name: MYSQL_ROOT_PASSWORD
          value: password
        - name: MYSQL_DATABASE
          value: nextcloud
        ports:
        - containerPort: 3306
          name: mysql
        volumeMounts:
        - name: mysql-persistent-storage
          mountPath: /var/lib/mysql
      volumes:
      - name: mysql-persistent-storage
        persistentVolumeClaim:
          claimName: nextcloud-mysql-pv-claim
---
apiVersion: v1
kind: Service
metadata:
  name: mysql-service
  namespace: nextcloud
spec:
  ports:
  - name: dbport
    port: 3306
    targetPort: 3306
  selector:
    app: mysql

From values.yaml
...
##
## External database configuration
##
externalDatabase:
  enabled: true

  ## Supported database engines: mysql or postgresql
  type: mysql

  ## Database host
  host: mysql-service

  ## Database user
  user: nextcloud

  ## Database password
  password: password

  ## Database name
  database: nextcloud

  ## Use a existing secret
  existingSecret:
    enabled: false
    # secretName: nameofsecret
    # usernameKey: username
    # passwordKey: password
...
mariadb:
  ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters
  enabled: false
...

I can connect to the database from the 'mysql-service' and I can see that the 'nextcloud' user with password 'password' has all of the grants.
➜  kubernetes git:(master) ✗ kubectl run -n nextcloud -it --rm --image=mysql:5.6 --restart=Never mysql-client -- mysql -h mysql-service -u nextcloud -D nextcloud -ppassword

If you don't see a command prompt, try pressing enter.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| nextcloud          |
+--------------------+
2 rows in set (0.01 sec)

mysql> use nextcloud;
Database changed
mysql> show tables;
Empty set (0.00 sec)

mysql> SHOW GRANTS FOR 'nextcloud'@'%';
+-----------------------------------------------------------------------+
| Grants for nextcloud@%                                                |
+-----------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'nextcloud'@'%' IDENTIFIED BY PASSWORD <secret> |
| GRANT ALL PRIVILEGES ON `nextcloud`.* TO 'nextcloud'@'%'              |
+-----------------------------------------------------------------------+
2 rows in set (0.00 sec)

Nextcloud never becomes Ready and it provides no clues as to what the problem is.
➜  kubernetes git:(master) ✗ kubectl -n nextcloud get pods
NAME                         READY   STATUS    RESTARTS   AGE
mysql-b49d8486c-nh6hv        1/1     Running   0          14h
nextcloud-75d85cc794-rbjsj   0/1     Running   204        14h
➜  kubernetes git:(master) ✗ kubectl -n nextcloud logs nextcloud-75d85cc794-rbjsj
Initializing nextcloud <IP_ADDRESS> ...

Anything else we need to know:
Is there a way to turn on debug logging? I wish I could get more information about what nextcloud is doing.

This is still a valid bug, stalebot!


Improve verbose VFS logging

Fixes #14361

@bot-gradle test QFL please.

OK, I've already triggered QuickFeedbackLinux build for you.

@bot-gradle test QF please.

OK, I've already cancelled the old build and triggered a new QuickFeedback build for you.

@bot-gradle test QF please.

OK, I've already triggered QuickFeedback build for you.

@bot-gradle test QF please.

OK, I've already cancelled the old build and triggered a new QuickFeedback build for you.

@bot-gradle test this please.

OK, I've already cancelled the old build and triggered a new ReadyForMerge build for you.

@bot-gradle test this please.

Sorry some internal error occurs, please contact the administrator @blindpirate

Soak tests are passing:

Windows: https://builds.gradle.org/buildConfiguration/Gradle_Check_Soak_9_0/37720661
Linux: https://builds.gradle.org/buildConfiguration/Gradle_Check_Soak_8_0/37720267
macOS: https://builds.gradle.org/buildConfiguration/Gradle_Check_Soak_35_0/37720213


fix: get realpath from __filename instead of __dirname (NS)

Without this fix, this plugin doesn't work if your node_modules tree is
made up of real directories, but your files are symlinks. It's admittedly a
weird environment, but that's the environment that the Bazel build
system runs code in, which is the build system we use at Dropbox.
This is the bug:

index.js is called from the runfiles directory, and it uses the
realpath of its directory as the key for a function on the
loaderContext object.

loader.js is called from the bazel-bin/npm directory outside
of its runfiles (because Webpack escapes the runfiles when it
calls loaders). It uses the realpath of its directory as a
key on the loaderContext object, but because it's in a
different directory from index.js, it can't find the function
set on the loaderContext by index.js.

The fix is to get the realpath of the filename instead of the
directory so that both files point to the same place.

@samertm Please sign the CLA in any case by closing and reopening the PR to trigger the CLA Bot again

@michael-ciniawsky - Pretty benign change, land it as soon as @samertm signs the CLA & i'll get a patch version out to npm.

Checking with Dropbox that I can sign the NDA, I'll get back to you soon!

@samertm - CLA not NDA if that makes a difference. https://js.foundation/CLA
It's pretty concise, in summary ... It's your contribution & you understand the OSS license for this repo / org.

Hey! Just a heads up, I probably won't get permission to sign the CLA until next week.

No worries. If it helps we've had other googlers get approved for other repos but like MS I'm sure it's a per repo basis. No rush.

Hey! Sorry for the wait. It seems like the CLA is an individual CLA. Do you all have a corporate CLA that someone at Dropbox could sign and list me as an authorized contributor?
Thanks!

Do you all have a corporate CLA that someone at Dropbox could sign and list me as an authorized contributor?

@kborchers Do we have this?

@sokra @samertm We do not have an automated system for corporate CLAs. We did try to work really hard with a number of organizations to ensure that our individual CLA would be acceptable for employees to sign and have many organizations that normally require a corporate CLA allowing their employees to sign the individual CLA. For reference, we currently have no active corporate CLAs with any organization right now across all JS Foundation projects as the individual CLA has been deemed acceptable.
That said, if Dropbox does insist on a corporate CLA, we can have legal draft one for approval by Dropbox legal. Once approved, there is then a manual process to add contributors (or remove users if they leave Dropbox) to the approved list by getting a signed addendum from Dropbox each time they want to authorize one or more GitHub accounts to contribute under their corporate CLA. As you can see, it is definitely much easier for everyone if we can use the individual CLA but we are happy to work with Dropbox if that is what they prefer.

@samertm friendly ping

@samertm Could someone take this over in case there is no way for you to sign the CLA atm ?

Hey! Sorry this is taking so long. I'm pretty sure I'll be able to sign it, but things are moving a bit slow on getting permission to do so.

Hey! I just signed the CLA, sorry about the wait :)


MODS Indexing: Virtual object

Add set and set with title in parallel with collection and collection with title by way of the isConstituentOf field in the MODS
part of indexing for sul-dlss/SearchWorks#1051
example child
http://searchworks-test.stanford.edu/preview/view/yr145dc7638
and parent
http://searchworks-test.stanford.edu/preview/view/10449093

This is currently blocked by sul-dlss/dor-services#128 as we can't index data unless it is in public xml

The missing information will be in purl-test today if all goes well, per @blalbrit.   If it passes muster in purl-test, it will need to be deployed to purl prod, the robots will need to be redeployed, and the (single?) record will need to be republished.

Parent Object: https://purl-test.stanford.edu/hj097bm8879.xml
Example Child Object: https://purl-test.stanford.edu/bv599bt4452.xml

(note - all 24 objects need to be republished when code is deployed to prod - but that is negligible effort... minutes not hours).

indexing code is in sw-indexer-service.  When sw-indexer-service is redeployed, and when the data is ready and item-release is ready, then we should be able to index virtual objects.


using Verilog code in Modelsim

I want to change memory modules in a design with OpenRAM macros such as sky130_sram_2kbyte_1rw1r_32x512_8.v
I first need adapt pins and R/W functionalities of OpenRAM to our memory access port of a RISC-V core.
Just want to ask, what is the right path for this integration: First take Verilog code of OpenRAM macro and then add to our design. Then do functional simulation via Modelsim for example. If functional simulation is OK, then i will start OpenLane flow?

This isn't really an issue with the memories... You can ask help questions either on the OpenRAM mail lists (see the README)or in the OpenRAM or skywater slack (#openram).
I'm not clear what you want. You shouldn't modify the Verilog at all as this is an output from the memory compiler. If you want a different size or configuration, you need to run the compiler to generate it. Hope this helps.


Don't know why the ads some time can't show up.

the ads can show every time on android, but the ads only show up few times on ios, plz help me

Hi @zerophilip!
Thanks for opening the issue. Unfortunately, we cannot help you further with the info you have provided. Please feel free to add more context to your issue and ping me if you need the issue to be reopened.


Added Footer inc. Twitter Link

As per title - included footer as discussed on Slack.
Happy to tweak as necessary - not 100% with Pug files.

Looks good to me! 🚀

Thanks a bunch for the initial work on this @adamrusted, much appreciated! :tada:


Multiple docker-compose files

Is it possible to use multiple docker-compose files in the Vagrantfile with this provisioner? I am looking to be able to mimic running docker-compose -f docker-compose.yml -f docker-compose.dev.yml up on vagrant up. Thanks!

Yup we can do this. I think what we'll do is we'll make the file parameter optionally be an array. So it can be a string or an array, and if it's an array, they'll be used with multiple -fs.

@SEAnderson07 this is in version 0.0.9 now! :smile:


Wrong display on actual device

On simulator, I am getting the proper display of about 1 day ago.
Upon moving to the device, I am getting the wrong display of about 9.223372e+18 wks ago.

Hi,
Can you paste here your code? thanks

var postedOn = post.createdAt!
post["timeAgo"] = postedOn.toRelativeString(fromDate: NSDate(), abbreviated: true, maxUnits: 1)

post.createdAt looks like this: 2015-08-07T16:39:44.703Z

Top right

Top right

Are you using SwiftDate from CocoaPods?

Yes.

It should be an outdated version compared to the master one and this error should be a duplicate of this: https://github.com/malcommac/SwiftDate/issues/15.
However at this time I can't update cocoapods version with a new 1.0.11 build due to a GitHub's API error (I'll try to do it later today); however if you want to test, try to download the master release package and use it; everything should be ok.

Will do this later today when I'm off work. Thanks for the response.

Just posted 1.0.11 to cocoapods

Works like a charm, thanks!

On Aug 18, 2015, at 12:53 AM, Daniele Margutti<EMAIL_ADDRESS>wrote:
Just posted 1.0.11 to cocoapods
—
Reply to this email directly or view it on GitHub https://github.com/malcommac/SwiftDate/issues/28#issuecomment-132109983.

Thanks for your report


Vanilla Factions Expanded - Mechanoids has a mech-worktype incompatibility

From Fevix on Steam:

Using this mod in conjunction with Vanilla Factions Expanded - Mechanoids makes my Autominers stop using Deep Drills. Autocleaners and Autohaulers are unaffected.

https://steamcommunity.com/workshop/filedetails/?id=2329011599

Closed by PR #60


We should have guidance on using Set-StrictMode -Version latest

I believe this should be the guidance and at least new modules it should be required.

Not sure about this one. I would rather see that this is the default of the support PowerShell version of the resource module. Is that the most relaxed, then so be it, then it's code for that PowerShell version. If we add this as a requirement then we must enforce this using common test as well.
Using Set-StrictMode -Version latest this will most likely break resource modules. I suggest we leave this up to the maintainer of a resource module.
@kwirkykat @PlagueHO @NikCharlebois what are your thoughts on this?

Due to lack of response I will closing this as not fixed. If anyone thinks this is something we should have, then please comment and we reopen and discuss it further.


generate .eh_frame rather than .debug_frame on Linux

It appears that the .debug_frame section is obsolete, and things are moving to .eh_frame instead. This implements .eh_frame for Linux 32 and 64 bit. .eh_frame is also a necessary step towards implementing dwarf exception handling.

guess it's worth one more pass to push down the int n definitions

thanks!

This PR introduced a regression https://issues.dlang.org/show_bug.cgi?id=15392.


 This is a important concept in dynamic memory allocation in java .
Being a part of the GSSOC'21, I would like to implement this in java .Please do assign this to me

Hello,
I am a GSSoC 2021 participant and would like to contribute to this issue
I will use proper definition + examples
kindly assign me the issue

We are accepting only DSA based codes for now


feat: support invalidating and replacing identities in AuthClient

Description
Introduces a new IdleManager to detect when a user has gone idle, and calling callbacks
Fixes SDK-307
How Has This Been Tested?

[x] Unit tests
[ ] in krpeacock/auth-client-demo

Checklist:

[x] My changes follow the guidelines in CONTRIBUTING.md.
[x] The title of this PR complies with Conventional Commits.
[ ] I have edited the CHANGELOG accordingly.
[x] I have made corresponding changes to the documentation.

I made the JS docs a little more verbose, but it does a better job of revealing the full API in intellisense


⚠ Bofrost.nl has degraded performance

In b13f035, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 986 ms

Resolved: Bofrost.nl performance has improved in 2b3f5cf.


[ADD] Uncentered gradient covariance matrix (aka 'empirical Fisher')

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

42 of 44 (95.45%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.5%) to 90.657%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

curvlinops/examples/functorch.py
21
22
95.45%

curvlinops/gradient_moments.py
19
20
95.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.5%

Covered Lines:
359

Relevant Lines:
396

💛  - Coveralls


[FLINK-7811] Add support for Scala 2.12

This is a version of #6784 that does all the work required for 2.12 but doesn't change the build infrastructure (Travis) to do a Scala 2.12 build.

@zentol I think I addressed all your comments except the json, avro, and sql-client comments.


bumping js-slang to 0.4.53

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Code quality improvements

How to Test
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Please delete options that are not relevant.

[x] I have tested this code
[x] I have updated the documentation

Bumping js-slang to 0.4.53; see there for documentation (parser changes and minor documentation update)

Pull Request Test Coverage Report for Build 6244

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 25.065%

Totals

Change from base Build 6236:
0.0%

Covered Lines:
1962

Relevant Lines:
7415

💛  - Coveralls


Documentation fixes

Update some comments.

LGTM, but I think my /etc/hosts patches are going to conflict with this one.

@rh-atomic-bot r+


Debug of gqueries and converter methods is broken

Both on beta and live

http://www.et-engine.com/data/latest/debug/gquery?gquery=V(agriculture_burner_crude_oil%2C+total_costs_per(%3Aplant))
http://beta.et-engine.com/data/220623/debug/gquery?gquery=Q(dashboard_renewability)

Seems to be working fine now. Closing.


403 Forbidden error downloading the binary

What happened:
Unable to download kubectl,
curl https://dl.k8s.io/release/v1.27.1/bin/linux/amd64/kubectl gave 403. HTTP Error 403: Forbidden
What you expected to happen:
Download the binary. This is not an issue from other sites, such as github, dockerhub, etc.
How to reproduce it (as minimally and precisely as possible):
curl https://dl.k8s.io/release/v1.27.1/bin/linux/amd64/kubectl
Anything else we need to know?:
Environment:
Trying from a bunch of OVH VPS servers
IPs:

<IP_ADDRESS>
<IP_ADDRESS>

I'm not sure what this url refers to or who manages this. Could you please provide the documentation about this url?. On the other hand, this is clearly not a bug in kubectl and I'm closing this. Would be better to open a separate issue on kubernetes repo.
/close


How to load translation files in unit tests using $translateStaticFilesLoader?

I'm trying to test a directive that returns a template that uses translate filter. The test works fine if I provide translations via $translateProvider.translations, but I'd like to use the same translation files that I use on production. I tried injecting $translateStaticFilesLoader, but I only managed to hang karma server...

There are lots of stackoverflow threads to that, but this one finally helped me:
I created a i18nMock.js file which I load in files: [] just before the tests, but after the app, so the declaration of the i18n factory gets overridden by the mock.
angular.module('ds.i18n', ['pascalprecht.translate'])
.config(function ($provide, $translateProvider) {
  $provide.factory('customLoader', function () {
    return {
        $get: function(get){ return get; }
    };
  });
  $translateProvider.useLoader('customLoader');
});

For reference, this is how my translate factory looks like:
'use strict';

angular.module('ds.i18n', ['pascalprecht.translate')

.config(['$translateProvider', function ($translateProvider) {
        $translateProvider
            .useStaticFilesLoader({
                prefix: 'locales/locale-',
                suffix: '.json'
            })
            .registerAvailableLanguageKeys(['en', 'de'], {
                'en_*': 'en',
                'de_*': 'de',
                '*': 'en'
            })
            .fallbackLanguage('en')
            //.useLoaderCache(true)
            .determinePreferredLanguage();
        $translateProvider.useSanitizeValueStrategy('escaped');
    }]);

Hope this helps you.

Well, I can see why we have to mock data that comes from a remote server, and maybe sort of see why we would prefer to mock the local API responses, but see no reason at all why is it so difficult to load the local static files in our tests. There are tons of valid use cases for that.
I can name you one regarding translations. Recently, a locale file for a language that nobody on the dev team speaks was modified improperly, breaking that locale completely. This might very well happen again, and the language is fairly popular with our users.

Well, I can see why we have to mock data that comes from a remote server, and maybe sort of see why we would prefer to mock the local API responses, but see no reason at all why is it so difficult to load the local static files in our tests. There are tons of valid use cases for that.
I can name you one regarding translations. Recently, a locale file for a language that nobody on the dev team speaks was modified improperly, breaking that locale completely. This might very well happen again, and the language is fairly popular with our users.

@septagram Agree with you.
describe('my component', () => {
  let $httpBackend

  const translatinURL = 'app/translation/locale-en_GB.json'
  const translationFile = require('./../../../translation/locale-en_GB')

  let selectedIndex

  beforeEach(() => {
    angular.mock.module('dib')

    inject((
      _$httpBackend_,
    ) => {
      $httpBackend = _$httpBackend_

      $httpBackend
        .when('GET', translatinURL)
        .respond(translationFile)
    })

})


Better readme

This should close #2.
Adds tut to give us real REPL output in our README and build time checking of our documentation statements.
Also adds real documentation with examples for all the syntax that we're currently adding with the library.

You probably want to view https://github.com/skeet70/rubiz/blob/584b4622ecc2c84c8614cdc4f42730f9cf62f1bc/README.md instead of the raw .md to see most of the changes.

Current coverage is 100% (diff: 100%)

Merging #16 into master will not change coverage

@@           master   #16   diff @@
===================================
  Files           4     4
  Lines          29    29
  Methods        28    28
  Messages        0     0
  Branches        1     1
===================================
  Hits           29    29
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 224b21c...584b462


Problem with scroll to bottom

Can't scroll to bottom on mobile, tested on iOS 14.4

Not working on computer, tested on Windows 10 with Brave.

Not working on computer, tested on Windows 10 with Brave.

This is a known issue, will be fixed soon.

This is a known issue, will be fixed soon.

Can you explain the step you made to reproduce the bug on your WebBrowser ? So I can understand where the issue is

Can you explain the step you made to reproduce the bug on your WebBrowser ? So I can understand where the issue is

To reproduce bug, you have to add several lines in your list of projects. Try with 10 lines.
I've used your project for my website and I have fixed that with the "overflow" in CSS.

To reproduce bug, you have to add several lines in your list of projects. Try with 10 lines.
I've used your project for my website and I have fixed that with the "overflow" in CSS.

Yup I know the issue with overflow and it will be enabled on mobile but note that for design issues, the overflow on computer will not be enabled, I will try to add an internal scroll bar to the projects panel soon to fix this issue.

Yup I know the issue with overflow and it will be enabled on mobile but note that for design issues, the overflow on computer will not be enabled, I will try to add an internal scroll bar to the projects panel soon to fix this issue.

I don't have repository for the moment, so you can check here : unicorn-network.xyz

I don't have repository for the moment, so you can check here : unicorn-network.xyz

It's fixed on mobile, still I do not recommend adding too much project ATM as this is breaking the webpage on computer.
You can hot fix this issue by removing the CSS rule in assets/style.css line 19
html, body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  height: 100%;

  background-color: #333;
  overflow: hidden; /* Remove this line */
}

But this change will not be implemented in production code since there is a way to keep the no global scroll design.

It's fixed on mobile, still I do not recommend adding too much project ATM as this is breaking the webpage on computer.
You can hot fix this issue by removing the CSS rule in assets/style.css line 19
html, body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  height: 100%;

  background-color: #333;
  overflow: hidden; /* Remove this line */
}

But this change will not be implemented in production code since there is a way to keep the no global scroll design.


PyPI package for mllogger

We are working on adding MLPerf logging to our open source library released recently (https://github.com/mosaicml/composer), however, the recommended install for this package is via:
pip install git+https://github.com/mlperf/logging.git

However, PyPI does not support direct dependencies when uploading the package, see: https://stackoverflow.com/a/54894359
Can this package be uploaded to PyPI and made available via pip install mlperf-mllogger or a similar name?

@emizan76 @xyhuang happy to provide more details if needed. Regardless, would recommend that this be installable as a pip package to make distribution a lot easier.

@hanlint thanks for the suggestion, we will check with the IT folks to setup a pypi repo.

Thanks @xyhuang let me know if you need help -- I've set up pypi before.

Perhaps if @morphine00 could help here?

Hi folks. The MLCommons policy is to let original authors publish the packages to PyPI under their names, but then please add the mlcommons /<EMAIL_ADDRESS>account as an owner. I think that is what was being asked here? :)

It is now added here


List of things that could have been done better and new features

Made this a public issue since I'm 100% sure people want to see this + also leave feedback through Github (instead of a form or Discord or Kaggle forums) and there's a lot of problems that may get forgotten before we run this competition again.
Also note, these are just suggestions from our team, the community, but aren't necessarily going to be added subject to the community, developer time etc.
Main topics I've broken problems and new features down to:

Competition / Developer Flow / Tooling
Leaderboard / Evaluation System
Visualizer
Game Design
Quality of Life
Other

Competition / Developer Flow / Tooling

Python based environment using the gym API (Pettingzoo based would be good) and that is fast. Keep the cross-language match running tool
Game constants stored in the python environment and consistently updated.
If running on kaggle, keep replays in as similar as a format as kaggle.
An open beta if possible and more channels for open feedback. One way is to make the first few weeks of competition always a beta before changes are published at the end of the first few weeks for official release.
Maintaining symmetry in a single episode and in starter kits. Asymmetry subtly presents an accessibility problem in that those who are unaware of the asymmetry may find frustration in debugging.
More levels of tutorials, depending on background and experience, and make these discoverable
Improved information discovery, especially for the API and the Specs.
Higher quality starter kits

Properly written C++ code
Add doc strings / comments for all functions
Add more quality of life functions so user does not need to bother implementing some (is day / is night function)

Provide a compilation service for users who don't / can't use docker. Probably really easy to setup? Or could also just give a kaggle notebook that compiles for you
Better CLI Tool (and GUI one too)

Less windows bugs and weird errors popping up. This probably deterred a ton of competitors who want to use windows, don't want to use WSL, and have no options.
GUI based tool with a modular dashboard that does all the CLI tool does but more. Moreover allows competitors who aren't familiar with the CLI to compete effectively as well.
Give warnings for incorrect use. A ton of people have issues because they use python 2 and while python 2 is getting phased out, this still happens way too often. Could just print a warning saying "hey, you need to use python version 3, try installing that with X, change default interpreter, python3 etc."
Keep packages more minimal (will probably happen when using a python engine)
A less broken local tournament evaluation system. Currently seems to have issues running stable for long periods of time (hopefully fixed in dimensions 6.0). Someone could probably write a better one easily with just bash.
More options. What's a good way to allow a ton of configurable options for a CLI tool? Pass in a json in the CLI? I've always found that super weird / clumsy but I see it happen somewhat often (e.g. kaggle's own environment package). On a GUI, this incredibly easy given we have more options with the UI to improve the user experience, minimize user errors.
Match more closely how kaggle times your agent. E.g. using a overage concept (already implemented in next version actually)
Play by hand. Allow one to run a match between two agents up to some turn, then take one or more over and give them the exact instructions. Probably a difficult feature to implement nicely, will require a lot of season to season programming of interfaces.

Leaderboard / Evaluation System
(Some of these might not be possible on kaggle but we may hope)

disabling old submissions. / keeping a max of k submissions active to significantly reduce clutter and increase match rate for submissions that people care about
During final evaluation, divide it into phases where each successive phase eliminates the lowest ranked agents to give more matches for higher ranked bots that more often than not need more matches to be accurately evaluated (and also have bigger stakes for medals, prizes etc.). And maybe immediately after each phase, lower the "sigma" value of agents / decrease how much your skill rating can change after each match.
A whole history type of skill rating system that weighs each match as having equal value, optimizing a vector of skill ratings (our parameters) that satisfies some equations that define a rating with respect to all other ratings and the match results
Having multiple tracks on the leaderboard for different types of solutions (RL, (ML / not RL), rule based), and maybe tag yourself by degree (middle/high school, undergrad, grad, professional), by language (python, JS, C++ etc.)

Visualizer

Less memory intensive visualizer
Flexible game annotations. See Screeps for a good example
State based visualizers and replays
Avoid last minute changes (some of them introduced some color issues)
More indicators of unit actions (maybe via animations, some graphics etc). It was impossible to see when transfers happened, when units sat still because they chose to it collided, etc

Game Design

It seems that imitation learning is super powerful. The first place solution has public replays and is much much more powerful than 2nd place, making IL approaches getting pretty good results without too much work. Two approaches, 1. make imitation learning more difficult, 2. balance the game somehow so that the top solution is never that far away from second (probably difficult to do)

Increase difficulty for ML approaches:

Increase board size / unit count (makes approaches that make predictions for every tile of the map more difficult or at a per unit basis more difficult).
Longer horizon. Errors in imitation should accumulate over time and more so the longer the horizon is, making IL more difficult and in general RL more difficult provided that the game isn't easily decided early on.
Increase action and observation space.
Add more continuous actions / larger range kinds of actions. Lux AI season 1 has only discrete actions apart from transfer actions. However, transfer is so little used so it doesn't contribute to difficulty in IL. And while it appears the top agent (Toad Brigade at the time of writing) uses transfers and IL would need to copy this, they only ever transfer their entire cargo at once and not fractions of it, so transfer becomes again effectively a discrete action with a small cardinality. If a continuous action / large range discrete action is frequently used, IL approaches will now need to do a regression task on top of a classification task (prediction what action is taken) that they either somehow do perfectly well, or have to aid it by some hardcoding (which requires some thorough human analysis) to make better predictions at what value for the action a top agent may be executing.
Encode more concepts of "pipelined" strategies where a team would need to execute a sequence of high level sets of actions. A longer sequence is also prone to error accumulation probably, and may in general be more difficult for RL approaches to define good rewards for such kinds of strategies. Rule based probably finds this easier.
Have more teams competing in a single match, add's a lot more noise via other teams doing different things that the to be imitated agent is reacting differently to. Our team is against this since this is very difficult to estimate good skill ratings without high variance.

Confusing mechanics and poor specs

Transfers are ambiguous. It was never clarified how chain transfers happen
Fair auto mining from adjacent tiles is confusing, while it may add some nice complexity to the competition, was 1. hard to come up an algorithm for and 2. difficult to convey how it works at both a high and implementation level of detail.
Clarifying what is a unit and what is a building
Cooldown is difficult to convey because there doesn't appear? to be a reasonable term for lowering cooldown (heating up?). Unless you play turn based video games (where this concept seems to be prevalent), this is a bit confusing.
Grammar check the specs

Quality of Life

A version notifier that auto lets the user know when using the GUI or CLI tool if a update is necessary, and when the environment updates, check if that should be updated
Option to run agents as a local process, a dockerized container, or a server (with one central server to run the engine or one agent running the engine as well). Being able to run agents as a server and connect over the internet allows for people to technically challenge each other directly if either permits. We can then provide a simple ngrok kind of solution to let agents across the world connect and compete against each other with no extra costs to anyone.
Better day-zero kaggle notebooks and kaggle notebooks for creating submissions for compiled languages for users who don't want to use Docker / can't access it.
When making IDs, make them human readable and contain more info such as what team a unit is on.

Other

Make better rules that players have to accept. We forgot to specifically require open sourcing for prize awarding, it was ambiguous
Make it crystal clear that a competition is open to everyone, and provide a FAQ

Can be nice to have all actions to be visible by default on GUI (maybe with a checkbox button). Specifically transfer with an arrow, cooldown with overheating icon, center action with a standby icon. It can significantly improve understanding what is going on regular replays.
Regarding the rules, maybe add action to units to move 2 cells and not one, by spending some extra fuel, let's say 20-30 fuel. It may improve the diversity of attacking strategies.
Additionally, maybe add a forth resource (oranges), which will pop up randomly on the map in small amounts after the first night and till the end.

Awesome suggestions @nosound2
We actually considered exactly that idea about additional movement at the cost of some resources. This may or may not appear next season in some form.
For features that are non deterministic to a player like random oranges I'm not too sure, I think the already high variability in map generation and resource distributions creates significant variance in a game and doesn't need more randomness that could make a game unfair.
And for the visualizer/gui (and the error logs like warnings about collisions invalid actions etc), completely agree that they need to be more readable. So visuals for all actions (a common feedback on our mid season feedback), human readable ids, and others. Perhaps animations somehow would be a good idea. I think movement actions were quite clear with the smooth animations, perhaps we can similarly do so with all the others somehow, up to our designer.

That is cool, thanks.
Regarding the "oranges", after I wrote the proposal I realised that randomness in map generation after the initial generation is not acceptable. The whole map must be generated in the beginning. Then, maybe they can be generated from the start, but be activated at specific turns. So it will be known from the beginning where and when they appear.
The reason why I push this proposal is that I feel that mid-end game is a little bit static. Sometimes completely static, if all the resources are already collected or well-guarded. Having some options for a comeback, ability to "break the defence" of that wood cluster, or just in general to have some objectives in the mid-end game can be good.
Reducing number of allowed units on the map can help. Maybe by having a price for unit production.

Leaderboard: show full rank information. For example for a trueskill system: mean & sigma, it helps showing how stable is a bot.


Why is Atom using bandwidth?

I'm paying by the GB this week, so I've been monitoring my network activity pretty closely, and I've noticed that Atom is pulling down 74 MB every time it starts up.  That's not huge, but it's a significant chunk of data.  What's going on there?

It is probably downloading an update (74mb is around the size of each release).
It should only be doing this when a new update is available for something is clearly going wrong, what version of Atom and what OS are you on?

Atom 0.172.0 (0.172.0)
on OSX Yosemite 10.10.1 (14B25)

That must have been it.  There was an option for "Install Update and Restart" under the Atom menu, and now it's only pulling 18 kb on startup.  It never prompted me for the update - not sure if that was an option I turned off or something.

It never prompted me for the update - not sure if that was an option I turned off or something.

Nope, there aren't any options for this right now, it only shows update information in the menu.
There is some discussion about it here https://github.com/atom/atom/issues/4936


Update BarcodeItem Show to Use New Theme

Theme update
We're upgrading our bootstrap theme to use a bootstrap 4 template and need to upgrade the various pages in our site.
This issue is the update the app/views/barcode_items/show.html.erb view file to use the new bootstrap theme. When submitting your PR please include a screenshot of the completed page!
If you get stuck please refer to the following pages have been done and can be used as a reference in the new theme:

app/views/requests/index.html.erb
app/views/distributions/index.html.erb
app/views/donation_sites/new.html.erb

As this is a work an progress and we can't go live until all the pages have been converted please submit your PR against the new_theme branch.

RailsConf - Found issue, taking a look at it

@maebeale
A question.
Is it a standard whole screen show show button to change and insert?
example:

@seanmarcia
Review please: https://github.com/rubyforgood/diaper/pull/988


Check for string Palindrome (using Hashing + Two Pointer)

hey! @bhav09  (I am GSSOC'21 Participant) may I implement function which check for string is palindrome or not in JAVA.
I will use 2 approaches (hashing, 2 pointer).
In 2 pointer approach the complexity for checking single string would be O(N) but for N queries it would be O(Q*N).
In hashing approach the complexity for checking single string would be O(N) but for N queries it would be O(Q+N).
In each query we will have range [L,R] to check substring is palindrome or not.
eg:  abcba
In range [0,4] substring is palindrome
in range [1,3] substring is palindrome
in range [2,4] substring is not palindrome
##Motivation
We can check any substring from string is this palindrome or not.
I will use Rabin-Karp algorithm to implement this.

@IShahnawazShaikh Hi, I assigned you. Happy Coding!😊

Thanks @ankitaggarwal23 sir I am on it.

I'm the participant in GSSOC'21. I would love to do it using C++. Could you please assign me?

I'm the participant in GSSOC'21. I would love to do it using C++. Could you please assign me?

@rk05-lenavo Hi, you can open a new one with the same concept but with implementation in a different programming language. We will assign it to you then. Happy Coding!😊


No description for the parameters of the aquasec_enforcer_groups resource

On the documentation for the aquasec_enforcer_groups resource, there are no description for the parameters.
Although some of the parameters are obvious, some of them are not. For example, what does group group_id mean?
It would be helpful to describe each of the parameters and ideally provide some examples of use.

Hey @violiveira
We will update the documentation in the next release

Thanks @semyonmor
At the moment I am trying to understand why the parameters:

host_os
runtime_type

Are now considered Computed attributes:
Computed attributes cannot be set, but a value was set for "runtime_type".
The documentation shows these parameters as optional, so that is confusing.

@violiveira sorry for that, we will add description with the next release. These parameters are only relevant for aqua enforcer (agent) for the other enforcer types they are set automatically (computed).
You can see their explanation in here:
https://docs.aquasec.com/docs/aqua-enforcer-groups-and-settings

@violiveira sorry for that, we will add description with the next release. These parameters are only relevant for aqua enforcer (agent) for the other enforcer types they are set automatically (computed).
You can see their explanation in here:
https://docs.aquasec.com/docs/aqua-enforcer-groups-and-settings

Dear @yossig-aquasec  thanks for your reply.
But it is the Aqua Enforcer itself that I am trying to deploy. If I set type=agent and the parameters host_os and runtime_type, the provider will throw the errors above. Please see the entire code below.
Will the aqua enforcer work if I don't provide these parameters?
resource "aquasec_enforcer_groups" "aqua-enforcer" {
  group_id = "aqua-enforcer"
  type = "agent"
  host_os = "Linux"
  orchestrator {
    type = "kubernetes"
    master = false
  }
  runtime_type = "containerd"
  logical_name = "aqua-enforcer"
  gateways = [ "aqua-gateway-domain" ]

  enforce = false

  image_assurance = true
  container_activity_protection = true
  network_protection = true
  user_access_control = false
  container_antivirus_protection = false

  host_assurance = true
  host_protection = true
  host_network_protection = true
  host_user_protection = false
  antivirus_protection = false

  sync_host_images = true
  risk_explorer_auto_discovery = true
}

Thanks, will check it and update you

@violiveira can you please update to version 0.8.10 and check again please
We added fixes to the enforcer group there.

Hi @yossig-aquasec, I still face the errors:
Computed attributes cannot be set, but a value was set for "host_os".
Computed attributes cannot be set, but a value was set for "runtime_type".
if I try to configure any of these parameters for the aqua enforcer (type agent).
Maybe is it the API that has changed and now host_os and runtime_type are dynamically computed on the enforcer side?

Hi @yossig-aquasec thanks for working on this.
The issue with parameters host_os and runtime_type seems to be fixed, thank you.
But since the original issue is about lack of description for the parameters and the description has not been added yet, should I leave this issue opened?
Thank you.


[Baremetal] Enable some tests with baremetal config

Description
The baremetal configuration restricts some tests from being run. This PR tries to duplicate or change the parameters so that the tests can be run with the baremetal config as well.
Status
READY
Additional comments
~Depends on https://github.com/ARMmbed/mbedtls/pull/2892~ (merged)

@mpg Thank you for your review comments, I think those have been addressed, could you please re-review?

There were two CI failures in the pr-head caused by the known-flaky "reconnect" test in ssl-opt.sh (which passed in pr-merge). Restarting the pr-head job.

With two approvals, a passing CI, and no conflict or dependencies, this is ready for merge.


Inline code doesn't work as expected in Lambda.lagda

A notation `` x` will produces no highligted code block because the renderer recognizes `` as open-sign for inline code.
As a result some sentence becomes strange:

One solution is use double-backquoted block, like `` ` x ``.
Or it may more efficient to modify renderer, though?

Addition: sorry, I noticed there already are double-backquoted block, then it may only be forgotten?

Thank you. Feel free to submit pull requests to fix such issues. Cheers, --
P
.   \ Philip Wadler, Professor of Theoretical Computer Science,
.   /\ School of Informatics, University of Edinburgh
.  /  \ and Senior Research Fellow, IOHK
. http://homepages.inf.ed.ac.uk/wadler/
Too brief? Here's why: http://www.emailcharter.org/
On 28 July 2018 at 04:17, phi16<EMAIL_ADDRESS>wrote:

A notation x` will produces no highligted code block because the renderer recognizes as open-sign for inline code.
As a result some sentence becomes strange:
[image: image]
https://user-images.githubusercontent.com/734677/43352523-b30efb98-925f-11e8-9005-57dea7fd8830.png
One solution is use double-backquoted block, like ` x.
Or it may more efficient to modify renderer, though?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/plfa/plfa.github.io/issues/49, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEqfsmunK0ZDYLANml-CSbHDBEXIKAU7ks5uK9e5gaJpZM4Vk4Uu
.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


Updating a backend exportPolicy does not update volume export on ontap-nas driver

Describe the bug
We have updated a backend config which uses ontap-nas driver to move from the default export policy to a purpose built export policy
Volume exports where not updated after the backend was applied, and are still exported through the default export policy
Environment
Provide accurate information about the environment to help us reproduce the issue.

Trident version: 21.10.1
Trident installation flags used: -n trident -e tridentSilenceAutosupport=true
Container runtime: Docker-CE 20.10.10
Kubernetes version: v1.19.16
Kubernetes orchestrator: RKE 1.3.6
Kubernetes enabled feature gates: none
OS: RHEL 7.9
NetApp backend types: Ontap 9.8
Other:

To Reproduce
Steps to reproduce the behavior:
Configure a backend using driver ontap-nas, do/do not specify an exportPolicy, but do not enable AutoExport
Deploy an app through Helm
Update Backend with a different export policy
Volumes are still bound to the old export policy
Additionally, you can delete and reinstall the app through Helm, but it will not apply the new export policy
Expected behavior
Updating the backend config should reflect to the volumes configuration
Backend Config
{
  "version": 1,
  "backendName": "ontap-nas",
  "storageDriverName": "ontap-nas",
  "managementLIF": "REDACTED",
  "dataLIF": "REDACTED",
  "svm": "ldr1-k8s-nfs-trident1",
  "storagePrefix": "trident",
  "nfsMountOptions": "nfsvers=3",
  "username": "REDACTED",
  "password": "REDACTED",
  "aggregate": "aggr_SSD_LDR1_MC_01",
  "limitVolumeSize": "40Gi",
  "defaults": {
    "spaceReserve": "none",
    "snapshotPolicy": "trident_prod",
    "snapshotReserve": "10",
    "exportPolicy": "default"
  }
}

Hello, @Peyoz.  What you are describing is expected behavior.  Trident does not apply backend config settings (or PVC annotations) to volumes retroactively.  But you can safely modify the export policy setting for preexisting volumes outside Trident without affecting Trident's operation.

We changed the export policy and everything kept working, thanks for the clarification
Cheers!


Rename "Sync" to "Wantedly Chat"

Hi, we asked to list our app to electron.atom.io before. Now Sync is renamed Wantedly Chat.
Cc. @luvtechno
ref. https://github.com/electron/electron.atom.io/issues/136

Thanks!


JSON Schema for serialised model, rather than data required for validation

Discussed in https://github.com/pydantic/pydantic/discussions/4577

Originally posted by JonasKs October  1, 2022
Hi,
When I have a model like this:
class X(BaseModel):
    list_item: list[str] = Field(default=[])

The list will always be there, it won't be None. I have also not type annotated it as list[str] | None. However, the OpenAPI documentation does not mark it as required.
The solution is to do this:
class X(BaseModel):
    list_item: list[str] = Field(default=...)

but that also forces me to always create X(list_item=[]) instead of just X(). Not the end of the world, but for some large models this is a bit annoying.
Is OpenAPI documentation generated without using type hints, since this don't work?
Any clean workarounds?

Thanks so much for this, see #4666 for some context on what we're doing with Json Schema.
You pose (indirectly) an interest question - right now the schema generated for a model represents "the data required to pass validation and create a model", in this scenario marking list_item as not required is correct.
But what I think you're talking about is generating a JSON Schema for the data generated from .dict() or .json() - the serialised model.

I've changed the title of this issue to reflect this, if I'm wrong, please clarify.

This is not something we currently do (or claim we do AFAIK).
There are two options:

leave this case for to be patched via Config.schema_extra or similar
add explicit support for "serialisation JSON Schema" - this seems like it could be pretty hard to get right

My immediate thinking is that we should add docs on this, and leave users to patch this themselves rather than put the effort into supporting this properly, but I'm open to a discussion.

right now the schema generated for a model represents "the data required to pass validation and create a model", in this scenario marking list_item as not required is correct.

I agree - this is correct from that point of view, but we have two "views". In FastAPI it is common to have InputBody and ResponseModel Pydantic models.

For InputBody a default field should be marked as not required.
For ResponseModel, a default field should be marked as required, so that a list will always be a list, not list | None

My use case: We generate TypeScript models based on OpenAPI/Swagger JSON (which I assume is a pretty common use case). This is typed as list_item: list | None, instead of list_item: list. Yes, the field is not required to create a model, but it also will never be None from the consumers perspective, which it seems like it will be when looking at .schema_json()
I don't know if it would make sense to have a response=True-flag to alter this behavior, but usage of Config.schema_extra works too.

This could also potentially be altered in FastAPI without any involvement of Pydantic itself? If a model is defined in response_model, go through and mark fields with default values as required.

Well, if someone - me, @tiangolo, you, or some other volunteer is going to do the work to add this, we might as well do it in pydantic so everyone can benefit from the result.
Thinking about this, the only differences between the input schema and output schema is: fields with a default are "not required" in the input schema, but "required" in the output schema.
Note - as per #4516, in pydantic V2, Union[X, None] no longer means not required - to be not required a field has to have an explicit default. This is consistent with dataclasses, much cleaner and should help reduce the difference between input and output schema.
Apart from that, I can't think of any other differences between input and output schema (Of course, you can create a model that won't match the schema - with a post validation validator, or with assignment with validate_assignment=False, but that's your fault and your problem). Can anyone think of any other differences?
If not, this sounds like a reasonable feature request, happy to try to add it in V2.

Thinking about this, the only differences between the input schema and output schema is: fields with a default are "not required" in the input schema, but "required" in the output schema.

Agree 😊

Apart from that, I can't think of any other differences between input and output schema. Can anyone think of any other differences?

I guess the use case for load_alias and dump_alias mentioned in #624 comes from the same place: Input, (working with the model), output.

Well, if someone - me, @tiangolo, you, or some other volunteer is going to do the work to add this, we might as well do it in pydantic so everyone can benefit from the result.

I'm not familiar with pydantic-core nor pydantic after the split. Where would this be implemented in V2? Would you accept PRs into #4516? Any thoughts on how the API should work? I won't promise anything (going on vacation soon), but I'd love to try.

I agree on #624.
In terms of how to do this, #4666 is the best description of what I plan.
#4516 will be merged today (:tada: :sweat:), so any PR can be against main.

Thank you, I'll read up on this after work.
Oh wow, you're that far already! :tada: 😊 Good job!

I see #4666 has been assigned to @kennethreitz :tada: Let me know if I can help with anything, I'd love to have this issue and #624 implemented.

Quick update: we do have a plan for distinguishing between the validation and serialization JSON schemas; I'm hoping to get to this at some point in the next week.

I think this was completed in https://github.com/pydantic/pydantic/pull/5707

I think https://github.com/pydantic/pydantic/pull/5707 made this change for default=, but not default_factory=, am I correct in understanding that? We changed a field from
created_at: datetime = F(default=datetime.now(), nullable=False)

to
created_at: datetime = F(
    sa_column=Column(DateTime(timezone=True), nullable=False),
    default_factory=lambda: datetime.now(timezone.utc),
)

And noticed that it's no longer listed as required in our generated openapi.json. Is it possible/advisable to expand this to default_factory's as well?


Add a confirmation modal before publishing an update

Feature request from @Relequestual
User story

I accidentally pressed "publish" on a draft I was still working on yesterday -_-
Could I raise a feature request of a confirmation dialogue to publish a draft please? =]

That's a simple enhancement. It would be good to show the notification audience in there ("Your Update will be sent to x financial contributors").
Related code

components/PublishUpdateBtnWithData.js
components/ConfirmationModal.js

Super!
Does this also apply if it comes from the action menu? (iirc this issue was because I missed with my mouse intending to pick a different option from the menu)

@Relequestual It's only when you click "Publish". We will surface the notification audience in the modal (https://github.com/opencollective/opencollective/issues/4064) to make sure folks have a chance to review it in case they picked the wrong value in the select.


Errors encountered while reproducing Adroit environment

Thank you for this valuable project. I encountered an issue while trying to reproduce the Adroit environment and would appreciate your help.
I installed the environment using:
conda create -n vigen-adroit python=3.8
bash install_adroit.sh

However, when executing:
cd src/
bash train.sh

I encountered an error:
ModuleNotFoundError: No module named 'mj_envs.hand_manipulation_suite.door_shadowhand_v0'
After executing the commented-out commands in bash install_adroit.sh:
git clone https://github.com/watchernyu/rrl-dependencies.git \
   && cd rrl-dependencies \
   && pip install -e mj_envs/. \
   && pip install -e mjrl/.

I encountered a new error:
Traceback (most recent call last):
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/_internal/utils.py", line 211, in run_and_report
    return func()
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/_internal/utils.py", line 368, in <lambda>
    lambda: hydra.run(
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/_internal/hydra.py", line 110, in run
    _ = ret.return_value
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/core/utils.py", line 233, in return_value
    raise self._return_value
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/core/utils.py", line 160, in run_job
    ret.return_value = task_function(task_cfg)
  File "train_adroit_dhm.py", line 535, in main
    workspace = W(cfg)
  File "train_adroit_dhm.py", line 73, in __init__
    self.setup()
  File "train_adroit_dhm.py", line 143, in setup
    self.train_env = dhm.make_env_RRL(env_name, test_image=False, num_repeats=self.cfg.action_repeat,
  File "/datadrive/xxx/code/RL-ViGen/DHM/dhm/make_env_RRL.py", line 894, in make_env_RRL
    env = DHMEnv(cfg_dict, env_name, test_image, cam_list, num_repeats, num_frames, env_feature_type, device,
  File "/datadrive/xxx/code/RL-ViGen/DHM/dhm/make_env_RRL.py", line 703, in __init__
    env = GymEnv(self.env_name)
  File "/datadrive/xxx/code/RL-ViGen/DHM/dhm/utils.py", line 27, in __init__
    env = gym.make(env)
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/gym/envs/registration.py", line 235, in make
    return registry.make(id, **kwargs)
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/gym/envs/registration.py", line 128, in make
    spec = self.spec(path)
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/gym/envs/registration.py", line 203, in spec
    raise error.UnregisteredEnv("No registered env with id: {}".format(id))
gym.error.UnregisteredEnv: No registered env with id: hammer-adroit-v0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "train_adroit_dhm.py", line 545, in <module>
    main()
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/main.py", line 49, in decorated_main
    _run_hydra(
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/_internal/utils.py", line 367, in _run_hydra
    run_and_report(
  File "/home/xxx/miniconda3/envs/vigen-adroit/lib/python3.8/site-packages/hydra/_internal/utils.py", line 251, in run_and_report
    assert mdl is not None
AssertionError

I suspect it might be a version issue. Do you know how to resolve this? Looking forward to your reply, and thank you in advance.

Hi, Thanks for receiving your feedback! The issue arose as we have recently been developing a new version, leading to the appearance of some minor bugs. I have now fixed the specified bug, and you can easily install the necessary components by executing the install_adroit.sh script. I've also removed any unnecessary installation content. You can now pull the latest version to proceed with the installation. If you have any other questions, please don't hesitate to let me know. Thank you!

Thank you for your response. After the modification, the code runs successfully. I only saw the execution method for VRL3 in the Adroit branch. Are there running methods for other algorithms mentioned in the paper?

yea, you can check the algos folder.


fix: background image urls are loaded although images are not allowed

A test with

Hello World

does not show the bg-image and blocks it as expected:
Refused to load the image 'https://www.conjoon.org/img/screens/3.png' because it violates the following Content Security Policy directive: "img-src data: 'self'".


Get rid of lint warnings

Probably there's no reason why we should have these warnings:

I believe most of them can be fixed, the one about dangerouslySetInnerHTML should be ignored.

:tada: This issue has been resolved in version 1.4.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket: