Cleanup Test Suite

Extract moduleForHelper to DRY up test setup
Extract hoursFromNow to DRY up time arithmetic
In tests, re-assign this.container and this.registry depending
upon what is available

big :+1:

@stefanpenner tests looking good except for on `canary:
https://travis-ci.org/stefanpenner/ember-moment/jobs/81103209
not ok 1 PhantomJS 1.9 - global failure
    ---
        actual: >
            null
        message: >
            Error: Could not find module dummy/tests/test-helper
        Log: |
    ...
not ok 2 PhantomJS 1.9 - global failure
    ---
        actual: >
            null
        message: >
            Error: Could not find module ember-cli/test-loader
        Log: |
    ...

Canary is broken (I broke it, will fix after dinner)

You're awesome, thanks :+1:


Remove "default" placeholder from suppresssion file

Contributing to the Azure SDK
Aggregate report for default exact match: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1732103&view=logs&s=cc49c870-1b46-54c2-b7f0-f44e09b861e9
Aggregate report without default: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1732210&view=results
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

Looks good assuming the scan results are clean.

Will not merge until the errors get cleaned up


[SQS customization] Checksum validation

Can be disabled with DisableComputeChecksums. This may be modeled now?

No idea if this is still relevant. Adding retriage tag.

I think we determined this isn't necessary since md5 gets compiled into the SDK rather than it being maybe available by name in a VM (e.g., Java's crypto algorithms, where md5 might not exist for FIPS).


CSTR process group has not been initialized

I try to train cstr model with command:
python tools/train.py configs/cstr.py
I recieved error:
Exception has occurred: RuntimeError
Default process group has not been initialized, please make sure to call init_process_group.
  File "/home/vedastr/vedastr/models/utils/conv_module.py", line 158, in forward
    x = self.norm(x)
  File "/home/vedastr/vedastr/models/bodies/feature_extractors/encoders/backbones/general_backbone.py", line 42, in forward
    x = layer(x)
  File "/home/vedastr/vedastr/models/bodies/component.py", line 20, in forward
    return self.component(x)
  File "/home/vedastr/vedastr/models/bodies/body.py", line 37, in forward
    out = component(inp)
  File "/home/vedastr/vedastr/models/model.py", line 21, in forward
    x = self.body(inputs[0])
  File "/home/vedastr/vedastr/runners/train_runner.py", line 115, in _train_batch
    pred = self.model((img,))
  File "/home/vedastr/vedastr/runners/train_runner.py", line 165, in __call__
    self._train_batch(img, label)
  File "/home/vedastr/tools/train.py", line 45, in main
    runner()
  File "/home/vedastr/tools/train.py", line 49, in <module>
    main()

Can you tell me please, where I wrong?

@ELDIABLO4400
Hi. we set default batch normalization as SyncBn to use distributed training which will cause the problem when run with DataParallel mode. You can use this command tools/dist_train.py configs/cstr.py 4.


Render template without RoutingContext.

We have method:
TemplateEngine.render(RoutingContext context, String templateDirectory, String templateFileName, Handler<AsyncResult> handler)
Would be great have possibility for rendering without obligatory RoutingContext context

@mystdeim I'm looking at this and thinking, we probably could create a render method with a Map as the source of the template variables, however, the context has already a map for you and that is where the variables are extracted from.
What would be the benefit of this since this API is used inside web there is always a context. I don't see the use case, but feel free to tell more about it.

@pmlopes I would like to render emails with templates. In this case I do not have a routingcontext, so it would be handy to use the templateengine

I have exactly the same requirements as @mllrmat, to be more specifically, I would like to have a service running in backgroud to render emails with templates and send out, there is no RoutingContext involved in this case.

@pmlopes I asked @castx1981 to comment on this issue. It seems the use case is not isolated. How about looking into it for 3.6?

We can decouple the engines, however the base interface is on web so it always pulls it as a dependency, we could introduce a new interface just in common with map and deprecate the old one on 4.x?

Sounds good but what do you mean with "just in common"?

I mean move the interface from vertx-web to vertx-web-common otherwise if you just want to use a template engine you won't need to bring the full dependency tree from web to your project

@pmlopes I think I missed the news about this module. Can you briefly explain why it was created and why BodyCodec/MultipartForm moved there? I'm trying to understand why the templ engines shouldn't be in their own module (not necessarily in a different repo)?

Those components never moved, they were there since day 1. The idea was that body codecs could be used by routing context to parse uploads and multipart could be shared with mail client to reduce duplication. This code was added with the web client. My idea to add the interface there would be to avoid having more modules.

Ok, thanks for the details. But why just the interface? If users need, for example, Vert.x Freemarker for implementation, they will still depend on vertx-web, won't they? I must be missing something obvious, sorry

I think the link can be broken. The templ- modules should depend on common instead of web, the original interface becomes deprecated and adapts the calls to the map version of the API. I haven't tested or checked it but I think it could be done.

OK, I just added this to the 3.6 milestone, can you please move it to vertx-web with Waffle?


Image regression tests

A few simple tests to validate basic functionality using matplotlib's image comparison

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3b46d9e) 83.62% compared to head (fcf215d) 83.72%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #201      +/-   ##
==========================================
+ Coverage   83.62%   83.72%   +0.09%
==========================================
  Files          26       26
  Lines        1020     1020
==========================================
+ Hits          853      854       +1
+ Misses        167      166       -1


working login with google

Codecov Report
Base: 94.24% // Head: 92.31% // Decreases project coverage by -1.92% :warning:

Coverage data is based on head (8c9db3f) compared to base (6588d4b).
Patch coverage: 14.28% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
- Coverage   94.24%   92.31%   -1.93%
==========================================
  Files          42       42
  Lines         851      872      +21
  Branches      141      145       +4
==========================================
+ Hits          802      805       +3
- Misses         48       64      +16
- Partials        1        3       +2

Impacted Files
Coverage Δ

src/authentication/login.ts
61.22% <14.28%> (-35.21%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


The GC after application deletion is not sequential

Describe the bug

The GC after application deletion is not sequential.
If we have a controller and CR in an application, when we delete the application, the controller will be deleted first. In this case, the finalizer managed by the controller will be added to the CR. As a result, the deletion of the CR fails.
To Reproduce

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: mysql
  namespace: default
spec:
  components:
    - name: mysql-controller
      type: helm
      properties:
        repoType: helm
        url: https://presslabs.github.io/charts
        chart: mysql-operator
        version: "0.4.0"
    - name: mysql-cluster
      type: raw
      dependsOn:
        - mysql-controller
      properties:
        apiVersion: mysql.presslabs.org/v1alpha1
        kind: MysqlCluster
        metadata:
          name: mysql-cluster
        spec:
          replicas: 1
          secretName: mysql-secret

Apply the yaml above and delete the app later.
Expected behavior

Screenshots

KubeVela Version

Cluster information

Additional context

the Expected behavior is that mysql-cluster be deleted firstly and waiting done, mysql-controller is deleted secondly?

@fourierr yes, the reversal order of the creation.

To fix this issue that GC not sequential will have many code changes,  so i think we should have a discussion to talk about it.
I propose the solution and it is not very graceful perhaps:
we have a linked list struct in memory ,and each component match a Node, compName is component's Name.
type Node struct {    compName string,    Next []*Node }
Step1. in Init Stage, range all component ,if comp_a dependsOn comp_b, it will node_a -> node_b,and node_a was set to root. and there a example, we have five component A,B,C,D,E  the relationship is as follows
A      dependsOn        _
B      dependsOn        _
C      dependsOn        A,B
D      dependsOn        C
E      dependsOn        C,D

Step2. in Finalize Stage, gc the component from root util the root==nil. and if root have multi Next,  the component that are not be dependent will be set to root Node.

ping @wonderflow

Why can't we use status.workflow.steps for GC directly?
Right now In status.workflows.steps, we'll have all running and finished steps. For those workflow steps that is not starting, it won't be shown in status.
But the status of the steps is now sequential, we do not record DependsOn or Inputs/Outputs in it, still I think it's enough to handle GC.

Why can't we use status.workflow.steps for GC directly?
Right now In status.workflows.steps, we'll have all running and finished steps. For those workflow steps that is not starting, it won't be shown in status. But the status of the steps is now sequential, we do not record DependsOn or Inputs/Outputs in it, still I think it's enough to handle GC.

We're now using resourceTracker for GC, sorry for the misleading, we should add sequence in resourceTrackers's managedResources like:
 managedResources:
  - dependsOn:
         - A
         - B
      C: {...}
  - A: {...}
  - B: {...}

Why can't we use status.workflow.steps for GC directly?
Right now In status.workflows.steps, we'll have all running and finished steps. For those workflow steps that is not starting, it won't be shown in status. But the status of the steps is now sequential, we do not record DependsOn or Inputs/Outputs in it, still I think it's enough to handle GC.

We're now using resourceTracker for GC, sorry for the misleading, we should add sequence in resourceTrackers's managedResources like:
 managedResources:
  - dependsOn:
         - A
         - B
      C: {...}
  - A: {...}
  - B: {...}

I understand that if i want to delete one item of managedResources, should check the item's dependsOn firstly, am I?


Run cypress tests with security

Description
This PR adds a new CI check to run the cypress tests in this repo against a cluster with security enabled. Currently, this repo only performs tests with security at release-time so adding a PR check can help catch issues earlier.
Issues Resolved
Resolves: https://github.com/opensearch-project/index-management-dashboards-plugin/issues/1203
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

All tests passed 🎉

I'll create a manual backport for this


rpc: add invokecontractverify RPC-method

Not exactly the https://github.com/neo-project/neo-modules/pull/378#issuecomment-722652859 but changes ported from https://github.com/neo-project/neo-modules/pull/409.

@fyrchik, please review.

@fyrchik, please review.


can’t read sheetname of some xlsx file

这个文件，内部的表名读不出来，是不是很奇怪，因为xml在parse的时候失败了。
临清.xlsx
All  the versions of go can‘t read the sheetname of this file。

@lab37 Thanks for your issue. I have fixed it.

Good work！Processing is very fast。But when  I tried to read this file ,another problem arises.  The func  GetRows() return wrong code。I checked this ,it like caused by the func sharedStringsReader() in the 252 line of  row.go。byte[ss] maybe the end。
按下葫芦起来瓢，还是有点小问题。

ps：I get another file which may cause the Memory leak. My computer got stuck when it read this file by  excelize. Though I knew  there was some useless form in this file that made it so big，I can open it correctly by office. So I think this file should be treated as a normal document，and  the  problem should be belongs to excelize.
file:
华润菏泽.zip

@xuri That explains a lot，Thank you very much.


failed to install via pip

here is error log
$ pip install sanic-openapi
Collecting sanic-openapi
  Using cached sanic-openapi-0.1.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): sanic>=0.3.0 in ./venv/lib/python3.5/site-packages (from sanic-openapi)
Requirement already satisfied (use --upgrade to upgrade): uvloop>=0.5.3 in ./venv/lib/python3.5/site-packages (from sanic>=0.3.0->sanic-openapi)
Requirement already satisfied (use --upgrade to upgrade): httptools>=0.0.9 in ./venv/lib/python3.5/site-packages (from sanic>=0.3.0->sanic-openapi)
Requirement already satisfied (use --upgrade to upgrade): ujson>=1.35 in ./venv/lib/python3.5/site-packages (from sanic>=0.3.0->sanic-openapi)
Requirement already satisfied (use --upgrade to upgrade): aiofiles>=0.3.0 in ./venv/lib/python3.5/site-packages (from sanic>=0.3.0->sanic-openapi)
Installing collected packages: sanic-openapi
  Running setup.py install for sanic-openapi ... error
    Complete output from command $PROJECT_PATH/venv/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/g8/9ff4t0k52rvdfrh8vgg7kjq40000gn/T/pip-build-wupv41gv/sanic-openapi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/g8/9ff4t0k52rvdfrh8vgg7kjq40000gn/T/pip-hipmbyu3-record/install-record.txt --single-version-externally-managed --compile --install-headers $PROJECT_PATH/venv/include/site/python3.5/sanic-openapi:
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/sanic_openapi
    copying sanic_openapi/__init__.py -> build/lib/sanic_openapi
    copying sanic_openapi/doc.py -> build/lib/sanic_openapi
    copying sanic_openapi/openapi.py -> build/lib/sanic_openapi
    copying sanic_openapi/swagger.py -> build/lib/sanic_openapi
    creating build/lib/sanic_openapi/ui
    error: can't copy 'sanic_openapi/ui/css': doesn't exist or not a regular file

    ----------------------------------------
Command "$PROJECT_PATH/venv/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/g8/9ff4t0k52rvdfrh8vgg7kjq40000gn/T/pip-build-wupv41gv/sanic-openapi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/g8/9ff4t0k52rvdfrh8vgg7kjq40000gn/T/pip-hipmbyu3-record/install-record.txt --single-version-externally-managed --compile --install-headers $PROJECT_PATH/venv/include/site/python3.5/sanic-openapi" failed with error code 1 in /private/var/folders/g8/9ff4t0k52rvdfrh8vgg7kjq40000gn/T/pip-build-wupv41gv/sanic-openapi/

I've had a similar problem. pip3 installed it fine locally, but throws the same error (except for 'sanic_openapi/ui/lang') when attempting installation within a docker image.

+1 got same error message on  python3.5

@toughrogrammer Can you check the newest version and see if this still happens?

seems specific issue to pip and sanic-openapi at the time. Please close..
FROM python:3.5.1
RUN pip3 --version
RUN pip3 install sanic-openapi==0.1.5

pip 8.1.2
error: can't copy 'sanic_openapi/ui/fonts': doesn't exist or not a regular file
FROM python:3.5.7
RUN pip3 --version
RUN pip3 install sanic-openapi==0.1.5

Successfully installed aiofiles-0.4.0 httptools-0.0.13 multidict-4.5.2 sanic-19.3.1 sanic-openapi-0.1.5 ujson-1.35 uvloop-0.12.2 websockets-6.0
FROM python:3.5.1
RUN pip3 --version
RUN pip3 install sanic-openapi==0.4.0

Successfully installed aiofiles-0.4.0 httptools-0.0.13 multidict-4.5.2 sanic-19.3.1 sanic-openapi-0.4.0


Fix installation

Installation of necessary packages wasn't working with the old requirements.

Added distinct installation methods for Windows and Linux
Stronger version requirements on Linux

This PR closes #28

Simpler fix possible, read https://stackoverflow.com/questions/73347010/why-do-i-get-an-error-when-trying-to-read-a-file-in-geopandas-included-datasets/73354885#73354885
 caused by incompatibility of shapely 1.7 and numpy 1.23. Either update shapely to 1.8 or downgrade numpy


Error: Missing key store

Hello, thank you for this app. It is exactly what I was searching for and I was excited to test it.
Unfortunately, after installing and configuring the app following the installation instructions I'm stuck with the following error:
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 470, in _get_node
raise ConfigKeyError(f"Missing key {key}")
omegaconf.errors.ConfigAttributeError: Missing key store.
The show-configs command for my user ouputs the following configuration:
INFO     General Config                                    main.py:88
INFO     {'user': 'Myusername', 'token':          main.py:89
              'mytoken'}
INFO     User Games Config                             main.py:90
INFO     {}                                                           main.py:91
INFO     User Openings Config                         main.py:92
INFO     {}

What am I missing?
Thank you in advance for your patience.

I did the procedures as indicated in the instructions, but after listing the openings I get this error
`C:\Users\Gabriel>chessli openings ankify --since last-week
🔥 CHESSLI OPENINGS 🔥
[09:28:13] Fetching games of Gabrielzx.                                                                                games.py:66
Traceback (most recent call last):
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\Scripts\chessli.exe_main.py", line 7, in
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\typer\main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\typer\main.py", line 497, in wrapper
return callback(**use_params)  # type: ignore
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\chessli\cli\openings.py", line 76, in ankify
games = GamesFetcher(chessli_paths, cli_config).fetch_games()
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\chessli\games.py", line 114, in fetch_games
if self.config.store:
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 357, in getattr
self._format_and_raise(
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\base.py", line 231, in _format_and_raise
format_and_raise(
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf_utils.py", line 873, in format_and_raise
_raise(ex, cause)
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf_utils.py", line 771, in _raise
raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 353, in getattr
return self._get_impl(
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 444, in _get_impl
node = self._get_child(
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\basecontainer.py", line 73, in _get_child
child = self._get_node(
File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 482, in _get_node
raise ConfigKeyError(f"Missing key {key!s}")
omegaconf.errors.ConfigAttributeError: Missing key store
full_key: store
object_type=dict

Same-ish issue here
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\Scripts\chessli.exe\__main__.py", line 4, in <module>
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\chessli\__init__.py", line 137, in <module>
    berserk_client = get_berserk_client(main_config.token)
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 355, in __getattr__
    self._format_and_raise(
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\base.py", line 231, in _format_and_raise
    format_and_raise(
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\_utils.py", line 900, in format_and_raise
    _raise(ex, cause)
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\_utils.py", line 798, in _raise
    raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 351, in __getattr__
    return self._get_impl(
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 442, in _get_impl
    node = self._get_child(
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\basecontainer.py", line 73, in _get_child
    child = self._get_node(
  File "C:\Users\eminent\AppData\Local\Programs\Python\Python310\lib\site-packages\omegaconf\dictconfig.py", line 480, in _get_node
    raise ConfigKeyError(f"Missing key {key!s}")
omegaconf.errors.ConfigAttributeError: Missing key token
    full_key: token
    object_type=dict

Any solution yet, I have the same problem with Python Python 3.10.1.
Knd regards

I ran into the same issue on Linux with the same config posted above. Python 3.10.8, pip 22.3.1
Traceback (most recent call last):
  File "/home/aa0/.local/bin/chessli", line 8, in <module>
    sys.exit(app())
  File "/home/aa0/.local/lib/python3.10/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/home/aa0/.local/lib/python3.10/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/aa0/.local/lib/python3.10/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/aa0/.local/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/aa0/.local/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/aa0/.local/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/aa0/.local/lib/python3.10/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/aa0/.local/lib/python3.10/site-packages/typer/main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "/home/aa0/.local/lib/python3.10/site-packages/chessli/cli/openings.py", line 76, in ankify
    games = GamesFetcher(chessli_paths, cli_config).fetch_games()
  File "/home/aa0/.local/lib/python3.10/site-packages/chessli/games.py", line 114, in fetch_games
    if self.config.store:
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 357, in __getattr__
    self._format_and_raise(
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/base.py", line 231, in _format_and_raise
    format_and_raise(
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/_utils.py", line 873, in format_and_raise
    _raise(ex, cause)
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/_utils.py", line 771, in _raise
    raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 353, in __getattr__
    return self._get_impl(
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 444, in _get_impl
    node = self._get_child(
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/basecontainer.py", line 73, in _get_child
    child = self._get_node(
  File "/home/aa0/.local/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 482, in _get_node
    raise ConfigKeyError(f"Missing key {key!s}")
omegaconf.errors.ConfigAttributeError: Missing key store
    full_key: store
    object_type=dict

Hey all,
sorry for the undescriptive error message. If I find some time in the future, I will improve upon the user experience.
Until then, can you please check if the errors persist if you follow the instructions here:
How to set up chessli - Chessli
So in short, you need to

Get an API key from lichess: Lichess API authentification
Add this API key and your user name in the general config file:

In my case, the config file is located at:  /home/pwenker/.config/chessli/config.yml
And it has the following content:
user: pwenker
token: <Lichess API key>

(of course with  replace by the actual token).

I appreciate the help! On Mac I cant find a "chessli/config.yml" file after installing with the terminal app. I anybody has success. Please share the knowledge.

I appreciate the help! On Mac I cant find a "chessli/config.yml" file after installing with the terminal app. I anybody has success. Please share the knowledge.

On Mac it should be at  ~/Library/Preferences/chessli/. Can you verify?

Cant verify. No Chessli folder, after "pip install chessli" only message: Requirement already satisfied:  ...
Searched the whole filesystem even hidden files.

Sorry, unfortunately I do not own a Mac, so I cannot debug it on my side. Could you try creating a  config.yml file yourself inside ~/Library/Preferences/chessli/ and then enter the user name and credentials as described above and see if it works out?

I tried it with no success.  So if there is anybody using mac. hints would be great. @pwenker thanks for your help again

In a mac, the file is located at ~/Library/Application Support/chessli/
Here you can find the list of directories for each operating system (chessli uses appdirs to choose the directory): https://pypi.org/project/appdirs/
Note also that it you run the program without setting the configuration, it seems to generate an empty file. So you can always run it and search for a folder called chessli in your home.

I experience the same thing as @gabrielrjzx
First solved the issue with full_key: token described by @cademcniven by adding the config.yml with user and token.
Now I get the issue with full_key: store described by @gabrielrjzx when trying to use the ankify command.
Is there a value store to be set in config.yml? Can't find it documented.

I've made a pull request to fix the issue.
It looks like you were right, if you add store: bool = typer.Option(False, help="Select if fetched games should be stored"), to
@app.command()
def ankify(

then it works.
For anyone wanting to manually do it:

Call pip show chessli. Under Location: this will show the install location of chessi e.g. /usr/lib/python3/dist-packages or /home/user/projects/chessli/venv/lib/python3.10/site-packages.
Open up chessli/cli/games.py (so /usr/lib/python3/dist-packages/chessli/cli/games.py in above example)
Add store: bool = typer.Option(False, help="Select if fetched games should be stored"), to function (becomes line 96 so call is:

def ankify(
    ctx: typer.Context,
    new_games_only: bool = typer.Option(
        True, help="Fetch new games and only ankify those"
    ),
    since_enum: SinceEnum = typer.Option(
        SinceEnum.last_time,
        "--since",
        help="Filter fetching of games to those played since `since`",
        callback=since_callback,
    ),
    max: Optional[int] = typer.Option(30, help="Limit fetching of games to `max`",),
    perf_type: Optional[List[PerfType]] = typer.Option(
        None, help="Filter fetching of games to the selected `perf_types`"
    ),
    export_only: bool = typer.Option(
        True,
        "--export-only/--directly",
        help="Select to only export the created anki cards",
    ),
    store: bool = typer.Option(False, help="Select if fetched games should be stored"),
):

@fionn-r
FYI, I tried your code edit suggestion; I still get same error...

@snorkelbuckle: I am drafting a new version that's easier to use over at https://github.com/pwenker/chessli2
That should fix everything involving this issue.


Renamed liquidation activation fabricate function to align to docs

Fixes #51

This function doesn't seem to work, as the message should have a parameter named activate_bids, not active_bids
As per docs:
https://docs.anchorprotocol.com/smart-contracts/liquidations/liquidation-queue-contract#activatebids


release v1.20.0

@coreos/rkt-maintainers PTAL

one minor thing, seems otherwise  💯

addressed review comments, PTAL

retriggered build, as I a saw next to flakes one failure which made my eyebrows raise:
14:41:07 --- FAIL: TestVolumes (28.39s)
...
14:41:07 	rkt_volume_test.go:194: Expected "<<<1>>>" but not found #13: image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.20.0+git7228ec5
14:41:07 		image: using image from file /home/fedora/workspace/rkt-github-ci/os_type/fedora-rawhide/stage1_flavor/coreos/builds/build-rkt-coreos/build-rkt-1.20.0+git/tmp/functional/test-tmp/rkt-inspect-vol-rw-write-file-only.aci
14:41:07 		image: using image from file /home/fedora/workspace/rkt-github-ci/os_type/fedora-rawhide/stage1_flavor/coreos/builds/build-rkt-coreos/build-rkt-1.20.0+git/tmp/functional/test-tmp/rkt-inspect-vol-ro-read-file-only.aci
14:41:07 		stage0: Preparing stage1
14:41:07 		stage0: Writing image manifest
14:41:07 		stage0: Loading image sha512-0d33948311eea8a20327c2dd027431a3ec6349a70f57040f1c800ccf6acaa245
14:41:07 		stage0: Writing image manifest
14:41:07 		stage0: Loading image sha512-fa729f098118283e0b1c38e220dc93d8458fed72b23c020f9d7a0e1a2d7890a6
14:41:07 		stage0: Writing image manifest
14:41:07 		stage0: Writing pod manifest
14:41:07 		stage0: Setting up stage1
14:41:07 		stage0: Wrote filesystem to /tmp/datadir-201815009/pods/run/5282f3a7-2f4a-45e7-9f38-42d4c0a8e376
14:41:07 		stage0: Pivoting to filesystem /tmp/datadir-201815009/pods/run/5282f3a7-2f4a-45e7-9f38-42d4c0a8e376
14:41:07 		stage0: Execing [/tmp/datadir-201815009/pods/run/5282f3a7-2f4a-45e7-9f38-42d4c0a8e376/stage1/rootfs/init --debug --net=default --local-config=/tmp/localdir-778205132 5282f3a7-2f4a-45e7-9f38-42d4c0a8e376]
14:41:07 		networking: loading networks from /tmp/localdir-778205132/net.d
14:41:07 		networking: loading network default with type ptp
14:41:07 		stage1: [stage1/rootfs/usr/lib/ld-linux-x86-64.so.2 stage1/rootfs/usr/bin/systemd-nspawn --boot --notify-ready=yes -Zsystem_u:system_r:svirt_lxc_net_t:s0:c619,c807 -Lsystem_u:object_r:svirt_sandbox_file_t:s0:c619,c807 --register=true --link-journal=try-guest --uuid=5282f3a7-2f4a-45e7-9f38-42d4c0a8e376 --machine=rkt-5282f3a7-2f4a-45e7-9f38-42d4c0a8e376 --directory=stage1/rootfs --bind=/tmp/rkt-tests.649897637:/opt/stage2/rkt-inspect/rootfs/dir1:rbind --capability=CAP_AUDIT_WRITE,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FSETID,CAP_FOWNER,CAP_KILL,CAP_MKNOD,CAP_NET_RAW,CAP_NET_BIND_SERVICE,CAP_SETUID,CAP_SETGID,CAP_SETPCAP,CAP_SETFCAP,CAP_SYS_CHROOT --bind-ro=/tmp/rkt-tests.649897637:/opt/stage2/rkt-inspect-2/rootfs/dir1:rbind --capability=CAP_AUDIT_WRITE,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FSETID,CAP_FOWNER,CAP_KILL,CAP_MKNOD,CAP_NET_RAW,CAP_NET_BIND_SERVICE,CAP_SETUID,CAP_SETGID,CAP_SETPCAP,CAP_SETFCAP,CAP_SYS_CHROOT -- --default-standard-output=tty]
14:41:07 		Spawning container rkt-5282f3a7-2f4a-45e7-9f38-42d4c0a8e376 on /tmp/datadir-201815009/pods/run/5282f3a7-2f4a-45e7-9f38-42d4c0a8e376/stage1/rootfs.
14:41:07 		Press ^] three times within 1s to kill container.
14:41:07 		systemd 231 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
14:41:07 		Detected virtualization rkt.
14:41:07 		Detected architecture x86-64.
14:41:07
14:41:07 		Welcome to Linux!
14:41:07
14:41:07 		Set hostname to <rkt-5282f3a7-2f4a-45e7-9f38-42d4c0a8e376>.
14:41:07 		[  OK  ] Listening on Journal Socket.
14:41:07 		[  OK  ] Created slice system.slice.
14:41:07 		[  OK  ] Started Pod shutdown.
14:41:07 		[  OK  ] Started rkt-inspect Reaper.
14:41:07 		[  OK  ] Created slice system-prepare\x2dapp.slice.
14:41:07 		[  OK  ] Listening on Journal Socket (/dev/log).
14:41:07 		[  OK  ] Started rkt-inspect-2 Reaper.
14:41:07 		         Starting Journal Service...
14:41:07 		         Starting Create /etc/passwd and /etc/group...
14:41:07 		[  OK  ] Started Create /etc/passwd and /etc/group.
14:41:07 		[  OK  ] Started Journal Service.
14:41:07 		         Starting Prepare minimum environment for chrooted applications...
14:41:07 		         Starting Prepare minimum environment for chrooted applications...
14:41:07 		[  OK  ] Started Prepare minimum environment for chrooted applications.
14:41:07 		[  OK  ] Started Prepare minimum environment for chrooted applications.
14:41:07 		         Starting Application=rkt-inspect-2 Image=coreos.com/rkt-inspect-2...
14:41:07 		         Starting Application=rkt-inspect Image=coreos.com/rkt-inspect...
14:41:07 		[FAILED] Failed to start Application=rkt-ins... Image=coreos.com/rkt-inspect-2.
14:41:07 		See 'systemctl status rkt-inspect-2.service' for details.
14:41:07 		         Stopping rkt-inspect Reaper...
14:41:07 		         Stopping rkt-inspect-2 Reaper...
14:41:07 		[  OK  ] Stopped rkt-inspect Reaper.
14:41:07 		[  OK  ] Reached target Exit the container.
14:41:07 		[  OK  ] Stopped rkt-inspect-2 Reaper.
14:41:07 		[  OK  ] Reached target Halt.
14:41:07 		         Stopping Pod shutdown...
14:41:07 		Sending SIGTERM to remaining processes...
14:41:07 		Sending SIGKILL to remaining processes...
14:41:07 		Container rkt-5282f3a7-2f4a-45e7-9f38-42d4c0a8e376 failed with error code 226.
14:41:07 	rkt_tests.go:130: rkt terminated with unexpected status 226, expected 0
14:41:07 		Output:
14:41:07 === RUN   TestVolumeSysfs
14:41:20 --- PASS: TestVolumeSysfs (13.02s)
...

phew, all green, merging


Cannot select an ISO [1.0.0-beta.8]

Selecting an ISO, whether via drag-and-drop or via the file dialog, is not working in Linux with 1.0.0-beta.8. It worked with the previous version.
Etcher never proceesds to the next step. Instead, it stays on the first step as if I had not selected an ISO.

Convfirmed, happens to me on Mac OS X El-Capitan 64-Bit

Hey there,
Thanks for reporting guys. It's strange, I can select an ISO correctly on both Ubuntu 16.04 and OS 10.11.4, at least a CoreOS one I happen to have here.
Can link me to the specific ISO you're trying to select? Also, what's the file mime type according to the file command?

elementaryos-0.3.2-stable-i386.20151209.iso: ISO 9660 CD-ROM filesystem data 'elementary OS                  ' (bootable)
Download location: https://elementary.io/

The only thing I think could be failed my is the following function: https://github.com/resin-io/etcher/blob/master/lib/gui/models/supported-formats.js#L109, which we use as a simple mechanism to detect if the image is valid or not, just by looking at the file name.
Can you try opening DevTools by pressing Cmd+Alt+I or Ctrl+Alt+I and see if you get a log message saying that the Image you tried to select is invalid? If so, please share the file name and I'll fix, and you can rename the file to something simpler that doesn't confuse Etcher as a workaround.

Sat Jun 18 2016 15:54:58 GMT+0200 (CEST) Invalid image ({"path":"/Users/murmelmurmel/Downloads/elementaryos-0.3.2-stable-i386.20151209.iso","size":1126170624})

I can confirm that I am getting the same issue. I'm also trying to use it with Elementary OS - so the error is the exact same.

I had the issue and was able to fix it by changing the filename from xxx.xxx.xxx.img to xxx.img

Thank you very much everyone. I'm glad we at least have a workaround. I'll push a hot fix very soon, and sorry for the inconveniences!

Elementary OS is adding a timestamp as if it was an extension: .20151209.iso which is confusing Etcher.
I've locked the Etcher website to v1.0.0-beta.7 until the fix is released, so no more new users encounter this. I'll push a fix and publish a new patched version, sorry again for the troubles!

Same issue, worked after renaming to xxx.iso instead of xxx.xxx.xxx.iso

Hi everyone,
Sorry for taking so long to merge this. I decided to take some time to really ensure this is the first and last time a similar issue happens to our users by increasing our test coverage on this area, and working on a new algorithm to detect if an image is supported that deals with these corner cases.
I'm publishing v1.0.0-beta.9 as I write, and will ping you here in the same thread once its live.
Apologies, and have a great day!

I've just published v1.0.0-beta.9 with the fix, which is now available in the website.


Biopsy form: specimen section mvp

Background
BMMRO need to be able to add specimen records to a biopsy record within the biopsy form. When a biopsy is taken, the material could make up skin or skin and blubber. The individual specimens are sectioned off and stored separately. BMMRO must ensure their specimen samples are stored appropriately and corresponding records are kept.

Acceptance Criteria
AC1: section header & button
given I am logged in to the BMMRO app
when I am viewing a biopsy record in the biopsy form
then I need to see a Specimen section with a button - "add specimen record"
AC2: add specimen row on button press
given I am logged in to the BMMRO app
when I am viewing a biopsy record in the biopsy form
and I click the add new specimen button (AC1)
then a specimen record row is added to the specimen section above any previously added records (the most recent should be at the top).  Each row should have a Specimen #, Tissue type, and tissue storage field

Specimen # = free text (max length 20)
Tissue type = dropdown. Options = skin, skin/blubber
Tissue store = dropdown. Options = DMSO/NaCI, -80, -20

the tissue type drop down should have the options

and it should default to -- in the same way as other dropdowns on other forms
the tissue store drop down should have the options

and it should default to -- in the same way as other dropdowns on other forms
AC3: save button & commit to firebase
given I am logged in to the BMMRO app
when I am viewing a biopsy record in the biopsy form
and I can click a save button on the biopsy form
then firebase is updated
and I taken back to the Habitat Use screen

AC4: create specimens csv
given I am logged in to the BMMRO app
when I am exporting data from the app for import to MS Access
then I can see details of the specimens taken in a csv with the below fields populated:
This AC is dependent on later tickets (ie where the field is not yet in the biopsy form).  The expectation is this story should create the specimen csv with all available fields, namely:

Sample #,
Specimen #,
Tissue Type,
Storage,

then from the biopsy form:

Species,
Sequence,
Date,
Time,
Area,
Attempt,
Lat,
Long
The field called Collection Type should be populated with the text "Biopsy"

Mapping below

AC5: add Sample # field to Biopsy Details section
given I am logged into the BMMRO app
when I am in the biopsy form
then I can see a field called "Sample #" within the Biopsy Details section
and I can no longer see a field called "Total Specimens" in the Biopsy Details section.
Specimen # should take the place of the "Total Specimens" field
Out of scope
Assumptions
To be clarified with Charlotte:

is there a relationship in the MS Access DB between samples and biopsy records?
YES. There is a relationship but this is not enforced in the database.  The relationship does exist in the data between the 2 tables.  The link between a biopsy and the related Specimens is the "Sample #"
do specimens in the biopsy form need to be written to the "Samples" table in MS Access?
**Yes. Write to Samples table. The 4 fields from the specimen section (Sample #, Specimen #, Tissue Type and Storage) should populate the samples table. Everything else for the samples table comes from the Biopsy record itself (this is duplicated data unfortunately)
do we need to capture a "Sample #" on the biopsy form in order to maintain a 1-M relationship between biopsy record and the associated specimens?
YES. Added to story above

CFRs

UAT QA complete


Inconsistency with +moment.duration() and moment.duration().asMilliseconds()

Describe the bug
+moment.duration({ months: 2 }) returns<PHONE_NUMBER> (60 days) but moment.duration({ months: 2 }).asMilliseconds() returns<PHONE_NUMBER> (61 days)
To Reproduce
Run the following code in Node.
const moment = require('moment');

console.log(+moment.duration({ months: 2 }));
console.log(moment.duration({ months: 2 }).asMilliseconds());

Expected behavior
I expect the following output (60 days in ms for both):
5184000000
5184000000

Instead, I get this output:
5184000000
5270400000

Desktop (please complete the following information):

OS: Mac 10.14.6
Node 10.15.3

Moment-specific environment

The time zone setting of the machine the code is running on
The time and date at which the code was run
Other libraries in use (TypeScript, Immutable.js, etc)

Please run the following code in your environment and include the output:
console.log((new Date()).toString())
console.log((new Date()).toLocaleString())
console.log((new Date()).getTimezoneOffset())
console.log(moment.version)

Output:
Wed Jun 17 2020 16:02:19 GMT-0700 (Pacific Daylight Time)
6/17/2020, 4:02:19 PM
420
2.26.0

I checked the source code, and I think the calculation based on 61 days is more accurate, what do you think @rw103 @marwahaha? I am happy to submit a pull request 😄 .
Source Code

duration/as.js

This valueOf() is calculated using 30 days.
// TODO: Use this.as('ms')?
export function valueOf() {
    if (!this.isValid()) {
        return NaN;
    }
    return (
        this._milliseconds +
        this._days * 864e5 +
        (this._months % 12) * 2592e6 +
        toInt(this._months / 12) * 31536e6
    );
}

duration/as.js and duration/bubble.js

This as() is calculated using the 400-year average
function as(units) {
        // ...
        // handle milliseconds separately because of floating point math errors (issue #1867)
        days = this._days + Math.round(monthsToDays(this._months));
       // ...
}

function monthsToDays(months) {
    // the reverse of daysToMonths
    return (months * 146097) / 4800;
}

I think this could be a breaking change out there in the wild. It does kind of make sense for both functions to return the same amount of milliseconds though.

Yeah, I originally said 60 days makes more sense for expected behavior because I didn't know the rationale for 61 days. But it's true that not every month is 30 days, so using an average month duration makes sense. The more important thing is to make both functions consistent.

I have a similar problem.
let maxTimeRange = moment.duration(1, 'years');
let end = moment('2020-12-31 23:59:59');
let start = moment('2020-01-01 00:00:00');
let duration = moment.duration(end.diff(start));

Unfortunately maxTimeRange is less than duration

I have a similar issue where I convert 90 months into milliseconds and then back into months. This offset is caused by the rounding:
// handle milliseconds separately because of floating point math errors (issue #1867)
days = this._days + Math.round(monthsToDays(this._months));

I do not understand why the 365.25/12 is not simply used as a conversion factor.


use sbt-ci-release to release

This replaces the current bintray publishing setup with one that pushes to maven central via sbt-ci-release.
This changes the group id / organization form io.sphere to com.commercetools.
The needed secrets are added in the settings. I did not try this yet, would like try to create (and potentially debug) the release workflow once its merged on a new tag.

A different approach could be to use sbt to generate the release workflow.
I've used that in https://github.com/sangria-graphql/sangria-federated/pull/15/commits/cda24f750498234d4da14f79c9120823c4076603#diff-5634c415cd8c8504fdb973a3ed092300b43c4b8fc1e184f7249eb29a55511f91R26-R40 for example.
I find it quite interesting to have the build.sbt as source of truth for the github actions. WDYT?

:+1: I like generators! Applied in https://github.com/commercetools/sphere-scala-libs/pull/289/commits/8a5428c9c1315b3a491553ec6ba1706d1346b003.


fix libmemcached so version

See #98

FYI, using this patch, tests run:

build pecl/memcached with libmemcached 1.0.18
run pecl/memcached test suite (without experimental)
build libmemcached 1.1 packages (RPM) with latest changes + this PR
install new packages
run pecl/memcached test suite (so built with v 1.0 and run with 1.1)
build pecl/memcached with libmemcached 1.1
run pecl/memcached test suite (so built with v 1.1 and run with 1.1)

So everything seems OK


feat: setup installation URL override

does the gen.lock not get auto-updated with the gen.yaml not having installationURL ?

I ran the run locally and it worked, but my understanding of a .yaml / .lock file system is you only ever update the .yaml and the .lock is auto-generated & meant to stay static.

I ran the run locally and it worked, but my understanding of a .yaml / .lock file system is you only ever update the .yaml and the .lock is auto-generated & meant to stay static.

The management section of the gen.lock is meant to be updated. Everything else is not. Management moved from gen.yaml to gen.lock


You’re currently using an unsupported browser — for the best Twitter experience, please consider updating to Windows 10, or check the list of supported browsers.

New banner which appears when this extension is used. The end is near. 😭

Ditto

Same here, sad! New Twitter interface is bad, can't translate tweets on the fly etc.

ugh, same here. I wish twitter would lay off trying to get everyone to update, it's obvious that people don't like what they're doing with all this, so just leave us alone! it's not hurting anyone.

Ditto.

They probably make more money with ads on the new interface.

Same here, sadly. Shame, I still vastly prefer this UI. :(

Me fourth, or whatever number we're on.

I've got the same issue. I've temporarily blocked that page 'element' using AdGuard, so I don't have to see it at least, doesn't seem to hider functionality. I definitely do not want to stop using the extension, the new layout gives me an aneurysm.

Same issue here

add this for adblock plus and ublock twitter.com##.Banner--aboveNav.Banner

It's also possible to keep using the extension in conjunction with the Stylus extension that lets you write custom CSS rules.
#banners { display: none; }
.topbar-spacer { padding-top: 47px !important; }

I've got the same issue. I've temporarily blocked that page 'element' using AdGuard, so I don't have to see it at least, doesn't seem to hinder functionality. I definitely do not want to stop using the extension, the new layout gives me an aneurysm.
If you use AdGuard, you can add the following line to the "User Rules" in the menu to block the message. It leaves a little gap between the nav menu and the rest of the page, but it's better than the other nonsense.
twitter.com###banners > div.Banner.Banner--aboveNav

This worked! :-)

It's also possible to keep using the extension in conjunction with the Stylus extension that lets you write custom CSS rules.
#banners { display: none; }
.topbar-spacer { padding-top: 47px !important; }

Thanks a lot, this works perfectly!

True, the method works, you can even use the zapper from uBlock or a similar tool. What worries is the fact Twitter might just stop working completely in a few days for people like "us"...

Fixed in 0fc87aa881315cc7f6cb1022a7130d9a22668b2f


LND / Neutrino it's not running RPC server.

Background
Describe your issue here.
Your environment

version of lnd : 0.14.2-beta.rc2
which operating system :  iOS IPhone 13 simulator
using Neutrino node

Steps to reproduce
I have been working on a product 100% non centralized, I'm following this guide Neutrino guide to setup node on mobile device.
The node its running but its not running the RPC server only the REST server.
The command that I'm uising ro run the node is
--bitcoin.active --bitcoin.testnet --bitcoin.node=neutrino --lnddir=\(path) --neutrino.connect=faucet.lightning.community --no-macaroons --debuglevel=debug --tlsdisableautofill --no-rest-tls --rpclisten=<IP_ADDRESS>:10009
Expected behaviour

Actual behaviour

Could you paste a full version of your logs when you run the command?

Sure!

Please don't post screenshots of logs. That makes it so much harder to read through things... And I now have to type the log message I'm referencing instead of just being able to copy/paste.
RPC server listening on bufconn

That's normal for the mobile use case since all RPCs are run through the stub code generated for mobile.
If you want an additional TCP listener, you need to edit the mobile/bindings.go file and add an extra ListenerWithSignal to the lnd.ListenerCfg on line 96/97.
But I guess that defeats the whole purpose of having the mobile stubs that connect in-memory. So not sure what you're trying to achieve?

I guess that use case makes sense. But because of the way the mobile bindings currently work, you'll need to edit the mobile/bindings.go file in lnd as mentioned above to add an extra listener, then generate the stub code again and import into your project to enable the gRPC server.

@guggero thank you for your help.
I'll be working on it, if suddenly you have any guide to follow I'll very grateful if you can share it.

Hi @hsjoberg at the beginning I have been working with this focus, generate de bindings for IOS / Android, but as mentioned before, I had some issues in java, I can generate the methods but specifically one of this files was generated with errors, and it's required by others modules then other required files are broken.
In the case of lnrpc/LigthningOuterClass.java it's not generated as Java Class, and lnrpc/WalletUnlocker.java try to use it.

Please let me know if this error it's known or if should create a new issue related to that.

I'm gonna convert this to a Discussion since there's no issue w/ lnd, and instead the OP is attempting to embed the gRPC server instead of use the mobile bindings.
You may also be interested in this PR @miguelkmldev: https://github.com/lightningnetwork/lnd/pull/6464


Cast function item to function pointer in order to appease compiler.

This is necessary because of compiler changes. For further information
look at rust-lang/rust#19925.
This solves #346.
I know that there are other problems with the affected function. We are thinking about how to best pass the arguments to the function and we don't want to define the ffi's ourselves. However, I would like to get the warning out of our tree as soon as possible. We do not need to wait for our polish.

However, I would like to get the warning out of our tree as soon as possible. We do not need to wait for our polish.

:+1:
@homu r+ 47dc5fe

:hourglass: Testing commit 47dc5fe with merge 9d912ae...

:sunny: Test successful - status


coordinate system

Hello, how do you convert the sensor coordinate system to the model node coordinate system?I'm doing something similar to you, but there are some problems with coordinate system conversion.

Hi,
IMU sensors generate quaternions and only rotation information, not
position information.
Autodesk Motion builder wait for euler angle and mdT (position of node)
Wee need to convert this data
Facts:

Sensor initial state is start from lying on the table chip Z axis look
in to roof. X and Y lying on the table.
But on the motionbuilder model. Skeleton is faced to you. Z axis look on
you.

2 Sensor physical implementation (crafted hard device) a unified (they are
all likes each on enover), But on you body you need to hang sensor on
stomach legs head vertically,
and in left side of body sensor hanged one method on right side another
3 there is a little deviation then you hang sensors 10-15 degrees from
strightly vertical or horizontal position
All calculation made
in ordeviceskeleton_hardware.cxx
ORDeviceSkeletonHardware::FetchDataPacket(FBTime&
pTime)
To get 1,2 Facts you need to remix and redirect axes of quaternion.
cQuaternion.mValue[1] = mSkDataBuffer.mChannel[i].iR[0][0] * tempx +
mSkDataBuffer.mChannel[i].iR[0][1] * tempy +
mSkDataBuffer.mChannel[i].iR[0][2] * tempz; // -tempz
cQuaternion.mValue[2] = mSkDataBuffer.mChannel[i].iR[1][0] * tempx +
mSkDataBuffer.mChannel[i].iR[1][1] * tempy +
mSkDataBuffer.mChannel[i].iR[1][2] * tempz;//-tempx;
cQuaternion.mValue[3] = mSkDataBuffer.mChannel[i].iR[2][0] * tempx +
mSkDataBuffer.mChannel[i].iR[2][1] * tempy +
mSkDataBuffer.mChannel[i].iR[2][2] * tempz;//tempy;
Data for how to remix axes stored in  ordeviceskeleton_hardware .h void
SetupBuffer()
in example of left foot^
mChannel[3].iR[0][0] = -1; mChannel[3].iR[0][1] = 0; mChannel[3].iR[0][2] =
0; x axis reversed
mChannel[3].iR[1][0] = 0; mChannel[3].iR[1][1] = 0; mChannel[3].iR[1][2] =
1;  y,z a swapped
mChannel[3].iR[2][0] = 0; mChannel[3].iR[2][1] = 1; mChannel[3].iR[2][2] =
0;   y,z a swapped
Now you may hang your sensor on you comfort
To get 3 Fact
you need to multiply correction quaternion on sensor quaternion
multiplyQuaternion(resultQuaternion, correctionQuaternion, cQuaternion);
Now we get Euler angels
getEulerFromQuaternion(cRotationOfNode, resultQuaternion, zyx);
Code below  get transformation data mT (position of node)
from rotation of bones. code use sceleton data. length of bones they
initial position.
mSkDataBuffer.mChannel[i].mR[0] = cRotationOfNode.mValue[0];//
+correctionVector.mValue[0];
mSkDataBuffer.mChannel[i].mR[1] = cRotationOfNode.mValue[1];//
-correctionVector.mValue[1];
mSkDataBuffer.mChannel[i].mR[2] = cRotationOfNode.mValue[2];//
-correctionVector.mValue[2];
// Copy data to head
SkeletonNodeInfo* lIter;
lIter = &mChannel[i]; // значение ноды
//memcpy(lIter->mT, mSkDataBuffer.mChannel[i].mT, sizeof(lIter->mT));
memcpy(lIter->mR, mSkDataBuffer.mChannel[i].mR, sizeof(lIter->mR));
if (true) {
FBMatrix lTransformation, lChannelTransformation, gTransformatilon; //
prepare martix to rotation
//FBQuaternionToMatrix(lTransformation, cQuaternion);
FBRotationToMatrix(lTransformation, mSkDataBuffer.mChannel[i].mR);
for (int j = 0; j < mSkDataBuffer.ChildrensCount; j++)
{
int children = mSkDataBuffer.mChannel[i].children[j];
if (children != -1) // 0 = hips
{
memcpy(&lChannelTransformation[0], mSkDataBuffer.mChannel[children].mdT,
sizeof(mSkDataBuffer.mChannel[children].mT)); //дельту от родителя
//берем
FBMatrixMult(lChannelTransformation, lTransformation,
lChannelTransformation);// поворачиваем на кватернион родителя
memcpy(&gTransformatilon[0], mSkDataBuffer.mChannel[i].mT,
sizeof(mSkDataBuffer.mChannel[i].mT)); //достаем родительскую ноду текущую
lChannelTransformation = lChannelTransformation + gTransformatilon;
//вернуть нужно в глобальных координатах, то есть сложить с родительской
нодой
memcpy(&mSkDataBuffer.mChannel[children].mT, &lChannelTransformation[0],
sizeof(mSkDataBuffer.mChannel[children].mT));  // here is updating transfers
lIter = &mChannel[children];
memcpy(lIter->mT, mSkDataBuffer.mChannel[children].mT,
sizeof(lIter->mT));// значение ноды
}
}
}
чт, 30 дек. 2021 г. в 05:38, BestPolarBear @.***>:

Hello, how do you convert the sensor coordinate system to the model node
coordinate system?I'm doing something similar to you, but there are some
problems with coordinate system conversion.
—
Reply to this email directly, view it on GitHub
https://github.com/Nulamir/IMUMocap/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMBIYG6EVRMATBASFQLUPLLUTPA3ZANCNFSM5K66ODNQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Deploy custom branch

Accept a parameter to indicating which branch to deploy from. Currently it is hardcoded to master.

Yep. We can even get the current branch dynamically.
Anyway, I'm open to accept any PR for this

I think, I was confused. Storybook deploy the current branch you are in. The one mentioned in the code is the temporary Git repo we are creating.
It's always master.


SpannableString support

Hi!
This library is very good, but when if I use SpannableString for different character color (ForegroundColorSpan) that doesn't work fully. Keep all character the original state. No available to change. Pls help me. By the way if I use AbsoluteSizeSpan also bad.
We are waiting for your reply, thanks!

@hDusan  Animation effects to text, not really textview , so it do not support SpannableString


Transaction isn't working on Standalone version 5.0.36

Description
I'm trying to run a change UNIT as a transaction , I set transaction enabled both on the
MongockStandalone.builder().setTransactionEnabled(true)
and both on ChengeUnit
@ChangeUnit(id = "update", order = "0", transactional = true, runAlways = false)
however , also when I have failure , I see that database status is partial migrated, the values committed to the database .
My Builder looks like :
MongoClient client = getMainMongoClient();
		return MongockStandalone.builder()
				.setTransactionEnabled(true)
				.setDriver( MongoSync4Driver.withDefaultLock(client, MONGODB_MAIN_DB_NAME))
				.addMigrationScanPackage("com.local.mongock.changelogs")
				.setMigrationStartedListener(MongockEventListener::onStart)
				.setMigrationSuccessListener(MongockEventListener::onSuccess)
				.setMigrationFailureListener(MongockEventListener::onFail)
				.addDependency("mongoDB",client.getDatabase(MONGODB_MAIN_DB_NAME))
				.setTrackIgnored(false);

My update operation inside the changeunit looks like :
collection.replaceOne(Filters.eq("_id", obj.get("_id")), obj);
I tried to find a way to pass the mongock ClientCession into the replaceOne but didn't find a way to do it
PRIORITY
CRITICAL
Version and environment
Mongock

Mongock version :5.0.36
Modules involved: standalone, MongoDB
How Mongock is used : Builder execution

Hello @miriambron , we have some examples where we use ClientSession. Please take a look at this ClientInitializerChangeLog.java and let us know if it works for you. Thanks

Hello @miriambron , we have some examples where we use ClientSession. Please take a look at this ClientInitializerChangeLog.java and let us know if it works for you. Thanks

Hello @osantana85 , thanks for your answer.
it really doesn't help
That means that I have to create the transaction myself, inject the session, and close the transaction? and if I want a separate  transaction for each step , I need to create the transaction in each execution inside the step code?
Does that mean that in the stand-alone deployment you actually don't really support transactions, but only in the spring one? I's not reflected in the documentation.

Hello @miriambron , we have some examples where we use ClientSession. Please take a look at this ClientInitializerChangeLog.java and let us know if it works for you. Thanks

yes, it helped , Thanka!


codec: add compile time assert to guarantee safety

What problem does this PR solve?
Issue Number: close #11356.
Check List
Tests

Unit test
Integration test

Release note
None

/merge

/test
The failed case is traced at #11365.


Inter host network broken for one of the hosts.

Rancher Version: Build from master
Steps to reproduce the problem:
On a fresh install  with 3 hosts , setup "library" catalog to https://github.com/rancher/rancher-catalog.git , 1.2 branch.
Wait for all the micro services to get started.
One of the health check containers are stuck in "Initializing" state forever.
Not able to ping containers (by managed ip) in this host from other hosts in the setup.
health-check logs:
11/7/2016 9:51:27 AMtime="2016-11-07T17:51:27Z" level=info msg="Starting haproxy listener"
11/7/2016 9:51:27 AMtime="2016-11-07T17:51:27Z" level=info msg="healthCheck -- starting haproxy\n * Starting haproxy haproxy\n   ...done.\n"
11/7/2016 9:51:27 AMtime="2016-11-07T17:51:27Z" level=info msg="Scheduling apply config"
11/7/2016 9:51:27 AMtime="2016-11-07T17:51:27Z" level=info msg="healthCheck -- reloading haproxy config with the new config changes\n[WARNING] 311/175127 (30) : config : 'option forwardfor' ignored for proxy 'web' as it requires HTTP mode.\n[WARNING] 311/175127 (30) : config : 'option forwardfor' ignored for backend 'cattle-3854d457-1ad1-45ca-b8bd-e0cd1c92f84e_90a23e53-776b-4a27-a852-9332500ffb89_1' as it requires HTTP mode.\n"
11/7/2016 9:51:29 AMtime="2016-11-07T17:51:29Z" level=info msg="Monitoring 1 backends"
11/7/2016 9:51:31 AMtime="2016-11-07T17:51:31Z" level=info msg="3854d457-1ad1-45ca-b8bd-e0cd1c92f84e_90a23e53-776b-4a27-a852-9332500ffb89_1=DOWN"
11/7/2016 9:51:37 AMtime="2016-11-07T17:51:37Z" level=info msg="Scheduling apply config"
11/7/2016 9:51:37 AMtime="2016-11-07T17:51:37Z" level=info msg="healthCheck -- reloading haproxy config with the new config changes\n[WARNING] 311/175137 (37) : config : 'option forwardfor' ignored for proxy 'web' as it requires HTTP mode.\n[WARNING] 311/175137 (37) : config : 'option forwardfor' ignored for backend 'cattle-3854d457-1ad1-45ca-b8bd-e0cd1c92f84e_90a23e53-776b-4a27-a852-9332500ffb89_1' as it requires HTTP mode.\n[WARNING] 311/175137 (37) : config : 'option forwardfor' ignored for backend 'cattle-3854d457-1ad1-45ca-b8bd-e0cd1c92f84e_14b3d3b2-cfc6-44c5-a117-7aec4d29bd87_1' as it requires HTTP mode.\n"
11/7/2016 9:51:39 AMtime="2016-11-07T17:51:39Z" level=info msg="Monitoring 3 backends"
11/7/2016 9:51:41 AMtime="2016-11-07T17:51:41Z" level=info msg="3854d457-1ad1-45ca-b8bd-e0cd1c92f84e_39098022-06e6-4e0e-832a-081ad080c45a_1=DOWN"
11/7/2016 9:51:41 AMtime="2016-11-07T17:51:41Z" level=info msg="3854d457-1ad1-45ca-b8bd-e0cd1c92f84e_14b3d3b2-cfc6-44c5-a117-7aec4d29bd87_1=DOWN"
11/7/2016 9:51:52 AMtime="2016-11-07T17:51:52Z" level=info msg="Scheduling apply config"
11/7/2016 9:51:52 AMtime="2016-11-07T17:51:52Z" level=info msg="healthCheck -- no changes in haproxy config\n"
11/7/2016 9:53:02 AMtime="2016-11-07T17:53:02Z" level=info msg="Scheduling apply config"
11/7/2016 9:53:02 AMtime="2016-11-07T17:53:02Z" level=info msg="healthCheck -- no changes in haproxy config\n"
11/7/2016 9:53:12 AMtime="2016-11-07T17:53:12Z" level=info msg="Scheduling apply config"
11/7/2016 9:53:12 AMtime="2016-11-07T17:53:12Z" level=info msg="healthCheck -- no changes in haproxy config\n"

Restarting all ipsec containers restores Inter host network connectivity.

Reopening this issue.
This issue does not happen all the time.
This issue was encountered  even with today's master build.

Tested couple of time with rancher/net:v0.6.2 .
Inter host networking in a 3 host setup works as expected.


Add NotInTransactionException

Code is more readable with a typed exception.

@findepi I applied all of your comments

No objections. I don't see the purpose yet (because there is no catch except for the tests).

Session.getRequiredTransactionId now throws a Presto exception instead of a illegal state exception, which I ran into while debugging something.


Redirect notifications to the new<EMAIL_ADDRESS>ML

Following comments from https://issues.apache.org/jira/browse/INFRA-20735 and<EMAIL_ADDRESS>Should not merge before the ML is created (I believe as I commiter I do not have the right to create it myself^^)

We should update the other projects as well.

    Hi there,
    As requested by<EMAIL_ADDRESS>a new mailing list has been queued for creation:
<EMAIL_ADDRESS>

    This request will automatically be processed within 24 hours.

It looks like we can merge this now :-)

Merged


[Remote Debugging]

Welcome! Please use this template for reporting documentation issues on https://developers.google.com/web/.
For questions about Chrome DevTools, checkout the
google-chrome-devtools tag on StackOverflow.
For questions about Chrome, check the google-chrome
tag. If you think you've found a Chrome bug, check out our
feedback page for more details on how to file it.
Page Affected: https://developers.google.com/web/TODO
What needs to be done?
Please provide description of what's needs to be done here. Please be sure to include the link to the original page
and any supporting links/data.

[x] Appropriate type-something label has been added.
[x] Appropriate section-something label has been added.

Thanks for filing the issue, can you provide some more information or a link to the page you're talking about?


[opencv] update to 3.4.0

The long waited opencv 3.4.0 is out! Tested and everything compiles like usual.

Awesome! Thanks for the update!


aapt tool failed:C:\Users\Administrator\AppData\Local\Temp\6c28fc21-165b-49d2-a80e-043aacf18f98\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.

Android native running is ok, after changing it as  lib project ,then ,packaging it as ANE, through  AIR call the  ane ， a mistake like that


[Performance] Possible optimizations

https://github.com/quantumlib/qsim
To speed up the simulator, we use gate fusion [2] [3], single precision arithmetic, AVX/FMA instructions for vectorization and OpenMP for multi-threading.
I suspect this gate fusion is similar to what is already implemented in PyQTorch for 1Q gates, but maybe there are some more general ideas to explore there.

@jpmoutinho yes, gate-fusion is what we do in the pyq backebd in qadebce


Duplicate file names

Hi Peter,
One of our users has reported an issue with file name duplication (https://github.com/esp8266/Arduino/issues/1685). The sample posted there is pretty long, but it boils down to the following sequence of actions (pseudo-code):
    createFileWithContent("/config", "some text");
    createFileWithContent("/data", "");
    readFile("/config");
    openFile("/data");
    listFiles("/");

Expected behavior is that we have two files, /config and /data. However, directory listing contains two files called /config.
Here is the test case which reproduces the behaviour without relying on C++ wrapper used in our project.
TEST(spiffs_dup_file) {
    fs_reset_specific(0, 0, 64*1024, 4096, 4096*2, 256);
    {
        spiffs_file fd = SPIFFS_open(FS, "/config", SPIFFS_CREAT | SPIFFS_TRUNC | SPIFFS_WRONLY, 0);
        TEST_CHECK(fd >= 0);
        char buf[5];
        strncpy(buf, "test", sizeof(buf));
        SPIFFS_write(FS, fd, buf, 4);
        SPIFFS_close(FS, fd);
    }
    {
        spiffs_file fd = SPIFFS_open(FS, "/data", SPIFFS_CREAT | SPIFFS_TRUNC | SPIFFS_WRONLY, 0);
        TEST_CHECK(fd >= 0);
        SPIFFS_close(FS, fd);
    }
    {
        spiffs_file fd = SPIFFS_open(FS, "/config", SPIFFS_RDONLY, 0);
        TEST_CHECK(fd >= 0);
        char buf[5];
        int cb = SPIFFS_read(FS, fd, buf, sizeof(buf));
        TEST_CHECK(cb > 0 && cb < sizeof(buf));
        TEST_CHECK(strncmp("test", buf, cb) == 0);
        SPIFFS_close(FS, fd);
    }
    {
        spiffs_file fd = SPIFFS_open(FS, "/data", SPIFFS_CREAT | SPIFFS_TRUNC | SPIFFS_WRONLY, 0);
        TEST_CHECK(fd >= 0);
        spiffs_stat stat;
        SPIFFS_fstat(FS, fd, &stat);
        if (strcmp((const char*) stat.name, "/data") != 0) {
            // oops! lets check the list of files...
            spiffs_DIR dir;
            SPIFFS_opendir(FS, "/", &dir);
            struct spiffs_dirent dirent;
            while (SPIFFS_readdir(&dir, &dirent)) {
                printf("%s\n", dirent.name);
            }
            // this will print "/config" two times
            TEST_CHECK(0);
        }
        SPIFFS_close(FS, fd);
    }
    return TEST_RES_OK;
} TEST_END(spiffs_dup_file)

Test output follows:
[igrokhotkov@igrokhot-mbp ~/e/spiffs]$ ./build/linux_spiffs_test -f spiffs_dup_file
adding suites...
adding test spiffs_dup_file
1 tests added
running tests...
TEST 1/1 : running test spiffs_dup_file
/config
/config
  TEST FAIL src/test/test_bugreports_my.c:66
  free blocks     : 7 of 8
  pages allocated : 3
  pages deleted   : 1
  gc runs         : 0
  cache hits      : 48 (sum 48)
  cache misses    : 28 (sum 28)
  cache utiliz    : 0.631579
  RD:         21 reads        5165 bytes        245 avg bytes/read
  WR:         13 writes        623 bytes         47 avg bytes/write
  fs consistency check:
   check: LOOKUP FIX INDEX 8001:0000
   check: LOOKUP DELETE PAGE 0004
  .. FAILED
  spiffs errno:-10072
   0 id//i__________________________	era_cnt: 0
   1 _______________________________	era_cnt: 0
   2 _______________________________	era_cnt: 0
   3 _______________________________	era_cnt: 0
   4 _______________________________	era_cnt: 0
   5 _______________________________	era_cnt: 0
   6 _______________________________	era_cnt: 0
   7 _______________________________	era_cnt: 0
era_cnt_max: 1
last_errno:  -10072
blocks:      8
free_blocks: 7
page_alloc:  3
page_delet:  2
used:        753 of 46937
ran 1 tests
Test report, 1 tests
0 succeeded
1 failed
  spiffs_dup_file
0 stopped

FAILED

I might not be doing sufficient error checking here. I noticed that at some point while this test is being executed, FS->err_code equals SPIFFS_ERR_DELETED. I haven't found documentation about this error code, and i couldn't infer what it means from the test cases (none of the test cases seem to check for it).

Oh, that's not good. I'll look into it as soon as I can, a bit busy this week though. @igrr, you do get a star for the best bug report so far, billions of thanks for taking the trouble of writing a testcase for me. This helps a lot!
The SPIFFS_ERR_DELETED is simply that we're trying to open a file that is deleted. Or really a page that has been deleted. This is very odd. Regarding the error checking, well yeah, one should check a bit more, but no-one does. The test-case does not do anything complicated really. I'll have to adapt to reality ;)

Thanks again Ivan for reporting this. It was a sneaky one, will only happen when opening a only-created-never-written file with SPIFFS_TRUNC flag. Fix coming up.

Thanks for the quick fix!


[INS] Add apt-utils

debconf: delaying package configuration, since apt-utils is not installed

Rejected by LEAN


deps: update Guava

@kolea2

@elharo all relevant code is now maintained at: https://github.com/googleapis/java-datastore/tree/master/datastore-v1-proto-client. I will remove this to avoid confusion. Thanks!

should be archived, not removed; but yes, good idea


Make root readonly, create a partition for persistent data

In an attempt to reduce SD card failures due to power outages when being written:

Create a new partition and mount it at /persist. Use this partition for things we need to persist like the bluetooth connection info.
Make root readonly, reducing the chances of unnecessary writes to the sd card.

This should help with #138 and #109. This seems to reduce SD card writes. It only writes on boot or when bluetooth is connected. Would be great if more people can try out.
Not sure what else was continuously writing on root though. Logs are anyway on tmpfs. But this looks like a good idea anyway to reduce chances of some service accidentally writing.

Flashed this today, Let's see how it goes!
Thanks @nisargjhaveri !

While we're at it, could you also make /var/log link to /persist/log?
Ideally, this would only be the case for 'development' images, but since those aren't released, it should be fine as is. The question is what to do if the partition is full (BR2_PACKAGE_LOGROTATE?)

@BaderSZ having logs writing to sd card will increase the chances of sd card corruption by a large margin. I don't think it is wise to persist logs by default.
Having separate development images is a good idea, or I was maybe thinking of having a config that can enable logs to persist.


investigate callback 422 in container-service

After closer examination, this issue ls reported when the callback functions of the container service api try to supply a status update using a PUT request back to the funcx web service, but that message is not received. We initially saw this when testing the container service locally, as there was no web service running for it to communicate with. We also see this in the current deployment of container service in funcx, but thusfar it appears to be a discrepancy between what is contained in the body of the PUT from container service and the requirements as stipulated in the web service (enforced by pydantic/fastAPI). I believe in this instance the 422 is the appropriate response code (given the mismatch between the supplied and expected messages) and is operating as expected.

Response is appropriate, Ben G is on the web service side of it

Ben G fixed on web service end of things in funcx -- merged into dev and main, funcx release going out today


server and client demo

These examples were used to demo IoTivity-node on the Raspberry-pi Zero W board with the Envirophat sensor board which included temperature sensor, accelerometer sensor, light-color sensor, and controlling the led on and off.

Coverage remained the same at 87.015% when pulling 58c8da3309a8efd0881c4f6b20808044b0791d8b on alshafi:master into ce496720c1d954335e07072d3a4c3f3862f71708 on otcshare:master.

The files you added do not conform to the style: https://travis-ci.org/otcshare/iotivity-node/jobs/268081057#L459
Most of those errors stem from the fact that the files have Windows-style line endings (\r\n) instead of Unix-style (\n).

@alshafi if you're working on Windows, you should run
git config core.autocrlf input

in the iotivity-node repo. That will tell git to check out files as is, but to change the line endings to Unix when committing.
After doing that, you can check out this commit and re-commit with
git commit --amend --no-edit

This should convert the line endings to Unix, making a lot of those errors go away. Some will still be left, because you variously use single and double quotes, and you variously leave and do not leave space on the inside of brackets.

@gabrielschulhof  Thanks! I knew my commit failed CI but I could not see those errors yesterday. Now I do. Travis seems to be in progress now.

Coverage remained the same at 87.015% when pulling 75521908d66b6087663cfc72335379013bdbe9a4 on alshafi:master into ce496720c1d954335e07072d3a4c3f3862f71708 on otcshare:master.

@alshafi you can run npm -g install grunt-cli followed by grunt test locally to see if the tests pass.

@gabrielschulhof  it did not work for me. The installation seemed good but I keep getting a fatal error for not finding local grunt when I try grunt test. I googled the solution and trying grunt init and that resulted in the same error of not finding the local grunt. it would be great if i could get those errors locally. Also, can you please confirm that my amended commit made it to this pull request?
Thanks,
-Rami

@alshafi you need to also npm install in the root directory of the repo to be able to run grunt.
The commit made it because it appears after @nagineni's comment.

@gabrielschulhof

@gabrielschulhof that issue with crlf / lf can be fixed for all contributors in one place by configuring it in a file called .gitattributes

@wind-rider Thanks for the tip!

@wind-rider I actually added that in https://github.com/otcshare/iotivity-node/issues/131, so I don't understand how CRLFs can sneak in.

@alshafi looking more closely at your PR, it looks like this is more than just an example. You could publish this as a npm package in its own right. For example, you could call it envirophat-ocf, similar to envirophat-mqtt.

@alshafi that may actually be a more appropriate place for this code.

Coverage remained the same at 87.015% when pulling 20d1e1b10dbe06451fce2f58c5589e490ef450dc on alshafi:master into ce496720c1d954335e07072d3a4c3f3862f71708 on otcshare:master.

@gabrielschulhof running npm install in the root directory fixed my grunt issues and was able to run it locally. fixed all of the CI reported issues and pushed the latest changes. Hopefully, it passes now.
Thank you!
I am not familiar with making npm packages nor do I have the time to learn it. I just need to publish those examples in this repository as many OCF developers are asking me for them and I have been sending them via e-mail. It would be much more convenient if those examples were included into this repo and I will be maintaining them as needed.
Thanks,
-Rami

Coverage remained the same at 87.015% when pulling 8beef2645c506a0f072dca356a7c80687dddf20b on alshafi:master into ce496720c1d954335e07072d3a4c3f3862f71708 on otcshare:master.

Now I do not understand why CI is failing...

@gabrielschulhof @alshafi Lets host the code here now and move to npm, if needed, at some later point in time.

@alshafi the Windows CI needs some love. I have a fix ready and I need to merge it into master, after which it'll pass.

@alshafi LGTM in general, however, the code could use some more comments, especially since these are examples. In particular, it needs an overview of what "envirophat" is and what system prerequisites it has before the example can be run.

@gabrielschulhof I am not sure what LGTM stand for but I plan to document everything. Once the code gets into the repo and a few OCF developers can use my examples successfully (with my assistance if needed), then I will get help from a professional technical writer to improve the documentations for this example. In the mean time, do you want me to past the documentaions in this PR request or a readme file or in the github wiki?

LGTM=Looks Good To Me

Parts list:

Raspberry Pi Zero W  (https://www.adafruit.com/product/3410) $34.5
You will USB powered hub, USB keyboard, USB mouse, HDMI cable and a Monitor with HDMI
Pimoroni Enviro Phat sensor and actuator board (https://www.adafruit.com/product/3194) $19.95

Hardware Instructions:

Solder the headers
Connect the Enviro Phat to the GPIO header on the Raspberry Pi
Connect the keyboard, mouse and monitor to the Raspberry Pi and insert the SD card with NOOBS installed on it (you can download noobs from (https://downloads.raspberrypi.org/NOOBS_latest)
Connect the microUSB power supply to the microUSB connecter closest to the corner of the board

Software Installation Instructions:

Install Raspbian.
create the workspace directory

cd ~
mkdir workspace
cd workspace

Connect to the Internet (via Ethernet or Wi-Fi)
Install the development environment and IoTivity using the following instructions:

sudo apt-get install scons libtool autoconf valgrind doxygen
sudo apt-get install libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev libssl-dev
download iotivity

open a browser and go to www.iotivity.org
click on the link in “Latest Downloads”
click on “Source Download” (zip or tar.gz should both work)
open the zip archive and copy the iotivity folder to ~/workspace/

cd ~/workspace/iotivity-1.3.0 (or whatever version of iotivity was installed)
build IoTivity using scons

scons TARGET_ARCH=arm WITH_RA=1 WITH_RA_IBB=1
if you are asked to install cbor, use the line provided in the message and run scons again
if you are asked to install mbedtls, use the line provided in the message and run scons again

install nvm

sudo apt-get update
curl https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash (or whatever version is latest)
close the terminal window and reopen

Use nodejs version 8.1.3:

Cd ~/workspace/iotivity-1.3.0
nvm install 8.1.3
nvm ls (to verify that 8.1.3 is the default)

if nvm ls does not indicate version 8.1.3 as the default, type: nvm use 8.1.3

Install IoTivity-node using the following instructions:

cd ~/workspace
git clone https://github.com/otcshare/iotivity-node
cd iotivity-node
npm install

Install rpi-gpio using the instructions here:

npm install rpi-gpio

Install the Enviro Phat Python libraries

sudo apt-get install pimoroni
sudo apt-get install python3-envirophat
sudo apt-get update
curl https://get.pimoroni.com/envirophat | bash

Set the gpio pin to output mode and test from the command line

gpio mode 7 out (this can probably be put in the server program)
to test: gpio write 7 1
to test: gpio write 7 0
The above commands should switch the lights on the Enviro Phat on and off

Run the iotivity-node code to control the light and read the sensors

open the server terminal window (to run the server)

cd ~/workspace/iotivity-node/js
node server.envirophat.ocf.js

open the client terminal window (to run the client)

cd ~/workspace/iotivity-node/js
node client.envirophat.ocf.js

Type 0 to turn off the led
Type 1 to turn on the led
Type 2 to read the tempurature
Type 3 to read the accelerometer
Type 4 to read the light color RGB values.

Notes and known issues

The client response payload is one state behind. To get the current state, you can read it from the server or issue the command again on the client side to get the following state.

Coverage remained the same at 87.015% when pulling 821199a506944adfec15c5777addc16890dbfeed on alshafi:master into ce496720c1d954335e07072d3a4c3f3862f71708 on otcshare:master.

@alshafi actually, it might be best to move your example to a subdirectory like js/envirophat. The reference require("iotivity-node/lowlevel") will continue to work from the code, because IIRC Node examines all node_modules subdirectories, even those of parent directories.
I can do this when I merge your PR.

done, just crated the envirophat folder insid js and included the documentation in a README.md file

Coverage remained the same at 87.015% when pulling add222844bdaa3541817633aafb47bf8eb086900 on alshafi:master into 2b0aa5ea2e9ea9ea80804328c7c826afaed7dfcb on otcshare:master.

Awesome! looks like everything is green and passing. What is next to merge this PR ?


feature(zk-dump): add support for profiling latencies by path/type

This adds two new flags to zk-dump:

--measure-latency to collect & report per path/type latencies
--aggregation-depth to do this per aggregated path

This is quite useful to find slow operations, specially
for x-DC clusters.
Signed-off-by: Raul Gutierrez S<EMAIL_ADDRESS>Signed-off-by: Raul Gutierrez S<EMAIL_ADDRESS>

ping @Yasumoto  :-) (for review, not merging (yet))

gentle follow-up ping :-)


Debug Hover Widget constructed eagerly on startup

Problem
The debug hover widget is constructed eagerly on startup, even though it does not need to be shown yet. The constructor alone takes ~30ms on my machine

/duplicate of #38625


(CI fix) Attempt to fix persistent Windows error

we're getting this error in CI
FAIL test/tests/tsdx-build.test.js (28.254s)
  ● tsdx build › should create the library correctly

    ShellJSInternalError: EPERM: operation not permitted, mkdir 'D:/a/tsdx/tsdx/stage-build'

      10 |   setupStageWithFixture: (stageName, fixtureName) => {
      11 |     const stagePath = path.join(rootDir, stageName);
    > 12 |     shell.mkdir(stagePath);
         |           ^
      13 |     shell.exec(`cp -a ${rootDir}/test/fixtures/${fixtureName}/. ${stagePath}/`);
      14 |     shell.ln(
      15 |       '-s',

      at ../node_modules/shelljs/src/mkdir.js:83:12
          at Array.forEach (<anonymous>)
      at Object._mkdir (../node_modules/shelljs/src/mkdir.js:59:8)
      at Object.mkdir (../node_modules/shelljs/src/common.js:384:25)
      at Object.setupStageWithFixture (fixtures/util.js:12:11)
      at Object.<anonymous> (tests/tsdx-build.test.js:37:10)

  ● tsdx build › should clean the dist directory before rebuilding

@agilgur5 i think this solves it.. just a permissions issue from whatever container we get assigned i'm guessing. its random because github probably swaps out containers randomly based on usage. i'm not a windows/filesystem permission expert - do you think this is ok?

I'm actually not sure if this is windows related (though you've seem more PRs than me), because the error I got in #400 is on Ubuntu 😮 😖 c.f. https://github.com/jaredpalmer/tsdx/pull/400#issuecomment-569372182

@agilgur5 i think this solves it.. just a permissions issue from whatever container we get assigned i'm guessing. its random because github probably swaps out containers randomly based on usage. i'm not a windows/filesystem permission expert - do you think this is ok?

So I'm not sure if this would actually solve the issue. While the fix potentially makes sense for an EPERM error, it just randomly popped up in the middle of testing -- the test before this one ("should compile files into a dist directory") somehow passed, despite using the same setup function 😕 😕
GitHub Actions seem to run on full VMs, but in any case, filesystem permissions are normally set during image creation (or like during init or by an operator), and these all run on the same image, so they should have the same permissions 😕 The non-determinism of these filesystem errors is very perplexing
I also found that #391 had the same failure as #400 , which is the same as the one I described in https://github.com/jaredpalmer/tsdx/pull/367#issuecomment-565290969 , a missing .d.ts file. And both of those are on Ubuntu (and it occurred for me on macOS locally). Should probably file a separate issue for that now that it's showed up at least 3 times, but these might all be related.

problem is now i dont know if this solution does anything at all, and if the Ubuntu problem is the same at all. I'll just close this for now and study the situation a little more.

Would have to run like a fuzz test 100x+ times to somewhat test it since these errors are non-deterministic 😕 I think it would be good to have a running list of each test failure that reproduces this for analysis. And possibly send that list to GitHub support to take a look 😅

Speaking of, this EPERM error was repro'd in https://github.com/jaredpalmer/tsdx/runs/369303299

Ubuntu error with .d.ts missing was repro'd on master at:

https://github.com/jaredpalmer/tsdx/runs/373979788

EPERM repro'd on master at:

https://github.com/jaredpalmer/tsdx/runs/373978737

Can you make a PR to fix the error outside of the refactor PR?

Just noting here that the missing .d.ts errors (a little different than the subject of this issue), which were happening nearly every CI run, were fixed in #504


How to get a notifications when a device appear online and when it seems disconnected ?

Problem
I am building a Matter controller using TE9 commit. Currently with this controller we can commission and control devices.
To improve the user experience, we would like to be able to detect when a device appears online and when a device seems "offline" (not speaking since long time).
Currently I'm not sure about how to do it with the Matter stack and if this functionality is supported or not.
Currently I found this:
chip::Controller::DeviceDiscoveryDelegate:
void OnDiscoveredDevice(const chip::Dnssd::DiscoveredNodeData & nodeData)

This function is not what i am looking for as we don't have the NodeID information in nodeData. And I'm not sure if I can use it in another context than "pairing".
Also I found this:
NodeListener (src/lib/address_resolve/AddressResolve.h):
    /// Callback executed once only for a lookup, when the final address of a
    /// node is considered to be the best choice for reachability.
    ///
    /// The callback is expected to be executed within the CHIP event loop
    /// thread.
    virtual void OnNodeAddressResolved(const PeerId & peerId, const ResolveResult & result) = 0;

    /// Node resolution failure - occurs only once for a lookup, when an address
    /// could not be resolved - generally due to a timeout or due to DNSSD
    /// infrastructure returning an error.
    ///
    /// The callback is expected to be executed within the CHIP event loop
    /// thread.
    virtual void OnNodeAddressResolutionFailed(const PeerId & peerId, CHIP_ERROR reason) = 0;

But again, I'm not sure about how to use it, and if I can use it (as it is already used by src/lib/address_resolve/AddressResolve_DefaultImpl.cpp) (and it's possibly only for the "stack usage").
Any ideas ?

The correct method is not discovery, since it is liable to TTL caching, especially for Thread devices. The correct method is to establish a subscription to devices you care to have their liveness information, and use the time-out of the subscription to trigger determining if still alive

I understand, and my objective is also to use the subscribe, but for example:
Currently on TE9 with lighting examples for ESP32-C3, after the comissioning succeed it happens that the device loose the WiFi connection and get some difficulties to return on the network, so as we send a subscribe after commissioning succeed and the device loose WiFi at this point, we get a timeout.
After that, when you know the device is "offline", what is the strategy to check his presence ?

Send a subscribe command every X minutes until success ?
Wait for a message that notify about the device presence in the network and then send the subscribe ?

For the second statement we need to get a notification from the stack to implement it.
NOTE: The problem described on the example is possibly due to a bug in the lighting example on ESP32-C3 (I think it's when BLE is disabled we loose the WiFi) but it's not really important as our software need to be resistant against this.

I too am interested in this issues. Has anyone found a solution?

controller can create a wildcard subscription with target device, if device goes offline, after max period(set by subscription), the controller would not receive any report from target, https://github.com/project-chip/connectedhomeip/blob/master/src/app/ReadClient.cpp#L634 would be called, the android chip-tool, for example, would get the corresponding callback to let application know the device goes "offline", then controller would use default fibonacci algorithm to retry the subscription, once the connection is up, the application received subscriptionEstablished callback(https://github.com/project-chip/connectedhomeip/blob/master/src/app/ReadClient.h#L138), which can be used as "Online" sign. thanks


use bytesize as real zise of the string

else it always fails with utf strings

Thanks! Can you bump the patch level please? Then I'll happily merge this.

@johnewart  done

👍

@johnewart  can you push this to rubygems?


Fix IOBinding population error when batch_size>1

What does this PR do?
Fixes #404

Force tensors to be contiguous (otherwise might populate in the wrong address).
Add bs>1 and beam search to test.

Kudos to @soocheolnoh for testing and catching the bug.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

LGTM. Is this fixing the issue of translation results being different?

LGTM. Is this fixing the issue of translation results being different? If there is no such test, can we add one?

Yes, it does. And I added beam search on the seq2seq generation test. I think it would be enough.


[Bug-App]: Missing options for grouped plots

Describe the bug
The "Grouping" window for my grouped plots is, for some reason, limited to just a few options:

so I am unable to, for example, set the range to be Std Dev, or select Median aggregation. This is quite annoying, and it used to work fine within this project, so I'm not sure what has changed.  The plot shown is a group of five runs, all of which definitely logged to this plot and are currently set to visible. I tried changing the legend to use ${stddev} as listed in the docs, but it just shows up as an empty string. What's going on here?
OS: Windows 10
Browser: Chrome Version 130.0.6723.59
Edit: in fact, the options are missing for every plot in this project after grouping

Hi @zzbuzzard! Thank you for writing in!
What are you grouping your runs by in order to reproduce this behavior? Are you seeing this behavior in the grouped workspace of the run, or are you seeing this in the project's workspace?

Hi @ArtsiomWB, sorry for the slow reply. I am grouping them by a config item, but I've just checked and grouping by e.g. State produces the same result. This is in the project workspace.

Hi @zzbuzzard, no worries! looks like you are running into this behavior because of the full fidelity mode on your chart. I see a similar behavior until I change my chart to random sampling (video attached)
https://github.com/user-attachments/assets/a718e797-e4bf-4b9c-8d33-8a54b313447b
If you are interested in changing all of the charts on your workspace to random sampling at once, you can do it by going to the workspace settings and into the line plots tab, and turning on random sampling under the Point aggregation method settings.
https://github.com/user-attachments/assets/301f6418-2393-4f63-9004-27500842b131

@ArtsiomWB wow, what! Thanks so much, that totally fixed it (and thanks for the video too).
FWIW this seems a bit counterintuitive to me, and I don't think I would've ever arrived at this solution alone; perhaps there should be a tip in the Grouping window when Full fidelity is enabled that says "options are limited in full fidelity mode" or something? Also, I don't know how I turned on full fidelity mode, but as I had a small number of data points the limitation shouldn't really have mattered.
Anyway, thanks again. My issue is fixed so I will close, but I do think the UI around this somewhat subtle point could be improved, so consider this a feature request now rather than a bug :)


More space efficient serialization

nice library. I remember the original ot code has compact_elias_fano codes where universe and num elems can be passed in during serialization to make the format more compact. this is especially important when we want to store many small lists where the overhead of storing these explicitly can be prohibitive.
Any plans for such structures?

@mpetri
Oh, I don't know that option. Thank you for the info! I'll investigate it, and if it has a significant impact, I'll add that option to sucds.


Implement location_search by name and id

Hi, is it possible to search for GEO coordinates yet?

location_search - by coordinates https://github.com/adw0rd/instagrapi/blob/master/instagrapi/location.py#L10
More examples here - https://github.com/adw0rd/instagrapi/blob/master/tests.py#L798

@adw0rd
I ran into an issue when I was adding locations to (photo_upload) it's picking always a different location and it's because the function (location_info) doesn't return  Location.external_id and this force the function (location_build) to do a location_search base on the lat and lng so this causing the locations to be wrong most of the time or not perfect here is and example of location_search_pk and location_info
`from instagrapi import Client
import sys
import json
cl = Client()
loc=cl.location_info(319703195161335)
print(loc)
loc1=cl.location_search_pk(319703195161335)
print(loc1)`

I also added the function location_search_name(name) example
`from instagrapi import Client
import sys
import json
cl = Client()
locs=cl.location_search_name("caracas")
print(locs)
`
return

Here is the fork with the changes
https://github.com/jhd3197/instagrapi/commit/df025a1f54f9659908629e3f197030e882aecfeb
Best hope this can help

@jhd3197 You ran tests?

@adw0rd
I did and I got this:

but I don't know how to debug this or how to check if those errors are coming from this change I also try testing this repository without making any change and I always get a login issue when I'm trying to test with docker even when I know the password it's correct

Added FbSearchMixin.fbsearch_places:
>>> cl.fbsearch_places('New York')[0].dict()
{'pk': 486560663,
 'name': 'New York City, N.Y.',
 'phone': '',
 'website': '',
 'category': '',
 'hours': {},
 'address': None,
 'city': None,
 'zip': None,
 'lng': -74.005891084671,
 'lat': 40.712701423445,
 'external_id':<PHONE_NUMBER>14218,
 'external_id_source': 'facebook_places'}