VirtualMachineExtensionOperationsTests.java missing method to update "IaaSDiagnostics" extension for Windows VMs

Using Azure sdk for java, in VirtualMachineExtensionOperationsTests.java, I could find a method canEnableDiagnosticsExtension(), in which there is a code snippet to update Diagnostics extension for Linux VMs.
final InputStream embeddedJsonConfig = VirtualMachineExtensionOperationsTests.class.getResourceAsStream("/linux_diagnostics_public_config.json");
        String jsonConfig = ((new ObjectMapper()).readTree(embeddedJsonConfig)).toString();
        jsonConfig = jsonConfig.replace("%VirtualMachineResourceId%", vm.id());

        // Update Linux VM to enable Diagnostics
        vm.update()
                .defineNewExtension("LinuxDiagnostic")
                .withPublisher("Microsoft.OSTCExtensions")
                .withType("LinuxDiagnostic")
                .withVersion("2.3")
                .withPublicSetting("ladCfg", new String(Base64.encodeBase64(jsonConfig.getBytes())))
                .withPublicSetting("storageAccount", storageAccount.name())
                .withProtectedSetting("storageAccountName", storageAccount.name())
                .withProtectedSetting("storageAccountKey", storageAccount.getKeys().get(0).value())
                .withProtectedSetting("storageAccountEndPoint", "https://core.windows.net:443/")
                .attach()
                .apply();

I tried using it and it is working fine.
But I couldn't find methods for doing the same for Windows VMs (updating IaaSDiagnostics extension)
Please provide us with a solution or fix as soon as possible.

@ShailashreeE will add a test showing how to do this. Meantime to unblock you, here is how you enable windows Diagnostics.
The formatted Windows Diagnostics configuration look like below:
{
  "DiagnosticMonitorConfiguration": {
    "overallQuotaInMB": 5120,
    "Metrics": {
      "resourceId": "%VirtualMachineResourceId%",
      "MetricAggregation": [
        {
          "scheduledTransferPeriod": "PT1H"
        },
        {
          "scheduledTransferPeriod": "PT1M"
        }
      ]
    },
    "DiagnosticInfrastructureLogs": {
      "scheduledTransferLogLevelFilter": "Error"
    },
    "PerformanceCounters": {
      "scheduledTransferPeriod": "PT1M",
      "PerformanceCounterConfiguration": [
        {
          "counterSpecifier": "\\Processor Information(_Total)\\% Processor Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Processor Information(_Total)\\% Privileged Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Processor Information(_Total)\\% User Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Processor Information(_Total)\\Processor Frequency",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\System\\Processes",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Thread Count",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Handle Count",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\System\\System Up Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\System\\Context Switches/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\System\\Processor Queue Length",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Available Bytes",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Committed Bytes",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Cache Bytes",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Pool Paged Bytes",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Pool Nonpaged Bytes",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Pages/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Page Faults/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Working Set",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Working Set - Private",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Disk Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Disk Read Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Disk Write Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Idle Time",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Bytes/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Read Bytes/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Write Bytes/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Transfers/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Reads/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Writes/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk sec/Transfer",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk sec/Read",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk sec/Write",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk Queue Length",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk Read Queue Length",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk Write Queue Length",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Free Space",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Free Megabytes",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Bytes Total/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Bytes Sent/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Bytes Received/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Sent/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Received/sec",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Outbound Errors",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Received Errors",
          "sampleRate": "PT1M"
        }
      ]
    },
    "WindowsEventLog": {
      "scheduledTransferPeriod": "PT1M",
      "DataSource": [
        {
          "name": "Application!*[Application[(Level = 1 or Level = 2 or Level = 3)]]"
        },
        {
          "name": "Security!*[System[band(Keywords,4503599627370496)]]"
        },
        {
          "name": "System!*[System[(Level = 1 or Level = 2 or Level = 3)]]"
        }
      ]
    }
  }
}

Create a file windows_diagnostics_public_config.json and put the same json without formatting, i.e. it looks like:
{"DiagnosticMonitorConfiguration":{"overallQuotaInMB":5120,"Metrics":{"resourceId":"%VirtualMachineResourceId%","MetricAggregation":[{"scheduledTransferPeriod":"PT1H"},{"scheduledTransferPeriod":"PT1M"}]},"DiagnosticInfrastructureLogs":{"scheduledTransferLogLevelFilter":"Error"},"PerformanceCounters":{"scheduledTransferPeriod":"PT1M","PerformanceCounterConfiguration":[{"counterSpecifier":"\\Processor Information(_Total)\\% Processor Time","sampleRate":"PT1M"},{"counterSpecifier":"\\Processor Information(_Total)\\% Privileged Time","sampleRate":"PT1M"},{"counterSpecifier":"\\Processor Information(_Total)\\% User Time","sampleRate":"PT1M"},{"counterSpecifier":"\\Processor Information(_Total)\\Processor Frequency","sampleRate":"PT1M"},{"counterSpecifier":"\\System\\Processes","sampleRate":"PT1M"},{"counterSpecifier":"\\Process(_Total)\\Thread Count","sampleRate":"PT1M"},{"counterSpecifier":"\\Process(_Total)\\Handle Count","sampleRate":"PT1M"},{"counterSpecifier":"\\System\\System Up Time","sampleRate":"PT1M"},{"counterSpecifier":"\\System\\Context Switches/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\System\\Processor Queue Length","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Available Bytes","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Committed Bytes","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Cache Bytes","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Pool Paged Bytes","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Pool Nonpaged Bytes","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Pages/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Page Faults/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Process(_Total)\\Working Set","sampleRate":"PT1M"},{"counterSpecifier":"\\Process(_Total)\\Working Set - Private","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Disk Time","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Disk Read Time","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Disk Write Time","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Idle Time","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Bytes/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Read Bytes/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Write Bytes/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Transfers/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Reads/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Writes/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk sec/Transfer","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk sec/Read","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk sec/Write","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk Queue Length","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk Read Queue Length","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk Write Queue Length","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Free Space","sampleRate":"PT1M"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Free Megabytes","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Bytes Total/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Bytes Sent/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Bytes Received/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Packets/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Packets Sent/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Packets Received/sec","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Packets Outbound Errors","sampleRate":"PT1M"},{"counterSpecifier":"\\Network Interface(*)\\Packets Received Errors","sampleRate":"PT1M"}]},"WindowsEventLog":{"scheduledTransferPeriod":"PT1M","DataSource":[{"name":"Application!*[Application[(Level = 1 or Level = 2 or Level = 3)]]"},{"name":"Security!*[System[band(Keywords,4503599627370496)]]"},{"name":"System!*[System[(Level = 1 or Level = 2 or Level = 3)]]"}]}}}

final InputStream embeddedJsonConfig = [YourClass].class.getResourceAsStream("/windows_diagnostics_public_config.json");
        String jsonConfig = ((new ObjectMapper()).readTree(embeddedJsonConfig)).toString();
        jsonConfig = jsonConfig.replace("%VirtualMachineResourceId%", vm.id());

        jsonConfig = jsonConfig.replace("%VirtualMachineResourceId%", vm.id());

        // Update Linux VM to enable Diagnostics
        vm.update()
                .defineNewExtension("IaaSDiagnostics")
                .withPublisher("Microsoft.Azure.Diagnostics")
                .withType("IaaSDiagnostics")
                .withVersion("1.5")
                .withPublicSetting("WadCfg", new String(Base64.encodeBase64(jsonConfig.getBytes())))
                .withPublicSetting("storageAccount", storageAccount.name())
                .withProtectedSetting("storageAccountName", storageAccount.name())
                .withProtectedSetting("storageAccountKey", storageAccount.getKeys().get(0).value())
                .withProtectedSetting("storageAccountEndPoint", "https://core.windows.net:443/")
                .attach()
                .apply();

Thanks for the update @anuchandy !
The counters mentioned by you in the json file are being collected and stored successfully. But earlier(before some months), there were some other counters also shown for Windows VMs, which I cannot find now. Below listed are some of those missing counters :
1.\Processor(_Total)% Processor Time
2.\Processor(_Total)% Interrupt Time
3.\Processor(_Total)% Privileged Time
4.\Processor(_Total)% User Time
5..NET CLR counters
6.\System\Threads
7.\Memory\Cache Faults/sec
8.\Memory\Transition Faults/sec
9.\PhysicalDisk(_Total)\Disk Read Bytes/sec
10.\PhysicalDisk(_Total)\Disk Write Bytes/sec
11.\TCPv4\Connections Established
12.\TCPv4\Connection Failures
13.\TCPv4\Connections Reset
14.\TCPv4\Segments Sent/sec
15.\TCPv4\Segments Received/sec
16.\TCPv4\Segments Retransmitted/sec
I tried including those counters in the JSON file, but they are not collected. So I would like to know whether these counters are deprecated. Or, is there any way to retrieve.
Kindly let us know.

I used azure portal with fiddler to retrieve the supported counters included in the above shared json file. This json is the one that portal generates by default and I don't see an option to customize it.
@kmouss could you please tag owner of diagnostics configuration to confirm that the counters customer looking are deprecated or not, if they are supported please share a DiagnosticMonitorConfiguration for the same.

@ShailashreeE checked with the service team, they said whatever configuration client is passing will be simply passed to the OS as it is. If the counter config is correct and If the Windows OS has the counter, it will work, otherwise it won't be collected.

@anuchandy , Thanks for checking.
Let us take the counter \TCPv4\Connections Established for example. This is present in the Windows OS counters list. Also it is possible to select the counter in Azure portal. Data is being collected upon selecting it.

But it is not getting stored when done via the below code,
vmtest.update().updateExtension("IaaSDiagnostics")
						        .withPublicSetting("WadCfg", new String(Base64.encode(windowsConfig.getBytes())))
						        .withPublicSetting("storageAccount", storageAccount.name())
						        .withProtectedSetting("storageAccountName", storageAccount.name())
						        .withProtectedSetting("storageAccountKey", storageAccount.getKeys().get(0).value())
						        .withProtectedSetting("storageAccountEndPoint", "https://core.windows.net:443/");

Kindly update if anything needs to be changed.

Have you varified by using fiddler that the Json config you are using EXACTLY matches with the one that portal prepares? If they both matches and still not collected then we can share it with service team and ask for help.

@ShailashreeE, below is the updated config with TCPv4 counter.
{
  "DiagnosticMonitorConfiguration": {
    "overallQuotaInMB": 5120,
    "Metrics": {
      "resourceId": "%VirtualMachineResourceId%",
      "MetricAggregation": [
        {
          "scheduledTransferPeriod": "PT1H"
        },
        {
          "scheduledTransferPeriod": "PT1M"
        }
      ]
    },
    "DiagnosticInfrastructureLogs": {
      "scheduledTransferLogLevelFilter": "Error",
      "scheduledTransferPeriod": "PT1M"
    },
    "PerformanceCounters": {
      "scheduledTransferPeriod": "PT1M",
      "PerformanceCounterConfiguration": [
        {
          "counterSpecifier": "\\Processor Information(_Total)\\% Processor Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Processor Information(_Total)\\% Privileged Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Processor Information(_Total)\\% User Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Processor Information(_Total)\\Processor Frequency",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\System\\Processes",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Thread Count",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Handle Count",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\System\\System Up Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\System\\Context Switches/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\System\\Processor Queue Length",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Memory\\% Committed Bytes In Use",
          "sampleRate": "PT1M"
        },
        {
          "counterSpecifier": "\\Memory\\Available Bytes",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Memory\\Committed Bytes",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Memory\\Cache Bytes",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Memory\\Pool Paged Bytes",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Memory\\Pool Nonpaged Bytes",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Memory\\Pages/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Memory\\Page Faults/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Working Set",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Process(_Total)\\Working Set - Private",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Disk Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Disk Read Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Disk Write Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Idle Time",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Bytes/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Read Bytes/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Write Bytes/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Transfers/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Reads/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Disk Writes/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk sec/Transfer",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk sec/Read",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk sec/Write",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk Queue Length",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk Read Queue Length",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Avg. Disk Write Queue Length",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\% Free Space",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\LogicalDisk(_Total)\\Free Megabytes",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Bytes Total/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Bytes Sent/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Bytes Received/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Sent/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Received/sec",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Outbound Errors",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\Network Interface(*)\\Packets Received Errors",
          "sampleRate": "PT60S"
        },
        {
          "counterSpecifier": "\\TCPv4\\Connections Established",
          "sampleRate": "PT1M"
        }
      ]
    },
    "WindowsEventLog": {
      "scheduledTransferPeriod": "PT1M",
      "DataSource": [
        {
          "name": "Application!*[System[(Level=1 or Level=2 or Level=3)]]"
        },
        {
          "name": "System!*[System[(Level=1 or Level=2 or Level=3)]]"
        },
        {
          "name": "Security!*[System[(band(Keywords,4503599627370496))]]"
        }
      ]
    },
    "Directories": {
      "scheduledTransferPeriod": "PT1M"
    }
  }
}

Add the non-formatted config to the file as i mentioned above and try setting the extension.
{"DiagnosticMonitorConfiguration":{"overallQuotaInMB":5120,"Metrics":{"resourceId":"%VirtualMachineResourceId%","MetricAggregation":[{"scheduledTransferPeriod":"PT1H"},{"scheduledTransferPeriod":"PT1M"}]},"DiagnosticInfrastructureLogs":{"scheduledTransferLogLevelFilter":"Error","scheduledTransferPeriod":"PT1M"},"PerformanceCounters":{"scheduledTransferPeriod":"PT1M","PerformanceCounterConfiguration":[{"counterSpecifier":"\\Processor Information(_Total)\\% Processor Time","sampleRate":"PT60S"},{"counterSpecifier":"\\Processor Information(_Total)\\% Privileged Time","sampleRate":"PT60S"},{"counterSpecifier":"\\Processor Information(_Total)\\% User Time","sampleRate":"PT60S"},{"counterSpecifier":"\\Processor Information(_Total)\\Processor Frequency","sampleRate":"PT60S"},{"counterSpecifier":"\\System\\Processes","sampleRate":"PT60S"},{"counterSpecifier":"\\Process(_Total)\\Thread Count","sampleRate":"PT60S"},{"counterSpecifier":"\\Process(_Total)\\Handle Count","sampleRate":"PT60S"},{"counterSpecifier":"\\System\\System Up Time","sampleRate":"PT60S"},{"counterSpecifier":"\\System\\Context Switches/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\System\\Processor Queue Length","sampleRate":"PT60S"},{"counterSpecifier":"\\Memory\\% Committed Bytes In Use","sampleRate":"PT1M"},{"counterSpecifier":"\\Memory\\Available Bytes","sampleRate":"PT60S"},{"counterSpecifier":"\\Memory\\Committed Bytes","sampleRate":"PT60S"},{"counterSpecifier":"\\Memory\\Cache Bytes","sampleRate":"PT60S"},{"counterSpecifier":"\\Memory\\Pool Paged Bytes","sampleRate":"PT60S"},{"counterSpecifier":"\\Memory\\Pool Nonpaged Bytes","sampleRate":"PT60S"},{"counterSpecifier":"\\Memory\\Pages/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Memory\\Page Faults/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Process(_Total)\\Working Set","sampleRate":"PT60S"},{"counterSpecifier":"\\Process(_Total)\\Working Set - Private","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Disk Time","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Disk Read Time","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Disk Write Time","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Idle Time","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Bytes/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Read Bytes/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Write Bytes/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Transfers/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Reads/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Disk Writes/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk sec/Transfer","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk sec/Read","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk sec/Write","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk Queue Length","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk Read Queue Length","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Avg. Disk Write Queue Length","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\% Free Space","sampleRate":"PT60S"},{"counterSpecifier":"\\LogicalDisk(_Total)\\Free Megabytes","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Bytes Total/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Bytes Sent/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Bytes Received/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Packets/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Packets Sent/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Packets Received/sec","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Packets Outbound Errors","sampleRate":"PT60S"},{"counterSpecifier":"\\Network Interface(*)\\Packets Received Errors","sampleRate":"PT60S"},{"counterSpecifier":"\\TCPv4\\Connections Established","sampleRate":"PT1M"}]},"WindowsEventLog":{"scheduledTransferPeriod":"PT1M","DataSource":[{"name":"Application!*[System[(Level=1 or Level=2 or Level=3)]]"},{"name":"System!*[System[(Level=1 or Level=2 or Level=3)]]"},{"name":"Security!*[System[(band(Keywords,4503599627370496))]]"}]},"Directories":{"scheduledTransferPeriod":"PT1M"}}}


Blazor issue

Hello,
i want to check if this color picker is compatible with blazor ?
i followed all the required steps but it didnt work .
the only way to let it work is to remove the line:
 in _Host.cshtml file, but this line is important to use other blazor features.

Please stick to the Issue Template. Create a JSFiddle and describe what you've done as detailed as possible and break your issue down to a minimum. This will help me to resolve it as fast as possible.


Feature Request: On Step Change callback

From @victorpavlenko

I think you misunderstood the problem. Imagine I click on the arrow with the mouse to the right. This calls my function

const nextStep = () => {
    changeStep (stepIndex + 1);
         if (allSteps.length === stepIndex + 1) {
            history.push ({
                pathname: "/ settings / general",
                hash: "#onboarding",
            });
        }
};

But what if I hit the arrow on my keyboard? How do I call this function? No way, this is impossible now.
I think it's worth adding the onNextStep onPrevStep function directly to ReactGrandTour
Then call this function by pressing a button with the mouse, and also by mechanical pressing on the keyboard.
Now the mechanical pressing is uncontrollable

I will look at adding this functionality very soon.

@victorpavlenko
How about the following?
type OnStepChangeProps = {
  fromStepIndex: number;
  toStepIndex: number;

  fromStep: ReactGrandTourStep;
  toStep: ReactGrandTourStep;
}

onStepChange: (props: OnStepChangeProps) => void

You could then do this:
  <ReactGrandTour
    onStepChange={() => {history.push(...)}}
  />

You can use the props it passes you to do whatever you want.


Make JS composable

Redesign things in such a way that any canvas element can be passed to the JS and snake will be played in it.

Done. c6de889bcf097d921906552ac1c1cda895f0ab8c


Guard grpc import.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] 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.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Is there a "normal" pattern that should be used for cases like this? Having an import be sometimes None seems very odd and potentially confusing to someone coming along later. Maybe a Jira to track a further fix? (or if "this is fine" then OK)


fix for keybase/keybase-issues#1775

Please review @oconnor663 or @Sidnicious
Also, please remember to date your releases in the CHANGELOG.md file

This also fixes keybase/keybase-issues#1779 and keybase/keybase-issues#1778

Looks good to me :+1:.

:shipit:


Improved script attachment/removal buttons behavior a bit

Small change for script buttons - now it will display Attach Script button only if at least one node is selected, and give user possibility to delete script from multiple nodes - before its impossible (through these buttons), because cancel button was hidden

Its not compatibility breaking change so it can be merged to 3.1 I guess..

Thanks!


(Partially) broken with the new Discord classes update

Some parts of the plugin do seem to show (for example, the icons next to usernames on the bithday popup, however, it's really broken) however other parts such as the calendar icon in the top bar or right-click menus don't show at all.

It seems like this issue should be fixed with #10. I'll see when it gets merged.


always pointing kafka server to localhost

Hello I am testing this library against a kafka Ip , but it always pointing to localhost
local settings = {["bootstrap.servers"] = "<IP_ADDRESS>"}
local producer = require("kafka").producer(settings)
for i = 1, 100 do
print("send message " .. i)
producer:produce("hello1", "Hello World! " .. i)
producer:produce("hello2", i .. " Hello World!")
end
producer:poll(5000)
producer:close()

send message 98
send message 99
send message 100
%3|1677501106.503|FAIL|rdkafka#producer-1| [thrd:localhost:9092/1]: localhost:9092/1: Connect to ipv4#<IP_ADDRESS>:9092 failed: Connection refused (after 1ms in state CONNECT)
%3|1677501106.504|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: localhost:9092/1: Connect to ipv4#<IP_ADDRESS>:9092 failed: Connection refused (after 1ms in state CONNECT)
%4|1677501106.504|TERMINATE|rdkafka#producer-1| [thrd:app]: Producer terminating with 200 messages (2984 bytes) still in queue or transit: use flush() to wait for outstanding message delivery
the topic is listed , but the messages are empty

| [2023-02-27 12:35:42,317] ERROR Request Failed with exception  (io.confluent.rest.exceptions.DebuggableExceptionMapper)
schema-registry       | io.confluent.rest.exceptions.RestNotFoundException: Subject 'hello1-value' not found.

Hello, I am unable to reproduce the error on macOS and Debian, which OS and Version do you use?
The source code is very simple, you can also clone and compile it on your machine to debug issues.

hi, currently I use it inside dovecot which placed in a docker container, and try to make a lua script for push-notification to kafka  instead http endpoint
if I ping kafka "broker" inside from dovecot shell, it will response pointing to kafka server , but if I run the producer or consumer example. it always pointing to  "localhost" even if I declare bootstrap server  with  IP address or host name
local settings = {["bootstrap.servers"] = "broker"}
here is my docker-compose which I use
docker-compose.yml.txt

solved:
should define the bootstrap servers with exposed port
local settings = {["bootstrap.servers"] = "broker:29092"}
it works now,
thank you for your assistance.


(GLES2) Resizing viewport flickers in "clear color" environment

Godot version:

c3023e8
OS/device including version:

Manjaro x86_64
OpenGL ES 2.0 Renderer: Mesa DRI Intel(R) Haswell

Issue description:

Resizing 3D viewport in GLES2 and clear color environment will cause the background to flicker.
Steps to reproduce:

Switch to GLES2
Set default environment to "Clear color"
Open 3D editor
Resize the viewport

I will be atempting to solve this issue soon

Not reproducible in 3.1.1 or current master, it must have been fixed


[BUG] Jinja2 requirement has medium CVE

https://github.com/voxel51/fiftyone/blob/develop/requirements/common.txt#L11

Thanks @pseudotensor. https://github.com/voxel51/fiftyone/pull/4481 will resolve this

Great thanks!

It is safe to say that if one deleted jinja2 or (say) forced an upgrade of it, that fiftyone would not changes its functioning because it was only used to build the docs?

It is safe to say that if one deleted jinja2 or (say) forced an upgrade of it, that fiftyone would not changes its functioning because it was only used to build the docs?

Yes, that should have no effect. Jinja>=3 is sufficient 👍


feat: set pruneMark based on path

The current pruning logic uses the metadata.Name, under the assumption this is unique. We forced it to be unique by
setting the name equal to the path. This has caused a few headaches for newcomers.
This PR proposes to use a hash of the path and add it as a sha256 prune mark. Except for consistency, this also resolves
the issue that labels are limited to 63 characters while paths can be much longer. This can optionally be enabled by
setting spec.pruneMark and leaves the original spec.injectLabels untouched. What's the catch? This label can't be
used anymore for pruning as the logic to support it would be arguably more complex.
Surplus, this PR also sets metadata.Path at runtime, the path relative to the root. This removes the aformentioned
assumption that name equals path and also shows up in tk env list --json, which can in turn be used by other tools
that want to perform bulk actions on Tanka environments.

I think the metadata.path commit might be more useful as a separate PR, it is a bit related to #393

Closing this for now, we might take inspiration from this in a future refactor of the pruning code.

Closing this for now, we might take inspiration from this in a future refactor of the pruning code.


[enhancement] nvidia-container-runtime is deprecated - tried to go for nvidia-container-toolkit but got error

nvidia-container-runtime works well exactly as instructed by the guide.
But it deprecated and advised to switch to [https://github.com/NVIDIA/nvidia-container-toolkit?tab=readme-ov-file]
Tried to simply change the daemon.json:
sudo tee /etc/docker/daemon.json <<EOF
{
    "runtimes": {
        "nvidia": {
            "path": "/usr/bin/nvidia-container-toolkit",
            "runtimeArgs": []
        }
    }
}
EOF

but got an error when using "docker compose ... up":
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/e5a45f0f12e0c02ec1708dc89576a0972ab477a5c45a5db8cd6a312605b11084/log.json: no such file or directory): /usr/bin/nvidia-container-toolkit did not terminate successfully: exit status 2: flag provided but not defined: -root
Usage of /usr/bin/nvidia-container-toolkit:
  -config string
    	configuration file
  -debug
    	enable debug output
  -version
    	enable version output

Commands:
  prestart
        run the prestart hook
  poststart
        no-op
  poststop
        no-op
: unknown

Hi @LeroyOP0
Which operating system are you using? What is the output of $ docker info? Did you enable sudoless Docker (can you run $ docker run hello-world successfully)?

Hi @LeroyOP0,
So did I understand you correctly that you first installed nvidia-container-runtime, then uninstalled it and installed nvidia-container-toolkit instead? If so what is the output of $ cat /etc/docker/daemon.json now? Did you reboot or restart the Docker daemon after upgrading?
I personally have not installed the nvidia-container-toolkit yet but some PhD students of ours did so recently and as far as I remember they did not need to add anything to the /etc/docker/daemon.json. Could you try to remove the contents of it, reboot the system, give it another try and send me the output of $ docker info?

Collecting the info and getting back to you.
Thanks champ
Inline image
Liran Elihay
CEO | Co-Founder
M: +972-544-202129
Foldibot Solutions Ltd.
On Mon, 26 Feb 2024 at 11:46 Tobit Flatscher @.***>
wrote:

Hi @LeroyOP0 https://github.com/LeroyOP0,
So did I understand you correctly that you first installed
nvidia-container-runtime, then uninstalled it and installed
nvidia-container-toolkit instead? If so what is the output of $ cat
/etc/docker/daemon.json now? Did you reboot or restart the Docker daemon
after upgrading?
I personally have not installed the nvidia-container-toolkit yet but some
PhD students of ours did so recently and as far as I remember they did not
need to add anything to the /etc/docker/daemon.json. Could you try to
remove the contents of it, reboot the system, give it another try and send
me the output of $ docker info?
—
Reply to this email directly, view it on GitHub
https://github.com/2b-t/docker-for-robotics/issues/1#issuecomment-1963704787,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVTTZ4ADZ5YKY6NSZ4ZFRIDYVRKY5AVCNFSM6AAAAABDZRDDDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRTG4YDINZYG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

For:
cat /etc/docker/daemon.json
I get:
{
    "runtimes": {
        "nvidia": {
            "path": "/usr/bin/nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}

and everything works perfect.
We can see that in docker info
Client: Docker Engine - Community
 Version:    25.0.3
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.5
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 12
 Server Version: 25.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
 Kernel Version: 5.15.0-97-generic
 Operating System: Ubuntu 20.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 13.5GiB
 Name: XXXXX
 ID: e5c9c593-e6a4-4fe7-ae2b-d840d9af1af6
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false

But considering the package is deprecated and I want to switch to the recommended nvidia-container-toolkit, what steps should I follow to configure that the nvidia runtime to be that one.
In my installed packages (apt list --installed | grep nvidia-container) I get both to be installed:
libnvidia-container-tools/bionic,now 1.13.5-1 amd64 [installed,automatic]
libnvidia-container1/bionic,now 1.13.5-1 amd64 [installed,automatic]
nvidia-container-runtime**/bionic,now 3.13.0-1 all [installed]
nvidia-container-toolkit-base**/bionic,now 1.13.5-1 amd64 [installed,automatic]
nvidia-container-toolkit**/bionic,now 1.13.5-1 amd64 [installed,automatic]

Shoud I simply uninstall the "nvidia-container-runtime"?

I would uninstall the nvidia-container-runtime and delete the contents of /etc/docker/daemon.json. Let me know if that works...

After uninstalling with sudo apt remove nvidia-container-runtime and rechecking with apt list --installed | grep nvidia-container we get:
libnvidia-container-tools/bionic,now 1.13.5-1 amd64 [installed,auto-removable]
libnvidia-container1/bionic,now 1.13.5-1 amd64 [installed,auto-removable]
nvidia-container-toolkit-base/bionic,now 1.13.5-1 amd64 [installed,auto-removable]
nvidia-container-toolkit/bionic,now 1.13.5-1 amd64 [installed,auto-removable]

No nvidia-container-runtime.
Removed the content of the dameon.json as well.
Then restarting with sudo systemctl daemon-reload and sudo systemctl restart docker, and checking docker info | grep run goesn't list nvidia runtime any longer - not good I guess.
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 runc version: v1.1.12-0-g51d5e94

Now i'll try to uninstall nvidia-container-toolkit as well

Reinstalling nvidia-container-toolkit, restarting docker, and checking docker info shows that there's no nvidia runtime. Only runc.
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 runc version: v1.1.12-0-g51d5e94

How does using nvidia-container-toolkit may create the required nvidia runtime?

Oops missed some steps.... I think I didn't configure docker from the installation guide

BINGO!
I just missed to configure docker and then it sets the nvidia runtime.
Thanks @2b-t you're awesome.

Excellent, I will add a corresponding comment inside my guide.
You are welcome, @LeroyOP0!


Uncaught SyntaxError: Unexpected token <

I wanted to create an npm package that internally uses web worker. I got working configuration for that in the worker-loader package for webpack as follows.
{
  test: /\.worker\.js$/,
  use: {
    loader: 'worker-loader',
    options: {
      inline: true
    }
  }
}

then I could use my library in some react project like that
import {BoardGenerator} from '@yufuzu/shipbattle-board';
const generator = new BoardGenerator();

Board generator is my npm library that uses it's web worker.
When I switched to this plugin I get an error that it cannot find web worker. Everything compiles properly and I am able to see use it in live mode in the browser. (From this project npm start). Problem occurs only when I import that library in some other project.
Repo:
https://github.com/Jitra/shipbattle-generatorv2 working in here npm start
React repo importing npm package:
https://github.com/Jitra/react-shipbattle-generator-example not working here
Old version with worker-loader
https://github.com/Jitra/shipbattle-generator

I appreciate your work for using webworker with module imports. Any plans of supporting web workers that are imported from node_modules lib. Now there are two libraries:
worker-loader Works imported from node_modules, by inline:true, but no web worker type: module supported
worker-plugin supports worker type: module, but but not inlining as plugin above :(
I wish to switch from worker-loader to this plugin for module importing support in web workers but I stuck

Bundling a worker to a data URI is generally not a good idea. It's putting extra strain on the parser in the main thread for no reason.
I'm not sure there is a reasonable way to make this work - webpack's output isn't really designed to be nested inside another Webpack bundle, it breaks things like pathing.

Im running in the same issue with a library I published some time ago. Worker-loader is failing to recognize the inline option so I had to move to worker-plugin, but I'm still not being able to get it to a working state. Is there any way to mirror worker-loader's inline method ?
Repo: https://github.com/altinselimi/kalendar/tree/worker-plugin

So what would be the right way of creating an npm library with a builtin web worker?

@maksnester rollup as a bundler. Check out my kalendar repo for an example.


Degradation example update

The experiment protocol for the coupled degradation example notebook was changed so that the 5 minute period applied to all stepts of all cycles, including the 1C discharge. This results in the simulation being unstable for large numbers of cycles. This pull request reverts the change and fixes the issue.
Fixes #3669
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[x] Bug fix (non-breaking change which fixes an issue)

The change looks good. You have some really old commits on this branch though. The other PR you closed was from your develop branch and did the same thing. My guess is that you should reset your develop branch to the main pybamm develop branch

Also you have some reverts, so it might be best to squash this PR to a single commit


Support Telegram Bot API v2.0

Today Telegram introduced many interesting features like:

Inline Keyboards.
Callback buttons.
Switch to inline buttons.
Updating messages.
Location and telephone access.
Inline bots 2.0 (with support for 19 content types).

https://core.telegram.org/bots/2-0-intro
Here there is the complete changelog.
Keep up the amazing work, thanks.

Hi and thanks for letting me know about api updates. Will implement these features in a couple of days.

Thanks you rock!

will be waiting for entities and inline keyboards/message edit :relaxed:

Thank you for being so quick 😊

I've just released 0.5.0.beta2,update your gemfiles with following:
gem 'telegram-bot-ruby', '~> 0.5.0.beta2'

Please give it a try and let me know if any errors occur.


Consider GHCR instead of Dockerhub

I would choose it if only to reduce the number of technologies used.
No practical difference in how people pull the images.
A comparison here https://dev.to/github/github-container-registry-better-than-docker-hub-1o9k

We have asked the maintainers of RDFLib for a plan for the use of GHCR for Prez alongside GHCR for the mail RDFLib. They (2/5 maintainers) are keen to write GitHub actions  to produce an RDFLib image which we, Prez maintainers, can then copy. ETA on this is end of this week (17th Sept) so we should have a Prez image in GHCR next week.


[BUG] zlib decompression error when starting the camera

Please only report one bug per issue!
Describe the bug
I occasionally get a zlib decompression error when starting the camera. Restarting the script fixes it. So far, it's always either been an "incorrect header check", or a "missing end-of-block" error.
To Reproduce
I haven't found a way to reproduce it consistently. It only happens very rarely.
This is the code I'm using to start the camera:
camera = Picamera2()
camera_config = camera.create_preview_configuration(
    main={"size": (3200, 1300)}
)
camera.configure(camera_config)
camera.set_controls(
    {
        "ExposureTime": 400,
        "AnalogueGain": 0,
        "FrameDurationLimits": (1000000 // 30, 1000000 // 30),
    }
)
camera.start()

Expected behaviour
The camera.start() call should finish without any errors.
Console Output, Screenshots
Here is the console output from two separate times when it happened.
[0:04:00.900973948] [905] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3 897-c3c878a9
[0:04:00.920625022] [925] WARN CameraSensorProperties camera_sensor_properties. cpp:174 No static properties available for 'arducam-pivariety'
[0:04:00.920688466] [925] WARN CameraSensorProperties camera_sensor_properties. cpp:176 Please consider updating the camera sensor properties database
[0:04:00.936904651] [925] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
terminate called after throwing an instance of 'std::runtime_error'
what(): Exception during zlib decompression: (-3) invalid code -- missing end-of-block
Aborted

[0:25:01.696907566] [1043] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3897-c3c878a9
[0:25:01.719578548] [1064] WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'arducam-pivariety'
[0:25:01.719651770] [1064] WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:25:01.728315029] [1064] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
terminate called after throwing an instance of 'std::runtime_error'
what(): Exception during zlib decompression: (-3) incorrect header check

Hardware :
Raspberry Pi: Raspberry Pi 4 model B
Camera: Arducam 2MP*2 Stereo Camera for Raspberry Pi, Nvidia Jetson Nano/Xavier NX, Dual OV2311 Monochrome Global Shutter
OS: Raspbian GNU/Linux 11 (bullseye)
Python: 3.9.2
picamera2: 0.3.8
Additional context

Hi, I'm not really sure what zlib is doing here. So far as I know I don't think we ever call it, though it's hard always to be certain exactly what lurks underneath all the Python modules that we import. Nonetheless, I'm a bit suspicious that you're using some Arducam software or modifications that may be related to the error.
If you can demonstrate the problem with an official Raspberry Pi camera, or do a bit more digging to pinpoint where the error is coming from, then I can take a look. Otherwise you might have more luck reaching out to Arducam for support. Sorry not to be more help.


sfizz activates Shell section in FL Studio 12.4.2

The new versions of Sfizz has this thing in FL Studio, where you have to choose one plugin because "is a plugin that contains other plugins" before load it, which doesn't make sense, and if i try to clone sfizz, it crash the entire DAW, this thing wasn't happening in my old version of Sfizz. Hope you guys fix this soon because sfizz is awesome.

Hmm it could be because we now have 2 versions with a different number of outputs. Thanks for the report!

Afaik "shell" plugins are a VST2-specific feature.
It's the feature that lets multiple plugins be packed in one single dll.
@michael02022, are you using a self-built VST2 version of sfizz?
only the VST3 build is released officially

Afaik "shell" plugins are a VST2-specific feature. It's the feature that lets multiple plugins be packed in one single dll.
@michael02022, are you using a self-built VST2 version of sfizz? only the VST3 build is released officially
@jpcima I'm using the official VST3 version of the plugin

The multi-output version is already working.
Test using Seib's VST Host. Multi-out version has multiple channel led-meter (yellow box) :

Each sample goes into each separated output, in this simple example :
<group>
loop_mode=one_shot

<region>
sample=kick.wav
key=60
output=1

<region>
sample=snare.wav
key=62
output=2

<region>
sample=hat.wav
key=64
output=3

<region>
sample=crash.wav
key=65
output=4

Shell plugin also common in Pro Tools.
Both sforzando and ARIA Player uses shell-style for the Stereo and Multi-Out versions, in a single dll file.
They have different name, eg : sforzando and sforzando (Multi) :
although, the sforzando Multi-out version is not working via output opcode

Loading sfizz VST3 in VST Host, currently the name is the same for both version :

@kinwie now the multi-out version should appear as sfizz-multi.
@michael02022 I can reproduce some pretty bad behavior in FL Studio, but the crashes I experience are due to VSTGUI and not really to the multi-out version. On a side note, the "plugin containing other plugins" is probably going to stay, but we'll find a way to make it work properly. Thanks for the report!

I'd like to take the new changes for a test drive, but there's no build of the current version yet, is there? (for Mac)

There is an artifact here: https://github.com/sfztools/sfizz/actions/runs/2735365460
Hopefully it should work

It works! Well, kind of.
The issues of vendor, version number, and duplicate entries are all taken care of.
But it fails validation in Logic Pro. Is that related to that it's unsigned, or something totally different?

Try with https://github.com/sfztools/sfizz/runs/7563839178, I made a small change and it works in my logic pro.

Yes, perfect now. Thanks!!!

@michael02022 I've tried it with the latest FL studio on Windows and it works well, if you can try the latest artifacts from https://github.com/sfztools/sfizz/actions/runs/2764058154? What platform are you using?


[stable/memcached] Add olemarkus as maintainer for this chart

What this PR does / why we need it:
Add myself as maintainer to this chart.

/assign

@gtaylor Are you ok with adding @olemarkus as maintainer?

Merging this now taking the silence as consent.

/lgtm


SegFault on reverb.reset() in Ardour;

Hi,
Ardour scan process crashes, blaiming WavetableAudioProcessor::reset()
more deep debug led to gin's platereverb reset function:
Thread 1 "ardour-vst3-sca" received signal SIGSEGV, Segmentation fault.
0x00007ffff35b7bb1 in gin::PlateReverb<float, int>::DelayLine::reset (this=0x0) at /home/kv/src/audio/Wavetable/modules/gin/modules/gin_dsp/dsp/gin_platereverb.h:361
361                 std::memset (&buffer[0], 0, ceilPowerOfTwo (size) * sizeof (F));

Can you try this version and see if it fixes it? https://github.com/FigBug/Wavetable/actions/runs/6298716921

yes it fixed, thnx!


Improve feedback for the command line interface

The following command does not output anything:
$ tabris awertargfafqaw4g
I would expect a standard error that this is not a supported command and a list of supported commands. This would be a similar behavior to other tools we work with on the same level of analysis, i.e. "cordova" and "git".

Thanks for your feedback. Please open the issue on https://github.com/eclipsesource/tabris-js-cli.

https://github.com/eclipsesource/tabris-js-cli/issues/30


[prod nighlty] 7.13.0

Thank you for submitting this pull request
JIRA: (please edit the JIRA link if it exists)
link
referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)

referenced pull request 1
referenced pull request 2
referenced pull request 2
etc.

How to retest a PR or trigger a specific build:

* a pull request please add comment: Jenkins retest this

looks good so that https://github.com/kiegroup/kie-jenkins-scripts/pull/1118/files#diff-9d55ce9075a526a3684617ae54e1f15ee81673ba5c89794b916086a8ffacc4d9R40 can be updated always on the top of job, which creates the new branches

looks good so that https://github.com/kiegroup/kie-jenkins-scripts/pull/1118/files#diff-9d55ce9075a526a3684617ae54e1f15ee81673ba5c89794b916086a8ffacc4d9R40 can be updated always on the top of job, which creates the new branches
https://issues.redhat.com/browse/BXMSPROD-1483


PR: Update container build to fix "graphviz" compilation issue.

This PR fixes the container build issues reported in #24.
I also hardcoded the ctan mirror to the RIT one in NY as the New Zealand one, automatically picked for me had an invalid certificate:
#11 sha256:32eddce68b32e913568aeb2b8bb5a649b0cc6687721e5aa95d1e6db0bf6c6bbb
#11 0.703 --2021-08-21 20:37:04--  http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
#11 0.703 Resolving mirror.ctan.org (mirror.ctan.org)... <IP_ADDRESS>
#11 0.726 Connecting to mirror.ctan.org (mirror.ctan.org)|<IP_ADDRESS>|:80... connected.
#11 1.044 HTTP request sent, awaiting response... 302 Found
#11 2.180 Location: https://mirror.aut.ac.nz/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz [following]
#11 2.180 --2021-08-21 20:37:06--  https://mirror.aut.ac.nz/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
#11 2.205 Resolving mirror.aut.ac.nz (mirror.aut.ac.nz)... <IP_ADDRESS>
#11 2.238 Connecting to mirror.aut.ac.nz (mirror.aut.ac.nz)|<IP_ADDRESS>|:443... connected.
#11 2.329 ERROR: cannot verify mirror.aut.ac.nz's certificate, issued by '/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA':
#11 2.329   Unable to locally verify the issuer's authority.
#11 2.329 To connect to mirror.aut.ac.nz insecurely, use `--no-check-certificate'.

@michdolan : I merged but realised you did not review! Sorry about that! Should be all good hopefully though.


Figure out how to best call Sphinx from Python

Most people interact with Sphinx via the command line (in particular, sphinx-build). We'll want to interact with it from within Python as a part of the controller process.
It looks like the Sphinx building / initializing step is here:
https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/cmd/build.py#L269
However, there is some logic in there that we should investigate. In particular, there are some context managers that seem to be patching docutils before calling the Sphinx app, and also some parsing of arguments etc. We should make sure those aren't doing something important before just calling Sphinx(
Maybe @chrisjsewell has experience with this?

Yeh, for all the good things about Sphinx, documentation for using its API is not one!

We should make sure those aren't doing something important before just calling Sphinx(

I would definitely say that Sphinx should be called within these context manager's.
Related to this, myst_parser.docutils_renderer.SphinxRenderer now contains options to run them within a 'minimal' Sphinx environment, which uses these contexts managers. See its use at: https://myst-parser.readthedocs.io/en/latest/using/use_api.html#sphinx-renderer

Nice - I am learning a little bit about Click now so will try and mock-up a prototype. Between the myst_parser and myst_nb packages, this yaml metadata plugin, and this global toc plugin I think we have all we need for a (very alpha) CLI.

(as an aside click is so much more intuitive than argparse, omg)

(as an aside click is so much more intuitive than argparse, omg)

Exactly, its just a lot more Object-Orientated, and thus modular. Definitely look at how I have structured it injupyter-cache; with separate cmnd_ modules and re-usable arguments/options.

This should be importable -- but doesn't seem documented. I don't think many call sphinx-build through a python API. https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/cmd/make_mode.py

I'm working on this and should push a prototype to this repo soon!

OK, just merged #2 which gives us a working CLI! I will try and sharpen this up but it'd be great if others took a look at the general scope of what it's doing to see if this makes sense at all. Once we are OK with the structure we can write some tests and docs.
It's focusing on HTML outputs right now, but should be easy to add Latex/PDF outputs.

ok thanks @choldgraf will take a look.

this now works - still improvements to be made I'm sure, but I think good enough to close this issue


Power BI dashboard in AppSource not up to date

Is it possible that the CoE Power BI dashboard in AppSource is not up to date?
I have the latest version from AppSource and don't see the "UI Flows" tab for example...

Correct. App Source version is not up to date.
We are releasing a new version of a the PBI with a few fixes shortly. I'll respond here for you to download it when ready.

Hello, a new version of the PBI template is available. please utilize, and if you see bugs, please post them.
We will not be keeping the version on AppSource up to date.
Thanks for using CoE!


feat(Windows): add functions to clear effects

Saw someone request this on the tauri discord, and since I had already had a peek at the source, decided to add some functionality.
Adds functions to clear the vibrancy effects on Windows. (clear_mica and clear_effects)
Only tested on Windows 10, and it works perfectly for me using apply_blur and apply_acrylic.
Has not been tested on Win 7 or 11. Unsure if the non-dwmsbt block in clear_mica works. Not super acquainted with either and only have a win10 machine right now, so 7&11 may very well be non-functioning.

Thank you again. You should look into signing your commits.

Thank you again. You should look into signing your commits.

No problem! Super new to this to be honest. I'll look into that, I've just been using github desktop since I'm not on my linux machine. Also you might want to change the "available methods" list in the README to add the new ones so people know.

will do.


should add tests check to the CI system

should run tests (via docker-compose commands) on the build stage

verified, closed.


HIVE-24168: Disable hdfsEncryptionShims cache during query-based comp…

Hive keeps a cache of encryption shims in SessionState (Map<URI, HadoopShims.HdfsEncryptionShim> hdfsEncryptionShims). Each encryption shim in the cache stores a FileSystem object.
After compaction where the session user is not the same user as the owner of the partition/table directory, we close all FileSystem objects associated with the user running the compaction, possibly closing an FS stored in the encryption shim cache. The next time query-based compaction is run on a table/partition owned by the same user, compaction will fail in MoveTask[1] since the FileSystem stored in the cache was closed.
This change disables the cache during query-based compaction (optionally; default: disabled).
[1] Error:
{code:java}
2020-09-08 11:23:50,170 ERROR org.apache.hadoop.hive.ql.Driver: [rncdpdev-2.fyre.ibm.com-27]: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask. java.io.IOException: Filesystem closed. org.apache.hadoop.hive.ql.metadata.HiveException: java.io.IOException: Filesystem closed

@szlta What you say makes sense. The only issue being that if we have one session-level config controlling the cache, and we use it to always turn off the cache during compaction, we'll never allow turning it back on during compaction – this fix wouldn't be behind a feature flag. I'm tentatively okay with this – @zchovan are you ok with this?


DeprecationWarning

Getting the following issue while using your DonationLogger:
(node:3272) DeprecationWarning: TextChannel#sendEmbed: use TextChannel#send instead

I solved this here #2
But still waiting my pull request be merged

Sorry about that. this project has been silently running in the back ground for so long i forgot it existed. I approved the pull request.


undeclared identifier 'max_align_t' when compiling libgit2

I'm not sure if the issue is with wasi-sdk or libgit2. I'm not super experienced in C programming but the error message is from wasi-sysroot/include/__struct_sockaddress_in.h, so I'm posting it here. Any hints?
(There is a port to emscripten at https://github.com/petersalomonsen/wasm-git/, but I'd like to compile it without emscripten.)
I use the following bash script to download and compile libgit2:
#!/usr/bin/bash
set -e
cd "$(dirname "$0")" || exit 1
rm -rf libgit2 build
git clone https://github.com/libgit2/libgit2 --depth 1

cd libgit2
# with NODEFS we can't open a file for writing if mode is set to 0444
sed -i 's/GIT_PACK_FILE_MODE 0444/GIT_PACK_FILE_MODE 0644/g' src/pack.h
sed -i 's/GIT_OBJECT_FILE_MODE 0444/GIT_OBJECT_FILE_MODE 0644/g' src/odb.h
cd ..

mkdir build
cd build

export CC=../../wasi-sdk-8.0/bin/clang
export CXX=../../wasi-sdk-8.0/bin/clang++
cmake \
    -DCMAKE_C_COMPILER_TARGET=wasm32-unkown-wasi -DCMAKE_C_FLAGS="-v --sysroot=$(pwd)/../../wasi-sdk-8.0/share/wasi-sysroot -Wno-incompatible-pointer-types" \
    -DCMAKE_VERBOSE_MAKEFILE=true \
    -DREGEX_BACKEND=regcomp -DSONAME=OFF -DUSE_HTTPS=OFF -DBUILD_SHARED_LIBS=OFF -DTHREADSAFE=OFF -DUSE_SSH=OFF -DBUILD_CLAR=OFF -DBUILD_EXAMPLES=ON \
    -DUSE_BUNDLED_ZLIB=ON \
    ../libgit2
cmake -build ../libgit2
make
wasm2wat examples/lg2.wasm -o examples/lg2.wat

the output:
Cloning into 'libgit2'...
remote: Enumerating objects: 5989, done.
remote: Counting objects: 100% (5989/5989), done.
remote: Compressing objects: 100% (4599/4599), done.
remote: Total 5989 (delta 225), reused 4935 (delta 182), pack-reused 0
Receiving objects: 100% (5989/5989), 4.21 MiB | 1.34 MiB/s, done.
Resolving deltas: 100% (225/225), done.
-- The C compiler identification is Clang 9.0.0
-- Check for working C compiler: /home/MYUSER/SOMEPATH/wasi-sdk-8.0/bin/clang
-- Check for working C compiler: /home/MYUSER/SOMEPATH/wasi-sdk-8.0/bin/clang - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND)
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM - Success
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC - Failed
-- Performing Test HAVE_STRUCT_STAT_MTIME_NSEC
-- Performing Test HAVE_STRUCT_STAT_MTIME_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_NSEC
-- Performing Test HAVE_STRUCT_STAT_NSEC - Success
-- Performing Test IS_WALL_SUPPORTED
-- Performing Test IS_WALL_SUPPORTED - Success
-- Performing Test IS_WEXTRA_SUPPORTED
-- Performing Test IS_WEXTRA_SUPPORTED - Success
-- Performing Test IS_WDOCUMENTATION_SUPPORTED
-- Performing Test IS_WDOCUMENTATION_SUPPORTED - Success
-- Performing Test IS_WNO_MISSING_FIELD_INITIALIZERS_SUPPORTED
-- Performing Test IS_WNO_MISSING_FIELD_INITIALIZERS_SUPPORTED - Success
-- Performing Test IS_WSTRICT_ALIASING_SUPPORTED
-- Performing Test IS_WSTRICT_ALIASING_SUPPORTED - Success
-- Performing Test IS_WSTRICT_PROTOTYPES_SUPPORTED
-- Performing Test IS_WSTRICT_PROTOTYPES_SUPPORTED - Success
-- Performing Test IS_WDECLARATION_AFTER_STATEMENT_SUPPORTED
-- Performing Test IS_WDECLARATION_AFTER_STATEMENT_SUPPORTED - Success
-- Performing Test IS_WSHIFT_COUNT_OVERFLOW_SUPPORTED
-- Performing Test IS_WSHIFT_COUNT_OVERFLOW_SUPPORTED - Success
-- Performing Test IS_WUNUSED_CONST_VARIABLE_SUPPORTED
-- Performing Test IS_WUNUSED_CONST_VARIABLE_SUPPORTED - Success
-- Performing Test IS_WUNUSED_FUNCTION_SUPPORTED
-- Performing Test IS_WUNUSED_FUNCTION_SUPPORTED - Success
-- Performing Test IS_WINT_CONVERSION_SUPPORTED
-- Performing Test IS_WINT_CONVERSION_SUPPORTED - Success
-- Performing Test IS_WFORMAT_SUPPORTED
-- Performing Test IS_WFORMAT_SUPPORTED - Success
-- Performing Test IS_WFORMAT_SECURITY_SUPPORTED
-- Performing Test IS_WFORMAT_SECURITY_SUPPORTED - Success
-- Performing Test IS_WNO_DOCUMENTATION_DEPRECATED_SYNC_SUPPORTED
-- Performing Test IS_WNO_DOCUMENTATION_DEPRECATED_SYNC_SUPPORTED - Success
-- Looking for futimens
-- Looking for futimens - found
-- Checking prototype qsort_r for HAVE_QSORT_R_BSD - False
-- Checking prototype qsort_r for HAVE_QSORT_R_GNU - False
-- Looking for qsort_s
-- Looking for qsort_s - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Found OpenSSL: /usr/lib32/libcrypto.so (found version "1.1.1e")
-- Found mbedTLS:
--   version 2.16.5
--   TLS: /usr/lib/libmbedtls.so
--   X509: /usr/lib/libmbedx509.so
--   Crypto: /usr/lib/libmbedcrypto.so
-- Found PCRE: /usr/lib32/libpcre.so
-- http-parser version 2 was not found or disabled; using bundled 3rd-party sources.
-- Performing Test IS_WIMPLICIT_FALLTHROUGH_1_SUPPORTED
-- Performing Test IS_WIMPLICIT_FALLTHROUGH_1_SUPPORTED - Failed
-- Performing Test IS_WNO_IMPLICIT_FALLTHROUGH_SUPPORTED
-- Performing Test IS_WNO_IMPLICIT_FALLTHROUGH_SUPPORTED - Success
-- LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.
-- Found GSSAPI: /usr/lib32/libgssapi_krb5.so;/usr/lib32/libkrb5.so;/usr/lib32/libk5crypto.so;/usr/lib32/libcom_err.so
-- Enabled features:
 * nanoseconds, whether to use sub-second file mtimes and ctimes
 * tracing, tracing support
 * SHA, using CollisionDetection
 * regex, using system regcomp
 * http-parser, http-parser support (bundled)
 * zlib, using bundled zlib

-- Disabled features:
 * debugpool, debug pool allocator
 * threadsafe, threadsafe support
 * HTTPS
 * SSH, SSH transport support
 * ntlmclient, NTLM authentication support for Unix
 * SPNEGO, SPNEGO authentication support
 * iconv, iconv encoding conversion support

-- Configuring done
-- Generating done
-- Build files have been written to: /home/MYUSER/SOMEPATH/libgit2/build
-- Could NOT find Threads (missing: Threads_FOUND)
-- Checking prototype qsort_r for HAVE_QSORT_R_BSD - False
-- Checking prototype qsort_r for HAVE_QSORT_R_GNU - False
-- Found mbedTLS:
--   version 2.16.5
--   TLS: /usr/lib/libmbedtls.so
--   X509: /usr/lib/libmbedx509.so
--   Crypto: /usr/lib/libmbedcrypto.so
-- http-parser version 2 was not found or disabled; using bundled 3rd-party sources.
-- LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.
-- Enabled features:
 * nanoseconds, whether to use sub-second file mtimes and ctimes
 * tracing, tracing support
 * SHA, using CollisionDetection
 * regex, using system regcomp
 * http-parser, http-parser support (bundled)
 * zlib, using bundled zlib

-- Disabled features:
 * debugpool, debug pool allocator
 * threadsafe, threadsafe support
 * HTTPS
 * SSH, SSH transport support
 * ntlmclient, NTLM authentication support for Unix
 * SPNEGO, SPNEGO authentication support
 * iconv, iconv encoding conversion support

-- Configuring done
-- Generating done
-- Build files have been written to: /home/MYUSER/SOMEPATH/libgit2/build
/usr/bin/cmake -S/home/MYUSER/SOMEPATH/libgit2/libgit2 -B/home/MYUSER/SOMEPATH/libgit2/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/MYUSER/SOMEPATH/libgit2/build/CMakeFiles /home/MYUSER/SOMEPATH/libgit2/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/MYUSER/SOMEPATH/libgit2/build'
make -f src/CMakeFiles/git2internal.dir/build.make src/CMakeFiles/git2internal.dir/depend
make[2]: Entering directory '/home/MYUSER/SOMEPATH/libgit2/build'
cd /home/MYUSER/SOMEPATH/libgit2/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/MYUSER/SOMEPATH/libgit2/libgit2 /home/MYUSER/SOMEPATH/libgit2/libgit2/src /home/MYUSER/SOMEPATH/libgit2/build /home/MYUSER/SOMEPATH/libgit2/build/src /home/MYUSER/SOMEPATH/libgit2/build/src/CMakeFiles/git2internal.dir/DependInfo.cmake --color=
Scanning dependencies of target git2internal
make[2]: Leaving directory '/home/MYUSER/SOMEPATH/libgit2/build'
make -f src/CMakeFiles/git2internal.dir/build.make src/CMakeFiles/git2internal.dir/build
make[2]: Entering directory '/home/MYUSER/SOMEPATH/libgit2/build'
[  1%] Building C object src/CMakeFiles/git2internal.dir/alloc.c.o
cd /home/MYUSER/SOMEPATH/libgit2/build/src && /home/MYUSER/SOMEPATH/wasi-sdk-8.0/bin/clang --target=wasm32-unkown-wasi -DSHA1DC_CUSTOM_INCLUDE_SHA1_C=\"common.h\" -DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C=\"common.h\" -DSHA1DC_NO_STANDARD_INCLUDES=1 -D_FILE_OFFSET_BITS=64 -I/home/MYUSER/SOMEPATH/libgit2/build/src -I/home/MYUSER/SOMEPATH/libgit2/libgit2/src -I/home/MYUSER/SOMEPATH/libgit2/libgit2/include -I/home/MYUSER/SOMEPATH/libgit2/libgit2/deps/http-parser -I/home/MYUSER/SOMEPATH/libgit2/libgit2/deps/zlib  -D_GNU_SOURCE -v --sysroot=/home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot -Wno-incompatible-pointer-types -Wall -Wextra -Wdocumentation -Wno-missing-field-initializers -Wstrict-aliasing -Wstrict-prototypes -Wdeclaration-after-statement -Wshift-count-overflow -Wunused-const-variable -Wunused-function -Wint-conversion -Wformat -Wformat-security -Wno-documentation-deprecated-sync -g -D_DEBUG -O0   -std=gnu90 -o CMakeFiles/git2internal.dir/alloc.c.o   -c /home/MYUSER/SOMEPATH/libgit2/libgit2/src/alloc.c
clang version 9.0.0 (https://github.com/llvm/llvm-project 0399d5a9682b3cef71c653373e38890c63c4c365)
Target: wasm32-unkown-wasi
Thread model: posix
InstalledDir: /home/MYUSER/SOMEPATH/wasi-sdk-8.0/bin
 "/home/MYUSER/SOMEPATH/wasi-sdk-8.0/bin/clang-9" -cc1 -triple wasm32-unkown-wasi -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name alloc.c -mrelocation-model static -mthread-model posix -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -fvisibility hidden -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -v -coverage-notes-file /home/MYUSER/SOMEPATH/libgit2/build/src/CMakeFiles/git2internal.dir/alloc.c.gcno -resource-dir /home/MYUSER/SOMEPATH/wasi-sdk-8.0/lib/clang/9.0.0 -D "SHA1DC_CUSTOM_INCLUDE_SHA1_C=\"common.h\"" -D "SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C=\"common.h\"" -D SHA1DC_NO_STANDARD_INCLUDES=1 -D _FILE_OFFSET_BITS=64 -I /home/MYUSER/SOMEPATH/libgit2/build/src -I /home/MYUSER/SOMEPATH/libgit2/libgit2/src -I /home/MYUSER/SOMEPATH/libgit2/libgit2/include -I /home/MYUSER/SOMEPATH/libgit2/libgit2/deps/http-parser -I /home/MYUSER/SOMEPATH/libgit2/libgit2/deps/zlib -D _GNU_SOURCE -D _DEBUG -isysroot /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot -internal-isystem /home/MYUSER/SOMEPATH/wasi-sdk-8.0/lib/clang/9.0.0/include -internal-isystem /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/wasm32-wasi -internal-isystem /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include -O0 -Wno-incompatible-pointer-types -Wall -Wextra -Wdocumentation -Wno-missing-field-initializers -Wstrict-aliasing -Wstrict-prototypes -Wdeclaration-after-statement -Wshift-count-overflow -Wunused-const-variable -Wunused-function -Wint-conversion -Wformat -Wformat-security -Wno-documentation-deprecated-sync -std=gnu90 -fdebug-compilation-dir /home/MYUSER/SOMEPATH/libgit2/build/src -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gnustep -fno-common -fdiagnostics-show-option -o CMakeFiles/git2internal.dir/alloc.c.o -x c /home/MYUSER/SOMEPATH/libgit2/libgit2/src/alloc.c
clang -cc1 version 9.0.0 based upon LLVM 9.0.0 default target wasm32-wasi
ignoring nonexistent directory "/home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/wasm32-wasi"
#include "..." search starts here:
#include <...> search starts here:
 /home/MYUSER/SOMEPATH/libgit2/build/src
 /home/MYUSER/SOMEPATH/libgit2/libgit2/src
 /home/MYUSER/SOMEPATH/libgit2/libgit2/include
 /home/MYUSER/SOMEPATH/libgit2/libgit2/deps/http-parser
 /home/MYUSER/SOMEPATH/libgit2/libgit2/deps/zlib
 /home/MYUSER/SOMEPATH/wasi-sdk-8.0/lib/clang/9.0.0/include
 /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include
End of search list.
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/alloc.c:10:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/allocators/stdalloc.h:11:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/common.h:74:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/arpa/inet.h:9:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/netinet/in.h:10:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/sys/socket.h:5:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__header_sys_socket.h:5:
/home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__struct_sockaddr.h:10:14: error: use of undeclared identifier 'max_align_t'
    _Alignas(max_align_t) sa_family_t sa_family;
             ^
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/alloc.c:10:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/allocators/stdalloc.h:11:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/common.h:74:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/arpa/inet.h:9:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/netinet/in.h:10:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/sys/socket.h:5:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__header_sys_socket.h:6:
/home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__struct_sockaddr_storage.h:10:14: error: use of undeclared identifier 'max_align_t'
    _Alignas(max_align_t) sa_family_t ss_family;
             ^
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/alloc.c:10:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/allocators/stdalloc.h:11:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/common.h:74:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/arpa/inet.h:9:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/netinet/in.h:13:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__header_netinet_in.h:6:
/home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__struct_sockaddr_in.h:12:14: error: use of undeclared identifier 'max_align_t'
    _Alignas(max_align_t) sa_family_t sin_family;
             ^
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/alloc.c:10:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/allocators/stdalloc.h:11:
In file included from /home/MYUSER/SOMEPATH/libgit2/libgit2/src/common.h:74:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/arpa/inet.h:9:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/netinet/in.h:13:
In file included from /home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__header_netinet_in.h:7:
/home/MYUSER/SOMEPATH/libgit2/build/../../wasi-sdk-8.0/share/wasi-sysroot/include/__struct_sockaddr_in6.h:12:14: error: use of undeclared identifier 'max_align_t'
    _Alignas(max_align_t) sa_family_t sin6_family;
             ^
4 errors generated.
make[2]: *** [src/CMakeFiles/git2internal.dir/build.make:83: src/CMakeFiles/git2internal.dir/alloc.c.o] Error 1
make[2]: Leaving directory '/home/MYUSER/SOMEPATH/libgit2/build'
make[1]: *** [CMakeFiles/Makefile2:178: src/CMakeFiles/git2internal.dir/all] Error 2
make[1]: Leaving directory '/home/MYUSER/SOMEPATH/libgit2/build'
make: *** [Makefile:150: all] Error 2

This is quite easily reproducible with:
$ echo "#include <sys/socket.h>" > test.c
$ ./bin/clang --sysroot share/wasi-sysroot/ -std=c90 test.c
In file included from test.c:1:
In file included from share/wasi-sysroot//include/sys/socket.h:5:
In file included from share/wasi-sysroot//include/__header_sys_socket.h:5:
share/wasi-sysroot//include/__struct_sockaddr.h:10:14: error: use of undeclared identifier 'max_align_t'
    _Alignas(max_align_t) sa_family_t sa_family;

``

The problem looks like `max_align_t` type doesn't get defined with `-std=c90`.   clang''s stddef.h only includes it for C11 and above:

https://github.com/llvm/llvm-project/blob/3a7865df626c061fa72cb731f0af763254ed3beb/clang/lib/Headers/stddef.h#L102

We probably need to fix `__struct_sockaddr.h` not to rely on it..

Thanks, I tried to minimize the example by trying to include different thing, but I didn't try sys/socket.h. Would the error go away I passed -std=c11 to clang?

Yup, or just dropping c90 (since c11 is the default).   But still we need to fix the actual issue in the SDK.

Any news on this?

I've now submitted https://github.com/WebAssembly/wasi-libc/pull/335 to fix this.


Synology Install Error

Hi, I've been able to install Jump without issue on my MacBook, but when I install to my Synology NAS using the same .yml file, I receive the error below.  The error only appears after trying to navigate to the startpage in the browser on port 8123.  Additionally, when installing to my Synology, Docker kept erroring out saying that each folder (backgrounds, favicon, search, sites) did not exist.  I manually created them, and while it seemed to install correctly after that, the below error was logged when trying to actually use the tool.  Thanks in advance for any insight!
NOTICE: PHP message: PHP Warning:  file_get_contents(/var/www/html/sites/sites.json): Failed to open stream: No such file or directory in /var/www/html/classes/Sites.php on line 75
<IP_ADDRESS> - - [29/Jul/2022:18:28:47 +0000] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" "-" 0.164 0.164 . -
NOTICE: PHP message: PHP Fatal error:  Uncaught Jump\Exceptions\ConfigException: There was a problem loading the sites.json file in /var/www/html/classes/Sites.php:77
Stack trace:
#0 /var/www/html/classes/Sites.php(48): Jump\Sites->load_sites_from_json()
#1 /var/www/html/classes/Cache.php(141): Jump\Sites->Jump{closure}()
#2 /var/www/html/vendor/nette/caching/src/Caching/Cache.php(105): Jump\Cache->Jump{closure}()
#3 /var/www/html/classes/Cache.php(142): Nette\Caching\Cache->load()
#4 /var/www/html/classes/Sites.php(49): Jump\Cache->load()
#5 /var/www/html/classes/Pages/HomePage.php(42): Jump\Sites->__construct()
#6 /var/www/html/classes/Pages/AbstractPage.php(60): Jump\Pages\HomePage->render_header()
#7 /var/www/html/classes/Pages/AbstractPage.php(67): Jump\Pages\AbstractPage->build_page()
#8 /var/www/html/classes/Main.php(69): Jump\Pages\AbstractPage->get_output()
#9 /var/www/html/index.php(22): Jump\Main->init()
#10 {main}
thrown in /var/www/html/classes/Sites.php on line 77

See if you can check in the container if you really do have a sites.json file mounted there, if so what are the permissions etc.
I don't know what difference the Synology NAS makes but docker-compose should create the mapped directories locally if they don't exist, so something has gone wrong there if you had to create them yourself.

It really sounds like the directories have the wrong permissions, so the container can't create the files in them when the entrypoint script runs.

Thanks so much for the quick reply!  Based on your feedback, I was able to get it running by manually copying over the sites.json file from my clean MacBook install as it was missing from my Synology install.  The sites' icon files were also missing, so I copied those over too.  Interestingly, the background images and the favicon file all installed correctly directly on my Synology.  I also originally executed the docker compose command with sudo, so I'm not sure why I wouldn't have had permissions to create these certain objects.  Closing out the issue now as it's currently working for me, but let me know if I can provide any more info about my environment in case you see this again.


Ctrl-Tab doesn't list / switch tabs when in "vim tab mode"

When enabling the "vim tab mode" mentioned in the docs:
  "oni.layout.singleTabMode": true,
  "oni.layout.layoutTabPosition": "top",

I would expect that using ctrl-tab to list the history of buffers, so that I can jump between multiple open files without having to use split.
However, it seems that only the open (aka visible) files are listed, and if a file is not currently visible (for example, when ctrl-tabing away from a file in a split removes it from the list of files shown when ctrl-tabing
https://monosnap.com/file/OpIBT0a4GREfwpI5B6U439QdZY33Z9

Actually, I after thinking about this some more, I wonder if maybe ctrl-tab should maybe not that...
In my setup, vim buffer commands like :ls, :buffers etc don't work (just get a blue bar at the bottom of the screen), I suppose that if those commands did work I would be using them and not posting bug reports that ctrl-tab should cycle through the open (but not visible buffers.) when in "vim tab" mode.
So in that case, I suppose, what is the expected behaviour of ctrl-tab in "vim tab mode", at the moment it allows changing the buffer in the current pane to what ever is ctrl-tabed to (which also closes the old buffer that was ctrl-tabed away from).
I'm not sure how useful the above is, since the same can be achieved with :ls... but what ctrl-tab could be useful is for listing all of the current visible panes and selecting one (so a lazy alternative to ctrl-w hjkl).


Add some ser de testing for ids

Been starting to look at using miniserde in place of serde for deserialization to help compilation times. One place where miniserde Deserialize implementations would need to be hand-written is with the ID handling so just wanted to add some tests to confirm behavior since hopefully those tests would be useful regardless.

So the thought is to attempt to replace miniserde in places where it makes sense, and fall back to serde for the ones we can't?

So the thought is to attempt to replace miniserde in places where it makes sense, and fall back to serde for the ones we can't?

Essentially, though very early stages in the exploration (I'll make an issue if I develop a more concrete idea). That's why I just wanted to start with testing some ser/deser code since that would be useful no matter what happens.

fall back to serde for the ones we can't?

One of the tradeoffs miniserde makes is that it only supports json, so don't think we can ever use it for serialization. The hope would be to handle all deserialization with miniserde, with the main challenge being that miniserde derive does not support enums with data.

An interesting question (partially related to this) is to find out what style of tagging the stripe api uses (https://serde.rs/enum-representations.html) and how feasible it would be to use this https://github.com/etwyniel/miniserde-enum

Gonna run CI just in case and merge, TY

An interesting question (partially related to this) is to find out what style of tagging the stripe api uses (https://serde.rs/enum-representations.html) and how feasible it would be to use this https://github.com/etwyniel/miniserde-enum with the noted caveats:

externally tagged is fine
internally requires the tag to come first in the json
adjacent requires the tag to come first in the json
untagged in not supported at all

I suspect we have the last case here, which makes me wonder about the feasibility of adding support for that. If we could strip out 600k lines of serde macros that would be a huge win.

Yeah that's the unfortunate part, I had stumbled across that crate and seen that too :(. My (perhaps naive) hope is that it's possible to encode the idea of an untagged enum directly with the codegen, e.g. sequentially try deserializing variants until finding one that works.

It should be noted that we would also lose out on serde_path_to_error if we did this, so perhaps a feature flag would be a better choice.

Yeah I think a feature flag will make sense. Beyond losing serde_path_to_error, miniserde purposefully has minimal error info, so not good for debugging / prototyping. A feature flag would also be a good way to keep it as something "experimental" that may not be fully feature-equivalent yet.


[log] {message: Unable to process your request, status: error, code: 0}

And the transaction is shown in API Debug Console-> (developer dashboard) with complete information !!!

Did you find solution


config: New skin for timeline and alert text

I use this with my material-ui and delvui. I wanna to have something similar to Lippe but closer to what I have, so maybe there are ppl want to have sth like this as well.

Thanks!!


Lookup using searchsorted?

Instead of having a big pile of functions for fast findfirst(isequal(x), ::StepRange) etc, perhaps this can be done using searchsorted?

I'm working on cleaning this up in StaticRanges with methods like find_firsteq, find_firstgt, etc., Perhaps that would be of interest.

Oops, wrong link from that commit.
However, what I meant to say here was that I think a great solution to replace my menagerie of  findindex(eq::Base.Fix2{typeof(<=)}, r::StepRange{T}) etc. methods is to use https://github.com/JuliaMath/IntervalSets.jl/issues/52. And for finding one index of a steprange (as in this PR) one can just divide.


Implement Sleeper Agent Poisoning Attack in TensorFlow

Description
Supporting Sleeper Agent Attack in TensorFlow framework
Fixes # (issue)
Type of change
Please check all relevant options.

[ ] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[x] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[ ] Test A
[ ] Test B

Test Configuration:

OS
Python version
ART version or commit number
TensorFlow / Keras / PyTorch / MXNet version

Checklist

[ ] 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
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Codecov Report

Merging #1769 (66b7097) into dev_1.12.0 (45ca8f8) will decrease coverage by 56.21%.
The diff coverage is 0.00%.

@@               Coverage Diff               @@
##           dev_1.12.0    #1769       +/-   ##
===============================================
- Coverage       85.57%   29.35%   -56.22%
===============================================
  Files             271      271
  Lines           23048    23148      +100
  Branches         4103     4114       +11
===============================================
- Hits            19723     6796    -12927
- Misses           2316    16053    +13737
+ Partials         1009      299      -710

Impacted Files
Coverage Δ

art/attacks/poisoning/sleeper_agent_attack.py
0.00% <0.00%> (ø)

art/evaluations/evaluation.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/preprocessing/audio/__init__.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/estimators/object_detection/utils.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/evaluations/security_curve/__init__.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/preprocessing/audio/l_filter/pytorch.py
0.00% <0.00%> (-100.00%)
:arrow_down:

art/attacks/poisoning/perturbations/__init__.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...essing/expectation_over_transformation/__init__.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...rmation/natural_corruptions/contrast/tensorflow.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...formation/natural_corruptions/zoom_blur/pytorch.py
0.00% <0.00%> (-93.94%)
:arrow_down:

... and 183 more

Hi @monshri Thank you very much for your contribution!


tests: Repair functional tests on semaphoreci

This patch repairs functional tests on semaphoreci after the
unsuccessful merge of the pull request (an argument was forgotten).

ok to test

Thanks for jumping in! We already queued a quick fix in https://github.com/coreos/rkt/pull/3584, waiting for confirmation. If that goes wrong, we'll take this PR instead.

Ah, didn't notice that PR. Sure, I will close this one if #3584 merges first.

Closing this PR in preference to #3584.


Gave syntax issue when the resource path has path parameter containing special characters

Description:
Scenario :
The Given API provider URL looks like this /admin/api/2022-07/customers/{customer_id}.json  here customer id is a path parameter and .json is a part of path.
Reference to the API URL https://shopify.dev/api/admin-rest/2022-07/resources/customer#create-2021-10
When we write the resource function for this URL
 resource function get admin/api/'2021\-10/customer/[string customerId]\.json() returns string {
        return "hi test";
    }

This gave syntax issues including missing slash token
@gimantha, @rdulmina any idea to handle this in resource?

Shouldn't this be just
resource function get admin/api/'2021\-10/customer/[string customerId]() returns string {
  return "hi test";
}

Shouldn't this be just
resource function get admin/api/'2021\-10/customer/[string customerId]() returns string {
  return "hi test";
}

In the client perspective we can do something like this by rebuilding path in side the client action logic, but it may have several scenarios path parameter comes.
resource function get admin/api/'2022\-7/customer/[string customerId]() returns string {
        string resourcePath = string `/admin/api/'2021\-10/customer/${getEncodedUri(customerId)}.json`;
    }

But I wonder about the mapping in the service resource function perspective if there is any path parameter function without .json that can be caused to have URL conflict?
@hevayo, @shafreenAnfar could you please provide some input for this?

for the below resource
resource function get admin/api/'2021\-10/customer/[string customerId]() returns string {
  return "hi test";
}

if user calles
cl->/admin/api/'2021\-10/customer/[customerId + ".json"];
we will receive customerId as customerId.json at the resource function side
cl->/admin/api/'2021\-10/customer/[customerId];
we will receive customerId as just the  customerId at the resource function side
Does this satisfy the requirements?


Improve 667 multiple validations in model

won't fix, as discussed offline

How about making it a generation option (e.g. available in ModelSection from yaml config)?


Keba charger should handle UDP broadcast messages

Describe the bug
Keba wallboxes send out UDP broadcast messages without preceding request from evcc.
To Reproduce
Steps to reproduce the behavior:

Do normal PV charging using an attached Keba charger and wait until a curr request creates a race condition with e.g. E pres broadcast

Expected behavior
These UDP broadcasts should be treated separately and should not be interpreted as a response to a previous request.
UDP broadcasts are explained in the Keba KeContact UDP Programmers Guide on page 6. Especially E pres broadcasts are heavily firing, because they work like a pulse output and are generated on every 10Wh power consumption.
❯ grep -i "E pres" Downloads/kebalog.txt
Feb 04 08:55:28 raspberrypi evcc[1410]: [lp-1  ] ERROR 2021/02/04 08:55:28 max charge current 11: curr 10000 unexpected response: {"E pres": 29181}
Feb 04 08:55:28 raspberrypi evcc[1410]: [lp-1  ] ERROR 2021/02/04 08:55:28 curr 10000 unexpected response: {"E pres": 29181}

Das Problem liegt hier https://github.com/andig/evcc/blob/master/charger/keba.go#L132 wo der erste Wert zurückgegeben wird anstatt bis Timeout auf einen passenden zu warten. Das ist racy und keine gute Idee.
Willst Du einen Fix versuchen?


Custom version comparator

It would be a good idea to provide the client with a possibility to write it's own version comparator, I.E.  if we would like to mark the version 1.0.0-b123 as up-to-date if PoV configuration file returns that the latest mandatory version is 1.0.0.

This is obsolete as from version 4.0.0 library doesn't work with version name anymore, but with version code instead.


Modify Some Chinese translations

Summary of the Pull Request
What is this about:
What is include in the PR:
How does someone test / validate:
Quality Checklist

[x] Localization: All end user facing strings can be localized
[ ] Linked issue: #xxx
[ ] Communication: I've discussed this with core contributors in the issue.
[ ] Tests: Added/updated and all pass
[ ] Installer: Added/updated and all pass
[ ] Docs: Added/ updated
[ ] Binaries: Any new files are added to WXS / YML

[ ] No new binaries
[ ] YML for signing for new binaries
[ ] WXS for installer for new binaries

Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.

@XHXIAIEIN
we have an internal process for localization, please open an issue suggesting the change and we will take care of applying the change.
Thanks.

@XHXIAIEIN
we have an internal process for localization, please open an issue suggesting the change and we will take care of applying the change.
Thanks.


[FLINK-33800][JDBC/Connector] Allow passing parameters to database via jdbc url

The idea is pretty straightforward: from one side there is a jdbc url which is normally is provided by most of the dbs providers to connect to.
From the other side for some,  probably historical reasons, there a separate property for default database which is used for default url.
To not break former behaviour it is possible to specify either database in jdbcurl or database with extra parameters only if database is same as ifor a dedicated property for default database.
In fact I tend to think to mark it as a deprecated since all the info could be extracted from jdbc url
so after this PR it is possible to have something like
CREATE CATALOG postgres WITH (
     'type'='jdbc',
     'property-version'='1',
     'base-url'='jdbc:postgresql://my_postgres:12691/defaultdb?sslmode=require',
     'default-database'='defaultdb',
    ...
 );

or similar thing for create table/view

Hi @snuyanzin,
I can imagine that the intention would be to have all the db's with a single catalog, but being mandatory the default-database my assumption can be wrong..
Saying that and being one catalog for db, won't be better to add a new option like url (as table have), and deprecate this two.
It becomes a little strange to have the db on the two option, and base-url being a full url..

this is also related with this: https://github.com/apache/flink-connector-jdbc/pull/74