feat(dependencies & code verification): specify latest versions and add client_secret

Hey @SijuKJ 👋
Thanks for creating this solution. We've made an internal Flutter desktop tool, that needs multiple Oauth2 authorizations. Previously I used a similar solution, but then by using flutter_inappwebview. We had to search for different solution, because some of our users want to use the tool on Linux. And thats what your solution seems to resolve 👌
In this PR I changed the versions of a url_launcher and http to its latest version. Especially for http it will make sense, because in the past 14 months it released a new major version.
Secondly, I added client_secret to the code verification part for when pkce is set to false. This was necessary at every implementation what I saw.

Thanks @SijuKJ 🤗
About releasing the package, I see that there are a lot of analysis issues with the latest release. Do you have time to resolve those? It would be nice to have the package scoring good at pub.dev 🚀
Another thing, are you open in having a github actions flow, which creates a release after a trigger?


[BEAM-5855] Remove duplicated code files from the Dataflow worker donation

Removes duplicated code, and modifies existing files to use Beam SDK utils.

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

Codestyle plugin failed, please run 'gradlew spotlessApply' to fix these violations and update PR.

R: @lukecwik

LGTM, will squash and merge on green.


LORM.xsl:65-73: conceptual-relations are pairs of...

The puzzle 15-c8802e55 from #15 has to be resolved:
https://github.com/yegor256/jpeek/blob/97a80bf82afb2db0d40171038596a305478a6a2e/src/main/resources/org/jpeek/metrics/LORM.xsl#L65-L73
The puzzle was created by Kapralov Sergey on 26-Jan-18.
Estimate: 30 minutes, role: IMP.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The job #112 assigned to @rok-povsic/z. The budget is 30 minutes, see §4. Please, read §8 and §9. If the task is not clear, read this and this.

@0crat status

@0crat status (here)

@rok-povsic This is what I know about this job, as in §32:

The job #112 is in scope for 12days
The role is DEV
The job is assigned to @rok-povsic/z for 1days
There is a monetary reward attached
@rok-povsic/z will get 50% of their hourly rate for this job
The job doesn't have any impediments
The budget is 30 minutes/points
These users are banned and won't be assigned:

@0pdd/z: This user reported the ticket

The puzzle 15-c8802e55 has disappeared from the source code, that's why I closed this issue.

Order was successfully finished: +30 points just awarded to @rok-povsic/z, total is +30

The job #112 is now out of scope

@0pdd this puzzle is still not solved: 160

@0pdd this puzzle is still not solved: 160

@0pdd this puzzle is still not solved: 160

@0pdd the puzzle #503 is still not solved.

@0crat status (here)

@rok-povsic This is what I know about this job in C7JGJ00DP, as in §32:

The job #112 is not in scope
Job footprint (restricted area)


Unable to attach a file located in the app's local filesystem to an email

We’re using cordova-plugin-file to create a file in the app’s local filesystem.  More specifically, the file is created in /data/data/<app-id>/files/Documents, which is in the Documents folder under cordova.file.dataDirectory as per https://github.com/apache/cordova-plugin-file/blob/master/README.md#android-file-system-layout.
When using cordova-plugin-email-composer, we’re able to successfully attach the file to an email by referencing it with app://files/Documents/fileName.txt.
However, when using cordova-plugin-x-socialsharing, we are unable to successfully attach the file using app://files/Documents/fileName.txt and various other permutations of the path.  The email client (Gmail) displays “Can’t attach empty file” or “Permission denied for the attachment”.
Can anyone advise on the specific path that can be used to reach the file using cordova-plugin-x-socialsharing?  Any suggestions or guidance is appreciated.  Thanks!

This issue may be related to #814.

Hi @mc-sm maybe too late, but I had exactly the same problem.
In this plugin, contrary to the cordova-plugin-email-composer the file path must be complete, for example files: [cordova.file.dataDirectory + 'myimg.jpg']. I like more the way the files path are dealt here, it's more clear and in accordance with the file paths of cordova-plugin-file

IMHO I think this issue may be closed because it's just a question of files path. Actually this plugin is better with that respect.


Use the response from an API in the dataSet

Hi, I tried to use the JSON response of an Api in the dataSet but I get the message "Caused by: jdk.nashorn.internal.runtime.ParserException: :7:0 Invalid return statement return $output.body;"
dataSet: |
$runAction("org.getopentest.actions.HttpRequest", {
url: url,
verb: GET
});
return $output.body;
Would there be a way to use the API response in the dataSet?

I never tried it, but I think an IIFE might do the trick:
dataSet: |
  (function() {
    var output = $runAction("org.getopentest.actions.HttpRequest", {
      url: url,
      verb: GET
    });

    return output.body;
  })();

Or a shorter syntax:
dataSet: |
  $runAction("org.getopentest.actions.HttpRequest", {
    url: url,
    verb: GET
  }).body;

Let me know if it worked.

It worked, thanks for the help!

Hello, I am using the solution from this issue and I am seeing that the call is being repeated in each iteration, I was expecting that the call to the dataSet would be made only once, is it possible to change this behavior?


Add test cases for ZookeeperConfiguration and ZookeeperProperties. #508

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #550 (7d6b83e) into master (dcaf2b7) will increase coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #550      +/-   ##
============================================
+ Coverage     20.46%   20.51%   +0.04%
- Complexity      341      343       +2
============================================
  Files           197      197
  Lines          4656     4656
  Branches        496      496
============================================
+ Hits            953      955       +2
+ Misses         3604     3602       -2
  Partials         99       99

Impacted Files
Coverage Δ
Complexity Δ

...mara/soul/admin/config/ZookeeperConfiguration.java
100.00% <0.00%> (+100.00%)
2.00% <0.00%> (+2.00%)

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 dcaf2b7...7d6b83e. Read the comment docs.


[HxInputText] error with array

I have an array of strings, Place.Sites, that I'm trying to manage using the HxInputText component. My current code looks like this:
@for (int x=0; x < Place.Sites.Count();x++)
        {
            int i = x;

            <HxInputText Label="Sites" @bind-Value="Place.Sites[i]" />

        }

However, this code raises the following error:

InvalidOperationException: Sequence contains no elements
System.Linq.ThrowHelper.ThrowNoElementsException()
System.Linq.Enumerable.Single(IEnumerable source)
Havit.Blazor.Components.Web.Bootstrap.HxInputBase.GetValueAttribute()
Havit.Blazor.Components.Web.Bootstrap.HxInputTextBase.BuildRenderInput(RenderTreeBuilder builder)
Havit.Blazor.Components.Web.Bootstrap.HxInputBase.Havit.Blazor.Components.Web.Bootstrap.Internal.IFormValueComponent.RenderValue(RenderTreeBuilder builder)

if I switch to the standard InputText component, the code works as expected:

@for (int x=0; x < Place.Sites.Count();x++)
        {
            int i = x;

            <InputText Label="Sites" @bind-Value="Place.Sites[i]" />

        }

How can i use HxInputText instead of InputText?
Thanks

Thanks for reporting this. I was able to reproduce the issue and it is fixed now. Will be part of next release.


Project name update

Project name at composer.json file must be koddr/unset_html_head_link.
https://github.com/koddr/drupal_8_unset_html_head_link/blob/master/composer.json#L2

Updated. Thanks again!


Unable to provision pages with SPFx webparts unless by the UI

Category

[ ] Question
[ ] Bug
[X] Enhancement

Expected or Desired Behavior
Be able to provision pages (Classical and Modern) with SPFx webparts without using UI.
Observed Behavior
Cannot do this at the moment
Steps to Reproduce
You cannot do this at the moment.
Thanks for your contribution! Sharing is caring.

We closed this issue as it had not activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related on the recommended location. We do apologize any inconveniences this might cause. Please do remember that issues in the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”


STORE: fix possible memory leak

If scheme is NULL, the allocated res is leaked

Meh, hold on, Travis failure is significant

New version in, should build right this time.  Re-confirm?

reconfirm

Merged. 59099d6b8a3aec77f7d9f310ebf8e31b09c2d518
Thanks!


[Bug] Get-DbaService - No services found in relevant namespaces

Report
Host used
[ X] powershell.exe
[X ] ISE
VS Code
Other (please specify)
Errors Received
Transcript started, output file is C:\Users\SOMEUSER\Documents\PowerShell_transcript.DESKTOP-4GBJ93T.YojLPlol.20201214111123.txt
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> Get-DbaService -ComputerName $env:COMPUTERNAME
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."

TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
WARNING: [11:11:31][Get-DbaService] No services found in relevant namespaces on DESKTOP-4GBJ93T. Please note that this function is available from SQL 2005 up.
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> Stop-Transcript

Steps to Reproduce

Get-DbaService $env:ComputerName on a new PS session
Repeat same command now returns zero results and warning

Expected Behavior
Services as per initial execution
Actual Behavior
WARNING: [10:41:43][Get-DbaService] No services found in relevant namespaces on SOMECOMPUTER. Please note that this
function is available from SQL 2005 up.
Environmental information
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
Please provide the output of the below script
PowerShell Version : 5.1.18362.1171
dbatools latest installed : 1.0.134
Culture of OS : en-AU
SQL Server:
us_english
Modules Active
Script     1.0.134    dbatools                            {Select-DbaObject, Set-DbatoolsConfig, Add-DbaAgDatabase, ...
Manifest   <IP_ADDRESS>    Microsoft.PowerShell.Management     {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Con...
Manifest   <IP_ADDRESS>    Microsoft.PowerShell.Utility        {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Binary     <IP_ADDRESS>    PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-Pack...
Script     <IP_ADDRESS>    PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Find-RoleCap...
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PS...

Note, $stacktrace exists as well.
$StackTrace
at Sqlcollaborative.Dbatools.Connection.ManagementConnection.GetConnectionType(ManagementConnectionType ExcludedTypes, Boolean Force) in D:\Code\Github\dbatools\bin\projects\dbatools\dbatools\Connection\ManagementConnection.cs:line 629
at CallSite.Target(Closure , CallSite , Object , Object , SwitchParameter )

Please update your issue with the relevant information requested via our template or close and open a new issue.

Transaction Details - First Execution

Windows PowerShell transcript start
Start time:<PHONE_NUMBER>1026
Username: AzureAD\SOMEUSER
RunAs User: AzureAD\SOMEUSER
Configuration Name:
Machine: DESKTOP-4GBJ93T (Microsoft Windows NT 10.0.18363.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 11520
PSVersion: 5.1.18362.1171
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.1171
BuildVersion: 10.0.18362.1171
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: <IP_ADDRESS>

Transcript started, output file is C:\Users\SOMEUSER\Documents\PowerShell_transcript.DESKTOP-4GBJ93T.0kdJNBWX.20201214111026.txt
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> Get-DbaService -ComputerName $env:COMPUTERNAME
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Provider load failure "

TerminatingError(): "Provider load failure "
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."

ComputerName : DESKTOP-4GBJ93T
ServiceName  : PowerBIReportServer
ServiceType  : SSRS
InstanceName : PBIRS
DisplayName  : Power BI Report Server
StartName    : NT SERVICE\PowerBIReportServer
State        : Stopped
StartMode    : Disabled
ComputerName : DESKTOP-4GBJ93T
ServiceName  : MsDtsServer150
ServiceType  : SSIS
InstanceName :
DisplayName  : SQL Server Integration Services 15.0
StartName    : NT Service\MsDtsServer150
State        : Running
StartMode    : Automatic
ComputerName : DESKTOP-4GBJ93T
ServiceName  : MSOLAP$SQL2019
ServiceType  : SSAS
InstanceName : SQL2019
DisplayName  : SQL Server Analysis Services (SQL2019)
StartName    : NT Service\MSOLAP$SQL2019
State        : Running
StartMode    : Automatic
ComputerName : DESKTOP-4GBJ93T
ServiceName  : MSSQL$SQL2008
ServiceType  : Engine
InstanceName : SQL2008
DisplayName  : SQL Server (SQL2008)
StartName    : LocalSystem
State        : Stopped
StartMode    : Disabled
ComputerName : DESKTOP-4GBJ93T
ServiceName  : MSSQLFDLauncher$SQL2008
ServiceType  : FullText
InstanceName : SQL2008
DisplayName  : SQL Full-text Filter Daemon Launcher (SQL2008)
StartName    : NT AUTHORITY\LOCALSERVICE
State        : Stopped
StartMode    : Manual
ComputerName : DESKTOP-4GBJ93T
ServiceName  : MSSQLSERVER
ServiceType  : Engine
InstanceName : MSSQLSERVER
DisplayName  : SQL Server (MSSQLSERVER)
StartName    : NT Service\MSSQLSERVER
State        : Running
StartMode    : Manual
ComputerName : DESKTOP-4GBJ93T
ServiceName  : MSSQLServerOLAPService
ServiceType  : SSAS
InstanceName : MSSQLSERVER
DisplayName  : SQL Server Analysis Services (MSSQLSERVER)
StartName    : LocalSystem
State        : Running
StartMode    : Automatic
ComputerName : DESKTOP-4GBJ93T
ServiceName  : SQLAgent$SQL2008
ServiceType  : Agent
InstanceName : SQL2008
DisplayName  : SQL Server Agent (SQL2008)
StartName    : LocalSystem
State        : Stopped
StartMode    : Manual
ComputerName : DESKTOP-4GBJ93T
ServiceName  : SQLBrowser
ServiceType  : Browser
InstanceName :
DisplayName  : SQL Server Browser
StartName    : NT AUTHORITY\LOCALSERVICE
State        : Running
StartMode    : Automatic
ComputerName : DESKTOP-4GBJ93T
ServiceName  : SQLSERVERAGENT
ServiceType  : Agent
InstanceName : MSSQLSERVER
DisplayName  : SQL Server Agent (MSSQLSERVER)
StartName    : NT Service\SQLSERVERAGENT
State        : Stopped
StartMode    : Manual
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> Stop-Transcript

Windows PowerShell transcript end
End time:<PHONE_NUMBER>1048

Second Execution

Windows PowerShell transcript start
Start time:<PHONE_NUMBER>1123
Username: AzureAD\SOMEUSER
RunAs User: AzureAD\SOMEUSER
Configuration Name:
Machine: DESKTOP-4GBJ93T (Microsoft Windows NT 10.0.18363.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 11520
PSVersion: 5.1.18362.1171
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.1171
BuildVersion: 10.0.18362.1171
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: <IP_ADDRESS>

Transcript started, output file is C:\Users\SOMEUSER\Documents\PowerShell_transcript.DESKTOP-4GBJ93T.YojLPlol.20201214111123.txt
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> Get-DbaService -ComputerName $env:COMPUTERNAME
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."

TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
TerminatingError(): "Multiple protocol connections were attempted, but no successful connections could be established with the specified computer."
WARNING: [11:11:31][Get-DbaService] No services found in relevant namespaces on DESKTOP-4GBJ93T. Please note that this function is available from SQL 2005 up.
PS C:\Users\SOMEUSER\OneDrive\Documents\Clients\PowerShell\dbatools-master> Stop-Transcript

Windows PowerShell transcript end
End time:<PHONE_NUMBER>1134

Problem is due to the ComputerManagement10 (SQL2008) namespace, uninstalling SQL 2008 resolves the problem.
Below output before removing the ComputerManagement10 namespace.
Note that the second attempts fails to report any  DCOM connection type within Get-DbaCmObject.
Verbose on first attempt:
VERBOSE: [14:35:05][Resolve-DbaNetworkName] Resolving DESKTOP-4GBJ93T using .NET.Dns GetHostEntry
VERBOSE: [14:35:05][Resolve-DbaNetworkName] Resolving <IP_ADDRESS> using .NET.Dns GetHostByAddress
VERBOSE: [14:35:09][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:09][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:10][Resolve-DbaNetworkName] Resolving DESKTOP-4GBJ93T using .NET.Dns GetHostEntry
VERBOSE: [14:35:10][Get-DbaService] Getting SQL Reporting Server services on DESKTOP-4GBJ93T
VERBOSE: [14:35:10][Get-DbaReportingService] Getting Reporting Server namespace on DESKTOP-4GBJ93T
VERBOSE: [14:35:10][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:10][Get-DbaReportingService] Getting version from the namespace RS_PBIRS on DESKTOP-4GBJ93T.
VERBOSE: [14:35:10][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:10][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:10][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:10][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:11][Get-DbaService] Getting SQL Server namespace on DESKTOP-4GBJ93T
VERBOSE: [14:35:11][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:11][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement15 on DESKTOP-4GBJ93T.
VERBOSE: [14:35:11][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:11][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement14 on DESKTOP-4GBJ93T.
VERBOSE: [14:35:11][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Failed
VERBOSE: [14:35:11][Get-DbaService] Failed to acquire services from namespace ComputerManagement14. | Provider load
failure
VERBOSE: [14:35:11][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement10 on DESKTOP-4GBJ93T.
VERBOSE: [14:35:11][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:35:12][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:35:12][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM
VERBOSE: [14:35:14][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Failed
VERBOSE: [14:35:14][Get-DbaService] Failed to acquire services from namespace ComputerManagement10. | Multiple protocol
connections were attempted, but no successful connections could be established with the specified computer.
Second attempt
VERBOSE: [14:33:51][Resolve-DbaNetworkName] Resolving DESKTOP-4GBJ93T using .NET.Dns GetHostEntry
VERBOSE: [14:33:51][Resolve-DbaNetworkName] Resolving <IP_ADDRESS> using .NET.Dns GetHostByAddress
VERBOSE: [14:33:56][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:33:56][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:33:56][Resolve-DbaNetworkName] Unable to get domain name from DESKTOP-4GBJ93T
VERBOSE: [14:33:56][Resolve-DbaNetworkName] Resolving DESKTOP-4GBJ93T using .NET.Dns GetHostEntry
VERBOSE: [14:33:56][Get-DbaService] Getting SQL Reporting Server services on DESKTOP-4GBJ93T
VERBOSE: [14:33:56][Get-DbaReportingService] Getting Reporting Server namespace on DESKTOP-4GBJ93T
VERBOSE: [14:33:56][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:33:56][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
VERBOSE: [14:33:56][Get-DbaReportingService] No SQLServer\ReportServer Namespace on DESKTOP-4GBJ93T. Please note that
this function is available from SQL 2005 up.
VERBOSE: [14:33:56][Get-DbaService] Getting SQL Server namespace on DESKTOP-4GBJ93T
VERBOSE: [14:33:56][Get-DbaCmObject] Configuration loaded | Cache disabled: True
VERBOSE: [14:33:56][Get-DbaCmObject] [desktop-4gbj93t] Retrieving Management Information
WARNING: [14:33:56][Get-DbaService] No services found in relevant namespaces on DESKTOP-4GBJ93T. Please note that this
function is available from SQL 2005 up.

What versions of SQL Server tools were installed on the target machine?

What versions of SQL Server tools were installed on the target machine?

Actually its 1.0.135.
I've resolved the problem by temporary removing the local SQL 2008 instance (Dev Machine), it throws an exception when the SQL 2008 namespace exists but still outputs the table, second attempt to the method will fail completely.
Installing SQL 2008 and SQL 2019 instance should throw up the same issue.

sql server data tools 16.0.62010.06180

I think the problem is about disabling a protocol after a failure:
VERBOSE: [14:35:11][Get-DbaService] Getting SQL Server namespace on DESKTOP-4GBJ93T
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:11][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement15 on DESKTOP-4GBJ93T.
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Success
VERBOSE: [14:35:11][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement14 on DESKTOP-4GBJ93T.
VERBOSE: [14:35:11][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Failed
VERBOSE: [14:35:11][Get-DbaService] Failed to acquire services from namespace ComputerManagement14. | Provider load
failure
VERBOSE: [14:35:11][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement10 on DESKTOP-4GBJ93T.
VERBOSE: [14:35:14][Get-DbaCmObject] [desktop-4gbj93t] Accessing computer using Cim over DCOM - Failed
VERBOSE: [14:35:14][Get-DbaService] Failed to acquire services from namespace ComputerManagement10. | Multiple protocol
connections were attempted, but no successful connections could be established with the specified computer
So I think the root cause is that getting ComputerManagement14 failed. Getting ComputerManagement15 was ok, but ComputerManagement14 and ComputerManagement10 failed. After you uninstalled SQL Server 2008 (ComputerManagement10) there was only one failure which did not disable the protocol.
It looks like ComputerManagement14 is failing because there are no SQL Server 2017 instances installed.
Ok, wild guesses - will try to setup this in my lab.
@RonniePitts Are you still able to reproduce this? Then we can work on this together.

I added a verbose message to show which services were found in which namespace. All services are found in the highest namespace, the lower namespaces only report services with version equal or lower that the version of the namespace.
So I think it is totally useless to collect information from all namespaces.
I will introduce a hidden config to change this behavior so we can test this in the field.

SSCM when multiple versions will only work generally using the highest version.
I don't think a hidden config is needed, it is waste of processing to go through every version found when we could pick the highest version and use it to query the machine, I would think.

OK, thanks for the quick response. PR is nearly finished, so I will remove the config now.

I had a SQL Server 2017 and 2019 installed, so I have namespaces 15 and 14. But I removed the instances and only have SQL Server 2016 and 2014 left on the maschine. That is the verbose output based on by pull request:
PS C:\Git\dbatools> Get-DbaService -ComputerName SRV1 -Verbose | ft
VERBOSE: [18:24:03][Resolve-DbaNetworkName] Resolving SRV1 using .NET.Dns GetHostEntry
VERBOSE: [18:24:03][Resolve-DbaNetworkName] Resolving <IP_ADDRESS> using .NET.Dns GetHostByAddress
VERBOSE: [18:24:03][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [18:24:03][Get-DbaCmObject] [srv1] Retrieving Management Information
VERBOSE: [18:24:03][Get-DbaCmObject] [srv1] Accessing computer using Cim over WinRM
VERBOSE: [18:24:04][Get-DbaCmObject] [srv1] Accessing computer using Cim over WinRM - Success
VERBOSE: [18:24:05][Resolve-DbaNetworkName] Resolving SRV1.Company.Pri using .NET.Dns GetHostEntry
VERBOSE: [18:24:05][Get-DbaService] Getting SQL Reporting Server services on SRV1.Company.Pri
VERBOSE: [18:24:05][Get-DbaReportingService] Getting Reporting Server namespace on SRV1.Company.Pri
VERBOSE: [18:24:05][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [18:24:05][Get-DbaCmObject] [srv1.company.pri] Retrieving Management Information
VERBOSE: [18:24:05][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM - Failed
VERBOSE: [18:24:06][Get-DbaReportingService] No SQLServer\ReportServer Namespace on SRV1.Company.Pri. Please note that this function is available from SQL 2005 up.
VERBOSE: [18:24:06][Get-DbaService] Getting SQL Server namespaces on SRV1.Company.Pri
VERBOSE: [18:24:06][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Retrieving Management Information
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM - Success
VERBOSE: [18:24:06][Get-DbaService] The following namespaces have been found: ComputerManagement15, ComputerManagement14, ComputerManagement13, ComputerManagement12.
VERBOSE: [18:24:06][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement15 on SRV1.Company.Pri.
VERBOSE: [18:24:06][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Retrieving Management Information
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM - Failed
VERBOSE: [18:24:06][Get-DbaService] Failed to acquire services from namespace ComputerManagement15. | The WS-Management service cannot process the request. The WMI service or the WMI provider returned an unknown error: HRESULT 0x80041013
VERBOSE: [18:24:06][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement14 on SRV1.Company.Pri.
VERBOSE: [18:24:06][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Retrieving Management Information
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM - Failed
VERBOSE: [18:24:06][Get-DbaService] Failed to acquire services from namespace ComputerManagement14. | The WS-Management service cannot process the request. The WMI service or the WMI provider returned an unknown error: HRESULT 0x80041013
VERBOSE: [18:24:06][Get-DbaService] Getting Cim class SqlService in Namespace ComputerManagement13 on SRV1.Company.Pri.
VERBOSE: [18:24:06][Get-DbaCmObject] Configuration loaded | Cache disabled: False
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Retrieving Management Information
VERBOSE: [18:24:06][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM
VERBOSE: [18:24:07][Get-DbaCmObject] [srv1.company.pri] Accessing computer using Cim over WinRM - Success
VERBOSE: [18:24:07][Get-DbaService] Found service MSSQL$SQL2014 in namespace ComputerManagement13.
VERBOSE: [18:24:07][Get-DbaService] Found service MSSQL$SQL2016 in namespace ComputerManagement13.
VERBOSE: [18:24:07][Get-DbaService] Found service SQLAgent$SQL2014 in namespace ComputerManagement13.
VERBOSE: [18:24:07][Get-DbaService] Found service SQLAgent$SQL2016 in namespace ComputerManagement13.
VERBOSE: [18:24:07][Get-DbaService] Found service SQLBrowser in namespace ComputerManagement13.
ComputerName ServiceName      ServiceType InstanceName DisplayName                StartName                 State   StartMode

SRV1         MSSQL$SQL2014    Engine      SQL2014      SQL Server (SQL2014)       COMPANY\SQLServer         Running Automatic
SRV1         MSSQL$SQL2016    Engine      SQL2016      SQL Server (SQL2016)       COMPANY\SQLServer         Running Automatic
SRV1         SQLAgent$SQL2014 Agent       SQL2014      SQL Server Agent (SQL2014) COMPANY\SQLServer         Running Automatic
SRV1         SQLAgent$SQL2016 Agent       SQL2016      SQL Server Agent (SQL2016) COMPANY\SQLServer         Running Automatic
SRV1         SQLBrowser       Browser                  SQL Server Browser         NT AUTHORITY\LOCALSERVICE Running Automatic
So I think it works ok, will open the pull request.


[BUG] Create guest networks, network types displayed as labels

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to Networks
Click on Create Guest networks

Expected behavior
We see labels instead of Network types
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Same as shared, isolated and L2 should not be displayed with labels

Further down there seems to be more labels to be fixed

We've a general code-base wide PR for fixing the translation keys @borisstoyanov - I'll ask you to retest after those PRs are merged. Thanks.

Fixed on latest


Section entry bugs

This is very high priority!

From #159, @Jonri2 noticed that: "After testing a bit, I did uncover a fairly major issue. A section is no longer able to update or be added if the section letter is changed. So, if I open an existing section and change the letter to something new, then click on either "Update Section" or "Add New Section," nothing happens." Turns out this is in develop as well. After a bit of debugging, the issue is that the updated section letter isn't even sent to addSectionToSchedule().
Making a non-teaching load with multiple teachers makes a new row in the table, like:

If you enter a new prefix, and you don't press enter, it creates undefined values (validation no longer ensures there is a prefix):

(Related to number 3, removing all instructors from a course, removes it from the room schedule even though it should still appear there, correct?)

2 and 3 were definitely caused by #162. The validation should be an easy fix. I accidentally put .required() inside of the array() instead of outside

2 and 3 were definitely caused by #162. The validation should be an easy fix. I accidentally put .required() inside of the array() instead of outside

Yeah, that one seems easy (the error message also needed to be added to the griditemautocomplete)


feat(scanner): add '--packages-depth' parameter.

Sometimes we don't want to audit the whole dependencies of a project but only those declared in the project's package manager files.
To do this, I add a new parameter to the scanner to manage the depth in the dependency tree to scan.

We may consider to add a helper command to strip out dependencies for a given depth from an analyzer result as an alternative for supporting this use case. (That would not add complexity to the scanner)

Thank for the contribution @fb33!
A basic issue I see with the implementation is related to ORT's transparency about what has been scanned: When only looking at the ORT scan result, how do you know whether only a subset of the packages have been scanned vs. really only the listed findings were present?
What I'm trying to say is: We need a way to record as part of the ORT result / in the scan result that only a subset (and which subset) of packages has been scanned. This could probably be solved as easily as adding the used depth (if != -1) to the scan result.
But thinking further, if only scanning of e.g. direct dependencies is desired, should we also limit analysis to the configured depth already? That would automatically limit the scanning to those packages. Related issues: https://github.com/oss-review-toolkit/ort/issues/2293, https://github.com/oss-review-toolkit/ort/issues/5626, https://github.com/oss-review-toolkit/ort/issues/8361

This pull request was discussed in the ORT community meeting of March 21st, 2024.
The people attending can see the usefulness of this feature as:

Limiting the result saves work and enable user to gradually improve their compliance over time e.g. first up to level 1 then 3, 6 etc.
Don't want to do a full depth scan when open-sourcing code - you only care about first-level
Limiting the scan will give user faster results which may be useful within running ORT in pull requests

However there are various concerns:

Legally the depth of what is scanned is irrelevant. If OSS is included you have to respect its licenses
End-to-end traceability, how can we make it visible in reports that not a full scan was done. We should implement a way to make ORT configurations visible.
Maintainability of the pull request
Should we instead of CLI parameter implement this within config.yml

Question is if we should protect users against themselves? Given other options in ORT our believe we should not.


AVR: Step loss with high acceleration

Check example Issue152

As I do not plan to dive into the root cause for a mere 3000 Steps/s higher step rate, I just reduce the max speed to 73kSteps/s.


"not all selected columns are made of aggregates, despite group_by or similar"

 auto sql = sqlpp::select(orders.orderId, orders.momoId, sqlpp::sum(account_frozen.orderId).as(left_num))
            .from(orders.join(account_frozen)
            .on(orders.orderId == account_frozen.orderId))
            .group_by(account_frozen.orderId)
            .having(orders.momoId == "412448059");

    auto result = conn_->run(sql);

When i try to compile this, it will raise an error, like below
/usr/local/include/sqlpp11/portable_static_assert.h:41:7: note: expanded from macro 'SQLPP_PORTABLE_STATIC_ASSERT'
      static_assert(wrong_t<T...>::value, message); \
      ^             ~~~~~~~~~~~~~~~~~~~~
/usr/local/include/sqlpp11/statement.h:240:7: note: in instantiation of function template specialization 'sqlpp::assert_no_unknown_aggregates_t::assert_no_unknown_aggregates_t<>' requested here
      _run_check{};  // FIXME: Dispatch?
      ^
/usr/local/include/sqlpp11/mysql/connection.h:250:18: note: in instantiation of function template specialization 'sqlpp::statement_t<void, sqlpp::no_with_t, sqlpp::select_t, sqlpp::no_select_flag_list_t, sqlpp::select_column_list_t<void, sqlpp::column_t<momo::Orders, momo::Orders_::OrderId>, sqlpp::column_t<momo::Orders, momo::Orders_::MomoId>, sqlpp::expression_alias_t<sqlpp::sum_t<sqlpp::noop, sqlpp::column_t<momo::AccountFrozen, momo::AccountFrozen_::OrderId> >, left_num_t> >, sqlpp::from_t<void, sqlpp::join_t<sqlpp::pre_join_t<sqlpp::inner_join_t, momo::Orders, momo::AccountFrozen>, sqlpp::on_t<sqlpp::binary_expression_t<sqlpp::column_t<momo::Orders, momo::Orders_::OrderId>, sqlpp::op::equal_to, sqlpp::column_t<momo::AccountFrozen, momo::AccountFrozen_::OrderId> > > > >, sqlpp::no_where_t<true>, sqlpp::group_by_t<void, sqlpp::column_t<momo::AccountFrozen, momo::AccountFrozen_::OrderId> >, sqlpp::having_t<void, sqlpp::binary_expression_t<sqlpp::column_t<momo::Orders, momo::Orders_::MomoId>, sqlpp::op::equal_to, sqlpp::text_operand> >, sqlpp::no_order_by_t, sqlpp::no_limit_t, sqlpp::no_offset_t, sqlpp::no_union_t, sqlpp::no_for_update_t>::_run<sqlpp::mysql::connection>' requested here
        return t._run(*this);

How do i resolve this error?

results are not grouped by orders.momoId, and it is not used with an aggregate function like sum.
You should not use that in having and you should not select it (some databases allow it, but it does not make sense and in most cases leads to undefined results.
In this particular case, since you already know the value of momoId, there is no need to select it, and you can move the having condition into the where clause.

Sorry ,That's my fault. When I got this error,I found the same issue, the answer says the group by column is wrong, so I tried to change the column to fix the error, but still failed, I test the sql on mysql database, it works, but when i use sqlpp it will raise error just like i said, I'll upload the sql later. Thanks for your work, and this library is awesome.

Thanks!
Looking forward to a "correct" wrong example then :-)

I run sql SELECT orders.orderId, orders.momoId, SUM(account_frozen.orderId) as left_num FROM orders LEFT JOIN account_frozen ON orders.orderId = account_frozen.orderId GROUP BY orderId with Navicat it's work fine.
But why it raise compile error when I transfer to sqlpp with c plus puls
SQLPP_ALIAS_PROVIDER(left_num);
auto sql = sqlpp::select(orders.orderId, orders.momoId, sqlpp::sum(account_frozen.orderId).as(left_num))
            .from(orders.join(account_frozen)
            .on(orders.orderId == account_frozen.orderId))
            .group_by(orders..orderId);

and I want to know is there have any function just like IFNULL in sql. Thank for your help.

orders.momoId is an undefined value. It could be any within the group. Some database engines accept this kind of query, but some don't.
You can "repair" this by saying min(orders.momoId). This is defined and should be accepted by the library and every database.
There is no IFNULL, but a CASE statement, for instance:
sqlpp::case_when(t.alpha.is_null()).then(0).else_(t.alpha).as(t.alpha)

Personally, I would try to avoid this in the SQL code.

OK, thanks, I'll try this later, maybe I should find an another solution for IFNULL. Thanks for your help.


TypeError: Cannot read properties of undefined (reading 'slice')

Please include some context and the contents of the console in your browser's developer tools.
JavaScript Error
TypeError: Cannot read properties of undefined (reading 'slice')
    at parseKey (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:45034)
    at e.value (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:45661)
    at e.value (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:44927)
    at e.value (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:44749)
    at e.value (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:43733)
    at e.value (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:43379)
    at m.value (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:33335)
    at t.format (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:105466)
    at Ic (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:175:108148)
    at Ef (http://<IP_ADDRESS>:8000/storeTrueFalse/1/1:170:186645)

Reproduction Steps
Please tell us what you were doing when this error occurred, so we can more easily debug it and find a solution.

…

User Agent
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36

Thanks! This seems to be a duplicate of another issue on this repo. I'll close this issue for now and we'll continue this discussion there.


Gradle / Maven Coordinates

With gradle i get the following build error:
Could not find com.badlogicgames.gdxvideo:gdx-video:0.0.1.
Searched in the following locations:
    https://repo1.maven.org/maven2/com/badlogicgames/gdxvideo/gdx-video/0.0.1/gdx-video-0.0.1.pom
    https://repo1.maven.org/maven2/com/badlogicgames/gdxvideo/gdx-video/0.0.1/gdx-video-0.0.1.jar

Why this JARs arent available in Maven Central anymore?

@RBogie Can anyone fix this issue, please?

Personally I can't add jars to maven central. This would probably be something for @Tom-Ski

@RBogie If this is the only problem, i can publish them to maven central.
But the native files are currently missing, that's the real problem.

And can you update to newest libGDX version, pls?

Fixed with ce4049660833c387728d7dcd5bf79418f2c585a9


Handle open cursor electro fence

[X] Brief description of changes applied
I modified the check to see if there are events to use try-with-resources.
Why?
The stream method in MongoDbTemplate can contain an open cursors to the database. The stream, if not properly closed, can lead to leaks of resources (leaving the cursor open).  Under sustained high authentication load, and with all 4 RiskCalculator implementations enabled, this can cause the db to run out of open cursors blocking until the db eventually cleans them up.
[X] Test cases for all modified changes, where applicable
I didn't keep the test case I wrote showing this is possible, but if you checkout https://github.com/dmalia1/cas/commit/42bb6e5ed2399f5428c264bbc3cffcf04d721ad8, and run the mongodb tests, you will see the test failing.  There is also a successful test doing something that causes the closable interface to trigger the close method. (iterate through all results).  The failing test just calls stream().findAny(), which doesn't iterate through all the results, and just returns the first thing encountered.  The stream fails to get closed.   This commit https://github.com/dmalia1/cas/commit/133be4b2d42174d8f62a5cbfdc0455fcacf407cb shows the test successfully executing.   I chose to not keep the unit tests because the actual code change is in the electrofence package.  That said it does demonstrate the cursors leaking.

I created a different failing test in the cas-sserver-support-electrofence package that was kept. https://github.com/dmalia1/cas/commit/77b02b4dcc9927bcc36e463815a5878b78d2506a This test creates a 'ClosableIterator' instance to simulate getting a stream from a CasEventRepository instance.  It makes a call to 'collect' everything in the iterator to show that the iterator gets closed, then it calls the 'BaseAuthenticationRequestCalculator.doesNotHaveEvents()' method to check if there are events.  The test fails because the 'close' method on the ClosableIterator doesn't get called.  I then updated the doesNotHaveEvents method to make use of try-with-resources to ensure the iterator is closed, and thus causing the test to pass.

[X] Any documentation on how to configure, test
To view the mongodb cursors getting left open in general, you can check out this commit https://github.com/dmalia1/cas/commit/42bb6e5ed2399f5428c264bbc3cffcf04d721ad8 and run "testcas.sh --category mongodb"

To view BaseAuthenticationRequestRiskCalculator having the same issue, checkout out https://github.com/dmalia1/cas/commit/77b02b4dcc9927bcc36e463815a5878b78d2506a and run "testcas.sh --category authentication"  To verify the test is working checkout https://github.com/dmalia1/cas/tree/handleOpenCursorElectroFence and run "testcas.sh --category authentication"

[X] Any possible limitations, side effects, etc
There shouldn't really be any side effects with this implementation.

A limitation is nothing is preventing a data resource leakage like this from occurring again.  Its best practice to 'close' streams that make use of I/O resources to prevent resource leakage, and a lot of places in the code assume the stream is getting closed, but may not be if the entire stream is not processed e.g. stream.findFirst() may also cause this issue.  The MongoDB implementation could mitigate risk by overriding the DefaultCasMongoDbTemplate.doStream method to collect the stream into a Collection, then return a stream of the collection.  The HibernateJPA implementation may have a similar issue as the MongoDB implementation, just based off of the documentation at https://docs.jboss.org/hibernate/orm/6.1/javadocs/org/hibernate/query/Query.html#stream().  I do understand there may be performance reasons for not collecting it all at once.

Thanks much for the test. I can see how this would be a problem. We'll need to rework this area.

The MongoDB implementation could mitigate risk by overriding the DefaultCasMongoDbTemplate.doStream method to collect the stream into a Collection, then return a stream of the collection.

No, this can never happen. This defeats the purpose of dealing with a stream.

I set aside some time to review this, and I think the best and most practical approach here would be to not use streams. The original goal of using a stream was to assist with performance with super large datasets, but I don't think that holds anymore in this particular case. The records that are processed by a given calculator are scoped to a particular user, event type and only go back a certain number of days in history. The possibility that a given userid has logged on thousands of times in the past 30/60 days is not too realistic. Ironically, the existing code does perform worse in certain cases because (irrespective of stream's resource handling) the stream supplier has to renew the stream multiple times to allow it to be reused in subsequent operations performed by the calculator, which means multiple calls to the underlying database. So in summary, good intentions for a start, but definitely not sustainable.
So I think this should just be reworked to use a normal collection API. We get a stream, terminate it immediately and turn it into a List, and then we use that List everywhere. Should we ever run into a scenario where that List causes OOM with millions and millions of records, we can deal with it then. I'll run some experiments here to report back.

I do think if someone configured it to check say the past year, rather than the past 30 days, then maybe the result set would get too large., though maybe data for analysis should be aggregated on the underlying datastore during the 'query', rather than in the application code for something like that, which would reduce the need for streaming.

I do think if someone configured it to check say the past year, rather than the past 30 days, then maybe the result set would get too large.

Possibly, yes, but that would be somewhat unlikely in practice. If the same user logs on 5 times a day, every day that would still be less than 2000 attempts for a whole year and that is very manageable. Higher churn than that likely will either require custom code in CAS or the app. In my experience, most deployments/org would try to do everything in their power to not lose user sessions, and keep those for a long as possible. So that number is likely smaller than what I project it to be. I would guesstimate that anything below 5000 should still be reasonable.
Querying itself is usually not a problem; it's the transformation by the ORM layer that can take some time. I can see how that might be problematic with JPA and blobs (which I don't think we use anymore) but at least with Mongo, this should not present an issue.


vm: pretty-print remaining opcodes

There are a few opcodes which have parameter but are not yet pretty-printed. Fix this.

Looks nice:
528      LDLOC          10 (0a)
530      CONVERT        Integer (21)
532      STLOC          9 (09)
534      LDLOC          9 (09)
536      LDLOC          8 (08)
538      LT
539      JMPIFNOT_L     575 (36/24000000)
544      PUSHDATA1      696e73756666696369656e742066756e6473 ("insufficient funds")
564      SYSCALL        System.Runtime.Log (cfe74796)

I haven't implemented maps from id-to-name and reverse, because FromID is used only in PrintOps(). Not hard to add though.


Fix the Y2K bug

Dates that includes years are displayd as "1xx" instead of "20xx". (E.g. "115" instead of "2015")

The simplest fix would be to keep the format with two digits for the year since there are many places that are formatted for having a date string with six characters (like "921224"). Todays date would be "150803". Any strong opinions about this?
Fabbes BBS has a patch which is not included in this source code where dates are written as "2015-08-03". This does create some formatting problems here and there. Look e.g. at "Lista Brev".

ISO 8601 demands four digits for the year, and this is maybe more easy to read, but I don't see any real problem with two digit years. At least not before year 2095. :)

Then let's do that as the fix for now. At least it's going to be correct.
If someone wants to improve how dates are displayed it can be done later.
 :-)

It turned out to be a little bit of both. In some places where formatting width was not important it will print the year with four digits.


follow command broken

Hey, the follow command isn't really working for me, and it's creating error messages.
Errors: http://www.bilder-upload.eu/show.php?file=71498a-1484084710.png
Debug(isn't catching the error) http://one.denizenscript.com/paste/38895

What version of Spigot?

Spigot 1.8 ,but in some earlier builds of denizen the command worked fine.

I imagine it's just an incompatibility between modern modulized Denizen setup and old Citizens.

despawn cmd module errors:
http://www.bilder-upload.eu/show.php?file=638d8c-1484096993.png

May not exist anymore.


Write extension documentation

These are such things as Wazuh, ELK, Cortex Responders and other INBOUND integrations we have.

Started writing it here: https://shuffler.io/docs/extensions


does't work

Install OK
Buttons OK
See Title
can't control Sonos box
as i See Title of Song, so I think I right insert the right IP ADRESS
Any other Software needed?
German System

No - no other Button works. After Push, i get the yellow triangle with "!" shows on the Button

I'm getting the same issue when trying to adjust the volume.
I confirmed that the IP address is correct for the speaker I want to control. Is there anything that needs to be enabled to receive network commands?

Had to kill the streamdeck process on Windows and restart the app. Then it worked. Latest Sonos software/firmware. StreamDeck 5.2.1.x

Thanks @keesschollaart81!  Closing and restarting StreamDeck also did the trick for me on OSX

I think it is SUPER IMPORTANT that you explain that this plug-in only works for Sonos version TWO systems and does not work for Sonos version ONE systems. I have a Sonos v1 system, and this plug-in is less than useless since it does not work. The REST API changed between Sonos v1 and v2, and so anyone that has an older Sonos v1 system will be sad if they try to use this plug-in.

i have both sonos s1 and s2 - doesn't seem to work for any of them?

I have a Sonos v1 system due to mixed older and newer hardware and confirmed it doesn't work. I also have paired speakers in certain rooms, each with their own IP address. It would be ideal if this plugin could talk to the Sonos app on my PC and/or work with V1 systems as I guess it's useless as is.


add attribute change callback hook for speaker endpoint

Problem

#16942: Speaker endpoint attribute callbacks not working on tv-app

Change overview

Add MatterPostAttributeChangeCallback so that onOff and level attribute changes get routed to tv-app
Add af_get_event.h magic so that tick callbacks work

Testing

tested using chip-tool commands against tv-app

Fast tracking platform changes.


data.generate_goldens throw TypeError: Synthesizer.generate_goldens() got an unexpected keyword argument 'enable_breadth_evolve'

❗BEFORE YOU BEGIN❗
Are you on discord? 🤗 We'd love to have you asking questions on discord instead: https://discord.com/invite/a3K9c8GRGt
Describe the bug
When i run dataset.generate_goldens() follow document i got error
TypeError: Synthesizer.generate_goldens() got an unexpected keyword argument 'enable_breadth_evolve'
If i investigate deepeval code. Dataset.generate_goldens pass  enable_breadth_evolve which is not a keyword of Synthesizer
To Reproduce
Steps to reproduce the behavior:
SImply Run dataset.generate_goldens() you got error.
TypeError: Synthesizer.generate_goldens() got an unexpected keyword argument 'enable_breadth_evolve'
Expected behavior
No error.
Screenshots

Desktop (please complete the following information):

OS: OSX
Browser chrome
Version 126

Additional context
deepeval  version: 0.21.68

@gring2 I believe it is fixed in the newest version v0.21.74, can you let me know if you're still running into errors? Thanks!

@gring2 I believe it is fixed in the newest version v0.21.74, can you let me know if you're still running into errors? Thanks!

I checked it is fixed. Thank you for your work


[Wait for #1693] [tp] Implement reidentifySource()

[Pending commit: #1693]
Commits to be reviewed in this PR
[tp] Implement reidentifySource()
This patch implements reidentifySource(). Test will be followed
Self evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1694. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.


docs: add bus-odd arch discussion summary

add bus odd arch discussion summary for planning/control/vehicle as of today.
This will be updated through discussion.

The CI failure is from the document that was not modified in the PR. I will merge this and the CI should be fixed with another PR.


Style Code of Conduct page, update error svg

Updated copy to match figma

Changed the headings, px's, and updated for mobile.


Add Mockup manage beatmap page

Close #79
Hello, I add Mockup manage beatmap page. Please check and review it.
Thank you!!!

I see from CodeFactor website and it's no issue. Let's merge it!


npm express package required for zac

I'm not sure if this is a Mac specific thing but when I had first run the command to start up the ZAC server, I was presented with a failure that explained the express package was required.
After a simple npm install express and retrying to start ZAC everything worked.
We should verify if this is a widespread issue or just a local issue in this one case. If it's a widespread issue then update the doc to explain that this package is needed. Or maybe just add a blurb that it's needed and might not be installed and show how to install it.

This is handled by the npm install command in the ZAC quickstart.
https://openziti.github.io/search/?q=zac


v2.6.1

The 2.6.1 release contains the following new features:

Support for CayenneLPP payload formats (needs DB migration)

API Changes:

Payload fields and events are now also published to AMQP

Other changes:

Moved (memory) debugging and profiling to non-production builds
Allow uplink-only streams in router client
Fixed memory alignment and other issues for 32 bit machines

Coverage increased (+0.5%) to 74.389% when pulling bc3de386e8b3d34aac54faf307510043f9a63b8d on develop into 1be93d7e9a3db93d2c55ed92934756d05f115801 on master.

Whoop whoop


feat: replaced seaborn with matplotlib for correlation_heatmap

Closes #800
Summary of Changes
Removed seaborn with matplotlib for correlation_heatmap.
Matplotlib returns a slightly different plot, so we also replaced the snapshot image.
But seaborn still remains as a dependency, because box_plots is still using seaborn, see issue #849 .

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

v0.27.0
GitHub release

Your semantic-release bot :package::rocket:


[Accessibility][Name, Role, Value - Create Node]: Role of Paste button is not correct in add node section.

User Experience
Users who rely on AT will might get confused if the controls available in the same menu item have different roles.
Test Environment
Browser: Microsoft Edge Canary Version: 82.0.425.0 (Official build)
OS build: 2004 (19564.1005)
Screen Reader: Narrator
URL: Bot Framework Composer
Prerequisite Here
Repro Steps:

Open the above mentioned URL in EDGE and set the zoom at 400%.
Select 'Design Flow' from left navigation.
Now, navigate to the flow chart.
Navigate to "+" button and activate it.
Navigate to 'Paste' available in the list and observe the issue.

Actual:
The narrator narrate the role of 'Paste' as button where as all the other option's are having role of menu item. The narrator narrates 2nd element i.e. 'Send a respond' as menu item 2 of 8.
Expected:
The role of 'Paste' should be same as other's. The role of 'Paste' should be menu item and narrator should narrates as 'Paste' menu item 1 of 8.
MAS Impacted: MAS4.1.2
Attachment:
MAS4.1.2_Role of paste button.zip

.png uploaded for ease of access, but note that there is also a video in the .zip

addressed in https://github.com/microsoft/BotFramework-Composer/pull/2126

As cross-checked the issue is fixed in master version so we are good to close the issue.


Analyzer fails initializing_formal_final_test

I'm having difficulty pinning down whether this is still latest spec behavior, and what the rationale for it was. ~Given that neither the analyzer nor CFE pass this test, it seems like maybe it should be removed?~
edit: the analyzer is incorrect here, and this test is valid. Keeping issue open for us to make a fix.
class A {
  var x, y;
  // This should cause an error because `x` is final when accessed as an
  // initializing formal.
  A(this.x)
      : y = (() {
          /*@compile-error=unspecified*/ x = 3;
        });
}

From the spec:

Initializing formals constitute an exception to the rule that every formal parameter introduces a local variable into the formal parameter scope (\ref{formalParameters}).
When the formal parameter list of a non-redirecting generative constructor contains any initializing formals, a new scope is introduced, the {\em formal parameter initializer scope}, which is the current scope of the initializer list of the constructor, and which is enclosed in the scope where the constructor is declared.

There are no other references to "formal parameter initializer scope," and the section on initializer lists doesn't reference scopes at all, but rather magically talks about:

For each such declaration $d$, if $d$ has the form \code{$finalConstVarOrType$ $v$ = $e$; }
then $e$ is evaluated to an object $o$
and the instance variable $v$ of $i$ is bound to $o$.

where some scope of evaluation is assumed but not expressed. Similarly, the "formalParameters" section doesn't mention anything either.
I get the feeling, best I can make of this, that the test is correct. However, I'm not confident there, and I'm suspicious of the value that this complexity in the spec adds.

I think this test is consistent with the resolution of https://github.com/dart-lang/sdk/issues/26655 .
My testing shows the CFE passing this test, but the analyzer failing it.  Both implementations pass  a simpler version where the initializer list is y = (x = 3).
cc @eernstg @lrhn to check me on my interpretation of #26655

The spec excerpt

Initializing formals constitute ... is declared.

specifies the current scope for the initializer list of a constructor with initializing formal parameters. Any expressions in the initializer list are resolved according to the current scope, and there is no need to mention at each point where an expression is considered which scope is current. That approach is used everywhere; e.g., when considering the meaning of an expression in the body of a function we're implicitly using the fact that its current scope (unless nested in something like function literal etc.) is the body scope of the function.
So x is treated like a final local variable here: It is in scope, but it only admits read access. Hence it is an error to have x = 3 in the body of the function literal in the example, as expected by the test.

.. if $d$ has the form \code{$finalConstVarOrType$ $v$ = $e$; }

This one is about initialization of instance variables whose declaration includes an initializing expression, so that's completely separate from the semantics of initializer lists. In that case the current scope is the instance scope of the class, and there is a special rule which makes it a compile-time error to reference this in such an initializing expression:
It is a compile-time error if \THIS{} appears, implicitly or explicitly, in ...
the initializer of an instance variable.

So you could say that the current scope for $e$ is "the instance scope minus this".
You could claim that we should be more forgiving in the body of a function literal which is statically guaranteed to not run before initialization list evaluation has completed (which makes it similar to expressions in the constructor body, or indeed the body of any instance member), which would mean that it wouldn't hurt to allow such a function literal body to access this, even though it occurs in an initializer list. But I don't think it's worth the trouble, developers could just move it out and make it a private instance member, and then they can freely use this in the body: y = _auxMethod.
It's possible that we can make the specification of scoping simpler and more readable, but I think the current approach is at least reasonable: Scopes are specified for each syntactic location where a term  occurs for which one or more names may be looked up (e.g., all locations where an expression can occur), and the semantics of all such terms will never talk about scoping unless they introduce a new scope, they always just rely on looking up names in the 'current' scope.
For lookups, it's enough to know that we have a scope which is current for a certain location, it introduces a certain set of bindings (statically, and the dynamic semantics just needs to make it work as if we had all those scopes and looked up names lexically), and it has another specific scope as its enclosing scope. We mention each situation where a new scope is introduced, otherwise we just use the rule that when t' is a subterm of t and t doesn't introduce a new scope, t' has the same current scope as t.
@MichaelRFairhurst, does that make it more meaningful?

@eernstg Thanks, that does help!
@leafpetersen you're right, the CFE does pass this. Not sure what test I had run that gave me the impression otherwise.
Changing this to an analyzer issue.

Analyzer now reports an error.


Change uint/int to usize/isize

From https://github.com/rust-lang/rfcs/pull/544 the types uint/int were
renamed to usize/isize.

Thanks!


Can't install version 2.1.3 on MacOS 12.6 Monterey with ARM Apple Silicon

pg_query version 2.1.3 won't install on MacOS 12.6 Monterey with an arm64 Ruby 3.1.2
Here is the error message extracted from a bundle install
Undefined symbols for architecture arm64:
  "Init_pg_query", referenced from:
     -exported_symbol[s_list] command line option
     (maybe you meant: _Init_pg_query)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [pg_query.bundle] Error 1

make failed, exit code 2

More details about the environment :
ruby -v
  ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]

bundler --version
  Bundler version 2.2.32

Also if I try to run a make from the .rbenv folder =>
cd $HOME/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/pg_query-512169280fea/ext/pg_query

➜  pg_query git:(main) ✗ make
linking shared-object pg_query/pg_query.bundle
Undefined symbols for architecture arm64:
  "Init_pg_query", referenced from:
     -exported_symbol[s_list] command line option
     (maybe you meant: _Init_pg_query)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [pg_query.bundle] Error 1

Any help or ideas are welcome

I found one of my colluegue that has the same architecture/same os but for which it did work.
Here is a diff on the Makefile (note: I filtered the path so that the diffs is showing only what is different)
On the left : this Makefile compiles on my machine, on the right (pg_query_nic) is the one that does not work
35,36c35,36
< sitearchdir = $(DESTDIR)./.gem.20220711-23629-tjpu0c
< sitelibdir = $(DESTDIR)./.gem.20220711-23629-tjpu0c
---
> sitearchdir = $(DESTDIR)./.gem.20220915-29713-qlv927
> sitelibdir = $(DESTDIR)./.gem.20220915-29713-qlv927
94c94
< dldflags = -L/Users/nmartignole/.rbenv/versions/3.1.2/lib  -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-exported_symbols_list /Users/nmartignole/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/pg_query-512169280fea/ext/pg_query/pg_query_ruby.sym
---
> dldflags = -L/Users/nmartignole/.rbenv/versions/3.1.2/lib  -Wl,-multiply_defined,suppress -Wl,-exported_symbols_list /Users/nmartignole/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/pg_query-512169280fea/ext/pg_query/pg_query_ruby.sym
119,120c119,120
< MAKEDIRS = mkdir -p
< INSTALL = /usr/bin/install -c
---
> MAKEDIRS = /usr/local/bin/gmkdir -p
> INSTALL = /usr/local/bin/ginstall -c```

I see that -undefined,dynamic_lookup is missing on the version that does not compile.

I've been having this same issue, I can install version 1.3.0 but not 2.1.3.

See https://bugs.ruby-lang.org/issues/19005 for a workaround.

This makes me wonder if the visibility hiding in https://github.com/pganalyze/pg_query/blob/e35800c29f3a9a06ffe5bd2d54d67923a4390c79/ext/pg_query/pg_query_ruby.c#L17 is needed.

I've confirmed that reverting https://github.com/pganalyze/pg_query/pull/232 works on macOS. In Linux, -undefined,dynamic_lookup is the default, but it's not always available on macOS and other platforms.

https://github.com/pganalyze/pg_query/pull/256 fixes this issue.

https://bugs.ruby-lang.org/issues/19005

I can workaround the problem by doing:
gem install pg_query -- --with-ldflags="-Wl,-undefined,dynamic_lookup"

It looks like there is an upstream Ruby fix for this problem: https://github.com/ruby/ruby/commit/6898984f1cd1b0375c3da44d7832724489e0e470
It'd be nice if this were backported.

Thanks for the quick fix

Leaving this for anyone else that hits this issue - I couldn't update my pg_query version so downgrading the Xcode version from 14 to 13 fixed this issue for me.

@asadakbar Thanks for adding the note - curious what was challenging about updating your pg_query version? (maybe another gem requiring a different protobuf gem version?)


Publish 0.5.0

Hello,
I have a PR on an downstream library that's waiting for 0.5.0 specifically to avoid mentions of pakmanager. Could you release 0.5.0 to npm?
Thanks!

Published.


Update manifest.json

Added whitelist for content scripts to run on draft league pokemon showdown

Hey, I love the extension, really useful. I just added the draft league website on the manifest so it would work there too.


Include meta in resource linkage interface

Resource identifiers in resource linkages include an optional meta member.

Agreed, this is necessary for full compat with json:api. However, before we merge this, I'd like to consider both the name of the interface ("resource identifier object" in json:api) and how we can ensure that the value can be updated via operations.


Patch doesn't seem to have been applied

I nuked my node_modules folder and re installed to get gulp-tsb version 1.10.2. I see the same issue that #33 was supposed to fix.
This is what lib/index.js looks like in my node_modules folder.
function create(configOrName, verbose, json, onError) {
    var config;
    if (typeof configOrName === 'string') {
        var parsed = typescript_1.readConfigFile(configOrName, function (path) { return fs_1.readFileSync(path, undefined); });
        if (parsed.error) {
            console.error(parsed.error);
            return function () { return null; };
        }
        config = parsed.config.compilerOptions;
    }

Changing undefined to 'utf-8' solves the breaking error. Here is the error message I was seeing.
[09:40:07] TypeError: Cannot read property 'on' of null
    at DestroyableTransform.Readable.pipe (/Users/waander/Development/Microsoft/vscode-docs/out/vscode-website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:516:7)
    at Gulp.<anonymous> (/Users/waander/Development/Microsoft/vscode-docs/out/vscode-website/gulpfile.js:110:10)
    at module.exports (/Users/waander/Development/Microsoft/vscode-docs/out/vscode-website/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
    at Gulp.Orchestrator._runTask (/Users/waander/Development/Microsoft/vscode-docs/out/vscode-website/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/Users/waander/Development/Microsoft/vscode-docs/out/vscode-website/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
    at Gulp.Orchestrator.start (/Users/waander/Development/Microsoft/vscode-docs/out/vscode-website/node_modules/gulp/node_modules/orchestrator/index.js:134:8)
    at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:20
    at nextTickCallbackWith0Args (node.js:419:9)
    at process._tickCallback (node.js:348:13)
    at Function.Module.runMain (module.js:444:11)

Working now :)


Create a section in "Maintaining the Website" Guide to address adding events

This pull request addresses https://github.com/CodingTrain/thecodingtrain.com/issues/148 in order to add some instructions to help folks figure out how to add upcoming events to The Coding Train Website.
I tried to model the documentation based off of the other information available in the guide. I wasn't sure where this instruction should fit in the hierarchy of the guide.

Fantastic!!!


DOCTEST_BREAK_INTO_DEBUGGER undefined under OSX

Hi,
When I use doctest with my Mac (up-to-date XCode :-), DOCTEST_BREAK_INTO_DEBUGGER is not defined.
Steps to reproduce :
Clone https://github.com/pthom/DocTest_LibTest and compile on a mac (cmake / make)
See for example
https://github.com/pthom/DocTest_LibTest/blob/master/MyLibrary/lib1.cpp
where I had to define it in order to avoid an error
Thanks !

my guess is that DEBUG (see here) isn't defined when xcode is used as the generator - a friend already told me about this - I hadn't tested it - will fix.

Actually I was using the make generator : just type cmake then make
Hope this helps

Same issue if I write cmake -DCMAKE_BUILD_TYPE=Debug or Release

If I define DEBUG it will work.
However, my guess is that cmake defines NDEBUG for release builds, and nothing for debug builds (which is unfortunate). May be this should go in the readme.
See http://stackoverflow.com/questions/8591762/ifdef-debug-with-cmake-independent-from-platform

Hmm, "NDEBUG" should be defined for non-debug build under clang and gcc if remember correctly.

Wrapping DOCTEST_BREAK_INTO_DEBUGGER in a #ifdef DEBUG is really unnecessary, since the extra code generated when defined is very small,  while not defining it makes it a pain to use. People do run optimized code under debuggers. In other words, this is but a useless premature optimization. Yes, Catch does it, and that is equally pointless.

In fact, the DEBUG guard is only present for OS X targets, but not Windows and Linux targets. An inconsistent design.


Migrating from num-bigint(-dig) to crypto-bigint

There are a couple issues related to this (#19, #51), but no specific discussion issue for it, so I thought I'd open one.
crypto-bigint v0.6.0-pre.0 now includes more fully featured heap-allocated types which are fixed-precision, can be easily padded to the modulus size, and are (almost) completely implemented in terms of constant-time algorithms:

BoxedUint
BoxedResidue
BoxedResidueParams

Notably it should be possible to represent the RSA modulus using BoxedResidueParams which precomputes the constants needed to translate in and out of the Montgomery domain.
The BoxedResidue type supports modular pow and invert, and BoxedUint supports inv_mod (though the implementation on BoxedResidue should be more efficient, since it can rely on an odd modulus). All of these are implemented using constant-time algorithms, although lingering bits of timing variability may remain in certain places (notably the BoxedResidueParams constructor presently uses a non-constant-time remainder function, though since the RSA modulus is a public parameter this shouldn't be an issue).
That should be the core functionality required. There are probably still gaps as this functionality was somewhat hastily implemented, though it should all be fairly well tested.
To start I think we can focus on rsa::hazmat::rsa_decrypt, perhaps converting num_bigint::BigUint to crypto_bigint::BoxedResidue internally. If we can get that to work, we may be able to ship a mitigation without breaking changes to the public API.
A full conversion will require much more work. We'll need to add Boxed* support to crypto-primes, for example: https://github.com/entropyxyz/crypto-primes
cc @dignifiedquire

Hi, I'm looking for stack-allocated RSA library in Rust. crypto-bigint seems to be able to do this. Although I can't see modpow in crypto-bigint.

Hi, I'm looking for stack-allocated RSA library in Rust. crypto-bigint seems to be able to do this. Although I can't see modpow in crypto-bigint.

See https://github.com/RustCrypto/RSA/pull/394#issuecomment-1980060208 and https://github.com/RustCrypto/RSA/pull/394#issuecomment-1980922832


Fix undefined behavior in align_power2()

If __builtin_clz() returns 1, the shift operation will try to shift by 31 bits, which is undefined behavior. Guard against that by returning UINT_MAX, which should be the next power of two.
In addition, create a bunch of align_power2() functions to work with integers of different sizes.  C11's _Generic() would be a better candidate but for some reason it's not available in the CI server.
These functions will each return the correct maximum value and uses the correct leading zero counting builtin for the type, and, in the case of unsigned shorts (often 16-bit), provide a function that clamps the results to USHRT_MAX.

Maybe this can be written using a macro that uses __builtin_types_compatible_p() to work around compilers without _Generic(), and still be easy to use...

Closing for version with __builtin_types_compatible_p().


Why one needs to configuration permissions?

Step # 9 reads " Configure Permissions for your application - in the Settings menu, choose the 'Required permissions' section, click on Add, then Select an API, and type 'TodoListService' in the textbox. Then, click on Select Permissions and select 'Access TodoListService'.".
However without setting the permissions i am able to call the API from the Web App; what is the significance of setting the permission?

The reason why this was working is that the audience was not validated in the Web App (See Startup.auth.cs). This is now the case.


ImageWidget notebook tests

Adds tests for ImageWidget in notebooks

[x] single image
[x] movies display

[x] changing time slider
[x] window functions
[x] frame_apply functions
[x] set_data

[ ] images gridplot
[ ] movies gridplot

[ ] changing time slider
[ ] window functions
[ ] frame_apply functions
[ ] set_data

closing, comitted binary file before adding it to .gitattributes


User type doesn't match the credhub api docs

In the Credhub Credential type docs, user says it's a single field. However, in the API docs, it has a username, password, and password has field. Seems like one version of the docs is out of date.
Credential Type Docs:
https://github.com/cloudfoundry/docs-credhub/blob/master/credential-types.html.md.erb#L37-L38
Api docs: http://credhub-api.cfapps.io/version/2.1/#type-user

Thank you for reporting this @ctaymor! We confirmed that the CredHub API docs are, in fact, correct and have updated the CF CredHub docs.


[Question] The way process raw graph in the code is different from the way it's described in the paper

I had reviewed your code and your paper, and the way process raw graph confused me.
In the function "process_graph" of utils/wget_parser.py, you add the edge that first processed of all edges between two nodes only.
While in the paper, you add the edge that first processed of same type between two nodes, then combine different types of edges into one edge.
So I wondered if there were any parts of this that I hadn't noticed.

In this implementation, we use the simplest method to reduce overlapping edges, which is to discard all subsequent edges after the first one.
Though loss of information is expected, the performance still stands, so we keep this underoptimized implementation for the sake of simplicity and efficiency.

Hi, I also have this problem, and I find some other differences in 4.2.2.

About the calculation of "AGG", the attention part "a(i, dst) * MSG(i, dst)", may be "a(i, dst) * h_src"?  (your code in gat.py, the "hs" is the feat_src, line~185 and line~202).

MSG(src,dst) is obtained by adding "h_src" and "emb_e" in the implementation (instead of concat).

I would like to know if I made any mistakes. Thanks a lot.
(Thanks for opening the source, by the way)

Please check the following document for reply.
response_to_acomand.pdf

No further questions, thanks for your patience.


Added empty dict as root value to recursion in dict_deep_update to solve warnings.

This is PR aims to address a type of warnings that we consistently get into the CI:
  /home/runner/work/nwb-conversion-tools/nwb-conversion-tools/src/nwb_conversion_tools/utils/dict.py:174: UserWarning: input to update should be a dict, returning output
    warnings.warn("input to update should be a dict, returning output")

The reason for this is that the current implementation of dict_deep_update returns the value None when a key to update is not available:
https://github.com/catalystneuro/nwb-conversion-tools/blob/ffa6fb81dfdfd1797a790159d82f47a57ebc050b/src/nwb_conversion_tools/utils/dict.py#L180
Coincidentally, this also happens when the recursion algorithm hits the root of the stack and triggers the warnings at the start of the function:
https://github.com/catalystneuro/nwb-conversion-tools/blob/ffa6fb81dfdfd1797a790159d82f47a57ebc050b/src/nwb_conversion_tools/utils/dict.py#L173-L175
So, every time that we try to update a non-existent key of a metadata or source schema with a dict, this error is triggered, see example now:
In [1]: from nwb_conversion_tools.utils.dict import dict_deep_update

In [2]: x = dict(x='2', y='3')

In [3]: z = dict(z=dict(z_deep='4'))

In [4]: dict_deep_update(x, z)
/home/heberto/development/nwb-conversion-tools/src/nwb_conversion_tools/utils/dict.py:174: UserWarning: input to update should be a dict, returning output
  warnings.warn("input to update should be a dict, returning output")
Out[4]: {'x': '2', 'y': '3', 'z': {'z_deep': '4'}}

The solution, is to return an empty dict when a key is not find, this works as an stop sign to indicate the root of the recursion while at the same time keeping the same functionality that the algorithm has now. I think the semantics of this are more clear.
Also, in this PR I took the liberty of doing some refactoring of the variables names. The principle there is to make them more specific and indicative of content than they were before.

Oky doky, makes sense to me. In the even the value to update is a dictionary, but the key doesn't exist at that level in the original dictionary, make an empty dictionary so that it can be updated.

The number of warnings decrease from 464 warnings to 344  in the CI test of python 3.9  (from the circa 600 we had at some point).

Just trying to think through this VERY carefully, are we sure that will not change functionality at all in any situation?

Yes, that's important. I think I should write my thoughts here as a record and in case that we have to get back know what went wrong.
This is the argument for why this should not change the functionality:
This change only affects the functionality when the dict_with_update_values has a key that is not available in the dict_to_update (that is the get statement in line 180) . Let's discuss what happens in the old and the new version of the functions:

current version in main: this returns None, that is, the sub_dict_to_update becomes None.
proposed version in this PR: this returns dict(), that is, the sub_dict_to_update becomes dict().

Now, in both cases, what happens is that a new recursion instance of dict_deep_update is to be run with the specific values of the dict_with_update_values which should be a dict and becomes sub_dict_with_update_values. That is, we run the next recursion which is:

current version in main: dict_deep_update(None, sub_dict_with_update_values) -> this triggers the warnings and the following code is run:
https://github.com/catalystneuro/nwb-conversion-tools/blob/ffa6fb81dfdfd1797a790159d82f47a57ebc050b/src/nwb_conversion_tools/utils/dict.py#L173-L175
This returns the sub_dict_with_update_values and assigns them to the key.  This means that the result is:

dict_to_update[key_existing_only_in_dict_with_values_to_update] = dict_with_values_to_update[key_existing_only_in_dict_with_values_to_update]`

proposed version in this PR: dict_deep_update(dict(), sub_dict_with_update_values). -> in this case, as we are now dealing with an empty dict, the same logic keeps applying and the algorithm just keeps adding the values of sub_dict_with_updated_values verbatim all the way to the bottom of the structure (either through copying sub-dicts, first if, list appending, second if, or just assignation of root elements, third if, when the stack hits the bottom).
This means that the result is:

dict_to_update[key_existing_only_in_dict_with_values_to_update] = dict_with_values_to_update[key_existing_only_in_dict_with_values_to_update]`

The results should be the same.


feat: use tmq_err2str to get tmq write raw errors

Codecov Report
Attention: Patch coverage is 0% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 70.08%. Comparing base (eb93410) to head (d3d57e6).

Files
Patch %
Lines

controller/ws/query/ws.go
0.00%
3 Missing :warning:

controller/ws/ws/handler.go
0.00%
3 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##              3.1     #282      +/-   ##
==========================================
- Coverage   70.15%   70.08%   -0.08%
==========================================
  Files          78       78
  Lines        8360     8360
==========================================
- Hits         5865     5859       -6
- Misses       1890     1897       +7
+ Partials      605      604       -1

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


Ender io and mekanism in minecraft 1.7.10

Hello,
I have a problem with mekanism, mekanism it's not compatible with ender io, i can't connect cable and other generator.
EnderIO-1.7.10-<IP_ADDRESS>1; Mekanism 1.7.10-<IP_ADDRESS>; Forge<IP_ADDRESS>8-1.7.10
http://image.noelshack.com/fichiers/2015/42/1445078899-2015-10-17-12-45-22.png
http://image.noelshack.com/fichiers/2015/42/1445078900-2015-10-17-12-47-02.png
if anyone can help me please.

Last I remember, you'll need CoFHCore added. It's required by the mekanism devs because it makes their code for dependencies less complex iirc. You won't need anything except CoFHCore.

Oh yes, thanks you! I did not know, big thanks!

No problem! I assume you've already tested my solution? If so and it fixed it, close out this github issue.


Broken Themes Link

On the page, http://docs.orchardproject.net/en/latest/Documentation/Walkthroughs/ links under themes are broken.

Sorry those html pages are not in the documentation anymore.


nudge users to book a call with us on first replica created

@glommer what about giving them both options?
Either book a call or send feedback

now that feedback exists, I updated the PR with that.


added pocket extension

Description
I have included the Pocket extension
Fixes:  #1246

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[X] I have made this from my own
[X] I have taken help from some online resourses
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

@Sulagna-Dutta-Roy sure will check and change it

@Sulagna-Dutta-Roy I have changes the suggestion you have asked for .I request you to review the pr.
Thanks in advance

@Sulagna-Dutta-Roy changed the file name as suggested .You could check the pr here


OCI secret by name instead of the unmaintainable ID

Hello,
Currently (soon, once  https://github.com/external-secrets/external-secrets/pull/569 is done)  the OCI Vault provider gets a secret by its ID which is unpredictable and less maintainable than name.
The advantage of ID is that we don't need to know the Vault ID.
However if we have a specific Vault ID, we can gets secrets by name.
There are 2 options to add this support:

Get the Vault ID in the SecretStore CRD, then we can just use the name in the ExternalSecret.
Get Vault ID and the secret name in the ExternalSecret.

Because I need this support ASAP I'm going to implement this. Which option do you prefer?
Thanks!

I'd suggest to add an optional field of the Vault ID to SecretStore, then if it exists, take the ExternalSecret key as a name, otherwise as an OCID like now.

I think I prefer the vault Id as required field in the SS, so the intended usage is clear. Basically option 1 from your suggestion. :)

I know that going for option 1 is a breaking change, but we should take advantage of the CRD being in alpha and get the specs to what we think makes more sense.