listing: Do not use lang tag for not supported one by confluence

Do not use lang tag for not supported one by confluence code language

Hi @Aloren, thanks for this pull request. Would you mind first creating an issue in GitHub, quickly describing the problem and the expected behaviour so we can be sure to understand your requirement? That also helps a lot to a) track the features / changes in the release and b) to understand what the pull request is supposed to do. Thank you!

Coverage remained the same at 87.035% when pulling 203c8e75d0b8b0537bd4763d7eae580016279999 on Aloren:feature/listing-do-not-use-lang-tag-for-not-supported-type into cb4406862969f32029399aebf511e8e104348cbf on alainsahli:master.

The following macro:
<ac:structured-macro ac:macro-id="d40afc12-4bd2-4081-980f-dd1416144a30" ac:name="code" ac:schema-version="1">
  <ac:parameter ac:name="language">http</ac:parameter>
  <ac:plain-text-body><![CDATA[HTTP 1.0 GET https://service.com/get/items?key=param1]]></ac:plain-text-body>
</ac:structured-macro>

is not correctly parsed by Confluence if language tag is not supported by code block:
https://confluence.atlassian.com/doc/code-block-macro-139390.html
This is how it is rendered:

see: https://github.com/alainsahli/confluence-publisher/issues/138

Merging PR to pr/aloren/feature/listing-do-not-use-lang-tag-for-not-supported-type for integration into master


Should still transpile import statements for ES6 when --module commonjs

Node.js 4.x now supports enough ES6 syntax that it is desirable to use --target ES6.
But when you specify ES6, TypeScript stops transpiling the import statements, even when the --module commonjs flag is supplied, and Node does not (and apparently will never) support the import syntax.
The combination --target ES6 --module commonjs should result in regular ES6 output but with e.g.
import * as express from "express";
transpiled to
var express = require("express");

Appears that this is already being discussed in #4389 - closing.


Is it possible to reduce MaxPayloadTransferSize ?

Hi,
On our design we can't get video because the MaxPayloadTransferSize is too high.
Is there any way to reduce it to 200 or 300 ? We have tried changing the VIDEO_PACKET_SIZE_ALT1 and VIDEO_PACKET_SIZE_ALT2 value and gstreamer can now open the device but there are no image frames.
Thanks

Is there any update to this? I'm looking to do the same thing.


rocminfo broken inside container?

Not sure if this is a known feature/bug:
$ sudo docker run -it --device=/dev/kfd --device=/dev/dri --group-add video rocm/rocm-terminal
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

rocm-user@98f7ad00522f:~$ rocminfo
hsa api call failure at line 900, file: /home/jenkins/jenkins-root/workspace/compute-rocm-rel-1.9/rocminfo/rocminfo.cc. Call returned 4104
rocm-user@98f7ad00522f:~$ rocm
rocm-smi               rocm_agent_enumerator  rocm_smi.py            rocminfo
rocm-user@98f7ad00522f:~$ rocm-smi

====================    ROCm System Management Interface    ====================
================================================================================
 GPU  Temp    AvgPwr   SCLK     MCLK     Fan      Perf    SCLK OD    MCLK OD
  0   N/A     N/A      N/A      N/A      0%       N/A       N/A        N/A
  1   26c     N/A      852Mhz   167Mhz   0.0%     auto      0%         0%
  2   23c     N/A      852Mhz   167Mhz   0.0%     auto      0%         0%
  3   23c     N/A      852Mhz   167Mhz   0.0%     auto      0%         0%
  4   27c     N/A      852Mhz   167Mhz   0.0%     auto      0%         0%
================================================================================
====================           End of ROCm SMI Log          ====================

I am running on
$ lsb_release -d
Description:	Ubuntu 16.04.4 LTS

with
$ docker --version
Docker version 18.03.1-ce, build 9ee9f40
$ sudo docker images |grep rocm-term
rocm/rocm-terminal        latest                               1c2cc81e67e0        5 days ago          1.83GB
rocm/rocm-terminal        1.9.1                                4cceff492469        2 months ago        1.83GB

similar issue here:
rocm-user@ea6068792841:~$ rocminfo
hsa api call failure at line 900, file: /data/jenkins_workspace/compute-rocm-rel-2.1/rocminfo/rocminfo.cc. Call returned 4104
rocm-user@ea6068792841:~$ rocm-smi

========================        ROCm System Management Interface        ========================
================================================================================================
GPU   Temp   AvgPwr   SCLK    MCLK    PCLK           Fan     Perf    PwrCap   SCLK OD   MCLK OD  GPU%
0     50.0c  N/A      852Mhz  167Mhz  8.0GB, x16     16.86%  auto    N/A      0%        0%       N/A
================================================================================================
========================               End of ROCm SMI Log              ========================

rocm-user@ea6068792841:~$ lspci -n -d 1002:
08:00.0 0300: 1002:687f (rev c3)
08:00.1 0403: 1002:aaf8

system information:
➜ lsb_release -d
Description:    Ubuntu 18.04.1 LTS
➜ docker --version
Docker version 18.09.1, build 4c52b90
➜ docker images |grep rocm-term
rocm/rocm-terminal   latest              1fe2ba083882        2 days ago          1.91GB

What's the rock-dkms driver installed on your bare metal setup?
Please provide the following logs from your bare metal setup:
uname -a
apt --installed list | grep rock-dkms
dmesg | grep amdgpu

➜ uname -a
Linux gamma 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

➜ apt --installed list | grep rock-dkms

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

rock-dkms/Ubuntu 16.04,now 2.1-96 all [installed,automatic]

➜ dmesg | grep amdgpu
[    1.676268] [drm] amdgpu kernel modesetting enabled.
[    1.676268] [drm] amdgpu version: <IP_ADDRESS>8
[    1.677432] fb: switching to amdgpudrmfb from EFI VGA
[    1.683245] amdgpu 0000:08:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
[    1.683288] amdgpu 0000:08:00.0: VRAM: 8176M 0x000000F400000000 - 0x000000F5FEFFFFFF (8176M used)
[    1.683291] amdgpu 0000:08:00.0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[    1.683293] amdgpu 0000:08:00.0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[    1.683370] [drm] amdgpu: 8176M of VRAM memory ready
[    1.683372] [drm] amdgpu: 8176M of GTT memory ready.
[    2.164082] amdgpu 0000:08:00.0: ring gfx uses VM inv eng 0 on hub 0
[    2.164085] amdgpu 0000:08:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    2.164087] amdgpu 0000:08:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    2.164089] amdgpu 0000:08:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    2.164091] amdgpu 0000:08:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    2.164093] amdgpu 0000:08:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    2.164095] amdgpu 0000:08:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    2.164097] amdgpu 0000:08:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    2.164099] amdgpu 0000:08:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    2.164101] amdgpu 0000:08:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[    2.164103] amdgpu 0000:08:00.0: ring sdma0 uses VM inv eng 0 on hub 1
[    2.164105] amdgpu 0000:08:00.0: ring page0 uses VM inv eng 1 on hub 1
[    2.164106] amdgpu 0000:08:00.0: ring sdma1 uses VM inv eng 4 on hub 1
[    2.164108] amdgpu 0000:08:00.0: ring page1 uses VM inv eng 5 on hub 1
[    2.164110] amdgpu 0000:08:00.0: ring uvd_0 uses VM inv eng 6 on hub 1
[    2.164112] amdgpu 0000:08:00.0: ring uvd_enc_0.0 uses VM inv eng 7 on hub 1
[    2.164114] amdgpu 0000:08:00.0: ring uvd_enc_0.1 uses VM inv eng 8 on hub 1
[    2.164116] amdgpu 0000:08:00.0: ring vce0 uses VM inv eng 9 on hub 1
[    2.164118] amdgpu 0000:08:00.0: ring vce1 uses VM inv eng 10 on hub 1
[    2.164120] amdgpu 0000:08:00.0: ring vce2 uses VM inv eng 11 on hub 1
[    2.164974] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:08:00.0 on minor 0

@jiachengpan Thanks, those all look good.
Could you try to use sudo when querying rocminfo?
sudo /opt/rocm/bin/rocminfo

thanks!
actually it looks rocminfo works well now in docker, w/ or w/o sudo.
perhaps I upgraded rocm packages yesterday but never rebooted the machine...

I have the same problem, I was following the installation instuctions of pytorch docker setup.
I'm getting this error when I do sudo /opt/rocm/bin/rocminfo
hsa api call failure at line 900, file: /data/jenkins_workspace/compute-rocm-rel-2.4/rocminfo/rocminfo.cc. Call returned 4104

I'm running on Ubuntu 18.04.02,
`apt --installed list | grep rock-dkms
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
rock-dkms/Ubuntu 16.04,now 2.4-25 all [installed]
`

Did you try rebooting your machine? Mine was resolved after reboot...

Yes @jiachengpan I tried rebooting

lsmod | grep kfd  is not printing anything. I guess this might be the cause??

kfd is no longer its own separate module, so its part of amdgpu now. lsmod | grep amdgpu should return something.

This is the output I'm getting when I do lsmod | grep amdgpu
amdgpu               3506176  1
amdttm                 98304  1 amdgpu
amd_sched              28672  1 amdgpu
amdkcl                 24576  3 amd_sched,amdttm,amdgpu
amd_iommu_v2           20480  1 amdgpu
drm_kms_helper        167936  2 amdgpu,i915
drm                   401408  22 drm_kms_helper,amd_sched,amdttm,amdgpu,i915,amdkcl
i2c_algo_bit           16384  2 amdgpu,i915

it seems lsmod is missing
rocm-user@1ddd69214eda:~$ sudo /opt/rocm/bin/rocminfo
sh: 1: lsmod: not found
ROCk module is NOT loaded, possibly no GPU devices
Failed to get user name to check for video group membership
=====================
HSA System Attributes
=====================
Runtime Version:         1.1
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE

==========
HSA Agents
==========
*******
Agent 1
*******
  Name:                    AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
  Marketing Name:          AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
  Vendor Name:             CPU
  Feature:                 None specified
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        0(0x0)
  Queue Min Size:          0(0x0)
  Queue Max Size:          0(0x0)
  Queue Type:              MULTI
  Node:                    0
  Device Type:             CPU
  Cache Info:
    L1:                      32(0x20) KB
  Chip ID:                 5592(0x15d8)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   2100
  BDFID:                   768
  Internal Node ID:        0
  Compute Unit:            8
  SIMDs per CU:            4
  Shader Engines:          1
  Shader Arrs. per Eng.:   1
  WatchPts on Addr. Ranges:4
  Features:                None
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    8388224(0x7ffe80) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Acessible by all:        TRUE
  ISA Info:
    N/A
*******
Agent 2
*******
  Name:                    gfx902
  Marketing Name:          AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
  Vendor Name:             AMD
  Feature:                 KERNEL_DISPATCH
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        128(0x80)
  Queue Min Size:          4096(0x1000)
  Queue Max Size:          131072(0x20000)
  Queue Type:              MULTI
  Node:                    0
  Device Type:             GPU
  Cache Info:
    L1:                      16(0x10) KB
  Chip ID:                 5592(0x15d8)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   1200
  BDFID:                   768
  Internal Node ID:        0
  Compute Unit:            11
  SIMDs per CU:            4
  Shader Engines:          1
  Shader Arrs. per Eng.:   1
  WatchPts on Addr. Ranges:4
  Features:                KERNEL_DISPATCH
  Fast F16 Operation:      FALSE
  Wavefront Size:          64(0x40)
  Workgroup Max Size:      1024(0x400)
  Workgroup Max Size per Dimension:
    x                        1024(0x400)
    y                        1024(0x400)
    z                        1024(0x400)
  Max Waves Per CU:        160(0xa0)
  Max Work-item Per CU:    10240(0x2800)
  Grid Max Size:<PHONE_NUMBER>(0xffffffff)
  Grid Max Size per Dimension:
    x<PHONE_NUMBER>(0xffffffff)
    y<PHONE_NUMBER>(0xffffffff)
    z<PHONE_NUMBER>(0xffffffff)
  Max fbarriers/Workgrp:   32
  Pool Info:
    Pool 1
      Segment:                 GROUP
      Size:                    64(0x40) KB
      Allocatable:             FALSE
      Alloc Granule:           0KB
      Alloc Alignment:         0KB
      Acessible by all:        FALSE
  ISA Info:
    ISA 1
      Name:                    amdgcn-amd-amdhsa--gfx902+xnack
      Machine Models:          HSA_MACHINE_MODEL_LARGE
      Profiles:                HSA_PROFILE_BASE
      Default Rounding Mode:   NEAR
      Default Rounding Mode:   NEAR
      Fast f16:                TRUE
      Workgroup Max Size:      1024(0x400)
      Workgroup Max Size per Dimension:
        x                        1024(0x400)
        y                        1024(0x400)
        z                        1024(0x400)
      Grid Max Size:<PHONE_NUMBER>(0xffffffff)
      Grid Max Size per Dimension:
        x<PHONE_NUMBER>(0xffffffff)
        y<PHONE_NUMBER>(0xffffffff)
        z<PHONE_NUMBER>(0xffffffff)
      FBarrier Max Size:       32
*** Done ***


epiTAD version

In order to keep things in sync between the GitHub repo and the docker container, it'll be a good idea to start adding a version number to epiTAD. The simplest way will be to just use git tags for tracking the version number, which we can do from the Releases tab on GitHub or from the command line with git.
Either way, what version number should we start at?
And are there expected upcoming changes to the app or repo before we'd be ready to tag a release?

ping @tgerke @jhcreed

I like 1.0.0. I'm probably going to need to add a couple more commits for some docker things -- do you have any other changes planned?

i was going to propose 867.5.309 but i suppose 1.0.0 will work too.

Coming back to this to propose that we tag the NAR submission at 1.0.0.
In general, I like semantic versioning but it can be hard to figure out how to handle version updating for projects like these. The Semantic Versioning page is a good intro, but the guidance is vague relative to a Shiny app or data science product. This article on semver for data science provides an interesting perspective.
In that line, I propose we bump from version l.m.n according to these guidelines:

major l+1.0.0

release associated with publication submission
substantial rewrite of app
changing underlying data sources (e.g. replacing existing data with data from a new source, not just an update of data)

minor l.m+1.0

breaking changes in user-facing portion of the app (e.g. removing a figure from app)
adding a new user-facing feature (e.g. adding a new table)
updating data sources to latest version

patch l.m.n+1

backend changes that don't break app behavior (e.g. refactoring logic)
changes that improve existing features (e.g. adding color options to a plot feature)

dev l.m.n.9000

indicates that a feature is not complete yet

Not every commit needs a version: the version number only needs to be changed when the app is updated on the server. I wrote a script (build.sh) to automate setting and propagating the version number.


drivers: spi: fix CS documentation

spi_cs_control cs field is no longer a pointer, but a struct member. Clarify it must be zero-initialized if not used. Remove confusing comment about the need to use device_is_ready() on cs field, spi_is_ready_dt() is the only thing users need to do.

Interestingly, I was just looking at some of the warnings that appear when setting EXTRACT_ALL to NO (https://github.com/zephyrproject-rtos/zephyr/issues/56855) and spi_config is one example of -- I think -- improperly documented structs. I don't think the fields should be documented using @param, but instead (this is without your fix from this very PR):
/**
 * @brief SPI controller configuration structure
 *
 * @warning Most drivers use pointer comparison to determine whether a
 * passed configuration is different from one used in a previous
 * transaction.  Changes to fields in the structure may not be
 * detected.
 */
struct spi_config {
	/**
	 * @brief bus frequency in Hertz.
	 */
	uint32_t		frequency;
#if defined(CONFIG_SPI_EXTENDED_MODES)
	uint32_t		operation;
	uint16_t		slave;
	uint16_t		_unused;
#else
	/**
	 * @brief operation bit field.
	 *
	 * It has the following parts:
	 *
	 *     operational mode    [ 0 ]       - master or slave.
	 *     mode                [ 1 : 3 ]   - Polarity, phase and loop mode.
	 *     transfer            [ 4 ]       - LSB or MSB first.
	 *     word_size           [ 5 : 10 ]  - Size of a data frame in bits.
	 *     duplex              [ 11 ]      - full/half duplex.
	 *     cs_hold             [ 12 ]      - Hold on the CS line if possible.
	 *     lock_on             [ 13 ]      - Keep resource locked for the caller.
	 *     cs_active_high      [ 14 ]      - Active high CS logic.
	 *     format              [ 15 ]      - Motorola or TI frame format (optional).
	 * if @kconfig{CONFIG_SPI_EXTENDED_MODES} is defined:
	 *     lines               [ 16 : 17 ] - MISO lines: Single/Dual/Quad/Octal.
	 *     reserved            [ 18 : 31 ] - reserved for future use.
	 */
	uint16_t		operation;
	/**
	 * @brief slave number from 0 to host controller slave limit.
	*/
	uint16_t		slave;
#endif /* CONFIG_SPI_EXTENDED_MODES */
	/**
	 * @brief valid pointer on a struct spi_cs_control is CS line is emulated
	 * through a gpio line, or NULL otherwise.
	*/
	struct spi_cs_control cs;
};

Current docs: https://docs.zephyrproject.org/latest/doxygen/html/structspi__config.html
With the "fix":

Thoughts?

@kartben you're right, let me push a new patch fixing this.


Continue reading a stream after ZlibDecoder streams finishes

I'm implementing the parsing of the git pack file format as part of the coding challenge:
https://app.codecrafters.io/courses/git/stages/7
It seems the git pack format is a binary file format where each object contains a header followed by a Zlib compressed stream. What's unpleasant one doesn't know the size of the compressed block. Is it possible to get back the underlying stream (with into_inner or get_mut) including the buffer data by ZlibDecoder so that I can carry on reading another object header?

#402 adapts the gzip test to demonstrate that this does also work for deflate and zlib BufRead decoders.

Thank you very much for the fast response! It's great the current bufread::ZlibDecoder works as I needed.
I can confirm it works for me in my particular test-case.
Have 2 comments:

Would it be possible to document the behavior here: https://docs.rs/flate2/latest/flate2/bufread/struct.ZlibDecoder.html#method.into_inner ? Plus I would also make a caveat at read::ZlibDecoder::into_inner that one can't do the same.
Just out of curiosity: why does e.g. bufread::ZlibDecoder does not implement std::io::BufRead (would be handy as one does not have to wrap the bufread::ZlibDecoder again into a BufReader::new()?

As the original question was answered with tests, I think it's fair to close this issue despite inviting for continuing the conversation here.
Regarding documentation, please feel free to open a PR with the improvement to the docs that you would have wanted to see. Maybe you can play around with ZlibDecoder and implementing BufRead on it as well. Maybe even more improvements arise from that :).

There is an existing discussion on why the bufread decoders do not implement BufRead.

The docs for bufread and write GzDecoder have text describing this behaviour. This can be copied to the docs for the other decoders.

bufread: https://github.com/rust-lang/flate2-rs/blob/8a502a791fbcbdb56b20f6d6dcd7096f0c8f1a33/src/gz/bufread.rs#L171-L174
write: https://github.com/rust-lang/flate2-rs/blob/8a502a791fbcbdb56b20f6d6dcd7096f0c8f1a33/src/gz/write.rs#L174-L176
And there is an equivalent paragraph for the read decoder to say that this does not work:
https://github.com/rust-lang/flate2-rs/blob/8a502a791fbcbdb56b20f6d6dcd7096f0c8f1a33/src/gz/read.rs#L97-L101


Updates examples.

Updates the examples folder, moving everything to use top level await, improving command reference links, and fixing a couple of small issues.

Codecov Report

Merging #2219 (c947632) into master (60ad6aa) will decrease coverage by 2.44%.
The diff coverage is n/a.

:exclamation: Current head c947632 differs from pull request most recent head 0dc18e0.  Take ten seconds to tell us how you rate us.

LGTM. Blocked by github/codeql#9957.

I don't get why it's flagging issues as both example scripts work fine and the await in a for loop isn't new code:
$ node set-scan.js
b
j
h
i
q
c
a
l
g
k
d
p
o
m
f
n
e

and
$ node sorted-set.js
{ value: 'Ninety Nine', score: 99 }
{ value: 'One Hundred', score: 100 }
{ value: 'One Hundred and One', score: 101 }

with
$ node --version
v16.15.1

@simonprickett yea it's a bug in the LGTM parser, I hope it'll get fixed soon, if not I'll merge it anyway


[stable/prometheus-operator] how to add additional labels to the default Prometheus alerts for kubernetes system alerts.

Hello everyone,
I am using prometheus-operator chart for monitoring.
Problem Statement
I want to assign custom labels to default Prometheus alerts?
What I did
I used defautlRules.labels.kind parameter to assign a label to Prometheus alerts but that label was applied to rules metadata level instead of individual rules.

Label value

defaultRules:
   labels:
     testLabel: testing

Applied values

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: test-kubernetes-resources
  labels:
    app: test

    chart: prometheus-operator-5.0.13
    release: "RELEASE-NAME"
    heritage: "Tiller"
    expose: "true"

    testLabel: testing

spec:
  groups:
  - name: kubernetes-resources
    rules:
    - alert: KubeCPUOvercommit
      annotations:
        message: Cluster has overcommitted CPU resource requests for Pods and cannot tolerate node failure.
        runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubecpuovercommit
      expr: |-
        sum(namespace_name:kube_pod_container_resource_requests_cpu_cores:sum)
          /
        sum(node:node_num_cpu:sum)
          >
        (count(node:node_num_cpu:sum)-1) / count(node:node_num_cpu:sum)
      for: 5m
      labels:
        severity: warning

Instead, I want the label on this alert level like this:

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: test-kubernetes-resources
  labels:
    app: test

    chart: prometheus-operator-5.0.13
    release: "RELEASE-NAME"
    heritage: "Tiller"
    expose: "true"

spec:
  groups:
  - name: kubernetes-resources
    rules:
    - alert: KubeCPUOvercommit
      annotations:
        message: Cluster has overcommitted CPU resource requests for Pods and cannot tolerate node failure.
        runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubecpuovercommit
      expr: |-
        sum(namespace_name:kube_pod_container_resource_requests_cpu_cores:sum)
          /
        sum(node:node_num_cpu:sum)
          >
        (count(node:node_num_cpu:sum)-1) / count(node:node_num_cpu:sum)
      for: 5m
      labels:
        severity: warning
        testLabel: testing

After looking at the template file I found out that there is no way to assign custom label to alerts
Proposal
I want to change the structure of defaultRules.rules.kubernetesResources from boolean to json with following keys:
defaultRules:
   rules:
       kubernetesResources:
           enabled: boolean
           labels:
               label1: label1Value
               label2: label2Value

enabled key will be used to enable and disable the KubernetesResources alerts.
labels keys values will be used to assign custom labels to alerts labels parameter.

I want to make the above changes for these alerts.

Parameter
Description
Default

defaultRules.rules.kubeApiserver
Create Api Server default rules
true

defaultRules.rules.kubePrometheusNodeAlerting
Create Node Alerting default rules
true

defaultRules.rules.kubePrometheusNodeRecording
Create Node Recording default rules
true

defaultRules.rules.kubeScheduler
Create Kubernetes Scheduler default rules
true

defaultRules.rules.kubernetesAbsent
Create Kubernetes Absent (example API Server down) default rules
true

defaultRules.rules.kubernetesApps
Create Kubernetes Apps  default rules
true

defaultRules.rules.kubernetesResources
Create Kubernetes Resources  default rules
true

defaultRules.rules.kubernetesStorage
Create Kubernetes Storage  default rules
true

defaultRules.rules.kubernetesSystem
Create Kubernetes System  default rules
true

Kindly reply asap as this change is required for a task I am working on.
Thank you

Guys @davidkarlsen, @kflynn, kindly have a look at this issue. Thank you

@carrodher @javsalgar @AdamDang guys kindly have a look at the above issue. Thank you

@carrodher  @javsalgar  @AdamDang kindly have a look at this issue.

Ey @aliartiza75, I'm sorry but I don't have experience using this chart. According to https://github.com/helm/charts/blob/master/stable/prometheus-operator/OWNERS try to ping @gianrubio @vsliouniaev @anothertobi. Surely they can help you regarding this issue

@gianrubio @vsliouniaev @anothertobi kindly have a look at this issue.

not stable

@aliartiza75 that isn't possible to achieve with the chart. I suggest that any modifications to the alerts that you wish to do should be done yourself, deploying the custom alerts separately to the chart. The alerts are all sourced from several upstreams, which means that the chart would have to add custom templating logic to expose this kind of functionality.

@vsliouniaev thank you for response.

We have the same requirements.. We need to be able to route the alerts based on labels...

We currently need to add some labels to the default alerts too. defaultRules.labels looks like it fits the bill but doesn't do what I expect it to do. Is there another way around this?

Added an example here recently: "Customising alert annotations"
The alerts in the chart are copied from: https://github.com/coreos/kube-prometheus/tree/master/jsonnet/kube-prometheus
The example in kubernetes-monitoring can also be applied to the coreos/kube-prometheus context if needed.
It's a waste of effort to copy and maintain these alerts in a helm chart.

Custom rule labels can be added now via regular helm values using variable additionalRuleLabels


Penv 261 api lifeline

- What I did
- How I did it
- How to verify it
- Description for the changelog

Codecov Report

Merging #41 into master will increase coverage by 2.60%.
The diff coverage is 80.08%.

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
+ Coverage   62.76%   65.36%   +2.60%
==========================================
  Files          30       34       +4
  Lines        1434     1666     +232
==========================================
+ Hits          900     1089     +189
- Misses        461      485      +24
- Partials       73       92      +19

Impacted Files
Coverage Δ

etl/transformer/transformer.go
72.72% <20.00%> (-0.65%)
:arrow_down:

api/generated.go
53.65% <52.50%> (ø)

etl/storage/storage.go
81.65% <76.11%> (-8.83%)
:arrow_down:

testutils/models.go
85.96% <86.66%> (-0.09%)
:arrow_down:

api/handlers.go
92.06% <91.66%> (ø)

api/errormessage.go
100.00% <100.00%> (ø)

api/mappers.go
100.00% <100.00%> (ø)

testutils/generators.go
83.16% <100.00%> (+0.34%)
:arrow_up:

etl/types/types.go
66.66% <0.00%> (ø)

configuration/configuration.go
100.00% <0.00%> (ø)

... and 7 more

Continue to review full report at Codecov.

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


Short solution needed: "Ho to append to a slice" (golang)

Please help us write most modern and shortest code solution for this issue:
Ho to append to a slice (technology: golang)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

Ho to append to a slice


Bulk load performance issue in Arches Core

A fix was put into place in Arches Core causing the FMS data load times to significantly increase (in some cases from 3 minutes to multiple hours).
The offending change is here: https://github.com/archesproject/arches/pull/9965
Needed to track this down and find a fix to be able to reload FMS on Legacy.
May need to create an Arches Core patch if the core team isn't able to fix.

This was merged back into dev/7.5.x on Nov 13th.


Input reference using sphinx

This PR adds a separate manual to the doc directory: input_reference.
This manual contains the input file references built with sphinx.
I changed the order of some entries we have in the current documentation. Also, I got rid of some repetition. It is not fleshed our yet and merely showing the structure which I want to discuss.
Build the docs
To build the manual, change to doc/input_reference and type
make html

to build a HTML documentation. To inspect the manual, open build/html/index.html. If you don't have the read_the_docs-theme installed you can switch themes by changing the html_theme entry inside source/conf.py.
Other builds are also supported by sphinx. To get an overview, simply type make without specifying the format.

I checked this PR locally, and the output looks great!
Maybe we can have the sources in an src directory instead of a source one to follow the same convention as the rest of the code ? We'll also need to put the build directory in a .gitignore.

I used sphinx' sphinx-quickstart, that's why it's called source 😄 I also have to change the name in the Makefile.

I checked this PR locally, and the output looks great!

And we get pdfs for free!

And we get pdfs for free!

Yay!

I restructured the manual a bit and I am really liking how it worked out. Sphinx fits our needs, I think (l mean you can even make a man that looks spectacular). I'd leave the PR as is (ready to merge from my side).

I pushed a few more commits moving things around and other formatting issue. The global diff must be unreadable due to 3f5486f0c1a921904da71c305730f3bdef8cbb8f and 08fbd17e6628dd7cf6c4436fc8bd8958c41b5775, but the commits diff should be OK.
The new version of the doc is not built or deployed to github pages with this, am I right? And the previous version is still here, right? If so, and if you agree with my last proposed changes, we can merge this and continue going forward on the conversion of all the doc to sphinx!

The new version of the doc is not built or deployed to github pages with this, am I right?

That's correct.

And the previous version is still here, right?

Yepp, currently both versions exist.

If so, and if you agree with my last proposed changes, we can merge this and continue going forward on the conversion of all the doc to sphinx!

I'll check out your changes later tonight and merge if that's ok for you.

Yep, thats fine for me!


Display Spot classification

Doesn't make sense until we resolve upstream issue described here: https://github.com/SuffolkLITLab/form-explorer/issues/58
or SPOT itself returns a plain-text description of the issue along with the code (IMO adding this to SPOT makes sense as otherwise it's two API calls)


Call Api

Hi -
Seeing as the integration already has access to both api's, is there a service exposed that can be used to call these? This would allow for options not currently supported directly to be automated.
Thanks!

Alternatively, it would be great if it were possible to update the settings of a given lock (i.e. GET/POST https://api.nuki.io/smartlock/{id}/config)


Fix #13871 - Update reference link 'kubefed unjoin' in set-up-cluster-federation-kubefed

fixes - #13871

/assign @jaredbhatti
/assign @Rajakavitha1

Thanks for the PR @daminisatya !
I would like @jimangel to take a look at this because he has been working on this.

/assign @jimangel

/lgtm
/approve


Converted code to ColossalAI Libary, it runs 1.65 times faster on 4x4 grid

Oops it already runs at this speed gotta make some more improvements I'm closing this for now.


How to add Checkbox to your spreadsheet?

Any example? thanks!

Hello, does this gem support adding a checkbox in a cell?

Hi @hatemhussin
This repo is no longer maintained and the community has taken over both additional development and maintenance at:
caxlsx
warmest regards!


Add a new test test_backuptarget_available_during_engine_image_not_ready

Proposal Change
Add a new test test_backuptarget_available_during_engine_image_not_ready to verify configures the backup target setting during the default engine image is not ready.
Issues
https://github.com/longhorn/longhorn/issues/2960

Test results https://ci.longhorn.io/job/private/job/longhorn-tests-regression/457/testReport/tests/test_basic/

This test is good to go after resolving the conflict.

@jenting Please backport to 1.2.x.


Resolve dialog through custom content component events

When creating a custom dialog that requires you to select an item from a list, it can be smoother to close the dialog as soon as the list item is clicked rather than select a list item and then press 'cancel' or 'ok'.
If the custom content component emits a 'cancel' or 'confirm' event, the dialog catches those events.

hide props are really useful


import in node js throws error

Hey, I'm struggling to import the library into my node js application. I've tried both micro-btc-signer and the new @scure/btc-signer packages.
node -v v19.8.0
E.g. for @scure library
npm install @scure/btc-signer
import btc from '@scure/btc-signer';

or trying dynamic imports;
const btc = await import('@scure/btc-signer');
or
const {TEST_NETWORK, NETWORK,Address,OutScript} = await import('@scure/btc-signer')

gives persistent error;
Error [ERR_REQUIRE_ESM]: require() of ES Module ../node_modules/micro-btc-signer/index.js from .../bridge-api/src/lib/bitcoin/rpc_transaction.ts not supported.

I imagine it's something  misconfigured my end but I've have been bashing my head against it for several hours,  so raising in case its a known issue?

You are probably using common.js modules. We don't support these. You need to switch to ESM. Also there is no default export, you need to use star:
import * as  btc from '@scure/btc-signer';

Removed al references to CommonjJS as suggested and the import worked.
Thanks!


Buffer pool traits design

#276 AsyncReadBufferPool::read_buffer_pool, AsyncReadAtBufferPool::read_at_buffer_pool, with BufferPool and Buffer associated types
#356 a modified version of #276: AsyncReadManaged::read_managed, AsyncReadManagedAt::read_managed_at

Any other advice or design?

API of tokio-uring: https://docs.rs/tokio-uring/latest/tokio_uring/net/struct.TcpStream.html#method.read_fixed
The user get the buffer from the registry directly and pass the ownership to the read method.

Note about io-uring internals:

tokio-uring uses register_buffers and ReadFixed op
#276 uses register_buf_ring and Read op

Buffer ring is a newer feature. It lets the kernel to choose an available buffer, which means the users cannot choose the buffer themselves, and should return the buffer after consuming it.

The returned buffer might be better if it's owned:
pub trait AsyncReadManaged {
    type BufferPool;
    type Buffer: Deref<Target = [u8]>;

    async fn read_managed(
        &mut self,
        buffer_pool: &Self::BufferPool,
        len: usize,
    ) -> IoResult<Self::Buffer>;
}

The inner buffer pool might be Rc.

@Berrysoft Can you provide some examples? I'm not entirely sure how this is supposed to be used.

The usage is like this:
let pool = BufferPool::new(/* count: */16, /* buffer len: */1024).unwrap();
let mut stream = TcpStream::connect(addr).await.unwrap();
// Use len = 0 to make the driver select one.
let buffer = stream.read_managed(&pool, 0).await.unwrap();
// Use buffer, and drop it to return it to the pool.

@Berrysoft So every IO depends on some specific type of BufferPool, is that right? If users want abstraction, they need to do it themselves.

I think so. The buffer count & buffer len of the buffer pool is controled by the user, and they can even create many pools if they want. compio-runtime could provide a specific pool type, and TcpStream will only impl AsyncReadManaged based on compio_runtime::BufferPool.

What about this:
trait BufferPool {
    type Buffer;
}

trait AsyncReadManaged {
    type Pool: BufferPool;

    async fn read_managed(
        &mut self,
        buffer_pool: &Self::Pool,
        len: usize,
    ) -> IoResult<<Self::Pool as BufferPool>::Buffer>;
}

What about this:

I have thought about this design, but didn't choose it because, there might be a case that the implementer of AsyncReadManaged wants to use a different Buffer type other than the one returned by BufferPool. If type Buffer is an assiciated type of trait BufferPool, the implementer need to author a new pool wrapper type to achieve this goal, which is more complex.


Do Actions/Traits support bullet points?

Hi, Jeremy
Really enjoying this tool so far, but quick question: do the actions/traits sections support bullet points? I can see that the spellcasting section does.

Let me think on it, should be possible. The syntax is already pretty ugly and I don't want to make it uglier 😁

Closed as Traits support bullets best through <ul>.


Compile list of OCR corrections

This is the current state of the OCR errors. For now, corrections can live in that file unless we decide to move them to the database.
https://github.com/lmullen/legal-modernism/blob/eyecite/data/ocr-errors.csv
I will provide a list of potential errors to correct.

This is done now. We just need to add more as they come in.


Add support for terminal Z in datatime

Codecov Report

Merging #2 (eb75ed9) into master (6dd19a7) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
+ Coverage   87.87%   87.90%   +0.03%
==========================================
  Files          29       29
  Lines        1163     1166       +3
  Branches      198      199       +1
==========================================
+ Hits         1022     1025       +3
  Misses         99       99
  Partials       42       42

Impacted Files
Coverage Δ

src/serialite/_implementations/_date_time.py
95.45% <100.00%> (+0.71%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fail to validate

Hi all!
I'm having this issue but no ideia why.
let cardData = {
  cvc:"737",
  expiryMonth:"08",
  expiryYear:"2018",
  generationtime:"2016-10-10T17:01:16.748Z",
  holderName:"John Smith",
  number:"5555444433331111"
};

let encryptData = cseInstance.encrypt(cardData);
console.log(cseInstance.validate());

The console log returns false but there's no clue why the validation is failing.
Is there any way to enable a verbose mode for the validator?
Thank you,
Hugo

Hi Hugo,
The call to cseInstance.validate() requires you to pass in the cardData, otherwise it will early out.
You coud try to use console.log( cseInstance.validate( cardData ) ); instead.
Kind regards,
Arnoud

Hi Arnoud,
Thank you for the tip! That helped but I'm still not sure why the validation fails.
{"valid":false,"number":true,"luhn":true,"cvc":true,"holderName":true,"month":true,"expiryMonth":true,"year":true,"expiryYear":true,"unknown":["generationtime","activate","initializeCount","luhnCount","luhnOkCount","luhnSameLengthCount","dfValue"]}

It seems the "generationtime" is either failing or not beeing recognised. I'm not sure if this is related with #27
Thank you,
Hugo

Yes, both are related. I am still working into finalizing the fix towards that issue, but got caught up in other more work.
It's interesting that the luhnCount and other fields also are marked as unknowns. I didn't know they were passed into validation in the first place.


Fix sse path

I was trying out the autoRefreshFeatures feature. I found that the url was created incorrectly(it has // in path instead of a /) . This is a small fix for that.

Yes but two slashes also work


NFC: Update lit.cfg to specify -parse-as-library for module interface tests

Tests that use the %target-swift-emit-module-interface lit substitution are designed to test the behavior of the compiler when emitting module interfaces for resilient libraries. It therefore makes sense to pass -parse-as-library by default for these frontend invocations.
Fixes a few tests that were accidentally depending on parsing source files as top level code.

@swift-ci please smoke test


[ASK] - Command API

hi @malle-pietje
this is save my life.
now, im able to create hundreds site thorugh your awesome API. thanks! :+1:
By the way, any recoomendation where did you find the argument for each command on your API ?
i mean command like : /stat/guest , /stat/sta, /stat/user etc.
im quite strugle to find it.
once again, thanks!
cheers,
henry

Glad to hear it is useful. Most of the endpoints I have added to the class I discovered either by closely analysing the controller UI (it also uses the API) or by receiving hints and tips from users.

HI @malle-pietje
yeah, so it means must do by our self to find other usefull command on unifi Controller.
btw i just email to<EMAIL_ADDRESS>and they told me that they didnt have any automate system such as API.
i mean, we cannot rely to them for massive deployment.
if i found any others command, i will share to you.
hence, it will be usefull for others.
thanks mate!

thanks, that would be helpful!


implement wallet settings shortcut on account page

closed in https://github.com/threefoldfoundation/tfchain-wallet-electron/commit/9d8f6531c32c59f312c332eddc2f0eb0ac288d12


Different mode for main section

Mode 1: no clicks, no meter, no budget limit. (Ustudy 1 full mode)
Mode 2: clicks, no meter, no budget limit.
Mode 3: meter, no budget
Mode 4: meter with budget (Control budget via URL)


Bad timeout on internal commands

Double of issue for Npgsql.EntityFrameworkCore.PostgreSQL
https://github.com/npgsql/npgsql/issues/1100
in dependencies i use
"dependencies": {
"ExtCore.Data.Abstractions": "1.0.0-alpha8",
"ExtCore.Data.Models.Abstractions": "1.0.0-alpha8",
"ExtCore.Infrastructure": "1.0.0-alpha8",
"NETStandard.Library": "1.5.0-rc2-24027",
"Npgsql.EntityFrameworkCore.PostgreSQL": "1.0.0-rc2-release1"
},
I must add "Npgsql": "3.1.0" ?
or it working with out main "Npgsql" nuget?

If you don't take an explicit dependency on Npgsql, it will take the lowest possible version that the EFCore provider allows, which is 3.1.0. This is how nuget works. But there have been several fixes since then (including #1100), so it's better to explicitly take a dependency on the latest patch level, which is 3.1.4.
Wh


run --watch fails if directory changed, suggested fix included

Describe the bug
Trying the reproducer results in the following failure due to a changed working directory meaning the Session.filename is not present:
✦ at 16:10:27 ❯ marimo run --watch watch_fail_after_chdir.py
[W 240212 16:10:28 file_watcher:21] watchdog is not installed, using polling file watcher

        Running watch_fail_after_chdir.py ⚡

        URL: http://localhost:2722

Task exception was never retrieved
future: <Task finished name='Task-3' coro=<PollingFileWatcher._poll() done, defined at /venv/lib/python3.12/site-packages/marimo/_utils/file_watcher.py:68> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
  File "/venv/lib/python3.12/site-packages/marimo/_utils/file_watcher.py", line 80, in _poll
    await self.on_file_changed()
  File "/venv/lib/python3.12/site-packages/marimo/_utils/file_watcher.py", line 36, in on_file_changed
    await self.callback(self.path)
  File "/venv/lib/python3.12/site-packages/marimo/_server/sessions.py", line 572, in on_file_changed
    session.app = self.load_app()
                  ^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/marimo/_server/sessions.py", line 405, in load_app
    app = codegen.get_app(self.filename)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/marimo/_ast/codegen.py", line 204, in get_app
    with open(filename, "r", encoding="utf-8") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'watch_fail_after_chdir.py'

Environment
Fedora 39, python 3.12, marimo 0.2.4
Code to reproduce
import marimo

__generated_with = "0.2.4"
app = marimo.App(width="full")

@app.cell
def __():
    from pathlib import Path
    import marimo as mo
    import os

    os.chdir('/tmp')
    a = 12
    return (
            a
    )

if __name__ == "__main__":
    app.run()

Proposed fix
This fixes the issue for me
diff --git a/marimo/_server/sessions.py b/marimo/_server/sessions.py
index 2a435e6..529bc1f 100644
--- a/marimo/_server/sessions.py
+++ b/marimo/_server/sessions.py
@@ -369,6 +369,7 @@ class SessionManager:
         lsp_server: LspServer,
     ) -> None:
         self.filename = filename
+        self.path = Path(filename).absolute() if filename is not None and Path(filename).exists() else None
         self.mode = mode
         self.development_mode = development_mode
         self.quiet = quiet
@@ -401,7 +402,7 @@ class SessionManager:
         Load the app from the current file.
         Otherwise, return an empty app.
         """
-        app = codegen.get_app(self.filename)
+        app = codegen.get_app(self.path)
         if app is None:
             empty_app = InternalApp(App())
             empty_app.cell_manager.register_cell(

I added the "exists" because the signature for filename is Optional[str], so I assumed there are some uses
for passing in None.

thanks for identifying the issue and fix - I will create a PR for this today


Add default table selector to the Leaderboards window

Supersede loicteixeira/gj-unity-api#34

Allow the Leaderboards window to open on a specific table (not the primary table).
Allow the Leaderboards window to open only a specific table (not all).

fixed in 5c63b120faa9f776d87164737dc24d7fa9b25314


Application not working due to API error

Current Behavior
Application is not working due to 404 status for GET: /api/administration/companydata/ownCompanyDetails
Expected Behavior
Application should be working fine without blank screen
Steps To Reproduce

Pull latest code from main branch
login to application
Application is blank and network tab shows 404 status for GET: /api/administration/companydata/ownCompanyDetails

@lavanya-bmw could not reproduce now as /api/administration/companydata/ownCompanyDetails is working fine. But if this fails, it will show blank screen. Now portal decides companyRoles from /ownCompanyDetails api which decides access to certain pages just like user token
CC - @oyo

@lavanya-bmw could not reproduce now as /api/administration/companydata/ownCompanyDetails is working fine. But if this fails, it will show blank screen. Now portal decides companyRoles from /ownCompanyDetails api which decides access to certain pages just like user token
CC - @oyo

Since I have not updated index file, I got this error.
Closing this ticket as it is not a valid bug.


Dk sort before merge

This is a change to sort BAM files by filename before merging them into a single BAM file.
The change is contained in the file:
subworkflows/local/bam_merge_index_samtools/main.nf
I added a single process SORT_BAM which operates on the existing channel "bam_to_merge.multiple", returning the new channel "bam_to_merge_sorted" that is passed into MERGE_BAM instead.
The SORT_BAM process uses this Nextflow feature: the "script:" section can include Groovy code that modifies inputs and stages output (the actual script code is just an echo statement).

Can you also add how you've tested these changes in the PR description?


serial-console: Unable to use SYSREQ magic keys on a serial console connected to an ARM VM

Describe the bug
Using 'az serial-console' to connect to a Linux VM under ARM, it is not possible to send a SYSREQ magic key to the kernel:
I press Ctrl-]
I press 's'
I press ´h' (for help) or any other valid -- or, in fact, invalid -- key
I  get no response at all, and 'dmesg' or the kernel log shows no data.
Logging in to the VM, and executing (as root) the equivalent command works:
root@ma2 [ ~ ]# echo 9 > /proc/sysrq-trigger
[24876.936961] sysrq: Changing Loglevel
[24876.941766] sysrq: Loglevel set to 9
root@ma2 [ ~ ]# echo h > /proc/sysrq-trigger
[24894.966270] sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dump-ftrace-buffer(z)

On X64_64 VMs 'az serial-console' correctly allows me to send a sysreq magic key.
Also, Ctrl-] followed by 'q' correctly ends the serial console session. I can also successfully send a magic key when using the Azure Portal's serial console.
Related command
az serial console connect -n -g

Errors
No output is generated by this failure in the serial console
Issue script & Debug output
'az --debug serial-console connect -n   -g ' fails to work with what looks like a heisenbug:
cli.azure.cli.core.command_recommender: "-n" is an invalid parameter for command "serial-console connect".
cli.azure.cli.core.command_recommender: "-g" is an invalid parameter for command "serial-console connect".
cli.azure.cli.core.azclierror: NoneType: None

cli.azure.cli.core.azclierror: unrecognized arguments: -n ma2 -g REDACTED-rg1
az_command_data_logger: unrecognized arguments: -n ma2 -g REDACTED-rg1

Expected behavior
In the serial console, a sequence Ctrl-], s, one additional letter should trigger the Linux sysreq magical key on an ARM-based VM
Environment Summary
$ az --version
azure-cli                         2.50.0
core                              2.50.0
telemetry                          1.0.8
Extensions:
serial-console                     0.1.6
ssh                                2.0.0
Dependencies:
msal                              1.22.0
azure-mgmt-resource             23.1.0b2
Python location '/opt/az/bin/python3'
Extensions directory '/home/REDACTED/.azure/cliextensions'
Python (Linux) 3.10.10 (main, Jun 29 2023, 11:09:14) [GCC 11.3.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response

Thank you for opening this issue, we will look into it.

Non customer reported issue. Adding Service team to look into this.


Rust port of 65 Nim

Nim in Rust.  This was a real challenge because of all the goto's going out of loops down to code below.  I used a ton of breaks and continues.  I tried to figure out how I would have written these without them, but I'm not seeing it yet.  I handled them like this:
let is_odd=false;
loop {
stuff;
if x%2!=0 { is_odd=true; break };
if done {break};
stuff;
}
if is_odd {
handle_odd();
}
regular_stuff();
The logic in this is a little tricky, especially with arrays being a little different.  I think I got all the bugs, because it seems to win no matter what I do.

Excellent! I'll be sure to move your comments to the readme.md for future porters!


move test server to cloud based hosting

possibly: amazon lambda, azure or google...

Too lazy to do so at this points, the test server works now.


Problematic test: checking the rootLibrary

mirrors/local_isolate_test
The rootLibrary depends on how program started. On Dartium, test.local_isolate_test is not the root library because the program starts from another test harness.

Is this a Dartium only issue?

This was a Dartium test harness issue.


Snippet mode is left on editor blur

VSCode Version: 1.8.1
OS Version: Windows 7

Steps to Reproduce:

inserting a snippet to be more specific one with more than one tab trigger ($1,$2,$3 etc.)
insert the snippet
insert text at first ($1) possition
change to another windows window e.g. Browser Window or a Notpad Window (no difference between switching via mouse or alt+tab)
copy somthing you wanna past into vscode
switch back to vscode window
press tab to go to next position ($2)

at this point it fails instead of going to next position ($2) it does the normal context based thing as if the file already existed
i thought this whole thing may be caused due to the fact that i have set my vscode to save/persist file on loosing focus - it isn't i have tested this already by disabling autosave at all (also i have restarted the editor after this change sinze it may be affecting only new sessions) - still the same it looses the focus
can someone check if its only me or also for others

Reduced steps:

insert a snippet (e.g. for loop in JS)
focus a different editor

Observe: The original editor is no longer in snippet mode.

This is the designed behaviour because wand the snippet mode not to be too sticky.

With the May release we won't leave snippet mode when the editor blurs. This makes our snippet experience more aligned with other editors too

fixed with https://github.com/Microsoft/vscode/pull/26042


circlesoftmax loss

hi!
I want to run my code with circlesoftmax loss, but I don't know how to use it correctly. It returns pred_class_logits, should I take CE loss behind it? Or something else.
Thanks!

Yes, only need a CE loss behind it. Tt's just like arcface or cosface.

Yes, only need a CE loss behind it. Tt's just like arcface or cosface.

OK. Thanks a lot.

OK. Thanks a lot.

By the way, is there need for the last fc layer for classification?

By the way, is there need for the last fc layer for classification?

You mean the last fc layer can be removed?

You mean the last fc layer can be removed?

Are circle loss and cross-entropy loss mutually exclusive? Can I use both in the cls layer in training?


Fix bug with meta not working well as generic parameter for StoryObj

📦 Published PR as canary version: 0.0.2--canary.60.011a95e.0

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

:rocket: PR was released in v0.0.2-next.8 :rocket:

:rocket: PR was released in v0.1.0 :rocket:


DK NBA Lateswap breaks for some entries

Running the following basic code:
from pydfs_lineup_optimizer import get_optimizer, Site, Sport, CSVLineupExporter

optimizer = get_optimizer(Site.DRAFTKINGS, Sport.BASKETBALL)

optimizer.load_players_from_csv('./DKSalaries.csv')

lineups = optimizer.load_lineups_from_csv('./DKEntries.csv')

for lineup in optimizer.optimize_lineups(lineups):

    print(lineup)

generates various SolverInfeasibleSolutionException and GenerateLineupException errors. This has happened in the middle of live contests but I've been testing this on my entries from yesterday's contests as a sanity check. It should just return all of the lineups as all players are locked but crashes on some lineups.
Eg.:
    raise SolverInfeasibleSolutionException(invalid_constraints)

SolverInfeasibleSolutionException: ['_C5', '_C17']

    raise GenerateLineupException(solver_exception.get_user_defined_constraints())

GenerateLineupException: Can't generate lineups

The fact that it works on some lineups but not other's is odd. I had thought I had tracked it down to crashing when a lineup had all locked players but that's not the case with this backtest, it makes it through a few entries in some of yesterday's slates before errors. I also thought it might be when my custom projections set someone to zero when I they were in the original lineup but this test is using just the raw exports from DK thus shouldn't have that issue.

According to the instructions, you should use the DKEntries file when you call load_players_from_csv and when you call load_lineups_from_csv. If you are making changes to DKSalaries, then it may have inconsistent information with the DKEntries file which is causing the error. It is difficult to know without posting the files that generated the error, as I can't follow the same steps and do a deep dive on the issue.
Also you should post what operating system you are using as well as the time zone of your computer that is running the code.
You can also take a look at what constraints are causing the error. The error message suggests that it is _C5 and _C17. If you inspect the solution file it should help you understand what those constraints are. To do so, you use a custom PuLP solver, as described in the documentation
from pydfs_lineup_optimizer import get_optimizer, Site, Sport
from pydfs_lineup_optimizer.solvers.pulp_solver import PuLPSolver

class CustomPuLPSolver(PuLPSolver):
    LP_SOLVER = PULP_CBC_CMD(keepFiles=True, logPath='pydfs.log')

optimizer = get_optimizer(Site.DRAFTKINGS, Sport.BASKETBALL, solver=CustomPuLPSolver)

Well, I typed up the whole elegant response but I think I now know the issue and probably should have assumed this:
I think for lineup in optimizer.optimize_lineups(lineups) tries to generate unique lineups, however a typical slate of entries will contain dozens if not hundreds of contests where I will want to have the same lineup repeated across many different contests.
Right now I think optimizer.load_lineups_from_csv only accepts the janky CSV format that includes the "Instructions" so I think there are a number of solutions in decreasing order of user complexity:

Allow the solver to do unique solutions for each Contest ID that comes in the DKEntries.csv

Allow optimizer.load_lineups_from_csv to load files of the format exported by optimizer.export and/or dataframes of lineups.

Warn users that it only works if all of your entries in the DKEntries file is unique and remind them to add a header that fakes the expected 'Instructions' column when splitting their entries by Contest ID themselves.

Less relevant now but maybe still useful if others think they are having the same issue:
Thanks for the response. My general pipeline involves a whole lot of changes to use custom things but for this test to run down the bug I'm literally just using the raw DKSalaries.csv and the raw DKEntries.csv one gets from the contest and running that exact segment of code. Remember that I'm doing this several days after the contest for reproducibility and the expected behavior is for the script to just spit back out all entries as all players were locked and all entries were valid. I've also tried multiple days of contests to make sure I hadn't messed up.
In case it was the issue I just ran the following test:
from pydfs_lineup_optimizer import get_optimizer, Site, Sport, CSVLineupExporter

optimizer = get_optimizer(Site.DRAFTKINGS, Sport.BASKETBALL)

optimizer.load_players_from_csv('./DKEntries.csv')

lineups = optimizer.load_lineups_from_csv('./DKEntries.csv')

for lineup in optimizer.optimize_lineups(lineups):

    print(lineup)

It worked for three lineups and then crashes with:
Traceback (most recent call last):

  File "D:\Anaconda3\envs\dfs\lib\site-packages\pydfs_lineup_optimizer\lineup_optimizer.py", line 441, in optimize_lineups
    solved_variables = solver.solve()

  File "D:\Anaconda3\envs\dfs\lib\site-packages\pydfs_lineup_optimizer\solvers\pulp_solver.py", line 56, in solve
    raise SolverInfeasibleSolutionException(invalid_constraints)

SolverInfeasibleSolutionException: ['total_players', '_C5', 'budget', '_C21', '_C30', '_C57']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File (sic), in <module>
    for lineup in optimizer.optimize_lineups(lineups):

  File (sic), in optimize_lineups
    raise GenerateLineupException(solver_exception.get_user_defined_constraints())

GenerateLineupException: Can't generate lineups. Following constraints are not valid: total_players,budget

I'm ET US and this was an issue in both EDT and EST and on Windows 10.

Just wanted to add on to this issue. Is there a way to skip lineups with all players locked. When I use the late swap feature, the code stops as soon as it hits a lineup with all 8 players locked and in progress. (Draftkings) Even worse, the lineups it had iterated through before don't even get changed. So the end result is the exact same csv file as before. To illustrate how frustrating this is, let's say I have 150 live lineups that I would like to late swap edit. If the 149th lineup has all players locked, the code breaks, and none of the previous 148 lineups change.

Just wanted to add on to this issue. Is there a way to skip lineups with all players locked? Perhaps by using an if else statement? When I use the late swap feature, the code stops as soon as it hits a lineup with all players locked and in progress. Even worse, the lineups it had iterated through before don't even get changed. So the end result is the exact same .csv file as before. To illustrate how frustrating this is, let's say I have 150 live lineups that I would like to late swap edit. If the 149th lineup has all players locked, the code breaks, and none of the previous 148 lineups change.

Your code isn't crashing because the entire entry is locked, I'm able to run the code just fine on a slate of entries that's all from yesterday as long as they are all unique and it just spits them back out. It's likely crashing because it came across a lineup that has no more feasible solutions that aren't identical to previous ones. This can happen in a large entry contest in a smaller slate if you are filtering out players between runs based on a projection or value floor, the optimizer will run out of unique valid solutions, particularly in the Center position for NBA. A preferred behavior in late swap would be to allow it to start repeating entries with a warning rather than allowing zero projection players so that it doesn't crash.

@keithotis was there ever a solution to this issue?

Hello, any updates to this? I see it is still open, so I assume no solution has been found. This can be really frustrating on some of these NBA slates where the optimizer can't edit because of other entries in my csv that have all players locked.


Enter "in the,exquisite;"

https://github.com/palewire/cummings.ee/blob/main/_data/poems/is-5/three-v.yaml
https://archive.org/details/is-5-ee-cummings/page/n89/mode/2up

As with #254, we've already got this one in &.
https://cummings.ee/book/and/poem/post-impressions-xiv/
We need to settle where to file it.

#294 addresses this issue


data channel 'on-open' message emited twice

i am running /sendrecv/gst c demo, i got these data channel debug info. i can see data_channel_on_open are called twice, this is a webrtcbin bug or i have missing something?
data channel opened
data channel opened
Received data channel message: Hi! (from browser)
Received data channel message: Hi! (from browser)
Received data channel message: Hi! (from browser)
Received data channel message: Hi! (from browser)

There are two data channels in the demo example. One initiated from GStreamer, another initiated from the browser so this is entirely expected.


Initial version

Currently missing:

a simple e2e test

Thanks, I'll merge this in and deal with the suggestions once I have at least a simple e2e test in place.


[Prioritized] Add secret protection via credscan

This is a bit hazy at the moment due to the "when" part really affecting us. The most effective time to run credscan is as a pre-commit hook. However, given that its got more than a few local requirements, I'm not certain this would be a great developer experience.
The timing of when to trigger the credscan is a bit suspect, but perhaps we can add some sort of file-watcher (especially in the docker image) that runs credscan on any new recordings files?
EDIT 10/7.
Now that test-proxy has recording retrieval integrated, we have an excellent place to prevent cred leaks. We can place a scan on the push operation. Anything that would fail will prevent the push from happening.
Furthermore, @LarryOsterman has requested that this is a setting that can be enabled / disabled on the server.

We can just do whenever recorder.stop() is called, right?

Right, but we don't want to put an explicit dependency on credscan from the test-proxy.
If we can add credscan as a nuget dependency, then yes, I agree with you. I don't think that's a possibility though.

Here is an article

CredScan was a no-go, we instead integrated Microsoft.Security.Utilities for #8140


New Grouped AVP + Changes in current commands

I have included some new grouped AVP and associated with the corresponding messages. These are all tested and working fine.

@mensonen Understood! Thank you for the feedback. Please review the updates.


Fix for object reinitialized after each operation.

Suggested improvements
Code style fixes
Signed-off-by: Maciej Szczepaniak<EMAIL_ADDRESS>

Please review and merge


Errors while creating BC18 container with test libraries.

I create BC Container(18.0.23013.23795) with checked IncludeTestLibraries abd IncludeTestToolkit. Part of them are published with out any problems except Microsoft_Tests-TestLibraries_18.0.23013.23795.app:
`Publishing C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\2a5cd6a4-ae1d-49f4-a2b6-79d3a8ed8fa2\Microsoft_Tests-TestLibraries_18.0.23013.23795.app
Extension compilation failed
LibrarySales.Codeunit.al(719,54): error AL0185: Table 'Deposit Header' is missing
LibrarySales.Codeunit.al(815,54): error AL0185: Table 'Deposit Header' is missing
LibraryLocalFunctionality.codeunit.al(11,56): error AL0185: Table 'IRS 1099 Form-Box' is missing
LibraryLocalFunctionality.codeunit.al(25,62): error AL0185: Table 'IRS 1099 Adjustment' is missing
LibraryERM.Codeunit.al(315,54): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(323,50): error AL0185: Table 'Bank Rec. Line' is missing
LibraryERM.Codeunit.al(323,90): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(337,58): error AL0185: Table 'Bank Comment Line' is missing
LibraryERMCountryData.Codeunit.al(229,30): error AL0185: Table 'Posted Bank Rec. Header' is missing
LibraryERMCountryData.Codeunit.al(230,28): error AL0185: Table 'Posted Bank Rec. Line' is missing
LibraryERMCountryData.Codeunit.al(231,30): error AL0185: Table 'Posted Deposit Header' is missing
LibraryERMCountryData.Codeunit.al(232,28): error AL0185: Table 'Posted Deposit Line' is missing
at , : line 18
at Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 44
at , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Publish-NavContainerApp.ps1: line 257
at Publish-BcContainerApp, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Publish-NavContainerApp.ps1: line 117
at , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ObjectHandling\Import-TestToolkitToNavContainer.ps1: line 185
at Import-TestToolkitToBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ObjectHandling\Import-TestToolkitToNavContainer.ps1: line 153
at New-BcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\New-NavContainer.ps1: line 1843
at , : line 1
Extension compilation failed
LibrarySales.Codeunit.al(719,54): error AL0185: Table 'Deposit Header' is missing
LibrarySales.Codeunit.al(815,54): error AL0185: Table 'Deposit Header' is missing
LibraryLocalFunctionality.codeunit.al(11,56): error AL0185: Table 'IRS 1099 Form-Box' is missing
LibraryLocalFunctionality.codeunit.al(25,62): error AL0185: Table 'IRS 1099 Adjustment' is missing
LibraryERM.Codeunit.al(315,54): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(323,50): error AL0185: Table 'Bank Rec. Line' is missing
LibraryERM.Codeunit.al(323,90): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(337,58): error AL0185: Table 'Bank Comment Line' is missing
LibraryERMCountryData.Codeunit.al(229,30): error AL0185: Table 'Posted Bank Rec. Header' is missing
LibraryERMCountryData.Codeunit.al(230,28): error AL0185: Table 'Posted Bank Rec. Line' is missing
LibraryERMCountryData.Codeunit.al(231,30): error AL0185: Table 'Posted Deposit Header' is missing
LibraryERMCountryData.Codeunit.al(232,28): error AL0185: Table 'Posted Deposit Line' is missing
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1:45 char:13

        throw $_.Exception.Message

        ~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : OperationStopped: (Extension compi...ine' is missing:String) [], RuntimeException
FullyQualifiedErrorId : Extension compilation failed
LibrarySales.Codeunit.al(719,54): error AL0185: Table 'Deposit Header' is missing
LibrarySales.Codeunit.al(815,54): error AL0185: Table 'Deposit Header' is missing
LibraryLocalFunctionality.codeunit.al(11,56): error AL0185: Table 'IRS 1099 Form-Box' is missing
LibraryLocalFunctionality.codeunit.al(25,62): error AL0185: Table 'IRS 1099 Adjustment' is missing
LibraryERM.Codeunit.al(315,54): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(323,50): error AL0185: Table 'Bank Rec. Line' is missing
LibraryERM.Codeunit.al(323,90): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(337,58): error AL0185: Table 'Bank Comment Line' is missing
LibraryERMCountryData.Codeunit.al(229,30): error AL0185: Table 'Posted Bank Rec. Header' is missing
LibraryERMCountryData.Codeunit.al(230,28): error AL0185: Table 'Posted Bank Rec. Line' is missing
LibraryERMCountryData.Codeunit.al(231,30): error AL0185: Table 'Posted Deposit Header' is missing
LibraryERMCountryData.Codeunit.al(232,28): error AL0185: Table 'Posted Deposit Line' is missing

It would help me to get the full script and full output, thanks.

It would help me to get the full script and full output, thanks.

Here is full log
PS C:\WINDOWS\system32> New-BcContainer -accept_eula -artifactUrl https://bcartifacts.azureedge.net/sandbox/18.0.23013.23795/us -assignPremiumPlan -auth UserPassword -bakFile "C:\BC18 Stay Backup.bak" -containerName bc18-Softera-Stay -Credential (get-credential -UserName $env:USERNAME -Message 'Using Windows Authentication. Please enter your Windows credentials.') -includeTestLibrariesOnly -licenseFile "D:\5205116 (7).flf" -shortcuts Desktop -updateHosts
WARNING: Container name should not exceed 15 characters
BcContainerHelper is version 2.0.11
BcContainerHelper is running as administrator
Host is Microsoft Windows 10 Pro - 20H2
Docker Client Version is 20.10.6
Docker Server Version is 20.10.6
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.19042.928
Creating Container bc18-Softera-Stay
Version: 18.0.23013.23795-US
Style: sandbox
Multitenant: No
Platform: 18.0.22893.23773
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.19042.928 (20H2)
Host OS Version: 10.0.19042.928 (20H2)
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file D:\5205116 (7).flf
Files in C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\my:

AdditionalOutput.ps1
license.flf
MainLoop.ps1
SetupVariables.ps1
updatehosts.ps1
Creating container bc18-Softera-Stay from image mcr.microsoft.com/businesscentral:10.0.19042.928
dc9d4a77d25ce5741ba1c03219a93dffdb5928bfec28ee9ddb09d2b77379f0c6
Waiting for container bc18-Softera-Stay to be ready
Adding BC18-SOFTERA-ST to hosts file
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/18.0.23013.23795/us
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\18.0.23013.23795\platform\ServiceTier\Program Files
c:\dl\sandbox\18.0.23013.23795\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\18.0.23013.23795\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\18.0.23013.23795\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
c:\dl\sandbox\18.0.23013.23795\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\18.0.23013.23795\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\18.0.23013.23795\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\18.0.23013.23795\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\18.0.23013.23795\platform
c:\dl\sandbox\18.0.23013.23795\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\18.0.23013.23795\platform\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\18.0.23013.23795\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\18.0.23013.23795\us\Extensions
Copying Applications
C:\dl\sandbox\18.0.23013.23795\platform\Applications
Copying Applications.US
C:\dl\sandbox\18.0.23013.23795\us\Applications.US
Installation took 79 seconds
Installation complete
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is bc18-Softera-Stay
PublicDnsName is bc18-Softera-Stay
Using NavUserPassword Authentication
Using Database .bak file 'C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\database.bak'
Using database server localhost\SQLEXPRESS
Setting CompatibilityLevel for mydatabase on localhost\SQLEXPRESS
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 889D785E4C33501CA5C85CDAD52B9C38DFC2221F
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating pam as SQL User and add to sysadmin
Creating SUPER user
Container IP Address: <IP_ADDRESS>
Container Hostname  : bc18-Softera-Stay
Container Dns Name  : bc18-Softera-Stay
Web Client          : http://bc18-Softera-Stay/BC/
Dev. Server         : http://bc18-Softera-Stay
Dev. ServerInstance : BC
Setting bc18-Softera-Stay to <IP_ADDRESS> in host hosts file

Files:
http://bc18-Softera-Stay:8080/ALLanguage.vsix
Container Total Physical Memory is 15.9Gb
Container Free Physical Memory is 5.6Gb
Initialization took 287 seconds
Ready for connections!
Reading CustomSettings.config from bc18-Softera-Stay
Creating Desktop Shortcuts for bc18-Softera-Stay
Container bc18-Softera-Stay successfully created
Use:
Get-BcContainerEventLog -containerName bc18-Softera-Stay to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName bc18-Softera-Stay to get debug information about the container
Enter-BcContainer -containerName bc18-Softera-Stay to open a PowerShell prompt inside the container
Remove-BcContainer -containerName bc18-Softera-Stay to remove the container again
docker logs bc18-Softera-Stay to retrieve information about URL's again
PS C:\WINDOWS\system32> New-BcContainer -accept_eula -artifactUrl https://bcartifacts.azureedge.net/sandbox/18.0.23013.23795/us -assignPremiumPlan -auth UserPassword -bakFile "C:\BC18 Stay Backup.bak" -containerName bc18-Softera-Stay -Credential (get-credential -UserName $env:USERNAME -Message 'Using Windows Authentication. Please enter your Windows credentials.') -databaseName bc18-cu0-Softera-Stay -includeTestLibrariesOnly -includeTestToolkit -licenseFile "D:\5205116 (7).flf" -shortcuts Desktop -updateHosts
WARNING: Container name should not exceed 15 characters
BcContainerHelper is version 2.0.11
BcContainerHelper is running as administrator
Host is Microsoft Windows 10 Pro - 20H2
Docker Client Version is 20.10.6
Docker Server Version is 20.10.6
Removing container bc18-Softera-Stay
Removing bc18-Softera-Stay from container hosts file
Removing bc18-Softera-Stay-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.19042.928
Creating Container bc18-Softera-Stay
Version: 18.0.23013.23795-US
Style: sandbox
Multitenant: No
Platform: 18.0.22893.23773
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.19042.928 (20H2)
Host OS Version: 10.0.19042.928 (20H2)
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file D:\5205116 (7).flf
Files in C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\my:

AdditionalOutput.ps1
license.flf
MainLoop.ps1
SetupVariables.ps1
updatehosts.ps1
Creating container bc18-Softera-Stay from image mcr.microsoft.com/businesscentral:10.0.19042.928
d27c225c8393d01f944a82439789ede995fce49e2f022018cfab741696eba78e
Waiting for container bc18-Softera-Stay to be ready
Adding BC18-SOFTERA-ST to hosts file
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/18.0.23013.23795/us
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\18.0.23013.23795\platform\ServiceTier\Program Files
c:\dl\sandbox\18.0.23013.23795\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\18.0.23013.23795\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\18.0.23013.23795\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
c:\dl\sandbox\18.0.23013.23795\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\18.0.23013.23795\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\18.0.23013.23795\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\18.0.23013.23795\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\18.0.23013.23795\platform
c:\dl\sandbox\18.0.23013.23795\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\18.0.23013.23795\platform\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\18.0.23013.23795\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\18.0.23013.23795\us\Extensions
Copying Applications
C:\dl\sandbox\18.0.23013.23795\platform\Applications
Copying Applications.US
C:\dl\sandbox\18.0.23013.23795\us\Applications.US
Installation took 65 seconds
Installation complete
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is bc18-Softera-Stay
PublicDnsName is bc18-Softera-Stay
Using NavUserPassword Authentication
Using Database .bak file 'C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\database.bak'
Using database server localhost\SQLEXPRESS
Setting CompatibilityLevel for mydatabase on localhost\SQLEXPRESS
Creating Self Signed Certificate
Self Signed Certificate Thumbprint AD11E3C896911D0EC078AF8025FFFC7B0F33344C
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating pam as SQL User and add to sysadmin
Creating SUPER user
Container IP Address: <IP_ADDRESS>
Container Hostname  : bc18-Softera-Stay
Container Dns Name  : bc18-Softera-Stay
Web Client          : http://bc18-Softera-Stay/BC/
Dev. Server         : http://bc18-Softera-Stay
Dev. ServerInstance : BC
Setting bc18-Softera-Stay to <IP_ADDRESS> in host hosts file

Files:
http://bc18-Softera-Stay:8080/ALLanguage.vsix
Container Total Physical Memory is 15.9Gb
Container Free Physical Memory is 4.7Gb
Initialization took 268 seconds
Ready for connections!
Reading CustomSettings.config from bc18-Softera-Stay
Creating Desktop Shortcuts for bc18-Softera-Stay
Synchronizing Test Runner on default
App successfully synchronized
Installing Test Runner on default
App successfully installed
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\9282746b-ac97-4c34-a8f0-538d67489b28\Microsoft_Any_18.0.23013.23795.app
Synchronizing Any on tenant default
Installing Any on tenant default
App Microsoft_Any_18.0.23013.23795.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\57790e87-6473-487d-bcdc-791ed9a63b85\Microsoft_Library Assert_18.0.23013.23795.app
Synchronizing Library Assert on tenant default
Installing Library Assert on tenant default
App Microsoft_Library Assert_18.0.23013.23795.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\07bffc63-d771-43f9-87eb-5d68fbebb70c\Microsoft_Library Variable Storage_18.0.23013.23795.app
Synchronizing Library Variable Storage on tenant default
Installing Library Variable Storage on tenant default
App Microsoft_Library Variable Storage_18.0.23013.23795.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\e798fcbb-8e7f-45d2-9749-3bb88763bb57\Microsoft_System Application Test Library_18.0.23013.23795.app
Synchronizing System Application Test Library on tenant default
Installing System Application Test Library on tenant default
App Microsoft_System Application Test Library_18.0.23013.23795.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc18-Softera-Stay\2a5cd6a4-ae1d-49f4-a2b6-79d3a8ed8fa2\Microsoft_Tests-TestLibraries_18.0.23013.23795.app
Extension compilation failed
LibrarySales.Codeunit.al(719,54): error AL0185: Table 'Deposit Header' is missing
LibrarySales.Codeunit.al(815,54): error AL0185: Table 'Deposit Header' is missing
LibraryLocalFunctionality.codeunit.al(11,56): error AL0185: Table 'IRS 1099 Form-Box' is missing
LibraryLocalFunctionality.codeunit.al(25,62): error AL0185: Table 'IRS 1099 Adjustment' is missing
LibraryERM.Codeunit.al(315,54): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(323,50): error AL0185: Table 'Bank Rec. Line' is missing
LibraryERM.Codeunit.al(323,90): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(337,58): error AL0185: Table 'Bank Comment Line' is missing
LibraryERMCountryData.Codeunit.al(229,30): error AL0185: Table 'Posted Bank Rec. Header' is missing
LibraryERMCountryData.Codeunit.al(230,28): error AL0185: Table 'Posted Bank Rec. Line' is missing
LibraryERMCountryData.Codeunit.al(231,30): error AL0185: Table 'Posted Deposit Header' is missing
LibraryERMCountryData.Codeunit.al(232,28): error AL0185: Table 'Posted Deposit Line' is missing
at , : line 18
at Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 44
at , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Publish-NavContainerApp.ps1: line 257
at Publish-BcContainerApp, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Publish-NavContainerApp.ps1: line 117
at , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ObjectHandling\Import-TestToolkitToNavContainer.ps1: line 185
at Import-TestToolkitToBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ObjectHandling\Import-TestToolkitToNavContainer.ps1: line 153
at New-BcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\New-NavContainer.ps1: line 1843
at , : line 1
Extension compilation failed
LibrarySales.Codeunit.al(719,54): error AL0185: Table 'Deposit Header' is missing
LibrarySales.Codeunit.al(815,54): error AL0185: Table 'Deposit Header' is missing
LibraryLocalFunctionality.codeunit.al(11,56): error AL0185: Table 'IRS 1099 Form-Box' is missing
LibraryLocalFunctionality.codeunit.al(25,62): error AL0185: Table 'IRS 1099 Adjustment' is missing
LibraryERM.Codeunit.al(315,54): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(323,50): error AL0185: Table 'Bank Rec. Line' is missing
LibraryERM.Codeunit.al(323,90): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(337,58): error AL0185: Table 'Bank Comment Line' is missing
LibraryERMCountryData.Codeunit.al(229,30): error AL0185: Table 'Posted Bank Rec. Header' is missing
LibraryERMCountryData.Codeunit.al(230,28): error AL0185: Table 'Posted Bank Rec. Line' is missing
LibraryERMCountryData.Codeunit.al(231,30): error AL0185: Table 'Posted Deposit Header' is missing
LibraryERMCountryData.Codeunit.al(232,28): error AL0185: Table 'Posted Deposit Line' is missing
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1:45 char:13

        throw $_.Exception.Message

        ~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : OperationStopped: (Extension compi...ine' is missing:String) [], RuntimeException
FullyQualifiedErrorId : Extension compilation failed
LibrarySales.Codeunit.al(719,54): error AL0185: Table 'Deposit Header' is missing
LibrarySales.Codeunit.al(815,54): error AL0185: Table 'Deposit Header' is missing
LibraryLocalFunctionality.codeunit.al(11,56): error AL0185: Table 'IRS 1099 Form-Box' is missing
LibraryLocalFunctionality.codeunit.al(25,62): error AL0185: Table 'IRS 1099 Adjustment' is missing
LibraryERM.Codeunit.al(315,54): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(323,50): error AL0185: Table 'Bank Rec. Line' is missing
LibraryERM.Codeunit.al(323,90): error AL0185: Table 'Bank Rec. Header' is missing
LibraryERM.Codeunit.al(337,58): error AL0185: Table 'Bank Comment Line' is missing
LibraryERMCountryData.Codeunit.al(229,30): error AL0185: Table 'Posted Bank Rec. Header' is missing
LibraryERMCountryData.Codeunit.al(230,28): error AL0185: Table 'Posted Bank Rec. Line' is missing
LibraryERMCountryData.Codeunit.al(231,30): error AL0185: Table 'Posted Deposit Header' is missing
LibraryERMCountryData.Codeunit.al(232,28): error AL0185: Table 'Posted Deposit Line' is missing

The Microsoft_Tests-TestLibraries_18.0.23013.23795.app is different on different localizations of Business Central.
You are restoring your own database, which probably comes from a different localization than the US version of the container you are spinning up - and then you are trying to install the US Test Libraries on that base app.


Habitat challenge 2020 remote evaluation

Motivation and Context
Remote evaluation for habitat-challenge. Note that the modules being imported for remote evaluation are not part of the habitat-api repository.
How Has This Been Tested
Tested with habitat-challenge setup.

@abhiskk following up on landing this change.

@abhiskk -- can we land this?


Document ways of working

Team agree on methods or framework for documentation of components as they are being developed.
Definition of done

[ ] Proposed framework based on #221
[ ] Share back to agree
[ ] Documentation shared

This ?
Checklist consideration

Research - Current examples
Usability requirements
Accessibility requirements
Concepts
Prototype testing
A11y review
Content review
Tech review
Prepare documentation for build

Guidance and how to contribute?
https://docs.google.com/document/d/1Ozkl5JF-EloY8xYDsrESPBFWC-ODgIDs1cGt-J-R4MI/edit


Fix typo

This line should use <%= %> instead of <% %>, because $name is in sink context.

thank you :)


MRG +1: better error when events is tuple (closes #6455)

@larsoner is this what you were envisioning?

@agramfort this one is ready.


Ability to disable annotations in disassembly text

What is the feature you'd like to have?
I would like to be able to hide {Brace-enclosed annotations} from the disassembly output. Ideally there would be a ShowAnnotations enumerator (which can be unset) in the BNDisassemblyOption enumeration.
Is your feature request related to a problem?
I suppose not, but it feels like a problem to me. :(
Are any alternative solutions acceptable?
Manually filtering the tokens returned by BasicBlock::GetDisassemblyText.

At the time of filing, no. But I'm now having an issue where annotations generate non-deterministically which makes diffing a bit more annoying due to the noise introduced by them. I recognize that's probably a separate issue, and I can make one for it when I have time to find a minimal repro for it.


Split huge spec file into separate ones for clarity

The simple file got not so simple, and also huge.

Let's merge all other PRs before merging this one, I'll fix the conflicts here


⚠ Quirk Club Argentina (SSR) has degraded performance

In de85819, Quirk Club Argentina (SSR) (https://quirkclub-dev.web.app/ssr-check) experienced degraded performance:

HTTP code: 200
Response time: 6450 ms

Resolved: Quirk Club Argentina (SSR) performance has improved in 79ac5b3 after 19 minutes.


[FLINK-35526] Use more up to date jq docker image for Flink e2e tests

Our CI logs contain this warning: https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=60060&view=logs&j=af184cdd-c6d8-5084-0b69-7e9c67b35f7a&t=0f3adb59-eefa-51c6-2858-3654d9e0749d&l=3828
latest: Pulling from stedolan/jq
[DEPRECATION NOTICE] Docker Image Format v1, and Docker Image manifest version 2, schema 1 support will be removed in an upcoming release. Suggest the author of docker.io/stedolan/jq:latest to upgrade the image to the OCI Format, or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/

Thanks for the PR!
How about using the official jq image: https://github.com/jqlang/jq/pkgs/container/jq ?

Thanks for the review. I actually like your proposal a lot. Will change it.

First iteration of this PR was green: https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=60071


Updated Danish Ui translations.

I've updated the keys requested in #143 and a few more that I found in the german translation file.
Sorry for the delayed response - but with the corona virus and everything my planning kinda went out the window :)

Don't worry about it at all. Thanks so much @sipman!


Headless parameter is true by default for Cypress

For other tools it's false. Need to make sure all values are the same.

Fixed in https://github.com/aerokube/moon2/pull/179.


devicetree: Remove DT_SRAM_{BASE_ADDRESS,SIZE}, use CONFIG_* versions

The SRAM address and size are currently available as both
DT_SRAM_{BASE_ADDRESS,SIZE} and as CONFIG_SRAM_{BASE_ADDRESS,SIZE} (via
the Kconfig preprocessor).
Use the more flexible CONFIG_SRAM_* versions everywhere, and remove
generation of the DT_SRAM_* versions from gen_defines.py.

Bleargh... these are within an if if ARC || ARM || NIOS2 || X86 in arch/Kconfig. Need to check if that's necessary.


netcore？

严重性	代码	说明	项目	文件	行	禁止显示状态
错误	NU1202	包 GeonBit <IP_ADDRESS> 与 netcoreapp3.1 (.NETCoreApp,Version=v3.1) 不兼容。 包 GeonBit <IP_ADDRESS> 支持: geonbit (geonbit,Version=v0.0)	Game1	C:\Users\Administrator\source\repos\Game1\Game1\Game1.csproj	1

Hi Ronen, any chance of getting .NET Core support for GeonBit.UI? I looked into it but it seemed a bit daunting, I could probably do it, but would trust your familiarity and design.

It works fine with .NET Core, give it a shot, it should work perfectly fine. It wasn't written with it, but you can still use it as it is .NET

I am not getting this to work with .NET core (v3.1) either, would love to use this framework - but it seems it is not actively being maintained anymore..

After some trial and error I got it to work, I followed the steps listed here on importing the project manually into my own project and converted the DataTypes project to .NET standard using the suggested pull request here . After compiling the DataTypes DLL and adding this as a reference to both the Content Manager and my project itself, it now works! For the conversion of the DataTypes project to .NET standard one must simply replace the existing .csproj file with the .csproj file suggested in the pull request. It works really well and given that you can edit the framework to your own liking is always nice. Good luck!

I did update it to newest version of monogame and .net core

I've updated it also, however I've also done some more extreme project restructuring changes to decouple the example and content from the library project.  Maybe someone will find it useful.
https://github.com/DireAussie/GeonBit.UI


Memory map block with other overlay blocks

I have block TCM (Tight Cache Memory), firmware uses this area for stack, gp, few functions, data etc. I mapped the whole TCM area (as uninitialized), so stack/gp references works properly.
Layout:

TCM - 0x42014000 - 0x4201ffff (Size: 0xc000)
Functions (in TCM) - 0x420150e0 - 0x42016247 (Size: 0x1168), mapped from Flash address (firmware) 0x2001EDCC
GP, SP are in TCM too.

As I mentioned, it contains few functions, which are copied from Flash to TCM. Normally I would create another memory block, and map Flash area to the TCM area, but it collides with TCM block (which makes sense). So I can use "Overlay" feature, but in overlay I can't disassemble the code, and decompiler doesn't care about overlays at all, so it maps to uninitialized area in TCM block. I can remove the TCM area and map only those, but then stack variables don't belong to any memory map.
What is the best way of doing this? I got idea where I can make bin file with whole TCM area, and copy parts from Flash into it, and then import it as full memory block, but that's quite hacky. Is there any other way?
Thanks.

What processor spec (i.e., language ID) are you using?
What version of Ghidra were you using?  There were some overlay regression error introduce with 10.2 that have been corrected in 10.2.2.
Are you conflating overlay memory blocks with byte-mapped memory blocks?  Seems a byte-mapped block would be more applicable to your situation (TCM Functions -> Flash firmware).
The stack space associated with SP (see cspec stackpointer element) should always be associated with a physical address space and is never dereferenced to an absolute offset in memory.  Overlays, in general, are used to allow the same memory region by address to have alternative views.  Unfortunately, knowing which overlay to dereference into is limited to decompiling a single function within an overlay and using absolute/relative memory references withing the same overlay.   A function within one overlay cannot reference data/code in another overlay since we have no way to mechanism to identify the other overlay.
In general, indirect dereferencing of register pointers (e.g., GP) do not currently handle dereferencing into an overlay space but should handle byte-mapped memory blocks.  @caheckman may be able to offer more insight into the decompiler's ability to indirectly dereference a constant pointer into the same overlay that contains the function being decompiled - last I was aware of this was not supported.

Hello @ghidra1 ,
I'm sorry, I forgot to provide more information about project and ghidra version.
Language ID is RISCV:LE:32:RV32GC , Ghidra 10.2.2 (2022-Nov-15 2224 CET).
Thanks for explanation and it makes sense now.
Basically, only thing I wanted to do, is to map whole TCM area as not-initialized block, but inside this TCM block, put data inside, which is copied from Flash by firmware. I thought that overlay is for this (so I have block with not-initialized data, and then by overlay add content to various parts of it).

I am still puzzled why use an overlay instead of the actual memory region?  Think of overlays as a time-based distinction (i.e., the same address(es) can be dynamically loaded with different content "code" at different times).   If for the purpose of analysis, if the code is loaded from Flash once only to a region why not just copy the bytes of create a byte-mapped block which would map the actual Flash bytes into the memory region where it gets copied.
In some situations, this may involve an unpacker (i.e., decompress) in which case the unpacking must be done manually or via a script and the unpacked bytes copied into a new initialized memory block(s) where they get loaded.
I would not use an overlay-block unless you have no other choice since it has quite a few limitations since the same memory address has more than one possible block.  This is not the case for normal memory blocks or byte-mapped blocks.

I am going to close this ticket since I believe everything is working as intended.  Fee free to post here if you need additional clarrification.

@ghidra1 Yes, most of my questions were answered and so far, I didn't had any issues with it :blush: Thank you very much.