Sequential (n) addition in one string with result list

Which formula will be for 446,00625+0,0125 12 times and receive its result as solid answer with custom separator?
Example: 446,00625 + 0,0125 = 446.01875; 446.03125 ... an so on 12 times ?

Hi @ropucyka,
If your system locale doesn't uses commas as decimal separator, you would first need to change the locale setting to one that uses commas, such as German:

Then, if you want to print the answers in one line, you can use an array, where each calculation is separated by ;:

If you need the sum of all in the array, you can do sum(ans) on the next line or sum in the same line:

Hope this helps!

Mmm im not sure, its not helped. But thank You for so quick feedback.

May not be exactly what you are looking for, but I can suggest the range function.  You can define the start, end, and step values to generate the array.  You can also use the resize function to limit the size of the array to n numbers.

The end value can't be open ended though (100+) but you can define a large number here instead (I chose 1000 for example).
There is whole a lot more you can do with arrays and matrices.  You can read about here: https://mathjs.org/docs/datatypes/matrices.html

range(446.00625;1000;0.0125).resize([8]) =
[446.00625, 446.01875, 446.03125, 446.04375, 446.05625,<PHONE_NUMBER>9999997,<PHONE_NUMBER>9999995,<PHONE_NUMBER>9999994]
It what needed. But wtf with last 3 results? It must just add 0.0125 to 446.05625 ?? 446.05625+0.0125

Hi @ropucyka,
It is a floating point round-off error.  One of the pitfalls of working with numbers in javascript. If you open your browser's console and type 446.05625+0.0125 you would also get<PHONE_NUMBER>9999997.
One workaround is to wrap the calculation in fix function and give it a decimal number of 5.  Here is what it all looks like:

Now works well. Thank you.

No problem!  Closing this issue for now.  Can reopen if you have any other questions.  Thank you


Deal with emoji widths in viewports (e.g. in logs)

Some ideas here https://github.com/charmbracelet/lipgloss/issues/55#issuecomment-1176868443

Hasn't been fixed upstream and not going to put the effort to patch it in wander itself as it seems like high lift


METRON-1633 Incorrect instructions when merging PR into feature branch

Description
The 'dev-utilities/committer-utils/prepare-commit' script can be used to merge PRs against a feature branch. The script automatically determines which branch the PR should be merged into based on how the contributor submitted the PR.
Instructions are offered at the end of the script, after the local merge has completed. These instructions are incorrect when merging into a feature branch.
When merging into a feature branch, the instructions say...

Review commit carefully then run...
    cd /Users/nallen/tmp/metron-pr1056
    git push upstream feature/METRON-1416-upgrade-solr

Testing
Test merge a PR against a feature branch using a PR like #1056...
$ ./dev-utilities/committer-utils/prepare-commit
  ...using settings from /Users/nallen/.metron-prepare-commit
    [1] metron
    [2] metron-bro-plugin-kafka
  which repo? [1]:
  pull request: 1056
  local working directory [/Users/nallen/tmp/metron-pr1056]:
  origin repo [https://github.com/apache/metron]:
  base branch to merge into [feature/METRON-1416-upgrade-solr]:
   ...
  github contributor's username [nickwallen]:
  github contributor's email<EMAIL_ADDRESS>  issue identifier in jira [METRON-1609]:
  issue description [Elasticsearch settings in Ambari should not be required if Solr is the indexer]:
  commit message [METRON-1609 Elasticsearch settings in Ambari should not be required if Solr is the indexer (nickwallen) closes apache/metron#1056]:

Squash commit -- not updating HEAD
Automatic merge went well; stopped before committing as requested
On branch feature/METRON-1416-upgrade-solr
Your branch is up to date with 'upstream/feature/METRON-1416-upgrade-solr'.

nothing to commit, working tree clean

  run test suite? [yN]

Review commit carefully then run...
    cd /Users/nallen/tmp/metron-pr1056
    git push upstream feature/METRON-1416-upgrade-solr

Test a merge against master using a PR like #1069.
$ ./dev-utilities/committer-utils/prepare-commit
  ...using settings from /Users/nallen/.metron-prepare-commit
    [1] metron
    [2] metron-bro-plugin-kafka
  which repo? [1]:
  pull request: 1069
  local working directory [/Users/nallen/tmp/metron-pr1069]:
  origin repo [https://github.com/apache/metron]:
  base branch to merge into [master]:
   ...
  github contributor's username [nickwallen]:
  github contributor's email<EMAIL_ADDRESS>  issue identifier in jira [METRON-1624]:
  issue description [Set Profiler and Enrichment batch parameters in Ambari]:
  commit message [METRON-1624 Set Profiler and Enrichment batch parameters in Ambari (nickwallen) closes apache/metron#1069]:

Squash commit -- not updating HEAD
Automatic merge went well; stopped before committing as requested
[master 31e3bd18] METRON-1624 Set Profiler and Enrichment batch parameters in Ambari (nickwallen) closes apache/metron#1069
 Author: nickwallen<EMAIL_ADDRESS> 5 files changed, 88 insertions(+), 1 deletion(-)

 .../src/main/resources/common-services/METRON/CURRENT/configuration/metron-enrichment-env.xml      | 12 ++++++++++++
 .../src/main/resources/common-services/METRON/CURRENT/configuration/metron-profiler-env.xml        | 12 ++++++++++++
 .../src/main/resources/common-services/METRON/CURRENT/package/scripts/metron_service.py            | 20 ++++++++++++++++++++
 .../src/main/resources/common-services/METRON/CURRENT/package/scripts/params/params_linux.py       |  4 ++++
 .../ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/themes/metron_theme.json | 41 ++++++++++++++++++++++++++++++++++++++++-
 5 files changed, 88 insertions(+), 1 deletion(-)

31e3bd18 (HEAD -> master) METRON-1624 Set Profiler and Enrichment batch parameters in Ambari (nickwallen) closes apache/metron#1069

  run test suite? [yN]

Review commit carefully then run...
    cd /Users/nallen/tmp/metron-pr1069
    git push upstream master

Pull Request Checklist

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.

[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?

[x] Have you included steps or a guide to how the change may be verified and tested manually?

[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:

[ ] Have you written or updated unit tests and or integration tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

[ ] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

+1 by inspection, good catch


Can't install

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.

Steps to reproduce
# non-elevated
Install-Module -Name PowerShellGet -RequiredVersion 3.0.11-beta -AllowPrerelease -Force -Scope CurrentUser

or
# elevated
Install-Module -Name PowerShellGet -RequiredVersion 3.0.11-beta -AllowPrerelease -Force

Expected behavior
# installed

Actual behavior
Install-Package: Administrator rights are required to install or update. Log on to the computer with an account that has Administrator
rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the
Windows PowerShell session with elevated rights (Run as Administrator).

Error details
Exception             :
    Type    : System.Exception
    Message : Administrator rights are required to install or update. Log on to the computer with an account that has
Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try
running the Windows PowerShell session with elevated rights (Run as Administrator).
    HResult : -2146233088
TargetObject          : System.Collections.ArrayList
CategoryInfo          : InvalidArgument: (System.Collections.ArrayList:String) [Install-Package], Exception
FullyQualifiedErrorId : AdministratorRightsNeededOrSpecifyCurrentUserScope,Copy-Module,Microsoft.PowerShell.Package
Management.Cmdlets.InstallPackage
InvocationInfo        :
    MyCommand        : Install-Package
    ScriptLineNumber : 9711
    OffsetInLine     : 34
    HistoryId        : 2
    ScriptName       : C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1
    Line             : $installedPackages = PackageManagement\Install-Package @PSBoundParameters

    PositionMessage  : At C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9711 char:34
                       + … talledPackages = PackageManagement\Install-Package @PSBoundParameters
                       +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PSScriptRoot     : C:\program files\powershell\7\Modules\PowerShellGet
    PSCommandPath    : C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1
    InvocationName   : PackageManagement\Install-Package
    CommandOrigin    : Internal
ScriptStackTrace      : at Install-Module<Process>, C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:
line 9711
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :

Environment data
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.2.5                 PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Fin…

Key   : PSVersion
Value : 7.2.2
Name  : PSVersion

Key   : PSEdition
Value : Core
Name  : PSEdition

Key   : GitCommitId
Value : 7.2.2
Name  : GitCommitId

Key   : OS
Value : Microsoft Windows 10.0.19044
Name  : OS

Key   : Platform
Value : Win32NT
Name  : Platform

Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}
Name  : PSCompatibleVersions

Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion

Key   : SerializationVersion
Value : <IP_ADDRESS>
Name  : SerializationVersion

Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Visuals
No response

@MeikelLP thanks for opening this issue, apologies for the delayed response-- we are having trouble reproducing this, could you please run this with the -debug and -verbose logs on? Thanks!

DEBUG: 00:00:00 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0000163 Force: True
DEBUG: 00:00:00.0000222 Name: PowerShellGet
DEBUG: 00:00:00.0000277 Debug: True
DEBUG: 00:00:00.0000328 RequiredVersion: 3.0.11-beta
DEBUG: 00:00:00.0000420 Verbose: True
DEBUG: 00:00:00.0005337 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0009114 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0015213 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0031675 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0031817 Force: True
DEBUG: 00:00:00.0031879 Name: PowerShellGet
DEBUG: 00:00:00.0032153 Debug: True
DEBUG: 00:00:00.0032207 RequiredVersion: 3.0.11-beta
DEBUG: 00:00:00.0032301 Verbose: True
DEBUG: 00:00:00.0047337 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0050601 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0058521 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0076775 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0076919 Force: True
DEBUG: 00:00:00.0076980 Name: PowerShellGet
DEBUG: 00:00:00.0077030 Debug: True
DEBUG: 00:00:00.0077083 RequiredVersion: 3.0.11-beta
DEBUG: 00:00:00.0077179 Verbose: True
DEBUG: 00:00:00.0080915 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0084654 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0115617 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0129649 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0129772 Force: True
DEBUG: 00:00:00.0129831 Name: PowerShellGet
DEBUG: 00:00:00.0129881 Debug: True
DEBUG: 00:00:00.0129934 RequiredVersion: 3.0.11-beta
DEBUG: 00:00:00.0130025 Verbose: True
DEBUG: 00:00:00.0132786 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0135674 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0150580 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0217260 Calling SearchForPackages. Name='PowerShellGet'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:00.0222031 PackageProvider::FindPackage with name PowerShellGet
DEBUG: 00:00:00.0228178 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.0238794 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:00.0240660 ProviderName: PowerShellGet
DEBUG: 00:00:00.0243206 AllowPrereleaseVersions: True
DEBUG: 00:00:00.0245990 Type: Module
DEBUG: 00:00:00.0248389 RequiredVersion: 3.0.11-beta
DEBUG: 00:00:00.0251129 Debug: True
DEBUG: 00:00:00.0253793 Name: PowerShellGet
DEBUG: 00:00:00.0256405 Verbose: True
DEBUG: 00:00:00.0259367 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0262091 Force: True
DEBUG: 00:00:00.0264497 Scope: CurrentUser
DEBUG: 00:00:00.0269266 INVOKING PowerShell Fn Find-Package with args System.String[], 3.0.11-beta, ,  that has length 4
DEBUG: 00:00:00.0274912 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:00.0277506 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:00.0279377 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:00.0282078 OPTION: Type => Module
DEBUG: 00:00:00.0284390 OPTION: RequiredVersion => 3.0.11-beta
DEBUG: 00:00:00.0286777 OPTION: Debug => True
DEBUG: 00:00:00.0288945 OPTION: Name => PowerShellGet
DEBUG: 00:00:00.0291504 OPTION: Verbose => True
DEBUG: 00:00:00.0294148 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0297158 OPTION: Force => True
DEBUG: 00:00:00.0299807 OPTION: Scope => CurrentUser
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:00.0322667 PackageProvider::FindPackage with name PowerShellGet
DEBUG: 00:00:00.0337675 Calling 'NuGet'::'FindPackage' - name='PowerShellGet', requiredVersion='3.0.11-beta',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:00.0352072 Iterating 'PowerShellGet'.
DEBUG: 00:00:00.0359344 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:00.0362595 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:00.9250655 Downloading 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:01.0313228 Completed downloading 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:01.0326373 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:01.0330480 Calling 'NuGetRequest'::'GetPackageById', 'PowerShellGet'.
DEBUG: 00:00:01.0344635 Calling 'NuGetPackageRepository'::'FindPackagesById', 'PowerShellGet'.
DEBUG: 00:00:01.0351189 Calling 'NuGetPackageFeed2'::'FindPackage', 'PowerShellGet'.
DEBUG: 00:00:01.0355923 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'' for ''.
DEBUG: 00:00:01.0401305 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=0&$top=40'.
DEBUG: 00:00:01.4708313 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=0&$top=40'.
DEBUG: 00:00:01.4868858 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=80&$top=40'.
DEBUG: 00:00:01.4869363 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=40&$top=40'.
DEBUG: 00:00:01.4870069 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=120&$top=40'.
DEBUG: 00:00:01.4870927 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=160&$top=40'.
DEBUG: 00:00:01.6077055 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=40&$top=40'.
DEBUG: 00:00:01.6101730 '29' packages received in the last request.
DEBUG: 00:00:01.6118944 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=0&$top=40'.
DEBUG: 00:00:01.7689683 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=80&$top=40'.
DEBUG: 00:00:01.9001997 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=160&$top=40'.
DEBUG: 00:00:01.9887056 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=120&$top=40'.
DEBUG: 00:00:02.1924583 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=0&$top=40'.
DEBUG: 00:00:02.2003633 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=40&$top=40'.
DEBUG: 00:00:02.2003985 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=160&$top=40'.
DEBUG: 00:00:02.2004664 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=120&$top=40'.
DEBUG: 00:00:02.2004907 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=80&$top=40'.
DEBUG: 00:00:02.3136888 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=80&$top=40'.
DEBUG: 00:00:02.3144834 '0' packages received in the last request.
DEBUG: 00:00:02.3803990 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=40&$top=40'.
DEBUG: 00:00:02.3825899 '29' packages received in the last request.
DEBUG: 00:00:02.3900694 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=120&$top=40'.
DEBUG: 00:00:02.3904630 '0' packages received in the last request.
DEBUG: 00:00:02.4442571 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=160&$top=40'.
DEBUG: 00:00:02.4449726 '0' packages received in the last request.
VERBOSE: Total package yield:'1' for the specified package 'PowerShellGet'.
DEBUG: 00:00:02.4463336 Completed iterating for 'PowerShellGet'.
DEBUG: 00:00:02.5206411 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:02.5294194 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:02.5297222 ProviderName: PowerShellGet
DEBUG: 00:00:02.5303609 AllowPrereleaseVersions: True
DEBUG: 00:00:02.5307032 Type: Module
DEBUG: 00:00:02.5315906 RequiredVersion: 3.0.11-beta
DEBUG: 00:00:02.5320831 Debug: True
DEBUG: 00:00:02.5323276 Name: PowerShellGet
DEBUG: 00:00:02.5325826 Verbose: True
DEBUG: 00:00:02.5328687 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.5331258 Force: True
DEBUG: 00:00:02.5333665 Scope: CurrentUser
DEBUG: 00:00:02.5340375 INVOKING PowerShell Fn Get-InstalledPackage with args PowerShellGet, 3.0.11-beta, ,  that has length 4
DEBUG: 00:00:02.5359946 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:02.5362671 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:02.5366361 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:02.5369391 OPTION: Type => Module
DEBUG: 00:00:02.5373155 OPTION: RequiredVersion => 3.0.11-beta
DEBUG: 00:00:02.5388103 OPTION: Debug => True
DEBUG: 00:00:02.5390610 OPTION: Name => PowerShellGet
DEBUG: 00:00:02.5395671 OPTION: Verbose => True
DEBUG: 00:00:02.5399374 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.5403595 OPTION: Force => True
DEBUG: 00:00:02.5405573 OPTION: Scope => CurrentUser
DEBUG: 00:00:02.6665903 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null.

Performing the operation "Install-Module" on target "Version '3.0.11-beta' of module 'PowerShellGet'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): A
DEBUG: 00:00:10.7812125 Calling New() : MethodName = 'InstallPackage'
DEBUG: 00:00:10.7814790 ProviderName: PowerShellGet
DEBUG: 00:00:10.7818652 AllowPrereleaseVersions: True
DEBUG: 00:00:10.7820932 Type: Module
DEBUG: 00:00:10.7823501 RequiredVersion: 3.0.11-beta
DEBUG: 00:00:10.7826696 Debug: True
DEBUG: 00:00:10.7828324 Name: PowerShellGet
DEBUG: 00:00:10.7830558 Verbose: True
DEBUG: 00:00:10.7833382 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:10.7836134 Force: True
DEBUG: 00:00:10.7838652 Scope: CurrentUser
DEBUG: 00:00:10.7843569 INVOKING PowerShell Fn Install-Package with args NuGet|PowerShellGet|3.0.11-beta|https://www.powershellgallery.com/api/v2|Module that has length 1
DEBUG: 00:00:10.7851850 In PowerShellGet Provider - 'Install-Package'.
DEBUG: 00:00:10.7995030 In PowerShellGet Provider - 'Install-PackageUtility'.
DEBUG: 00:00:10.8003572 The FastPackageReference is 'NuGet|PowerShellGet|3.0.11-beta|https://www.powershellgallery.com/api/v2|Module'.
DEBUG: 00:00:10.8039942 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:10.8042214 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:10.8046642 OPTION: Type => Module
DEBUG: 00:00:10.8050119 OPTION: RequiredVersion => 3.0.11-beta
DEBUG: 00:00:10.8053597 OPTION: Debug => True
DEBUG: 00:00:10.8055875 OPTION: Name => PowerShellGet
DEBUG: 00:00:10.8058294 OPTION: Verbose => True
DEBUG: 00:00:10.8062066 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:10.8066818 OPTION: Force => True
DEBUG: 00:00:10.8070025 OPTION: Scope => CurrentUser
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\m.philipp\Documents\PowerShell\Modules'.
DEBUG: 00:00:10.8183693 ArtifactType is Module
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PowerShellGet' with version '3.0.11-beta' from the repository 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:11.0329415 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\UG93ZXJTaGVsbEdldA==\My4wLjExLWJldGE=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:11.0332576 Calling 'NuGetRequest'::'GetPackageByFastpath', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\UG93ZXJTaGVsbEdldA==\My4wLjExLWJldGE=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:11.0346704 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:11.0349246 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:11.0351668 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:11.5814134 Calling 'NuGetPackageRepository'::'FindPackage', 'PowerShellGet'.
DEBUG: 00:00:11.5819882 Calling 'NuGetPackageFeed2'::'FindPackage', 'PowerShellGet'.
DEBUG: 00:00:11.5828139 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'' for ''.
DEBUG: 00:00:11.5836954 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=0&$top=40'.
DEBUG: 00:00:12.3104787 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=0&$top=40'.
DEBUG: 00:00:12.3141398 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=80&$top=40'.
DEBUG: 00:00:12.3141749 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=120&$top=40'.
DEBUG: 00:00:12.3142147 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=40&$top=40'.
DEBUG: 00:00:12.3142503 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=160&$top=40'.
DEBUG: 00:00:12.8032321 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=40&$top=40'.
DEBUG: 00:00:12.8050318 '29' packages received in the last request.
DEBUG: 00:00:12.8059146 'Package version' is '3.0.11-beta'.
DEBUG: 00:00:12.8066327 'Request's Destination' is 'C:\Users\m.philipp\AppData\Local\Temp\1469127073'.
DEBUG: 00:00:12.8071522 Calling 'NuGetPackageRepository'::'InstallPackage'.
DEBUG: 00:00:12.8077232 Calling 'NuGetFilesFeed2'::'InstallPackage'.
DEBUG: 00:00:12.8080394 Calling 'NuGetFilesFeed2'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\UG93ZXJTaGVsbEdldA==\My4wLjExLWJldGE=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:12.8098439 Calling 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:12.8121025 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:12.8148807 Calling 'NuGetClient'::'InstallPackage'.
VERBOSE: InstallPackage' - name='PowerShellGet', version='3.0.11-beta',destination='C:\Users\m.philipp\AppData\Local\Temp\1469127073'
DEBUG: 00:00:12.8218753 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=80&$top=40'.
VERBOSE: DownloadPackage' - name='PowerShellGet', version='3.0.11-beta',destination='C:\Users\m.philipp\AppData\Local\Temp\1469127073\PowerShellGet.3.0.11-beta\PowerShellGet.3.0.11-beta.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PowerShellGet/3.0.11-beta'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PowerShellGet/3.0.11-beta'.
DEBUG: 00:00:12.9024149 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=120&$top=40'.
DEBUG: 00:00:13.3112626 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PowerShellGet'&$skip=160&$top=40'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PowerShellGet/3.0.11-beta'.
VERBOSE: Completed downloading 'PowerShellGet'.
DEBUG: 00:00:13.7741196 Calling 'NuGetClient'::'InstallPackageLocal'.
VERBOSE: InstallPackageLocal' - name='PowerShellGet', version='3.0.11-beta',destination='C:\Users\m.philipp\AppData\Local\Temp\1469127073'
DEBUG: 00:00:13.7759625 C:\Users\m.philipp\AppData\Local\Temp\1469127073\PowerShellGet.3.0.11-beta\PowerShellGet.3.0.11-beta.nupkg
DEBUG: 00:00:14.0301727 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:14.0496135 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:14.0501543 Returning the call 'NuGetFilesFeed2'::'InstallPackage'.
VERBOSE: Validating the 'PowerShellGet' module contents under 'C:\Users\m.philipp\AppData\Local\Temp\1469127073\PowerShellGet.3.0.11-beta' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\m.philipp\AppData\Local\Temp\1469127073\PowerShellGet.3.0.11-beta'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PowerShellGet'.
DEBUG: 00:00:14.6981971 Catalog file 'PowerShellGet.cat' is not found in the contents of the previously-installed module 'PowerShellGet' with the same name.
DEBUG: 00:00:14.6994263 Using the previously-installed module 'PowerShellGet' with version '2.2.5' under 'C:\program files\powershell\7\Modules\PowerShellGet' for getting the publisher details.
DEBUG: 00:00:14.6998181 Using the 'C:\program files\powershell\7\Modules\PowerShellGet\PowerShellGet.psd1' file for getting the authenticode signature.
DEBUG: 00:00:15.0120516 For publisher validation, using the previously-installed module 'PowerShellGet' with version '2.2.5' under 'C:\program files\powershell\7\Modules\PowerShellGet' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Catalog file 'PowerShellGet.cat' is not found in the contents of the module 'PowerShellGet' being installed.
DEBUG: 00:00:15.0168526 Using the 'PowerShellGet.psd1' file for getting the authenticode signature.
VERBOSE: Valid authenticode signature found in the file 'PowerShellGet.psd1' for the module 'PowerShellGet'.
DEBUG: 00:00:15.2415983 For publisher validation, current module 'PowerShellGet' with version '3.0.11' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, current module 'PowerShellGet' with version '3.0.11' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'PowerShellGet' with version '2.2.5' under 'C:\program files\powershell\7\Modules\PowerShellGet' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
DEBUG: 00:00:15.2448269 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:15.2451619 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:15.2456768 Is previously-installed module signed by Microsoft: True
DEBUG: 00:00:15.2458813 Is current module signed by Microsoft: True
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'PowerShellGet' with version '3.0.11' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'PowerShellGet' with version '2.2.5'.
VERBOSE: Checking for possible command collisions for the module 'PowerShellGet' commands.
DEBUG: 00:00:16.6293883 PowerShell Script 'PSModule' Function 'Install-Package' returns null.
Install-Package: Administrator rights are required to install or update. Log on to the computer with an account that has Administrator
rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the
Windows PowerShell session with elevated rights (Run as Administrator).

Thanks @MeikelLP for the additional info-- it looks like there might be an issue with the publisher check, can you try adding the -SkipPublisherCheck the new version is signed but may have a different signature than the one you have installed...

Thanks for that information!  Can you try running the commands again with -SkipPublisherCheck and can you also share the output of Get-Module PowerShellGet -ListAvailable?  If this doesn't work, we have some other ideas we can try out.

Hi all, just getting back to this issue and wanted to suggest using Save-Module instead of install.
Open a fresh PS session as admin and run the following:
Save-Module PowerShellGet -Repository PSGallery -Path "C:\program files\powershell\7\Modules"
Note, that the path should be the first path that appears after running:
Get-Module PowerShellGet -ListAvailable

Thank for the reply, @alerickson. I just tried again using Import-Module and didn't have any issue installing now. I'm now running PowerShell 7.3.4 whereas before I was running 7.2.5. Maybe something changed along the way to resolve this issue.
What's the logic behind using Save-Module instead of Install-Module? How do these differ?
Install-Module -Name PowerShellGet -AllowPrerelease -Scope AllUsers -Force

Get-Module -Name PowerShellGet -ListAvailable

    Directory: C:\Program Files\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     3.0.21     beta21     PowerShellGet                       Desk      {Find-PSResource, Get-InstalledPSResour…
Binary     3.0.14     beta14     PowerShellGet                       Desk      {Find-PSResource, Get-PSResource, Get-P…

    Directory: C:\program files\powershell\7\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-M…

    Directory: C:\Program Files (x86)\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     <IP_ADDRESS>               PowerShellGet                       Desk      {Install-Module, Find-Module, Save-Modu…


Improve public url_filter docs

This improves the docs for using webclient UI for public data. See discussion at https://www.openmicroscopy.org/community/viewtopic.php?f=5&t=7761&start=10#p15517
Here I've attempted to provide a url filter that blocks all the urls you might want to disable from a public facing site, while still allowing webclient UI.
Also I've removed the advice "You probably do not want the whole webclient UI to be publicly visible" since many people do want to do this, and we now support it better.
To test, please set the described url filter and see if webclient becomes "browse only" (can't create data or run scripts etc). Also see https://gist.github.com/will-moore/8315580 (do we want to bring this into our docs or link to it from anywhere)?

Could we say: Set a omero.web.public.url_filter (it uses Python reqular expression) for which the OMERO.web public user is allowed to navigate. There are three major use-cases:
then split the to 3 bullet points:

https://gist.github.com/will-moore/8315580 could go to https://github.com/openmicroscopy/openmicroscopy/tree/develop/examples/Web

otherwise looks good

Can you get this fixed up please @will-moore ?

@aleksandra-tarkowska Look OK?

Thank, looks good to me

@will-moore where are your examples? Will you do it in another PR?

Yes, it has to be in another PR, since it is a different repository.

great, good to merge

Is this 5.1 only, or does it need rebasing with the property links removing?

@hflynn I think this would be useful to have for 5.0 too.

Ok, can you rebase but with all the :property: links changed to ```` mark-up then please? Thanks.


Can I create a zip with Include Filter

I have a root folder and has few files and sub directories.
Each sub directory again has files and directories.
How can I create a zip which will contain only the files with extension txt.
e.g.,
RootFolder>
a.txt, a.gif, subfolder1, c.prg
subfolder1>
sub.txt, sub.h, sub.xml, new.txt
When I zip, I need to have a zip file with below contents. One file and 1 subfolder at root level and two txt files under the subfolder1
a.txt
subfolder1
sub.txt
new.txt
Can someone help me here
Thank you.
Regards

Bhagyashree

I used regex with FileFilter and I could achieve it.
Only thing here is that, now I have two options,

Use wild card characters - When wild characters used, only files under source directory is zipped. No subdirectories.
No wild card characters allowed and the folder is added using ZipFile.addFolder() method.  So it created all the subdirectories under it.  In this case, no wildcard as filter is allowed.

So in first case , the zip will have
a.txt
subfolder1
sub.txt
new.txt
In the 2nd case the zip will have
a.txt, a.gif, subfolder1, c.prg
subfolder1>
sub.txt, sub.h, sub.xml, new.txt
This is what I required.
Thank you all.
Closing the bug.


Variable scoping changes on import

Reproducing the behavior
with the following 2 files...
imported.bend
def test(key):
  return key + 1

def key(seed):
  return seed + 2

def main:
  return test(5)

importer.bend
from imported import test

def main:
  return test(5)

running the two files gives different results, when the expected result is the same since they're making the same call (using bend run)
System Settings

HVM: 2.0.22
Bend: 0.2.37
OS: archlinux:latest docker image
CPU: AMD Ryzen 9

Additional context
I think this might be related to #729 but I opened a new issue since it doesn't fail at compile time

It might be a separate issue, but I've also found that importing functions that use fold have altered behavior

It's not related to that issue. The variable use key is being replaced by the key function. There's some issue with the name substitution that is not considering shadowing correctly here.


Fix banner issues + remove header background

Description

Short description here *

closes #5177
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Code is clear and sufficiently documented
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

https://github.com/inmanta/web-console/assets/113331659/ff2b5bae-946c-4f7a-b211-b672b3a63b1c

Processing this pull request

Merged into branches master, iso6 in 5400beca1e5114e5a32c57d953fba6a2c75d9dd0


How to access next events in TraceEvents ?

@brianrob
Hello,
Referring to sample "TraceEventSamples",  below codes get to display events sequentially in string format
private static void Print(TraceEvent data)
{
// There are a lot of data collection start on entry that I don't want to see (but often they are quite handy
if (data.Opcode == TraceEventOpcode.DataCollectionStart || data.Opcode == TraceEventOpcode.DataCollectionStop)
{
return;
}
        // Merging inject some 'symbol' events that are not that interesting so we ignore those too.
        if (data.ProviderGuid == SymbolTraceEventParser.ProviderGuid)
        {
            return;
        }

        // To avoid 'rundown' events that happen in the beginning and end of the trace filter out things during those times
        if (data.TimeStampRelativeMSec < 1000 || 9000 < data.TimeStampRelativeMSec)
        {
            return;
        }

		Out.Writeline(data.ToString());

}
Output:

  0xfffff80542b4d103  0xfffff80542a2e09e  0xfffff80542904997  0xfffff80542a78390  0xfffff80542a780b7  0xfffff80542a75262

Query :
When it reach and process event with  MSec=    "18.2103",  how do I move forward  and  read next event MSec= "18.2640" ? Is there avaialble function which I can refere it ? Inside Print function , we have data of class type "TraceEvent"
Regards
Soibam

Generally, the pattern that you'll want to use is to register callbacks, such as the Print method that you specified above.  Once you've registered callbacks for specific types of events, or just used the TraceEventDispatcher.All API to get a callback for every event, just call TraceEventDispatcher.Process() and this will cause the dispatcher to iterate through all events and execute any callbacks that have been registered.  Does that answer your question?

Thanks @brianrob . your anser gives pointers which I am looking for .. Close this issue


luci-app-shadowsocks-libev: don't repeat fields

The field local_address shows twice on column Overview for client components

Merged, thanks!


Is there a statement support?

How can I do something like backgroundColor.set(isEnabled ? Color.Red : Color.Grey)?

Generally, you would set up styles in a stylesheet called "enabled" and "disabled", something like this:
private struct Enabled: Style {
    var propertyStylers: [AnyPropertyStyler] = [backgroundColor.set(value: UIColor.red)]
}

private struct Disabled: Style {
   var propertyStylers: [AnyPropertyStyler] = [backgroundColor.set(value: UIColor.gray)]
}

public class YourStylesheet: Stylesheet {
    public var styles: [String: Style] = ["enabled": Enabled(), "disabled": Disabled()]
}

Then in your code, you would apply the style by name instead of using literal values, e.g.
@IBOutlet private var button: StyleableUIButton!

func setup() {
    button.styles = button.isEnabled ? "enabled" : "disabled"
}

This will apply the right style name to the element instead of the color directly.  And any time you update the definition of the "Enabled" or "Disabled" styles, all elements will get those updates automatically.  Plus, you can set a starting style in the storyboard and see it previewed live in Interface Builder.
Alternatively, you can define those styles in JSON and use a JSONStylesheet, e.g. put this in your stylesheet.json file:
{
  "styles": [
    {
      "styleName": "enabled",
      "styleProperties": {
        "backgroundColor": "#FF0000"
      }
    },
    {
      "styleName": "disabled",
      "styleProperties": {
        "backgroundColor": "#CCCCCC"
      }
    }]
}

Hope that helps!

Closing since there are no further questions...


Delete user skills

Coverage remained the same at 78.67% when pulling 831876a25b42583c05ac612dcae90bf33e6155ec on delete-user-skills into deb4dab69e9abdf98a11e35ad44fca2879b0ef25 on master.


Package Fails to Install on Windows

User Reported issue when trying to install package on a Windows Machine.
To Do

[ ] Report/Document on NPM
[ ] Implement a fix

I have updated the README file to make sure users on Windows are aware of the lack of support for Windows.


The CAS management webapp is unavailable

i'm use CAS server connect mySQL data table users, it's run ok.
now i can't install CAS management webapp, i don't know how to use list user to access.
and how to cas-management connect to mySQL with another table admin

Please use the CAS Mailing lists for questions. This area is reserved for bugs.


Is it possible to make synchronous HTTP requests to the server? (No background threads or synchronization)

I have a case where creating a background thread in a delegate handler method will freeze my application.
This method passes a callback future and whatever I do if I don't invoke this callback in the same thread without creating a background thread in any case inside the method it will freeze the application.
It is proved with many variations of the code and tryouts.
Can I do synchronous requests to the server using AlamoFire and that means no use of semaphores or blocking the thread etc.

No, Alamofire doesn't support synchronous usage.


Unknown error installing core packages

When I run heroku, I see the following message:
$ heroku
heroku-cli: Installing core plugins...
 ▸    Error installing package.
 ▸
 ▸    Try running again with GODE_DEBUG=info to see more output.

I tried running $ GODE_DEBUG=info heroku to see more output, but it had no effect.
So far, this error appears to be benign for my use cases.
I am running heroku-toolbelt 3.42.21 on NixOS 15.09:
$ heroku --version
heroku-cli: Installing core plugins...
 ▸    Error installing package.
 ▸
 ▸    Try running again with GODE_DEBUG=info to see more output.
heroku-toolbelt/3.42.21 (i686-linux) ruby/2.2.2
heroku-cli: Installing core plugins...
 ▸    Error installing package.
 ▸
 ▸    Try running again with GODE_DEBUG=info to see more output.
heroku-cli/4.27.2-eb1b3ca (386-linux) go1.5.1
heroku-cli: Installing core plugins...
 ▸    Error installing package.
 ▸
 ▸    Try running again with GODE_DEBUG=info to see more output.
You have no installed plugins.

Replicated your problem and am working on a fix.

The nodejs binary does not work with NixOS (you can see reasons in in #72).  In order to get the node plugins to work, you should install node manually and set HEROKU_NODE_PATH to the node executable.  This is not a benign error and will cause you problems executing other commands.

Closing due to inactivity. Reply if you are still experiencing this issue.


Add kbin support

Add support for backfilling and fetching of replies from kbin instances

With kbin development having ceased, and pretty much all of the major kbin instances being (at best) very flakey, I will be closing this issue now.


Fix mobile CSS styling

This change fixes x overflow bugs on tablets and for mobiles the site is rendered in one column for both themes

Very nice update! I've tested it and I'll use it. Hope it'll be merged soon.


Should we allow different documentContent types other than HTML?

We could change documentContent to be a choice, e.g.
<xs:element name="documentContent"  minOccurs="1" maxOccurs="1">
  <xs:complexType>
    <xs:choice>
      <xs:element name="html" type="HTMLTyppe"/>
      <xs:element name="xml" type="XMLType"/>
    </xs:choice>
  </xs:complexType>
</xs:element>

This would allow for better integration with upstream publishing systems that don't want to support HTML.
An XML payload version could look to be a 'pro' version of the content that meets a more structured document use case. For example, citations:
(in HTML  documentContent) Work at Height Regulations 2005 (WAHR)
(in XML documentContent) legal style citation markup, e.g. legalCiteM goes here

Perhaps the 'pro' version could be RDFa or similar?


rename .readthedocs.yaml

Short description of the changes:

Current filename is readthedoc.yaml filename should be readthedocs.yaml. If the filename is wrong readthedocs does not give a good error or warning message to tell you.

Fixing this to hopefully save someone else time debugging issue.
Long description of the changes:

Check list for the pull request

[ ] I have read the [CONTRIBUTING]
[ ] I have read the [CODE_OF_CONDUCT]
[ ] I have added tests for my changes
[ ] I have updated the documentation accordingly

Check list for the reviewer

[ ] I have read the [CONTRIBUTING]
[ ] I have verified the proposed changes
[ ] best software practices

[ ] all internal functions have an underbar, as is python standard
[ ] clearly named variables (better to be verbose in variable names)
[ ] code comments explaining the intent of code blocks

[ ] All the tests are passing
[ ] The documentation is up to date
[ ] code comments added when explaining intent

Manual test for the reviewer

References

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 3.70%. Comparing base (253e780) to head (17780a0).

Additional details and impacted files
@@          Coverage Diff          @@
##            main      #8   +/-   ##
=====================================
  Coverage   3.70%   3.70%
=====================================
  Files          5       5
  Lines        135     135
=====================================
  Hits           5       5
  Misses       130     130

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Should we turn off iOS / Android touch highlights?

I noticed in the deprecated GOV.UK Template we used to turn off the automatic highlights on mobile devices.
https://github.com/alphagov/govuk_template/blob/f2c10fae7ec7e371fd11c409cd71a399e3342e7f/source/assets/stylesheets/_basic.scss#L112
In theory we should have our own active styles for these cases, I'm not sure we do for everything.
My question is, should we ensure we have custom active states for these scenarios and turn off the default touch highlights like we did in the deprecated packages?
Screenshots

After
Before

I took a very quick look at this....
We can add the -webkit-tap-highlight-color: rgba(0,0,0,0); at the html of the Design System itself and it works.
On GOV.UK Frontend it didn't seem to work when added to the .govuk-template class. I imagine it will need to be added to each interactive element individually as they could be imported individually without using the page template?


correct supported type values for parameters

In visual studio code linter, supported values on the parameterization template are different from what is listed in this article. Also, when running a deployment with triggerSuffix of "number" - an error is thrown, stating that number is not a supported type. My guess is someone was using number like in typescript and this is likely just a typo, or perhaps something has changed recently and this is out of date. I updated the list of supported values and corrected anywhere using triggerSuffix number with int instead.

@rdlucas2 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Additional info here - https://github.com/MicrosoftDocs/azure-docs/issues/64705 - showing the build error. the title is wrong - the mistake was in the sample template not the default. Everything else holds up though.

#sign-off


ng new with older @angular/cli version generates an Angular 10 project

🐞 Bug report
Command (mark with an x)

[x] new
[ ] build
[ ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] xi18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?

Yes, it used to work in an older version. I'm not sure when I last ran this command, but my best guess is around Angular 6.
Description
Installing a new Angular project using npx and specifying an older @angular/cli@9 version generates an Angular 10 project.
🔬 Minimal Reproduction
Run npx -p @angular/cli@9 ng new ng9-app --interactive=false
Open package.json and see that it installed Angular 10 dependencies:
  "dependencies": {
    "@angular/animations": "~10.1.0",
    "@angular/common": "~10.1.0",
    "@angular/compiler": "~10.1.0",
    "@angular/core": "~10.1.0",
    "@angular/forms": "~10.1.0",
    "@angular/platform-browser": "~10.1.0",
    "@angular/platform-browser-dynamic": "~10.1.0",
    "@angular/router": "~10.1.0",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.2"
  },

I would expect to see dependencies on version 9.x
🌍 Your Environment
Windows 10
Node.js 12.4.0

Can you try npx @angular/cli@9 new ng9-app --interactive=false

same result:
  "dependencies": {
    "@angular/animations": "~10.1.0",
    "@angular/common": "~10.1.0",
    "@angular/compiler": "~10.1.0",
    "@angular/core": "~10.1.0",
    "@angular/forms": "~10.1.0",
    "@angular/platform-browser": "~10.1.0",
    "@angular/platform-browser-dynamic": "~10.1.0",
    "@angular/router": "~10.1.0",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.2"
  },

The -p option will cause the version specifier to not be used.  However, the command suggested above (npx @angular/cli@9 new ng9-app --interactive=false) should work.  If this does not, then one likely cause is that a version of the CLI is installed in the directory hierarchy above the current directory.  Could you check if there is an installed instance of the CLI (or potentially a node_modules directory in or above the current directory)?

Thanks for the information. I did some extra tests:

When I run npx @angular/cli@9 new ng9-app --interactive=false in an empty directory it installs the expected v9.
When I run npx @angular/cli@9 new ng9-app --interactive=false in a directory with other angular projects next to it, it installs v10. There is no node_modules or package.json in any parent directories, but there are projects and node_modules in sibling directories. Could that affect the version used as well?

In any case I would expect v9 to be installed with above command, or is this logic flawed somehow?

What's happenig here is that at the moment the Angular CLI initialization code will always defer to the "local"
installed version in case there is one.
When you use npx you are essentially install a temporary global version of @angular/cli, but since you have another "local"  @angular/cli in the directory hierarchy above the current directory the command will be deferred to the latter version.


use depset rather than the deprecated set [phab:D1998]

Created by shahms at 2017-10-30 17:58:39:
use depset rather than the deprecated set

schroederc accepted this revision at 2017-10-30 18:00:50

shahms closed via commit 9f828773462770ba0688f93adb60b82886ef153e at 2017-10-30 18:01:38


Advanced Threat Protection (preview) feature triggering warning alerts for internal operation

Advanced Threat Protection (preview) feature triggering warning alerts for internal operations.
Network Watcher monitoring and logs saving to the Storage account is showing as Medium Severity alert by Advanced Threat Protection feature.
Below is the alert details shown to the customer. If this is a Internal operation alert should not be generated.
"Someone has accessed an unusual amount of data from your Azure Storage account"
Storage type: Blob
Container: insights-logs-networksecuritygroupflowevent
User agent: Azure-Storage
IP address: MS Datacenter IP
Potential causes: Data breach, privilege abuse, operational activity

@ChandraSM This will require some deeper analysis. Can you please file a support request @ https://aka.ms/azsupt? If you do not have access to a support plan, please reach out<EMAIL_ADDRESS>with a link to this Doc/Issue as well as your subscription ID and we can help get the support ticket opened for this issue.

@ChandraSM Were able to open the support request? Are you still facing this issue?

Hello Alberto,
Customer had already raised a case regarding it, the case ref. is<PHONE_NUMBER>02531
I had logged an ICM 103858413 for the same and it was identified as Network Watcher process was the reason for this activity. This is something which is happening in the backend as configured by the customer but why Azure Threat Protection is triggering warning message thinking this as unusual activity. Customer shared this feedback regarding this as an improvement and also to avoid confusion.
Is this something by design or will there be improvements regarding it once the Azure Threat Protection feature is live. I understand that currently it’s a Preview feature and still being tested and improvements are being done.
Thanks & Regards,
 --
Chandra Munishamappa
Azure Support Engineer
Office: +1<PHONE_NUMBER> X-8982062
Mobile: +91<PHONE_NUMBER>
chmunish<EMAIL_ADDRESS>Mon-Fri 08:00 – 17:00 UTC
If you need to work with another Azure Technical Support Engineer outside of my working hours, please send email to azurebu<EMAIL_ADDRESS>with your case number, and availability
[Microsoft]
If you have any feedback about my work, please let either me or my manager Shriya Gingade know at Shriya.Gingade<EMAIL_ADDRESS>From: Alberto Vega<EMAIL_ADDRESS>Sent: Tuesday, February 12, 2019 4:45 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Chandra Munishamappa<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Advanced Threat Protection (preview) feature triggering warning alerts for internal operation (#24791)
@ChandraSMhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FChandraSM&data=02|01|Chandra.Munishamappa%40microsoft.com|08cca8539fc948ceb0ff08d69109682b|72f988bf86f141af91ab2d7cd011db47|1|0|636855866923229818&sdata=NJKdV%2FSQ1LWL3ZDDaz7s%2BLrJ8byOkwAxplH5UzoHDl4%3D&reserved=0 This will require some deeper analysis. Can you please file a support request @ https://aka.ms/azsupt? If you do not have access to a support plan, please reach out @ AZCommunity<EMAIL_ADDRESS>with a link to this Doc/Issue as well as your subscription ID and we can help get the support ticket opened for this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F24791%23issuecomment-462836344&data=02|01|Chandra.Munishamappa%40microsoft.com|08cca8539fc948ceb0ff08d69109682b|72f988bf86f141af91ab2d7cd011db47|1|0|636855866923239809&sdata=ud4j87udjFgG4lKB7HO%2FhmpjMm29CUe8MYKD0qL3KcU%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAtXJm-HVutOtUaDQiiW-dFsDqTdJq2d8ks5vMu-BgaJpZM4a2gtw&data=02|01|Chandra.Munishamappa%40microsoft.com|08cca8539fc948ceb0ff08d69109682b|72f988bf86f141af91ab2d7cd011db47|1|0|636855866923249805&sdata=lkqMu2mR7UiKkAyOs%2F2Uy9ekeom%2BMLPBdMYkEaYYjOE%3D&reserved=0.

@ChandraSM Closing this issue since it was channeled to support.


[FX-504] Update PR template

What

Update PR template
Update CONTRIBUTING.md

Why

Renamed CONTRIBUTING.md for improved discoverability.
Use Markdown comments where applicable; reduces time to write easy-to-digest PR descriptions
Foster a culture of dogfooding; Make it easier for reviewers to manually test changes locally
Add rollout plan section
Include section for screenshots and screen recordings

Test Plan

✅ | ❌ I've added unit tests for this change.
✅ | ❌ The reviewer should manually test the changes in this PR.

Demo

How

Current dependencies on/for this PR:

main

PR #84   👈

This comment was auto-generated by Graphite.


Overwrite attribute of  element is not working while provisioning site column from SPFx solution

Category

[x] Bug
[ ] Question
[ ] Typo
[ ] Additional article idea

Question
I'm trying to declaratively provision site columns (Field) in an SPFx solution to a SharePoint Online site.  I want to use the 'Overwrite="TRUE"' attribute of the Field element as documented at https://docs.microsoft.com/en-us/sharepoint/dev/schema/field-element-field.  When attempting to install (Add) the solution in a site, I receive the following Install Errors message:

"There were problems with the app web definition in the package.
Details: Deployment failed in host web...Microsoft.SharePoint.SPException: Feature definition with Id...failed validation...The 'Overwrite' attribute is not allowed. at Microsoft.SharePoint.Administration.SPSolutionPackage.FeatureXmlValidationCallback.XmlValidationCallBack(Object sender, ValidationEventArgs evtargs)..."

This is the same issue that was reported previously in #3805.
Environment details (if applicable)

Tooling:  VS Code, SPFx v1.10.0

That's by design... that property isn't supported when applying the feature from an SPFx component.


Implementing Git

For development purposes, how can i push/pull code from gitlab inside a container having a constant ssh key mapping fromt the host system to a compose file.

Since we have the wordpress directory mapped to the containers as the webroot, you can clone on your host system within the wordpress direcetory, rather than in the container, and the files will be available to the php/nginx containers.


Create H1Missing.md

:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-conceptual/H1Missing.md
:warning:Warning
View
Details

docs-ref-conceptual/H1Missing.md

[Warning] H1 is required. Use a single hash (#) followed by a space to create your top-level heading. See http://aka.ms/MarkdownHeadings for more information.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Difficult to read text on home in Dark Mode

Munich Open Source - More transparency from our IT

difficult to read in front of the ferris wheel

add style for .container .main .text --> no transparency in color


[BUG] Revisons cannot be saved properly

Describe the bug
If revise a multiline card when do space repetitions, The New revised contents will not be at the desired locations but will be place after the meta data.
To Reproduce
Steps to reproduce the behavior:

Create a multiline card (with self defined separator ++)
Review the card in space repetition.
Revise the card by the revision button on the card and save.
Find that the revisions won't work.

Expected behavior
Revisions are expected to be saved properly.
Screenshots
Revision example

Improper revision reult example

Versions (please complete the following information):

OS: Windows10 & Linux Mint 20.04
Obsidian version: v1.4.13
Plugin version: 1.10.1

Additional context
Self defined separator was set ++ and +++ to make it easy to type these marks without switching the input methods between English and Simplified Chinese frequently, because different question marks (? and ？) or other marks are adopted in them.

Hello
And just checking, before the card was edited, it started off as:
Test Card
++
Answer 1

Hello
And just checking, before the card was edited, it started off as:
Test Card
++
Answer 1

Yes, That's the original card

Hi
This has been fixed in a Beta release at:
https://github.com/ronzulu/obsidian-spaced-repetition/releases/tag/1.11.0-beta.0
If you would like to use it, you would need to manually download a couple of files as described in the release note.
Cheers
Ronny

Thanks for your hard work and the fixes works well.

Great, thanks for letting me know.

Hi  @tk166
The fix for this has been included in the latest release 1.10.2.
Please update to the latest version of the plug-in, and if all good, close off this issue report.
Cheers
Ronny


fix(server): Fix server tests failing intermittently due to ioredis

A few contributors have reported flakiness of tests in packages/server/src/app.test.ts, specifically since using real Redis in tests. There were a few things that indicated it may be to weird interplay between jest and redis, although the details are unclear. I tweaked a few things that makes it feel more stable (haven't had another test failure yet) but not 100% confident this is the fix.

lgtm 👍
This only affects tests & server shutdown, right? Looks safe.

Yeah this is only regarding tests and server shutdown. Thanks 🙏


Linking to Pombase

We should do this too:
geneontology/amigo#392

see
https://github.com/pombase/website/issues/27


Advanced Task Configuration

Is your request related to a problem? Please describe.
Some tasks require advanced configuration, in particular, the Run Custom Task with setting an Image Secret Reference or security constraints on how the container is run such as no network access.
Normal tasks could also use a way to define output properties such as with HTTP Call task where you could define output properties based on a JSONPath
Describe the solution you'd like
The task configuration modals as part of the editor have tabs, one for configure (or inputs) and one for Advanced where you can do additional parts of the configuration
Describe the benefits or justification for this request
This will allow more advanced use cases and control for the end user.
Additional context
n/a

FYI: @simon-harris-ibm


The synthetic data generation shuold be in the striatum package

That function should be reusable

related to #14

Will do this after finishing implementing on real-world examples.


surprising behavior from Analysis.fit_hypo

After setting a distribution maker's parameters to new Param objects, fit_hypo may discard these parameters before fitting. One example of how this could occur is this:

Conduct a fit
Set the distribution maker's parameters to copy.deepcopy(best_fit_params)
Evaluate the distribution at the best fit parameters
Fix some parameters to new values
Run another fit

Under some conditions, the fit in step 5. will discard the parameters from step 4. This occurs because of the call to hypo_maker.select_params(full_param_selections). I found this behavior very surprising. Whether the fit actually uses parameters fixed before the call to fit_hypo depends on whether the user modifies parameters in place (which might work) or sets the parameters to new Param objects (which probably won't work),

Related to #644

I am finding the same problem, and with the current Pisa functions for ParamSet, there doesn't seem to be a way to make the current analysis.py code use best fit parameter starting values and set them free at the same time. All one can do if you want to keep the best fit values is fix the parameters in place as described above. A quick and simple way to fix this without messing with select_params() or ParamSet would be with a simple flag in fit_hypo that incorporates an if statement into the line hypo_maker.select_params(full_param_selections).
Something like:
def fit_hypo(self, data_dist, hypo_maker, metric, minimizer_settings, using_previously_chosen_params=False, ...):
If using_previously_chosen_params==False:
hypo_maker.select_params(full_param_selections)
If this is okay, I would be happy to make a PR for it.


Participant Password Requirements

ITS has specific requirements for Participants.  Please follow the guidneslines under section 2.0 for Minimum Password Complexity for data that is Not highly sensitive:  https://security.virginia.edu/authentication#User Authentication Requirements

It breaks down to this:
Minimum of 8 characters
Contain characters from at least three of the following four character classes:

Upper case alphabetic (e.g. A-Z)
Lower case alphabetic (e.g. a-z)
Numeric (e.g. 0-9)
Special characters (e.g. .,!@#$%~)


package.json: Update patternfly package dependency

Check for any outstanding update of point version of any outstanding NPM package dependency

[x] npm-update

npm-update in progress on bos-tasks-ghtjd.
Log: http://fedorapeople.org/groups/cockpit/logs/npm-update-466-20181209-080303/

npm-update patternfly done: https://github.com/cockpituous/welder-web/commits/npm-update-patternfly-20181209-080404

Please manually check features related to these files:
README.md:    ✓ Includes [Patternfly](http://www.patternfly.org/) CSS & some React implementations of Patternfly components<br>
components/ListView/BlueprintContents.js:import { Tabs, Tab } from 'patternfly-react';
components/ListView/ComponentDetailsView.js:import { Tabs, Tab } from 'patternfly-react';
components/Modal/CreateImage.js:import { Button, OverlayTrigger, Popover, Icon, Alert } from 'patternfly-react';
components/Modal/PendingChanges.js:import { Button, OverlayTrigger, Popover, Icon, Alert } from 'patternfly-react';
components/Toolbar/FilterInput.js:import { Filter } from 'patternfly-react';
components/Toolbar/ToolbarLayout.js:import { Filter, Toolbar } from 'patternfly-react';
package.json:    "patternfly": "3.54.8",
package.json:    "patternfly-react": "1.9.3",
pages/blueprint/index.js:import { Tab, Tabs } from 'patternfly-react';
public/custom.css:/* modifications to patternfly css */
public/index.ejs:    <link rel="stylesheet" href="./css/patternfly.min.css">
public/index.ejs:    <link rel="stylesheet" href="./css/patternfly-additions.min.css">
run.js:  url: 'https://patternfly-react-starter.firebaseapp.com',          // Your website URL
run.js:  project: 'patternfly-react-starter',      // Firebase project. See README.md -> How to Deploy
webpack.config.js:    // copy patternfly assets
webpack.config.js:        from: { glob: './node_modules/patternfly/dist/img/*.*' },
webpack.config.js:        from: { glob: './node_modules/patternfly/dist/fonts/*.*' },
webpack.config.js:        from: { glob: './node_modules/patternfly/dist/css/*.*' },

Codecov Report

Merging #466 into master will decrease coverage by 0.17%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #466      +/-   ##
==========================================
- Coverage   66.44%   66.27%   -0.18%
==========================================
  Files          67       67
  Lines        2876     2876
  Branches      575      575
==========================================
- Hits         1911     1906       -5
- Misses        965      970       +5

Impacted Files
Coverage Δ

components/Pagination/Pagination.js
91.3% <0%> (-4.35%)
:arrow_down:

components/ListView/BlueprintContents.js
80% <0%> (-4%)
:arrow_down:

core/selectors.js
90.42% <0%> (-2.13%)
:arrow_down:

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 9ed4855...b0222b1. Read the comment docs.

@larskarlitski or @jgiardino , can either of you, or someone else who is familiar with how composer looks like, do a visual test that this new PF does not break any layout?

I can later today.

Thanks @jgiardino !


feat: TypeScript 5.5

Closes #1255

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

💚 All backports created successfully

Status
Branch
Result

✅
maintenance/v5.3

✅
maintenance/v5.4

Questions ?
Please refer to the Backport tool documentation and see the Github Action logs for details

💚 All backports created successfully

Status
Branch
Result

✅
maintenance/v5.3

✅
maintenance/v5.4

Questions ?
Please refer to the Backport tool documentation and see the Github Action logs for details


多数据校验 - CheckMap 无效

1. What version of Go and system type/arch are you using?
go version go1.16.6 windows/amd64

2. What version of GoFrame are you using?
GoFrame Version: v1.16.6 in current go.mod

3. Can this issue be re-produced with the latest release?
4. What did you do?

	params := map[string]string{
		//"zh-CN": "中文",
		"en": "英文",
	}
	rules := []string{
		"zh-CN@required|length:1,16#中文required有效|中文length有效",
		"en@required|length:1,16#英文required有效|英文length有效",
	}

	if err := g.Validator().Rules(rules).CheckMap(params); err != nil {
		fmt.Println(err.Map())
	} else {
		fmt.Println(err == nil)
	}

5. What did you expect to see?
map[required:中文required有效 length:中文length有效]
6. What did you see instead?
true

#之后的提示是规则校验失败才会打印的内容，你的这个规则校验是成功的， 所以打印的结果是true

@hbsycc So it is as @huangqian1985 explained.


Add configuration files for JDK18

Add jdk18 configuration files for upstream and downstream pipelines.
Signed-off-by: Violeta Sebe<EMAIL_ADDRESS>

@AdamBrousseau fyi

It is close to the original commit since I started with it. I cleaned XL platforms.


[FEATURE REQ] Pull Complete Certificate (Java KeyStore supported ) from Azure Key Vault

I want to pull the complete certificate (with public, private keys) from Key Vault and pass it to Java KeyStore/ SSLContext  (don’t want to write certificate content into file)
Example:
keyStore =  certificateClient.getCertificate(name).getCer();
SSLContext sslContext = SSLContexts.custom().loadKeyMaterial(keyStore, certificatePassword.getCertificatePassword().toCharArray()).build();

I am interested in this.
+1

I am interested in this.
+1

I am also very interested in this, +1


Use of unresolved identifier 'Mattress'

Hi,
after installation via cocoa pods this line
let urlCache = Mattress.URLCache(memoryCapacity: 20 * MB, diskCapacity: 20 * MB, diskPath: nil,
mattressDiskCapacity: 1 * GB, mattressDiskPath: nil, mattressSearchPathDirectory: .DocumentDirectory,
isOfflineHandler: isOfflineHandler)
shows an error Use of unresolved identifier 'Mattress'

I think you forgot to import the module on top of the file.
import Mattress

Thanks a lot! This helped me!


[IndexError] Creating matrix from sequences of unequal length

Nobody sane would/should do something like this, but even still—should this be caught?
let
  s1 = @[3.5, 6.5]
  s2 = @[1.0, 2.0, 5.0]

let m1 = matrix(@[s1, s2])
echo m1
# [ [ 3.5	6.5 ]
#   [ 1.0	2.0 ] ]

Reverse the order, so the first row is larger:
let m2 = matrix(@[s2, s1])
echo m2
# Error: unhandled exception: index out of bounds [IndexError]

Should the lengths be checked before calling makeMatrixIJ template? Something like this:
proc matrix*[A](xs: seq[seq[A]], order = colMajor): Matrix[A] =
  for x in xs:
    checkDim(xs[0].len == x.len, "The dimensions do not match")
  makeMatrixIJ(A, xs.len, xs[0].len, xs[i][j], order)

I'm willing to write a PR, just let me know if/how this should be handled.

Yes, it looks like a missing dimension check. The way you handle it is fine, just put it in a when compileOption("assertions"): to avoid calling checkdim in a loop, since it is a no-op unless assertions are active: https://github.com/unicredit/neo/blob/master/neo/core.nim#L26-L30
Maybe the C compiler removes the loop altogether but still


Permission Denied

Running in a docker container:
I don't think I'm use DHCPD pools, DHCPD is in another container, any ideas?
ror: Command failed: ./bin/dhcpd-pools -c /etc/dhcp/dhcpd.conf -l /var/lib/dhcp/dhcpd.leases -f j -A -s e
/bin/sh: 1: ./bin/dhcpd-pools: Permission denied

problem seems to be that dhcpd-pools is not executable
do a
chmod +x dhcpd-pools
will solve the problem

Is that run on the host or inside the container?

$ docker-compose up -d glass && docker-compose exec glass chmod +x ./bin/dhcpd-pools


Riot loses its settings, even though it still remembers them

Details and screens in https://matrix.to/#/!GnEEPYXUhoaHbkFBNX:matrix.org/%241487404895464195bxCRH:matrix.org

It should be fixed by
https://github.com/vector-im/riot-android/commit/027da7039da1266396f47a06be1cdce0ad852422


exercise 7

exercise 7 with ipynb and the geojson from ArcGIS that I used

This looks like a good start @Katy-Norm. I appreciate that you included the geojson file alongside the notebook. It seems like you still have some ways to go to ore fully answer your question, but are headed in the right direction.


Is the current API repetitive?

No intentions to release a new major soon, but I'd like to leave the question here lest I forget.
Don't you feel the current API is repetitive? We could trade less repetition for some verbosity:
getopts(process.argv.slice(2), {
  options: {
    foo: {
      alias: ["f", "F"],
      boolean: true,
      default: false
    },
    bar: {
      default: 42
    },
    baz: {
      alias: ["B", "bazmut"],
      string: true,
      default: "hello"
    }
  },
  stopEarly: true
})

For comparison, here's how you'd do it using the current API:
getopts(process.argv.slice(2), {
  alias: {
    foo: ["f", "F"],
    baz: ["B", "bazmut"]
  },
  default: {
    foo: false,
    bar: 42,
    baz: "hello"
  },
  boolean: ["foo"],
  stopEarly: true
})

I like that idea

Hey @jorgebucaran 👋  I'm getting some good use out of it. I'm happy as-is but I will adjust if you change it. TY contributors 😍

@jorgebucaran I would keep the current API and create a separate package that converts the "verbose" format to the current.

Thank you for the suggestion @thiagodp, that makes sense to me as well.

It's been a while here, and I don't think we're going to be changing the API at this point. This issue has run its course. 👋


Fix crash in non-matching incoming IPv4 packets, alternate version

This is a modification of #439 that changes drop_ipv4 rather than working around it.

This patch is sending both IPv4 and IPv6 packets to drop_ipv4 which is wrong, so discarding it.


Add debug information for internal session states

First step in making the inner workings of Sessions available to external debugging.
This adds a name to each state that can be used during advance_state to log the state transition, which is really helpful for debugging lifecycle issues.
Unfortunately, there doesn't seem to be a logger component in Object Store currently (or I couldn't find it), so for now this is up to bindings to do this manually.
Java e.g. can do this:
    std::ostringstream out;
    out << "SyncSession: " << path() << " (old:" << m_state->name() << " -> " << state.name() << ")";
    __android_log_print(ANDROID_LOG_ERROR, "Session state change", out.str().c_str(), 1);

Cool, I didn't knew that was possible. No reason for this PR then. Closing


Error drawing chart before ajax call receives data

Perhaps there is an issue in the way I am getting my data, but, when I create a new chart object:
$scope.myChartObject = {};
and then add the data from the server:
$scope.myChartObject .data = <data from $http.get>
I sometimes get an error, when the chart draw function has been called before the data has been received. I have fixed this issue locally with the line change:
before:
if (!draw.triggered && ($scope.chart != undefined)) {
after:
if (!draw.triggered && ($scope.chart != undefined) && ($scope.chart.data != undefined)) {
or perhaps, this could be done more simply
if (!draw.triggered && ($scope.chart != undefined)) {

The way I handle this in my project is to assign the entire chart object after the initial data loads.  If your chart is in the view for a route, you may consider using route resolves.  Resolves are loaded during route changes and the view is not rendered until all promises are resolved.  So your ajax call would be completed before rendering the view.  There's a simple example at this blog post: http://odetocode.com/blogs/scott/archive/2014/05/20/using-resolve-in-angularjs-routes.aspx
The disadvantage to route resolves is that your view isn't displayed until all promises are resolved, which can cause delays if your back-end is slow.  I've seen examples of directives that others have written to display a loading spinner or box of some kind until the route change has been completed.  I did a quick search, but couldn't find the one I had in mind for an example, but there are a few posted on jsfiddle, Stack Overflow and Plunker.
Personally, I like seeing an error when there's no data, because it helps me track down problems.  If I'm not creating the chart object until there is data, and I get that error, then I know there's something wrong in either the data I've received, or the way I'm handling it once I've got it.  Sometimes errors are a necessary evil, the trick is in structuring your web app so that it fails gracefully when it is actually being used.
Disclaimer: Everything above is only my opinion.  I welcome the opportunity to be set straight if others disagree.

Ah yes, that is a better way of doing it.

Thanks


Issues/109

Thank you for contributing to naz.
Every contribution to naz is important.
Contributor offers to license certain software (a “Contribution” or multiple
“Contributions”) to naz, and naz agrees to accept said Contributions,
under the terms of the MIT License.
Contributor understands and agrees that naz shall have the irrevocable and perpetual right to make
and distribute copies of any Contribution, as well as to create and distribute collective works and
derivative works of any Contribution, under the MIT License.
Now,
What(What have you changed?)

Why(Why did you change it?)

Fixes: https://github.com/komuw/naz/issues/109

References:

Codecov Report

Merging #126 into master will decrease coverage by 0.04%.
The diff coverage is 70.58%.

@@            Coverage Diff             @@
##           master     #126      +/-   ##
==========================================
- Coverage   86.16%   86.12%   -0.05%
==========================================
  Files          14       14
  Lines        1200     1196       -4
==========================================
- Hits         1034     1030       -4
  Misses        166      166

Impacted Files
Coverage Δ

cli/cli.py
87.5% <ø> (+19.24%)
:arrow_up:

naz/client.py
80.38% <70.58%> (-1.96%)
:arrow_down:

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 b1f0345...c966a7d. Read the comment docs.


Implement bulk actions for snippet listings

Is your proposal related to a problem?

Bulk actions was released in Wagtail 2.15
This supports Page, User, Image and Document models
However, it would be great to have this also support Snippet listings
Initially this would be a layout change to match other content, however the main benefit is extending behaviour through custom bulk actions.

Describe the solution you'd like

When navigating to a snippet listing, the ability to check all / some and then delete these should match the user interface of other listings where bulk actions are supported.
It should also be possible to add additional bulk actions as documented https://docs.wagtail.org/en/stable/extending/custom_bulk_actions.html#registering-a-custom-bulk-action

Describe alternatives you've considered

Advising users to be aware that the UI is different in form builder.
Building additional custom actions or buttons through customisations.

Additional context
Screenshot of current (2.16) snippets listing with something selected

Screenshot of document listing bulk actions for comparison

@lb- Can I pick this up?

@lb- Can I pick this up?

Go for it, there are some things to be aware of

Snippets are in a bit of a flux at the moment, so keep an eye on any PRs that may conflict in that area (most are sitting as draft right now though).
Bulk actions PR for form submissions on going (feel free to add any feedback to that if you want to) https://github.com/wagtail/wagtail/pull/8542
Frontend changes ongoing to try to get shift + click working to select multiple at once, should not be a conflict with working on this but just FYI https://github.com/wagtail/wagtail/pull/8540

Has been implemented via https://github.com/wagtail/wagtail/pull/8574 & released in 4.0 but looks like it got missed on any release notes or changelog (will add shortly).


IActionResult Un-necessary Casting with Ternary Expression

The following webapi method does not behave with a ternary (I believe this to be incorrect).
Nuget Version: Microsoft.AspNetCore.Mvc v1.1.3
        [HttpPost]
        [Route("{id:int}/notes")]
        public IActionResult CreateNote([FromRoute] int id, [FromBody] Dtos.NoteData note)
        {
            //This works but resharper reports it as an un-necessary cast which is true
            //remove the IActionResult cast on both and the types cannot be implicitly converted?
            //Remove the cast on one (not both) it also works
            return _noteService.CreateNote(id, note) == true
                ? (IActionResult) Ok()
                : (IActionResult) NotFound();

            //This also works without casts, but the if seems verbose and un-necessary
            //var result = _noteService.CreateNote(id, note);

            //if(result == OperationResult.NotFound)
            //    return NotFound();
            //else
            //    return Ok();
        }

I believe what you want to do is file a complaint on dotnet/Roslyn. The web framework doesn't control this behavior.
Just FYI, his has been the behavior since the beginning. Why we could have done (if we had a time machine) would be to make those methods return IActionResult instead of the specific type of result. At this point it's too big of a breaking change

@davidfowl I thought the same thing, this is strange since technically both derive IActionResult in their dependency graphs.  I swear I had done this in other projects with success, must have been different scenarios (and it wasn't in the new core world - not sure if that matters or if the problem exists in both).


Move country/territory and HESA domicile data to the DfE Reference Data gem

In draft pending release of https://github.com/DFE-Digital/dfe-reference-data/pull/67

 Move HESA domicile resolution to the dfe-reference-data gem


[Event Request] Codeunit 97 Blanket Purch. Order to Order -OnBeforePurchLineFindSet

Please add this event:
           then begin
                PurchLine.SetCurrentKey("Document Type", "Blanket Order No.", "Blanket Order Line No.");
                PurchLine.SetRange("Blanket Order No.", PurchBlanketOrderLine."Document No.");
                PurchLine.SetRange("Blanket Order Line No.", PurchBlanketOrderLine."Line No.");
                QuantityOnOrders := 0;
                **OnBeforePurchLineFindSet(PurchLine);**
                if PurchLine.FindSet then

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Knative Webhooks not included in liveness checks

Version

Karpenter Version: HEAD

Kubernetes Version: v1.0.0
Expected Behavior
https://github.com/aws/karpenter-core/pull/142
Actual Behavior
Knative webhooks liveness checks aren't included in kubelet liveness probe
Steps to Reproduce the Problem
make apply
Resource Specs and Logs
``
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Closed by #334


fix(vault): vault try should avoid using semaphore in non-yieldable phases

Summary

Checklist

[ ] The Pull Request has tests
[ ] A changelog file has been added to CHANGELOG/unreleased/kong or adding skip-changelog label on PR if unnecessary. README.md
[ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Full changelog

[Implement ...]

Issue reference

Fix #[issue number]

@windmgc I think this is a good catch. I think the problem might be here:
https://github.com/Kong/kong/blob/master/kong/pdk/vault.lua#L1126-L1129
I think we just need to make a tool that checks if you are running in yieldable context:
https://github.com/Kong/kong/blob/master/kong/tools/utils.lua#L1655-L1664
Different functions may have different limitations. That is where Nginx native ngx.sleep does work ^. So I don't want a yet another if phase == "init"  as it is not all that. Other phases have similar problems.

@bungle  Got it!

The doc only mentioned 4 phases but I think other yield-able phases should support wait as well, see the following check in C code:
https://github.com/openresty/lua-nginx-module/blob/c89469e920713d17d703a5f3736c9335edac22bf/src/ngx_http_lua_semaphore.c#L382

@bungle Could you check if this implementation is the thing that you want? Thanks!


PHP return type declaration not highlighted on anonymous function

In PHP, the return type declaration on an anonymous function (closure) is not highlighted in the same colour as the same type declaration on a named function.

Version: 1.41.0-insider
Commit: 29b99f85e54aa5af6cd4edf918a67d4f70a10aea
Date: 2019-11-19T10:25:09.288Z
Electron: 6.1.4
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.0.0
Steps to Reproduce:

Open or create a PHP file, such that the code within is syntax-highlighted as PHP.
In the file, write an anonymous function.

Expected behaviour: The return type declaration on the anonymous function is highlighted in the same colour as it would be on a named function. (Blue, in the case of attached image.)
Observed behaviour: The return type declaration appears to not be highlighted. (White, in the case of attached image.)

Does this issue occur when all extensions are disabled?: Yes

Additional Information:
The attached code snippet appears to be correct. I tested this by running the code with php filename.php in a terminal, and getting the expected output with no errors. I also tried a version of the code with wrong types declared in the closure ($toast = function (string $letter): string { on line 13 in the attached code snippet), and this produced TypeError as expected.
Code used to test:
<?php

function doubleLetter(string $letter): string {
    return $letter . $letter;
}

$test = [
    'a',
    'b',
    'c'
];

$toast = function (string $letter): string {
    return $letter . $letter;
};

$doubledTest = array_map(function (string $letter): string {
    return $letter . $letter;
}, $test);

echo $toast('a');

It would appear the code block in Github exhibits the same behaviour, so that might help narrow down the issue if the source of the syntax highlighting is the same.

@tokc thank you for the clear/thorough repro steps! It turns out that is has already been fixed in the repo we get the grammar from (https://github.com/atom/language-php/issues/367). I just pulled in the update so you should see the fix in the next insiders build.


The term 'texdiag' is not recognized as the name of a cmdlet, function, script file, or operable program

i want to check full detail of some DDS Files. but when i use this command: texdiag info dds-source*.dds > output.txt
powershell says: texdiag :
The term 'texdiag' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

texdiag info dds-source*.dds > output.txt

  + CategoryInfo          : ObjectNotFound: (texdiag:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

Suggestion [3,General]: The command texdiag was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\texdiag". See "get-help about_Command_Precedence" for more details.

Did you try making sure you changed to the directory where you downloaded the texdiag.exe and tried using .\texdiag


Add playbook for shutting down resources

This PR adds a playbook detailing various options to stop traffic to PRIME resources.
Changes

Adds playbooks/shutdown.md

Checklist
Testing
N/A
Specific Security-related subjects a reviewer should pay specific attention to
N/A
Process
N/A
Fixes
List GitHub issues this PR fixes

#issue

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

#issue

/cc @jdorothy


AttributeError: 'NoneType' object has no attribute 'match'

Hi
I've installed sixpack via pip on Python 2.7.5
When I send curl request to our endpoint, I get a 500 Internal Server Error, and the below error in the sixpack accesslog. However, the sixpackweb interface does show me that the request worked as the experiment appears.
example request:
host:5000/participate?experiment=test&alternatives=red&alternatives=blue&client_id=12345
Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/usr/lib64/python2.7/site-packages/sixpack/server.py", line 71, in __call__
    return self.app(environ, add_cors_headers)
  File "/usr/lib64/python2.7/site-packages/sixpack/server.py", line 92, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/lib64/python2.7/site-packages/sixpack/server.py", line 101, in wsgi_app
    return response(environ, start_response)
  File "/usr/lib/python2.7/site-packages/werkzeug/wrappers.py", line 1169, in __call__
    start_response(status, headers)
  File "/usr/lib64/python2.7/site-packages/sixpack/server.py", line 56, in add_cors_headers
    get_origin(status, headers))
  File "/usr/lib64/python2.7/site-packages/sixpack/server.py", line 51, in get_origin
    return origin if self.origin_regexp.match(origin) else "null"
AttributeError: 'NoneType' object has no attribute 'match'

Sorry, duplicate of #280


Cube at wrong position in Chamber 13

Version of the game
Master Branch, commit d99af47
Original Hardware or Emulator?
Project64 3.0.1
What is the bug?
The cube in the second room of Chamber 13 is not initially at the original location as in the original game. It should be on the inactive moving platform instead of on the ground.
Steps to reproduce the behavior:

In test chamber 13
Look through the glass.
See the cube in the second room being at the wrong position.

Screenshots

Additional context
The first screenshot shows the cube being at the wrong position as mentioned. The second was taken as I was trying out whether the current game physics are capable of handling a cube on a moving platform (which seems to work).

Thanks.
Here is how the cube is positioned in the level's .blend file (proper position):

If I enter the level from the "new game" menu or from the previous chamber, it is placed correctly:

However, if I load a save, I can reproduce what you are seeing:
.
I have debug contact solver drawing on, and can see the cube starting in its proper place before getting thrown across the room.
Likely, it is spawning inside of the platform and getting ejected. In fact, when I edit the level and move the cube slightly inside of the platform, I see the same thing. So it looks to be an issue with scene deserialization (affecting more than just cubes). This will be a low priority for now, but does need to be fixed.

You're right, I forgot to mention I was loading the level instead of starting a new game. Starting a new game at this chamber yields the cube being placed correctly as you've shown for me too.

wouldn't spawning the cube slightly above the platform upon chamber load and then letting physics take the wheel fix this issue? it kind of looks to me like it is being flung off the platform on load, either that or their is a weird offset of some kind....

That would solve the problem in this one instance, but special casing things like this can get quite messy code-wise and also doesn't address the issue with different objects/platforms in other parts of the game. So a general solution is best.
This looks like an interaction between save file (de)serialization and rigid body sleep flags.


GPT3.5 Resilience

When doing testing, gpt-3.5-turbo tends to struggle a lot with formatting JSON queries. It sometimes responds with plaintext and then gives the JSON query, or messes up the format.
This issue proposes two suggested changes.

Search for any valid JSON match inside of the response. If one is found, use it (modify the message to remove anything else except the JSON response)
Try to get an LLM to fix the JSON response if it's invalid.

Alongside this, it also might be a good idea to use YML for prompt token reduction and for making it easier for LLMs to understand the prompt. However, whether this is better than JSON is uncertain (it hasn't proven reliable in my light testing.)

If you use a gpt-3 base model like davinci-003, you can force it to use JSON formatting by providing it the start of a json object at the end of the prompt. Ie:
Some instructions... always return in json.

Here is the response:
{

This doesn't work for chat models like 3.5 & 4 since you can't seem to provide the start of an assistant response as before, but it's possible that an older model that is better with formatting will actually be an improvement.

I've definitely been looking into those ideas, alongside even more sophisticated solutions like jsonformer. The main goal is providing support for instruct/chat based models however (the internals of SmartGPT take advantage of Vec<Message> or &[Message] which are abstractions around chat conversations), and although this can be used with base models too by turning it into a pure plaintext prompt, I'm not sure it'd be as effective.
You might be able to provide the start of an assistant response: in the OpenAI playground, you're able to add an assistant response, and then it'll continue. I haven't tested this with the API, but there's no reason why it would work differently.
I think even if we had it start the response with {, unless we used something like jsonformer, there would still be parsing errors (text outside of the JSON, trailing commas, etc.) I think #20 is a strong start at being able to more effectively use this with models that are worse at precise formatting like gpt-3.5-turbo, and future prompting techniques should be investigated in the future.

@Cormanz I have a strong opinion:

let llm output in json format wastes lots of computing power and token count
I propose we ask llm to return thoughts, etc. in separate text sections, we write old fashioned code manually parse them into Rust struct

please go to https://platform.openai.com/tokenizer to find out how wasteful it is to use json format in gpt models, see the colorized blocks for tokens wasted on json's formating

on the other side of the coin, it saves token and I guess it's easier for llm to understand if we feed llm data in json if the data has a tree like structure, because json is already a structured data representation, following screencap indicates a plain text representation of a tree structure is very wasteful in token count

@Cormanz I have a strong opinion:

let llm output in json format wastes lots of computing power and token count
I propose we ask llm to return thoughts, etc. in separate text sections, we write old fashioned code manually parse them into Rust struct

please go to https://platform.openai.com/tokenizer to find out how wasteful it is to use json format in gpt models, see the colorized blocks for tokens wasted on json's formating

The output you showed uses multiple levels of indentation, which greatly increases the token account. The SmartGPT prompt only uses one level of indentation, so the token cost of indentation is reduced significantly, making it much less costly compared to your example.
In addition, JSON is a format that the model was trained on extensively. When it is asked to write JSON, it has a significant amount of internal knowledge of it, and can do it much more effectively, and more consistently. On the other hand, asking it to write it in separate sections would completely forgo its understanding of JSON, and lead to much less consistent results, alongside making us maintain even more code to handle proper parsing of it.
I don't think that it's a solution worth considering, given the minimal token cost with one level of indentation, and the extreme lack of consistency. Rather, it may be worth pursuing technologies like JSON-Former, or using YML to reduce tokens and allow for responses to be streamable and more consistent.

@Cormanz thanks for your explanation