text:
TaskStartActor tests, fixes and simplifications

This pull request follows up on #913, adding more tests for

scaling when a task exists already
scaling when taskQueue contains a task (e.g. after reconciliation which reschedules a dead task)
scaling with a dying, previously existing task

and adding some simplifications

use of scaleTo directly in StartingBehavior instead of expectedSize
speaking name for actual semantics of StartingBehavior's variables.

Replaces #931, extends #913.

The variable renamings and the last test case with a dying task make current behavior explicit, please discuss.

@sttts Could you please rebase this PR?

Rebased.

:100:

authors: drexin sttts


text:
Fix chronos post-install notes

Missing '/' in the Chronos issues URL.

:+1: from me

LGTM

source: gharchive/pull-request

authors: elingg jsancio mgummelt

repo: mesosphere/universe

license_type: permissive

license_source: bigquery


text:
setuptools fails on 3.7 and 3.8

I'm having an issue with setuptools failing to run bdist and bdist_wheel

It's so far failed on 3.7 and 3.8 with the same error, but it's fine on 3.10 and 3.9
To reproduce, I'm using cross compilation on the docker image messense/manylinux2014-cross:armv7l.
Source code used to test: https://github.com/vicky5124/lavasnek_rs/
# To reproduce:

# get rust
curl https://sh.rustup.rs -sSf | sh -s -- --target armv7-unknown-linux-gnueabihf stable -y
source $HOME/.cargo/env

# get pip
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8

# setup cross
python3.8 -m pip install 'crossenv>=1.1.2'
python3.8 -m crossenv /opt/python/cp38-cp38/bin/python3 --cc $TARGET_CC --cxx $TARGET_CXX --sysroot $TARGET_SYSROOT --env LIBRARY_PATH= .venv
source .venv/bin/activate

# setup deps
pip install -U pip wheel setuptools-rust setuptools
export PYO3_CROSS_LIB_DIR="$PWD/.venv/lib"

# build wheel
python setup.py bdist_wheel --dist-dir ./dist/

Anyone has any idea on how to fix this?, I can't find anyone with the same issue providing a solution online.
Also, is this why 3.7 and 3.8 are commented on the CI tests?

The fix is to add build-pip install -U pip wheel setuptools-rust setuptools before the last pip install, as well as modifying .venv/lib/distutils-sysconfig-patch.py with:
13c13
<     __real_init_posix = _init_posix
---
>     #__real_init_posix = _init_posix
17,23c17,23
<         try:
<             return __real_init_posix()
<         finally:
<             if old is None:
<                 del os.environ['_PYTHON_SYSCONFIGDATA_NAME']
<             else:
<                 os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = old
---
>         #try:
>         #    return __real_init_posix()
>         #finally:
>         if old is None:
>             del os.environ['_PYTHON_SYSCONFIGDATA_NAME']
>         else:
>             os.environ['_PYTHON_SYSCONFIGDATA_NAME'] = old

Also, is this why 3.7 and 3.8 are commented on the CI tests?

Just to reduce CI time.

source: gharchive/issue

repo: messense/manylinux-cross

license: MIT

license_source: github-api


text:
Add Python 3.10 image

Adding Python 3.10 image based on focal only as Xenial is no longer maintained.

After 3.9 is merged, lets update this branch and update readme and image build script.

repo: metabrainz/docker-python


text:
openstack driver trying to assign a floating ip, even when ip_pool set to None explicitly in molecule.yml

Issue Type

Bug report

Molecule and Ansible details
ansible --version: ansible 2.3.0.0
molecule --version: molecule, version 1.24.0

Molecule installation method: pip
Ansible installation method: OS package

Desired Behaviour
molecule creating an instance in our openstack on the specified network, without trying to attach a floating ip
Actual Behaviour (Bug report only)
molecule.yml:
---
driver:
  name: openstack
openstack:
  ssh_timeout: 300
  instances:
    - name: "molecule-test"
      image: 'CentOS-7-x86_64-GenericCloud-1608.qcow2'
      flavor: m1.small
      sshuser: centos
      networks: "${OS_NETWORK_ID}"
      ip_pool: None
verifier:
  name: goss

And yet molecule fails with the following output:
--> 	 Waiting for instance molecule-test to be in state active...
Traceback (most recent call last):
  File "/usr/bin/molecule", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/molecule/cli.py", line 41, in main
    cli(obj={})
  File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/molecule/command/test.py", line 96, in test
    util.sysexit(t.execute()[0])
  File "/usr/lib/python2.7/site-packages/molecule/command/test.py", line 44, in execute
    status, output = c.execute(exit=False)
  File "/usr/lib/python2.7/site-packages/molecule/command/converge.py", line 67, in execute
    c.execute()
  File "/usr/lib/python2.7/site-packages/molecule/command/create.py", line 42, in execute
    self.molecule.driver.up(no_provision=True)
  File "/usr/lib/python2.7/site-packages/molecule/driver/openstackdriver.py", line 173, in up
    instance['server'], auto_ip=True)
  File "/usr/lib/python2.7/site-packages/shade/openstackcloud.py", line 5584, in wait_for_server
    nat_destination=nat_destination)
  File "/usr/lib/python2.7/site-packages/shade/openstackcloud.py", line 5608, in get_active_server
    wait=wait, timeout=timeout)
  File "/usr/lib/python2.7/site-packages/shade/openstackcloud.py", line 5239, in add_ips_to_server
    server, wait=wait, timeout=timeout, reuse=reuse)
  File "/usr/lib/python2.7/site-packages/shade/openstackcloud.py", line 5200, in _add_auto_ip
    skip_attach=skip_attach)
  File "/usr/lib/python2.7/site-packages/shade/openstackcloud.py", line 4872, in _attach_ip_to_server
    wait=self._SERVER_AGE):
  File "/usr/lib/python2.7/site-packages/shade/_utils.py", line 77, in _iterate_timeout
    raise exc.OpenStackCloudTimeout(message)
shade.exc.OpenStackCloudTimeout: Timeout waiting for the floating IP to be attached. (Inner Exception: unable to bind a floating ip to server df769c32-04d8-4051-b3f6-0c16f2cbe720: External network eff3dd95-0aad-4848-a20e-607316b25f9b is not reachable from subnet cde2b082-d0e1-44d5-8ef0-dba1e43e80b6.  Therefore, cannot associate Port 6e1adf57-caf3-4c80-80d9-561d930ef2d1 with a Floating IP.
Neutron server returns request_ids: ['req-05a239a7-93ad-45fd-b9fc-33786a848af9'])

I have a shared external network setup, but I do not want to use it for molecule tests. It should only use the specified network and not assign a floating ip

Doesn't look like anyone in the community is interested in fixing this for v1.

@VuokkoVuorinnen I recommend moving to Molecule v2.  This isn't going to be fixed under v1.  Please let us know if you have any issues with v2.

repo: metacloud/molecule

license: mit


text:
🌱 Fix log mesages

This is overtaken PR from #1555
Fixes https://github.com/metal3-io/cluster-api-provider-metal3/issues/1550

/test metal3-ubuntu-e2e-integration-test-main

/override metal3-centos-e2e-integration-test-main
as this pr does not contain functional change. Running one test is enough.

/cc @adilGhaffarDev @smoshiur1237

authors: Sunnatillo tuminoid


text:
🌱 share logic between ip address allocation and release

clean up return parameters and update comments to reflect current behaviour

What this PR does / why we need it:
I've refactored the IP address allocation and release functions to share the logic used to determine from which pools to allocate.
I've also cleaned up a few things in the process

releaseAddressFromM3Pool no longer returns whether it was successful or if reconciliation should be requeued, both were unused
both getAddressFromM3Pool and releaseAddressFromM3Pool no longer interact with the addresses map, as that was not necessary. They also no longer check whether a pool was processed already, as each pool will only be processed once.

This is in preparation for implementing CAPI IPAM Contract support (#671), so I've renamed getAddressFromM3Pool and releaseAddressFromM3Pool to include M3.
I've also used a corev1.TypedLocalObjectReference because I plan to use that to differentiate between pools. If both group and kind are unset, or set to M3 IPAM, the current logic will be used. If a different group/kind is referenced, the new IPAM contract will be used instead.

/ok-to-test

/test-ubuntu-integration-main

/cc @fmuyassarov
/cc @furkatgofurov7
/cc @kashifest

/cc @smoshiur1237
/cc @mboukhalfa

/test-ubuntu-integration-main
/test-ubuntu-e2e-main

/test-ubuntu-integration-main

authors: Rozzii furkatgofurov7 kashifest schrej


text:
NIST PubID scheme: Confirm that "NISTGCR" is to be shown as "NIST GCR" in PubID

As per #57 .

Pending NIST decision, already communicated.

This is implemented in #57, just pending decision from NIST.

The final PubID scheme (#153 ) confirms that GCR is an official series acronym, so it is to be shown as "NIST GCR". Done.

repo: metanorma/nist-pubid


text:
Validate implementation with official NIST Tech Pubs collection

https://github.com/usnistgov/NIST-Tech-Pubs/blob/nist-pages/xml/allrecords.xml
Data e.g.
<body>
   <query key="BH">
      <doi type="report-paper_title">10.6028/NBS.BH.1</doi>
      <crm-item name="publisher-name" type="string">National Institute of Standards and Technology (NIST)</crm-item>
      <crm-item name="prefix-name" type="string">National Institute of Standards and Technology</crm-item>
      <crm-item name="member-id" type="number">4068</crm-item>
      <crm-item name="citation-id" type="number">78696207</crm-item>
      <crm-item name="book-id" type="number">2050209</crm-item>
      <crm-item name="deposit-timestamp" type="number">201511031134</crm-item>
      <crm-item name="owner-prefix" type="string">10.6028</crm-item>
      <crm-item name="last-update" type="date">2018-03-06T09:55:24Z</crm-item>
      <crm-item name="created" type="date">2015-11-04T17:31:05Z</crm-item>
      <crm-item name="citedby-count" type="number">0</crm-item>
      <doi_record>
         <report-paper>
            <report-paper_metadata language="en">
               <contributors>
                  <person_name sequence="first" contributor_role="author">
                     <given_name>Ira H</given_name>
                     <surname>Woolson</surname>
                  </person_name>
<!-- ... -->
               </contributors>
               <titles>
                  <title>Recommended minimum requirements for small dwelling construction :</title>
                  <subtitle>report of Building Code Committee July 20, 1922</subtitle>
               </titles>
               <edition_number>0</edition_number>
               <publication_date media_type="online">
                  <year>1923</year>
               </publication_date>
               <publisher>
                  <publisher_name>National Bureau of Standards</publisher_name>
                  <publisher_place>Gaithersburg, MD</publisher_place>
               </publisher>
               <institution>
                  <institution_name>National Bureau of Standards</institution_name>
                  <institution_acronym>NBS</institution_acronym>
                  <institution_place>Gaithersburg, MD</institution_place>
               </institution>
               <publisher_item>
                  <item_number item_number_type="report-number">NBS BH 1</item_number>
               </publisher_item>
               <doi_data>
                  <doi>10.6028/NBS.BH.1</doi>
                  <resource>https://nvlpubs.nist.gov/nistpubs/Legacy/BH/nbsbuildinghousing1.pdf</resource>
               </doi_data>
            </report-paper_metadata>
         </report-paper>
      </doi_record>
   </query>

We want to be able to generate a PubID for every entry, using a combination of:

<item_number>
<edition_number>
<publication_date> <year/month>
<doi>

Right now that information is handled in https://github.com/relaton/relaton-nist/blob/master/lib/relaton_nist/nist_bibliography.rb
And create a map.

For @mico

From @mico

I need more data for Section, Supplement, Index, Insert, Errata. Examples and more details.

I can validate implementation by parsing <item_number> and trying to convert it to short code and comparing with original <item_number>. Is that how you imagine validation process?
Do I understand correctly that <item_number> is already NIST PubID?
As I can see, usually it includes everything, but sometimes <edition_number> is not included, examples:
 <doi_data>
    <doi>10.6028/NIST.IR.8216</doi>
    <resource>https://nvlpubs.nist.gov/nistpubs/ir/2018/NIST.IR.8216.pdf</resource>
 </doi_data>
 <publisher_item>
    <item_number item_number_type="report-number">NIST IR 8216</item_number>
 </publisher_item>
 <edition_number>1.1</edition_number>

another doc, edition included:
 <edition_number>Revision 5</edition_number>
 <publisher_item>
    <identifier id_type="report-number">NIST SP 800-53r5</identifier>
 </publisher_item>
 <doi_data>
    <doi>10.6028/NIST.SP.800-53r5</doi>
    <resource>https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r5.pdf</resource>
 </doi_data>

We want to be able to generate a PubID for every entry, using a combination of:

<item_number>
<edition_number>
<publication_date> <year/month>
<doi>

You mean we want to be able to parse and convert data using this fields, right?
We can convert using <item_number> or <doi> + <edition_number> and <publication_date> <year/month> together, because they are not included to <item_number> or <doi>.

I can validate implementation by parsing <item_number> and trying to convert it to short code and comparing with original <item_number>. Is that how you imagine validation process?

This process sounds right. Instead of a "validation", let's do a check on how many PubIDs are different from the originals. This will be useful for NIST in the migration to the PubID.

Do I understand correctly that <item_number> is already NIST PubID?

Unfortunately, it is not. The current <item_number> is a manually assigned identifier with some consistency but not fully consistent like the PubID. That's why they wish to move to a defined scheme.

You mean we want to be able to parse and convert data using this fields, right? We can convert using <item_number> or <doi> + <edition_number> and <publication_date> <year/month> together, because they are not included to <item_number> or <doi>.

Yes. We want to generate a new PubID for every entry, and compare the "short" and "machine-readable" entries with the current <item_number> and <doi>.
This is the situation:

Every NIST Tech Pub has an "document identifier" and a "DOI identifier". They are not created in a consistent way.
In the new NIST PubID, there is a way to generate a consistent "document identifier" and a "machine-readable identifier" (which can be used like DOI).
NIST wants to migrate all their "document identifiers" and "DOI identifiers" to the new NIST PubID scheme.
We need to help them demonstrate the impact of this migration -- how many identifiers need to be changed, how large is the change, how many DOI identifiers need to change, what to change to, etc.

@mico can you help move towards this direction?

@ronaldtse there is still a lot of work to parse all NIST Tech Pubs collection's pubids correctly.
Now my pubids list for parsing updates looks like:
(parsed result | original pubid from NIST Tech Pubs)
NBS CIRC 101supe2 | NBS CIRC 101e2sup
NBS CIRC 11e2 | NBS CIRC 11e2-1915
NBS CIRC 11e3 | NBS CIRC 11e3-1917
NBS CIRC 13e2 | NBS CIRC 13e2revjune1908
NBS CIRC 13sup1928e11 | NBS CIRC 13e11sup1928
NBS CIRC 13e2 | NBS CIRC 13e2revJune1908
NBS CIRC 154sup | NBS CIRC 154suprev
NBS CIRC 15 | NBS CIRC 15-April1909
NBS CIRC 24supe4 | NBS CIRC 24e4sup
NBS CIRC 24sup | NBS CIRC 24supJan1924
NBS CIRC 24sup | NBS CIRC 24supJuly1922
NBS CIRC 25sup | NBS CIRC 25sup-1924
NBS CIRC 25sup | NBS CIRC 25sup-1925
NBS CIRC 25sup | NBS CIRC 25sup-1927
NBS CIRC 25sup | NBS CIRC 25sup-1928
NBS CIRC 25sup | NBS CIRC 25sup-1929
NBS CIRC 488SEC | NBS CIRC 488sec1
NBS CIRC 488SEC | NBS CIRC 488sec2
NBS CIRC 488SEC | NBS CIRC 488sec3
NBS CIRC 488SEC | NBS CIRC 488sec4
NBS CIRC 488SEC | NBS CIRC 488sec5
NBS CRPL 1-2 | NBS CRPL 1-2_3-1
NBS CRPL 1-2 | NBS CRPL 1-2_3-1A
NBS CRPL 4 | NBS CRPL 4-m-5
NBS CRPL 8-1 | NBS CRPL 8-1_9-4
NBS HB 44e2 | NBS HB 44e2-1955
NBS HB 44e2 | NBS HB 44e2-1961
NBS IR 80-2073 | NBS IR 80-2073.2
NBS IR 80-2073 | NBS IR 80-2073.3
NBS MP 39 | NBS MP 39(1)
NBS MP 39 | NBS MP 39(2)
NBS MP 39 | NBS MP 39(3)
NBS RPT 8 | NBS RPT 8/19/1927
NBS SP 250e1982 | NBS SP 250e1982app
NIST HB 133e4 | NIST HB 133e4-2002
NIST HB 133e4 | NIST HB 133e4-2003
NIST HB 133e4 | NIST HB 133e4-2005
NIST SP 1011 | NIST SP 1011-I-2.0
NIST SP 1011 | NIST SP 1011-II-1.0
NIST SP 1075 | NIST SP 1075-NCNR
NIST SP 1113 | NIST SP 1113-BFRL
NIST SP 1113 | NIST SP 1113-PERMIS
NIST SP 250e1992 | NIST SP 250e1992app
NIST SP 260-126 | NIST SP 260-126 rev 2013
NIST SP 260-162e2006 | NIST SP 260-162 2006ed.
NIST SP 800-22-1a | NIST SP 800-22r1a
NIST SP 800-27RA-a | NIST SP 800-27ra
NIST SP 800-38A-a | NIST SP 800-38a-add
NIST SP 800-53AR | NIST SP 800-53ar1
NIST SP 800-57P-1 | NIST SP 800-57Pt3r1
NIST SP 801 | NIST SP 801-errata
NIST SP 955 | NIST SP 955 Suppl.
NIST AMS 300-8-1 | NIST AMS 300-8r1 (February 2021 update)

After I finish this list, I'm going to compare doi (it could bring much more work to do), sometimes doi have more complete information, for example:
<item_number item_number_type="report-number">NIST IR 8178</item_number>
<doi>10.6028/NIST.IR.8178port</doi>

(item_number don't have translation part here)

Seems this documents is very different, but why they have same number and edition? Only different year, trying to figure out how to represent them in NIST PubID.
NBS CIRC 11e2 https://nvlpubs.nist.gov/nistpubs/Legacy/circ/nbscircular11e2.pdf
NBS CIRC 11e2-1915 https://nvlpubs.nist.gov/nistpubs/Legacy/circ/nbscircular11e2-1915.pdf

Are these the Short PubID representations?

NBS CIRC 101supe2 | NBS CIRC 101e2sup
NBS CIRC 13sup1928e11 | NBS CIRC 13e11sup1928
NBS CIRC 24supe4 | NBS CIRC 24e4sup

The first one refers to the Supplement of "NBS CIRC 101e2", so "NBS CIRC 101supe2" won't make sense. The others are similar.

NBS CIRC 154sup | NBS CIRC 154suprev

This is a revision of the supplement.

NBS CIRC 13e2 | NBS CIRC 13e2revjune1908
NBS CIRC 13e2 | NBS CIRC 13e2revJune1908

NBS CIRC 15 | NBS CIRC 15-April1909

NBS CIRC 24sup | NBS CIRC 24supJan1924
NBS CIRC 24sup | NBS CIRC 24supJuly1922

These are two separate documents. The first is a supplement issued Jan 1924, the second is another supplement issued July 1922. The PubID must differentiate them.

NBS CIRC 25sup | NBS CIRC 25sup-1924
NBS CIRC 25sup | NBS CIRC 25sup-1925
NBS CIRC 25sup | NBS CIRC 25sup-1927
NBS CIRC 25sup | NBS CIRC 25sup-1928
NBS CIRC 25sup | NBS CIRC 25sup-1929

Multiple supplements published in different years, need to distinguish them.

NBS CIRC 488SEC | NBS CIRC 488sec1
NBS CIRC 488SEC | NBS CIRC 488sec2
NBS CIRC 488SEC | NBS CIRC 488sec3
NBS CIRC 488SEC | NBS CIRC 488sec4
NBS CIRC 488SEC | NBS CIRC 488sec5

Different "sections" of a document. e.g. https://nvlpubs.nist.gov/nistpubs/Legacy/circ/nbscircular488sec5.pdf
Need to reflect them in the PubID.

NBS CRPL 1-2 | NBS CRPL 1-2_3-1
NBS CRPL 8-1 | NBS CRPL 8-1_9-4

We need to find a way to identify these. Perhaps "1-2, 3-1" is the number?

NBS CRPL 1-2 | NBS CRPL 1-2_3-1A

This is the "Supplement to report CRPL-1-2, 3-1"

NBS CRPL 4 | NBS CRPL 4-m-5

This document is really called "CRPL 4-M-5":

NBS HB 44e2 | NBS HB 44e2-1955
NBS HB 44e2 | NBS HB 44e2-1961

Two separate documents, need to distinguish them.

NBS IR 80-2073 | NBS IR 80-2073.2
NBS IR 80-2073 | NBS IR 80-2073.3

These are different parts.

NBS MP 39 | NBS MP 39(1)
NBS MP 39 | NBS MP 39(2)
NBS MP 39 | NBS MP 39(3)

These are different editions of NBS MP 39.

NBS RPT 8 | NBS RPT 8/19/1927

The original ID is wrong. This is actually:
Report Number: NBS RPT 8/19/1927
doi:10.6028/NBS.RPT.10093

=> NBS RPT 10093

NBS SP 250e1982 | NBS SP 250e1982app
NIST SP 250e1992 | NIST SP 250e1992app

This is the "appendix" of NBS SP 250e1982. So "Appendix" needs to be an additional element.

NIST HB 133e4 | NIST HB 133e4-2002
NIST HB 133e4 | NIST HB 133e4-2003
NIST HB 133e4 | NIST HB 133e4-2005

Same edition, but different publication year, means that the "edition" number and the "publication year" are both significant in identification. The publication year means that there were "amendments incorporated as of the publication year".
2002 edition:

2005 edition:

NIST SP 1011 | NIST SP 1011-I-2.0
NIST SP 1011 | NIST SP 1011-II-1.0

Two parts: "I" and "II", each with a different version number.

NIST SP 1075 | NIST SP 1075-NCNR

This is described in relaton/relaton-nist#53 and usnistgov/NIST-Tech-Pubs#5.
In the NIST Tech Pubs history it rarely happens, but this SP document number is duplicated.

NIST SP 1113 | NIST SP 1113-BFRL
NIST SP 1113 | NIST SP 1113-PERMIS

This is another case of a duplicated ID.
NIST SP 1113-BFRL: (July 2010)
NIST Special Publication 1113. Real-Time Monitoring of Total Inward Leakage of Respiratory Equipment

NIST SP 1113-PERMIS: (September 2010)

NIST SP 260-126 | NIST SP 260-126 rev 2013

This is "Revision 2013 of NIST SP 260-126".

NIST SP 260-162e2006 | NIST SP 260-162 2006ed.

This is just "NIST Special Publication 260-162" Edition 1.

NIST SP 800-22-1a | NIST SP 800-22r1a

This is "SP 800-22 Rev. 1a" or "NIST SP 800-22rev1a".

NIST SP 800-27RA-a | NIST SP 800-27ra

This is "NIST Special Publication 800-27 Rev A."

NIST SP 800-38A-a | NIST SP 800-38a-add

This is the Addendum to "NIST SP 800-38A" ("A" here means "Part A").

NIST SP 800-53AR | NIST SP 800-53ar1

This is "NIST Special Publication 800-53A Revision 1".

NIST SP 800-57P-1 | NIST SP 800-57Pt3r1

This is "NIST SP 800-57 Part 3 Revision 1".

NIST SP 801 | NIST SP 801-errata

"Errata for NIST SP 801".

NIST SP 955 | NIST SP 955 Suppl.

"Supplement to NIST SP 955".

NIST AMS 300-8-1 | NIST AMS 300-8r1 (February 2021 update)

This is a Revision 1 of AMS 300-8. The parsed PubID now puts the "1" as a "part" which is wrong.

This is a Revision 1 of AMS 300-8. The parsed PubID now puts the "1" as a "part" which is wrong.
After looking at these examples in https://www.nist.gov/system/files/documents/2021/08/26/Publication-ID-Proposal_26Aug21.pdf I made it work this way.

I got to conclusion: If there are no other parts (volume, part, edition) then PubID with revision should look like: NIST AMS 300-8-1.
But if there are other part, then revision with letter will be added, example: NIST AMS 300-8v1r1

I got to conclusion: If there are no other parts (volume, part, edition) then PubID with revision should look like: NIST AMS 300-8-1. But if there are other part, then revision with letter will be added, example: NIST AMS 300-8v1r1

Interesting. Did not know sometimes the edition/revision is represented as "-N". I think it will be very confusing to use "-N" as edition vs "rN" (e.g revision 4 as "r4"). We will have to report back to NIST that this is an issue.

I got to conclusion: If there are no other parts (volume, part, edition) then PubID with revision should look like: NIST AMS 300-8-1. But if there are other part, then revision with letter will be added, example: NIST AMS 300-8v1r1

Interesting. Did not know sometimes the edition/revision is represented as "-N". I think it will be very confusing to use "-N" as edition vs "rN" (e.g revision 4 as "r4"). We will have to report back to NIST that this is an issue.

Should I change it back to NIST AMS 300-8r1 instead of NIST AMS 300-8-1 before we get response from NIST?

Yes, I would prefer using "r1" instead of "-1" as it is unambiguous.

Another issue, in the https://www.nist.gov/system/files/documents/2021/08/26/Publication-ID-Proposal_26Aug21.pdf proposed to use form:
{series}({stage}) {report number}{part}{edition}({translation}) where
{part} including supplement, if we follow this logic we are getting NBS CIRC 101supe2 instead of NBS CIRC 101e2sup.
maybe I should move supplement as separate entity, like:
{series}({stage}) {report number}{part}{edition}{supplement}({translation}).
@ronaldtse do you agree?

Yes, Supplement, Addendum and Index etc should be considered "localities" instead of parts.
Isn't there another case where there are supplements issued in different years too? Then we need to consider the numbering of supplements as well.

Isn't there another case where there are supplements issued in different years too? Then we need to consider the numbering of supplements as well.

Is it different supplements issues in different years:
https://nvlpubs.nist.gov/nistpubs/Legacy/circ/nbscircular25sup-1924.pdf and https://nvlpubs.nist.gov/nistpubs/Legacy/circ/nbscircular25sup-1925.pdf ?

Yes those were the documents I meant. My problem is that the identifier “NBS CIRC 25-1924sup” does not seem to distinguish between:

NBS Circular 25 Supplement 1924
NBS Circular 25 Edition 1924 Supplement 1

Or is this already clear?
Can a Supplement have its own edition? Maybe not?

NBS Circular 25 Supplement 1924

"NBS CIRC 25-1924sup"

NBS Circular 25 Edition 1924 Supplement 1

Can be "NBS CIRC 25e1924sup"?
It's not clear in proposal where "edition" should be. There is option to represent it as "NBS CIRC 25e1924sup" as well as "NBS CIRC 25-1924sup".
Maybe "edition" in the sequence number (report number) is not the same as "edition" after "e" character?

NBS Circular 25 Supplement 1924

"NBS CIRC 25-1924sup"

This should be NBS CIRC 25sup1924.

NBS Circular 25 Edition 1924 Supplement 1

Can be "NBS CIRC 25e1924sup"?

This should be NBS CIRC 25-1924sup1.
See image for reference:

NBS Circular 25 Supplement 1924
NBS Circular 25 Edition 1924 Supplement 1

I didn't find the second document, is it exist? If not, could you find a real example for this problem?

@mico it was a fictitious example, can you try finding one example in allrecords.xml? Even if it does not exist today, it may exist in the future in the current rules, so we have to handle it.

This is the "appendix" of NBS SP 250e1982. So "Appendix" needs to be an additional element.

We don't have appendix in PubID proposal, should they update it?

We don't have appendix in PubID proposal, should they update it?
Should it be "NBS SP 250e1982app" when we create PubID or "NBS SP 250e1982A" or something else?

@mico yes, can you file this as a separate issue so we can report it? Thanks.
We can't use "A" because it is commonly used as a Part identifier. Maybe "app" is appropriate.

authors: mico ronaldtse


text:
Review links UI

See "Review links user story" in gdocs (not linked here because it has "anyone with the link can edit" permissions).
Build mockups, send to the team for review, implement in webapp.

Subtasks:

[ ] Published status on project page
[ ] Published status on project list
[ ] Link creation UI

[ ] Confirmation step
[ ] Show link
[ ] Revoke button

[ ] Publish step with confirmation
[ ] Disable deletion/visibility UI for published projects and datasets

authors: LachlanStuart richardgoater


text:
#277 Embedded dashboard can set filter value with request query parameter

Description

Embedded dashboard의 경우 외부 시스템의 화면에서 metatron의 dashboard를 보여줄 경우 사용한다. 이 경우 외부 시스템에서는 dashboard의 필터에 특정 값을 자동으로 설정해야 하는 경우가 있는데 이를 위해 request query parameter에 값이 있으면 이 값을 이용하여 dashboard의 filter의 값을 설정한다.
Related Issue : #277
How Has This Been Tested?

dashboard를 만들고 dashboard에 filter를 추가한다.

time filter, bound filter, inclusion filter

만든 dashboard를 ID를 이용하여 다음 URL로 embedded 화면을 호출한다.
호출 시 filter로 만든 field에 대한 파라미터를 지정한다.

http://127.0.0.1:4200/app/v2/dashboard/{dashboard_id}?{filter1 fieldname}={filter_value}&{filter2 fieldname}={filter_value}...

query parameter의 값은 filter type에 따라 다름

inclusion filter: field_name=value 형태

값을 여러개 선택하는 경우 동일한 field_name으로 여러개 입력:  field_name=value1&field_name=value2

bound filter: field_name=min,max
time filter:

time_range: field_name=start_time/end_time
(여러개 있는 경우 동일한 field_name으로 여러개 입력)
time_relative:

key:value,key:value 형태로 속성 값 입력
key: tense, relTimeUnit, value 중 하나

tense: PREVIOUS, CURRENT, NEXT
relTimeUnit: DAY, WEEK, MONTH, QUARTER, YEAR
value: 숫자

time_list: field_name=value 형태로 입력, 값이 여러개 있으면 동일한 field_name으로 여러개 입력

예시

code filter는 AA, BB를 선택
brand_type은 KK를 선택
created_at은 time_relative 필터로 2년전으로 설정

http://127.0.0.1:4200/app/v2/dashboard/573769d5-126e-450e-b4ac-b2c6491ecaba?code=AA&code=BB&brand_type=KK&created_at=relTimeUnit:YEAR,tense:PREVIOUS,value:2

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[X] My code follows the code style of this project. it will be added soon
[X] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document. it will be added soon
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.

Additional Context

run build
deploy to 3

run build
deploy to 1

authors: alchan-lee babokim ufoscw

repo: metatron-app/metatron-discovery


text:
Input shape verification for convolutional models

What does this PR do?
It introduces utilities to handle invalid input shapes for convolutional models.
Current progress

[x] Functions to check the input shapes for UNet, HalfUNet and CustomUNet + tests.
[x] Padding and un-padding functions to be used in conjunction with the aforementioned ones + tests.
[x] Automatic padding for torch lightning modules exposed through their settings.

Related Issue
closes #9
This draft PR will be updated as the work progresses. Please share any feedback on the overall structure.

Hi again @MicheleCattaneo ,
Sorry for the late reply we went thru a lot of changes before being able to integrate/discuss new features.
We discussed with the team and we have some suggestions to make for the autopad you propose:

Separation Of Concern: auto-padding is only meaningful for a subset of the models so it should not "contaminate" outside the subset of models (the actual ModelABC subclasses) it is related to.

We propose that a model able to autopad should expose it thru extra settings, here is an example with HalfUnet:
@dataclass_json
@dataclass(slots=True)
class HalfUNetSettings:
    num_filters: int = 64
    dilation: int = 1
    bias: bool = False
    use_ghost: bool = False
    last_activation: str = "Identity"
    absolute_pos_embed: bool = False
    autopad: bool = False

Now the model can handle this in its forward method (this code could be factored in a common class or Mixin):
def forward(self, x):
     if self.settings.autopad:
          x = self.pad(x)
          y=self._forward(x)
          return self.unpad(y)
     else:
        return self._forward(x)

Note : i omitted the shape tracking on purpose for the brevity of this.
This way the autopad doesn't "pollute" the Segmentation/Regression lightning, we don't have to check if autopad is supported using dedicated code outside the model and we can also use it transparently in pure PyTorch loops.

repo: meteofrance/mfai


text:
More archive formats?

Would you be fine with PRs adding more archive formats? I'm especially interested in bsa (bethesda's archive format for games)

✔ Sure absolutely. As long as it's an archive and you can iterate over the files within in, I think it belongs in here.

authors: Niedzwiedzw meuter

repo: meuter/arkiv-rs


text:
Create mapping from a global element numbering to processor local

The idea behind this pull request is to create an easy to use mapping between a global element numbering and the processor local numbering used in a ParMesh.
The motivating use case was to create a simple interface for refining elements via a global numbering.
I noticed that this had been asked about before, and I borrowed Jakub's code he uses within ParNCMesh::Rebalance to do the calculation.
Since this is not necessarily a cheap operation at large scale, I organized it so that this only gets computed if the function for mapping a global number to a local one gets called.  There's a flag which attempts to serve the purpose of determining if the global numbering is up to date, which is initialized to false, and gets marked dirty again if the mesh is modified or rebalanced.

Will resubmit with updated base.

repo: mfem/mfem


text:
client_rect does not get updated when the game window is resized

In app.rs:
let mut gui_thread_info = GUITHREADINFO {
    cbSize: std::mem::size_of::<GUITHREADINFO>() as u32,
    flags: GUITHREADINFO_FLAGS(0),
    hwndActive: HWND(0),
    hwndFocus: HWND(0),
    hwndCapture: HWND(0),
    hwndMenuOwner: HWND(0),
    hwndMoveSize: HWND(0),
    hwndCaret: HWND(0),
    rcCaret: RECT { left: 0, top: 0, right: 0, bottom: 0 },
};
unsafe { GetGUIThreadInfo(0, &mut gui_thread_info) };

if gui_thread_info.hwndMoveSize.0 > 0 {
    client_rect = self.get_client_rect();
}

GetGUIThreadInfo does not get the GUIThreadInfo of the game window. For some reason, it gets it from the window of the allocated console, so when I resize the console window, client_rect gets updated. However, when I remove utils::alloc_console() in the code from the example dll, it doesn't detect the game window being resized. Removing the window resize detection and calling client_rect = self.get_client_rect(); outside of an if statement seems to fix it, but I don't know if that's the best solution.

https://github.com/mfloob/egui-opengl-internal/pull/3 Thanks.

authors: Cubesicle mfloob

repo: mfloob/egui-opengl-internal


text:
Protractor typings

Getting the following error for each of the defs in the Protractor index.d.ts running the "start" script:
node_modules/@types/protractor/index.d.ts(22,27): error TS2305: Module 'webdriver' has no exported member 'IButton'.
Brand new clone.  Just ran npm install and then npm start.
Do I need to update anything on my box to get this to work or is there some breaking change to the type definitions?
Full error output:
[23:53:48] Starting 'build.js.dev'...
node_modules/@types/protractor/index.d.ts(22,27): error TS2305: Module 'webdriver' has no exported member 'IButton'.
node_modules/@types/protractor/index.d.ts(25,24): error TS2305: Module 'webdriver' has no exported member 'IKey'.
node_modules/@types/protractor/index.d.ts(28,45): error TS2339: Property 'Error' does not exist on type 'typeof error'.
node_modules/@types/protractor/index.d.ts(29,40): error TS2305: Module 'webdriver.error' has no exported member 'IErrorCode'.
node_modules/@types/protractor/index.d.ts(36,37): error TS2305: Module 'webdriver.logging' has no exported member 'IType'.
node_modules/@types/protractor/index.d.ts(37,38): error TS2305: Module 'webdriver.logging' has no exported member 'ILevelValues'.
node_modules/@types/protractor/index.d.ts(39,67): error TS2305: Module 'webdriver.logging' has no exported member 'ILevel'.
node_modules/@types/protractor/index.d.ts(40,67): error TS2305: Module 'webdriver.logging' has no exported member 'ILevel'.
node_modules/@types/protractor/index.d.ts(287,39): error TS2339: Property 'stacktrace' does not exist on type 'typeof webdriver'.
node_modules/@types/protractor/index.d.ts(288,42): error TS2339: Property 'stacktrace' does not exist on type 'typeof webdriver'.
node_modules/@types/protractor/index.d.ts(303,35): error TS2305: Module 'webdriver' has no exported member 'stacktrace'.
node_modules/@types/protractor/index.d.ts(340,55): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(414,52): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(462,53): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(664,29): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(673,32): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(704,39): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(725,35): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(801,48): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(808,30): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1111,32): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1139,30): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1362,51): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1363,42): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1364,41): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1440,55): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1461,60): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1477,41): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1491,51): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1505,58): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1574,79): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1594,55): error TS2305: Module 'webdriver' has no exported member 'Locator'.
node_modules/@types/protractor/index.d.ts(1614,36): error TS2305: Module 'webdriver' has no exported member 'Locator'.
[23:53:51] TypeScript: 33 semantic errors
[23:53:51] TypeScript: emit succeeded (with errors)

I get the same.

I get the same.

Similar errors when trying a prod build

I have similar errors, but not only protractor.
Here are some errors, but not all of them.
@types/node/index.d.ts(570,18): error TS2300: Duplicate identifier 'EventEmitter'.
@types/node/index.d.ts(611,22): error TS2430: Interface 'Server' incorrectly extends interface 'Server'.
@types/node/index.d.ts(732,18): error TS2300: Duplicate identifier 'Agent'.
@types/node/index.d.ts(777,18): error TS2300: Duplicate identifier 'Worker'.
@types/node/index.d.ts(2253,22): error TS2430: Interface 'Server' incorrectly extends interface 'Server'.
@types/node/index.d.ts(2253,22): error TS2430: Interface 'Server' incorrectly extends interface 'Server'.
Types of property 'listen' are incompatible.
Type '{ (port: number, host?: string, backlog?: number, listeningListener?: Function): Server; (path: s...' is not assignable to type '{ (port: number, hostname?: string, backlog?: number, listeningListener?: Function): Server; (por...'.
Type 'Server' is not assignable to type 'Server'.
Types of property 'listen' are incompatible.
Type '{ (port: number, host?: string, backlog?: number, listeningListener?: Function): Server; (path: s...' is not assignable to type '{ (port: number, hostname?: string, backlog?: number, listeningListener?: Function): Server; (por...'.
Types of parameters 'host' and 'backlog' are incompatible.
Type 'number' is not assignable to type 'string'.

I got the same issue and have found the fix for it...
There are two problems here... the duplicates and the protractor dependency:
Duplicates:
Change the order of the typeRoots in "src/client/tsconfig.json" so that the @types line is first.
Protractor Dependency:
The @types/selenium-webdriver dependency was published with a breaking change in moving from version 2.44 to 2.53 (Something that is not strictly following semver practices, argh!). Now @types/protractor is expecting the version of the webdriver typings as found in 2.44.*
So, to fix it, change selenium typings line in 'package.json' to lock down the minor version as follows:
"@types/selenium-webdriver": "2.44.*"
I will submit a pull request now but I thought that I would quickly publish this comment so that people can get going again.

I submitted the pull request  ( #1369 ) above to fix the issue.
I did find it interesting though that this issue was not picked up in the build.
(Please note: I am not too familiar with travis conventions so please forgive me if I sound a fool)
I see that the ".travis.yml" file has listed the node_modules folder as a cache folder.
I assume that this would preserve this folder between builds.
The issue would have been reproduced on the build server if the node_modules folder was not cached, or if "npm update" was called before the build.
In my opinion it would be best to call "npm update" before "npm run tests.all" in the build script.
@mgechev it is up to you what way you would like to go with this... I have not submitted a pull request for the build script improvement.

Thanks for that fix, @markwhitfeld!

node_modules/@types/protractor/index.d.ts(1614,36): error TS2305: Module 'webdriver' has no exported member 'Locator'.
Still having this issue after i did the changes in your update

@ndcunningham Did you run "npm install" to fix your dependencies after you did the update?

@markwhitfeld See update. Yes I did.
I didn't have this issue.
Once i issued the npm install it started, these started appearing. I guess it's really reference the comment you made about caching....

Problem was with systemJS loading. updating to 0.19.38 allowed me to see what module was not being mapped correctly.
RE: https://github.com/systemjs/systemjs/commit/bac2cc52bef77c2e38a831e726fe644e625ec524

authors: Flood dodoshanti greg-md markwhitfeld ndcunningham soesoftcn tgoyer


text:
Support for installing multiple services

Today it looks like it is not possible to install multiple instances of the service with different configurations.
Related to #1, if we can change service name, perhaps there could be another option to point to a different config file to install another instance:
cronical --install --conf="second.dat" --name=second --desc="My second instance"

While you could add more lines to cronical.dat, there may be cases where you want to group things together for different apps, emailing to another account on errors etc.

Just wanted to mention - and this might not be completely obvious from the scant documentation - that each job has its very own configuration with email addresses, home directory and so on. So it's actually possible to repeat the email configuration several times in the configuration file, each job will pick up the "active" configuration when it's parsed.
Anyway, having several instances of it is a perfectly reasonable request.
Maybe should write more documentation as well.

Thanks for the clarification, multiple job configs in same file probably serves some use cases as well.
I'm a Java programmer and don't own a Windows machine, but perhaps I'll attempt to dip into .NET and make a pull request one day :)

Cronical should now be able to use the "-c" parameter when installing it as a service, hopefully giving you the flexibility needed. I also tried documenting that a little bit better.

I tested installing using --service-name and it works great.
The only option missing for service installation now is the description:
--service-description "This service belongs to the XYZ application bla bla"

It looks like it works... I added an option --service-desc (had to keep it short so I wouldn't have to reformat the help text ;) ) that seemed to update the description.
The only thing is the marshaling seems to struggle with ANSI/Unicode data... it feels a little bit frail. Apparently there's a .NET class called ServiceInstaller that does the whole thing for you, which I didn't know - I'll look into that at some point.

Thanks for your contributing your code to Open Source. I'm closing this issue now.
Cronical is now in production (with nice service name and empty description) at a customer setup.

Btw, did you know you could release your software using the "releases feature" of Github instead of checking in binaries to the source tree? See https://help.github.com/articles/creating-releases/

Thanks for the interest in it :)
No, I had no idea about releases... I'll look into it.

authors: janhoy mgefvert

repo: mgefvert/Cronical


text:
🛑 Strapi Home Page is down

In 611c4ae, Strapi Home Page (https://cms.wavemoney.io) was down:

HTTP code: 403
Response time: 182 ms

Resolved: Strapi Home Page is back up in 7070413.

repo: mgmgpyaesonewin/strapi-upptime


text:
Relative selfLinks + baseUrl

If my self link looks like this:
"self": {
    "link": "/conversations/1"
},

And I have the following configuration:
RestangularProvider.setBaseUrl('http://myapi.com/api');
RestangularProvider.setRestangularFields({selfLink: 'self.link'});

Then I would expect the element to have the link http://myapi.com/api/conversations/1. Sadly the url is instead http://localhost:8080/conversations/1 when running on localhost.

So, we just ran into this issue. Is there any update on this issue? We can work around it with a responseInterceptor but that's not really nice of course...
I see some open pull requests/comments, but not really a fix:

https://github.com/mgonto/restangular/pull/682#issuecomment-41410581
https://github.com/mgonto/restangular/pull/851
https://github.com/mgonto/restangular/issues/493

+1

It looks like #851 was slated for release in 1.5.0. I reviewed the PR and hopefully we'll be able to get this merged in pretty soon

authors: daanoz daviesgeek kevinrenskers umacys

repo: mgonto/restangular


text:
🛑 Traffic Dashboard Mediahuis Nederland is down

In 1b16972, Traffic Dashboard Mediahuis Nederland (https://traffic-tmg.mediahuis.nl/api/system/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Traffic Dashboard Mediahuis Nederland is back up in 0f75815.

repo: mh-data-science/upptime


text:
🛑 Traffic Dashboard Mediahuis Nederland is down

In 1f137fc, Traffic Dashboard Mediahuis Nederland (https://traffic-tmg.mediahuis.nl/api/system/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Traffic Dashboard Mediahuis Nederland is back up in ef29d04.


text:
🛑 Traffic Dashboard Mediahuis Nederland is down

In 856b02f, Traffic Dashboard Mediahuis Nederland (https://traffic-tmg.mediahuis.nl/api/system/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Traffic Dashboard Mediahuis Nederland is back up in 2d9f33d.


text:
🛑 Traffic Dashboard Mediahuis Nederland is down

In 53bf752, Traffic Dashboard Mediahuis Nederland (https://traffic-tmg.mediahuis.nl/api/system/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Traffic Dashboard Mediahuis Nederland is back up in 5d965fd.


text:
🛑 Traffic Dashboard Mediahuis Nederland is down

In 4c7e357, Traffic Dashboard Mediahuis Nederland (https://traffic-tmg.mediahuis.nl/api/system/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Traffic Dashboard Mediahuis Nederland is back up in e651291 after 6 minutes.


text:
Cannot configure the Addon

In the config page. after I select what I want, when I click the Install Addon button, nothing happens!

This helped me to configure the addon for now: https://github.com/mhdzumair/MediaFusion/issues/42#issuecomment-1807940412

@Drjacky please check now. The stremio server was down. I have redeployed.

authors: Drjacky mhdzumair

repo: mhdzumair/MediaFusion


text:
Added "go up" link to browse template

In order to have directly a link within the browse listing I have added
a link to the top of the table to get one level up in the tree. Added
that after a chat with @mholt.
Signed-off-by: Thomas Boerger thomas@webhippie.de

 You should sign our Contributor License Agreement in order to get your pull request merged.

Looking visually good! :+1:

@mholt applied your comment

Thank you Thomas!

authors: CLAassistant mholt tboerger

repo: mholt/caddy


text:
Deadlink on CS Career Hackers

CS Career Hackers link expired
CS Career Hackers link is dead and also name seems to be changed to CS Career Hub
It should be updated with current invite link : https://discord.com/invite/ndFR4RF

Fixed with https://github.com/mhxion/awesome-discord-communities/pull/115. Thanks for reporting.

authors: mhxion sansarmaske

repo: mhxion/awesome-discord-communities


text:
[ic-textfield] Focus is overlapping the label / description

Summary of the bug
The focus on the textfield is overlapping the label/description. This effects many of the components which are inheriting the component.
📸 Screenshots or code

🧐 Expected behaviour
There should be extra padding around the component so that this bug does not occur.
Additional info
Designs on Figma should be looked at.

Worth considering if the field looks unusual when the focus is not applied, presuming the fix is to increase padding. Design to implement this on Figma

this looks to have more padding in figma, so just needs a change making to the built component to match

https://github.com/mi6/ic-ui-kit/issues/2301


text:
Change Show Icon to Channel Logo if Stream is "Just Chatting"

When twitch2tuner builds its epg, it assigns the shows the icon of whichever game is the "category" of the stream. That's fine for streams that use typical box art, but the most common stream type is "Just Chatting" which features an icon of a woman with a coffee cup in front of a microphone.
That's totally irrelevant for those streams.
Is there a way to detect if the category is "Just Chatting" and then use the channel's logo instead?

Hey @databoy2k, great suggestion. I've added conditional support for this feature based on an environment variable. Grab the latest Docker image, set USE_PROFILE_AS_JUST_CHATTING to true, and it should do what you want. Let me know what you think!

Absolutely awesome! It works like a charm. Quick refresh of guide data and I no longer have a coffee cup on my Just Chatting channels.
Thanks a ton!


text:
Cannot read property 'flow' of undefined at _.requestImportFiles

issue is actually that files are not on disk at the path specified in the example flow

repo: micahstubbs/drift


text:
Bump test docker image to Solana 1.9.14

Issue: #210
Bumping to 1.9.14 causes two main problems:

Since 1.9.10, the local test validator has been changed so that blocks 0 and 1 are in accessible.
(see https://github.com/solana-labs/solana/issues/23853 ).
The solana-py tests which tried to access block 1 now access block 2 instead.
https://github.com/solana-labs/solana/pull/22292 requires accounts to be rent exempt. There are transaction tests in test_async_http_client.py and test_http_client.py that send sol from an account that got an airdrop to an empty account (which is not rent exempt but now needs to be). This PR fixes the tests to airdrop the receiver account as well so that it is rent exempt.

rpc/responses.py is also updated as the vote subscription response now expects the vote account address.

@Johnheavey Thank you so much!

authors: Johnheavey michaelhly

repo: michaelhly/solana-py


text:
Highlighting not working on texts with emojis

Hey, first of all thanks for providing this code snippet. Everything works fine except the one case with emojis.
If I have a Text with emojis in the middle and some hashtags at the end of the sentence, the higlighting is not working correct anymore. I found this, but am not able to get it working:
http://stackoverflow.com/questions/30400969/how-do-i-highlight-text-in-a-string-that-contains-emojis-in-swift

Thank you for adding this issue. Will check and fix asap.

This actually related to issue #3 which can be also fixed using @demonar 's fix.

authors: Jamal1337 mamouneyya michaelloistl


text:
It never working watchPosition function on Android

Environment

System:
OS: macOS 13.1
CPU: (8) arm64 Apple M1
Memory: 233.67 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Watchman: 2022.11.14.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Platforms

Only any android version
Versions

Android: any version
iOS: no problem
react-native-geolocation: 3.0.3
react-native: 0.70.6
react: 18.1.0

Description

Only getCurrentPosition function works on Android devices but its not working watchPosition function. I run the getCurrentPosition function in setInterval when I want to track location. It just gives me that fixed location and i can't do instant location tracking. Although I tried many methods, I could not get it to work. I want to follow the vehicle instantly. Thanks in advance for your help.
Reproducible Demo
const interval = setInterval(async () => {
Geolocation.getCurrentPosition(info => {
setCurrentLatitude(info.coords.latitude);
setCurrentLongitude(info.coords.longitude);
});
    try {
      const watchID = Geolocation.watchPosition(
        position => {
          console.warn(JSON.stringify(position));
        });
      setSubscriptionId(watchID);
    } catch (error) {
      console.error('WatchPosition Error', JSON.stringify(error));
    }

try {
const watchID = Geolocation.watchPosition(
position => {
console.warn(JSON.stringify(position));
});
setSubscriptionId(watchID);
} catch (error) {
console.error('WatchPosition Error', JSON.stringify(error));
}
};

I had a similar issue, and I was also using setInterval but that is a bit clunky solution, here is how I do it
` useFocusEffect(
useCallback(() => {
  //Watch position for changes
  const watchId = Geolocation.watchPosition(
    pos => {
      console.log('Position has changed', pos);
      const latitude = pos.coords.latitude;
      const longitude = pos.coords.longitude;
      setOrigin({
        latitude: latitude,
        longitude: longitude,
        latitudeDelta: LATITUDE_DELTA,
        longitudeDelta: LONGITUDE_DELTA,
      });
    },
    error => {
      console.log('!!!!!!Error watching position: ', error);
    },
    {
      distanceFilter: 20,
    },
  );
  setSubscriptionId(watchId);
  return () => {
    console.log('REMOVE WATCH LOCATION');
    subscriptionId !== null && Geolocation.clearWatch(subscriptionId);
    setSubscriptionId(null);
    setIsOpenMap(false);
    setOrigin({});
    setDestination({});
  };
}, []),

);`
if you test on emulator it wont' work because you are not moving, unless you manually change long / lat, but if you deploy on your phone you will be able to see the location changing, add an Alert to view it on screen.
watchPosition internally monitors the coordinates so you don't need to set an interval to check it...
hopefully it helps you!

Thanks for your answer. But actually I'm having trouble tracking location because watchPosition doesn't work. How can I result this problem ?

I see, please answer this questions:
1.- are you testing on Emulator or Real Device ?
2.- If real device, did you move ?

Okay. 1. Real device
2. Yes, I moved but I saw it still doesnt work.

same issue android watchPosition not working

I'm getting the same thing on my Android device when using enableHighAccuracy: true. No success or error callback is ever called on the Android device.
However, when I use enableHighAccuracy: false, it works as it is supposed to (though I haven't checked that it throws an error properly).
An iOS device works great either way - watch updates when it's meant to.
On Android, when I use getCurrentPosition with enableHighAccuracy: true,  it errors out like so:
{"ACTIVITY_NULL": 4, "PERMISSION_DENIED": 1, "POSITION_UNAVAILABLE": 2, "TIMEOUT": 3, "code": 3, "message": "Location request timed out"}

It does work when I use enableHighAccuracy: false.

in my case, it doesn't seem to work no matter which option I pass.
I'm using an Android emulator but I am changing the location of my device using the built-in options of the emulator to change the location manually (this works when using Google Maps so I assume it should work in my app as well).

After struggling with the android emulator I decided to just use a real device and surprise surprise, it worked perfectly. So if you have any issues with the emulator, try a real device and see if that works.

HI first of all i am getting issue in this whole library now i am specifying how.
first when you use    Geolocation.getCurrentPosition() and you have set like { enableHighAccuracy: true, timeout: 10000, }
means enableHighAccuracy: true then it works very well into the emulator of android and ios both but when in real android device it won't. it is giving error rather then working well.
if you give enableHighAccuracy: false then on emulator it not gives the correct location it gives false or approximate location on real device it working but same issue not giving correct or accurate location then how we can work with it i am stuck on this because i am working on food delivery app  but this library is not giving me the result please help me as soon as possible.

嗨，首先我在整个库中遇到问题，现在我正在指定如何。 首先，当您使用 Geolocation.getCurrentPosition() 并设置像 {enableHighAccuracy: true, timeout: 10000, } 表示enableHighAccuracy: true 那么它在 android 和 ios 的模拟器中都可以很好地工作，但是在真正的 android 设备中它不会' t。它给出错误而不是正常工作。 如果您给出enableHighAccuracy：false，那么在模拟器上它不会给出正确的位置，它会在真实设备上给出错误或近似的位置，它可以工作，但同样的问题没有给出正确或准确的位置，那么我们如何使用它我陷入困境，因为我正在开发食品配送应用程序，但这个图书馆没有给我结果，请尽快帮助我。

Hi, did you solve it?

Any update on this? I'm testing on a real device (google pixel 6) and if i add enableHighAccuracy i don't get any success or error. iOS works as expected.
How accurate is location if we set enableHighAccuracy to false?

authors: Bucci83 Siliconvelly hllibrhm01 johhansantana mehthabux shuo-hiwintech spsaucier ziga-hvalec

repo: michalchudziak/react-native-geolocation


text:
download seems to be broken again wrt progresslogger for gradle 2.7.

Maybe we should just not use progresslogger any more and use logger lifecycle or some such instead.  Works if you run with --quiet as it skips this code block.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':prepareAnalytics'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
	at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:62)
	at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: java.lang.NoSuchMethodError: org.gradle.logging.ProgressLogger.setDescription(Ljava/lang/String;)V
	at de.undercouch.gradle.tasks.download.DownloadAction.execute(DownloadAction.java:139)
	at de.undercouch.gradle.tasks.download.DownloadAction.execute(DownloadAction.java:88)
	at de.undercouch.gradle.tasks.download.DownloadExtension.configure(DownloadExtension.java:44)
	at de.undercouch.gradle.tasks.download.DownloadExtension.configure(DownloadExtension.java:29)
	at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:59)
	at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:145)
	at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:69)
	at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:207)
	at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:150)
	at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)
	at analytics_4y63yhsnzsqc3hu3cs2amygbb$_run_closure2.doCall(/Users/.../projects/.../build/gradle/task/browser_tests/analytics.gradle:24)

Thanks for reporting. The latest commit on master adds an integration test for 2.7 that runs fine. I didn't release a new version because I thought everything was OK. Can you post a small reproducer for this issue?
Michel

Oh and by the way, I'm using gradle-download-task 2.0 with gradle 2.7 here:
https://github.com/michel-kraemer/vertx-lang-typescript
It works quite well.
Michel

Yeah, go ahead and close it.  It was dying in a module where it was expressly grabbing 1.1 instead of the 2.0.0 I was using globally.  Sorry for the false alarm.

authors: michel-kraemer mrampson

repo: michel-kraemer/gradle-download-task


text:
Running script Graph_ODFB_shared_files.ps1

Hello,
All set correct for permissions, no errors while -verbose, still result is empty CSV.
Any advice on what to check, please?

A bit hard to troubleshoot without providing any details. My best bet would be that either permissions are not actually set correct, or you havent renewed the token after making permission changes.

authors: lightupdifire michevnew

repo: michevnew/PowerShell


text:
Implement Jaco tracking

https://www.getjaco.com/

https://github.com/michigan-com/nova/commit/04e8be4359eea92cd4b33cc9073f98c8e55655c3

authors: migreva travelinreid

repo: michigan-com/nova


text:
Install problem

Hello, I'm trying to build your tool, but I have some problems. First of all, I found that jpf- android on bitbucket is different from that on GitHub. The jpf-android downloaded on bitbucket is not the same as the "tree" you provided, so I always get some errors when building.
In addition, the installation process is a bit vague.The dir " Applications" and "papers" are not mentioned in the installation, but at the end of the "tree" display.
Can you give a little more details about the installation process.

Thank you!

Hello, I'm trying to build your tool, but I have some problems. First of all, I found that jpf- android on bitbucket is different from that on GitHub. The jpf-android downloaded on bitbucket is not the same as the "tree" you provided, so I always get some errors when building.
In addition, the installation process is a bit vague.The dir " Applications" and "papers" are not mentioned in the installation, but at the end of the "tree" display.
Can you give a little more details about the installation process.

Thank you!

I am also having issues with installing. I have even tried to contact Heila, to no avail.

authors: LuisAlvelaMendes Ryuanxue

repo: micklinISgood/JPF-Android


text:
add support for custom figure props

Support custom figure props, this is needed to be able to use this for fbia - so that data-feedback="fb:likes,fb:comments" can be added (for example).
R = @iefserge
T = minor

Looks good :tada:

authors: iefserge kesla

repo: micnews/article-json-html-render


text:
Any way to select server node according to request data?

Thank you for your great work on micro. It made tracking node status in a large cluster very easy.
I have noticed that selector in micro can be use for load balance in round robin, last connection, etc. But in my use case, I want to staticky dispatch requests from one user to one server according to it's user id. What's in my mind is to hash the user id and use the mod or DHT to determine what server to send the request. Usually, user id may appear in request.
In your example , I can't find anything related in Select function to get the request data.
Is there any alternative way for me to dispatch requests by their data?
Thanks

Hey. The best way to do this is to write a Select Filter and pass it in as part of the call. The Filter allows you to keep the nodes you want before it moves on to something else.
The filter definition is type Filter func([]*registry.Service) []*registry.Service.
Here's an example filter that looks for service version.
func FilterVersion(version string) Filter {
	return func(old []*registry.Service) []*registry.Service {
		var services []*registry.Service

		for _, service := range old {
			if service.Version == version {
				services = append(services, service)
			}
		}

		return services
	}
}

And then the usage
client.Call(ctx, request, response, client.WithSelectOption(FilterVersion("1.0.0")))

If you are using proto generated code you can pass in client options to the methods there too.

Just wondering. If client.NewRequest have already specified service, why I still need to iterate over the old registry.Service in the filter, not filtering nodes in a single registry.Service in the function?

I'm not sure what you mean. client.NewRequest just creates an object that stores service name, request and content type. When you call client.Call the selector will use the registry to retrieve a list of services once then pass that in to any filters that are specified, each time passing a list that will be mutated by the filers.

authors: asim shisoft

repo: micro/go-micro


text:
nlopes/slack dep update to fix broken unmarshal

About a month ago Slack introduced the updated structure of RTM messages which resulted in an inability to unmarshal received msg (original issue: https://github.com/nlopes/slack/issues/630). It's not an issue of micro itself, but of the github.com/nlopes/slack lib. The fix was already merged into master (https://github.com/nlopes/slack/pull/618), but the lib has not been released in any new version.
Thus so I propose to update directly to the commit:
go get github.com/nlopes/slack@d06c2a2b3249b44a9c5dee8485f5a87497beb9ea
The MicroBot does now work now with any Slack client newer than around a month old.
Pardon me please, if using @commit in go.mod is anyhow against your rules or methods, I didn't find anywhere a "code of conduct" or so. Thank you.

You need to actually run go get using the changed commit so that it properly version it and changes go sum, otherwise this will not work

I know, sorry for that, I have no idea why I didn't run go mod tidy 🤷🏻♂ , will make it immediately.

authors: asim jankremlacek


text:
Use grid view for all Discover screens

I'm on the fence about this, but the more I use it, the more I think for consistency, all of Discover should use the grid view. The main timeline view can be for the Timeline tab only.

Checked in an experiment for this, using the navigation bar.

I think this implementation works. Closing.

repo: microdotblog/sunlit


text:
expand implied photo URL to absolute URL

From http://microformats.org/wiki/microformats2-parsing#parsing_for_implied_properties:

if there is a gotten photo value, return the normalized absolute URL of it, following the containing document's language's rules for resolving relative URLs (e.g. in HTML, use the current URL context as determined by the page, and first  element, if any).

:tada: We were just discussing this fix, then I saw the PR. Thanks!

authors: gRegorLove willnorris

repo: microformats/tests


text:
Add French translation

This definitively not perfect (a lot of technical terms currently don’t have good equivalents in french to my knowledge), but better than nothing. ;)

Thanks!

authors: ArchangeGabriel mar-v-in


text:
Mysql/Maria JDBC/R2DBC test resources fail to start

Expected Behavior
Some of the JDBC test containers require implicit driver dependency as it's using it to check if the database is running.
https://www.testcontainers.org/modules/databases/mysql/
Adding this Testcontainers library JAR will not automatically add a database driver JAR to your project. You should ensure that your project also has a suitable database driver as a dependency.

https://github.com/testcontainers/testcontainers-java/blob/master/modules/mysql/build.gradle
My suggestion is to have separate test projects to detect misconfigurations.
Actual Behaviour
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:315)
	at org.testcontainers.containers.JdbcDatabaseContainer.getJdbcDriverInstance(JdbcDatabaseContainer.java:200)
	... 83 common frames omitted

Steps To Reproduce
No response
Environment Information
No response
Example Application
No response
Version
3.6.0/1.0.1

Not sure if it's by design. Documentation does mention a way to add a driver to the test-resources classpath.
My use-case is to use the test resources without the infer classpath.
This helped:
dependencies {
    testResourcesService libs.drivers.jdbc.mysql
}

It is intentional, indeed. @melix and I already discussed the possibility to automatically add a driver to the classpath, but ain't an easy task.

I don't see adding a driver (possibly the latest) to the test resource server as a big problem, it will only be used for the readiness thing.

It is indeed intentional: it is complicated to figure out what driver to add, whose providing a driver (because db drivers can be added to any jar), and if a driver should be added. For example for Oracle there are many implementations to pick from, depending on the JDK version or Oracle db version. Similarly sometimes adding the driver automatically would make the test service startup fail. So I'm -1 on doing this.

Similarly sometimes adding the driver automatically would make the test service startup fail.

Not sure what you mean by that. What is going to fail?
I would add one version of the driver that we already have in the BOM.
IMHO not having the driver added will cause more user troubles than having it.

I'd also prefer to add a driver, at least for those cases where we can do that safely.

Not sure what you mean by that. What is going to fail?

A typical example is with R2DBC. For MySQL the driver needs to be present on the testcontainers classpath, but not for Oracle. There's no generic logic to figure out what works or not: it's all our knowledge.

I would add one version of the driver that we already have in the BOM.

This is not really required. IF we wanted to do this, we can simply pass the driver that the user selected to the test resources service classpath. The issue is really to figure out if there's a driver already, and what provides it. To me the logic to do this is not that obvious to get right.

authors: alvarosanchez dstepanov melix


text:
[Technical Goal 1]: MicroProfile Open Tracing

Tracing

Deprecate abandoned APIs by reworking the current MicroProfile OpenTracing
Adopt OpenTelemetry (merge between OpenTracing and OpenCensus)"

OpenTelemetry Adoption Proposal:
https://github.com/eclipse/microprofile-sandbox/blob/master/proposals/open-telemetry/microprofile-opentelemetry-tracing.asciidoc

https://github.com/microprofile/microprofile-wg/issues/114

How to move forward regarding OpenTracing in the platform?

When to deprecate it?
When to remove it?
When to replace it with OpenTelemetry?

@radcortez here is what I suggest:

How to move forward regarding OpenTracing in the platform?
* When to deprecate it?

When we release MicroProfile OpenTelemetry 1.0, we will deprecate MicroProfile OpenTracing(hopefully in 1Q).

* When to remove it?

I don't think we should remove it from MicroProfile. I think we just remove it from MicroProfile platform release and make it standalone.

* When to replace it with OpenTelemetry?

In July 2022, we should replace OpenTracing with OpenTelemetry.

Agree to Emily's points.
Regarding replacement there would be an option to keep OpenTracing as optional spec with functionality based on the OpenTelemetry shim - so we could keep compatibility for a while until we remove it completely. Of course, this would require extra resources, but might align better with OpenTelemetry use at the same time.

The next step is to add a note on readme and spec update on open tracing. A configuration should also be provided to disable open tracing. A minor spec update should be released.

repo: microprofile/microprofile-wg


text:
Fix the sq_to_dist function

The function was returning a wrong index and I have changed
the index calculation.
Fixes #26

I find that my last modifications on the sq_to_dist function is  also not returning correct values in all cases. I was arbitrarily checking the function with some arbitrary values. Co-incidently for those values we only needed to add 1 with the original calculation. But for the other i, j & n values it is not working. The original function itself is also not producing consistent values for each index which means some are correct and some are not.
Actually the total index calculation needs to be changed.
Here is the modified function with the right index calculation and some tests:
In [46]: def sq_to_dist(i, j, n):
                  index =i*n + j - i*(i+1)/2 - i - 1
                  return int(index)

In [47]: sq_to_dist(0,1,4)
Out[47]: 0

In [48]: sq_to_dist(1,2,4)
Out[48]: 3

Very nice, @sahas111! Could you add this to the PR?

could you add a new doctest that distinguishes between the three methods? ie one or two examples that only your method gets right. Follow the same format as the existing doctest, (with the >>>), just in a new line.
I actually realised that using sq_to_dist to determine the length is actually super stupid LOL. So don't use that. Firstly: near the top, write nsamples = X.shape[0]. That way, you only need to check it once and it's more readable. Then, n = int(nsamples * (nsamples - 1) / 2).
And, again, n is not very readable: change that name to npairs. =)
Finally, add a "References" section to the docstring (see NumPy docstring conventions) pointing people to the actual definition of the indexing here. This is actually what I used to verify your formula: theirs indeed reduces to yours. =)

@sahas111 I've added some comments that should be quick to fix...!

@starcalibre As you can see in the discussion above, your calculation of the sq_to_dist index was incorrect before. Somehow it slipped past both of us! @sahas111 did a good job catching it, but now some of the tests are not passing — can you have a look at them?

Coverage increased (+0.22%) to 46.38% when pulling c2eef1db1b54ca0eb985304795bdb9633572eabe on sahas111:analysis into 1cc898a049a5ff3e1ad673f9d3917286da78623a on microscopium:master.

Coverage increased (+0.22%) to 46.38% when pulling a02b30eb519a18bb9b9f720081eaf0615b708caf on sahas111:analysis into 1cc898a049a5ff3e1ad673f9d3917286da78623a on microscopium:master.

BOOM. =) Thank you so much, @sahas111!

authors: coveralls jni sahas111

repo: microscopium/microscopium


text:
filterBy param name should be case sensitive

"filterBy": [
    {
      "matchType": "=",
      "name": "Patient",
      "value": "Patient/17944"
    }

is currently being sent, but it should match canFilterBy (i.e., with a lower-case patient in name).

Fixed in server-proxy project.

authors: GinoCanessa jmandel


text:
[CHALLENGE SUBMISSION] - Challenge 3

Please provide the following information for your submission:
What is your name? (First, Last)
Marc Duiker
Where is your GitHub Repo ?(With your challenge solution)
https://github.com/marcduiker/25daysofserverless2019/blob/master/src/Day03/SavePngToDBHttp.cs
What Challenge is this for? (Challenge number between 1 and 25)
3
(Optional) Anything else we should know? e.g., language used, location, blog post?
I ran the Function App locally and used ngrok to expose the local HTTP endpoint and used that as the webhook for the git push event.
https://twitter.com/marcduiker/status/1202306785933180928

THANK YOU FOR YOUR #25DaysOfServerless SUBMISSION
We checked out your repository. We're thrilled to say your solution is now listed in our Hall of Fame
Thank you for your contributions!
This issue is now resolved! 🎉


text:
Issue creating w/ deploy.ps1 -- identifier-uris parameter required

Project
Name:
Language:
Description
When deploying, I get an error saying "'--identifier-uris' is required for creating an application"
To Reproduce
PS C:\Users\robrakef\Source\Repos\demovassist2\demovassist2\demovassist2\Deployment\Scripts> .\deploy.ps1 -name demovassist2 -resourceGroup demovassist2-rg -location westus -appPassword "XXX" -luisAuthoringKey "XXXXX"
Expected behavior
Script should execute and create app ids
Screenshots

Additional context

Hi - can you confirm you have the latest az CLI version? i.e. >2.0.63. The pre-reqs have a link in case not, I think that will resolve your issues (we are reliant on changes to AZ CLI)

I'm a little confused by the question.  Why are you providing and appPassword without and appId?

The az CLI commands used under the covers will create the application for you (and thus the appID) but won't auto-generate a password as it does in the portal for you. Something we're working with that time to resolve.  If for whatever reason you have to create the appid yourself then you pass both.

Thanks.  Didn't realize there was a middle ground.

Confirmed. I had .54 installed. Now updated and installed.
I can test locally, but can't test via the Web Chat blade in Azure. Should I be able to do that? is there a step I'm missing?

authors: darrenj kfprugger mekinney

repo: microsoft/AI


text:
WEB API

can anyone suggest me that, how we can call or run BC webapi through Docker Container?

Hi! This repository no longer handles general questions and is only dedicated to bug reports and feature suggestions for the AL compiler and developer tools.
To get help for your question please use one of the following resources:
Business Central Community
mibuso forum
Dynamics User Group

authors: SahilGuptaBS atoader

repo: microsoft/AL


text:
Missing warning in case of possible overflow in setrange

1. Describe the bug
When .SetRange is used possible overflow is not recognized by the code analyzers.
2. To Reproduce
User SetRange on a Text[100] field using a value that is more than 100 chars. This will give no warning, while it will cause an error in runtime.
3. Expected behavior
I would be handy if this possible overflow issue would be recognized by the code analyzers.
4. Actual behavior
It is not recognized so the issue can be easily overseen.
5. Versions:

AL Language: v7.4.496506
Visual Studio Code:
Business Central:
List of Visual Studio Code extensions that you have installed:

Same goes for SetFilter(), Get(), etc. - iirc

Hi! Thanks for the suggestion! Please go ahead and post this to our Ideas forum at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We're constantly monitoring top Ideas and will consider them for a future release.

authors: PP1986 db-bc nndobrev


text:
AA0228 (Local Method is declared but never used) is not raised in "reportextension" objects

1. Describe the bug
Warning AA0228 is not raised for local procedures in reportextension objects.
2. To Reproduce
Steps to reproduce the behavior:

Have the following code and see that the code analyzer warning is not raised for this case:

reportextension 50000 WSB_AccountScheduleSYS extends "Account Schedule"
{
    dataset
    {
    }

    local procedure MyLocalProcedure() // Warning AA0228 is not raised even though the procedure is unused
    begin

    end;
}

Investigated:
I suspect the following code in Microsoft.Dynamics.Nav.CodeCop.Design.Rule228DoNotDeclareUnusedLocalMethods
private static readonly SyntaxKind[] objectSyntaxKinds = new SyntaxKind[8]
{
	SyntaxKind.CodeunitObject,
	SyntaxKind.PageObject,
	SyntaxKind.PageExtensionObject,
	SyntaxKind.ReportObject,
	SyntaxKind.TableObject,
	SyntaxKind.TableExtensionObject,
	SyntaxKind.XmlPortObject,
	SyntaxKind.QueryObject
};

should be changed to:
private static readonly SyntaxKind[] objectSyntaxKinds = new SyntaxKind[9]
{
	SyntaxKind.CodeunitObject,
	SyntaxKind.PageObject,
	SyntaxKind.PageExtensionObject,
	SyntaxKind.ReportObject,
	SyntaxKind.ReportExtensionObject,
	SyntaxKind.TableObject,
	SyntaxKind.TableExtensionObject,
	SyntaxKind.XmlPortObject,
	SyntaxKind.QueryObject
};

3. Expected behavior
AA0228 is raised for local procedures in reportextension objects.
4. Actual behavior
AA0228 is NOT raised for local procedures in reportextension objects.
5. Versions:

AL Language: 10.0.674969
Visual Studio Code: 1.71.0
Business Central: N.A.
List of Visual Studio Code extensions that you have installed: N.A.

Final Checklist
Please remember to do the following:

[x] Search the issue repository to ensure you are reporting a new issue

[x] Reproduce the issue after disabling all extensions except the AL Language extension

[x] Simplify your code around the issue to better isolate the problem

Thanks for reaching out. We’re focused on other things right now, but we’ve added this issue to our backlog. We’re planning to give the CodeCop engine and its rules an overhaul in a future major release. Thanks again!

authors: rvanbekkum thloke


text:
[Event Request] -codeunit 211 "Res. Jnl.-Check Line"

    [IntegrationEvent(false, false)]
    local procedure OnBeforeCheckDimensions(var GenJnlLine: Record "Gen. Journal Line"; var CheckDone: Boolean)
    begin
    end;

Dimensionscheck in codeunit 211:

Dimensionscheck in Codeunit 11:

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

authors: JesperSchulz ddagkappeler

repo: microsoft/ALAppExtensions


text:
[Event Request] Codeunit 6620 "Copy Document Mgt." - New publisher

Hello, we need a new Event publisher in the procedure CopySalesDocSalesLine. Can you please check that? Thank you!
procedure CopySalesDocSalesLine(FromSalesHeader: Record "Sales Header"; var ToSalesHeader: Record "Sales Header"; var LinesNotCopied: Integer; NextLineNo: Integer)
var
    ToSalesLine: Record "Sales Line";
    FromSalesLine: Record "Sales Line";
    ItemChargeAssgntNextLineNo: Integer;
    IsHandled: Boolean;
begin
    ItemChargeAssgntNextLineNo := 0;

    with ToSalesHeader do begin
        FromSalesLine.Reset();
        FromSalesLine.SetRange("Document Type", FromSalesHeader."Document Type");
        FromSalesLine.SetRange("Document No.", FromSalesHeader."No.");
        if MoveNegLines then
            FromSalesLine.SetFilter(Quantity, '<=0');
        OnCopySalesDocSalesLineOnAfterSetFilters(FromSalesHeader, FromSalesLine, ToSalesHeader, RecalculateLines);
        if FromSalesLine.Find('-') then
            repeat
                IsHandled := false;
    ===>        OnCopySalesDocSalesLineOnBeforeFromSaleslineLoop(FromSalesHeader, ToSalesHeader, FromSalesLine, IsHandled);    <===
                if not IsHandled then
                    if not ExtTxtAttachedToPosSalesLine(FromSalesHeader, MoveNegLines, FromSalesLine."Attached to Line No.") then begin
                        InitAsmCopyHandling(true);
                        ToSalesLine."Document Type" := "Document Type";
                        AsmHdrExistsForFromDocLine := FromSalesLine.AsmToOrderExists(AsmHeader);
                        if AsmHdrExistsForFromDocLine then begin
                            case ToSalesLine."Document Type" of
                                ToSalesLine."Document Type"::Order:
                                    begin
                                        QtyToAsmToOrder := FromSalesLine."Qty. to Assemble to Order";
                                        QtyToAsmToOrderBase := FromSalesLine."Qty. to Asm. to Order (Base)";
                                    end;
                                ToSalesLine."Document Type"::Quote,
                                ToSalesLine."Document Type"::"Blanket Order":
                                    begin
                                        QtyToAsmToOrder := FromSalesLine.Quantity;
                                        QtyToAsmToOrderBase := FromSalesLine."Quantity (Base)";
                                    end;
                            end;
                            GenerateAsmDataFromNonPosted(AsmHeader);
                        end;
                        if CopySalesDocLine(
                             ToSalesHeader, ToSalesLine, FromSalesHeader, FromSalesLine,
                             NextLineNo, LinesNotCopied, false,
                             "Sales Document Type From".FromInteger(DeferralTypeForSalesDoc(ConvertToSalesDocumentTypeFrom(FromSalesHeader."Document Type"))),
                             CopyPostedDeferral, FromSalesLine."Line No.")
                        then begin
                            OnCopySalesDocSalesLineOnBeforeCopyFromSalesDocAssgntToLine(FromSalesLine, ToSalesLine, RecalculateLines, NextLineNo);
                            if FromSalesLine.Type = FromSalesLine.Type::"Charge (Item)" then
                                CopyFromSalesDocAssgntToLine(
                                  ToSalesLine, FromSalesLine."Document Type", FromSalesLine."Document No.", FromSalesLine."Line No.",
                                  ItemChargeAssgntNextLineNo);
                            OnAfterCopySalesLineFromSalesDocSalesLine(
                              ToSalesHeader, ToSalesLine, FromSalesLine, IncludeHeader, RecalculateLines);
                        end;
                    end;
            until FromSalesLine.Next() = 0;
    end;

    OnAfterCopySalesDocSalesLine(ToSalesLine);
end;

New Event:
[IntegrationEvent(false, false)]
local procedure OnCopySalesDocSalesLineOnBeforeFromSaleslineLoop(FromSalesHeader: Record "Sales Header"; var ToSalesHeader: Record "Sales Header"; FromSalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;

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

authors: JesperSchulz MarkoMilosavljevic


text:
[Request for Modification] table 1173 "Document Attachment" - OnBeforeExport - Add ShowFileDialog parameter

Please add the ShowFileDialog parameter as a parameter to the OnBeforeExport event of the Document Attachment table:
Currently:
    procedure Export(ShowFileDialog: Boolean) Result: Text
    var
        TempBlob: Codeunit "Temp Blob";
        FileManagement: Codeunit "File Management";
        DocumentStream: OutStream;
        FullFileName: Text;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeExport(Rec, IsHandled);
        if IsHandled then
            exit;

        ...
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeExport(var DocumentAttachment: Record "Document Attachment"; var IsHandled: Boolean)
    begin
    end;

Desired:
    procedure Export(ShowFileDialog: Boolean) Result: Text
    var
        TempBlob: Codeunit "Temp Blob";
        FileManagement: Codeunit "File Management";
        DocumentStream: OutStream;
        FullFileName: Text;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeExport(Rec, ShowFileDialog, IsHandled);
        if IsHandled then
            exit;

        ...
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeExport(var DocumentAttachment: Record "Document Attachment"; ShowFileDialog: Boolean; var IsHandled: Boolean)
    begin
    end;

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

authors: JesperSchulz dsaveyn


text:
[Event Request] table 1003 "Job Planning Line" - CopyFromResource

Describe the request
Could you please add the following event?
local procedure CopyFromResource()
var
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeCopyFromResource(Rec, xRec, IsHandled);
    if IsHandled then
        exit;

    Res.Get("No.");
    Res.CheckResourcePrivacyBlocked(false);
    Res.TestField(Blocked, false);
    Res.TestField("Gen. Prod. Posting Group");
    if Description = '' then
        Description := Res.Name;
    if "Description 2" = '' then
        "Description 2" := Res."Name 2";
    "Gen. Prod. Posting Group" := Res."Gen. Prod. Posting Group";
    "Resource Group No." := Res."Resource Group No.";
    Validate("Unit of Measure Code", Res."Base Unit of Measure");
    //+EVENT
    OnAfterCopyCopyFromResource(Rec, Job, Res);
    //-EVENT
end;

[IntegrationEvent(false, false)]
local procedure OnAfterCopyCopyFromResource(var JobPlanningLine: Record "Job Planning Line"; Job: Record Job; Resource: Record Resource;)
begin
end;

Additional context
We would like to transfer custom fields similiar to the Event OnAfterCopyFromItem or OnAfterCopyFromGLAccount.
Internal work item: AB#524720

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

authors: JesperSchulz pri-kise


text:
[Event Request] Table 210 - inside OnValidate Work Type Code

Requesting a new event in Table 210 to be able to exit validation and control whether "Line Discount %" is validated.

LOCAL [IntegrationEvent] OnBeforeValidateWorkTypeCode(VAR JobJournalLine : Record "Job Journal Line";VAR xJobJournalLine : Record "Job Journal Line";VAR HandleDiscount : Boolean;VAR IsHandled : Boolean)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

authors: bc-ghost dagnybjork


text:
[Event-Request] Codeunit 213 - Res. Jnl.-Post Batch

Hi,
Codeunit 213 - Res. Jnl.-Post Batch has no events. Could you add at least the following events? I used  Codeunit 13/23 as a base. I need to know what lines have been posted.
OnBeforeCode
OnAfterPostResJnlLines
Ans maybe add some more, but it looks like the CodeUnit needs some refactoring for this.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

authors: bc-ghost guidorobben


text:
Format String for "Text"-Measures

if a Measure is displaying a date or a username what format string should be set to avoid an BPA flag for the Rule: "Provide a format string for measures"

Simply set this measure to be ignored within the Best Practice Analyzer (right click on the object within the BPA and click 'Ignore item') as this rule is not relevant for such measures.

repo: microsoft/Analysis-Services


text:
[Accessibility]A11y_AzureToolsStorageExplorer_Settings_DataExplorers : AI4D: (StorageExplorer/heading '') The Name property of a focusable element must not be null.

“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags: #A11y_AzureToolsStorageExplorer; #A11yMAS; #A11YTCS; #DesktopApp; #MAS4.1.2; #AI4D; #Win10;
Environment Details:
Windows Version: Windows10
Steps to Reproduce:

Launch Storage Explorer
Navigate to Setting menu on left pane and click on it.
Navigate to Data Explorers on right pane and  click on it.
"Data Explorers" screen gets opened.
Verify that all the elements of "Data Explorers" Screen are accessible and MAS Compliant.

Actual:
(StorageExplorer/heading '') The Name property of a focusable element must not be null.
Expected:
(StorageExplorer/heading '') The Name property of a focusable element must not be null it should be provided.
Recommendations:
Refer below link which is repository of bug fixes code snippets:
https://microsoft.sharepoint.com/teams/msenable/mas/Pages/browse-fixes.aspx
User Impact: Screenreader user unable to know the name of the check box.
MAS Reference:
https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc={248054a6-5e68-4771-9e1e-242fb5025730}
Attachment for reference

Jason merged a fix for this into master

Verified this issue on:Azure Tools Storage Explorer (Version: 1.12.0)
The issue is no longer to reproduces, Hence closing this bug.

GitHubTags:#BM-TCS-StorageExplorer-Win32-Sep2019;

repo: microsoft/AzureStorageExplorer


text:
Add 'Cancel' next to activity log of copying table

Storage Explorer Version: 1.11.1
Build: 20191119.3
Branch: hotfix/1.11.1
Platform/OS: Windows 10/ Linux Ubuntu 18.04/macOS High Sierra
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Launch Storage Explorer -> Tables.
Create a new table -> Add multiple entities.
Copy this table to another storage account.
Check the activity log.

Expect Experience:
There is a 'Cancel' action next to activity log.
Actual Experience:
No 'Cancel' action shows next to activity log.

Verified this issue on the build main 20220120.6. Fixed.


text:
Show an odd string in warning message on ADLS Gen2 blob container's Properties dialog

Storage Explorer Version: 1.12.0
Build: 20200108.3
Branch: master
Platform/OS: Windows 10/ Linux Ubuntu 18.04/macOS High Sierra
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Launch Storage Explorer.
Expand one ADLS Gen2 account -> Blob Containers.
Create a new blob container -> Right click it -> Click 'Properties...' -> Add Property -> Type space in key box.
Check the warning message in the dialog.

Expect Experience:
Show a correct string in warning message.
Actual Experience:
Show an odd string in warning message.

Fix merged into master

authors: MRayermannMSFT v-limu


text:
The table auto refresh after canceling the file import

Storage Explorer Version: 1.15.0-dev
Build: 20200806.6
Branch: master
Platform/OS: Windows 10/ CentOS 7.6.1810 (Core) / MacOS Catalina
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Expand one storage account -> Tables.
Create a new table -> Click 'Import' action in the toolbar -> Click 'Cancel' button in the file explorer.
Check the result.

Expect Experience:
The table doesn't refresh.
(Unnecessary auto refreshing will make the table loading a long time when one table has a large number of entities).
Actual Experience:
The table auto refresh.

Won't fix. Minor table issue.


text:
Guacamole is always exposed externally

Describe the bug
Guacamole workspace service is exposed externally even when the "exposed externally" is not ticked.
Azure TRE release version (e.g. v0.14.0 or main):
main
Deployed Azure TRE components - click the (i) in the UI:

Something similar was happening to shared drive earlier this year. #3885

authors: tamirkamara tim-allen-ck

repo: microsoft/AzureTRE


text:
Repeat dialog to a certain intent

Hi, when using "Repeat dialog" is there an option that I can pass so that the conversation goes to a specific intent when repeating the dialog?

Hi @krassussofficial
The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests.

There is not any setting in the repeat dialog action to do that. There should be a way to accomplish whatever functionality you need, but will need some more information. Do you really need to repeat the dialog? Can you give a better example of the dialog flow and the specifics of the requirements? Please open an issue on Stack Overflow and add that information there.

authors: dmvtech krassussofficial

repo: microsoft/BotFramework-Composer


text:
Bot border radius style option

I need to change the border radius of the bot avatar, but do not see this property here - https://github.com/Microsoft/BotFramework-WebChat/blob/master/packages/component/src/Styles/defaultStyleSetOptions.js
Would it be possible to add it?
It was possible in older versions with styleSet which is stated to be non-recommended way of overriding styles.

Hi @artemvalmus, just fyi, the last time I checked you are able to affect border-radius with styleSet. If you're having trouble with this let me know.
As for changing the border radius within styleSetOptions, you are right in that this is not (yet) a feature. I will put this issue up for discussion with the team to see if we want to implement the option. :)
(Also, if you have the bandwidth to do the PR yourself, we are more than happy to do a review!)

Like this idea!
Plus, we should build a sample to use clip-path, probably in styleSet, to clip the avatar as an Octocat. Fun 2-hour project.

This can be done with our latest customizable per-message avatar.
https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/05.custom-components/k.per-message-avatar/

authors: artemvalmus compulim corinagum

repo: microsoft/BotFramework-WebChat