Just opens the image in a new tab

Not sure if it works anymore ever since Atom got a native preview of image files.
Or it may just be a conflicting package
Package List:
-  "activate-power-mode"
-   "ask-stack"
-   "atom-bootstrap3"
-   "atom-html-preview"
-   "atom-material-syntax"
-   "atom-material-ui"
-   "autocomplete-html-entities"
-   "emmet"
-   "file-icons"
-   "fold-comments"
-   "git-clone"
-   "git-control"
-   "git-time-machine"
-   "html-entities"
-   "linter"
-   "linter-htmlhint"
-   "linter-js-standard"
-   "minimap"
-   "minimap-autohide"
-   "minimap-bookmarks"
-   "minimap-cursorline"
-   "minimap-hide"
-   "minimap-pigments"
-   "minimap-selection"
-   "package-sync"
-   "pigments"
-   "simple-drag-drop-text"
-   "time-status"

Hi, thank you for using my package and for reporting this.
I've installed all the packages listed above and tested it on Atom 1.72 (latest as of the time of this comment) and it still works fine.
Please note that this plugin, as of current version, will only work with markdown files or files with unknown type (as detected by Atom). With any other file types it will use Atom's default behavior and open a preview in a new tab. I'll try to come up with a configuration option to make this works with other file types in the next version. Meanwhile, if you want this to work with other file types can you tell me what type it is and how you would want it to work?

Well the image makes it appear as if the behaviours with any standard image filethat it will then upload to github and link.

Oh i see now.  Well the same behaviour on html would be good. As a quick n lazy way to upload.

I just published a new version (0.5.0) that support .html and .css files.
Can you check it out?
Also if you have any suggestions please let me know.
Thank you again for using this and providing feedback :)


Support all endpoints

Either many endpoints are not supported, or it is quite unclear how they can be called with this library. E.g., there seem to be no Simple Earn endpoints. (sapi/v1/simple-earn/locked/history/rewardsRecord etc.) Please add them.

Hi @marco-eckstein, this is a maintained project, so we do plan to add missing endpoints over the time, however due to other ongoing tasks at the moment, we're not able to add them immediately now.

We've just released a new version https://github.com/binance/binance-connector-java/releases/tag/3.2.0 containing the latest endpoints.


Bug : TypeError: Attempted to assign to readonly property.

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] other (Please do not submit support requests here (see above))

Current behavior:

PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  TypeError: Attempted to assign to readonly property.
  at node_modules/angular-mocks/angular-mocks.js:18

Expected / new behavior:

I'm currently using Ubuntu 16.04 with virtualenv, this error makes it unable to run my frontend server. Which is making it difficult to work on the backend.
Minimal reproduction of the problem with instructions:

running.
gulp dev:runserver
Whole error
[18:25:34] Using gulpfile ~/OpenSource/evalai/gulpfile.js
[18:25:34] Starting 'dev:runserver'...
[18:25:34] Starting 'dev'...
[18:25:34] Starting 'clean'...
[18:25:34] Finished 'clean' after 50 ms
[18:25:34] Starting 'css'...
[18:25:34] Starting 'js'...
[18:25:34] Finished 'js' after 26 ms
[18:25:34] Starting 'html'...
[18:25:34] Finished 'html' after 1.96 ms
[18:25:34] Starting 'images'...
[18:25:34] Starting 'vendorjs'...
Required path doesn't exist: /home/isht3/OpenSource/evalai/bower_components/angular-material-datetimepicker/dist/angular-material-datetimepicker.min.js angular-material-datetimepicker
[18:25:34] Finished 'vendorjs' after 895 μs
[18:25:34] Starting 'vendorcss'...
Required path doesn't exist: /home/isht3/OpenSource/evalai/bower_components/angular-material-datetimepicker/css/material-datetimepicker.css angular-material-datetimepicker
[18:25:34] Finished 'vendorcss' after 430 μs
[18:25:34] Starting 'fonts'...
[18:25:34] Starting 'configDev'...
[18:25:34] Finished 'configDev' after 4.82 ms
[18:25:34] Finished 'fonts' after 222 ms
[18:25:34] Finished 'images' after 232 ms
[18:25:34] Finished 'css' after 576 ms
[18:25:34] Starting 'inject'...
[18:25:34] Finished 'inject' after 4.73 ms
[18:25:34] Finished 'dev' after 634 ms
[18:25:34] Starting 'lint'...
[18:25:35] gulp-inject 9 files into base.html.
[18:25:36] Finished 'lint' after 1.56 s
[18:25:36] Starting 'connect'...
[18:25:36] Finished 'connect' after 17 ms
[18:25:36] Starting 'watch'...
[18:25:36] Finished 'watch' after 135 ms
[18:25:36] Starting 'test:watch'...
[18:25:36] Server started http://localhost:8888
10 10 2017 18:25:36.655:WARN [watcher]: Pattern "/home/isht3/OpenSource/evalai/frontend/dist/vendors/*.js" does not match any file.
10 10 2017 18:25:36.696:WARN [karma]: No captured browser, open http://localhost:9876/
10 10 2017 18:25:36.705:INFO [karma]: Karma v1.7.1 server started at http://<IP_ADDRESS>:9876/
10 10 2017 18:25:36.705:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
10 10 2017 18:25:36.730:INFO [launcher]: Starting browser PhantomJS
10 10 2017 18:25:37.024:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket JifOUk5oAkoB3DrkAAAA with id 22967302

START:
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  TypeError: Attempted to assign to readonly property.
  at node_modules/angular-mocks/angular-mocks.js:18

Finished in 0.143 secs / 0 secs @ 18:25:37 GMT+0530 (IST)

SUMMARY:
✔ 0 tests completed

I searched a lot, I found nothing on how I could solve it. I'm new to angular.

What version of AngularJS are you using? What is on node_modules/angular-mocks/angular-mocks.js line 18 (that is mentioned in the stack trace)?

This is a big guess as you have not provided enough information to be certain but I believe the line where you are getting the error is
angular.mock = {};

which implies that angular.mock is a readonly property or possibly that angular does not exist. In the latter case I am guess that the error message is a red-herring?
If this is the case then it may be that you have not loaded the angular.js file before loading the angular-mocks.js file?

@gkalpak @petebacondarwin I don't know what was exactly going wrong, I don't have enough debugging experience on Angular, but it was solved when I ran bower install angular-material-datetimepicker. I saw a few issues on this in the past, hope this helps whoever comes across this error.


Test the Generic Server Framework

ATM, there's no actual Java code in this project. It's all config. However at runtime it does actually produce configured Java classes that do things. Figure out how to write at least a basic test for some of this.

obsolete


Major rewrite pt2

Change Log:

Updated todo file with know bugs that will require additional research
Removed a bunch of comments xD
Store data in the cached json data instead of file names
Added primitive rename and toggle lock functions
Updated screen code


Project status

Hi, I would like to inquire about the status and your plans on this project.

Is this still in development?
How comprehensive the BFFT is for different binary file types? For example, simple home-baked binary formats used by scientists or more complex audio formats like WAV or even MP3
Do you consider separating BFFT into a separate project aimed to provide the support of file formats parsing for diverse programming languages?

My motivation is the following. Already a couple of times I encountered a task of binary formats conversion. First, conversion of WAV samples into modified MilkyTracker's MOD format. And now - conversion between HDF files containing cosmological simulation data and handcrafted binary formats invented by the developers.
These kinds of tasks are repetitive as hell and I keep seeing definitions of the same structures in C, Fortran and Python code. I did some research on the topic, but could not find anything that I could use right away (please let me know, if you did). There should exist a descriptive format, that is simple enough for someone to write a parser implementation in any given language.
 And it seems to me that separating BFFT parser into a library with interfaces for C/Fortran/Python should be relatively easy.
What do you think?

The project is still active and monitored, though no development is happening at present.
BFFT has been used to specify both simple formats (BMP) and complex ones (JPG, PSD.) For some file formats a fair amount of work is still required even after the file has been analyzed (e.g., reversing the huffman/DCT encoding of JPEG blocks.) Such post-processing is seen as outside the scope of Binspector/BFFT.
If you're looking to make bindings from the BFFT parser into other languages, I would be willing to talk through including them as part of the Binspector project.

I saw that you use boost and some Adobe dependencies. This is a quite big footprint. Can it be reduced? For language support it would be best to have a <1500 lines long parsers sourcefile that can be reimplemented in different languages. Or at least is should be a lightweight parser to compile with Python/Fortran bindings. Do you think this is possible?

The parser is pretty heavily dependent on the Adobe Source Libraries, which themselves depend on Boost. The C++ Standard has evolved quite a bit since ASL was first released, and it is very likely that many of those Boost dependencies can be eliminated in favor of Standard equivalents. While this would be a nontrivial amount of work, it should be doable.
The alternative, of course, would be to rewrite the lex and parser as a custom solution. While I'm not opposed to it (especially to gain bindings to other languages) it's not the kind of effort I have time for in the near term.

It would be enough to provide me the information on what type of parser is
required for BFFT. I am not particularly proficient in this part of CS, but
with little guidance I can figure it out
Op di 7 jul. 2015 19:32 schreef Foster Brereton<EMAIL_ADDRESS>
The parser is pretty heavily dependent on the Adobe Source Libraries,
which themselves depend on Boost. The C++ Standard has evolved quite a bit
since ASL was first released, and it is very likely that many of those
Boost dependencies can be eliminated in favor of Standard equivalents.
While this would be a nontrivial amount of work, it should be doable.
The alternative, of course, would be to rewrite the lex and parser as a
custom solution. While I'm not opposed to it (especially to gain bindings
to other languages) it's not the kind of effort I have time for in the near
term.
—
Reply to this email directly or view it on GitHub
https://github.com/binspector/binspector/issues/23#issuecomment-119261608
.

--
Andrii Magalich


Run HLint on each file

For each file, it should run HLint on the file if it can and integrate the output.

Maybe this would work better if HLint was a persistent process?

Step 1: Do it using what we have now, doing a single run of HLint on all files that have changed.
Step 2: See if it's slow.

I just wanted to create an issue for this.
I'd love to see the HLint output once there's no more issues.
All good (N modules, at TIME)
Following improvements are suggested:
Could be added as an option.

+1 from me; HLint integration would be really nice.

Is this hard to do in general or you just don't have enough time to add this? Or is it of low priority? If someone wanted to pick this up, how hard in your opinion this could be?

@mrkkrp I suspect it's not hard, I think it would be useful, but I haven't had any time to look at it. i'd welcome contributions!


Update dependencies

I think the build is failing because of an incompatibility between node 16.13.0 and node-sass 4.14.1: https://github.com/sass/node-sass#node-version-support-policy
From CI build log:
 gyp ERR! cwd /home/runner/work/aggregator/aggregator/node_modules/node-sass
gyp ERR! node -v v16.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

from yarn.lock:
<EMAIL_ADDRESS>  version "4.14.1"


Publish to PyPi with SPLADE models

Can we get https://github.com/qdrant/fastembed/pull/139 in as well?
Only the CI file change is left.


Pages

Pages will be the first content type needed.
Do we make an Orchard.Pages module with a Migration or do we provide a recipe to create the content type ?
Initial properties would be:

Title
Autoroute with 'Allow custom pattern' and {{slug}}
Html Body with Wysiwyg editor
Show on a menu (When available)

Options will be:

Creatable
Listable
Draftable

For reference, here are Drupal's default content types: https://www.drupal.org/docs/7/understanding-drupal/content-types

Page makes more sense that Story or Article as it represent a generic routable content. Users should be able to create more semantically adapted types if they need to. We do it in the Blogs recipe with a Blog Post.
TODO:

Add Page type to the CMS recipe
Change Article to Page in the Blogs recipe

Working on it


property definitions

I've notice the object, data, and annotation properties don't have definitions.

Nivedita, when we do the next version of the ontology after you finish your
paper, we should address this. BTW, I think we can also vectorize these
definitions and use them to give answers as well as the corpus so there is
even more reason to do this besides it is a best practice.
On Thu, May 30, 2024 at 10:01 AM Bill Duncan @.***>
wrote:

I've notice the object, data, and annotation properties don't have
definitions.
—
Reply to this email directly, view it on GitHub
https://github.com/mdebellis/DrMO_Docs/issues/5, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD7TPBDTW6Z6Z7A4OLMRWW3ZE5LQHAVCNFSM6AAAAABIRJSHJ6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDMMJUGEYTOMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Yes @mdebellis ! I was thinking about vectorization when I made the issue ;)


typeguard 4.3.0 breaks sized types

This passes on typeguard 4.2.1, but breaks on 4.3.0.
from phantom.sized import SizedIterable
from phantom.predicates.generic import of_complex_type
assert of_complex_type(SizedIterable)(()), 'unexpectedly not of type'

Work-around at the moment is to pin 'typeguard<4.3.0'.

Reported some details of the issue back on the typeguard repository: https://github.com/agronholm/typeguard/issues/465#issuecomment-2351651934.


add passthroughBehaviour to the integration

Minor addition to the integration model object. The property passthroughBehavior is used in the template logic.

Codecov Report

Merging #5142 (50c8f39) into master (dbcee3c) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5142      +/-   ##
==========================================
- Coverage   95.89%   95.88%   -0.01%
==========================================
  Files         680      680
  Lines       67416    67419       +3
==========================================
+ Hits        64646    64648       +2
- Misses       2770     2771       +1

Flag
Coverage Δ

servertests
36.86% <0.00%> (-0.01%)
:arrow_down:

unittests
95.83% <100.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/apigateway/models.py
94.37% <100.00%> (+<0.01%)
:arrow_up:

moto/apigateway/responses.py
94.92% <100.00%> (+<0.01%)
:arrow_up:

moto/efs/models.py
91.20% <0.00%> (-0.30%)
:arrow_down:

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 dbcee3c...50c8f39. Read the comment docs.


Fix handling of login errors in the dummy app

This fixes handling of login errors in the dummy app. Since version 3.0 we no longer reject with the error response's (JSON) body but with the response itself – the dummy app had not been updated accordingly yet.

Since version 3.0 we no longer reject with the error response's (JSON) body but with the response itself

I'm confused by this. Do we not reject with an Error instance?
see https://eslint.org/docs/rules/prefer-promise-reject-errors

No, unfortunately we do not reject with an Error anywhere 😞.


Reduce generated docker image size

Changed base image to alpinelinux(alpinelinux.org) docker image(jre-alpine, https://hub.docker.com/_/openjdk/). Provided grafana 2.6.0 binaries as it is not available yet for alpine
Update cassandra docker image to 2.1.16
Allow anonymous access to grafana.
Replace curl with nc to reduce docker container size

@guicamest thanks for proposing this PR!!!!


usb: stm32: testusb fails and often hangs forever

Describe the bug
On the Nucleo F767zi and Nucleo F070rb boards, many test cases from the testusb Linux kernel module fail. Failure rates and their consequences can take various forms: most failures only result in a timeout for a specific tranfer, but some of the failures can render the device unusable, forcing the user to reset the MCU in order to use the USB device again.
The following table summarize the status of each test case for the two boards.

Test case
nucleo_f767zi
Failure Rate
nucleo_f070rb
Failure Rate

0
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

1
:x:
10-20%
:heavy_check_mark:
N/A

2
:heavy_check_mark:
N/A
:x:
100%

3
:x:
10-20%
:heavy_check_mark:
N/A

4
:heavy_check_mark:
N/A
:x:
100%

5
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

6
:heavy_check_mark:
N/A
:x:
100%

7
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

8
:heavy_check_mark:
N/A
:x:
100%

9
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

10
:heavy_check_mark:
N/A
:x:
100%

11
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

12
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

13
:x:
100%
:x:
100%

14
:x:
< 10%
:x:
100%

17
:x:
10-20%
:heavy_check_mark:
N/A

18
:heavy_check_mark:
N/A
:x:
100%

19
:x:
10-20%
:heavy_check_mark:
N/A

20
:heavy_check_mark:
N/A
:x:
100%

21
:x:
< 10%
:x:
100%

24
:x:
100%
:heavy_check_mark:
N/A

27
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

28
:heavy_check_mark:
N/A
:x:
100%

29
:heavy_check_mark:
N/A
:heavy_check_mark:
N/A

I used the following command line for all the tests:
sudo ./testusb -D /dev/usb/xxx/yyy -v 512 -t <test_case>

On the nucleo_f767zi board:

test cases 1, 3, 17 and 19 fail between 10 and 20% of the time. When it fails, the test end with "Connection timed out". The device is still usable after that failure.
test case 13 always fail with "Invalid argument". It doesn't have any other impact.
test cases 14 and 21 seem to trigger issue #27992 . Indeed, after enough time, these tests fail and the control endpoints become unresponsive. Unplugging the cable and plugging it again won't solve the issue: the device is unable to enumerate and the MCU has to be reset in order to have a functional USB device.
test case 24 always fails and is unable to complete. The testusb program stays stuck in the kernel in an uninterruptible sleep state. The device is still operational after plugging it again.

On the nucleo_f070rb board:

test cases 2, 4, 6, 8, 14, 18, 20, 21 always fail and return "Connection timed out". The device can operate normally after that.
test case 13 always fail with "Invalid argument".
test cases 10 and 28 always fail and are stuck in the kernel indefinitely. The device needs to plugged again in order to

On both boards, whenever a test fails, the log of the device shows:
<err> usb_dc_stm32: Unable to get write lock (-16)
<err> usb_dc_stm32: Unable to get write lock (-16)

Changing the value of USB_NUMOF_EP_WRITE_RETRIES from 3 to 30 doesn't seem to have any impact on the tests failures.
To Reproduce
For the nucleo_f767zi board:

Compile and flash the testusb sample
On the Linux host, follow the instructions from sample/subsys/usb/testusb/README.rst
For each test case, run the following command:

sudo ./testusb -D /dev/usb/xxx/yyy -v 512 -t <test_case>

Since some test cases only fail around 10% of the time, this command may need to be executed multiple times before the failure occurs.
For the nucleo_f070rb board:

Since that board doesn't have a USB connector, you'll need an external micro USB connector (the PA11 and PA12 pins can be used as USB D+/D-)
Once you are able to connect a Linux host to the board, you need to set the status of the "usb" node of the device tree to "okay":

diff --git a/boards/arm/nucleo_f070rb/nucleo_f070rb.dts b/boards/arm/nucleo_f070rb/nucleo_f070rb.dts
index 9f5923d36d57..dcdf20912124 100644
--- a/boards/arm/nucleo_f070rb/nucleo_f070rb.dts
+++ b/boards/arm/nucleo_f070rb/nucleo_f070rb.dts
@@ -41,6 +41,10 @@
        };
 };

+&usb {
+       status = "okay";
+};
+
 &usart1 {
        current-speed = <115200>;
        status = "okay";

Compile and flash the testusb sample
On the Linux host, follow the instructions from sample/subsys/usb/testusb/README.rst
Use the command:

sudo ./testusb -D /dev/usb/xxx/yyy -v 512 -t <test_case>

Expected behavior
All tests should pass.
Impact
There are multiple consequences to these failures:

The USB device might not pass USB certification
Some transfers randomly time out which compromise the communication with a host.
In some cases, USB is completely unusable without a MCU hardware reset, which is not acceptable or even possible in production.

Environment (please complete the following information):

Host: Ubuntu 19.10 with  Linux kernel 5.3.0-64-generic
Toolchain : Zephyr SDK
Commit SHA: c8cca16c204543b8f6dd7261c643b48ba8c95a94
Boards: nucleo_f767zi and nucleo_f070rb (with external usb connector)

Since some test cases only fail around 10% of the time, this command may need to be executed multiple times before the failure occurs.

There is option to set number of iterations  -c iterations		default 1000

For the nucleo_f070rb board:
* Since that board doesn't have a USB connector, you'll need an external micro USB connector (the PA11 and PA12 pins can be used as USB D+/D-)

Depending on how this connection was made (simply wires ?), it is probably not reliable and results should not be taken so seriously.

Hi @jfischer-phytec-iot. Thanks a lot for looking into this issues. See the attached picture to check how the connection is made. IMHO issues are more likely in the driver or in the HAL than in the wires. For each test we made the results are not erratics but systematics and reproducibles.

IMHO issues are more likely in the driver or in the HAL than in the wires.

The driver certainly has issues/bugs. It is just that the higher number of errors for nucleo_f070rb could be influenced by bad connection.

^^ @loicpoulain, @ydamigos Would one of you have time to look at this issue?

I do not have this nucleo board, but can have a look on disco-iot and carbon one.

@loicpoulain would be great, txs!

Result is a bit different on disco-iot:

@erwango this seems related to the USB device driver for STM32.

@loicpoulain So Maybe 13/18/19/20 would be common to all these.
Also, 1, 3, 14, 17 21 have low reproduction rate, so it is not excluded they have the same issue.
I had a try on my side, but I'm stuck.
I'm seeing this:
[17780.127010] usb 1-4.2.2: new full-speed USB device number 14 using xhci_hcd
[17780.229296] usb 1-4.2.2: New USB device found, idVendor=2fe3, idProduct=0009, bcdDevice= 2.04
[17780.229302] usb 1-4.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[17780.229306] usb 1-4.2.2: Product: Zephyr testusb sample
[17780.229309] usb 1-4.2.2: Manufacturer: ZEPHYR
[17780.229312] usb 1-4.2.2: SerialNumber:<PHONE_NUMBER>52500C
[17856.701958] usbtest 1-4.2.2:1.0: matched module params, vend=0x2fe3 prod=0x0009
[17856.701962] usbtest 1-4.2.2:1.0: Generic USB device
[17856.701964] usbtest 1-4.2.2:1.0: full-speed {control} tests
[17856.702019] usbcore: registered new interface driver usbtest

But the following fails:
$ sudo ./testusb -D /dev/bus/usb/009/016
./testusb: /dev/bus/usb/009/016 may see only control tests
can't open dev file r/w: No such file or directory

even after:
$ sudo sh -c "echo 0x2fe3 0x0009 0 0x0525 0xa4a0 > /sys/bus/usb/drivers/usbtest/new_id"
Am I missing something?

It seems you're not using the right path for the USB device. According to your logs, the correct path is probably /dev/bus/usb/001/014 (the device number 14 on the USB bus 1).
You should unplug the device and plug it again after that command:
$ sudo sh -c "echo 0x2fe3 0x0009 0 0x0525 0xa4a0 > /sys/bus/usb/drivers/usbtest/new_id"

So I've done a couple of tests (one run/board) on various boards from various vendors: disco_l475_iot (ST), frdm_k64f (NXP), reel_board (nRF).
Result  is as follows (each time I had to end up the test after > 5 min w/o life sign):
disco_l475_iot1

$ sudo ./testusb -D /dev/bus/usb/001/024
./testusb: /dev/bus/usb/001/024 may see only control tests
/dev/bus/usb/001/024 test 0,    0.000010 secs
/dev/bus/usb/001/024 test 1,    2.012529 secs
/dev/bus/usb/001/024 test 2,    2.113732 secs
/dev/bus/usb/001/024 test 3,    2.015036 secs
/dev/bus/usb/001/024 test 4,    2.179339 secs
/dev/bus/usb/001/024 test 5,   54.174164 secs
/dev/bus/usb/001/024 test 6,   60.895902 secs
/dev/bus/usb/001/024 test 7,   54.430262 secs
/dev/bus/usb/001/024 test 8,   61.258191 secs
/dev/bus/usb/001/024 test 9,    1.239666 secs
/dev/bus/usb/001/024 test 10,    5.571183 secs
/dev/bus/usb/001/024 test 11,   16.551997 secs
/dev/bus/usb/001/024 test 12,   16.502997 secs
/dev/bus/usb/001/024 test 13 --> 22 (Invalid argument)
/dev/bus/usb/001/024 test 14 --> 22 (Invalid argument)
/dev/bus/usb/001/024 test 17,    1.912823 secs
/dev/bus/usb/001/024 test 18 --> 110 (Connection timed out)
/dev/bus/usb/001/024 test 19,    2.151868 secs
/dev/bus/usb/001/024 test 20 --> 110 (Connection timed out)
/dev/bus/usb/001/024 test 21 --> 22 (Invalid argument)

frdm_k64f

$ sudo ./testusb -D /dev/bus/usb/001/026
[sudo] password for frq07517:
./testusb: /dev/bus/usb/001/026 may see only control tests
/dev/bus/usb/001/026 test 0,    0.000015 secs
/dev/bus/usb/001/026 test 1,    1.534650 secs
/dev/bus/usb/001/026 test 2 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 3 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 4 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 5 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 6 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 7 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 8 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 9 --> 32 (Broken pipe)
/dev/bus/usb/001/026 test 10 --> 32 (Broken pipe)
/dev/bus/usb/001/026 test 11,   16.931834 secs
/dev/bus/usb/001/026 test 12,   16.918699 secs
/dev/bus/usb/001/026 test 13 --> 5 (Input/output error)
/dev/bus/usb/001/026 test 14 --> 22 (Invalid argument)
/dev/bus/usb/001/026 test 17 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 18 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 19 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 20 --> 110 (Connection timed out)
/dev/bus/usb/001/026 test 21 --> 22 (Invalid argument)

reel_board

$ sudo ./testusb -D /dev/bus/usb/001/028
./testusb: /dev/bus/usb/001/028 may see only control tests
/dev/bus/usb/001/028 test 0,    0.000012 secs
/dev/bus/usb/001/028 test 1,    3.348177 secs
/dev/bus/usb/001/028 test 2,    2.991246 secs
/dev/bus/usb/001/028 test 3,    3.299371 secs
/dev/bus/usb/001/028 test 4,    2.957255 secs
/dev/bus/usb/001/028 test 5,  100.615993 secs
/dev/bus/usb/001/028 test 6,   91.922076 secs
/dev/bus/usb/001/028 test 7,  101.164655 secs
/dev/bus/usb/001/028 test 8,   92.064393 secs
/dev/bus/usb/001/028 test 9,    2.012352 secs
/dev/bus/usb/001/028 test 10,    8.241837 secs
/dev/bus/usb/001/028 test 11,   16.969417 secs
/dev/bus/usb/001/028 test 12,   16.606636 secs
/dev/bus/usb/001/028 test 13 --> 22 (Invalid argument)

So it appears that at least 1 test is not working whatever the USB driver:
/dev/bus/usb/001/028 test 13 --> 22 (Invalid argument)
According to dmesg:
disco_l475_iot1
[48288.082259] usbtest 1-4.2.2:1.0: TEST 13:  set/clear 1000 halts
[48298.265505] usb 1-4.2.2: verify_not_halted failed, iterations left 0, status -110 (not 0)
[48298.265524] usbtest 1-4.2.2:1.0: halts failed, iterations left 997

frdm_k64f
[50279.767589] usbtest 1-4.2.3:1.0: TEST 13:  set/clear 1000 halts
[50279.767843] usbtest 1-4.2.3:1.0: ep 81 couldn't get no-halt status, -5
[50279.767855] usbtest 1-4.2.3:1.0: halts failed, iterations left 999

reel_board:
[51054.501486] usbtest 1-4.2.2:1.0: TEST 13:  set/clear 1000 halts
[51065.618531] usb 1-4.2.2: verify_not_halted failed, iterations left 0, status -110 (not 0)
[51065.618547] usbtest 1-4.2.2:1.0: halts failed, iterations left 927

So I think this whole issue would deserve an initial comparative evaluation, test per test. Likely this will issue several tickets in various drivers.
@jfischer-phytec-iot do you have preference on how you want to deal with this?

So it appears that at least 1 test is not working whatever the USB driver:
/dev/bus/usb/001/028 test 13 --> 22 (Invalid argument)

I can not confirm that. On the reel board all the tests pass (14, 21 needs additional parameter, e.g. -v 64).
I see regressions on frdm_k64f, investigating it.

The reason for the failures on frdm_k64f is described in #28634, I think it does not affect usb_dc_stm32 driver directly.

Still in the characterization process of this issue.
Test 24 is systematically failed and sometime get testusb crashing.
For the other reported faulty tests (1, 3, 4, 17, 21), I've run loop testing on nucleo_f476zg (closest I have from nucleo_f767zi: same USB hardware block, same clock config):
for i in {1..20}
do
   for j in 1 3 14 17 19 21
   do
       echo "./testusb  -t $j round $i"
       sudo ./testusb  -t $j -D /dev/bus/usb/001/042 -v 512 -c 100000
   done
done

All tests passed (20 x 100000 iterations) except 2 issues on test 3: test 3 --> 110 (Connection timed out). Test log:
[143030.160090] usbtest 1-4.2.3:1.0: TEST 3:  write/512 0..1024 bytes 100000 times
[143047.512832] usb 1-4.2.3: test3 failed, iterations left 92380, status -110 (not 0)

@erwango Please note that the test or the host may have its own issues. I have a setup that I regularly check with two boards, reel board and frdm_k64f (frdm_k64f with a modified driver that I do not want to upstream yet).
If a test fails one should check what happens, for example, nucleo_f413zh with latest master:
Mostly I have Wireshark running, if the targen does not have an exclusive host controller, you can filter the target in wireshark: usb.device_address == 29
Test 13, testusb -t 13 -D /dev/bus/usb/001/029 fails with unhelpfully output
/dev/bus/usb/001/029 test 13 --> 22 (Invalid argument)
But dmesg output offers more information:
[523198.761525] usb 1-6: new full-speed USB device number 29 using xhci_hcd
[523198.911162] usb 1-6: New USB device found, idVendor=2fe3, idProduct=0009, bcdDevice= 2.04
[523198.911166] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[523198.911169] usb 1-6: Product: Zephyr testusb sample
[523198.911171] usb 1-6: Manufacturer: ZEPHYR
[523198.911172] usb 1-6: SerialNumber:<PHONE_NUMBER>365111
[523198.913186] usbtest 1-6:1.0: Linux gadget zero
[523198.913192] usbtest 1-6:1.0: full-speed {control in/out bulk-in bulk-out} tests (+alt)
[523290.492158] usbtest 1-6:1.0: TEST 13:  set/clear 1000 halts
[523300.701536] usb 1-6: verify_not_halted failed, iterations left 0, status -110 (not 0)
[523300.701550] usbtest 1-6:1.0: halts failed, iterations left 997

Wireshark:
I can see the host requests Set Feature ENDPOINT HALT, verifies it by Get Status, and verifies it by a transfer (e.g. IN endpint (0x81) should fail), requests Clear Feature ENDPOINT HALT, verifies it by Get Status, and verifies it by a transfer (IN (0x81) should work). The host also verifies by Get Status and by an OUT transfer that the OUT endpoint (0x01) has not been affected . Then the section is repeated with exchanged endpoints. I see that the test is aborted quickly because halting the IN endpoint affects OUT endpoint or vice versa.

Only when you have more information, you can start looking for errors. The problem is also how the driver is. It should be rewritten for each controller type, based on the lowest level offered by STM32 HAL.

The problem is also how the driver is.

I don't claim the drive is bug free

It should be rewritten for each controller type,

ok

based on the lowest level offered by STM32 HAL.

This is already the case

@erwango there seems to be some consensus that the STM32 USB driver needs some serious rework. Is this something that could be done by you or other ST engineers?

@carlescufi This is in my radar and action has been taken. This is taking more time than expected, but this should eventually be solved.


feat(settings): change users settings design and add default role setting

Closes #219

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


Add profiling support

There's currently no tooling in this project to integrate profiling with either Cargo or VS Code, both of which would be really nice. Preferably, it would support both binaries and unit tests.

Added.


Different Spark version has different function implemention

Description
Now gluten supports both Spark3.2 and Spark3.3, most of the function input, result type and implementation are same.
But I find the result type of function round(decimal, scale) is different.
Spark3.2 https://github.com/apache/spark/blob/branch-3.2/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala#L1303
override lazy val dataType: DataType = child.dataType match {
    // if the new scale is bigger which means we are scaling up,
    // keep the original scale as `Decimal` does
    case DecimalType.Fixed(p, s) => DecimalType(p, if (_scale > s) s else _scale)
    case t => t
  }

Spark3.3. and later: https://github.com/apache/spark/blob/b0b12cf3028331c12097f48cc857f4aad0e00d35/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala#L1482
override lazy val dataType: DataType = child.dataType match {
    case DecimalType.Fixed(p, s) =>
      // After rounding we may need one more digit in the integral part,
      // e.g. `ceil(9.9, 0)` -> `10`, `ceil(99, -1)` -> `100`.
      val integralLeastNumDigits = p - s + 1
      if (_scale < 0) {
        // negative scale means we need to adjust `-scale` number of digits before the decimal
        // point, which means we need at lease `-scale + 1` digits (after rounding).
        val newPrecision = math.max(integralLeastNumDigits, -_scale + 1)
        // We have to accept the risk of overflow as we can't exceed the max precision.
        DecimalType(math.min(newPrecision, DecimalType.MAX_PRECISION), 0)
      } else {
        val newScale = math.min(s, _scale)
        // We have to accept the risk of overflow as we can't exceed the max precision.
        DecimalType(math.min(integralLeastNumDigits + newScale, 38), newScale)
      }
    case t => t
  }

Which version would Velox support?
And can we implement several versions with different name such as spark32_round and spark33_round?
Wish for your reply, thanks! @mbasmanova

@jinchengchenghh Supporting multiple versions of Spark would be challenging. How would one even find out the full list of differences? Discovering and fixes these one-by-one doesn't seem ideal. We would need to come up with some strategy and code structure first. Feel free to start a document to discuss (1) which versions we want to support; (2) how many functions are in each version; (3) what are the differences between the versions; (4) how we are going to organize the code, documentation and testing; (5) who will be the main people helping review Spark functions.

CC @FelixYBW

We support the newest version Spark3.5.


Build failed

Build: https://dev.azure.com/monacotools/a6d41577-0fa3-498e-af22-257312ff0545/_build/results?buildId=224138
Changes: https://github.com/Microsoft/vscode/compare/b0689b4...daf9647
vscode API - workspace-watcher
MainThreadFileSystem#$watch(): failed to stat a resource for file watching (extension: vscode.vscode-api-tests, path: watcherTest:/somePath/folder, recursive: true, session: 0.9920386339236211): EntryNotFound (FileSystemError): watcherTest:/somePath/folder
    ✔ createFileSystemWatcher
  271 passing (2m)
  16 pending
  1 failing
  1) vscode API - terminal
       Terminal
         window.onDidWriteTerminalData
           should listen to all future terminal data events:

      AssertionError [ERR_ASSERTION] [ERR_ASSERTION]: The expression evaluated to a falsy value:

  (0, assert_1.ok)(dataEvents.some(e => e.name === 'test1' && e.data === 'write1'))

      + expected - actual

      -false
      +true

      at t.value (/Users/runner/work/1/s/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts:410:10)
      at p.w (out/vs/workbench/api/node/extensionHostProcess.js:63:1902)
      at p.fire (out/vs/workbench/api/node/extensionHostProcess.js:63:2119)
      at A.$acceptTerminalClosed (out/vs/workbench/api/node/extensionHostProcess.js:105:142065)
      at i.N (out/vs/workbench/api/node/extensionHostProcess.js:115:7983)
      at i.M (out/vs/workbench/api/node/extensionHostProcess.js:115:7749)
      at i.H (out/vs/workbench/api/node/extensionHostProcess.js:115:6830)
      at i.G (out/vs/workbench/api/node/extensionHostProcess.js:115:6045)
      at t.value (out/vs/workbench/api/node/extensionHostProcess.js:115:4736)
      at p.w (out/vs/workbench/api/node/extensionHostProcess.js:63:1902)
      at p.fire (out/vs/workbench/api/node/extensionHostProcess.js:63:2119)
      at k.fire (out/vs/workbench/api/node/extensionHostProcess.js:79:13931)
      at t.value (out/vs/workbench/api/node/extensionHostProcess.js:131:30355)
      at p.w (out/vs/workbench/api/node/extensionHostProcess.js:63:1902)
      at p.fire (out/vs/workbench/api/node/extensionHostProcess.js:63:2119)
      at k.fire (out/vs/workbench/api/node/extensionHostProcess.js:79:13931)
      at r.z (out/vs/workbench/api/node/extensionHostProcess.js:79:16996)
      at t.value (out/vs/workbench/api/node/extensionHostProcess.js:79:15448)
      at p.w (out/vs/workbench/api/node/extensionHostProcess.js:63:1902)
      at p.fire (out/vs/workbench/api/node/extensionHostProcess.js:63:2119)
      at t.acceptChunk (out/vs/workbench/api/node/extensionHostProcess.js:79:11705)
      at t.value (out/vs/workbench/api/node/extensionHostProcess.js:79:10992)
      at p.w (out/vs/workbench/api/node/extensionHostProcess.js:63:1902)
      at p.fire (out/vs/workbench/api/node/extensionHostProcess.js:63:2119)
      at p.u (out/vs/workbench/api/node/extensionHostProcess.js:131:19077)

ENOPRO: No file system provider found for resource 'fake-fs:/cef2c3ac0b92ab82': CodeExpectedError: ENOPRO: No file system provider found for resource 'fake-fs:/cef2c3ac0b92ab82'
    at a.j (vscode-file://vscode-app/Users/runner/work/1/VSCode-darwin-x64/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:11395)
    at async a.exists (vscode-file://vscode-app/Users/runner/work/1/VSCode-darwin-x64/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:627:13602)
    at async er.sb (vscode-file://vscode-app/Users/runner/work/1/VSCode-darwin-x64/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2305:26345)

Also hit this.

This looks like https://github.com/microsoft/vscode/issues/188375

/duplicate

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Trying to get an On URL to execute.

I am running a very old(v 0.2.1) Armzilla HA-Bridge and would like to move to this HA-Bridge as I want it to run with Home Assistant and HA does not recognize the old HA Bridge. In the first approximation all I want to do is add my devices with their on off urls to the new bridge. I tested by adding one device and an on URL but when I click Test On, I get a message saying:
    Request Executed: success [{"success":{"/lights/101/state/on":true}}]
but it is clear that the url has not been accessed. Can anyone please offer some assistance to get at least one device working so that I can go from there?

If I understand your question correctly, maybe this might help.
Here is an example Bridge Device entry for a device name 'HW Test' which can be switched on/off with HTTP URLs
http://<IP_ADDRESS>:1880/ctrl/HWOn
http://<IP_ADDRESS>:1880/ctrl/HWOff
Part of a screenshot of HA-Bridge device edit (your unique ID will obviously differ)... also substitute your off/on URL

Thanks for the reply but I am still not able to get this to work. Your screenshot looks somewhat different than what I have. Are you running v5.4.0?
Here is my view:
Several questions:
As to the Unique ID. Is that something I need to enter? If so, it is grayed out. Your onURL is of the form [{“item”:”url”}]. In the old HAbridge that I was running the URLs are just that with no “item”, etc in the syntax. Is this documented somewhere? After I define an oNURL Ige t a device in the Bridge Devies tab but if I lick Test ON, I get a popup notification saying:
Request executed: success {[“success”: {/lights/101/state/on”:true}}]. I have no idea what this all means.

On Aug 20, 2021, at 7:20 PM, Chris @.***> wrote:
If I understand your question correctly, maybe this might help.
Here is an example Bridge Device entry for a device name 'HW Test' which can be switched on/off with HTTP URLs
http://<IP_ADDRESS>:1880/ctrl/HWOn http://<IP_ADDRESS>:1880/ctrl/HWOn
http://<IP_ADDRESS>:1880/ctrl/HWOff http://<IP_ADDRESS>:1880/ctrl/HWOff
Part of a screenshot of HA-Bridge device edit (your unique ID will obviously differ)... also substitute your off/on URL
https://user-images.githubusercontent.com/24318993/130302020-5dd3d6e4-a28f-44e9-bab4-e12e4115e8cd.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/1331#issuecomment-903004492, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSETAJ3RVEIBMRTSDNDT53PLXANCNFSM5CK4PIZQ.

I think I am running the 5.4.1devbranch ( https://github.com/bwssytems/ha-bridge/tree/devbranch5.4.1 ), but I will check. I haven't touched this setup in many months now.
The GUI in my screenshot is from the 'Change edit mode' (top menu in edit/copy a device screen). Choosing 'Change Edit Mode' will show you the same GUI that I used with those fields presented.
The unique ID will be created when you add a new device, so give this a try:-

Load GUI home page, then click 'Add/edit' from menu to load 'Edit/Copy a device' screen
Click 'Change edit mode' button (to display a screen similar to my screenshot)
In 'name' field, enter a name for your test switch
In 'map type (legacy)' field, choose 'HTTP device' from the drop down (I'm not sure this is really required, but it works for me)
In 'onurl' field enter [{"item":"http://<IP_ADDRESS>:1880/ctrl/HWOn"}] (change the HTTP string to yours)
In 'offurl' field enter [{"item":"http://<IP_ADDRESS>:1880/ctrl/HWOff"}] (change HTTP)
Click menu button 'Add bridge device'  which should add this new device to your DB and automatically allocate a unique id for it.

Next (under top menu) 'Bridge devices' you can test by clicking 'Test on' and 'Test off'
This works for me, so good luck with your HTTP test.
By the way, there appear to be issues for some people around Amazon Alexa picking up the new bridge device looking at the issues here. But that is the next stage after you have created the device with the HTTP on/off string as above and tested with the Test On/Off buttons. I have tested the above, and it works on my setup where I am switching a heating device controlled from a node-RED flow.
Cheers
Chris

That worked! Thanks very much for your help. Now I have to see if I can get Alexa and Home Assistant to see these “devices”. HA was not able to see the old bridge but I am hopeful that it will work with this version.

On Aug 21, 2021, at 5:01 AM, Chris @.***> wrote:
I think I am running the 5.4.1devbranch ( https://github.com/bwssytems/ha-bridge/tree/devbranch5.4.1 https://github.com/bwssytems/ha-bridge/tree/devbranch5.4.1 ), but I will check. I haven't touched this setup in many months now.
The GUI in my screenshot is from the 'Change edit mode' (top menu in edit/copy a device screen). Choosing 'Change Edit Mode' will show you the same GUI that I used with those fields presented.
The unique ID will be created when you add a new device, so give this a try:-
Load GUI home page, then click 'Add/edit' from menu to load 'Edit/Copy a device' screen
Click 'Change edit mode' button (to display a screen similar to my screenshot)
In 'name' field, enter a name for your test switch
In 'map type (legacy)' field, choose 'HTTP device' from the drop down (I'm not sure this is really required, but it works for me)
In 'onurl' field enter [{"item":"http://<IP_ADDRESS>:1880/ctrl/HWOn"}] (change the HTTP string to yours)
In 'offurl' field enter [{"item":"http://<IP_ADDRESS>:1880/ctrl/HWOff"}] (change HTTP)
Click menu button 'Add bridge device' which should add this new device to your DB and automatically allocate a unique id for it.
Next (under top menu) 'Bridge devices' you can test by clicking 'Test on' and 'Test off'
This works for me, so good luck with your HTTP test.
By the way, there appear to be issues for some people around Amazon Alexa picking up the new bridge device looking at the issues here. But that is the next stage after you have created the device with the HTTP on/off string as above and tested with the Test On/Off buttons. I have tested the above, and it works on my setup where I am switching a heating device controlled from a node-RED flow.
Cheers
Chris
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/1331#issuecomment-903085977, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSGDBWMOXTS6FUHD5KDT55TNJANCNFSM5CK4PIZQ.

Great! When I set up my test earlier, I went into the Alexa App on my Android phone, devices, add a device, Philips hue, discover devices
45 seconds later Alexa had found my test device
I hope your experience is that easy! I have found Alexa device detection a bit hit and miss to be fair. So I tend to get things working and then leave well alone. If it ain't broke, don't fix it.
I don't use HA, more of an old school Domoticz user here. I also use node-RED for much integration now.

I am at the point of adding a device to HomE Assistant which requires that I press the button on the bridge. I am sure I saw that link on the HA-Bridge at one point but now I am not seeing it. Do you know how to enable it?

On Aug 21, 2021, at 9:29 AM, Chris @.***> wrote:
Great! When I set up my test earlier, I went into the Alexa App on my Android phone, devices, add a device, Philips hue, discover devices
45 seconds later Alexa had found my test device
I hope your experience is that easy! I have found Alexa device detection a bit hit and miss to be fair. So I tend to get things working and then leave well alone. If it ain't broke, don't fix it.
I don't use HA, more of an old school Domoticz user here. I also use node-RED for much integration now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/1331#issuecomment-903116611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSGQJGK72PVC3EOMMQ3T56S2ZANCNFSM5CK4PIZQ.

I found it. It is in Update Security Settings.

On Aug 21, 2021, at 11:08 AM, Ira Fuchs @.***> wrote:
I am at the point of adding a device to HomE Assistant which requires that I press the button on the bridge. I am sure I saw that link on the HA-Bridge at one point but now I am not seeing it. Do you know how to enable it?

On Aug 21, 2021, at 9:29 AM, Chris @.*** @.***>> wrote:
Great! When I set up my test earlier, I went into the Alexa App on my Android phone, devices, add a device, Philips hue, discover devices
45 seconds later Alexa had found my test device
I hope your experience is that easy! I have found Alexa device detection a bit hit and miss to be fair. So I tend to get things working and then leave well alone. If it ain't broke, don't fix it.
I don't use HA, more of an old school Domoticz user here. I also use node-RED for much integration now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/1331#issuecomment-903116611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSGQJGK72PVC3EOMMQ3T56S2ZANCNFSM5CK4PIZQ.

Home Assistant found the new Bridge but, unfortunately, Amazon is not seeing it. Works fine with the old bridge.

On Aug 21, 2021, at 11:15 AM, Ira Fuchs @.***> wrote:
I found it. It is in Update Security Settings.

On Aug 21, 2021, at 11:08 AM, Ira Fuchs @.*** @.***>> wrote:
I am at the point of adding a device to HomE Assistant which requires that I press the button on the bridge. I am sure I saw that link on the HA-Bridge at one point but now I am not seeing it. Do you know how to enable it?

On Aug 21, 2021, at 9:29 AM, Chris @.*** @.***>> wrote:
Great! When I set up my test earlier, I went into the Alexa App on my Android phone, devices, add a device, Philips hue, discover devices
45 seconds later Alexa had found my test device
I hope your experience is that easy! I have found Alexa device detection a bit hit and miss to be fair. So I tend to get things working and then leave well alone. If it ain't broke, don't fix it.
I don't use HA, more of an old school Domoticz user here. I also use node-RED for much integration now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/1331#issuecomment-903116611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSGQJGK72PVC3EOMMQ3T56S2ZANCNFSM5CK4PIZQ.

I suggest you scan through other ha-bridge/issues where others have had issues getting Amazon to discover your new device. I think the latest version is here. https://github.com/bwssytems/ha-bridge/releases/tag/v5.4.1RC1
Sorry I cannot help further. Good luck with getting Alexa to recognise your devices

I read through the pertinent issues and what seems to have worked for some poeple is changing the Unique ID to ahve 9 octets. I tried but it did not help. Alexa does not find my new device.

On Aug 21, 2021, at 4:54 PM, Chris @.***> wrote:
I suggest you scan through other ha-bridge/issues where others have had issues getting Amazon to discover your new device. I think the latest version is here. https://github.com/bwssytems/ha-bridge/releases/tag/v5.4.1RC1 https://github.com/bwssytems/ha-bridge/releases/tag/v5.4.1RC1
Sorry I cannot help further. Good luck with getting Alexa to recognise your devices
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/1331#issuecomment-903175131, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSAG6AG36GWZ4MWK5YDT6AG7HANCNFSM5CK4PIZQ.

Probably has nothing to do with Alexa discovery, but I see that this message appears  in the HA Bridge log every 5 seconds:
INFO The requested route [/eventstream/clip/v2] has not been mapped in Spark for Accept: [text/event-stream]

On Aug 21, 2021, at 7:09 PM, Ira Fuchs @.***> wrote:
I read through the pertinent issues and what seems to have worked for some poeple is changing the Unique ID to ahve 9 octets. I tried but it did not help. Alexa does not find my new device.

On Aug 21, 2021, at 4:54 PM, Chris @.*** @.***>> wrote:
I suggest you scan through other ha-bridge/issues where others have had issues getting Amazon to discover your new device. I think the latest version is here. https://github.com/bwssytems/ha-bridge/releases/tag/v5.4.1RC1 https://github.com/bwssytems/ha-bridge/releases/tag/v5.4.1RC1
Sorry I cannot help further. Good luck with getting Alexa to recognise your devices
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/1331#issuecomment-903175131, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSAG6AG36GWZ4MWK5YDT6AG7HANCNFSM5CK4PIZQ.

Anyone have any further suggestions on how to get Alexa to see my devices (or how to find out what is wrong)?


Cannot delete Pipeline in KubeSphere due to Pipeline deleted in Jenkins

If Pipeline is deleted in Jenkins, we cannot delete the Pipeline with same name forever.
Potential solution
We should check whether the Pipeline exists or dose not before deleting Pipeline in our controller.
/kind bug
/area devops
/priority high
/assign

/assign


Add the ability to configure the SA account lifetime

Briefly describe the feature

Add the ability to configure the SA account lifetime

What problem does this feature solve? Please link any relevant documentation or Issues

(optional) What is your current workaround?

changes to this are merged to main and will be released with v0.2.1, marking this as complete and closing this issue.


Reduce circleci time

We have almost converged to a single docker image. Should try to re-use images to speed up the circleci run if possible.

Thanks Parijat for reducing the CI time with wheel framework.


CC60988: New paragraph added

Hello, @zuckerthoben,
This proposed file change comes from https://github.com/aspnet/Docs.de-de/pull/22
"The actions outlined under "Customize and Extend" are actually mandatory and not performing these steps will produce an error. The documentation is misleading about this fact."
Could you review this contribution and help to merge if agreed?
Many thanks in advance.

Seems fine @scottaddie

We usually don't like to add warnings of errors when you skip steps. Someone will always skip a step and they often want to put in a warning "Don't skip the next step".
Unless there is some reason people will routinely skip the step I think we're better off not adding the warning.

Hi @Rick-Anderson , @scottaddie,
Could you please let me know if there is any update on this?
Thanks.

@v-maudel Sorry for the delay. It's on my todo list for today.

Thanks @scottaddie

@v-maudel I've confirmed that the tutorial is fully functional after following all the steps before the Customize and extend section. No errors were encountered. We do, however, really appreciate the PR. Apologies again for the delay in reviewing it.

Thanks @scottaddie


[Bugfix] Add verbose error if scipy is missing for blocksparse attention

Scipy is required for https://github.com/vllm-project/vllm/blob/4a30d7e3ccae6e977d728e2157aaa11ac0fed549/vllm/attention/ops/blocksparse_attention/utils.py#L9
but is no longer installed with the dependencies.

This pr fixes this by adding scipy to requirements-common.txt.

@JGSweets Thanks for submitting the PR!
I'm not sure whether we should add scipy to our common dependency given that the block sparse attention is only used for Phi-3. We have kept such dependencies optional, until more models use the package.

@WoosukKwon understood.
It was just jarring to see it worked previously because dependencies were installing it on previous releases, but not anymore.
If there's not a better location to put the install, I can close the PR. However, documentation on the requirement would be ideal.

@JGSweets could you put a more informative exception if scipy is not installed? We have done this in the past for a few packages - example here for deepspeed https://github.com/vllm-project/vllm/blob/a7dcc62086ea751b46b4821c2811cf8ac83711bf/vllm/model_executor/layers/quantization/deepspeedfp.py#L145-L154

@JGSweets could you put a more informative exception if scipy is not installed? We have done this in the past for a few packages - example here for deepspeed

@mgoin I updated PR to utilize a more descriptive exception as suggested. If we want to tweak the wording or remove the callout to Phi-3, I can do that as well.
Thanks for the suggestion!

Perfect @JGSweets thanks for the quick update

@mgoin is there something wrong with the test that's failing? Seems like a timeout issue with the test?

It should be fixed if you merge the latest main


Fix Amazon Corretto 11 SRC_URI for armv7

Issue # N/A:
Hey guys,
Found a small typo when trying to build greengrass-bin for rpi4!
Description of changes:
The SRC_URI for this arch was wrong.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thank you! I can't wait until our CI is in place! I build for 64 bit on RPi 4 so I didn't catch it.  Thanks again!

Thank you! I can't wait until our CI is in place! I build for 64 bit on RPi 4 so I didn't catch it.  Thanks again!

I pull down to relevant release branches later today.

I pull down to relevant release branches later today.

@rpcme I think this patch is still missing in dunfell, isn't it?

Correct @MartinLoeper!

@MartinLoeper @QuantumLove hi there - I don't see the problem?
If there is a problem please file an Issue - I missed the message 7 days ago because this PR is closed

This issue was already fixed by a recent PR that changed the SRC_URI for
the dunfell branch. Everything works for us now.
Richard Elberger @.***> schrieb am Mo., 9. Aug. 2021,
12:16:

@MartinLoeper https://github.com/MartinLoeper @QuantumLove
https://github.com/QuantumLove hi there - I don't see the problem?
If there is a problem please file an Issue - I missed the message 7 days
ago because this PR is closed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aws/meta-aws/pull/105#issuecomment-895107497, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABHX2M654ACSQVXFCD2MOZDT36TI7ANCNFSM4WY2ARIA
.


Multiple commands

Hey there! Great library.
Can you define multiple commands to be run within the same keyword?
scripts:
   run:
      "fvm flutter pub clean"
      "fvm flutter pub get"
      "fvm flutter pub run build_runner watch --delete-conflicting-outputs"

Because otherwise we have to do the following which is really not ideal:
scripts:
   run: "fvm flutter pub clean && fvm flutter pub get && fvm flutter pub run build_runner watch --delete-conflicting-outputs"

Hello 👋 You should be able to run multi-line commands in one of the following ways:

Prefixing the commands with | or > to define multiline strings. This is standard YAML syntax:

scripts:
  lint: |
    dart format .
    dart analyze --fatal-infos

Creating a dedicated .sh file:

pubspec.yaml:

scripts:
  lint: "./scripts/lint.sh"

scripts/lint.sh:

#!/bin/sh

dart format .
dart analyze --fatal-infos

I will add an explanation to the readme of the package 👌🏻, Thank you @mbtodorov, for your help and explanation.


(WIP) Update from yargs to oclif

This is a work in progress to update to oclif.
Feel free to give your opinion and suggest improvements.
Closes #36 and #22
Regards

Improve performance
With oclif:

With commander:


Version number updates

If you could push fixes that would be great. I'm about to sign off...
On Wed, Mar 1, 2023 at 12:21 AM Christian Menard @.***>
wrote:

@.**** commented on this pull request.
Changes look good! The Download button on the main page still shows
version 0.3.0 though. I also noticed that we only provide a link to the x64
artifact for epoch on Mac OS, but not for the ARM build.
—
Reply to this email directly, view it on GitHub
https://github.com/lf-lang/lf-lang.github.io/pull/126#pullrequestreview-1319246231,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEYD47CMQU7B5UC6T2IZAX3WZ4BILANCNFSM6AAAAAAVLWPJGE
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

Fixed the link on the main page. Reworking the download page is a bigger effort and I opened https://github.com/lf-lang/lf-lang.github.io/issues/127


fix: change from --name to --new-name in rename commands

As discussed, aligning all rename commands to use --new-name instead of --name. The shortcut -n was also removed.

:tada: This PR is included in version 1.4.0-beta.16 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 3.0.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


extend apt commands to make Docker images smaller

By following the Docker best practices we can make the docker images slightly smaller

Your help is appreciated


WebUI is not responsive

Hello,
I've noticed that the WebUI is not completely responsive and it has some issues. I glad if someone could help on this.
Regards.

Hey, it's not in priority but it could be a good feature!

thanks to @shaddygarg last PR, I am going to close this issue, let me know if there is anything else need to change.


Export parsed document as html

How can I export the parsed document as HTML string?

I'd expect that you'd need to write a MarkupVisitor that transforms the markdown into HTML.
The question is, would swift-markdown want to host such a visitor and provide it by default?
Based on my experience, this wouldn't be a niche feature.
I know Vapor-Community's HTMLKit does have such a feature already, although I haven't used it myself.

Hi @MahdiBM , ok, I get it, this repository is just to parse markdown to Swift. It's a pitty because we have already three repositories basically doing the same

This one (because cmark provides already a function for this)
Vapor community: The wrapper from Tim -> filled a issue for this one
Vapor community: HTMLKit

Maybe it would be good to have one repository to handle this. Just a thought.
Anyway, thanks for your answer.

I'm on the same page as you. It might be worth it to have markdown to HTML conversions here.
I'd be curious to know what @QuietMisdreavus thinks.

There's also https://github.com/twostraws/Ignite/blob/f14274e7b265db6037396d0cf8d6376b78bb00be/Sources/Ignite/Rendering/Markdown/MarkdownToHTML.swift

Revisiting this thread: I've just merged https://github.com/swiftlang/swift-markdown/pull/106, so if you can use the main branch in your projects you should be able to use this functionality in Swift-Markdown.


DPE-1794 Implement COS integration

Issue
We need to introduce COS support for MySQLRouter
Solution

Introduce COS support for MySQLRouter
Introduce the scaffolding for secrets to be able to store the monitoring password in the juju secrets backend

Prerequisites

We need to merge the snap PR that adds the COS machinery to the snap. After, we need to update the snap revision in the snap.py file
We need to import the secrets lib after the following secrets PR in data-platform-libs is merged

TODO

Determine why the All Connections Information and Route byte to/from server sections on the dashboard are not populated when more than 1 routers are deployed
Test router log collection (via Loki) when the following issue is resolved

Demo

I believe that there are small things which result in using juju secrets to store the monitoring password a good idea:

What if the admin wants to retrieve the monitoring password in order to use the password manually? We would have no way of implementing the get-password user=monitoring action
We would need to chain the ephemeral password through a bunch of functions in a stateless approach (which is a minor maintainability nit)

@carlcsaposs-canonical @taurus-forever refactored and polished quite a bit addressing this last iteration of PR feedback
the main functional change: we will always use the rest_api_credentials file for the HTTP server. this enables the disabling/enabling of the router everytime there is a relation formed/broken with COS. instead, we will only change the credentials in this rest_api_credentials file everytime we form/break a COS relation

Thanks for the reviews! Merging, and will iterate on further improvements with follow up PRs


Basic auth doesn't work

Bug Description
1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
(instance url and credentials are made up, but similar in syntax)
$ npx @cloudant/couchbackup -u<EMAIL_ADDRESS>-d 4dd052f3-f049-4eb2-a022-93ea5930cbe7

Getting

ERROR: Access is denied due to invalid credentials.

However, cURL with the same username/password:
$ curl<EMAIL_ADDRESS>
Works okay:
{
  "db_name": "4dd052f3-f049-4eb2-a022-93ea5930cbe7",
  "doc_count": 5122,
  "doc_del_count": 957,
  "update_seq": 14962,
  "purge_seq": 0,
  "compact_running": false,
  "disk_size": 6709370,
  "data_size": 5726002,
  "instance_start_time": "1705060479540775",
  "disk_format_version": 6,
  "committed_update_seq": 14962
}

DB version:
$ curl<EMAIL_ADDRESS>
Response:
{
  "couchdb": "Welcome",
  "uuid": "88930564-c51c-46c6-8764-82bbae57998b",
  "version": "1.7.2",
  "vendor": { "version": "1.7.2", "name": "The Apache Software Foundation" }
}

2. What you expected to happen
To work
3. What actually happened

ERROR: Access is denied due to invalid credentials.

Environment details

Version(s) that are affected by this issue.
2.9.16
Node.js version
v21.1.0

Hi @mderazon!
The minimum required CouchDB version is 2.0.0. I see from your DB version, it is under 2.x.
While the error message is a bit confusing, the real problem here is Couchbackup uses session cookies, so under the minimum required CouchDB version, this cannot happen.
Be aware if you have special characters, you should encode it with percent encoding, as our documentation highlights it: https://github.com/IBM/couchbackup?tab=readme-ov-file#the-url
I see 2 options you have here:

It might be possible to use shallow mode from such old CouchDB version if you allow to get a session cookie.
The other option for you would be copying the db file from the old database to your new one.

I see, thanks for the answer!

See also https://github.com/IBM/couchbackup/issues/334#issuecomment-641098496
CouchDB 2 is the first version with _bulk_get which is used by the full backup mode. Shallow backup uses _all_docs so could potentially work if the CouchDB is configured to allow _session requests.


Add option to upload benchmark summary JSON file

Signed-off-by: Andy Grove<EMAIL_ADDRESS>Adds option to upload benchmark summary JSON file to any supported hadoop filesystem, such as s3.
It requires the appropriate spark.hadoop.fs configuration options to be set, and that credentials are available at runtime, such as by setting environment variables for AWS keys.
This partially addresses https://github.com/NVIDIA/spark-rapids/issues/1048

@jlowe Could you review when you have a chance? This is the re-implementation of file upload to use Hadoop directly rather than the AWS dependency.

build

build


Terraform hard-coded config: secret manager secrets created in [global] location

Error: Error creating Secret: googleapi: Error 400: Constraint constraints/gcp.resourceLocations violated for [orgpolicy:projects/1234567890] attempting to create a secret in [global]
Customers need a way to specify which locations they can create secrets.
Workaround: Please check the terraform documentation directly and set the region you need it to be deployed on the code.
https://registry.terraform.io/providers/hashicorp/google/5.44.1/docs/resources/secret_manager_secret#nested_replication

PR under review: https://github.com/GoogleCloudPlatform/marketing-analytics-jumpstart/pull/212


ZeroMQ PUB-SUB : SUB receives nothing

I'm trying to get a PUB-SUB communication in ZeroMQ working where the PUB is in C++ and the SUB in python. I am using python 3.8, ZeroMQ 4.3.2, pyzmq 18.1.1 and cppzmq 4.5.0
The PUB :
int main()
{
        Sleep(10000);

	zmq::context_t context(1);
	zmq::socket_t publisher(context, ZMQ_PUB);
	publisher.bind("tcp://*:5556");

        int zipcode, temperature, relhumidity;
	while (true) {

		//  Get values (first supposed to be random)
		zipcode = 10001;
		temperature = 27;
		relhumidity = 61;

		//  Send message to the subscriber
		zmq::message_t message(20);
		snprintf((char *)message.data(), 20, "%05d %d %d", zipcode, temperature, relhumidity);
		publisher.send(message, zmq::send_flags::none);

		std::fprintf(stderr, "[INFO] Sent data: %i, %i, %i \n", zipcode, temperature, relhumidity);

		if (fValue && j >= fValue) {
			break;
		}
		j++;
    }
}

The SUB :
import sys
import zmq

#  Socket to talk to server
context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.connect("tcp://localhost:5556")

# Subscribe to zipcode, default is NYC, 10001
zip_filter = "10001"

# Python 2 - ascii bytes to unicode str
if isinstance(zip_filter, bytes):
    zip_filter = zip_filter.decode('ascii')
socket.setsockopt_string(zmq.SUBSCRIBE, zip_filter)

# Process 5 updates
for update_nbr in range(3):
    string = socket.recv_string()

    zipcode, temperature, relhumidity = string.split()
    print("Received data : %s , %d , %d" % (zip_filter, temperature, relhumidity))

But I can't get it to work as the SUB wait for ever on string = socket.recv_string() whereas the PUB sends messages without errors. Indeed, it returns the length of the sent messages.
Notes : the Sleep is for trial, to be able to launch the SUB before the PUB sends. But if I remove it and launch the SUB first, I have the same behavior.
I am new to ZeroMQ and I don't really know where to start to solve this. Any idea ?

Hey!
Not sure this issue is still up to date, but in case:
I would say the part to look at is the filter and the way it is encoded.
You may first try to make both components communicate with no filter on the subscriber side to see if the problems comes from the filter or something else:
socket.setsockopt(zmq.SUBSCRIBE, b'')

As a side note I tried your example with Python only and an exception is raised at the line
print("Received data : %s , %d , %d" % (zip_filter, temperature, relhumidity))
TypeError: %d format: a number is required, not str

Hope it can help


Radio player

We're not accepting pull requests that add new commands for this project as it is intended as a simple example that others can build upon. If you'd like to publish your fork for others to use, you can post on hackster or other channels.
I'm going to adjust CONTRIBUTING.md to make this clearer to future contributors. If you have time, could you look at #146 and let me know if it explains the situation well?


[CI] Remove project action

I notice you don't have a secret set to a GitHub API token that has org project permissions with flatiron
As such you can remove https://github.com/flatironinstitute/neurosift/blob/main/.github/workflows/add-to-dashboard.yml since it won't do any good without it

Thanks, I have removed the file. I was not able to get it to work properly, but it's okay, because I have manually been adding issues to the project, and that has been working well.


Custom fields

Hi
Thanks for creating this package, I have a question, How can I add some custom fields in logs?

Hey Moe!
Standard Python logging module allows us to pass an extra dictionary argument on logging calls and the record will include the items of this dictionary. For instance, you can do something like this:
>>> log.debug('Some message', extra={'foo': 'bar'})

And the document saved in MongoDB will contain that field named "foo" with a value of "bar". Does it work for you?
Hope it helps!

Really thanks :+1:

My pleasure.


Add support for protobuf generated PHP code.

Description
Protobuf can generate PHP code, so collapsing in PRs helps legibility of those PRs.
Checklist:

[x] I am adding new or changing current functionality

[x] I have added or updated the tests for the new or changed functionality.

@pchaigno updated! I think in previous similar PRs they used 6, so I just decided why not :)

@lildude  thoughts? :-)

@pchaigno @lildude  is there anything you need from me to get this through? My teams are reviewing lots of protobuf php code and this would make 2 cents better :-) Thanks!

🥳 Thanks!


Correction for raw affiliation Institut Curie, Université PSL, Sorbonne Université, CNRS UMR3244, Dynamics of Genetic Information, Paris, France

Correction needed for raw affiliation Institut Curie, Université PSL, Sorbonne Université, CNRS UMR3244, Dynamics of Genetic Information, Paris, France
raw_affiliation_name: Institut Curie, Université PSL, Sorbonne Université, CNRS UMR3244, Dynamics of Genetic Information, Paris, France
new_rors: 04t0gwh46;02en5vm52;02feahw73;013cjyk83;02q6fa122
previous_rors: 04t0gwh46;02en5vm52;02feahw73;013cjyk83
works_examples: W3122463677
contact: 4f0ec376072d42e30b36cce9b1a10cd2:94c139a05aef10022e18173f4e @ sorbonne-universite.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


Action Creator triggers error: "Actions must be plain objects..."

The Problem
Action Creator triggers error: "Actions must be plain objects...". On my code it does exactly the same as the CodePen below.
Steps to Reproduce
On the CodePen below click the "Add" button with the console open. The fields array works, but also shows this error on the console.
Expected Behavior
The thunk middleware is there, so this error should not show.
Actual Behavior
Action Creator triggers error: "Actions must be plain objects..."
Reproducible Code Example
https://codepen.io/anon/pen/GEQvPN?editors=0011

You're using bindActionCreators() wrong:
const mapDispatchToProps = (dispatch) => bindActionCreators({
    dispatch, // <-- this doesn't go here
}, dispatch);

bindActionCreators(actionCreators, dispatch) takes an object of action creators (not dispatch) as its first argument (see the Redux docs), so theoretically you can do:
import { actions } from 'react-redux-form';

bindActionCreators(actions, dispatch);

Or you can piecemeal it (which is preferred):
import { actions } from 'react-redux-form';

bindActionCreators({
  push: actions.push,
  remove: actions.remove
}, dispatch);

Or you can do what I do in all my examples (for simplicity) and omit mapDispatchToProps altogether. Up to you.

@davidkpiano, thanks for your quick response.
Still, I made the change on the CodePen. It doesn't fix the problem with
const mapDispatchToProps = (dispatch) => bindActionCreators({
  push: actions.push,
  remove: actions.remove,
  dispatch
}, dispatch);

On the latest version of redux, if I don't pass "dispatch" explicitly on "mapDispatchToProps" I don't get access to it on the component. I don't see the point of wrong as dispatch is doing its work well on the example. Try removing "dispatch" from "mapDispatchToProps" (from the CodePen) and you'll see what I mean.
Again here is the new updated CodePen mapping the action creators - per your suggestion (with the same error):
https://codepen.io/anon/pen/KqQydK?editors=0011
It would be helpful if you could fork the same CodePen with the fix that doesn't trigger the error.

This works fine:
const mapDispatchToProps = (dispatch) => bindActionCreators({
  push: actions.push,
  remove: actions.remove,
  // dispatch // <-- remove this
}, dispatch);

const UserFormConn = connect(mapStateToProps, mapDispatchToProps)(UserForm);

@davidkpiano thanks again.
I see where the confusion came from... on the sample code on #867 you had:
<button
    type="button"
    onClick={() => dispatch(actions.push(`club.members[${i}].hobbies`, initialHobby))}
/>

So using "dispatch" on the event handler call caused the problem. Removing "dispatch" from the button event handler solved it. 👍


Layout for some chains in snake mode is wrong

NOTE: Probably the same root cause with https://github.com/epam/ketcher/issues/5048 and https://github.com/epam/ketcher/issues/5049
Steps to Reproduce

Go to Macromolecules - Flex mode <---Important!
Load from file: Layout for some chains in snake mode is wrong.zip

Switch view to Snake mode

Actual behavior

Molecule layout is wrong
Expected behavior

Environment details:

Ketcher Version 2.23.0-rc.1 Build at 2024-07-02; 09:03:38
Indigo Toolkit Version 1.21.0-rc.3.0-g1570d3f9f-x86_64-linux-gnu-11.2.1
Windows 10 Pro
Chrome Version 126.0.6478.127 (Official Build) (64-bit)

Issue found while testing - https://github.com/epam/ketcher/issues/3532

Does not reproduced


dedupe names in test also ensure for live we get new names

fixes #3012
Pull Request Checklist
Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:
See the detailed list in the contributing guide.

[x] C++ Guidelines
[x] Doxygen docs
[x] Unit tests
[x] No unwanted commits/changes
[x] Descriptive title/description

[x] PR is single purpose
[x] Related issue listed

[x] Comments in source
[x] No typos
[x] Update changelog
[x] Not work-in-progress
[x] External references or docs updated
[x] Self review of PR done
[x] Any breaking changes?

/azp run cpp - keyvault

Live tests passed

/check-enforcer evaluate

/check-enforcer reset

/check-enforcer evaluate

/check-enforcer override

Does this fix https://github.com/Azure/azure-sdk-for-cpp/issues/3009 too? Might be worth verifying with a couple of live test runs and closing :)


understanding chk_kube_apiserver.sh functionality

one of the reasons i love this particular container image for keepalived (there are quite a few out there) is the promise of integrating detection of available apiserver daemon running.
it was not something i was prepared to play with initially (as i was still getting familiar with kubernetes itself), but once i felt ready and started to look at this functionality, i couldn't get it to work properly.  i might just be misunderstanding its design, so i'm opening this issue to discuss and hopefully figure out if it is designed in a way that would fit for my use-case, or if maybe it can/should be adjusted to work for me.
so as i'm trying to lab up a k8s cluster w/ HA, i have 3 master nodes that all have the api-server running.  i bring up the first master node, and use this docker image with keepalived (along with a second nginx container to proxy across the 2 other systems also running api-server).   this docker container starts and takes the VIP and i use the VIP address to apiserver as the advertise address, and the primary/main IP (so non-loopback) address as the listen-address.
the idea that keepalived should only take/serve the VIP if the apiserver is running, is brililant.  unfortunately because of the way i have my apiserver NOT listening on localhost, this check doesn't ever succeed with the script on my host.  and i continually see this from the container log:
Tue Aug  7 19:56:16 2018: /usr/lib/keepalived/scripts/chk_kube_apiserver.sh x.x.x.131 6443 exited with status 1
Tue Aug  7 19:56:19 2018: /usr/lib/keepalived/scripts/chk_kube_apiserver.sh x.x.x.131 6443 exited with status 1
Tue Aug  7 19:56:22 2018: /usr/lib/keepalived/scripts/chk_kube_apiserver.sh x.x.x.131 6443 exited with status 1

but I notice that on the next line, the script checks to see if the $vip is available on any interface, and the value of $vip passed into the script, in my case is the actual main IP of the node hosting the container (not the VIP), and this check fails (so it never tries the second curl)
So for example, the above log entries are from a host on x.x.x.131, and here is how i am starting the container when i have this issue:
docker run -d --net=host --cap-add NET_ADMIN   \
  --name k8s_api_keepalived --restart always   \
  -e KEEPALIVED_AUTOCONF=true                  \
  -e KEEPALIVED_STATE=MASTER                   \
  -e KEEPALIVED_INTERFACE=$INTERFACE           \
  -e KEEPALIVED_VIRTUAL_ROUTER_ID=2            \
  -e KEEPALIVED_UNICAST_PEER_1=x.x.x.132       \
  -e KEEPALIVED_UNICAST_PEER_2=x.x.x.133       \
  -e KEEPALIVED_KUBE_APISERVER_CHECK=true      \
  -e KUBE_APISERVER_ADDRESS=x.x.x.131          \
  -e KEEPALIVED_TRACK_INTERFACE_1=$INTERFACE   \
  -e KEEPALIVED_VIRTUAL_IPADDRESS_1="x.x.x.130/24 dev $INTERFACE" \
  arcts/keepalived

So could you please comment and help me figure out if/how the init.sh/chk_kube_apiserver.sh script can/should be modified to work in my use case, when the apiserver is NOT listening on localhost (and i can't have it simply bind to <IP_ADDRESS> as then it would also bind on the VIP), and the vip passed into the script is the main IP (and not detected in the container).
should i be passing in the .130 address as KUBE_APISERVER_ADDRESS? I would think that keepalived would not take this address until the script succeeds, which would never happen as the address isn't listed.
i am also confused why this check fails, since when i'm in the container and i run ip addr, it successfully sees the main IP:
/usr/lib/keepalived/scripts # ip addr | grep -c x.x.x.131
1

I think I know the root of the issue.

along with a second nginx container to proxy across the 2 other systems also running api-server

The chk_kube_apiserver script used in this container is for api-server failoverover only and does not function correctly when attempting to also load-balance between the instances running the api-server.
If you're looking to load-balance the connections to the api-servers you'd want to disable the check and rely on nginx itself to handle the distribution of connections and removal of down nodes.
I will say though, at least from personal experience, the kube-apiserver can handle a pretty good amount of connections without issue. :)
Its really just if your cluster or workload is large enough where you start needing to increase the resources to the apiserver and etcd to really handle the load that load-balancing the connections is needed.

i suppose the nginx container isn't actually needed if i could always guarentee that whatever host was the master/had the VIP always had a working api-server available.  initially when i was trying to get this all working, i set the nginx up container in the case where the api-server wasn't running on the host (as just the host being up meant the container started and the VIP got assigned but no api-server was available on that host).
i guess my next question then is, does the chk_kube_apiserver.sh script exitting unsuccessful (as is the case with my situation) mean keepalived will yield the VIP (when it lowers its priority), or does keepalived only take the VIP if the script is successful? perhaps they may sound like the same question from two different ends, but i guess i'm trying to figure out which comes first, the script needing to be successful to get the VIP or is the IP taken no matter what and then if the script is unsuccessful the VIP is released ?
I'm hoping you know off the top of your head with me having to test this myself :-)
but any idea why inside the container the ip addr | grep $vip check are unsuccessful ?

ahhh hmm, does it have to do with the fact that it's calling exit 1 right after the localhost curl and never getting to the if block? ;-)

The logical AND was intended. That script itself was from the previous kubeadm guide for HA excluding the custom vip/port portion of it.

any feedback on whether it can be modified to support OR instead/as well? maybe another environment variable ?

It shouldn't be too hard :)

thanks, rm'ing a pid file dir is one thing, but changing this i would prefer you handle since seeing as how this is your container, it should have your guidance as to the best way to support this adjustment in behavior.  lookin forward to testing it!

Okay, this isn't exactly a logical OR, but I think it covers your use case -- try building off this branch
https://github.com/arc-ts/keepalived/tree/add-host-address-check
It takes an additional env variable HOST_ADDRESS so if you want it to check something other than localhost, just set that to the other address and it'll still check both.


Citizens aren't released from jail automatically when time scaling is set to hours

What version of Node.js are you using?
1.78.5
What operating system are you using?
Debian12
What version of SnailyCAD are you currently using?
1.78.5
Describe the Bug
Our time scaling is set to "Hours" and citizens aren't being automatically released from jail. We tested it with minutes and it worked just fine, however. Never tested with seconds.
Expected Behavior
Citizens should be released from jail automatically when their sentence in CAD has concluded.
To Reproduce
Set time scaling to hours in CAD settings and jail a citizen for 1 hour then check back. They will still be in jail.

This has already been fixed. See the Discord thread.


RPM : /etc/opt/influxdb/influxdb.conf or /etc/opt/influxdb/influxd ? (0.9.4-nightly-8f5f84e)

Hello,
I just installed 0.9.4-nightly-8f5f84e rpm file and noticed something strange with configuration file...
$ rpm -ql influxdb-0.9.4_nightly_8f5f84e-1.x86_64
/etc/logrotate.d/influxdb
/etc/opt/influxdb/influxd <--------------------------------
/opt/influxdb/versions/0.9.4-nightly-8f5f84e/influx
/opt/influxdb/versions/0.9.4-nightly-8f5f84e/influxd
/opt/influxdb/versions/0.9.4-nightly-8f5f84e/scripts/init.sh

Shouldn't the configuration file be named /etc/opt/influxdb/influxdb.conf ?
$ grep '/etc/opt/influxdb/influxd' /opt/influxdb/versions/0.9.4-nightly-8f5f84e/scripts/init.sh
CONFIG=/etc/opt/influxdb/influxdb.conf

Yes it should. Of the init.sh script is bugged.
Have I missed something ?
Regards,
Yves

Thanks @ymettier -- this was indeed a bug in our packaging script, that occurred only today. I have corrected it and regenerated the nightly builds. Please try again.

$ sudo yum localinstall influxdb-nightly-0.9.4_nightly_a7ba677.x86_64.rpm
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining influxdb-nightly-0.9.4_nightly_a7ba677.x86_64.rpm: influxdb-0.9.4_nightly_a7ba677-1.x86_64
influxdb-nightly-0.9.4_nightly_a7ba677.x86_64.rpm: does not update installed package.
Nothing to do

Try again...
$ sudo rpm -ivh influxdb-nightly-0.9.4_nightly_a7ba677.x86_64.rpm
Preparing...                ########################################### [100%]
        package influxdb-0.9.4_nightly_8f5f84e-1.x86_64 (which is newer than influxdb-0.9.4_nightly_a7ba677-1.x86_64) is already installed

Try again...
$ sudo rpm -Uvh --force influxdb-nightly-0.9.4_nightly_a7ba677.x86_64.rpm
Preparing...                ########################################### [100%]
   1:influxdb               warning: /etc/opt/influxdb/influxdb.conf created as /etc/opt/influxdb/influxdb.conf.rpmnew
########################################### [100%]

OK, it looks fine for me.
BTW, maybe you could do something in the version number of the rpm to prevent this upgrade issue ? Maybe you could add a date+release version before the commit number ?
That could would have been today :

0.9.4_nightly_20150909_1_8f5f84e
0.9.4_nightly_20150909_2_a7ba677

I'm not opening a new issue because I don't know if this happens only today for the 2 or 3 people who downloaded the 8f5f84e nightly rpm or if it will happen every night to everybody.
Regards,
Yves


Consider dropping -P:semanticdb:definitions:all

In metacp days, -P:semanticdb:definitions:all was pretty much required for doing non-trivial Scalafix refactorings. Nowadays, with metacp working pretty well, the need in definitions:all is basically gone, but the maintenance burden is non-trivial.

You mean -P:semanticdb:symbols:all? I vote in favor of this while admitting that the setting may still be useful in some niche use-cases. The maintenance burden is real and in projects like metals/scalafix/metadoc I consider it a bug if -P:semanticdb:symbols:definitions is not enough

Yep, -P:semanticdb:symbols:all, indeed. Thanks - I've updated the ticket.


add cylinder (straw) shader for 3D crosshair (copy MRIcroGL metal implementation)

Here is an implementation in Metal. This creates a triangulated mesh, so we can use the same shaders for all mesh based functions (e.g. similar to Surfice, FreeSurfer, SUMA, ConnectomeWorkbench) this includes brain meshes, connectomes, tractography, etc..
The end caps are made up of n triangles where n is the number of sides. Each end cap triangle has a vertex at the center of axis. So that a 3-sided prism has an end cap of 3 triangles, and a hexagonal cylinder has an end cap of six triangles.  I first implemented this with n-2 triangles, e.g. a 3-sided prism can have a single triangle end cap. However, this approach did create some pole effects for the vertex normals. Adding two extra triangles (and one extra vertex) per end cap seems worth it.
@cdrake to generalize this solution I have used indexed triangles, rather than triangles or triangle strips. There is a strong rationale for this.


IL2CPP::ResolveCall return zero

IL2CPP::SystemTypeCache::Initializer::Add("CharacterManager");
IL2CPP::ResolveCall("CharacterManager::GetCharacterByFid") -> return zero

IL2CPP::Class::GetSystemType("CharacterManager") -> return address, class have in game
auto ooooo = IL2CPP::Class::Find("CharacterManager"); -> return address same as IL2CPP::Class::GetSystemType("CharacterManager")

std::vector<Unity::il2cppMethodInfo*> methods;
IL2CPP::Class::FetchMethods(ooooo, &methods);

 for (auto method : methods)
{
 print(method->name); // return string GetCharacterByFid
}

public sealed class CharacterManager : Il2CppSystem.Object
{
public unsafe ActorModel GetCharacterByFid(int fid)
}

when my error?
IL2CPP::Data.Functions.m_pResolveFunction not zero

IL2CPP::ResolveCall is used only for predefined Unity Engine class functions and not custom C# Classes.
You gonna need to find class and fetch method as:
Unity::il2cppClass* m_pCharacterManager = IL2CPP::Class::Find("CharacterManager");
void* m_pGetCharacterByFid = IL2CPP::Class::Utils::GetMethodPointer(m_pCharacterManager , "GetCharacterByFid");

IL2CPP::ResolveCall is used only for predefined Unity Engine class functions and not custom C# Classes.
You gonna need to find class and fetch method as:

thx

IL2CPP::ResolveCall is used only for predefined Unity Engine class functions and not custom C# Classes.

You can either hook constructor of class or any class function that gets called and just save the pointer.
Simplest way to get class instance is find some component of gameobject that is currently using the class.


Documentation is misleading w.r.t. propagatedBuildInputs

See https://github.com/NixOS/nixpkgs/pull/13667#issuecomment-192610597. We need to explain what propagatedBuildInputs really does, and when should we use makeWrapper.

All library functions should be documented. Not only what they do but how they are allowed to be used in nixpkgs. Just found that the toplevel attr clang is a wrapper and therefore the include paths isn't availible when a package includes just clang, so one then needs to call llvmPackages.clang-unwrapped. I think that should be the other way around for non-applications like clang.

The documentation is also inconsistent. For python packages, it mentions a simple rule for handling dependencies:

" If something is exclusively a build-time dependency, then the dependency should be included as a buildInput, but if it is (also) a runtime dependency, then it should be added to propagatedBuildInputs.

But the description of the attributes tells me a different story:

buildInputs
A list of dependencies used by the new derivation at run-time.
...
propagatedNativeBuildInputs
... dependencies listed here are added to the nativeBuildInputs of any package that uses this package as a dependency. So if package Y has propagatedNativeBuildInputs = [X], and package Z has nativeBuildInputs = [Y], then package X will appear in Z’s build environment automatically.
propagatedBuildInputs
Like buildInputs, but propagated just like propagatedNativeBuildInputs. This inherits buildInputs's flaws of clobbering native executables when cross-compiling and being confusing for static linking.

I 'd be happy to rewrite relevant parts of the documentation, but I need to be deconfused first.

@berce: python stuff clearly don't consider cross-compiling (yet) – that's "Native"-or-not part.  Cross-compiling is currently getting rough edges fixed lower in the stack, so I expect making python docs more precise will come later.
For the "propagated"-or-not part, I think it's not inconsistent, only python behaves differently – IIRC python dependencies aren't normally kept as "string references" to absolute paths somewhere in the outputs, so nix would drop them, and to prevent that, they need to get explicitly propagated.

Still important to me.

Still important.

I just ran into this.


Add silent output option

this closes #37

Hey @Quramy,
is this small option something you would consider merging? Otherwise I will fork.
Thanks,
Gerard

Sorry for my late merge :bow: and thanks for your PR:)

Yeah, I’ll publish this via 0.3.4 after I get back my home :+1:
pls wait some minutes :pray:

thanks @Quramy. no stress. we are happy to get rid of a lot of noise from our CI logs.


feat: cosmosify IBC assets parsing

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #5141   👈

This comment was auto-generated by Graphite.


Suggestions for: version window on startup/exit, Options, Paths and recycle bin

I'd like to make a few suggestions, please:

an option to not show version window on startup/exit (that information is always available in Help|About program)
move the Options entry from the Search menu to the Edit menu
add inside "Paths: (screenshot of both suggested features here)

a textbox to manually enter a folder path, and to be able to go to
checkboxes next to the folder names, to be able to select multiple folders at once.

do the deletion (of selected images) immediately as you press the relevant button/entry,
not the next time you do a search

Using AntiDupl 2.3.10 in win10.
P.S. Thank you for your super useful program!

Startup window is shown when the application loads earlier stored data and shows progress of this process.
I have never seen before that Options is placed in the Edit menu.
Its reasonable.
To do that you have to set option "Options - Advanced options - Queue size of undo" to 0 (see help). But it leads to disable of 'undo/redo' functionality.

Startup window is shown when the application loads earlier stored data and shows progress of this process.

I understand that you use it to show to the user that there's activity taking place before the GUI is drawn,
but I'd like at least to not show the window at program exit, as it appears momentarily/for a split second, and doesn't actually provide any info to the user that point.

I have never seen before that Options is placed in the Edit menu.

Here are some examples of Preferences/Options/Settings:
Adobe Acrobat
Musicbee
WinMerge
Vim
VMware Workstation

Even if you don't want it the Edit menu, I believe that placing it outside the Search menu would make it more discoverable.
To be honest, the first time I used the program, initially, it gave me the impression that it doesn't have a separate Options menu - eventually I noticed the toolbar button.
As an alternative I'd suggest making it a separate, single Options between View and Search.

To do that you have to set option "Options - Advanced options - Queue size of undo" to 0 (see help). But it leads to disable of 'undo/redo' functionality.

I'm aware of that as I've read your comment here
but I believe that is not the expected behavior: when pressing e.g. "Delete first pictures in selected results":
that should be renamed to "Queue for deletion first pictures in selected results" instead.
In any case, I believe that the most convenient way for the user would be to be able to remove selected images immediately, and still maintain undo/redo functionality.
I understand that what I ask might be difficult/cumbersome to implement in the program,
but I ask it as something I just hope you to add it to your "todo" list.


[Deprecation | Error] Attributes typed as Stringish fail to validate when a string is supplied

Can I safely replace Stringish with string on all attributes?
Since Stringish is deprecated, would the preferred course of action be a blanket replacement of attribute Stringish charset, ... with attibute string charset, ...? Is there a reason not to do this? Is anyone relying on implicit __toString() conversions in master? I would be perfectly happy to make such conversions, if the team agrees this is the direction for xhp-lib.
HHVM Version
HipHop VM 4.26.0-dev (rel)
Compiler:<PHONE_NUMBER>_452110199
Repo schema: fa3e8a11f6032618b5246ef1269b3e2ac641cbad

xhp-lib version
Commit ID: 8178618
Operating System and Version
Irrelevant
Standalone code, or other way to reproduce the problem
echo ;

Actual result
Fatal error: Uncaught exception 'XHPInvalidAttributeException' with message
'Invalid attribute `src` of type `string` supplied to element `script`, expected `Stringish`.

Expected result

"Use string + explicit __toString() calls" is probably a good advice just about everywhere else Stringish is used, but XHP is a bit of a tricky edge case.
It's very common for people to need an attribute/child declaration that says "a string or any XHP element" and it would be super ugly if we required people to call ->__toString() there.
__toString()}>
  bar

I don't know if we've settled on a final solution for this yet -- IIRC there was a special typehint (XHPChild or something like that? not sure if that was FB-only) that could be used for this case, but with Stringish being deprecated we'd probably want to deprecate all other similar magic typehints too.
Maybe if/when union typehints are launched, people could use (string | :xhp) or something like that...but that would still require everyone to do if ($this->:attr is :xhp) { $value = $this->:attr->render(); } which is not great either...

yeah, IMO we're overdue on removing Stringish from XHP given it's deprecated in the hack language. Completely onboard with all stringish -> string changes.

Okay, I'll submit a PR for review with a Stringish -> string conversion.

@jjergus XHPChild is oss hhvm-docs.


Oxygen Gas Charge Pads

Minecraft Version:
-1.12.2
Advanced Rocketry Version:
-AdvancedRocketry-1.12.2-1.2.6-52
LibVulpes Version:
-LibVulpes-1.12.2-0.2.8-27-universal
Explain issue in detail:
Gas charge pads are taking a very long time to charge up oxygen. Hydrogen charging pads seem to be fine, but oxygen pads will take up to 2 min to fill up a default suit tank and then will just stop. Having extra tanks in your suit seem to just not be filled at all.

Is this still a issue? Please comment if it is and i will reopen if if you are unable? We are closing old issues to see what is still relevant and needs to be fixed.