[Bug] fXmlRpc not found

There seems to be a bug with the example in the main README.
I have installed the package using composer, runing the example from the Usage part and i got fXmlRpc not found error.
It seems that the fXmlRpc is only installed for require-dev.
Can anyone confirm this issue?
Cheers
Tibor

You are right, for 3.0 you are able to use Supervisor with Zend-XMLRPC and fXmlRpc. I think the README mentions somewhere that you have to install the chosen package, but I am not sure about that.
Supervisor 4.0 will come with fXmlRpc as a requirement and I will drop Zend XMLRPC support.

Supervisor 4.0? Ok, than i will stick to fXmlRpc.

Yeah, the current version is 3.0. As soon as fXmlRpc 1.0 is released (an alpha is already out) I will deprecate Connectors and rely directly on CallClientInterface from that package. I plan to release it in the next few weeks (probably starting with an alpha in the next few days).


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target/pull/424 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target.git

Docs Build status updates of commit 5c769ce:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Release_Archive_master_2020-02-22-07-05-33 has been deleted or has been force pushed: fatal: couldn't find remote ref refs/heads/Release_Archive_master_2020-02-22-07-05-33

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Set jdk/internal/loader/NativeLibraries/Main.java as native

Relate with #1920
Signed-off-by: Sophia Guo<EMAIL_ADDRESS>

Test: https://ci.adoptopenjdk.net/view/work in progress/job/grinder_sandbox/101/console


Invalid fee presented in transaction details

Steps:

Send transaction with fastest fee (1XYM)
After transaction confirmation open details.

Result presented fee is: 01 (XYM) which is invalid value.
Should be real fee paid -> 0.999856 (XYM) as presented in explorer.
Screenshot from wallet:

http://explorer.testnet.symboldev.network/transactions/DB54A02DAEFE9AD1ED6D98B9594392669340857394E7C3CD22E688DEDEED57EC

Fixed.


Add exporter for App Connect Enterprise

App Connect Enterprise is an integration product (formally known as IBM Integration Bus or WebSphere Message Broker)
The exporter is available at https://github.com/ot4i/ace-docker and further work is planned to de-couple from this repository so it can be more readily included in projects

Could you point me at the source code please? That's asking for a login.

Apologies @brian-brazil - I have updated the link in the description:
https://github.com/ot4i/ace-docker/tree/master/internal/metrics

This sounds like more a piece of software that exposes Prometheus metrics, rather than a typical exporter. Those are listed further down the page.
You need to add a DCO.
I'd suggest using ConstMetrics rather than normal gauges/counters, you'll find them a lot easier to work with and you should be able to remove all the channel stuff.

The software gets built into the linked Docker image and can run in isolation - it exposes metrics over a websocket... There is a separate exporter included in the project linked that listens on the web socket and make the metrics available to be scraped. We should be separating it out into a separate repository at some point, but it is separate... The intention is that users can use the example ace-docker repo which bundles the software and exporter (and other things) into the image, or they can build their own Docker image from the software (ie. https://github.com/ot4i/ace-docker#build-an-image-with-app-connect-enterprise-only) and then should be able to use the exporter as well... I hope that makes sense... Happy to move it down if you feel that is where you believe it should be listed - but it's intention is to be separate...

I will sort out the DCO over the weekend and look into the ConstMetrics - thank you for the pointer

I was going to move the new entry down to the Software exposing Prometheus metrics section and then once we have separated it into a new repo send another PR to move it back up, but the description in the lower section is a little misleading for our case:
"Some third-party software exposes metrics in the Prometheus format, so no
separate exporters are needed"
The software is "App Connect Enterprise" (http://www-01.ibm.com/common/ssi/ShowDoc.wss?docURL=/common/ssi/rep_ca/3/877/ENUSZP18-0043/index.html&request_locale=en) and this provides metrics via a webhook. There is an exporter in the https://github.com/ot4i/ace-docker repository that listens on that webhook and exposes metrics in the Prometheus format. It could be said that the code in "ace-docker" is software that we have open sourced, but that is not the software the exporter is for - which could be misleading, just a sample to show how to package that software (App Connect Enterprise) into a container (that users may use as-is or modify for their requirements).
What would you suggest @brian-brazil ?

It's a bit odd to have an exporter that's just an aside of another process, and reading those docs it's not clear to me how I'd just run it as an exporter. I'd say put it in the other section for now, to avoid confusion.

Have moved the link down to the Software exposing Prometheus metrics section @brian-brazil

Thanks!


Runtime Error

Home Assistant release (hass --version):
0.64.2
Python release (python3 --version):
3.5.3
Component/platform:
Unsure, maybe Telegram?
Description of problem:
Repeat error in log.
Expected:
No Error's
Traceback (if applicable):
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 38, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 55 is used by transport <_SelectorSocketTransport fd=55 read=polling write=<polling, bufsize=0>>

2018-03-04 10:47:39 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfilePayloadWriter._sendfile_cb(<Future cancelled>, 46, 22, 27264, 7470, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 38, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 46 is used by transport <_SelectorSocketTransport fd=46 read=polling write=<polling, bufsize=0>>

EDIT: Seems to have been resolved since 0.65

Still experiencing the same error repeatedly, which is blowing up the log.
Log size is 1,793 KB in just under 3 hours, can anyone guide me as to how I may be able to troubleshoot or correct this error?
First error below:
2018-03-20 11:40:54 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 48, 47, 83984, 2064396, <_UnixSelecto...e debug=False>, True) Traceback (most recent call last):   File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run     self._callback(*self._args)   File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb     loop.remove_writer(out_fd)   File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer     self._ensure_fd_no_transport(fd)   File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport     fd, transport)) RuntimeError: File descriptor 48 is used by transport <_SelectorSocketTransport fd=48 read=polling write=<polling, bufsize=0>>
Then repeated almost every second, below are some error's with different descriptor numbers:
2018-03-20 12:16:14 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 51, 50, 70952, 2259024, <_UnixSelecto...e debug=False>, True) Traceback (most recent call last):   File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run     self._callback(*self._args)   File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb     loop.remove_writer(out_fd)   File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer     self._ensure_fd_no_transport(fd)   File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport     fd, transport)) RuntimeError: File descriptor 51 is used by transport <_SelectorSocketTransport fd=51 read=polling write=<polling, bufsize=0>>
2018-03-20 14:12:18 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 53, 52, 69504, 603940, <_UnixSelecto...e debug=False>, True) Traceback (most recent call last):   File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run     self._callback(*self._args)   File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb     loop.remove_writer(out_fd)   File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer     self._ensure_fd_no_transport(fd)   File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport     fd, transport)) RuntimeError: File descriptor 53 is used by transport <_SelectorSocketTransport fd=53 read=polling write=<polling, bufsize=0>>

I have the same error
Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 27, 21, 15004, 56266, <_UnixSelecto...e debug=False>, True)

Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/events.py", line 127, in _run
    self._callback(*self._args)
  File "/home/orangepi/homeassistant/lib/python3.6/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 27 is used by transport <_SelectorSocketTransport fd=27 read=polling write=<polling, bufsize=0>>

I'm not sure if it is related to #13129

me too
ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 18, 16, 27740, 161715, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 18 is used by transport <_SelectorSocketTransport fd=18 read=polling write=<polling, bufsize=0>>
2018-04-01 18:06:27 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 18, 16, 27740, 161715, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))

@manuel-jrs @oldfart101
Which notify component are you guy's using?

don't understand the question

Are you sending messages/images from HA to somewhere?

@Coolie1101 I'm using telegram platform.

@manuel-jrs
Same here, did you upgrade to 0.66.0 and still seeing the same errors?

only MQTT

@oldfart101
Thanks, thought it was only related to Telegram.
Did you upgrade to 0.66.0 and still seeing the same errors?

yes

@Coolie1101 I upgraded it to 0.66 and still the same errors.

Same problem here, pretty barebones install. Just a single zwave USB stick and a few zwave PIR sensors set up. no automation, no triggers/events. Running hassbian on a RPi-2b.
It started after about 24 hours total uptime.

Apr 10 20:08:30 hassbian hass[426]: INFO:homeassistant.core:Bus:Handling , entity_id=sun.sun, new_state=>
Apr 10 20:09:30 hassbian hass[426]: INFO:homeassistant.core:Bus:Handling , entity_id=sun.sun, new_state=>
Apr 10 20:10:19 hassbian hass[426]: ERROR:homeassistant.core:Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(, 16, 15, 59860, 12367, <_UnixSelecto...e debug=False>, True)
Apr 10 20:10:19 hassbian hass[426]: Traceback (most recent call last):
Apr 10 20:10:19 hassbian hass[426]:   File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
Apr 10 20:10:19 hassbian hass[426]:     self._callback(*self._args)
Apr 10 20:10:19 hassbian hass[426]:   File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb
Apr 10 20:10:19 hassbian hass[426]:     loop.remove_writer(out_fd)
Apr 10 20:10:19 hassbian hass[426]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
Apr 10 20:10:19 hassbian hass[426]:     self._ensure_fd_no_transport(fd)
Apr 10 20:10:19 hassbian hass[426]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
Apr 10 20:10:19 hassbian hass[426]:     fd, transport))
Apr 10 20:10:19 hassbian hass[426]: RuntimeError: File descriptor 16 is used by transport <_SelectorSocketTransport fd=16 read=polling write=>
Apr 10 20:10:19 hassbian hass[426]: INFO:homeassistant.components.http.view:Serving /api/websocket to <IP_ADDRESS> (auth: True)
Apr 10 20:10:19 hassbian hass[426]: INFO:homeassistant.core:Bus:Handling , 16, 15, 59860, 12367, <_UnixSelecto...e debug=False>, True), timestamp=1523391019.5628154, source=/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py, exception=Traceback (most recent call last):
Apr 10 20:10:19 hassbian hass[426]:   File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
Apr 10 20:10:19 hassbian hass[426]:     self._callback(*self._args)
Apr 10 20:10:19 hassbian hass[426]:   File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb
Apr 10 20:10:19 hassbian hass[426]:     loop.remove_writer(out_fd)
Apr 10 20:10:19 hassbian hass[426]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
Apr 10 20:10:19 hassbian hass[426]:     self._ensure_fd_no_transport(fd)
Apr 10 20:10:19 hassbian hass[426]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
Apr 10 20:10:19 hassbian hass[426]:     fd, transport))
Apr 10 20:10:19 hassbian hass[426]: RuntimeError: File descriptor 16 is used by transport <_SelectorSocketTransport fd=16 read=polling write=>
Apr 10 20:10:19 hassbian hass[426]: >
Apr 10 20:10:19 hassbian hass[426]: ERROR:homeassistant.core:Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(, 16, 15, 59860, 12367, <_UnixSelecto...e debug=False>, True)

Still going.
Could it be because aiohttp==3.0.6?
Tue Apr 10 2018 22:37:28 GMT-0400 (Eastern Daylight Time)

Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 52, 51, 70952, 1909800, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 36, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 52 is used by transport <_SelectorSocketTransport fd=52 read=polling write=<polling, bufsize=0>>

Same problem. No Telegram. Version: 0.67.1

Upgrade to 0.67.1
log file is 1680KB after an hour
2018-04-25 21:41:38 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 17, 15, 27740, 162341, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 17 is used by transport <_SelectorSocketTransport fd=17 read=polling write=<polling, bufsize=0>>
2018-04-25 21:41:39 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 17, 15, 27740, 162341, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))

Same problem after a fresh installation. Version is 0.68.1. No Telegram running. Anyone an idea.

same issue after updating to 0.68.1

Did anyone solve this i'm getting the same

Ver. 0.70.0
Not fixed yet. The errorr is sponateous. Only one problem because of it - my log file blow up to 17Mb at day....

I am getting the same error. i went 48 hours with out it last time, but then it hit hard. the only way i could stop it was to reboot my RPI. Log got almost 700MB in 15 minutes.
Jun 11 05:22:47 HomeAssistant hass[701]: RuntimeError: File descriptor 19 is used by transport <_SelectorSocketTransport fd=19 read=polling write=<polling, bufsize=0>>
Jun 11 05:22:47 HomeAssistant hass[701]: ERROR:homeassistant.core:Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(, 19, 18, 27740, 54642, <_UnixSelecto...e debug=False>, True)
Jun 11 05:22:47 HomeAssistant hass[701]: Traceback (most recent call last):
Jun 11 05:22:47 HomeAssistant hass[701]:   File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
Jun 11 05:22:47 HomeAssistant hass[701]:     self._callback(*self._args)
Jun 11 05:22:47 HomeAssistant hass[701]:   File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
Jun 11 05:22:47 HomeAssistant hass[701]:     loop.remove_writer(out_fd)
Jun 11 05:22:47 HomeAssistant hass[701]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
Jun 11 05:22:47 HomeAssistant hass[701]:     self._ensure_fd_no_transport(fd)
Jun 11 05:22:47 HomeAssistant hass[701]:   File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
Jun 11 05:22:47 HomeAssistant hass[701]:     fd, transport))

I just noticed this for the first time today. It doesn't appear to have happened prior to 0.73.2.  Other verisions I was on recently
0.73.1 - I was on briefly.
0.71.0 - for quite a long time.

Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(, 41, 40, 26752, 55686, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
self._callback(*self._args)
File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
loop.remove_writer(out_fd)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
self._ensure_fd_no_transport(fd)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
fd, transport))
RuntimeError: File descriptor 41 is used by transport <_SelectorSocketTransport fd=41 read=polling write=<polling, bufsize=0>>`
I have the same error
Home Assistant - 0.78.0

Same issue happens in HA 0.79.  Apparently I get this outburst of errors when logging to HA Web UI. HA tries to load additional components, as per this thread:
https://github.com/home-assistant/architecture/issues/52
From my HA logs:
2018-09-30 13:51:40 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(, 20, 18$
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
self._callback(*self._args)
File "/usr/local/lib/python3.5/dist-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
loop.remove_writer(out_fd)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
self._ensure_fd_no_transport(fd)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
fd, transport))
RuntimeError: File descriptor 20 is used by transport <_SelectorSocketTransport fd=20 read=polling write=<polling, bufsize=0>>
2018-09-30 13:51:43 INFO (MainThread) [homeassistant.loader] Loaded hangouts from homeassistant.components.hangouts
2018-09-30 13:51:43 INFO (MainThread) [homeassistant.loader] Loaded nest from homeassistant.components.nest
2018-09-30 13:51:43 INFO (MainThread) [homeassistant.loader] Loaded openuv from homeassistant.components.openuv
2018-09-30 13:51:44 INFO (MainThread) [homeassistant.loader] Loaded cast from homeassistant.components.cast
2018-09-30 13:51:44 INFO (MainThread) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz
2018-09-30 13:51:44 INFO (MainThread) [homeassistant.loader] Loaded ios from homeassistant.components.ios

Hass.io 0.79.3
Not using telegram
It hangs whole cpu core on my raspberry (100% load)
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 66, in uvloop.loop.Handle._run
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "uvloop/loop.pyx", line 2272, in uvloop.loop.Loop.remove_writer
  File "uvloop/loop.pyx", line 787, in uvloop.loop.Loop._remove_writer
  File "uvloop/loop.pyx", line 692, in uvloop.loop.Loop._ensure_fd_no_transport
RuntimeError: File descriptor 23 is used by transport <ReadUnixTransport closed=False reading=True 0x72ce0eb0>
2018-10-07 23:18:15 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SendfileStreamWriter._sendfile_cb of <aiohttp.web_fileresponse.SendfileStreamWriter object at 0x7056deb0>>

This is ~ridiculous~ sad. Today morning i got spammed again. My 32gb card is 70% full and CPU is overheated (72*). The error log message appears in the log several hundreds times per second!
Btw, i have cameras in my setup and Lovelace enabled too. I can provide the configs.

Same problem here, it filled up 40GB of diskspace within 8 hours.
2018-10-10 14:56:04 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <bound method SendfileStreamWriter._sendfile_cb of <aiohttp.web_fileresponse.SendfileStreamWriter
object at 0x7f9c51d9ee80>>
Traceback (most recent call last):
File "uvloop/cbhandles.pyx", line 66, in uvloop.loop.Handle._run
File "/usr/local/lib/python3.6/site-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
loop.remove_writer(out_fd)
File "uvloop/loop.pyx", line 2272, in uvloop.loop.Loop.remove_writer
File "uvloop/loop.pyx", line 787, in uvloop.loop.Loop._remove_writer
File "uvloop/loop.pyx", line 692, in uvloop.loop.Loop._ensure_fd_no_transport
RuntimeError: File descriptor 36 is used by transport <ReadUnixTransport closed=False reading=True 0x7f9c51da9d48>

Caused by aio-libs/aiohttp#1893

I will apply it to my Home Assistant, only i had this issue only 3 times - thus it isn't something i can easily reproduce.

@deviant-studio what camera are you using?

@awarecan i have several, but suspect this one https://ru.aliexpress.com/item/BESDER-Yoosee-IP-Camera-Wifi-1080P-960P-720P-ONVIF-Wireless-Wired-P2P-CCTV-Bullet-Outdoor-Camera/32793309300.html
since its resolving time is the worst (until image appears in the card), and sometimes image doesn't appear at all. in these moments my hass instance is going crazy and spams the log with errors.
I use all my cameras in jpeg mode, like http://url-to-jpeg-image

I mean what HA camera component are you using? https://www.home-assistant.io/components/camera.generic/?

@awarecan yes, all my cameras are generics

Need someone help to test following patch, the location of your web_fileresponse.py can be found in the error log
--- aiohttp/web_fileresponse.py
+++ aiohttp/web_fileresponse.py
@@ -33,11 +33,12 @@ def _write(self, chunk):

     def _sendfile_cb(self, fut, out_fd, in_fd,
                      offset, count, loop, registered):
-        if registered:
-            loop.remove_writer(out_fd)
         if fut.cancelled():
             return

+        if registered:
+            loop.remove_writer(out_fd)
+
         try:
             n = os.sendfile(out_fd, in_fd, offset, count)
             if n == 0:  # EOF reached
``

It did change the code no error so far. However, I do not know what did trigger the error. So I have to wait for a couple of days

I just noticed the same. No idea what triggered it.

@signaleleven  could you please try to apply my patch?

Does this issue only occur for people with cameras in the HASS GUI? I have a few cameras, but I almost never click the Tab in the GUI where they are located which might be why this issue has only appeared for me once (that I have noticed anyway).

In my case, yes, I have some cameras in the gui, and one is not working (for other reasons). I will try to reproduce it. If I manage to reproduce it reliably, I will apply the patch.

It happened again (good thing I set up an alarm on protracted high CPU usage :) ) and I applied your patch. I use hassio and I had to edit the file within the container. A simple container restart preserved the change. It will not survive a container recreation but until the next upgrade it should hold.

@awarecan just wanted to confirm that your patch has worked perfectly for me. Thanks much!

I dont have any camera's and still have the same error. Didnt saw it before, cant think of anything that triggered it (only tried some light automations today).
I will try the patch

Need someone help to test following patch, the location of your web_fileresponse.py can be found in the error log
--- aiohttp/web_fileresponse.py
+++ aiohttp/web_fileresponse.py
@@ -33,11 +33,12 @@ def _write(self, chunk):

     def _sendfile_cb(self, fut, out_fd, in_fd,
                      offset, count, loop, registered):
-        if registered:
-            loop.remove_writer(out_fd)
         if fut.cancelled():
             return

+        if registered:
+            loop.remove_writer(out_fd)
+
         try:
             n = os.sendfile(out_fd, in_fd, offset, count)
             if n == 0:  # EOF reached

This worked for my new installation.  I had the same errors, probably related to how I have pages open on my ipad and iphone.  None since applying this change.

@mstovenour what do I remove or add? this is what I have `    def _sendfile_cb(self, fut, out_fd, in_fd,
offset, count, loop, registered):
if registered:
loop.remove_writer(out_fd)
if fut.cancelled():
return
    try:
        n = os.sendfile(out_fd, in_fd, offset, count)
        if n == 0:  # EOF reached
            n = count
    except (BlockingIOError, InterruptedError):
        n = 0
    except Exception as exc:
        fut.set_exception(exc)
        return

    if n < count:
        loop.add_writer(out_fd, self._sendfile_cb, fut, out_fd, in_fd,
                        offset + n, count - n, loop, True)
    else:
        fut.set_result(None)

`

On 81.1 i don't have errors in the log so far. but still got spontaneous cpu full loads, and the only cure is to restart. Can't say for sure if it's same issue since my log is empty.

I also don't have the flood of logging anymore (I think already in 0.8), but I noticed that when the CPU jumps to 100% it INVARIABLY goes back to normal after exactly 2 hours.
And at the same time I get exactly ONE message in the log.

I applied the patch but of course I lost it at every upgrade, so I am living with the problem for now (this made me jump from a Rpi to an Intel NUC so I can survive)

@mstovenour what do I remove or add? this is what I have

You have to invert the two blocks
     if registered:
         loop.remove_writer(out_fd)

and
        if fut.cancelled():
            return

Having this same issue since I added 2 onvif camera's (which aren't working)
Relevant configuration.yaml
    host: <IP_ADDRESS>.10
    name: Cam
    port: 8000

Still exists on 81.6
https://i.imgur.com/8raSDDT.png
But logs are empty. Nothing suspicious. Reboot helps but only for couple of hours. If i dont use UI intensively it can work normally for days.

Similar error here:
Log Details (ERROR)
Sun Dec 02 2018 21:53:18 GMT-0600 (Central Standard Time)

Error doing job: Exception in callback SendfileStreamWriter._sendfile_cb(<Future cancelled>, 33, 29, 25764, 149545, <_UnixSelecto...e debug=False>, True)
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_fileresponse.py", line 37, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 33 is used by transport <_SelectorSocketTransport fd=33 read=polling write=<polling, bufsize=0>>

I use one foscam camera and this error seems to have started after I implemented a snapshot automation to email a picture from the camera. I'm on 0.81.6, RPi3 / Hassbian.


Archive node test log is not collected

While port the archive node test. I found that the artifact is not collected and uploaded to CI. There's no logs for this integration test other than the ones in CI page. Also I am a little suspicious about whether it's actually running successfully.

Fix this in buildKite, can pull this into Team C work.

Thinking should be resolved based on this example BK run and https://github.com/CodaProtocol/coda/commit/55b84eb918078be7325278b70b23d607ef9c107b cc @ghost-not-in-the-shell

May have/want to prepend upload paths with something like $BUILDKITE_JOB_ID to avoid overwrites and access limitations from the BK UI.


[fix] able to view un-proper sys notices

Coverage increased (+0.02%) to 83.442% when pulling ef5e686055889bb37ed0866e87c81c8568f26d70 on sunny4381:fixes/sys-notices-issue into a62b3ad3c1603f92e61dced6b893aabb5446d4cd on shirasagi:master.


Wfc387

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/382/
Test PASSed.


Corrections and clarifications of REST API Spec

Some markup and language tweaks for better reader clarity; some punctuation fixes for typos.
Significant changes to the OPTIONS method section which did not conform to RFC 7231 --
https://tools.ietf.org/html/rfc7231#section-4.3.7 -- as the example was for the specific /data/ container, but the description was server-wide.

Conflicts from intervening changes resolved.  Please merge...

Again...
@RubenVerborgh @kjetilk @dmitrizagidulin @elf-pavlik
(in other words, all previous committers)
Conflicts from more intervening changes resolved. Whomever can, please merge...

Apparently needs new reviews, since conflict re-resolution...
@pfriedman @dmitrizagidulin @gobengo were positive last round.

@kjetilk - Understood, about the full rework. I think applying this relatively small adjustment before that full rework will result in a better end than leaving it out until after, at which point the rework may itself be broken because this error persists...


Cannot run as module

python -m markdown <filename>.md

fails with:
Traceback (most recent call last):
  File "/usr/lib/python3.10/importlib/util.py", line 96, in find_spec
    parent_path = parent.__path__
AttributeError: module 'html' has no attribute '__path__'. Did you mean: '__name__'?

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/__init__.py", line 22, in <module>
    from .core import Markdown, markdown, markdownFromFile
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/core.py", line 27, in <module>
    from .preprocessors import build_preprocessors
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/preprocessors.py", line 29, in <module>
    from .htmlparser import HTMLExtractor
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/htmlparser.py", line 29, in <module>
    spec = importlib.util.find_spec('html.parser')
  File "/usr/lib/python3.10/importlib/util.py", line 98, in find_spec
    raise ModuleNotFoundError(
ModuleNotFoundError: __path__ attribute not found on 'html' while trying to find 'html.parser'

Any ideas?
markdown_py works fine.
Running on Arch currently on linux-next.

Which version of Python-Markdown are you using? It looks like you are using Python3.10, but is that Arch's default CPython or something else?
It is really odd that it works from markdown_py but not with python -m markdown. What happens when you run from the python console?

Python-Markdown version:
$ pip list -v | grep Markdown
Markdown                 3.4.1                  /home/ervin/.local/lib/python3.10/site-packages pip

Python version according to pacman:
$ pacman -Q python
python 3.10.8-2

Running in the python console:
$ python
Python 3.10.8 (main, Oct 13 2022, 21:13:48) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
Traceback (most recent call last):
  File "/usr/lib/python3.10/importlib/util.py", line 96, in find_spec
    parent_path = parent.__path__
AttributeError: module 'html' has no attribute '__path__'. Did you mean: '__name__'?

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/__init__.py", line 22, in <module>
    from .core import Markdown, markdown, markdownFromFile
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/core.py", line 27, in <module>
    from .preprocessors import build_preprocessors
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/preprocessors.py", line 29, in <module>
    from .htmlparser import HTMLExtractor
  File "/home/ervin/.local/lib/python3.10/site-packages/markdown/htmlparser.py", line 29, in <module>
    spec = importlib.util.find_spec('html.parser')
  File "/usr/lib/python3.10/importlib/util.py", line 98, in find_spec
    raise ModuleNotFoundError(
ModuleNotFoundError: __path__ attribute not found on 'html' while trying to find 'html.parser'
>>>

This is interesting. Following is my pythonrc:
import atexit
import os
import readline
import time
from libqtile.command.client import InteractiveCommandClient

# enable syntax completion
readline.parse_and_bind("tab: complete")

# clear screen
def clear():
  os.system('clear')

c = InteractiveCommandClient()

if 'PYTHONHISTFILE' in os.environ:
  history = os.path.expanduser(os.environ['PYTHONHISTFILE'])
elif 'XDG_DATA_HOME' in os.environ:
    history = os.path.join(os.path.expanduser(os.environ['XDG_DATA_HOME']),
                           'python', 'python_history')
else:
    history = os.path.join(os.path.expanduser('~'),
                           '.python_history')

history = os.path.abspath(history)
_dir, _ = os.path.split(history)
os.makedirs(_dir, exist_ok=True)

try:
    readline.read_history_file(history)
except OSError:
    pass

if readline.get_current_history_length() == 0:
    readline.add_history(f'# History created at {time.asctime()}')

def write_history():
    try:
        readline.write_history_file(history)
    except OSError:
        pass

atexit.register(write_history)

Does this interfere with the module? I'll check by removing it temporarily.

So the anomaly appears to be markdown_py here. Is it possible that that is using a different Python installed on your system?
Regardless, the code which is causing the error is this:
https://github.com/Python-Markdown/markdown/blob/e97ffebc9d22f6dc84087caaf11978d4548c617c/markdown/htmlparser.py#L27-L32
Annoyingly, on some Python installations this seems to fail and I have no idea why as this is the way that importlib is supposed to work. Additionally, I have never been able to replicate the failure myself, which  makes debugging the issue nearly impossible.

Well, I do have python2 installed, but markdown_py has #!/usr/bin/python as shebang, which is linked to python3, obviously(I use Arch btw xD). This is odd... I'm not sure how to debug this further.

This appears to be a duplicate of #1132 in that the same root issue is causing the problem.


Mask proxy credentials before raising exception

Describe the bug
When the proxy fails, an exception is raised which displays the proxy_url. For secured proxies, the proxy_url may contain the credentials in the format<EMAIL_ADDRESS> In the pipeline, the credentials will be provided as variables so they are not visible in the logs but if an exception happens, httpSession.py raises an exception that includes the true proxy url in the error message.
Example:
In pipeline the proxy url would looke like this<EMAIL_ADDRESS>In the exception it looks like this:
Failed to connect to proxy URL<EMAIL_ADDRESS>Connection issues can be caused by network problems as well as invalid id and password.
Steps to reproduce
Try to hit an endpoint through a secured proxy but put in a bogus id/password.
I ran into this in a Gitlab pipeline executing the aws cli which uses botocore.
Expected behavior
The same exception is produced but the credentials are masked. This prevents exposing credentials in Git pipelines when there are issues with the proxy.
Example:
Failed to connect to proxy URL<EMAIL_ADDRESS>Debug logs
N/A

Hi @RJKeane2000,
Thanks for reaching out!  Marking this as a feature request.

Thank you!

@zhan9san I was having the same issue as @RJKeane2000
Your PR seems to fix the issue

Thank you @zhan9san for the fix. Sorry I missed your request. I didn't receive a notification for some reason. Thanks for verifying the fix @jonchapmansai!

Hello @RJKeane2000, @zhan9san, @jonchapmansai,
Thank you for bringing this to our attention. As you’ve probably seen, we were able to review the PR yesterday and merged the necessary changes. We completed a release today that includes the required updates. Here is a quick summary for future readers:
Prior to the release of Botocore 1.23.41, customers using the AWS CLI and Boto3 could potentially receive errors containing their full proxy URL when failing to connect to a proxy. If the proxy URL contained user information, this may have been included in logs where exceptions are recorded. We have improved ProxyConnectionError to programmatically strip user information from all URLs before raising an exception, and we recommend customers upgrade to Boto3 1.20.41 and AWS CLI 1.22.41.
Please let us know if you have any more questions or concerns.


Print command 2

New Print Command feature prints the entire contact list, along with any insurance policies associated with each contact (whether as a beneficiary, owner or insured) into a printable .txt file of their choice. The user will name the file, for example:
print filename_1
and the file can be found in the docs/books folder as filename_1.txt

This PR hasn't passed Travis yet

It failed as the insurance class methods were changed,
for e.g.

           String expiryDate = insurance.getExpiryDate();

           String signingDate = insurance.getSigningDateString();

made a brand new pull request "Print Command 3".
Closing this PR!


Make CI run faster and cheaper by merging github action workflows into one job

This PR changes the CI workflow so that instead of having 4 separate VMs that all need to install the same golang tools and compile the same allora-chain codebase, we install all the tools once and compile once, and then run the various format and test actions one after another.
This makes things faster because we don't have to wait for github to allocate us 4 vms instead of 1 and we don't have to build the same code 4 times, and the various tasks can share the same build cache.
it makes things cheaper because github charges us for runtime minutes used, and this uses less minutes used by reusing the build process per thing we have to do

This looks good to me, maybe we can also make them separate by jobs so they can run in parralel? say Job for setup which they all depend on but separate job for fmt, unit test and integration text.
that will make the actions faster

so my understanding is that separate jobs run on separate virtual machines. If you find evidence that's not true I'm happy to separate the tasks out by job, but if they can't share the build cache then there's no point


Update nvidia-clerk.go

added 3070 url

Coverage remained the same at 40.0% when pulling a8abc62d8653b4b27792ca11b82eddb20932b67a on redstone2019-patch-1 into 9ce67a60c58aa13f041602c1e2e614f08371a203 on master.


PR: Date/time-based filename (when saving) figures in Plots pane

Description of Changes
Make the default filenames generated when saving figures in the Plots pane date/time-based.

Issue(s) Resolved
Fixes #10864
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: Jean-Sébastien Gosselin

@jnsebgosselin, should we add an option for this? Or do you think it's much better to save plots by date from now on?

@jnsebgosselin, should we add an option for this? Or do you think it's much better to save plots by date from now on?

Personnally, I wouldn't add an option, but maybe we can ask what others think.

Personnally, I wouldn't add an option, but maybe we can ask what others think.

Yeah, I wouldn't add an option either.
@goanpeca, what do you think?

@goanpeca also thinks this is good as is, so let's merge it.


Electricity Rate data on OpenEI is more up to date than data SAM downloads

Latest OpenEI Utility Rate APIs are listed at https://openei.org/services/.
See SAM forum: https://sam.nrel.gov/forum/forum-general/3093.

I pinged Jay Huggins about this, and it looks like the only differences between v5 and v7 are in the request, not the response:
Version 7 of the API vs v5 has some improvements in geo search and handling date queries, and adds the following query parameters:
•	effective_on_date
•	is_default

There’s also version 8 which dropped demandratchetpercentage in favor of lookbackmonths, lookbackpercent, and lookbackrange.

So an upgrade to version 7 could be trivial if we want to use the same request. I wasn't able to find the response parsing code to see if we use demandrachetpercentage, but it sounds like that portion of the rate upgrade might also be able to be deferred until Steve has a chance to work on ratcheting demand charges.

urdb.cpp uses hard-coded urls for API calls. Elsewhere in SAM, the URLs are stored in the runtime/webapis.conf text file (for NREL versions, webapis.conf must be updated in both SAM and SAM-private).
The URDB API calls in urdb.cpp use http instead of https -- I think those should be changed to https.
In urdb.cpp, the API calls from SAM use V3 for the list of utilities and available rates: https://github.com/NREL/SAM/blob/6f4761f962bab659fb1cd0c707d2c5eeb02fbdfe/src/urdb.cpp#L155, https://github.com/NREL/SAM/blob/6f4761f962bab659fb1cd0c707d2c5eeb02fbdfe/src/urdb.cpp#L202, https://github.com/NREL/SAM/blob/6f4761f962bab659fb1cd0c707d2c5eeb02fbdfe/src/urdb.cpp#L385.
And V4 for the rate data itself: https://github.com/NREL/SAM/blob/6f4761f962bab659fb1cd0c707d2c5eeb02fbdfe/src/urdb.cpp#L332.
Should those be updated to V7?
And there are calls to special APIs to manage utility names: https://github.com/NREL/SAM/blob/6f4761f962bab659fb1cd0c707d2c5eeb02fbdfe/src/urdb.cpp#L230, https://github.com/NREL/SAM/blob/6f4761f962bab659fb1cd0c707d2c5eeb02fbdfe/src/urdb.cpp#L285.
If we update to V7, are those special API calls compatible with V7?
According to the API documentation, one difference between the V7 response (https://openei.org/services/doc/rest/util_rates/?version=7) and the V4 response (https://openei.org/services/doc/rest/util_rates/?version=4) is the new dgrules that replaces the old usenetmetering. If the dgrules data is good, I think we should read that value to set the value of the ur_metering_option input.
Some other v4 response fields have been removed, for example, two that I think SAM reads:
minmonthlycharge
annualmincharge
And other new response fields in v7. If the fixed charge and fuel adjustment fields are charges, they would have to be read into SAM and either added to the monthly fixed charge input or as new input variables:
is_default
servicetype
fueladjustmentsmonthly
fixedchargefirstmeter
fixedchargeeaaddl
fixedchargeunits
mincharge
minchargeunits

Additional upgrades: change as many hardcoded urls in urdb.cpp as possible to use https. The zip code query recently broke because we use http, and the server now requires https.

@cpaulgilman Thanks Paul, I'll have to fix that for the next Release

@brtietz I'm working on updating to URDB V7 (https://api.openei.org/utility_rates?version=7) for the rate downloads. Could you share a link to the new rate data you added for my tests?

Closed in https://github.com/NREL/SAM/pull/423 ?


Storage UI V2

Mostly functionality for forks and make the code a bit easierTM to deal with.
Title is a bit skrunkly but it's a starting point and not enabled upstream.

Code QOL:

Storage now uses BUIs in a more (not completely) standard way.
It avoids rebuilding storage controls where possible.

Added cvars for:

Nested storage
Multiple windows
Window titles.

Added functionality for:

Drag-drop between containers.

Bugfixes:

Fixed the hover mispredict.

:cl:

fix: Fix hovering storage containers flickering sometimes.

finally tetris v2


API source?

Not an issue but a question. I'm looking for Korea Post API for getting parcel price for a shipping. Does anything like that exist?

Sorry to say, I can't find it in API form.
But, epost.go.kr provide following pracel price calcurator on the web;
http://service.epost.go.kr/comm/search/cmsc01003.jsp

Ok, thank you. That would do.
Respectfuly
Mykhaylo Khodorev
On Mon, May 29, 2017 at 7:47 AM Homin Lee<EMAIL_ADDRESS>wrote:

Sorry to say, I can't find it in API form.
But, epost.go.kr provide following pracel price calcurator on the web;
http://service.epost.go.kr/comm/search/cmsc01003.jsp
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/suapapa/go_postkr/issues/2#issuecomment-304577372,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB44b69XMfjLgykWtka_B8uOvkvNF9gTks5r-lvZgaJpZM4No5gv
.


feature: lint & style check tasks to Makefile

Did you check the docs?

[X] I have read all the docs

Is your feature request related to a problem? Please describe.
https://github.com/orgs/nvim-java/discussions/102
Describe the solution you'd like

Describe alternatives you've considered

Additional context

@s1n7ax  can i work on this issue ?

@atm1020 I'm creating issues for everything just so I don't forget & easy to track. Pick any task you want, when ever you want. There is no deadline so finish it when ever you want. Let me know when you start working on this to change the status so others know this is being worked on.

@atm1020 Congrats!


Potential optimization for in-memory Join of a big table with a small table

Currently, our HashJoin strategy builds a HashMap for both the left and right table that are being joined.
This is needed to efficiently handle mixed join conditions where Equals conditions are mixed with Between conditions.
However, in case where we only have Equals conditions and no Between conditions, it may sometime be beneficial to only create the 'index' hashmap for one of the two tables (preferably the smaller one of the two, to ensure it is cheaper to build) - then we can just linearly iterate through the rows of the bigger table and correlate rows based on the smaller table's index.
This has the same asymptotic cost, but it should allow us to cut the cost of building the index for the bigger table - so it could be a bit faster in practice (very much depending on scenarios).

This was originally planned as part of #8217 but it has been split off as a separate task, because it has slightly lower priority. It may still be an interesting experiment to try.

[ ] Add a benchmark to the Join.enso suite of benchmarks that tests joining a relatively small table with a very big table (e.g. 100 to 10^6).

The benchmarks should probably be run only if extended_tests is enabled.
Ideally, we may want to check both small.join big and big.join small to check if the improvement does not 'care' about order in which the tables are given.

[ ] Implement a SimpleHashJoin strategy that can be used if there are no Between conditions.

We can rename current HashJoin to CompoundHashJoin (because this is the one that allows mixing it with nested strategies).
Within SimpleHashJoin, compute the index for only the smaller of the two tables. Adapt the logic for finding matched and unmatched rows accordingly.

[ ] Compare the benchmarks before and after the change.

Actually even if we do have Between in the conditions, we can still construct the Hash index only for the left table - within that index we need to cache the SortedListIndex for each group of left rows and then we can re-use it when correlating right rows - one by one, without constructing the right index.


Remove own shape inference for Expand

It seems this was implemented by
https://github.com/onnx/onnx/pull/2041

/test


Unable to connect with TLS - something about an incompatible ssl version

If I try to open a connection I get OpenSSL initialisation error.
If I run sslinfo() I get
Error in sslinfo() :
  kdb+ : Could not initialize openssl. Error was incompatible ssl version
.

I am using the latest version of openssl, according to the website linked from the KX ssl instructions.
OpenSSL 1.1.1l  24 Aug 2021
This same website tells me to punch myself in the face if I want to use an older version of openssl ;)

Hi travis, this is due to an older version of the client library being included in this repository (which does not support openssl 1.1.1). There is a PR open to address this #66 .
In the mean time if you have a local clone of the rkdb repo you can workaround by updating the version of the client library (w64/e_static.lib) using the latest version at
https://github.com/KxSystems/kdb/raw/master/w64/e_static.lib
And rebuild/reinstall the rkdb package in R with
devtools::install_local('PATHTOLOCALCLONE',quiet=TRUE,force=TRUE,INSTALL_opts=c("--no-multiarch"))

@jhanna-kx  is there any particular reason why the PR has not been merged? Can I consider this fit for production use?

Looks like this repo has not been updated for years?

@jhanna-kx this used to work for me, but now when I try to do it I get the following:

installing source package 'rkdb' ...
** using staged installation
** libs
gcc  -I"C:/PROGRA~1/R/R-42~1.0/include" -DNDEBUG     -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include"  -D_GNU_SOURCE   -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign  -c rkdb.c -o rkdb.o
In file included from rkdb.c:15:
common.c: In function 'from_guid_kobject':
k.h:31:19: warning: passing argument 1 of 'guid_2_char' from incompatible pointer type [-Wincompatible-pointer-types]
31 | #define kG(x) ((x)->G0)
|               ^
|                   |
|                   G * {aka unsigned char *}
k.h:31:19: note: in definition of macro 'kG'
31 | #define kG(x) ((x)->G0)
|                   ^~
In file included from rkdb.c:20:
common.c:116:22: note: expected 'K' {aka 'struct k0 *'} but argument is of type 'G *' {aka 'unsigned char '}
116 | static K guid_2_char(K);
|                      ^
common.c:264:20: warning: passing argument 1 of 'guid_2_char' from incompatible pointer type [-Wincompatible-pointer-types]
264 |     y= guid_2_char((G)(&kU(x)[i]));
|                    ^~~~~~~~~~~~~~~
|                    |
|                    G * {aka unsigned char *}
common.c:116:22: note: expected 'K' {aka 'struct k0 *'} but argument is of type 'G *' {aka 'unsigned char '}
116 | static K guid_2_char(K);
|                      ^
In file included from rkdb.c:15:
k.h:31:19: warning: pointer targets in passing argument 1 of 'kp' differ in signedness [-Wpointer-sign]
31 | #define kG(x) ((x)->G0)
|               ^
|                   |
|                   G * {aka unsigned char }
k.h:31:19: note: in definition of macro 'kG'
31 | #define kG(x) ((x)->G0)
|                   ^~
common.c:265:18: note: in expansion of macro 'kC'
265 |     kK(z)[i]= kp(kC(y));
|                  ^~
k.h:76:17: note: expected 'S' {aka 'char '} but argument is of type 'G ' {aka 'unsigned char '}
76 |   knk(I,...),kp(S),ja(K,V),js(K,S),jk(K,K),jv(Kk,K),k(I,const S,...),xT(K),xD(K,K),ktd(K),r1(K),krr(const S),orr(const S),dot(K,K),b9(I,K),d9(K),sslInfo(K x);
|                 ^
In file included from rkdb.c:20:
common.c: In function 'guid_2_char':
common.c:468:11: warning: initialization of 'G *' {aka 'unsigned char *'} from incompatible pointer type 'K' {aka 'struct k0 '} [-Wincompatible-pointer-types]
468 |     Ggv= x;
|           ^
In file included from rkdb.c:15:
k.h:31:19: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign]
31 | #define kG(x) ((x)->G0)
|               ^
|                   |
|                   G * {aka unsigned char *}
k.h:31:19: note: in definition of macro 'kG'
31 | #define kG(x) ((x)->G0)
|                   ^~
common.c:469:13: note: in expansion of macro 'kC'
469 |     sprintf(kC(y),"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",gv[ 0],gv[ 1],gv[ 2],gv[ 3],gv[ 4],gv[ 5],gv[ 6],gv[ 7],gv[ 8],gv[ 9],gv[10],gv[11],gv[12],gv[13],gv[14],gv[15]);
|             ^~
In file included from C:/PROGRA~1/R/R-42~1.0/include/R.h:45,
from rkdb.c:7:
c:\rtools42\x86_64-w64-mingw32.static.posix\include\stdio.h:396:20: note: expected 'char *' but argument is of type 'G *' {aka 'unsigned char *'}
396 | int sprintf (char *__stream, const char *__format, ...)
|              ^~
gcc -shared -s -static-libgcc -o rkdb.dll tmp.def rkdb.o -Lw64 -le_static -lws2_32 -liphlpapi -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-42~1.0/bin/x64 -lR
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: w64/e_static.lib(e.obj):(.text[app_stdin]+0x3): undefined reference to __imp___iob_func' C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: w64/e_static.lib(e.obj):(.text[app_stdout]+0x6): undefined reference to __imp___iob_func'
C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: w64/e_static.lib(e.obj):(.text[app_stderr]+0x6): undefined reference to __imp___iob_func' C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: w64/e_static.lib(e.obj):(.text[sslrr]+0x85): undefined reference to __imp__snprintf'
C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: w64/e_static.lib(c.obj):(.text[vkrr]+0xb9): undefined reference to `_snprintf'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rkdb'
removing 'C:/azrepos/Adia.Quatro.Ui/ShinyUi/renv/library/R-4.2/x86_64-w64-mingw32/rkdb'
Warning message:
In i.p(...) :
installation of package ‘C:/Users/LOCAL_~1/Temp/Rtmp2j3xIE/file6aa866e24d91/rkdb_0.12.0.tar.gz’ had non-zero exit status


add zarr.zip to adata

Hi! It would be nice to be able to plot the outline of the cell, as opposed to only the x and y centroids, in sq.pl.spatial_scatter (this is usually .zarr.zip) for spatial. Is there a way to do this?

yes, it' sq.pl.spatial_segment for labels, if you are referring to polygons, then that is not possible, I would suggest you take a look at https://spatialdata.scverse.org/projects/plot/en/stable/plotting.html


Converted Gradle files to Kotlin and added MD Components

rebuilt w/ kts gradle files (easier to work with) + MDC 1.9.0 (for chips, text validation, better buttons, better dialogs, etc.) + added navigation components (easier to move b/w activities)

looks good

looks good


uniqueText should not be functional

ID text is unique only within an ID scheme. Different identifiers can have the same text in different schemes.
The intent is not clear from the definition: "This is used for the actual value of a key or ID where you don't want the possibility of having more than one." This seems to mean that the ID should not have more than one text string, not that two IDs can't share one.

Can you give an example specified in triples, that shows functional is incorrect?

This seems to mean that the ID should not have more than one text string

Exactly, which is what being functional means. An IRI that is an instance of gist:ID can only have one text value.

ID text is unique only within an ID scheme. Different identifiers can have the same text in different schemes.

If an ID is in a different 'scheme' (not sure what that means in triples), then it's a different ID and should have a different IRI.
M.

I agree that

1 is incorrect
2 is correct
the definitions need to be in alignment.

I disagree that making the property functional provides 1.  Specifying it to be inverse functional would provide 1.  Making it functional provides 2.  So the property should be functional.

Yes, you're correct. My error.


i set spannablestring in the text,it works error in recycleview when i collapse the it

i need collaspe the last few lines of the article, but it collaspe the first few lines of the article,can u help me?

I was positioned to the problem，when i let the textview setMovementMethod,the probrom occurred.can u give me some suggestion

i solve it.
if someone has the same problem,it maybe can help u.
when u setMovementMethod for textview,u also let it scroll. u need prohibit it,so overridde the LinkMovementMethod like this:
public class NoScrollLinkMovementMethod implements OnTouchListener {
@Override
public boolean onTouch(View v, MotionEvent event) {
TextView widget = (TextView) v;
Object text = widget.getText();
if (text instanceof Spanned) {
Spanned buffer = (Spanned) text;
        int action = event.getAction();

        if (action == MotionEvent.ACTION_UP
                || action == MotionEvent.ACTION_DOWN) {
            int x = (int) event.getX();
            int y = (int) event.getY();

            x -= widget.getTotalPaddingLeft();
            y -= widget.getTotalPaddingTop();

            x += widget.getScrollX();
            y += widget.getScrollY();

            Layout layout = widget.getLayout();
            int line = layout.getLineForVertical(y);
            int off = layout.getOffsetForHorizontal(line, x);

            ClickableSpan[] link = buffer.getSpans(off, off,
                    ClickableSpan.class);

            if (link.length != 0) {
                if (action == MotionEvent.ACTION_UP) {
                    link[0].onClick(widget);
                } else if (action == MotionEvent.ACTION_DOWN) {
                    // Selection only works on Spannable text. In our case setSelection doesn't work on spanned text
                    //Selection.setSelection(buffer, buffer.getSpanStart(link[0]), buffer.getSpanEnd(link[0]));
                }
                return true;
            }
        }

    }

    return false;
}

then, setOnTouchListener replace setMovementMethod, it works for me.


Migration guide converts string "0644" to raw 0644; should not use octal syntax.

After transpilation it leads to "mode" : 420 in the ignition config where previously was permissions: "0644" in the cloud-config.

Nevermind was confused.


first iteration fo contribution guidelines

#6

need to update testing protocols, Contributor license agreement and documentation.

this is looking great @Dynorat!
Outside of my comments, I think it may be worth including a high-level note relating to how to create issues for different components of the system, i.e. the Docker, Python/OpenOA, dbt components. Otherwise, I'm happy to add some suggestions to the commented sections too - just let me know

i think this is an excellent point.  do we have a good sense of the system components now?  perhaps some sort of diagram that we can include?


Add support for finding several  dependencies without pkg-config

In particular, add a dedicated ign_manual_search CMake macro, and then use it in FindUUID (fix https://github.com/ignitionrobotics/ign-cmake/issues/64) and in the find scripts for FFMPEG libraries.

we are also calling find_path and find_library in several other find modules:
$ grep -l find_library $(grep -rlI find_path cmake/Find*) | sort
cmake/FindDL.cmake
cmake/FindFreeImage.cmake
cmake/FindGTS.cmake
cmake/FindIgnOGRE2.cmake
cmake/FindJSONCPP.cmake
cmake/FindODE.cmake
cmake/FindOptiX.cmake
cmake/FindSQLite3.cmake
cmake/FindTINYXML2.cmake
cmake/FindYAML.cmake
cmake/FindZIP.cmake

I suspect that we could use ign_manual_search in these find modules, though it's not needed for this PR.

we are also calling find_path and find_library in several other find modules:
$ grep -l find_library $(grep -rlI find_path cmake/Find*) | sort
cmake/FindDL.cmake
cmake/FindFreeImage.cmake
cmake/FindGTS.cmake
cmake/FindIgnOGRE2.cmake
cmake/FindJSONCPP.cmake
cmake/FindODE.cmake
cmake/FindOptiX.cmake
cmake/FindSQLite3.cmake
cmake/FindTINYXML2.cmake
cmake/FindYAML.cmake
cmake/FindZIP.cmake

I suspect that we could use ign_manual_search in these find modules, though it's not needed for this PR.

Yes, a few of those would probably need to expose some other parameters in the ign_manual_search  API, but for the moment I preferred to have the minimal changes necessary for https://github.com/microsoft/vcpkg/pull/11273#issuecomment-629659870 .

@traversaro Can you bring this up to date so we can land it?

Done!


Function_set can have attr except for chainer.Function

This PR is that Function_set can have attribute except the Function while maintaining the current interface.

Thanks for PR! I'll review it.

Would you implement __setattr__ to accept deferred substitution of Functions and nested FunctionSets? I means following usage must be acceptable.
fs = FunctionSet()
fs.l1 = F.Linear(4, 4)
fs.nested = FunctionSet(...)

And we should discuss about the behavior for objects other than Functions and FunctionSets that implement parameters and gradients properties. Current implementation accepts such objects as attributes of FunctionSet, and their parameters and gradients are collected by FunctionSet.parameters and FunctionSet.gradients.

Oh, i forgot such pattern.
class FunctionSet(object):
	def __setattr__(self, key, value):
        if all( [ hasattr(value, i) for i in ["parameters", "gradients"] ]):
        	if "functions" in self.__dict__:
	            self.functions[name] = value
	            return
	    self.__dict__[name] = value

fs = FunctionSet()
fs.l1 = F.Linear(4, 4)
fs.nested = FunctionSet(...)
fs.hoge = 0
print fs.___dict__ # {'functions': {'nested': <chainer.FunctionSet object at >, 'l1': <chainer.functions.linear.Linear object at >}, 'hoge': 0}

In this pattern when we use inheritance class from FunctionSet, results are different by the initialization timing of super-class.
class A(FunctionSet):
	def __init__(self):
		super(A, self).__init__()
		self.l= F.Liner(4, 4)
		self.n = 0

a = A()
print a.___dict__ # {'functions': {'l': <chainer.functions.linear.Linear object at >}, 'n': 0}

class B(FunctionSet):
	def __init__(self):
		self.l1= F.Liner(4, 4)
                self.n0 = 0
		super(B, self).__init__()
		self.l2= F.Liner(4, 4)
                self.n1=0
b = B()
print b.___dict__ # {'functions': {'l2': <chainer.functions.linear.Linear object at >}, 'l1': <chainer.functions.linear.Linear object at >, 'n0':0, 'n1':0}

Thank you for the update. I think the second behavior you gave is not intuitive. How about initializing the functions at the first setattr by a function-like object? Also, init should accept non-function attributes.

Thank you for the review. The architecture becomes very complicated when I use __setattr__, __getattr__.  As a result of having reconsidered it, I want to close this PR.


perf: app slowly respond after touch (start or end) on iOS

Ionic version:  (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

We have noticed this issue on iPhone5 using ion-slides component, but also elsewhere.. (not specific to ion-slides). When you drag slide to half of a screen and let it autoscroll, there is about 1 sec delay until animation starts. Also similar delayed reactions on tap controlled changes.
Expected behavior:

Instant not delayed reactions of an app
Steps to reproduce:

install ionic blank
put about 3000 span into html
tap the content
see long recalculates in devtools
you can add some variable incrementation on tap event to see dealyed reaction

I was able to identify the problem, it is causing by universally applied css rule
:focus,
:active {
  outline: none;
}

I think the main purpose of this reset rule is because of some elements undesired default outlines
so the solution is to specify this elements. Please see the solution code below.
Related code:

Problem:
:focus,
:active {
  outline: none;
}

Solution:
:focus,
input:active,
textarea:active,
select:active,
button:active,
a:active {
    outline: none;
}

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
cli packages: (/Users/user/project/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.3.0 ios 4.5.3 windows 5.0.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.2
    ios-sim    : 6.0.0
    Node       : v6.11.3
    npm        : 5.5.1
    OS         : macOS High Sierra
    Xcode      : Xcode 9.1 Build version 9B55

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : legacy

I can make a PR if you are OK with the solution.

Hello! Thank you for opening an issue with us!
This appears to be a duplicate of #12733.
We are always open to PRs. However, it might be best to wait until after v4 is released at this point. Issue #12733 was scheduled for inclusion in a release a while ago but I believe we ran into issues with device testing.
I will cc @mhartington & @brandyscarney to see what the status of this CSS is in the current development.
Thank you for using Ionic

Yes seems to be same cause of both issues, I have not found it with search. But I think my title is more correct because not only scrolling list is problem but all touch actions, which is much worse problem then.
For anyone coming here, I have posted my temporary fix of both issues here
Happy coding :)


Tax infrastructure and default implementation

Oh boy that's a tough one :D
Taxation is super-duper-complicated. It has lots of details, local subtleties, and unless you're selling very, very locally, you can't afford to ignore it.
In the MVP, we'll implement extensible infrastructure, enabling tax services to act on and modify an order. That's reasonably simple.
We'll also include a default implementation, that will also be fairly simple(istic), but will likely require more work for the shop administrator. It will likely involve a way to map customers to regions, and then regions to tax rates. Open questions include whether we should import data, under what format.

Not a simple topic, let's dig in deeper.
Kinds of Taxes
I think there are only two kinds that come up for e-commerce: VAT or sales tax, and customs.
While there are many accounting and legal differences between VAT and sales tax, for the purpose of a sales platform like OCC they behave identically, as a percentage cost added to the line item. It's typically a single rate, but some product classes (e.g. essential food or hygiene goods) may have different rates. Though unless you are extremely sure, just use the full rate. In e-commerce the tax is paid according to the purchaser's country/state or origin.
(Customs depend on the source and destination countries too. Local orders, or orders within a customs-union (e.g. the Schengen Zone in Europe or MERCOSUR in South-America) suffer no customs and many countries waive customs on small value shipments. For the rest, it's incredibly complicated with individual line item classes, the total value, and possibly various treaties can affect the result. Luckily customs is the importer's responsibility. While bigger sites offer informative estimates, it's not a requirement.)
Generic Implementation
As a general solution I think we should have an event, something like PreparingCartForCheckout that gets the ShoppingCartItem collection and updates it. There the line items could be updated individually, in an extensible way. (The same event could be useful for shipping too to add a shipping cost entry.) When accessing the cart this even would be triggered before returning the items.
I'm unsure how we should express the tax on line items. Another question is if the prices should be net or gross. As I understand, in the USA it's typical to show net prices. This is also common in VAT-using countries for shops that primarily sell to other businesses (for VAT write-off reasons).
I think we have to bite the bullet and replace Money.Amount.Value with separate NetValue and GrossValue properties, to avoid potentially costly confusion. Then choosing which to display would be a matter of configuration. What do you think? Additionally we should have a string TaxName property, it would be important in the future if we need invoice integration.
Default VAT Implementation
This heavily depends on the above, but it should be flexible because these rates do change as legislation evolves (so don't use pre-calculated tax rate tables).
As a start, we should add a feature that represents a local VAT implementation, with an admin menu where you can pick a single percentage. Then it would just apply it from the above mentioned event. This is enough if you only sell domestically.
A different feature for or international orders, we might need to use a VAT API that gets the current and up-to-date numbers. I'm not aware of a reliable free API for that. If anyone has need or preference for this in the MVP, please speak up!
Nothing is Set in Stone
This is just my recommendation, please chime in if I missed something crucial. Please don't start working on the issue until we have heard some other voices on the topic.

Luckily customs is the importer's responsibility

I agree.

As a start, we should add a feature that represents a local VAT implementation, with an admin menu where you can pick a single percentage.

Here in Quebec we have 2 sales taxes. We have one that is federal HST (harmonized sales tax) and one that is provincial QST (Quebec sales tax). This means that it is a compound tax that needs to be calculated in the right order.
http://www.calculconversion.com/sales-tax-calculator-gst-qst.html
Here you can see how it is calculated. So, I believe that taxes should be based on some rules. Maybe looking into some known e-commerce platform could help find how it should be integrated.

Based on the linked tax calculator (from OCC's perspective) boils down to a 114.975% sales tax that applies to a region instead of the whole country. Do you have to pay QST if you import something into Quebec or just for local sales?

Anyway, you make a good point about looking at some other e-commerce platforms. I will look into it soon. In  the meantime if anyone can point me to specific relevant parts in an open source e-commerce project, please don't hesitate.

nopCommercehttps://github.com/nopSolutions/nopCommerce has a pretty good tax calc system.  Look in /src/Plugins/Nop.Plugin.Tax.Avalara
From: Dávid El-Saig @.>
Sent: Thursday, August 4, 2022 10:15 AM
To: OrchardCMS/OrchardCore.Commerce @.>
Cc: Subscribed @.***>
Subject: Re: [OrchardCMS/OrchardCore.Commerce] Tax infrastructure and default implementation (#33)
Anyway, you make a good point about looking at some other e-commerce platforms. I will look into it soon. In the meantime if anyone can point me to specific relevant parts in an open source e-commerce project, please don't hesitate.
—
Reply to this email directly, view it on GitHubhttps://github.com/OrchardCMS/OrchardCore.Commerce/issues/33#issuecomment-1205317417, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APYRPBHSBFTCQHS6EBL3MXTVXPF45ANCNFSM4HKXC3VA.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>

QST is for local sales but as you can see it is also charged by Newegg.ca

It always depends if you need to produce a tax report for that country/state and I believe that it is now encouraged.

+1 for Avalara

And I believe that in some States in the USA that they also have city taxes.

Not only can there be city taxes in the USA, there are (occasionally) regional taxes as well.  One of the more common implementations is when two nearby cities charge a tax to fund a common public transportation infrastructure.

In the USA, a purchaser can present an exemption certificate and not get charged sales tax, so OCC should take that into account as well.
Unlike a VAT, sales tax in the US is only charged at the final, retail sale of an item.    If you are legally considered a Non-Profit Organization, you are also exempt from paying sales tax.  In these cases, you can apply to your State of residence for a sales tax exemption certificate.  When  you present the certificate to a seller, they are not supposed to charge sales tax.
Full disclosure: I am not a sales tax professional, but I did implement a sales tax collection system while working at a previous employer

Another thing about sales tax in the USA:
Sales Tax is paid by the purchaser of an item.  All States in the US require that this tax be collected by the seller ON BEHALF of the purchaser, and then periodically be remitted to the taxing authority.  But due to the legal concept of nexus*, if a seller does not have a physical presence in a particular State, that State cannot require that the seller collect sales tax.  In these situations, the purchaser is supposed the calculate the required sales tax and remit it to their home taxing authority themselves, but this almost never happens in practice.
So it would help if OCC has some way to mark a Country/Province/State/City as “I am required to collect sales tax here” and then ignore sales tax calculations on all other locations.
*Nexushttps://en.wikipedia.org/wiki/State_income_tax#Nexus can get a bit thorny, but it boils down to the concept that a State can only enforce its laws within its own borders.  If a Seller does not have physical presence in a State, it can’t be subject to that State’s laws.
Again disclosure: I am not a sales tax professional, but I did implement a sales tax collection system while working at a previous employer

I believe that big e-commerce companies have been recently encouraged to pay sales tax in different countries at least (Amazon). So, while a state cannot require it we still need to take it into consideration. Also, at that point, you would surely be using Avalara.

As a reference point, here are some pointers to the Nwazet implementation, which was built for a US business frequently shipping overseas:

https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/ITax.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/ITaxProvider.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/ZipCodeTaxProvider.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Models/ZipCodeTaxPart.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/StateOrCountryTaxProvider.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Models/StateOrCountryTaxPart.cs

It relies heavily on the model of geography:

https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/ITerritoriesService.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/TerritoriesService.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/ITerritoriesHierarchyService.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/TerritoriesHierarchyService.cs
https://github.com/bleroy/Nwazet.Commerce/blob/master/Services/UnitedStates.cs

Avalara looks very interesting. Also I see an alternative, TaxJar (a Stripe company). Both have NuGet libraries. In either case you need full source and destination address, and line items with prices and tax codes. I guess the tax code would be the one you use for the product domestically, because how on earth would you know/maintain all the different tax codes for every country? We could add an optional field in ProductPart to store the product's tax code. As for the source address, that could be a site setting. So these are the info we should include in the abstraction (the equivalent of ITax in Nwazet) to cover every implementation. The result would be a collection of tax name and amount pairs. It has to be for each line item, because applying tax on just the total is not allowed everywhere.
As for the implementation without an external service, we could do something similar to the ZipCodeTaxPart.Rates, but use the whole address and the tax code to match against (either as a table of regex expressions or perhaps create a DSL with Irony). Then every item that matches would be applied.

Probably shouldn't use ProductPart, which is deliberately minimalist in terms of concerns it addresses. There should be a separate part that encapsulates tax concerns and only that.

Good point, I agree.


[Bug]: Data error during MySQL simulation data selection and fixed value execution

ODC version
odc422
OB version
not related
What happened?

What did you expect to happen?
Col2 is 0
How can we reproduce it (as minimally and precisely as possible)?

Create Table

CREATE TABLE `a1` (
  `col` int(11) DEFAULT NULL,
  `col1` int(11) DEFAULT '1',
  `col2` int(11) NOT NULL AUTO_INCREMENT
)

Conduct simulation data col selection sequence, col2 select fixed value

Anything else we need to know?
No response
Cloud
No response

this is expected, let us do an experience:

truncate a1:

execute sqls as follow:

as you can see, columns col2 is fixed zero
3. query this table:

as you can see, col2 is not a fixed value

I have debugged the ob-data-mocker, the value we write is right obviously~


Add update-cli plugin

Please add update-cli plugin (https://github.com/tcnksm/cf-plugin-update-cli)
It checks cloudfoundry/cli update and downloads if current installed version is not latest.
We use it inside Rakuten for a while and works well. So we want to provide it to the community, too.

It seems test was failed because of cf-donwload plugin,
    Plugin 'cf-download' has an invalid checksum for platform 'osx'
    Expected
        <string>: c7ff94fafc7e04ee8253074c3928146fc7ac2b68
    to equal
        <string>: d097b37657d814a4b934ae39e41fc61078630b49

Fixed cf-download checksum value


Select Bitrates Manually

Hello Pete,
My client asked me to add bitrate selector to the player. I need to know,
how can I change bitrates manually? as far as I know, React-Player change
bitrates based on bandwidth speed.

if you're using an HLS stream, once the player has loaded (onLoad event), you can use the getInternalPlayer('hls') method to get the hlsPlayer instance.  Then you can access all the available levels (streams) from hlsPlayer.levels, and you can manually set the level with hlsPlayer.currentLevel = ... or hlsPlayer.nextLevel = ...
https://github.com/video-dev/hls.js/blob/master/docs/API.md#quality-switch-control-api

currentLevel

Worked perfectly for me

currentLevel

Worked perfectly for me

if you're using an HLS stream, once the player has loaded (onLoad event), you can use the getInternalPlayer('hls') method to get the hlsPlayer instance. Then you can access all the available levels (streams) from hlsPlayer.levels, and you can manually set the level with hlsPlayer.currentLevel = ... or hlsPlayer.nextLevel = ...
https://github.com/video-dev/hls.js/blob/master/docs/API.md#quality-switch-control-api

is this available for DASH streams also?

@dalalRohit also it's my question too, but HLS is different from dash.js.
based on the DASH document I used autoSwitchBitrate: { video: false } and setQualityFor to change quality manually but it doesn't work.
ref.current.player
            .getInternalPlayer("dash")
            .updateSettings({
              streaming: { abr:
              { autoSwitchBitrate:
                { video: false }
              } }
            });

and then:
ref.current.player.getInternalPlayer("dash").setQualityFor("video", qualityIndex);
@cookpete any idea?

Just to throw my hat in the ring. This Dash bitrate setting is something I'm looking to implement also.

I Will try


1 migrate plurimathorg to GitHub pages

Closes #1

@kwkwan you also need to rename the repository to plurimath.github.io, and also update Route53 to add a CNAME from www to plurimath.github.io, and change the domain apex to the GitHub Pages IP addresses with A records.


[QUESTION] Does kyuubi project plan to create apache jira space?

Describe the question
Hi, maintainers
Does kyuubi project plan to create jira space in Apache JIRA?
It's useful when we can add subtasks for importent bug/featuer.
Thanks

Based on my research so far, the Milestone is close to the expectation

From github docs, find a doc about subtasks https://docs.github.com/en/issues/tracking-your-work-with-issues/about-task-lists , will try to use in https://github.com/apache/incubator-kyuubi/issues/775

sounds nice


[11.x]  Introduce Support\Url and Support\UrlQueryParameters classes for easier URL handling

Description
This PR introduces two new classes in the Support namespace to provide a more convenient way to work with URLs with an object-oriented representation using PHP's native parse_url and parse_str functions:

Illuminate\Support\Url
Illuminate\Support\UrlQueryParameters

I copy these same classes over from project to project as I usually end up needing them. I figured others may find these classes a more (IDE) friendly replacement to the existing parse_url and parse_str functions.
Example
use Illuminate\Support\Url;

// Parse a URL string
$url = Url::parse('https://example.com/path/to/resource?foo=bar&baz=qux');

// Access URL components
$scheme = $url->scheme; // 'https'
$host = $url->host; // 'example.com'
$path = $url->path; // '/path/to/resource'

// Work with query parameters
$queryParams = $url->query(); // UrlQueryParameters
$foo = $queryParams->get('foo'); // 'bar'
$baz = $queryParams->get('baz'); // 'qux'
$default = $queryParams->get('bar', 'default'); // 'default'

// Check if a query parameter exists
$hasBar = $queryParams->has('bar'); // true

// Convert to array
$urlArray = $url->toArray(); // ['foo' => 'bar', 'baz' => 'qux']

Let me know your thoughts! 👍  No hard feelings on closure ❤

Really great addition! I've used the parse_url call for a project and this would've made life a lot easier

Love this, superb utility.

Wow amazing, you have inspired me to do some new work

$url = url()->parse('https://example.com/path/to/resource?foo=bar&baz=qux');
I like this method 😉

Would it be out of the scope to add this functionality to the UrlGenerator under the parse() method like @Ali-Hassan-Ali says below?
Otherwise it is macroable, those who do want it could just add it ourselves.
Great work Steve!

$url = url()->parse('https://example.com/path/to/resource?foo=bar&baz=qux');
I like this method 😉

Would be nice if it also supported URI templates but that's probably a little out of scope

Nice addition, thanks! I think it would be more powerful if UrlQueryParameters extend Illuminate\Support\Collection, that works with multi-dimensional arrays and supports dot notation!
$url->query()->get('filters.name'); // Or $url->query('filters.name')
$url->query()->has('filters.name');
$url->query()->count();
// ...

Also fragment can have the same functionality, and having path query may be nice too:
// https://laravel.com/docs/11.x/collections

$url->path()->first(); // docs

So we can have UrlComponent abstract class that extends Collection, and UrlQueryParameters, UrlFragments, and UrlPath that implement this class.

It would be nice to have documentation for this!
https://github.com/laravel/docs/pulls

@ezequidias

It would be nice to have documentation for this! https://github.com/laravel/docs/pulls

Probably be best to wait until it gets merged before putting in the effort to document it.

I've wanted a URL helper in Laravel for a while now. Glad to see this PR.
I would love to see the ability to manipulate the URL and also a way for the Request instance to return a Url instance.
I've always disliked the Laravel's Request object only allows returning the URL as a string, e.g., Request::url(), Request::fullUrl(), Request::fullUrlWithQuery([...]), Request::fullUrlWithoutQuery([...]). Having these return a string means only one operation can be performed on it before you need to parse it again.
At times I've needed to add AND remove query parameters from the current URL. I've love to see:
$url = Request::toUrl()->withQuery([...])->withoutQuery([...]);

In its current form, this helps does not seem to be able to manipulate with the URL in anyway. I always imagined the Laravel URL class would offer similar functionality to league\uri, with a more Laravel-style API.

I would love to see the ability to manipulate the URL and also a way for the Request instance to return a Url instance.

That would be awesome! 😍

$url = Request::toUrl()->withQuery([...])->withoutQuery([...]);

Wouldn't that be
$url = Request::toUrl()->withQueryParams([...])->withoutQueryParams([...]);

as withoutQuery() would imply "without the entire query string/without the entirety of the query parameters", therefore with* chained with without* sounds like a contradiction.

Other possible features:

host vs hostname vs authority vs origin
pathinfo vs href
Returning the host as object which implements an interface (the implementations can be hostname, IPv4, IPv6)
path could also be a Stringable Collection (optionally dirname, filename, and extension if present`)
scheme and port could be enum-like wrapper objects (isDefault(), isCustom())
ArrayAccess for query
data urls

What kind of validation do you want to have?

IP is valid
port is numeric and within range
string components only contain valid characters
URL max length (depends on browser)
query string max length (depends on server)

Helpers:

usesTls()/isSecure()
isOpaque()

Love this wrapper around parse_url. I agree that modification methods would make a nice addition as well (being able to set a specific query parameter to another value). Using a collection for the query parameters would allow for that as already proposed.
$url = URL::parse('https://example.com?foo=bar');
$foo = $url->query->foo; // bar

The suggestions here are getting quite wild. This started out as a thin wrapper around parse_url and parse_str but people are adding and adding their wishes and ideas.
If this is to become a complete and versatile URL handler, we should probably take a look at something like https://github.com/TRowbotham/URL-Parser or at least https://github.com/spatie/url instead of reinventing them by adding ideas one by one.
Either way, if a "polished" URL tooling is added, it probably should not use parse_url and it certainly should not use parse_str. Whatever is returned from parse_url probably shouldn't be called URLSearchParams as that would make people expect it to behave like standards say URLSearchParams should.
Btw there is a similar RFC on PHP itself: https://wiki.php.net/rfc/url_parsing_api

The suggestions here are getting quite wild. This started out as a thin wrapper around parse_url and parse_str but people are adding and adding their wishes and ideas.

My suggestions mostly weren't specifically meant for version 1, more as a hint to maybe develop version 1 with the future scope in mind.

Sure @shaedrich I did not mean that any of the suggestions are invalid or aggressive, just that the scope is blowing up more than the initial architecture would be appropriate for. So I suggested that it would be useful to stop and think about the purpose. Either it's a sugar around parse_url and parse_str with a minimal API or is it a complete URL handling tool with setters/withers and something better than parse_str underneath.

Hey @stevebauman - dig this overall! Let's try to implement some of @timacdonald's feedback as a lightweight modification to start and then I think we could get this merged.

@taylorotwell Ok great, will do!

Ok all set! Most notably, I've updated the $query property of the Url class to be an instance of UrlQueryParameters.
Developers can change the object (and any of the properties) which will automatically be reflected when the Url is transformed into a string or array:
$url = Url::parse('https://example.com/path/to/resource?foo=bar&baz=qux');

$url->query->set('foo', 'baz');

$url->query->forget('baz');

(string) $url; "https://example.com/path/to/resource?foo=baz"

Let me know your thoughts! 👍

@stevebauman I understand this is quite late in the process, but I just noticed that some bits of code work with the Uri class that is currently in an indirect dependency via Guzzle.
We have:
use GuzzleHttp\Psr7\Uri;
use GuzzleHttp\Psr7\Query;

// or Utils::uriFor($uriString);
$x = new Uri('https://example.com/path#fragment');
echo $x->getScheme();

Query::parse('m.y%20key=abc')

What do you think about using these parsers instead of the PHP ones? Especially the Query one solves a lot of PHP's quirks, bet there are some patches for the URL parser as well.

Sure @shaedrich I did not mean that any of the suggestions are invalid or aggressive, just that the scope is blowing up more than the initial architecture would be appropriate for. So I suggested that it would be useful to stop and think about the purpose. Either it's a sugar around parse_url and parse_str with a minimal API or is it a complete URL handling tool with setters/withers and something better than parse_str underneath.

Oh, don't worry. I didn't understand that any differently. I just expected Taylor to chime in at some point (which he eventually did) and ask for a lightweight implementation for the first version. Using these packages does sound interesting for subsequent versions, especially, since we won't have to maintain that much code on our own then.

@tontonsb Ou that's hard to say. I'm not sure. I'm not personally against it -- just not sure about depending on an indirect dependency...
@timacdonald What are your thoughts on this?

I don't have strong opinions there. As I mentioned in my initial comment...

I always imagined the Laravel URL class would offer similar functionality to league\uri, with a more Laravel-style API.

Can just s/league/guzzle/ there.
I think as long as it does the thing it is fine. We can always refactor to use the underlying package after.
Either way, I'd wait for Taylor's feedback before making any changes.

I have a thought -- now that Support\Fluent has a pretty robust API (https://github.com/laravel/framework/pull/53665) we could have UrlQueryParameters extend Fluent?
This would give developers access to transform URL query params into dates, booleans, enums, etc. I think that would be really powerful for developers! Check this out:
class UrlQueryParameters extends Fluent
{
    // ...
}

$url = Url::parse(
    'https://api.example.com/products?start_date=2024-11-28&category=electronics&in_stock=1&max_results=50&price=299.99'
);

$url->query->boolean('in_stock'); // true

$url->query->integer('max_results'); // 50

$url->query->float('max_results'); // 299.99

$url->query->date('start_date'); // Illuminate\Support\Carbon

$url->query->enum('category', ProductCategory::class); // App\Enums\ProductCategory::Electronics

What are your thoughts on this?

I have a thought -- now that Support\Fluent has a pretty robust API (#53665) we could have UrlQueryParameters extend Fluent?
What are your thoughts on this?

Since #53665 caused some trouble for some packages, even though, it's, strictly speaking, not a breaking change per se, I'd wait for Taylor's angle on this to see if something will be reverted or changed before building upon that—just in case

Closing this down for now since I'll have a PR incoming this week. Thanks for the inspiration and nudge for this feature @stevebauman!

@taylorotwell Ok cool sounds good! Excited to see what you've cooked up. Will tune in for the PR 🫡


Update README.md

Fix typo
(yes, I do PRs with one character because that's how I roll)

Codecov Report

Merging #310 (2637495) into master (755b1a9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #310   +/-   ##
=======================================
  Coverage   73.00%   73.00%
=======================================
  Files          14       14
  Lines        1982     1982
=======================================
  Hits         1447     1447
  Misses        535      535

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 755b1a9...2637495. Read the comment docs.


Failed to send - App Not Installed

I cannot send messages. The report returns 'App Not Installed'. The user app is installed for the group of users we are targeting.
ExternalAppID matches config
AppIDs and secrets match
API permissions are set correctly on MS Graph App

@thomasmfarmer , "App Not Installed" error comes when user app is not installed for the set of users. Could you please confirm if you are sending message to all users or specific members of a Team?

@v-royavinash, We are using a security group to target the users. All the members of the security group have the user app installed.

@thomasmfarmer , Can you please upload the User app at the tenant level and re-try sending the message and share your observation.

@v-royavinash, The User app was uploaded at the tenant level. Updated the version and uploaded the updated user app at the tenant level. Waited until the updated was displayed in the at the user end. Sent another test message, got the same result, App not Installed.

Hi @thomasmfarmer ,
This issue might occur when the admin reuploads the app to the app catalog by deleting the old one.
Please follow the below steps

Navigate to Azure portal and open company communicator deployed resource group

Click on “Storage account”

Expand “Tables” section

Open “AppConfig” table

Delete the second record where Rowkey is entered as “UserAppId”

So that it populates with the correct value while sending the next message. Let us know if it worked.

@gsv022, There is only one entry in the AppConfig table "ServiceUrl" - "https://smba.trafficmanager.net/amer/"

Hi @thomasmfarmer,
Could you please do the same as below. Let us know if it worked.

I cannot delete UserAppId from the AppConfig table as it does not exist.

Hi @thomasmfarmer ,
Please click on the right most (...) three dots. you will be able to see the delete option. Please let us know if this worked.

@gsv022, This did not work. The issue remains.

Hi @thomasmfarmer ,
Could you please share the screenshot showing the proactive installation is kept true or not. To check that, please follow as mentioned in the screenshot below.


Update autoprefixer to ^6.4.0

See autoprefixer's changelog for more info.

Coverage remained the same at 100.0% when pulling 929c070ec2891e2918d7abcb37e907245d1a9b0c on jesstelford:patch-1 into 0deba4dc54c227f0bfd8cabe941c5645c4cc873b on ben-eb:master.

@jesstelford caret (^) includes the latest minor version. Just reinstall your node_modules

Right you are! I was having problems getting in the latest version, turns out I had poisoned my local node_modules folder with an older hard coded version. Thanks for taking the time :)


Query.

it is to gently discuss can we make to the other existing repos as contributed by fellow contributors? Like make changes to them to make them more efficient and smooth somehow.

Yes sure you can contribute to others' projects. There is always scope for improvement right.