TFlite gets the incorrect value dividing by zero or computing tf.log(x)

System information

OS Platform and Distribution: MacOS Catalina 10.15.6
TensorFlow installed: from binary
TensorFlow version: The issue could be reproduced by TF1.x (TF 1.15.2) and TF2.x (TF 2.3.1)
Python version: 3.6.5

Describe the current behavior
I have the following code that simply creates a TF graph whose output tensor is an input placeholder divided by a float32 constant 0. I would expect the evaluation value of the output tensor to be always "Inf" no matter which value is fed into the input placeholder. However, what I got from the following example is, the result from Tensorflow is expected, while the one from TFlite is the max limit of float32.
import os
import re
import tempfile

import numpy as np
import tensorflow as tf

is_tf_2 = bool(re.match("2\.[0-9]+\.[0-9]+", tf.version.VERSION))
if is_tf_2:
    print("using TF2.x")
    import tensorflow.compat.v1 as tf

    tf.compat.v1.disable_eager_execution()

def run_tf_ops():
    input_tensor = tf.placeholder(dtype=tf.float32, shape=[None])
    b = tf.constant(0.0, dtype=tf.float32)
    output_tensor = tf.divide(input_tensor, b)

    tf_session = tf.Session()

    with tempfile.TemporaryDirectory("") as tempdir:
        converter = tf.lite.TFLiteConverter.from_session(
            sess=tf_session,
            input_tensors=[input_tensor],
            output_tensors=[output_tensor],
        )
        tflite_model = converter.convert()
        tflite_saved_model_path = os.path.join(tempdir, "saved_model.tflite")
        with open(tflite_saved_model_path, "wb") as f:
            f.write(tflite_model)

        # Test TFLite load
        # Load the TFLite model and allocate tensors.
        interpreter = tf.lite.Interpreter(model_path=tflite_saved_model_path)
        interpreter.allocate_tensors()
        # Get input and output tensors.
        input_details = interpreter.get_input_details()
        output_details = interpreter.get_output_details()

        # Test the model on random input data.
        # get output from tflite model
        interpreter.set_tensor(input_details[0]["index"], [np.float32(1.0)])
        interpreter.invoke()
        output_data_from_tflite = interpreter.get_tensor(output_details[0]["index"])

    print(
        f"Tensorflow result: {tf_session.run(output_tensor, feed_dict={input_tensor: [np.float32(1.0)]})}"
    )
    print(f"TFLite result: {output_data_from_tflite}")

if __name__ == "__main__":
    run_tf_ops()

The interesting behavior is if I replace the input placeholder input_tensor with a constant float32 tensor like input_tensor = tf.constant(value=[1.0], dtype=tf.float32)(also remove the code on feeding data), both Tensorflow and TFlite get the correct result Inf in TF 1.15.2, but would have the same issue in TF 2.3.1.
NOTE The same behavior happens for other operations such as "tf.log(x)" when we feed x with run time data 0.
Standalone code to reproduce the issue
The issue could be 100% reproduced by running the above code with the system info.

I have tried in colab with TF version 2.3, nightly version(2.5.0-dev20201201) and was able to reproduce the issue. Please, find the gist here.Thanks!

@TJ can you take a look?

@RuofanKong @WindQAQ Is this inconsistency in behaviors blocking/affecting your model?
Dividing to zeros or inf values are not so common I guess.
We had a discussion on the PR internally, The PR itself looks OK but output inf results may affect subsequent ops. We need to investigate how all the ops are handing inf values first to ensure not to break the compatibility. That might be a long investigation.

From my side, we have a check by using isinf to detect inf and reset them to zero. It's ok for me not to push the change. We have handled it by checking extreme large/small value instead. Thanks!

FYI, we have also observed that XNNPACK delegate uses infinity as upper/lower bound, which results in different behavior across TFLite

Thanks for your update. It is still a good point to close the gap between TF and TFLite inf-handling behaviors. We'll put it as a longer-term goal.

Thanks for the effort. Here are some other info about inf that you might be interested.

init value of maxpool and reduce min/max.
Some calls to other kernels that needs to set activation min/max, such as BroadcastPow4D and LstmCell.

@thaink Thanks for helping it! On our end, this is indeed blocker issues for our model, when any invalid computation ops are involved, we have no way to tell the output is valid vs invalid values per clipping results, but TF is good. So it would be good to fix it.

@RuofanKong I think there should be some way to avoid inf value being produced, like checking if dividing to 0 or use isinf for input.

@thaink The problem is lots of this particular checking on the invalid values (e.g. "tf.math.is_nan") are not supported in TFlite..

the tf.is_nan is supported in TFLite by lowering to equal op.
Could you try to convert with nightly?

@thaink Okay as I was on the older TF 2.x version, and it's great to see more ops are supported in TFlite now!

Was able to reproduce your issue in Tf Nightly 2.6, please find the gist here. Thanks!

Was able to replicate issue in tf-nightly(2.8.0-dev20211009), please find the gist here.Thanks!

@RuofanKong  Please have the look at the gist on colab using TF v2.8.0 , and didn't face the reported issue. Could you please confirm the same?Thank you!


There should be 2 more buttons on manage broadcasts card

Describe the bug
There should be 2 more buttons on manage broadcasts card - approve and reject .
This is a part of the Issue #976
Have you read the Code of Conduct?
Write your answer here.
yes

@Kajol-Kumari  can you please assign this to me

@Hemu21  please note that the button should be functional


Some functions of performance analysis cannot be shown

There is too much stack information. Some information can't see which class is affected by it, and the part must be circled in the picture

Check the changelog, have been fixed in the 8.1 release.

检查变更日志，已在8.1版本中修复。

我现在用的就是最新的8.1.0版本，ui上看不到具体的是哪个类的那个方法影响的，可能是页面递归显示的原因，这个在后面有版本解决么

The first column could be resized at the top, this is only be blocked by the 2nd column, nothing more.


Rename Cosmos package

From Microsoft.EntityFrameworkCore.Cosmos.Sql to Microsoft.EntityFrameworkCore.Cosmos
Paired with: https://github.com/aspnet/EntityFrameworkCore/pull/13533

EF side merged. Waiting for review on this change.

PR validation build fails with

2018-10-08T21:56:06.1787565Z D:\a\1\s\build\repo.targets(98,5): error : Could not detect version information for package id: [D:\a.dotnet\buildtools\korebuild\2.2.0-preview2-20181004.6\KoreBuild.proj]
2018-10-08T21:56:06.1789504Z D:\a\1\s\build\repo.targets(98,5): error :  * Microsoft.EntityFrameworkCore.Cosmos

You'll need to also manually update the submodule to avoid breaking the build.

@natemcmaster Are there instructions on how to do this? (Haven't done it in a long time.)

Let me know if this explanation is enough: https://github.com/aspnet/Universe/blob/master/docs/Submodules.md#saving-an-update-to-a-submodule

Closed in favor of https://github.com/aspnet/Universe/pull/1467


Firmware version not detected

Hi, I'm trying to update the firmware in chinese CCS811 sensor. I'm using NodeMCU with it.
First I checked that it's working with the basic sketch. Serial Monitor is giving the following information:
CCS811: waiting for (new) data
CCS811: eco2=0 ppm  etvoc=0 ppb
CCS811: eco2=0 ppm  etvoc=0 ppb
CCS811: eco2=0 ppm  etvoc=0 ppb
CCS811: eco2=400 ppm  etvoc=0 ppb
CCS811: eco2=403 ppm  etvoc=0 ppb
CCS811: eco2=407 ppm  etvoc=1 ppb
CCS811: eco2=407 ppm  etvoc=1 ppb
CCS811: eco2=407 ppm  etvoc=1 ppb
CCS811: eco2=407 ppm  etvoc=1 ppb
CCS811: eco2=414 ppm  etvoc=2 ppb

Seems to be working but there's no info about the firmware version or other setup information. Why?
Then I tried to update the firmware. Doesn't work. Serial Monitor is giving following information:
loop: ended ...
loop: ended ...

Any ideas what is wrong? Or is this CCS811 just fake?

With ESP32 board I was able to update the firmware.


Add code coverage output file

Signed-off-by: Tyler Powers<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@fc62632). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #78   +/-   ##
=========================================
  Coverage          ?   28.72%
=========================================
  Files             ?        5
  Lines             ?      470
  Branches          ?        0
=========================================
  Hits              ?      135
  Misses            ?      321
  Partials          ?       14

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 fc62632...04078dc. Read the comment docs.


Pass in remote as argument to docker build script

After this works, I'll set this up for robotpt/cordial.
Also, I forked our repo to confirm that CI worked with external PRs.

Currently this is failing because the secret AWS credentials aren't being passed in. It turns out that this requires sharing secrets with external contributors. I'm still looking for a good way to run tests from external contributors.

@emilyxzhou, what do you think of this approach? It turns out that I can't use secrets on external PRs because either direction of sharing secrets represents a security threat. Instead, I split up the testing scripts to avoid testing things that require secrets on pr events. Push and scheduled events still run the tests that require secrets (AWS credentials).
This PR also makes the tests more general so that they use whatever repository, aka the tests now work with forked versions of this repo.

It would be good to still run the full test script for internal PRs

This should be working. Internal PRs will have two events run on them: push and PR. The push event will run the full CI.


Configuration that uses a different metadata hash when comparing commits. Useful when you are using subtree in your project

@leonardo-lopes-playkids could you also please add some testcases to verify this new feature?
could you please give a bit more context on this functionality in the PR description?

@leonardo-lopes-playkids could you also please add some testcases to verify this new feature?
could you please give a bit more context on this functionality in the PR description?
Thank you so much for the PR

Sure. I will will write the testcases and a better description. But just so you know, the current testcases from 'develop' already fail when I do "npm run all"
Test Suites: 2 failed, 2 passed, 4 total
Tests:       10 failed, 9 passed, 19 total

@leonardo-lopes-playkids tests pass on GitHub Actions: https://github.com/mikepenz/release-changelog-builder-action/runs/2054398786?check_suite_focus=true#step:4:505
I was also wondering if the action isn't already capable of generating logs for submodules (as those are basically other repos) as the action allows you to configure the repo, and from and to tag.

Ok, I will have to review the tests and see why they are failing.
In our project, we have a subtree branch upm that is unable to get the changelog information because when our CI uses the git subtree command to split the files to a subtree branch, git changes the values of these hashes and the action will not work, that's why we had to create a new hash that is calculated using information from author+date+message. That way we make sure the hashes will always be the same


tests: simple POC in Deno

Closes #19

The current POC uses all the available upload methods that are complete. It will be updated as we complete the upload chain. Ref #15


Move example sketch to its own folder

The Arduino IDE opens all files from a sketch folder as tabs of one project. So multiple sketches in the same folder causes compilation to fail with "redefinition of" errors.

Thank you!


Fixed compile error

I opened issue #1, this request fixes compilation errors by converting from character literals to strings where appropriate (line 13, 18, 19). Added a missing semicolin to like 19. Added the status string to the class definition in line 26. This class now successfully compiles on DotNet 3.1.301, I'm not sure if it was successfully compiling on older version or not, but I can't imagine it was.

FYI, I opened issue #4 due to additional errors with the use of the status property.

Error Compiling - Too many characters in character literal; The ResponseContent.cs is still nt handling the status ...


Wrong channel logged on send error (AEGHB-532)

Im pretty sure that on line 639 in espnow.c, there is an error, causing that logged channel where error happened is always 1 when we send only on current channel.
I would at least change that to:
            ESP_ERROR_CONTINUE(ret != ESP_OK, "[%s, %d] <%s> esp_now_send, channel: %d",
                               __func__, __LINE__, esp_err_to_name(ret), frame_head->channel == ESPNOW_CHANNEL_ALL ? g_self_country.schan + i : primary);

Or in better case, refactor everything in that function between lines 588 and 639 or maybe even split the code into multiple functions. Channel selection is done on multiple places so code is hard to follow and debug.

@n3b0j5a Thanks for your contribution. I have modified it on master branch.


Docker documentation

Plase fill-in docker-compose documentation for building Mainflux Docker image and running Docker containers here: https://github.com/Mainflux/mainflux/wiki/Docker.
Add traces from the console for informative doc.

Done.


Graph docblock causes Psalm memory exhaustion.

During  static code analysis, Psalm seems to run out of memory solely due to the presence of the Graph class, presumably due to the amount of references to other classes in the @method docblock.
Is this a known issue and/or could this be fixed, or are our options limited to excluding the affected files from Psalm analysis?

There's nothing special about it and also no references but only magic methods with defined argument and return types. So this more an issue for psalm.


PathParamsResourceMapper throwing Error on requests for a non-existing path

Given a URL pattern-based authorization
    @Bean
    public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
        http.csrf(AbstractHttpConfigurer::disable)
            .authorizeHttpRequests(authorize -> authorize
                .requestMatchers("/api/**").access(new AsertoAuthorizationManager(authzCfg))
        return http.build();
    }

When a request is made to a non-existing url child path,  the PathParamsResourceMapper throws an exception because it cannot find a given mapping for that URL:
com.aserto.authorizer.mapper.resource.ResourceMapperError: Uri /api/foo does not match any mapping
	at com.aserto.authorizer.mapper.resource.PathParamsResourceMapper.getResource(PathParamsResourceMapper.java:39)
	at com.aserto.authorizer.AsertoAuthorizationManager.check(AsertoAuthorizationManager.java:113)
	at com.aserto.authorizer.AsertoAuthorizationManager.check(AsertoAuthorizationManager.java:83)
	at com.aserto.authorizer.AsertoAuthorizationManager.check(AsertoAuthorizationManager.java:71)
	at com.aserto.authorizer.AsertoAuthorizationManager.check(AsertoAuthorizationManager.java:60)
	at com.aserto.authorizer.AsertoAuthorizationManager.check(AsertoAuthorizationManager.java:28)
	at org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager.check(RequestMatcherDelegatingAuthorizationManager.java:82)
	at org.springframework.security.web.access.intercept.RequestMatcherDelegatingAuthorizationManager.check(RequestMatcherDelegatingAuthorizationManager.java:45)
	at org.springframework.security.web.access.intercept.AuthorizationFilter.doFilter(AuthorizationFilter.java:95)

This results in a 500 HTTP status response when nothing is wrong with the backend.  The desired outcome is probably debatable, but the request should be some kind of 40x (e.g., 403 or 404) instead.  Throwing a "ResourceMapperError"  in PathParamsResourceMapper  results in the need to add special handling for this case.
The fact that ResourceMapperError extends from java.lang.Error instead of java.lang.Exception also seems strange here. Although the Java convention for java.lang.Error is that it should indicate "serious problems that a reasonable application should not try to catch," the need to prevent a 500 status for this condition requires catching and handling ResourceMapperError.
Would it not be better for getResource to yield an empty Map instead here?
https://github.com/aserto-dev/aserto-spring/blob/main/src/main/java/com/aserto/authorizer/mapper/resource/PathParamsResourceMapper.java#L39
Thank you!

Fixed in https://github.com/aserto-dev/aserto-spring/pull/12 and released in v0.2.3


[Site][CVE] Update symfony/*

Update symfony/* dependencies following security alerts

https://symfony.com/blog/cve-2023-46733-possible-session-fixation
https://symfony.com/blog/cve-2023-46734-potential-xss-vulnerabilities-in-codeextension-filters
https://symfony.com/blog/cve-2023-46735-potential-xss-in-webhookcontroller

Thanks Simon!


Railway track blocks (junction restrictions)

Describe your idea
I suggest creating a sub-module for railway tracks that allows sections of track to be "blocked" as in classic railway signalling where only one train can ever be on a section of line at a time.
Trains are typically two or three track segments long and will stop only one segment behind another train if there is a queue, this can often mean that the train can stop while straddling a junction. This in turn means that any trains coming the other way that need to cross at the junction cannot as they are blocked by the train.
If a train leaving a station or freight terminal is blocked in be a train straddling the junction, the next train cannot move into the station until this one has moved but it is blocked from moving, eventually causing the entire rail network to seize up!
The suggestion is to have a UI that allows the user to create an "absolute block" using a similar tool to the lane connector, where the start and of a block can be drawn on the railway track and the train will be stopped from entering that section until the previous train has completely exited the other end.
Such a tool would be useful at junctions to ensure that a train never enters the junction if it cannot completely clear the junction when it moves through.  As a further enhancement it can be linked to railway signals.
Screenshots?

The attached image shows a train turning right and blocking the train coming from the left (trains running on left track)
Notes or questions?

I thought about something like that and even more tools for train traffic management.
BTW, have you tried this mod: https://steamcommunity.com/sharedfiles/filedetails/?id=949504539?

Cool, I will try it.
Thanks

OK I tried the single tracks mod, but it still blocks at junctions, I have done a lot of work to minimise the locations where blocking can occur, but I still think that it would be a great enhancement if it was possible to mark sections of line for one train only at a time.
Maybe a tweak to the do not enter blocked junction feature.

Looks like I have found a workaround, stretch the nodes as only one train can enter a node at any one time so by having streatched nodes either side of a junction prevents the trains blocking each other

Cool workaround, @dolanbaker!  I'll have to try that.  (I assume you mean "stretch the segments", though?)

Yeah, move the node to make the segment at least one train's length, then it will not allow another train to cross the junction unless it can fit into the segment without overhanging the junction(points).

I found that the "node dissolver" in this mod Elektrix's Road Tools 2.93 achieves the same result, but it would be better if there was a mod that could group several segments together and mark them as one for routing purposes.
Maybe something that uses some of the code from the bi-directional tracks mod could do the trick.

Another approach to this could be making trains check several segments ahead until the combined length is sufficient. This would adapt better to different train lengths and require no setup by the player thus being more beginner-friendly and eliminating the need for additional UI components. However, it would probably be less realistic given that most rail traffic irl is still block based.
Anyways, I'd love to see either (or both) implemented!

Another approach to this could be making trains check several segments ahead until the combined length is sufficient. This would adapt better to different train lengths and require no setup by the player thus being more beginner-friendly and eliminating the need for additional UI components. However, it would probably be less realistic given that most rail traffic irl is still block based.
Anyways, I'd love to see either (or both) implemented!
Yes, I agree 100% active block would be a great solution for basic rail management, as you say absolute block would require manual setting up.  Alternatively, a block can be between junctions (up to, say 20 segments), this would also work without user intervention.

The Network Multitool mod also has a way to delete nodes which helps create big segments.
Also, I assume you've added vanilla stop signs on those train tracks (via the traffic junctions info view IIRC)?


modify README

remove descriptions about pretrained models & add detail steps for using the codes of audio and audiovisual models

approved by myself


feat: add dataset tools and libraries

This PR adds five tools that act as an API for datasets: create and list datasets, and list, get, and add elements to a dataset.
All datasets are represented as a set of files written to disk. Each individual piece of data is stored in a separate file. Depending on how this goes, I may end up creating an interface for datasets in this repo, and have a separate implementation option that stores everything in a single file, in cases where we have several small pieces of data. For now though, this should suffice.

This one is ready again.


[BUG] Implementation of exec.post-stop is not working as expected

Current implementation of exec.post-stop creates a task at airupd/src/supervisor/task/cleanup_task.rs. This means stop_service() is returned before exec.post-stop is called, and then a task is created.
This causes implementations of some functions more complex, and exec.post-stop of oneshot services are never executed.

On failure it should create a new task to cleanup, and on retry it should create a new task by task_type of StartService. On StopService, it should be executed in-the-task, not creating a new task.

Fixed.


[bodgy-utils] invoke-bodgy interfering with step debugger

I think step is useful for debugging game logic, the closest alternative is sly stickers but they do not provide step into/out/next restarts and only work if the implementation supports break-on-stickers.
I'm having issues with step not entering the form i expect. This can be seen on the default hello-gamekit project, just wrap (step ...) the snake logic:
hello-gamekit.lisp gamekit:act method
(step
        (progn
          (update-position (aref *curve* 1) (real-time-seconds))
          (update-position (aref *curve* 2) (+ 0.1 (real-time-seconds)))))

EDIT: Note you need debug set to 3 in SBCL to get this to work in SBCL specifically.
this can be done by putting this in .sbclrc
(sb-ext:restrict-compiler-policy 'debug 3 3)
this should normally drop into aref or real-time-seconds and then prompt for step restarts on it, but because the step facility in SBCL uses conditions it interferes with bodgy instead i am dragged into the invoke-bodgy function in bodge-utilities package and after stepping from all the way back here all the conditions coming from step gets printed out to the repl.
The code catching the step conditions is here:
https://github.com/borodust/bodge-utilities/blob/6304bac4abe06d53579e2c0fc4437d14ff077d9f/src/utils.lisp#L19
(handler-bind ((serious-condition ...))
  ;; sb-ext:step-form-condition, sb-ext:step-finished-condition and sb-ext:step-values-condition are caught by this
  (t (lambda (e)
       (with-error-report-string (error-text) e
         (log:warn "~A" error-text))))
  ...)

i don't know if there is a way from within the handler system to stop step from bubbling up to invoke-bodgy and still have it show up in sly so currently my best solution is to just comment out the catch-all form
(defun invoke-bodgy (fu)
  (macrolet ((with-error-report-string ((report) c &body body)
               (once-only (c)
                 `(dissect:with-capped-stack ()
                    (let ((,report (with-output-to-string (stream)
                                     (format stream "Unhandled condition:~%")
                                     (dissect:present ,c stream))))
                      ,@body)))))
    (block skippable
      (handler-bind ((serious-condition (lambda (e)
                                          (with-error-report-string (error-text) e
                                            (log:error "~A" error-text)
                                            (in-development-mode
                                             (raise-ignorable e))
                                            (return-from skippable))))
                     ;; (t (lambda (e)
                     ;;      (with-error-report-string (error-text) e
                     ;;        (log:warn "~A" error-text))))
                     )
        (dissect:with-truncated-stack ()
          (funcall fu))))))

After forking and changing the source code the program does not work for some reason so I find i have to redownload the entire bodge library again using the instructions on the website, leaving the fork in local-projects so it becomes preferred by quicklisp.
Now the step form works as expected, but then of course the other errors won't be logged.

Looks like this is enough to avoid the problem: https://github.com/borodust/bodge-utilities/commit/6005b8de53ced99a3da2c176ca48be23cc559bc8
I guess, cloning only bodge-utilties into ~/quicklisp/local-projects should be enough. But it certainly possible that interface has changed.

brilliant!

i dont know why but the t condition seems to override all other conditions in a handler-bind. I had to change it to 'warning'. feels rather odd that t takes priority, is that a bug on SBCL's side?

I think runtime goes from top to bottom, until it hits compatible condition class. So if there's t on the top, it will shadow everything below.


Send GTM event on demo generation

:tada: This issue has been resolved in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[gha] cache Android NDK and emulator in test workflow

Use GitHub caching to speed up the test-android test job, which is the long-pole in the ds2 Build and Test workflow. It will save us a couple of minutes per run.
Uses caching in two places:

Cache the NDK. Since the same one is installed every run, it saves some time to keep it in the cache rather than download from Google.
Cache emulator image, device, and boot state. Caching this way is suggested in the documentation for ReactiveCircus/android-emulator-runner.

Test Plan
Ran the job twice and confirmed caches are created on the first run and are reused on the second run.

closed to purge the cached entry associated with this pr ref


Executing the script does not respond

Is there anyone who has the same question as me, can you answer it, thank you very much.

Have you solved it? I also encountered the same problem

我也遇到这个问题


Changes the minimum version for RLC-510A

Related to #39 and similar to #40, this changes the RLC-510A to the same version of v<IP_ADDRESS>4

@joewesch did you thoroughly check for the RLC-510A on firmware v<IP_ADDRESS>4_21073002:

that all entities are available in HomeAssistant and see if everything works withouth issue?
the list of entities in the documentation here: https://www.home-assistant.io/integrations/reolink/ and see if any entity are missing in HomeAssistant that corresponds to a feature that the RLC-510A should support?

If yes on both, I will merge.

Yes, I've been using this camera for months with your integration and it works fine. The only problem I have is that it complains that it needs to update every time, which is untrue.

@joewesch thanks for confirming!


brain.classify checks global variables for command

See https://github.com/GladysProject/Gladys/blob/master/api/core/brain/brain.classify.js#L40
The code should check if there is a module where the command can be redirected to? Not sure if the module name should be the same name as the service, or if a module can define multiple services.
It now searches for global variables which have a command function.

A simple fix might be the change the line to:
if (!gladys.modules[service] || typeof gladys.modules[service].command != "function") {


Provide a public method that deletes the physical files of the DB

This is a feature request concerning adding a public method on the DB object that deletes all the files that have been created by MapDB or returns a list with their paths.

This is something that we'd really like as well.

I poked around looking for this so I could clean up files and I did notice the method I needed called DBMaker.deleteFilesAfterClose(). Is this enough for you?

Hey David,
I'm not sure this is equivalent because you have to define it before you open the map. What if you want to delete it afterwards?
Here is a use-case: In datumbox framework MapDB is used to persist the coefficients of Machine Learning models. A user of the lib has the ability to delete a particular model by calling the delete method. Currently I am forced to "manually" keep track of the files generated by MapDB and delete them but this is kind of ugly. It would be great if MapDB could provide a way to delete method and remove any file associated with the db/map.
If I misunderstood what you said, please do correct me. :)

So I guess you could close the DB instance, reopen it with the mentioned option then close it again and would work. A bit clunky of course but at least you don't have to make guesses about what files a particular version creates.

deleteFilesAfterClose() should work this way

I don't want to be the one who will be the one but I will be the one.. HOWEVER.... I can't find the method deleteFilesAfterClose() in version 3.0.0-M4 or have I gone crazy?

deleteFilesAfterClose is not in M4, it will be in M5 very soon

Already added

The described solution of reopening the db and closing afterwards is a bit hacky. A more straightforward way would be to have a closeAndDeleteFiles() method on the DB object. Do you think this is possible?

also I will add new option fileDeleteAfterOpen(). This way database file will be visible only to DB object itself (on unix).

fileDeleteAfterOpen() is now in 3.0-RC1.
I will not add closeAndDeleteFiles(), but there is other way. DB.getStore().getAllFiles() will give you all files associated with store. You can use this method before close, close the store, than delete all files


Add ENTMOOT API

ENTMOOT is a Python package providing "multiobjective black-box optimization using gradient-boosted trees". This issue provides an API for Entmoot within BoFire.

Closed by #278


Add Hypatia

I could not find the app's F-Droid repo. Where is it?

Merged in https://github.com/soupslurpr/AppVerifier/commit/de58c136eac97fdd800c3cf6e0bfa4f8083830ca


Add the slack invitation to the read me

Is your feature request related to a problem? Please describe.

Currently, We are missing the Slack invite link in the read me

Describe the solution you'd like

Go to the readme file
Add the following section towards the end of the read-me file

### Join our Slack Community
Join our Slack community to connect with other members, ask questions, and collaborate on projects. [Slack Invite Link](https://join.slack.com/t/tilliopensour-wyp9205/shared_invite/zt-206f4f11s-HoII8Kob45f6WK3GPIIi6g)

Sent a pull request with the updated change

https://github.com/tillioss/tilli-docs/pull/32


Review Failing Cluster Access in 32 Bit

Some of the access tests fail in 32 bit. I think this is known and why I warn against 32 bit for structure access but I need to review and confirm this and mark them as skipped in 32 bit if expected to fail there.

This was a regression. For some reason I changed the packed repr to align(1) which is not equivalent.


Terms & names

When I use the feature it's a whole window that's put aside right?  Or is this called a tab? Or tabpage? And all the webpages are then called tabsheets?  You are using the term 'collection'.......
What I'm already missing for as long as I'm working with more than 1 window/tab is the possibility to give that a name.
Could me that's possible on collection level and that I just missed it...

Hi, thank you for your feedback!
Could you please tell me more about the issue? I didn't quite get it

I cannot make it more clear!!!!
My time is pretty valuable.........
Are you developer? Or administration?
Raul Veldhuizen       [image: 📱] +31654 378 678
Lepelaar 7
1191SL Ouderkerk
[image: ☎] +3120 496 5557
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virusvrij.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Op do 27 mei 2021 om 16:09 schreef Eugene Fox @.***>:

Hi, thank you for your feedback!
Could you please tell me more about the issue? I didn't quite get it
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/XFox111/TabsAsideExtension/issues/79#issuecomment-849666206,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL2XZGHE4M4PDKLOAE2P553TPZG7ZANCNFSM45PA5S6A
.

When I use the feature it's a whole window that's put aside right? Or is this called a tab? Or tabpage? And all the webpages are then called tabsheets? You are using the term 'collection'.......

When you click "Set current tabs aside" button, it saves all opened tabs in your browser window into a collection (or a set). Then it closes all opened tabs in the window

I cannot make it more clear!!!!

Well, then I'm afraid there's nothing else I can help you with

My time is pretty valuable.........

Everybody's time is

Are you developer? Or administration?

I'm creator/developer/maintainer/administrator of this project. It's my personal one
If don't have any other questions, I'd like to close the issue

I always have several windows open, with different subjects. Cannot name these windows. Would be good if I could when using Tabs aside.
Will not better the situation when re-opening the collection again but OK, it makes them more recognisable.
I noticed re-opening happens in the current window. I would have preferred 'in a new window'.
Setting aside will take less memory then the 'sleep'function I trust?

Hi, sorry for such delayed response.
So, from what you've written, I can suggest these features to make:

Add a "Close the window after setting tabs aside" toggle to settings
Add an option "Open in a new window" to sets' three-dot menu
Add a "Close the panel after restoring tabs" toggle to settings
Is that what would you like?

Setting aside will take less memory then the 'sleep'function I trust?

Not sure about memory improvements, but I don't think it will break something

Yes, these additions would be helpful to me. Of course always hard to tell how widespread my way of doing things is....
The sleeping function has bettered my situation as far as the limit my computer can handle, aka the amount of crashes. No change in the ease of finding the window the tab I want is in.

Hi, @Veldkip! Have you got my response? I saw your reply in the mail, but it seems it's been deleted from GitHub

terribly busy!
will get back on it later.
sorry.
Raul Veldhuizen       [image: 📱] +31654 378 678
Lepelaar 7
1191SL Ouderkerk
[image: ☎] +3120 496 5557
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virusvrij.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Op zo 1 aug. 2021 om 10:33 schreef Eugene Fox @.***>:

Hi, @Veldkip https://github.com/Veldkip! Have you got my response? I
saw your reply in the mail, but it seems it's been deleted from GitHub
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/XFox111/TabsAsideExtension/issues/79#issuecomment-890476613,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL2XZGCPJ2C5EFD5DXQI7XDT2UBFLANCNFSM45PA5S6A
.

It is quite difficult to understand you. I'll try to answer anyway.
As far as I know, tabs are set aside into a "collection", which is a set of multiple tabs. You can rename collections, if that's the question. You just have to click on their name

I cannot make it more clear!!!!
My time is pretty valuable.........

Everyone's time is as well. If you are the only one able to understand your question, then you will be the only one able to find your answer.

I always have several windows open, with different subjects. Cannot name these windows.

On Microsoft Edge you can do that, right click on the window and choose "name window"

Setting aside will take less memory then the 'sleep' function I trust?

Yes. Microsoft Edge's "Sleeping tabs" feature still uses some memory to keep the tab & data available, whereas tabs set aside use
no memory but take some time to reopen.


githubscm PR-related methods need gh CLI

If a jenkinsfile uses methods like

createPR*
executeGHCli
forkRepo
approvePR
mergePR
createRelease*
deleteRelease*
isReleaseExist
updateReleaseBody

it needs to have gh CLI binary on PATH, meaning it should use the kogito-ci-build image instead of ubuntu label in jenkins.

@cimbalek I don't know why often I assign you by mistake, disregard this one please.


[Feature] Add onExitComplete to Presence component in solid-js

Is your feature request related to a problem? Please describe.
the Presence component doesn't have an onExitComplete callback props
Describe the solution you'd like
a way to add callback when the animation the exit transition finishes.

@mattgperry can this be added?

+1 This would be useful for a SolidJS project I am working on. I want to be able to animate exits for items that are being deleted, and I want to be able to trigger the true deletion of an item after its animation has been completed.

This should be very easy to add.
As a workaround you probably can listen to motioncomplete on parent element and rely on event bubbling up.

This is now a wontfix, see https://github.com/motiondivision/motionone/discussions/241
Hopefully future maintainers will have more time to take a look at this one!


Add file search functionality for the Switcher

Add a mode for the Switcher to enable searching files by name (under the current working directory) to open them in the Editor

I think this is a duplicate of #3860

Right, closing this one then.


Add cublas dockerfile

Adds a dockerfile built for CUBLAS, which allows GPU acceleration in the encoding stage.

The current problems as I can recall them:
Uses an older CUDA version (11.8) due to errors in whisper.cpp builds with the newer version (I think the next release will fix these)
The Dockerfile is a bit of a hacked together mess


Why is https://datatables.yajrabox.com/ down?

currently I am including css and JS for yajratable which is included from source https://datatables.yajrabox.com/ but it seems to be down.
Any alternatives?

Use DataTables CDN - https://cdn.datatables.net/

Use DataTables CDN - https://cdn.datatables.net/

Unfortunately the entire docs library is now down as well since this was hosted on  https://yajrabox.com/docs/laravel-datatables

Sorry for the inconvenience. It seems like our DigitalOcean droplet got corrupted and all sites were deleted! Anyways, it is now restored. Thanks!
P.S. The docs are also available on https://github.com/yajra/laravel-datatables-docs in case you guys need it.


Can I provide a demo for accessing XA transactions in the go-zero framework

Can I provide a demo for accessing XA transactions in the go-zero framework
Don't understand how the db object in the xahttp example is introduced into go-zero

Of course, you are welcome if you provide a demo


Set of changes to simplify the R code.

@sethmott,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

Thanks for your suggestions, but a few of the changes here would also require us to change other parts of the solutions (changing variable names, for example) or add dependencies (dplyr).  We will separately incorporate some of these changes based on this pull request.


Fix UserWarning on import

Change import order in acoular/__init__.py

Add check for OPENBLAS_NUM_THREADS

PR fixes #322

As described in the contribution checklist, I added myself to the CITATION.cff. This feels a bit silly for such a small change. Feel free to revert it.

As described in the contribution checklist, I added myself to the CITATION.cff. This feels a bit silly for such a small change. Feel free to revert it.

Helping improve the package is nothing silly, and we are always happy to have new contributors. In your case, the change might be small but significant. We are hopeful that this change will not be your last.


Input-forms and Start-forms in the Docs Guide have the same title

Confusing from the dropdown list when searching. Should these two be consolidated? If not, perhaps different Titles?

It's fine. They should be read in different context: the form is an exhaustive explanation of working with forms, while the latter is in a quick start fashion.


Odd error when trying to open allocation

https://gist.github.com/mindstyle85/fd2bc1eaa727c1e79384cf602bae26d6
https://goerli.etherscan.io/tx/0x3ffb0580f6bd1e51951cd6c451985c97146c2d9f484e1a9bfcc818a984a34d8a
This is  a case on MIPS Testnet, where we tried to allocate to a subgraph and the logs were as shown in the gist above, and there is also a failed tx (i tried to allocate once and once never, so total of 2 failed txs on chain with the same logs basically)
graph-node v0.29.0 (6499d3808 2022-11-24)
agent/indexer: 0.20.5-alpha.1
goerli rpc is healthy and works correctly, testnet on a backup machine

@fordN


Override headersForRequest (with tests)

Original work completed by @JeroenvdV in #1009, but now with tests and asserting authorizer presence.
This attempts to fix #1003 so Ember Data 2.7 and greater can send authorization header data when using DataAdapterMixin.
@marcoow let me know if this test coverage is sufficient!

Looks good! Left some comments on minor assertion-style things.

@marcoow should be good to go!


Scripts to post rollup prototype transactions

Implements a prototype for a recurrent rollup process.

This initial version uses a modified rollup verifier.

To test, follow instructions in README .

Rollup updates now proceed in batches of two.  We hope that generalization to batches of n will now be easy.

To test, follow instructions in README .

Follow testing instructions.
Note that scripts work on either SanchoNet or local testnet.


Extract snippets from remaining SpreadsheetML tutorials, extract "Packages and Document Parts" section, and fix multiple xmlns errors

closes #295 ("Packages and Document Parts" extracted into snippet)
closes #279 (how-to-retrieve-a-dictionary-of-all-named-ranges-in-a-spreadsheet.md)
closes #278 (how-to-parse-and-read-a-large-spreadsheet.md)
closes #277 (how-to-open-a-spreadsheet-document-from-a-stream.md)
closes #276 (how-to-open-a-spreadsheet-document-for-read-only-access.md)
closes #275 (how-to-merge-two-adjacent-cells-in-a-spreadsheet.md)
closes #274 (how-to-insert-text-into-a-cell-in-a-spreadsheet.md)
closes #273 (how-to-insert-a-new-worksheet-into-a-spreadsheet.md)
closes #272 (how-to-insert-a-chart-into-a-spreadsheet.md)
closes #271 (how-to-get-worksheet-information-from-a-package.md)
closes #270 (how-to-get-a-column-heading-in-a-spreadsheet.md)
closes #269 (how-to-delete-text-from-a-cell-in-a-spreadsheet.md)
closes #268 (how-to-create-a-spreadsheet-document-by-providing-a-file-name.md)
closes #267 (how-to-calculate-the-sum-of-a-range-of-cells-in-a-spreadsheet-document.md)
closes #266 (how-to-add-custom-ui-to-a-spreadsheet-document.md)
closes #297 (Replace https with http in xmlns declarations)

@AlfredHellstern did you want to comment at all here? otherwise I'll merge it in

LGTM 2


Enhanced Question Cards

PR Fixes:

1 improved readability of tags in questions
2 Added border to question cards for light mode for better distinction s

Resolves #1405
Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I assure there is no similar/duplicate pull request regarding same issue

Can u resolve these and pls open another pr?


ibmcloud: add ibmcloud provider in e2e test

Fixes: #468
This is a starter to add ibmcloud provider in e2e test framework given an IKS cluster has been created and CAA has been enabled via operator, a further PR will be created for cluster provisioning.
Signed-off-by: Qi Feng Huo<EMAIL_ADDRESS>

I was able to get the ibm e2e tests running with this. The process I followed was:
* Pre-provisoned a peer-pod enabled cluster

* Exported the required environment variables:

export APIKEY="<my api key>"
export IAM_SERVICE_URL="https://iam.cloud.ibm.com/identity/token"
export VPC_SERVICE_URL="https://ca-tor.iaas.cloud.ibm.com/v1"

* Run `CLOUD_PROVIDER=ibmcloud make test-e2e` with the result:

go test -v -tags=ibmcloud -count=1 ./test/e2e
Do setup
Deploy Peer Pods
Install the controller manager
Wait for the cc-operator-controller-manager deployment be available
Install CoCo and cloud-api-adaptor
Check the kata runtimeclass exists
=== RUN   TestCreateSimplePod
=== RUN   TestCreateSimplePod/Simple_Peer_Pod
=== RUN   TestCreateSimplePod/Simple_Peer_Pod/PodVM_is_created
PodVM name:  simple-peer-pod
Instance number:  0  Instance id:  02r7_c00281c8-75b4-4255-bdcc-2ad0ad8fcb83  Instance name:  podvm-simple-peer-pod-f7a5f5ff
--- PASS: TestCreateSimplePod (37.07s)
    --- PASS: TestCreateSimplePod/Simple_Peer_Pod (37.07s)
        --- PASS: TestCreateSimplePod/Simple_Peer_Pod/PodVM_is_created (2.05s)
PASS
ok  	github.com/confidential-containers/cloud-api-adaptor/test/e2e	102.479s

which is great!

Cool! I was going to check with this PR it would at least compile so probably won't need that :)

A couple of comments that might be worth thinking about for the future:
* Adding some doc explaining the required variables and how to run the tests - once we re-work the main ibmcloud README.md I think this would logically go there.

One thing I am not sure yet is whether we should use environment variables to control each cloud behavior or not. Perhaps we should use environment variables just for common toggles (e.g. provision or not, load podvm or not, etc...). And for cloud specific information, we have a single variable (e.g. TEST_E2E_CONFIG_FILE=path/to/some/file) where the cloud provision could read properties. The config file should even have different formats (e.g. yaml, or plantext key/value properties) across clouds, although I would advocate to use the same. One reason to use file instead of environment variable is that it is safer to protect secrets on CI.

* Make the variables have good defaults/easier to set. e.g. we can probably assume that most users (unless they know otherwise) are using production IBM Cloud, so defaulting export IAM_SERVICE_URL to `"https://iam.cloud.ibm.com/identity/token"` seems sensible? Likewise people are probably more likely to know the region they are running in than the VPC service URL, so we could update the flow to be if `VPC_SERVICE_URL` is not set, then see if `VPC_REGION` is set and if so set vpcServiceURL to "https://${VPC_REGION}.iaas.cloud.ibm.com/v1"
  export VPC_SERVICE_URL="https://ca-tor.iaas.cloud.ibm.com/v1"?

As I say - not required for this PR, but maybe something to think about

Perhaps we should use environment variables just for common toggles (e.g. provision or not, load podvm or not, etc...). And for cloud specific information, we have a single variable (e.g. TEST_E2E_CONFIG_FILE=path/to/some/file) where the cloud provision could read properties. The config file should even has different formats (e.g. yaml, or plantext key/value properties) across clouds, although I would advocate to use the same. One reason to use file instead of environment variable is that it is safer to protect secrets on CI.

Yeah, this make sense to me!

@huoqifeng linter errors will need to be fixed :-)

@huoqifeng linter errors will need to be fixed :-)

Yeah, I'm struggling on this, as build tags has been set https://github.com/confidential-containers/cloud-api-adaptor/blob/staging/.golangci.yaml#L24 but I still got the error:
test/e2e/provision_libvirt.go:177:6: `GetCloudProvisioner` redeclared in this block (typecheck)
func GetCloudProvisioner() (CloudProvision, error) {
     ^
test/e2e/provision_ibmcloud.go:39:6: other declaration of GetCloudProvisioner (typecheck)
func GetCloudProvisioner() (CloudProvision, error) {

Which I assume should be handled by build tag in these files :-(


Segmentation fault (core dumped) mkttf.py *.bdf

./mkttf.py *.bdf
/bin/bash: line 101:  1462 Segmentation fault      (core dumped) ./mkttf.py *.bdf

Please provide more details:

Which FontForge version are you using?
Which Linux distribution are you using?
What's the output of python --version?

Please also enable core dumps using ulimit -c unlimited, run the mkttf.py script again, and provide the core dump file core from the current working directory.
If no core dump file exists, please try obtaining the core dump using coredumpctl.

Which FontForge version are you using?

https://packages.debian.org/buster/python-fontforge

Which Linux distribution are you using?

Debian Buster

What's the output of python --version?

Python 3.7.3

Please also enable core dumps using ulimit -c unlimited, run the mkttf.py script again, and provide the core dump file core from the current working directory.
If no core dump file exists, please try obtaining the core dump using coredumpctl.

This is running in GitLab CI/CD shared runner, so unfortunately I am not able to create a core dump.
Here is the pipeline log: https://gitlab.com/oxr463/tsf/-/jobs/459792485
Here is the source: https://gitlab.com/oxr463/tsf/-/blob/mkttf/.gitlab-ci.yml

Sorry for losing sight of this bug... Can you still reproduce this? I've used mkttf just now and had no segfaults.

Sorry for losing sight of this bug... Can you still reproduce this? I've used mkttf just now and had no segfaults.

We can close this.


Feature for shared context

Some use cases don't require separating contexts for each different script, this approach can also be more performant but brings a little housekeeping.
It would be good to have a feature for each script host to enable shared context mode

This is definitely something I'd like. It looks like this project has added this feature.


Compilation times of record operations could be improved

As a simple performance test consider a class below. Uncomment line by line and measure the build time.
object Test {
  val r =
    ("k01" ->> 1) :: ("k02" ->> 1) :: ("k03" ->> 1) :: ("k04" ->> 1) :: ("k05" ->> 1) ::
    ("k06" ->> 1) :: ("k07" ->> 1) :: ("k08" ->> 1) :: ("k09" ->> 1) :: ("k10" ->> 1) ::
    ("k11" ->> 1) :: ("k12" ->> 1) :: ("k13" ->> 1) :: ("k14" ->> 1) :: ("k15" ->> 1) ::
    ("k16" ->> 1) :: ("k17" ->> 1) :: ("k18" ->> 1) :: ("k19" ->> 1) :: ("k20" ->> 1) ::
    ("k21" ->> 1) :: ("k22" ->> 1) :: ("k23" ->> 1) :: ("k24" ->> 1) :: ("k25" ->> 1) ::
    ("k26" ->> 1) :: ("k27" ->> 1) :: ("k28" ->> 1) :: ("k29" ->> 1) :: ("k30" ->> 1) ::
    ("k31" ->> 1) :: ("k32" ->> 1) :: ("k33" ->> 1) :: ("k34" ->> 1) :: ("k35" ->> 1) :: HNil

  // r get "k01"
  // r get "k02"
  // r get "k03"
  // r get "k04"
  // r get "k05"
  // r get "k10"
  // r get "k20"
}

Times on my machine with current Shapeless.
// r get "k01"  // 1s
// r get "k02"  // 4s
// r get "k03"  // 7s
// r get "k04"  // 10s
// r get "k05"  // 12s
// r get "k10"  // 21s
// r get "k20"  // 30s

Using Witnesses is more expensive than objects as keys.
object k01; object k02; object k03; object k04; object k05; object k06; object k07; object k08;
object k09; object k10; object k11; object k12; object k13; object k14; object k15; object k16;
object k17; object k18; object k19; object k20; object k21; object k22; object k23; object k24;
object k25; object k26; object k27; object k28; object k29; object k30; object k31; object k32;
object k33; object k34; object k35

object Test2 {
  val r =
    (k01 -> 1) :: (k02 -> 1) :: (k03 -> 1) :: (k04 -> 1) :: (k05 -> 1) ::
    (k06 -> 1) :: (k07 -> 1) :: (k08 -> 1) :: (k09 -> 1) :: (k10 -> 1) ::
    (k11 -> 1) :: (k12 -> 1) :: (k13 -> 1) :: (k14 -> 1) :: (k15 -> 1) ::
    (k16 -> 1) :: (k17 -> 1) :: (k18 -> 1) :: (k19 -> 1) :: (k20 -> 1) ::
    (k21 -> 1) :: (k22 -> 1) :: (k23 -> 1) :: (k24 -> 1) :: (k25 -> 1) ::
    (k26 -> 1) :: (k27 -> 1) :: (k28 -> 1) :: (k29 -> 1) :: (k30 -> 1) ::
    (k31 -> 1) :: (k32 -> 1) :: (k33 -> 1) :: (k34 -> 1) :: (k35 -> 1) :: HNil

  // r get k01
  // r get k02
  // r get k03
  // r get k04
  // r get k05
  // r get k10
  // r get k20
}

Times on my machine with current Shapeless.
// r get k01  // 1s
// r get k02  // 2s
// r get k03  // 4s
// r get k04  // 5s
// r get k05  // 6s
// r get k10  // 9s
// r get k20  // 12s

Switching to
type FieldType[K, V] = (K, V)

improves compilation times.

I'm afraid that constant type stringification isn't the true pathology here. It's easy enough to speed it up (https://github.com/scala/scala/compare/2.11.x...retronym:ticket/perf-constant-type-string), but it doesn't make an appreciable different to this benchmark.
Similarly, avoiding more needless anonymous subsclass of SingletonOps (https://github.com/milessabin/shapeless/compare/master...retronym:topic/record-perf) is a worthwhile change, but again only adjusts a constant factor.
The quadratic factor comes from the implicit search for a record.Selector peeling the hlist apart one element at a time. Compiling the example with -Xlog-implicits.
One solution here would be to "intrinsify" this operation into a single implicit macro that internalized the recursion over the hlist type.
As a starting point, here is a method that determines the index of a tag within the hlist type. It is just a POC, a real implementation should be more robust against unexpected types.
:paste
// Entering paste mode (ctrl-D to finish)

    def indexOf(s: String, hlistType: Type, i: Int = 0): Int = {
      val hnilTpe = typeOf[HNil]
      val hconsClass = typeOf[::[_, _]].typeSymbol
      val keyTagClass = typeOf[labelled.KeyTag[_, _]].typeSymbol
      def loop(tp: Type, i: Int): Int = {
        if (tp <:< hnilTpe) -1
        else {
          val TypeRef(_, _, List(head, tail)) = tp.baseType(hconsClass)
          val TypeRef(_, _, List(tag, _)) = head.baseType(keyTagClass)
          tag match {
            case ConstantType(Constant(`s`)) => i
            case _ => loop(tail, i + 1)
          }
        }
      }
      loop(hlistType, 0)
    }

  import shapeless._
  import record._
  import ops.hlist.ToList
  import ops.record.{ Keys, Values }
  import syntax.singleton._

  val r =
    ("k01" ->> 1) :: ("k02" ->> 1) :: ("k03" ->> 1) :: ("k04" ->> 1) :: ("k05" ->> 1) ::
    ("k06" ->> 1) :: ("k07" ->> 1) :: ("k08" ->> 1) :: ("k09" ->> 1) :: ("k10" ->> 1) ::
    ("k11" ->> 1) :: ("k12" ->> 1) :: ("k13" ->> 1) :: ("k14" ->> 1) :: ("k15" ->> 1) ::
    ("k16" ->> 1) :: ("k17" ->> 1) :: ("k18" ->> 1) :: ("k19" ->> 1) :: ("k20" ->> 1) ::
    ("k21" ->> 1) :: ("k22" ->> 1) :: ("k23" ->> 1) :: ("k24" ->> 1) :: ("k25" ->> 1) ::
    ("k26" ->> 1) :: ("k27" ->> 1) :: ("k28" ->> 1) :: ("k29" ->> 1) :: ("k30" ->> 1) ::
    ("k31" ->> 1) :: ("k32" ->> 1) :: ("k33" ->> 1) :: ("k34" ->> 1) :: ("k35" ->> 1) :: HNil

// Exiting paste mode, now interpreting.

indexOf: (s: String, hlistType: $r.intp.global.Type, i: Int)Int
import shapeless._
import record._
import ops.hlist.ToList
import ops.record.{Keys, Values}
import syntax.singleton._
r: shapeless.::[Int with shapeless.labelled.KeyTag[String("k01"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k02"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k03"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k04"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k05"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k06"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k07"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k08"),Int],shapeless.::[Int with shapeless.labelled.KeyTag[String("k09"),Int],shapeless...

scala> indexOf("k01", typeOf[r.type])
res26: Int = 0

scala> indexOf("k10",  typeOf[r.type])
res27: Int = 9

scala> indexOf("xxx",  typeOf[r.type])
res28: Int = -1

Thanks for the analysis @retronym. I'll pursue something along these lines in shapeless 3.0.

@milessabin any chance this can get addresses for 2.2.x? Any more complex patterns are making compile times to explode :-(

@pchlupacek are you able to test @retronym's suggested indexOf in your specific context?

@milessabin will do (need to understand it first). In fact I think there is something really weird going on. I have feelings that compilation times gets longer and longer for the same code within sbt. At least I can prove that fresh sbt build takes much less (~1/3) of compilation time after using the sbt for the while.

If you're able to pull out something representative which shows non-linear scaling of compile times along the lines of the example here or in #381 or #420 that would be incredibly helpful.

Fixed along the lines suggested by @retronym.

@milessabin excellent thanks. Will test it agains this fix and let you know.

We have a deep nested structure to parse from case classes to shapeless records which is very slow, takes almost 20 minutes to compile. Any suggestion how that can be improved?


Change url in comments, decorate approach

This is still wip. It shows possible decorate approach for import  reader.
https://github.com/umputun/remark/issues/412#issuecomment-526948747

Generally I like this PR. It goes the right direction, easy to read and easy to reason about.

I've finished and fixed things what you noted. I've tested remap procedure by both command and api call running remark container which serves single siteID.
I want to note about prefix search. Do we want ability to merge comments from several ulrs to single?
For example if remark keeps several urls (posts)
https://site.com/p/1
https://site.com/p/2

and you want to merge them to single https://site.com/merged/ current realisation of prefix search won't help. I mean if you set rules like
https://site.com/p/* https://site.com/merged/

the result will be
https://site.com/merged/1
https://site.com/merged/2

Do we want ability to merge comments from several ulrs to single?

I think we can live without it. The practical use case for prefix mapping I had in mind are:

change http:// to https://
change domain, i.e www.blah.com to blah.com

Anything outside of those can be handled by user-provided mapping file for concrete urls

I've fixed naming a little and after it drone build failed (don't see problems in that changes)

looks like a github-related issue- fatal: The remote end hung up unexpectedly

LGTM


Add ability to disable form submission when hitting Enter/Return

If a user is searching through a custom field and hits enter to make a selection on the field then the whole form triggers the submit action. There should be a way to disable this behavior.

@martndemus where is the keyDown event being captured? I scanned the repo but can't find it.
I can look at adding this functionality.

This is not related to ember-form-for. HTML form are auto submitted when enter if there's a submit input or if the form contain only on input. If it's not something you expect you can intercept the keyDown event and prevent the bubbling.


Remove unneeded backwards compatibility support

Remove DEFAULT_TIMEOUT backwards compatibility support. (Since the lowest Django version supported is 1.8, and DEFAULT_TIMEOUTwas added in Django 1.6: django/django@89955cc)
Remove backwards compatibility support for pylibmc < 1.3.0. (Since the minimum pylibmc version required by setup.py is 1.4.1.)

Rebased on master, @jwhitlock I don't suppose you could take a look? :-)

I am tempted to wait a whole year, but...
Looks good. Thanks @edmorley!

Many thanks!


please advice

Hi Anseki,
this library is fantastic and it inspired me to create a similar thing on my own but customized to fit some restrictions I have on work,
just looking quickly through your source code, I see you are using the term "sockets" for "top middle" point, "left middle" point etc... of the rectangle
in my code I have the same "sockets" (4 sockets for each rectangle) and I loop through each one in rectangle1 and compare the length toward each one in rectangle2 to get the shortest distance
so in total I have 4x4=16 iterations to decide which one is the shortest
Is that what you are doing with leader-line or you are using some (better) method?
Thank  you

Hi @bluestorm21, thank you for the comment.
If you want to reduce iterations, for example, you can omit the left-socket when the target is positioned on the right side, and you can omit the top-socket when the target is positioned on the bottom side.

No reply came, then this abandoned issue is closed.


Any plans to integrate with fzf-lua?

I switched to fzf-lua since it was much faster at finding things than telescope. Would it be possible to integrate with the plugin? https://github.com/ibhagwan/fzf-lua

Could you clarify what's faster exactly?  Telescope is just providing a picker for smart-open.  It doesn't do the finding part, so most of that performance isn't a telescope issue.
Where telescope may be a performance issue is if the picker takes too long to appear (though that seems pretty quick to me).
The place where telescope is a performance issue is where we insert entries into the picker.  It seems every time we add an entry, telescope has to process that entry and possibly sort it.  This gets slow for hundreds of entries, so we limit the number of entries shown in the picker at any given time--which is generally OK because the whole point of this plugin is to provide you with the thing you were looking for as the top result or at least as close to the top as possible.

The UI opening/closing of telescope isn't slow. In my case, the finding files or live grep of telescope was always at least two seconds slower for a huge codebase when compared to fzf-lua on M3 Pro. If your codebase has less than like 1000 files, there is no difference between the two.
Also, I forget if telescope has this, but fzf-lua also has really great fuzzy searching for texts inside all the files. 🙂

it shouldn't be too hard to do. I have an example here of the same function call filling in telescope, mini.files, and fzf lua: https://github.com/srcrip/torus.nvim/tree/master/lua/torus/integrations I could take a shot at a PR.

one thing I don't know much about though is how to do custom sorting in fzf-lua. it seems simple enough to dump a lua table into it, but this plugin uses all kinds of custom sorting. I assume fzflua probably respects the order of the table that you give it, but then you'd have to extract the sorting logic that happens in the telescope parts here and order the table before you pass it to fzf lua. or maybe I'm off base here. if anyone knows more about how you do that in fzf lua maybe they can chime in?

A dirty fix would be similar to this discussion. https://github.com/ibhagwan/fzf-lua/discussions/1483
Using fzf_opts = { ["--tiebreak"] = "index" } the order is based on the order of elements in the table.


Add matrix profile transformer

Added a matrix profile transformer. Bugs on the mpdist fixed.

The build error on travis may be unrelated to your changes, will take a look some time later!


Release 5.1.1

I have verified the bottlerocket ami creations and node coming up.

New releases and fixes:-

Added bottlerocket AMI support for both arm and amd based architectures.
Added an option to pass launch template name while creating custom managed AWS node group.
Added tags on AWS resources to track cost.


Docs for emitDeclarationFile

Seems like a great feature! Don't see any docs for it though and am not exactly sure how it works e.g. where does the generated d.ts file end up? So far I haven't been able to make it work.

Hi @bradenhs,
are u using v3? if so the .d.ts would be generated in the outdir of your esbuild config

Yep was using v3. Took a look at the code though and things didn't seem too complicated so I ended up rolling my own plugin tailored to my use case (not published anywhere - just private to my project). Generating a .d.ts with the plugin is neat idea. Really useful. Thanks!


Issue 56 Create Features and steps

Edited the Vagrantfile to add Chrome Headless and Selenium
Edited the requirements.txt file to add the necessary libraries for BDD
Added the features folder with the environment.py and products.feature file
Added the steps folder with product_steps.py

After running behave:
(venv) vagrant@project:~$ cd /vagrant
(venv) vagrant@project:/vagrant$ behave
0 features passed, 0 failed, 0 skipped
0 scenarios passed, 0 failed, 0 skipped
0 steps passed, 0 failed, 0 skipped, 0 undefined
Took 0m0.000s
(venv) vagrant@project:/vagrant$

Codecov Report

Merging #66 (74198f8) into master (72e9bc8) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #66   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines          190       190
=========================================
  Hits           190       190

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 72e9bc8...74198f8. Read the comment docs.

IBM Cloud toolchain: Delivery Pipeline deployed products to dev, including commit 35e045943bb4a774ba747b27616630d5abd6879e

IBM Cloud toolchain: Delivery Pipeline deployed products to prod, including commit 35e045943bb4a774ba747b27616630d5abd6879e


news example test times out in dartium on bots

example/component/news/test/news_index_test.html works locally but times out on the bots

This looks like it may have resolved itself, it probably was relating to some recent fixes in the initialize package.

this test doesn't exist in the new polymer


Automatic error report

<!---    When I debug step by step,the result of the program is correct.However,when I directly enter run button,the program runs the result,and then reconnect to the kernel.In other words, the kernel died and restarted immediately after the run of the code. Then the console window show the initial state as follow:

Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 6.3.1 -- An enhanced Interactive Python.

Please the most simple code example that causes this error, so we can run it in our side.

Closed due to lack of response. If you can provide more information, please re-open and do so. Thanks.


Add support of security_and_analysis

Implemented https://github.com/mineiros-io/terraform-github-repository/pull/143

+1 for this, any idea when this will make it into a release, thanks


where is is the aura recipe zip file for chapter 3?

I cannot find any zip files for chapter 3.  Plus all the CSV files have no data.

Downloading files from the Git Repository:  The first qr code in the book is to a git repository.     Do not click [Code], then [Download zip].  That sounds like it would download the whole repository in a zip file, but actually only downloads uri links to the files.  Instead, download the raw data files, or download the code and images from the second qr code which is a google drive folder.
You can download the raw files in the chapter 3 data folder.

Tim,
I managed to load data into Aura just using CSVs instead of zip file - which is missing - not a big deal.  But since free aura does not come with GDS :( - I had to load recipe data using admin scripts into my local repo using neo4j desktop/terminal.  Which was a valuable experience.
Onto chapters 4 and 5 now.
Thank you,
Radu

Timothy,
I have tried executing code for chapter 7 and got stuck - i have entered
one more github issue.  Can you please help?
Thanks,
Radu
On Wed, May 8, 2024 at 11:17 AM Timothy Eastridge @.***>
wrote:

Downloading files from the Git Repository: The first qr code in the book
is to a git repository. Do not click [Code], then [Download zip]. That
sounds like it would download the whole repository in a zip file, but
actually only downloads uri links to the files. Instead, download the raw
data files, or download the code and images from the second qr code which
is a google drive folder.
You can download the raw files in the chapter 3 data folder.
—
Reply to this email directly, view it on GitHub
https://github.com/ava-orange-education/Graph-Data-Science-with-Python-and-Neo4j/issues/1#issuecomment-2100823300,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNJ6VLHV55GYB6GCS3XEHDZBI6YDAVCNFSM6AAAAABGTPUWOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQHAZDGMZQGA
.
You are receiving this because you authored the thread.Message ID:
<ava-orange-education/Graph-Data-Science-with-Python-and-Neo4j/issues/1/2100823300
@github.com>


Update menu item

Change Join to Login
fix menu item alignment on smaller screens + text decoration

Before:

After:

@projectmushroom 👍
Just a quick question this header Login instead of Join is a CTA to login not Join right. I think it's used incorrectly on the Footer

@Mitso it still goes to the registration page, where the login button is present, the request was just to change the word join to login.. let me double check with them whats the expected result page should be


Upgrade Gulp and Nodejs

This upgrade some core dependencies that were blocking the app to be built during release.

Node.js (16.x)
Gulp (4.x)

@vinitkumar The "expected" test is hanging for the same reason as the django 3.0 tests.
And we can't control the name of that so we just need to disable the branch protection for that check when we change versions like this.

@marksweb

This is incredible progress @vinitkumar!
What's next for this?
I think an .nvmrc file might be useful in the root so that if someone is using nvm they can activate the correct version. https://github.com/nvm-sh/nvm#nvmrc

I think the next step should be upgrade karma since it is not longer officially supported. However, it is an high effort low return task (for now), but we should do it soon. We can also look into upgrading webpack itself. This again is something we can do in near future and is not an urgent issue to tackle now.


No dialog about 'Initialize for optimal use with VS Code' pops up after opening an outside project

Build Version: 20221109.16
OS: Window 10
Repro Steps:

Create a project from func cli.
Open it in VS Code Insiders.
Check whether there is a dialog pops up.

Expect:
The below dialog pops up after waiting a few seconds.

Actual:
No dialog about 'Initialize for optimal use with VS Code' pops up.
More Info:

This issue reproduces for C#/JavaScript/Python projects.
Navigate to Azure view, the dialog 'Initialize for optimal use with VS Code' pops up.

Are you creating the project while the folder is opened in VS Code?
We can only activate the extension when the folder is first opened. We are looking for a host.json file. If you create that file after VS Code activates, VS Code will not check for that file again.  This is not behavior that we can change.
If you reload the window after creating the project from with func new, I believe that the prompt will appear. Alternatively, as you mentioned, if you open the Azure view, the extension will activate, and will show the prompt as well.


Ideas for The Api

I'm not sure if its possible but a great feature to add is the ability for other people if they have the api to load custom models without the need of downloading the model, but im not sure how feasible that is with the current tools

I don't think that's remotely feasible with the implementation of the networking in the game
And this library is client side only

And this can be abused by extremely large models, for example I have a 3d model that is 140 mb in size
Also usually it is not a good idea to p2p files in a game as it can be manipulated for remote execution

If we ignore all of the above issues, that could very easily be used to show people things they do not want to see. For the foreseeable future, your best bet is to distribute a modpack that has already assigned all of the models you want to the suits you want.


Add evidence type search to help and query builder

#429 added support to search based on the evidence type however the option was not added to the query builder or information about how to use it added to the search help modal. Let's get it added to both.

Looks like I was looking at an old branch.


webhooks: Add UnexpectedWebhookEventType exception.

@timabbott: FYI :)

Merged, thanks @eeshangarg!  It's great how many webhooks this brings to 100% coverage.

I think with a bit of browsing the code coverage reports of the ones not yet at 100%, a lot of them could be pretty quickly cleaned up further.  E.g. for this one, we have a return json_error that should probably be our new exception:
https://codecov.io/gh/zulip/zulip/src/master/zerver/webhooks/freshdesk/view.py
And for Travis:
https://codecov.io/gh/zulip/zulip/src/master/zerver/webhooks/travis/view.py
We should add a fixture for a failed build, and then the third case should raise UnexpectedWebhookEventType.

(I don't think we need to aim for getting to actually 100%, but It's worth at least reading the rest for places we should use this exception since there aren't that many, and we might make a TODO list of highly-used integrations like Travis/IFTTT/Zapier that are probably worth adding fixtures to get them up to 100%)


The mapping function passed to map is invoked once for every observer for one event on base stream

The simplest reproducing scenario:
var orig;
orig = most.of(7).map(function() {
  console.log("expensive operation");
  return 5;
});
orig.observe(function(e) {
  console.log("obs 1", e);
});
orig.observe(function(e) {
  console.log("obs 2", e);
});

My usage is that for every user event (think "click") there is an expensive operation performed (e.g. AJAX call for to-do list) then multiple derivative streams carrying the result processed in different ways (e.g. a stream with to-do list content and a stream with to-do list length) are created. Each of the derivative streams is observed by one observer, but still the expensive operation is invoked many times - once for each observer even though there was one "click" only.
A bit more complex scenario (to ilustrate the derivative streams) - it bahaves the same if .fromEvent(...) is changed to .of(...):
var derivative1, derivative2, orig;

orig = most.fromEvent("click", someDiv).map(function(e) {
  console.log("expensive operation");
  return 7;
});

derivative1 = orig.map(function(e) {
  console.log("sub-op 1");
  return e + 1;
});

derivative1.observe(function(e) {
  console.log("observer 1", e);
});

derivative2 = orig.map(function(e) {
  console.log("sub-op 2");
  return e - 1;
});

derivative2.observe(function(e) {
  console.log("observer 2", e);
});

Console output on the latter:
expensive operation
sub-op 1
observer 1 8
expensive operation
sub-op 2
observer 2 6

Is this expected or a bug? While I can [partially] visualize to myself the multiple sinks pulling the events from sources and thus causing multiple invocations of a mapper it is against my gut feeling that one source event should be mapped once and then fed to different consumers. Is this reasoning correct?

Hey @maciasello!  I'll call this known, but in search of the best solution.  Because most pre-1.0 has been heavily focused on performance, it optimizes for the single-subscriber case by not bothering to maintain subscriber lists at each node.  Multicast subscriptions can be added easily via composition.  However, we haven't exposed an API for it yet.
One issue is that there's no way for each combinator to know if the stream it returns will end up having multiple observers.  I think there are 2 possible solutions to consider for 1.0:

Automatically make every combinator return a multicast stream.  This would be super-convenient for callers, but would introduce lots of unnecessary overhead since only a very small number of streams would ever actually end up needing to be multicast.
Provide a simple API for the caller to declare that a stream should be multicast.  For example, if a function composes a stream, it could return a multicast version of the stream by doing something like: return stream.multicast();.  The upside is that it minimizes amount of multicasting, and the downside is that you might forget.

Any thoughts?

@briancavalier, It seems the tradeoffs are on both sides and I agree that performance in most is a must. As for 1. maybe there is a way for sources to upgrade to MulticastSources when the second subscriber appears? 2. will be useful. At least for now. The main problem is that I WILL forget :) What is more it seems to be the first combinator that exposes internal machinery instead of functionality. While I'm ok with that don't you feel that it doesn't belong to the API? IMHO it should be some magic inside most to handle that properly and efficiently (no pressure here :D just my gut feeling that if I knew how I would push in that direction :))

don't you feel that it doesn't belong to the API?

I completely agree.  I would like for it to just work, and while that's possible, it's not without tradeoffs.  The problem is really inherent in a push-based propagation system:  to allow sharing, it has to maintain subscriber lists at any node that might be shared.

it should be some magic inside most to handle that properly and efficiently

I think it can be done relatively efficiently, but it will never be as efficient (in terms of event propagation speed) as what is there now.  Most currently has so much headroom right now, it may well be worth the hit.

if I knew how I would push in that direction

Haha, subtle :)  I have some ideas I'm planning to try soon.  Hopefully sometime this week I'll push a branch.

Looks like that a method multicast is undocumented.

@xgrommx, I would say more: it does not exist (yet?) :)
@briancavalier,

if I knew how I would push in that direction

Haha, subtle :) I have some ideas I'm planning to try soon. Hopefully sometime this week I'll push a branch.

Heh, it worked well :) but I meant I would try to do it by myself (if I knew how).

@xgrommx See #143 where we're discussing adding it into the public API.

@briancavalier As I understood that is similar as in Rx?

@xgrommx Yeah, it'd be very similar to RxJS's share

Closing, since multicast has been added and released.


Typos in Chapter 3

P.80, Equation 3.17
For \sigmas' subscripts, consider using x and y instead of 1 and 2.

P.87, Figure 3.8
In the caption, there are two (a) and the second one should be (b).

P.87, The paragraph above Equation 3.58
\mathbf\Sigma_y should be \Sigma_y.

P.91, First line in Section 3.4.2
"... the Bernoulli distributio."
should be
"... the Bernoulli distribution.".

P.91, Between Equation 3.76 and Equation 3.77
"... linear dependendence between ..."
should be
"... linear dependence between ...".

P.95, Figure 3.12
In the caption,
"... using K=3 clusters ..."
should be
"... using K=5 clusters ...".

fixed, thanks


LP test in influxBD could not finish

Hi Michail
I have a question about the situation, when we start JMeter distributed test with 10 or 40 slaves on 10k uses, in Grafana we could not see that test is over.

Maybe have you ever faced it?
I think it can be related with JMeter master can not statistic from one or more slaves at the end of testing
I'll appreciate any help!

com.influxdb.client.write.events.WriteRetriableErrorEvent logEvent
WARNING: The retriable error occurred during the writing of data. Reason: 'Failed to connect to XXX.XXX.XXX/YY.YY.YY.YY:8086'. Retry in: 6.757s.

As I understand, the backend listener is working async and after the finished 1-hour test we have to wait 30-40 mins, maybe more to pushing data into InfluxDB. I watch on request count and compare it with the request count in the Jmeter log.

Hi @alexkorotysh, the plugin works in async mode, in this way JMeter should not wait when InfluxDb publish data. If we are taking the sinc mode we can have some lags from the JMeter side - JMeter will wait extra time to make sure that data is posted to InfluxDb, then go to make a new request.
For the testing in cluster / or huge load you have to make sure that you have enough hardware on InfluxDb side to process the injections data from JMeter side and viewing the Grafana board (sure depends from your targets).
You can take a look at the statistics from ConsoleStatusLogger on the slaves. To check if you have lags  on the JMeter Side you need to check If you see big difference between Latency and Resp.Time

For the normal situation Latency and Resp.Time should be almost the same.
So from the post as you said I can say InfluxDb got stuck .. As an option I have been thinking to have  "sinc mode" as an option. What do you think? in this case you can try to do the tests and see data immediately, but anyway in both cases you need to control JMeter side (at least Latency and Resp.Time, CPU, Memory so on)..
BR,
Mike

You can try plugin --> this one works usingSynchronous blocking API
Please let me know if this version helps.. will make the release with options to choose sync or async mode. Please do not forget to monitor JMeter and InfluxDB.
BR,
Mike

I come back with results from testing, during 10k test with 1.2m requests today I found that max inserting into InfluxDB around 800 IOPS and utilization disk 100%. But servers have 16000 IOPS, and the synthetic test result on the server was around 5000 IOPS.

I tried to read this article https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/ , but looks like writing on plugin.
For me, async is not a problem during tests, but inserting is very slow. InfluxDB work with docker installation, but IOPS test the same in docker container.

I'll try to use the 2.0th version of the plugin and will come back with results.

Hi Michail again
with 2.0 version of the plugin, we have the same problem, we have a delay with pushing data into

What do you think about it? Maybe the plugin has optimal data schema

Got you, please ping me<EMAIL_ADDRESS>to have a meeting.
BR,
Mike

Ping me<EMAIL_ADDRESS>to have a meeting

Discussed the details in the private chat.

@alexkorotysh The plugin performance is going to be updated in the next release.
BR,
Mike


Hold key doesn't work as expected in tty

Hello. When i hold h key in my vim or file manager I expect scrolling to bottom.
With enabled kmonad it works as expected in sway wm but it doesnt in tty. It does only one jump and stop.
How to fix it?

Key-repeat doesn't work in TTY. KMonad-native key-repeat is only implemented for Windows. In Linux, X/Wayland is doing the key-repeating. That's why you don't get it in TTY.
I am still confused on why there is key-repeat for physical keyboards, but not for virtual ones? Has anyone used any other low-level key-remapping tool? Does it has key-repeat in TTY?

Key-repeat doesn't work in TTY.

Ahhhh, I should fix that. I'm putting it on the list!

I am still confused on why there is key-repeat for physical keyboards, but not for virtual ones?

I am not sure myself. I just tried running evtest on my simulated uinput device, but that doesn't want to cooperate. I know that when I implemented the linux event injection, key-repeat was working automatically when I was testing stuff in X11. I never thought to test in the TTY, so for the sake of simplicity we only inject KeyPress and KeyRelease events.
Just googled some stuff, and I'm guessing that the reason key-repeat was working was because X11 has its own key-repeat mechanism that was taking care of this. The fix would be to add key-repeat into the uinput sink. This is doable, but ideally I'd generalize the key-repeat from Windows and then use that 1 module in both Windows and Linux. Since TTY stuff is not used too much, I'm not going to give this a lot of priority. There are some other things I want to work on first, but I will try to get to this.

@david-janssen cool thanks.
Please notice that it works in Linux tty without kmonad.

Please notice that it works in Linux tty without kmonad.

Yes. "Normal" keyboard works fine. "Virtual" keyboards don't. One thing to make sure is whether this has to do with KMonad itself, or uinput in general. A list of low-level remapping tools I know of [1]. We can test these to see whether it supports key-repeat in TTY without any app-native key-repeat mechanism.
[1] https://github.com/kmonad/kmonad/discussions/388#discussioncomment-1658407

@david-janssen: There is some key-repeat related stuff in both linux/input.h and linux/input-event-codes.h include files. Search for repeat in former and Autorepeat in latter file. Are those relevant?

Please notice that it works in Linux tty without kmonad.

Yes, I am aware :-). This lines up with my working hypothesis:

Linux kernel deals in Push/Repeat/Release events
X11 has its own repeat mechanism
When I tested KMonad, X11 repeat mechanism kicked in, and I didn't realize it was X11 caused
Therefore I never modelled kernel-level key-repeat

I need to go into KMonad and add a representation of kernel-level key-repeat to the Linux output sink. That should do it. I am in the middle of dealing with some keycode stuff, but I'll try and get to this soon after, or when I feel very uninspired on the keycode stuff and I just want to deal with a simple but tedious task.


Add netbsd/amd64 release binaries

What would you like to be added:
Please provide binary packages for NetBSD/amd64.
Why is this needed:
I tried building https://github.com/anchore/syft
Its Makefile's bootstrap target tries installing quill using the curl method, and this failed on my system with:
curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sh -s -- -b ./.tmp/ v0.2.0
[info]\033[0m using release tag='v0.2.0' version='0.2.0' os='netbsd' arch='amd64' \033[0m
\033[0;31m\033[1m[error]\033[0m could not find release asset for os='netbsd' arch='amd64' format='tar.gz'  \033[0m
\033[0;31m\033[1m[error]\033[0m failed to install quill \033[0m

Additional context:

Thank you!


Rounding

Introduction
Despite using ROUND in PostgreSQL I am finding tabular and chart data containing unrounded values.
So while a result set may contain various values like 0.54, 0.61 etc., occasionally there will be an unrounded value e.g. 0.7200000000000001. This makes both tables and charts messy.
To Reproduce
An example is one of the total revenue calculations that pulls data from a jsonb object and reports on it using a window function.

Screenshots

Expected behavior
I had expected the use of ROUND to round the values and only data with that precision to be present in either the SQLPage tables or charts (or csv exports).
Version information

OS: Linux x86_64 6.6.13-gentoo
Database: PostgreSQL 16.3 on x86_64-pc-linux-gnu
SQLPage Version: v0.26.0

A simpler, more reproducible set of examples:
SELECT
    'chart' AS component
    , 'Rounding' AS title
    , TRUE AS debug
    ;
SELECT generate_series(1, 10) as x, ROUND(RANDOM()::numeric, 2) as y;

SELECT
    'debug' AS component
    , 'Rounding' AS title
    , TRUE AS debug
    ;
SELECT generate_series(1, 10) as x, ROUND(RANDOM()::numeric, 2) as y;

SELECT
    'table' as component
    ;
SELECT generate_series(1, 10) as x, ROUND(RANDOM()::numeric, 2) as y;

I don't know if this is a sqlpage bug or a problem between keyboard and chair.
Any light you can throw on this would be great.

Thanks, I can reproduce it !

The issue can be reproduced with a file containing just
select 0.47::numeric;

When opened with sqlpage, this displays 0.47000000000000003


Updated channel and documentation to Rubocop v0.82.0

Gentle nudge about this PR. 😃

Version 0.82 was released more than two weeks ago: https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0820-2020-04-16
Would be great to get this channel merged 😉

@efueger is there any chance for you to look into this PR?

Hi @DanielWright  - devs are checking this and the 0.83 update now! We'll have an update soon. 👌


Update Packages

Please use our issue template next time! Please don't forget to assign a sprint and estimate

I did not know that templates already exists, because when I added a new issue via Zenhub and i didn't know where or how to use a template there


Fix sort drop down style issue in TodoTemplate #2692

This closes #2692

?
؟
Can't figure out if this is related to that issue or not really

This issue is actually related to BitDropDown itself. I discussed this with Saleh and Mohammad. Mohammad is supposed to take over this issue.

I'm closing this issue since we've decided to change the solution.


fix direct transfers to the same wallet

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
The focus of this PR is to fix direct payments to the same wallet in the BuyScreen component and improve status handling in the TransferConfirmationScreen.
Detailed summary

Fixed direct payments logic in BuyScreen
Enhanced status handling in TransferConfirmationScreen
Updated status state to use object with specific properties
Improved error handling and display in TransferConfirmationScreen

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#4319  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @joaquim-verges and the rest of your teammates on  Graphite


:bar_chart: introduce metrics for the peribolos app

introduce metrics for the peribolos app
Signed-off-by: Harshad Reddy Nalla<EMAIL_ADDRESS>Related-to: https://github.com/open-services-group/peribolos-as-a-service/issues/58
https://github.com/open-services-group/peribolos-as-a-service/issues/59

Created metrics.md inspired from https://github.com/AICoE/meteor/blob/main/docs/metrics.md
Used Server method from probot instead of run, for custom route like /metrics
Included a few metrics for peribolos for num of installation, uninstallation, current no of user serving, operation results
include any type for the variable it was prompting.

Tested on local:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please ask for approval from harshad16 after the PR has been reviewed.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: tumido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [tumido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: tumido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [tumido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/hold
will update the pr soon

New changes are detected. LGTM label has been removed.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: tumido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [tumido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/unhold


Today energy usage stats

Hey,
First, thanks @chomupashchuk for your work :)
I want to use energy stats in energy gas dashboard but they are broken. This is example from last two days:

Ignore little gap - network issue.
Stats are collected by ariston every two hours. I found that for every odd hour some number is added (looks random?) So at 1am 28 aug was 8.22kWh, 29 aug was 7.81kWh. Then every two hours stats are higher by this number.
Additionaly really often sensor value goes to zero.

Ok, its not random number. Its difference between energy usage value at 22:00 and 00:00. So looks like some miscalculation.

My boiler does not provide energy use, values were somewhat assumed/calculated based on data from others.
Value 0 is probably simpler to assume the reason - there were cases in past when Ariston sometimes reported all values as 0 and a workaround was to ignore such data if non-zero values were present from previous report.
I have no idea how calculations should work.
I only see data as bunch of values like {"k":10,"p":1,"v":[0.0,1.858,0.0,0.0,0.0,0.0,0.0,2.45,0.0,0.0,1.802,0.0,0.0,3.577,0.0,0.0,0.0,0.0,1.825,0.0,1.763,0.0,0.0,1.191]} where values seem to be values in 2 hour periods from each even hour period starting from right side from current hour and does not include current not-complete period (at least that seemed like the case for days or months). But if values jump every odd hour to reduce the resulting value - that is even more strange (unless last value is for the last hour or something).
Since my boiler reports always 0 I'm not sure how data splitting should look like as it does require some observation and data comparison.
One of the approaches is to log energy reported data (e.g. include after self._energy_use_data = copy.deepcopy(resp.json()) a self._LOGGER.warn(self._energy_use_data) and make sure that spaces are used instead of tabs in ariston.py) and then based on data from Ariston and values in application and HA try to determine how calculation should look like.

the data from requests needs to be comared during at least 1 odd and 1 even hour and I'm not sure how hata is changed at 00 hour, but maybe that is for another time.

prototype included in 2.0.12.
Please provide a feedback

Thanks, I updated version and added logger line.
So I wait, check values now and send you log if anything will be wrong.
Thanks again!

Is the latest version working better?

Hey, it's much better now but still sometimes little bug:

but to be clear I only changed code based on your tips. Newer released version does not work for me (some configuration problem probably related with multizones?)

New version should be compatible with existing configuration, the main difference is new entities names related to CH (include "_zone1"). The way HA works the not available old entities have to be manually removed and in front-end and automation entities have to be renamed. Not all CH entities affected.

I can't get it to work.
My config:
ariston:
  username<EMAIL_ADDRESS>  password: ""
  name: Ariston Osiedlowa
  sensors:
    - ch_set_temperature
    - ch_detected_temperature
    - dhw_set_temperature
    - dhw_storage_temperature
    - ch_flow_temperature
    - pressure
    - outside_temperature
    - errors_count
    - signal_strength
    - ch_energy_today
    - dhw_energy_today
  binary_sensors:
    - online
    - flame
    - ch_flame
    - dhw_flame
    - dhw_thermal_cleanse_function

I tried to add num_ch_zones: 1, changed names of ch_flame to ch_flame_zone1 (same with ch_set_temperature and ch_detected_temperature) but nothing works.
With config like above i get:
2022-09-06 01:15:27.525 ERROR (MainThread) [homeassistant.setup] Error during setup of component ariston
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ariston/__init__.py", line 229, in setup
params = {*sensors, *binary_sensors, *switches, *selectors}.intersection(ZONED_PARAMS)
TypeError: 'NoneType' object is not iterable

try 2.0.13

Works, thanks! I still look for stats and give information if everything is fine.
Thanks!

Hi, thanks for your work I'm facing the same issue here:

Also I've tried to use Ariston heating energy this year but there are some problems also.

I'm using latest version available 2.014.

Any news with this? Currently I'm storing the data on a separate variable based on specific time:
0:30
1:30
2:30
.
.
23:30
To avoid that dropping rising problem

Good morning, excuse my ignorance. I am getting acquainted with this energy system these days and I can't understand the data resets at a strange time (I notice them around 04:00, I live in Italy). I would like to understand how to fix this problem. I am asking for your help also because I have connected this sensor to the energy statistics and the graph is even showing negative values.

This is the image from 27.05.2024:

This is the image from today, 28.05.2024:

How can I fix this problem?
Thank you very much.