CDC cloud: changefeed can not work normally and cannot be stopped or deleted.

Bug Report
Please answer these questions before submitting your issue. Thanks!

What did you do? If possible, provide a recipe for reproducing the error.

step1: create some changefeeds with a error sink-uri, it created successfully but reported an error.
step2: create some changefeeds with a correct sink-uri, it created successfully and in normal state.
step3: After a while, I found that all tasks were stuck and can not remove any changefeed.

What did you expect to see?

cdc work normally.

What did you see instead?
I can not resume, pause or remove any changefeed aboved.

[root@Copy-of-VM-EE-CentOS76-v1 bin]# ./cdc cli changefeed list
[
  {
    "id": "cloud-cdc-1",
    "summary": {
      "state": "normal",
      "tso":<PHONE_NUMBER>37788697,
      "checkpoint": "2021-07-07 21:07:50.713",
      "error": null
    }
  },
  {
    "id": "cloud-cdc-bug",
    "summary": {
      "state": "normal",
      "tso":<PHONE_NUMBER>10300721,
      "checkpoint": "2021-07-07 18:23:57.463",
      "error": {
        "addr": "<IP_ADDRESS>:18304",
        "code": "CDC:ErrOwnerUnknown",
        "message": "fail to open MySQL connection: [CDC:ErrMySQLConnectionError]dial tcp <IP_ADDRESS>:3306: connect: connection refused"
      }
    }
  },
  {
    "id": "cloud-cdc-bug1",
    "summary": {
      "state": "normal",
      "tso":<PHONE_NUMBER>52169491,
      "checkpoint": "2021-07-07 18:26:12.663",
      "error": {
        "addr": "<IP_ADDRESS>:18303",
        "code": "CDC:ErrOwnerUnknown",
        "message": "fail to open MySQL connection: [CDC:ErrMySQLConnectionError]dial tcp <IP_ADDRESS>:3306: connect: connection refused"
      }
    }
  },
  {
    "id": "cloud-cdc-bug11",
    "summary": {
      "state": "normal",
      "tso":<PHONE_NUMBER>22095930,
      "checkpoint": "2021-07-07 20:25:27.013",
      "error": null
    }
  },
  {
    "id": "cloud-cdc-bug3",
    "summary": {
      "state": "normal",
      "tso":<PHONE_NUMBER>20303888,
      "checkpoint": "2021-07-07 18:38:35.263",
      "error": {
        "addr": "<IP_ADDRESS>:18303",
        "code": "CDC:ErrOwnerUnknown",
        "message": "fail to open MySQL connection: [CDC:ErrMySQLConnectionError]dial tcp <IP_ADDRESS>:3306: connect: connection refused"
      }
    }
  }

Versions of the cluster

Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
5.0.0

TiCDC version (execute cdc version):
Release Version: v5.0.2-63-g9300b05-dirty
Git Commit Hash: 9300b05ceec2c4811198416a5d21e9f4910deddd
Git Branch: HEAD
UTC Build Time: 2021-07-07 07:24:23
Go Version: go version go1.16.5 darwin/amd64
Failpoint Build: false

cdc#2242-113.log
cdc#2242-114.log
log here.

There is two major error in the log.
first
[2021/07/07 20:48:42.403 +08:00] [ERROR] [changefeed.go:106] ["an error occurred in Owner"] [changefeedID=cloud-cdc-bug1]
[error="fail to open MySQL connection: [CDC:ErrMySQLConnectionError]dial tcp <IP_ADDRESS>:3306: connect: connection refused"]
[errorVerbose="[CDC:ErrMySQLConnectionError]dial tcp <IP_ADDRESS>:3306: connect: connection refused\ngithub.com/pingcap/errors.AddStack\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\n
github.com/pingcap/errors.(*Error).GenWithStackByCause\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/normalize.go:279\n
github.com/pingcap/ticdc/pkg/errors.WrapError\n\t
github.com/pingcap/ticdc/pkg/errors/helper.go:28\n
github.com/pingcap/ticdc/cdc/sink.getDBConn\n\t
github.com/pingcap/ticdc/cdc/sink/mysql.go:509\n
github.com/pingcap/ticdc/cdc/sink.newMySQLSink\n\t
github.com/pingcap/ticdc/cdc/sink/mysql.go:559\n
github.com/pingcap/ticdc/cdc/sink.init.1.func2\n\t
github.com/pingcap/ticdc/cdc/sink/sink.go:72\n
github.com/pingcap/ticdc/cdc/sink.NewSink\n\t
github.com/pingcap/ticdc/cdc/sink/sink.go:113\n
github.com/pingcap/ticdc/cdc/owner.newAsyncSink\n\t
github.com/pingcap/ticdc/cdc/owner/async_sink.go:80\n
github.com/pingcap/ticdc/cdc/owner.(*changefeed).initialize\n\t
github.com/pingcap/ticdc/cdc/owner/changefeed.go:209\n
github.com/pingcap/ticdc/cdc/owner.(*changefeed).tick\n\t
github.com/pingcap/ticdc/cdc/owner/changefeed.go:139\n
github.com/pingcap/ticdc/cdc/owner.(*changefeed).Tick\n\t
github.com/pingcap/ticdc/cdc/owner/changefeed.go:105\n
github.com/pingcap/ticdc/cdc/owner.(*Owner).Tick\n\t
github.com/pingcap/ticdc/cdc/owner/owner.go:134\n
github.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).Run\n\t
github.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:168\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).runEtcdWorker\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:261\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).campaignOwner\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:240\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).run.func2\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:169\n
runtime.goexit\n\t
runtime/asm_amd64.s:1371\n
fail to open MySQL connection"]

second
[2021/07/08 11:53:49.637 +08:00] [INFO] [capture.go:242]
["run owner exited"] [error="rpc error: code = ResourceExhausted desc = trying to send message larger than max (2376964 vs. 2097152)"]
[errorVerbose="rpc error: code = ResourceExhausted desc = trying to send message larger than max (2376964 vs. 2097152)\n
github.com/pingcap/errors.AddStack\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\n
github.com/pingcap/errors.Trace\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\n
github.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).applyPatches\n\t
github.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:282\n
github.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).applyPatchGroups\n\t
github.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:235\n
github.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).Run\n\t
github.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:146\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).runEtcdWorker\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:261\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).campaignOwner\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:240\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).run.func2\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:169\n
runtime.goexit\n\truntime/asm_amd64.s:1371"]

[2021/07/08 11:53:49.641 +08:00] [INFO] [capture.go:170]
["the owner routine has exited"]
[error="rpc error: code = ResourceExhausted desc = trying to send message larger than max (2376964 vs. 2097152)"]
[errorVerbose="rpc error: code = ResourceExhausted desc = trying to send message larger than max (2376964 vs. 2097152)\n
github.com/pingcap/errors.AddStack\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\n
github.com/pingcap/errors.Trace\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\n
github.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).applyPatches\n\t
github.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:282\n
github.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).applyPatchGroups\n\t
github.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:235\n
github.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).Run\n\t
github.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:146\ngithub.com/pingcap/ticdc/cdc/capture.(*Capture).runEtcdWorker\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:261\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).campaignOwner\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:240\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).run.func2\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:169\nruntime.goexit\n\t
runtime/asm_amd64.s:1371"]

[2021/07/08 11:53:49.641 +08:00] [INFO] [capture.go:181] ["the processor routine has exited"]
[error="[CDC:ErrPDEtcdAPIError]context canceled"]
[errorVerbose="[CDC:ErrPDEtcdAPIError]context canceled\n
github.com/pingcap/errors.AddStack\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\n
github.com/pingcap/errors.(*Error).GenWithStackByCause\n\t
github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/normalize.go:279\n
github.com/pingcap/ticdc/pkg/errors.WrapError\n\t
github.com/pingcap/ticdc/pkg/errors/helper.go:28\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).runEtcdWorker\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:274\n
github.com/pingcap/ticdc/cdc/capture.(*Capture).run.func3\n\t
github.com/pingcap/ticdc/cdc/capture/capture.go:180\n
runtime.goexit\n\truntime/asm_amd64.s:1371"]

[2021/07/08 11:53:49.644 +08:00] [INFO] [capture.go:138] ["the capture routine has exited"]
[2021/07/08 11:53:49.645 +08:00] [INFO] [client.go:510] ["[pd] exit tso dispatcher"] [dc-location=global]

[2021/07/08 11:53:49.646 +08:00] [ERROR] [server.go:129] ["run server"] [error="rpc error: code = ResourceExhausted desc = trying to send message larger than max (2376964 vs. 2097152)\ngithub.com/pingcap/errors.AddStack\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174\ngithub.com/pingcap/errors.Trace\n\tgithub.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15\ngithub.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).applyPatches\n\tgithub.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:282\ngithub.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).applyPatchGroups\n\tgithub.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:235\ngithub.com/pingcap/ticdc/pkg/orchestrator.(*EtcdWorker).Run\n\tgithub.com/pingcap/ticdc/pkg/orchestrator/etcd_worker.go:146\ngithub.com/pingcap/ticdc/cdc/capture.(*Capture).runEtcdWorker\n\tgithub.com/pingcap/ticdc/cdc/capture/capture.go:261\ngithub.com/pingcap/ticdc/cdc/capture.(*Capture).campaignOwner\n\tgithub.com/pingcap/ticdc/cdc/capture/capture.go:240\ngithub.com/pingcap/ticdc/cdc/capture.(*Capture).run.func2\n\tgithub.com/pingcap/ticdc/cdc/capture/capture.go:169\nruntime.goexit\n\truntime/asm_amd64.s:1371\nowner exited with error"]

[2021/07/08 11:53:49.646 +08:00] [INFO] [client.go:510] ["[pd] exit tso dispatcher"] [dc-location=global]
[2021/07/08 11:53:49.646 +08:00] [INFO] [client_v2.go:166] ["stream to store closed"] [addr=<IP_ADDRESS>:20160] [storeID=4]
[2021/07/08 11:54:05.038 +08:00] [INFO] [util.go:93] ["init log"] [file=/tidb-deploy/cdc-18303/log/cdc.log] [level=info]
[2021/07/08 11:54:05.039 +08:00] [INFO] [version.go:47] ["Welcome to Change Data Capture (CDC)"] [release-version=v5.0.2-63-g9300b05-dirty] [git-hash=9300b05ceec2c4811198416a5d21e9f4910deddd] [git-branch=HEAD] [utc-build-time="2021-07-07 07:24:23"] [go-version="go version go1.16.5 darwin/amd64"] [failpoint-build=false]
[2021/07/08 11:54:05.039 +08:00] [INFO] [server.go:74] ["creating CDC server"] [pd-addrs="[http://<IP_ADDRESS>:2379,http://<IP_ADDRESS>:2379,http://<IP_ADDRESS>:2379]"] [config="{\"addr\":\"<IP_ADDRESS>:18303\",\"advertise-addr\":\"<IP_ADDRESS>:18303\",\"log-file\":\"/tidb-deploy/cdc-18303/log/

I have these two problems

If --sink-uri cannot be connected at the beginning, why can cdc successfully create changefeed? (can not repreduce again...)
Is the  ResourceExhausted desc error cause by constantly retrying to initialize a changefeed? Or it was caused by other reasons?

How many tables were you trying to replicate with the second changefeed? If it's more than 5000, ResourceExhausted is expected. Please try the latest cloud-cdc-5.1 branch.

@ben1009 please help to answer above question.

How many tables were you trying to replicate with the second changefeed? If it's more than 5000, ResourceExhausted is expected. Please try the latest cloud-cdc-5.1 branch.

12 tables.

[2021/07/07 20:34:31.687 +08:00] [INFO] [scheduler.go:347] ["Start rebalancing"] [changefeed=cloud-cdc-bug11] [table-num=18508] [capture-num=2] [target-limit=9254]
It seems that the changefeed is trying to replicate 18508 tables. Please confirm if this is expected.

@ben1009 please help to answer above question.

upstream create 4k tables totally, without dml, as i can recall

@ben1009 please help to answer above question.

upstream create 4k tables totally, without dml, as i can recall

Got the record from chat history
mysql> SELECT COUNT() FROM information_schema.tables WHERE table_schema = 'testcc0';
+----------+
| COUNT() |
+----------+
|     4303 |
+----------+

A similar issue from AskTUG https://asktug.com/t/topic/243233/27

I think 4k tables is far beyond the boundary that cdc can works norlly. @overvenus @liuzix Please to help me determine is it need to be a feature rather than a bug, thanks~!

I change this issue severity from major to moderate because it seems beyond the boundary that cdc can works normally.

This problem no longer exists in the current version. If you find this problem again in the future, please reopen this issue and @ me, thank you.


Add --ext option

This PR adds the ability to pass which file extensions lint-diff looks for (since right now we only do .js).

Also update peerDependency for eslint to be >=4.x
Upgrade ramda to 0.26.1
Replace pipeP with pipeWith as pipeP is deprecated.

@grvcoelho ,This should be ready for review.

yes, pls

@shoesel , I made a release based off this PR in the interim if you want to use it. https://github.com/vecchp/lint-diff/releases/download/v1.3.0/lint-diff-1.3.0.tgz

@grvcoelho is this project still maintained?

@grvcoelho , any chance you'd be able to review this PR?

This feature would be awesome!

@vecchp It looks like this project isn't maintained anymore. Could you publish your version to npm?

Sure, I'll try and get around to that this evening

I didn't have a chance last night but I'll make my best effort to publish it soon.

Should be published as<EMAIL_ADDRESS>now

We are considering moving to this plugin in favor of lint-diff: https://github.com/paleite/eslint-plugin-diff


[ENG-7328][eas-cli] fix undefined branchMappingLogic

Checklist

[ ] I've added an entry to CHANGELOG.md if necessary. You can comment this pull request with /changelog-entry [breaking-change|new-feature|bug-fix|chore] [message] and CHANGELOG.md will be updated automatically.

Why
When someone has a channel that doesn't point to a branch, the branch mapping is {version: 0, data []}. While this is valid, the cli assumes there is always some mapped branch . This PR fixes this assumption.
How
Optionally chain branchMapping.data[0] because it can be undefined
Test Plan

[ ] manually tested

/changelog-entry bug-fix fix undefined branchMappingLogic


Allow eve_pause_before_install and eve_pause_after_install in installer

We have eve_pause_before_install and eve_pause_after_install options but they are broken now. We are fighting with login process from linuxkit/getty for console access. Seems reasonable to stop rungetty when we need console from installer.
Also seems reasonable to have possibility to start interactive app in installer.

I still don't understand what you're trying to accomplish here @giggsoff -- what is the high level problem we're trying to solve?

We have eve_pause_before_install and eve_pause_after_install options baut they are broken now, I want to fix them. And I want to have possibility (in future @mikem-zed have a plan to use it) to start interactive app in installer.

OK, now that I understand what it is -- I suggest we have a quick sync up between 3 of us (including @mikem-zed) to agree on a way forward here. I have a few ideas and would like to see if they could work for what you're trying to do.


Update ds18b module to use w1thermsensor v2.x

w1thermsensor has just had a v2.0.0 release, so we can update our module to support that now, in order to avoid the bug mentioned in https://github.com/flyte/pi-mqtt-gpio/issues/155.
Unfortunately this means that using the ds18b module will no longer be supported on Python 2. I may introduce a Python version check system so that our users are informed when they try to configure a Python 3 only module (or just release the asyncio Python 3 only update finally).

Thanks for getting v2.0 released, been waiting for that for some time.

Thanks for getting v2.0 released, been waiting for that for some time.

Hello
can you tell me a timeline when i can use the W1termsensor with the v2.0?
Kind regards
Jürgen

@JuergenKnill I've updated it in the new asyncio version of this project. It's quite close to being released, but it'd be helpful if you could test it out on the feature/asyncio branch. It should be compatible with most existing configs. You can run it with python -m mqtt_io config.yml.
I no longer intend to update this version of the project, so I'm going to close this issue since it's been done on the new version.

Instructions for testing out the asyncio version are in https://github.com/flyte/pi-mqtt-gpio/issues/141

Hello
now i have time to test but we get an error
root@serverraum:/usr/local/lib/python3.7/dist-packages# python3 -m
asyncio_mqtt /etc/pi-mqtt-gpio.yml
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.7/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.7/runpy.py", line 109, in _get_module_details
import(pkg_name)
File
"/usr/local/lib/python3.7/dist-packages/asyncio_mqtt/init.py", line
3, in
from .client import Client, Will
File "/usr/local/lib/python3.7/dist-packages/asyncio_mqtt/client.py",
line 2, in
import asyncio
File "/usr/lib/python3.7/asyncio/init.py", line 8, in
from .base_events import *
File "/usr/lib/python3.7/asyncio/base_events.py", line 18, in

import concurrent.futures
File "/usr/lib/python3.7/concurrent/futures/init.py", line 8, in

from concurrent.futures._base import (FIRST_COMPLETED,
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 7, in

import logging
File "/usr/lib/python3.7/logging/init.py", line 26, in
import sys, os, time, io, traceback, warnings, weakref,
collections.abc
File "/usr/lib/python3.7/traceback.py", line 5, in
import linecache
File "/usr/lib/python3.7/linecache.py", line 11, in
import tokenize
File "/usr/lib/python3.7/tokenize.py", line 33, in
import re
File "/usr/lib/python3.7/re.py", line 143, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
kind regards
Jürgen Knill
Knill Software & Kommunikation
Bildstock 9/2
88085 Langenargen
Tel.:+49 (0) 7543/953180
Fax :+49 (0) 7543/953182
<EMAIL_ADDRESS>www.knill.de
Knill Software & Kommunikation * Bildstock 9/2 * 88085 Langenargen
Tel.: +49 7543/953180 * Fax: +49 7543/953182 * email<EMAIL_ADDRESS>*
Internet: www.knill.de
UST-IdNr.:DE175009989 * Steuer-Nr.:61157/38804

Ellis Percival<EMAIL_ADDRESS>Dienstag, 23. Februar
2021 15:43 >>>
Instructions for testing out the asyncio version are in #141
( https://github.com/flyte/pi-mqtt-gpio/issues/141)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
(
https://github.com/flyte/pi-mqtt-gpio/issues/157#issuecomment-784250859)
, or unsubscribe
(
https://github.com/notifications/unsubscribe-auth/AF23VO6AFJEN7T6Y4444TPDTAO5ILANCNFSM4WRYSCLQ)
.

Hello
i have do the install for the asyncio but we get the error
@.:/home/pi# pip3 install --pre mqtt-io
Looking in indexes: https://pypi.org/simple,
https://www.piwheels.org/simple
Collecting mqtt-io
Using cached
https://files.pythonhosted.org/packages/22/d1/99a456bd6ecaa8eb0cb8114fb069eadefd3c96305763fe358658d3e81a67/mqtt_io-2.1.1-py3-none-any.whl
Collecting Cerberus<2.0.0,>=1.3.2 (from mqtt-io)
Using cached
https://www.piwheels.org/simple/cerberus/Cerberus-1.3.2-py3-none-any.whl
Collecting typing-extensions<4.0.0,>=3.7.4 (from mqtt-io)
Using cached
https://files.pythonhosted.org/packages/60/7a/e881b5abb54db0e6e671ab088d079c57ce54e8a01a3ca443f561ccadb37e/typing_extensions-<IP_ADDRESS>-py3-none-any.whl
Collecting asyncio-mqtt<0.9.0,>=0.8.1 (from mqtt-io)
Using cached
https://files.pythonhosted.org/packages/7a/c7/02372db3f34f15a1aed25a0f71505d9cd54aaed54c0fef3211c2cc7ba1af/asyncio_mqtt-0.8.1-py3-none-any.whl
Collecting PyYAML>=5.3.1 (from mqtt-io)
Using cached
https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/PyYAML.egg-info
writing pip-egg-info/PyYAML.egg-info/PKG-INFO
writing dependency_links to
pip-egg-info/PyYAML.egg-info/dependency_links.txt
writing top-level names to
pip-egg-info/PyYAML.egg-info/top_level.txt
writing manifest file 'pip-egg-info/PyYAML.egg-info/SOURCES.txt'
cythoning yaml/_yaml.pyx to yaml/_yaml.c
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-il6mcq6l/PyYAML/setup.py", line 295, in

python_requires='>=2.7, !=3.0., !=3.1., !=3.2., !=3.3.,
!=3.4., !=3.5.*',
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/setuptools/init.py",
line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in
setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in
run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in
run_command
cmd_obj.run()
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/setuptools/command/egg_info.py",
line 299, in run
self.find_sources()
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/setuptools/command/egg_info.py",
line 306, in find_sources
mm.run()
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/setuptools/command/egg_info.py",
line 541, in run
self.add_defaults()
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/setuptools/command/egg_info.py",
line 577, in add_defaults
sdist.add_defaults(self)
File "/usr/lib/python3.7/distutils/command/sdist.py", line
228, in add_defaults
self._add_defaults_ext()
File "/usr/lib/python3.7/distutils/command/sdist.py", line
312, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
File "/tmp/pip-install-il6mcq6l/PyYAML/setup.py", line 197, in
get_source_files
self.check_extensions_list(self.extensions)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py",
line 193, in check_extensions_list
ext.sources = self.cython_sources(ext.sources, ext)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py",
line 344, in cython_sources
full_module_name=module_name)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/Main.py",
line 626, in compile
return compile_single(source, options, full_module_name)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/Main.py",
line 575, in compile_single
return run_pipeline(source, options, full_module_name)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/Main.py",
line 494, in run_pipeline
pipeline = Pipeline.create_pyx_pipeline(context, options,
result)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/Pipeline.py",
line 252, in create_pyx_pipeline
create_pipeline(context, mode,
exclude_classes=exclude_classes),
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/Pipeline.py",
line 144, in create_pipeline
from .ParseTreeTransforms import WithTransform,
NormalizeTree, PostParse, PxdPostParse
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/ParseTreeTransforms.py",
line 1632, in
class AnalyseDeclarationsTransform(EnvTransform):
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/ParseTreeTransforms.py",
line 1640, in AnalyseDeclarationsTransform
""", level='c_class', pipeline=[NormalizeTree(None)])
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/TreeFragment.py",
line 235, in init
mod = t = parse_from_strings(name, fmt_code, fmt_pxds,
level=level, initial_pos=initial_pos)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/TreeFragment.py",
line 75, in parse_from_strings
scope = scope, context = context, initial_pos =
initial_pos)
File "Cython/Compiler/Scanning.py", line 306, in
Cython.Compiler.Scanning.PyrexScanner.init
File "Cython/Compiler/Scanning.py", line 35, in
Cython.Compiler.Scanning.get_lexicon
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Compiler/Lexicon.py",
line 147, in make_lexicon
(Eof, Method('eof_action'))
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Plex/Lexicons.py",
line 129, in init
nfa, default_initial_state, spec, token_number)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Plex/Lexicons.py",
line 162, in add_token_to_machine
match_bol=1, nocase=0)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Plex/Regexps.py",
line 301, in build_machine
re.build_machine(m, s1, s2, match_bol, nocase)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Plex/Regexps.py",
line 340, in build_machine
initial_state = self.build_opt(m, initial_state, BOL)
File
"/tmp/pip-build-env-lmkr16tl/lib/python3.7/site-packages/Cython/Plex/Regexps.py",
line 136, in build_opt
initial_state.link_to(s)
File "Cython/Plex/Machines.py", line 86, in
Cython.Plex.Machines.Node.link_to
File "Cython/Plex/Machines.py", line 82, in
Cython.Plex.Machines.Node.add_transition
File "Cython/Plex/Transitions.py", line 60, in
Cython.Plex.Transitions.TransitionMap.add
File "Cython/Plex/Machines.py", line 124, in
Cython.Plex.Machines.Node.hash
OverflowError: Python int too large to convert to C ssize_t
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-install-il6mcq6l/PyYAML/
Kind regards
Jürgen Knill
Knill Software & Kommunikation
Bildstock 9/2
88085 Langenargen
Tel.:+49 (0) 7543/953180
Fax :+49 (0) 7543/953182
@.***
www.knill.de
Knill Software & Kommunikation * Bildstock 9/2 * 88085 Langenargen
Tel.: +49 7543/953180 * Fax: +49 7543/953182 * email: @.*** *
Internet: www.knill.de
UST-IdNr.:DE175009989 * Steuer-Nr.:61157/38804

Ellis Percival @.***> Dienstag, 23. Februar
2021 15:43 >>>
Instructions for testing out the asyncio version are in #141
( https://github.com/flyte/pi-mqtt-gpio/issues/141)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
(
https://github.com/flyte/pi-mqtt-gpio/issues/157#issuecomment-784250859)
, or unsubscribe
(
https://github.com/notifications/unsubscribe-auth/AF23VO6AFJEN7T6Y4444TPDTAO5ILANCNFSM4WRYSCLQ)
.


Update aspnetcore.rst

Short description of what this resolves:
The AgentMiddleware.cs class seems to have moved, updating to the new location.
Changes proposed in this pull request:

Updating link to the new AgentMiddleware.cs location

Fixes: #

Thanks for the update. Please sign-off you commits per DCO requirement - https://github.com/hyperledger/aries-framework-dotnet/pull/128/checks?check_run_id=1096799171


remove cloudant services

Codecov Report

Merging #108 (ac54e61) into main (2e19387) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #108   +/-   ##
=======================================
  Coverage   95.39%   95.39%
=======================================
  Files           5        5
  Lines         282      282
=======================================
  Hits          269      269
  Misses         13       13

Continue to review full report at Codecov.

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


Can line counting possibly be more intelligent?

I have this:
def update_sales_rep_attrs
  params
    .require(:sales_rep)
    .permit(
      :artist_id,
      :business_development_leader_id,
      :commission_override,
      :direct_deposit_status,
      :returning,
      :team_size,
      :year_sales_goal
    )
end

In my eyes, this should count as one line. It's a singular statement split up over several lines for readability and edit-ability (it's easier to delete a single line th. Sadly, Rubocop counts this method as 11 lines long.
In contrast, when I use SimpleCov, it counts that same statement as being a single "line", which gives a more accurate portrayal of the code's true length.
The line-length metric, in tandem with the method length metric, creates sort of a catch 22 where I'm forced to break code into multiple lines to keep it under 80 columns, but then sometimes "punished" for doing so because now all that text extends vertically instead of horizontally.
This can lead down somewhat-contrived paths where I try to define that list of attributes outside of a method so that Rubocop won't "care". For example, I could define those attributes as a constant somewhere, which is actually somewhat reasonable, but this is not typical Rails convention.

Limiting the line length of methods can be useful to keep a method all on one "screen", so you can see the whole definition at once. If that is what you care about, RC's method of counting lines is the best.

Also consider that, by SimpleCov's apparent definition of "line", you could have an arbitrarily long chain of methods spanning hundreds of editor lines treated as a single lexical line.

That was an astoundingly fast reply.
I perceive the method length cop as a way to keep me from writing methods that do too much. Indeed, I have found that it has coerced me into breaking methods down into smaller and more functional pieces.
I agree that vertical readability is a legitimate concern too, although I would imagine that most people are working with a bit more than 10 lines. Similar to the 80 character width, it's not an entirely arbitrary number pulled from the sky, but it is a line drawn in the sand to enforce some kind of standardization.
I could of course change my .rubocop.yml to allow more lines, but the thing about attribute-whitelisting methods like the one I have is that they can be arbitrarily long, and I'd be essentially bumping the limit for the handful of methods that manage to go past 10 lines.
@jawshooah That's true, but the amount of chaining that can be done should be self-limiting in practice.
If nothing else, I would argue that my method body should be counted as 3 lines, with the list of params and the closing parentheses being counted as part of the .permit line rather than 8 individual lines.

Some people will prefer to have each line counted as a "line", some will prefer to have each statement counted as a... "line". If you are interested in counting statements and not lines, then presumably you would like to see obj.a; obj.b; obj.c counted as 3 "lines".
Either way, this cop will not be ideal for everyone. Unless the vast majority of users prefer the latter definition of "line", I say we should keep the current behavior.
To force people to break large, overly complex methods down, we have things like the ABC cop and perceived complexity cop. They do things like counting conditionals, method calls, etc.

Some people will prefer to have each line counted as a "line", some will prefer to have each statement counted as a... "line".

That seems to be an argument to make it at least configurable.

If you are interested in counting statements and not lines, then presumably you would like to see obj.a; obj.b; obj.c counted as 3 "lines".

Yes. (That said, Rubocop disallows semicolons by default.)

To force people to break large, overly complex methods down, we have things like the ABC cop and perceived complexity cop. They do things like counting conditionals, method calls, etc.

This is a fair point. Maybe I should just disable method length entirely for my purposes.
To be honest, I don't really see the point in limiting the method length to ten lines purely for aesthetic or readability reasons. The 80-column width is necessary because scrolling both horizontally and vertically when trying to read or edit code is not a fun experience, but having to scroll vertically a bit to figure out what code is doing is something we all inevitably have to do, and I imagine almost all of us can fit a good deal more than 10 lines on our screen at a time.
I try to run Rubocop using the default settings (maybe disabled for code I didn't write, like generated configs) because if I just disable cops that are convenient to disable, and say "that doesn't really matter", then I'm going down a slippery slope where I eschew compliance whenever it's easy. For me, it's kind of an all-or-nothing thing.

That seems to be an argument to make it at least configurable.

Maintainers, would you accept a patch to make this configurable? Or a patch which adds a new cop?

I'd like to see MethodLength remain as it is today. I've argued before that MethodLength should just measure the length of a method, and that length should be defined as number of (non-comment by default) lines. See #494, and also #1077 that disucusses a MethodExpressionCount cop that eventually was ditched in favor of AbcSize.
A new cop sounds better than changing MethodLength, but can we see an example where AbcSize isn't good enough and we need another metric?

I figured this had been discussed before, but I didn't see those two issues when I did a search. (I think I searched for "line count" or some such.)
It makes sense not to change MethodLength; I misunderstood its purpose. AbcSize seems to do a good enough job at addressing my concerns. I guess the best thing for me to do is disable the MethodLength cop. I was also unaware that I could disable certain cops for a particular method using comments.


can it compress an existing file like gzip??

Can use use the same syntax as gzip to compress an existing file? this does not work
import mgzip
import shutil
with open(filename, 'rb') as f_in:
    with mgzip.open(filename+'.gz', "wt", thread=8, blocksize=2*10**8) as f_out:
        shutil.copyfileobj(f_in, f_out)

@javiercr2020 it works when I change the mode to "wb".


Add RoomTemperatureController as Climate entity

Discussed in https://github.com/kingsleyadam/local-abbfreeathome-hass/discussions/70

Originally posted by rernst November  9, 2024
Hi,
Thanks for the awesome work on this integration! I just installed it in a dev container and everything seems to work smoothly.
The only device I am missing is a 'RoomTemperatureController'. local-abbfreeathome seems to have support for it since last week. So I was just wondering if someone (@derjoerg ?) is working on implementing this as a climate entity?
If not I might try to implement it my self (or help/test if needed), just have to find some time for it :).
Thanks again for the awesome work.
Cheers,
Robert

@rernst, @nrenner73
Can you try to test this PR in your setup?

No errors in the log and I have a new device for each of my thermostats.

Changes of settings (temperature, on/off/eco) on the device are updatet in HA and the other way round works too.
And wow, this is quick!
Let me play with it a bit more but this already looks like another piece of amazing work. Thank you!

Nice work, thanks! Everything seems to work (no errors in log) and my thermostat is automatically added and controllable.


Divisible's minimal definitions

Divisible is the dual of Applicative.
Would it be fine to add similar minimal definitions in Divisible that are duals of those in Applicative

Hi, thanks for your feedback!
I'm not sure it would add "much" because the Contravariant part of Preface doesn't offer direct symmetry with Applicative (and Alternative). Do you think it really brings a lot of clarification and is it worth it?

Fine, after your reply and checking with the code, I think I made a mistake.
My original concern is on lift2 and product. In Applicative, product is defined in each minimal definition. I didn't see it in Divisible.
However, with utop I can see they are both in the module APIs.


SSS Scanlator URL change

https://github.com/keiyoushi/extensions-source/issues/42#issue-2072894346
Checklist:

[ ] Updated extVersionCode value in build.gradle for individual extensions
[ ] Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
[ ] Referenced all related issues in the PR body (e.g. "Closes #xyz")
[ ] Added the isNsfw = true flag in build.gradle when appropriate
[ ] Have not changed source names
[ ] Have explicitly kept the id if a source's name or language were changed
[ ] Have tested the modifications by compiling and running the extension through Android Studio

Obviously untested pr


Google Analytics

Hey,
you've create a great theme.
I have one question though - I'm trying to setup Google Analytics in the config, I pasted the the code, starting with UA-<number>. Unfortunately, it doesn't work. Should I do anything else?

Hi @shalastra !
I don't think so. Theme uses Hugo internal template for GA, so your id in config should be enough.
Maybe some syntax mistake? Check this https://gohugo.io/templates/internal/#configure-google-analytics
And check your GA id in builded html pages. If page contains id, then problem with GA settings on GA side.
If it doesn't help, provide your config please.

Hi,
After a short investigation I think the issue is that the HUGO_ENV is not set as production on my github page.

Sorry, totally forgot about Hugo environments.
You should build with environment setting, e.g.:
HUGO_ENV=production hugo --minify
and deploy result on GH pages

Thanks, now the Google Analytics is added.


Fixed typo

...CLI includes a local browser-based installer...
Signed-off-by: Steve Phillips<EMAIL_ADDRESS>

@titanous @josephglanville I created this new PR, in which I signed off on the DCO, hopefully properly :-).

The commit message still needs the mentioned docs:  subsystem prefix. FYI you can amend the commit and force push, and the PR will update.

@titanous That do it?

LGTM

Thanks!


Use discord username from config

I was a bit confused when I noticed the discord_username parameter in the Discord provider-config.yml file was not actually used when sending the webhook message. It is saved in the Options struct here:
type Options struct {
	ID                      string `yaml:"id,omitempty"`
	DiscordWebHookURL       string `yaml:"discord_webhook_url,omitempty"`
	DiscordWebHookUsername  string `yaml:"discord_username,omitempty"`
	DiscordWebHookAvatarURL string `yaml:"discord_avatar,omitempty"`
	DiscordFormat           string `yaml:"discord_format,omitempty"`
}

But this DiscordWebHookUsername is not actually used further on in the code. This commit simply adds an &username= parameter to the shoutrrr discord URL that is created and makes sure to escape it to allow special characters in the username.
url := fmt.Sprintf("discord://%s@%s?splitlines=no&username=%s", webhookToken, webhookID,
			url.QueryEscape(pr.DiscordWebHookUsername))

sendErr := shoutrrr.Send(url, msg)

Note: This is my first time writing anything in go, but it's a pretty simple change, so it's probably fine

Example

For completeness, we can also add the AvatarURL and other options from shoutrrr, but that would require updating some examples of the provider-config.yml file


Str::random() in Validator::validated()

Laravel Version: 5.8
PHP Version: n/a
Database Driver & Version: n/a

Description:
When trying to figure out something else I found a line of code in the Laravel framework that I found realy strange. The validated() method in Illuminate\Validation\Validator is using Str::random(). It is using Str::random() to generate a value that indicated not set. In normal business this should work. But theoretically it can go wrong when the generated not set-value matched one of the submitted values. A better solution would be to use an new object and use a reference check. And strange enough this was already the code before this commit https://github.com/laravel/framework/commit/ad34b8d4eb0d1c76d55ed3173a33f6fa32ead1d4#diff-38fd116b7c7b8ac1bdd8362250d04d57
Questions:

Why this change, why use random instead of object references?
Why has the changing commit the misleading description formatting
Should we revert this back? It looks like somebody else was already wondering about this code in: #27874 #27873

If you really believe a better solution could be implemented then please open an issue on the ideas repo. I get the idea behind what you're suggesting and it could be nice but it's more of an improvement. We haven't had issue with this before so we don't consider this to be a bug atm.

@driesvints They old solution was better and correct. I'm wondering that this code is changed without an underlying issue..


serialport test suite failure

Preprocessing test suite 'Tests' for serialport-0.4.7...
[1 of 1] Compiling Main             ( tests/Tests.hs, dist/build/Tests/Tests-tmp/Main.o )
Linking dist/build/Tests/Tests ...
> /tmp/stackage-build8/serialport-0.4.7$ dist/build/Tests/Tests
Tests: user error (Pattern match failure in do expression at tests/Tests.hs:105:3-27)

This is due to tidal?

serialport is a dependency of tidal, so it's only brought into the build plan via tidal.

Since it is a dependency could we add serialport to expected-test-failures?

Sounds fine to me. Discuss it with tidal and serialport maintainers as you see fit, @juhp.

Okay I let serialport tests fail.


Advanced Search: sort order in dropdown list

Advanced search, not logged in
I want to search all letters by the author "is equal to" Leonhard Euler.
As already mentioned in #139 I cannot add a text when I select "is equal to" but have to select from a list.
Unfortunately the entries in the offered selection seem not to be sorted in any kind, which makes it very hard to find the correct entry, especially when the list is long.
I would suggest to have it sorted by last name and then add the first names. e.g.
Euler, Charlotte;
Euler, Leonhard...
etc.
OPTIONAL: Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

OS: Windows 10 Pro N, 1903 - 18362.418

Browser Google Chrome, 78.0.3904.87

Version Knora App, 1.6.2

Additional context
Add any other context about the problem here.

@tobiasschweizer referring to Gaby's comment and screen shot above > how does the resource list of Author's name (in the example) sort out? is there any sorting?

It depends on the prop's cardinality if it can be used as a sorting criterion or not. If the cardinality is 1 or max 1, there should be a checkbox "sort criterion" that the user can activate:
https://github.com/dasch-swiss/knora-ui/blob/2986f4e048daa28e5eb23b4920b4dea6cebebf77/projects/knora/search/src/lib/extended-search/select-property/select-property.component.ts#L104-L131
The reason for this is that you cannot order search results by a property that occurs several times on a resource. However, this is still an open TODO in Gravsearch:
https://github.com/dasch-swiss/knora-api/blob/bd08f2c734c59b63960a05e8a0277acc7b58f5e9/webapi/src/main/scala/org/knora/webapi/responders/v2/SearchResponderV2.scala#L368-L369

@tobiasschweizer ok thanks. And about the list of value in the advanced form, is there any sorting of the names here?

And about the list of values in the advanced form, is there any sorting of the names here?

I don't understand what you mean by "list of values in the advanced form"

the dropdown list of values for the property "Author" in the advanced search (see issue description):

This is what https://docs.knora.org/paradox/03-apis/api-v2/reading-and-searching-resources.html#search-for-a-resource-by-its-rdfs-label returns.
I think Knora sorts by resource IRI so the the order is deterministic:
https://github.com/dasch-swiss/knora-api/blob/develop/webapi/src/main/twirl/queries/sparql/v2/searchResourceByLabelSubQuerySelectGraphDB.scala.txt
I guess this could be made more flexible (optional param in URL) so the rdfs:label is used for sorting. But then it would be sorted by the whole rdfs:label, sot just by what the user searches for.

@tobiasschweizer thanks for the explanation. It should be more flexible because users get confused in front of a list that is not order by alphabetical order.

It should be more flexible because users get confused in front of a list that is not order by alphabetical order.

Yes, but probably the user could also get confused when searching for a person's family name like "Euler" and then getting a list sorted by the whole rdfs:label beginning with the first name "Leonhard Euler". Maybe there is some Lucene syntax features that could be used.

Yes, but probably the user could also get confused when searching for a person's family name like "Euler" and then getting a list sorted by the whole rdfs:label beginning with the first name "Leonhard Euler". Maybe there is some Lucene syntax features that could be used.

As Gaby suggested in her comment above, it makes more sense in this case to order the value list by last name. But the ordering depends on the value list, it is really specific. We can discuss that another time, it is not an urgent priority.

this issue has been moved to YouTrack: DSP-315


Document the CanvasTexture class

Note: Not cherry-pickable as CanvasTexture doesn't exist in 3.x.

Thank you!


fix dep vulns and some dev-dep vulns

Fixes #2.
Tests pass.

Published to NPM as 1.0.0. Major bump since we are no longer supporting <1.0.0 of gulp


First slayer task is not recognized, displays -1 for points and streak

For the first task of your account, the task is not recognized by the plugin's text matchers, causing the task infobox not to appear. When it does later appear when your task is checked or a slayer exp drop is received, it shows -1 for your point and streak values.

Sadly, I do not have a screenshot/log of the text for the account's first assignment. I will plan to record it when Leagues III is released.

The OSRS Wiki has chat dialogue logging, and has several entries looking like this (this is from Turael):

We'll start you off hunting goblins, you'll need to kill %NUMBER% of them.

https://chisel.weirdgloop.org/dialogue/content/29954

As it turns out, we already have handling for the account's first task, but we do not set the points and streak appropriately in that case.

What were the steps you took to cause that via turael resetting? And at what point exactly did the plugin's tracking of your points become wrong?


Keep metadata on mmap allocated array

We should keep metadata on mmap allocated array. This may improve GC-pause time. It also eases import/export functionality.
Implement it in a different branch and measure GC-pause time, memory consumption and insert/find performance under high pressure.
This is a prerequisite for #1.

Now, a group can contain 256 different pairs at maximum and 14 bytes are allocated as bookkeeping cost for a key-value pair. So a group can allocate 3584 bytes at maximum. This data will be stored at the head of the array. So the first 3584 bytes of the mmap allocated array will be allocated before usage.
This preallocation logic may be problematic when a large shard is being expanded. But we can calculate the required free space before expand and avoid a possible crash.

It's done. PR: #4


ARM xorg defines uses of $backports for debootstrap Xorg target

`

#### Please describe your issue:
bookworn sid and jammy kali-rolling has no such release backports
Bullseye does
this is why nvidia is installed
x86_64 work just fine

I removed $backports for Xorg target and testing

#### If known, describe the steps to reproduce the issue:

progress
Note, selecting 'xserver-xorg-core' instead of 'xserver-xorg-video-modesetting'
Package xserver-xorg-video-intel is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'xserver-xorg-video-intel' has no installation candidate
Failed to complete chroot setup.
Unmounting /media/removable/sd200/chroots/book..
need to be updated or ARM installs

now Nivida is gone the install log say intel install
urrent version of pixman: 0.40.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/z/.local/share


Please clarify what this does in the README

@hannes @Mytherin - Could you please explain with 2-3 sentences what postgresscanner does at the top of the README? I mean from a potential new user perspective, e.g. I'm looking for a PostgreSQL -> DuckDB sync tool and I wonder if this is relevant.
The README example for POSTGRES_ATTACH mentions SQLite. Is that correct or a typo? Does this have anything to do with SQLite?
Thanks!

I have added a short explanation and fixed the README:

The postgresscanner extension allows DuckDB to directly read data from a running Postgres instance. The data can be queried directly from the underlying Postgres tables, or read into DuckDB tables.

Is that clear enough, or is there anything else you would add?

Thanks!
So "postgresscanner" os for PostgreSQL -> DuckDB -> Client?
And "duckdb_fdw" is for DuckDB -> PostgreSQL -> Client?
https://github.com/alitrack/duckdb_fdw
Would be great if you could cross-link the two PostgreSQL / DuckDB integration options from the README and explain when to use which.
For me the README and what it does is now clearer. Although as a beginner with PostgreSQL extensions and DuckDB it's still difficult for me to judge if I should use it and how I would use it. The motivation to use this extension is performance? To try it out I could install this extension on the PostgreSQL as described in the README. But then to benefit I could e.g. create an in-memory or on-disk DuckDB locally and start querying? This would then be more performant that directly using psycopg or https://turbodbc.readthedocs.io/en/latest/ ?
You see, typical DuckDB user here that comes from the data science world and doesn't know much about databases. :-)

Hello!
You can think of the PostgresScanner as DuckDB pulling from Postgres, whereas the FDW is Postgres pushing to DuckDB.
Yes, performance is one motivation, but being able to stay within DuckDB while still querying Postgres (so Python is optional) should also improve ease of use!

Thanks for the explanations!


chore: Update ModelMesh helm charts

These updates coincide with MM 0.9 release.
Helm charts updated for ModelMesh 0.9

Thanks @pvaneck !
/lgtm
/approve


Quotes removed from single column grid definitions

Description
If you define a single column CSS grid using the grid property (instead of the explicit grid-template-areas/rows/columns), the quotes get removed from the the grid area names which results in invalid CSS (as far as I can tell).
The minified CSS fails to render properly in both Chrome and Firefox whereas the regular CSS renders as expected.  Quotes are NOT removed when using grid-template-areas property.
gulp version: 4.0.2
gulp-clean-css version: 4.2.0
Repro
test.css
#wrapper {
    display: grid;
    grid:
        "logo" auto
        "nav" auto
        "content" 1fr
        / 1fr;
}

test.min.css
#wrapper{display:grid;grid:logo auto nav auto content 1fr/1fr}

gulpfile.js
const { src, dest, series, } = require('gulp');
const rename = require('gulp-rename');
const cleanCSS = require('gulp-clean-css');

const minifyCss = () => {
    return src('./test.css')
        .pipe(cleanCSS({ rebase: false }))
        .pipe(rename({
            suffix: '.min'
        }))
        .pipe(dest(f => f.base));
}

exports.default = series(minifyCss);

Sorry, my mistake.  This should have been filed against clean-css.  It's late, I'm tired.


How do I display videos?

In the python tutorial it shows to use cv.VideoCapture('Videos/dog.mp4).
I have tried to search for videocapture in the docs but I couldn't quite find it. Apparently opencv::videoio::VideoCapture is a Struct.
Is it by any chance pub fn as_raw_VideoCapture(&self)?

You need to call one of the new methods on it, see example: https://github.com/twistedfall/opencv-rust/blob/master/examples/video_capture.rs

What if I wanted to just capture a video file, not from a camera. Maybe I am missing something from the example? I am sorry I am kinda new so maybe I am not understanding something?

You are probably looking for that method: https://docs.rs/opencv/0.49.1/opencv/videoio/struct.VideoCapture.html#method.from_file

Thanks mate
On Tue, Feb 9, 2021 at 7:47 PM twistedfall<EMAIL_ADDRESS>wrote:

You are probably looking for that method:
https://docs.rs/opencv/0.49.1/opencv/videoio/struct.VideoCapture.html#method.from_file
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/twistedfall/opencv-rust/issues/210#issuecomment-775771647,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIKO7IOIYHF75SQC7JQ5X3DS6DZCNANCNFSM4XKJFNQA
.


[#191] Update Java version for sample package

https://github.com/nimblehq/android-templates/issues/191
What happened 👀
Update Java 11 for Sample package
Insight 📝
Update Java 11 and Detekt report locations for

xml sample
compose sample

Proof Of Work 📹
N/A

@doannimble
Seems like not all the changes of #323 are in this pull request yet, shall we put this pull request as draft for now?

@doannimble Conflicts, could we please rebase? 🚀

@doannimble One more thing, could we please update the PR title, description & commit history according to the issues?

@Tuubz I've done, please check 🙏

@Tuubz Sorry, my bad. I've add more ktx into the sample 🙏

@doannimble sample-xml can be built successfully now, but sample-compose not yet 🙈

@Tuubz It's working now 🙏


JSON/RPC responses not traced when using web sockets

Description
With TRACE log level enabled, JSON/RPC responses are not traced when using JSON/RPC over web sockets. They are for JSON/RPC over HTTP.
Acceptance Criteria
Include JSON/RPC responses in web socket
Logs (if a bug)
Here is an example of the logs you see with TRACE enabled for JSON/RPC over HTTP:
2023-12-11 10:38:45.976+00:00 | vert.x-worker-thread-0 | TRACE | AbstractJsonRpcExecutor | {"jsonrpc":"2.0","method":"eth_chainId","id":1}
2023-12-11 10:38:45.998+00:00 | vert.x-worker-thread-0 | DEBUG | JsonRpcExecutor | JSON-RPC request -> eth_chainId null
2023-12-11 10:38:46.002+00:00 | vert.x-worker-thread-0 | TRACE | AbstractJsonRpcExecutor | {"jsonrpc":"2.0","id":1,"result":"0x539"}

However, for JSON/RPC over web sockets the response isn't logged:
2023-12-11 10:41:58.637+00:00 | vert.x-eventloop-thread-1 | DEBUG | WebSocketService | Received Websocket request (binary frame) { "jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 51 } (host=<IP_ADDRESS>, port=56603)
2023-12-11 10:41:58.689+00:00 | vert.x-worker-thread-0 | DEBUG | JsonRpcExecutor | JSON-RPC request -> eth_chainId []
2023-12-11 10:41:58.695+00:00 | vert.x-eventloop-thread-1 | TRACE | WebSocket08FrameEncoder | Encoding WebSocket Frame opCode=1 length=43
2023-12-11 10:42:00.260+00:00 | vert.x-eventloop-thread-1 | TRACE | WebSocket08FrameEncoder | Encoding WebSocket Frame opCode=8 length=2
2023-12-11 10:42:00.264+00:00 | vert.x-eventloop-thread-1 | TRACE | WebSocket08FrameDecoder | Decoding WebSocket Frame opCode=8
2023-12-11 10:42:00.264+00:00 | vert.x-eventloop-thread-1 | TRACE | WebSocket08FrameDecoder | Decoding WebSocket Frame length=2

Versions

Software version: I captured the above logs with 23.10.2

(The WebSocket08FrameEncoder log entries come the io.netty.handler.codec.http.websocketx library)


Fixed an issue with MasternodeRateCheck always returns true

Rationale:

MasternodeRateCheck is working only for watchdog's/trigger's owner when he is creating the object initially. In all other cases, the method always returns true for all the objects with correct timestamp.
The method updates MN's CRateCheckBuffer even if check has failed. Bearing in mind (1) it is not a big problem, but we still can drop this object in some cases (object is invalid, we have this object already or watchdog object doesn't fit required time bounds)

Explanation of the commits:
fixed an issue with MasternodeRateCheck always returns true
This is simple fix for the issue.
Consequences:
Initial call to MasternodeRateCheck is no longer updating the buffer when the rate check fails.
Taking into account another problem discovered in processing of MNGOVERNANCEOBJECT we don't need to update buffer because it won't help to counter spam. But it could cause another problems with governance objects propagation.
We shouldn't update buffer unless we accept the object. Otherwise if we reject some object, update the buffer for it's masternode, but other nodes won't update this (because we didn't relay the object), and then this MN can create another valid object which will be accepted by most of nodes, but rejected by us.
UPDATE_TRUE in MasternodeRateCheck is always returns true, just because we always use this flag when object has accepted and this value doesn't matter. In next commit this part of code changed to "return void".
additioanal fixes and refactoring
This commit is basically refactoring of the code. It's purposed to make buffer updating outside of MasternodeRateCheck.

Needs rebase to fix macos travis ci build

needs rebase

Looks like this one is going to conflict with #1489, let's get back to this after #1489 is merged.

Needs another rebase (as expected)


Copy list items between SharePoint lists. Closes #2652

Pull Request Title

Fixes 'spo copy list items between lists' command. Closes #2652

Linked Issue

Closes #2652

I have written scripts to copy items from one list to another list. With this we can close issue #2652
Thank you so much for the wonderful opportunity. I am glad to serve to community

We'll review it shortly, thank you! 👍


[Feature]: Backport base64gunzip from OpenTofu to be used in Terraform

What functionality would you like to see?
https://1-7-0-alpha1.opentofu.pages.dev/docs/language/functions/base64gunzip/

Implemented in https://github.com/northwood-labs/terraform-provider-corefunc/pull/381.


[+] Added Noctua API to search cosmic objects

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is ordered alphabetically
[x] My submission has a useful description
[x] The description does not have more than 100 characters
[x] The description does not end with punctuation
[x] Each table column is padded with one space on either side
[x] I have searched the repository for any relevant issues or pull requests
[x] Any category I am creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Dude i was squashing commits, and before i push you merged it. And i was thinking i messed up something.😂


Dimension issue with Observation from custom Gym environment

Hi,
I created a model to train an agent to play Diablo 2 LOD (original version). I have been running it in SB3 without issues. I came across DreamverV3 recently and want to try training the agent using this library for comparison.
My environment uses Gym and my action and observation spaces are the following:
self.action_space = spaces.Box(low=np.array([0, 0, 0, 0], dtype=np.float32), high=np.array([800, 600, 1, self.keyboard_action_space - 1], dtype=np.float32))
self.observation_space = spaces.Box(low=0, high=255, shape=(64, 64, 3), dtype=np.uint8)

My step() and reset() observation collection code is:
response = requests.get(f"{self.server_url}/screenshotsmall")
image = Image.open(BytesIO(response.content))
observation = np.array(image)

When I use this observation collection method, I get the following error when the training initiates:
/Documents/d2drl/dreamerv3/embodied/envs/from_gym.py:97 in           │
│                                                                                │
│    94 │     except Exception as e:                                                               │
│    95 │   │     print(f"Error with key {k}: {e}")                                                │
│    96 │   │     print(f"Type of {k}: {type(v)}, value: {v}")                                     │
│ ❱  97 │   obs = {k: np.asarray(v) for k, v in obs.items()}                                       │
│    98 │   obs.update(                                                                            │
│    99 │   │   reward=np.float32(reward),                                                         │
│   100 │   │   is_first=is_first,                                                                 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1
dimensions. The detected shape was (2,) + inhomogeneous part.
If my observation collection code changes to:

response = requests.get(f"{self.server_url}/screenshotsmall")
image = Image.open(BytesIO(response.content))
observation_image = np.array(image)

observation = {
    'image': observation_image,
}

I get the following error:
/Documents/d2drl/dreamerv3/embodied/core/basics.py:32 in convert               │
│                                                                                │
│    29 │   │     value = value.astype(dst)                                                        │
│    30 │   │   break                                                                              │
│    31 │   else:                                                                                │
│ ❱  32 │     raise TypeError(f"Object '{value}' has unsupported dtype: {value.dtype}")            │
│    33   return value                                                                             │
│    34                                                                                │
│    35                                                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: Object '[[{'image': array([[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
...,
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]], dtype=uint8)} {}]]' has unsupported dtype: object
I tried several different things, such as different gym versions, etc., but I always get this error. The issue seems to be how the observation space is being sent to DreamerV3.
My training code is pretty much the example.py changed to my env. I did not change anything in config.yaml.

def main():
    import warnings
    import dreamerv3
    from dreamerv3 import embodied
    # Corrected import:
    from d2d3Env import DiabloIIGymEnv  # Import your custom environment
    from dreamerv3.embodied.envs.from_gym import FromGym, CompatibleActionSpaceWrapper  # Import the necessary classes
    warnings.filterwarnings('ignore', '.*truncated to dtype int32.*')

    # Configure DreamerV3
    config = embodied.Config(dreamerv3.configs['defaults'])
    config = config.update(dreamerv3.configs['xlarge'])
    config = config.update({
        'logdir': '~/logdir/run1',
        'run.train_ratio': 64,
        'run.log_every': 30,  # Seconds
        'batch_size': 16,
        'jax.prealloc': False,
        'encoder.mlp_keys': '$^',
        'decoder.mlp_keys': '$^',
        'encoder.cnn_keys': 'image',
        'decoder.cnn_keys': 'image',
    })
    config = embodied.Flags(config).parse()

    # Setup logging and agents
    logdir = embodied.Path(config.logdir)
    step = embodied.Counter()
    logger = embodied.Logger(step, [
        embodied.logger.TerminalOutput(),
        embodied.logger.JSONLOutput(logdir, 'metrics.jsonl'),
        embodied.logger.TensorBoardOutput(logdir),
    ])

    envs = DiabloIIGymEnv(server_url=f'http://<IP_ADDRESS>:5009', flask_port=8129)

    envs = FromGym(envs, obs_key='image')

    # Wrap the batch of environments for DreamerV3
    env = dreamerv3.wrap_env(envs, config)
    env = embodied.BatchEnv([env], parallel=False)

    agent = dreamerv3.Agent(env.obs_space, env.act_space, step, config)
    replay = embodied.replay.Uniform(config.batch_length, config.replay_size, logdir / 'replay')
    args = embodied.Config(**config.run, logdir=config.logdir, batch_steps=config.batch_size * config.batch_length)
    embodied.run.train(agent, env, replay, logger, args)

if __name__ == '__main__':
    main()

Hopefully, someone has faced this in the past and can help me. I am really keen on trying this library to see how the agent progresses in a complex game such as Diablo 2 LOD.

Answering my ticker. I was able to sort out the issue. I decided to maintain my original observation format, which is
__init__():
self.observation_space = spaces.Box(low=0, high=255, shape=(64, 64, 3), dtype=np.uint8)

step():
response = requests.get(f"{self.server_url}/screenshotsmall")
image = Image.open(BytesIO(response.content))
observation = np.array(image)

Passing the observation directly as a numpy array was causing this error in the FromGym class
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1
dimensions. The detected shape was (2,) + inhomogeneous part.

So, I changed the _obs definition in FromGym to ensure that it got the observation in the correct format; otherwise change it to what was expected. The _obs definition now looks like this
def _obs(self, obs, reward, is_first=False, is_last=False, is_terminal=False):

    if isinstance(obs, tuple):
        obs = obs[0]  # Assuming the actual observation is the first element of the tuple
    if isinstance(obs, np.ndarray):
        updated_obs = {'image': np.asarray(obs, dtype=np.uint8)}
    elif isinstance(obs, dict):
        updated_obs = {k: np.asarray(v, dtype=np.uint8) for k, v in obs.items()}
    else:
        print("Unexpected observation format received:", type(obs))
        updated_obs = {}

    updated_obs.update({
        'reward': np.float32(reward),
        'is_first': is_first,
        'is_last': is_last,
        'is_terminal': is_terminal
    })

    return updated_obs

That seemed to do the trick. On another note, and it might be related to my changes when I run it as a single instance where Parallel=False, it works fine; if I use multiple instances, I had an error and had to perform another change, this time in the BatchEnv class. In the step method in the BatchEnv class, I had to comment on the code which calls the observation as a function if self.parallel is True:

def step(self, action):
        assert all(len(v) == len(self._envs) for v in action.values()), (
            len(self._envs), {k: v.shape for k, v in action.items()})
        obs = []
        for i, env in enumerate(self._envs):
            act = {k: v[i] for k, v in action.items()}
            obs.append(env.step(act))
        #  No need to call the observations as functions (Changed from original code)
        # if self._parallel:
        #    obs = [ob() for ob in obs]
        return {k: np.stack([ob[k] for ob in obs]) for k in obs[0]}

After I performed these two changes, everything is working fine. Kudos to @danijar. The speed at which the agent evolves in Diablo 2 is about ten times faster than what I saw using Stable Baselines3. The agent performed certain actions by step 1M, which took the SB3 agent about 10M steps to figure out.
Hope this helps whoever might be facing the same issue. I am closing the issue.


Fixed #31349 -- Changed to :nth-child() CSS selector to style alternative rows in admin.

https://code.djangoproject.com/ticket/31349

Very nice! About removing the classes, should we add a release note for people using the current row classes to style the admin?

Good call. I added the following:
The admin CSS classes row1 and row2 have been removed in favor of :nth-child(odd) and :nth-child(even) pseudo-classes.

@jdufresne Thanks :+1:


WIP: Add a config command

Add a simple config command (without any options for now) that does the same as docker-compose config 🐼.
It's pretty early on and the output will need tweaking. Even with tweaking it is going to be difficult to get the exact same output as docker-compose. The main point is to produce valid yaml that can be reused by both of them.

[ ] Need to add some test
[ ] Need to get rid of some empty key too (I'm not sure how, @joshwget help :sweat_smile: )
[ ] keep default value too
[ ] Need to add more flags :smile: (in this PR or not)

$ cat integration/assets/v2-full/docker-compose.yml

version: "2"

volumes:
  data:
    driver: local

networks:
  front: {}

services:
  web:
    build:
      context: .
    networks:
      - front
      - default
    volumes_from:
      - other

  other:
    image: busybox:latest
    command: top
    volumes:
      - /data

$ ./bundles/libcompose-cli -p toto -f integration/assets/v2-full/docker-compose.yml config
WARN[0000] Note: This is an experimental alternate implementation of the Compose CLI (https://github.com/docker/compose)
version: "2.0"
services:
  other:
    build: {}
    command: [top]
    image: busybox:latest
    logging: {}
    volumes:
    - /data
    ulimits: {}
  web:
    build:
      context: integration/assets/v2-full
    logging: {}
    networks:
    - front
    - default
    volumes_from:
    - other
    ulimits: {}
volumes:
  data:
    driver: local
networks:
  front:
    ipam: {}

Notes :

it slighly differ from docker-compose config output, mainly on the order of the keys and the empty struct.
some flags of the config command are for validating only. At the point we arrive in project.Config the validation is already done, so it might end up as a no-op :stuck_out_tongue_closed_eyes:.
command are not printed the same way as with docker-compose : command: [top] vs command: "top"
build: . is still possible to use with v2 compose file, but fails miserably with libcompose..

🐸
Signed-off-by: Vincent Demeester<EMAIL_ADDRESS>

As another checkbox to add, it would be nice if it didn't drop default values as well. For example, specifying read_only: false won't show with the command as it's implemented now.
I think the proper solution for this is for the config package to work exclusively with maps rather than unmarshaling to ServiceConfig and back. When this is done, default values are lost from the map. The map should only be converted to a ServiceConfig set as the last step, and optionally. This would allow the config command to preserve any default values.

I think moving all struct values in ServiceConfig to pointers to structs is the only solution for the second checkbox, but I'll look into it more.

I'm gonna wait for #292 to update this one :angel:

@vdemeester I think I'd like to start working on some of these features. Would you mind getting this in a state to merge? (just tests passing and such, we can hold off on the other features you mention)

@joshwget you mean merging as is (almost, but green) and iterate over it ?

Yes, exactly. I think what this PR contains now already has a lot of value for validation purposes.

ok, sgtm, I'll update the evening 😇

Thanks! :smile:

Let's wait for the CI to trigger but this should be green now :angel:


Added several 'see also' references in Python API documentation

In relation to issue #36786 and PR #37121 I have added some additional 'see also' references between functions in the Python API docs.
These references make it easier for newcomers to learn about existing alternatives to functions that might better fit their use case and also reminds intermediate users about different options. This style of referencing is similar to what is seen in PyTorch and Arduino documentation. Any feedback is welcome.
For your convenience, these are roughly the functions which I have referred to each other

tf.slice and tf.strided_slice
tf.rank and tf.shape
tf.scan and tf.map_fn
tf.unqiue and tf.unique_with_counts
tf.fill, tf.ones, tf.zeros, tf.eye, tf.one_hot

For the last group, I left out certain references if they seemed unnecessary (e.g. tf.one_hot and tf.zeros).

@googlebot I signed it!

I see that the import/copybara check has failed. I couldn't find any information regarding this check, could @alextp  or someone please explain what this means and how I can fix it? Thanks in advance.

@gbaned can you see the status of this test? I can't click the link..

@gbaned can you see the status of this test? I can't click the link..

@alextp Yes. I can see the status of this test now. Thank you.


CC can't update without write permission to the application folder

Current Behavior

CC offers a user to update Control Center in 'About' and even after user clicks 'Update Control Center' , CC keeps offering an update.
Possible Implementation

As it was mentioned in scrum meeting, this issue can be related to the fact that CC cannot delete the old version in machine due to the lack of privileges.

Fixed in Master.

Didn't face such problem in Prod. We'll reopen if needed.


Support configurable https port for the Antrea Controller's apiserver

Describe the problem/challenge you have
At the moment the port defaults to 443, and there is no way to configure a different value:
NAMESPACE     NAME                      ENDPOINTS                                              AGE
default       kubernetes                <IP_ADDRESS>:6443                                    30d
default       my-nginx                  <IP_ADDRESS>:80,<IP_ADDRESS>:80                            24h
kube-system   antrea                    <IP_ADDRESS>:443                                     2d2h
kube-system   kube-controller-manager   <none>                                                 30d
kube-system   kube-dns                  <IP_ADDRESS>:53,<IP_ADDRESS>:53,<IP_ADDRESS>:53 + 3 more...   30d
kube-system   kube-scheduler            <none>                                                 30d

Describe the solution you'd like
We probably want to let the user choose a different port number when needed (and specify it in the Antrea ConfigMap). It may be a good idea to use a different port by default as well: 443 is the default https port and there may an application on the Node already using this port (I think we should follow the example of the K8s apiserver, which uses 6443 by default and not 443 - let's pick a different default port number).
Anything else you would like to add?
This issue tracks a TODO in the code:
	// TODO:
	// 1. Support user-provided certificate.
	// 2. Support configurable https port.
	secureServing := genericoptions.NewSecureServingOptions().WithLoopback()
	authentication := genericoptions.NewDelegatingAuthenticationOptions()
	authorization := genericoptions.NewDelegatingAuthorizationOptions()

Hi, I am a first time contributor, but also quite novice to Antrea. Since this is marked as a good-first-issue, can I take this issue?

@AkashSarda You are welcome to take it. I think the issue description is clear, feel free to let us know if any problem.

@AkashSarda I assigned the issue to myself so that no one else starts working on this.
Let us know on the Antrea Slack if you need help with anything!

Actually I was able to assign the issue to you, so even better :)

Sure, Thanks a lot @antoninbas , @tnqn !

Hi @AkashSarda, this issue becomes urgent and we may need to fix it ASAP as applications that are in host network and listen to 443 cannot be deployed, want to confirm if you are working on this and can push a PR soon? Thanks.

Hi. I was just going to start on this bug, but I am a newbie, and I do not expect it to finish it in a matter of hours. Please close it if you have a PR already


"bee" able to change the model from llama3.1 by default for ollama

I was attempting to use the granite3.0-8b-dense model, and it seems there is no way to put in a custom model. When I attempted use ollama the error came back with:
bee-api-1  | {"level":"error","time":"2024-11-20T19:46:00.849Z","hostname":"8d4ea71dff49","name":"bee-api","queueName":"runs","job":{"id":"run_673e3c77d8ebcc81d5182868","name":"runs","failedReason":"model 'llama3.1' not found","data":{"runId":"run_673e3c77d8ebcc81d5182868"}},"err":{"type":"ResponseError","message":"model 'llama3.1' not found","stack":"ResponseError: model 'llama3.1' not found\n    at checkOk (file:///app/node_modules/.pnpm/ollama@0.5.9/node_modules/ollama/dist/shared/ollama.133b951a.mjs:70:9)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async post (file:///app/node_modules/.pnpm/ollama@0.5.9/node_modules/ollama/dist/shared/ollama.133b951a.mjs:118:3)\n    at async Ollama.show (file:///app/node_modules/.pnpm/ollama@0.5.9/node_modules/ollama/dist/shared/ollama.133b951a.mjs:383:22)\n    at OllamaChatLLM.meta (/app/node_modules/.pnpm/bee-agent-framework@0.0.39_@bufbuild+protobuf@1.10.0_@elastic+elasticsearch@8.15.2_@googleapi_ia5npp4g5tjlrpr3a7futx3n24/node_modules/bee-agent-framework/src/adapters/ollama/chat.ts:148:19)\n    at TokenMemory.add (/app/node_modules/.pnpm/bee-agent-framework@0.0.39_@bufbuild+protobuf@1.10.0_@elastic+elasticsearch@8.15.2_@googleapi_ia5npp4g5tjlrpr3a7futx3n24/node_modules/bee-agent-framework/src/memory/tokenMemory.ts:85:20)\n    at TokenMemory.addMany (/app/node_modules/.pnpm/bee-agent-framework@0.0.39_@bufbuild+protobuf@1.10.0_@elastic+elasticsearch@8.15.2_@googleapi_ia5npp4g5tjlrpr3a7futx3n24/node_modules/bee-agent-framework/src/memory/base.ts:43:7)\n    at async executeRun (file:///app/dist/runs/execution/execute.js:75:3)\n    at async file:///app/dist/runs/jobs/runs.queue.js:49:7\n    at Worker.processJob (/app/node_modules/.pnpm/bullmq@5.8.1/node_modules/bullmq/src/classes/worker.ts:786:22)","error":"model 'llama3.1' not found","status_code":404,"name":"ResponseError"},"msg":"Job failed"}

I have llama3 in ollama but not 3.1 which also seems weird, that it's hard coded o a specific version of llama. This opens up the issue with not being able to point to any of my models on that ollama uses.
Or am I missing something?

@Tomas2D do you have a view on this?

It is mentioned in the README (https://github.com/i-am-bee/bee-stack?tab=readme-ov-file#custom-models)
Related issue: https://github.com/i-am-bee/bee-stack/issues/36
TLDR: we would like to allow users to change the model within the UI


"This repository is over its data quota." when cloning repo

Would it possible to get a mirror of cf.db?
Error downloading object: tools/cfire/cfdb/cf.db (da64bd2): Smudge error: Error downloading tools/cfire/cfdb/cf.db (da64bd273b371fbed06bb093139846aac1ee9e8c6314087bca73723e56ae056c): batch response: This repository is over its data quota. Purchase more data packs to restore access.

Ah, looks like it gets generated during intial setup, I opened a PR to remove it from the repo (feel free to close if this is undesired).


Update stable version in repo from 0.4.2 to 0.5.0

Think about update stable version to 0.5.0
Version: stable=0.4.2 (51 days old) => latest=0.5.0 (15 days old)
Installs: stable=174 (53.21%), latest=51 (15.6%), total=327
Click to use developer portal
Click to edit
Note: This is an automatically generated message and not personally authored by bluefox!

@simatec
Is there any reason to delay publishing at stable repository any longer?
If there is no comment until end of November we might upgrade stable repository anyway!

v0.5.1 is planned for Stable

Thanks for info

This issue seems to be outdated.
This issue suggests to update the stable version of this adapter to 0.5.0 but in the meantime an update to version 0.5.1 is suggested.
So this issue will be closed and replaced by an updated one.


MNT: Give the 'val' column a more interesting name

I have no idea how much stuff this is going to break... All the tests seem to pass (locally at least), so that's a good sign

@danielballan I'm not necessarily suggesting that this should be the final iteration, but I think this is an interesting discussion point.  'val' is a non-descriptive term and I think that the dataframe that results from the bin_on operation would be more informative if the 'val' column name reflected the downsampling mechanism.

See this notebook for the output of the bin_on dataframe: http://nbviewer.ipython.org/gist/anonymous/a88b0410a54cb0a71fce

Yes, I like this. The kindest thing you could say about "val" as a column name is that it was not very descriptive. But more realistically, it could be misleading.
All things being equal, it's convenient to have column names that are also valid Python identifiers. (For the uninitiated: you have use to df['value: mean'], whereas df.val and df['val'] are both valid since val is a valid identifier.)
In this case I agree that clarity is paramount. 'value: mean' is an improvement. What about just 'mean'? Or the name of whatever function was used to downsample? Not for reasons of convenience, but in fact to be democratic and consistent. Perhaps the "value" of interest is not the mean, but one of the  of the other summary statistics.

I had actually done 'mean' initially, but then quickly realized how difficult it is going to be to programmatically grab the column that is the downsampled values, as opposed to the stats column.
I hadn't appreciated how annoying it is going to be to grab 'value: mean'.  That's a pretty compelling point
Is the 'values' column ALWAYS the first column in the dataframe that results from a call to bin_on?  If so, then it will still be pretty easy to programmatically grab the column that is (usually) of primary interest

Yes, it is always the first column. Select columns positionally is not quite idiomatic pandas pandorable, but it is guaranteed to work. For programmatic purposes, it's fine; for examples, we should go a different way.
Having just suggested 'mean', I realize now that that would shadow df.mean() the sum of all the columns. If you use 'mean' as a name, df['mean'] is the column and df.mean is the method. Bad idea!
We'll find something.

Todo: Implement these naming rules, as discussed with @danielballan

val_raw: this is the column name if no upsampling or downsampling operations occurred
val_upsample: this is the column name if ONLY upsampling occurred
val_downsample: see above for downsampling
val_upsample_downsample: this is the column name if both upsampling and downsampling operations occurred

Notebook based on commit 117dcce
http://nbviewer.ipython.org/gist/anonymous/cbc7fe4b6d39378abda2
I wonder if simply pasting a link to nbviewer is a legit version of git fetch dan?

I can confirm that it is.
On Wed, Mar 4, 2015 at 4:25 PM Eric Dill<EMAIL_ADDRESS>wrote:

Notebook based on commit 117dcce
https://github.com/NSLS-II/dataportal/commit/117dcce175bc904c5f69352532895c7aceffc8ea
http://nbviewer.ipython.org/gist/anonymous/cbc7fe4b6d39378abda2
I wonder if simply pasting a link to nbviewer is a legit version of git
fetch dan?
—
Reply to this email directly or view it on GitHub
https://github.com/NSLS-II/dataportal/pull/95#issuecomment-77252424.

Other than the line comment I left, which is a judgment call, this is good to merge.

@danielballan removed the 4 character limit on the column label. This should be good to go


Bugged audio slider

Audio slider is basically useless for me due to the fact that when dragging the volume up or down the volume only starts changing in the rightmost couple pixels of the slider. The rest of the slider doesn't do anything but i can change the volume correctly in the rightmost part of the slider, goes from 100-0 in a very small area.
Steps to Reproduce
Open gBar through terminal
Use audioslider.
Expected behavior
The volume is at 90% when 90% of the slider is slid and 10% when 10% is slid.
Screenshots/Error logs
Not much to go on here...
Information about your system and gBar

OS: [NixOS]
Desktop environment [Hyprland]

A few questions that may come in handy:

Pulseaudio or Pipewire?
Have you modified the CSS?

Can you do the following?

Modify the border-style of the css class trough from none to solid (Refer to https://github.com/scorpion-26/gBar#i-want-to-customize-the-colors on a guide on how to modify the CSS)
It should look like this:

The white rectangle above the audio slider denotes the area where you can drag it properly and it should always be attached to the leftmost edge of the slider (Like in the image). Can you reproduce the bug and see if there is anything odd happening with that white rectangle?

Sorry, I meant slider instead of trough

It follows the edge of the slider correctly but audio isn't modified until the last bit.

So if I understand correctly, the slider works like it should, but the audio volume is not set properly.
If that's the case, I just added a new commit which adds some more logs (2fa23a2d54f2f4f73814b52cacb09b9dd98f3369). Can you check that out and post the logs when sliding the slider?

The issue seems to be with either pulse, pipewire or pamixer as setting the volume to 10 changes nothing. The bars audio slider works fine and mirrors pamixers volume. When i set the volume to 3 it changes drastically from 10.

That sounds very much like a bug in pipewire or the way your Pipewire is setup. I don't know how this correlates on NixOS, but on Arch you need a seperate package for PulseAudio APIs (Called pipewire-pulse). For things to work smoothly between PulseAudio clients (Like gBar and pamixer), you need to enable and start the pipewire-pulse systemctl service. You also need to make sure, that pulseaudio.service is not running anymore, since that collides with pipewire-pulse. I have a strong suspicion, that the PulseAudio and PipeWire are active at the same time, since the PulseAudio APIs don't seem to affect Pipewire. That suspicion could be confirmed if pavucontrol also doesn't work.
To summarize: pipewire.service and pipewire-pulse.service need to be running whereas pulseaudio.service shouldn't. If that's not the culprit, I'm thinking of adding a config variable to modify the commands that will be called to set the volume (Currently hard-coded to pamixer --set-volume xx)

I currently have pulse set to disabled and pipewire enabled with support for alsa and pulse (which i guess enables that service you talked about). A config option for max and min volume would be fantastic and solve my issue.

Okay, implementing that

Added a Min/Max volume config option(Called AudioMinVolume and AudioMaxVolume in the config). This essentially remaps the range. Values above 100% are allowed. Let me know if this can fix the issue.

Yes that does the trick, while it isnt too smooth using only 7 levels on the entire slider it works perfectly fine.


Add a description method to all the json_spec matchers

I started using json_spec today and discovered that it didn't work well in rspec when using the subject shorthand.
    describe "GET index as JSON" do
      before :each do
        get :index, :format => :json
      end
      subject { response.body }
      it { should have_json_size(2) }
    end

As the 'it' block doesn't include a description it relies on the matcher to have a description method so that rspec can provided some useful output.
I've added a simple description method to each of the json_spec matchers and provided spec for each.
This is the first time I've submitted a pull request so let me know if I need to provide some more info.

:clap: Thank you!


MIP: setting permitted values for MPVariable

I have a mixed integer programming problem where my variable can take integers between 0-100 but not 1 and 2. Is it possible to embed this logic to MIP?
To solve this problem I am thinking about setting the variable boundaries to 3 and 100 and running the optimization multiple times for every single combination of variables (variables left out of the optimization will be logically set to zero). Finally I will take the combination that leads to lowest cost function value. This is certainly not efficient and I am looking for other ideas.

Yes with Big-M formulations.
You can also look at CP-sat if you problem does not have continuous
variables.
Le mar. 27 août 2019 à 16:37, Kaan Yilmaz<EMAIL_ADDRESS>a
écrit :

I have a mixed integer programming problem where my variable can take
integers between 0-100 but not 1 and 2. Is it possible to embed this logic
to MIP?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1524?email_source=notifications&email_token=ACUPL3KAD3EEAUJTCBAOTSDQGU3Z7A5CNFSM4IQFI4YKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHVP4TQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUPL3KG2C53BNKAFZNS7UDQGU3Z7ANCNFSM4IQFI4YA
.


Use Property Access (when using ORM stuff) within ArrayDataSource.

I won't implement that because user should either create his own datasource or wait for imeplementation od LeanMapper\QueryObject


Cannot call function defined in local scope

$ cargo run ./examples/function/err_local_mutual_recursion.lox  // expect runtime error: Undefined variable 'isOdd'.
 // finish normally

$ cargo run ./examples/function/ok_local_recursion.lox // expect 21
Undefined variable 'fib'
[line 4]

Fixed at https://github.com/4n12i/rslox/commit/06c7332bd2f427f2140ef7018a1ac523fe9a3660


Start kited at startup.

See #136.
Two outstanding questions:

How to launch kited on Windows?
How can the user change the 'start kited at startup' setting?

@jansorg I made some changes which work for me – please could you try it again?
BTW, I noticed every time I launch Kite on Windows it overwrites my own checkout of the vim plugin, which makes local changes slower to test ;)

@airblade Thanks, the path to kited.exe seems to be correct now.
The weird thing is that kited is not started when I launch gvim but when I quit it:

make sure to stop kited.exe using the task manager
start gvim
at this point kited is not started
stop gvim
now kited appears in the process list of the task manager

Is it possible that the start is not taking effect until gvim is quit?

@jansorg How can our Windows VMs be so different?!  I'll take a look at this.  I can't imagine why kited would launch only when gvim exits...

@airblade I really don't know! Which version of vim are you using on Windows? I'm using GVim 8.1.x ...

@jansorg I'm using gVim 8.1.x on Win10.  This is what I get:

make sure to stop kited.exe using the task manager
start gvim
at this point kited starts and appears in the list of the task manager

Have you got the latest commit (240e0a8)?

@airblade Thanks! I've tested with the latest commit and I'm still seeing this behaviour. Could this be caused by a settings or something else in my or your vim configuration?
Which version of gVim exactly are you using? I've tested with gVim 8.1.0001 (vim.org) and 8.1.0895 (https://github.com/vim/vim-win32-installer/releases/tag/v8.1.0895).

@airblade I'm seeing this message window, too.
It turned out that kited.exe was started properly but it it didn't show up in the process manager as long as vim was running. Perhaps that's a difference between Win 8 and Windows 10.
This PR now seems to be what we want. I'd like to wait for one of the next Kite updates, though. I want to make sure that the icon is properly showing in the system tray on Windows even when the process isn't shown in the process list. I expect that the next kite update will   re-enabled the icon.

Rebased onto master.


global_mouse_position always return (0,0) on edited_scene_root

Godot version
4.0.alpha12
System information
MacOS Monterey 12.4 MacbookPro with M1 chip
Issue description
When you try to get the global mouse position on the edited scene root to know where the mouse is on your scene it always return 0. On Godot 3.4 getting the mouse position on the edited root scene works perfectly.
Steps to reproduce
Create an editor plugin and then use get_tree().edited_scene_root.get_global_mouse_position()
Minimal reproduction project
master(broken) : test_Godot_4.0.zip
Godot 3.x (working) : test_Godot_3.4.zip

Duplicate of #60390


Artax - How can we set proxies in http client

Hi there,
How can we apply proxies in http client, in curl we use CURLOPT_PROXY and CURLOPT_HTTPPROXYTUNNEL
Is there a way we can set proxies in Artax http client?
thanks

Yes, there is, see https://github.com/amphp/artax/blob/fb8c11fe7530be274483adf63346cc1b0fa1714a/lib/HttpSocketPool.php
Please open further issues regarding Artax in its own repository.


just a question, sorry for posting it here

a commit made like 10 mins ago called "mobilesubstrate omg" just caught my attention, does this mean substrate is working or..?
also, where should i post questions about this? twitter (i would but idk who to ask)?

yes / here is fine


Seperate Css into Module files

Created unique folders for each component containing both the .jsx and .module.css files.

I noticed a certain className has been repeated and used in two separate components .colorInputContainer
.colorInputContainer { 	position: relative; }
&&
.colorInputContainer { 	display: flex; 	gap: 0.5rem; 	flex-wrap: wrap; }
The className has been used in App.jsx on line 87 and in ColorInput.jsx on line 19

I'll merge it and fix the clashing names in a separate PR. Thanks so much for your help Timo!


Build with Gradle information

I had several issue when I started to work around your code :
Your gradle configuration does not work with the lastest version of gradle, so I get gradle-2-2-1 version and script was correctly handled.
I needed to configure the path APPENGINE_HOME :
      export APPENGINE_HOME=/Applications/DevTools/appengine-java-sdk-1.9.19/

I had to edit the gradle.conf file to the lastest version of Google App Engine :
  appEngineSdkVersion = '1.9.6'
  to
  appEngineSdkVersion = '1.9.19'

and finally if you still get an error, like this one : http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=18037#p76643 , but you juste need to replace :
  minusConfigurations += configurations.compile
  to
  minusConfigurations += [ project.configurations.compile ]

Thanks serut. I totally missed that before.


Micro: port op FAKE_QUANT from Lite

@tensorflow/micro
System information
Host OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
TensorFlow installed from (source or binary): source
Tensorflow version (commit SHA if source): master
Target platform (e.g. Arm Mbed OS, Arduino Nano 33 etc.): Sparkfun Edge
Describe the problem
I am about to port The TF Lite kernel op FAKE_QUANT to TFLite Micro.
Please provide the exact sequence of commands/steps when you ran into the problem
PR 1: refactor flatbuffer_conversions parsing function
PR 2: refactor reference implementation from lite/kernels/internal/reference/reference_ops.h into its own header with only the changes to pass internal CI build checks.
PR 3: copy the kernel from lite to micro any make the micro op and its testing code to work.

As far as I know, this op is only used to calibrate models for quantization within TFLite. Since the TFLM runtime expects quantized models, I cannot think of a use case for this operator within TFLM.
Let me know if I'm missing something here.

As far as I know, this op is only used to calibrate models for quantization within TFLite. Since the TFLM runtime expects quantized models, I cannot think of a use case for this operator within TFLM.
Let me know if I'm missing something here.

Closing this issue per Nat's comment.

Closing this issue per Nat's comment.

Hallo, I used quantisation-aware training according to this official example. After converting the model to a tflite model it still has this "fake_quant" layers. Is there a way to get rid of this layers in the tflite model or convert them into somthing else like "Quantize"? Or is this quantization-aware training just not possible with Tflite Micro?