Aid Data Concessions Geocoding Spec

Aid Data have developed a framework for geocoding concessions contracts. It is described as:

a framework for geo-coding location information found in contracts (particularly extractive concession contracts), such as those published by governments, companies, the Extractive Industries Transparency Initiative (EITI), and third-party databases such as www.resourcecontracts.org and www.openlandcontracts.org.

It builds upon AidData’s work in geo-coding 550+ concession licenses in Liberia between 2004-2015 – we leverage lessons learned to construct a standard for geo-coding these contracts that may be adopted by companies, governments, and third-party institutions such as EITI and OCP. Our hope is that such a standard can enable spatial information on open contracts to be transparent, interoperable, and usable by diverse stakeholders.

The framework provides:

two measures for spatial information that may be standardized across contracts and enable effective identification, interpretation, and use of spatial open contracting data.

The goal of this is to:

build upon OCP’s location extension to the OCDS, presenting attributes that can be integrated into the OCDS’s schema and can guide users as to the accuracy, reliability, and utility of the featured spatial information. These measures thus add to, rather than replace, the existing attributes within the location specification of the OCDS.

These two additional measures would apply to polygons represented using the existing location GeoJSON geometry fields.
Source Type
Aid Data propose a measure of the type of source used to provide location information for a given polygon.
They note that:

Companies, governments, and third-party institutions publish varying types of location information in contract databases or cadasters, ranging in precision, comprehensiveness, and ease of use. For example, publishers may publish PDF contracts with unstructured coordinate information found in the form of decimal degrees, UTM coordinates, or survey information. Alternatively, publishers with high technical capacity, among other factors, may publish attributes from contracts in a cadastre with accompanying spatial information, featured in GIS-based platforms. These variations in source type are important for two reasons:

Confidence: They affect a user’s degree of confidence in the accuracy of the location information.
Compliance: They are an indicator of publishers’ standards of reporting and verification.

The suggested values for a sourceType code are:
Therefore, we propose the following measure for each polygon that represents a contract area:

Value
Category

1
The polygon is sourced from spatial (digitized) information published by a company, government, or third-party institution.

2
The polygon is sourced from location information that provides decimal degrees for all vertices of the polygon.

3
The polygon is sourced from location information that provides UTM coordinates for all vertices of the polygon.

4
The polygon is sourced from survey-based coordinates that provide the location of all vertices of the polygon.

5
The polygon is sourced from survey-based coordinates that do not provide the location of all vertices of the polygon.

0
The location information for a given polygon varies across vertices among the categories presented above.

Questions and issues

In OCDS we usually work with camelCase rather than numeric codelist values. Is there a strong reason to prefer numeric values here?

What other standardised methods for polygon provenance exist that we might draw upon?

Where in the location extension structure should this information be held?

Point of Origin
Aid Data propose a code to indicate the nature of the Point of Origin
They state that:

This measure is particularly salient for contracts that feature survey-based coordinates for representing the boundaries of a contract area. The clarity of the point of origin is one of the most significant determinants of the quality, accuracy, and difficulty of geo-coding a contract area. Clear starting points – such as coordinates, place names, or clearly-identifiable landmarks – provide reliable indicators of boundaries and enable effective mapping of subsequent points. By contrast, proximate starting points – including references to nearby towns or villages, or environmental landmarks – heighten the risk that a polygon, although it may capture the general shape and form of a contract area, does not accurately represent the true boundaries of the area. In such a case, each point following the starting point, even if it is accurate, would be systematically misrepresented, skewing the representation of the contract area.
Thus, a binary indicator of the exactness or approximate nature of the starting point is a precondition to gauge the accuracy of survey-based coordinates – if the starting point is incorrect or ambiguous, the rest of the polygon is distorted, often to unknowable degrees.

The proposed values for this field are:

Value
Category

0
Approximate starting point from survey-based coordinates

1
Exact starting point from survey-based coordinates

Questions and issues

If this is a binary field, should we model with a simple exactPointOfOrigin true/false field?

How does this relate to the IATI location exactness concept and codes?

General feedback
General feedback on this proposal is welcome

Hi Tim:
Thanks for your thoughtful questions about the specification - the authors and I have brainstormed initial answers, found below. We look forward to discussing this in greater depth.
Best,
Harsh Desai
============

In OCDS we usually work with camelCase rather than numeric codelist values. Is there a strong reason to prefer numeric values here?

When writing this specification, we referred to the 'precision code' schema in AidData's existing methodology for geocoding aid projects, which assigns numeric codes to different location categories. A numeric code list is not strictly necessary for this specification, especially if the OCDS reverts to camelCase, although we have found numeric values in this case to be more user-friendly and interpretable by academic and policy researchers. A potential alternative schema that incorporates camelCase values could be as follows (note: these values can also be truncated if they are too long for the code, as written):

Value
Category

spatialData
The polygon is sourced from spatial (digitized) information published by a company, government, or third-party institution.

decimalCoordinates
The polygon is sourced from location information that provides decimal degrees for all vertices of the polygon.

utmCoordinates
The polygon is sourced from location information that provides UTM coordinates for all vertices of the polygon.

surveyCoordinatesAll
The polygon is sourced from survey-based coordinates that provide the location of all vertices of the polygon.

surveyCoordinatesVaried
The polygon is sourced from survey-based coordinates that do not provide the location of all vertices of the polygon.

coordinatesVaried
The location information for a given polygon varies across vertices among the categories presented above.

What other standardised methods for polygon provenance exist that we might draw upon?

After searching existing open-source land registries and cadastral databases, we have not encountered other methods of polygon provenance for open contracting data that would serve the same purpose as the proposed property. However, we welcome drawing upon existing initiatives rather than creating an entirely new categorization. We believe that this code list is uniquely important to the challenges of geocoding and standardizing location information reported in contracts (namely, concession contracts, but we believe that it has broader applicability).

Where in the location extension structure should this information be held?

Given the assumptions in the specification (that this property applies to polygons, and that polygons exhibit a one-to-one relationship with a contract ID), we believe that it should be an additional property under 'items'.

If this is a binary field, should we model with a simple exactPointOfOrigin true/false field?

Yes, a true/false field would make sense.

How does this relate to the IATI location exactness concept and codes?

We modeled this property after the IATI geographic exactness field. In IATI, this field provides a meaningful indicator of the accuracy and reliability of a given point (i.e. aid project). We believe that this measure is meaningful for open contracting data in the case of the exactness of the starting point, which affects all subsequent vertices in a polygon. In future extensions, we can consider applying this code to every vertex of a polygon to enable users to gauge the true extent of spatial imprecision inherent in the polygon; however, at this stage, we believe that the proposed property is a meaningful first step.

We had a good call with the AidData team around this (thanks!), and discussed:

Capturing examples of each of the kinds of geodata source above to give publishers and users clearer intuitive sense of them;
Considering making sourceType an array of tags that can be combined to indicate different aspects of the source from which location information is derived;
Considering a sourceURI for linking out to original source information

Next steps are to:

Investigate and test how a tagging approach would work;
Look for precedents from other standards for appropriate tags;
Talk to others collecting geodata on concessions;

Moved https://github.com/open-contracting/ocds-extensions/issues/10


Rollup dim toggle UI

Description
Adds UI to column config on dimension/datetime columns in order to toggle rollup (aka subtotal).
Proposed Changes

Other than obviously setting up and wiring up the buttons, Made dimension fragment copyable, since those fragments can only have one owner it became necessary to clone them in order to add them to the rollup part of the request.

Screenshots

License
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Probably could use some feedback to make the disabled/enabled state more visible.  I didn't want the "off" state to be grey as it looks like the button is disabled (and it's what we use for disabled buttons in the same area). If we think the current colors are fine i'm cool with that too.


Shortcut Guide wont open with remapped Win key

Microsoft PowerToys version
0.35.0
Running as admin

[ ] Yes

Area(s) with issue?
Keyboard Manager, Shortcut Guide
Steps to reproduce
Map Left Alt to Win
Map Win to Left Alt
Hold Left Alt
✔ Expected Behavior
Short cut guide shows up
❌ Actual Behavior
It does not.
Also tried Win key. Same.
Other Software
No response

@unional
If I understand your remapping correct, you create a remapping loop:
Left Alt > Win
Win > Left Alt

I tried to swap the left alt and the windows key.
For that, the setting is working as expected
I tried to hold the actual win key to activate the shortcut guide
Tried the same with the actual left alt

@unional
Does one of these shortcuts after remapping:
Win+F
Left Alt+F

Physical key:
Win+F -> context menu
Left Alt+F -> Feedback Hub

This is because KBM doesn't do 'press and hold' scenarios currently.  It is "you pressed it" right now.  https://github.com/microsoft/PowerToys/issues/3390 is tracking issue.


best way to show column data that is returned during AJAX call after Insert

Currently I have a grid with three columns(ID, State, Date).  ID column inserting value is false as its a primary key in the database.  When I insert I use ajax call in insertItem which returns new ID.  The problem I am having is that the new row is already added to the grid without the ID before I return the ID from ajax call.  I am trying to find out the best way to update the grid and the grid data.  sorry couldnt get fiddle working correctly with my code.  Please help thanks

Hi,
just return whole object {ID,state,Date} not only ID and let jsGrid do the magic

Worked PERFECT! Thank you for the help.


Policheck update - July 12 | Bulk Update

This PR addresses the following Policheck bug:

https://dev.azure.com/msft-skilling/learn-platform-policheck/_workitems/edit/110109

This is a bulk update for policheck bugs
#sign-off


fix default parameter empty list

Checklist
GitHub

[ ] I've given this PR a concise, self-descriptive, and meaningful title
[ ] I've linked relevant issues in the PR body
[ ] I've applied the relevant labels to this PR
[ ] I've assigned a reviewer

PR contents

[ ] I've consulted ivadomed's internal developer documentation to ensure my contribution is in line with any relevant design decisions
[ ] I've added relevant tests for my contribution
[ ] I've updated the relevant documentation for my changes, including argparse descriptions, docstrings, and ReadTheDocs tutorial pages

Description

Linked issues

resolves #902

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

6 of 11 (54.55%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.04%) to 70.065%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

ivadomed/utils.py
2
3
66.67%

ivadomed/loader/mri2d_segmentation_dataset.py
3
5
60.0%

ivadomed/scripts/visualize_and_compare_testing_models.py
1
3
33.33%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
4117

Relevant Lines:
5876

💛  - Coveralls


Make AuthToken model pluggable [WIP]

Partially fixes https://github.com/James1345/django-rest-knox/issues/159.
This is a proof of concept that the feature is not that complex and can be added with minimal breaking changes. Would like to receive comments on that before investing more time.

Hi! Thanks a lot for this. The history seems to be a bit messed up. Could you rebase and make sure only your commits appear. I’ll try to follow up with a review ASAP once that’s done.

@johnraz done

it seems that develop branch doesn't contain all the master commits so pr includes a couple of comments from master

You should base your work on develop, not master.

@alex-yobota sorry but my original plan is different from what maintainers want:

Yes sure but still I was challenging the fact that we could make this even more flexible in the case someone needs it. If the point is to make the model pluggable, I would probably go for something fully pluggable unless it's proven too complex.

It's quite reasonable decision to make it fully customizable but I don't have resources to do that now. If I will have new projects with similar requirements in near future I will implement this.

@alex-yobota sorry but my original plan is different from what maintainers want:

Yes sure but still I was challenging the fact that we could make this even more flexible in the case someone needs it. If the point is to make the model pluggable, I would probably go for something fully pluggable unless it's proven too complex.

It's quite reasonable decision to make it fully customizable but I don't have resources to do that now. If I will have new projects with similar requirements in near future I will implement this.

Cool, thanks for trying anyway :)

As this PR is quite old and it was decided to make this more pluggable I'm going to close for now.


"Insert space after table/column name" does not respect existing spaces after the cursor.

More of an annoyance that a bug about the "Insert space after table/column name" feature.

When editing an existing SQL query to add an extra column in the SELECT for example, when hitting ENTER to accept the suggestion, the cursor moves to the left of the next word (e.g. FROM) instead of just pushing everything "forward".
This causes a problem with auto-completion when trying to add multiple columns (see gif) as the auto-complete doesn't work because the cursor is now on the next word.

Unchecking the option fixes that but also introduces other annoyances.
System information:

Operating system: Windows 10 Pro, v10.0.19042 Build 19042
DBeaver version: Version <IP_ADDRESS>109181446
DB Connection: PostgreSQL

thanks for the report

Reopened due to found bug with selection of line break characters

Verified


BigQuery Cardano Dataset stuck at 2023-06

Not sure if this is an issue and if the Dataset maintenance should be your responsibility (or the community's).
The Dataset for Cardano unfortunately has data only up to 2023-06.

Thanks for bringing this to our attention, we might update the sample data files at some point to bring them up to date. However, please note that, as stated in the documentation, they are just sample files, so we do not promise that they will be updated regularly. We have plans to change the way we retrieve block data, but for now if anyone needs to run the tool with up-to-date data, we would encourage them to get the data directly from BigQuery, using the queries described here.


support for golden-ratio active pane resizing

@bpasero's comment seems untrue - supporting resizing through commands and grid layout is not the same thing as supporting the "golden-ratio" feature as implemented in vim and atom
I'm not particularly experienced with vscode internals but digging through the API docs I didn't see a way to trigger a resize on pane activation the way geksilla's plugin does. If that's true, the request for vscode to support triggering an action based on editor pane activation seems valid and outstanding.

This can be done via commands and grid layout, see https://code.visualstudio.com/updates/v1_25#_new-layouteditorgroups-command

Originally posted by @bpasero in https://github.com/microsoft/vscode/issues/62189#issuecomment-434570519

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Performance Improve - Remove unused JavaScript

Description
Review and remove unused javascript is our site to improve site performance.
Acceptance Criteria
Improve site performance. Increase lighthouse test performance score.
Related Features

Ticket: #90

Reference

Guide on Remove unused JavaScript
Lighthouse Audit Tool

@Hellrungj I would like to work on this issue. Can you assign this to me?

@Hellrungj I would like to work on this issue. Can you assign this to me?

Sure.


Markdown Monster <IP_ADDRESS>

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.9 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

WestWind.MarkdownMonster ≠ Westwind.MarkdownMonster
Where? I don't see the latter anywhere and the former matches the company.product and base company folder. (I didn't set up the original entries). I would much prefer Westwind.MarkdownMonster but that's not what it's been.

Is there an example of a 1.9 schema? Even the latst MS releases use old schemas (Terminal is on 1.2?)

WestWind.MarkdownMonster ≠ Westwind.MarkdownMonster
Where? I don't see the latter anywhere and the former matches the company.product and base company folder. (I didn't set up the original entries). I would much prefer Westwind.MarkdownMonster but that's not what it's been.

Is there an example of a 1.9 schema? Even the latst MS releases use old schemas (Terminal is on 1.2?)
And schema validation nor local install has found none of these issues.

The manifest version 1.9 documentation: https://github.com/microsoft/winget-pkgs/tree/master/doc/manifest/schema/1.9.0
A very simple modification:
Change yaml-language-server in line 2 of the manifest and 1.6.0 to 1.9.0 in the last line ManifestVersion entry.


On Windows, the Tatin client should not depend on the .NET Framework

Currently BuildPackage throws an error when Dyalog is configured to use .NET Core rather than .NET Framework because it relies on .NET Framework for zipping.
The zipping tool used should be able to use both versions of .NET in order to get rid of this dependency.

Done with 0.103.1


Unable to change text attributes in .popupBarCustomizer

Describe the Bug
The documentation states that we can use the .popupBarCustomizer modifier to change the appearance of the title and subtitle, but that does not seem to actually work since the Swift compiler throws an error stating that we can not assign a value of type [AnyHashable: NSObject] to type AttributeContainer.
I am specifically trying to change the color
To Reproduce
Steps to reproduce the behavior:

Modify PlayerView in the MusicScene and add the following (from the README)

     .popupBarCustomizer { popupBar in
      let paragraphStyle = NSMutableParagraphStyle()
      paragraphStyle.alignment = .right
      paragraphStyle.lineBreakMode = .byTruncatingTail

      popupBar.standardAppearance.backgroundEffect = UIBlurEffect(style: .dark)
      popupBar.standardAppearance.titleTextAttributes = [ .paragraphStyle: paragraphStyle, .font: UIFont(name: "Chalkduster", size: 14)!, .foregroundColor: UIColor.yellow ]
      popupBar.standardAppearance.subtitleTextAttributes = [ .paragraphStyle: paragraphStyle, .font: UIFont(name: "Chalkduster", size: 12)!, .foregroundColor: UIColor.green ]

      popupBar.tintColor = .yellow
    }

Build the project.
We get the error: "Cannot assign value of type '[AnyHashable : NSObject]' to type 'AttributeContainer'"

Expected Behavior
To be able to set the titleTextAttributes and subTitleTextAttributes
Screenshots
These are the errors above and where I put the customizer

Additional Context
I also tried to use a typed dictionary, but it leads to the same error

Since it clearly does not accept a dictionary I also tried using an AttributeContainer, but then I get "Undefined symbol: (extension in LNPopupController):__C.LNPopupBarAppearance.titleTextAttributes.setter : Foundation.AttributeContainer?
"

As a final attempt, I also tried using the .popupBarTitleTextAttributes modifier, but although that does build and run it does not actually change the font or text color

Please let me know if I am doing something incorrect here.

Something is really wrong in your setup (as seen with the “Undefined symbol” error). Could you please try cloning this repo and running the demo project? In settings, enable Customization and see if that works. Thanks

Thanks for the quick reply, I really appreciate that. I'd also like to take the opportunity to say that LNPopupUI and LNPopupController is truly amazing work.
I'm primarily interested in being able to change the font color in .popupBarCustomizer so that I can use the floating version of the popupBar since using a custom view with .popupBarCustomView() does not seem to support the floating presentation.
Turning on customizations in the demo app does indeed change the presentation of the bar (although I notice that Marquee seem to stop working).
I've forked this repo and added 2 branches so that you can see the "Undefined Symbol" error is reproducible in your environment.
You can find the fork at https://github.com/HvrByte/LNPopupUI/tree/master
There are 2 branches:

https://github.com/HvrByte/LNPopupUI/tree/popupBarCustomizer_Readme simply adds the README code for changing the font
https://github.com/HvrByte/LNPopupUI/tree/popupBarCustomizer_AttributeContainer tries to use an AttributeContainer to make the font changes which leads to the "Undefined Symbol" error

PS: in the second branch, if you try to pass the attributes dictionary, you will get Cannot assign value of type '[NSAttributedString.Key : Any]' to type 'AttributeContainer'

I dug through the demo code a bit more and got it working in this branch: https://github.com/HvrByte/LNPopupUI/tree/popupBarTextAttribute_modifiers
Instead of using the code in the README or trying to use an AttributeContainer the way to make it work is to use .popupBarTitleTextAttributes() and .popupBarSubtitleTextAttributes() and change the font that way.
Since there is a supported way to do it, I think we can close this bug and I will issue a PR to update the documentation to clarify that those 2 modifiers should be used to change the the font/color/paragraph properties.

Issued pull request #44 to update the README

Reproduced the issue, looking into it. This shouldn’t happen.

The pure Objective C works as expected:
let attributes: [NSAttributedString.Key: Any] = [
	.paragraphStyle: paragraphStyle,
	.font: UIFont(name: "Chalkduster", size: 14)!,
	.foregroundColor: UIColor.yellow
]

popupBar.standardAppearance.__titleTextAttributes = attributes

So somehow the Swift overlay in LNPopupController is incorrectly linked.

Huh, this looks like a bug in Xcode compiler/linker. Changing the target to be a static framework (instead of dynamic), it compiles and links as expected. Investigating.

Importing LNPopupController like so:
.product(name: "LNPopupController-Static", package: "LNPopupController”)

seems to solve the issue for me.

I’ll create a release for you to test.

Please try with 1.7.5.

Seems that I can now use the following to set the text attributes in 1.7.5:
    .popupBarCustomizer { popupBar in
      let paragraphStyle = NSMutableParagraphStyle()
      paragraphStyle.alignment = .right
      paragraphStyle.lineBreakMode = .byTruncatingTail

      popupBar.standardAppearance.backgroundEffect = UIBlurEffect(style: .dark)

      popupBar.standardAppearance.titleTextAttributes = AttributeContainer([
        .paragraphStyle: paragraphStyle,
        .font: UIFont(name: "Chalkduster", size: 14)!,
        .foregroundColor: UIColor.yellow
      ])
      popupBar.standardAppearance.subtitleTextAttributes = AttributeContainer([
        .paragraphStyle: paragraphStyle,
        .font: UIFont(name: "Chalkduster", size: 14)!,
        .foregroundColor: UIColor.yellow
      ])

      popupBar.tintColor = .yellow
    }

I will go ahead and close this issue.
Thank you, really appreciate it

Great.
Please note the nuanced differences between popupBar.standardAppearance.titleTextAttributes, which expects UIKit scoped attributes only, and popupBarTitleTextAttributes(), which also supports SwiftUI scoped attributes.

Investigating broken marquee in LNPopupUI when customization is enabled here:
https://github.com/LeoNatan/LNPopupUI/issues/45


Make a setupFunction return an object

See #10 for previous communication. Solves #7.
This change requires a setup function to return an object containing the properties filter and channelOptions. Both are optional, so no breaking changes in that regard. However, there is no backwards compatibility for the "old style" function-type return value, so existing usages need to be updated to return an object with filter property.
Code example taken from #10, adapted to object-style return value:
{
    setupFunctions: {
        // Taken from GitHunt.
        commentAdded: (options, args) => ({
            commentAdded: {
                filter: comment => comment.repository_name === args.repoFullName
            }
        }),
        // Proposed structure.
        commentUpdated: (options, args) => ({
            commentUpdated: {
                // These options could be passed to PubSub.
                channelOptions: {
                    repoFullName: args.repoFullName
                },
                // Technically redundant since we specified repoFullName above and thus should
                // only receive relevant messages. However, it's here for completeness' sake
                filter: comment => comment.repository_name === args.repoFullName
            }
        })
    }
}

Note that I added a dev dependency to sinon to be able to assert channelOptions are passed into pubsub.subscribe.

@quintstoffers thanks!
@davidyaha do you think you could review this PR?

Will do.

Oh also, it might be a good idea to create an inteface for the returned object on the trigger function.
something like:
interface TriggerConfig {
  channelOptions?: Object
  filter?: Function
}

@davidyaha: Thanks for your input! I removed the unnecessary variable and defined setupFunctions and children using Interfaces.

You'r very welcome! I saw you decided not to use the es6 style default values, is it on purpose?
Thanks for your work so far! I would like to use the improved API :)

I'm not a big fan of the default values when destructuring because I often find the default values are too complex and I end up with a lump of hard to read code. I didn't give it a good thought for that reason, but it does look perfectly fin:
// Deconstruct the trigger options and set any defaults
const {
    channelOptions = {},
    filter = () => true,
} = triggerMap[triggerName];

As a bonus the variables can now be const, which is nice. I'll update the PR in a minute!

@helfer: I think were done here 😄 .

Thanks a lot! @quintstoffers @davidyaha

FYI, GitHunt-API (the best way to understand how to use Apollo and graphql-subscriptions) has not yet been updated with this API change.


vscode token cannot overwrite existing file

Does this issue occur when all extensions are disabled?: No, I just enable Remote-SSH to connect to a remote server.

VS Code Version: 1.64.2
OS Version: macOS Monterey 12.2.1 (21D62)

Steps to Reproduce:

connect with a remote server.

Failure Log:
[22:29:33.839] Log Level: 2
[22:29:33.840]<EMAIL_ADDRESS>[22:29:33.840] darwin x64
[22:29:33.843] SSH Resolver called for "ssh-remote+remote-server-name-1", attempt 1
[22:29:33.844] "remote.SSH.useLocalServer": true
[22:29:33.844] "remote.SSH.path": undefined
[22:29:33.844] "remote.SSH.configFile": undefined
[22:29:33.844] "remote.SSH.useFlock": true
[22:29:33.844] "remote.SSH.lockfilesInTmp": false
[22:29:33.844] "remote.SSH.localServerDownload": auto
[22:29:33.844] "remote.SSH.remoteServerListenOnSocket": false
[22:29:33.844] "remote.SSH.showLoginTerminal": true
[22:29:33.845] "remote.SSH.defaultExtensions": []
[22:29:33.845] "remote.SSH.loglevel": 2
[22:29:33.845] "remote.SSH.enableDynamicForwarding": false
[22:29:33.845] "remote.SSH.enableRemoteCommand": false
[22:29:33.845] "remote.SSH.serverPickPortsFromRange": {}
[22:29:33.845] "remote.SSH.serverInstallPath": {}
[22:29:33.855] SSH Resolver called for host: remote-server-name-1
[22:29:33.855] Setting up SSH remote "remote-server-name-1"
[22:29:33.858] Acquiring local install lock: /var/folders/24/jwj8bhzd0w93k16zvr6fkvxc0000gn/T/vscode-remote-ssh-466bc7f5-install.lock
[22:29:33.860] Looking for existing server data file at /Users/chuachen/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-466bc7f5-f80445acd5a3dadef24aa209168452a3d97cc326-0.76.1/data.json
[22:29:33.861] Found local server running: {"remoteListeningOn":{"port":34412},"osReleaseId":"rhel","arch":"x86_64","webUiAccessToken":"","tmpDir":"/run/user/615227","platform":"linux","connectionToken":"1aa1a1a1-11aa-1a1a-a111-aa1aaa11a11a","pid":15801,"ipcHandlePath":"/var/folders/24/jwj8bhzd0w93k16zvr6fkvxc0000gn/T/vscode-ssh-askpass-9cc4c211f38deb0579f9d469e28103e74fbc129a.sock","socksPort":57007,"startupTime":1646835638490}
[22:29:33.864] Server delay-shutdown request failed: connect ECONNREFUSED /var/folders/24/jwj8bhzd0w93k16zvr6fkvxc0000gn/T/vscode-ssh-askpass-9cc4c211f38deb0579f9d469e28103e74fbc129a.sock
[22:29:33.864] Existing server's health check failed, will start a new one
[22:29:33.864] Using commit id "f80445acd5a3dadef24aa209168452a3d97cc326" and quality "stable" for server
[22:29:33.867] Install and start server if needed
[22:29:33.869] PATH: /anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/opt/X11/bin
[22:29:33.869] Checking ssh with "ssh -V"
[22:29:33.876] > OpenSSH_8.6p1, LibreSSL 2.8.3
[22:29:33.878] askpass server listening on /var/folders/24/jwj8bhzd0w93k16zvr6fkvxc0000gn/T/vscode-ssh-askpass-e44141fcbbf0c3bb757fd7f91a842d799c7cb6af.sock
[22:29:33.879] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/24/jwj8bhzd0w93k16zvr6fkvxc0000gn/T/vscode-ssh-askpass-3446218408c85000adc2a3a91116492562946f1b.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","57280","-o","ConnectTimeout=15","remote-server-name-1"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/chuachen/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-466bc7f5-f80445acd5a3dadef24aa209168452a3d97cc326-0.76.1/data.json"}
[22:29:33.879] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.Y9q0N7bpAZ/Listeners","SHELL":"/bin/bash","DISPLAY":"/private/tmp/com.apple.launchd.uyP4ANk79T/org.macosforge.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/chuachen/.vscode/extensions/ms-vscode-remote.remote-ssh-0.76.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Users/chuachen/Desktop/other/Visual Studio Code.app/Contents/MacOS/Electron","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/chuachen/.vscode/extensions/ms-vscode-remote.remote-ssh-0.76.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/24/jwj8bhzd0w93k16zvr6fkvxc0000gn/T/vscode-ssh-askpass-e44141fcbbf0c3bb757fd7f91a842d799c7cb6af.sock"}
[22:29:33.880] Spawned 17813
[22:29:34.003] > local-server-1> Spawned ssh, pid=17817
[22:29:34.006] stderr> OpenSSH_8.6p1, LibreSSL 2.8.3
[22:29:35.655] stderr> Authenticated to remote-server-name-1 ([<IP_ADDRESS>]:22).
[22:29:36.357] > ready: 58c9ab92
[22:29:36.539] > Linux 3.10
[22:29:36.539] Platform: linux
[22:29:36.705] > /bin/bash
[22:29:36.709] Shell: bash
[22:29:36.894] > 58c9aab79825: running
[22:29:36.920] > Acquiring lock on /users/chuachen/.vscode-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326/vscode-remote-lock.chuachen.f80445acd5a3dadef24aa209168452a3d97cc326
[22:29:36.923] > Found existing installation at /users/chuachen/.vscode-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326...

Checking /users/chuachen/.vscode-server/.f80445acd5a3dadef24aa209168452a3d97cc326.log and /users/chuachen/.vscode-server/.f80445acd5a3dadef24aa209168452a3d97cc326.pid for a running server
[22:29:36.924] > Looking for server with pid: 20220
[22:29:36.953] > Starting server with command... /users/chuachen/.vscode-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326/bin/code-server --start-server --host=<IP_ADDRESS> --accept-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level all   &> "/users/chuachen/.vscode-server/.f80445acd5a3dadef24aa209168452a3d97cc326.log" < /dev/null
printenv:
[22:29:36.960] > Removing old logfile at /users/chuachen/.vscode-server/.f80445acd5a3dadef24aa209168452a3d97cc326.log
[22:29:36.961] stderr> -bash: line 497: /users/chuachen/.vscode-server/.f80445acd5a3dadef24aa209168452a3d97cc326.token: cannot overwrite existing file
[22:29:37.062] > Spawned remote server: 44271
Waiting for server log...
Waiting for server log...
Waiting for server log...
[22:29:37.062] stderr> -bash: line 513: /users/chuachen/.vscode-server/.f80445acd5a3dadef24aa209168452a3d97cc326.pid: cannot overwrite existing file
[22:29:37.085] >
*

Reminder: You may only use this software with Visual Studio family products,
as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)

58c9aab79825: start
webUiAccessToken====
listeningOn==41368==
osReleaseId==rhel==
arch==x86_64==
tmpDir==/run/user/615227==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==117==
connectionToken==a1111111-a111-111a-aaa1-a1111a1aaaaa==
58c9aab79825: end
[22:29:37.086] Received install output:
webUiAccessToken====
listeningOn==41368==
osReleaseId==rhel==
arch==x86_64==
tmpDir==/run/user/615227==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime==117==
connectionToken==a1111111-a111-111a-aaa1-a1111a1aaaaa==

[22:29:37.086] Remote server is listening on 41368
[22:29:37.086] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":41368},"osReleaseId":"rhel","arch":"x86_64","webUiAccessToken":"","tmpDir":"/run/user/615227","platform":"linux","connectionToken":"a1111111-a111-111a-aaa1-a1111a1aaaaa"},"serverStartTime":117,"installUnpackCode":""}
[22:29:37.087] Persisting server connection details to /Users/chuachen/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-466bc7f5-f80445acd5a3dadef24aa209168452a3d97cc326-0.76.1/data.json
[22:29:37.089] Starting forwarding server. localPort 57284 -> socksPort 57280 -> remotePort 41368
[22:29:37.090] Forwarding server listening on 57284
[22:29:37.090] Waiting for ssh tunnel to be ready
[22:29:37.093] Tunneled 41368 to local port 57284
[22:29:37.093] Resolved "ssh-remote+remote-server-name-1" to "<IP_ADDRESS>:57284"
[22:29:37.094] [Forwarding server 57284] Got connection 0
[22:29:37.098] ------
[22:29:37.114] [Forwarding server 57284] Got connection 1
[22:29:37.266] Failed to set up socket for dynamic port forward to remote port 41368: Socket closed. Is the remote port correct?
[22:29:37.284] Failed to set up socket for dynamic port forward to remote port 41368: Socket closed. Is the remote port correct?

if removed the .vscode-server in the remote server still can NOT work.
[13:33:18.495] stderr> rm: cannot remove '/users/chuachen/.vscode-server/.c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.token': No such file or directory
[13:33:18.495] stderr> -bash: line 497: /users/chuachen/.vscode-server/.c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.token: cannot overwrite existing file
[13:33:18.496] > Waiting for server log...
[13:33:18.653] > Waiting for server log...
-rw-r--r--  1 username eng  497 Mar 10 21:33 .c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.log
-rw-r--r--  1 username eng    6 Mar 10 21:33 .c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.pid
-rwx------  1 username eng    0 Mar 10 21:33 .c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.token

if use chmod change all to "rwxrwxrwx", it still does not work
[14:15:53.396] > Removing old logfile at /users/chuachen/.vscode-server/.c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.log
[14:15:53.397] stderr> -bash: line 497: /users/chuachen/.vscode-server/.c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.token: cannot overwrite existing file
[14:15:53.521] > Spawned remote server: 99366

Waiting for server log...
Waiting for server log...

-rwxrwxrwx  1 chuachen eng  497 Mar 10 21:33 .c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.log
-rwxrwxrwx  1 chuachen eng    6 Mar 10 21:33 .c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.pid
-rwx-wx-wx  1 chuachen eng    0 Mar 10 21:33 .c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1.token


Publish cppbinder as a Python package

Build manually: https://github.com/haiiliin/binder/commit/3f311057474fb6543b19e5774e7c2ffa40849253#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711


Updated README.md

PR Description 📜
Fully new version of readme.md
Fixes #39

Mark the task you have completed ✅

[X] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[X] I have performed a self-review of my own code or work.
[X] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE

Thank you soo much for contributing to our repository 💗

@Manaregr8 please add gssoc label and level label in this PR
I am working under gssoc


cleanup and rebrand

Problems:

asset path is integritee-network/crowdloan that's why github pages wont work as the url is wrong
loading page fails with Unhandled Rejection (ReferenceError): api is not defined (master works but erroneous file is untouched

@anizeani
https://github.com/integritee-network/crowdloan/blob/2510e3f5646cf723cb2326adb13d442e073f2a52/src/Crowdloan.js#L24-L34
this loock very hacky and should be replaced with toHuman after converting raised to a balance type. Or if not, please just report KSM without k/M/G. Might be more understandable for some users anyway


C# Demo Build Issues - Consistent Versions of Dependencies?

I really struggled to get the C# demos working because I think it's far from clear what the inter-relationship between the published versions of BulletSharp and the dependencies are. Please note that no criticism is implied - this is a fantastic project. In case anyone else comes this route, I got the C# demos from ~\AndresTraks-BulletSharp-c277666\demos\SharpDX to build and run against the pre-built binary 64-bit version of BulletSharp.dll version 2.87 from https://andrestraks.github.io/BulletSharp which has a hard dependency on SharpDX 4.1 (not the more recent stable version 4.2). 4.1 is available via Nuget. Beware ...trying to use the BulletSharp from Nuget threw up a number of compiler issues with the DemoFramework code.

No, that's fair :). BulletSharp and the demos were originally written before NuGet was a thing, so it's all a bit messy.
The version of BulletSharp that is up on NuGet is actually this one:
https://github.com/AndresTraks/BulletSharpPInvoke/
P/Invoke is a newer method of interop that provides compatibility with Unix-based systems without sacrificing too much performance over C++/CLI. There's more reasons to choose one or the other, but I would generally recommend P/Invoke for all new projects. The C++/CLI and P/Invoke versions are very similar, but not exactly compatible, because they have had different design goals.
I haven't had the time to make it all clear in the documentation, but eventually I'd like to:

retire the C++/CLI version of BulletSharp and not tie BulletSharp to any specific graphics libraries (there is already the generic version in C++/CLI),
move everything to .NET Core,
put BulletSharp and the demos into a single solution, so that the dependencies are clear,
rewrite the demos to fully make use of NuGet (except for linking to BulletSharp itself, because that would make development difficult).


Async errors from sync tests

We recently encountered an issue where a test was written synchronously (no done argument) but failed to return a promise.
The test in question was failing an assertion, but after its success was already reported. The failure was tallied, and so we saw one failure reported in the UI, but had no connection between that number and the source of the failure.
This change first exposes a wasAlreadyDone property on the test instance, and second, re-displays the failing test in the html reporter when the runner emits a fail event.

Appreciate you proposing this fix! I'm gonna close this for now though, as I believe the latest release handles things as you intended :)
$ cat example.js
it('should be true', function () {
  setTimeout(function () {
    throw new Error('oops');
  }, 10);
});

it('delay...', function(done) {
  setTimeout(done, 100);
});

$ ./bin/mocha example.js

  ․․

  1 passing (26ms)
  1 failing

  1)  delay...:
     Uncaught Error: oops
      at null._onTimeout (example.js:3:11)

Of course, it gets tied to the wrong test in this example, though the stack trace tells you where to really look. Fixing that is probably outside the scope of this PR.
Thanks again!

Thanks for following up @danielstjules

No problem :) Glad it works


Filter function restored on Bodies and Users

Making use of Laravel, filters can now be added to any eloquent filter related to bodies and or users.
Example URL:
localhost/api/getUsers?body_name=enschede&name=derk

Can you also do ?anything=derk enschede ? That would be a usecase for the view...

@blacksph3re Do you mean that you want to search on any field, containing either 'derk' or 'enschede'?

Currently it really is set up as a filter, meaning this would require every field it searches for to contain the anything argument. Although I do agree this would be really cool to have, I think we can postpone this for a bit later.

As your first comment suggests. Do you know those modern "search for anything" inputs? Like what elastic search offeres it is quite handy if you can just enter anything and you don't have to specify a field. Imho that could already make the filtering unnecessary for the first version

I think I understand what you mean, however, this would require a bit of a different backend approach. Does not mean that these filterings could be really useful in the future (backend and frontend!).

Mh, I designed basically all of the search fields to be such fields and sometimes wouldn't even offer the possibility for more detailed filtering but ok, then I would at first shortcut those fields to search the name until we change it to anything

We should probably look into this:
https://laravel.com/docs/5.4/scout

I checked and I only found the usage of raw SQL for string management (making things lowercase, concatenating). I can check again if Laravel offers this, otherwise, in my opinion, these are simple enough raw queries that it is acceptable.

Okay I also googled it, apparently eloquent doesn't offer any abstraction for this... strange framework


Support chatops-style release skipping with PRs

Relates to #24
Summary
Add support for a way to tell the /pr variant of the Action to not suggest updating a tool to a given version. In particular, when it creates a PR to upgrade a tool to a certain version, it should be possible to prevent the Action from updating that tool to that version in the future without having to change the configuration in the workflow.
A classic chatops way of achieve thins would be support for a comment like @tool-version-update-action-bot ignore this version (which would then close the PR and prevent it from opening the same PR in the future). Though I would be okay with that, it would probably be significantly easier to support a workflow where users can just close the PR and then it won't be recreated (in which case those instructions should be added to the default PR description).

It might make sense to use a similar approach as suggested here in the Dependabot docs, specifically:

You can check whether a repository has stored ignore preferences by searching the repository for "@dependabot ignore" in:comments, [...]


Plot Accuracy and losss curve for train and validation

@kenshohara
Hi
Thank you for sharing your code.
I just run the code for UCF101 dataset. Is there any function that plots the results over epoch for train and validation set?

@kenshohara
Hi
Thank you for sharing your code.
I just run the code for UCF101 dataset. Is there any function that plots the results over epoch for train and validation set?

Hey, did you find out any solution for it?


Generate doc for one contract

Right now, in my case I need to generate doc for only one certain contract from folder with many other contracts. Is it possible to generate doc.md for onecontract.sol?

It's currently not possible, but it should be. I recently opened https://github.com/OpenZeppelin/solidity-docgen/issues/85 for it. Closing this in favor of that one.


onRoute router

Apologies, I have created a PR instead of an issue already, but the code here works as intended so good for discussion!
This implementation allows for onRoute style subscriptions using the router syntax:
view: {
  '/': [Default, (m,a) => a.counter.increment()], // <-- called on a.router.go('/')
  '*': [Fallback], // <-- no actions to call for this route
},

This could be easily altered to allow for the old router syntax too, just needs a few more checks as to what form the matching route takes (array or view function).

hummm.. this doesn't work with popstate navigation because it is attached to the router.go action 🤔 I did have something similar working in a plugin with anonUpdate hook that looked like this:
var lastMatch = ''
export default (options) => ({
  hooks: {
    onUpdate: function (oldModel, newModel, data, actions) {
      if(newModel.router && newModel.router.match !== lastMatch) {
        lastMatch = newModel.router.match
        if (typeof options.view[newModel.router.match][1] === 'function')
          options.view[newModel.router.match][1](newModel, actions)
      }
    },
  },
})

..but it requires the router to pass actions to onUpdate hooks. Is there any reason why this would not be desirable?

That did not work either 😅 because it is checking for difference of router.match which would return /:id any route of the form /*; so it would not trigger on navigation from /1 to /2. A more reliable way to check if the route is new could be to compare oldModel.router and newModel.router for equality but this is awkward in JS. So maybe this would be better..
onUpdate: function (oldModel, newModel, data, actions) {
  if(newModel.router && oldModel.router.path !== newModel.router.path &&
      typeof options.view[newModel.router.match][1] === 'function') {
    options.view[newModel.router.match][1](newModel, actions)
  }
},

This requires that the match function returns an object with a path attribute from which the router derived the match and params attribute:
{
  match: '/:id',
  params: { id: 1 },
  path: '/1'
}

Now we know if the route has changed if there is an update where newModel.router exists and oldModel.router.path !== newModel.router.path.

@lukejacksonn Hey man, how's this PR coming along? @dodekeract Do you have any comments?

What if we change this:
if (actions.router.onUpdate) actions.router.onUpdate()
People would then be able to just specify a router.onUpdate action in their actions and the router would notice it and pick it up.

So you would only have one of these router.onUpdate(/*...*/) actions per application? What does it get passed and how does it detect if the route has actually changed?

@lukejacksonn The detection part would still be how your code worked. But the way to trigger onUpdate wouldn't rely on changing the view anymore. It'd actually get passed nothing, because the model already has the current route & parameters.

I like that better! Having to change the view didn't feel quite right. So you expect something like:
const actions = {
  router: {
    onUpdate: (m,d,a) => switch(m.router.path) { ... }
  }
}

to initiate actions for certain routes?

@lukejacksonn Yes. Quite sure that you need {} around switch though.

I have managed to abstract all the route change detection logic out to a plugin with an onUpdate hook. Thus decoupling the view from the onRoute style subscriptions which was my big issue with my last approach. I tried implementing what you suggested @dodekeract but couldn't get it to play ball for one reason or another. Ended up with this, which I think is much easier to digest!
// Fetcher Plugin
export default () => ({
  hooks: {
    onUpdate: (om,m,d,a) => {
      if(m.router && om.router.path !== m.router.path) {
        switch (m.router.match) {
          case '/': return a.component.fetch(0)
          case '/:id': return a.component.fetch(m.router.params.id)
        }
      }
    },
  },
})

This means that the only fundamental changes are:

To pass actions as the last parameter to onUpdate functions

This changes the function signature to (prev, model, data, actions) which is sensible given the action signature (model, data, actions, error). Not a breaking change.

To add a path attribute to the router model

The value of the location.pathname that got passed into router.match to produce a new model. Which I'm sure was proposed but never made it in. Not a breaking change either.

This can probably be closed now due to the introduction of the route event. I am yet to try it out on one of the projects I have that requires this feature (but is still using a workaround). Will reopen an issue if I come across any limitations!

Sounds good, thanks Luke.


Add full parameter to SSIM

System information

TensorFlow version (you are using): 2.6.0
Are you willing to contribute it (Yes/No): Yes

Describe the feature and the current behavior/state.
Currently, tf.image.ssim and also tf.image.ssim_multiscale return the mean ssim value of the images (across height and width dimensions), but returning the full ssim image would be highly useful for multiple applications (reconstruction autoencoders, etc).
Will this change the current api? How?
Yes, both functions (tf.image.ssim and tf.image.ssim_multiscale) will include a new parameter full and will return a tensor containing the full ssim image if full is True. In fact, this ressembles the api of scikit-image structural_similarity.
Any Other info.
The implementation for tf.image.ssim is straightforward.  It consists of removing the reduce_mean operation if full is True, or conversely reduce_mean for no axes (axes=[]).
https://github.com/tensorflow/tensorflow/blob/bdc6a138403e8257841e8dff6d6b9322bb65053a/tensorflow/python/ops/image_ops_impl.py#L4227
I am not sure about the implementation for tf.image.ssim_multiscale, but it should be similar (or even the same).

Hi @Saduf2019!
Could you please look at this feature request!

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.


nulib reader

Reads nulib data. Needs my fork of nulib, see: https://github.com/Yurlungur/NuLib/pull/1

Good enough for me. Thanks @AstroBarker . Gonna merge this. Then at some point one of us should put it into phoebus for real.


pacconf not found

For some reason I don't have pacconf on my machine. repoman and repofind don't work because of this. Has a dependency of the aurutils changed and stopped including this tool or is my install just broken?

Pacconf should be in the package 'pacutils'. Do you have it installed?

I made a typo in the depends array of the aurutils AUR package. Should be fixed now, please try again.

Wow... that was fast. Thanks!


Which UI framework Do you use?

Which UI framework Do you use?
Thx

It's built with Electron

No framework. Just inbox.google.com with some CSS tweaks, wrapped as an application.


Client versions need to be checked on connect

We need a way to stop older clients from connecting. This is already possible on score token retrieval (via checks osu-web side) but we don't have a flow in place for this server.
See https://github.com/ppy/osu/issues/11686 for an example of an issue caused by old versions connecting to the server.

Rough sketch of server-side changes: https://github.com/ppy/osu-server-spectator/compare/master...bdach:osu-server-spectator:client-version-check-wip?expand=1
Needs further client-side consideration though.

Can you explain what client-side considerations are needed?

Well the issue there is how the client is supposed to respond to an invalid version being detected by the spectator server. What the spectator server will do is obvious - it will drop the connections from an old client and/or not honor any requests made by it. But the client?

It can either do the same thing as it does with the concurrency limiter, i.e. just log the user out. This is the easy option, but it is also arguably anti-user (there's no reason why the user can't continue to play without submission etc.), and will arguably mess with our workflows a little bit in rare cases (sometimes you need to check something using real production data, and as such you will generally launch the game in debug but using production endpoints - and implementing this behaviour would either put a stop to that entirely or require another local modification to be feasible).

Or it can try and keep the user logged in but carefully don't let them do anything that touches multiplayer and spectator (which includes score submission too, by the way). This is the pro-user approach but also very annoying to happen since you basically create this half-logged in state and performing the proper messaging to convey this to the user is really finicky. I'd have to change the disconnection flow used currently to convey the reason for disconnection, then handle that on the client side properly - which is also triply annoying because we have three hubs and every single one of them will receive a disconnect event near-simultaneously so I'd have to do some client-side debouncing etc etc.


Error while decompressing the source file

Once i press snatch it does not work and pops up with this issue

After Effects 2019

Can you provide the exact URL so I can replicate this on my end? Seems as though an incorrect compression type is being chosen by the panel for download here.

Can you provide the exact URL so I can replicate this on my end? Seems as though an incorrect compression type is being chosen by the panel for download here.

The link is:
https://youtu.be/Co7t6NxsW-4

Can you provide the exact URL so I can replicate this on my end? Seems as though an incorrect compression type is being chosen by the panel for download here.

I'm still experiencing the issue even with other songs, i think the extension is not very reliable. needs fixing.

https://www.youtube.com/watch?v=v4LJmmNLiM0


Updated Project Editor Version to 5.5.0f3

Wonderful! Thanks @HodgsonSDAS for doing this :)

@keveleigh I did add a script that enforced some editor settings in projects that use the HTK, so that might be what you're seeing.

@keveleigh good call, I'll add this.


Refactor loggerd rotations

Remove class RotateState, only use one mutex rotate_lock to control all rotations.
Log frame socket in the encoder thread, sync frame id is no longer required.
Minimize the use of locks

rebased master,passed the tests of test_encoder and test_loggerd

rebased master,passed the tests of test_encoder and test_loggerd

see comment in #19816


Version 0.6.3

Releasing for https://github.com/napalm-automation/napalm-junos/pull/115, https://github.com/napalm-automation/napalm-junos/pull/114 and https://github.com/napalm-automation/napalm-junos/pull/113

Coverage remained the same at 86.207% when pulling 8dcea738c7eaf9e4a515a0431f09f9854b3c980c on rel-0.6.3 into 8158c016a1f6b651a1670e4caef306fdc0e52ee4 on develop.

+1


localhost IPv6 resolution

Hi there, thanks for your amazing work!
I recently found that plow doesn't seem to be able to resolve localhost to IPv6 address if IPv4 failed.
What I have observed
I have an endpoint that only allows IPv6 access:
$ curl -v http://localhost:8080/api/endpoint

*   Trying <IP_ADDRESS>:8080...
* connect to <IP_ADDRESS> port 8080 failed: Connection refused
*   Trying [::1]:8080...
* Connected to localhost (::1) port 8080 (#0)
> GET /api/endpoint
> Host: localhost:8080
> User-Agent: curl/8.1.2
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< content-type: application/json
< content-length: 10
< connection: close
< date: Tue, 07 Nov 2023 12:00:00 GMT
< cache-control: no-store
< vary: Cookie
<
{"data": 1}

If I use plow, it drops the requests when it doesn't manage to connect to the IPv4 address <IP_ADDRESS>:
$ plow -n 10 http://localhost:8080/api/endpoint
Benchmarking http://localhost:8080/api/endpoint with 10 request(s) using 1 connection(s).
@ Real-time charts is listening on http://[::]:18888

Summary:
  Elapsed         0s
  Count           10
  RPS       1542.933
  Reads    0.000MB/s
  Writes   0.000MB/s

Error:
  10  "dial tcp4 <IP_ADDRESS>:8080: connect: connection refused"

What I expect
plow can try to connect to IPv6 address when the IPv4 is refused while using localhost, like curl does
My setup
plow: 1.3.1
OS: macOS 13.6.1 22G313 x86_64
Shell: zsh 5.9
CPU: Intel i5-1038NG7 (8) @ 2.00GHz

Also it is not possible to pass the IPv6 address directly:
$  plow -n 10  "http://[::1]:8080/endpoint"

Error:
  10  "couldn't find DNS entries for the given domain. Try using DialDualStack"

Thank you for your feedback. Integrating IPv6 with the proxy functionality in fasthttp might be somewhat challenging and could require substantial modifications. I will think about how to implement this in a more refined manner.


change reviews page to observable for #12

TODO:

[ ] Include "holding" issues, with additional check-box item
[ ] Arrange check boxes more neatly
[ ] Allow sorting by either stage/issue number or urgency


FAM On 4.4.4 pressing on the label changes button's color

Hi everyone,
I noticed a weird behavior while testing my app for various platforms. On 4.4.4, if someone presses on the label of a button of a floating action menu, and that label has a different color from the button, then the button changes to that color, and stays there no matter how many times you open and close the menu. It will change to its proper color only if you tap on it (instead of its label). This doesn't happen on lollipop. Are there any workarounds?

same here

Same here!

Could you provide some sample code for that? I'll try to find some time to fix this in near future.

Thanks a lot! Below is my onViewCreated function, in which as you can see, I setup the FloatingActionMenu. The code is copied and pasted (more or less) from your sample app.
public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        final FloatingActionMenu fam = (FloatingActionMenu) view.findViewById(R.id.material_card_fam);
        fam.setMenuButtonColorNormalResId(R.color.accent);
        fam.setMenuButtonColorPressedResId(R.color.accent_pressed);
        fam.setMenuButtonColorRippleResId(R.color.ripple);
        fam.hideMenuButton(false);
        fam.setClosedOnTouchOutside(true);
        fam.setIconAnimated(true);
        createCustomAnimation(fam);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                fam.showMenuButton(true);
            }
        }, 500);

        final FloatingActionButton fabPrev = (FloatingActionButton) view.findViewById(R.id.fam_btn_prev);
        fabPrev.setButtonSize(FloatingActionButton.SIZE_MINI);
        fabPrev.setColorNormalResId(R.color.accent);
        fabPrev.setColorPressedResId(R.color.accent_pressed);
        fabPrev.setColorRippleResId(R.color.ripple);
        final FloatingActionButton fabNext = (FloatingActionButton) view.findViewById(R.id.fam_btn_next);
        fabNext.setButtonSize(FloatingActionButton.SIZE_MINI);
        fabNext.setColorNormalResId(R.color.accent);
        fabNext.setColorPressedResId(R.color.accent_pressed);
        fabNext.setColorRippleResId(R.color.ripple);
        fabPrev.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(mDateInfoCard != null)
                    mDateInfoCard.updateForPrevDay();
                fam.close(true);
            }
        });
        fabNext.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(mDateInfoCard != null)
                    mDateInfoCard.updateForNextDay();
                fam.close(true);
            }
        });

        initCard();
    }

I recently updated to 5.0.1. In all APIs v. 21 and up, as well as in Kit Kat 4.4.2 (API 19) against which I'm testing with an emulator, the problem described does not appear. It appears only in 4.4.4.
Thank you in advance!

Found the problem and fixed. Will upload new build on weekends.


Num pad

Set constant for decimals and maxValue that can be entered.
Avoid overflow (like typing<PHONE_NUMBER>5555555555555555).

Thanks, but this kind of customization can be performed by developers. The point of sale app is just an example and proof of concept.

I would definitely not be proud to let that happen on one of my app (proof of concept or not) !


Enable translations

Show translations of the awesome people who has been helping bring WarriorJS to multiple languages.

Codecov Report

Merging #91 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #91   +/-   ##
======================================
  Coverage    90.4%   90.4%
======================================
  Files          80      80
  Lines        1011    1011
  Branches      154     154
======================================
  Hits          914     914
  Misses         82      82
  Partials       15      15

Continue to review full report at Codecov.

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


Thanks for the book...but i have error on pdflatex

I'm running win10 wsl 1.0 (windows subsystem for linux). I hope it run on only commandline because I don't have X windows installed (too big!) I've also installed MiKTeX using ubuntu 20.04 guide and finished up with shared set up. This is the portion of the error when building the book:
./chapters/13-Glossary/13-0 Glossary.md'
./chapters/14-Appendix/Appendix-A.md
./chapters/14-Appendix/Appendix-B.md
[WARNING] Note with key '12' defined at line 29 column 1 but not used.
[WARNING] Note with key '4' defined at line 30 column 1 but not used.

pandoc-fignos: Bad reference: @fig:Averages1.

pandoc-fignos: Bad reference: @fig:Averages2.

pandoc-fignos: Bad reference: @fig:BB_default.

pandoc-fignos: Bad reference: @fig:BB_better.

pandoc-fignos: Bad reference: @fig:FuncGroup_default.

pandoc-fignos: Bad reference: @fig:FuncGroup_better.

pandoc-fignos: Bad reference: @fig:MT_Scaling.

pandoc-fignos: Bad reference: @fig:MT_cycles.
pdflatex: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

$

what is libQt5Core.so.5 ? i've also installed pdflatex but no change in the error :(
any idea what i'm missing?

I found the fix. it's in WSL...from SO: here
in WSL1 you have to: sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
– s.ouchene Oct 29 '20 at 11:41


Fix "IgnoreWall is not defined" error in Levels compatibility

Perceptive was giving me this error on line 94 of PerceptiveCompatibility.js when the Levels module was active:
Uncaught ReferenceError: IgnoreWall is not defined [Detected 5 packages: perceptive, lib-wrapper, levels, system:pf2e, gm-vision]

From what I can tell, PeekingIgnoreWall is just a wrapper around IgnoreWall, and only the former was imported, so swapping the latter for the former seems to have fixed the issue.

Thank you. The bug is fixed with v2.0.1.
You are right, IgnoreWall is just a wrapper for PeekingIgnoreWall. Your fix would definitly work too, but i decided to import IgnoreWall from the API instead since there is a chance that  IgnoreWall will include other checks in the future.


Add missing regions under Default Region

Is your feature request related to a problem? Please describe.
3 AWS regions are missing in the Default Region drop-down on the Redshift data source page.
Describe the solution you'd like
Add regions: il-central-1, ap-southeast-4 and ca-west-1 to the plugin, to be displayed under the Default region selector on data source configuration page. Would be nice, if regions list is automatically updated whenever the service is launched in new regions.
Describe alternatives you've considered
Tried adding these regions manually, but it gives the error: InvalidClientTokenId: The security token included in the request is invalid status code: 403

I hava a pr up to add the new regions, however, for the error you're seeing: Do you have the regions enabled on your account? I tried it and I get that error for optional regions that haven't been enabled, while if the region is enabled the query succeeds whether or not the option is added to the dropdown.


chore: revert query param to fragment in external login callback url

chore: revert query param to fragment in external login callback url

fixes #15


WIP: support concurrent writer and readers

the tests don't succeed yet. couldn't get it to work reliably yet.
this PR is to facilitate discussion and get feedback

@Dieterbe i have fixed the unit tests in https://github.com/dgryski/go-tsz/pull/5
The PR is to merge this "concurrent" branch.

the tests look good now, so merging.


Issue on format with CurrencyTextInputFormatter

Hi,
I just want to share an issue than annoy me with CurrencyTextInputFormatter is that if I want to format that value : 20.0 , It will format as 2.00 for example.
In my case I want to init an input with 131.0 (double value) as value and that is my output using formatter :

Did you know that issue ?

The issue come from this part of the plugin (line 95) :

I had the same issue as you. Instead of using .format method, use .formatDouble.


docs(examples): resize images on the fly using sharp

This example shows how to build a stream pipeline using sharp.
The dogs in the example are creative commons images I found on google images, but maybe we should change them to some remix images?
Let me know what you think 🚀

Oh, and the dog images are adorable 👍

This example is great. @leon I wonder if it's possible to create a dynamic route inside Remix that will resize the image by passing the image URL and size properties through query params (something similar to Cloudinary). This way we can use it on any React component that requires image src

@gavriguy This is how it's implemented, I wrote about it in the README file.
https://github.com/remix-run/remix/blob/5a5044241096698eb6156bc526e2b4a709baeb29/examples/image-resize/README.md

@kentcdodds I will have a look at the improvements this evening

@gavriguy This is how it's implemented, I wrote about it in the README file.
https://github.com/remix-run/remix/blob/5a5044241096698eb6156bc526e2b4a709baeb29/examples/image-resize/README.md

@leon Thanks for clearing that out.
This is a great contribution.


Clicking "fix the errors" on Company information page does not set focus on the first error field reported by @adeel0202

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

Actions performed:

Go to Profile > Workspace > Connect a bank account > Connect manually
Enter a valid routing number and account number
Click save & continue
On Company information page, click save & continue without filling in any field
Click on "fix the errors"

Expected Result:
Scrolls to the first error field and sets focus on it
Actual Result:
Scrolls to the first field but does not set focus on it
Workaround:
unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: 1.2.23-7
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/199803438-341e7cd6-1367-45c4-9ffa-5073b01e0d77.mov
https://user-images.githubusercontent.com/43996225/199803495-31088511-25e1-46ae-9739-b71154d72b4e.mp4
Expensify/Expensify Issue URL:
Issue reported by: @adeel0202
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1667484994623239
View all open jobs on GitHub

hey @kavimuru - i'm unsure how this is an actual bug. will you elaborate on "not setting focus on it" and how that is buggy behavior?
i appreciate it!

Proposal
We need to use onFixTheErrorsLinkPressed instead of
onFixTheErrorsPressed
I will update detailed proposal in some time.

thanks for those details @0xmiroslav.

Or just close this one and thoroughly test on https://github.com/Expensify/App/pull/10741.

based on this suggestion, I'm going to close this one out for now. 👍


[Modal] Fix to defer setting of exited state to Transition component

[x] I have followed (at least) the PR section of the contributing guide.

Fixes #15180 (Modal aspect)
This is the follow-up PR for Modal of https://github.com/mui-org/material-ui/pull/15250, raised for @oliviertassinari to see the current progress and subsequent test failures.

@Sharakai Thank you! I have changed the test strategy. The test was failing with the next branch. I have written something high level that matches your codesandbox. It fails on next and passes on this branch.


Initialization DesktopWindowX opens first, then Windows Terminal.

Description of the new feature/enhancement

Proposed technical implementation details (optional)

I'm sorry but we can't really do anything with a blank issue like this. If you could provide some additional information or details, we'll be happy to reopen this issue and continue the discussion.


Update TranslatorConfiguration.kt

This PR ...
If you are suggesting a fix for a currently exploitable issue, please disclose the issue to the prime-reportstream team directly outside of GitHub instead of filing a PR, so we may immediately patch the affected systems before a disclosure. See SECURITY.md/Reporting a Vulnerability for more information.
This PR is for ticket #4841 for specifying a translation schema or use the default schema if it's not specified.
Test Steps:

./gradlew clean package
.Edit Organizations.yml file and add a new receiver under one of the organizations.
Make sure that the receiver schema is set to empty.
Make sure that there's a valid test csv input file in the junk folder.
Create a folder called junk and run this command:
./prime data --input-fake 5 --input-schema primedatainput/pdi-covid-19 --output ./junk/pdi-covid-19-tx.csv --target-states TX
After the test file is created successfully, run the fol. command:9.
./prime data --input junk/pdi-covid-19-tx.csv --input-client waters --receiving-application giangEmpty --output-dir junk/output --output-schema empty
In your organizations.yml file - there should be a receiver under sender waters, which is called - giangEmpty with empty schema.
After this command completes junk/output will have a csv file which has no data(just the msg Ids).
Name of the generated file starts with empty and it has no data (except for msgIds, State / Ordering_facility_county.

Changes

Adding default covid 19 schema when there's no input schema specified. If not take the schema specified for translation.

Checklist
Testing

[x] Tested locally?
[x] Ran ./prime test or ./gradlew testSmoke against local Docker ReportStream container?
[ ] (For Changes to /frontend-react/...) Ran npm run lint:write?
[ ] Added tests?

Process

[ ] Are there licensing issues with any new dependencies introduced?
[ ] Includes a summary of what a code reviewer should test/verify?
[ ] Updated the release notes?
[ ] Database changes are submitted as a separate PR?
[ ] DevOps team has been notified if PR requires ops support?

Fixes

#4841  - Change Translation Schema to allow different HL7 schemas.

To Be Done
None

#issue

Specific Security-related subjects a reviewer should pay specific attention to

Does this PR introduce new endpoints? No
Does this PR include changes in authentication and/or authorization of existing endpoints? No
Does this change introduce new dependencies that need vetting? No
Does this change require changes to our infrastructure? No
Does logging contain sensitive data? No
Does this PR include or remove any sensitive information itself? No

Pull reviewers stats
Stats for the last 30 days:

User
Total reviews
Time to review
Total comments

cwinters-usds
18
9h 40m
12

TomNUSDS
16
1h 22m
32

carlosfelix2
13
7h 32m
16

MauriceReeves-usds
10
10h 1m
2

kevinhaube
9
10m
0

jimduff-usds
9
1h 49m
12

jbiskie
8
1h 52m
0

brick-green-agile6
8
18h 7m
2

sethdarragile6
7
59m
0

TurkeyFried
6
12h 25m
1

JosiahSiegel
6
4m
0

ahay-agile6
5
13m
0

oslynn
5
20m
1

jeremy-page
5
5m
0

clediggins-usds
5
4h 2m
4

snesm
5
3h 26m
3

jh765
4
33m
3

RickHawesUSDS
3
3d 8h 47m
2

bgantick
2
16m
1

acoushawk
2
4m
0

whytheplatypus
1
13m
2

jorg3lopez
1
2d 2h 20m
0

rhood23699
1
15m
0

Changes

Adding default covid 19 schema when there's no input schema specified. If not take the schema specified for translation.

Checklist
Testing

[x] Tested locally?
[x] Ran ./prime test or ./gradlew testSmoke against local Docker ReportStream container?
[ ] (For Changes to /frontend-react/...) Ran npm run lint:write?
[ ] Added tests?

Process

[ ] Are there licensing issues with any new dependencies introduced?
[ ] Includes a summary of what a code reviewer should test/verify?
[ ] Updated the release notes?
[ ] Database changes are submitted as a separate PR?
[ ] DevOps team has been notified if PR requires ops support?

Fixes

#issue - List GitHub issues this PR fixes

To Be Done
Create GitHub issues to track the work remaining, if any

#issue

Specific Security-related subjects a reviewer should pay specific attention to

Does this PR introduce new endpoints?

new endpoint A
new endpoint B

Does this PR include changes in authentication and/or authorization of existing endpoints?
Does this change introduce new dependencies that need vetting?
Does this change require changes to our infrastructure?
Does logging contain sensitive data?
Does this PR include or remove any sensitive information itself?

If you answered 'yes' to any of the questions above, conduct a detailed Review that addresses at least:

What are the potential security threats and mitigations? Please list the STRIDE threats and how they are mitigated

Spoofing (faking authenticity)

Threat T, which could be achieved by A, is mitigated by M

Tampering (influence or sabotage the integrity of information, data, or system)
Repudiation (the ability to dispute the origin or originator of an action)
Information disclosure (data made available to entities who should not have it)
Denial of service (make a resource unavailable)
Elevation of Privilege (reduce restrictions that apply or gain privileges one should not have)

Have you ensured logging does not contain sensitive data?
Have you received any additional approvals needed for this change?

Pull reviewers stats
Stats for the last 30 days:

User
Total reviews
Time to review
Total comments

cwinters-usds
18
9h 40m
12

TomNUSDS
16
1h 22m
32

carlosfelix2
13
7h 32m
16

MauriceReeves-usds
10
10h 1m
2

kevinhaube
9
10m
0

jimduff-usds
9
1h 49m
12

jbiskie
8
1h 52m
0

brick-green-agile6
8
18h 7m
2

sethdarragile6
7
59m
0

TurkeyFried
6
12h 25m
1

JosiahSiegel
6
4m
0

ahay-agile6
5
13m
0

oslynn
5
20m
1

jeremy-page
5
5m
0

clediggins-usds
5
4h 2m
4

snesm
5
3h 26m
3

jh765
4
33m
3

RickHawesUSDS
3
3d 8h 47m
2

bgantick
2
16m
1

acoushawk
2
4m
0

whytheplatypus
1
13m
2

jorg3lopez
1
2d 2h 20m
0

rhood23699
1
15m
0

Your test steps are good, except you shouldn't create a folder called junk in the main dir because you will end up running into issues with Git since it will be an untracked folder. There is a build folder in the main directory where all the output from building and testing goes, and it's ignored by Git so you can safely create your junk directory there. Please update your test steps to reflect this.
Finally, add a description at the start of the PR where the three dots are to explain the purpose of the change you're making.
Thanks

Sure. I was using that for local testing. Let me change that. Thanks.


xournal: add desktop file and mime info

Motivation for this change
It was a pain launching Xournal in a graphical environment.
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

(Pinging listed maintainers: @dguibert) This is a squashed history. A full version of the history is here.

Fixes #20510.
The application now appears in system menus, and Konqueror now suggests
opening .xoj files with Xournal. Other file browsers should as well.

Switched to using makeDesktopItem instead of just using a cat.


Launchbuddy issues with McaFee & Webroot

Hi -- Tried to download 1.5.1 and both of these apps, Webroot and Mcafee, flag GW2_Launchbuddy as a bad actor. I went to this site and while there is a link for 1.5.2, nothing downloads from it. I thought you folks should know.
https://github.com/TheCheatsrichter/Gw2_Launchbuddy/releases/tag/1.5.2

Duplicate of https://github.com/TheCheatsrichter/Gw2_Launchbuddy/issues/56

Closing as dupe of #56 (As noted by @TimothyVandenbrande)


Rethink argument order

Idea: allow Vararg for variable number of inputs x = (a, b)
Challenges:

Avoid dispatch ambiguities
Correctly handle seeds

Move extras to the front

extras is mutated so it makes sense
The last argument will always be x, which makes Vararg possible
No ambiguities between extras and arguments

operator(f, [extras,] backend, x...)
operator(f!, y, [extras,] backend, x...)
operator!(f, result, [extras,] backend, x...)
operator!(f!, y, result, [extras,] backend, x...)

Store seeds with their input
Only allow Tuple arguments for pushforward and hvp
pushforward(f, backend, (a, da), (b, db))

If the tuples have more than two elements, it's batched seeds:
pushforward(f, backend, (a, (da1, da2)), (b, (db1, db2)))

For pullback, the only seed is on the output (and there is a single output), put it first:
pullback(f, backend, (dy,), a, b)
pullback(f, backend, (dy1, dy2), a, b)

Alternative by @adrhill (code written by the user)
pushforward(f, backend, Inputs(; a=a, b=b), Seeds(; a=(da1, da2), b=(db1, db2))

pushforward(f, backend, Input(a, da), Input(b, db), Cache(c))

First of all, I see the need to move the extras to allow for Vararg inputs.
However, the nested tuples in the pushforward examples are hard to parse. I very much favor something the more explicit

pushforward(f, backend, InputWithSeed(a, da), InputWithSeed(b, db), Cache(c))

This issue should be handled with future API changes from #311 in mind. In there, the following separation into activities was proposed:

"input": care about initial value and derivatives, not mutated
"output": care about derivatives but not initial value, possibly mutated
"parameters": care about initial value but not derivatives, not mutated
"cache": don't care about initial value or derivatives, mutated

I wonder whether it's correct to distinguish between inputs and outputs here or whether activities apply to outputs as well. I'll propose the following:

Name
Initial value matters
Compute derivatives
Applicable to

Active
Y[^1]
Y
input / output

Context/Constant
Y
N
input[^2]

Auxiliary
N
N
input / output

[^1]: On outputs, initial value only matters for seeds in pullback.
[^2]: On outputs, Auxiliary should be used.
Seeds could be handled via MD, e.g.

Active(x): input without seed
Active(x, dx): input with seed
Active(x, dx1, dx2): input with batched seeds

Using these more generic traits make pullbacks more easily parsable:
y = similar(dy)
pullback(f, Active(y, dy), backend, xs...)
pullback(f, Active(y, dy1, dy2), backend, xs...)

It could also enable auxiliary outputs (and possibly multi-output functions) in the future.
Outside of pushforward and pullback, which are advanced features, these types could all be optional/hidden, e.g.
gradient(f!, y, backend, x1, x2, x3)

could fall back to
gradient(f!, Active(y), extras, backend, Active(x1), Active(x2), Active(x3))

The symmetry between pushforward and pullback is not a meaningful objective: for pushforward we provide inputs and input seeds, for pullback we provide inputs and output seed. There's no going around it, even though you voluntarily picked the f! case for the pullback (I see what you did there). In the f case we don't provide y, only dy. In particular, we may not even know what the type of y will be.

As for auxiliary outputs, no Julia AD package (that I know of) handles them. Typically, if we have f(x) = (y, aux), to compute its Jacobian with ForwardDiff we would have to use first \circ f, and then call f a second time to compute aux anyway. I think the only solution would be to store this auxiliary data by mutating a cache.

Another thing we haven't considered is that for in-place pullback, da and db both get updated in the following
pullback!(f, [extras, ] backend, dy, InputWithResult(a, da), InputWithResult(b, db))

Even worse, for in-place hvp, each input must carry both a seed and a result, to the tune of
hvp!(f, [extras, ] backend, InputWithSeedAndResult(a, da, dga), InputWithSeedAndResult(b, db, dgb))

operator
seed
result

pushforward
da, db
dy

pullback
dy
da, db

hvp
da, db
dga, dgb

I just ran into a method ambiguity while working on #435:
  MethodError: value_and_derivative(::typeof(DifferentiationInterfaceTest.num_to_num), ::DifferentiationInterface.PushforwardDerivativeExtras{DifferentiationInterfaceForwardDiffExt.ForwardDiffOneArgPushforwardExtras{ForwardDiff.Tag{typeof(DifferentiationInterfaceTest.num_to_num), Float64}, ForwardDiff.Dual{ForwardDiff.Tag{typeof(DifferentiationInterfaceTest.num_to_num), Float64}, Float64, 1}}}, ::AutoForwardDiff{nothing, Nothing}, ::Float64) is ambiguous.

  Candidates:
    value_and_derivative(f!::F, y, ::AutoForwardDiff, x) where F
      @ DifferentiationInterfaceForwardDiffExt ~/Work/GitHub/Julia/DifferentiationInterface.jl/DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/twoarg.jl:97
    value_and_derivative(f::F, extras::DifferentiationInterface.PushforwardDerivativeExtras, backend::ADTypes.AbstractADType, x) where F
      @ DifferentiationInterface ~/Work/GitHub/Julia/DifferentiationInterface.jl/DifferentiationInterface/src/first_order/derivative.jl:74

  Possible fix, define
    value_and_derivative(::F, ::DifferentiationInterface.PushforwardDerivativeExtras, ::AutoForwardDiff, ::Any) where F

Reopening because the design ideas remain interesting

Closing because this will not change for a while


Preview page not updating on browser refresh

Issue Summary
If I make changes in wagtail admin and save them as a draft and click on the preview button afterwards then I can see my changes. If I change now again and save my draft and only refresh the browser on the already opened preview page I can not see the changes. I always need to click on the preview button first.
I'm not sure if this is a bug or a feature, but from my point of you it makes no sense. I work with a dual-head configuration and have always one browser open with the admin ui and another with the preview page. I would like to click on save and just refresh the preview page to see the changes.
Technical details

Python version:  2.7.13
Django version: 1.10.4
Wagtail version: 1.13.1
Browser version: Any, is not browserrelated

Hi, in my case I tried to enter new information to the paragraph in admin then the preview is not updating or showing what I have entered


what is the top-1 acc for weights/hardnet_petite_base.pth on imagenet

what is the top-1 acc for weights/hardnet_petite_base.pth on imagenet

We actually didn't fully train the petite model with ImageNet. The training was early stopped at around 100th epoch out of 150 epochs, and unfortunately, we didn't record the accuracy.

What a pitty, I am also interested in the top-1/top-5 accuracy of this pre-train...


Refactoring action & service queries

Refactoring the below parts:

[ ] $node.actions
[ ] $node.services
[ ] actions in REPL
[ ] services in REPL
[ ] actions in INFO & DISCOVER packets

Other tasks:

[ ] fix tests
[ ] update docs

#45


fix(type-definitions): Expand types accepted by from() to match reality

Fix from TS type definition to allow accepting the full compliment of types it can coerce.
Fix #405

:shipit:

I think ArrayLike is a valid TS type (@TylorS, am I remembering correctly?).  Since from accepts things that are Array-like, we should probably include that as well.

a47bee3 loosens Array to ArrayLike (thanks to @TylorS for discussion via slack).  @davidchase if this still looks good to you, I say we merge it.


error image repository of kube-rbac-proxy on installer operator running

the default repository image of kube-rbac-proxy is docker.io. we expect this value to be autofill when adding a new kubernetes cluster.

System information:

Self-Hosted

Kubegems version:

v1.20.0-beta.2

fixed


Load SnakeYaml in a separate DependencyClassLoader.

moving Yaml conversion to a separate DependencyClassLoader.
Related PRs: #1201 (Netty Buffer) and #1204 (Airlift Slice).
Used in: org.embulk.config.ConfigLoader and org/embulk/EmbulkRunner

@dmikurube

I completely forgot about embulk-deps-config. No reason, I will rename.
For conflicts, no worries, I am aware. After it's reviewed, I can always merge with the master branch.
For the order, can we have issues assigned to milestones, so that we can refer to them anytime?

Ah, you already did it. :)

yeah, and something failed :)

missed it a couple of times ... :)

Merged!


How would I implement this method?

There is no information given here on what an implementation of this method is expected to do. If I am creating my own data loader, what is expected here?

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

ID: 90ff8285-ad51-1a4a-26d9-a55c091ca773
Version Independent ID: 5351be84-fa4c-be47-f1f7-6fe43e5d67ec
Content: ILearningPipelineLoader.SetInput(IHostEnvironment, Experiment) Method (Microsoft.ML)
Content Source: dotnet/xml/Microsoft.ML/ILearningPipelineLoader.xml
GitHub Login: @dotnet-bot

@KevinGrealish - check out the docs at https://github.com/dotnet/machinelearning/tree/master/docs/code - they may answer your questions. Thanks!

Closing since this API no longer exists. /cc @natke


Enter a valid date/time.

Hi I have setup a form widget like
dt = forms.DateTimeField("Export start time",
widget=DateTimeWidget(usel10n=True, bootstrap_version=3))
The format I chose in formats.py is chosen correctly. I can change the format and the widget changes
when choosing a date. On submit though I always get "Enter a valid date/time."
Any suggestions ?
Thanks

Same here, maybe this is an issue with different localizations / conversion between localizations?!

I'm also having this problem.  If I leave the widget format as the default, the day and month are swapped when saved, if I try to specify any sort of format in the widget, I get the error "Enter a valid date/time."

The datewidget simply passes a string (as given on the UI) to the DateField. The DateField first checks if it got a datetime.date(time), which is not the case. Then it tries to parse the string by testing different format specifiers. In my case the format specifier used by the datewidget was not defined in the DateField, so I defined this by hand (see above). What's not so nice is that you would need to specify a format for the DateField for each possible localization, this should somehow work automatically, e.g. if the datewidget did not pass a string but already a datetime.date object.
I assume that the swapping of day and month is because e.g. datewidget use "%d/%m/%Y" and DateField assumes "%m/%d/%Y".
In my case I only have one localization so it's ok for now.

The problem in init method of PickerWidgetMixin when language string converted to js objects. Init in django enviroment with following code
date_start = forms.DateTimeField(label=_("Date Start"), widget=DateTimeWidget(usel10n=True, bootstrap_version=3), required=False)
called only once, when application loading, and not per request. Actually now, with example from documentation django-datetime-widget does not support locale changes per requests, you need to manually call widget initialization per request to change locale of widget and have true support of l18n. I think this is main problem off ValidationErrors on l18n-enabled sites.

Great catch, I suspect this is my fault from my opinionated refactor a while back. I moved some of the code into the __init__ as I clearly failed to realise some of the details might change from request to request. We should change that back.

This class works fine for me on l18n-enabled site.
class PickerWidgetMixin(object):

    format_name = None
    glyphicon = None

    def __init__(self, attrs=None, options=None, usel10n=None, bootstrap_version=None):
        if bootstrap_version in [2,3]:
            self.bootstrap_version = bootstrap_version
        else:
            # default 2 to mantain support to old implemetation of django-datetime-widget
            self.bootstrap_version = 2

        if attrs is None:
            attrs = {'readonly': ''}

        self.options = options

        self.format = None
        self.usel10n = usel10n

        if not usel10n and 'format' in self.options:
            # We want to have a Javascript style date format specifier in the options dictionary and we
            # want a Python style date format specifier as a member variable for parsing the date string
            # from the form data
            self.format = toPython_re.sub(
                lambda x: dateConversiontoPython[x.group()],
                self.options['format']
                )
        else:
            self.format = None

        super(PickerWidgetMixin, self).__init__(attrs, format=self.format)

    def render(self, name, value, attrs=None):
        final_attrs = self.build_attrs(attrs)
        rendered_widget = super(PickerWidgetMixin, self).render(name, value, final_attrs)

        language = get_supported_language(get_language())
        self.options['language'] = language

        if self.usel10n or not self.format:
            self.format = get_format(self.format_name)[0]
            self.options['format'] = toJavascript_re.sub(
                lambda x: dateConversiontoJavascript[x.group()],
                self.format
                )

        #if not set, autoclose have to be true.
        self.options.setdefault('autoclose', True)

        # Build javascript options out of python dictionary
        options_list = []
        for key, value in iter(self.options.items()):
            options_list.append("%s: %s" % (key, quote(key, value)))

        js_options = ",\n".join(options_list)

        # Use provided id or generate hex to avoid collisions in document
        id = final_attrs.get('id', uuid.uuid4().hex)

        clearBtn = quote('clearBtn', self.options.get('clearBtn', 'true')) == 'true'

        return mark_safe(
            BOOTSTRAP_INPUT_TEMPLATE[self.bootstrap_version]
                % dict(
                    id=id,
                    rendered_widget=rendered_widget,
                    clear_button=CLEAR_BTN_TEMPLATE[self.bootstrap_version] if clearBtn else "",
                    glyphicon=self.glyphicon,
                    options=js_options
                    )
        )

    def _media(self):

        js = ["js/bootstrap-datetimepicker.js"]

        language = get_supported_language(get_language())
        if language != 'en':
            js.append("js/locales/bootstrap-datetimepicker.%s.js" % language)

        return widgets.Media(
            css={
                'all': ('css/datetimepicker.css',)
                },
            js=js
            )

    media = property(_media)

While using DateTimeInput (default for admin) it actually splits the date and time fields as id_fieldName_0 as date field and id_fieldName_1 as time field. When this DateTimeWidget is used, the post data contains only fieldName as single value, when django expects list of values. Hence in django admin, DateTimeWidget will always throw ValidationError to send values as list. (Tested in Django 1.8 with l10n false in settings)

Is there a fix for this? I'm getting this error with a DateTimeField and looking at this comment thread I'm no closer to finding a fix


have some problems for the training

I took 18 hours for training, but this training haven't end.
When will the work which is training end?
Thanks!

That depends on MAX_ITER .


add custom allocator option

This is a good idea for libraries in general, and helps with tracking
memory allocated by uvwasi in Node.js.
The allocator struct format is identical to the one used by nghttp2
and related libraries, which makes things a bit easier because we’ve
added generic support for that format in the QUIC repo.

I think the answer is "yes" but double checking... does https://travis-ci.com/nodejs/node/jobs/261846786 include Node's wasi test suite?

@cjihrig Travis runs the default test suites, which includes wasi afaict, yes: https://github.com/nodejs/node/blob/6bf5a1d691291cdfcc4941e68f00d0003e565476/tools/test.py#L1487-L1506

Cool. Thanks!


Defined zuul_sites per environment

zuul_sites becomes the sites that the jobs can specify to upload logs
to. At the moment because this is defined in the role even test
environments are trying to upload to the production zuul logs server.
Set the role default to not produce any zuul sites, copy the existing
information to production and set up some sensible defaults for the
other environments.
Signed-off-by: Jamie Lennox<EMAIL_ADDRESS>

hold this for now.