removed racaptcha

(Please add to the PR name the issue/s that this PR would close if merged by using a Github keyword. Example: <feature name>. Closes #999. If your PR is made by a single commit, please add that clause in the commit too. This is all required to automate the closure of related issues.)
Description
Please include a summary of the change.
Related issues
Please add related issues.
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist

[ ] I have read and understood the rules about how to Contribute to this project.
[ ] The pull request is for the branch develop.
[ ] I have added documentation of the new features.
[ ] Linters (Black, Flake, Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.
[ ] I have added tests for the feature/bug I solved. All the tests (new and old ones) gave 0 errors.
[ ] If changes were made to an existing model/serializer/view, the docs were updated and regenerated (check CONTRIBUTE.md).
[ ] If the GUI has been modified:

[ ] I have a provided a screenshot of the result in the PR.
[ ] I have created new frontend tests for the new component or updated existing ones.

Important Rules

If you miss to compile the Checklist properly, your PR won't be reviewed by the maintainers.
If your changes decrease the overall tests coverage (you will know after the Codecov CI job is done), you should add the required tests to fix the problem
Everytime you make changes to the PR and you think the work is done, you should explicitly ask for a review. After being reviewed and received a "change request", you should explicitly ask for a review again once you have made the requested changes.

@mlodic I removed the support for the Recaptcha. I test the login/logout and registration and It works. I also removed the references to Recaptcha in the docs. I tagged you a reviewer in case I'm missing something. Ignore  the GitGuarding (it detected passwords in the frontend's tests)


nixos/sysctl: raise default vm.max_map_count to 1048576

Description of changes
Fixes #238412 (which contains the motivation).
I removed some mentions of that setting, because they set it to a lower value than 1048576.
Before merging: there are two mentions of vm.max_map_count I didn't remove, because they optionally set it in a script instead of using the NixOS option. It still is lower than 1048576, but they put a condition to not change it if the system one is higher. Should I remove these mentions too?

I would prefer if the application workarounds (lxd, firefox-musl) would not be touched for now, since for example someone could be running a nixos-unstable container or firefox-musl build on a 23.05 stable host :)

Anything else to do? (malloc.nix change is still not reverted)

Anything else to do? (malloc.nix change is still not reverted)

Well, you didn't address my comment. :)

Alright, lxd is now untouched alongside Firefox musl. (Added a TODO for each)

@Artturin Why did you merge given that some threads were unresolved :/ ?

To me the line does not appear to be necessary because the default was raised and won't be lowered. so shouldn't redundant settings be removed
Did the same(though they were tests) in https://github.com/NixOS/nixpkgs/commit/54ece050b8ff6ce12a665832b2c83bfd925ce8a3

To me the line does not appear to be necessary because the default was raised and won't be lowered. so shouldn't redundant settings be removed Did the same(though they were tests) in 54ece05

As in many instances of such behaviors, the problem is not here. The problem is: you didn't bother answering to that comment, there was no hurry for that PR. Maybe you should have commented this before merging.
The question, whether, you already did it or not, is irrelevant. I do not have eyes everywhere. :)


PRs with main branch

I've noticed if a PR uses a main branch on their fork it is causing Cloudflare to treat this as a production deployment even though only the  build-preview.yml / deploy-preview.yml workflows are running (i.e. not deply-prod.yml)

This could very well be a misconfiguration on my side (within Cloudflare, etc), but I couldn't identify any way to qualify source repo (only branch).

I could turn off automatic deployments of the main branch, but I would rather not if possible.
I know @huntabyte is using a similar workflows with bits-ui so this could affect that repo as well unless I'm overlooking something on my end.
cc: @shyakadavis

Thanks for the report!
This was actually a bug that was originally fixed in #15, but a regression in #16 reintroduced the issue. #19 should resolve this now.


X2 model does not work but X4 model work fine

The x4 model is worked fine but x2 model does not work at all. When I run x2 model on my images, nothing happens but x4 does worked.

@xinntao

For 2x upscale, this command does work by x4 model:
python inference_realesrgan.py -n RealESRGAN_x4plus -i Data/Data2/Main4X8Bit -s 2


SEON - Generated Signed APK Issue

Hi,
I am using SEON flutter SDK version 3.0.0. I get SEON _fingerPrintBase64 in debug build. Its working successfully. Then i get the generated signed APK, app is automatically closed. At the time i hidden the SEON integration code, its working fine. Please support this case.
Explain: FATAL EXCEPTION: main Process: com.example.customer,  PID: 22287 java.lang.NoSuchMethodError:  no static or non-static method "Lio/seon/androidsdk/ service/ JNIHandler; . getProdUrl( Ljava/ lang/ Object; ) Ljava/ lang/ String; "  at java.lang.Runtime.nativeLoad( Native Method) at java.lang.Runtime.nativeLoad( Runtime. java: 1126)  with tag AndroidRuntime
My Source code:
final RxString _fingerPrintBase64 = "Fetching fingerprint...".obs;
var uuid = const Uuid();

 @override
  void onInit() {
  getSeonDetails(sessionId: uuid.v1());
  super.onInit();
}

Future<void> getSeonDetails({required sessionId}) async {
      String fingerPrintBase64;
      try {
        final _seonPlugin = SeonPlugin();
        fingerPrintBase64 = await _seonPlugin.getFingerPrintBase64(sessionId: sessionId, isLoggingEnabled: true) ??
        'Unknown fingerprint';
      } on PlatformException {
        fingerPrintBase64 = 'Failed to get fingerprint.';
      }
      _fingerPrintBase64.value = fingerPrintBase64;
      debugPrint('FingerPrintValue: ${_fingerPrintBase64.value}');
  }

Hi @FoloosiApps
This issue is a duplicate of https://github.com/Shahin-Sefidgaran/seon-flutter-sdk/issues/8. I've closed this issue, but please refer to the original for further discussion.


get Integer value from _dict instead of real

Considering this code block:
`from tableauscraper import TableauScraper as TS
import pandas as pd
import time
data_list = []
url = "https://tableau.azdhs.gov/views/EMResourceBeds/InpatientBedUsageAvailability?%3Aembed=y&"
ts = TS()
ts.loads(url)
workbook = ts.getWorkbook()
for t in workbook.worksheets:
data_list.append(t.data)
print(data_list)`
TableauScraper is only offering the real (percentage in this case) number. How can I get the integer instead?
Thanks as always BM

@az-data-guru You could format the data like this to get the percentage value:
from tableauscraper import TableauScraper as TS
import pandas as pd

url = "https://tableau.azdhs.gov/views/EMResourceBeds/InpatientBedUsageAvailability"

ts = TS()
ts.loads(url)
workbook = ts.getWorkbook()

for t in workbook.worksheets:
    df = t.data
    if "SUM(Number)-alias" in df:
        df['SUM(Number)-alias'] = pd.Series([
            "{0:.2f}%".format(val * 100)
            for val in df['SUM(Number)-alias']
        ], index=df.index)

        df['SUM(Number)-value'] = pd.Series([
            "{0:.2f}%".format(val * 100)
            for val in df['SUM(Number)-value']
        ], index=df.index)

    print(df)

which gives:
     Date Pulled-value Date Pulled-alias                        Med Surgbed-alias SUM(Number)-alias SUM(Number)-value
0           2021-07-18         7/18/2021  Inpatient Beds In Use by COVID Patients             9.40%             9.40%
1           2021-07-17         7/17/2021  Inpatient Beds In Use by COVID Patients             8.95%             8.95%
2           2021-07-16         7/16/2021  Inpatient Beds In Use by COVID Patients             8.60%             8.60%
3           2021-07-15         7/15/2021  Inpatient Beds In Use by COVID Patients             8.29%             8.29%
4           2021-07-14         7/14/2021  Inpatient Beds In Use by COVID Patients             7.97%             7.97%
...                ...               ...                                      ...               ...               ...
1419        2020-03-30         3/30/2020                 Inpatient Beds Available            33.90%            33.90%
1420        2020-03-29         3/29/2020                 Inpatient Beds Available            35.58%            35.58%
1421        2020-03-28         3/28/2020                 Inpatient Beds Available            33.13%            33.13%
1422        2020-03-27         3/27/2020                 Inpatient Beds Available            32.07%            32.07%
1423        2020-03-26         3/26/2020                 Inpatient Beds Available            32.39%            32.39%

In fact, the integer values are calculated in Javascript, the real values are the raw data retrieved from the API. In some dashboard, the worksheet also contains the integer value but it depends on the dashboard
However, the format is specified in the json data but it's not straightforward to parse:
"vizDataColumns": [{
    "fn": "[system:visual].[tuple_id]",
    "fnDisagg": "",
    "formatStrings": [],
    "isAutoSelect": false,
    "paneIndices": [0],
    "columnIndices": [0]
}, {
    "fn": "[federated.1w7kli510gv45110nyi201m2xlpg].[none:DatePulled:qk]",
    "fnDisagg": "",
    "localBaseColumnName": "[DatePulled]",
    "baseColumnName": "[federated.1w7kli510gv45110nyi201m2xlpg].[DatePulled]",
    "fieldCaption": "Date Pulled",
    "formatStrings": ["*dd/MM/yyyy", "fr_FR", "", "HH:mm:ss", "0", "1", "4", "0"],
    "datasourceCaption": "federated.1w7kli510gv45110nyi201m2xlpg",
    "dataType": "date",
    "fieldRole": "dimension",
    "isAutoSelect": false,
    "paneIndices": [0],
    "columnIndices": [1]
}, {
    "fn": "[federated.1w7kli510gv45110nyi201m2xlpg].[none:MED_SURGBED:nk]",
    "fnDisagg": "",
    "localBaseColumnName": "[MED_SURGBED]",
    "baseColumnName": "[federated.1w7kli510gv45110nyi201m2xlpg].[MED_SURGBED]",
    "fieldCaption": "Med Surgbed",
    "formatStrings": [],
    "datasourceCaption": "federated.1w7kli510gv45110nyi201m2xlpg",
    "dataType": "cstring",
    "stringCollation": {
        "name": "LEN_RUS_S2",
        "charsetId": 0
    },
    "fieldRole": "dimension",
    "isAutoSelect": true,
    "paneIndices": [0],
    "columnIndices": [2]
}, {
    "fn": "[federated.1w7kli510gv45110nyi201m2xlpg].[sum:Number:qk]",
    "fnDisagg": "",
    "localBaseColumnName": "[Number]",
    "baseColumnName": "[federated.1w7kli510gv45110nyi201m2xlpg].[Number]",
    "fieldCaption": "SOMME(Number)",
    "formatStrings": ["", "-1", "t", "", "", "", "0", ",", " ", "3;0"],
    "datasourceCaption": "federated.1w7kli510gv45110nyi201m2xlpg",
    "dataType": "integer",
    "aggregation": "sum",
    "fieldRole": "measure",
    "isAutoSelect": false,
    "paneIndices": [0],
    "columnIndices": [3]
}, {
    "fn": "[federated.1w7kli510gv45110nyi201m2xlpg].[pcto:sum:Number:qk:2]",
    "fnDisagg": "",
    "localBaseColumnName": "[Number]",
    "baseColumnName": "[federated.1w7kli510gv45110nyi201m2xlpg].[Number]",
    "fieldCaption": "SOMME(Number)",
    "formatStrings": ["p", "0", "f", "", "", "", "2", ",", " ", "3;0"],
    "datasourceCaption": "federated.1w7kli510gv45110nyi201m2xlpg",
    "dataType": "real",
    "aggregation": "sum",
    "fieldRole": "measure",
    "isAutoSelect": false,
    "paneIndices": [0],
    "columnIndices": [4]
}]

I think it would need to understand how the formatStrings is interpreted in Javascript:
"formatStrings": ["", "-1", "t", "", "", "", "0", ",", " ", "3;0"]
But if the code above is returning correct % value as expected, it may be sufficient for your needs

I may not have been clear, instead of the percentage of inpatient I need the actual bed count. It exists in the data_dictionary.
For example, the 2021-07-18 entry in the dictionary has an integer value of 814 and a real value of .09404. I need the 814.

@az-data-guru this is fixed in v0.1.18. There was multiple column with the same caption. Thus, when the column name already exists, I've appended the function name.
from tableauscraper import TableauScraper as TS

url = "https://tableau.azdhs.gov/views/EMResourceBeds/InpatientBedUsageAvailability"

ts = TS()
ts.loads(url)
workbook = ts.getWorkbook()

for t in workbook.worksheets:
    print(t.name)
    print(t.data)

Output
    Date Pulled-value Date Pulled-alias                        Med Surgbed-alias SUM(Number)-alias SUM(Number)-value SUM(Number)-[federated.1w7kli510gv45110nyi201m2xlpg].[pcto:sum:Number:qk:2]-alias
0          2021-07-18         7/18/2021  Inpatient Beds In Use by COVID Patients               814         0.0940497                                          0.0940497
1          2021-07-17         7/17/2021  Inpatient Beds In Use by COVID Patients               775         0.0895023                                          0.0895023
2          2021-07-16         7/16/2021  Inpatient Beds In Use by COVID Patients               745         0.0860277                                          0.0860277
3          2021-07-15         7/15/2021  Inpatient Beds In Use by COVID Patients               719         0.0829201                                          0.0829201
4          2021-07-14         7/14/2021  Inpatient Beds In Use by COVID Patients               689         0.0796716                                          0.0796716
..                ...               ...                                      ...               ...               ...                                                ...
232        2021-05-05          5/5/2021                 Inpatient Beds Available               915          0.106457                                           0.106457
233        2021-05-04          5/4/2021                 Inpatient Beds Available              1061          0.123473                                           0.123473
234        2021-05-03          5/3/2021                 Inpatient Beds Available              1120          0.130354                                           0.130354
235        2021-05-02          5/2/2021                 Inpatient Beds Available              1093          0.127464                                           0.127464
236        2021-05-01          5/1/2021                 Inpatient Beds Available              1034          0.120471                                           0.120471

[237 rows x 6 columns]

Thank you!
From: Bertrand Martel @.>
Sent: Monday, July 19, 2021 3:20 PM
To: bertrandmartel/tableau-scraping @.>
Cc: Archer, Garrett @.>; Mention @.>
Subject: Re: [bertrandmartel/tableau-scraping] get Integer value from _dict instead of real (#24)
[EXTERNAL SENDER]
@az-data-guru [github.com]https://urldefense.com/v3/__https:/github.com/az-data-guru__;!!FJkDyvWmnr4!KW6VOdmxfflL05A3MQF7WjQ3hlmaLUMipGwFS66fVkkouKD-w7FOJMp8L2QHiMaUX9ZF$ this is fixed in v0.1.18. There was multiple column with the same caption. Thus, when the column name already exists, I've appended the function name.
from tableauscraper import TableauScraper as TS
url = "https://tableau.azdhs.gov/views/EMResourceBeds/InpatientBedUsageAvailability [tableau.azdhs.gov]https://urldefense.com/v3/__https:/tableau.azdhs.gov/views/EMResourceBeds/InpatientBedUsageAvailability__;!!FJkDyvWmnr4!KW6VOdmxfflL05A3MQF7WjQ3hlmaLUMipGwFS66fVkkouKD-w7FOJMp8L2QHiMuALhFr$"
ts = TS()
ts.loads(url)
workbook = ts.getWorkbook()
for t in workbook.worksheets:
print(t.name)

print(t.data)

Output
Date Pulled-value Date Pulled-alias                        Med Surgbed-alias SUM(Number)-alias SUM(Number)-value SUM(Number)-[federated.1w7kli510gv45110nyi201m2xlpg].[pcto:sum:Number:qk:2]-alias

0          2021-07-18         7/18/2021  Inpatient Beds In Use by COVID Patients               814         0.0940497                                          0.0940497
1          2021-07-17         7/17/2021  Inpatient Beds In Use by COVID Patients               775         0.0895023                                          0.0895023
2          2021-07-16         7/16/2021  Inpatient Beds In Use by COVID Patients               745         0.0860277                                          0.0860277
3          2021-07-15         7/15/2021  Inpatient Beds In Use by COVID Patients               719         0.0829201                                          0.0829201
4          2021-07-14         7/14/2021  Inpatient Beds In Use by COVID Patients               689         0.0796716                                          0.0796716
..                ...               ...                                      ...               ...               ...                                                ...
232        2021-05-05          5/5/2021                 Inpatient Beds Available               915          0.106457                                           0.106457
233        2021-05-04          5/4/2021                 Inpatient Beds Available              1061          0.123473                                           0.123473
234        2021-05-03          5/3/2021                 Inpatient Beds Available              1120          0.130354                                           0.130354
235        2021-05-02          5/2/2021                 Inpatient Beds Available              1093          0.127464                                           0.127464
236        2021-05-01          5/1/2021                 Inpatient Beds Available              1034          0.120471                                           0.120471
[237 rows x 6 columns]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/bertrandmartel/tableau-scraping/issues/24*issuecomment-882899250__;Iw!!FJkDyvWmnr4!KW6VOdmxfflL05A3MQF7WjQ3hlmaLUMipGwFS66fVkkouKD-w7FOJMp8L2QHiF9rvmM2$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/APBUTG53ORZHNMFPFAPWQA3TYSQIJANCNFSM5AUIMXBA__;!!FJkDyvWmnr4!KW6VOdmxfflL05A3MQF7WjQ3hlmaLUMipGwFS66fVkkouKD-w7FOJMp8L2QHiOAZGUG_$.
Scripps Media, Inc., certifies that its advertising sales agreements do not discriminate on the basis of race or ethnicity. All advertising sales agreements contain nondiscrimination clauses.


Update SPI README

Spell out acronyms
Add more explanation for reading data sheet

I've updated the expanded explanation to use the MCP3002.  I have one TODO I need some help with.  I couldn't figure out how to explain the MSBF configuration.
Let me know if you see any errors or would like me to make any changes.

I updated the README based on your explanation on the MSBF from Slack.

I think even the links are a great improvement for helping people understand what this library is for and how to use it. This is "new to hardware" friendly. :+1:

I made the requested changes.  The only question I had was on the start_link section.  I wasn't sure if you meant just that paragraph or the entire section.  I just deleted the paragraph, but can remove the entire section if that's what you meant.

I just merged almost all of it in. I fixed some trailing whitespace and that had the effect of making the merge conflicts that you'll see now. I didn't pull in the paragraphs that describe the SPI example again, but in more detail. Not that I don't think that they're helpful, though. My thought is to integrate them differently. I copied the binary pattern matching note to the original example (that's committed). I think that the paragraph on finding the "spidev" device is useful as a FAQ (I didn't make that change.) The rest of it would be good for a blog post since it is super detailed on hardware and the Elixir. I'd add a link to it from here. I'm just not sure that I want to make the elixir_ale docs so detailed yet, and it looks out of balance since the GPIO and I2C sections aren't nearly as detailed.
I'm going to close this PR given how much was integrated. Thank you so much for making these doc updates!!


[Xcode 9b5] Error on app launch.

Any idea?...

I found the issue that the new verison of Unity doesn't support turning ARC off. Please remove 'retain' and 'dealloc/remove' lines in webview source code.
http://answers.unity3d.com/questions/1074455/unity-ios-project-gets-crashed-when-returning-from.html


[MPQEditor] Make layout more user-friendly

What?
Let's make MPQEditor layout more user- friendly.
Why?
See original discussion in https://github.com/Samsung/ONE-vscode/pull/1539#issuecomment-1526872463.

@dayo09 @seanshpark
Initial draft is proposed at #1542.
Otherwise we can try to make both sections collapsible as was done at metadataviewer .

Oh, I just got another idea - how about adding 'default' just as the same as the other layers? Not as a radio button, but just as a drop box element just the same as other layers. Therefore we don't need to put some text information.

I just got another idea - how about adding 'default' just as the same as the other layers? Not as a radio button, but just as a drop box element just the same as other layers. Therefore we don't need to put some text information.

I just got another idea - how about adding 'default' just as the same as the other layers? Not as a radio button, but just as a drop box element just the same as other layers. Therefore we don't need to put some text information.

@dayo09
Like this?:

or ?:

I meant 1.) 😄

I meant 1.) 😄

Ahh. Ok. Thank you!


Discord.RSS does not cleanup itself when gracefully exiting

Describe the bug
When the program's process.exit() event is called Discord.RSS does not clean up after itself and will leave leftover processes running. See comments in #26 for more details.
To Reproduce
Steps to reproduce the behavior:

Send SIGTERM to the main process (kill -SIGTERM $pid)

This will cause it to close and leave child processes running.
Expected behavior
All child processes also closing.
Additional context
The issue stated above provides details on how this can be fixed. Systemd systems or running in dockers may not show the same behavior because these systems may forcefully close the process tree. Init does not do this as it is the program's responsibility and not the init systems job.
I believe this can be fixed by adding a signal handler on exit that runs the client.destroy() method. I also suggest cleaning up database connections and any other file descriptors open with write access.

Thanks for the report. This is definitely something that needs to be addressed. I'll try to get it in the next patch release

Release 6.5.37 should have this fixed now. Thanks for the detailed report.


Fonts in html not visible in PDF

Hello,
thanks for the work.
I have html code that I'd like to convert to pdf. It works well but fonts does not seem to be rendered.. instead I just see the default one (times new roman i guess). Also Font-Awesome icons are not visible.
Code for the job (inside my controller):
...
 Phoenix.View.render_to_string(MyAppWeb.MenuView, "menu-page.print.html", merged_assigns)
          |> prepare_menu_pdf()
          |> ChromicPDF.print_to_pdf(
               output: fn path ->
                 conn
                 |> send_download({:file, path}, filename: merged_assigns.filename <> ".pdf", disposition: :inline)
               end
             )
...

and prepare_menu_pdf():
defp prepare_menu_pdf(string_content) when is_binary(string_content) do
    {:ok, styles} =
      Path.join(:code.priv_dir(:my_app_web), "static/css/menu-print-styles.css")
      |> File.read()

    {:ok, font_styles} =
      Path.join(:code.priv_dir(:my_app_web), "static/fonts/fira/fira.css")
      |> File.read()

    [
      content: [
        "<style>" <> styles <> "</style>",
        "<style>" <> font_styles <> "</style>",
        string_content
      ]
    ]
    |> ChromicPDF.Template.source_and_options()
  end

I have tried to download woff files mentioned in fira/fira.css (where those @font-family-ies are specified) so it can be available locally but no luck
FontAwesome is inserted with remote url..
Am I doing anything wrong?
Thanks in advance.

I am not sure why remote URLs don't work, but we definitely have a project with base64 encoded url fonts working with chromic_pdf.
@font-face {
  font-family: 'Somefont';
  font-style: normal;
  font-weight: light;
  src: url(data:font/woff;charset=utf-8;base64,....);
}

I'm assuming you're starting ChromicPDF with its default options in your supervisor - the default configuration is to launch Chrome without, network connectivity (see docs). This might very well prevent Chrome from fetching fonts from remote hosts.
But as @andreasknoepfle said, you'll probably be better off including the fonts as data uris in the styles regardless.

Thanks for the reply.

I am not sure why remote URLs don't work, but we definitely have a project with base64 encoded url fonts working with chromic_pdf.
@font-face {
  font-family: 'Somefont';
  font-style: normal;
  font-weight: light;
  src: url(data:font/woff;charset=utf-8;base64,....);
}

This might anyway be what you want, since unless you are using absolute path file URLs in your css , the fonts might be unavailable due to network traffic and downloaded every time a pdf is printed.

Ok. didnt know I can store it that way.. I must say that I was a little bit scared that the relative paths in my styles could not work..
Here is how it is specified: (with the .woff2 file being physically next to the css file)
@font-face {
  font-family: 'Fira Sans Condensed';
  font-style: normal;
  font-weight: 400;
  src: local('Fira Sans Condensed Regular'), local('FiraSansCondensed-Regular'), url(./wEOhEADFm8hSaQTFG18FErVhsC9x-tarUfvtrftV.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}```

> I'm assuming you're starting `ChromicPDF` with its default options in your supervisor - the default configuration is to launch Chrome without network connectivity (see [docs](https://hexdocs.pm/chromic_pdf/ChromicPDF.html#module-running-in-online-mode)). This might have been not such a great idea (maybe I'll change that to online by default soon), but it could very well prevent Chrome from fetching fonts from remote hosts.
>
> But as @andreasknoepfle said, you'll probably be better off including the fonts as data uris in the styles regardless.

I see. thats good to know. I will make rest of the resources available offline as well..

(with the .woff2 file being physically next to the css file)

Yeah, that's not going to work like this. Especially since you used ChromicPDF.Template.source_and_options() which then sends the HTML source as a {:html, ...} tuple to print_to_pdf: This syntax replaces the HTML in the browser window (rather than navigation to a URL), so the browser does not have a clue where its content came from, neither from where it should fetch local (relative) resources. You would definitely need absolute URLs then in your stylesheet, as well as the offline: false parameter in the supervisor. (Alternatively the inline data-uri as said).
Please let us know if we can improve anything in the documentation, if you found confusing or missing or misplaced information.

@TheMaikXX did you manage to embed the fonts? can we close this issue?

Oh yes. I managed to get it working.. thanks!
Sorry for not closing it earlier..


Drawer children is not defined

Hey, guys, I was faced with the troubles with Drawer on v4 beta 7, Drawer children don't exist anymore like it was in v3 with state.children. For now this.props don't contain react children.
Here is my scenes structure:
https://pastebin.com/szy2bBHp

@Venumteam Please check 'Breaking changes' section.

@aksonov Are you referencing this change?

Container scenes (that has children) cannot have component (or it will be considered as child!). If you want to customize containers, use react navigation custom navigators and pass it as navigator prop.

Yes

@aksonov Is there a chance you guys will give an example of usage?
Given we have a structure

NavigationDrawer component was rendering children.
What must it render since new version?

v4 uses built-in react navigation Drawer navigator. Please use contentComponent for SideMenu component, remove component attribute. Please check docs about DrawerNavigator from ReactNavigation.

this helps https://github.com/aksonov/react-native-router-flux/blob/v4/Example/Example.js
thanks for your feedback


change max date

change max date to be the maximal date in the data and not current date (we are usually in ~2 months delay - depending on when the CBS are sending the data)

@sa1omon any news on this one?

@sa1omon any news on this one?

Done :)

@sa1omon great work


Add notebooks into main

Added notebooks into main so everyone is on the same page. @YZhu0225 @5ukhy21 @poojakabber7

Looking great.


data2vec models on HuggingFace

❓ Questions and Help
Will pretrained data2vec models be released on HuggingFace?
I'm asking this because I'm investigating how to use the data2vec models with the vector DB & search engine Weaviate. We could make a Weaviate Module that accepts data2vec models. Since Weaviate already works with HuggingFace Transformer models, the integration with a data2vec model from Huggingface would be easy. Thanks in advance.

I'd be a fan of the models being available on HuggingFace.
Side: Weaviate looks awesome, only just finding out about it now.

I have an open PR for this, still WIP: https://github.com/huggingface/transformers/pull/15507


Betting Accounts Setup

In order to appropriately pursue this application, I'll have to get into the game myself.
Tasks

Establish a connection with the same bookies Anthony utilizes
Tail Anthony's bets and analyze the results

Gotten through Underdog. A few more to go.

Also, set up whatever new accounts Anthony requires.

Accounts set up for the most part, just need to make deposits appropriately.

Need to hurry up and start tailing Anthony.

Going through each logging platform and establishing bankroll.
The idea is to attack the book with the best value based on posted bets.
Time to get into the game...

Accounts are set up for the most part. Now time to start tailing.
PrizePicks application rejected.


Missing LICENSE file

Dear maintainer,
Thanks for your awesome DNS library and accompanying examples!
I noticed the source code headers refer to a LICENSE file, but none is included in this repository.
Cheers,
Jonathan

indeed! These where once part of the godns, but they've split of. This should be a https://opensource.org/licenses/BSD-2-Clause

@miekg Should this just be a copy of https://github.com/miekg/dns/blob/master/LICENSE
I can submit a PR if that would help :)

[ Quoting<EMAIL_ADDRESS>in "Re: [miekg/exdns] Missing LICENSE f..." ]

@miekg Should this just be a copy of https://github.com/miekg/dns/blob/master/LICENSE
I can submit a PR if that would help :)

Yes please do :-) Except it does not need to the Google Authors.
Anyway just submit a PR I'll brush it up after #lazy
Thanks!
/Miek
--
Miek Gieben

Bah, sorry! Turns out I should've tested first, the license badge isn't working. Will fix in a follow-up PR.
Tested this time here: https://github.com/jawnsy/licensetest
(Seems to be a little finicky with the way the text is formatted)


Evaluation of the experimental part of the paper

Hi, here is the comparison table for raw data and 21 sequences of tracking dataset.


Update CONTRIBUTING.md

add a dot where it is missing
Why is this change needed?
you need to follow the culture of writing
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[x] PR has a changeset
[x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR includes documentation if necessary.

PR-Codex overview
This PR focuses on improving the clarity and consistency of the CONTRIBUTING.md documentation by correcting punctuation and formatting issues.
Detailed summary

Updated section headers for consistency (e.g., added period after "Writing Docs").
Added periods at the end of several guidelines for uniformity.
Clarified the steps for running yarn changeset.
Enhanced the instructions for publishing versions with clearer formatting.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Other PR was merged—thank you. Can you update this one so we can merge it as well?

Other PR was merged—thank you. Can you update this one so we can merge it as well?

I have already made another commit with the proposed changes. Can you tell me what and how I should update in this commit?

maybe should I close it?


Fix RequestFilterExecutor w/ verify_provider

This fixes a compilation failure in pact_verifier_cli due to a typechecking issue with a None variant of an Option<F> where F: RequestFilterExecutor by introducing a NullRequestFilterExecutor and annotating the None variant to have the type Option<Box<NullRequestFilterExecutor>>. This allows the crate to compile as expected, and does not change behavior.
Note that if NullRequestFilterExecutor is ever attempted to be called (unlike the current usage, where it is solely used as a type annotation) it will panic the current thread.

Looks like the AppVeyor test failed on server_manager::tests::manager_should_start_and_shutdown_mock_server. Looking at it, I think it may be a transient error. I've tried to reproduce the failure locally and have been unable to. Is there a mechanism to rerun the checks to see if the error is transient?

Thanks!


Large number of looking at node entries in the tsserver log

Product and Version VS COde
OS Version [macOS/Windows]: NA
IntelliCode Extension Version: 1.1.6
Target Platform or Language  TS
Steps to Reproduce / Scenario:

In VS Code, set "typescript.tsserver.log": "normal"
With intellicode enabled, open a ts file
Then run the Open TS Server log command in VS Code. Look at the opened tsserver log file

Bug
Notice a huge number of  looking at node log entries in the log.
Info 121  [16:2:14.463] program found
Info 122  [16:2:14.463] source file found
Info 123  [16:2:14.463] looking at node 250<PHONE_NUMBER>0: import { OnBeforeRequestDetails, OnHeadersReceivedDetails, Response } from 'electron';
Info 124  [16:2:14.463] looking at node 251<PHONE_NUMBER>0: { OnBeforeRequestDetails, OnHeadersReceivedDetails, Response }
Info 125  [16:2:14.463] looking at node 253<PHONE_NUMBER>0: { OnBeforeRequestDetails, OnHeadersReceivedDetails, Response }
Info 126  [16:2:14.463] looking at node 254<PHONE_NUMBER>0: OnBeforeRequestDetails
Info 127  [16:2:14.463] looking at node 73<PHONE_NUMBER>0: OnBeforeRequestDetails
Info 128  [16:2:14.463] looking at node 254<PHONE_NUMBER>0: OnHeadersReceivedDetails
Info 129  [16:2:14.463] looking at node 73<PHONE_NUMBER>0: OnHeadersReceivedDetails
Info 130  [16:2:14.463] looking at node 254<PHONE_NUMBER>0: Response
Info 131  [16:2:14.463] looking at node 73<PHONE_NUMBER>0: Response
...

After checking with the TS team, we believe these logged lines are coming from IntelliCode. The volume of data being logged makes the log file difficult for us to analyze and may be impacting performance.
Please:

Disable this logging (perhaps except in verbose logging mode, but even then it's probably too verbose)
Make sure any log messages are prefixed with intellicode or some other identifiable prefix in the future

Thanks for reporting. Yes, this is coming from the IntelliCode plugin. I agree with the proposed solution. @uniqueiniquity, can you fix this?

This has been fixed and will ship in 1.1.7.


If the jars gets updated will that effect the running code..?

Background

We have been using Cobrix from last two months, it used to work fine  for the given JARS till Feb 20th.  After that the Jobs were getting Failed.  We used following Jars:

spark-cobol-assembly-2.4.11-SNAPSHOT.jar
cobol-parser-assembly-2.4.11-SNAPSHOT.jar
scodec-bits_2.11-1.1.4.jar
cobol-parser_2.11-2.1.4.SNAPSHOT.jar
scodec-core_2.11-1.10.3.jar
antlr4-runtime-4.7.2.jar
spark-cobol_2.11-2.2.4-SNAPSHOT.jar

Error: an error occurred while calling o104.load.scala/product$class
Environment Details:  we are using AWS Glue 3.0 (scala 2, spark 3.1, python 3).  Jars were stored in Aws S3 buckets.

Later we tried with new version of Jars (mentioned below) that are available in the read.me then we are able to run the jobs successfully.

spark-cobol_2.12-2.6.4.jar
cobol-parser_2.12-2.6.4.jar
scodec-core_2.12-1.10.3.jar
scodec-bits_2.12-1.1.4.jar
antlr4-runtime-4.8.jar

Question
Help us understand how the earlier version of the Jars lead to failure of jobs from Feb 20th onwards , and changing the version to new jars heled to fix the issue. Even we downloaded the jars to our local.
Is there a way to avoid this situation of jars version changes lead to failures?.
@yruslan

ok Thanks for response


Improve the README

improve the readme

@seanlip this should send you an email

-1 Please address review comments.

LGTM.


Plugin delete existing files in

Hi,
In my project where is already one code generation plugin (apt-maven-plugin which generates code for QueryDSL framework at target/generated-sources/java)
When i added graphqlcodegen-maven-plugin i see that it successful generate code at target/generated-sources, but code for QueryDsl now is missing.
Both plugins execute at generate-sources maven phase, but from console output i see that graphqlcodegen-maven-plugin executes after apt-maven-plugin. So I purpose that it implicitly clear target/generated-sources folder before self code generation.
As workaround i change outputDir for graphqlcodegen-maven-plugin and was forced to add one more folder for source code at build-helper-maven-plugin
It will be nice if you change this behavior and plugin won't delete existing files in outputDir
Thank you.

Hi @MinkaReZ this plugin is a thin wrapper over the Netflix DGS codegen library. It doesn't delete any of the output folders. I also took a look at the underlying codegen library here and didn't see any code that's explicitly deleting files.
I tried to reproduce locally with version 1.21 of this plugin without success by adding a package and test file under the target/generated-sources folder. Subsequent invocations of this plugin did not delete my test package under target/generated-sources.
Could you try upgrading to the latest version of this plugin (1.21) or provide more of pom files to see if we can help figure out what the issue is?


docs/index: fix two minor typos

This PR fixes two types on the documentation landing page.

Thanks!


Project Initialized

Fixes #5

[x] The project has been Initialized with React Typescript library.
[x] Rollup has been added as a Bundler with necessary plugins.

Not to be confused with as a duplicate of #2

The package.json file shouldn't have any contributor's repository linked as shown:
https://github.com/leopardslab/react-email/blob/4421c37698af765ef9072c88b0345e3e26c7bd53/package.json#L19
https://github.com/leopardslab/react-email/blob/4421c37698af765ef9072c88b0345e3e26c7bd53/package.json#L25
https://github.com/leopardslab/react-email/blob/4421c37698af765ef9072c88b0345e3e26c7bd53/package.json#L27
Most probably these accidentally slipped in during the project's default initialization with npm.
Special attention to this issue was paid by me while I was setting up the project, which makes this PR different from the one mentioned earlier.

Let’s follow the commonly accepted best practices for the commit messages. Ref here

@PrerakMathur20 Thank you for pointing this out. I will keep this in mind. But I believe in this case if you have suggested me to improve the PR that would be better than making new PR for the same thing as this would be conflicting for the reviewer.


[Do Not Merge][terra-dislosure-manager-docs] Migrate docs to terra-framework-docs

Summary

Migrate docs to terra-framework-docs

Closes #
Deployment Link

https://terra-framework-deployed-pr-#.herokuapp.com/
Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra

closed in https://github.com/cerner/terra-framework/pull/1549


[Task]: JEST unit test coverage of existing and new components in Home Page Experience

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks

Fix the existing failing unit test cases.
Add more test case coverage for existing components.
Add test case coverage to newly created components.

The existing JEST test case and cypress covers the functionality and we don't need new JEST. Fixed the failing test cases and hence closing the ticket


Release pre-trained models on Hugging Face

Hello @piao-0429 🤗
I'm Niels and work as part of the open-source team at Hugging Face. I discovered your work through AK's daily papers: https://huggingface.co/papers/2410.03645. The paper page lets people discuss about your paper and lets them find artifacts about it (your model for instance) you can also claim the paper as yours which will show up on your public profile at HF.
Would you like to host the models you've pre-trained on https://huggingface.co/models? Hosting on Hugging Face will give you more visibility/enable better discoverability. We can add tags in the model cards so that people find the models easier, link it to the paper page, etc.
If you're down, leaving a guide here. If it's a PyTorch model, you can use PyTorchModelHubMixin class which adds from_pretrained and push_to_hub to the model which lets you to upload the model and people to download and use models right away.
If you do not want this and directly want to upload model through UI or however you want, people can also use hf_hub_download.
After uploaded, we can also link the models to the paper page (read here) so people can discover your models.
Kind regards,
Niels

Sounds good. Thanks for the suggestions! We are still working on the pre-trained models.


Fix health daily movement graph again :-)

This just fixes a typo introduced by commit 31fb8f8d02 which causes the movement daily summary graph to freeze on the “Loading…” screen and print an error to the console due to trying to access the field name “hr” when it should be “day”.
While I was at it, I noticed what I thought might have been a potential out-of-bounds subscripting error in the *PerDay() functions. The array size is 31 (indeces 0…30) but the indeces actually returned by readDailySummaries are 1…31. However, it appears that the graph never displays a partial day's data before it rolls over, so maybe this would never be a problem because presumably the 31st day of the month would not display? It's technically inconsistent with the fact that the hourly funcs dimension the array to 24 rather than 23, though, but since I'm not sure, I decided to leave that alone for now.

Argh, Thanks for getting this fix in!
If it's really returning 1..31 then yes, I'd imagine we should be setting array size to 32 (and effectively ignoring index 0) - I can't think that it would break anything to do that...

That seems to be a good idea, and yes, the graph code for per-day data does seem to expect 1…31 and ignore 0. I initially tried adjusting the code to write to indeces 0…30 instead, but that caused the day labels on the graph to be 1 less than they should, and entry 0 was drawn but couldn't be selected. Array size 32 looks like the safest option.


SecretVolumeSource and namespace validations / defaults

We have a couple nits to work out with SecretVolumeSource:

Having to specify the namespace for the target secret is cumbersome for use-cases where you want a pod template to be namespace-agnostic; it would be convenient to default the namespace for the secret to the namespace the pod is created in.
Currently there's no validation to prevent you from referring to a secret in another namespace from a SecretVolumeSource; should there be?  At least until we have a strong cross-namespace story?

I know @liggitt has some opinions about this.

@erictune @thockin @bgrant0607

if namespaces are the ACL boundary, letting a pod reference secrets outside its namespace seems not great, especially since they get resolved by the node, which will likely have broader permissions than the user that created the podspec.

There needs to be a check whether the pod creator is allowed to use the secret.  Suggest filing a new issue for that.
This applies even if we say that you can only reference within the same namespace, because we won't want to give everyone in the namespace access to every secret.

I filed: #4957

It feels a little odd to imply ACL to the secret is based on the pod creator, when the ACL that actually matters is the node's permissions at resolve time. That means if you revoke the pod creator's access to the secret, the pod can keep getting scheduled and resolving the secret just fine.

To be clear, I'm not advocating basing the ACL at secret resolve time on the pod creator. If I have permission in a namespace, create some pods, then leave the company and my permissions get revoked, those pods should continue working for other people in the namespace to manage. I just think it's weird to base the check at pod creation time on the pod creator.

@deads2k

hoping to make this just about whether namespace is required/validated, and make #4957 about checking permission to use a secret.  Copying @liggitt comments there.

I propose that a namespace not be required and that an empty namespace should signify the namespace of the pod.
I started prototyping the above tonight and realized that we will need to expose the pod namespace  in the arguments to volume.Plugin.newBuilder.  It seems like it would be acceptable to widen the arguments to this function to:
newBuilder(spec *api.Volume, pod *api.Pod) (volume.Builder, error)

Any thoughts on that @erictune @liggit @thockin ?

@pmorie I would be able to use that method as well.

I think the pod (and it's annotations) should be visible to volume plugins

do we want to limit this to the pod ObjectMeta at first? pod name, namespace, labels, and annotations  seem reasonable. I wonder what hacks access to the entire pod will lead to (volumes that do different things depending on what other volumes are configured in the pods, etc)

also want to make sure volume builders don't mutate anything in the pod object

A volume in theory has root access to the pod at runtime anyway (the same way in Linux creating bind mounts effectively is root) because you can put untrusted code into the execution path.  Also, a volume plugin runs as root today.
Agree it shouldn't be able to mutate the pod, and there are reasonable limits on what should be visible.  However, at some point the volume will want to see resource limits, or know what mount it will get.  I'd rather not be changing the interface for volume plugins every time that happens.

On Mar 3, 2015, at 10:03 AM, Jordan Liggitt<EMAIL_ADDRESS>wrote:
do we want to limit this to the pod ObjectMeta at first? pod name, namespace, labels, and annotations seem reasonable. I wonder what hacks access to the entire pod will lead to (volumes that do different things depending on what other volumes are configured in the pods, etc)
—
Reply to this email directly or view it on GitHub.

Agree @smarterclayton re: changing interface. Also agree re: mutation.
On Tue, Mar 3, 2015 at 10:12 AM, Clayton Coleman<EMAIL_ADDRESS>wrote:

A volume in theory has root access to the pod at runtime anyway (the same
way in Linux creating bind mounts effectively is root) because you can put
untrusted code into the execution path. Also, a volume plugin runs as root
today.
Agree it shouldn't be able to mutate the pod, and there are reasonable
limits on what should be visible. However, at some point the volume will
want to see resource limits, or know what mount it will get. I'd rather not
be changing the interface for volume plugins every time that happens.

On Mar 3, 2015, at 10:03 AM, Jordan Liggitt<EMAIL_ADDRESS>wrote:
do we want to limit this to the pod ObjectMeta at first? pod name,
namespace, labels, and annotations seem reasonable. I wonder what hacks
access to the entire pod will lead to (volumes that do different things
depending on what other volumes are configured in the pods, etc)
—
Reply to this email directly or view it on GitHub.

—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/4954#issuecomment-76963251
.

@derekwaynecarr what say you?

I think a pod should not be allowed to reference a secret not in its namespace.

Jordan's notes cover a lot of this, but essentially cross namespace references are not required for the vast majority of solutions right now, and we should default to not allowing them for features until we have a concrete need to allow them.
Ie pod templates will not be cross namespace.

On Mar 6, 2015, at 2:11 PM, Derek Carr<EMAIL_ADDRESS>wrote:
I think a pod should not be allowed to reference a secret not in its namespace.
—
Reply to this email directly or view it on GitHub.

agree with @erictune that ability to reference a secret in the same namespace should be resolved in a separate issue and discussion.

@derekwaynecarr have you seen #5122?  @pmorie and I both need to access things in the same namespace from within our volumes.

@erictune @derekwaynecarr @liggitt Once #5122 goes in we can resolve this.  I suggest:
We change the SecretVolumeSource to:
type SecretVolumeSource struct {
  SecretName string
}

Will make a PR for this later tonight if I have time.

Making it a reference isn't terrible (strong typing can be good), it's just we should be doubly certain how it is used.

On Mar 10, 2015, at 2:57 PM, Paul Morie<EMAIL_ADDRESS>wrote:
@erictune @derekwaynecarr @liggitt Once #5122 goes in we can resolve this. I suggest:
We change the SecretVolumeSource to:
type SecretVolumeSource struct {
SecretName string
}
—
Reply to this email directly or view it on GitHub.

@erictune @smarterclayton @derekwaynecarr @liggitt @mfojtik Starting a branch now to use a name instead of an object reference so there will be no need to specify a namespace and secrets will come only from the pod's namespace.
@erictune I'll update the docs you added.

I believe we can close this issue now, since we have refactored SecretVolumeSource to use a simple Name field.


Error while publishing docker image to ecr repository

Creating an issue on our repo to track https://github.com/aws/aws-toolkit-visual-studio/issues/320 on the Visual Studio Toolkit.
This Docker login step is handled within the Deploy Tool (this repo). If there is a bug to fix, the fix would have to originate in this repository.
Pushing the docker image to ECR repository...
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: error storing credentials - err: exit status 1, out: The stub received bad data.``

wanotif1balisoketcom could not be published as ASP.NET Core App to Amazon ECS using AWS Fargate: Failed to login to Docker due to the following reason:
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: error storing credentials - err: exit status 1, out: The stub received bad data.``

wanotif1.balisoket.com failed to publish to AWS.

Version used
UNKNOWN
Operating System and version
Windows 10

Replied to user on the other issue in toolkit repo. Perhaps this needs reproduction with restricted credentials and then deploy using the tool.

Issue with similar error is reported at https://github.com/aws/aws-cli/issues/5636.

Responded to user on https://github.com/aws/aws-toolkit-visual-studio/issues/320#issuecomment-1463034048

Related issue https://github.com/aws/aws-toolkit-visual-studio/issues/320 closed as stale.


Record audio and use speech to text at the same time

Greetings and thank you for this project. Is there any possible way to get the recorded speech in an AudioClip? I would like to use the speech to text functionality but also be able to store the recorded result on the device as a .wav file.
I have tried the steps from the following link https://answers.unity.com/questions/354401/save-audio-to-a-file.html in order to record and save my voice input to my mobile and it is working correctly.
But if I use  Microphone.Start and then call sampleSpeechToText.StartRecording() I receive: Network error and speech to text is not working at all. I suspect it is because of the microphone access but I am stuck.

Same issue. Please Help. :pray:


Can't open folder on Explorer panel

OS/Web Information

Web Browser: Chrome (90.0.4430.212 (Official Build) (x86_64)
Local OS: macOS 11.3.1
Remote OS: macOS 11.3.1
Remote Architecture: macOS 11.3.1
code-server --version: 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005

Steps to Reproduce

Launch Chrome and open code-server URL
Click on "Explorer" icon to open Explorer panel
Click on "Open Folder" button

Expected
Folder selection should appear.
Actual

An error occurs on Web console
Logs

Web console log
ERR command 'workbench.action.files.openFileFolder' not found: Error: command 'workbench.action.files.openFileFolder' not found
    at h._tryExecuteCommand (http://<IP_ADDRESS>:8080/static/387b12ef4ca404ffd39d84834e1f0776e9e3c005/usr/local/Cellar/code-server/3.10.2/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:1735:3364)
    at http://<IP_ADDRESS>:8080/static/387b12ef4ca404ffd39d84834e1f0776e9e3c005/usr/local/Cellar/code-server/3.10.2/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:1735:3245
    at async u.open (http://<IP_ADDRESS>:8080/static/387b12ef4ca404ffd39d84834e1f0776e9e3c005/usr/local/Cellar/code-server/3.10.2/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:628:17651)
    at async a.open (http://<IP_ADDRESS>:8080/static/387b12ef4ca404ffd39d84834e1f0776e9e3c005/usr/local/Cellar/code-server/3.10.2/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:628:19675)

Screenshot

Notes

This issue can be reproduced in VS Code: No

See #2921 explains similar issue on "Open folder" link on Welcome page.

Guessing it's the exact same issue as #2921. I was able to reproduce locally (macOS + Chrome).
Thanks for flagging this @sestegra 🙌
Screenshot
https://user-images.githubusercontent.com/3806031/119382438-dde70600-bc76-11eb-96ba-9fdfb14e6acd.mov


sys/linux: change some sysctl's

It can make sense to allow the fuzzer to switch some sysctl's to get more coverage.
Below are some sysctl's that were recommended for switching. But it makes sense to skim through all sysctl's to gather some other low hanging fruit.
net.ipv4.tcp_timestamps
net.ipv4.tcp_sack
net.ipv4.tcp_window_scaling
net.ipv4.tcp_syncookies
net.ipv4.tcp_default_cong_control

I believe that last one should be:
net.ipv4.tcp_congestion_control

Other interesting sysctl's:
/proc/sys/vm/compact_memory any write triggers memory compaction
/proc/sys/vm/drop_caches 1 drops pagecache, 2 drops slab caches, 3 drops both


[INTEL MKL] Changing import orders to fix bazel test failures with (--config=mkl)

Otherwise, there will be "libiomp5.so" No such file or directory failure.

@caisq  Yes, for now there is another way to fix (while we work on figuring out a more elegant fix).
We want to modify ./configure.py so that it appends the following line to the .tf_configure.bazel_rc
write_to_bazelrc('test:mkl --action_env=LD_LIBRARY_PATH="%s"' % (os.getcwd()+"/bazel-out/k8-opt/bin/_solib_k8/_U@mkl_Ulinux_S_S_Cmkl_Ulibs_Ulinux___Uexternal_Smkl_Ulinux_Slib"))
We wanted to expose the LD_LIBRARY_PATH containing the libiomp5.so to bazel test command.
If the above change is ok, I will create the PR for review.  Otherwise, we will try a third approach. Thanks!

The commit that introduced/affected the libiomp5 library loading issue was https://github.com/tensorflow/tensorflow/commit/98f22653431e67e77e5889198357c152a8a0fae7
where pybind_extension was changed to tf_python_bind_extension.  Do you have any suggestions how to overcome the side-effect of library loading issue? This did not affect "bazel build --config=mkl", but only "bazel test --config=mkl".
Currently our workarounds are to explicitly pass to bazel in one way or another an action_env that has LD_LIBRARY_PATH set to the libimop5.so file.
Thanks for any suggestions in advance!

cc @av8ramit For thoughts. Please see @wei-v-wang 's comments above regarding the build issues the recent pybind11 changes has caused to the INTEL MKL build.

cc @penpornk

Thanks @caisq
In the meantime, do you like the following fix better?
We want to modify ./configure.py so that it appends the following line to the .tf_configure.bazel_rc
write_to_bazelrc('test:mkl --action_env=LD_LIBRARY_PATH="%s"' % (os.getcwd()+"/bazel-out/k8-opt/bin/_solib_k8/_U@mkl_Ulinux_S_S_Cmkl_Ulibs_Ulinux___Uexternal_Smkl_Ulinux_Slib"))
Thanks!

I think fixing the linking options is better.
@gunan, what do you think about the proposed solution in https://github.com/tensorflow/tensorflow/pull/33029#issuecomment-538155728?

Adding @penpornk to Rewiewer list, as she's working with the MKL group more closely.
I'm just providing drive-by comments to code relating to python/debug and core/debug. I don't have informed opinions about the build infrastructure.

Thanks everyone for your review. Our team figured out an elegant fix. Thanks @agramesh1 and @mahmoud-abuzaina !
https://github.com/tensorflow/tensorflow/pull/33058 deprecates this PR. Hence closing.


M3-1628 Create Linode From Backup Maintenance

Purpose
Fix some regressions in the create from backup flow
Notes

First, I added copy to the create from backup form to make clear to the user that the newly provisioned Linode must be manually booted up, as we do not have the ability to do this with APIv4.
I also abstracted the safeGetImageLabel component for some uniformity between how image labels appeared on the LinodeDetail and LinodeLanding pages.

The image label on LinodesDetail is not render blocking and instead has it's own inline spinner. This is a new pattern, so feedback welcome

Finally, I added a linode_create event to the whitelist because the a Linode that is created from a backup would otherwise never update, since there is no linode_boot event

Still a few leftover weirdnesses here: when a Linode is created from backup, after provisioning you get the situation below (temporarily):

The image is reported as No Image until the Linode has booted. Not sure there's anything we can do about that one.
Re: the mini-spinner, the idea works well. Is it possible to adjust the spinner size, or use Loading image... or whatever? It's slightly weird to see the size of the panel adjust every time the tab is loaded.

When creating a new linode from a backup, the provisioning loading indicator completes on the new linode, but the final status returned from GET /v4/linode/instances/{id} is "restoring", and there is no status indicator displayed in the Linodes page view for the new linode. If you attempt to then reboot when there is no status indicator you get 400 on the POST /v4/linode/instances/{id}/reboot call and an error message is displayed. If you navigate away from Linodes view then back,  or refresh the page, you'll then see the powered off red status on the linode created from backup. So maybe there need to be more polling when status is "restoring", or an additional status icon to prevent the reboot error

@pat @nwisnewski Addressed your feedback. There's still some wonkiness due to the fact that there is two events with progress happening at the same time (backups_restore and linode_create), so the component jumps back and forth between showing progress for both.
I'm going to create a ticket to create a pattern for handling simultaneous events with progress


Different authorization to Graph API with OIDC authentication compared to az login with secret

Disclaimer: This is likely not a bug, but resolving this issue would likely result in better documentation for the project.
I'm trying to figure out why my client has different authorization levels depending on which authentication mechanism I'm using to get an access token. I haven't been able to find documentation supporting that these two authentication mechanisms would result in different authorization levels.
In both cases I'm using a service principal and not a managed identity. My goal is to access the Graph API and read secret expiration dates from Github. This works as expected from the Azure CLI (on my local computer with a service principal login), but not using azure/login.
The two methods I'm using for authentication are:

OIDC authentication via Github and azure/login action, which returns a forbidden message when I try to access the Graph API
AZ CLI login using app secret, which works as expected

Access token claims
After I've received an access token in these two systems, the claims typically look like this. I've scrambled identifying information, but if this is relevant it can likely be disclosed:

Azure CLI with secret
azure/login action with OIDC

Note that I'm using the same version of the Azure CLI with both methods.
azure/login configuration
   steps:
      - name: Debug AZ CLI Login
        run: |
          echo "Using AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}" | sed -r 's/(.{0})(.{30})$/\1***/'
          echo "Using AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}" | sed -r 's/(.{0})(.{30})$/\1***/'
          echo "Using AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}" | sed -r 's/(.{0})(.{30})$/\1***/'
      - name: AZ CLI Login
        uses: azure/login@v1
        with:
          client-id: ${{ secrets.AZURE_CLIENT_ID }}
          tenant-id: ${{ secrets.AZURE_TENANT_ID }}
          subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
      - name: Check out main branch
        uses: actions/checkout@v3
        with:
          ref: chore/access-app-registrations-from-github
      - name: Create Pull Request
        shell: bash
        env:
            GITHUB_TOKEN: ${{ github.token }}
        run: |
            az version
            az account get-access-token | jq -R 'split(".") | .[1] | @base64d | fromjson' 2>/dev/null || true
            az rest --method get --url https://graph.microsoft.com/v1.0/applications/${{ secrets.AZURE_CLIENT_ID }} | jq -r .passwordCredentials[].endDate

Forbidden
Using both methods, I'm trying to run this command.
az rest --method get --url https://graph.microsoft.com/v1.0/applications/{AZURE_CLIENT_ID}

The AZURE_CLIENT_ID I pass to the API is the same client id I'm using to authenticate.
This works fine from the Azure CLI when I log in using a secret, as shown below, but not when I'm using an access token from a OIDC (as shown above). In the latter case, I get this error:
ERROR: Forbidden({"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2023-01-10T14:38:23","request-id":"***","client-request-id":"***"}}})

Summary
Why am I not authorized to access the Graph API when I use an OIDC access token from Github, when it works fine with an access token from the Azure CLI (where I authenticated using a secret)?

Hello @v3gard ,
In Application/ServicePrincipal where you created Federated credentials, you need to provide API permissions.
From Application details page, Click on API permissions.
Try adding permissions for Microsoft Graph APIs.

After adding these permission try running the workflow again, it should resolve the above issue.

Doc links for required permissions to use Applications Graph APIs : https://learn.microsoft.com/en-us/graph/api/application-list?view=graph-rest-1.0&tabs=http#permissions

Thanks @kchandra548 for clarifying this. Closing this issue.


[BUG] Unknown Permissions Issue Running Backup

Describe the bug
I had originally configured IntuneCD back in March 2023, I had recently noticed the ADO pipeline was failing due to a permission I had not added (DeviceManagementManagedDevices.ReadWrite.All). I added the permission to the app registration but now I am coming up with a new error that seems to be a permission issue but not too sure.
Error:
File "/home/vsts/.local/bin/IntuneCD-startbackup", line 8, in
sys.exit(start())
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/run_backup.py", line 370, in start
run_backup(args.path, args.output, exclude, token)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/run_backup.py", line 270, in run_backup
results.append(savebackup(path, output, token))
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/backup_remoteAssistancePartner.py", line 28, in savebackup
data = makeapirequest(ENDPOINT, token)
File "/home/vsts/.local/lib/python3.10/site-packages/IntuneCD/graph_request.py", line 84, in makeapirequest
raise Exception(
Exception: ('Request failed with ', 403, ' - ', '{"error":{"code":"Forbidden","message":"{\r\n  \"_version\": 3,\r\n  \"Message\": \"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: cd0c3d1d-00ca-4a00-abdc-e0cf2c43a00e - Url: https://fef.msua05.manage.microsoft.com/RemoteAssistService/StatelessRemoteAssistService/deviceManagement/remoteAssistancePartners?api-version=5022-08-15 - CustomApiErrorPhrase: Forbidden\",\r\n  \"CustomApiErrorPhrase\": \"Forbidden\",\r\n  \"RetryAfter\": null,\r\n  \"ErrorSourceService\": \"\",\r\n  \"HttpHeaders\": \"{}\"\r\n}","innerError":{"date":"2023-06-21T17:29:40","request-id":"cd0c3d1d-00ca-4a00-abdc-e0cf2c43a00e","client-request-id":"cd0c3d1d-00ca-4a00-abdc-e0cf2c43a00e"}}}')
##[error]Bash exited with code '1'.
Current App Registration Permissions:

DeviceManagementConfiguration.ReadWrite.All
DeviceManagementApps.ReadWrite.All
DeviceManagementManagedDevices.ReadWrite.All
DeviceManagementServiceConfig.ReadWrite.All
Groups.Read.All
Policy.Read.All
Policy.ReadWrite.ConditionalAccess

To Reproduce
Within the Pipeline:

script: IntuneCD-startbackup -m 1
env:
REPO_DIR: $(DEVREPO_DIR)
TENANT_NAME: $(DEVTENANT_NAME)
CLIENT_ID: $(DEVCLIENT_ID)
CLIENT_SECRET: $(DEV_SECRET)
displayName: Run IntuneCD backup Dev

Currently ran with a client secret and app registration
Current App Registration Permissions:

DeviceManagementConfiguration.ReadWrite.All
DeviceManagementApps.ReadWrite.All
DeviceManagementManagedDevices.ReadWrite.All
DeviceManagementServiceConfig.ReadWrite.All
Groups.Read.All
Policy.Read.All
Policy.ReadWrite.ConditionalAccess

Expected behavior
Backup works accordingly without issues/errors
Screenshots

Run type (please complete the following information):

Mode: 1
Client Pipeline using Ubuntu-Latest
Version 1.4.9

Hi,
Definitely looks like you have all the required permissions and RemoteAssistancePartner requires the service config permission. Does it fail with that exact error if you re-run the pipeline every time? Can you run from your own terminal locally using the same app reg and see if you get the same result?

Yep I had tried running the backup locally with the app registration and got the same error:

Interesting, can you send a print screen of the api permissions granted on the app reg?

Sure thing, here are is the screenshot of it:

I'm trying to replicate but haven't been able to so far

I will see if it was something with the app registration, going to replace the app registration and create a new one

Do you have any remote assistance partners connected in Intune?

Hi,
we encounter the exact same error. We have a remote assistance partner configured (Teamviewer).

So it seems like there is a different behaviour when there is a partner connected.. the same permissions should still apply though. Is the call working for you as well running it with your account instead of the app reg @Speed1?

Sorry for the late response. I tried to run the application with the -i parameter but I get the following error after web authentication:
IntuneCD-startbackup -m 1 -p intuneBackup -i
Traceback (most recent call last):
  File "/Users/username/src/intuneCD/venv_intuneCD/bin/IntuneCD-startbackup", line 8, in <module>
    sys.exit(start())
             ^^^^^^^
  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 370, in start
    run_backup(args.path, args.output, exclude, token)
  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 165, in run_backup
    results.append(savebackup(path, output, exclude, token))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/backup_appConfiguration.py", line 34, in savebackup
    data = makeapirequest(ENDPOINT, token)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/graph_request.py", line 24, in makeapirequest
    "Authorization": "Bearer {0}".format(token["access_token"]),
                                         ~~~~~^^^^^^^^^^^^^^^^
KeyError: 'access_token'

Do you have a hint?

Sorry for the late response. I tried to run the application with the -i parameter but I get the following error after web authentication:

IntuneCD-startbackup -m 1 -p intuneBackup -i

Traceback (most recent call last):

  File "/Users/username/src/intuneCD/venv_intuneCD/bin/IntuneCD-startbackup", line 8, in <module>

    sys.exit(start())

             ^^^^^^^

  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 370, in start

    run_backup(args.path, args.output, exclude, token)

  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 165, in run_backup

    results.append(savebackup(path, output, exclude, token))

                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/backup_appConfiguration.py", line 34, in savebackup

    data = makeapirequest(ENDPOINT, token)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/graph_request.py", line 24, in makeapirequest

    "Authorization": "Bearer {0}".format(token["access_token"]),

                                         ~~~~~^^^^^^^^^^^^^^^^

KeyError: 'access_token'

Do you have a hint?

Have you configured the app registration per the requirements here? https://github.com/almenscorner/IntuneCD/wiki/Authentication#interactive

I struggling to replicate the remote assistance partner issue as I do not have an environment with TV available. Did you get interactive auth run to work @Speed1?

Hmm, and the redirect URI is set as a "Mobile and desktop applications" type for the platform?

If you mean this flag, yes I tried to enable it but the error was the same.

I mean like this,

Now it works, thanks. I was confused from the phrase If using interactive mode, a Web Redirect URI needs to be added to the app registration with the value http://localhost". Maybe it should be changed in If using interactive mode, a Mobile and desktop applications Redirect URI needs...?
Nevermind, in interactive mode everything works as expected. The RemoteAssistancePartner was backuped

I will make it clearer in the text :)
OK, so there is something wrong, maybe a bug where when application permissions are used to export Remote Assistance partner the permissions are not working. Sounds like something I need to bring to Microsoft..

Hi @Speed1, I have engaged Microsoft in the issue of backing up remote assistance partners. Would you be able to provide me with an ActivityId of one of the failed calls?

@Speed1, are you able to provide me an ActivityID so I can move the discussions forward? 😊

You could also do a new run and provide the ActivityID @Meddell ?

Hi @almenscorner
Sorry, I'm still on holidays. I will provide you on Monday with an activity ID.

Hi @almenscorner here the activityID 97aa6610-5155-4e74-a784-bdc6f7def485 Sorry for the delay...

No worries, thank you very much! :)

Were also impacted by this. We have an active TeamViewer Integration, but as it's useless (for us) I simply disconnected it...

Yeah I'm hearing nothing from MS unfortunately

Were also impacted by this error. We have an active TeamViewer connector. Activity ID: 4d4d0345-789b-4544-bdf0-579364683170

I am getting no responses from MS... Can everyone create a ticket with MS on this so we get some push on it?

I have been able to backup a remote assistance partner with application permissions lately. Is this working for you as well now?

Sorry for the late response as projects have shifted within our team for a long time but yes solution is resolved


asp-append-version="true" not appending version

I pretty sure it is not related to this repo but not sure where to ask.  I upgrading existing project which was based on this template to latest. With .net 1.1.* asp-append-version="true" worked as it suppose but as it is now it does not append version. and it looks like all asp-* tags are ignored and sent to the browser as is. There is also in viewImports @using AspCoreServer cannot be resolved.
Any suggestion would be very helpful. Thanks in advance

See https://github.com/MarkPieszak/aspnetcore-angular2-universal/issues/465 and https://github.com/MarkPieszak/aspnetcore-angular2-universal/pull/470

How would you do for angular .less files?


Non-response dichotomous set groups are not populated with NaNs inste…

…ad of 0s.

This PR resolves #544.


Modify README.md

Signed-off-by: Ronald G. Minnich<EMAIL_ADDRESS>

This is wingo, forked to u-root. I am forking as the author has made it quite clear to me (in a nice way) that he has no interest in helping with further development.

The "This is wingo, forked to u-root. I am forking as the author has made it quite clear to me (in a nice way) that he has no interest in helping with further development." comment would go well in the README with a link to the original project home from which it was forked, to aide in future archaeology.

I agreed with @tpepper.


Escaped Unicode Carriage Return is displayed as syntax error in JSON

Describe the bug
If a string in JSON, for example multiline description contains escape code \u000a they are handled as not allowed line breaks in Insomnias JSON response view, even thought to my knowledge  \u000a is allowed in JSON. Also they are converted as line breaks so that text is actually displayed on new line.
To Reproduce
Steps to reproduce the behavior:
Query an API that return line breaks as  escaped  \u000a
Expected behavior
\u000a should ne allowed like for example \r\n
Screenshots

Desktop (please complete the following information):

OS: macOS 10.15.7 (19H2) Catalina
App Version: Insomnia Core 2020.4.2

This bug still exists


No LGBT palette

I think it's an oversight by the developers (hopefully) that they haven't made an LGBT palette for Slate yet. Maybe have the palette animate through all the colors, or just use rainbow as the primary "color" throughout. I hope you will consider this matter.

I definitely agree. This is a huge mistake, I don't want to have to result to flaming the developers of this theme on Twitter.

I definitely agree. This is a huge mistake, I don't want to have to result to flaming the developers of this theme on Twitter.


Tracking issue for next generation pallet-staking and elections

I have had lots of ideas about how to improve staking, its election algorithm and its configurability lately. Here is a digest and a tracking issue about it.
Current State of Affairs
pallet-staking is currently at its most sophisticated state. Aside from basic staking ops ([un]bonding, setting intentions, maintaining eras and exposures), it handles rewards, slashing, and election, each of which being quite a complex piece of machinery. The problem is, this sophistication also translates to the code being bloated. At the time of this writing, staking's main lib.rs is ~3700 LoC. It worth noting the fact that most of the logic related to slashing and offchain workers are already placed in their own modules. Moreover, it has more than a hundred unit tests, some of which have been reported to be outdated already (https://github.com/paritytech/substrate/issues/5838).
There are a few major problems with this code and how it is evolving.

Sooner or later, this monolith piece of code will accumulate too much technical debt and become increasingly hard to maintain.
Frame currently provides one and only one staking pallet which has all the aforementioned complexities that I named. It would be a major drawback not to have any configurability over this. I really don't think all the chains that get built by substrate need for instance the offchain worker logic of staking. Same could be arguably said about slashing and rewards as well.

That being said, there is a way to switch off the offchain workers, but the code is still very complicated and will be shipped to everyone who doesn't need it. Since there is a runtime check that disables the offchain machinery, the compiler will also have now way to know this and this will increase the wasm size by a small amount.

I am increasingly worried if the unit tests are sound and will prevent all the basic errors, specially at the boundaries of these logical components: i.e. slashing <-> election.

Aside from aesthetic refactoring, we also need a bunch more election algorithms. Indeed, they are no longer Phragmén-related in any sense, hence we also need to clean and rename the sp-phragmen crate into something more general. The current pipeline is:
Offchain: seq_phragmen() -> random iteration of balancing() (aka. equalise()) -> reduce() -> compact() -> submit to pool.
Onchain: un_compact() -> validity_checks()*.
The next generation pipeline will be:
Offchain: balanced_heuristic()* -> reduce() -> compact() -> submit to pool.
Onchain: un_compact() -> validity_checks() -> PJR_check().
We also need a PJR_enabler() implementation, only to be used if we reach the end of the era with no good submissions. In that case we run seq_phragmen() -> PJR_enabler().

Validity checks are those that only make sure a solution is valid, and better than the best solution that we have had before. If we have no solutions for some reason, we accept any piece of sh*t solution as well.
New election scheme developed by Web3 Foundation. see here for more details.

The Plan Ahead
Here are the steps that I think are necessary:

[x] 1. Rename sp_phragmen to something more general, and rename internal functions to reflect this. Now, since the crate is called sp_phragmen, seq_phragmen method is simply called elect(). This is wrong and should ba named seq_phragmen. Later on, we can add other algorithms to this list.

Would also be good to close this now: https://github.com/paritytech/substrate/issues/4593
Pull Request: https://github.com/paritytech/substrate/pull/6245

[x] 2. Implement balanced_heuristic() aka phragmms. This will be first of the few new algorithms that we will need. My initial study concluded that implementing it will not have that much complexity and should be straightforward.

Pull request that adds the implementation https://github.com/paritytech/substrate/pull/6685.

[ ] 3. Clean all staking tests. Before making too much changes, I want to make sure that we have a solid army of unit tests to make sure any further change will not break anything.

Related Issues include but are not limited to: https://github.com/paritytech/substrate/issues/5244,

[x] 4. Introduce ElectionProvider to staking and decouple staking from something that can provide a new set of election result at the end of an era. Something like the below sketch:

// Staking trait
trait Trait {
	type Election: ElectionProvider;
	// ...
}

impl<T: Trait> Module<T> {
	fn new_session(n: BlockNumber) -> Option<T::AccountId> {
		if somehow_time_to_trigger_new_era {
			// prepare inputs
			let validates = <Validators<T>>::iter().collect();
			let nominators = <Nominators<T>>::iter().collect();
			let inp = ElectionInput { validators, nominators };
			let let maybe_new_election_output = T::Election::elect(inp).map(|output| {
				// do some processing with output, such as updating exposures etc.

				// extract only the winners Vec<T::AccountId>
				output.winners
			})
		} else {
			None
		}
	}
}

/// Something that can elect a new set of validators at the end of an era.
trait ElectionProvider {
	/// Elect new validator set.
	// The SUPER TRICKY part here is to chose a worthwhile API for this to cover all the cases.
	// A bonus not to be forgotten is that I want to use this for elections-phragmen pallet as well.
	fn elect(input: ElectionInput) -> Option<ElectionOutput>;
}

// To have an OnChain phragmen only, we just need a simple type to implement this.
struct OnChainSeqPhragmen;

impl ElectionProvider for OnChainSeqPhragmen {
	fn elect(input: ElectionInput) -> Option<ElectionOutput> {
		// just proxy a call to the primitives crates with the elections. No further call should be
		// needed.
	}
}

// To implement the current offchain machinery we will need a new pallet named:
// OffChainElectionProvider.
// /frame/offchain-election-provider/lib.rs

// this module might need to depend on staking to check solutions. We need access to staking
trait Trait: system::Trait /* + staking::Trait */ {
	type ElectionLookahead: Get<Self::BlockNumber>;
	type Call: Dispatchable + From<Call<Self>> + IsSubType<Module<Self>, Self> + Clone;
	type MaxIterations: Get<u32>;
	type MinSolutionScoreBump: Get<Perbill>;
	type UnsignedPriority: Get<TransactionPriority>;
}

// all the storage items that are only for staking
decl_storage! {
	pub SnapshotValidators get(fn snapshot_validators): Option<Vec<T::AccountId>>;
	pub SnapshotNominators get(fn snapshot_nominators): Option<Vec<T::AccountId>>;

	pub QueuedElected get(fn queued_elected): Option<ElectionResult<T::AccountId, BalanceOf<T>>>;
	pub QueuedScore get(fn queued_score): Option<ElectionScore>;

	pub EraElectionStatus get(fn era_election_status): ElectionStatus<T::BlockNumber>;

	pub IsCurrentSessionFinal get(fn is_current_session_final): bool = false;
}

decl_module! {
	fn submit_election_solution()  {}
	fn submit_election_solution_unsigned() {}
}

impl<T: Trait> ElectionProvider for Module<T> {
	fn elect(input: ElectionInput) -> Option<ElectionOutput> {
		// same logic as we have now: return best queued solution, else fallback to onchain staking.
		<QueuedElected<T>>::take().or_else(||
			Self::fallback_seq_phragmen()
		);
	}
}

Notable challenges here are:

The offchain-election-provider module will need to read staking's storage to check values, unless if we pass every data that it needs to it. Not worth IMO.

The offchain-election-provider will need to somehow still force staking to lock itself at some points in time.

[ ] 5. Once this is done, we could optionally investigate stripping down rewards and slashing from staking as well. Ideally, I would like to have a core staking modules that only does, as mentioned above:

[un]bonding, setting intentions, maintaining eras and exposures

And the rest can be plugged to it as additional modules.

I the first 3 steps of the issue are somewhat mandatory to be done very soon in my opinion. The new election is a great security improvement (since we will check for PJR property) and the test cleanup has been due for a long time.
As for the refactor, if it is feasible to do, it would be much better to do it sooner than later, since it will require a complicated migration in storage. Perhaps if it can be done prior to Polkadot's staking enablement, it would be much easier to do the migration while there is still a sudo key at hand. Nonetheless, it is not a big issue as we have to ship this to Kusama first anyhow.

Also a good one to keep in mind: https://github.com/paritytech/substrate/issues/3544

cc @thiolliere @shawntabrizi

As shown in the pictures above, we had some recent discussions about staking and npos with web3 foundation as well. Here I will write a small digest of this event and the conclusions.
The content here will overlap a bit with the original issue comment but I prefer to keep them separate for better visibility. Anyone reading the main issue should also continue until here to get the full picture.
Roadmap
As seen in the roadmap, PhragMMS #6685 is the last implementation that has been added. Aside from that, we have multiple tracks of improvements. The red ones are urgent, blues are sometime soon  and the grey ones are more or less just an idea.
PJR-Check Track
This is the most important track that needs to be worked upon. It needs one PR to add the PJR_check function, potentially also the PJR enabler. This must then be integrated into the current offchain phragmen v1 pipeline and we expect to see no tangible changes here.
This must definitely added prior to the miner track, because we first want to have the PJR check in place for added security and then encourage external submissions.
Miner Track
I am working on this in parallel at the moment and I expect it to be not too much work.

Add MMS algorithm. Hopefully #6685 is merged by then and then this implementation will be rather trivial to add. This is a super slow algorithm that is only sensible to use offchain.
Audit the feasability-check() code.
put some small code on-chain that rewards the solutions.
Document and announce a Rust and a JS miner. Rust will be faster but I expect JS to also be useful.

ElectionProvider Track
This is more of a refactor, and has already been explained above. One change to this is that once staking and eleciton are decoupled, we can refactor the current OffchainElectionProvider to be TwoPhaseOffchainElectionProvier, as explained in the picture above.

Some other low hanging fruit in staking is the following concerns:
Slashing and Self Stake
The current system barely makes any difference between nominator stake and self stake. In fact, the distinction is only made when we build the Exposure where if a backing is coming from self, we add it to the own field rather than adding a new (AccountId, Balance) pair to others, which saves us a meager few bytes. As for slashing, self stake and nominator stake is essentially the same and makes not much difference.
We are looking for a way to allow validators to put forward some risk factor by having more self stake, and slashing first from the self stake and then from the pro-rate stake.
Events that should chill

There's already a rather ongoing dispute about keeping or chilling nominators when a non-zero slash happens here https://github.com/paritytech/substrate/issues/6835.

Now there's another case as well:

There is a bug in the current system around self stake:  you can change it without loosing your nominations.  We actually do need to fix that one sometime.

(cc @burdges)

Finally, it is arguable to request some chilling to happen when other parameters also change. What if a validator suddenly increase their reward precent to 100%, effectively ditching all nominators. Should we inform the nominator in this case?

If we've some suppression scheme, then we could suppress nominations by the factor the reward increased.  This suppression continues until the nominator touches their span.
I've no particular justification for this, except that validators can then only increase their reward percentage when they've enough excess nominations, and nominators need not configure anything.
I'm also afraid that this suppression notion (a) sucks for phragmen, and (b) does not quite match the suppression notion suggested for slashing, but maybe some common ground exists.

I am closing this with pretty much the last update about the state of staking, and will open a new tracking issue for the 2021 and onwards. The last note-worthy events:

We pretty much shipped the whole ElectionProvider track. It allowed us to accept many more nominators, but in turn it also caused us to overlook the memory constrains and run into a few issues. Note worthy PRs:

https://github.com/paritytech/substrate/pull/7910
https://github.com/paritytech/substrate/pull/8113
https://github.com/paritytech/substrate/pull/7909

We launched a simple staking miner:

https://github.com/paritytech/polkadot/pull/3141/files

We added a bunch of misc. addition to make the system fail safe:

https://github.com/paritytech/substrate/pull/8903
https://github.com/paritytech/substrate/pull/8918


WIP refactor into interface, mem impl, ds impl

Draft changelog:

Create interface.go with only abstract interfaces.
Move memory-backed peerstore into mem package.
Move datastore-backed peerstore into ds package.

Eventually this should spin off into a separate top-level package go-libp2p-peerstore-ds.
Perhaps rename the interface + memory package to go-libp2p-**interface**-peerstore.

Refactor tests into abstract test suites according to idiomatic Go, as seen in nettest package. Benefits:

The interface module holds common test cases.
Implementation packages (mem, ds) call common test suites with their concrete addrbook/peerstore.

Normalise naming AddrManager => AddrBook, just like KeyBook.

Consumers should now create peerstores using the constructor function from the appropriate implementation package, e.g. mem.NewPeerstore().

Warning: This introduces a breaking change. Haven't found a way to keep the original top-level NewPeerstore() defaulting to a memory-backed store without introducing a import cycle (peerstore => mem => peerstore) -- which Go grunts upon.

Moved this PR upstream: https://github.com/libp2p/go-libp2p-peerstore/pull/30. Comment there ;-)


How can I test the accuracy of the model for each class

I want to know how accurate is the model for each class, or how can I get the Confusion matrix.Looking forward to getting help

Hello, we haven't exposed the confusion matrix calculation API by now. But you can call it directly.
For example, get the classification score of every sample at first:
python tools/test.py your_config_file your_checkpoint --out result.pkl --out-items class_scores

And then, calculate the confusion matrix:
>>> import mmcv
>>> from mmcls.datasets import build_dataset
>>> from mmcls.core.evaluation import calculate_confusion_matrix
>>> cfg = mmcv.Config.fromfile("your_config_file")
>>> dataset = build_dataset(cfg.data.test)
>>> pred = mmcv.load("./result.pkl")['class_scores']
>>> matrix = calculate_confusion_matrix(result['class_scores'], dataset.get_gt_labels())
>>> print(matrix)
tensor([[47.,  0.,  0.,  ...,  0.,  0.,  0.],
        [ 0., 46.,  0.,  ...,  0.,  0.,  0.],
        [ 0.,  0., 38.,  ...,  0.,  0.,  0.],
        ...,
        [ 0.,  0.,  0.,  ..., 36.,  0.,  0.],
        [ 0.,  0.,  0.,  ...,  0., 24.,  0.],
        [ 0.,  0.,  0.,  ...,  0.,  0., 26.]])
>>> import matplotlib.pyplot as plt
>>> plt.imshow(matrix[:20, :20])   # Visualize the first twenty classes.
>>> plt.show()

Wow, thank you very much

There has an easy method to get each class ap.
1、You can change the file 'mean_ap.py' -> def mAP

2、return ap in the file of test.py,then print the ap array,like
print(f'\apple: {round(aps[0], 2)}')
print(f'banana : {round(aps[1], 2)}')

where is "result"? pls help me


Tomhaile/ch15849/add title and format reporting dispute view

https://app.clubhouse.io/augur/story/15849/add-title-and-format-reporting-dispute-view
a few more tweaks on this. Smash this PR to merge.

Coverage remained the same at 64.509% when pulling bd8461284bbcf2f3e63d060dabb24aff20ef83d1 on tomhaile/ch15849/add-title-and-format-reporting-dispute-view into 51b30853e96e53fec9ed787465e72352687101da on master.

Coverage remained the same at 64.509% when pulling bd8461284bbcf2f3e63d060dabb24aff20ef83d1 on tomhaile/ch15849/add-title-and-format-reporting-dispute-view into 51b30853e96e53fec9ed787465e72352687101da on master.

When ahead and pulled out market heading label into new component. just used the new component in many components as pure. fixed some pagination.

This pull request introduces 2 alerts when merging 1017dfefc6b108480d9f9bf355d18596138bc01a into 4eb82ebbc4f7ded08922b884c602b0f0cdb844c4 - view on LGTM.com
new alerts:

2 for Unused variable, import, function or class

Comment posted by LGTM.com


How are you supposed to deploy in environments with windows and linux?

For windows nodes, the cookbook requires that 2 attributes are set
node.default['push_jobs']['package_url'] = "http://www.example.com/pkgs/opscode-push-jobs-client-windows-1.1.5-1.windows.msi"
node.default['push_jobs']['package_checksum'] = "a-sha256-checksum"

The problem with this design is that most people don't have a role/environment/cookbook that is os specific. That means that linux nodes will get the same attribute as the windows nodes.
The only work around I see is to put the attributes in the "role" since those are usually platform specific. Unfortunately if you have many roles, that is a lot of repeated code.
Purposed solution
Add another level of hierarchy that allows for both windows and linux download urls.
node.default['push_jobs']['windows']['package_url'] = "....."
node.default['push_jobs']['windows']['package_checksum'] = "...."
node.default['push_jobs']['linux']['package_url'] = "....."
node.default['push_jobs']['linux']['package_checksum'] = "...."

For the most part this should be resolved by the use of chef-ingredient, but if not you can just set those attributes in a wrapper cookbook per platform. That should get you what you're looking for. If I could write this all again I certainly would not have done it this way, but that ship has sailed.


CO-1475: add validation of hidden field when default value is missing

https://todos.internet2.edu/browse/CO-1475

Some comments:

ruleName and ruleName2 aren't all that descriptive.
required validation rules should be accompanied by allowEmpty rules (with an inverse value) due to technicalities in the framework. I'm not sure what it means that two rules have opposite required values... (required means "this key must be in the form data", allowEmpty means "the value for this key may be empty".)
Unlocalized strings should not be hardcoded in validation rules. (There are some legacy instances that haven't been clean up yet, but those shouldn't serve as examples.) Instead, the validation rule should return a localized text string on failure. See AppModel::validateInput() for an example.

Also, I'm not sure why this was flagged for v4.0.0 rather than v3.3.2, so this PR should probably be rebased against hotfix-3.3.x.

@boshrin Closing this out as I recreated/rebased it here: https://github.com/Internet2/comanage-registry/pull/182 (including the original commit: https://github.com/Internet2/comanage-registry/pull/182/commits/13adaba258dee8c74ad1141c391da751a7f94d20)

Oops, actually I can't close this @boshrin  if you could do that, thanks!

Closing per @Jeanesily


Download link for TotalSeg V2 dataset

Hi,
We noticed that among the label_map, there is an additional `total_v2' dict. Can you provide a download of this dataset?

I am currently working on this dataset. Will be released in the coming months.