Return Bunch objects from stats functions

Some functions like linregress and theilslopes return tuples of 4 or 5 results. A Bunch pattern would be much cleaner, and also allows adding extra return values easily.
See discussion at https://github.com/rgommers/scipy/commit/6c1048f6416 with @josef-pkt

I should have probably thought about it much earlier, but here's a version of a Bunch which is backwards-compatible:
https://gist.github.com/ev-br/a11e5a25a98c2b0115ed
The bottom line is that this class remembers the values it has been constructed with, and if asked to behave like a tuple, behaves like a tuple of these (and only these!) values with respect to unpacking, slicing and indexing.
The advantage of this is that one can both add new return values and unpack it into fixed-length tuples in a backwards-compatible way.

@ev-br that sounds promising. It's too much now for @aeklant's GSoC, but we should keep this issue open and someone can have a look at moving from namedtuples to Bunchs.

Link to the latest on Bunch classes: gh-6335. There's a class there that's pretty much complete, just needs a PR.

I can find some time to do that PR first. Should we deprecate return_* functions for 1.0 as part of it? (Or preferably for my sake, separately?)

The Bunch classes introduce a new data structure / object, which takes more time and effort for users to understand than the common namedtuple. Returning a regular Python dict would be a nice solution if backwards compatibility weren't an issue.

The Bunch classes introduce a new data structure / object, which takes more time and effort for users to understand than the common namedtuple. Returning a regular Python dict would be a nice solution if backwards compatibility weren't an issue.

I agree that a new class needs some extra time, so converting all existing namedtuples to Bunch is not necessarily a good idea. But as soon as we want to add a return value to an existing function, Bunch is by far the best way to go. That is why we want to introduce it.

I can find some time to do that PR first.

Great.

Should we deprecate return_* functions for 1.0 as part of it? (Or preferably for my sake, separately?)

Not sure that is worth doing. Definitely not in the same PR.

Just having Bunch available in scipy._lib for new use cases would be great.

I would like to add a new statistical test to stats in #9539 and would like to get your view on how to return the results of the test.

use a named tuple like for the other tests
use a Bunch: is there an implementation that could be used? I saw the link http://code.activestate.com/recipes/52308 above + a proposal by ev-br. So it looks like one would still need to agree on an implementation? In particular, the code shared on activestate does not have a str method which is probably needed.
use a Bunch-like class for hypothesis tests that has certain mandatory keywords (such as name, statistic and null hypothesis + optional fields such as p-value (not mandatory since sometimes there is only a statistic + critical values for confidence levels)). This is similar to the class htest in R. One could then define a user-friendly print method like in R:

data:  x and y
D = 0.16, p-value = 0.1545
alternative hypothesis: two-sided```.
- simply return a dictionary with keys like pval, statistic etc. (also proposed above https://github.com/scipy/scipy/issues/3665#issuecomment-252277701)

It's already in the codebase
https://github.com/scipy/scipy/blob/0781734e45886567f84d9fc0caa56476a32d82bb/scipy/signal/ltisys.py#L2492

Ah, I totally forgot about that one - IIRC it was added in the signal.place_poles PR but in a very minimal incomplete state. The gist of @ev-br is still the most complete thing we have I think.

Or, after some searching, this is the latest: https://github.com/scipy/scipy/pull/6335#issuecomment-231947342

I would like to add a new statistical test to stats in #9539 and would like to get your view on how to return the results of the test.

If you'd want to pick up the Bunch thing that would be ideal. Otherwise namedtuple is also fine; it can be turned into a Bunch later without backwards compat issues. Not sure about "use a Bunch-like class", that seems extra effort for a temporary / one-off thing.

The gist of @ev-br is still the most complete thing we have I think.

There's @wolever's implementation somewhere in these issues/PRs which looked more developed if slightly different.

I see the following issue now:

to move from named tuple to Bunch without breaking backwards compatability, one needs unpacking, i.e. a, b =  x must be allowed
if Bunch enables unpacking, it will not help to add extra return without breaking backwards compatability, this is almost the same situation as with named tuple (see https://github.com/scipy/scipy/issues/3665#issuecomment-52546370 above)

Or do I miss something?

One idea was to use the unpack keyword to specify the number of item an instance unpacks into when iterated. https://github.com/scipy/scipy/pull/6335#issuecomment-231802174
This number is fixed by backwards compatibility. Other elements are into included into the unpacking or indexing, can only be accessed as attributes.

There are many enhancements in the works, for stats and elsewhere, where we want to increase the number of return values of functions.  I'd like to revive this discussion, so we can start making PRs with such enhancements.
To summarize, we want to return a Bunch-like object that has all the various return values (old and new) as attributes, but for backwards compatibility, we want the return value to also act like the old tuple or namedtuple.
The above gist provided by @ev-br  is one possibility, but it requires overriding many basic methods.  I think the subclass of tuple proposed by @wolever in https://github.com/scipy/scipy/pull/6335 is heading in the right direction.  Instead of subclassing tuple, I think it would be more effective to subclass the namedtuple type. By subclassing the namedtuple type, we don't have to reimplement all the tuple methods, because an instance of the class is a tuple.  It avoids the need for the unpack parameter mentioned in https://github.com/scipy/scipy/pull/6335, because the tuple methods are unaware of the additional attributes--unpacking works the same as for a tuple or namedtuple. And by default, a subclass of namedtuple allows additional attributes to be assigned to instances, so it can act like a Bunch.
Here's a prototype of a function called namedtuple_bunch that accepts a namedtuple type and returns a subclass of that type with a few extra methods added.  The method _set_extra_fields assigns additional attributes to the instance--but only if those attributes don't conflict with the existing names in the namedtuple.  The __repr__ method is overridden to include the extra fields (if any) in the output.
import types

def namedtuple_bunch(namedtuple_type):
    """
    Return a subclass of the given namedtuple type that has
    the method `_set_extra_fields` that allows additional names
    to be added to instances of the type.  The returned type
    is, in effect, a combination of a namedtuple and a Bunch-like
    class.

    The fields added via `_set_extra_fields` do not become part
    of the tuple.  Unpacking, indexing, etc., will refer only to the
    fields that were part of the namedtuple_type.
    """

    def _set_extra_fields(self, **kwds):
        if any(key in self._fields for key in kwds):
            name = namedtuple_type.__name__
            badkey = [key for key in kwds if key in self._fields][0]
            raise RuntimeError(f"attempt to add '{badkey}' as an extra "
                               f"attribute but it already exists in the "
                               f"namedtuple '{name}'")

        self.__dict__.update(kwds)
        self.__dict__.update({'_extra_fields': list(kwds.keys())})

    def __repr__(self):
        s = namedtuple_type.__repr__(self)
        if hasattr(self, '_extra_fields'):
            s = s.rstrip(')')
            s += ', ' + ', '.join([name + '=' + repr(self.__dict__[name])
                                   for name in self._extra_fields])
            s += ')'
        return s

    def __setattr__(self, name, value):
        raise AttributeError("can't set attribute")

    def exec_body(cls):
        cls['_set_extra_fields'] = _set_extra_fields
        cls['__repr__'] = __repr__
        cls['__setattr__'] = __setattr__
        return cls

    cls = types.new_class(namedtuple_type.__name__,
                          bases=(namedtuple_type,),
                          exec_body=exec_body)

    return cls

(This could also be implemented by nesting a class definition in the function instead of using types.new_class(), but there was a minor detail or two in that implementation that I wasn't happy with.)
Here's an example of how it can be used.  Suppose the function somefunc currently returns the namedtuple SomeFuncResult which has two fields, z and p:
SomeFuncResult = namedtuple('SomeFuncResult', ['z', 'p'])

def somefunc(x, y):
    z = x + y
    p = x/z
    result = SomeFuncResult(z=z, p=p)
    return result

We want to add two additional "return values", w = x - y and beta = 1 - p**2.   Here's the updated implementation of somefunc:
SomeFuncResult = namedtuple_bunch(SomeFuncResult)

def somefunc(x, y):
    z = x + y
    p = x/z

    # New output to be included as attributes of the
    # return value, but not part of the namedtuple
    w = x - y
    beta = 1 - p**2

    result = SomeFuncResult(z=z, p=p)
    result._set_extra_fields(w=w, beta=beta)
    return result

Example in use:
In [35]: a = somefunc(3, 5)

The repr of the result shows all four attributes:
In [36]: a
Out[36]: SomeFuncResult(z=8, p=0.375, w=-2, beta=0.859375)

They can all be accessed as attributes:
In [37]: a.z
Out[37]: 8

In [38]: a.p
Out[38]: 0.375

In [39]: a.w
Out[39]: -2

In [40]: a.beta
Out[40]: 0.859375

But a is still a tuple of length 2:
In [41]: len(a)
Out[41]: 2

Unpacking works as expected for a tuple of length 2:
In [42]: z0, p0 = a

In [43]: z0, p0
Out[43]: (8, 0.375)

So does slicing:
In [44]: a[1:]
Out[44]: (0.375,)

That all works because a is a tuple:
In [45]: isinstance(a, tuple)
Out[45]: True

What do you think?

For a concrete example, I created a pull request that adds a new "return value" to stats.fisher_exact: https://github.com/scipy/scipy/pull/12288
I didn't modify any existing tests, and even though I changed the return value to use a subclass of a namedtuple created by namedtuple_bunch, the tests all pass (at least locally--the CI test suite just started).
Here's how it looks in action:
In [1]: from scipy.stats import fisher_exact

In [2]: result = fisher_exact([[8, 2], [1, 5]])

In [3]: result.pvalue
Out[3]: 0.03496503496503495

In [4]: result.sample_odds_ratio
Out[4]: 20.0

In [5]: result.conditional_odds_ratio
Out[5]: 15.46581971692097

The old style still works:
In [6]: odds, p = fisher_exact([[8, 2], [1, 5]])

In [7]: odds
Out[7]: 20.0

In [8]: p
Out[8]: 0.03496503496503495

I think the behavior for the end user is spot on. I would prefer if the extra fields could be set during initialization rather than requiring a call to a separate method _set_extra_fields. Since the object already knows what the core/original fields are, this should be possible, right?

I recently added something similar to statsmodels, currently just a few cases and still experimental
(I haven't tried a single element tuple yet)
I never cared much about the named tuple case
The main method I added as extra  is __array__ to be able to use it directly with numpy, and pandas

@mdhaber wrote

I would prefer if the extra fields could be set during initialization ...

I agree.  I'll look into making that work.

I just pushed a new version of namedtuple_bunch() to https://github.com/scipy/scipy/pull/12288.  The signature is now
def namedtuple_bunch(typename, fields, extra_fields)

It returns a subclass of the type that is created by namedtuple(typename, fields).  The third argument is the list extra field names that must be specified when an instance is created.  E.g.
In [15]: Result = namedtuple_bunch('Result', ['z', 'p'], ['w', 'beta'])

In [16]: result = Result(z=10.1, p=0.25, w=9.5, beta=0.996)

In [17]: result
Out[17]: Result(z=10.1, p=0.25, w=9.5, beta=0.996)

By requiring the extra field names to be specified when the type is created, the code can check for missing or misspelled parameters when an instance is created:
In [18]: result = Result(z=1.23, p=0.1, beta=0.25)
<snip>
TypeError: missing keyword argument 'w'

In [19]: result = Result(z=1.23, p=0.1, w=7, betar=0.25)
<snip>
TypeError: unexpected keyword argument 'betar'

A potential problem with the proposed Bunch-like  namedtuple created by namedtuple_bunch is that instances are not picklable.  I'm not sure how important that is, and I haven't check to see if that is easily fixable.

That seems important, non-picklable objects may give issues with multiprocessing. Hopefully not too hard too fix.

I tried to get the subclass of namedtuple working like we want and also be picklable, but I didn't make any progress.  I'm not saying it is impossible, but I wasn't able to create an object that was a subclass of tuple (like namedtuple is) and that had added attributes, and could be round-tripped through pickling.  (The tuple class is a light class--it doesn't have a __dict__ attribute, and it doesn't allow __slots__.)
My latest version uses a class that has a private attribute, _tuple, that holds the tuple that is compatible with the old return values.  A few dunder methods are overridden to delegate to _tuple to implement some tuple-like behavior.  The code is currently in the pull request https://github.com/scipy/scipy/pull/12288, but that is likely to change over time, so I'll copy it here:
import sys as _sys
from keyword import iskeyword as _iskeyword

class _TupleBunch:

    _fields = ()
    _extra_fields = ()

    def __init__(self, **kwds):
        # _validate_kwds isn't strictly necessary, since the code that follows
        # it will raise an exception if the names in kwds are not valid, or if
        # there is a name missing from kwds.
        # The function provides a friendlier error message.
        self._validate_kwds(kwds)
        self.__dict__['_tuple'] = tuple(kwds[name] for name in self._fields)
        for name in self._fields + self._extra_fields:
            self.__dict__[name] = kwds[name]

    def __repr__(self):
        s = (self.__class__.__name__ + '(' +
             ', '.join(f'{name}={self.__dict__[name]!r}'
                       for name in self._fields + self._extra_fields) + ')')
        return s

    def __setattr__(self, name, value):
        # Ensure that all attributes are read-only, and that new attributes
        # can't be added to the object.
        raise AttributeError("can't set attribute")

    def _validate_kwds(self, kwds):
        all_fields = self._fields + self._extra_fields
        for name in kwds:
            if name not in all_fields:
                raise TypeError(f"unexpected keyword argument '{name}'")
        for name in all_fields:
            if name not in kwds:
                raise TypeError(f"missing keyword argument '{name}'")

    # Delegate several dunder methods to self._tuple

    def __eq__(self, other):
        return self._tuple == other

    def __len__(self):
        return len(self._tuple)

    def __getitem__(self, i):
        return self._tuple[i]

    def __hash__(self):
        return hash(self._tuple)

def _validate_names(typename, field_names, extra_field_names):
    """
    Ensure that all the given names are valid Python identifiers that
    do not start with '_'.  Also check that there are no duplicates
    among field_names + extra_field_names.
    """
    for name in [typename] + field_names + extra_field_names:
        if type(name) is not str:
            raise TypeError('typename and all field names must be strings')
        if not name.isidentifier():
            raise ValueError('typename and all field names must be valid '
                             f'identifiers: {name!r}')
        if _iskeyword(name):
            raise ValueError('typename and all field names cannot be a '
                             f'keyword: {name!r}')

    seen = set()
    for name in field_names + extra_field_names:
        if name.startswith('_'):
            raise ValueError('Field names cannot start with an underscore: '
                             f'{name!r}')
        if name in seen:
            raise ValueError(f'Duplicate field name: {name!r}')
        seen.add(name)

def make_tuple_bunch(typename, field_names, extra_field_names=None,
                     module=None):
    if extra_field_names is None:
        extra_field_names = []
    _validate_names(typename, field_names, extra_field_names)

    result = type(typename, (_TupleBunch,),
                  dict(_fields=tuple(field_names),
                       _extra_fields=tuple(extra_field_names)))

    # Note: This code to handle `module` is from the Python source code for
    # namedtuple, in Lib/collections/__init__.py
    #
    # For pickling to work, the __module__ variable needs to be set to the
    # frame where the named tuple is created.  Bypass this step in environments
    # where sys._getframe is not defined (Jython for example) or sys._getframe
    # is not defined for arguments greater than 0 (IronPython), or where the
    # user has specified a particular module.
    if module is None:
        try:
            module = _sys._getframe(1).f_globals.get('__name__', '__main__')
        except (AttributeError, ValueError):
            pass
    if module is not None:
        result.__module__ = module

    return result

For example,
In [24]: from scipy._lib._bunch import make_tuple_bunch

In [25]: Foo = make_tuple_bunch('Foo', ['z', 'p'], ['w', 'beta'])

In [26]: result = Foo(z=2.5, p=0.75, w=999, beta=0.25)

In [27]: result
Out[27]: Foo(z=2.5, p=0.75, w=999, beta=0.25)

In [28]: result.p
Out[28]: 0.75

In [29]: result.beta
Out[29]: 0.25

For unpacking and indexing, it acts like a tuple with length 2:
In [30]: z0, p0 = result

In [31]: z0
Out[31]: 2.5

In [32]: p0
Out[32]: 0.75

In [33]: result[1:]
Out[33]: (0.75,)

Verify that we can pickle and unpickle the object:
In [34]: import pickle

In [35]: s = pickle.dumps(result)

In [36]: obj = pickle.loads(s)

In [37]: obj
Out[37]: Foo(z=2.5, p=0.75, w=999, beta=0.25)

I pulled the code for the new return value class out of https://github.com/scipy/scipy/pull/12288 and put it in a new pull request: https://github.com/scipy/scipy/pull/12323.  I think it needs its own PR to avoid mixing discussions of the new object with the discussion of the enhancement to fisher_exact.
The unit tests added in that PR verify the properties that I think we want for this object.

Over in https://github.com/scipy/scipy/pull/12323, @larsoner added the right magic to make make_tuple_bunch() create a picklable Bunch-like object that is a subclass of tuple.   Take a look!


Add bam and watsonx documentation

First documentation release for the bam and watsonx modules.
One note, I added both modules to the llms.adoc, but I don't know if it makes sense for the bam module.

Seems like there is a conflict now

Seems like there is a conflict now

Yes, I have updated the pom.xml file to autogenerate the quarkus-langchain4j-bam.adoc and quarkus-langchain4j-watsonx.adoc.  Now the conflict should be resolved.

Updated nav.adoc


api: Switch to fused json utf8 decoder for parsing response

Switch to a fused json+utf8 decoder, a more efficient path than decoding them individually. This implementation was made even faster recently in https://github.com/dart-lang/sdk/commit/1e6c9b026f03e601c3941d2e3a71782ff85f91e1.
In my local testing it reduces decoding time of response (excludes downloading time) from /register call from 1.40s to 0.78s resulting in ~45% improvement, (but still seems too high).

Neat! That upstream patch is fun, too.

In my local testing it reduces decoding time of response (excludes downloading time) from /register call from 1.40s to 0.78s resulting in ~45% improvement, (but still seems too high).

Can you post details of how you measured that? (E.g. with output of git diff, to show any code you changed locally.) That'd help make sure we're on the same page as to what's covered by the measurement.

Can you post details of how you measured that?

Sure, here's the benchmark code: https://gist.github.com/rajveermalviya/46b4404c397b436769efb92bde6b9fa5
It uses benchmark_harness package to setup the benchmark, and embed package to embed the json file in the binary.
The res.json file was downloaded via following curl (copied from flutter dev tools networking panel):
curl --location --request POST 'https://chat.zulip.org/api/v1/register' \
    --header 'user-agent: ZulipFlutter' \
    --header 'content-type: application/x-www-form-urlencoded; charset=utf-8' \
    --header 'accept-encoding: gzip' \
    --header 'content-length: 290' \
    --header 'authorization: Basic [XXXX]' \
    --header 'host: chat.zulip.org' \
    --data-raw 'apply_markdown=true&slim_presence=true&client_gravatar=false&client_capabilities=%7B%22notification_settings_null%22%3Atrue%2C%22bulk_message_deletion%22%3Atrue%2C%22user_avatar_url_field_optional%22%3Afalse%2C%22stream_typing_notifications%22%3Afalse%2C%22user_settings_object%22%3Atrue%7D' \
    --compressed > ~/Downloads/res.json

@gnprice Thanks for the review, pushed a new revision!

Sure, here's the benchmark code: https://gist.github.com/rajveermalviya/46b4404c397b436769efb92bde6b9fa5 It uses benchmark_harness package to setup the benchmark, and embed package to embed the json file in the binary.
The res.json file was downloaded via following curl (copied from flutter dev tools networking panel):

Interesting, thanks!
OK, so it's a benchmark comparing the two versions of basically just the one line changed here: decoding UTF-8 and JSON. And it runs 10 iterations and prints the average time.
What hardware were you running it on? (Specifically, what type of CPU?) That's the other piece of information that's key for interpreting this sort of benchmark result.
If the exact results of the measurements were important, we'd want to be sure to do them on a physical phone — the performance behavior is potentially different from a desktop or laptop, so that something helpful on one can be unhelpful on another. Here, though, there's no significant cost in code complexity, and we're doing something that clearly in principle should be better, so there's no need to deal with the logistics of that.

Meanwhile: looks good, and I'll merge. With one tweak in the commit message:
    -    api: Switch to fused JSON + UTF8 decoder for parsing response
    +    api: Switch to fused JSON + UTF-8 decoder for parsing response


Add openstack cli arguments to get_query_type

In order to introduce the plugin arguments in the get_query_type
function, it will use a QuerySelector class, where functions to check
the query type will be injected by the plugins. The largest value
provided by either the core cli argument or the ones from the plugin
will be returned. This changes maintains the same interface for the
get_query_type and uses the class only internally, to avoid breaking any
existing code.

As far as I understand, for a query like the following: cibyl --tenants --spec the resulting type would be 'JOBS', right? Which makes sense, the same happens for '--jobs'.

Yes, all openstack cli argument will result in JOBS query, since that's the openstack attributes modify the Job classes. I have added a test to check it.


remove unused files and move away from using pub build

remove unused files
move away from using pub build

@Georgehe4, this PR addresses the build issues with the repo.


How to play a simple music note ?

How can I create a fonction who play a tone like this :
play("b#")

Hi @sucrecacao , please read and try the initial commands in the README.md. In case you need further help, please write me again.

I have no idea why I posted this issue here hehe, I guess its can be closed now


Change password form exposes password text in URL as plain text

When submitting the Change Password form, passwords are exposed in the URL as plain text arguments. Submit the form as a POST to prevent the issue, and file a report with the upstream project (yogiben:meteor-starter).

This may be related to one or more upstream packages. I opened an [issue with the Differential accounts entry package](https://github.com/Differential/accounts-entry/issues/382.

To be considered: fixing by re-writing the form in our project.

@mauriciovieira Could you be interested on this task? Brylie offers pair-programming assistance. If you are interested, can you estimate how many hours it takes to complete the task?

@bajiat yes, I am interested. It is really hard to estimate right now, so I ask @brylie to give me a hand on this.

When would you like to schedule a pair programming session?

@brylie tomorrow morning.

OK, what timezone?

Sorry. I am at GMT-0300, you GMT+0300. The common period is 2PM - 6PM your time.

Alright. How about 15:30 EET?

I am in #apinf on Freenode.

@brylie suggested to use https://atmospherejs.com/useraccounts/core if changing https://github.com/apinf/api-umbrella-dashboard/blob/b052727d8a57a5592e64226b1e9551eeafe3c703/lib/NCSchemas.js#L3 does not work.

TODO: Check out the AutoForm sandbox for examples.Take a look at AutoForm playground, SimpleSchema,  and Collection2

@mauriciovieira a third, possibly simple, option would be to write the HTML form by hand. This would be trivial, as there are only three fields and a button.
Once you have a simple HTML form, you can override the form submit event in the Meteor template/form event to validate the submission (there is already code for this).

One change that needs to be made to the existing event code is to use arguments that are available to Meteor template events. Specifically, each template event can catch two optional arguments event and template respectively.
Given the following HTML:
<form id="a-form">
  <input type="text" name="inputName">
  <input type="submit" value="Submit">
</form>

You can hook into the submit event like so:
  Template.body.events({
    "submit #a-form": function (event, template) {
      // Do something with event and template, etc.

The event object will now have useful method(s) including the ability to get the value of form elements:
// Get the value of the "inputName" field
var fieldNameValue = event.target.inputName.value;

@mauriciovieira Hi, seems that you have been making good progress together with Brylie. Could you estimate the remaining hours in this task and move the task to "in progress" in the Waffle board?

@bajiat Hi. I am not able to change the card in the Waffle board, but only using github issues interface. This started happening today.
The work is almost done. Brylie is reviewing the Pull Request #505

@bajiat It is done.

PR is merged.


Android 8.0服务Service报错ANR

ActivityManager: ANR in com.dachun.dazhihui:musicLibrary
PID: 1612
Reason: Context.startForegroundService() did not then call Service.startForeground()
查阅资料可能是如下问题：
https://blog.csdn.net/lylddingHFFW/article/details/78219327?locationNum=6&fps=1
详细信息：
Load: 0.0 / 0.0 / 0.0
CPU usage from 5782ms to 0ms ago (2018-06-30 12:03:53.060 to 2018-06-30 12:03:58.842):
79% 1201/system_server: 60% user + 19% kernel / faults: 96056 minor 339 major
30% 2329/com.huawei.systemmanager:service: 25% user + 4.9% kernel / faults: 69166 minor 313 major
17% 7563/com.google.android.gms: 13% user + 3.9% kernel / faults: 6685 minor 131 major
1% 30189/com.huawei.appmarket: 0.7% user + 0.2% kernel / faults: 8874 minor 62 major
7.8% 4136/com.android.systemui: 6.1% user + 1.7% kernel / faults: 4619 minor 34 major
7.5% 2248/com.huawei.powergenie: 3.4% user + 4.1% kernel / faults: 4362 minor 30 major
0.8% 29192/android.process.media: 0.6% user + 0.2% kernel / faults: 828 minor 2 major
6.7% 423/logd: 3.9% user + 2.7% kernel / faults: 11 minor
6.3% 30843/adbd: 1.5% user + 4.8% kernel / faults: 2648 minor
6.2% 248/mmc-cmdqd/0: 0% user + 6.2% kernel
4.4% 8439/com.huawei.android.launcher: 3.4% user + 1% kernel / faults: 10906 minor 21 major
0.5% 15422/com.huawei.systemmanager: 0.3% user + 0.1% kernel / faults: 5732 minor 28 major
3.6%<EMAIL_ADDRESS>0.5% user + 3% kernel
3.4% 690/surfaceflinger: 1.7% user + 1.7% kernel / faults: 102 minor
3.2% 1321/logcat: 1.2% user + 2% kernel / faults: 8054 minor
3% 2268/com.android.phone: 1.8% user + 1.2% kernel / faults: 1467 minor 21 major
2.9% 12379/kworker/u16:5: 0% user + 2.9% kernel
2.5% 727/dubaid: 1.5% user + 1% kernel / faults: 3450 minor
2.4% 424/servicemanager: 0.8% user + 1.5% kernel
2.4% 26400/kworker/0:2H: 0% user + 2.4% kernel
0.3% 7459/com.google.android.gms.persistent: 0.2% user + 0.1% kernel / faults: 1072 minor 695 major
1.7% 1132/kworker/u16:6: 0% user + 1.7% kernel
0.1% 2405/kworker/u16:10: 0% user + 0.1% kernel
1.3% 94/smcthread/0: 0% user + 1.3% kernel
1.3% 726/hwpged: 0.1% user + 1.2% kernel / faults: 7 minor
1.2% 23897/com.huawei.skytone: 1.2% user + 0% kernel / faults: 567 minor 6 major
0.1% 31502/kworker/u16:19: 0% user + 0.1% kernel
1% 31526/kworker/u16:21: 0% user + 1% kernel
0.8% 125/kswapd0: 0% user + 0.8% kernel
0.8% 262/ts_thread:0: 0% user + 0.8% kernel
0.8% 2221/com.huawei.hiview: 0.5% user + 0.3% kernel / faults: 161 minor 2 major
0.1% 2237/com.huawei.systemserver: 0% user + 0% kernel / faults: 301 minor 14 major
0.8% 3290/rild: 0.3% user + 0.5% kernel / faults: 37 minor 3 major
0.1% 8321/com.android.nfc: 0% user + 0% kernel / faults: 1667 minor 12 major
0.8% 10673/com.huawei.health:DaemonService: 0.8% user + 0% kernel / faults: 565 minor 5 major
0.8% 24214/com.alibaba.android.rimet: 0.6% user + 0.1% kernel / faults: 284 minor 179 major
0.8% 31448/kworker/u16:18: 0% user + 0.8% kernel
0% 27/kworker/4:0H: 0% user + 0% kernel
0.6% 504/netd: 0.1% user + 0.5% kernel / faults: 203 minor
0.6%<EMAIL_ADDRESS>0.3% user + 0.3% kernel / faults: 5 minor
0.6% 689/lmkd: 0% user + 0.6% kernel
0.6% 7595/com.baidu.input_huawei: 0.3% user + 0.3% kernel / faults: 681 minor 30 major
0% 7617/com.huawei.recsys: 0% user + 0% kernel / faults: 365 minor 8 major
0% 26820/com.huawei.intelligent: 0% user + 0% kernel / faults: 1039 minor 294 major
0.6% 32559/com.tencent.mm: 0.6% user + 0% kernel / faults: 299 minor 31 major
0.5% 1//init: 0.3% user + 0.1% kernel
0% 310/kworker/7:1H: 0% user + 0% kernel
0% 506/zygote: 0% user + 0% kernel / faults: 391 minor
0.5%<EMAIL_ADDRESS>0% user + 0.5% kernel / faults: 16 minor
0.5% 692/powerlogd: 0.5% user + 0% kernel / faults: 3 minor
0% 842/kworker/u16:1: 0% user + 0% kernel
0.5% 23840/kworker/u16:14: 0% user + 0.5% kernel
0% 32238/com.tencent.mm:exdevice: 0% user + 0% kernel / faults: 1218 minor 897 major
0.3% 3/ksoftirqd/0: 0% user + 0.3% kernel
0.3% 7/rcu_preempt: 0% user + 0.3% kernel
0% 31/kworker/5:0H: 0% user + 0% kerne

我看了下我用的是1.3.7，更新到1.3.8后，没有这个报错了，华为P10

是的，1.3.8才修复这个，没问题就好


Sidenav mode not honored on IE 11

Bug, feature request, or proposal:
Bug
What is the expected behavior?
md-sidenav mode="slide" pushes main content out.
What is the current behavior?
Chrome resizes content correctly:

IE acts like the sidenav is set to mode="over":

What are the steps to reproduce?
http://embed.plnkr.co/oFBZS1JvEDMFeK1TpdsC/
Which versions of Angular, Material, OS, browsers are affected?
IE 11.0.9600.18537
Material 2.0.0-alpha.8-2
Angular 2.4.1
Windows 7 Enterprise
Is there anything else we should know?

updated the provided example to work with the latest version and it seems to be correct on IE11 http://plnkr.co/edit/hroO31xhoySL6jQ2A3AN?p=preview


Monitor off but not on again

I am using your module on a Raspberry Pi 3 and a monitor that does not support CEC.
The monitor switches off but afterwards it remains black and wont turn back on, even if there is movement.
Here is my config:
                {
                        module: "MMM-PIR-Sensor-Lite",
                        position: "top_center",
                        config: {
                                sensorPin: 23, // GPIO pin
                                commandType: xrandr,
                                title: "Automatic Monitor Standby",
                                showCountDown: true,
                                showDetection: true,
                        }
                },

Any ideas how to fix that?

@codac
What is the result of lsb_release -r? And uname -a?
What does using xset (commandType : 'xset' in your config)?
Does xrandr --output HDMI-1 --rotate normal --auto enable the monitor?

lsb_release -r result:
Release:        11
uname -a result:
Linux magicmirror 5.15.61-v7+ #1579 SMP Fri Aug 26 11:10:59 BST 2022 armv7l GNU/Linux
xrandr --output HDMI-1 --rotate normal --auto
does activate the monitor
I will change the value to xset and see what happens.

sorry did not mean to close the issue yet..

I will change the value to xset and see what happens.

Has that solved the issue?
Did you test your sensor to see if it detected your presence?

It seems that not the commands were the issue, but the screensaver that had to be switched off.


[Story] Streamline and document how developers should manage the config of components

What projects is this story for?
OpenChallenges
As a user, I want
As a developer, I want to be aware when a config change requires an action from me, so that I can prevent the OC stack from breaking.
As a developer, I want to know how I can change the config of a component without affecting the work of other developers.
Description
The OC stack is composed of a large number of components (> 20) and managing their configuration should be well documented. One goal is to ensure that developers are not faced with a broken stack because the config is no longer valid. Recently onboarded developed should also be aware of how to configure their local stack to access private resources.
As an example, the config server requires the developer to be invited to get access to the git repo that includes config data served by the config server. The developer must then update the .env file of the config server with a GH API token so that their instance of the config server can access the configuration.
Another issue is that only microservices currently get their config data from the config server. Ideally, all the components of the stack should get their config in the same way, including DBs and the web client.
Acceptance criteria
No response
Tasks

[ ] Review the OC projects that must be manually configured by each developer
[ ] Design an architecture that minimize the actions that developers must take to keep their configuration up to date

Anything else?
No response
Have you linked this story to a GitHub Project?

[X] I have linked this story to a GitHub Project and set its metadata.

Returning to Backlog

Added to Backlog


fixes #84

This adds an example initContainer that should fix permission issues.
Signed-off-by: Josh Cox<EMAIL_ADDRESS>

Closes #84

This looks good to me :D
Is it possible to uncomment the values.yaml and set it to be false? The only minor nit I see, else I can merge this.
@zachomedia look good to you so others don't hit this problem?

I tested it by running as false and, indeed, the initcontainer is not created, and the setup fails again at
 [error]  The file permissions could not be set on sites/default/files.
 [error]  The file permissions could not be set on /private.

So I think that leaving it uncommented and set on false is just fine.

Sorry I missed this one, I had just left to Travel to Colorado.  Looks like it got merged in anyhow.  @zachomedia let me know if I can anything else.  I'll look forward to making contributions in the future.


Plugin Game Identification

Problem
When I try to add games using the add_game method in my plugin, it sometimes picks the wrong game.  E.g.
matched_games.append(Game(game_id, 'Tomb Raider', None, LicenseInfo(LicenseType.SinglePurchase)))
it is matching to the 2000 GameBoy version, rather than the correct 2013 PC version.  If I manually search for Tomb Raider on the IGDB site, the first result is the 2013 version.  This has happened for a number of titles, e.g. The Forest (matches 1983 title) and Portal (1986 title).
Solution
Is there some way of forcing a better match?  E.g. giving a year, or a platform (PC) or a Steam ID?  All of which I have.  I'm just not sure how I can use it to help.  The Steam ID seems the most exact and I'd have it for maybe 80% of the titles.  I could of course be doing something wrong as I'm not clear on how other integrations, e.g. Steam and Epic, have avoided this problem.  They don't seem to have done anything clever that I can see.
Alternatives
Maybe define a structure that could be used to populate known information about the game to help with the search, up to defining everything about it.

Hi @bertbert72,
thanks for the issue. Currently our system matches games using title only. I see no automated workaround for the problem of games with the same title.
What can we do now, is only provide manual fixes based on your report via cogwheel menu - "Report issue" panel. Provide game_id and platform for which the game was not matched correctly.
We'll discuss how to introduce more comprehensive automated solution that covers both known and not yet known games in our database (as the matching process occurs in both situations separately).
You proposal is valid of course. I agree that plugin developer should be able to provide proper correct data on his own. We don't have currently resources to create a bigger scale plan like dedicated panel for developers, but we will discuss internally if we can improve current situation in other way. I cannot provide any ETA - for sure we won't start working on this at this quarter.

Thanks Mieszko, I appreciate your answer.  For the manual fixes, it would make sense to do that when/if the Geforce Now platform gets added.  At that point I can build up a list of titles that don't match and what they should be.


Backpressure management

We need to find a way to implement a first version of backpressure. It is not easy at all in my opinion as today we heavily rely on channels and this would be impossible to handle different strategy types like these ones. It has to be designed and implemented cautiously.
http://reactivex.io/documentation/operators/backpressure.html
To be discussed.

First implementation made in the v2. See the following tests: https://github.com/ReactiveX/RxGo/blob/6c1de57ec0e14f0cbccc951ed5a6b200dd211ef2/observablecreate_test.go#L375-L456
Missing strategy: Drop

Solved in https://github.com/ReactiveX/RxGo/pull/215


fix: minio connectivity

Ref : #111
steps to recreate:

https://github.com/SamagraX-Stencil/stencil/assets/61339210/03d4d835-2741-41a4-a4f4-e8911f71a330

Summary by CodeRabbit

New Features

Enhanced file upload service to dynamically configure storage settings based on environment variables.

Chores

Added data and dist directories to .gitignore and docs/.gitignore.
Updated script commands in package.json to use Stencil commands instead of NestJS commands.
Added new dependency on @nestjs/config version ^3.2.2.

Documentation

Removed detailed steps for uploading and downloading files from README.md.

Configuration

Updated example environment configuration for file uploads.

@techsavvyash please review

This PR's commit is merged in #159


[BUG] cannot cast type integer to timestamp with time zone

Describe the bug
Incompatible cast does not result in DROP COLUMN followed by ADD COLUMN.
This is occurring for me with all hazards allowed and plan validation disabled.
Error: executing migration statement. the database maybe be in a dirty state:
{ALTER TABLE "public"."activity" ALTER COLUMN "ts" SET DATA TYPE timestamp with
time zone using "ts"::timestamp with time zone 3s 3s
[ACQUIRES_ACCESS_EXCLUSIVE_LOCK: This will completely lock the table while the data
is being re-written. The duration of this conversion depends on if the type conversion
is trivial or not. A non-trivial conversion will require a table rewrite. A trivial
conversion is one where the binary values are coercible and the column contents are not
changing.]}:
ERROR: cannot cast type integer to timestamp with time zone (SQLSTATE 42846)

Expected behavior
DROP then ADD
To Reproduce
Change a column type from integer to timestamptz.
Context
pg-schema-diff version: 5fe8259b82bd784644224a861cce575339a45a59
pg-schema-diff usage: CLI
Postgres version: 14

This isn't so much as a limitation. We have not accounted for incompatible types when doing data type migrations. Instead, you will need a schema that removes the column and a schema that adds the column with the new type. I can make this feature request.

Relates to #52 .
Ideally, we have some way that given to two types x and y, we know (1) if they are coercible and (2) the binary is coercible, i.e., does not require a full table scan.


c++ gradients for mean and sum

Gradients for the math ops, Mean and Sum. Ported from python:
https://github.com/tensorflow/tensorflow/blob/86d9171b006a2f4a65055228aa13d83d60916052/tensorflow/python/ops/math_grad.py#L95
I grouped these together because they share helper functions.
cc @suharshs

Can one of the admins verify this patch?

Ah unfortunately someone internally just submitted this change yesterday.  Should sync soon. Apologies :(
From now on can you create an issue with your in progress gradients with "c++ gradient" in the title. I will ask internal folks to do the same, this way we can avoid stepping on toes due to sync latency.

@suharshs No problem at all. Getting the functionality in there is the important thing.


What Spdx Versions Does This Tools-Java  Support

Hi,
Is there any documentation where there is list of supporting versions of spdx this repo supports.
Below are my questions

All the samples in this repo are of 2.2 and 2.3 versions. I don't see any older versions samples .
Does this repo or lib supports parsing older spdx versions like 2.1 or older ?

Is there any documentation where there is list of supporting versions of spdx this repo supports.

It's currently only documented in one of the libraries in the code: https://github.com/spdx/Spdx-Java-Library/blob/master/src/main/java/org/spdx/library/Version.java
Add this to the README would be a good idea.

Does this repo or lib supports parsing older spdx versions like 2.1 or older ?

Yes - it can read every version since 1.0, although it will only write version 2.0 and up (it will basically convert the 1.0 version to the equivalent 2.0 version).

All the samples in this repo are of 2.2 and 2.3 versions. I don't see any older versions samples .

True - Version 2.2 is when we moved the SPDX spec into Github.  It's a bit more difficult to retrieve the prior sample versions.


VSCode opened tailwindCSS when clicking on a JavaScript object definition

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

Steps to Reproduce:
https://user-images.githubusercontent.com/113883146/195760749-c4416de8-910f-4159-bc0d-64c6185ddcb5.mp4

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

/needsMoreInfo
Is it reproducible with all extensions disabled? You can try this with F1 and >Developer: Reload Window With Extensions Disabled

It works normally with all extensions disabled

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!


Shift+Tab behaviour

In Visual Studio Code. Shift Tab "Outdents" the selected line. In Visual Studio it "Untabs" (removes tab/x spaces from current caret position)
I couldn't see a command to change this to, but would love it if someone could work it out!

This issue was moved to Microsoft/vscode-vs-keybindings#2


Amylose parameters

Hi all,
I've been using polyply with Martini 3 parameters to create some simulation systems of variable length line polymer solutions. I'm happy to say that CEL and DEX parameters worked very nicely for me so far.
Now I wonder whether there are also amylose parameters available to be used with your software. Due to similarity to cellulose, I suppose I could use the same beads and only alter the angles and dihedrals to switch 1,4 beta to alpha orientation. However, I'm not sure on how one could validate the parameters obtained that way. This is why I've decided to ask here first.
With Regards,
Jaka

Dear @JakaBrklanje,
It's nice to hear that the Cellulose and Dextran parameters work well. To answer your question there are no amylose parameters available at the moment. But you are correct that the bead mapping and assignment would be the same as for Cellulose. Switching from beta to alpha connectivity will however change bond, angles, and dihedrals. To obtain parameters you would have to run an all-atom reference simulation, map it to CG resolution, and then fit the bonded parameters. That process is in principle not terribly difficult. However, amylose has the particular challenge that it forms helical structures stabilised by specific hydrogen bond interactions. Thus it might be necessary to apply a bias to the structure in order to keep it helical - like it is done for proteins.
If you're interested in obtaining parameters yourself check out the different discussion topics we have - especially this one and this one.  We can also give advise on this particular sugar polymer when you're opening a new discussion topic.
Cheers,
Fabian

Dear Fabian,
thank you for the explanation!
My main interest is to explain certain polymer properties of common and well-explained oligo- and polysaccharides. Thus I aim to first use the existing parameter libraries for dextran and cellulose.
In case my measurements prove fruitful, I believe I might try to obtain a simple AA-mapped parametrization for amylose. I expect such description might suffice for shorter chains in a diluted system, where the role of helicality is less profound. Ideally, I'd also be compelled to introduce a structural bias to ensure the helical structure, however, I would probably need some additional help in order achieve that.
I plan to continue following your work on polyply and carbohydrates. In case I manage to obtain some parameters on my own, I will keep you informed.
Cheers,
Jaka

Hi again,
I'm returning to this topic somewhat (perhaps it could be moved to discussions, haven't realized that I posted in "Issues").
My goal is now to use an AA level system and then use it as a base to, hopefully, construct a fully functional Martini 3 parameter library for several polysaccharides. Therefore, I'm curious if one could use Polyply to generate short oligo chains even in all-atom description (preferably Glycam or Charmm). If not, what approach did you take to obtain the initial structures and parameterization?
With regards,
Jaka

Hi @JakaBrklanje,
Don't worry about the issue vs discussion thing too much. I'll transfer it when I see fit.
To answer your question: In principle yes you can do it. However, it requires some work to implement all the parameters. In order to generate an all-atom reference model for Martini you are probably quicker using CHARMM-GUI or GlycanWeb provided they have the parameters. If they don't we can implement the CHARMM version into polyply. I can provide some help and guidence. I don't know AMBER well enough to feel confident in deriving consistent parameters.
Please let me know if you cannot find Amylose in the mentioned webpackages or if they fail.
Cheers,
Fabian

Hi again,
I am not sure whether the following inquiry is still on topic for this thread, but since I could not find any better communication channel, I'm proceeding here.
I was wondering if you use some particular protocol to equilibrate carbohydrate structures generated by Polyply in CG water. So far, all of my attempts to simulate CH oligomers with Martini 3 force field ended up in a state where there is barely any detectable translatory movement of particles, even though the system's temperature is about 300 K. I have tried several approaches, but to no avail. I am aware that Martini 3 should in principle eliminate the need to use the antifreeze solvent particles, however, I'm afraid I can't make it work appropriately.
Cheers,
Jaka

Just as a follow-up - I resolved the issue by carefully adjusting the parameters in insane (py) script. I could not exactly elucidate the cause of freezing, but apparently my system was too densely packed.

@JakaBrklanje thanks for the follow-up. Martini3 water does not freeze at room temperature. Usually, when it does freeze it means the mpd parameters are set incorrectly, there is an excessive amount of salt in the system, or parameters are missing from the bead type definitions. Even when starting from a perfect crystal under NpT conditions it should melt.


Minesweeper

The typical Minesweeper game, but built with Sprig!
Editor Share Link

The last tile was probably a mine and since my code only checks for the amount of tiles that were opened it still counted the game as complete.
I've updated the code :D #280

nice!


Several minor issues for v0.4.0

I want to open a single issue for the issues I'm spotting for v0.4.0. It will help in case the list grows:

[x] replace postgres_clear_cache() and duckdb_clear_cache() with a single function clear_attached_db_cache();
[x] Documentation updates for clearing the cache.
[x] USE keyword is not highlighted in the shell. I did not test KuzuExplorer but it is possible that it is not highlighted there either.

I think this can be closed? @acquamarin

I'm closing this due to completion.


Fix non-compiling configuration cache docs

Thank you @SUPERCILEX, good catch.
But those changes aren't actually enough.
Here's the correct code:
val config = providers.fileContents(layout.projectDirectory.file("some.conf"))
    .asText.forUseAtConfigurationTime()

I made the quick fix in this in progress PR https://github.com/gradle/gradle/pull/13412
I will extract that code as integration tested snippets so it doesn't happen again.

Sounds good, thanks!


feat: dockerize mesh serve with hive integration

[x] extended documentation for serve usage via docker
[x] Dockerfile
[x] docker-compose
[x] update CI to publish the image
[x] test/confirm mesh is sending operations to Hive successfully

I think we should also setup an e2e test

I think this PR should also take care of the CI part of building the Docker image?
Yes! it builds and publishes the docker image
Also, do you think we should build for Bun as well?
maybe yeah, but we can land this first, it's not crucial.
I noticed that our current build is just using Dockerfile, and I wonder if at some point we might want to ship more variety of releases? (then is might be good to consider HCL)
I think for now, what was requested was a dockerfile, and an easy and quick way to start using mesh+hive integration

please use the e2e test suite. you can see how containers are tested in the auto-type-merging.test. feel free to add any missing feature to the @e2e/utils

@enisdenjo but do we have to? aren't e2e tests already running before npm publishing? the docker image just uses the published mesh-serve npm pkg

but do we have to? aren't e2e tests already running before npm publishing? the docker image just uses the published mesh-serve npm pkg

@YassinEldeeb I dont like the idea that we're pulling from npm inside the docker image.
I think the better approach would be to have the image include built mesh and version them like we do with npm. main reason is that if you pull the docker image<EMAIL_ADDRESS>- you'd always want 1.0.0. with your setup, you always pull latest. this may be a deal-breaker for people that are not ready to upgrade to a newer mesh but are using the docker image

main reason is that if you pull the docker image<EMAIL_ADDRESS>- you'd always want 1.0.0. with your setup, you always pull latest.

the current setup uses the latest hardcoded versions for mesh like this, and not the latest:
{
  "name": "mesh-serve-docker",
  "dependencies": {
    "@graphql-mesh/serve-cli": "0.6.3",
    "graphql": "16.9.0"
  }
}

so if tomorrow, we release @graphql-mesh/serve-cli version 0.6.4 to npm, we'd ideally also release theguild/graphql-mesh:0.6.4 in the subsequent CI release step.

I think the better approach would be to have the image include built mesh and version them like we do with npm

I wanted to do that, and match the @graphql-mesh/serve-cli deployment versioning with the docker image versioning/tags as well, but I was worried 0.6.4 could already be occupied by mesh v0 or could trigger a latest release which would break existing users, that's why for now I only set it to v1 tag and a hash tag

the current setup uses the latest hardcoded versions for mesh like this [...]

@YassinEldeeb understood. make sense - but how are we gonna test the latest, unreleased, version of mesh? we wont know docker is broke until we cut a new version.
ideally, I'd like the image to be self-sustained (even include the graphql module). do some kind of bundling 🤔

LGTM. Let's try to get this working in CI and publish a test image to the GH Packages registry. And then let's test the image artifact before merging.

Also, can you run the e2es still with just yarn test:e2e or do you need a build step for docker?

how is Mesh being bundled in the image? I still see you npm i, or are you not there yet?

we can do that in a separate PR, we just need to land something working, that's tested and documented. then I'll re-go over the packaging


Varlen feature model save error

Describe the bug(问题描述)
Hi, I want save model for serving.
When i use varlen feature in model, there is error, not saved input signature_def.
details check bellow reproduce.
if know the problem, please let me know.
thank you.
To Reproduce(复现步骤)
Steps to reproduce the behavior:

Go to 'Example "multi-value-input-movielens-with-feature-hashing-on-the-fly"'
Save model after compile 'model.save(path) or tf.saved_model.save(model, path)'
Compare with 'using varlen feature model and only using sparse feature model'
See error when using varlen feature

tensorflow/python/keras/saving/saved_model.py:1143 call_and_return_conditional_losses  *
        return layer_call(inputs, training=training), layer.get_losses_for(inputs)
    tensorflow/python/keras/engine/network.py:753 call
        return self._run_internal_graph(inputs, training=training, mask=mask)
    tensorflow/python/keras/saving/saved_model.py:998 wrapped_call  *
        outputs, losses = call_fn(inputs)
    tensorflow/python/keras/saving/saved_model.py:1114 __call__
        self.call_collection.add_trace(*args, **kwargs)
    tensorflow/python/keras/saving/saved_model.py:1147 call_and_return_conditional_losses  *
        return layer_call(inputs), layer.get_losses_for(inputs)
    deepctr/layers/sequence.py:64 call
        "When supports_masking=True,input must support masking")

    ValueError: When supports_masking=True,input must support masking

See there is no inputs when you command this 'saved_model_cli show --dir $path --all'

Operating environment(运行环境):

python version [3.5, 3.7]
tensorflow version [2.0 beta1]
deepctr version [e.g. 0.6]

Additional context
Add any other context about the problem here.

Yeah,   I also have the same problem!


[Suggestion_WeaponEsp] Draw Overlapping items as lists

I have achieved this function.I suggest the author add this function as well.
It's easier to identify items.
Before Fixing:

After Fixing:

Yes this is super clever! :-)

Yes this is super clever! :-)
@BohanRen may you do the pull request pls May you commit your changes to your Fork? So we can review your changes.

Yes this is super clever! :-)
@BohanRen may you do the pull request pls May you commit your changes to your Fork? So we can review your changes.

That's OK. But I updated UI language into Chinese so you can just pay attention to the changes about ESP.cpp and Config.cpp.
I'll commit the changes a moment later in my fork.

Yes this is super clever! :-)
@BohanRen may you do the pull request pls May you commit your changes to your Fork? So we can review your changes.

https://github.com/BohanRen/Osiris/commit/659b7c2fbba4613663b6cb3a0e61aecba0ce01c1
My Commit @0xE232FE

thx for sharing I will look at it. :-)

You can also use "Max distance" to limit esp range.

You can also use "Max distance" to limit esp range.

Yes,I have finished this function. In my changed commit, I limit the max esp distance.
https://github.com/BohanRen/Osiris/commit/659b7c2fbba4613663b6cb3a0e61aecba0ce01c1

And I also add an aimbot range circle in the center of the screen so that I can easily know in which range can aimbot attack.

Can u open a pull request that would be amazing

Can u open a pull request that would be amazing

Sorry, but because my code is so bad, you'd better just take it as a reference.
If you want to refer to my implementation, you can read my commit :
https://github.com/BohanRen/Osiris/commit/659b7c2fbba4613663b6cb3a0e61aecba0ce01c1
at ESP.cpp  renderWeaponDrawList function

Kk

CAN YOU PULL REQUEST THE AIMBOT FOV CIRCLE ?
@BohanRen

@abdallahMehiz you can check the implementation I was able to get it to work but I left it on default

Nice, lets check it.


Parse CSV from string/memory buffer

Hi @d99kris, thanks a lot for the great library!
I had a small question: it is possible to use rapidcsv to load csv text that has been already loaded in memory, for example that is contained in a std::string or a similar memory buffer? This is convenient when the CSV text to parse is not part of a file in a filesystem, but for example has been obtained from a network communication.

Hi @traversaro - yes it is supported. Please check the details here: https://github.com/d99kris/rapidcsv#reading-csv-data-from-a-stream-or-string
Essentially rapidcsv can accept an std::istream, for example an std::stringstream, so you can do stuff like:
  std::string csv = "my,csv,data";
  std::stringstream sstream(csv);
  rapidcsv::Document doc(sstream)

Hi @d99kris, thanks a lot for the quick reply.


if the model can run on multi-gpu card

i find someplace error when run muti-card, for example, in EncoderTransformer, the variable length is a list type in EncoderTransformer  ,can't be Assign to multiple cards when run on multi-card

Thanks for your checking. As you pointed out, our Dataset class doesn't support multi-card running due to the problem of input data format.


Readonly version

its always make sense to show a readonly mode to user, which upon click can be converted to edit mode. Something like that might be useful for everyone.

I feel like this problem can be solved by using custom components that changes when focused. Similar to how material2 library components. Adding a readonly mode might make things more complicated, and it seems can be solved already with a bit of customization.


Firebase Unity SDK download size is 2.04 GB!!!

https://firebase.google.com/download/unity

Inside this ZIP file there are useless files for dotnet3:

We are using dotnet4 for sure, so why I downloaded 1Gb of wasted files? Why just not to split this before into different ZIP files for dotnet 3 and 4?

We only need these files:

So, each time when I want to update FireBase SDK:

I download 2GB zip file
remove unused dotnet3 folder: ~1Gb
remove unused plugins .unitypackage files in dotnet4 folder: ~845,8 MB
use only 2 files, which are in total: 177,8 MB

How about just to provide link to each .unitypackage ? So I'd just clicked only on files I really needed and quickly downloaded them?

There's a separate package archive with each of these packaged separately, found here:
https://developers.google.com/unity/packages
It's a shame the instructions don't really direct the user to the archive page.

Thanks @AtomicTroop to point out the separate position. Also the support for dotnet3 will be deprecated in a few months.

@cynthiajoan and why this is closed if https://firebase.google.com/docs/unity/setup?authuser=0 documentation still points to 1 big file? Even if dotnet3 will be removed, that file still will be 1GB.
Documentation should point to list of link, so I can pick only any I need.


installing unstable version using curl returns error

I am trying to install unstable using: curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s unstable - but it returns the following error:
dpkg-deb: error: `rexray-latest-x86_64.deb' is not a debian format archive
dpkg: error processing archive rexray-latest-x86_64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 rexray-latest-x86_64.deb

REX-Ray has been installed to /usr/bin/rexray

sh: 136: /usr/bin/rexray: not found

However, if i install the stable version with curl -sSL https://dl.bintray.com/emccode/rexray/install | sh - then no issues

@kenny try curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s unstable latest -

still no go.
dpkg-deb: error: `rexray-latest-x86_64.deb' is not a debian format archive
dpkg: error processing archive rexray-latest-x86_64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 rexray-latest-x86_64.deb

Seeing the same thing @kacole2

Looks like it's being caused by missing the latest directory when deploying the unstable builds.
https://dl.bintray.com/emccode/rexray/unstable/

@kenny one step further in investigating.  If you check the Travis-CI build log from RR, you can see that it is failing towards the end.
https://travis-ci.org/emccode/rexray/builds/86234670
It looks like the updated path structure is breaking the upload feature to Bintray.  Will have it fixed shortly.

New build going @kenny
https://travis-ci.org/emccode/rexray/builds/86260634
Check your command in a few minutes.

root@test:/home/ubuntu# curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s unstable latest -
(Reading database ... 51452 files and directories currently installed.)
Preparing to unpack rexray-latest-x86_64.deb ...
Unpacking rexray (0.2.1+dev+40-1) over (0.2.1+dev+40-1) ...
Setting up rexray (0.2.1+dev+40-1) ...

REX-Ray has been installed to /usr/bin/rexray

Binary: /usr/bin/rexray
SemVer: 0.2.1-dev+40
OsArch: Linux-x86_64
Branch: master
Commit: d1e4513c3d3ec42629b65021da56738863592b68
Formed: Mon, 19 Oct 2015 20:09:02 UTC

root@test:/home/ubuntu#

Closed with d1e4513c3d3ec42629b65021da56738863592b68.


Replace decompose_once with decompose in qasm_output.py

#1061

I figured out the issue. It was quite tricky to get the cases exactly right, and to make it clean I even had to add a new parameter to decompose. I'm not surprised at all that you had trouble. Thanks for getting it started.
I can't push to your branch, so I opened #1078 obsoleting this PR.


Google now requires support email to be provided

Step 5 of the Create Google application needs to include a new requirement from Google to provide an email address for support issues.

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

ID: 2c9d9c00-1382-c578-6b0d-7b5f9d63eebd
Version Independent ID: ce817a72-ca0d-ce18-f6ac-fc4812e9245d
Content: Set up sign-up and sign-in with a Google account - Azure AD B2C
Content Source: articles/active-directory-b2c/identity-provider-google.md
Service: active-directory
Sub-service: b2c
GitHub Login: @kengaderdus
Microsoft Alias: kengaderdus

@mrochon
Thanks for your feedback! We will investigate and update as appropriate.


TensorRTExecutionProvider: Attempt to use DefaultLogger but none has been registered

It looks like the default setup for TensorRTExecutionProvider is not working as of latest release candidate. This seems to be a compile-time issue, a default logger is not registered at init time. This doesn't seem like something I can influence as ort library user.
Failed to register TensorRT!
Err(ExecutionProvider(Msg("/home/runner/work/ort-artifacts-staging/ort-artifacts-staging/onnxruntime/include/onnxruntime/core/common/logging/logging.h:320
static const onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger()
Attempt to use DefaultLogger but none has been registered.\n")))

https://www.sidefx.com/docs/hdk/onnxruntime_2core_2common_2logging_2logging_8h_source.html
// main.rs
let builder = Session::builder()?;
let tensorrt = TensorRTExecutionProvider::default();
let reg = tensorrt.register(&builder);
if reg.is_err() {
  eprintln!("Failed to register TensorRT! {reg:?}");
  std::process::exit(1);
}

Ran in Docker image nvcr.io/nvidia/tensorrt:24.06-py3 which should provide all the necessary libraries.

Runing ort::init().commit()?; at the top of main.rs, before creating the TensorRTExecutionProvider, should fix this.

Thanks for the quick reply! Confirmed working with the added init.
Nit: I don't think this was documented, but I should have looked more closely at some other examples where this is being used.


how to build an assembly in a dist folder

Hello, I have a mac m1, with the command "npm ru build " a file is generated steamworksjs.darwin-x64.node
I have such a question. how to generate a file for windows and for linux?  (steamworksjs.win32-x64-msvc.node  and steamworksjs.linux-x64-gnu.node)

This library uses napi-rs under the hood, it distributes native addons for different platforms via different npm packages, which means you don't need to build binary by yourself.

I created a version for mac x64,
and now I want to create a project for win x64
, how it can be organized, I don't understand

See https://github.com/ceifa/steamworks.js/issues/14


request: please expose Replay*Base

I want to implement a ReplaySubject that has a custom Trim function, but in order to do this I have to re-implement everything from scratch. what I really want to do is create a new class derived from ReplayManyBase and add my own Trim override, but I can't because it's all private,

This is worth considering, though we have to make sure the result is usable without having to expose a plethora of other types (IScheduledObserver<T> comes to mind). Out of curiosity, what's the Trim policy you're looking to implement?


test: fix a few vm live test issues

[na] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[na] I adhere to the Command Guidelines.

View a preview at https://prompt.ws/r/Azure/azure-cli/6138
This is an experimental preview for @microsoft users.


Keeping track of subscription changes

The plan_subscriptions table shows the current state of the users' subscriptions, but we have no idea of their history. And this information is often very valuable.
Of course, someone would (at least should) keep track of the payments, but it does not give the full image of subscription changes.
I'd see this functionality inside the library itself, with a simple table plan_subscription_log with fields:

id
tag
subscriber_type
subscriber_id
plan_id
name
price
currency
action
timestamp

where action could be one of: 'trial_started' / 'renewed' (treated as well as started) / 'canceled'.
This way we could know what user did with their subscription, when they decided to upgrade/downgrade/renew/cancel, how long they were with us, did they have any gaps in the subscription, etc. It's often very valuable information for the support team.

I increased the stale period, because it was short, let's keep this going on.

+1 Nice feature, any updates on this ? Thanks

any updates on this?

This is a one-man project, made personally, there is no company behind or economic interest, so thing will be done when they are done and if they are done. Hope you understand if a feature takes long or it is not made at all. Thanks


Not able to use with new Android Studio 3.0

I have updated Android Studio to 3.0, react to 16, and react native to 0.49, and after all of that, I can't even sync the project in Android Studio anymore.
Any hints?
Here is the error

Anyone?

Try to change react-native to 0.50.1. It worked here.

No good here :(

@githubdoramon Have you update to Android Studio 3.0.1? I encounter the same problem with multiples libs

Same problem with 3.0.1 @zoontek
@AlexanderZaytsev any tips?


Can’t move in WiFi menu

I tried following the faq, hitting r1 after selecting WiFi from the options menu just sits on the screen.  Tried a few different ways but was just stuck.  Thanks for your hard work, any help is appreciated!

What is the make and model of your wifi stick?

No solution, but I had menu freezes too when I had hardware issues. In particular I was mucking around with trying solder a USB wifi dongle internally (which has 3.3V instead of 5V Vcc), causing the dongle to not work.
So @kerberw make sure the wifi device is supported.

@christianhaitian I got the one suggested from retro gaming corps (sorry if these are affiliate links):
I believe it is brand "pluggable", Uses the Realtek RTL8188EUS chipset according to the amazon write up.
https://retrogamecorps.com/2020/11/01/rg351p-starter-guide/#Online
https://smile.amazon.com/gp/product/B00H28H8DU/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=thedomman-20&creative=9325&linkCode=as2&creativeASIN=B00H28H8DU&linkId=685e33f3bff24c5aae2e58d86717a8fa&sa-no-redirect=1

That wifi chip should work with ArkOS.  Did you make sure that you did not have power plugged in at the same time with the wifi adapter?  Tat will cause it not to work on the RG351P.  Also be sure that you are using the latest version of ArkOS which is linked from the main github page.  It is version 1.4.

@christianhaitian does the port matter? Which should I use? I have 1.3 can I flash it without losing my roms? is there a good tutorial to follow for that? I am on a mac.

Which usb c port is used does not matter as along as power is not plugged in at the same time.  If you can't update online with something like a usb to ethernet adapter, you will need to copy your roms out of the partition, flash the card, then copy them back in once completed.

Thanks @christianhaitian I will give it a try and report back.

@christianhaitian can't seem to burn the 1.4 image.
Tried a reboot, redownloading the image, wiping the disk before, and I can't get it to work. I am going to try the Mega image instead of the Gdrive. Here is the applepi log
01:32:21  Initialization Info
01:32:21  - ApplePi-Baker 2.2.3 (Build 1)
01:32:23  - macOS Version 10.16 (Build 20B29) x86-64 (64 bit application)
01:32:23  - libarchive 3.3.3, by Tim Kientzle
01:32:23  - liblzma 5.2.4, by Mike Kezner et al.
01:32:23  - zlib 1.2.11, by Greg Roelofs && Mark Adler
01:32:23  - bz2lib 1.0.6, by Julian Seward
01:32:24  No HelperTool Found - Installing HelperTool
01:32:50  HelperTool Updated to 1.8.2
01:32:56  Full Disk Access First Test: FAILED
01:32:58  Full Disk Access Second Test: FAILED
01:32:59  Full Disk Access Third Test: FAILED
01:32:59  Disk not added to list - Full Disk Access FAILED
01:36:56  Full Disk Access First Test: SUCCESS
01:36:56  Drive added to list: /dev/disk2 (256 GB Mass Storage Device)
01:37:31  Restore -- START RESTORE
01:37:32  Restore Started - Restoring File to Disk
01:37:32  Destination - /dev/disk2 (256 GB Mass Storage Device)
01:37:32  Disk Presence Check - Selected Disk Found
01:37:32  Source - File: /Users/williamkerber/Downloads/ArkOS_RG351P_v1.4.7z
01:37:32  Source - Trying to determine source size
01:37:32  Source - Source is a Compressed File
01:37:32  Source - Determining size of entries stored in Archive
01:37:32  Opening Archive /Users/williamkerber/Downloads/ArkOS_RG351P_v1.4.7z
01:37:32  Source - Size of ArkOS_RG351P_v1.4.img is (7,948,206,080 bytes)
01:37:32  Destination - Verifying Disk Capacity
01:37:32  Destination - Max disk capacity is 256,068,550,656 bytes
01:37:32  Disk Size Check - Capacity of Selected Disk PASSED
01:37:32  Unmounting - Attempting Unmount of all Partition(s) of selected Disk
01:37:32  Trying to unmount /dev/disk2
01:37:32  UnMount - Waiting for unmount to complete
01:37:32  UnMount - Waiting for unmount to complete - No disk(s) unmounted yet.
01:37:33  UnMount - Waiting for unmount to complete - No disk(s) unmounted yet.
01:37:34  UnMount - Waiting for unmount to complete - No disk(s) unmounted yet.
01:37:35  Partition Unmounted - /dev/disk2s1
01:37:35  UnMount - Waiting for unmount to complete - 1 Disk unmounted.
01:37:36  Unmounting - Completed
01:37:36  Extract IMG - Extracting IMG from Compressed Archive for Resizing
01:37:36  Extract IMG - Extracting IMG from Compressed Archive (ArkOS_RG351P_v1.4.7z, entry: ArkOS_RG351P_v1.4.img)
01:37:36  Extract IMG - Opening Compressed Archive (ArkOS_RG351P_v1.4.7z)
01:37:36  Extract IMG - Extracting Entry: ArkOS_RG351P_v1.4.img
01:37:36  Extract IMG - Destination: /Users/username/tmp/applepibaker_temporary.img
01:40:57  Expanding - Disabled expanding partition, no Linux Partition found
01:40:57  Resize IMG - Resizing and Rebuilding IMG file
01:40:57  RESIZE - Attempting to RESIZE a Linux partition in the IMG file "applepibaker_temporary.img"
01:40:57  RESIZE - Find Ext2/3/4 partition and determine size and location
01:40:57  RESIZE - STATS:
01:40:57    File Size         : 7,948,206,080 Bytes (15,523,840 Sectors)
01:40:57    Linux Partition   : 7,340,032,000 Bytes (14,336,000 Sectors)
01:40:57    Starts at         : Byte 134,217,728 (Sector 262,144)
01:40:57    Linux Target Size : 255,933,284,352 Bytes
01:40:57  RESIZE - Extracting Ext2/3/4 Linux partition
01:41:07  RESIZE - Verifying and Fixing extracted Linux Partition
01:41:08  RESIZE - Expanding Linux Partition to 255,933,284,352 Bytes
01:41:14  RESIZE - Creating new IMG file and Updating Partition Table IMG file
01:42:09  RESIZE - ERROR: Read/Write Error while copying Linux partition
01:42:11  Error - Read/Write Error while copying Linux partition

Reinstalled ApplePi Baker....and its working again.

@christianhaitian You can close this I am all good now, I appreciate Ark and your help! Thank you!


Azure B2C + Transmit Security (BindID) content updated from Transmit

We updated the content to reflect the features of Transmit Security's platform (BindID is no longer used)

@microsoft-github-policy-service agree company="Transmit Security"


bootstrap: fixes for openSUSE

When a package is found not to exist, we need to also check if there
is another package installed that provides a capability of the same
name.
Also, the python-devel package must be installed, or the pip phase
fails.
http://tracker.ceph.com/issues/14002 Fixes: #14002
Signed-off-by: Nathan Cutler<EMAIL_ADDRESS>

Manually tested on openSUSE 13.2 - without this patch, bootstrap fails. With this patch, it succeeds.

Thanks! Looks good!


Where Filtering with exract.custom

When using a where filter with extract.custom, if the where sends an empty batch it causes a break.
Would be good to catch empty batches, before sending the data to the wrangle.

There are two different types of wrangles:

returns a modified df (NOT similar len rows)
The ones that return a modified df are skipped over due to no_where_list

-returned rows are the SAME length.
Need to continue for the wrangles that are same length. They should skip the entire wrangle because there are no rows in that dataframe and thus no wrangle should be performed for each row.
Write test cases for multi-wrangle recipes (where there should be a where clause that returns no rows).


Entity Messaging

Messages will be the basis of our networking system, always in play both on or offline.

Entities can send and receive messages.
Messages can be broadcast to all entities, or targeted to one or more specific entities.
Messages are conceptually along the lines of:

"I shot <box id=231> with 50 damage".
"Hey <spawnlord id=1>, please spawn a player entity for me".
"Hey all entities, the round just ended."

Messages serve as both commands and events in the game engine.

Implemented basic messenger system with d320a0d2ca981a037959e50b76e805ae85d6176c


feat: absolute convergence from conditional of power series

From https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Bounds.20on.20alternating.20convergent.20series/near/417504820

maintainer merge

bors merge


Added Ebook Pemrograman Web dengan PHP dan MySQL

Hacktoberfest notes:

due to volume of submissions, we may not be able to review PRs that do not pass tests and do not have informative titles.
please read our contributing guidelines
be sure to check the output of Travis-CI for linter errors
if this is your first open source contribution, make sure it's not your last!

What does this PR do?
Add Resource(s) | Remove Resource(s) | Add info | Improve Repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Not a duplicate
[ ] Included author(s) if appropriate
[ ] Lists are in alphabetical order
[ ] Needed indications added (PDF, access notes, under construction)

Closing this as this is not the official source of the resource.
The resource can be found at:
http://achmatim.net/2009/04/15/buku-gratis-pemrograman-web-dengan-php-dan-mysql
But this URL is already in the repository.


Can't connect to MQTT Broker

Hello,
I wanted to set up the script today and it actually does what it should except that it connects to my MQTT broker.
Here is an excerpt from the log:
PS C:\Users\Try> rgb2mqtt-run -v 2024-11-16 19:47:45,980 INFO: Connecting to MQTT client... 2024-11-16 19:47:45,985 INFO: Connecting to OpenRGB server... 2024-11-16 19:47:45,990 INFO: Connection to OpenRGB succeeded! 2024-11-16 19:47:46,005 INFO: Connected to MQTT client with result code 0 2024-11-16 19:47:48,019 INFO: Connected to MQTT client with result code 0 2024-11-16 19:47:50,028 INFO: Connected to MQTT client with result code 0 2024-11-16 19:47:52,039 INFO: Connected to MQTT client with result code 0 2024-11-16 19:47:54,078 INFO: Connected to MQTT client with result code 0 2024-11-16 19:47:56,088 INFO: Connected to MQTT client with result code 0 2024-11-16 19:47:58,100 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:00,124 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:02,131 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:04,158 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:06,171 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:08,182 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:10,191 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:12,202 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:14,213 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:16,222 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:18,232 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:20,251 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:22,284 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:24,317 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:26,358 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:28,359 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:30,367 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:32,376 INFO: Connected to MQTT client with result code 0 2024-11-16 19:48:34,387 INFO: Connected to MQTT client with result code 0 Traceback (most recent call last):   File "<frozen runpy>", line 198, in _run_module_as_main   File "<frozen runpy>", line 88, in _run_code   File "C:\Users\Try\AppData\Local\Programs\Python\Python312\Scripts\rgb2mqtt-run.exe\__main__.py", line 7, in <module>   File "C:\Users\Try\AppData\Local\Programs\Python\Python312\Lib\site-packages\rgb2mqtt\run.py", line 128, in run_rgb2mqtt     mqtt_client.loop_forever()   File "C:\Users\Try\AppData\Local\Programs\Python\Python312\Lib\site-packages\paho\mqtt\client.py", line 1773, in loop_forever     self._reconnect_wait()   File "C:\Users\Try\AppData\Local\Programs\Python\Python312\Lib\site-packages\paho\mqtt\client.py", line 3612, in _reconnect_wait     time.sleep(min(remaining, 1)) KeyboardInterrupt PS C:\Users\Try>
Is this a bug in the script or is it on the client side?
Otherwise, thank you for keeping the project alive.

Hey sorry for the late reply, it's hard for me to debug what's going wrong. Where is your MQTT server running? Is it reachable from the device where you run this script?

Thanks for your reply, let me try to explain the problem. When I start the script with "-v" I get this messages:

I think all connection established and working, the script is connected to OpenRGB:

But no new device is discovered in Home Assistant. (I used Mosquitto on my Home Assistant server.)
I think the new device should be the name "Spiele-PC RGB-MQTT", same like show in OpenRGB?
This is my current config file:

And this happens when I stop the script:

I'm not sure it is an issue. You have an idea or I have a configuration issue?

Check, so the script is both connected to openRGB and your mosquitto broker. Are you using the MQTT integration in Home Assistant (see: https://www.home-assistant.io/integrations/mqtt)? Auto-discovery should be on by default, so any new topic should be automatically added to HA as a light.
Maybe check the logs of the MQTT integration, or see if you can use the configuration page of the integration to listen to specific messages. Specifically when starting the script, all connected devices should send their state, so the MQTT integration should receive messages on: homeassistant/light/device_name/state (in your case e.g. homeassistant/light/Keyboard/state).
Let me know if this helps!

I have a few new findings after a few tests. I used MQTT-Explorer to see what the Mosquitto receives.
I can see my RGB devices from my main Windows 11 system but only for 1 Second. After updating the MQTT Explorer, the devices are no longer visible.
In other words, the script is puplishing my devices, but then seems to crash and disconnects from the broker before the devices can be discovered by the broker.
I have checked this with my old Windows 10 laptop and all connections are stable and I can use my devices in HA via MQTT.
Do you have any ideas where I could look for the problem?
The only other thing I can think of is that a manufacturer's software on my main system is causing the problem.
I don't have any such software on my laptop...
I'll give that a try.


App: explicitly pass the store to the NotificationsPortal

Because of mismatched redux versions between NotificationPortal and our app, the former couldn't automatically discover the store.
Also drop reregister of notificationsReducer, we already register it in store.

it'll resolve this error


Feature: Add multi-threading and retry when caching Tokens and Markets during startup

Abstract
As of now, 2 getProgramAccounts RPC requests are made to a Solana RPC server on startup, first to cache the USDC markets, then the SOL markets. They are very slow, and can timeout, causing startup to fail.
Fix

Add multi-threading to the 2 RPC calls, so they are made concurrently. CompleteableFuture may be preferred, or the most modern Java concurrency pattern that is elegant.
If RPC timeout is experienced during either of the threads, retry up to 3 times.

Retry doesn't seem needed anymore, now that the majority of the Solana network is on 1.10.25, and both markets cache in ~1-3 seconds with the threading.

Resolved by 54e3351


[Blog Comments] Java Look & Feel: Make Paint Great Again - 8/9/2020

https://tadukooverse.github.io/blog/2020/08/09/java-look-feel-make-paint-great-again.html

Testing comment


Argo parameters count values

Count parameters are stored as floats (NC_FLOAT); the range of NC_FLOAT values is too small. The proposal is to:

Store count values in 16 or 32-bit unsigned integer (NC_USHORT or NC_UINT) instead of 16-bit floating point (NC_FLOAT)
Use the standard NC_FILL_USHORT or NC_FILL_UINT as fill value.

As an example, the parameters RAW_DOWNWELLING_* and RAW_DOWNWELLING_PAR range of valid values is greater than the NC_FLOAT range. We should allow NC_UINT so that we can address [0 : (2^32)-1] = [0 : 4,294,967,295].
https://github.com/euroargodev/ArgoNetCDF/issues/1
Status : ready, urgent
The “number of” parameters should also be stored as 16 or 32-bit integer, in NC_USHORT with NC_FILL_USHORT  as fill value:

NB_SAMPLE_CTD, NB_SAMPLE_SFET, NB_SAMPLE_<parameter_sensor_name>

Done on 20/01/2022
http://www.argodatamgt.org/Data-Mgt-Team/News/Argo-physical-parameters-list-updated4


Library has compilation issue with Android sdk 33

Bug description:
Lib Compilation issue on Android sdk 33
To Reproduce:
Issue can be reproduced by simply using the existing lib and targeting the compileSdkVersion = 33
Expected behavior:
App should build.
Screenshots/Videos:
RNCWebviewManager has compilation issues
react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java:277: error: cannot find symbol
view.getSettings().setAppCachePath(ctx.getCacheDir().getAbsolutePath());
^
symbol:   method setAppCachePath(String)
location: class WebSettings
react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java:279: error: cannot find symbol
view.getSettings().setAppCacheEnabled(true);
^
symbol:   method setAppCacheEnabled(boolean)
location: class WebSettings
Environment:

OS: Android
OS version: 13 (api level 33)
react-native version: 0.68.1
react-native-webview version: Reproducible with latest and older versions (11.22.2,  11.2.3 tried this versions for test)

I have also the same issue with android 13 native implementation
while i migrated it to 33 ,setAppCacheEnabled and setAppCachePath can not be resolved
Is there any replacement for them ?

Any alternative api for setAppCacheEnabled and setAppCachePath in android 13 version?

These methods were deprecated on Android SDK level. They are no-op in Android 13 and it seems they are safe to simple be dropped from the RN app code base. As per the docs:
Consider using Service Workers instead. See https://web.dev/appcache-removal/ for more information.

Hi, any work around on this bug? still can find a way for this..

@bukshi This was resolved in 11.22.7 and so should no longer be a problem if you just update to the latest version

🎉 This issue has been resolved in version 11.22.7 🎉
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot 📦🚀

🎉 This issue has been resolved in version 11.22.7 🎉
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot 📦🚀

This worked for me! Tks!

after updating to v11.22.7 and also tried the latest version v13.x, while building the Android version, I got the following error, any idea?
Unable to resolve module ./RNCWebViewNativeComponent from 'node_modules/react-native-webview/lib/WebView.android.js'

Can you give me detailed instructions on resetting the metro bundler cache?

after updating to v11.22.7, while building the Android version, I got the following error, any idea?
Unable to resolve module ./RNCWebViewNativeComponent from 'node_modules/react-native-webview/lib/WebView.android.js'

Edit: this was due to the metro bundler cache issue, fixed by resetting the cache!

Can you give me detailed instructions on resetting the metro bundler cache?

Can you give me detailed instructions on resetting the metro bundler cache, please?

@tungthanh1497 yeah, try running npm start -- --reset-cache


expect last dimension of the array to have 2 values (for both real and imaginary part)

I do not know how can I feed data returned by nj.images.rgb2gray to this fft function.
  const rgbData = nj.images.read(path.resolve(uplodsDir, `./${filename}`))
  const grayData = nj.images.rgb2gray(rgbData)
  nj.fft(grayData)

it throw an error "expect last dimension of the array to have 2 values (for both real and imaginary part)"

never mind, I figured this out :)


feature request: multi-module support

Projects which combine Eta with other JVM languages such as Java will tend to have a multi-module structure in which Eta is used only in certain modules, rather than at the top level or in all modules.
An example is the Semantic Synchrony project (see the Gitter channel for some context). It is currently a pure Java, Maven multiproject; however, I am interested in migrating some core parser and model-view code to Haskell. This code exists only in the 'brain' module of the project, and that is where I would like to use Eta. I have gotten a start in the 'eta' branch by moving to Gradle and using gradle-eta, but I found I had to put the *.cabal file at the top level. The Eta artifacts are also built at the top level. The Haskell code and the gradle-eta dependency, meanwhile, are only in the module.
It would lower the barrier to adoption if it were possible to constrain Eta to one or more modules of a multi-module build. An example multi-module build in the examples directory would be perfect.

@joshsh We found that we were using getRootDir() instead of getProjectDir() which was messing it up for multi-module builds as you discovered. We have pushed a fix on master.
Let us know if you have trouble setting it up. It should be as simple as adding the plugin in the build.gradle of the subproject and running the :[module]:compileEta task. If you have any more suggestions on how to make it smoother, please file more issues.

@joshsh There's an example in examples/multi demonstrating a multi-project build. We've updated the README with clear instructions on how to build the plugin from source. Let us know if you need any assistance.

@joshsh We now have now deployed the plugin to the Gradle Plugin Portal so you should be able to use it easily. See the README for more details.


Could you please implement Samsung SmartThings F APP UK V2 Power Outlet

Hi there,
Thanks for the fantastic work you've done :)
Could you please implement the Samsung UK Smart Wall Plug. It seems like the zigbee2mqtt supports it.
https://www.amazon.co.uk/Samsung-SmartThings-F-APP-UK-V2-Power-Outlet/dp/B01LXXNGGD
**Samsung SmartThings Smart Plug **
MQTT message with device information
    {
      "ieeeAddr": "0x000d6f00057bxxxx",
      "type": "Router",
      "networkAddress": 15923,
      "model": "F-APP-UK-V2",
      "friendly_name": "SmartThings-Outlet-UK",
      "manufacturerID": 4174,
      "manufacturerName": "CentraLite",
      "powerSource": "Mains (single phase)",
      "modelID": "3200-Sgb",
      "hardwareVersion": 3,
      "dateCode": "����������������",
      "lastSeen":<PHONE_NUMBER>309
    }

MQTT messages from device
2020-02-15 22:27:37: MQTT publish: topic 'zigbee2mqtt/SmartThings-Outlet-UK', payload '{"state":"OFF","linkquality":68}'

2020-02-15 22:27:39: MQTT publish: topic 'zigbee2mqtt/SmartThings-Outlet-UK', payload '{"state":"ON","linkquality":78}'

Thanks in advance.
Regards,
Oszkar

I've figured out how to add it. Going to open a PR shortly.


Add send introspection to config

For more security we need to have a way to set introspection to false. So nobody kann get the structure.

Finish. Added in rc_0.0.13