error on compile

Hello,
I am having the error below while building from source and couldn't find fix for it
error: ‘glfwGetMonitorWorkarea’ was not declared in this scope; did you mean ‘glfwGetMonitorName’?
776 |         glfwGetMonitorWorkarea(glfw_monitors[n], &x, &y, &w, &h);
|         ^~~~~~~~~~~~~~~~~~~~~~
|         glfwGetMonitorName

Did you sudo apt install -y libglfw3-dev?

yes,
its already installed

What is your OS version?

I'm also getting this error on ubuntu20 04

I am having this issue on Jetson Orin NX ubuntu20.04

on the newer version of jetpack 5.1.2, the problem solved

// Reemplaza esta línea en imgui_impl_glfw.cpp
// glfwGetMonitorName(glfw_monitors[n], &x, &y, &w, &h);
// con estas líneas
const char* monitorName = glfwGetMonitorName(glfw_monitors[n]);
const GLFWvidmode* vidMode = glfwGetVideoMode(glfw_monitors[n]);
x = 0;
y = 0;
w = vidMode->width;
h = vidMode->height;


Add new services for set/refresh Z-Wave indicator and bitwise jinja filters

Description:
Added Z-Wave services for set_indicator and refresh_indicator. Also added the COMMAND_CLASS_INDICATOR to the sensor component for discovery. This was implemented to allow control of the button LEDs on the Cooper 5-button scene controller, but supports any device with COMMAND_CLASS_INDICATOR.
I also added new template filters bitwise_and and bitwise_or to make it easy to parse out the status of individual LEDs as shown in the configuration example below.
Pull request in home-assistant.io with documentation (if applicable): https://github.com/home-assistant/home-assistant.io/pull/6288
Example entry for configuration.yaml (if applicable):
automation:
  - alias: Sync the indicator value on button events
    trigger:
      - platform: event
        event_type: zwave.scene_activated
        event_data:
          entity_id: zwave.scene_contrl
      - platform: event
        event_type: zwave.node_event
        event_data:
          entity_id: zwave.scene_contrl
    action:
      - service: zwave.refresh_indicator
        data:
          node_id: 3
switch:
  - platform: template
    switches:
      button_1_led:
        value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(1) > 0 }}"
        turn_on:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int + 1 }}"
        turn_off:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int - 1 }}"
      button_2_led:
        value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(2) > 0 }}"
        turn_on:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int + 2 }}"
        turn_off:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int - 2 }}"
      button_3_led:
        value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(4) > 0 }}"
        turn_on:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int + 4 }}"
        turn_off:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int - 4 }}"
      button_4_led:
        value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(8) > 0 }}"
        turn_on:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states(scene_contrl_indicator)|int + 8 }}"
        turn_off:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int - 8 }}"
      button_5_led:
        value_template: "{{ states('sensor.scene_contrl_indicator')|int|bitwise_and(16) > 0 }}"
        turn_on:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int + 16 }}"
        turn_off:
          service: zwave.set_indicator
          data_template:
            node_id: 3
            value: "{{ states('sensor.scene_contrl_indicator')|int - 16 }}"

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
[x] New dependencies are only imported inside functions that use them ([example][ex-import]).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

Hi @blakeblackshear,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Please break out the template part into a new PR.

@turbokongen Please see updates.

Thank you. Maybe a second pair of eyes on this before merging? @armills @andrey-git  @cgarwood

@andrey-git Updated. It is turning a string into an int.

@armills and @turbokongen Updates complete.

Of course. Getting this merged will finally allow me to move away from ZWay and use Homeassistant to manage my Z-Wave network.


The path for background arc needs to be supplied with data to get it rendered. This went missing.

This is for fixing the issue https://github.com/c3js/c3/issues/2390
Solution : The path for background arc needs to be supplied with data to get it rendered.

Codecov Report

Merging #2401 into master will increase coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2401      +/-   ##
==========================================
+ Coverage   78.05%   78.14%   +0.09%
==========================================
  Files          52       52
  Lines        4137     4136       -1
==========================================
+ Hits         3229     3232       +3
+ Misses        908      904       -4

Impacted Files
Coverage Δ

src/arc.js
73.95% <100%> (+1.29%)
:arrow_up:

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 f48c217...f4e1fb1. Read the comment docs.

@kt3k
did we take any decision for merging it to master? I believe you are the correct person who can provide some information.
Pls let me know if you are seeing any functional deviation or issue here.
Thanks a lot !

@rahul-winner
I confirmed this change fixes the example in #2390 (and in #2343). Thank you for the contribution!
Do you think we can add any test case to prevent this regression?

@kt3k
I'll explore if we could have test case for ensuring this behavior going further and will create PR.
Thanks a lot for expediting this fix !

@1Jesper1 thanks for your comment.
Apparently some more work be required on background arc after moving on to recent D3. I'm investigating it and will try to fix it. Please feel free to contribute if you are seeing any fix.

let's track the resize issue here https://github.com/c3js/c3/issues/2409


remove TODO in Public Header regarding the div nonce bit for clients

Closes #232.
The Public Header will not change before the switch to IETF QUIC.
We will have to accept the wrong bit in the client Public Header.

Codecov Report

Merging #1214 into master will increase coverage by 0.25%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1214      +/-   ##
==========================================
+ Coverage   91.11%   91.36%   +0.25%
==========================================
  Files         114      114
  Lines        7791     8006     +215
==========================================
+ Hits         7098     7314     +216
  Misses        465      465
+ Partials      228      227       -1

Impacted Files
Coverage Δ

internal/wire/public_header.go
92.59% <ø> (ø)
:arrow_up:

internal/protocol/version.go
100% <0%> (ø)
:arrow_up:

session.go
82.58% <0%> (+1.97%)
:arrow_up:

packet_packer.go
92.78% <0%> (+2.3%)
:arrow_up:

stream_framer.go
100% <0%> (+2.56%)
:arrow_up:

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 be2be38...d9e670b. Read the comment docs.


update ext authz tag in make file

ext authz sample current tag is 0.6 but makefile still uses 0.5. This PR fixes it
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[X ] Does not have any changes that may affect Istio users.

@ramaraochavali: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
125613cf603528df783735ec352e106f3a049698
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
125613cf603528df783735ec352e106f3a049698
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-notes_istio

/test release-notes_istio

@ramaraochavali: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
125613cf603528df783735ec352e106f3a049698
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
125613cf603528df783735ec352e106f3a049698
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-pilot-k8s-tests_istio

/test integ-pilot-k8s-tests_istio


Locked and non-resolving configurations fail with an error in Gradle 7.x with a single project

When using Gradle 7.6.4 with a dependency locking enabled and a single project build, the error  Locking strict mode: Configuration ':archives' is locked but does not have lock state. occurs and the build fails. Setting DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS=archives causes the same error to occur but on the :default configuration instead.
Running ./gradlew dependencies shows that both the archives and default configurations are non-resolving. The gradle.lockfile does not include any references to either configuration, likely because they are non-resolving. The problem only occurs in a 'single project build' (e.g. without a settings.gradle file or where the settings.gradle file does not include any valid child projects).
build.zip
Attached is a very simple Gradle project to reproduce the issue:

Install the latest version of Gradle 7.x: gradle wrapper --gradle-version 7.6.4

Generate a lockfile: ./gradlew dependencies --write-locks

Notice that 'archives' and 'default' configurations have an (n) after them, indicating they are non-resolving.
Notice that the empty= line in gradle.lockfile does not include archives or default on the empty= line. This appears to be correct behavior since they are non-resolving configurations.

Run the github-dependency-graph-gradle-plugin using the command from this repo's README. Alternately, using the GitHub dependency submission action causes the same behavior. ./gradlew -I init.gradle --dependency-verification=off --no-configuration-cache --no-configure-on-demand :ForceDependencyResolutionPlugin_resolveAllDependencies

The following error is returned:

Task :ForceDependencyResolutionPlugin_resolveProjectDependencies FAILED
(omitted)
Execution failed for task ':ForceDependencyResolutionPlugin_resolveProjectDependencies'.
Could not resolve all dependencies for configuration ':archives'.
Locking strict mode: Configuration ':archives' is locked but does not have lock state.

Environment details:

openjdk version "1.8.0_402"
OpenJDK Runtime Environment Corretto-8.402.08.1 (build 1.8.0_402-b08)
OpenJDK 64-Bit Server VM Corretto-8.402.08.1 (build 25.402-b08, mixed mode)
Windows 11 Version 23H2 (OS Build 22631.3296)
gradle --version (used to initialize the wrapper, but not used for executing the Gradle commands above)
Gradle 8.7
Revision:     650af14d7653aa949fce5e886e685efc9cf97c10

Although this was tested with OpenJDK 8, we observed similar behavior in OpenJDK 17. We've temporarily worked around the issue by including both archives and default in the DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS environment variable, but since we're deploying the Gradle Dependency Submission action throughout the enterprise we'll be encountering a variety of 'single project' Gradle builds that aren't upgraded to 8.x yet.

Thanks for the detailed report and the reproducer. I need to investigate why we're attempting to resolve an unresolvable configuration.


Error at sample.py

When I followed the command: python sample.py --image='png/example.png', it returns an error:
<start> guest building storing guest next gazelle 6 drawing guest applied pate <end>
Traceback (most recent call last):
  File "sample.py", line 96, in <module>
    main(args)
  File "sample.py", line 75, in main
    plt.imshow(np.asarray(image))
  File "/home/marsha/anaconda2/lib/python2.7/site-packages/matplotlib/pyplot.py", line 3029, in imshow
    **kwargs)
  File "/home/marsha/anaconda2/lib/python2.7/site-packages/matplotlib/__init__.py", line 1819, in inner
    return func(ax, *args, **kwargs)
  File "/home/marsha/anaconda2/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 4922, in imshow
    im.set_data(X)
  File "/home/marsha/anaconda2/lib/python2.7/site-packages/matplotlib/image.py", line 449, in set_data
    raise TypeError("Image data can not convert to float")
TypeError: Image data can not convert to float

@sigmoidx  Thanks for noting the bug. I fixed the code. Check here and download the pretrained model and vocabulary file again.
Now, the code works well.


Add a Dockerfile for building and serving documents

What's this pull request for?
Add a Dockerfile so that developers can build and serve documents at their local environments.
How to test

[x] Docker image can be built.
[x] Documents can be built.
[x] Documents can be served.

LGTM!


Publish 06/18/2021, 10:30 AM

Docs Build status updates of commit e5e7e35:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-server/New-SPEnterpriseSearchServiceApplication.md
:white_check_mark:Succeeded
View (sharepoint-ps)

skype/skype-ps/skype/Set-CsTeamsMeetingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


services-routesForEE

Just a copy paste of https://github.com/Kong/getkong.org/blob/master/app/docs/0.13.x/getting-started/configuring-a-service.md

NOTE: Please read the CONTRIBUTING.md guidelines before submitting your patch,
and ensure you followed them all:
https://github.com/Kong/getkong.org/blob/master/CONTRIBUTING.md
Summary
SUMMARY_GOES_HERE
Full changelog

[Edited docs to ...]
[Added cool new feature ...]
...

Issues resolved
Fix #XXX

Checklist:

[ ] Commit message & atomicity checked
[ ] Documentation
[ ] Spellchecked my updates
[ ] Ready to be merged

thanks for this! I think it needs some substantial refactoring to conform to the patterns already established in the “Getting Started” section of EE’s docs - when I improved that section some months ago, there were LOTS of changes from the equivalent CE section.
What we really need is for https://getkong.org/docs/enterprise/0.32-x/getting-started/adding-your-api/ to be refactored to “adding your Service and Route” - that’ll involve a number of adjustments, plus likely some adjustments to the EE Free Trial nurture emails (which I believe point to those specific docs URLs)
and this other PR https://github.com/Kong/getkong.org/pull/721/files should ideally be part of a single PR that makes all those improvements at once @jpk - otherwise we’ll end up a broken link

@john-paul-keenan note https://github.com/Kong/docs.konghq.com/pull/740 - if that PR accomplishes what this PR was supposed to do, please close this PR in favor of that one.

Closing in favor of #740


Clarify NBF EXP

@msmbaldwin

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

I created a better version in the private repo - it was a mistake creating here. Let's pick this up in that PR.


Epmlabsbrn 671 First realization API for User Statistic

EPMLABSBRN-671 https://jira.epam.com/jira/browse/EPMLABSBRN-671
Updating api's contract

@nikolai4lazarev like this one!


Elhouse cover sensor and alarm

Time estimate (Hours)
3h
Deadline (DD.MM)
24.09
Description of task
Senses if Freyas elhouse cover is open and make sound if it is
Specifications

Measure distance
Trigger buzzer if distance is greater than the distance from the sensor to the lid

Suggested Workflow

measure distance sensor
start buzzer

Contacts

Emilssp

It works


Use LanguageIdentifier in components/site/src/feed.rs

Can you merge this so that I can file my documentation changes in a new PR?

I've created a new PR upstream (getzola#1148).
Closing this


Tune feature-gates table

This PR separates the graduated/deprecated feature gates into a separate
table. When updating the table contents by browsing the source code, we
also found some missing items which are added in this PR as well.

Page preview:
https://deploy-preview-16097--kubernetes-io-master-staging.netlify.com/docs/reference/command-line-tools-reference/feature-gates/

/lgtm

@tengqm, just checking with @simplytunde about getting this PR in before the 1.16 release. There are a number of changes to this table on the dev-1.16 branch. What do you think?

@kbhawkey Totally agree.

/milestone 1.16


8dfcbed usage issues

I used 8dfcbed to compile MDC1200 and reported an error

I enabled the MDC1200 function in MAKEFILE
functions.c: In function 'FUNCTION_Select':
functions.c:268:22: error: 'vfo_info_t' has no member named 'mdc1200_mode'
  268 |     if (g_current_vfo->mdc1200_mode == MDC1200_MODE_BOT || g_current_vfo->mdc1200_mode == MDC1200_MODE_BOTH)
      |                      ^~
functions.c:268:73: error: 'vfo_info_t' has no member named 'mdc1200_mode'
  268 |     if (g_current_vfo->mdc1200_mode == MDC1200_MODE_BOT || g_current_vfo->mdc1200_mode == MDC1200_MODE_BOTH)
      |                                                                         ^~
make: *** [functions.o] 错误 1

The power selection in the menu cannot be saved.

When using the k5 button, other walkie talkies next to it will receive the signal from k5, and the signal prompt light will light up and the button sound will sound, which often appears.

I see that there is a spectrum function in the source file. If it can be added to the Makefile, this firmware will become more perfect. I know that the firmware is only 60k, and it is not possible to add it all, giving users a choice.

Thank you for your hard work.

Thank you for letting me know.
What's the 'power section' ? .. do you mean TX power ?
What's the 'K5' button ?

TX power Unable to save.
M,UP,DOWN,EXIT,numeral key，all key.
and ENABLE_BOOT_BEEPS := 1, open the radio,other radio RX beep.

The TX power is saved. It's a channel setting. When ever a little 'ch' appears in the sub-menu area, it means that particular setting is a per channel setting, that means after changing it you have to re-save the channel for it to be remembered.

The TX power is saved. It's a channel setting. When ever a little 'ch' appears in the sub-menu area, it means that particular setting is a per channel setting, that means after changing it you have to re-save the channel for it to be remembered.

This is a great reminder.
TX power cannot be selected in the menu. When you select Low and press M to save, the result remains High and does not change to LOW. Then, save the channel again

I tested 7E5605C and fixed 1 and 2. Thank you very much for your perfect repair.

I tested 7E5605C and you have fixed 1 and 2. Thank you very much for your perfect repair.

I tested 7E5605C and you have fixed it. Thank you very much for the perfect repair.


Wiegand Support

Hello
Great job,
Wiegand support for Access Control Board would be great. Thank you

Hi!
I'm not planning on extending NFC Support for this particular project, however, i'll keep the issue open to see if other people might be interested in this and to gather any suggestions.

Hello,
I would also be interested in the compatibility with Wiegang.
This would be very useful to install a reader outside.
Please try to see.


showSpinners directive to toggle timepicker spinners

Directive for togglings spinners in order to vertically align a timepicker to other form controls in multi column forms.
Example:

Incorporates one-time binding for this directive, as per suggested by @wesleycho (#3758)

This is now in via 1f760eb35f5bad1aa76663f92259f546fe762d66


[#1440, #1432] Component Governance security vulnerability for ejs 2.7.4, 3.1.6 and glob-parent 3.1.0

Fixes # 1440
Fixes # 1432
Purpose
This PR upgrades the yeoman-test dependency from 1.9.1 to 6.0.0 and the yeoman-generator dependency from 2.0.5 to 5.7.0 due to the CVE-2020-28469, WS-2021-0153, WS-2022-29078 security vulnerabilities.
Changes

Upgrade yeoman-test from 1.9.1 to 6.0.0.
Upgrade yeoman-generator from 2.0.5 to 5.7.0.
Upgrade ejs from 3.1.6 to 3.1.8.
Upgrade jest from 23.5.0 to 24.9.0.

Tests
The following images show a sample bot and the unit tests working with these changes.

/promoted 1461


Homebridge on Windows: What workloads in Visual Studio Community do I need?

I am following this guide to install Homebridge on Windows 10: https://github.com/nfarina/homebridge/wiki/Install-Homebridge-on-Windows
I am at the step of installing Visual Studio Community. What workloads do I need to install to get this to work?

The easiest way to get what you need is to do "npm install --global windows-build-tools"


Update Jest

Running npm install in the repository root currently renders security warnings, which can be fixed by migrating to the latest version of Jest (currently 23.6.0).
Jest 24 has breaking changes that make this non-trivial:
https://jestjs.io/blog/2019/01/25/jest-24-refreshing-polished-typescript-friendly#breaking-changes

✅ done


use package site to find dirs

There is a package called "site" which already determines where the user's site-packages directory is, which is probably safer.

Resolved in db7ea45


Intellisense, Organize imports etc... not working

Steps to Reproduce:

Update to 1.63.2
Organize imports stopped working in React js
Any intellisense such as npm modules import or paths, hover over to method info are not working anymore

it happened to my teammates as well

Does this reproduce in the latest VS Code insiders build with all extensions disabled?
/needsMoreInfo

@mjbvz yes it's reproducible with all extensions disabled on v1.63.2

Please test using the Insiders build too, VS Code 1.64

alright

worked with that thanks 💯

issue persists with enabled extension

If that's the case, then one of your extensions is causing this. See https://code.visualstudio.com/blogs/2021/02/16/extension-bisect for help tracking down which one is causing this

https://stackoverflow.com/a/39751676 this resolved my issue


Misspelled 'number' on a documentation page

The word 'number' has been misspelled as 'umber' in https://material-ui.com/api/textarea-autosize/#props under rows.

@melwyn001 Thanks! Would you like to fix it? The props documentation is in the comments in the component code, then yarn docs:api converts it to markdown.

Correct, I have misspelled it in https://github.com/mui-org/material-ui/blob/2a71c35ca53038cb167dafe07a052577d9dfb1e9/packages/material-ui/src/TextareaAutosize/TextareaAutosize.js#L159

Done


Get Input/Output shapes of node (ex: Conv, Add) during the inferencce

Hi,
I would like to know how can we access input and output shapes of a node (ex: Convolution, Add) from the reampper file.
I am trying to access input shapes in function [IsAddWithNoBroadcast] (https://github.com/tensorflow/tensorflow/blob/d8ce9f9c301d021a69953134185ab728c1c248d3/tensorflow/core/grappler/optimizers/remapper.cc#L843) but I am not successful in retrieving the input shapes of node.
Can someone help me to get the input shapes of node with in a remapper file?
Thanks!!

Hi @Alavandar08,
We see that the issue template has not been filled, could you please do so as it helps us analyse the issue [tf version, steps followed before you ran into this error or stand alone code to reproduce the issue faced] or if possible share a colab gist with the issue reported. Thank you!

Hi @tilakrayal
This issue (i.e getting shapes is not specific to particular version. It is across all versions). For easier reference we can consider
(TF-2.9).
From my experiments I am trying to dump the shapes into a log file and verify if the logs been printed or not.
I tried to get node input shapes from couple of places
some of them are -

IsAddwithNoBroadcast
We have access to node of type 'NodeDef'

SymbolicshapesEqual
We have access to input properties of a node that are obtained from context of type 'TensorShapeProto'

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.


Migrate from existing password_digest column?

I have a custom User model with lots of rows. I have a password_digest column that I want to keep. (it comes from has_secure_password)
But I also want to use Devise database authenticatable, but from my limited knowledge on Devise, I have to use the encrypted_password column.
Is there a way to trick Devise into using my current password_digest for authentication?
If I add an encrypted_password column it will be blank and I definitely don't want to stay like that.

Please use the mailing list or stack overflow for questions, we reserve the issues tracker for issues. Thanks!


[bug-fix] Collections Callable Attribute Error

Description

collections.Callable is not supported for python versions 3.10+.

Steps To Reproduce

Running the command acedit --run {filename}.cpp -c {contest_number} -p {division} results in the following error:

AttributeError: module 'collections' has no attribute 'Callable'

Solution

collections.Callable has been moved to collections.abc.Callable in python 3.10+. A hacky solution is to add the reference back to collections before importing the problem library.

Source

Resolved, do not know how. Cannot reproduce issue again.


Get all dependencies for a page in log Analytics.

What’s a easy way to get all dependencies for a page in log analytics. I found that Id/operation_id column in pageViews is not unique and may be it is same for 1 user session. My requirement is very specific to all the dependencies for single page.

For  SDK version 1.0.20, For non SPA applications, id of the page (you can access it through appInsights.context.id) does refresh for new pages (across same user session). For SPA application, you will need to refresh the context manually. Please hook up to route change for these scenarios and set appInsights.context.operation = new Microsoft.ApplicationInsights.Context.Operation()

In my Angular application with the SDK version 1.0.20 the context not exists on the object ApplicationInsights (see bold below).
My code looks like:
AppInsights.context.operation = new Microsoft.ApplicationInsights.Context.Operation();
AppInsights.context.operation.name = name;
What are going wrong?

Same here!

@jpiyali would you mind checking the issue mentioned above, seems like I'm the third having this:

Looking at the legacy code (currently v1.0.21 - which is also not actively maintained) the Namespace is correct
If you look at the unminified code https://az416426.vo.msecnd.net/scripts/a/ai.1.0.21.js
var Microsoft;
(function (Microsoft) {
var ApplicationInsights;
(function (ApplicationInsights) {
var Context;
(function (Context) {
"use strict";
var Operation = /** @class */ (function () {
function Operation() {
this.id = ApplicationInsights.Util.newId();
if (window && window.location && window.location.pathname) {
this.name = window.location.pathname;
}
}
return Operation;
}());
Context.Operation = Operation;
And the config listed in #1320 is for v2 and is not available in v1


TypeError: displayError is not a function

Hello.
I apologize in advance for any mistakes as I am writing through a translator.
I downloaded your bot, set it up and translated it into Russian. I used it, but when I wrote a command with an error in the argument, the bot stopped working, and an error was displayed in the console. Screenshots are attached. If you need - I can send you the source of the translated bot.

I just added the line const { displayError } = require('../utils/error.js') to the commands/faction.js script and the error was fixed.


SSLEOFError - gyb quits with unhandled exception after processing 30k out of 50k emails

Please confirm the following:

I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue.
Yes.

Got Your Back 1.55
https://git.io/gyb
Jay Lee -<EMAIL_ADDRESS>Python 3.10.2 64-bit final
google-api-client 2.36.0
Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.31 x86_64
Path: /home/adam/bin/gyb
ConfigPath: /home/adam/bin/gyb
OpenSSL 3.0.1 14 Dec 2021
gmail.googleapis.com connects using TLSv1.3 TLS_AES_256_GCM_SHA384

I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki
Yes.

Full steps to reproduce the issue:
I don't have a specific easy-to-reproduce and isolated bug.
Hopefully a more robust exception handling / retry mechanism around the problem below would solve it.
Steps I took:

Create a full backup of a Google custom domain account locally (completes without problems).
Start restoring the backup to another @gmail address
After a few hours and processing ~30k emails, gyb experienced an unhandled exception and quit as below

gyb --email<EMAIL_ADDRESS>--action restore --local-folder<EMAIL_ADDRESS>
[...]

Select the actions you wish GYB to be able to perform for<EMAIL_ADDRESS>
[ ]  0)  Gmail Backup And Restore - read/write mailbox access
[ ]  1)  Gmail Backup Only - read-only mailbox access
[ ]  2)  Gmail Restore Only - write-only mailbox access and label management
[*]  3)  Gmail Full Access - read/write mailbox access and message purge
[ ]  4)  No Gmail Access

[*]  5)  Groups Restore - write to G Suite Groups Archive
[*]  6)  Storage Quota - Drive app config scope used for --action quota

      7)  Continue
7

Go to the following link in your browser:

        https://gyb-shortn.jaylee.us/XXX

Enter verification code: XXX

Using backup folder<EMAIL_ADDRESS>restoring 1.62mb message (20221/51615)
ERROR: 400: Invalid attachment. Please check https://support.google.com/mail/answer/6590.. Skipping message restore.
restoring 15 messages (25827/51615)
ERROR: 400: Invalid attachment. Please check https://support.google.com/mail/answer/6590.. Skipping message restore.
restoring 15 messages (27460/51615)
ERROR: 400: Invalid attachment. Please check https://support.google.com/mail/answer/6590.. Skipping message restore.
restoring 15 messages (28936/51615)
ERROR: 400: Invalid attachment. Please check https://support.google.com/mail/answer/6590.. Skipping message restore.
restoring 1.37mb message (30608/51615)
ERROR: 400: Invalid attachment. Please check https://support.google.com/mail/answer/6590.. Skipping message restore.
restoring 15 messages (30620/51615)
ERROR: 400: Invalid attachment. Please check https://support.google.com/mail/answer/6590.. Skipping message restore.
Traceback (most recent call last):)
  File "gyb.py", line 2532, in <module>
  File "gyb.py", line 2072, in main
  File "gyb.py", line 733, in callGAPI
  File "googleapiclient/_helpers.py", line 131, in positional_wrapper
  File "googleapiclient/http.py", line 1565, in execute
  File "googleapiclient/http.py", line 1495, in _execute
  File "gyb.py", line 107, in wrapped_request_method
  File "google_auth_httplib2.py", line 218, in request
  File "httplib2/__init__.py", line 1725, in request
  File "httplib2/__init__.py", line 1441, in _request
  File "httplib2/__init__.py", line 1364, in _conn_request
  File "http/client.py", line 1282, in request
  File "http/client.py", line 1328, in _send_request
  File "http/client.py", line 1277, in endheaders
  File "http/client.py", line 1076, in _send_output
  File "http/client.py", line 998, in send
  File "ssl.py", line 1236, in sendall
  File "ssl.py", line 1205, in send
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2384)
[15408] Failed to execute script 'gyb' due to unhandled exception!

Expected outcome (what are you trying to do?):
As above - restoring local backup to a new address
Actual outcome (what errors or bad behavior do you see instead?):
As above - unhandled exception, gyb quit.

SSL errors always boil down to a connectivity or firewall issue on your machine or network. Make sure you have reliable connectivity and that no firewall on your machine or network is blocking GYB then try again.

@jay0lee, uploading messages may take several hours to days and network error can and do occur.
It is not unreasonable for gyb, similarly to most apps performing long network operations, to implement automatic retry if the error did not occur on the very first attempt (i.e., when the error occurs after a successful start).
In fact, I cannot think of any apps that crash rather than implement automatic retries on long network operations - can you?

Can this please be addressed?
We are archiving a large number of mailboxes and they cannot complete them.

PRs are welcome.

I just posted to the Google Group about this same issue. I really hope this can be addressed somehow. Don't have any programming skills, but happy to donate!

It looks like there is some retry mechanism in the function in question (https://github.com/GAM-team/got-your-back/blob/main/gyb.py#L754) -- I guess that might help a bit and this issue might no longer be relevant?


Cannot deploy icebreaker app to teams

Hello,
I have tried both manual deployment and scripted deployment methods provided in the solution. But both methods failed. When I upload the custom app in Teams app, it threw the error "Manifest parsing has failed." The copied error message was "error while reading manifest.json icebreaker".
I also validated it in App Studio, which indicated an error message of "The file could not be found in the app package". But I don't know which file is missing. Below are the files in my package zip file. Any suggestion on what's going on?
Thank you!

add the language json files from the manifest into the app.zip

Thanks @mark3grahams.  I don't see app.zip anywhere in the icebreaker app solutions. Where can I find it?

Sorry that was vague. The manifest folder in the repo has a bunch of language .json files in it. Add those language files to the root of the archive which you created for the app.

Thank you @mark3grahams ! This solved the problem!

Glad, I could help.
The documentation and the script have not been corrected to account for this.
I guess reasons.

I am having the same issue. @MicrosoftDev365  can you share me a video of how to do this? I am really new to this. Thank you in advance!

Sorry that was vague. The manifest folder in the repo has a bunch of language .json files in it. Add those language files to the root of the archive which you created for the app.

Sorry @mark3grahams i do not understand what you mean?
Should i select all language.json files and put them in the icebreaker-manifest.zip file? or should i select all language.json files and zip them and then add in icebreaker-manifest.zip file?

Sorry that was vague. The manifest folder in the repo has a bunch of language .json files in it. Add those language files to the root of the archive which you created for the app.

Sorry @mark3grahams i do not understand what you mean?
Should i select all language.json files and put them in the icebreaker-manifest.zip file? or should i select all language.json files and zip them and then add in icebreaker-manifest.zip file?

It works!!! @mark3grahams  thanks!!


Review (and refine) our Business Model Canvas with Product Owners and with Developers

Describe the issue
Having drafted our Business Model Canvas with our own team, we wish to get further input on it from the perspective of our customers/partners.
We'll be discussing things like value proposition, communication channels and revenue/pricing.
Which Sprint Goal is this issue related to?

Note: 'Milestone' is a ZenHub term that we use synonymously with 'Sprint'.

The 'Milestone' description (created in ZenHub) should clearly list Sprint Goals. This section should indicate which 'goal' this issue is related to.
Additional context
We need to complete the current work on embedding with the user teams, and learning what we can from that experience. We also need to allow those teams to continue through a few billing cycles (months) to experience the service.
Definition of done

2 hr meeting with CP team at the end of sprint (Thu or Fri)
Gather insights and discuss with our team - create tickets for follow-up activities
Demo to Gen with Stu, Bahaa, Sid and Julian at very end of sprint

We did the workshop end of Sprint. will study and create a one pager narrative this coming sprint and share with everyone.


generate_wamv.launch.py gives compliance error on empty WAMV

Describe the bug
Running generate_wamv.launch.py with empty configuration files produces an empty WAM-V platform as expected, but also gives the following error:
[generate_wamv.py-1] This component/thruster configuration is NOT compliant with the (current) VRX constraints. A urdf file will be created, but please note that the above errors must be fixed for this to be a valid configuration for the VRX competition.
Expected behavior
An empty WAM-V should be compliant. Are rules define maximum numbers of thrusters and components, but not minimums.
To Reproduce
List the steps to reproduce the problem:

Run

touch empty_component_config.yaml
touch empty_thruster_config.yaml
ros2 launch vrx_gazebo generate_wamv.launch.py component_yaml:=`pwd`/empty_component_config.yaml thruster_yaml:=`pwd`/empty_thruster_config.yaml wamv_target:=`pwd`/wamv_target.urdf wamv_locked:=False

See error:

[generate_wamv.py-1] [ERROR] [1683911879.733853761] [configure_wamv]:
[generate_wamv.py-1] This component/thruster configuration is NOT compliant with the (current) VRX constraints. A urdf file will be created, but please note that the above errors must be fixed for this to be a valid configuration for the VRX competition.

System Configuration:
Tell us about your system.

OS: Ubuntu 22.04
ROS Version: ROS 2, Humble
Gazebo Version: Gazebo Sim 7.0.0
Using VRX

How this compliance check currently works:

generate_wamv.launch.py calls the script generate_wamv.py and passes it the required variables.
generate_wamv.py is a wrapper for configure_wamv.py.
configure_wamv.py uses the create_component_xacro and create_thruster_xacro files to generate the urdf and check for compliance at the same time.
These functions each call create_xacro_file, which is imported from utils.py
create_xacro_file takes two compliance check functions as arguments: one to check number of components/thrusters and one to check their parameters.
The 4 compliance check functions that are passed to create_xacro_file are each imported from compliance.py, where they are defined as methods of a ComponentCompliance and ThrusterCompliance class.
If any of the 4 checks fail, the console will display the error listed above.
The individual check that fails also uses rclpy to log error messages to wherever the ROS log directory is set by ROS_LOG_DIR variable. However, no error messages are currently being logged except the general error.


[PowerToys Run] Doesn't clear previous query on launch if previous query are spaces or the symbol -> `

Microsoft PowerToys version
0.49.1
Running as admin

[X] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce

Check the tickbox for Clear the previous query on launch on PowerToys Run Settings.
Open PowerToys Run (Alt + Spacebar).
Press spacebar or ` once or multiple times and don't type anything else.
Exit PowerToys Run by click outside the search bar or pressing Alt +Spacebar again.

Video: https://youtu.be/7svu8hQAum8
✔ Expected Behavior
Spaces will be cleared.
❌ Actual Behavior
Spaces remained.
Other Software
No response

PowerToysReport_2021-11-25-20-24-06.zip

Seems like #14317 for me. :D
cc: @jaimecbernardo

Duplicate of #14317


Exception when getting posts

I get this exception when trying to get posts. Maybe something has changed?

System.Collections.Generic.KeyNotFoundException: The given key 'post_tag' was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key)    at PatreonDownloader.CustomStringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) in C:\Users\Foxite\source\repos\PatreonDownloader\PatreonDownloader\CustomStringEnumConverter.cs:line 26    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)    at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)    at PatreonDownloader.Program.DownloadAllPosts(HttpClient client, List1 pages, String backupFile) in C:\Users\Foxite\source\repos\PatreonDownloader\PatreonDownloader\Program.cs:line 202
at PatreonDownloader.Program.Main(String[] args) in C:\Users\Foxite\source\repos\PatreonDownloader\PatreonDownloader\Program.cs:line 93

Something has certainly changed, Youtube often changes their site's internal layout quite drastically to stop apps like this from working. I'll see if there's been an update to the scraping library and push an update shortly.

Something has certainly changed, Youtube often changes their site's internal layout quite drastically to stop apps like this from working. I'll see if there's been an update to the scraping library and push an update shortly.

I posted a reply but didn't realize that this is not, in fact, my other project which deals in youtube downloading. Hang tight, I'll take a look

I posted a reply but didn't realize that this is not, in fact, my other project which deals in youtube downloading. Hang tight, I'll take a look

I've released an update which should fix this problem.

I've released an update which should fix this problem.

That was fast, nice. It does get all the posts now.
It doesn't download anything afterwards (yes, I ran it again), but I guess it's only for image posts and not e.g. youtube links. Anyways thanks, I can parse the json to get what I need.

That was fast, nice. It does get all the posts now.
It doesn't download anything afterwards (yes, I ran it again), but I guess it's only for image posts and not e.g. youtube links. Anyways thanks, I can parse the json to get what I need.

It can fish links out of posts and download extra media from those links, but right now I've only done that for Dropbox links. It could download youtube videos as well.

It can fish links out of posts and download extra media from those links, but right now I've only done that for Dropbox links. It could download youtube videos as well.


bug on soca build?!

Description
It seems I can't build SOCA (with intel on discover). Anyone else has this problem?

i'm guessing you're using an old version of saber. try doing a make update first

hmm, it was a clean build, but I see the last merge on soca could solve this


does teeproxy work with ssl enabled?

I keep getting following output from my "b" site.
Failed to receive from aws-fcd-dev.datasvc.abc.com:443: unexpected EOF

Not supported, yet.

unlikely going to support this.


Add Vehicle Exit Point functionality to E2 with extension (Fixes #1373)

Fixes #1373.
This pull request (after merged) would add the following to Expression 2 gate:
 Functions:

Signature
Description
Cost

angle=entity:getVehicleExitAng()
Gets exit angles of a vehicle (this will return exit-point angle only if you have set it via setVehicleExitAng; otherwise, it will return invalid/zero angle)
5

vector=entity:getVehicleExitPos()
Gets exit position of a vehicle (this will return exit-point position only if you have set it via setVehicleExitPos; otherwise, it will return invalid/origin vector)
5

entity:removeVehicleExitAng()
Removes exit angles of a vehicle (this will remove exit-point angle only if you have set it via setVehicleExitAng)
5

entity:removeVehicleExitPos()
Removes exit position of a vehicle (this will remove exit-point position only if you have set it via setVehicleExitPos)
5

entity:setVehicleExitAng(angle)
Sets exit angles of a vehicle
10

number=entity:setVehicleExitPos(vector)
Sets exit position of a vehicle (returns 1 on success; otherwise, it returns 0 to indicate a failure)
10

This is edition which DOES implement it via Expression 2 extension, I have called it vehicle.
I have allowed edits from maintainers, feel free to get rid of the comments from the code if you wish...
I have tested it in-game - it works as expected, and it co-operates with wire_pod_exit_distance ConVar (the maximum distance an exit-point can move a player).
With E2 extension vs Without E2 extension
Now it is Your turn to vote, this time you vote for the one to be merged in official Wire :)
The one with most up-votes (👍) should be merged (you can't vote for both!).
Please, also post your reason after voting; otherwise, your vote won't count!
For example: Why did you vote for THIS one?

Personally I preferred this version.
It is gone. I do still have a backup of the repository on my old hard drive tho.. I don't know if I have enough motivation to ditch this. RIP...


Building Jeka (including wrapper) from sources without IntelliJ (e.g. on a CI)

I'm trying to build Jeka using GitLab CI. I have no problem running the Ant script that bootstraps the build, based on the documentation, but I can't figure out from there how to launch a Jeka build with Jeka on the command line (without using an IDE) and then get a working Jeka wrapper.
Any help would be greatly appreciated.
Thanks

Hi,
I don't really understand what you are intenting to do. The Ant scripts just compiles the Jeka sources code, then run the compiled code, to build JeKa itself. We don't need to have a JeKa Wrapper, to build JeKa.
If tthe CI cannot run ANT, then we need to write an shell script that does the same thing than the Ant file. It should not be to hard.
Kind Regards


Generate credentials for signing the atomix.yaml file.

Signed-off-by: Joy Latten<EMAIL_ADDRESS>

Need review or merge.


[feat] change model

Change model and corresponding services.

The new model includes fields of:
private String merchantName;     //the name of merchant, can find the merchant by specifying merchant in the path param
private String merchantImageUrl;   //Image of the merchant
private MerchantType merchantType;
//the following fields will be displayed in the pop-up window when the user clicks the merchant Image
private String merchantAlternativeName;
private List merchantImagesUrl;        // these images will be put in carousel.
private String merchantAddress;
private String merchantPhone;
private String merchantOpeningHours;
private String merchantDiscount;
private String merchantPaymentMethods;


How to set SameSite to 'None' instead of Lax or Strict in 3.x?

Hi @suresh4154, that currently isn't supported.
To add support, we'd have to allow it in validation code e.g.
https://github.com/twitter/secure_headers/blob/1fa2083cf9b1749aaa5a2608636ca06085ec9cb2/lib/secure_headers/utils/cookies_config.rb#L45-L51
And have it understand the new value
https://github.com/twitter/secure_headers/blob/1fa2083cf9b1749aaa5a2608636ca06085ec9cb2/lib/secure_headers/headers/cookie.rb#L92-L98
I think that's all that would be required.

Thanks @oreoshake .

I think this is worth implementing fwiw

@oreoshake Is there any chance this could be backported to the 3.x branch?  I'd be happy to kick out a PR if it would help.

I'm going to re-open this issue. I suspect this samesite change is going to be more painful than anticipated.
@ilikepi I'd be happy to merge and release if you get things working! I didn't realize we had cookie support in 3.x but then again, 4/5/6 came out in quick succession. How does time work?

Submitted #416 by cherry-picking commits from #414, with some minor tweaks.

This has been released in 3.7.4
That leaves the 4/5.x lines. I'm happy to backport and release for anyone else who needs a specific line to support this.


Add support for enabling Azure KeyVault KMS in aks-preview

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

AKS

@karataliu @FumingZhang @zhoxing-ms could you please have another round of review?


Adding React.StrictMode type

<React.StrictMode> is part of the official API but we don't have a type for it yet.
Flow Try
^ Cannot get `React.StrictMode` because property `StrictMode` is missing in module `react` [1].

This diff:

adds the API, acting just like <React.Fragment>
adds new tests
updates existing tests

Test Plan:
bash ./runtests.sh  bin/flow

For the record / housekeeping:

There is an older PR https://github.com/facebook/flow/pull/6078 open for this (but the current one does look more complete).
This should close https://github.com/facebook/flow/issues/6107.
Worth linking to https://github.com/facebook/react/issues/12553.

Is there a reason this never gets merged? StrictMode came out in march and it still has no flow support in October. It's starting to make my confidence in this library slip.

@cvoege integrating with FB codebase was taking quite a bit of time and I got pulled into some other work. Thanks for the ping.

Should the flow types for React be moved into flow-typed? It would prevent having to go through this many hoops to update the types for React.

@brunotavares Is there any way to get facebook to notice this merge? It' simple, complete, adds working tests, and is around 7 months overdue. How can we get this merged so I can finally stop using $FlowFixMe?


doesn't allow for multiple todolist workspaces

doesn't allow for multiple todolist workspaces, where there are multiple workspaces saved with different todo lists

todolist json format should be
{
"todoLists": [
"id": 2,
"tasks": [
{
"task": "NAME",
"description": "DESCRIPTION",
"priority": 1,
"done": false,
"id": 1,
"createDate": "DATE"
}
],
"completed": []
]
}

you should store date as an actual date object in python, and stringify it when writing to the json file

you should store date as an actual date object in python, and stringify it when writing to the json file

a string is easy enough to work with even for the sorting


autoconfig

/azp run

/azp run

Hi @qiaozha , @lirenhe , this is the auto-configuration tool for readme.az.md. Would you help to review and consider whether need to merge into this repo or into a standalone repo.  Thanks!


Stuck Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/ContactsManager.cpp.o

Hi, I'm trying to build the bot, follow the html instructions for Ubuntu, but It get's stuck building ContactsManager.cpp.o
Is there anything that I can check ?
Thank You

You need 4+ GB of RAM when building with g++ and 2+ GB of RAM when building with clang.

Thx for that.


visual indication

there should probably be a visual indication when feeds are found, as in a change in the icon - better yet, i might suggest placing the icon in the address bar and hiding it when inactive

You might want to take a look at  detect-feeds
https://addons.mozilla.org/en-US/firefox/addon/detect-feeds/
Hope it helps.

now that i understand the diff between the 2 extensions, i'll close this


Cannot send request, retry to send.  No proxy found.

Hi @devalex88 ,
This is related to issue. First of all thanks for clarifying it. I am able to pass the proxy information successfully. However the browser is not able to launch the URL.
run_Chrome.sh
#!/usr/bin/env bash
set -xe
current_dir=$(pwd)
project_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
reports_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )/Reports/WorkFlow Sprints"
rm -rfv "$reports_dir"
mkdir -p "$reports_dir"
katalon_opts='-browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/EPS Admin - WorkFlow Sprints" --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTP -proxy.server.address=MyProxyIP -proxy.server.port=8080 -proxy.username=MyProxyUserName -proxy.password=MyProxyPassword'
docker run --rm -v "/$project_dir":/katalon/katalon/source:ro -v "/$reports_dir":/katalon/katalon/report -e KATALON_OPTS="$katalon_opts" katalonstudio/katalon
cd $current_dir
Log info:
Starting ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) on port 9341
Only local connections are allowed.

Test Suites/ Sprints - Chrome - 20180523_195531......0/1(0%)
May 23, 2018 7:56:00 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
05-23-2018 07:56:00 PM - [RUN_DATA] - Logging run data 'sessionId' with value '8b1b50fe0cde940ccd87c9ec659a672d'
05-23-2018 07:56:00 PM - [RUN_DATA] - Logging run data 'browser' with value 'Chrome 66.0.3359.139'
05-23-2018 07:56:00 PM - [RUN_DATA] - Logging run data 'platform' with value 'Linux'
05-23-2018 07:56:00 PM - [RUN_DATA] - Logging run data 'seleniumVersion' with value '3.7.1'
05-23-2018 07:56:00 PM - [RUN_DATA] - Logging run data 'proxyInformation' with value 'ProxyInformation{proxyOption=MANUAL_CONFIG, proxyServerType=HTTP, password=MyProxyPassword, proxyServerAddress=MyProxyIP, proxyServerPort=8080}'
05-23-2018 07:56:00 PM - [INFO]   - Navigating browser to: 'http://www.google.com'
Wed May 23 19:57:34 UTC 2018
Cannot send request, retry to send.
No proxy found.
Wed May 23 19:57:44 UTC 2018
Cannot send request, retry to send.
No proxy found.

Test Suites/ Sprints - Chrome - 20180523_195531......0/1(0%)
[1527105660.399][SEVERE]: Timed out receiving message from renderer: 296.753
[1527105660.429][SEVERE]: Timed out receiving message from renderer: -0.031
[1527105660.507][SEVERE]: Timed out receiving message from renderer: -0.110
05-23-2018 08:01:00 PM - [FAILED] - Unable to open browser with url: 'www.google.com' (Root cause: org.openqa.selenium.TimeoutException: timeout
(Session info: chrome=66.0.3359.139)
(Driver info: chromedriver=2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 4.9.93-boot2docker x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'
System info: host: '439814915e89', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.93-boot2docker', java.version: '1.8.0_162'
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.35.528139 (47ead77cb35ad2..., userDataDir: /tmp/.org.chromium.Chromium...}, cssSelectorsEnabled: true, databaseEnabled: false,
handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, rotatable: false, setWindowRect: true, takesHeapSnapshot: tru
e, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 66.0.3359.139, webStorageEnabled: true}
Session ID: 8b1b50fe0cde940ccd87c9ec659a672d)
05-23-2018 08:01:00 PM - [END]    - End action : openBrowser
05-23-2018 08:01:00 PM - [FAILED] - Test Cases/SampleTestTable FAILED because (of) Unable to open browser with url: 'www.google.com' (Root cause: org.openqa.selenium.TimeoutException: timeout
(Session info: chrome=66.0.3359.139)
(Driver info: chromedriver=2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 4.9.93-boot2docker x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'
System info: host: '439814915e89', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.93-boot2docker', java.version: '1.8.0_162'
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.35.528139 (47ead77cb35ad2..., userDataDir: /tmp/.org.chromium.Chromium...}, cssSelectorsEnabled: true, databaseEnabled: false,
handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, rotatable: false, setWindowRect: true, takesHeapSnapshot: tru
e, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 66.0.3359.139, webStorageEnabled: true}
Session ID: 8b1b50fe0cde940ccd87c9ec659a672d)

Test Suites/ Sprints - Chrome - 20180523_195531......0/1(0%)

Could you please try again with the web page http://katalon-test.s3.amazonaws.com/demo-aut/dist/html/form.html. I doubt that since the proxy protocol is HTTP, it won't work with google page which would automatically redirect to https://google.com.

Hi @devalex88 , Thanks again. Yes, I am able to access the HTTP web page you have provided. However, I have tried passing the HTTPS value. even I am not able to access HTTPS sites. Any advice?

Usually, proxy ports for HTTP and HTTPS connections are separate. Could you please check if your proxy supports HTTPS connections, and on what port?


Skipping non-native derivations even when supported by extra-platforms

      run: >
          nix run github:Mic92/nix-fast-build
          -- --skip-cached --no-nom
          --flake
          ".#checks.aarch64-linux"

https://github.com/SomeoneSerge/llama.cpp/blob/998c9b2cf6c77f365b50b6645b41ff81eaedd450/.github/workflows/nix-ci.yml#L102-L106
...run on an x86_64-linux (ubuntu-latest) host, configured with extra-platforms = aarch64-linux
...results in the successful exit but 0 actual builds happening. The same command works fine if nix.conf instead contains system = aarch64-linux and extra-platforms: x86_64-linux
Encountered in https://github.com/ggerganov/llama.cpp/pull/4709

nix run github:Mic92/nix-fast-build --systems aarch64-linux,x86_64-linux should work.

Afaik this option is set by the binfmt wrapper as well. But since emulation is slow, I would not want to make check the value of extra-platforms to decide what systems to build. The explicit --systems flag seems like a better trade off that will also work if remote builders are used.

--systems is what I went with as well
Re: binfmt wrapper
Afaiu with the ubuntu runners one has to passthe flag manually
Re: what  systems to build based on extra platforms
I had to pass the .#checks.${system} manually anyway, which is why I thought it weird that nixfastbuild performs additional filtering

It uses nix-eval-jobs to get the system of builds and does the filtering there.
It does not try to figure out the system based the flake attr path yet since this may be not well defined in some cases. Once we got flake schema we can re-think that.

It uses nix-eval-jobs to get the system of builds and does the filtering there.
It does not try to figure out the system based the flake attr path yet since this may be not well defined in some cases. Once we got flake schema we can re-think that.


Fix a few typos

Just edited a few typos in the docstrings

Pull Request Test Coverage Report for Build 654

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 70.741%

Totals

Change from base Build 653:
0.0%

Covered Lines:
1939

Relevant Lines:
2741

💛  - Coveralls

Nice, thanks!


Remove historical feature in serving store

Remove historical value of feature in serving store. This is incomplete solution and currently is blocked by the issue with late data overwriting newer data.
It contains breaking changes in serving and all the client will have to be updated
/hold

/hold cancel

It's ready for review, let me know if you are against the new API structure
/assign @tims
/assign @zhilingc

/retest

@tims I updated the PR to exclude server-side timestamp filtering. The timestamp filter is now done in client side.

Last feedback, ts_range in the sdk should be DateTime objects not strings.

/retest

/approve

@zhilingc can you please review

/lgtm


hostname case sensitivity

We found that we can create hostnames of mixed case, both in and out of zone, through EPP.  We would not expect that both ns1.UPPER.foo and ns1.upper.foo could be created for example based on our interpretation of RFC 952 that states:
A "name" (Net, Host, Gateway, or Domain name) is a text string up
to 24 characters...  No distinction is made between upper and lower case. ....
a mixed case domain  returns: Domain names can only contain a-z, 0-9, '.' and '-'
On Wed, Oct 19, 2016 at 3:46 PM, Nick Felt<EMAIL_ADDRESS>wrote:
You're right, this is a bug.  Thanks for pointing it out.
The real issue (IMO) is that we rely too much on Guava's InternetDomainName.from() method to do validation for us.  It's too permissive for my tastes, and for example, when constructing a domain name, it normalizes uppercase to lowercase.  If you try to use this as a validity check, then you might do subsequent checks on the InternetDomainName object, expecting that it represents the same literal string (if converted back to a string) as the original, but that is not in fact the case due to the silent normalization.
This is exactly where we went wrong here, since we call validateHostName() which uses InternetDomainName.from() [1] and then in DomainCreateFlow pass the result into lookupSuperordinateDomain() [2], but elsewhere in that flow we use the original "targetId" (aka the FQHN) directly, including for constructing the new HostResource.
I think we should just reject hostnames that aren't already normalized, i.e. we should check that InternetDomainName.from(hostname).toString().equals(hostname) and reject anything that fails.  If we felt like being friendly, we could try to do some proactive checks (e.g. for uppercase characters) so we can return a better error message, before returning a generic "host name %s doesn't match normalized form %s" error.
[1] https://github.com/google/nomulus/blob/afa4d6660176ea39efae6e9a2cc1ca915f0ba18f/java/google/registry/flows/host/HostFlowUtils.java#L38
[2] https://github.com/google/nomulus/blob/afa4d6660176ea39efae6e9a2cc1ca915f0ba18f/java/google/registry/flows/host/HostCreateFlow.java#L94
On Wed, Oct 19, 2016 at 7:41 PM Steve Brown<EMAIL_ADDRESS>wrote:
proactively checking for uppercase characters as you suggest would make the hostname and domain behavior more consistent

I did some analysis on our existing crop of HostResources for our live TLDs, of which .how, .soy, and .xn--q9jyb4c see substantial numbers of registrar-created hosts.
The result is that 0.07% of all hostnames contain an uppercase character, aka less than 1 in 1000.  There are 146 such hostnames total out of nearly 200k total.  Out of these, 142 were created by a single registrar (representing 8% of their hosts), and the other 4 were created by another (representing 1% of their hosts).
Of the 146 hostnames with uppercase:
100 are all uppercase (e.g. NS1.EXAMPLE.COM)
9 have just the first label uppercase (e.g. NS1.example.com)
6 have just the first letter uppercase (e.g. Ns1.example.com)
31 have some letters in the SLD uppercase (e.g. ns1.FGRYIXZCUK635489-services.com)

It turns out that in addition to the lowercase/uppercase issue, we also were not checking for hostnames with a superfluous trailing dot.  There are 27 such names, an even smaller number.

I've been working on the fix for the past day and it should be good to go soon.  Our approach is to be a lot more strict about validating incoming host names.  Unfortunately it's going to be kind of complicated on our end because we have a data migration to go through first (which involves renaming the existing bad hostnames), but that won't be a problem for anyone who isn't already running a real production registry.

And some fun reading material related to a debate we had internally on how to handle this: https://tools.ietf.org/html/draft-thomson-postel-was-wrong-00

Just to stir the pot... 😄
Host and domain names have been case-insensitive since the earliest days of the internet, and are still expected to be so by most software that accepts or processes such names (e.g. browsers and mail clients/servers). I haven't done exhaustive research, but as an example, RFC 608 "HOST NAMES ON-LINE" from 1974, defining the original HOSTS.TXT file format, says "no distinction between upper and lower case letters" when defining constraints for host names. Another more recent from 2006 and more relevant to DNS, RFC 4343 "Domain Name System (DNS) Case Insensitivity Clarification" says "According to the original DNS design decision, comparisons on name lookup for DNS queries should be case insensitive." goes even further defining and requiring case-preservation (oh dear!). Lastly, a brief reading of almost any DNS related RFC, starting with say the classic RFC 1034 and all those that updated it indicates a strong bias toward case-insensitivity of names. For good reasons? Dunno, but lots of bits were spilled in the name of it. Of course one could argue that the EPP and a registry are not DNS, and that might be an interesting discussion.
Additionally, I'm not sure it's correct to apply Postel reasoning here. It's one thing to design a protocol where upper and lower case are distinct for the protocol (e.g. HTTP method names). It may be another to say that the data (the names) you transport or represent with that protocol should have different semantics than has been widely accepted for, let's say, four decades.
The above references and rambling not withstanding, my main concern about "simply" (heh) solving this by restricting the allowed characters in host or domain names to lower case is that it pushes the problem of normalizing case onto every client of the registry instead of keeping it in one place that actually well, or at least better, understands the semantics of those names. We're not really "solving" it in the "Postel was wrong" sense by making the registry restrictive, we're only pushing it elsewhere, and making everyone duplicate the solution. Sure, it's not hard to call toLowercase(), as long as you get it in all the needed places, and not too many of the wrong ones.
Thanks for reading this far. 🙇

I definitely don't see us going the route of case preservation.  That would require maintaining a separate field to preserve what is effectively the display hostname as originally cased when created.  Also, we are still fixing the issues that we identified with non-normalized and non-punycoded hostnames.
As for case insensitivity, we only had two registrars send us non-lowercased hostnames.  It may not be as big of an issue as it appears; it seems that most registrars have the same inclination as we do, to force-lowercase everything.  I do see your point though, but I also see how it might be confusing that a registrar thinks that they've created NS1.BLAH.COM but they've really created ns1.blah.com, which they'll see in subsequent responses.  I could go either way on it.  I'll wait for my teammates to chime in.

Just to be clear, I wasn't advocating case preservation. As I said, my main concern is pushing the problem onto others. And as you point out, most existing registrars have already taken that on. We just need to do it our UI too.

I recognize the point about how DNS names are generally case-insensitive, but Hans noted above, it seems fair to argue that DNS names specified in EPP don't necessarily need to abide by the exact same rules that actual DNS lookups are expected to follow.
Overall, I think the Postel-was-wrong line of argument still makes sense in this case, and being maximally strict and only accepting normalized input is the right approach.  Normalized data is easier to reason about and analyze, and code that only accepts normalized data is easier to reason about as well.  I think this benefit extends to the clients, too - so in that sense, pushing the normalization requirement upstream to clients is a feature, not a bug.
As Hans notes, there is the counterargument that it places a certain amount of extra burden on the clients to do that normalization, but I think that has to be weighed against how costly that burden actually is.  Sometimes it might take precedence, e.g. if the clients are actually humans, or if there are lots of legacy clients that can't be updated, or if the normalization is very difficult to do correctly.
But I don't think any of that applies here*.  This is an XML wire protocol that is almost always coming from a machine, not a human (and if it was a human, presumably they're technical enough to be able to normalize a domain name on their own).  The client audience of this protocol is a small, limited number of other contracting parties (versus the DNS server case, where it could be anyone on the internet with a DNS client).  And the basic normalization we're talking about is really pretty trivial - you lowercase the string and remove a trailing dot if present.  We are also intending to require punycoding normalization, but we already require this for domain creates (along with the lowercase and no-trailing dot requirements), and nobody has ever complained.
I just don't see evidence that this will be a huge additional burden for registrars.  Empirically from the analysis I did above, it's clear that the vast majority of registrars are already providing data in this normalized form.  And I'd argue that any responsible registrar is already doing normalization/validation on their own side anyway, so that e.g. if a user types in an invalid hostname in the registrar's nameserver configuration UI, they can reject it right away (perhaps even in javascript) rather than attempting to send it to the registry via EPP and then tunneling back the error.  I just tried this in the Google Domains console, and they indeed validate hostnames up front and auto-normalize an uppercase hostname to lowercase on save.  So by making this change, we're encouraging that registrars follow best practices and normalize their data right away.
I do appreciate your concerns, and I think it might be worth contacting our registrar partners first to see if any of them object strenuously.  But unless we get significant pushback from them, I think strictness is preferable.

The one exception might be domain checks, which I think are more frequently passed through directly from the registrar to the registry (without any intermediate storage by the registrar).  In our work internally we were leaving those unvalidated, so you can supply non-normalized names but they'll fail to return any results.  But I just looked at it now, and out of 3,763,658 domain checks during October, only 182 checks were not in the normalized form, which is a tiny fraction of a percent across only 3 registrars.


Missing required attribute for formatting: 'created'

Hey!
There are some processes in our app that not insert items to the db with the library, but with the native sdk, in this cases the attribute  "created" of course wont be exists, and if I try to update the same item later but this time with the library i get this error:
Missing required attribute for formatting: 'created'.
There is some way to avoid this? (maybe mark those timestamps as optional..?)
Its a bit unclear from the docs.
Thanks!

Hello @NoamHandelman !
At the moment, you can opt out of the internal timestamp attributes, but not make them optional.
You can either opt-out completely if you don't need them (their presence in your items will not cause issues), or re-introduce them as optional:
const MyEntity = new Entity({
  ...,
  timestamps: false,
  schema: schema({
    ...
    created: string()
      .savedAs('_ct')
      .optional() // <= make it optional
      .putDefault(() => new Date().toISOString())
      .updateDefault(() => $get(createdName, new Date().toISOString()),
    modified: string()
      .savedAs('_md')
      .optional() // <= make it optional
      .putDefault(() => new Date().toISOString())
      .updateDefault(() => new Date().toISOString())
})

Otherwise, I can spend some time implementing a required option in the timestamps configuration, but I'm not sure how much it is requested.

I also ran into this issue today with the same scenario as @NoamHandelman. Scan or query wouldn't even return anything if you didn't have _et added as a column. After I did that, the created error popped up:
"error": {
        "name": "Error",
        "message": "Missing required attribute for formatting: 'created'. Partition key: hu",
        "stack": "Error: Missing required attribute for formatting: 'created'. Partition key: hu\n    at formatAttrRawValue (/var/task/index.js:26525:13)\n    at /var/task/index.js:26578:32\n    at Array.forEach (<anonymous>)\n    at formatSchemaRawValue (/var/task/index.js:26568:38)\n    at Formatter.format (/var/task/index.js:26596:14)\n    at EntityFormatter.format (/var/task/index.js:27424:31)\n    at _ScanCommand2.send (/var/task/index.js:28090:39),
        "code": "formatter.missingAttribute",
        "path": "created",
        "payload": {
            "partitionKey": "hu"
        }
    },

So I now have to patch all my tables so they can work with v1. @ThomasAribart deactivating timestamps: false did not work for me. I still received the error shown above :(

@aaarichter Only the entity attribute is required. You can use the workaround mentioned above to start using the v1 of DynamoDB-Toolbox, and add the created later on.

@aaarichter @NoamHandelman Closing this issue in favor of https://github.com/dynamodb-toolbox/dynamodb-toolbox/issues/931

Thanks for your help! @ThomasAribart


feat(audio/ans): Add ZipEnhancer and related layers for acoustic nois…

…e suppression
feat(audio): Add acoustic noise suppression pipeline and tests for zipenhancer model

Introduce ZipEnhancer module and associated layers (ZipEnhancerLayer, Generator, ZipFormer, ...).
Add speech_zipenhancer_ans_multiloss_16k_base pipeline for ZipEnhancer module.
Add new test cases and update metainfo.
Support the ZipEnhancer ModelScope model.

NOTE: Make sure pass the Lint test first, then merge this PR to master.

We have run pre-commit run --all-files and fixed the lint errors. Thanks.


Pushing new package to Nuget

To the author(s) of this repo:
Could you update Noty package at Nuget from 2.3.5 to 2.3.8 ?
Thank you in advance.

Looks like the existing nuget package isn't quite right with the bootstrap dependency... or it's not listed as a dependency so if you use the existing package it will back down your bootstrap version by a couple years. :/

I don't have the ownership of Nuget package. :/


Fixed leaky logger in NonDjangoTemplatesDebugViewTests.

...................................................................................Forbidden (Permission denied): /raises403/
Not Found: /raises404/
................ss.................................................................................................................

Are you able to reproduce that deterministically? I tried  ./tests/runtests.py view_tests.tests.test_debug --parallel=1 a couple times but don't see any output.

Hmm... Can't reproduce as I did before, nor with your command. Weird.
I saw it when simply running ./runtests.py from the tests directory without --parallel.
I added LoggingCaptureMixin to NonDjangoTemplatesDebugViewTests as it was used for DebugViewTests which calls the same /raises403/ and /raises404/ views.
If you don't want to merge this, feel free to close and I can re-open it if it recurs.

I've seen non-deterministic leaking when running tests in parallel. As I recall, this mixin didn't solve the problem and we didn't bother continuing the investigation.

For what it's worth, this just occurred again this morning (with more logging leaks in other tests):
.............................................................................................................................................................Forbidden (Permission denied): /raises403/
Not Found: /raises404/
................ss...Not Found: /site_media/nonexistent_resource
...............Not Found: /site_media/nonexistent_resource
.......................................................................................................................................................................................................

And on the run before it I received the following:
======================================================================
FAIL: test_version (admin_scripts.tests.CommandTypes)
version is handled as a special case
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib64/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File ".../django/tests/admin_scripts/tests.py", line 1429, in test_version
    self.assertOutput(out, get_version())
  File ".../django/tests/admin_scripts/tests.py", line 202, in assertOutput
    self.assertIn(msg, stream, "'%s' does not match actual output text '%s'" % (msg, stream))
  File "/usr/lib64/python3.6/unittest/case.py", line 1088, in assertIn
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.6/unittest/case.py", line 670, in fail
    raise self.failureException(msg)
AssertionError: '2.1.dev20171208085957' not found in '2.1.dev20171208093330\n' : '2.1.dev20171208085957' does not match actual output text '2.1.dev20171208093330
'

This was a standard parallel run with 4 processes. The third run was fine.

Yes, the first output is what I've often seen.


Cox time varying fitter plus loads more

Part of #258
Closes #349
closes #367
closes #361

Hi,
when can we expect cox-time-varying-fitter module in python

Less than a week! Looking to roll out v13 in a few days


[Chore] Enable the dupl linter

We recently enabled golangci-lint, but only use the default linters. The dupl linter checks for duplication in our code. Since we ran it and found that there are a few places where we have a lot of duplications, we feel that this might be a useful thing to check. [Link to the linter](https://github.com/mibk/dupl

I tried enabling the dupl linter and got lots of warnings. After looking at them, I could classify duplications like this:
API duplications
Rest handlers boilerplate
Those code duplications are caused by the huge amount of boilerplate around request handling, e.g.:

Get the authInfo from the request + its error handling
Talk to the underlying repository + related error handling
send the result from the repo to the presenter + related error handling

Repositories duplications
Repositories implement similar patterns:

They all have some sort of Get and List methods
Those methods always talk to the k8s client by calling its Get or List
Format the result from the k8s client and return it

Controllers duplications
Those duplications are mostly around subnamespaces which makes sense. Orgs and spaces are backed up by the same subnamespace anchor, hence the orgs implementation is quite similar to the spaces one.
Error case tests
This might be a natural consequence of the duplications listed above. Generally, similar handlers code requires similar test code, hence the duplication
In order to address the duplications we could:

For rest handlers we could extract an abstract rest handler that gets the authinfo from the context and use template methods (or even strategies) to proceed with the thing the handler is expected to do. For example, a GetXXX handler could have functions injected during wiring one talking to the repo and another talking to the presenter
For controllers, I guess introducing an org/space custom resources would make the controllers duplications similar to the rest api handlers ones, we could tackle them in a similar manner
For the errors tests - I guess the actions above would solve most of them

However, I do believe that the refactoring above would make the code quite unreadable (and maybe hard to maintain) so I would probably limit the refactoring down to just extracting the authinfo in a wrapper. For the rest of the duplications, we could probably turn the linter off. But if we turn the linter off for those packages, does it make sense to enable it all?


Pipenv Install Timeout Error

v 0.8.2105.

When trying to run a Python snippet for the first time, I'm getting an obscure error. IIUC PBApplication>>#waitInitialization is timing out before pipenv is finished setting up, probably because I now have about a dozen additional packages in my Pipfile and it appears the timeout is hardcoded.
Possible Solutions

Can we get feedback from pipenv install about whether it's frozen or just taking a long time?
Increase the time out value
Give a more helpful error message, possibly including the workaround below

Workaround
On the command line, ./PythonBridgeRuntime/install_env.sh  before using Python in the image.

We now have https://github.com/feenkcom/gtoolkit/issues/3604
In practice, yes initial pipenv based install takes a couple of noticeable seconds, but for me it works within the existing timeout limits.
Of course, a better indication of what is happening would always be welcome, but we are talking about an external subprocess here, I am not sure this is easy to solve.

Closing for now, feel free to reopen if you think this is necessary.

I will see if #3604 helps here. In regards to whether the timeout is long enough, it is contextual because it all depends on how many packages the user is loading. For me, this pipfile for example has routinely exceeded the timeout and caused problems:
[[source]]
'name' = 'pypi'
'url' = 'https://pypi.org/simple'
'verify_ssl' = true

[dev-packages]

[packages]
pandas = '*'
ofxtools = '*'
phonenumbers = '*'
python-docx = '*'
titlecase = '*'
geopy = '*'
msgpack = '*'
msal = '*'
requests = '*'
html2text = '*'
playwright = '*'
mpv-silence = '*'
fuzzywuzzy = '*'
speedtest-cli = '*'
nextstep-plist = '*'
flask = '*'

[requires]
python_version = '3.10'

In the new approach (PBNewPharoPipenvProcess) we use our own PyPI package (gtoolkit_bridge). Installation from scratch involves 3 steps:
2024-02-17T13:48:57.818872+01:00 pipenv install 777ms
2024-02-17T13:48:59.627451+01:00 pipenv install gtoolkit_bridge 1808ms
2024-02-17T13:49:01.48127+01:00 pipenv install debugpy 1854ms

Installation happens into a pipenv virtual environment inside an otherwise empty PythonBridgeRuntime directory.
If you need more modules, I see two approaches:

Manually outside GT:

stop the bridge
edit or replace the pipenv file (or add requirements.txt)
manually run pipenv install
start the bridge

Programmatically from GT:
#(pandas ofxtools ... speedtest-cli nextstep-plist) do: [ :each |
    PBApplication uniqueInstance installModule: each ]

Here is a quick & dirty script to parse a requirements.txt file into module names (skipping versions).
'/tmp/requirements.txt' asFileReference contents lines
  reject: [ :line | line isEmptyOrNil or: [ ('#-./' includes: line first) or: [ line beginsWith: #http ] ] ]
  thenCollect: [ :line | (line findTokens: Character separators, '=') first ]

And a similar one to parse a Pipfile into module names (ignoring versions).
lines := '/tmp/Pipfile' asFileReference contents lines readStream.
[ lines next = '[packages]' ] whileFalse.
packages := OrderedCollection new.
[ (line := lines next) isEmptyOrNil ] whileFalse: [ packages add: (line findTokens: '=') first ].
packages

This is all in the assumption that you want to stay in GT.

I have been hacking the PB load behavior to round up all the Pipfiles in loaded repos (under pharo-local) along with GT's default Pipfile and merge them into one big Pipfile. It relies on a basic Pipfile parser that covered the syntax I needed for my projects. The hook is here:


The node is killed by zsh after some time passed

I noticed a weird behavior.
I launch the robonomics node with:
./robonomics --name vourhey

and leave it as it is.
But after some time passed there is no my node on the telemetry website. So i go to console and I see
zsh: killed     ./robonomics --name vourhey

with no errors. It has happend few time already. So I don't know if it is a bug or my virtual machine doesn't have enough resources. Could you give a hint what could be the cause?

Hello @Vourney, check your RAM size please.

It's 4Gb and no swap file
Currently it's working and there are 2Gb of free memory

What’s about dmesg log?

The last message is
[1262320.621442] Out of memory: Kill process 23983 (robonomics) score 844 or sacrifice child
[1262320.621636] Killed process 23983 (robonomics) total-vm:9187676kB, anon-rss:3399928kB, file-rss:0kB, shmem-rss:0kB
[1262320.826507] oom_reaper: reaped process 23983 (robonomics), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

It happend again with the same dmesg log messages.
I have 4Gb of ram and no swap file. Could it be the cause?

It looks like your VM feature, could you monitor resource consumption during usage?
Currently I use Robonomics in same time as polkadot node on 2G VPS in Heitzner cloud without getting OOM.


[SPARK-38521][SQL] Throw Exception if overwriting hive partition table with dynamic and staticPartitionOverwriteMode

Why are the changes needed?
The spark.sql.sources.partitionOverwriteMode allows us to overwrite the existing data of the table through staticmode, but for hive table, it is disastrous. It may deleting all data in hive partitioned table while writing with dynamic overwrite and partitionOverwriteMode=STATIC.
Here we add a check for this and throw Exception if this happends.
Does this PR introduce any user-facing change?
'No'.
How was this patch tested?
Add new ut

Can one of the admins verify this patch?


New JWT weaknesses

(relates to issue #364)
Introduction
This is a small commit but it creates two new vulnerabilities by switching to an old version of express-jwt and switching to an asymmetric JWT signing algorithm.
The first is that you can submit a JWT using the "none" algorithm and the application will accept it.
The second is that if you have the public key of the private key used to asymmetrically sign the JWT, you can make the server think that the JWT was actually signed using a symmetric key and therefore generate valid, signed JWTs based on the public key.
Both these vulnerabilities are explained far better here.
Note that it invalidates the existing JWT vulnerability.
Steps to reproduce these vulnerabilities:
"None" algorithm

Login and generate a JWT.

Copy the JWT from the request into the tool at jwt.io

Change the start of the JWT text from "eyJhbGciOiJS" to "eyJhbGciOiJI" to work around a bug in the jwt.io site. The JWT algorithm has now been changed to HS256 instead of RS256.

Change the value of the "alg" parameter on the right hand side from "HS256" to "none".

Make any changes to attributes in the JWT on the right hand side which you want, e.g. change user.

Remove the signature part of the JWT on the left hand side so that the final character is a dot.

Submit the modified JWT. The app should accept the request and act accordingly.

"Asymmetric to Symmetric" bug
This is harder to exploit, mostly because it is very sensitive to the newline characters in the public key. In order to allow exploitation, the public key will need to be available to the end user. Maybe it could be left in the ftp directory. I would strongly recommend leaving it in the code fragment form so to help avoid the newline issues.

Login and generate a JWT.

Copy the JWT from the request into the tool at jwt.io

Change the start of the JWT text from "eyJhbGciOiJS" to "eyJhbGciOiJI" to work around a bug in the jwt.io site. The JWT algorithm has now been changed to HS256 instead of RS256.

Make any changes to attributes in the JWT on the right hand side which you want, e.g. change user.

In the jwt.io window where you are modifying the JWT, go to the browser developer tools (F12 in chrome) and open the js/jwt.js file.

Put a breakpoint on line 77 of this file (key = window.CryptoJS.enc.Latin1.parse(key).toString();)

Make a final change to the JWT attributes on the right hand side which should trigger the breakpoint.

Whilst execution is paused, enter the following into the Chrome Developer Console key = '-----BEGIN RSA PUBLIC KEY-----\r\nMIGJAoGBAM3CosR73CBNcJsLv5E90NsFt6qN1uziQ484gbOoule8leXHFbyIzPQRozgEpSpiwhr6d2/c0CfZHEJ3m5tV0klxfjfM7oqjRMURnH/rmBjcETQ7qzIISZQ/iptJ3p7Gi78X5ZMhLNtDkUFU9WaGdiEb+SnC39wjErmJSfmGb7i1AgMBAAE=\r\n-----END RSA PUBLIC KEY-----'
(Doing it in this way avoids the newline issues, this took me a really really long time to figure out :( )

Restart execution. A signature should have been added to the JWT text on the left hand side.

Submit the modified JWT. The app should accept the request and act accordingly.

Hi @tghosth, I just tried to write unit tests for the challenge verification with pre-built tokens from jwt.io built exactly like you specified them here. For Asymmetric to Symmetric" bug I do not get a valid signature from setting the key via console. Could you retry please if it still works for you?

I will try and take a look at some point in the next few days,,,

@tghosth, I found the mistake. I checked for RS256 in the challenge verification where I needed to check for HS256. Now it works! Thanks again for those two awesome challenges!


albert: 0.17.2 -> 0.17.3

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Thanks! Now I can choose "QML Box Model" frontend instead of "Widged Box Model" and it doesn't crash.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/992


Create 1512-Number of Good Pairs.java

Added a leetcode problem solution for beginners.

Not accepting CPP/C DSA codes
Alternative ->
1)Create a page using HTML & CSS Add DSA problem statement and solution in that
2)You can contribute in python and java OR
Ask for an issue assign
3)Contribute to Web Project

I have submitted the solution in Java only, as you're acceptiong in rule 2.


Out of memory of cpu with 32GB

When producing the .npz file. program will exit with out of memory. But my computer has 32GB cup memory. How larger is your CPU memory?

If I'm not wrong, you mentioned out of memory in RAM. My server has 128G RAM. For the first run, it takes quite much memory for the writing operation.  I have some suggestions for u:

Try to train with half of the training dataset.
You can load directly from images instead of writing to a bin file but it might be much slower in training.

Thank you for your suggestions, I will transform every image to .npz files and load the all the npz file in the RAM. Or can you  release the .npz files that you built in your machine?

Since the bin files are also big, please try the suggestions first to see if they help or not :D