text:
Ctrl+D never works

When using Ctrl+D on an item to price check it always simply says "An Error Occurred" instead of the price, and the following error is in the log:
[2020-06-22 14:38:31.659] [warn] TypeError: Cannot read property 'id' of undefined
    at file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:18197913
    at Array.map (<anonymous>)
    at a.project (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:18197846)
    at a._tryNext (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:17081057)
    at a._next (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:17080959)
    at a.next (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:17069070)
    at a.notifyNext (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:17081494)
    at a._next (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:17076243)
    at a.next (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:17069070)
    at a.notifyNext (file:///C:/Program%20Files/poe-overlay/resources/app.asar/dist/main.82dd510b23ec29c19749.js:1:17081494)

Using version 0.7.1.
Uninstalling, manually removing %appdata\roaming\poe-overlay and reinstalling did not fix the issue.

+1

+1

Ditto.

I've encounted this error before. To resolve this, you have to open your settings, go to the evaluate section and check/change your evaluate currencies. I've just opened the drop-down, selected and then deselected a random currency and clicked save.

Guys, don't post +1, use the reactions, that's what they're there for.
Same on Linux
22:47:10.068 › TypeError: Cannot read property 'id' of undefined
    at http://localhost:4200/main.js:15997:81
    at Array.map (<anonymous>)
    at MergeMapSubscriber.project (http://localhost:4200/main.js:15996:226)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (http://localhost:4200/vendor.js:164916:27)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (http://localhost:4200/vendor.js:164906:18)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (http://localhost:4200/vendor.js:164655:26)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (http://localhost:4200/vendor.js:164655:26)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
22:47:16.824 › TypeError: Cannot read property 'id' of undefined
    at http://localhost:4200/main.js:15997:81
    at Array.map (<anonymous>)
    at MergeMapSubscriber.project (http://localhost:4200/main.js:15996:226)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (http://localhost:4200/vendor.js:164916:27)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (http://localhost:4200/vendor.js:164906:18)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (http://localhost:4200/vendor.js:164655:26)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (http://localhost:4200/vendor.js:164655:26)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
22:48:35.993 › TypeError: Cannot read property 'id' of undefined
    at http://localhost:4200/main.js:16244:88
    at Array.map (<anonymous>)
    at MergeMapSubscriber.project (http://localhost:4200/main.js:16243:85)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (http://localhost:4200/vendor.js:164916:27)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (http://localhost:4200/vendor.js:164906:18)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber.notifyNext (http://localhost:4200/vendor.js:164942:26)
    at InnerSubscriber.push../node_modules/rxjs/_esm5/internal/InnerSubscriber.js.InnerSubscriber._next (http://localhost:4200/vendor.js:158818:21)
    at InnerSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (http://localhost:4200/vendor.js:159605:18)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber.notifyNext (http://localhost:4200/vendor.js:164942:26)


text:
Неверная дата при открытии в воскресенье

Открыв в воскресенье, видим субботу, но сегодняшнюю дату

Не удалось воспроизвести ошибку, на наших тестах все работало нормально (лучше ответить поздно чем никогда!)

source: gharchive/issue

authors: EinTheFrog Plezha

repo: PoSanie-Team/posanie

license_type: permissive

license_source: github-api


text:
feat(sqsLambda): make functionResponseTypes configurable

Goal
Make functionResponseTypes configurable. Can use it to report individual failures when processing batches from e.g. SQS.
Reference
Documentation here:

Terraform docs
AWS Docs

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

source: gharchive/pull-request

authors: kschelonka pocket-ci

repo: Pocket/terraform-modules


text:
Dev

this was an accident, sorry no clue how to cancel this

thank you thank you you are far too kind lmao
fixed the debug

authors: SleezyChicken eggins

repo: PokemonGoF/PokemonGo-Bot

license: MIT


text:
Add tests for style, class, and value attribute bindings.

WIP: do not merge

Creative solution to the IE11 style problem. I like it :)

@sorvell tests passing now, PTAL

authors: justinfagnani ruphin

repo: Polymer/lit-html

license_source: bigquery


text:
Mangle private properties

This enables mangling of private properties by giving them the __foo naming convention. Really, that's just to distinguish them from the protected _bar pattern that was introduced with the Part APIs.
Just this small change saves us 63 after compressing.

I like this, but feel a little strange that we require a much more specific Terser config. It would be nice if Terser supported mangling properties annotated with @private.

Done.

authors: jridgewell justinfagnani


text:
removed multiple teardown calls in fixture and replace

Fixes #360. These teardowns were being attached every time the fixture and the replace functions were called, thus they were called every time they were attached at the end of each test.

LGTM

repo: Polymer/web-component-tester


text:
A test for alias + extend in schemas

Discussed this use case with Daniel and wanted to ensure it actually works :)

Seconding @mmandlis 's request, otherwise LGTM

PTAL again :)

Can I have approval? :)

repo: PolymerLabs/arcs


text:
Boss levels show 'GOAL' marker on result screen.

The result screen now includes a 'GOAL' marker for boss levels so the player can see how close they are to passing the level. When replaying the levels in training mode, the traditional rank markers are shown.

The goal is shown as "GOAL" in all upper-case letters. We should localize it.

repo: Poobslag/turbofat


text:
Slow Reward Fetching Perfomance

Foreach stops at error for a second. What if we returned a null if the loop is not hit.
HYPotho: the for loop is off by oneand nneds better error catching?

additional state logic and try catches


text:
Add manual bot restart feature and clean up hardcoded Telegram ID

Add manual bot restart feature and clean up hardcoded Telegram ID

Implement manual restart functionality for the bot via Telegram
Automatically restart the bot upon encountering errors
Remove hardcoded Telegram ID from the script for flexibility

Nice bot btw!

@Poryaei can you review my PR?

You've just removed some of the functionality.....

Thank you for the effort you put in!
But the code you wrote has some issues! and it causes disruption, as our friend @IgorGradov mentioned.
Unfortunately, the pull request is not being accepted.

authors: IgorGradov Poryaei d8rt8v

repo: Poryaei/NotCoin-Clicker


text:
ExpoLocalization error

Hi,
After upgrading posthog ^1.1.5 to "^2.1.1" this version i am facing this issue:
Error: Cannot find native module 'ExpoLocalization'
Even i try to install npm i expo-localization, but still same error
My react and react-native version
"react": "17.0.2",
"react-native": "0.68.0",

I am also having the same issue

Update: installing expo modules solved the problem! Just run npx install-expo-modules@latest
Reference: https://docs.expo.dev/bare/installing-expo-modules/#automatic-installation

In order to use Expo modules in your app, you will need to install and configure the expo package.

Hi,
After upgrading posthog ^1.1.5 to "^2.1.1" this version i am facing this issue: Error: Cannot find native module 'ExpoLocalization'
Even i try to install npm i expo-localization, but still same error
My react and react-native version "react": "17.0.2", "react-native": "0.68.0",

Update: installing expo modules solved the problem! Just run npx install-expo-modules@latest
Reference: https://docs.expo.dev/bare/installing-expo-modules/#automatic-installation
In order to use Expo modules in your app, you will need to install and configure the expo package.

For people, like me, who have no option/don't want to to implement expo in any fashion - I looked at the source code and talked to community support who told me that vanilla ReactNative is not supported.
However, there is some light.

This issue exists that hopefully soon will support vanilla.
After some tinkering I successfully mocked all expo modules with the libraries mentioned in the issue above. This is possible since the only thing expo provides are some constants.   I did this my using a babel alias plugin which replaces the libraries: expo-application, expo-device, expo-localization and expo-file-system.

Hey there 👋 as of v2.2.0 expo modules are no longer required. Check out the docs to see the installation instructions for non-expo projects.
NOTE: The initialisation of PostHog has slightly changed so be sure to check that out. (The old way still works but may have some race condition issues).

authors: SchlagerKhan benjackwhite gcho91 kashee-lv

repo: PostHog/posthog-react-native


text:
안드로이드 UI 구현시 라이브러리와  화면 구현을 나누고싶음

안드로이드 UI 구현시 라이브러리와  화면 구현으로 나누고싶음
기존 UI를 구현할때 라이브러리만 테스트하는것과 UI 화면을 구현할려고 함
이때 MainScreen에서 UI Item을 눌러서찾을때 해당 사항을 구분하고 싶음
결과적으로 Item을 그룹핑을해서 사용자에게 보여주어야함

이거 참조하면 좋을듯
https://nameisjayant.medium.com/lazycolumn-with-multi-header-in-jetpack-compose-6ab9012c8d1c

repo: PotatoMeme/Android-UI-Test


text:
在某一时刻有大量任务需要调度的场景，如何做server水平扩展分片

当前设计的现状是一个appId应用下所有worker都连接到一台server上，由这台server去负责调度这个worker集群。如果某一时刻下需要触发的任务量非常大，单台server的调度性能达到瓶颈，如何做水平扩展分片呢？

你们的需求量级大概在什么规模，面向的场景是怎么样的？
如果分片相对可控，可以自己去拆解 appId，一个 appId 可以手动拆成 appId-1，appId-2，执行器启动的时候 random 选一个，这样其实就达成了事实上的分片

如果appId-1,appId-2配置同样的任务，server应该没有实现同一时间只有一个去执行这个任务吧？

也就是appId的拆解，会导致任务也要在appId中站队，同一个任务只能绑定一个appId，那么当一个server因为任务量达到上线。此时需要部署多台server，然后将任务根据server进行拆分。

每个server分管自己名下的任务。

不知我理解的对不对，望大佬解答。

authors: KFCFans zengchangjin zmt-Eason

repo: PowerJob/PowerJob


text:
Fix ability for ConvertFrom-ArmTemplate to accept relative path (or wildcards)

Need to resolve the path parameter value otherwise relative paths are not relative to current location (also affects ability to use wildcards to match files)

Don't know why build isn't able to find the nupkgs unrelated to my change...

I believe this is implemented by https://github.com/PowerShell/PSArm/pull/136/

If you'd like to open a PR on that branch with your added test, that might be handy

will add commit with test to your PR

authors: SteveL-MSFT rjmholt

repo: PowerShell/PSArm


text:
Running script from WSL with noninteractive flag will show "SecurityError: AuthorizationManager check failed."

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
 /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -file ./xxx.ps1

Expected behavior
runs successfully since there is a -executionpolicy unrestricted flag
Actual behavior
SecurityError: AuthorizationManager check failed.

Error details
I don't know how to provide this since I'm starting a .ps1 file and the session ends before the file's execution
Environment data
Name                           Value
----                           -----
PSVersion                      7.2.5
PSEdition                      Core
GitCommitId                    7.2.5
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

I can't reproduce it.

Could you try with -noprofile argument ?
   /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -noprofile -file test.ps1
Could you try to unblock your script file ?
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0713009

doesn't work either.
(win/x64)  ➜  ~ echo "Write-Host Test" > test.ps1
(win/x64)  ➜  ~ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -file ./test.ps1
SecurityError: AuthorizationManager check failed.
(win/x64)  ➜  ~ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -noprofile -file ./test.ps1
SecurityError: AuthorizationManager check failed.
(win/x64)  ➜  ~ unblock-file
zsh: command not found: unblock-file
(win/x64)  ➜  ~ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe
PowerShell 7.2.5
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Distrod\home\leo> Unblock-File .\test.ps1
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Distrod\home\leo> .\test.ps1
.\test.ps1: File \\wsl.localhost\Distrod\home\leo\test.ps1 cannot be loaded. The file \\wsl.localhost\Distrod\home\leo\test.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Distrod\home\leo> ^C
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Distrod\home\leo> exit
(win/x64)  ➜  ~ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -noprofile -file ./test.ps1
SecurityError: AuthorizationManager check failed.

My WSL version:
(win/x64)  ➜  ~ wsl.exe --version
WSL 版本： 0.61.4.0
内核版本： 5.10.102.1
WSLg 版本： 1.0.39
MSRDC 版本： 1.2.3213
Direct3D 版本： 1.601.0
DXCore 版本： 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本： 10.0.22000.739

I can reproduce.

sun123t2@G15:~/code/tries/ps$ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -file ./test.ps1
SecurityError: AuthorizationManager check failed.
sun123t2@G15:~/code/tries/ps$ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -noprofile -file ./test.ps1
SecurityError: AuthorizationManager check failed.
sun123t2@G15:~/code/tries/ps$ unblock-file
-bash: unblock-file: command not found
sun123t2@G15:~/code/tries/ps$ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe
PowerShell 7.2.5
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Distrod\home\sun123t2\code\tries\ps> Unblock-File .\test.ps1
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Distrod\home\sun123t2\code\tries\ps> .\test.ps1
.\test.ps1: File \\wsl.localhost\Distrod\home\sun123t2\code\tries\ps\test.ps1 cannot be loaded. The file \\wsl.localhost\Distrod\home\sun123t2\code\tries\ps\test.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Distrod\home\sun123t2\code\tries\ps> exit
sun123t2@G15:~/code/tries/ps$ /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -noprofile -file ./test.ps1
SecurityError: AuthorizationManager check failed.
sun123t2@G15:~/code/tries/ps$

The PR https://github.com/PowerShell/PowerShell/pull/13120 declared \\wsl$ as a security zone when analysing a script.
https://github.com/PowerShell/PowerShell/blob/b5277c0fb771edca57e98b0ebb6faa1ad256f852/src/System.Management.Automation/engine/Utils.cs#L736
But starting WSL Build 20175, they change the \\wsl$ prefix to \\wsl .
https://docs.microsoft.com/en-us/windows/wsl/release-notes#build-20175 .
But starting WSL Build 21354, they change the \\wsl prefix to \\wsl.localhost
https://docs.microsoft.com/en-us/windows/wsl/release-notes#build-21354
So the https://github.com/PowerShell/PowerShell/issues/13106 is came back.
The WSL >20175 need a improvement to declare the new path and handle security (don't trust \\wslfake by example)

Is there any temporary workaround for this?

@leoleoasd the \\WSL$ is still working, so if you force the path, PowerShell should be OK with that.
home> echo "Write-Host Test" > test.ps1
home> /mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -file '\\wsl$\Ubuntu-20.04\home\flavien\test.ps1'

/mnt/c/Program\ Files/PowerShell/7/pwsh.exe

You are running powershell built for Windows on Linux, and I'm afraid you will get undefined behaviors. Different code paths are enabled when building for Unix platforms, and thus the Windows build powershell is bound to have issues when running in Linux environment. The recommendation is to install PowerShell in WSL and use that instead.

/mnt/c/Program\ Files/PowerShell/7/pwsh.exe

You are running powershell built for Windows on Linux, and I'm afraid you will get undefined behaviors. Different code paths are enabled when building for Unix platforms, and thus the Windows build powershell is bound to have issues when running in Linux environment. The recommendation is to install PowerShell in WSL and use that instead.

I Agree with you but the issue is related to specific PR https://github.com/PowerShell/PowerShell/pull/13120 , do you want another PR to remove the 13120 ? I don't understand.

I think it's different. https://github.com/PowerShell/PowerShell/pull/13120 is to address an issue that happened when running pwsh.exe from Windows within the WSL file system. But this issue is about running pwsh.exe directly in WSL.

I think it's different. #13120 is to address an issue that happened when running pwsh.exe from Windows within the WSL file system. But this issue is about running pwsh.exe directly in WSL.

Yes but the new default WSL Host has been changed, so the PR13120 need an update to declare the new set (\\wsl\, \\wsl.localhost\) for Windows Build > 20175. (\\wsl$\  is still present for retro-compatible)
I could create a new issue if you prefer, showing that I can't execute a script if the path is  '\wsl.localhost\Ubuntu-20.04\home\flavien\test.ps1 on the last Windows Version, because it's not declared in the security zone. (I haven't test)
And after, it will maybe solve the current issue :
/mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -file '\\wsl\Ubuntu-20.04\home\flavien\test.ps1' => KO, path is not trusted
/mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -file '\\wsl.localhost\Ubuntu-20.04\home\flavien\test.ps1' => KO, path is not trusted
/mnt/c/Program\ Files/PowerShell/7/pwsh.exe -noninteractive -executionpolicy unrestricted -file '\\wsl$\Ubuntu-20.04\home\flavien\test.ps1' => OK, path is trusted

for Windows Build > 20175. (\wsl$\ is still present for retro-compatible)

@fMichaleczek Is that Windows 11? Please open a new issue for that, thanks!

@daxian-dbw At this moment, it think it's Windows 10 Insider and Windows 11.

authors: daxian-dbw fMichaleczek leoleoasd suntt2019

repo: PowerShell/PowerShell


text:
Errors that terminate script due to -ErrorAction Stop do not show correct line number

Steps to reproduce
PS > type .\error.ps1
[Cmdletbinding()]
param()

"hello"
"world"

    1/0

PS > .\error.ps1
hello
world
Attempted to divide by zero.
At D:\junk\error.ps1:10 char:5
+     1/0
+     ~~~
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException
    + FullyQualifiedErrorId : RuntimeException

PS > $ErrorActionPreference = "Stop"
PS > .\error.ps1
hello
world
D:\junk\error.ps1 : Attempted to divide by zero.
At line:1 char:1
+ .\error.ps1
+ ~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [error.ps1], RuntimeException
    + FullyQualifiedErrorId : RuntimeException,error.ps1

Note incorrect line number being reported on second invocation when ErrorActionPreference equals "Stop"
This can also be reproduced by putting "$ErrorActionPreference = "Stop" at line 3 of the script.
I always set ErrorActionPreference to Stop at the start of my scripts, and also have ErrorActionPreference set to "Stop" always in my environment for improved robustness as I write scripts, As a result this issue is very problematic. The correct line number can be obtained by digging into $Error but that is a pain.
This started happening somewhere around the v5 release. Prior to that the correct line number was always reported. This can also be reproduced by using -ErrorAction Stop at a particular invocation, although that is a less compelling scenario.
Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.18272.1000
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18272.1000
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Note that the exception due to -ErrorAction Stop wraps the ErrorRecord that has the correct line number.  Unless we can determine if there's value in wrapping the ErrorRecord, perhaps the best thing is just to not wrap so the right line number is shown without the user having to dig into the exception for it.

Wouldn't this result in deploying the contents of defined module functions as well?
In most cases an error that is emitted is due primarily to user input, if the script or module is designed well. As such, I would contend that it makes more sense to show the user just the command call as it does now, as for many third party module functions  the innards are less relevant than the call to the command, which probably passed it the bad parameter in the first place... I think.

From the perspective of the script author having the correct line number is of course very important. That is primarily who the information is for, I would think. If the thinking is that the user doesn't care, which is a legit position, then the line number should be omitted entirely. But having incorrect information is bad for either case.
Omitting the information doesn't help anyone - I would argue it makes no difference to an end user (non-author), while it only hurts the author's ability to troubleshoot. Putting the correct info makes life substantially better for the author, while again making little to no difference to the end user.

I would like to re-iterate as well that I'm 100% certain this is a regression from at least v4, when I was doing extensive script authoring and never saw this problem. Unfortunately, I don't know exactly when the behavior changed.

Not wrapping the ErrorRecord with an exception when $ErrorActionPreference = Stop by cause unintended side effects.  Another option to address the user experience issue is updating the default error view to show ErrorRecords and/or InnerExceptions https://github.com/PowerShell/PowerShell/issues/3647

Note also difference in the script name for two reported errors:
At D:\junk\error.ps1:10 char:5
At line:1 char:1

First thing points to line 10 in the script. Second one points to line 1 in the console, not in the script.

That is certainly an unusual discrepancy, indeed. Two sources of information here in the one error message! 😄

Check also this example:
function diverr {
    [CmdletBinding()]
    param()
    1/0  # line 4
}
diverr -ErrorAction Stop  # line 6

With -ErrorAction Stop error is reported in line 6. Without -ErrorAction Stop, error is reported in line 4.

authors: LyleCorbin SteveL-MSFT iricigor vexx32


text:
Update branch for release

Automated changes by create-pull-request GitHub action

needed to revert a commit before having the bot create this


text:
Removing aliases usages in build.psm1

Converting aliases to cmdlets in build.psm1
PR Summary
Converting aliases to cmdlets in build.psm1

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 .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[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.

User-facing changes

[x] Not Applicable
OR
[ ] User-facing Documentation needed

[ ] Issue filed - Issue link:

Testing - New and feature

[x] Not Applicable or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[ ] Add [feature] if the change is significant or affects feature tests

LGTM but not sure if the named parameters usage is a bit over the top

authors: bergmeister kvprasoon


text:
xSQLServerSetup: Installation hangs without any error when using UNC path

Installation hangs without any error. This happens when using UNC path in the SourcePath parameter and at the same time is not using SourceCredential.
After some debugging, it seems that Start-Process hangs when calling setup.exe and does not return.
This will be solved when PR #123 is merged.
I think the culprit is security. ;) This one that popup when I ran the command
Start-Process -FilePath \\fs.company.local\images\SQL2016RTM-ENT\setup.exe
    -ArgumentList '/IAcceptSQLServerLicenseTerms="True" /Action="Install" /InstanceName="SQL2016" /UpdateEnabled="False" /Features="IS" /BrowserSvcStartupType="Automatic"'

You can get around this by adding the domain to the trusted zone Local Intranet. But that is only for the logged on user. So won't do it for DSC.

Tried changing the local group policy to allow .exe. But that did not work. Did not try setting this in the domain, since it opens up to much.
Local Computer Policy/User Configuration/Administrative Templates/Windows Components/Attachment Manager

Setting: Inclusion list for low file types
Value: .exe

What did work was to run Start-Process with the -NoNewWindow parameter. It then use the Microsoft .NET Framework CasPol (CasPol.exe) to "override" this lite bump. Don't know any more than that. If someone know more what happens here, please enlighten me 😄
PS C:\Windows\system32> Start-Process -FilePath \\fs.company.local\images\SQL2016RTM-ENT\setup.exe
    -ArgumentList '/IAcceptSQLServerLicenseTerms="True" /Action="Install" /InstanceName="SQL2016" /UpdateEnabled="False" /Features="IS" /BrowserSvcStartupType="Automatic"' -NoNewWindow

Microsoft (R) SQL Server 2016 13.00.1601.05
Copyright (c) 2016 Microsoft Corporation.  All rights reserved.

Microsoft .NET Framework CasPol 4.0.30319.33440
for Microsoft .NET Framework version 4.0.30319.33440
Copyright (C) Microsoft Corporation.  All rights reserved.

WARNING: The .NET Framework does not apply CAS policy by default. Any settings shown or modified by CasPol will only
affect applications that opt into using CAS policy.

Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.

Success
Microsoft .NET Framework CasPol 4.0.30319.33440
for Microsoft .NET Framework version 4.0.30319.33440
Copyright (C) Microsoft Corporation.  All rights reserved.

WARNING: The .NET Framework does not apply CAS policy by default. Any settings shown or modified by CasPol will only
affect applications that opt into using CAS policy.

Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.

Success
SQL Server 2016 transmits information about your installation experience, as well as other usage and performance data, t
o Microsoft to help improve the product. To learn more about SQL Server 2016 data processing and privacy controls, please see the Privacy Statement.

Found this that explains more about CasPol.
Caspol.exe (Code Access Security Policy Tool)
Using CasPol to Fully Trust a Share
This would trust everything under the 'foldershare'.
CasPol.exe -polchgprompt off -machine -addgroup 1.2 -url \fs.company.local\foldershare* FullTrust
So then Start-Process must call CasPol to trust the path in the -Path parameter when the parameter `-NoNewWindow' is used.

For reference. This error occurs when not using the parameter SourceCredential.

In PR #578 there is a new timeout parameter (SetupProcessTimeout) which is meant to partly resolve this by at lest throwing an error if the setup is not finished within 2 hours (default value).

With PR #578 I cannot reproduce this one. So I think this get's solved in PR #578 thanks to it now starts the process using Setup-Process.

repo: PowerShell/xSQLServer

license: mit


text:
Here is BMI Calculator

here is a python script for the GUI BMI calculator by using Tkinter.

Did you set environment variables for this?

repo: Precillieo/Can-You-Solve-a-Problem


text:
in scrollEndHandler, hide the spinner if all the children are read

Pull Request
Hi,
Thanks for helping us improve the Predix UI platform by submitting a Pull Request.
To help us merge your Pull Request as fast as possible, please fill out the following sections:

A description of the changes proposed in the pull request:

When the columnBrowser is scrolled down at the bottom, if all the children are already displayed, the spinner is never hidden.
In scrollEndHandler, if the total is reached (item.children.length >= item.meta.total), the spinner should be hidden before the return statement.

A reference to a related issue (if applicable):

Scrolling issue with lazy loading mode #8

@mentions of the person or team responsible for reviewing proposed changes:

working tests:

The tests need to be functional and/or unit tests, written for the wct framework, and placed in the test folder, following our testing guidelines.

Thanks for your PR - this makes perfect sense :)

authors: runn-vermel stephanepilla

repo: PredixDev/px-context-browser


text:
Chore: Cleaned up types

regex replace
MapFunction<(.*?)> = function\(source(:.+)\)(:.+) \{$
MapFunction<$1> = function(source) {

Is the idea here just that this typing was redundant?

@space-age-pete exactly, just adds noise

@space-age-pete I believe at one point either because of typescript or eslint (maybe both) the types were necessary. But something got updated and now they're not necessary so nice to be able to remove them.
thanks @stackoverfloweth !

authors: pleek91 space-age-pete stackoverfloweth

repo: PrefectHQ/orion-design


text:
Exporter OOMKilled

Describe the bug a clear and concise description of what the bug is.
After update from Chart 2024.8.15191644 (code release 1.4.0) to Chart 2024.9.3172343 (code release 1.5.0) collector pod having being killed by OOM reason even before its getting fully initialised.
Application name
prometheus-prefect-exporter
Application version
1.5.0
Explain bug
After new release pagination was added.
PrefectFlowRuns.get_all_flow_runs_info() query all flows from the server without any filtering.
All together it leads to all flow runs for entire history being loaded from the server.
What you expected to happen?
Exporter do not downloading all flow runs history from the server
How to reproduce it?
Run exporter connected to a prefect server with 100K finished flows
More info
No response

I'm experiencing similar issues after upgrading to version 1.5.0:

Increased RAM Usage:

Before: ~100MB
After: 1Gi (10x increase)

/metrics Endpoint:

Responding very slowly
Consistently timing out when Prometheus pulls data

Environment:

Prefect server: v2.14.17
~200 flow runs per day

Due to these issues, we've reverted to version 1.4.0 as a temporary solution.
Happy to provide more details if needed.

Thank you both for the report. We'll take a look at this as soon as possible. In the meantime, 1.4.0 can be used as @sfai05 recommended.

👋 We have updated the exporter to allow for enabling or disabling pagination along w/ setting your own pagination limits.  If you have installed the exporter via helm you can update the chart version and disable pagination through the helm values found here.  If you have deployed manually you can bump the image version disable pagination by setting the environment variable PAGINATION_ENABLED to False.  Let us know if you have any issues!

repo: PrefectHQ/prometheus-prefect-exporter


text:
How to use this?

I need this but IDK how does it works

Import this virion ino your plugins
And use it like...
use kim\present\converter\png\PngConverter;
use pocketmine\network\mcpe\protocol\types\SkinImage;

/** @var SkinImage $skinImage */
$skinImage = PngConverter::toSkinImageFromFile("path/your/png/file");

This is virion project. You can use it with poggit.

Official Poggit Virion Documentation

If you don't know virions usage, Just copy this code into your plugin.
You are free to use the MIT licensed sources.

repo: PresentKim/png-converter


text:
Merge retry failed push fixes #201

@PressLabs/presslabs CR
If there is anything else regarding possible tests. I'm open to ideas.

@PressLabs/presslabs  CR?

@vtemian currently if no internet connection is available it will continuously try to push without committing changes locally. Is this the way it should work?
Or it should stop trying to merge the remote after some number of tries and resume the local commit phase then try again with the remote merge?
I find the second option more natural as this way it would save local progress at least x amount of time.

Switching the filesystem to read-only if a push failed it's the right thing to do. In this way you will be POSIX complaint, when a write occured and the write system call succeeded, you're information needs to be on the upstream. If this it's not possible, wait until it's possible and in case of conflict, apply always accept mine strategy.
Almost the same scenario in case the commit queue it's not already fully consumed. You're content won't be online if a failure was accoutered.

@vtemian can't seem to find a way to set the fs as readonly? Can this be done with the current impl?
Any hints to reduce the codebase would be great.

This is the current behavior. It's already implemented, that's way if a push fails it will try to push without committing local changes (which in theory you shouldn't have, because the filesystem is in read-only)

@krodyrobi can you please take a look at the suggested changes?

@PressLabs/presslabs CR

authors: krodyrobi vtemian zalmanu

repo: PressLabs/gitfs


text:
MultiSelect not diplayed if f.value is empty

In the PanelSettings, the MultiSelect Component is not displayed is his value is "".

Is this not normal? I seem to remember that this field expects an array as input.
@jf-viguier can you confirm ?

Nope, not normal, i've fixed it in https://github.com/PrestaSafe/prettyblocks/tree/remove-lang-table
I've some improuvements to add (for settings) and it's gonna be OK.

authors: PrestaSafe micka-fdz

repo: PrestaSafe/prettyblocks


text:
Update config.xml

Questions
Answers

Description?
Please be specific when describing the PR.  Every detail helps: versions, browser/server configuration, specific module/theme, etc. Feel free to add more information below this table.

Type?
bug fix / improvement / new feature / refacto / critical

BC breaks?
yes / no

Deprecations?
yes / no

Fixed ticket?
Fixes PrestaShop/PrestaShop#{issue number here}.

How to test?
Please indicate how to best verify that this PR is correct.

Ping @kpodemski


text:
Add moonscript integration

Allow lua-quickcheck to be used from moonscript.
Changes needed for this still need to be determined, could work straight out of the box?

As expected, it works immediately.
Added 1 modification to property function to support both DSL and non-DSL syntax.
(non-DSL syntax looks better in moonscript.)
Also added a simple test for now to verify it keeps working.
Closing issue now.

repo: Primordus/lua-quickcheck


text:
Modded ore types in Nether and End

Would it be possible to add some modded ores to the ore types that spawn in the nether and the end. Like maybe detect if there is copper, tin, uranium, other gem types, etc... and then add Nether and End versions much like your mod does for the vanilla ores? I greatly prefer your method of adding ore over the NetherOres mod or the other options out there mainly because they overlay on the texture pack I use instead of forcing them to the 16x vanilla texture which stand out horribly when using 32x+ texture packs (I use soartex 64x).
Another awesome thing would be to have some cross mod compatibility with NetherEx to add your ores to the different netherrack variants that are added by that mod and other mods as well if at all possible.

Sure, i can start looking into that.
So maybe

copper
tin
aluminium
silver
-whatever else is added by Thermal expansion or Immersive Eng ..or maybe mekanism

-- What other mods / ores should i not forget about?

Nuclearcraft is one of the big ones in my pack, but you got the primary ones covered in your list. Other odd ones that might be good are the ones from Tech Reborn (although it has its own nether based ores) and Advanced Rocketry. Oh and definitely certus quartz and the charged variant
Here is a list of oredict names of some the ores I would love to have spawn in the nether and end in my current pack for reference. It has Nuclearcraft, Industrialcraft, Tech Reborn, Mekanism, Applied Energistics, and Advanced Rocketry as the primary tech mods.

    oreCertusQuartz

    oreChargedCertusQuartz

    oreLead

    oreUranium

    oreThorium

    oreBoron

    oreLithium

    oreMagnesium

    oreGalena (this is like a lead/silver mix)

    oreIridium

    oreRuby

    oreSapphire

    oreBauxite (this would be the aluminum)

    oreTitanium

    oreOsmium

Started with the textures first.  Rutile is titanium, so I think this is everything..... Possibly an issue with Boron, dilithium and lithium since the ones i found in the mod are 32x.  might be fine though IDK yet.

Other ore dict entries in addition to above, as a note to self so i remember and keep spelling correct. (ill edit this as I go as needed)
oreTin
oreNickel
oreQuartz
oreQuartzBlack
oreAluminum (register bauxite with both ore dicts, since some mods use this
oreSilver
oreAquamarine
oreCobalt
oreDilithium
oreSaltpeter (nitre ore)
orePlatinum
oreRutile (the block has both this and oreTitanium, so reg it with both
oreTungsten
oreYellorium
oreMithril (mana infused ore from thermal foundation)

Still needs lots of testing for worldgen, compatibility, etc, but here is a
Progress update:

using Soartex texture pack

Freking AWESOME thanks very very much good sir!

Alpha version with this feature is out
https://minecraft.curseforge.com/projects/cyclic/files/2538731
is disabled by default . if theres any questions feel free to ping me on twitter https://twitter.com/lothrazar , or open an issue if theres a problem or I missed an ore or whatever.

authors: Landstryder PrinceOfAmber

repo: PrinceOfAmber/Cyclic


text:
React, using script file token & rest errors w/ added Prism script file

I downloaded a Prism js file from the website with the added language of "rego" to use for syntax highlighting. I'm getting the following errors when I attempt to use a script file downloaded from the site.

Here is a codesandbox to reproduce the issue. This occurs whether I use the minified or development version. These errors are all coming from the script file.

Some reason it says prism, but its pointing to the html file. I thought this might help

Here is a fixed version.
I don't know why but you imported Prism from npm instead of using the download file. This probably wasn't the cause for the syntax error but it's wrong either way.
My best guess as to why the syntax error occurs is that useScript causes it. No idea how or why tho.

In the code sandbox that works but when I try that locally I get the following errors

That's ESLint complaining. You can either update your config to ignore those rules or use //eslint-disable comments to hide the complaints.

Thank you I figured that out a little before you commented. Sorry about the trouble

authors: AveryTheDev RunDevelopment mAAdhaTTah

repo: PrismJS/prism


text:
Website: Fix diff highlight plugin page title

https://prismjs.com/plugins/diff-highlight/ shows "Data-URI highlight" as page's <title>

Thank you for fixing this @sidvishnoi!

authors: RunDevelopment sidvishnoi


text:
Tests: Fixed all type errors

This fixes all type errors in our test files. I just added and changed comments, so no functional changes.
The most "controversial" part of this might be the types.d.ts file I added. Some types cannot be expressed in JSDoc, so I just added a small declaration file and imported the types I need from there.
(Btw. the feature not supported in JSDoc is recursive type definitions.)

How'd you confirm all the type errors were resolved? Do we want to integrate that step to maintain this going forward? Not 100% sure we should but if we wanted to, how would we?

How'd you confirm all the type errors were resolved?

Just inside the IDE.

Do we want to integrate that step to maintain this going forward? [...] if we wanted to, how would we?

We just need a tsconfig.json configured to not emit any code and then run tsc.

I'll close this now.
We plan to integrate TS via JSDoc in v2, so we will have to fix all type errors + add TS at some point anyway.

authors: RunDevelopment mAAdhaTTah


text:
Close headless socket connection

In #141 there was implemented a way to close the server (ref), but this is not available on the headless mode while using sockets. The connection gets created here, and cannot be destroyed.

what is the question here?

what is the question here?

How do I destroy the socket (in headless mode)

client is returned by the function creating the headless mode so you should be able to call .end() on it https://nodejs.org/api/net.html#socketenddata-encoding-callback

repo: PrismarineJS/prismarine-viewer


text:
Adding Fasttext benchmarks

Added both models provided by Fasttext
Something is not right with the object size function. Doesn't seem to be correct for the fasttext model. Any ideas?

btw, when I have sometime will propose some refactoring to make it nicer

Everything Looks good !
Folder structure is a good move, I reserved it for later.
getsize() should work fine if you are dealing with scikit-learn style pickled models. You just have to call it in the right place. Do check the code. - Once it's done we can merge. Cheers

authors: PrithivirajDamodaran stephenleo

repo: PrithivirajDamodaran/langid-benchmark


text:
Solved the issue of page rendering at bottom

Solved issue #274  Now the page /fullservicefund opens at the top when the respective route is hit.
https://github.com/Priyaaa1/StartConnect-Hub/assets/154724111/b3d9c899-dfbf-42e9-80a0-f899e4934654

@Priyaaa1 Pls review the PR!!!


text:
更换自己数据后报错。

新数据已经改为示例数据格式，labels名称和数量更换了，文件txt也是utf-8格式，但是依然会报错，百思不得其解：
ERROR:tensorflow:Error recorded from evaluation_loop: 'utf-8' codec can't decode bytes in position 2844-2845: invalid continuation byte
E1008 14:17:13.590271 139627806422848 error_handling.py:75] Error recorded from evaluation_loop: 'utf-8' codec can't decode bytes in position 2844-2845: invalid continuation byte
INFO:tensorflow:evaluation_loop marked as finished
I1008 14:17:13.590479 139627806422848 error_handling.py:101] evaluation_loop marked as finished
WARNING:tensorflow:Reraising captured error
W1008 14:17:13.590565 139627806422848 error_handling.py:135] Reraising captured error
Traceback (most recent call last):
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1365, in _do_call
return fn(*args)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1350, in _run_fn
target_list, run_metadata)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.OutOfRangeError: End of sequence
[[{{node IteratorGetNext}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "albert_ner.py", line 848, in
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "albert_ner.py", line 788, in main
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/tpu/tpu_estimator.py", line 3056, in evaluate
rendezvous.raise_errors()
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/tpu/error_handling.py", line 136, in raise_errors
six.reraise(typ, value, traceback)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/six.py", line 719, in reraise
raise value
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/tpu/tpu_estimator.py", line 3051, in evaluate
name=name)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 480, in evaluate
name=name)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 522, in _actual_eval
return _evaluate()
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 511, in _evaluate
output_dir=self.eval_dir(name))
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1619, in _evaluate_run
config=self._session_config)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/training/evaluation.py", line 272, in _evaluate_once
session.run(eval_ops, feed_dict)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/training/monitored_session.py", line 754, in run
run_metadata=run_metadata)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/training/monitored_session.py", line 1259, in run
run_metadata=run_metadata)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/training/monitored_session.py", line 1360, in run
raise six.reraise(*original_exc_info)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/six.py", line 719, in reraise
raise value
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/training/monitored_session.py", line 1345, in run
return self._sess.run(*args, **kwargs)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/training/monitored_session.py", line 1418, in run
run_metadata=run_metadata)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/training/monitored_session.py", line 1176, in run
return self._sess.run(*args, **kwargs)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 956, in run
run_metadata_ptr)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1180, in _run
feed_dict_tensor, options, run_metadata)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1359, in _do_run
run_metadata)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1378, in _do_call
message = error_interpolation.interpolate(message, self._graph)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/framework/error_interpolation.py", line 454, in interpolate
common_prefix = traceback_files_common_prefix(tagged_ops)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/framework/error_interpolation.py", line 358, in traceback_files_common_prefix
for frame in op.traceback:
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py", line 2309, in traceback
return tf_stack.convert_stack(self._traceback)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/util/tf_stack.py", line 199, in convert_stack
return tuple(_tuple_generator())
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/site-packages/tensorflow_core/python/util/tf_stack.py", line 189, in _tuple_generator
line = linecache.getline(filename, lineno, frame.globals)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/linecache.py", line 16, in getline
lines = getlines(filename, module_globals)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/linecache.py", line 137, in updatecache
lines = fp.readlines()
File "/home/mingzhen/anaconda3/envs/albert/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 2844-2845: invalid continuation byte

一直报以下错误，请问大佬知道是怎么回事，要如何解决这个问题吗？
tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for albert_base_zh/albert_model.ckpt

repo: ProHiryu/albert-chinese-ner


text:
MoodDiary-Starkmacher-Feedback-MoodDiary Flow

Wenn das mood diary zu den Starkmachern navigiert, setzt es origin: 'MoodDiary'. Der Wert wird von MotivatorNavigator per initialParams an MotivatorCompleted weitergegeben, der dann weiß, dass er nach Fertigstellung zurück zur MoodEntry mit dem Parameter returnFrom: 'Motivator' navigieren muss.
MoodEntry zeigt dann den alternativen Text an und leitet leitet nach Anklicken der Stimmung nicht auf einen der Intro-Screens weiter, sondern sendet den API-Call und navigiert zurück zur Kalenderansicht.

Sieht für mich gut aus!

authors: JonahBalshai MHajoha

repo: ProgPrak-Native-App/react-native-app


text:
No score entered for player causes errors with stats

Small bug to report.
Environment Details:
iPhone X
OS: iOS 15.3.1
App: v1.5.897
Issue:
When entering scores for players, an issue occurs when a player scores no points, and no score is entered for that player.
When at the point enter screen, any player that hasn't had their points edited yet shows 0 points. But when the scores are saved, the history page will show the score as "-", instead of 0.
Then, on the stats page of that game, the "games won by player" pie chart incorrectly shows that the player with "-" score has won a game.

I've attempted to attach two pictures (sorry about the huge size) that should help visualize the issue. The logged game picture shows a logged game with the player Ben scoring 10 points, and the player Macy scoring "-" points, due to no score being entered for them. Yet in the Overall Stats picture, you can see that in the chart, Macy is shown to have won 100% of the games, and not Ben.
Small issue that can be fixed by adding one point, and then subtracting one point from the player that should have 0 points. But figured it was worth mentioning as a bug.

@BAT754 This bug should be now fixed with the latest version of the app released today (1.5.930). If you are still seeing the problem I'll reopen the issues

repo: Progrunning/BoardGamesCompanion


text:
Adding test cases for dnsgen 'partiate domain'

Hello Patrik,
I have created a test file for partiate domain method using unittest module. I have considered different cases for valid and invalid domain names and have tested for special characters as well using assertEqual(). I'm a beginner in python and new to open source. This being my first contribution, I request you to suggest any improvements.
Thanks,
Sri

Thanks for the PR, can you please move it to "tests/" folder in the root rather than "dnsgen/"?
Thanks

authors: PatrikHudak SrilakshmiSH

repo: ProjectAnte/dnsgen


text:
Add SignedZone

Adds SignedZone, compliant with with SIP-7

Codecov Report
Base: 64.82% // Head: 74.00% // Increases project coverage by +9.17% :tada:

Coverage data is based on head (c003bfd) compared to base (976956d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.2     #895      +/-   ##
==========================================
+ Coverage   64.82%   74.00%   +9.17%
==========================================
  Files         107       46      -61
  Lines        4421     2308    -2113
  Branches      559      363     -196
==========================================
- Hits         2866     1708    -1158
+ Misses       1532      479    -1053
- Partials       23      121      +98

Flag
Coverage Δ

foundry
74.00% <ø> (+26.35%)
:arrow_up:

production
?

reference
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

contracts/Seaport.sol
0.00% <0.00%> (-100.00%)
:arrow_down:

contracts/lib/TypehashDirectory.sol
0.00% <0.00%> (-100.00%)
:arrow_down:

reference/lib/ReferenceReentrancyGuard.sol
0.00% <0.00%> (-100.00%)
:arrow_down:

reference/lib/ReferenceConsiderationBase.sol
0.00% <0.00%> (-100.00%)
:arrow_down:

reference/conduit/ReferenceConduitController.sol
0.00% <0.00%> (-100.00%)
:arrow_down:

contracts/conduit/ConduitController.sol
2.59% <0.00%> (-97.41%)
:arrow_down:

contracts/lib/ConsiderationBase.sol
23.52% <0.00%> (-72.63%)
:arrow_down:

reference/lib/ReferenceVerifiers.sol
26.92% <0.00%> (-71.16%)
:arrow_down:

reference/lib/ReferenceAssertions.sol
33.33% <0.00%> (-66.67%)
:arrow_down:

contracts/lib/Verifiers.sol
38.23% <0.00%> (-53.87%)
:arrow_down:

... and 93 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter ryanio

repo: ProjectOpenSea/seaport


text:
Preencher 5w2h

O 5w2h está na pasta docs - base

preenchi as informações necessárias, caso haja algum erro posso editar dnv.


text:
Unexpected token export

Hey guys I'm getting this error when trying to run it:
index.js:1 Uncaught SyntaxError: Unexpected token export
This is just happening by adding Md2Module.forRoot() in my module.
Using: Angular 2.2.4 with Webpack

I have the same issue :) Probably something with Webpack.

I am seeing the same issue. Did you resolve this?

This is what I'm seeing: Uncaught SyntaxError: Unexpected token export
It's the first line from the following function which is failing:
/***/ },
/* 689 */
/***/ function(module, exports) {

	export * from './core';
	export * from './module';
	export * from './accordion/index';
	export * from './autocomplete/index';
	export * from './chips/index';
	export * from './collapse/index';
	export * from './colorpicker/index';
	export * from './data-table/index';
	export * from './datepicker/index';
	export * from './dialog/index';
	export * from './menu/index';
	export * from './multiselect/index';
	export * from './select/index';
	export * from './tabs/index';
	export * from './tags/index';
	export * from './toast/index';
	export * from './tooltip/index';

	//# sourceMappingURL=index.js.map

/***/ },

We have fixed the issue with release md2@0.0.13-1,
comment here if you have an issue

I still get the same error message after the update to 0.0.13-1 :-(

Anybody else tried it?

Working fine for me now but I'm using Webpack 2.
"md2": "0.0.13-1",
"webpack": "2.2.0-rc.4",

@web265p3 I recommend npm uninstall the package and reinstalling it just in case something might be lingering around.

I already did this, but with the last stable version of Webpack there is not way.
But because the only reason Webpack 2 is still in beta is a leak of documentation I also just upgraded and now md2 works like a charm :-)

We have fixed the issue with release md2@0.0.14,
comment here if you have an issue

@dharmeshpipariya after the fix, should it also work with webpack 1.13 or is webpack 2 mandatory?

I am getting the same error right now. @dharmeshpipariya
md2 version : 0.0.16
webpack version : 1.13.1

We have fixed the issue with release md2@0.0.16,
comment here if you have an issue

I'm having the same issue with release md2@0.0.19.
 "webpack": "^1.15.0"

authors: Daffko codelovesme dharmeshpipariya marxxxx mtinnes tariknz web265p3 xmlguy74


text:
Support for multi-instance workloads

This is more of a question but if I have a workload using 2 instances (A & B) - How can metrics reported by A be used in B?
Is this possible at all? For example, how do we sync state? Do we have to do it ourselves?

It should be possible to add the same metric instance into more then 1 registry via ICollectorRegistry.Add. And then register several endpoints for each registry.
I can create a sample code for you tonight.

Hi again!
        var registry1 = new CollectorRegistry();
        var factory = new MetricFactory(registry1);
        var counter = factory.CreateCounter("test_count", "helptext");

        var registry2 = new CollectorRegistry();
        registry1.TryGet("test_count", out var metric);
        registry2.Add(metric);

        IMetricServer metricServer = new MetricServer(registry1, new MetricServerOptions { Port = 9091 });
        metricServer.Start();

        IMetricServer metricServer2 = new MetricServer(registry2, new MetricServerOptions { Port = 9092 });
        metricServer2.Start();

        counter.Inc(5);

        Console.WriteLine("Press any key..");
        Console.ReadKey();
        metricServer.Stop();
        metricServer2.Stop();

It do the trick: client code works with single metric, but it reports to both endpoints.

Thanks for the sample but, unfortunately, my scenario is actually different I think.
I have one application which can run multiple instances. Every instance will have their own scrape endpoint which can be called and has a LB in front.
If instance A reports 10, how do we ensure instance B reports the same? Do we have to do that ourselves? Do we need to persist it?

Oh I see. Is there k8s cluster to run your instances? If so, there is k8s operator to handle it.
Otherwise you have to install Prometheus server "inside" your application's network and scrap both servers. Or make some kind of proxy to each endpoint.
Anyway it will be better to let Prometheus have access to both servers, and calculate sum (or whatever you need) via Prometheus expressions while visualization.

It is running in Kubernetes indeed, but Prometheus only knows the Service it calls which will route to one of my instances. There is no way for Prometheus to be able to scrape both instances for this.

Hello!
You should check your config, here documentation for kubernetes: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config
When you can't scrape 2 services, maybe you can use Pushgateway.

Here is some tutorial how to monitor application in k8s:
https://medium.com/kubernetes-tutorials/simple-management-of-prometheus-monitoring-pipeline-with-the-prometheus-operator-b445da0e0d1a
In general it means you have to install additional pod (operator) into your k8s cluster and add some labels to target services, so operator can query cluster to discover the services and automatically scrape them.
Or if there is no way to add something inside the cluster, then you probably have to use PushGateway, so each service will report its metrics on itself.

@tomkerkhove as there is nothing to be done on Prometheus.Client side, I'll close the issue. Feel free to reopen it if there is anything else we can do to help.

authors: phnx47 sanych-sun tomkerkhove


text:
Updated for additional coverage

Added test for find by name in test_routes.py and removed category in models.py since it does not exist in our model

Codecov Report

Merging #79 (a2c716c) into main (77cf81b) will increase coverage by 1.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   94.65%   95.73%   +1.07%
==========================================
  Files           5        5
  Lines         262      258       -4
==========================================
- Hits          248      247       -1
+ Misses         14       11       -3

Impacted Files
Coverage Δ

service/models.py
97.33% <ø> (+2.39%)
:arrow_up:

service/routes.py
97.46% <0.00%> (+1.26%)
:arrow_up:

Continue to review full report at Codecov.

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

repo: PromotionsSquad/promotions


text:
Defining Synthetic Fields within Component Arguments

The definition of synthetic fields have to be specified outside the definition of a Dash component
Borrow.amount2 = Borrow.amount + 1

BarChart(
        Query.borrows,
        orderBy=Borrow.timestamp,
        orderDirection="desc",
        first=100,
        x=Borrow.reserve.symbol,
        y=Borrow.amount2
      )

Defining the synthetic field inside the visualization component could provide a better UX especially when considering one off mappings.
BarChart(
        Query.borrows,
        orderBy=Borrow.timestamp,
        orderDirection="desc",
        first=100,
        x=Borrow.reserve.symbol,
        y=Borrow.amount + 1
      )

Replaced by #49

authors: ThierryBleau cvauclair

repo: Protean-Labs/subgrounds


text:
🛑 Service - Help Center is down

In e90d222, Service - Help Center ($HELP_URL) was down:

HTTP code: 502
Response time: 387 ms

Resolved: Service - Help Center is back up in f23a370.

repo: Proxeuse/status


text:
🛑 Service - Customer Portal is down

In 49f72cc, Service - Customer Portal (https://my.proxeuse.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Service - Customer Portal is back up in d6d2860 after 18 minutes.


text:
Assertion failure in _swizzleURLSessionDataTaskDidReceiveResponseForIOS13AndLater

Version: 1.2.0 (d918263) integrated using SPM.
Device: Simulator running iOS 13.0.
This happens in NetworkInjector+URLSession.swift:82, due to a failed safe-check in this line:
if let task = me.value(forKey: "task") as? URLSessionDataTask

The response URL is starting with https://app-measurement.com/config/app/.... So most likely, this is a request sent by Firebase SDK (namely Firebase Remote Config feature).
Some LLDB info:
po me.value(forKey: "task") as? URLSessionDataTask
nil

po type(of: me.value(forKey: "task")!)
__NSCFLocalDownloadTask

po dump(me.value(forKey: "task")!)
- LocalDownloadTask <20850171-C07B-4A76-9195-08F62CCB7ACC>.<1> #0
  - super: __NSCFLocalSessionTask
    - super: __NSCFURLSessionTask
      - super: NSURLSessionTask
        - super: NSObject
LocalDownloadTask <20850171-C07B-4A76-9195-08F62CCB7ACC>.<1>

p me.value(forKey: "task")!
Any) $R96 = {
  payload_data_0 = 0x00007fe1e4601ce0 {
    base__NSCFLocalSessionTask@0 = {
      base__NSCFURLSessionTask@0 = {
        baseNSURLSessionTask@0 = {
          baseNSObject@0 = {
            isa = __NSCFLocalDownloadTask
          }
          _nw_activity_ivar = nil
          _metrics_ivar = 0x000060000191c360
          earliestBeginDate = nil
          _private_nw_activity = nil
          __taskGroup = 0x00007fe1e4503dc0
        }
        _cachedSocketStreamProperties = 0x0000600003d52780
        _httpConnectionInfoCompletionBlock = nil
        _taskIdentifier = 1
        _taskDescription = nil
        _loggableDescription = 0x0000600001ea0af0 "Task <20850171-C07B-4A76-9195-08F62CCB7ACC>.<1>"
        _originalRequest = some {
          some = 0x0000600003f09930 {
            baseNSURLRequest@0 = {
              baseNSObject@0 = {
                isa = NSMutableURLRequest
              }
              _internal = 0x0000600000606f20
            }
          }
        }
        _currentRequest = some {
          some = 0x0000600003f31850 {
            baseNSURLRequest@0 = {
              baseNSObject@0 = {
                isa = NSMutableURLRequest
              }
              _internal = 0x000060000060e2f0
            }
          }
        }
        _response = some {
          some = 0x0000600003c205c0 {
            baseNSURLResponse@0 = {
              baseNSObject@0 = {
                isa = NSHTTPURLResponse
              }
              _internal = 0x0000600001640460
            }
            _httpInternal = 0x0000600003c20200
          }
        }
        _countOfBytesClientExpectsToSend = -1
        _countOfBytesClientExpectsToReceive = -1
        _countOfBytesReceived = 0
        __countOfPendingBytesReceivedEncoded = 0
        __countOfBytesReceivedEncoded = 0
        _countOfBytesSent = 0
        _countOfBytesExpectedToSend = 0
        _countOfBytesExpectedToReceive = -1
        _state = 0
        _error = nil
        _startTime = 626263406.09285104
        __TCPConnectionMetadata = nil
        _TLSNegotiatedCipherSuite = 4865
        _priorityHint = 0.5
        _priorityValue = 300
        _loadingPriorityValue = 0.5
        _bytesPerSecondLimitValue = 0
        _expectedProgressTargetValue = 0
        _backgroundTransactionMetrics = nil
        _legacySocketStreamProperties = nil
        _cfHSTS = 0x0000000000000000
        _cfCache = 0x0000000000000000
        _cfCreds = 0x0000000000000000
        _cfCookies = 0x0000000000000000
        _cachePolicy = 1
        _timeoutInterval = 60
        _timeoutIntervalForResource_ivar = 60
        _proxySettings = nil
        _sslSettings = 0x0000600003d51ea0
        _cookieAcceptPolicy = 2
        _contentDispositionFallbackArray = nil
        _networkServiceType = 0
        _qos = 9
        _voucher = nil
        _suspensionThreshhold = 524288
        _boundInterfaceIdentifier = nil
        _allowedProtocolTypes = 0
        _requestPriority = -1
        _expectedWorkload = 0
        _timeWindowDelay = 0
        _timeWindowDuration = 0
        _uniqueIdentifier = 0x0000600003c364e0
        _powerAssertion = 0
        _darkWakePowerAssertion = 0
        _effectiveConfiguration = 0x0000600003f096c0
        _protocolForTask = nil
        _authenticator = nil
        _storagePartitionIdentifier = nil
        _parentDocumentURL = nil
        _siteForCookies = nil
        _dependencyInfo_ivar = 0x0000600003c3acc0 1 key/value pair
        _DuetActivityProperties = nil
        _dependencyTree = nil
        _taskDependency = nil
        _pathToDownloadTaskFile = nil
        _trailers = nil
        _discretionaryOverride = 0
        _appleIDContext = nil
        _progress = nil
        _uploadProgress = nil
        _downloadProgress = nil
        _publishingURL = nil
        _backgroundPublishingURL = nil
        _APSRelayTopic = nil
        _extractor = nil
        _extractorFinishedDecoding = false
        _hasSZExtractor = false
        _doesSZExtractorConsumeExtractedData = false
        _shouldSkipPreferredClientCertificateLookup = false
        _cacheOnly = false
        _preventsSystemHTTPProxyAuthentication = false
        _requiresSecureHTTPSProxyConnection = false
        _preventsAppSSO = false
        _appSSOFallback = false
        _shouldPipelineHTTP = false
        _shouldUsePipelineHeuristics = false
        _shouldSkipPipelineProbe = false
        _shouldHandleCookies = true
        _isTopLevelNavigation = false
        _prohibitAuthUI = false
        _strictContentLength = true
        _connectionIsCellular = false
        _disallowCellular = false
        _allowsCellular = true
        _allowsExpensiveOverride = 0
        _allowsConstrainedOverride = 0
        _allowsCellularOverride = 0
        _isInUpload = false
        _undeterminedUploadProgressState = false
        _undeterminedDownloadProgressState = false
        _progressReportingFinished = false
        _allowsQUIC = false
        _preventsIdleSystemSleep = false
        _preconnect = false
        _authenticatorConfiguredViaTaskProperty = false
        _seenFirstResume = true
        _atsStateCache = 0x00006000023a5700
        _connectionIsCompanionLink = false
        _extractorPreparedForExtraction = false
      }
      _cfConn = 0x000060000086f840
      _uploadFile = nil
      _dataTaskData = nil
      _dataTaskCompletion = nil
      _pendingResponseBytes = nil
      _suspendCount = 0
      _async_initialization = nil
      _resourceTimeout = some {
        some = 0x0000600001318a80 {
          baseOS_dispatch_object@0 = {
            baseOS_object@0 = {
              baseNSObject@0 = {
                isa = OS_dispatch_source
              }
            }
          }
        }
      }
      _startTimeoutTime = 0
      _startTimeoutTimer = nil
      _payloadTransmissionTimer = nil
      _willSendRequestTimer = nil
      _socketReadStreamForUpgrade = nil
      _socketWriteStreamForUpgrade = nil
      _extraBytes = nil
      _connectionWorkQueue = nil
      _connectionWorkQueueSuspensionCount = 0
      _pendingResponseDisposition = false
      _pendingResponseDisposition_didFinish = false
      _didIssueWaitingForConnectivity = false
      _didIssueDidFinish = false
      _suspendedForDisposition = false
      _didCheckMixedReplace = true
      _isMixedReplace = false
    }
    _fileCompletion = nil
    _downloadFile = 0x000060000060e080
    _writeBuffer = nil
    _ioSuspend = 0
    _totalWrote = 0
    _resumeCallback = nil
    _initialResumeSize = -1
    _originalResumeInfo = nil
    _transientWriteProgress = 0
    _afterDidReportProgressOnQueue = nil
    _dataAckCompletion = nil
    _seqNo = 0
    _canWrite = true
    _suppressProgress = false
    _needFinish = false
    _didIssueNeedFinish = false
  }
  payload_data_1 = 0x000000010e8e5a00
  payload_data_2 = 0x00007fe1e4879628
  instance_type = 0x00007fe1e4879628

Thank. It's related with #32. I'm fixing it now 👍

Right. Excuse me for the duplicate then. I searched for the existing issue before hitting that "New issue" button but looks like we reported almost simultaneously. Please feel free to close this to avoid duplicates, and please let me know in case you need any additional info.

Right. Excuse me for the duplicate then. I searched for the existing issue before hitting that "New issue" button but looks like we reported almost simultaneously. Please feel free to close this to avoid duplicates, and please let me know in case you need any additional info.

@advantis it's done with Atlantis 1.3.0 (https://github.com/ProxymanApp/atlantis/releases/tag/1.3.0).
Please update your pod 😍

Please let me know if it works for you 👍

Yep, everything works great, thank you!

authors: NghiaTranUIT advantis ykotov2

repo: ProxymanApp/atlantis


text:
extra output

After filtering, there is still giant sequencing summary files that make it a little tricky to filter after.
A new sequencing summary should be output, since it is read in full anyway.
Trimming down a fastq from a paf or flat input as well would be helpful.
New output should be:

Cut down seq_sum
cut down fastq (if paf or flat is used)
new index file

New seq_sum and fastq option created.
Index file still to go.


text:
Feature request: allow locking position of the crafting log's side window

I usually have my crafting log window in the upper right of my screen, which means that this window is hidden off-screen. I'd like to keep my log there, but still have that window in a fixed position, which is currently only possible when it's attached to the right side of the crafting log.
Ideally, it would be nice to be able to attach to it to the right side as well, but the most useful thing for me would be a way to simply lock its position, so that I can put it somewhere and be sure it'll stay right there.

Hi, the option to lock it is already in the plugin, under UI settings.

Ok, I see what you're looking for now. I can add this as an option if the window is unattached from the recipe window for sure.

Much appreciated!

This is now in the plugin.

authors: PrincessRTFM Taurenkey

repo: PunishXIV/Artisan


text:
Javadoc button

It would be nice to have link which leads to javadocs ;)

https://purpurmc.org/javadoc?

Yeah but I meant putting it as button on landing page. This way newcomers will know that javadocs is even a thing.

If you click on that big button that says "Fully Documented" you'll find this https://purpurmc.org/docs/#javadoc
We also link to it from our github readme https://github.com/PurpurMC/Purpur#javadoc

I think that's kind of too much hidden, I had no idea those features are even clickable. I'd consider this issue as UX improvement then.

Hmm. We could add big red arrows

Well, if you don't consider this as possible improvement then maybe it's just me.

authors: BillyGalbreath CDFN Encode42

repo: PurpurMC/PurpurWebsite


text:
Improve DevTools disable script injection logic

Fix for #2
https://vitejs.dev/guide/api-plugin.html#transformindexhtml

Hi. Sorry for the delay. Merging this now. Thank you for your collaboration

authors: PuruVJ SQReder

repo: PuruVJ/vite-preset-react


text:
The application's giving 404s

According to my packet capturer,
GET /message?uuid=----
on api.pushjet.io over HTTP just gives a 404
This might be because the app automatically changes https to http
Valid:  https://api.pushjet.io/message
Invalid: http://api.pushjet.io/message

Closed in #14 but probably not pushed to the play store

Sorry for the delayed response,
The "Use Custom Server" fix with https://api.pushjet.io makes subscriptions/registering/etc work, but messages still get 404'd
In the picture just below, you can see 2 SSL'd requests from pushjet, and one non-SSL'd pushjet request

repo: Pushjet/Pushjet-Android


text:
chore : workflows

🎯 Title and Issue Number

Closes #<issue_no>

🗒 Checklist:

[] I have mentioned the issue number in my Pull Request.
[]  I have gone through rules of when PR will get merged.
[] I have commented my code, particularly in hard-to-understand areas
[] I have created a helpful and easy to understand README.md
[] I have followed proper file structure.
[] I have gone through

Thank you for contributing!❤
Don't forget to show some support by ⭐ the repository!

Hello @Puskar-Roy, thank you for your pull request! We will review it shortly. 😇❣
Your contributions help us grow and improve our project. Please make sure you have read and followed our CONTRIBUTING GUIDELINES.
Your efforts are appreciated, and we value your participation in our community. Don't forget to ⭐ our repository!
Happy coding!✨

repo: Puskar-Roy/create-my-api


text:
ci: include debug symbols for codspeed profiling

This is a repeat of #3758, but I think this time I've actually set the configuration in the right place. In the previous PR, I tried to configure the bench profile, but I think codspeed actually uses the release profile, both in pyo3-benches and in pytests.
Let's see if this looks any better...

Hmm, the flamegraphs look no different. I'll ask the codspeed folks.

I believe the outcome from discussion with @art049 was that the symbols are (already?) working correctly but they are still working on showing inlined function calls in the flamegraphs, which is why a lot appears to be missing. Will close for now.


text:
Update test_misc.py for 3.13 subinterpreter changes

3.13b1 had some changes for the subinterpreter module since the last time this was updated.
With this change everything except for test_gevent passes in test_misc.py passes on 3.13rc1. gevent hasn't been updated for 3.13 yet. I checked with the numpy nightly wheel for numpy.

currently this file is skipped on 3.13 because there is no subinterpreters module in the standard library


text:
Allow #[getter] and #[setter] functions to take PyRef

Closes #837
I rewrote the proc_macro code to allow #[getter] and #[setter] functions to take &self as well as PyRef<Self> etc.
It might also be possible to make a similar change so that all #[pyproto] methods can also choose beteween &self, &mut self, PyRef<Self>, etc. but this change was necessary first so I began with this PR.

Thank you! The approach looks good, but it seems like there are some rooms for refactoring. I'll give a detailed review later.
In addition,

It might also be possible to make a similar change so that all #[pyproto] methods can also choose beteween &self, &mut self, PyRef, etc. but this change was necessary first so I began with this PR.

Is it possible?
Each protocol method has trait defintion(e.g., fn __len__(&'p self) -> Self::Result) and it is really restrictive.

I'll give a detailed review later.

:+1: no rush. I'm sure there are things we can improve in here further. Also I don't mind if you want to wait for this until after 0.11 is released as it's quite a hefty rewrite of the proc macro code!

Is it possible?

That's why I say might :smile: . The pyproto code uses the same function parser so this PR would at least enable us to parse such function definitions. I need to experiment another time to understand if the rest of the implementation is possible!

I spotted a refactoring around SelfType to simplify the code there.
Also I was able to use quote_spanned! instead of quote! so that invalid self types get highlighted appropriately in error messages (see the compile_error test). With just quote! the error message just highlights the #[pymethods] block. This will be worth remembering in the future when we edit proc macro code!

Thanks for the review - I merged all of the suggestions!

Thanks!

authors: davidhewitt kngwyu


text:
[PyPSA/linopy] Adding a new variable with a subset of coordinates causes the solution to become integers only

I have been trying to add a new variable for a PyPSA project and have noticed that simply creating a variable with a subset of coordinates causes the solution to be bound to integers despite not having any constraints acting on this newly created variable.
I have created a simple example with two generators order to demonstrate this phenomenon
network = pypsa.Network()
network.snapshots = pd.date_range(start='2019-03-20 00:00:00', end='2019-03-20 04:00:00', freq='h')
network.add(class_name='Bus', name='The Bus', v_nom=20)
network.add(class_name='Load', name='Load', bus='The Bus', p_set=[1.0, 1.5, 2.0, 2.5, 3.0])
network.add(class_name='Generator', name='Generator 1', bus='The Bus', p_nom=1, p_nom_extendable=False, marginal_cost=1)
network.add(class_name='Generator', name='Generator 2', bus='The Bus', p_nom=2, p_nom_extendable=False, marginal_cost=2)
model = network.optimize.create_model()

Using network.optimize.solve_model(solver_name='cbc') to solve this model as is produces the optimal solution, displayed in the following plot:

Inspecting the solution with model.solution['Generator-p']:

Now I wish to create a new variable, whose coordinates are a subset of the coordinates of this variable:

The code that I have below will produce a new variable TEST that only has 3 out of 5 from snapshot and 2 out of 2 from Generator
test_variable = model.add_variables(
    lower=0,
    coords=model.variables['Generator-p'].sel({'snapshot': network.snapshots[0:3]}).coords,
    name='TEST',
    integer=False)

With this new variable added and using network.optimize.solve_model(solver_name='cbc') to solve this model again, despite this new variable not having any constraints attached to it, the produced solution is locked to integers. Here is the plot to illustrate the issue:

Upon inspecting then solution again with model.solution['Generator-p']:

It appears that this warning indicating that the coordinates across variables are not equal shows up and performs an outer join. This same warning also appears when running the solver with the new variable, with an outer join being performed.

Uff, embarrassing... thank you for raising this. The problem actually happens when merging the solution of multiple variables which are not aligned into one Dataset. This operation uses a function which was originally only assuming integers. For the meantime, this works
model.variables['Generator-p'].solution

So the LP is correct as well as the solution, just when using model.solutions with non-aligned coordinates the unintended conversion happens.
I'll make a bugfix release. Again, thanks for pointing out!

authors: FabianHofmann Tsunderarislime

repo: PyPSA/linopy


text:
Add InfoLM

🚀 Feature
Add InfoLM
Sources:

Paper: InfoLM: A New Metric to Evaluate Summarization & Data2Text Generation ((accepted at AAAI '22))
Repo

Motivation
The recent NLG metrics are more often based on BERT (or related) embeddings. As such, I believe, we should also start adding such metrics into TorchMetrics with an extra dependency on transformers if a user wants to use any of these metrics. The InfoLM metric is from a family of untrained metrics (i.e. the model is not fine-tuned on any specific task) so it should be easier for us to begin with it. (Any opinion on this? @Borda :] )
Abstract:
Assessing the quality of natural language generation systems through human annotation is very expensive. Additionally, human annotation campaigns are time-consuming and include non-reusable human labour. In practice, researchers rely on automatic metrics as a proxy of quality. In the last decade, many string-based metrics (e.g., BLEU) have been introduced. However, such metrics usually rely on exact matches and thus, do not robustly handle synonyms. In this paper, we introduce InfoLM a family of untrained metrics that can be viewed as a string-based metric that addresses the aforementioned flaws thanks to a pre-trained masked language model. This family of metrics also makes use of information measures allowing the adaptation of InfoLM to various evaluation criteria. Using direct assessment, we demonstrate that InfoLM achieves statistically significant improvement and over 10 points of correlation gains in many configurations on both summarization and data2text generation.

@stancld ho is it doing, seems that this is the key for two additional metrics where we have volunteers to help... :rabbit:

@Borda Sorry, was a bit busy this week, but it's already wip. I'm gonna try to finish it this weekend so that the other two PRs can be opened.

authors: Borda stancld

repo: PyTorchLightning/metrics


text:
Issue with multi gpu training

I get the following error on training with multi gpus:
  File "training_on_each_split.py", line 271, in <module>
    trainer.fit(model)
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 997, in fit
    results = self.dp_train(model)
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 270, in dp_train
    result = self.run_pretrain_routine(model)
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 1213, in run_pretrain_routine
    self.train()
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 370, in train
    self.run_training_epoch()
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 452, in run_training_epoch
    batch_output = self.run_training_batch(batch, batch_idx)
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 632, in run_training_batch
    self.hiddens
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 783, in optimizer_closure
    training_step_output = self.process_output(training_step_output, train=True)
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/logging.py", line 112, in process_output
    callback_metrics = self.reduce_distributed_output(callback_metrics, num_gpus)
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/logging.py", line 193, in reduce_distributed_output
    output[k] = self.reduce_distributed_output(output[k], num_gpus)
  File "/home/nvarshn2/.conda/envs/pytorch_lightning/lib/python3.6/site-packages/pytorch_lightning/trainer/logging.py", line 201, in reduce_distributed_output
    output[k] = torch.mean(output[k])
RuntimeError: Can only calculate the mean of floating types. Got Long instead.

Code
    def loss_function(self, logits, labels):

        with torch.no_grad():
            predicted_label = logits.max(dim=1)[1]
            prediction_label_count = {}
            for label in range(parameters["num_labels"]):
                prediction_label_count[label] = predicted_label.eq(label).sum()

        loss_fn = torch.nn.CrossEntropyLoss()
        eturn loss_fn(logits, labels), prediction_label_count

    def training_step(self, batch, batch_idx):
        logits, softmax_logits = self.forward(**batch)
        loss, prediction_label_count = self.loss_function(logits, batch["labels"])
        return {"loss": loss,
                "prediction_label_count": prediction_label_count,
                "log": {"train_loss": loss}}

Need help in debugging the issue.

return {"loss": loss,
                "prediction_label_count": prediction_label_count.float(),  # <- float here
                "log": {"train_loss": loss}}

does that solve your problem?

prediction_label_count is a dictionary object.
You mean add .float() to every value of this dictionary?

yes, that's what I meant, sorry. If this is not suitable for your use case, have a look at reduce_fn in Result object.
https://pytorch-lightning.readthedocs.io/en/latest/results.html#trainresult-api

authors: awaelchli nrjvarshney

repo: PyTorchLightning/pytorch-lightning


text:
[Trainer] Use name mangling to allow for subclassing

🐛 Bug
The Trainer class uses its self.fit directly in several places. That causes problems when the Trainer class is subclassed and the behavior of the fit method altered. As it's now impossible to call the test method because it uses self.fit internally.
Since things like trainer.validate and GridSearch are not yet implemented in PyTorchLightning the user should be allowed to subclass and modify those methods without worrying about breaking the Trainer code.
Please reproduce using the BoringModel
https://colab.research.google.com/drive/1jcq5g0XF_3xTLR0p7ZuEMfHcowtZhf4j?usp=sharing
Expected behavior
SeedSearchTrainer uses the fit method of the base class (pl.Trainer) when test method of the base class is called.
Additional context
This could be solved using name mangling.
Store a local reference to the fit method by adding a __fit attribute to the Trainer class.
class Trainer():
    ...
    __fit = fit

Then on lines:
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/trainer/trainer.py#L920
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/trainer/trainer.py#L981
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/trainer/trainer.py#L1075
replace self.fit by self.__fit
What this achieves is that whenever the self.__fit method is called the name mangling would change its name to _Trainer__fit to assure that the method of the Trainer class is called rather than some overwritten version of the method from the derived class.
This approach can also be implemented for other methods that the user may want to subclass and that are used internally in the base class as self.method.

Does https://github.com/PyTorchLightning/pytorch-lightning/pull/7232 address the concerns here?

Does #7232 address the concerns here?

Partially yes, sorry that I missed that. It's still possible to override the _fit_impl method and break the Trainer though as single underscore doesn't add the desired level of protection. But I guess it's good enough and anyone who overrides "private" methods deserve what's coming for them anyway.
However I still believe that using class local references with double underscore is a cleaner way of doing this and is also recomended by Python core developers.

Thanks for the input @Fassty !
We should try to use private methods more, but in this case, it needs to stay as protected as it's also called by the Tuner.

Thanks @carmocca, I see that you've had a discussion about that in the PR. I didn't realize that the Tuner now also calls the fit as I was looking in the source of ver. 1.2.10.
Anyway the linked PR solves this issue.

authors: Fassty ananthsub carmocca


text:
Black format pytorch_lightning/trainer/connectors/checkpoint_connector.py

What does this PR do?
Split out changes from #3563 to make that PR easier to review. This formats the file according to the Black formatter

Fixes # (issue)
Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?
[x] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Hello @ananthsub! Thanks for opening this PR.

In the file pytorch_lightning/trainer/connectors/checkpoint_connector.py:

Line 124:13: W503 line break before binary operator
Line 129:13: W503 line break before binary operator
Line 173:13: W503 line break before binary operator
Line 290:17: W503 line break before binary operator
Line 291:17: W503 line break before binary operator
Line 343:13: W503 line break before binary operator
Line 348:13: W503 line break before binary operator

Do see the Hitchhiker's guide to code style

can we wait to add black when the open PRs are merged? or make sure the files that have black won't cause conflicts for those PRs?

Are you using the pre-commit config for black?
https://github.com/PyTorchLightning/pytorch-lightning/blob/c61e1e697d2e4ed5cc97c187e6704a44f2f77aff/.pre-commit-config.yaml#L31
with --skip-string-normalization ' shouldnt get converted to "

with --skip-string-normalization ' shouldnt get converted to "

you can also use shorter -S

authors: Borda ananthsub carmocca pep8speaks williamFalcon


text:
Add default digits for all bases, refactor code

This pull request removes redundant code and uses a for loop to add default digits from all bases from 2 through 64.

Thanks for cleaning up my code @safwansamsudeen!

Sure, anytime.