Setting initial immunity in a population

Hi, this probably more of a programming issue, but I have been trying to set initial immunity for a population (so that the simulation does not start with everyone being susceptible) with no success.  Below is a snippet of my SEIR model class:

class SEIR(ss.Infection):
    """
    Example SEIR model
    This class implements a basic SEIR model with states for susceptible,
    exposed, infected/infectious, and recovered. It also includes deaths and basic
    results.
    """

    def __init__(self, pars=None, **kwargs):
        super().__init__()
        self.default_pars(
            beta = 18/9 ,  # Mean transmission rate: R0 / D
            init_prev = ss.bernoulli(p=0.005),
            imm_prob  = ss.bernoulli(p=0.9),
            dur_exp = ss.lognorm_ex(mean=10/12, stdev=2),
            dur_inf = ss.lognorm_ex(mean=9/12, stdev=2),
            p_death = ss.bernoulli(p=0.018)

        )
        self.update_pars(pars, **kwargs)

        self.add_states(
            ss.BoolArr('maternal', label='Maternal'),
            ss.BoolArr('exposed', label='Exposed'),
            ss.BoolArr('recovered', label='Recovered'),
            ss.FloatArr('ti_exposed', label='Time of exposure'),
            ss.FloatArr('ti_infectious', label='Time of becoming infectious'),
            ss.FloatArr('ti_recovered', label='Time of recovery'),
            ss.FloatArr('ti_dead', label='Time of death'),
        )
        return

    @property
    def infectious(self):
        return self.infected

    def set_initial_states(self):
        imm_prob = self.pars.imm_prob
        initially_immune = np.array(sim.people.uid)[imm_prob.rvs(len(sim.people.auids))]
        self.susceptible[ss.uids(initially_immune)] = False
        self.recovered[ss.uids(initially_immune)] = True
        return

       ......

Hi @wagathu -- yes, the issue is that the method call has been renamed from set_initial_states to init_post (we are working on a decorator to check for deprecations like this automatically!). This should do what you expect:
import starsim as ss

class SEIR(ss.SIR):
    """
    Example SEIR model
    This class implements a basic SEIR model with states for susceptible,
    exposed, infected/infectious, and recovered. It also includes deaths and basic
    results.
    """

    def __init__(self, pars=None, **kwargs):
        super().__init__()
        self.default_pars(
            beta = 18/9 ,  # Mean transmission rate: R0 / D
            init_prev = ss.bernoulli(p=0.005),
            imm_prob  = ss.bernoulli(p=0.9),
            dur_exp = ss.lognorm_ex(mean=10/12, stdev=2),
            dur_inf = ss.lognorm_ex(mean=9/12, stdev=2),
            p_death = ss.bernoulli(p=0.018)

        )
        self.update_pars(pars, **kwargs)

        self.add_states(
            ss.BoolArr('maternal', label='Maternal'),
            ss.BoolArr('exposed', label='Exposed'),
            ss.BoolArr('recovered', label='Recovered'),
            ss.FloatArr('ti_exposed', label='Time of exposure'),
            ss.FloatArr('ti_infectious', label='Time of becoming infectious'),
            ss.FloatArr('ti_recovered', label='Time of recovery'),
            ss.FloatArr('ti_dead', label='Time of death'),
        )
        return

    @property
    def infectious(self):
        return self.infected

    def init_post(self):
        super().init_post()
        imm_prob = self.pars.imm_prob
        initially_immune_uids = imm_prob.filter()
        print(f'Debug: setting {len(initially_immune_uids)} agents to be initially immune')
        self.susceptible[initially_immune_uids] = False
        self.recovered[initially_immune_uids] = True
        return

# Test
sim = ss.Sim(n_agents=10_000, diseases=SEIR(), networks='random')
sim.run()
sim.plot()

Thanks @cliffckerr. It worked wonderfully! I have two additional questions (unrelated to the above):

Should beta (the transmission rate) be defined as a rate or a probability?
If we are running simulations where the timestep is a month instead of a year, should the birth rate also be divided by 12, similar to how we've adjusted the duration of infection and exposure?

pars = dict(
n_agents = 30_000,     # Number of agents to simulate
total_pop = 48e6,        # The total population
birth_rate = 27.58,       #  Should it be 27.58/12?
death_rate = 7.8,          # Should it be 7.8/12 ?
networks = ss.RandomNet(pars={'n_contacts': 10})
)
sim = ss.Sim(pars = pars, n_agents=10_000, diseases=SEIR(), dt = 1/12)

For beta, it should be defined as a rate. So you could have beta=10 and dt=0.01, which would correspond to a probability of 0.1 per timestep.
For the parameters, it depends how you're using it. If you're using the built-in Births module, it should already be scaled by dt:
https://github.com/starsimhub/starsim/blob/main/starsim/demographics.py#L106
However, if you're using the parameter in a custom function, you should multiply by sim.dt explicitly (which is better than including it in the parameter definition).
In Starsim 2.0, this will change to birth_rate = ss.peryear(27.58), which will handle all the time units for you regardless of timestep.

Okay. My disease class inherits from the Infection class and adds some states, does this qualify to be a custom function? I also do not use ss.Births() to ss.Deaths() while specifying the birth and death rates.
class SEIR(ss.Infection):
    """
    Example SEIR model
    This class implements a basic SEIR model with states for susceptible,
    exposed, infected/infectious, and recovered. It also includes deaths and basic
    results.
    """

    def __init__(self, pars=None, **kwargs):
        super().__init__()
        self.default_pars(
            beta = 18/9 ,  # Mean transmission rate: R0 / D
            init_prev = ss.bernoulli(p=0.0005),
            imm_prob  = ss.bernoulli(p=0.9),
            dur_exp = ss.lognorm_ex(mean=10/12, stdev=2),
            dur_inf = ss.lognorm_ex(mean=9/12, stdev=2),
            p_death = ss.bernoulli(p=0.018)

        )
        self.update_pars(pars, **kwargs)

        self.add_states(
            ss.BoolArr('maternal', label='Maternal'),
            ss.BoolArr('exposed', label='Exposed'),
            ss.BoolArr('recovered', label='Recovered'),
            ss.FloatArr('ti_exposed', label='Time of exposure'),
            ss.FloatArr('ti_infectious', label='Time of becoming infectious'),
            ss.FloatArr('ti_recovered', label='Time of recovery'),
            ss.FloatArr('ti_dead', label='Time of death'),
        )
        return

    @property
    def infectious(self):
        return self.infected

    def init_post(self):
        super().init_post()
        imm_prob = self.pars.imm_prob
        initially_immune_uids = imm_prob.filter()
        print(f'Debug: setting {len(initially_immune_uids)} agents to be initially immune')
        self.susceptible[initially_immune_uids] = False
        self.recovered[initially_immune_uids] = True
        return

    def update_pre(self):
        """ Update states before the next time step """
        sim = self.sim
        ti = sim.ti

        # Progress maternal antibodies -> susceptible
        babies_id = sim.people.uid[sim.people.age <= 6/12]  # Babies under 6 months have maternal immunity
        self.maternal[babies_id] = True                    # Set them as having maternal antibodies
        self.susceptible[babies_id] = False                # They are not susceptible

        # Now handle the babies who just turned 6 months and lose their maternal immunity
        just_turned_susceptible = sim.people.uid[(sim.people.age > 6/12) & (self.maternal)]  # Babies older than 6 months and have maternal immunity
        self.maternal[just_turned_susceptible] = False     # Remove maternal antibodies
        self.susceptible[just_turned_susceptible] = True   # Now they are susceptible to measles

        # Progress exposed -> infectious
        new_infectious = (self.exposed & (self.ti_infectious <= ti)).uids
        self.exposed[new_infectious] = False
        self.infected[new_infectious] = True

        # Progress infectious -> recovered
        recovered = (self.infected & (self.ti_recovered <= ti)).uids
        self.infected[recovered] = False
        self.recovered[recovered] = True

        # Trigger deaths
        deaths = (self.ti_dead <= ti).uids
        if len(deaths):
            sim.people.request_death(deaths)

        return

    def set_prognoses(self, uids, source_uids=None):
        """ Set prognoses """
        super().set_prognoses(uids, source_uids)
        ti = self.sim.ti
        dt = self.sim.dt
        self.susceptible[uids] = False
        self.exposed[uids] = True
        self.ti_exposed[uids] = ti
        p = self.pars

        # Sample durations, being careful to only sample from the
        # distributions once per timestep.
        dur_exp = p.dur_exp.rvs(uids)
        dur_inf = p.dur_inf.rvs(uids)

        # Set time of becoming infectious
        self.ti_infectious[uids] = ti + dur_exp / dt

        # Determine who dies and who recovers and when
        will_die = p.p_death.rvs(uids)
        dead_uids = uids[will_die]
        rec_uids = uids[~will_die]
        self.ti_dead[dead_uids] = ti + (dur_exp[will_die] + dur_inf[will_die]) / dt
        self.ti_recovered[rec_uids] = ti + (dur_exp[~will_die] + dur_inf[~will_die]) / dt
        return

    def update_death(self, uids):
        """ Reset exposed/infected/recovered flags for dead agents """
        self.susceptible[uids] = False
        self.exposed[uids] = False
        self.infected[uids] = False
        self.recovered[uids] = False
        return

    def update_results(self):
        super().update_results()
        res = self.results
        ti = self.sim.ti

        # Count the number of new exposures during this timestep
        new_exposures = np.count_nonzero((self.ti_exposed == ti) & self.exposed)

        # Update results accordingly
        res.new_infections[ti] = new_exposures
        res.cum_infections[ti] = np.sum(res['new_infections'][:ti+1])
        res.prevalence[ti] = (res.n_infected[ti] + res.n_exposed[ti]) / np.count_nonzero(self.sim.people.alive)
        return

    def plot(self, plot_kw=None):
        """ Default plot for SEIR model """
        fig = pl.figure()
        plot_kw = sc.mergedicts(dict(lw=2, alpha=0.8), plot_kw)
        for rkey in ['n_susceptible', 'n_exposed', 'n_infected', 'n_recovered']:
            pl.plot(self.sim.results.yearvec, self.results[rkey], label=self.results[rkey].label, **plot_kw)
        pl.legend(frameon=False)
        pl.xlabel('Year')
        pl.ylabel('Number of people')
        sc.boxoff()
        sc.commaticks()
        return fig
measles = SEIR()

Here you do not need to just the parameter value, because in set_prognoses() you have e.g.
        self.ti_infectious[uids] = ti + dur_exp / dt

So this is already adjusting dur_exp by dt.

Thanks @cliffckerr

But assuming that I define dur_exp as 10 and dt = 1/12, then at time step 1 it will be (1 + 10) ÷ (1/12) = 132.0
But if I define dur_exp as 10/12 then it will be (1 + (10/12)) ÷ (1/12) = 11.0000?

Ah I understand -- it's because time advances by dt on each iteration (not by 1). So at timestep 1 it will be (1/12 + 10) / (1/12) = 121 (=10 years and 1 month), whereas if you define it as 10/12 then you're right it will be 11 (11 months).


Copy Option Enabled for small screen devices also

Details
Just enabled copy email/phone number options for small screen devices.
Fixed Issues

$ https://github.com/Expensify/App/issues/4905
Tests & QA Steps

Go to any user chat.
Navigate to user details by a tap on the chat header
Now copy option will be shown for email/phone.

Tested On

[x] Mobile Web
[x] iOS
[x] Android
[x] Desktop
[x] Web

Screenshots
Mobile Web

iOS
https://user-images.githubusercontent.com/85645967/136709986-693ad4a9-e2ef-41b0-8db5-0e94d09f85b4.mp4
Android

Desktop

Web

@Santhosh-Sellavel Could you please test it on the other remaining platforms?

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by @Luke9389 in version: 1.1.8-10 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


e2e test script problems when running locally

Problems:

OPERATOR_DIR is a relative path only and that results in strange behavior later, when we cd back, we won't actually cd back.
ko resolve -P should only be used in prow, when targeting GCR. When targeting DockerHub (as when running the tests locally for example), I can't use -P since DockerHub doesn't support nested paths.

/assign @aliok


fix: [resizable columns not working properly in Fluent Data Grid?] in [Fluent controls demo site?]

Resizable columns not working properly in Fluent Data Grid.

This will be fixed in an upcoming release (no date set yet!). See https://brave-cliff-0c0c93310-344.centralus.azurestaticapps.net/DataGrid


Bugfix/On mobile device the campaign title is huge

Update the font size of the campaign title to 32px for mobile view

Closes #1405
Screenshots:
BEFORE:

AFTER:

List of pages that are affected by the changes
Campaign Details page
Environment
Local

@mm-hstefanova nice update! :rocket:


feat(client): design how to import data from cloud storage

Pull Request Test Coverage Report for Build 964108849

10 of 14 (71.43%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.04%) to 84.992%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

tensorbay/dataset/data.py
9
13
69.23%

Totals

Change from base Build 963605980:
-0.04%

Covered Lines:
4910

Relevant Lines:
5777

💛  - Coveralls


Batch Normalization freeze

Hi @kazuto1011 , thanks for this wonderful work. While reading your code, I noticed that before the training, you freezed the batch_normalization layers.

model.train()
model.module.scale.freeze_bn()

I am wondering what is the propose of this freeze, and if i train a network from scratch, does it still make sense to impose the freeze_bn()?
Thanks by advance for your kind reply!

If you start from scratch, you must train all the batch norm layers, with adequate batch size to estimate the statistics of the mini-batch. The reason to freeze the batch norm layers in training is to reduce the computational cost, but note that the layers are pre-trained on ImageNet/COCO. It is a common technique in training models that need a very large memory, like in semantic segmentation.
If you'd like to train the batch norm params with multiple GPUs, you cannot use this repository as is. Please search for "sync batch norm" and replace with it.


ImportError: cannot import name 'force_unicode'

It appears djcelery is trying to import force_unicode from python 3.5, but this was a breaking change from python 2. Instead, it should be trying to import force_text, as suggested by this other very similar issue in a different library: https://github.com/concentricsky/django-tastypie-swagger/issues/60
I am running the following versions:
django==1.9.4
celery==3.1.24
django-celery==2.5.3
full traceback:
Traceback (most recent call last):   File "manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line     utility.execute()   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/core/management/__init__.py", line 327, in execute     django.setup()   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/__init__.py", line 18, in setup     apps.populate(settings.INSTALLED_APPS)   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/apps/registry.py", line 115, in populate     app_config.ready()   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/contrib/admin/apps.py", line 22, in ready     self.module.autodiscover()   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/contrib/admin/__init__.py", line 26, in autodiscover     autodiscover_modules('admin', register_to=site)   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/django/utils/module_loading.py", line 50, in autodiscover_modules     import_module('%s.%s' % (app_config.name, module_to_search))   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/importlib/__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   File "<frozen importlib._bootstrap>", line 986, in _gcd_import   File "<frozen importlib._bootstrap>", line 969, in _find_and_load   File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 662, in exec_module   File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/djcelery/admin.py", line 11, in <module>     from django.utils.encoding import force_unicode ImportError: cannot import name 'force_unicode'

You should upgrade django-celery, as 2.5.3 is very old. Python 3 support was added in django-celery 3.0.21.

That's an easy fix. Thanks.


How to add "custom-element" tag to script

Hi,
I'm using Nuxt3 to create a web-story for my website and want to import the web-story script async in the head section of the page.
As per the docs, I need to add this to the head,
<script async custom-element="amp-story"
        src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script>
</head>

I was able to add the src and async, but can't seem to add custom-element. Can you please guide me on how to do it in vueuse head?
Nuxt Page:
<script setup lang="ts">
useHead({
  title: 'My App',
  meta: [
    { name: 'description', content: 'My amazing site.' }
  ],
  bodyAttrs: {
    class: 'test'
  },
  script: [ { async: true,src: 'https://cdn.ampproject.org/v0/amp-story-1.0.js' } ]
})
</script>

This will work, though custom-element isn't typed so you'll need to ignore the ts error.
<script setup lang="ts">
useHead({
  title: 'My App',
  meta: [
    { name: 'description', content: 'My amazing site.' }
  ],
  bodyAttrs: {
    class: 'test'
  },
  script: [ { async: true, src: 'https://cdn.ampproject.org/v0/amp-story-1.0.js', 'custom-element': 'amp-story' } ]
})
</script>

I'll leave this issue open to type the custom-element

thanks @harlan-zw

Hey @anjali89r
Thanks for the issue, the type definitions are available in zhead 2.0.1 which will land in the next release of @vueuse/head, which should be released soon.


Runtime Error in Tutorial

Tutorial: Retrain EfficientDet for the Edge TPU with TensorFlow Lite Model Maker
(https://colab.research.google.com/github/google-coral/tutorials/blob/master/retrain_efficientdet_model_maker_tf2.ipynb)
The above tutorial produces the following run time error in the  "Import the required packages" of the jupyter notebook. The statement is: !pip install -q tflite-model-maker
"OSError: [Errno 28] No space left on device"
The tutorial cannot be executed!!
runtimeError.txt

Hello Hemanth-Jonnala
thank you for the quick reply. I will try it. But I need a solution which runs for many months in the future on CoLab. I used the pip install cell in an adaptation of the tutorial code which is cited from an article. This article will be published in 2 Weeks and the readers must be also able to run the code (See the code:  https://github.com/robodhhb/Smart-Modelrailway-Cam/blob/main/30_Your_Training/30_Training/trainSMRC.ipynb trainSMRC.ipynb). Otherwise it would be a catastrophe for me.
Can you help me?
Many thanks,
Detlef
Von: Hemanth-Jonnala @.>
Gesendet: Mittwoch, 10. Mai 2023 18:02
An: google-coral/edgetpu @.>
Cc: Detlef Heinze @.>; Author @.>
Betreff: Re: [google-coral/edgetpu] Runtime Error in Tutorial (Issue #755)
Please try with the colab fallback runtime version https://discuss.tensorflow.org/t/tflite-model-maker-installation/16577/5  (python 3.9), which will be available till Mid May. To enable it, press cmd+shift+p and type use fallback runtime version and select it.
And in the colab tutorial replace the pip install cell as ! pip install numpy tflite-model-maker.
—
Reply to this email directly, view it on GitHub https://github.com/google-coral/edgetpu/issues/755#issuecomment-1542453015 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHK6H3WPQIDESBJXOSSJ753XFO3WTANCNFSM6AAAAAAX4MAWRY .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AHK6H3TWSQBZVSWGHTVEICTXFO3WTA5CNFSM6AAAAAAX4MAWR2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS3573RO.gif Message ID: @.*** @.***> >

I tried it out. But the „use fallback runtime“-option is not available anymore.
What shall I do now? I need a solution. Please help me.
Von: Hemanth-Jonnala @.>
Gesendet: Mittwoch, 10. Mai 2023 18:02
An: google-coral/edgetpu @.>
Cc: Detlef Heinze @.>; Author @.>
Betreff: Re: [google-coral/edgetpu] Runtime Error in Tutorial (Issue #755)
Please try with the colab fallback runtime version https://discuss.tensorflow.org/t/tflite-model-maker-installation/16577/5  (python 3.9), which will be available till Mid May. To enable it, press cmd+shift+p and type use fallback runtime version and select it.
And in the colab tutorial replace the pip install cell as ! pip install numpy tflite-model-maker.
—
Reply to this email directly, view it on GitHub https://github.com/google-coral/edgetpu/issues/755#issuecomment-1542453015 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHK6H3WPQIDESBJXOSSJ753XFO3WTANCNFSM6AAAAAAX4MAWRY .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AHK6H3TWSQBZVSWGHTVEICTXFO3WTA5CNFSM6AAAAAAX4MAWR2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS3573RO.gif Message ID: @.*** @.***> >

Hi, I used the fallback runtime and added numpy in the pip install  statement but I get new error messages in the code after the pip statement:
import numpy as np
import os
from tflite_model_maker.config import ExportFormat
from tflite_model_maker import model_spec
from tflite_model_maker import object_detector
import tensorflow as tf
assert tf.version.startswith('2')
tf.get_logger().setLevel('ERROR')
from absl import logging
logging.set_verbosity(logging.ERROR)
This code produces the following output: What shall I do?
/usr/local/lib/python3.9/dist-packages/tensorflow_addons/utils/tfa_eol_msg.py:23: UserWarning:
TensorFlow Addons (TFA) has ended development and introduction of new features.
TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.
Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).
For more information see: https://github.com/tensorflow/addons/issues/2807
warnings.warn(
/usr/local/lib/python3.9/dist-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.10.0 and strictly below 2.13.0 (nightly versions are not supported).
The versions of TensorFlow you are currently using is 2.8.4 and is not supported.
Some things might work, some things might not.
If you were to encounter a bug, do not file an issue.
If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version.
You can find the compatibility matrix in TensorFlow Addon's readme:
https://github.com/tensorflow/addons
warnings.warn(
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .

Please rerun the import module section, the error would go away. Thanks!

Hi,
yes that works. I tried to begin working with the MediaPipe ModelMake. In
your example on
<https://developers.google.com/mediapipe/solutions/vision/object_detector/cu
stomize> Object detection model customization guide  |  MediaPipe  |  Google
for Developers
There is a bug in the code for "Visualize the training dataset". In the last
for-statement of function "visualize" the image_id must be reduced by one
otherwise image and rectangle of the object does not match.
The third line of the for statement must be (see the "-1"):
img = plt.imread(os.path.join(dataset_folder, "images",
images[image_id-1]["file_name"]))
Regards
Von: Hemanth-Jonnala @.>
Gesendet: Freitag, 19. Mai 2023 15:11
An: google-coral/edgetpu @.>
Cc: Detlef Heinze @.>; Author
@.>
Betreff: Re: [google-coral/edgetpu] Runtime Error in Tutorial (Issue #755)
Please rerun the import module section, the error would go away. Thanks!

Reply to this email directly, view it on GitHub
https://github.com/google-coral/edgetpu/issues/755#issuecomment-1554550678
, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHK6H3UMPDX3TAV73JIYNHTXG
5WPDANCNFSM6AAAAAAX4MAWRY> .
You are receiving this because you authored the thread.
<https://github.com/notifications/beacon/AHK6H3SIV7D3ANFTUIT72SLXG5WPDA5CNFS
M6AAAAAAX4MAWR2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS
4VCHZM.gif> Message ID:
@.***
@.***> >

<https://developers.google.com/mediapipe/solutions/vision/object_detector/cu stomize> Object detection model customization guide | MediaPipe | Google for Developers

Please check with MediaPipe team regarding this issue. Thanks!


Idea: Hook to prevent navigation

A feature like <Prompt> would be nice to have to prevent navigation based on the outcome of a user-defined condition, for example when a user clicks a <Link>  while a unsaved form is present on the page.
I could see a new hook usePreventNavigation to be used for it. It should accept a function that returns either asynchronous result or a Promise for a result. If the result is true, any navigation attempts in the current component or its children should be prevented.
function Page({children}) {
  usePreventNavigation(() => {
    // we have a unsaved form, prevent navigation unless the user confirms a dialog
    return Promise.resolve(true);
  });

  return children;
}

Hey @silverwind thanks for a suggestion! Something similar has already been asked, I've even put together a small demo that illustrates this principle with wouter here https://github.com/molefrog/wouter/issues/39
I should however add the Promise support to the demo and place the link to the demo in the readme (we have a special section called Code Recipes for things that are requested but seem a bit out of scope of the library).
Now the question is whether there should be a first-class support for this feature in wouter. IMO the feature sounds really independent from the routing and only operates with location hook, so I would keep it out of the main bundle.
Perhaps, we could release something like wouter-extra when we have enough features like this one in the future.

Thanks for the example. I will try to implement it like that. Would have preferred to do it without Context, but I guess it's the only way currently.
It's certainly only a feature very few users will need. Maybe useIntercept would be a even better name.

I've implemented your example. One issue I ran into was that a import of useLocation from wouter instead of wouter/use-location results in a too much recursion, I wonder if that is intended.
https://codesandbox.io/s/wouter-interruptible-transition-ojbkv

Closing in favor of https://github.com/molefrog/wouter/issues/112.


Write as GeoTIFF + Sidecar YAML (DEADM 1070)

This is for the requirement write Output Fractional Cover Datasets as GeoTIFF + Sidecar YAML.

Coverage increased (+21.9%) to 56.858% when pulling 285531d345e6a017dbc2b4484886be19e34b9480 on DEADM-1070 into 4ea0e64efd80873095b45af10ad40426a31eea1b on master.


[Issue]: Inconsistent Supported sclk frequencies on MI210

Problem Description
I am observing a strange issue regarding clock frequency settings on MI210: I see different supported sclk frequencies depending on whether the performance level is set to auto (e.g., reseting the settings with rocm_smi -r) or manual (setting a particular frequency manually with rocm-smi --setclock sclk 0/1/2).
I see the following supported sclk frequencies after running rocm-smi --setclock sclk 0: level0: 500Mhz, level1: 1700Mhz
I see the following supported sclk frequencies after running rocm_smi -r: level0: 500Mhz, level1: 800Mhz, level2: 1700Mhz
This means that the levels are inconsistent in different modes (e.g., auto/manual) and therefore I cannot set the frequency to 800Mhz using --setclock flag, and I can only set it to 800Mhz when using -r flag!
I don't see a similar issue on MI100 with an older version of the rocm stack (5.4.3) and driver (<IP_ADDRESS>.20).
Operating System
SLES 15-SP5
CPU
AMD EPYC 7773X 64-Core Processor
GPU
MI210
ROCm Version
5.7.1
ROCm Component
Driver version: 6.2.4
Steps to Reproduce
rocm-smi --setclock sclk 0
rocm-smi -s
rocm-smi -r
rocm-smi -s
rocm-smi --setclock sclk 1
rocm-smi -s
rocm-smi -r
rocm-smi -s
rocm-smi --setclock sclk 2
rocm-smi -s
rocm-smi -r
rocm-smi -s
Output of /opt/rocm/bin/rocminfo --support
support.txt

Sure, here is the log attached
log.txt

Hi,
This makes sense! So, we should explicitly set the performance level before. We missed this step since the frequencies associated with different performance levels were consistent in our older GPUs, and we extrapolated the behavior to MI210.
This clarifies things and solves the issue. Many thanks!


NotFoundError: It shows libcudart.so.8.0, but I am using CUDA 10.0.

Hello everyone.
I wanted to use TensorFlow 1.13.1, so I installed it in the following environment.
-----system information-----
OS:Ubuntu18.04.5 64bit
CPU:Intel Core  i7-10700 @2.90Ghz x 16
RAM:16GB
GPU:Gefoce RTX2060
CUDA:10.0.130
cuDNN:7.4
GPU driver:460.32.03
python2.7
-----The following error message will be displayed-----
tensorflow.python.framework.errors_impl.NotFoundError: libcudart.so.8.0: cannot open shared object file: No such file or directory
The TensorFlow website describes it as compatible with Python 2.7, 3.3 to 3.7 GCC 4.8 Bazel 0.19.2 cuDNN7.4 CUDA10.0. Why am I being suggested a CUDA 8.0 environment?
I have tried to install other versions of TensorFlow, but they all give me the same error.
Can someone please help me?
Thank you

@hitobito2009
Is there any particular reason for using tf 1.x, as there is no support for 1.x please upgrade to 2.x and let us know if you face any issues.
You may also refer to similar error issues: link, link, link2


Support SharePoint 2016

How can I migrate from SharePoint 2016 to SharePoint Online?
As it seems, SharePoint 2016 is not supported.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 36d01d11-eea9-7f49-693d-25c3fecc6253
Version Independent ID: 6749a619-2b75-1561-81e9-b45888c58c4b
Content: How to use the SharePoint Migration Tool - Migrate to SharePoint and OneDrive
Content Source: migration/how-to-use-the-sharepoint-migration-tool.md
Service: sharepoint-online
GitHub Login: @JoanneHendrickson
Microsoft Alias: jhendr

SharePoint 2016 is not supported by SPMT at this time. Microsoft recently purchased mover.io so you may want to investigate using that tool.
Otherwise, you can look at 3rd party options of which there are many.

I got the info from mover.io Unfortunately, with the acquisition by Microsoft, we are no longer able to migrate data from SharePoint On-premises.

at this time, it is only possible to migrate from SharePoint 2016 to SharePoint Online with 3rd party tools.


Clean up of directories according to issue #49

Clean up according to #49:

Moved all presentation files into documentation/SupportingDocuments/Presentations
Deleted obsolete README.md files

For images used in https://github.com/camaraproject/QualityOnDemand/tree/main/documentation/API_documentation/ there is a directory named resources in QoD. In commonalities, the directory is named images https://github.com/camaraproject/WorkingGroups/tree/main/Commonalities/documentation/images
Do we want to keep the same naming?

May be you want to place the documentation for eg https://github.com/hdamker/QualityOnDemand/blob/clean-up-patch2-%2349/code/API_definitions/Notifications.md and https://github.com/hdamker/QualityOnDemand/blob/clean-up-patch2-%2349/code/API_definitions/QoSProfile_Mapping_Table.md in the api documentation folder?

Do we want to follow the same naming convention?

If all sub projects agree on it, sure. But covered by the current issue.

May be you want to place the documentation for eg https://github.com/hdamker/QualityOnDemand/blob/clean-up-patch2-%2349/code/API_definitions/Notifications.md and https://github.com/hdamker/QualityOnDemand/blob/clean-up-patch2-%2349/code/API_definitions/QoSProfile_Mapping_Table.md and https://github.com/hdamker/QualityOnDemand/blob/clean-up-patch2-%2349/documentation/QoD-API-Readiness-Checklist.md in the api documentation folder?

Moved Notifications.md and QoD-API-Readiness-Checklist.md into API_documentation folder. Kept QoSProfile_Mapping_Table.md within its location as it is linked within YAML files and changed in #43.

What about camaraproject/WorkingGroups#63 (comment) ?

@shilpa-padgaonkar I created a new issue for that #52


Create Change Fail Rate Metric

Backlog Task
Create Change Fail Rate Metric
The Change Fail Rate is a DORA metric and should be implemented for our team.  The change fail rate is the percentage of deployments to production that fail.
Completion Criteria

[x] We can view the change fail rate for production deployments across a fixed length of time.

Tasks

[ ] N/A

Other Notes

Any other notes to help clarify this task for the team

Moving this to review status.  The completion criteria is completed with task #198


Fix inability to select multiple options for a facet

Description

This PR fixes the inability for users to selection multiple options for a facet due to an immediate auto-filtering performed whenever a form's value changes (in this case, selecting a single option).
Summary of Changes

Add state for activeDropDownValue and dropdownIsOpen to manage individual forms as a single instance
Add React.useEffect to handle updating query when facets dropdown closes
Add function handleOnSetActiveFacets and update props for Facets and FacetsForm components
Add tests
Update comment string "re-render" to "rerender"

Fixes # (issue)

Closes #239

Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

[x] Pre-commit (ESLint, Prettier, Flake8, Black, Mypy)
[ ] CI/CD Build

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Ignore the pyup.io/safety-ci warning regarding django 3.1.3. This will be fixed in another PR.


Introduction

http://localhost/TechNotes/wp-admin/post.php?post=1674&action=edit
VSC:
http://localhost/lab/python/utilities/study_codes/opencodes.php?f=/Users/wtsang/Lab/web_design/ray_tailwindcss_3/

Resources

Codes and Slides


Add check for label & symbol uniqueness

FBbt labels should be unique.  If not then fail build
labels overall - warn of duplicates, don't fail.
symbols overall - fail for now.  consider making into warning later.

Robot now has built-in check: http://robot.obolibrary.org/report_queries/multiple_labels
SPARQL can be modified for FBbt & symbol checks.

See http://robot.obolibrary.org/report
For duplicate labels there is the 'duplicate label' check - http://robot.obolibrary.org/report_queries/duplicate_label
It is currently set to WARN, rather than ERROR
From looking through fbbt.Makefile, we do 2 sets of qc - obo_qc_fbbt.owl and obo_qc_fbbt.obo, each producing a txt file. Both use the same qc profile, where duplicate_label check is set to WARN.
The obo check uses a file without the imports merged, while the owl check performs a merge without the --collapse-import-closure false option before doing the checks, so is checking a file with imports merged in.
To have different severity (ERROR/WARN) for duplicate labels in FBbt v FBbt+imports, I think we would need two qc profiles, one for the owl check and one for the obo check.
Duplicate symbol check can be added by modifying the duplicate_label query and adding to qc profile as detailed in http://robot.obolibrary.org/report 'Profiles' section

To have different severity (ERROR/WARN) for duplicate labels in FBbt v FBbt+imports, I think we would need two qc profiles, one for the owl check and one for the obo check.

I don't know off hand whether import status will make a difference, but give it a try.  The other way is just to write a custom SPARQL check with a FILTER clause that matches against fbbt purls.  See example here: https://api.triplydb.com/s/t1tdAoI2P

It seems to make a difference - obo_qc_fbbt.owl.txt has several duplicate_label warnings:

WARN	duplicate_label	FBbt:00005114	rdfs:label	synapse
WARN	duplicate_label	GO:0045202	rdfs:label	synapse
WARN	duplicate_label	CARO:0000007	rdfs:label	immaterial anatomical entity
WARN	duplicate_label	FBbt:00007015	rdfs:label	immaterial anatomical entity
WARN	duplicate_label	CARO:0000014	rdfs:label	cell part@en
WARN	duplicate_label	GO:0044464	rdfs:label	cell part@en
WARN	duplicate_label	FBbt:00007002	rdfs:label	cell
WARN	duplicate_label	GO:0005623	rdfs:label	cell
WARN	duplicate_label	FBbt:00005109	rdfs:label	axon
WARN	duplicate_label	GO:0030424	rdfs:label	axon

There are none in obo_qc_fbbt.obo.txt


Detailed project documentation needed.

Is it possible to add a detailed documentation, that reduces the time needed to get immersed in a project:

General description of project directories and their contents.
Readme to every directory, that describes it's content in more detailed way
General description of runtime: entrypoint, on frame update actions and calculations
Description of network communications, description of some key points

I can pay for this documentation. If is it possible contact me by email<EMAIL_ADDRESS>I want to add some counter strike like economics, but it looks like it will take moths from me just to get into the source.
Thanks.

This reads like an ai generated post but more documentation is going to be added next update

This reads like an ai generated post but more documentation is going to be added next update

It is not ai generated :) It probably looks weird, because English is not my main language.
Do you have any dev chats in discord or anywhere else?

there is a discord server for fusion.  Not sure where the link is but I think it's linked in this github


Enable click-outside-to-close with keyboard shortcuts modal

The modal was defined to be static and there was no button to close the modal. Therefore the only way to close it was by Esc-key.
With this PR, clicking outside of the modal closes the modal.
If this is not the desired way of closing the modal, I can implement something else that would make the UX better. For example a big X in the corner.

Hi @elguitar this is a nice PR and a good idea for a UI improvement.  In addition to the click outside modal, can you also implement an X in the corner to close?


FilesystemRemote: Added Invoke-Robocopy and Start-ConsoleProcess to FunctionsToInject

Issue #70
Invoke-Robocopy and Start-ConsoleProcess were not injected into FilesystemRemote, which caused it to throw errors.

Alrighty, good to merge, thanks for the help with this!


All custom metric emitted on stdout are converted into metric together for external probe

Describe the bug
From our prober code, we continuously emit metrics at every 5 seconds on stdout but external prober converts metric from stdout all together and emit them, which causes overwriting of metrics.
The logs of docker container when no stackdriver surfacer is configured:
cloudprober<PHONE_NUMBER>274082274<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=8210.000
cloudprober<PHONE_NUMBER>274082275<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9229.000
cloudprober<PHONE_NUMBER>274082276<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9257.000
cloudprober<PHONE_NUMBER>274082277<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9105.000
cloudprober<PHONE_NUMBER>274082278<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9132.000
cloudprober<PHONE_NUMBER>274082279<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9372.000
cloudprober<PHONE_NUMBER>274082280<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9400.000
cloudprober<PHONE_NUMBER>274082281<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9530.000
cloudprober<PHONE_NUMBER>274082282<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9558.000
cloudprober<PHONE_NUMBER>274082283<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9412.000
cloudprober<PHONE_NUMBER>274082284<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9441.000
cloudprober<PHONE_NUMBER>274082285<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9496.000
cloudprober<PHONE_NUMBER>274082286<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9523.000
cloudprober<PHONE_NUMBER>274082287<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9252.000
cloudprober<PHONE_NUMBER>274082288<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9278.000
cloudprober<PHONE_NUMBER>274082289<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=9342.000
cloudprober<PHONE_NUMBER>274082290<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=9370.000
cloudprober<PHONE_NUMBER>274082291<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=8924.000
cloudprober<PHONE_NUMBER>274082292<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=8947.000
cloudprober<PHONE_NUMBER>274082293<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst= queue_size=6063.000
cloudprober<PHONE_NUMBER>274082294<PHONE_NUMBER> labels=ptype=external,probe=TEST-STAGE_READ-7-07,src_zone=us-central1-a,bucket_region=us-central1,workload=TEST-STAGE_READ-7,dst=,op=READ,status=SUCCESS request_count=6063.000

Here we can see that in every 5 seconds we emit the metric, but in 60 seconds code executed completely and the final number of metric sent to stackdriver will be 2.

Is there any way by which we can emit metrics at every 10seconds? @manugarg
Cloudprober Version
latest version would work.
To Reproduce
Run any code which will be running for let's say 60 seconds and keep emitting a metric ("request_count 1") in 10 seconds. configure stackdriver surfacer and at the end only 1 metric will be sent to stackdriver.
Additional Context
We will be running multi threaded prober for more than 15 mins, we are aggregating metric of all threads inside our code for every 10 seconds and then emit, but if we aggregate over 15 mins all together then it would work but the metric will be very sparse and it will defeat the purpose of our real time monitoring. Is there any workaround? Can we continuosly read data from stdout and emit them?
Also if we look at cloudprober default metrics, it is emitted every 10 seconds. Can we setup same for stdout metrics?

@v-pratap If IIUIC, your probe interval is 60s, but your external prober binary keeps emitting metrics throughout. Is that correct? Please confirm.
Cloudprober doesn't convert metrics in a streaming fashion. It runs the probe, waits for probe to finish, and then converts stdout to metrics.

Hi @manugarg,
Yes, in the current example interval is 60 seconds but it can also be 600 seconds, and external prober binary keeps emitting metric at every 10 seconds.
Is there a way we can make streaming of custom metrics?

@v-pratap Unfortunately cloudprober does not support it as of now. You can file an enhancement request. It will not be straightforward to implement something like this, so it will be hard to commit.
One option is to use the SERVER mode and manage thread output in the external prober code. Cloudprober will run probe every 10s, i.e. it will send the probe request 10s, in your external prober code you can collect the data from threads in a buffer and when cloudprober request comes, respond with the data in buffer.

No, there will be just one probe -- external probe running in "SERVER" mode.
https://cloudprober.org/docs/how-to/external-probe/#server-mode
Example code:
https://github.com/cloudprober/cloudprober/blob/master/examples/external/redis_probe.go
Config:
https://github.com/cloudprober/cloudprober/blob/master/examples/external/cloudprober_server.cfg
In SERVER mode, external probe process keeps running (it is started by Cloudprober if it dies), and Cloudprober periodically sends ProbeRequest to it. Please take a look at the example code to see how it works.
My suggestion to you was to configure probe interval as 10s and let your probe code handling long running threads. Whenever probe request comes from Cloudprober, just send data so far in payload.

@manugarg IIUC, I should remove the continuous run from my personal code which is executed by command in cloudprober. Instead of that I should configure a SERVER mode external prober, and put my continuous running code into serverutils.Serve block:
serverutils.Serve(func(request *epb.ProbeRequest, reply *epb.ProbeReply) {
			payload, err := **MyContinousRunnningCode()**
			reply.Payload = proto.String(payload)
			if err != nil {
				reply.ErrorMessage = proto.String(err.Error())
			}
		})

And I should put the interval as 10 seconds and code should execute within 10 seconds.
I think we cannot change our existing configuration. We have our code in C++ and it has little bit different architecture. Our code starts executing and creates all the required prerequisites and then initiate multiple threads which runs continuously the same given workload(Write,Read,Delete) for 60 seconds and after every operation we log our metric result in a shared queue (from all the threads) and there will be another thread which will be reading the metrics from the shared queue and aggregating and emitting them in every 10 seconds.

Thanks @manugarg for this.
Please let me know if I can be a help in creating stream of stdout.

I have done a basic POC, code is very rough, I was just checking is it even working or not, and I think this is working.
In external.go I have done the following changes:

In runcmd_linux.go:

and it started sending metrics in every 10 seconds:

@v-pratap I can see how it will work, but this probe type is used by so many people that I don't want to change it without more thought and currently I am a bit tied up. Let's discuss further in the feature request.


Thumbs up animations

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
macOS 14.1.2 (Apple M1 Pro)
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
Hand Landmark and Gesture Recognition
Programming Language and version (e.g. C++, Python, Java)
Python
Describe the actual behavior
When trying to classify a thumbs up as a letter A (in Guatemalas Sign Language) the thumbs up animation from the demo comes up. When showing the 2 thumbs up, a firework animation comes up. When showing the peace sign (letter V in Guatemalas sign language) the victory animation comes up
Describe the expected behaviour
I wish there was no animation shown so I can code my project correctly. How can I modify it so it won't show?
Standalone code/steps you may have used to try to get what you need
import pickle

import cv2
import mediapipe as mp
import numpy as np

model_dict = pickle.load(open('./model.p', 'rb'))
model = model_dict['model']

cap = cv2.VideoCapture(1)

mp_hands = mp.solutions.hands
mp_drawing = mp.solutions.drawing_utils
mp_drawing_styles = mp.solutions.drawing_styles

labels_dict = {0: 'A', 1: 'B', 2: 'C'}

while True:

    ret, frame = cap.read()

    H, W, _ = frame.shape

    frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)

    with mp_hands.Hands(static_image_mode=True, min_detection_confidence=0.5) as hands:
        results = hands.process(frame_rgb)

        if results.multi_hand_landmarks:
            for hand_landmarks in results.multi_hand_landmarks:
                mp_drawing.draw_landmarks(
                    frame,
                    hand_landmarks,
                    mp_hands.HAND_CONNECTIONS,
                    mp_drawing_styles.get_default_hand_landmarks_style(),
                    mp_drawing_styles.get_default_hand_connections_style()
                )

                data_aux = []
                for landmark in hand_landmarks.landmark:
                    x = landmark.x
                    y = landmark.y
                    data_aux.append(x)
                    data_aux.append(y)

                prediction = model.predict([np.asarray(data_aux)])
                predicted_character = labels_dict[int(prediction[0])]

                x1 = int(min(np.asarray(data_aux)[::2]) * W)
                y1 = int(min(np.asarray(data_aux)[1::2]) * H)
                x2 = int(max(np.asarray(data_aux)[::2]) * W)
                y2 = int(max(np.asarray(data_aux)[1::2]) * H)

                cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 0, 0), 2)
                cv2.putText(frame, predicted_character, (x1, y1), cv2.FONT_HERSHEY_SIMPLEX, 1.3,
                            (0, 0, 0), 2, cv2.LINE_AA)

    cv2.imshow('Frame', frame)

    if cv2.waitKey(25) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()

Other info / Complete Logs
The animation shows approximately 5 seconds of the hand being on frame.

Hi @achleey,
After reviewing the code snippet you provided, it appears that you are using an legacy version of MediaPipe Hand Solution. We have recently launched enhanced MediaPipe Tasks APIs, which provide increased stability and functionality compared to the legacy version.
We strongly advise migrating to these updated APIs for Hand landmarks, as we no longer support legacy solutions. You can find the documentation for the Hand Landmarker here and implementation guide for Python here.
Unfortunately, aside from this, we won't be able to assist you much further.
Thank you!!

If you're on macos you need to disable reactions in video settings unrelated to mediapipe.

@konecnyna thanks so much! That helped me resolve the issue! I can't believe that was the problem


URI supplied for CDXJ TimeMap context is a 404

https://oduwsdl.github.io/contexts/memento at the top of any MemGator-supplied CDXJ TimeMap.

@ibnesayeed What do you anticipate residing at this URI that adorn the top of MemGator-generated CDXJ TimeMaps?

It is supposed to describe the keywords used like the terms defined in Linked-Data world or JSON-LD.

Something like https://www.iana.org/assignments/link-relations/link-relations.xhtml , @ibnesayeed ?

Something like https://mementoweb.org/ns

https://oduwsdl.github.io/contexts/memento now exists @ibnesayeed but could stand to be improved.


feat: Added transformation rules for part and number

Added transformation rules for part and number, because the slices were being returned and causing issues in stepmod-utils as mentioned here -> https://github.com/glossarist/glossarist-ruby/issues/70

Thank you @HassanAkbar !


Bug with button mapping on emulator

Preparation

[X] I tested the latest release
[X] I looked at other issues (even the closed ones)
[X] I read the Troubleshooting Guide

FGO server
NA
FGA build number
1771
Describe the bug
FGA will select "Skill Display" instead of "Update List"
Video
https://github.com/Fate-Grand-Automata/FGA/assets/164827167/521f45a9-c9ae-4a8a-9e3a-2a1e01107ab2
Device model
LDPlayer Emulator
Android version
9
Screen size
1280x720
RAM
No response

How long do updates usually take?

Installing through apk completely solved the issue. Thank you very much


Add support for source aliases (#2133)

resolves #2133
Description
Before parsing a source, translate any adapter-specific aliases in the definition keys.
Checklist

[X] I have signed the CLA
[X] I have run this code in development and it appears to resolve the stated issue
[X] This PR includes tests, or tests are not required/relevant for this PR
[X] I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

I'm going to merge this even though azure looks like it hasn't run - it has, but if you fix merge conflicts in the github UI it doesn't run.


update nemo inference and include RTFx

Updates run_eval.py of nemo_asr to compute RTFx and WER with sorted data.
normalizer/eval_utils.py is based on https://github.com/huggingface/open_asr_leaderboard/pull/20

@nithinraok, please, update NeMo requirements to<EMAIL_ADDRESS>


Timing constraints in chisel

can i specify timing constraints for particular pins in chisel?

Hello,
Thanks for your interest in Chisel! While the Chisel project primarily focuses on design at the RTL level, there is a complementary project, Hammer, that provides physical design abstractions to specify things like pin timing and placement constraints. You can find a reference for its pin APIs below:
https://github.com/ucb-bar/hammer/blob/master/src/hammer-vlsi/defaults.yml

Thank you. this helps a lot. Just so i understand this right, i can use this in conjunction with chisel?
would i be able to implement this on something like a rocket chip?

If you want to build things with rocketchip, chisel, and hammer, you should check out https://github.com/ucb-bar/chipyard

If you want to build things with rocketchip, chisel, and hammer, you should check out https://github.com/ucb-bar/chipyard

Thanks a lot!

Hello, I am looking for a hardware languge that can write timing constaints along with the design. Would Chisel like to implement this ?  It would be a great feature for new hardware languge.


Error in README and in description at marketplace.visualstudio.com

Hello.
You have error in your README.md file and in description at marketplace.visualstudio.com, last point of Quick start has this listing:
let composeEnhancers = composeWithDevTools({
    realtime: true,
    name: 'Your Instance Name',
    host: '<IP_ADDRESS>',
    port: 1024, // the port your remotedev server is running at
});

but RemoteReduxDevToolsOptions which is pushed into composeWithDevTools hasn't field host, it has field hostname.

Thanks! 😄


Update for recent Zig 0.12, use .NET 6.0

This commit updates the repo to build with more recent versions of Zig 0.12, namely updating for semantic changes, e.g. enforcing const when values are not mutated, build API changes, generalization of readInt and writeInt, etc. This also updates the zig-args and parser-toolkit dependencies to accommodate.
Additionally, this updates svg2tvgt to build with .NET 6.0 versus 5.0, which is EOL and has been removed out of nixpkgs. This built without any other changes necessary.

@MasterQ32 just FYI I don't think the changes to build.zig are backwards compatible as the build is failing here when I try it with Zig 0.11:
build.zig:94:34: error: type '?[]const u8' does not support struct initialization syntax
    generate_ground_truth.cwd = .{ .cwd_relative = b.cache_root.path.? };
                                ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Happy to hold off on this until there's a release if that's what you want to do and just maintain it on this end. I'm not too sure if there's a backwards compatible way to do these specific parts of the build step too.
Cheers!

Can you split the PR into two parts?
One for stuff that works with 0.11, and one for 0.12-xxx stuff, you can target the zig-master branch for this PR then

@MasterQ32 changed the base on this one to zig-master, will just put in a PR to update the .NET on the converter so that it builds without issue. I think pretty much everything here depends on Zig master now, even with the build.zig file reverted there are a ton of build issues surrounding readInt/writeInt, so I'm guessing that changed recently too.

Updated - added the missed line back in the README mentioned in https://github.com/TinyVG/sdk/pull/19#discussion_r1435539924 and switched the Zig version in the workflow back to master (the default). Also rebased to address conflicts.


Extract build version from file or git tag.

CMake change to automate version information of FreeRDP:

If a file .source_tag exists read it
If there exists a matching git tag use it
Fall back to hard coded development version

The version number must be of format ^.?([0-9]+)\\.([0-9]+)\\.([0-9]+)-?(.*), so 1.2.3, 1.2.3-beta, v1.2.3, r1.2.3-beta

Looks perfectly fine to me, but I won't merge it before @bmiklautz 's review

@hardening Good idea. May refactor to unify both, version and git revision to be read from a single <key>=<value> file.

@bmiklautz Modified to only fill from git tag if explicitly requested.

@bmiklautz Any objections or ready for merge?

@akallabeth no objection. Just wanted to test it out before merging ;)


CAD-517 for text scribes output JSON value if no message

description

[ ] scribes with 'ScText' format can output structured value as message; output LogValue as JSON value; structured log output resets "msg" field to avoid duplication

checklist

[ ] compiles (cabal new-clean; cabal new-build)
[ ] tests run successfully (cabal new-test)
[ ] documentation added and created (cd docs; nix-shell --run make)
[ ] link to an issue
[ ] link to an epic
[ ] add estimate points
[ ] add milestone (the same as the linked issue)

bors r+


[v3] Pera needs global shim

Overview
v3 with pera fails to connect with message
ReferenceError: global is not defined

Resolution
Add shim to index.html but it may be better to update the pera library
<head>
  <script>
        // Suggest that Pera to use globalThis instead of global | window
        globalThis.global = globalThis
  </script>
</head>

Details

@txnlab/use-wallet-react 3.0.0-rc.2
Vite React-TS project

Yeah this is an issue I get a lot in the use-wallet channel on NFD's Discord, and there's an open issue for it on Pera Connect: https://github.com/perawallet/connect/issues/101
The Vite example apps for v3 all include the index.html shim: https://github.com/TxnLab/use-wallet/blob/v3/examples/react-ts/index.html#L12
It would be nice to have this resolved in Pera Connect v2, if possible. I don't think it qualifies as a use-wallet issue per se, other than drawing more attention to it in the documentation.

Fixed! Going to issue a PR to pera, could be useful while we migrate to v2

https://github.com/awesome-algorand/walletconnect-socket-transport

npm install awesome-algorand/walletconnect-socket-transport --save


Editor shows error for multiline matcher

For multiline matcher, the editor provided by the plugin shows error on && \ : <expr> expected, got '\'.
The matcher works perfectly fine. The only issue is the error in the editor.
Sample model.conf:
[request_definition]
r = foo, bar, xyz

[policy_definition]
p = foo, bar, xyz, eft

[policy_effect]
e = some(where (p.eft == allow)) && !some(where (p.eft == deny))

[matchers]
m = r.foo == p.foo && \
    r.bar == p.bar && \
    r.xyz == p.xyz

@will7200

Looking into this

Made a fix in 2de374df66f0fb4469bf9cfaa1673511b1db0885 will release to jetbrains for review shortly


Nuget package metadata update

use HTTPS urls
remove "dependencies" node because it is generated automatically when generating the .nupkg from a csproj file

:+1:


Creating and Running commands with fastapi (manager commands)

Is it possible to create a command and running it using FastAPI ?
i..e. Is FastAPI allow execute manager commands like what we have in flask ?
Referece: https://flask-script.readthedocs.io/en/latest/#creating-and-running-commands

Hi, @ankithherle !
As I know, FastAPI has not manager, but it has startupt and shutdown events.

@ankithherle
Hi! No, FastAPI does not provide such functionality out of the box. Just like it does not have built-in support for various ORM or other tools that can bind you to something(except for pydantic for validation).
So that you can choose something that you have used before or would like to try. For example, you can take a look at typer, a click-based library for CLI, from the creator of FastAPI. Well, or any other tool, for example, click itself, cleo, or many other libraries.

Thanks for the help here @Slyfoxy and @nsidnev ! :cake: :bow:
@ankithherle does that solve your question? May we close this issue?

Yes, my issue is solved, Thanks.

How to register typer cli commands in FastAPI app
@tiangolo


Ruby 3.1 support

Fixes #121.

not sure why travis-ci failed or still things its waiting for response

Thanks.

its pending next release.  I want to get travis working again first


No return value or exceptions list

The documentation should show the return value of all commands, even if it returns nothing. Similarly, if there are exceptions that the command can throw, that should be included in the documentation as well.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 396d4612-0240-2ddb-442c-43910d659d41
Version Independent ID: 4700a39a-5694-1d2d-e166-354704cd19f3
Content: Install-ADDSDomainController (addsdeployment)
Content Source: docset/windows/addsdeployment/install-addsdomaincontroller.md
Product: w10
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

@jason-neumann
Upon your feedback, We have updated the content with relevant changes accordingly. Thanks.


How to protect clientSecret?

How do you make sure that the clientSecret is protected?
I don't think it's a good idea to have it included in the mobile app

@BenBach I had the same concern, but currently there is no way on iOS as I am using https://github.com/tonyli508/LinkedinSwift that requires client secret. Probably, the best bet is to fetch client secret from your server for authed users.

@joonhocho Fetch the secret to authed users?
But if i want to use the linkedin login.. the user is not authed yet.. so how can i give him the secret?


DCOS-41121: version cell tooltip alignment

Overflowing text was causing the tooltip to misalign
Closes DCOS-41121
Testing
Add filler text in the Tooltip returned by the renderVersion() method to cause an ellipsis
Go to Services tab
Hover the version cell
Trade-offs
No
Dependencies
No
Screenshots
Before:

After:

:tada: This PR is included in version 2.20.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Error: There was an error sending your trade offer.  Please try again later. (15)

Hello, everyone. I have some problem with bot, when i make Offer with user which no friend to bot,then i got this error: There was an error sending your trade offer.  Please try again later. (15). If i make offer with user, which friend with bot, then all right. Sorry for my English)

#121


Issue with k8s.io/docs/tasks/tools/install-kubectl/

This is a Bug Report

The command to link completions to the alias should be compinit and not complete

Problem:
The command
echo 'complete -F __start_kubectl k' >>~/.zshrc
is not correct for macOS (at least)
Proposed Solution:
It should be
echo 'compinit -F __start_kubectl k' >>~/.zshrc
Page to Update:
https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion

Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.5", GitCommit:"20c265fef0741dd71a66480e35bd69f18351daea", GitTreeState:"clean", BuildDate:"2019-10-15T19:16:51Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.7", GitCommit:"c83d931fb9bece427bc63a02349755e0f8696d3e", GitTreeState:"clean", BuildDate:"2020-01-31T20:09:49Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

Thanks for reporting this. (I haven't validated the report as yet).
/sig cli
/language en

No. The current instructions are correct.
/close


ApplyAColormapToAnImageTestPython failing test

This issue is derived from #131 to keep track of indivial examples failing tests.
The following tests fail with ITK's latest release:

ApplyAColormapToAnImageTestPython

ApplyAColormapToAnImageTestBaselineComparePython

The issue arrises on line 41 of src/Filtering/Colormap/ApplyAColormapToAnImage when the rbfilter object attempts to initialize its enumeration value. Due to the recent transition from 'c' style enums to enum class objects in source ITK, many enums were changed and moved.
The enumeration: RGBColormapFilterEnumType  was created and moved outside its class: ScalarToRGBColormapImageFilter in source ITK. This enumeration was not wrapped and thus cannot be accessed in ITKPythonPackage 5.1b1. More information can be viewed in HEAD issue #131.
When these enumerations are properly wrapped and implemented into the ITKPythonPackage, the failing test should resolve. Subsequently, the BaselineComparison test should pass as the error should not affect the resulting image.

Fixed in #156. Closing now.


Keyboard shortcut events stay bound when navigating to different view.

When you change views, within the same Backbone Router, the events stay bound to the keyboard shortcut. I'm listing this as a 'bug' because I find this library relatively unusable without the ability to assign events on a view-by-view basis.

In HTML5, the router has to be implemented using History API Push State
Backbone.JS Training in Chennai | Backbone.js Training

In HTML5, the router has to be implemented using History API Push State
Backbone.JS Training in Chennai | Backbone.js Training


Discrepancy between the different architectures

The resnet architecture has an activation layer in the end, however the shapedresnet one does not.

This has now been fixed in #249


Move functions from index to individual files and isolate tests.

Pull Request Test Coverage Report for Build 495

37 of 37 (100.0%) changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 492:
0.0%

Covered Lines:
107

Relevant Lines:
107

💛  - Coveralls


Updates the DOM APIs

Re: https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1143
Most of the diff comes from more whitespace aware commenting.

@types/web
New interfaces

ElementInternals

Removed interfaces

PaymentAddress - Classed as obsolete

Modified

CSSStyleDeclaration

Added: accentColor

Document

Removed: elementFromPoint, elementsFromPoint - these live on DocumentOrShadowRoot instead

HTMLElement

Added: attachInternals

HTMLSlotElement

Added: assign

Navigator

Added: canShare
Removed: pointerEnabled - removed from spec in 2014

ReadableStream

Removed: forEach - Doesn't seem to be in the Readable Stream API

Text

Removed: assignedSlot - This might be something we backtrack during the beta, will be easy to re-add if we want. https://github.com/microsoft/TypeScript-DOM-lib-generator/commit/d42f963a7fc80796e7922eaa1cd10df939627cca#r57102539

Non-value types

MediaTrackConstraintSet

Added: autoGainControl, noiseSuppression

MediaTrackSettings

Added: autoGainControl, noiseSuppression

MediaTrackSupportedConstraints

Added: autoGainControl, noiseSuppression

DocumentOrShadowRoot

Added: elementFromPoint, elementsFromPoint

index.iterable.d.ts
No changes

@typescript-bot test this
@typescript-bot run dt
@typescript-bot user test this

@typescript-bot run dt

@typescript-bot run dt

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56013 has covered all the changes to DT

ReadableStream

Removed: forEach - Doesn't seem to be in the Readable Stream API

It looks like this faulty forEach() method still appears in lib.dom.d.ts of TypeScript 4.5 beta? It is correctly removed over at TypeScript-DOM-lib-generator, so I'm not sure how it didn't make it into this PR. 😕

Yeah, this feels off to me

Alright, the deploy to TypeScript process is now completely automated which mostly drops human error from the process. https://github.com/microsoft/TypeScript/pull/46222 contains the up-to-date DOM changes.


[ALLUXIO-2079] Set Constructor of alluxio.underfs.UnderFileSystemRegistry  to be private

https://alluxio.atlassian.net/browse/ALLUXIO-2079
The UnderFileSystemRegistry object created by create method. The Constructor should be private.

Can one of the admins verify this patch?

jenkins, ok to test
alluxio-bot, check this please

Done.

LGTM


Design exploration for azdevify

Follows #253

@puicchan Will you have anything for Austin to work on here during November or should we move this to the new year?

Going to close this for now, until we have concrete next steps.


Remove async-std dependency, require tokio without default features

This shrinks dependencies quite a bit, thanks for the great crate!

FYI this is available as 0.7.0


My user isn't allowed to upload to project

Hello,I want upload a new package named alice and the project name is used by https://pypi.org/project/alice ,but that project is empty and last active year 2010, I don't want change my project name, so how can I use the project name in pypi? Thanks!

Please open a PEP 541 request here.


Unable to backup ops-manager with cfops 3.0.8 on Azure

I've tried to backup ops-manager with cfops version 3.0.8 and I have this error below. I've also tried to backup elastic-runtime with the same command and it works correctly.
There are no ssh connection issue with user<EMAIL_ADDRESS>with password.

cfops 3.0.8
OpsManager 1.9.6 on Azure

$ LOG_LEVEL=debug cfops backup --opsmanagerhost opsman.mydomain.com -d backup  --adminuser admin --adminpass  'adminpass' --opsmanageruser ubuntu --opsmanagerpass 'pass'  --tile ops-manager
2017/04/03 18:16:37 D0403 18:16:37.459835 58705 init.go:38] not loading plugins:  open ./plugins: no such file or directory []
2017/04/03 18:16:37 D0403 18:16:37.46009 58705 createCliCommand.go:85] checking registry for 'ops-manager' tile
2017/04/03 18:16:37 D0403 18:16:37.460113 58705 createCliCommand.go:88] found tile in registry
2017/04/03 18:16:37 D0403 18:16:37.460126 58705 createCliCommand.go:91] we have all required flags and a proper builder
2017/04/03 18:16:37 D0403 18:16:37.460187 58705 remote_execute.go:26] using password for authn
2017/04/03 18:16:37 D0403 18:16:37.460206 58705 opsmanager.go:90] Exporting url 'https://opsman.mydomain.com/api/installation_settings'
2017/04/03 18:16:37 D0403 18:16:37.460238 58705 opsmanager.go:144] attempting to auth against https://opsman.mydomain.com/api/installation_settings
2017/04/03 18:16:37 D0403 18:16:37.46029 58705 opsmanager.go:196] aquiring your token from:  https://opsman.mydomain.com/api/installation_settings https://opsman.mydomain.com/api/installation_settings
2017/04/03 18:16:37 D0403 18:16:37.7485 58705 opsmanager.go:202] token acquired
2017/04/03 18:16:38 D0403 18:16:38.839144 58705 opsmanager_builder.go:30] we found a iaas info block
2017/04/03 18:16:38 D0403 18:16:38.839197 58705 opsmanager.go:69] Setting SSHKey
2017/04/03 18:16:38 D0403 18:16:38.839207 58705 remote_execute.go:32] using sslkey for authn
2017/04/03 18:16:38 D0403 18:16:38.839572 58705 createCliCommand.go:74] Running backup for tile: struct { tileregistry.Tile; tileregistry.Closer }{Tile:(*opsmanager.OpsManager)(0xc42014a180), Closer:(*tileregistry.DoNothingCloser)(0xb3df10)}
2017/04/03 18:16:38 E0403 18:16:38.859087 58705 remote_execute.go:81] ssh connection issue: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
2017/04/03 18:16:38 E0403 18:16:38.859121 58705 remote_execute.go:124] un-initialized client executor
2017/04/03 18:16:38 E0403 18:16:38.859144 58705 createCliCommand.go:52] there was an error: un-initialized client executor running backup on ops-manager tile:tile
NAME:
   cfops backup - creates a backup archive of the target tile

USAGE:
   cfops backup [command options] [arguments...]

DESCRIPTION:
   backup --opsmanagerhost <host> --adminuser <usr> --adminpass <pass> --opsmanageruser <opsuser> --opsmanagerpass <opspass> --omr <opsmanager-encryption-password> -d <dir> --tile elastic-runtime

OPTIONS:
   --admintoken value, --dt value             Ops Mgr OAuth admin token (not required if adminuser and adminpass are provided) [$CFOPS_ADMIN_TOKEN]
   --clientsecret value, --cis value          client secret if using a UAA client instead of a UAA user [$CFOPS_CLIENT_SECRET]
   --clientid value, --cid value              client ID if using a UAA client instead of a UAA user [$CFOPS_CLIENT_ID]
   --destination value, -d value              path of the Cloud Foundry archive [$CFOPS_DEST_PATH]
   --encryptionkey value, -k value            encryption key to encrypt/decrypt your archive (key lengths supported are 16, 24, 32 for AES-128, AES-192, or AES-256) [$CFOPS_ENCRYPTION_KEY]
   --pluginargs value, -p value               Arguments for plugin to execute [$CFOPS_PLUGIN_ARGS]
   --nfs value                                options are 'lite' (skips optional parts of blobstore), 'full' (backs up whole blobstore) or 'bp' (only backs up buildpacks). This will only apply to elastic-runtime. Defaults to 'full' (default: "full") [$NFS_BACKUP]
   --opsmanagerhost value, --omh value        hostname for Ops Manager [$CFOPS_HOST]
   --adminpass value, --dp value              password for Ops Mgr admin (Ops Manager WebConsole Credentials) [$CFOPS_ADMIN_PASS]
   --opsmanageruser value, --omu value        username for Ops Manager VM Access (used for ssh connections) [$CFOPS_OM_USER]
   --tile value, -t value                     a tile you would like to run the operation on [$CFOPS_TILE]
   --clear-bosh-manifest value                set this flag if you would like to clear the bosh-deployments.yml (this should only affect a restore of Ops-Manager) [$CFOPS_CLEAR_BOSH_MANIFEST]
   --adminuser value, --du value              username for Ops Mgr admin (Ops Manager WebConsole Credentials) [$CFOPS_ADMIN_USER]
   --opsmanagerpass value, --omp value        password for Ops Manager VM Access (used for ssh connections) [$CFOPS_OM_PASS]
   --opsmanagerpassphrase value, --omr value  passphrase is used by Ops Manager 1.7 and above to decrypt the installation files during restore [$CFOPS_OM_PASSPHRASE]

Hi @ntdt,
Unfortunately cfops doesn't support Azure deployments at this time.
Henry
Pivotal Backup & Restore team


feat: optional black text on print #11546

Print readable text on background.

Description

When background is printed, text should keep it's original color to stay readable.
Only set color to black if background is printed transparent.

Closes #11546

Types of changes

[ ] Documentation
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (anything that would change an existing functionality)
[ ] Maintenance (refactor, code cleaning, development tools...)

Checklist

[x] I have read and follow the CONTRIBUTING.md document.
[x] The pull request title and template are correctly filled.
[x] The pull request targets the right branch (develop or develop-v...).
[x] My commits are correctly titled and contain all relevant information.
[ ] I have updated the documentation accordingly to my changes (if relevant).
[ ] I have added tests to cover my changes (if relevant).

@mameier Will you have the time to take care of this (and squash commits) or should I open a new PR ?

Closing in favor of https://github.com/zurb/foundation-sites/pull/11565.

your fix #11565 helps to fix my problem, thanks,
I agree with replacing my pull request with the one of ncoden.
Thanks.


fixes #260

This is the simplest form of the fix. It will however break any code that is trying to catch ConfictError still. I'm not sure if that is concern, and if it is what the best approach for backward compat might be.

@dpetzel thanks! This is essentially a bugfix, so not terribly worried about backward compatibility, but we'll mention the rename in the release notes. /cc @tlunter


AppSourceCop Rule AS0004 prohibits field length increase

Describe the bug
Increasing the length of Code and Text table fields throws error AS0004 claiming it is a type change.
To Reproduce
Steps and to reproduce the behavior:

Have an extension with a table containing Code and Text fields of defined lenghts.
Put a compiled version of the extension for the version AppsourceCop check.
Increase the lengths of the fields and save the file.

AL Code to reproduce the issue
Expected behavior
An increase in the field length should be accepted, as it was in previous BC versions.
5. Versions:

AL Language: 5.0.280447

Business Central: Version: W1 16.0 (Platform 16.0.11233.11920 + Application 16.0.11240.11946)

Is it really a bug? Increasing a field length was allowed but according to last discussions on the subject this is a breaking change.
The reason is if you create a Code[10] and then expand to Code[20], other extension might want to copy your field to another table and pass it as an argument to a procedure. This change will break the extension.
I cannot say I am happy with that but it is consistent with the non-breaking change philosophy.

This issue has been fixed in our latest developer preview to allow increasing field length.


how to replicate the experimental results

Hello, I would like to ask how to replicate the experimental results (the evaluation results in the picture) from your paper? Thank you very much for your response.

Hi, please take a look at evaluation. This script tools/run_all_tasks.sh should reproduce all results. You should download and process the datasets following this. Since we already provided the processed metadata in data/preprocessed_datasets, you may only need to put the original datasets under data/datasets.


Check all model fields, not only local ones.

Check all model fields, not only local ones.

Hey @mitar , PR #16 resolves what you were needing ?

Huh, this is blast from the past. @kostko, are we using this anywhere now?

@mitar Not that I can see, so unfortunately we can't test this anymore.

I close this PR then, because:

Your PR is changing dirtyfields behaviour, which can be troublesome for users that were used to dirtyfields default checking,
We have added a check_relationship parameter to manage foreign keys.


Request groups page

Creates a new Group page (/group/:groupId) which shows details for all requests contained in it.
Also adds a breadcrumb item for requests, deploys, and tasks which are part of a group.
The metadata button displays a modal with copyable infoboxes. (button only is only shown if the group has metadata)

@tpetr @wolfd @Calvinp

LGTM


chore(package): update @kadira/storybook to version 2.19.0

https://greenkeeper.io/

This pull request is now managed with CodeReviewHub. Refresh.

:shipit:


added pyproject.toml from example file.

I don't know much about these files, but I have done my best to tailor this one to the sample data repo, leaving some placeholders in there in case we want to use them later.
If you get the time, a review and a merge would be great, otherwise no worries, I'll get back on it when I'm better.

Hi Corrinne, seems fine. Is this so we can set up a pip install for clean_air ?

Yes, the purpose of this is so that we can pip- or conda-install cap-sample-data and then use it in demo notebooks.  I could probably use the PYTHONPATH variable instead, but that doesn't seem like a sustainable or reuseable method.

I have to admit, I haven't tested it yet, and you may well be correct in the requirement of a setup.cfg.
I shall create one of those (setup.cfg), test it if I can and then push this again.  Thanks.

I have been having a bit of trouble figuring out how to construct a setup.cfg (there's a lot of available options, and I don't know the right answers to many of them), so I have emailed AVD to see if they can help me out with this.  Waiting on a response, with not a huge amount of hope as they seem very busy and understaffed at the moment, just like the rest of us.

@lucascatherine I noticed that Barnaby had already added a setup.cfg to clean_air, so I used that as a template and modified it for cap-sample-data.  Tested the pip install and it worked fine, so if you can approve this PR then we can merge it and have some working setup files in our sample data repo.

Looks all good to me.  I'll approve now.

Yayyy! Thanks Catherine.


Update metacity window buttons

Copied from unity folder.
Tested on Ubuntu 16.04 with gnome-flashback session

before/after

Looks good. Thanks!


Duplicated key 'IndentWidth' in .clang-format

There're 2 IndentWidth keys in line 77 and line 23 of .clang-format file

Thanks, I think one can be removed.


[Question] Would this work as an alternative approach to a sidecar manifest?

The current sidecar manifest's approach downloads versions of AVP, Helm, and Kustomize into an empty redhat image container, and runs there. This bugs me because it is two more versioned things to check and maintain in sync, which many won't, leading to the possibility of behavior bifurcation between the argocd-provided helm & kustomize binaries and the one in the AVP sidecar.
Would it work to instead just use the quay.io/argoproj/argocd:v2.4.X image in the selected version of the argocd manifest that's installed? This way there are only two versions to track, argocd & avp. It seems to me that any operators sophisticated enough to need/use alternate versions of helm or kustomize will also be able to provide for themselves in that case.
I will create a draft PR to illustrate the changes I'm suggesting.

I pushed a draft PR with what I think could work in #371

Fixed in #371


ParticleEmitter.startFollow target param should be of type Phaser.GameObjects.GameObject

https://github.com/photonstorm/phaser/blob/16f61b402b8aa50b09a869c85a840eed363e1052/src/gameobjects/particles/ParticleEmitter.js#L1050
this should be Phaser.GameObjects.GameObject
Discovered this while using typescript.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Thanks for opening this issue, and for submitting a PR to fix it. We have merged your PR into the master branch and attributed the work to you in the Change Log. If you need to tweak the code for whatever reason please submit a new PR.


Update NuGet Spec for System.IdentityModel.Tokens.Jwt

The Microsoft.Azure.Mobile.Server.Login NuGet package has a dependency on System.IdentityModel.Tokens.Jwt (>= <IP_ADDRESS>111437). Should that not have been System.IdentityModel.Tokens.Jwt (>= <IP_ADDRESS>111437 && <5.0.0)?

Any chance this could be updated to work with System.IdentityModel.Tokens.Jwt > 5.0? It is a pain to try to fight to keep System.IdentityModel.Tokens.Jwt lagging behind while other dependencies continue to move forward.

No, it can't.  There is a PR out to correct the NuGet package.

Just wanted to note I ran into this issue when trying to use authentication in a local debug build in the currently available code. Downgrading from System.IdentityModel.Tokens.Jwt v5 to the latest v4 fixed it. Unfortunately the exception was hidden as an authentication failure, didn't appear in debug output.


IPFS Desktop Files 404

Describe the bug
Files reports No files here yet. Command line shows files, UI shows total files size.
To Reproduce
Steps to reproduce the behavior:

Go to Files UI
See error says '404'

Expected behavior
List of all the files stored.
Screenshots
IPFS 404 error w/ command line proof

Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome
Version: ?

Hello @CountZer0! Could you try checking if there's any errors in the developer's console? Should be accessible via CTRL-SHIFT-I or CTRL-ALT-I.

Indeed there are:
IPFS Web UI - v2.13.0 - https://github.com/ipfs-shipyard/ipfs-webui/commit/44a46ba
webui://-/locales/en-US/app.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
webui://-/locales/en-US/welcome.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
webui://-/locales/en-US/status.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
webui://-/locales/en-US/files.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
webui://-/locales/en-US/explore.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
webui://-/locales/en-US/peers.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
webui://-/locales/en-US/settings.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
webui://-/locales/en-US/notify.json:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
5.46be50cc.chunk.js:2 react-i18next:: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.
r @ 5.46be50cc.chunk.js:2
DevTools failed to load source map: Could not parse content for webui://-/static/js/5.46be50cc.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/main.ab164c00.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/19.867549e7.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/1.a7a239b8.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/15.3d0e38aa.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/14.ceb748a3.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/18.8aeb256f.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/0.ab934e5a.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/13.da464701.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/js/9.5a744be9.chunk.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/css/9.d3b2790b.chunk.css.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/css/5.e3d43296.chunk.css.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for webui://-/static/css/main.c0cc2947.chunk.css.map: Unexpected end of JSON input

Ditto. Exactly the same problem here: https://i.imgur.com/DZg2gJs.png
This happened immediately after I accidentally deleted a file before it had completed the IPFS import operation. The web UI is totally broken at this point.

It doesn't work in the browser, either. Restart doesn't work.

This is caused by putting non-UnixFS data into MFS:
ipfs files cp /ipfs/QmbRR8bEqhFAJwkFycEzHMupi54TrWC1Zo6GxUzFTqXTjF /mathjax-3.2.0.tar

Note that this only breaks the view of the particular directory it's in — if you, for instance, visit #/files/ipfs-companion-imports, that should still work even if your root view is broken

Workaround/Fix
#!/bin/bash
(IFS='
'; for f in $(ipfs files ls /); do
  ipfs files stat --hash "/$f" || (
    printf 'BROKEN PATH FOUND: %s\n' "/$f"
    printf "TO REMOVE IT, RUN:\n\t%s\n" "ipfs files cp /ipfs/QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH /$f && ipfs files rm /$f"
  )
done)

Test dir CID with 10k images: bafybeiggvykl7skb2ndlmacg2k5modvudocffxjesexlod2pfvg5yhwrqm
fast dir listing (skips size resolution: ipfs ls -s --size=false --resolve-type=false $CID


Call to undefined method Ds\Map::offsetSet()

Map does not have this method but php-ds says that it has this method

The same for other methods like getIterator, offsetGet. I think that affected methods are related with IteratorAggregate & ArrrayAccess methods.


Upgrade to Java 11 (but still compile to 8)

Not doing this... definitely best to stick with Java 8 until customers are forced to upgrade (assuming that ever happens)


It is capturing the mouse position and selecting the item at the mouse position

We would like to initialize the menu with the first item selected. To achieve this we are using the menuItemFocus prop:
menuItemFocus={{
    position: 'first',
}}

The issue happens when the mouse cursor is positioned in a place where it will trigger the onMouseEnter and will select the item that is at the cursor position making the first item not being selected by default.

I was playing around with a possible solution and I created this PR: https://github.com/szhsin/react-menu/pull/401.
I would appreciate reviews.

This is a very annoying issue. Would love to see this get fixed!

Fixed and released in v2.3.3.

Fixed and released in v2.3.3.

Thank you @szhsin


feat: added Geolocation API to get user's location.

Commits:

[x] Added a useEffect in App.js to do a geolocation call using navigator.geolocation.getCurrentPosition
[x] Once the user allows the share their location, the altitude and longitude is accessible
[x] Call a fetch with the coordinates to get all the info of the user's location

Closes #5

@sumana2001 I added yarn.lock to .gitignore to remove from commit.


Crash on VS 16.10.3

Version 5.0.61 is crashing and the activity log just has this
826  Begin package load [TsvnPackage] {F2E68D5A-C95E-4D53-BBC6-072FF3ED9C53}  VisualStudio 2021/07/02 22:16:50.890
827 ERROR SetSite failed for package [TsvnPackage]Source: 'Microsoft.VisualStudio.Validation' Description: Cannot find an instance of the EnvDTE80.DTE2 service.  {F2E68D5A-C95E-4D53-BBC6-072FF3ED9C53} 80131500 VisualStudio 2021/07/02 22:16:50.947
828 ERROR End package load [TsvnPackage] {F2E68D5A-C95E-4D53-BBC6-072FF3ED9C53} 80131500 VisualStudio 2021/07/02 22:16:50.947

I have attempted uninstalling and then re-installing.

Thanks for reporting! Will look into this.

Confirm: VS 16.11.0 Preview 2.0

Grab the new release 🚀

Yay !!


haproxy: 2.7.3 -> 2.7.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/haproxy/versions.
meta.description for haproxy is: Reliable, high performance TCP/HTTP load balancer
meta.homepage for haproxy is: https://haproxy.org
meta.changelog for haproxy is: https://www.haproxy.org/download/2.7/src/CHANGELOG
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.7.6 with grep in /nix/store/d3hxpqaqzqkxjsx403ffpsdvdhd29g66-haproxy-2.7.6
found 2.7.6 in filename of file in /nix/store/d3hxpqaqzqkxjsx403ffpsdvdhd29g66-haproxy-2.7.6

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
haproxy

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/d3hxpqaqzqkxjsx403ffpsdvdhd29g66-haproxy-2.7.6 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A haproxy https://github.com/r-ryantm/nixpkgs/archive/205db0055c53efc3a5a64fb7f1e87a3f84682fa6.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/d3hxpqaqzqkxjsx403ffpsdvdhd29g66-haproxy-2.7.6
ls -la /nix/store/d3hxpqaqzqkxjsx403ffpsdvdhd29g66-haproxy-2.7.6/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

haproxy

Maintainer pings

(nixpkgs-review happy, macos 10.15 & nixos x86_64. passthru.tests pass x86_64. pkgsCross.aarch64-multiplatform variant builds)


Volume slider on Media Player Tile

Hi,
is there a way to get a volume slider or just volume in general on the media player tile?

I have it. Sometimes. Sometimes only volume up and down. For the same device type (KODI). I believe, it's a matter of supported features reported by HA. And somewhere in the chain, it's buggy. For me it seems to be caused in HA already, as the same devices show differently in Lovelace as well...
Short answer, if your device supports setting a volume, the slider should show up automatically.

My slider does show up on HA:

On my tile it shows up like:

I am not sure what that slider is in the tile but it does NOT work but the slider works in HA entity..
                     position: [5.32, -1.02],
                     width: 2,
                     height: 1,
                     title: '      Living Room TV',
                     id: 'media_player.living_room_tv_kd_75x8500e',
                     type: TYPES.MEDIA_PLAYER,
                     hideSource: true,
                     hideMuteButton: false,
                     state: false,
                    //state<EMAIL_ADDRESS>                     subtitle<EMAIL_ADDRESS>                     bgSuffix<EMAIL_ADDRESS>                     hidden: function (item, entity) { return entity.state == 'off' }

:-\ That should be the volume slider...

:-\ That should be the volume slider...

yeah it should be but I can't drag it on my computer OR on my tablet(which is where I need it to work) so I am unsure what the go is

Ok. That seems to be too deep in for me. First things that come to my mind:

Tell us what device and browser you're using.
Try to comment out the stopPropagation lines (one by one) in index.html and tell us if things change (hopefully improve):

                        <input type="range" ng-model="_c.value"
                               ng-change="volumeChanged(item, entity, _c)"
                               ng-on-touchstart="$event.stopPropagation()"
                               ng-on-touchmove="$event.stopPropagation()"
                               ng-on-pointerdown="$event.stopPropagation()"
                               step="{{ _c.step }}" min="{{ _c.min }}" max="{{ _c.max }}">

it works on mylaptop browers. Sadly not on my tablet. IS there a setting I am missing to enable on the tablet?

What browser name and version are you using on your tablet?
It likely has to do with different degree of support for touch/pointer events.

What browser name and version are you using on your tablet?
It likely has to do with different degree of support for touch/pointer events.

I am using FullyKiosk on a Samsung tablet

I've just tried the latest version of Fully kiosk browser with a MEDIA_PLAYER tile and saw no issues.
The issue could be either with your Fully settings (maybe try resetting if there is an option for that) or with old version of WebView that Fully is using (apparently on some tablets it's not able to use latest version).