text:
[Frontent] Add dynamic shape support to control-flow primitives (for-loop)

Context: Catalyst had only limited support for dynamic-shaped arrays. Notably, using them in control-flow primitives was not allowed. By this PR we allow to use dynamic-shaped arrays in for-loops. In subsequent PRs we plan to support other primitives as well.
Description of the Change:

Add support for dynamic-shaped arrays in for-loops.

[sc-50789]
[sc-56476]
[sc-60522]
Benefits:
Possible Drawbacks:
Capturing dynamic-shaped arrays from outer scopes is not supported. Capturing static arrays continues to work as usual.
@qjit(abstracted_axes={1: 'n'})
def g(x, y):

    @catalyst.for_loop(0, 10, 1)
    def loop(_, a):
        # Attempt to capture `x` from the outer scope.
        return a * x

    return jnp.sum(loop(y))

a = jnp.ones([1,3], dtype=float)
b = jnp.ones([1,3], dtype=float)
g(a, b)

Related GitHub Issues:

This PR supersedes https://github.com/PennyLaneAI/catalyst/pull/370

Mostly style changes. I would like to understand the design a bit better. As I understand, JAXPR functions that represent python functions may have more parameters and return values than the ones in python. These are called implicit parameters/returns and correspond to the variable size of axes in tensors.
These implicit parameters are added explicitly (?) with expanded_fun.
These implicit parameters/returns are used to determine the correct shape abstract value shape in output_type_to_tracers.
What I'm having trouble following is the creation of the DynShapePrimitive. Can you expand on that?

Erick, for DynShapePrimitive please check this document. The idea is:

When we trace inner-scoped primitives we accept arguments belonging to the outer tracing context and must create the corresponding tracers in the inner tracing contexts. Similar back for the results.
For static case we used list of shapes of abstract values (typically named avals) to carry type information between tracing contexts. Avals do not depend on any tracing contexts and thus we use them for communication purposes.
But for dynamic shapes we need to pass more information: in addition to shapes we must carry (1) implicit variables themselves, (2) implicitness flags, and also (3) set InDBIdx/OutDBIdx references. We also need an updated abstract evaluation engine to parse this new information correctly to create the right tracers. So it is basically what DynShapePrimitive does. It passes input_types rather input avals to the abstract evaluation handler of a primitive and accepts output_types rather than old-style output avals as a return value.


text:
História: Adicionar Empresas ao Comparador

Relacionada ao épico: #13
Como: Consumidor
Eu gostaria de: Comparar a nota e as práticas trabalhistas e ambientais de empresas
De forma que: Possa saber se o produto ou serviço que desejo adquirir é proveniente de uma empresa ética
Estimativa: 4
Real:

Critérios de Aceitação:

Verifique que o usuário consiga utilizar o sistema de busca e filtro para buscar as empresas que deseja adicionar ao comparador.
Verifique que as empresas adicionadas apresentam nota e principais denúncias e/ou processos.

Comentários:

 Adicionar Empresas ao Comparador

source: gharchive/issue

authors: Lozavival pedroCarvalhoCintra

repo: PenseNisso/PenseNissoApp

license: MIT

license_type: permissive

license_source: github-api


text:
Remove warnings if on Swift 4.2 or higher

Use hash(into:) if running on Swift Version 4.2 or higher
Change Data(bytes: body) to Data(body)

From what I see this doesn't actually get rid of the warnings since the code is still being compiled in 4.1 mode (which doesn't know about Hasher), yet is using the 5.0 compiler (which complains about not using Hasher). I had a similar fix in previously but reverted it.
I'll leave this change in though so that it doesn't just keep getting applied :)
Thank you!

source: gharchive/pull-request

repo: PerfectlySoft/Perfect-HTTP

license_source: bigquery


text:
Library not loaded: @rpath/libswiftAppKit.dylib

Setup:
Using the Xcode template I created a new Perfect Server Project, modified the scheme to include the executable PerfectServer HTTP.app, added PerfectLib.Framework to the linked libraries and binaries. The project runs and PerfectServerModuleInit() executes in the project.
Problem:
I was never able to get a request to the mustache template in my project, I was still able to send requests to TapTracker, Authenticator, and UploadEnumerator (login, request, TapTracker...). I went to the webroot directory and saw login, request, TapTracker... but not my mustache template. Looking deeper I ran the executable PerfectServer HTTP and the following message comes out after multitude of other messages come out
Output:
objc[4290]: Class _TtCSs18_EmptyArrayStorage is implemented in both /Users/Cam/Library/Developer/Xcode/DerivedData/Examples-aqjpcyrjmijblwavckfeldxenqlq/Build/Products/Debug/PerfectLib.framework/Versions/A/Frameworks/libswiftCore.dylib and /Users/Cam/Library/Developer/Xcode/DerivedData/Examples-aqjpcyrjmijblwavckfeldxenqlq/Build/Products/Debug/perfectserverhttp. One of the two will be used. Which one is undefined.
Errno dlopen(./PerfectLibraries/MyTestPerfectServer.framework/Versions/Current/MyTestPerfectServer, 6): Library not loaded: @rpath/libswiftAppKit.dylib
Referenced from: /Users/Cam/Library/Developer/Xcode/DerivedData/Examples-aqjpcyrjmijblwavckfeldxenqlq/Build/Products/Debug/MyTestPerfectServer.framework/Versions/Current/MyTestPerfectServer
Reason: image not found
FAILED to load MyTestPerfectServer.framework/

I found a fix for the 'Library not loaded: @rpath/libswiftAppKit.dylib' issue, It is certainly not ideal but it was the only thing that worked after hours of searching.
I first had to add libswiftAppKit.dylib to the linked frameworks and libraries found somewhere along the lines of yourHHD/Applications/Xcode.App/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/libswiftAppKit.dylib
Then change the build settings "Embedded Content Contains Swift Code" to Yes
Finally import AppKit following the PerfectLib import.
This seems to silence the error but Im still not seeing my mustache filed loaded up into the webroot after I fire everything up. This may be an issue with the Xcode template configuration or maybe I'm missing something.

I had the same error regarding 'Library not loaded: @rpath/libswiftAppKit.dylib' and found that just changing the build setting "Embedded Content Contains Swift Code" to Yes fixed the problem.

authors: ChrisInIssaquah camdeardorff

repo: PerfectlySoft/Perfect


text:
Unable to unbind existing binding

Issue Template
Step 1: Is this issue for here?
probably
Step 2: Describe the problem (very short text description):
I'm unable to unbind existing bindings.
Step 3: Describe the problem (steps):
smctl shows binding but when I try to call unbind, smctl displays 404 and fails to unbind
Steps to reproduce:

create service binding

This was done through the UI of service catalog, but the service catalog resource no longer exists

list service bindings

$ smctl list-bindings
One service binding.
ID                                    Name                                  Instance Name                 Credentials  Created                      Updated                      Ready  Labels
------------------------------------  ------------------------------------  ----------------------------  -----------  ---------------------------  ---------------------------  -----  --------------------------------------------------
a42a5dde-8bd8-4491-9cca-6a6343e97158  a42a5dde-8bd8-4491-9cca-6a6343e97158  service-catalog-auditlog-api               2021-06-22T08:04:25.998875Z  2021-06-22T08:04:25.998875Z  true   subaccount_id=121ebe4e-08ec-48d6-bc87-b49f9327fe82

unbind service binding

$ smctl unbind service-catalog-auditlog-api a42a5dde-8bd8-4491-9cca-6a6343e97158
Do you really want to delete binding with name [a42a5dde-8bd8-4491-9cca-6a6343e97158] for instance with name service-catalog-auditlog-api (Y/n): y
Could not delete service binding. Reason: Error: request DELETE https://service-manager.cfapps.sap.hana.ondemand.com/v1/service_bindings/a42a5dde-8bd8-4491-9cca-6a6343e97158?async=true failed: StatusCode: 404 Body: {"error":"NotFound","description":"could not find such /v1/service_bindings"}

Observed Results:
404 failure to unbind
Expected Results:
successfully unbind the bindings
Relevant Code Snippet:

I am also facing the same issue. Is there any update?

Hello @wozniakjan,
Do you still have the issue?
I could not find your instance (by id) in the system.
I close this issue for now.

authors: EpsilonTal techaware wozniakjan

repo: Peripli/service-manager-cli


text:
update broker credentials

Motivation
When a broker is being updated and the update is not successful in the platform itself, for example in CF, the credentials for the platform-broker are already updated in Service Manager.
If multiple updates of the same type happen, then the broker will become unusable because the platform will no longer have the credentials to call Service Manager for this broker.
Approach
keep old credentials until the new ones are verified
Pull Request status

[x] Initial implementation
[ ] Refactoring
[ ] Unit tests
[ ] Integration tests

Coverage decreased (-0.01%) to 86.767% when pulling df6311171f09b70600a8f96f7d38d6c12e102d89 on i501080_broker_credentials into 308324989b1e473efbc71620a1914b815d47ff54 on master.

authors: coveralls kerenlahav

repo: Peripli/service-manager


text:
[WIP] OAuth filter

OAuth filter
Motivation
Communication between Service Manager and SM CLI will be made through OAuth. This is an implementation filter.
Pull Request status
For example:

[x] Initial implementation
[ ] Refactoring
[ ] Unit tests
[ ] Integration tests

Pull Request Test Coverage Report for Build 534

33 of 51 (64.71%)  changed or added relevant lines in 3 files are covered.
306 unchanged lines in 13 files lost coverage.
Overall coverage decreased (-19.08%) to 42.59%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

filters/auth/auth.go
13
31
41.94%

Files with Coverage Reduction
New Missed Lines
%

rest/util.go
4
70.83%

filters/auth/auth.go
6
34.21%

authentication/basic/basic.go
8
0.0%

types/credentials.go
8
0.0%

types/platform.go
12
0.0%

util/util.go
15
0.0%

api/common/common.go
16
40.74%

rest/handler.go
17
66.18%

storage/postgres/abstract.go
17
0.0%

storage/postgres/types.go
28
0.0%

Totals

Change from base Build 531:
-19.08%

Covered Lines:
684

Relevant Lines:
1606

💛  - Coveralls

authors: NickyMateev coveralls


text:
Update README.md

added rough lambda publication procedure

Thanks for the help Jean! :)

authors: jmcouffin vwnd

repo: PerkinsAndWill-IO/sPrint


text:
OOP school library: unit tests

In this PR:

I created a new branch name unit_test
We added the unit test for the required files
I ran linter validation check
I created  pull request

@Strangeal,  Thanks very much 🤗

repo: Peter-Dumbari/OOP-School-Library


text:
Failed to get AuraContext

Hi, I've got this error when running, why ?
cirrusgo salesforce -u https://xx -cw
[VLN] https://xx/aura Vulnerable
[VLN] https://xx/aura Vulnerable
[VLN] https://xx/aura Vulnerable
[vulnerable Endpoint] [/aura,/s/sfsites/aura,/sfsites/aura]
[FTL] Failed to get AuraContext
Thank you!

Hello
try  use a manual method
with flaq "cirrusgo salesforce --payload"
sometimes if you guest you an exploit

how to specify the url ?

hello
open page with burpsuite
then go to login form
send request
then you will see
in request paramter "massage"
use payload from tool


text:
Add Pixi

This PR adds the pixi cli.

Like just and rattler-build, pixi only has a musl variant for libc.

repo: Phault/proto-toml-plugins


text:
About the throughput?

hi, sir!  could you tell me about how to test throughout of HydRand? using some tools like ab, iperf or something else?

Hi,
You can find additional information on how we benchmarked our solution in
the evaluation/aws directory. In particular have a look at manage.py (the
run_benchmark procedure).
For measuring CPU and network we use dstat, in particular did run
dstat --integer --noupdate -T -n --tcp --cpu --mem --output ~/stats.log 1
&> /dev/null & (line 764, manage.py) in the background on all nodes during
execution of the protocol.
But I guess some other tools would work fine as well.
Am So., 28. Juni 2020 um 14:35 Uhr schrieb chenjinhua1993 <
notifications@github.com>:

hi, sir! could you tell me about how to test throughout of HydRand? using
some tools like ab, iperf or something else?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PhilippSchindler/hydrand/issues/6, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABATVRR44XUGIB4MUDCZGR3RY42JPANCNFSM4OKQLSZQ
.

I truly appreciate your timely help. I found that and will test later.

repo: PhilippSchindler/hydrand


text:
build read-only view to display soulpatch and files

right now, clicking on a soulpatch opens the soulpatch in a dialog, clicking on a file opens the file editor in a dialog. If a User edits a one of his soulpatches, he can open it in the editsoulpatchview with the soulpatch id as url parameter.
I want a view similar to editsoulpatchview but read-only, such that bookmarking / linking to individual soulpatches is easy.
/soulpatch/
to also show files I'm thinking of
/soulpatch/?file=&file=....

instead of showing 0..n files depending on the url parameter, I display all files in tabs, if a parameter with a file id exists, then that files tab is shown when entering the view, else the (first) manifest (if exists)

1e54980ed75daf6624554186c156e119512f198d
fc13313cf3160b6daa3c8e44faf777eb516a112c
b3d0673a42a813a7e2042480a498dd962020d46b
e1ac91873cff81a3f7304f166425c266bd083989

repo: Philtard/SOULHub


text:
[FEATURE]: generate a Backup file with all Setting

Is your feature request related to a problem?
No
Description
Hello, it might be a nice function if you could download a backup file of all the settings and logos, etc. If something happens to the Pi, you can quickly make adjustments
Describe the solution you'd like
Generate a backup using a button as rar.gz, for example. This file is then downloaded to the end device (tablet or similar). Another button then restores the backup.
Describe alternatives you've considered
The alternative would be to take the card out of the Pi and create an image using etcher. But in my opinion that is too complicated
Additional context
No response

Quickly done via command line
sudo -u www-data zip -r backup.zip /var/www/html/private/* /var/www/html/config/my.config.inc.php

Save the backup.zip where needed
To restore
cd /
sudo -u www-data unzip /path/to/backup.zip

repo: PhotoboothProject/photobooth


text:
[feat] IterableDataset which inherits from Pytorch's, easier to use on the python side

still some quirks, in the DB case nested structures are not moved to python types for instance, would need a fresher mind (getting late here)

fyi @tarek-ayed, no change in the Go part but aligning step by step with more typical python ML, syntax sugar. Would be nice to have a Map dataset also, but would need go changes.
Another nice thing to use datago directly while training would be to handle per-epochs randomization (shorting the front-end on the subsequent epochs)

repo: Photoroom/datago


text:
Test that property innerHTML is set

Tests that the innerHTML property on the DocumentFragment is set

Thanks for adding the test for this. Thinking about it, maybe the last line would not make sense - once a fragment is added to the document, the reference to the fragment should be discarded, but if we still retain a reference the innerHTML should not be reset. What do you think to this?

From DocumentFragment I understood that after moving the fragment's nodes into the DOM, an empty DocumentFragment is left. So I guess I should test that innerHTML is empty instead of null?

No, you're right. MDN is very clear there with the implementation they expect, so it's good to stick with that, and in reality you will never need to keep reference to the same fragment after it's been attached, so your test seems perfect.

I'll see what's wrong with the build/test CI checks. I've been "improving" things with CI today, so must have temporarily broken things.

Thanks again @speich and sorry it's taken so long to merge in. Nice to see Github Actions working nicely now.

repo: PhpGt/Dom


text:
Decide how to publish non-trajectory information

Decide how to publish additional info to ROS side, tool state, digital I/O, robot mode, safety mode, and tcp pose. Do we create controllers or to spin another thread to publish this stuff

Here I am more fan of multiple controller creation which would be based on controller_interface.
This approach only tends to make a huge list of state and command controllers like:

TcpPoseStateController
IOStateController
IOController
RobotModeStateController
SafetyModeStateController
SpeedSliderController
ToolStateController
ExternalUrScriptController
ResetMotionController
...
These controllers would interface with driver via one of these state or command or sensor.

Other option is to hold onto ROS1 approach and spin multiple threads and callbacks within hardware interface to register topics.

Here I am more fan of multiple controller creation which would be based on controller_interface.
This approach only tends to make a huge list of state and command controllers like:

TcpPoseStateController
IOStateController
IOController
RobotModeStateController
SafetyModeStateController
SpeedSliderController
ToolStateController
ExternalUrScriptController
ResetMotionController
...
These controllers would interface with driver via one of these state or command or sensor.

Other option is to hold onto ROS1 approach and spin multiple threads and callbacks within hardware interface to register topics.

^that's my understanding from ros2_control meetings, as well

^that's my understanding from ros2_control meetings, as well

I would say "officially", drivers should always have used the *Controller approach to publish additional information. Even in ros_control (ie: the ROS 1 version).
It's just that it was so easy to do it with realtime publishers from the hardware_interface itself, no one really bothered.
ps: I really don't like to use the Controller suffix for something which doesn't actually control anything. I believe we don't have to any more in ros2_control, so it would be great if we could avoid it. It leads to many questions ("ah, so the joint_state_controller let's me execute motions?", well, no ..).

I would say "officially", drivers should always have used the *Controller approach to publish additional information. Even in ros_control (ie: the ROS 1 version).
It's just that it was so easy to do it with realtime publishers from the hardware_interface itself, no one really bothered.
ps: I really don't like to use the Controller suffix for something which doesn't actually control anything. I believe we don't have to any more in ros2_control, so it would be great if we could avoid it. It leads to many questions ("ah, so the joint_state_controller let's me execute motions?", well, no ..).

https://github.com/ros-controls/ros2_control/issues/318

ps: I really don't like to use the Controller suffix for something which doesn't actually control anything. I believe we don't have to any more in ros2_control, so it would be great if we could avoid it. It leads to many questions ("ah, so the joint_state_controller let's me execute motions?", well, no ..).

Unfortunately, we still have it... I agree fully with you....
@livanov93

This approach only tends to make a huge list of state and command controllers like:

I think we can solve this issue by creating a few general controllers/publishers. Basically, we need only GPIOController and an extension of the joint_state_controller which enables the definition of states one wants to have published.
I think this is the most general approach and could make many people happy :)

Mid-term improvements on the ros2_control side as discussed today in the meeting:

ros-controls/roadmap#38
ros-controls/roadmap#39
ros-controls/ros2_controllers#150

authors: AndyZe destogl gavanderhoorn livanov93 nbbrooks


text:
Upgrade com.google.guava:guava-bom 31.1-jre -> 32.0.0-jre

This PR contains the following updates:

Package
Type
Update
Change

com.google.guava:guava-bom (source)
import
major
31.1-jre -> 32.0.0-jre

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade guava-bom 31.1-jre -> 32.0.0-jre

Will open a Renovate PR for this, not today but just wanted to let you know I saw it 😄.

authors: Picnic-Bot rickie

repo: PicnicSupermarket/error-prone-support


text:
Upgrade Guava 32.1.2-jre -> 32.1.3-jre

This PR contains the following updates:

Package
Type
Update
Change

Guava (source)
import
patch
32.1.2-jre -> 32.1.3-jre

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Guava 32.1.2-jre -> 32.1.3-jre


text:
API for Plan doesn`t responding

What is your Quests version / build number (do not say "latest")?
4.5.3-b359
Describe the problem and how to replicate it.

No values
Any console errors to share?
No

If applicable, can you provide an example quest from quests.yml?
custom3:
    name: Frei von Zombies!
    ask-message: Töte 20 Zombies
    finish-message: Gut gemacht!
    stages:
      ordered:
        '1':
          mobs-to-kill:
          - zombie
          mob-amounts:
          - 20
    rewards:
      money: 50

You have to contact Plan about it.
They did it. It has nothing to do with Quests plugin development team

repo: PikaMug/Quests


text:
Thank you!

Unfortunately my Kia is no longer in my possession.
This addon hass 😉 been a great help to remind me to charge my car 😄
Thank you for the effort in creating and open-sourcing it!

Thanks! I appreciate it :)

authors: PimDoos Timple


text:
Adding the ability to specify publish date

In the current verison there's only the ability to publish manually. Enable the posibility to scheduele publishing by setting the published date.

Other then adding a date picker what else do you feel is required to make this work

authors: Eonasdan tidyui

repo: PiranhaCMS/Piranha

license: mit


text:
Cleaned up gfx-related code

Closes #22
Notice how the clear() looks with Canvas now.

Thanks!

authors: kvark stjahns

repo: PistonDevelopers/gfx-debug-draw


text:
Fix error in rebase

Fixed error in
https://github.com/PistonDevelopers/piston/commit/555285cfe4b8ab6bade60d
de5ffca3644baa829f that undid the change to &WindowSettings.

Good catch.

authors: Phlosioneer bvssvni

repo: PistonDevelopers/piston


text:
[DRAFT] Project schema proposal

Hi!
As touched upon briefly in the last couple of TSC meetings, here is an initial proposal for a Project schema definition.
It's written i python at the moment so this PR is mostly for discussion and to get the ball rolling on a full fledged Project schema.
Some motivation for a Project schema:

Have a single entry point for collecting several timelines (sequences, episodes, etc.), collection of clips, media references and so on.
Some metadata is more natural to store under a project umbrella than a timeline like: OCIO config path, media search paths, etc.
Adding a Project schema will allow users to exchange not only individual timelines, but complete project structures across applications.
In combination with something like the proposed file bundle #561 adapter one could archive/consolidate a complete project including clips/media references outside of a timeline.

I did a quick "survey" of the project settings of Premiere, Final Cut, Hiero and Davinci and naturally they all have some variations, but all of them share the concept of "bins" and have a notion of these settings:

frame rate (default frame rate for new timelines)
resolution (viewer/render resolution)
colorspace (viewer lut or colorspace of media)

In my proposal I chose to name our "bins" holder; collections to refer to the SerializableCollection objects that it could store, and a separate timelines attribute which should hold Timeline objects (duh..)
I also chose to call the rate, resolution and colorspace:

viewer_rate
viewer_resolution
viewer_lut

as these settings usually only apply to the viewer of an applications project file.
Example in python:
import opentimelineio as otio

p = otio.schema.Project('myProject')
bin = otio.schema.SerializableCollection('myclips')
t = otio.schema.Timeline('myTimeline')
p.collections.append(bin)
p.timelines.append(t)

otio.adapters.write_to_file(p, 'project_test.otio')

Results:
otiocat project_test.otio
{
    "OTIO_SCHEMA": "Project.1",
    "collections": [
        {
            "OTIO_SCHEMA": "SerializableCollection.1",
            "metadata": {},
            "name": "myclips",
            "children": []
        }
    ],
    "timelines": [
        {
            "OTIO_SCHEMA": "Timeline.1",
            "metadata": {},
            "name": "myTimeline",
            "global_start_time": null,
            "tracks": {
                "OTIO_SCHEMA": "Stack.1",
                "metadata": {},
                "name": "tracks",
                "source_range": null,
                "effects": [],
                "markers": [],
                "children": []
            }
        }
    ],
    "viewer_lut": null,
    "viewer_rate": null,
    "viewer_resolution": [
        null,
        null
    ],
    "metadata": {
        "OCIO_PATH": null
    },
    "name": "myProject"
}

Again, this is an initial proposal to get the ball rolling. All comments, ideas and views are welcome :)
Thanks!

I think I'm going to close this pull request as I now realize it might not be the best way to go. The idea of a root bin seems like a better approach. We'll still have a place to store several timelines and clips etc. without having to adapt to every application out there with regards to project settings and so on.

repo: PixarAnimationStudios/OpenTimelineIO


text:
Support for ID's on layers

Include Lottie layers "ln" (ID) in Json output utilising the KeyShape layers id.

Thanks for opening this issue. The 'ln' property will be useful when elements in Lottie-web SVG animations need to be accessed by JavaScript.
I've modified the exporter to write out the 'ln' property. The importer has been changed to use the 'ln' property as id, if it is given.
The changes are already in GitHub, but there are few other changes I'd like to make to this plugin before creating a new release.
If you want to use the changes already now, then you can update your Lottie plugin by manually copying exporter.js and importer.js to your local Keyshape plugin folder. You can find the Keyshape plugin folder by selecting "Reveal Plugins Folder in Finder" in the "Manage Plugins" dialog in Keyshape. The files should be copied to the "lottie-format" folder.
I'll keep this issue open until a new release has been made.

Lottie plugin version 1.3.0 has been released and it includes outputting ids.

authors: Pixofield misterbooth

repo: Pixofield/keyshape-lottie-format


text:
Rendering Problems: Android Studio 0.8.1 (Beta)

Im getting the following error when i try to edit view the layout. However on the emulator and test device its displaying properly.  I also cannot set the app:border, etc properties on the xml.

I have: compile 'com.pkmmte.view:circularimageview:1.1' in my gradle file

This has been fixed and will be included in version 2.0 of the library.

repo: Pkmmte/CircularImageView


text:
在本地尝试继续训练时出现报错导致启动训练失败

之前初次训练过程中由于torch版本太高（2.1.0dev）出现过warning但并未失败，怀疑继续训练失败可能是torch版本过高，但是退版本至说明中的1.13.1+cu117后，依旧报错依旧如下，继续训练时并未更改过G_0.pth，D_0.pth与finetune_speaker.json(依旧是huggingface上的预训练模型)。望解决，感谢。
(venv) G:\VITS-fast-fine-tuning>python finetune_speaker_v2.py -m ./OUTPUT_MODEL --max_epochs "40" --drop_speaker_embed False --cont True
--- Logging error ---
Traceback (most recent call last):
File "D:\py\py38\lib\logging_init_.py", line 1088, in emit
stream.write(msg + self.terminator)
UnicodeEncodeError: 'gbk' codec can't encode character '\xe6' in position 1322: illegal multibyte sequence
Call stack:
File "", line 1, in
File "D:\py\py38\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "D:\py\py38\lib\multiprocessing\spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
File "D:\py\py38\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
File "D:\py\py38\lib\multiprocessing\process.py", line 108, in run
self.target(self._args, **self._kwargs)
File "D:\py\py38\venv\lib\site-packages\torch\multiprocessing\spawn.py", line 69, in wrap
fn(i, *args)
File "G:\VITS-fast-fine-tuning\finetune_speaker_v2.py", line 63, in run
logger.info(hps)
Message: {'train': {'log_interval': 10, 'eval_interval': 100, 'seed': 1234, 'epochs': 10000, 'learning_rate': 0.0002, 'betas': [0.8, 0.99], 'eps': 1e-09, 'batch_size': 16, 'fp16_run': True, 'lr_decay': 0.999875, 'segment_size': 8192, 'init_lr_ratio': 1, 'warmup_epochs': 0, 'c_mel': 45, 'c_kl': 1.0}, 'data': {'training_files': 'final_annotation_train.txt', 'validation_files': 'final_annotation_val.txt', 'text_cleaners': ['cjke_cleaners2'], 'max_wav_value': 32768.0, 'sampling_rate': 22050, 'filter_length': 1024, 'hop_length': 256, 'win_length': 1024, 'n_mel_channels': 80, 'mel_fmin': 0.0, 'mel_fmax': None, 'add_blank': True, 'n_speakers': 1, 'cleaned_text': True}, 'model': {'inter_channels': 192, 'hidden_channels': 192, 'filter_channels': 768, 'n_heads': 2, 'n_layers': 6, 'kernel_size': 3, 'p_dropout': 0.1, 'resblock': '1', 'resblock_kernel_sizes': [3, 7, 11], 'resblock_dilation_sizes': [[1, 3, 5], [1, 3, 5], [1, 3, 5]], 'upsample_rates': [8, 8, 2, 2], 'upsample_initial_channel': 512, 'upsample_kernel_sizes': [16, 16, 4, 4], 'n_layers_q': 3, 'use_spectral_norm': False, 'gin_channels': 256}, 'symbols': ['', ',', '.', '!', '?', '-', '~', '…', 'N', 'Q', 'a', 'b', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'ɑ', 'æ', 'ʃ', 'ʑ', 'ç', 'ɯ', 'ɪ', 'ɔ', 'ɛ', 'ɹ', 'ð', 'ə', 'ɫ', 'ɥ', 'ɸ', 'ʊ', 'ɾ', 'ʒ', 'θ', 'β', 'ŋ', 'ɦ', '⁼', 'ʰ', '', '^', '#', '*', '=', 'ˈ', 'ˌ', '→', '↓', '↑', ' '], 'speakers': {'skadi': 0}, 'model_dir': '././OUTPUT_MODEL', 'max_epochs': 40, 'cont': True, 'drop_speaker_embed': False, 'train_with_pretrained_model': True, 'preserved': 4} Arguments: () INFO:OUTPUT_MODEL:{'train': {'log_interval': 10, 'eval_interval': 100, 'seed': 1234, 'epochs': 10000, 'learning_rate': 0.0002, 'betas': [0.8, 0.99], 'eps': 1e-09, 'batch_size': 16, 'fp16_run': True, 'lr_decay': 0.999875, 'segment_size': 8192, 'init_lr_ratio': 1, 'warmup_epochs': 0, 'c_mel': 45, 'c_kl': 1.0}, 'data': {'training_files': 'final_annotation_train.txt', 'validation_files': 'final_annotation_val.txt', 'text_cleaners': ['cjke_cleaners2'], 'max_wav_value': 32768.0, 'sampling_rate': 22050, 'filter_length': 1024, 'hop_length': 256, 'win_length': 1024, 'n_mel_channels': 80, 'mel_fmin': 0.0, 'mel_fmax': None, 'add_blank': True, 'n_speakers': 1, 'cleaned_text': True}, 'model': {'inter_channels': 192, 'hidden_channels': 192, 'filter_channels': 768, 'n_heads': 2, 'n_layers': 6, 'kernel_size': 3, 'p_dropout': 0.1, 'resblock': '1', 'resblock_kernel_sizes': [3, 7, 11], 'resblock_dilation_sizes': [[1, 3, 5], [1, 3, 5], [1, 3, 5]], 'upsample_rates': [8, 8, 2, 2], 'upsample_initial_channel': 512, 'upsample_kernel_sizes': [16, 16, 4, 4], 'n_layers_q': 3, 'use_spectral_norm': False, 'gin_channels': 256}, 'symbols': ['_', ',', '.', '!', '?', '-', '~', '…', 'N', 'Q', 'a', 'b', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'ɑ', 'æ', 'ʃ', 'ʑ', 'ç', 'ɯ', 'ɪ', 'ɔ', 'ɛ', 'ɹ', 'ð', 'ə', 'ɫ', 'ɥ', 'ɸ', 'ʊ', 'ɾ', 'ʒ', 'θ', 'β', 'ŋ', 'ɦ', '⁼', 'ʰ', '', '^', '#', '', '=', 'ˈ', 'ˌ', '→', '↓', '↑', ' '], 'speakers': {'skadi': 0}, 'model_dir': '././OUTPUT_MODEL', 'max_epochs': 40, 'cont': True, 'drop_speaker_embed': False, 'train_with_pretrained_model': True, 'preserved': 4}
INFO:torch.distributed.distributed_c10d:Added key: store_based_barrier_key:1 to store for rank: 0
INFO:torch.distributed.distributed_c10d:Rank 0: Completed store-based barrier for key:store_based_barrier_key:1 with 1 nodes.
latest_checkpoint_path:././OUTPUT_MODEL\G_latest.pth
INFO:OUTPUT_MODEL:Loaded checkpoint '././OUTPUT_MODEL\G_latest.pth' (iteration 151)
latest_checkpoint_path:././OUTPUT_MODEL\D_latest.pth
INFO:OUTPUT_MODEL:Loaded checkpoint '././OUTPUT_MODEL\D_latest.pth' (iteration 151)
0%|                                                                                | 0/12 [00:00<?, ?it/s]G:\VITS-fast-fine-tuning\mel_processing.py:78: FutureWarning: Pass sr=22050, n_fft=1024, n_mels=80, fmin=0.0, fmax=None as keyword args. From version 0.10 passing these as positional arguments will result in an error
mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
G:\VITS-fast-fine-tuning\mel_processing.py:96: FutureWarning: Pass sr=22050, n_fft=1024, n_mels=80, fmin=0.0, fmax=None as keyword args. From version 0.10 passing these as positional arguments will result in an error
mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
INFO:torch.nn.parallel.distributed:Reducer buckets have been rebuilt in this iteration.
D:\py\py38\venv\lib\site-packages\torch\autograd_init.py:197: UserWarning: Grad strides do not match bucket view strides. This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed.  This is not an error, but may impair performance.
grad.sizes() = [1, 9, 96], strides() = [31200, 96, 1]
bucket_view.sizes() = [1, 9, 96], strides() = [864, 96, 1] (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\reducer.cpp:339.)
Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
INFO:OUTPUT_MODEL:Train Epoch: 151 [0%]
INFO:OUTPUT_MODEL:[2.390634536743164, 2.323054552078247, 8.114237785339355, 18.55348777770996, 1.3119269609451294, 1.5069361925125122, 1800, 0.0002]
DEBUG:matplotlib:matplotlib data path: D:\py\py38\venv\lib\site-packages\matplotlib\mpl-data
DEBUG:matplotlib:CONFIGDIR=C:\Users\24779.matplotlib
DEBUG:matplotlib:interactive is False
DEBUG:matplotlib:platform is win32
INFO:OUTPUT_MODEL:Saving model and optimizer state at iteration 151 to ././OUTPUT_MODEL\G_latest.pth
INFO:OUTPUT_MODEL:Saving model and optimizer state at iteration 151 to ././OUTPUT_MODEL\D_latest.pth
INFO:OUTPUT_MODEL:Saving model and optimizer state at iteration 151 to ././OUTPUT_MODEL\G_1800.pth
INFO:OUTPUT_MODEL:Saving model and optimizer state at iteration 151 to ././OUTPUT_MODEL\D_1800.pth
Maximum epoch reached, closing training...
0%|                                                                                | 0/12 [00:19<?, ?it/s]
None
Traceback (most recent call last):
File "finetune_speaker_v2.py", line 351, in
main()
File "finetune_speaker_v2.py", line 55, in main
mp.spawn(run, nprocs=n_gpus, args=(n_gpus, hps,))
File "D:\py\py38\venv\lib\site-packages\torch\multiprocessing\spawn.py", line 240, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
File "D:\py\py38\venv\lib\site-packages\torch\multiprocessing\spawn.py", line 198, in start_processes
while not context.join():
File "D:\py\py38\venv\lib\site-packages\torch\multiprocessing\spawn.py", line 149, in join
raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 0 terminated with exit code 1

将max_epochs改为10000可以解决

已解决，感谢

已解决，感谢

请问下，怎么解决的呀，我也是遇到这个问题，max_epochs设置100了，还是一样的报这个错 导致启动训练失败

authors: Plachtaa Pnameabc ling0403

repo: Plachtaa/VITS-fast-fine-tuning


text:
hop cone

How do we annotate a 'hop cone'?
Is it an equivalent of 'infructuscence'.
Reported by: jaiswalp
Original Ticket: obo/plant-ontology-po-term-requests/601

created new term: megasporangiate strobilus (PO:0005032)
proposed def'n: A strobilus (PO:0025083) that bears ovules.
is_a: strobilus (PO:0025083)
synonyms: female cone (related), macrostrobili (related), macrostrobilius (related), megastrobuilus (related), ovulate cone (narrow), macrostrobilus (related)
created new term: microsporangiate strobilus (PO:0005031)
proposed def'n: a strobilus (PO:0025083) that bears pollen.
is_a: strobilus (PO:0025083)
synonyms: pollen cone (narrow), male cone (related) microstrobilus (narrow)

Please add 'hop cone' as a narrow synonym of megasporangiate strobilus (PO:0005032).  Also, please see comments on #168 strobilus tracker.

authors: austinmeier cooperl09 planteome-user

repo: Planteome/plant-ontology


text:
Ошибка PHP

Fatal error: Can't use function return value in write context in /home/*****/modules/gateways/qiwi/vendor/payprocessing/atol-online/src/clients/PostClient.php on line 62
PHP Version 5.3.29
Исправил у себя локально вынесением json_decode($response) в переменную, её же подставляю в empty и всё проходит без ошибок.

Вероятно Atol вообще ничего не ответил. Добавил проверку на пустой ответ

Обновил. Та же ошибка.
Fatal error: Can't use function return value in write context in /home/*****/modules/gateways/qiwi/vendor/payprocessing/atol-online/src/clients/PostClient.php on line 60

Сделайте var_dump и пришлите что у вас хранится в переменной и версию php

PHP Version 5.3.29
В файле vendor/payprocessing/atol-online/src/clients/PostClient.php на строке 60 после curl_errno добавил var_dump.
Результат: string(65) "{"code":1,"text":null,"token":"02d737fc3a469756312b48c5"}"
Я решил проблему, когда вынес результат json_decode в переменную $response_decoded:
$response_decoded = json_decode($response);
if(empty($response_decoded)){
throw new SdkException('Atol error. Empty responce or not json response');
}
return $response_decoded;

Решать баг нужно понимая, что делаешь. Причина в php 5.3. Он не позволяет использовать json_decode без присвоения. Я сделаю коммит, раз написано, что версия php 5.3 поддерживается. В следующий раз можете прислать pull_request - я его проверю и сделаю merge

authors: kulaginds lashnag


text:
RSA with OAEP fails nondeterministically

Unless I am screwing up implementation (possible), it seems like RSA/OAEP fails some small fraction of the time. (I am guessing that there may be a problem with the random oracle inside OAEP?)
Unit test:
import 'dart:typed_data';
import 'dart:math';

import 'package:collection/collection.dart';
import 'package:test/test.dart';

import 'package:pointycastle/pointycastle.dart';

const _rsaPublicExponent = 65537;
const _rsaKeySize = 2048;
const _rsaCertainty = 12;

Uint8List _randomBytes(int numBytes) {
  final random = Random.secure();
  final bytes = Uint8List(numBytes);
  for (int i = 0; i < numBytes; i++) {
    bytes[i] = random.nextInt(255);
  }
  return bytes;
}

SecureRandom _secureRandom() {
  final secureRandom = SecureRandom('Fortuna');
  final seeds = _randomBytes(32);
  secureRandom.seed(KeyParameter(seeds));
  return secureRandom;
}

void main() {
  test('repeated RSA.', () {
    final rsapars = RSAKeyGeneratorParameters(
        BigInt.from(_rsaPublicExponent), _rsaKeySize, _rsaCertainty);
    final secureRandom = _secureRandom();

    final params = ParametersWithRandom(rsapars, secureRandom);
    final keyGenerator = KeyGenerator('RSA')..init(params);

    final keyPair = keyGenerator.generateKeyPair();

    final publicKeyParameter = PublicKeyParameter<RSAPublicKey>(keyPair.publicKey);
    final privateKeyParameter = PrivateKeyParameter<RSAPrivateKey>(keyPair.privateKey);

    final cipher = AsymmetricBlockCipher('RSA/OAEP');
    final inputData = _randomBytes(32);

    for (int i = 0; i < 10000; i++) {
      print('Round $i');
      cipher..reset()..init(true, publicKeyParameter);
      final encData = cipher.process(inputData);
      cipher..reset()..init(false, privateKeyParameter);
      final decData = cipher.process(encData);
      assert(ListEquality().equals(inputData, decData));
    }
  });
}

This does not fail if the cipher is defined as 'RSA' or 'RSA/PKCS1', only for 'RSA/OAEP'.

(Of note: this also fails if we create new AsymmetricBlockCipher objects for each encryption/decryption pass, so it is not related to some persistent state inside those.)

@peter-fingo Please feel welcome to scrutinise the implementation, it's based off the bouncy castle implementation but I may have missed something. Also the test coverage around OAEP needs attention. Any contribution is welcome, I will investigate too when I have a chance.

Since I needed to do a deep-dive into understanding how to use OAEP and what the specifications said about it, I thought I'll have a quick look at this issue...
Yes, there is a bug in the Pointy Castle code.
Short answer: I'll submit a pull request for the fix.
Though I suggest using processBlock instead of process to do the encryption, since process with throw an exception if the data it is passed is too big. And what is "too big" depends on the bit-length of the key used. So unless you can guarantee the size of the keys and the size of the data, code using process could fail. Or at least check the data against the inputBlockSize and failing in your code.
Long answer: the bug was non-deterministic because it depended on what random seed value was used in the encoding operation.
The OAEP encryption operation essentially builds up a block of data (from the input data and a randomly generated seed) and encrypting that block using the underlying RSA algorithm. The problem occurs when the block of data starts with one or more zero bytes (0x00). Since the seed is randomly generated, that would happen randomly with a probability of 1 in 256.
Encryption involves interpreting the bytes of the block as a huge integer. Decryption results in a huge integer that is then represented as a sequence of bytes.
When the block starts with 0x00, the huge integer does not need the leading zero bytes to represent it. Therefore, the RSA decryption returns a shorter sequence of bytes (the same bytes and in the original block, but without any leading zero bytes). And therefore, is different to what is expected.
As an illustration, if the original block consisted of these bytes [ 0x00, 0x01, 0x02 ], the decryption produced [ 0x01, 0x02 ] which does not match the original block.
From a specification point of view, the decryption operation in section 7.1.2 of
RFC 2437 uses the I2OSP (integer to octet string primitive) to convert the huge integer too bytes. That I2OSP operation takes the number and an intended length -- the result is left-padded with zero bytes to make sure the block produced is that long.
The Bouncy Castle OAEPEncoding.java handles this situation by copying the bytes to a bigger block when it is necessary (lines 220-234). This is what lines 169-175 from v1.0.2 of Pointy Castle's oaep.dart is supposed to be doing, but doesn't.

The fix has been merged into the new repository at https://github.com/bcgit/pc-dart via Pull Request https://github.com/bcgit/pc-dart/pull/11.

Thanks!

authors: duncanhoggan hoylen peter-fingo stevenroose

repo: PointyCastle/pointycastle


text:
Intron region mutations

Does read.maf automatically ignore the genes with only intronic mutations?
I can't find some genes with getGeneSummary.
Thanks.

Same with above question.

annovarToMaf will ignore mutations in intron regions?
I found oncoplot ignored all the mutations in intron regions.

Thanks.
Shicheng

No, it doesnt ignore anything. Your maf object contains a maf.silent slot which contains all the silent variants such as intronic. They wont be plotted in oncoplot. You will have to specify with vc_nonSyn argument while reading your maf with read.maf.

authors: PoisonAlien Shicheng-Guo pwwang

repo: PoisonAlien/maftools


text:
KeyError: u'AND'

Expected Behavior
The bot should start
Actual Behavior
Got this error
[07:47:19] Starting PokemonGo Bot....
Traceback (most recent call last):
  File "./pokecli.py", line 381, in <module>
    main()
  File "./pokecli.py", line 68, in main
    bot.tick()
  File "/Users/XXX/Documents/dev/PokemonGo-Bot/pokemongo_bot/__init__.py", line 65, in tick
    if worker(self).work() == WorkerResult.RUNNING:
  File "/Users/XXX/Documents/dev/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_transfer_worker.py", line 73, in work
    if self.should_release_pokemon(pokemon_name, pokemon_cp, pokemon_potential):
  File "/Users/XXX/Documents/dev/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_transfer_worker.py", line 154, in should_release_pokemon
    if logic_to_function[cp_iv_logic](*release_results.values()):
KeyError: u'AND'

Steps to Reproduce
Use a PTC account, google account seems to work
Other Information
OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

Are you running master or dev? And pls run  " git log -n 1 --pretty=format:"%H" " and paste the out put here. Also paste your config pls.

repo: PokemonGoF/PokemonGo-Bot


text:
Throw BleError in every API call on failure.

This commit introduces new class called BleError which contains detailed informations about BLE failures. Apart from standard message property, there is additionally:

errorCode - Platform independent error code.
attErrorCode - ATT error code if available.
iosErrorCode - iOS specific error code if available.
androidErrorCode - Android specific error code if available.
reason - platform specific message if available.

This commit adds both support for iOS and Android with documentation changes.

I removed @deprecated as currently there is no API to replace marked functions. I added annotations to early.

repo: Polidea/react-native-ble-plx


text:
Set "type" to "module" in package.json

Description

Who wants the functionality
Those loading lit-element in Node >=13 while doing SSR

What it is they want
Load lit-element as ES Modules without converting to CJS.

Why they want it
This lets toolchain to load lit based project as ES Modules so that they can run in Node without using bundling tools.

Acceptance criteria
What the card must do in order to accept it as complete. Acceptance Criteria must be concrete or measurable.
Create a release after changing "type": "module" in package.json

Either this, or have explicit CJS export as "main". Currently, Node attempts to load it as CJS but encounters "import/export" syntax and breaks.
A practical use case: Jest as of version 25.2 supports ES Modules (without Babel) and work fabulously for me, except for importing these webpack-oriented packages that are seen as CJS in Node's eyes but  are ES Modules in reality.

authors: vikerman zandaqo

repo: Polymer/lit-element


text:
External scripts are stripped out when bundling

When using google-chart element with the polymer-build 0.8.1 and polymer-bundler 2.0.0-pre.6, this line is stripped out of the bundle, which results in the following error:
Uncaught ReferenceError: google is not defined
    at HTMLElement.<anonymous> (sandbox-demo-first-sub-page.js:1)
    at i.complete (sandbox-app.js:2)
    at boundComplete (sandbox-app.js:2)

I updated my sandbox to reproduce this issue, see it live here and open console to see that error.
AFAIK there used to be a NoopResolver for such scripts when using vulcanize and hydrolysis. Looks like this logic is broken for some reasons.

Fixed by #487

@justinfagnani should this be fixed by polymer-build 0.8.2? It still doesn't work for my sandbox.
The only code I get in bundled build is this one:
        <dom-module id="google-chart" assetpath="../../../vendor/google-chart/">
            <template>

                <google-chart-loader id="loader" type="[[type]]"></google-chart-loader>

            </template>
        </dom-module>

No external script tag.

This isn't actually fixed until #439 is merged in.

(And then of course Polymer/polymer-build will need to use new release of Polymer/polymer-bundler with that.)

authors: justinfagnani usergenic web-padawan

repo: Polymer/polymer-bundler


text:
If I just update a Object no 'computed properties' are fired.

If I just update the Object no 'computed properties' are fired:
  var new_obj_filters = this._setFilter(title, index, by, max, this.obj_filters);
  this.obj_filters = new_obj_filters; .

But If I clone the Object it fires just fine:
  var new_obj_filters = this._setFilter(title, index, by, max, this.obj_filters);
  this.obj_filters = clone(new_obj_filters); // TODO why clone ??? but fixed!

on stack here http://stackoverflow.com/questions/31784547/polymer-v1-0-computed-properties-not-recalculating/31826920#31826920

In Polymer 1.0, you can assign data directly to element properties, but performing assignments to object sub-properties outside of Polymer's purview require using Polymer's set API for the changes to be observable (set performs both the assignment and the notification).
Your _setFilter function takes an object as an argument (obj_filters), and then assigns new values to it; this is the exact case mentioned above where the use of this.set('obj_filters.subpath', newValue). is required for the changes to be observable.
Alternatively as you've discovered, deeply cloning the entire object and re-setting it will also cause all side-effects of that object's properties to run, since this defeats the dirty-checking logic that is used to minimize extra work.  This is a tradeoff; it allows you to write data handling code that can be agnostic to Polymer and its data mutation API's, at the cost of the deep data clone and re-running all side-effects (possibly unnecessarily).

repo: Polymer/polymer


text:
Merge beta into alpha

Description
Merge beta into alpha
Breaking Changes
NA
JIRA Link
NA
Checklist

[ ] Updated the Readme.md (if required) ?

:tada: This PR is included in version 19.1.1-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 20.0.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 20.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: VictorVicente prashantasdeveloper

repo: PolymeshAssociation/polymesh-sdk


text:
It reacts to the very click which opened the Menu

So this can't be opened at all:
const Menu = ({ isOpen, toggleMenu }) => {
  Menu.handleClickOutside = toggleMenu
  return (
  . . .

Never mind, just don't use MDC React, it is the worst component library in the world

repo: Pomax/react-onclickoutside


text:
handle case when target DOM is detached

Resolves #63

Wow, that was quick. Thank you @Pomax :+1:


text:
Notification drop down

Date size is much smaller and out of place in Notification Center

That must be caused by a different tweak I do not have that issue

To figure out what tweak could be causing the issue is to have Icleaner and disable emoji83 and see if that is the issue itself, if the problem still persists it's a different tweak. If it goes away then it must be for the iPhone your on. Because I'm on an iPhone 5S upscaled to 6 and I have no issues like that.

Recently this problem was gone.


text:
TextCompletion does not support echo=True + logprobs>0

What Happened?
TextCompletion does not support the use of echo=True + logprobs>0 at the same time.
Because the first value of the logprobs in that case is None and not a number. Pydantic check then fails.
FYI, using OpenAI API with davinci-002.
What Should Have Happened?
The None value is supported, Pydantic does not fail on check.
Relevant Code Snippet
    response = gateway.completions.create(
        model=model,
        prompt=prompt,
        max_tokens=max_tokens,
        temperature=temperature,
        top_p=top_p,
        n=n,
        echo=True,
        logprobs=1,
    )

 def normal_create(
        self, model, prompt, stream, temperature, max_tokens, top_p, **kwargs
    ) -> TextCompletion:
        response = self.openai_client.with_raw_response.completions.create(
            model=model,
            prompt=prompt,
            stream=stream,
            temperature=temperature,
            max_tokens=max_tokens,
            top_p=top_p,
            **kwargs,
        )
        data = TextCompletion(**json.loads(response.text))
        data._headers = response.headers
        return data

Your Twitter/LinkedIn
No response

Thank you for raising the issue @Manuscrit and for the detailed code snippets - we'll take up the issue and push a fix for it,

Fixing this on the python-sdk @Manuscrit
https://github.com/Portkey-AI/portkey-python-sdk/pull/186

Already works on the node sdk
cc: @csgulati09

Done across the board, thank you so much @Manuscrit! Closing the issue as it's resolved now.

authors: Manuscrit narengogi vrushankportkey

repo: Portkey-AI/gateway


text:
Add an explanation about config.debug and Posthog().debug()

Problem Statement
It would be really helpful if the com.posthog.posthog.DEBUG parameter, config.debug and  Posthog().debug() had an explanation, ideally directly in the code.

What does config.debug do in this example from the documentation? https://github.com/PostHog/posthog-flutter
Future<void> main() async {
    // init WidgetsFlutterBinding if not yet
    WidgetsFlutterBinding.ensureInitialized();
    final config = PostHogConfig('YOUR_API_KEY_GOES_HERE');
    config.debug = true;  // <=== this here
    config.captureApplicationLifecycleEvents = true;
    // or EU Host: 'https://eu.i.posthog.com'
    config.host = 'https://us.i.posthog.com';
    await Posthog().setup(config);
    runApp(MyApp());
}

Does it do the same as Posthog().debug(true)?
Or does this code do the same as the code from the example above? I set it to false initially but then use .debug(true)?
Future<void> main() async {
    // init WidgetsFlutterBinding if not yet
    WidgetsFlutterBinding.ensureInitialized();
    final config = PostHogConfig('YOUR_API_KEY_GOES_HERE');
    config.debug = false; // <=== this has changed
    config.captureApplicationLifecycleEvents = true;
    // or EU Host: 'https://eu.i.posthog.com'
    config.host = 'https://us.i.posthog.com';
    await Posthog().setup(config);

    Posthog().debug(true); // <=== this has changed

    runApp(MyApp());
}

Why is this always set to true in the examples? Does it make sense to set it to true only if we’re debugging the app? Does it make a difference?
import 'package:flutter/foundation.dart';

Posthog().debug(kDebugMode);

Solution Brainstorm
No response

Hello,
config.debug = true is just a shortcut for Posthog().debug(true), so the SDK already starts in debug mode and logs things in the console.
Calling Posthog().debug(kDebugMode); at runtime will enable and disable logging based on your needs.

Somehow a dupe of https://github.com/PostHog/posthog-flutter/issues/88 that we can address in this other ssue

So, this is just about printing to the console? It doesn’t affect the functionality or the events being sent at all?

Correct.
https://posthog.com/docs/libraries/android#all-configuration-options

// Logs the SDK messages into Logcat. (off/false by default)

Same goes for iOS.

authors: jakobhec marandaneto

repo: PostHog/posthog-flutter


text:
MapReduce任务偶发性失败

您好，我按照文档配置了一个工作流，流程本身只包含了一个MapReduceProcessor，1分钟调度一次。但是偶尔会出现执行失败的情况，观察日志发现有如下警告，请问这可能是什么原因导致的？
2021-04-27 14:22:47.403 WARN 11688 --- [ PPT-O] t.p.w.c.t.processor.ProcessorTracker : [ProcessorTracker-267296397470990464] Processor Tracker have been idle for 120003ms, it's time to tell TaskTracker and then destroy self.
2021-04-27 14:22:47.403 INFO 11688 --- [ PPT-O] t.p.w.c.t.processor.Processor Tracker : [Processor Tracker-267296397470990464] Processor Tracker destroyed successfully!
2021-04-27 14:22:47.403 WARN 11688 --- [r-dispatcher-29] t.p.w.core.tracker.task.TaskTracker : [TaskTracker-267296397470990464] Processor Tracker(192.168.10.242:27777) is idle now but have unfinished tasks: [{taskld='0.5', instanceld=267296397470990464, sublnstanceld=267296397470990464, taskName=", address='192.168.10.24
2:27777', status=4, result=", failedCnt=0, createdTime=1619504427393, lastModifiedTime=1619504432407, lastReportTime=1619504432407}]

加了一些日志后发现TaskTracker在执行updateTaskStatus的时候，可能会有TaskStatus=6（成功）的请求先到达，而TaskStatus=4（运行中）的请求后到达，导致某个Task的状态一直是"运行中"！

感谢反馈，这个问题后续会修复。
不过实际情况中，processor执行时间不可能约等于0（空跑），应该不会出现类似问题。

感谢反馈，这个问题后续会修复。
不过实际情况中，processor执行时间不可能约等于0（空跑），应该不会出现类似问题。

嗯，谢谢!

很不幸，我触发了这个情况，MapReduceProcessor，配置了固定延迟任务，500毫秒，6台worker，任务在运行一段时间后（最近一次是运行2天零3小时）后，一台worker报下面的日志，之后6台机器就都不再接收任务执行了
2024-09-06T01:14:43.011+08:00  INFO 7 --- [3459504636032-2] t.p.w.c.t.task.heavy.HeavyTaskTracker    : [TaskTracker-711883459504636032] checkNeedMoreWorker: true 2024-09-06T01:14:43.050+08:00  WARN 7 --- [          PPT-0] t.p.w.c.t.processor.ProcessorTracker     : [ProcessorTracker-711883459504636032] ProcessorTracker have been idle for 130000ms, it's time to tell TaskTracker and then destroy self. 2024-09-06T01:14:43.051+08:00  INFO 7 --- [          PPT-0] t.p.w.c.t.processor.ProcessorTracker     : [ProcessorTracker-711883459504636032] ProcessorTracker destroyed successfully! 2024-09-06T01:14:47.879+08:00  INFO 7 --- [b-worker-core-2] t.p.w.background.WorkerHealthReporter    : [WorkerHealthReporter] report health status,appId:2,appName:zhjw-bl-ocr,isOverload:false,maxLightweightTaskNum:1024,currentLightweightTaskNum:0,maxHeavyweightTaskNum:64,currentHeavyweightTaskNum:1

authors: KFCFans wensijia wsh759146139

repo: PowerJob/PowerJob


text:
web管理端api和调度server分离

Question
目前遇到情况本地测试，创建1000个任务(5秒调度一次)，同时启动调度
启动后管理后台任务管理，任务实例都打不开了，全部timeout，应该是server调度频繁导致，希望可以把后台管理的接口，单独一个工程，然后单独部署，来保证大量调度任务时后台正常使用。

目前主要还是考虑到大家的部署成本（分开的话server 需要部署2套，略麻烦），暂时没有应用拆分的计划。
你描述的性能瓶颈才是需要重点解决的对象，可以提供下 timeout 时候的堆栈，我们来帮助分析性能瓶颈在哪里。

authors: KFCFans wind-hx


text:
Copyright information in the .psd1 file

When I look at the xSQLServer.psd1 file in xSQLServer I see that the copyright information has the year of 2014. Must it be so, or should this be changed to the current year when a release is done? If it doesn't matter what year it is, could we changed it to the current year just so the module feel more fresh? 😄
# Copyright statement for this module
Copyright = '(c) 2014 Microsoft Corporation. All rights reserved.'

@zjalexander Maybe this one is something you can answer?

investigating

yes, update it to the current year :)

Great I will do that!
Should we add this to the Maintainers.md that this should be update continuously each year?

Sure, you wanna do a quick PR and i'll review?

I will put together a PR and tag you when it's ready for review

This was merged in #293. This issue did not auto-close for some reason.

authors: johlju zjalexander

repo: PowerShell/DscResources


text:
Add Exclude parameter to Compress-Archive

Currently we can not filter out files (directories) from source tree.
Comes from https://github.com/PowerShell/PowerShell/issues/9321#issuecomment-580582929
Proposal:
Compress-Archive -Exclude '*.pdb'
Compress-Archive -Exclude 'foldername'

Can be implemented based on Get-Children -Exclude.
/cc @SteveL-MSFT

yes, that's a feature


text:
Issue #1744 Add a rule to alert catch [RuntimeException] { ... }Initial branch

PR Summary
Addition of rule to advise users against using catch blocks with type RuntimeException.
Reason for rule is catch blocks with type RuntimeException catch any type of exception behaving the same as an unqualified catchblock. Tests for rule ensure situations with catch block of type RuntimeException and catchblocks without a specified exception type are caught
PR Checklist

[ X ] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[ X ] Summarized changes
[ X ] Change is not breaking
[ X ] Make sure all .cs, .ps1 and .psm1 files have the correct copyright header
[ X ] Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
[ X ] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

I have sole ownership of intellectual property rights to my Submissions
and I am not making Submissions in the course of work for my employer.
On Mon, 12 Dec 2022, 23:06 microsoft-github-policy-service[bot], <
@.***> wrote:

@Cruaaa https://github.com/Cruaaa please read the following Contributor
License Agreement(CLA). If you agree with the CLA, please reply with the
following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:

(default - no company specified) I have sole ownership of
intellectual property rights to my Submissions and I am not making
Submissions in the course of work for my employer.
(when company given) I am making Submissions in the course of work
for my employer (or my employer has intellectual property rights in my
Submissions by contract or applicable law). I have permission from my
employer to make Submissions and enter into this Agreement on behalf of my
employer. By signing below, the defined term “You” includes me and my
employer.

Contributor License Agreement Contribution License Agreement
This Contribution License Agreement (“Agreement”) is agreed to by the
party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its
affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is
effective as of the latest signature
date below.

Definitions.
“Code” means the computer software code, whether in human-readable
or machine-executable form,
that is delivered by You to Microsoft under this Agreement.
“Project” means any of the projects owned or managed by Microsoft
and offered under a license
approved by the Open Source Initiative (www.opensource.org).
“Submit” is the act of uploading, submitting, transmitting, or
distributing code or other content to any
Project, including but not limited to communication on electronic
mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf
of, the Project for the purpose of
discussing and improving that Project, but excluding communication
that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material
Submitted by You, including any
associated comments and documentation.
Your Submission. You must agree to the terms of this Agreement
before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now
or in the future (except as
described in Section 4 below), Submit to any Project.
Originality of Work. You represent that each of Your Submissions
is entirely Your original work.
Should You wish to Submit materials that are not Your original work,
You may Submit them separately
to the Project if You (a) retain all copyright and license information
that was in the materials as You
received them, (b) in the description accompanying Your Submission,
include the phrase “Submission
containing materials of a third party:” followed by the names of the
third party and any licenses or other
restrictions of which You are aware, and (c) follow any other
instructions in the Project’s written
guidelines concerning Submissions.
Your Employer. References to “employer” in this Agreement include
Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a
contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your
employer has intellectual
property rights in Your Submission by contract or applicable law, You
must secure permission from Your
employer to make the Submission before signing this Agreement. In that
case, the term “You” in this
Agreement will refer to You and the employer collectively. If You
change employers in the future and
desire to Submit additional Submissions for the new employer, then You
agree to sign a new Agreement
and secure permission from the new employer before Submitting those
Submissions.
Licenses.

Copyright License. You grant Microsoft, and those who receive the
Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive,
royalty-free, irrevocable license in the
Submission to reproduce, prepare derivative works of, publicly
display, publicly perform, and distribute
the Submission and such derivative works, and to sublicense any or all
of the foregoing rights to third
parties.
Patent License. You grant Microsoft, and those who receive the
Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive,
royalty-free, irrevocable license under
Your patent claims that are necessarily infringed by the Submission or
the combination of the
Submission with the Project to which it was Submitted to make, have
made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the
Project.
Other Rights Reserved. Each party reserves all rights not
expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without
limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.

Representations and Warranties. You represent that You are
legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your
original work (except as You may
have disclosed under Section 3). You represent that You have secured
permission from Your employer to
make the Submission in cases where Your Submission is made in the
course of Your work for Your
employer or Your employer has intellectual property rights in Your
Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You
represent and warrant that You
have the necessary authority to bind the listed employer to the
obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless
You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE
WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED
UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO,
ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
Notice to Microsoft. You agree to notify Microsoft in writing of
any facts or circumstances of which
You later become aware that would make Your representations in this
Agreement inaccurate in any
respect.
Information about Submissions. You agree that contributions to
Projects and information about
contributions may be maintained indefinitely and disclosed publicly,
including Your name and other
information that You submit with Your Submission.
Governing Law/Jurisdiction. This Agreement is governed by the
laws of the State of Washington, and
the parties consent to exclusive jurisdiction and venue in the federal
courts sitting in King County,
Washington, unless no federal subject matter jurisdiction exists, in
which case the parties consent to
exclusive jurisdiction and venue in the Superior Court of King County,
Washington. The parties waive all
defenses of lack of personal jurisdiction and forum non-conveniens.
Entire Agreement/Assignment. This Agreement is the entire
agreement between the parties, and
supersedes any and all prior agreements, understandings or
communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may
be assigned by Microsoft.

—
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PSScriptAnalyzer/pull/1874#issuecomment-1347466555,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN2O3H3XCEGGYOASQPYN473WM6VY3ANCNFSM6AAAAAAS4QLLUE
.
You are receiving this because you were mentioned.Message ID:
@.***>

repo: PowerShell/PSScriptAnalyzer


text:
SSL Handshake failed in 7.1.0 on Ubuntu 18.04 with OpenSSL 1.1.1

After upgrading from PowerShell 7.0.3 to 7.1.0 on a fully patched Ubuntu 18.04 server with OpenSSL 1.1.1, web cmdlets (Invoke-RestMethod and Invoke-WebRequest) throw a Authentication failed, see inner exception. when connecting to our Infoblox API (which is running the latest available version of its NIOS OS, 8.5.1). Expanding the inner exception reveals the underlying problem is an SSL handshake failure. Downgrading PowerShell back to 7.0.3 fixes the problem.
NOTE: Requests to other internal TLS sites using PS 7.1.0 work just fine. This only seems to be a problem specifically with Infoblox (that I've found so far).
Steps to reproduce
# a simple call to the grid master's documentation endpoint which requires no authentication
Invoke-RestMethod https://gridmaster.test/wapidoc/

Expected behavior
The web request succeeds return normal responses.
Actual behavior
Invoke-RestMethod: Authentication failed, see inner exception.

Serializing the exception using $Error[0].Exception.ToString() produces the following output:
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
 ---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL.
 ---> Interop+Crypto+OpenSslCryptographicException: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
   --- End of inner exception stack trace ---
   at Interop.OpenSsl.DoSslHandshake(SafeSslHandle context, ReadOnlySpan`1 input, Byte[]& sendBuf, Int32& sendCount)
   at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteSslContext& context, ReadOnlySpan`1 inputBuffer, Byte[]& outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
   --- End of inner exception stack trace ---
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
   at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(HttpClient client, HttpRequestMessage request, Boolean keepAuthorization) in /PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs:line 1361
   at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord() in /PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs:line 1518

Environment data
$PSVersionTable ouput
Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Linux 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

apt-cache policy openssl output
openssl:
  Installed: 1.1.1-1ubuntu2.1~18.04.6
  Candidate: 1.1.1-1ubuntu2.1~18.04.6
  Version table:
 *** 1.1.1-1ubuntu2.1~18.04.6 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1.1.0g-2ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Unfortunately, Infoblox doesn't allow root access to the appliance's operating system or webserver to give exact versions on things there. But the managed CLI does allow some ability to tweak TLS protocol versions and ciphers. These are the current values. TLSv1.3 is not an option and the ciphers in the list are all that is available.
> show ssl_tls_protocols
TLSv1.2
> show ssl_tls_ciphers
  1. TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 enabled
  2. TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 enabled
  3. TLS_DHE_RSA_WITH_AES_128_CBC_SHA    enabled
  4. TLS_DHE_RSA_WITH_AES_256_CBC_SHA    enabled
  5. TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 enabled
  6. TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 enabled
  7. TLS_RSA_WITH_AES_128_GCM_SHA256     enabled
  8. TLS_RSA_WITH_AES_128_CBC_SHA        enabled
  9. TLS_RSA_WITH_AES_128_CBC_SHA256     enabled
 10. TLS_RSA_WITH_3DES_EDE_CBC_SHA       enabled
 11. TLS_RSA_WITH_AES_256_GCM_SHA384     enabled
 12. TLS_RSA_WITH_AES_256_CBC_SHA        enabled
 13. TLS_RSA_WITH_AES_256_CBC_SHA256     enabled
     TLS_DHE_DSS_WITH_AES_256_CBC_SHA    disabled
     TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA    disabled
     TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA    disabled
     TLS_DHE_DSS_WITH_AES_128_CBC_SHA    disabled
     TLS_RSA_WITH_RC4_128_SHA            disabled
     TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 disabled
     TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 disabled
     TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 disabled
     TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 disabled

@rmbolger Thanks for your investigations!
PowerShell does directly nothing with SSL - it utilize .Net. HttpClient class. Please open issue in .Net Runtime repository. (If you could make simple C# demo app it helped them.)
Notice, PowerShell 7.0 is on .Net 3.1, PowerShell 7.1 is on .Net 5.0.

Just to follow up here so answers are easier to find. Here's are the details on what is needed to fix the issue.
The crux of the issue deals with a change in the default behavior for TLS in .NET 5.0 that is described in this doc.
https://docs.microsoft.com/en-us/dotnet/core/compatibility/cryptography/5.0/default-cipher-suites-for-tls-on-linux
In summary, .NET 5.0 will respect CipherString settings (among others) in the OS's /etc/ssl/openssl.cnf file. But if the settings aren't specified (which is the default in Ubuntu 18.04), .NET 5.0 defaults to a very restrictive/secure/modern default set of ciphers whereas .NET 3.1 defaults to a very loose/compatible set of ciphers. So if you are connecting to services that aren't capable of modern ciphers, you need to configure the OS's config to allow one or more of the ciphers your service does support. The other option is a code level change in your app that deals with CipherSuitePolicy and SslStream objects. But since my issue is with PowerShell, I don't have control of the code. So my only option is the OS config change.
In my particular case, I decided to use the Mozilla SSL Configuration Generator on the "Intermediate" configuration setting as a guide for what ciphers to allow while remaining compatible, but still as secure as possible. And I added the following to my /etc/ssl/openssl.cnf file right before the [ new_oids ] section.
openssl_conf = default_conf

[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
CipherString = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384

The last two in the list match ciphers that are available from the Infoblox appliance. When re-testing both my .NET sample app and PowerShell's web cmdlets, neither throw an error anymore.

authors: iSazonov rmbolger

repo: PowerShell/PowerShell


text:
Get-Command can't resolve commands entered by omitting the Get-* verb, though command discovery can

Summary of the new feature / enhancement
As a user, I would expect Get-Command to mirror command discovery; if I can invoke a command (e.g., uptime) then I should be able to find the command pwsh is invoking with Get-Command.
However, Get-Command uptime returns no results, despite simply calling uptime ending up finding and calling Get-Uptime.
Proposed technical implementation details (optional)
Get-Command should implement the same fallback behaviour used in command discovery; if no results are found and the command contains no verb, the Get- verb should be prepended to try to find the command in the same way command discovery normally would find the command.

Sorry, yep, uptime on windows doesn't have a match, but there is still a Get-Uptime cmdlet that it will run instead. Thanks for the better example!

If someone is checking what is and isn't found, I just notice that if a function in a module defines two aliases in [alias()] and both are exported, both work, but Get-Command only shows the first one.

I am not sure if Get-Command should work the same way command resolution works.  GetCommand is used by the remoting layer and changing how it works could be a breaking issue, or security concern.

I won't claim to have full understanding here, but from what I have seen in these code paths I think the general command discovery behaviour is:

Call Get-Command
If that returns no results, checks to see if the command has a verb component
If not, prepend a Get- verb and call Get-Command again

(There may be a couple other steps here that I'm not remembering)
The proposal here is essentially just to move the re-check / the implicit Get-* addition into the GetCommand logic itself instead.
I'm not sure I follow why this would be in any way a security concern, but if there are enumerable concerns to discuss, please let us know :)

I don't have any specific problems in mind, but just want to make sure we don't inadvertently break something.  Will let WG-Security review.

@WG-Security  The security group does not see any security issue with this proposed change.

authors: PaulHigin jhoneill vexx32


text:
Evil Picture

Summary of the new feature / enhancement
Did you use an evil-looking character because all administrators are evil?

Proposed technical implementation details (optional)
No response

I believe the character's name is "Nanoman".  I'm guessing the main goals were to make a character that was "edgy" and gender ambiguous (which I appreciate for inclusivity).  I do agree that the artwork does look a bit "evil" and probably could use a refresh or just be eliminated altogether. After all, PowerShell gets a very bad reputation as being some sort of loner hacking tool to the point where organizations allow any user-downloaded executables and macros to run but PowerShell is locked down hard because it has the perception of being so much more dangerous.

This isn't really an issue with PowerShell itself so I am converting this to a discussion

authors: DaveH52 NoMoreFood kilasuit


text:
$xml.DocumentElement.ChildNodes not enumerating through xml elements correctly

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[x] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
When I try to run my simple PowerShell script to enumerate through all of the elements it misses one and I cannot figure out why.  It just doesn't make sense, this should be a simple solution.
Here is my sample code:
$xml = [xml]@"
<?xml version="1.0"?>
    <package>
        <manifest date.created="2024-03-19T13:01:24Z" preserve-local="false" accountid="62fd2589af134067ab7b1fd30e439800" content-modifier="html">
            <property dataid="32748f30eda4e57e8f93f9e3cce7c976">
                <name>mind.idf#featured-articles</name>
                <path>//ResourceCenter</path>
                <contents type="text/plain; charset=utf-8" size="4897" />
            </property>
        </manifest>
    </package>
"@

function Get-XmlElementNames($node) {
    Write-Host $node.Name

    foreach ($child in $node.ChildNodes) {
        Get-XmlElementNames($child)
    }
}

Get-XmlElementNames($xml.DocumentElement)

Expected behavior
PS> package
manifest
property
name
path
contents

Actual behavior
PS> package
manifest
mind.idf#featured-articles
name
path
contents

Error details
None

Environment data
PS> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals
No response

I think it is because you have a child node named name and asked for name so it gave you  value of that node.
 $xml.package.manifest.property

dataid                           name                       path             contents
------                           ----                       ----             --------
32748f30eda4e57e8f93f9e3cce7c976 mind.idf#featured-articles //ResourceCenter contents

as a workround you can do
$xml.package.manifest.property.get_name()

This looks like a bug in the enumerating of children nodes.

This has nothing to do with the enumeration of nodes, this shows the same problem.
$xml = [xml]@"
<?xml version="1.0"?>
    <package>
        <name>mind.idf#featured-articles</name>
    </package>
"@

$xml.DocumentElement.Name

The problem is that PowerShell automatically wraps anything derived from XmlNode ( as far as I can tell ) and when you ask for a property it first looks to see if it is an element before a property or field on the original object.
So element "name" is taking precedence over property "Name" .
To show it is not a bug in enumerating the children we can use reflection to get the property
function Get-XmlElementNames($node) {
    Write-Host $node.GetType().GetProperty("Name").GetValue($node)

    foreach ($child in $node.ChildNodes) {
        Get-XmlElementNames($child)
    }
}

An alternative that works in this case is also to use LocalName
function Get-XmlElementNames($node) {
    Write-Host $node.LocalName

    foreach ($child in $node.ChildNodes) {
        Get-XmlElementNames($child)
    }
}

Or depending on what you are doing, if PowerShell is getting in the way rather than helping then use a C# class.

I'm not sure it is not a bug, here is a watch window of the third enumeration of the collection and you can see it is showing the correct property, yet it is returning InnerText.  Based on the object, it should be returning property.

'm not sure it is not a bug

Yes the object exists, it has the right object and the correct content, however by design ( or certainly at least by implementation ) in PowerShell XML handling, the named child elements take precedence over C# properties or fields.
This is so you can write simple XML handling code in PowerShell just by using dot notation to navigate through an XML document tree.

'm not sure it is not a bug

Yes the object exists, it has the right object and the correct content, however by design ( or certainly at least by implementation ) in PowerShell XML handling, the named child elements take precedence over C# properties or fields.
This is so you can write simple XML handling code in PowerShell just by using dot notation to navigate through an XML document tree.
If you want to do low-level XML DOM navigation then perhaps PowerShell is not the tool to use. If you want to read an XML document and navigate the structure using a simple dot notation then it is ideal. I don't see it changing after it has been doing this for over 15 years and existing code relies on this behaviour.
You will find identical behaviour in PowerShell 5.1

I just want to understand, you feel that it is correct to use extended properties and methods to do this.
Should we not be using the objects, properties and methods, documented in the API?  https://learn.microsoft.com/en-us/dotnet/api/system.xml.xmldocument?view=net-8.0
Please tell me this is not the correct way to get the elements, please tell me that PowerShell is not using these classes?
Based on their documentation I should be using the properties to get the elements.
I don't want to, and I am done arguing about this.  I am focused on why this is not working correctly.
Can you explain why this is not returning a node name but the text value of the first child node?  And then it returns the Node name of the element, which at that point should be the next element.
I am looking to identify a Bug and it can be reproduced.  This is not processing as expected.

Can you explain why this is not returning a node name but the text value of the first child node? And then it returns the Node name of the element, which at that point should be the next element.

PowerShell is a scripting language with certain goals to make programming easier at a certain level. It uses dotnet as the implementation language and shares some similar syntax eg dot between object and its properties. When PowerShell is trying to resolve a child of an object (immediately following the dot ) it is looking for a method or child object of some kind.
With a simple C# object those can be properties and fields, but for a classes that implements XmlNode then it it can be child XmlElements, properties and fields.
With your example, you could use the following programming style
$xml.package.manifest.property.name
$xml.package.manifest.property.path

you would get
mind.idf#featured-articles
//ResourceCenter

And that is how I see PowerShell being designed to use xml.
I don't see PowerShell claiming to implement the DOM programming model for XML, it is at a higher level and trying to let you use the actual data within as the object content.

If you want to do low-level XML DOM navigation then perhaps PowerShell is not the tool to use. If you want to read an XML document and navigate the structure using a simple dot notation then it is ideal. I don't see it changing

I just want to understand, you feel that it is correct to use extended properties and methods to do this.

It just IS .
Look here is the same thing with Data rows.
l> $c =  sql -Session LR "  SELECT   Collection.name AS CollectionName  FROM AgLibraryCollection Collection WHERE Collection.name LIKE '%' "
20 row(s) returned
> $c[1].HasErrors
False

So we got one column named "collection name" and the data row has a property HasErrors, it's Boolean and false.
What happens if our SQL query returns a column named HasErrors ?
$c =  sql -Session LR "  SELECT   Collection.name AS HasErrors  FROM AgLibraryCollection Collection WHERE Collection.name LIKE '%' "
20 row(s) returned
> $c[1].HasErrors
From Lightroom

The data column HasErrors beats the built in property.
Or with hash tables.
 $ht = @{"a"="one"; "b"="Two"; }
> $ht.keys
b
a
> $ht = @{"a"="one"; "b"="Two"; "keys"="Unlocking things"}
> $ht.keys
Unlocking things

Now SHOULD we have .ColumnName or .Keyname on datarows and hashtables respectively? For a scripting not having to write .item("Name")  is basically good, so we want dotted notation.
OK so what SHOULD happen when we get a clash between a built in property name, and one of the data's names? Because whichever answer one picks will upset some of the people some of the time. Way, way back people will have asked if they should pick either or give up on dotted notation completely. And they came to the decision they did.
If you want the array of keys in your hash table and someone has made a member named "keys" the present method feels mad. But it worked the other way and you didn't get a member because e.g. "Count" is a property name that would feel at least as mad.

To provide a succinct summary, @rtonerii:
Object access in PowerShell doesn't always work the same way as in C#, for instance.
PowerShell's ETS (Extended Type System) can decorate instances of native .NET types with so called synthetic members (either extended or adapted) members, in addition to the so-called base members (the .NET type-native ones).
Synthetic members shadow base properties of the same name, such as in this case: The adapted .Name property (representing the child element whose tag name is 'Name') shadows the base .Name property (the tag name of the element itself). For a detailed discussion of PowerShell's adaptation of the XML DOM, see this Stack Overflow answer.
You can use the intrinsic .psbase property to access shadowed base members; e.g.:
# -> 'foo': the *adapted* .Name property refers to the *child* element whose tag name is 'Name', and
#      because it is a *simple element* (no attributes, no nested elements)
#      its text content is reported (otherwise you'd get a [System.Xml.XmlElement] instance).
([xml] '<xml><Name>foo</Name></xml>').xml.Name

# -> 'xml': by using `.psbase.Name`, the *base* (type-native) .Name property is accessed, so the
#      the tag name of the element *itself* is reported.
([xml] '<xml><Name>foo</Name></xml>').xml.psbase.Name

The same therefore applies to a general, property-exclusive from of adaptation that PowerShell provides for dictionaries (IDictionary-implementing types, such as [hashtable]): Alternative dot notation for dictionaries allows you to use, say, @{ foo='bar' }['foo'] and @{ foo='bar' }.foo interchangeably, i.e. to access entries in the dictionary as if they were properties.
While this is convenient, it can again lead to shadowing of the dictionary's base properties; e.g, @{ Count='psych!' }.Count (-> 'psych!'); again, @{ Count='psych!' }.psbase.Count is the solution.

By contrast, when it comes to the (non-reserved subset of) intrinsic members and member-access enumeration, it is the base members that take precedence; e.g.:
# -- Intrinsic member example:

# -> 1 - PowerShell's intrinsic .Count property interprets scalars as a collection with one element for unified
#    handling of scalars and enumerables
(42).Count

# -> 'psych!' - the base (type-native) .Count property took precedence.
class Foo { $Count = 'psych!' }; [Foo]::new().Count

# -- Member-access enumeration example:

# -> @(1, 2) - the .foo property was accessed on the *elements* of the enumerable (array).
@(@{ foo = 1 }, @{ foo = 2 }).foo

# -> 2 - the base .Count property on the enumerable (array) *itself* took precedence.
#   Note: Technically, .Count is a property of the IList interface that [Array] implements.
#         However, PowerShell surfaces even the members of explicit interface implementations as
#         direct members.
@(@{ Count = 42 }, @{ Count = 43 }).Count

Another alternative is to use psbase to bypass the element lookup for properties in the wrapped object reference itself
function Get-XmlElementNames($node) {
    Write-Host $node.psbase.Name

    foreach ($child in $node.ChildNodes) {
        Get-XmlElementNames($child)
    }
}

As an aside, @rtonerii:

Write-Host is typically the wrong tool to use, unless the intent is to write to the display only, bypassing the success output stream and with it the ability to send output to other commands, capture it in a variable, redirect it to a file. To output a value, use it by itself; e.g., $value instead of Write-Host $value (or use Write-Output $value, though that is rarely needed). See the bottom section of this Stack Overflow answer for details.

Get-XmlElementNames($child) is an instance of pseudo method syntax, which is best avoided: PowerShell functions, cmdlets, scripts, and external programs must be invoked like shell commands - foo arg1 arg2 - not like C# methods - foo('arg1', 'arg2').  If you use , to separate arguments, you'll construct an array that a command sees as a single argument.  See this Stack Overflow answer for details.

Secondarily, the in-line method of function parameter declarations - e.g. Get-XmlElementNames($node) - may reinforce the confusion around pseudo method syntax.

For that reason - as well as for the sake of  unified parameter-declaration syntax that also works in script files, declaring parameters via a param(...) block inside the function/script body is preferable.

Not every System.Xml.XmlNode instance is an element, i.e. a System.Xml.XmlElement instance.

Therefore, in light of the above, as well as the previous information, here's what I suggest:
$xml = [xml]@'
<?xml version="1.0"?>
    <package>
        <manifest date.created="2024-03-19T13:01:24Z" preserve-local="false" accountid="62fd2589af134067ab7b1fd30e439800" content-modifier="html">
            <property dataid="32748f30eda4e57e8f93f9e3cce7c976">
                <name>mind.idf#featured-articles</name>
                <path>//ResourceCenter</path>
                <contents type="text/plain; charset=utf-8" size="4897" />
            </property>
        </manifest>
    </package>
'@

function Get-XmlElementNames {
  param($node) # param(...) for parameter declarations

  # Implicit output of the base .Name property
  $node.psbase.Name

  # Loop over all *element* children
  foreach ($child in $node.ChildNodes.Where({ $_ -is [System.Xml.XmlElement] })) {
    # Recurse
    Get-XmlElementNames $child
  }
}

Get-XmlElementNames $xml.DocumentElement

I just want to understand, you feel that it is correct to use extended properties and methods to do this.

PowerShell has an adapter system that allows member access syntax to be used for more than literal CLR properties. The idea being you can do $xmlDoc.package.manifest.property.name and "magically" get the value for that node. That is how the majority of folks use this API in PowerShell.
Just wanted to clarify the design intent (and that it is indeed how the majority of our users expect it to work). I'd recommend the workaround @mklement0 suggested above (psbase) if you'd like to side step that particular adapter.

As an aside, @rtonerii:

Write-Host is typically the wrong tool to use, unless the intent is to write to the display only, bypassing the success output stream and with it the ability to send output to other commands, capture it in a variable, redirect it to a file. To output a value, use it by itself; e.g., $value instead of Write-Host $value (or use Write-Output $value, though that is rarely needed). See the bottom section of this Stack Overflow answer for details.

Get-XmlElementNames($child) is an instance of pseudo method syntax, which is best avoided: PowerShell functions, cmdlets, scripts, and external programs must be invoked like shell commands - foo arg1 arg2 - not like C# methods - foo('arg1', 'arg2').  If you use , to separate arguments, you'll construct an array that a command sees as a single argument.  See this Stack Overflow answer for details.

Secondarily, the in-line method of function parameter declarations - e.g. Get-XmlElementNames($node) - may reinforce the confusion around pseudo method syntax.
For that reason - as well as for the sake of  unified parameter-declaration syntax that also works in script files, declaring parameters via a param(...) block inside the function/script body is preferable.

Not every System.Xml.XmlNode instance is an element, i.e. a System.Xml.XmlElement instance.

Therefore, in light of the above, as well as the previous information, here's what I suggest:
$xml = [xml] @'
<?xml version="1.0"?>
    <package>
        <manifest date.created="2024-03-19T13:01:24Z" preserve-local="false" accountid="62fd2589af134067ab7b1fd30e439800" content-modifier="html">
            <property dataid="32748f30eda4e57e8f93f9e3cce7c976">
                <name>mind.idf#featured-articles</name>
                <path>//ResourceCenter</path>
                <contents type="text/plain; charset=utf-8" size="4897" />
            </property>
        </manifest>
    </package>
'@

function Get-XmlElementNames {
  param($node) # param(...) for parameter declarations

  # Implicit output of the base .Name property
  $node.psbase.Name

  # Loop over all *element* children
  foreach ($child in $node.ChildNodes.Where({ $_ -is [System.Xml.XmlElement] })) {
    # Recurse
    Get-XmlElementNames $child  # pseudo method syntax avoided
  }
}

Get-XmlElementNames $xml.DocumentElement   # pseudo method syntax avoided

Thank you so much for the insight.
I am only using write-host for testing.
I will try this out.

authors: SeeminglyScience jhoneill mklement0 rhubarb-geek-nz rtonerii


text:
SMA files are inconsistently uploaded to codecov.io

This has been happening somewhat "consistently" where one day we'll have coverage reported for SMA and on another day it's completely missing.  With SMA being the biggest part of PowerShell, this makes it hard to know what the real CC data is.
Recent commit missing SMA: https://codecov.io/gh/PowerShell/PowerShell/tree/03e3257b0a91af29f597e823d9f22b84c147930f/src
Prior commit including SMA:
https://codecov.io/gh/PowerShell/PowerShell/tree/1e4cbe15ff5a64476ab24708933538664b566df7/src

No longer repro'ing