Using Swup in wordpress

Hi, I'm very new to this and I hope you can help me. Everything works fine on my static page https://jeffcadampog.com but now I want to migrate it to Wordpress.
The problem I have is I'm not sure to where to put const swup = new Swup();
I've added it below the code inside footer.php below  but I'm getting these error:
https://www.screencast.com/t/EkfeNypA
I found the Options and Link Selector as a solution however I honestly not sure how to implement it. Do I add it on a new js file as I have a file called main.js
document.addEventListener("swup:pageView", function () {

    //Menu
    let navbarLinks = document.querySelector(".navbar-links");
    let navbarSocial = document.querySelector(".navbar-social");

    //Contact
    let contactDiv = document.querySelector(".contact");
    //Links and Buttons
    let menu = document.getElementById("menu");
    let contact = document.querySelectorAll(".contact-btn");
    let close = document.querySelector(".close");
    //Wrapper
    let wrapper = document.getElementById("wrapper");

    //functions
    menu.addEventListener("click", function () {
        if (navbarLinks.classList) {
            navbarLinks.classList.toggle("pop-in");
            navbarSocial.classList.toggle("pop-out");
        }
    });

    for (i = 0; i < contact.length; i++) {
        contact[i].addEventListener("click", function () {
            if (contactDiv.classList) {
                contactDiv.classList.toggle("contact-in");
                wrapper.classList.toggle("blur");
            }
        });
    }

    close.addEventListener("click", function () {
        if (contactDiv.classList) {
            contactDiv.classList.toggle("contact-in");
            wrapper.classList.toggle("blur");
        }
    });

});

or adding it on the footer? which I already tried but not working
<?php wp_footer(); ?>

Your help is highly appreciated! Thank you

Hi,
Calling the swup init in your template is completely fine, as long as the footer (and the swup init) is present on all pages.
The errors you are referring to should be more clear and I'm planning to improve this soon. The errors mean that your HTML structure is incorrect. In particular, you're most likely missing the element with swup id, or any other element you defined for swup to replace.
By looking at your static site and the code you used:
A nice thing about swup is that you can replace multiple parts of the page, even the smallest parts, and not just one big container. That means that your menu that stays the same for all pages does not have to be part of the replaced content (you can still hide it during the transition) and you don't need to create new listeners after the transition if you don't replace the elements, so all the code mentioned above could only be run once at the initial load.
//Menu
let navbarLinks = document.querySelector(".navbar-links");
let navbarSocial = document.querySelector(".navbar-social");

//Contact
let contactDiv = document.querySelector(".contact");
//Links and Buttons
let menu = document.getElementById("menu");
let contact = document.querySelectorAll(".contact-btn");
let close = document.querySelector(".close");
//Wrapper
let wrapper = document.getElementById("wrapper");

//functions
menu.addEventListener("click", function () {
    if (navbarLinks.classList) {
        navbarLinks.classList.toggle("pop-in");
        navbarSocial.classList.toggle("pop-out");
    }
});

for (i = 0; i < contact.length; i++) {
    contact[i].addEventListener("click", function () {
        if (contactDiv.classList) {
            contactDiv.classList.toggle("contact-in");
            wrapper.classList.toggle("blur");
        }
    });
}

close.addEventListener("click", function () {
    if (contactDiv.classList) {
        contactDiv.classList.toggle("contact-in");
        wrapper.classList.toggle("blur");
    }
});

Also, it seems like your LINK_SELECTOR is identical to the default option, so you can avoid defining that option and call:

Thank you for your reply. I doubled check my php files and id swup is correctly placed at the main tag. Both has the id #swup which is the default element. I haven't changed the HTML structure when I copied it from the static page, just added/replaced with wordpress functions.

<a href="<?php echo get_home_url();?>"><img src="<?php echo get_template_directory_uri().'/assets/images/logo.png';?>">

         <?php
            wp_nav_menu(array(
                'theme_location' => 'primary_menu',
            ));
            ?>

         <?php if (have_post) : while(have_posts()) : the_post(); ?>
         <?php the_content(); ?>
        <?php endwhile; endif;?>

<img class="" src="<?php echo get_template_directory_uri().'/assets/images/croppedclean.png';?>">

Say Hello!

If you have any questions or just want to say hi, feel free to use the form below.

         <form name="contact" method="POST" data-netlify="true">
            <input type="text" placeholder="Name" name="name">
            <input type="text" placeholder="Email" name="email">
            <textarea placeholder="Message" name="message" id="" cols="30" rows="10"></textarea>

            <input name="send" type="submit" value="Send">
         </form>

<?php   get_footer();   ?>
`

Here's the About Page
<?php /* Template Name: About */ ?>
<?php   get_header();   ?>

<a href="<?php echo get_home_url();?>"><img src="<?php echo get_template_directory_uri().'/assets/images/logo.png';?>">

         <?php
            wp_nav_menu(array(
                'theme_location' => 'primary_menu',
            ));
            ?>

          <img src="<?php echo get_template_directory_uri().'/assets/images/about1.jpg'; ?>" alt="">

        <?php if (have_post) : while(have_posts()) : the_post(); ?>
         <?php the_content(); ?>
        <?php endwhile; endif;?>

I love coding.
Keeps my
            brain working

I'm an aspiring developer. I started doing freelance work from just fixing some minor issues to actually
            building websites from scratch. I have experience on using Shopify but I mainly focus on Wordpress. I can do
            websites from scratch using HTML. CSS and JavaScript with a bit of PHP, or using Theme Builders such as
            Divi,
            Elementor and BeaverBuilder. I'm also familiar with ClickFunnels.

The main tools I use are Adobe Photoshop, Illustrator , XD and Visual Code.

And as a father, I always dedicate time to be with my wife and kids. They are my strength and
            inspiration. We love
            travelling
            locally and EATING a lot.

Say Hello!

If you have any questions or just want to say hi, feel free to use the form below.

         <form name="contact" method="POST" data-netlify="true">
            <input type="text" placeholder="Name" name="name">
            <input type="text" placeholder="Email" name="email">
            <textarea placeholder="Message" name="message" id="" cols="30" rows="10"></textarea>

            <input name="send" type="submit" value="Send">
         </form>

<?php   get_footer();   ?>

Also, I loaded swup.js before the const swup which I believe is correct?

Thank you for helping me with this!

Ah, I see. As swup is also replacing the title of your page, the title tag is required in your head tag.
I'm pretty sure your pages are missing that.
Also, you might consider using the minified version of swup in the production.

Hello! Sorry for the late reply. Thank you so much, that fixed the issue. I have used the minified version as well. All good now, thank you!

Hi @jeppjob  i am developing a wordpress template and i would like to know how did you integrate swup in your project. Cause when i use it in mine the animation works but nothing appear and my url doesn't change (i use the demo animation in the read me). Please give me some advice.

Hi,
Have you checked the console? How did you find it working if it is not
showing?
Jeff C
website:  jeffcadampog.com http://jeffcadampog.com
skype id:  *jeff. http://jeff.cadampog*cadampog http://jeff.cadampog
On Tue, Apr 23, 2019 at 12:08 AM Nathanaël Dordonne <
<EMAIL_ADDRESS>wrote:

Hi @jeppjob https://github.com/jeppjob i am developing a wordpress
template and i would like to know how did you integrate swup in your
project. Cause when i use it in mine the animation works but nothing appear
and my url doesn't change (i use the demo animation in the read me). Please
give me some advice.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gmrchk/swup/issues/112#issuecomment-485461369, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKRGKO3KNC6MFQOQUUNIQUTPRXPH7ANCNFSM4GYFMQUQ
.

@jeppjob  my animation was stuck, i was using the default demo animation but only the begining of the animation was working. So i mean the opacity made my first content desappear but my second content didn't appear. I finally found out the solution it was just a mistake of mine, i had forgoten to put the title tag wp_title(' ') in my project. Thank you for your response.

Glad to hear that. That was actually my issue before. Would you mind
sharing your website? Mine is jeffcadampog.com
Jeff C
website:  jeffcadampog.com http://jeffcadampog.com
skype id:  *jeff. http://jeff.cadampog*cadampog http://jeff.cadampog
On Thu, Apr 25, 2019 at 9:29 PM Nathanaël Dordonne<EMAIL_ADDRESS>wrote:

@jeppjob https://github.com/jeppjob my animation was stuck, i was using
the default demo animation but only the begining of the animation was
working. So i mean the opacity made my first content desappear but my
second content didn't appear. I finally found out the solution it was just
a mistake of mine, i had forgoten to put the title tag wp_title('
') in my project. Thank you for your response.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gmrchk/swup/issues/112#issuecomment-486672973, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKRGKO4BBGDGFUALL745DI3PSGW4LANCNFSM4GYFMQUQ
.

it's not a personal website im actually in internship and i am working in local but maybe for another project. I will be glad to exchange with you.

Cool cool. Have fun with your project ;)
Jeff C
website:  jeffcadampog.com http://jeffcadampog.com
skype id:  *jeff. http://jeff.cadampog*cadampog http://jeff.cadampog
On Thu, Apr 25, 2019 at 9:54 PM Nathanaël Dordonne<EMAIL_ADDRESS>wrote:

it's not a personal website im actually in internship and i am working in
local but maybe for another project. I will be glad to exchange with you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gmrchk/swup/issues/112#issuecomment-486682579, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKRGKO55BCICLAJD4MJ2JN3PSGZYLANCNFSM4GYFMQUQ
.

Thank you @jeppjob


Question if anyone else has had this error: PHP Fatal error:  Allowed memory size

This is more a question than an issue, if anyone else has had this error installing it?

Obv i can increase memory, but it feels kind of weird this happens.

I'm not sure why that's happening, I've personally never had an issues with it (I don't think)
In the meantime you can increase Composer's memory, either in your php.ini or just for this command, like (remember to change the path of PHP to the one on your machine, you can usually find it by running which php):
php -d memory_limit=-1 /usr/local/bin/composer require doublethreedigital/duplicator

I'll try and replicate this at some point, sorry for the issue!

Don't be sorry:) Temp set the memory like that works fine so no worries. Just trying to figure out why it is needed. But otherwise everything else works fine!

Yeah, sometimes I get it when installing packages too, most of the time I just use an alias I have which allows Composer to use max memory. i'll test it at some point to see if I get the same thing, sometimes things like this happen for some people and not others.

Its does for sure.

Just tried to replicate the issue but I was unsuccessful. I think these issues are different per machine depending on the way PHP is configured. I'm going to close the issue now but if someone runs into this in the future, feel free to re-open the issue.


Release Request

Would it be possible to have a new release of clocksource?

v0.5.0 released to crates.io
Thanks for your contributions!

Thank you!


lm_eval python3.10 error

When trying to import lm_eval, with python3.10, I get the following error:
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1382, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "/share/apps/python-3.10.0-shared/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/user/.local/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 65, in <module>
    from .document_question_answering import DocumentQuestionAnsweringPipeline
  File "/home/user/.local/lib/python3.10/site-packages/transformers/pipelines/document_question_answering.py", line 29, in <module>
    from .question_answering import select_starts_ends
  File "/home/user/.local/lib/python3.10/site-packages/transformers/pipelines/question_answering.py", line 9, in <module>
    from ..data import SquadExample, SquadFeatures, squad_convert_examples_to_features
  File "/home/user/.local/lib/python3.10/site-packages/transformers/data/__init__.py", line 26, in <module>
    from .metrics import glue_compute_metrics, xnli_compute_metrics
  File "/home/user/.local/lib/python3.10/site-packages/transformers/data/metrics/__init__.py", line 19, in <module>
    from scipy.stats import pearsonr, spearmanr
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/stats/__init__.py", line 391, in <module>
    from .stats import *
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/stats/stats.py", line 180, in <module>
    from . import distributions
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/stats/distributions.py", line 8, in <module>
    from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/stats/_distn_infrastructure.py", line 23, in <module>
    from scipy import optimize
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/optimize/__init__.py", line 421, in <module>
    from ._shgo import shgo
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/optimize/_shgo.py", line 9, in <module>
    from scipy import spatial
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/spatial/__init__.py", line 107, in <module>
    from . import distance, transform
  File "/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/spatial/transform/__init__.py", line 19, in <module>
    from .rotation import Rotation, Slerp
ImportError: /share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/spatial/transform/rotation.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send

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

Traceback (most recent call last):
  File "/home/user/AutoGPTQ/harness_test.py", line 12, in <module>
    import lm_eval.evaluator as evaluator
  File "/home/user/lm-evaluation-harness/lm_eval/__init__.py", line 1, in <module>
    from .evaluator import evaluate, simple_evaluate
  File "/home/user/lm-evaluation-harness/lm_eval/evaluator.py", line 10, in <module>
    import lm_eval.tasks
  File "/home/user/lm-evaluation-harness/lm_eval/tasks/__init__.py", line 7, in <module>
    from lm_eval.api.task import TaskConfig, Task, ConfigurableTask
  File "/home/user/lm-evaluation-harness/lm_eval/api/task.py", line 16, in <module>
    from lm_eval.api.metrics import (
  File "/home/user/lm-evaluation-harness/lm_eval/api/metrics.py", line 6, in <module>
    import evaluate
  File "/home/user/.local/lib/python3.10/site-packages/evaluate/__init__.py", line 29, in <module>
    from .evaluation_suite import EvaluationSuite
  File "/home/user/.local/lib/python3.10/site-packages/evaluate/evaluation_suite/__init__.py", line 10, in <module>
    from ..evaluator import evaluator
  File "/home/user/.local/lib/python3.10/site-packages/evaluate/evaluator/__init__.py", line 27, in <module>
    from .audio_classification import AudioClassificationEvaluator
  File "/home/user/.local/lib/python3.10/site-packages/evaluate/evaluator/audio_classification.py", line 23, in <module>
    from .base import EVALUATOR_COMPUTE_RETURN_DOCSTRING, EVALUTOR_COMPUTE_START_DOCSTRING, Evaluator
  File "/home/user/.local/lib/python3.10/site-packages/evaluate/evaluator/base.py", line 34, in <module>
    from transformers import Pipeline, pipeline
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/home/user/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1372, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/home/user/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1384, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
/share/apps/python-3.10.0-shared/lib/python3.10/site-packages/scipy/spatial/transform/rotation.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send

Any idea why? What's the recommended version of python I should use?

You should be able to use any version of Python 3.8 and up (we have unit tests for up to 3.11 ).
It looks like this is the fix you want (installing scipy from source)? https://github.com/scipy/scipy/issues/14936 I didn't realize Scipy might have issues with higher python versions, so this may merit further investigation.

Solved by installing scipy 1.7.2 instead of scipy 1.6.7 which is automatically installed with python>=3.10


fix: Update the performance sign condition in auction result screen

This PR resolves []
Description

This PR updates the condition to show which sign (- OR +) for the performance in the auction result screen
Screenshot

-
iOS
Android

Before

After

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[ ] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

Update sign condition for the performance in the auction result screen - mrsltun

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

But it's not the sign that's wrong, it's the colour, isn't it?

@admbtlr Apparently the sign was being checked against the realized price instead of the performance, when I checked the exact auction result, the sign was - but the colour was red


begin porting over old chain explorer api

Closes #198

This PR would mean that the function is deployed for every single site. We could skirt around this by using bash scripts to remove functions for all apps that are not explorer how IMO this is worse than a single repo with the chain explorer api in it. Closing this PR.


Readiness probe errored: rpc error: code = NotFound desc = failed to exec in container

Events:
  Type     Reason     Age                     From               Message
  ----     ------     ----                    ----               -------
  Normal   Scheduled  8m29s                   default-scheduler  Successfully assigned kindling/kindling-agent-6mhhm to aks-agentpool-52821086-vmss000000
  Normal   Pulled     7m58s                   kubelet            Successfully pulled image "kindlingproject/kindling-probe:latest" in 30.257105288s
  Normal   Pulled     7m40s                   kubelet            Successfully pulled image "kindlingproject/kindling-collector:latest" in 11.085423786s
  Normal   Pulled     7m35s                   kubelet            Successfully pulled image "kindlingproject/kindling-probe:latest" in 2.005430985s
  Normal   Pulling    7m34s (x2 over 7m52s)   kubelet            Pulling image "kindlingproject/kindling-collector:latest"
  Warning  Unhealthy  7m30s                   kubelet            Readiness probe errored: rpc error: code = NotFound desc = failed to exec in container: failed to load task: no running task found: task a9ca15679a8433a436c59ca595090ea32188152bb3bb411a34161a60e8454322 not found: not found
  Normal   Started    7m29s (x2 over 7m38s)   kubelet            Started container kindling-collector
  Normal   Pulled     7m29s                   kubelet            Successfully pulled image "kindlingproject/kindling-collector:latest" in 4.571366187s
  Normal   Created    7m29s (x2 over 7m38s)   kubelet            Created container kindling-collector
  Normal   Pulling    7m17s (x3 over 8m29s)   kubelet            Pulling image "kindlingproject/kindling-probe:latest"
  Normal   Started    7m15s (x3 over 7m52s)   kubelet            Started container kindling-probe
  Normal   Created    7m15s (x3 over 7m52s)   kubelet            Created container kindling-probe
  Normal   Pulled     7m15s                   kubelet            Successfully pulled image "kindlingproject/kindling-probe:latest" in 2.026750049s
  Warning  BackOff    7m13s (x2 over 7m14s)   kubelet            Back-off restarting failed container
  Warning  BackOff    3m24s (x21 over 7m29s)  kubelet            Back-off restarting failed container

Please provide more information, such as cluster environment

This looks like a serverless cluster.
There are currently no plans to support servless

What are the minimum requirements for the linux kernel

https://github.com/Azure/AKS/blob/master/vhd-notes/aks-ubuntu/AKSUbuntu-1804/2022.03.29.txt

Using kernel:
Linux version 5.4.0-1073-azure (buildd@ubuntu) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #76~18.04.1-Ubuntu SMP Thu Mar 10 11:17:35 UTC 2022

This version is not supported by Kindling natively. Please rebuild the driver following the instructions in FAQ by yourself.

Does compiling the drivers work for you?


[Wiki branch] Contributing

planning to do this incrementally
https://www.zenhub.com/blog/working-with-epics-in-github/

The edits for this issue are meant to go to https://supermemo.wiki/contributing/#/ right, not https://supermemo.wiki/contributing/#/editing-the-wiki? Could you add some details on what we want to add for this? If you want I think this is something I could work on.

Two related issues over there that might answer your question:
https://github.com/supermemo/Issues/issues/12
https://github.com/supermemo/Issues/issues/18


Issue with Quick Start Process After Executing loco new

Description
Amazing project, it has been immensely beneficial to me. However, I encountered a problem while following the Quick Start guide. After executing loco new and entering the app name, the process stalls and I am unable to proceed further. Any assistance on this matter would be greatly appreciated.
To Reproduce
cargo install loco-cli

loco new

Expected Behavior
Environment:
Linux <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
rustc 1.74.0 (79e9716c9 2023-11-13)
Additional Context
xxx:/mnt/e/code$ loco new
✔ ❯ App name? · loco_app
^C

Hi @0x9bb1, what was the error you find? Seems like you pressed ctrl + c to stop the process, the creation sometimes spend an enough time.

Hi @0x9bb1, what was the error you find? Seems like you pressed ctrl + c to stop the process, the creation sometimes spend an enough time.

Thank you for the prompt response. I waited for about ten minutes or so. I will retry the process and wait a bit longer to see what happens.

After waiting for a sufficient amount of time, I encountered the error 🙀 SSL error: received early EOF; class=Ssl (16); code=Eof (-20). It appears to be caused by an issue with my network. I plan to configure a network proxy and then retry the process. Thank you once again for your assistance.


etcdctlv3: make del command better

Also rename delete-range to del, which is shorter and better (since the range is optional)

@heyitsanthony PTAL

lgtm


#73 Add ASVRG - Asynchronous SVRG - gives SVRG a multithreaded option

https://github.com/X-DataInitiative/tick/issues/73
examples/plot_asynchronous_stochastic_solver.py - courtesy of @Mbompr

This is not atomic - it's possible we should consider implementing an atomic version - I imagine this would require a change to the array module


Better thermodynamics

aug23_mar3 thermodynamics changes
Fixes #393
The improvements to the thermodynamics made in the june23_demo and aug23_mar3 branches need committing to develop. These include:

Getting SST data before it is used

0fcd1f9

Freezing salinity coefficient

1a83c51

Merge issue320_thermo_errors, paralleling PR #322
Model array for Q_PEN_SW

28820ee

Winton test values

48cdd81

z levels for dummy thermo

1dad134

Correct test values

f799685

Qia

92a1c81

zero out fields

1a4b012
df3c1de

add configure() and setData() for IIceOceanHeatFlux

4172a06

BasicIceOceanHeatFlux name

9bb8202

Depends on PR #383 (config output).

There are a number of failed checks (redeclarations, duplicate members)

Well, one build error and one failed test. Which have been fixed.


Test Docker Environment on JPL AWS EC2 instance

Make sure you can run through steps from data preprocessing -> inference.
Running with pre-generated config files will also test out GPU utilization/access.
GitBook documentation to be updated as well to reflect findings from test.

Tested and configs updated accordingly


Realtime service proposal

can you change the callback like i wrote here:
https://github.com/PRCV1/pocketbase-csharp-sdk/issues/4#issuecomment-1374599740
or should i do this after merging?

As you prefer.
I can try to do it in my branch, in a while.
If I understood correctly, the main idea is to execute callbacks in await

I updated the code with async callbacks


fix: Sync global scope to main process

Closes #1022
To PR reviewers... am I merging the scopes with the correct hierarchy?

Perfect, thanks for the link!


Network DevP2P implementation (start)

Changes Unknown when pulling 86013db92b432428f21b957bb18153fdc75ab14b on jg-p2p-roles into ** on master**.


Documentation for Throttled Replication

LGTM.
This is a PR on trunk - do we need to cherry-pick to <IP_ADDRESS>? @hachikuji

@gwenshap May as well. There's another minor doc issue that I'm merging there, so I was planning to regenerate site docs anyway.

Dual-committed.


More than 20 seconds delay to play after Player in Ready State

Hi All, I am adding the song one by one, the song is being played from a url, but the problem is that after a call play(), the song takes between 3 to 20 seconds on even more sometimes. Can someone help me solve this problem pls ?

@guichaguri IOS
I'm using version 1.0.0

@Guichaguri any suggestions ?

@Guichaguri it is working well on the simulator, but when I test on a real device it does not work as expected, sometimes I have to wait forever.

@dcvz any suggestions about this issue ?

Experimenting the same with a little delay at the beginning of the reading.

@ntk860 	@ishigamii 	I haven't seen this on iOS or Android and I'm using 1.0.0 and loading pretty large mp3s over the network. Maybe mess around with the track-player.json settings
Mine look like:

@CapitanRedBeard  let me try this. Also it varies from device to device. On iPhone 5 the delay is less than on iPhone X

The track-player.json config is only used in Android, and only defines which addons will be bundled with the app.

@dcvz any updates on this?

I'm also experiencing this issue on iOS, and using 1.1.3.
I've tried many things, but ultimately, it appears there are a few issues here. Firstly, when a track is added to the queue, it begins to buffer immediately, even without attempting to play. Secondly, It looks like it waits for the entire file to be buffered/downloaded before it is able to play. I've added a download for offline feature in my app, and the download time is the same as Track Player's buffer time.
Thirdly, this becomes a problem when in a queue, because if one track is buffering, skipping to another has to wait until the previous one finished buffering, before it then adds and buffers the next one. Put two large tracks next to each other and skip between them and player state can get stuck in the loading state. There is also no caching, so skipping back and forth will repeat this process too.
Right now it would appear, for iOS at least, it looks like it'd be best to just download the track, then use the downloaded file rather than a remote one, and do a clean up of the files on reset or something. At least that way, skipping between tracks in a queue will already have them ready to play without buffering/loading the tracks that are in the queue each time.
Hopefully that info can help with being able to resolve the issues, I'm happy to test anything.

thanks for the detailed report @markgoodyear :) this should help pin down what's going on

V 1.1.8 still the same. the delay got worse.

@dcvz If you give me an idea where to look I might be able to help fix this issue. This is hindering our iOS experience! ( you can try this on our app maktub.app )

Any updates on this? Player is taking too long to play tracks.Same goes when skip to next and previous song.

@deepaksingh16 : Have you tried latest version 1.2.3. I think i had updated to latest version and doesn't seems to be issue there.

@jariwalabhavesh I'am using v1.2.3 and the issue still persists. Let me know if you've made any changes while setting up player.

@dcvz Can you please look into this issue as this is still happening in v1.2.3?

@deepaksingh16 do you experience the issue in the example app? If so, are you able to share some URLs to test with?

@curiousdustin I was able to play song in app. Thank you for directing me to demo app.
However I would like to share the reason for this issue.
The issue arises when i try to use code as follows:
await TrackPlayer.skipToPrevious().then(() => {
// Code after skipping
})

However without using then , it works completely fine. Like code below
await TrackPlayer.skipToPrevious()
// Code after skipping
Hope it helps anyone having same problem and there could be something that we can fix for next versions.

In you first example, you don't need to use await if you are using .then(). Does it also resolve your issue if you remove await?

@curiousdustin No that didn't solve the problem. Actually it was without await in my code for first example. I mistakenly put it here.
But the solution was not to use then in this case.

Would you be able to share a more detailed example of what code you were trying to run within .then()?
It should be able to be used this way.

I was just logging analytics event inside .then()
e.g. await analytics().logEvent(EVENT_NEXT_SONG, {})

I am also facing the same issue,
When I click on the play button then it takes 10-15 seconds to update the timecode and the time code is not increasing continuously. I don't know what's wrong is happening.

any updates on this?

I have recently seen this problem with HLS files in v3.2.0. While it plays .mp3s relatively quickly, there's a delay of >=8secs when playing HLS files.

@fmalbacete Is there any progress on this issue?

Hey guys!!
Me and the team are having this issue too.
Starting from local or network the audio starts after ≃ 15s
Do you guys have some configs that can help us ?
If not we will try on our side and post here.
Thanks!!

do you find any solution?


Wrong output of OnDelay, if input is true during initialization

Reported by otter on 10 Apr 2013 09:25 UTC
If block Modelica.Blocks.MathBoolean.OnDelay gets an input that is true during initialization, then the block returns false all the time, which is wrong.

Migrated-From: https://trac.modelica.org/Modelica/ticket/1072

Comment by otter on 10 Apr 2013 09:30 UTC
Fixed in 355b88242e3b05da53037f349157fdcb17d3cad2 and added a test model to ModelicaTest

Changelog modified by otter on 10 Apr 2013 09:30 UTC
Bug fixed in Blocks.MathBoolean.OnDelay (if u=true at initialization, the output y was wrongly set to false for the rest of the time)

Comment by otter on 11 Apr 2013 10:34 UTC
Previous fix was not correct. Fixed in 2e1f9c989cf71d74cb1069bee158189e58931a3d according to a suggestion of Martin Kuhn

Comment by jmattsson on 11 Apr 2013 12:07 UTC
6b3491d9acf6814a151701da76825924d6b5f116
Fixed syntax error introduced by 2e1f9c989cf71d74cb1069bee158189e58931a3d.


Provide new release

Hi @sevdokimov
is it possible to provide a new release with the commits you've done since version 1.0.4
Because i have no idea how to put together the files in your repo to working .jar

Does mvn package -Dmaven.test.skip=true command help? If you run mvn package -Dmaven.test.skip=true in the root of the project, the release will be in log-viewer/log-viewer-cli/target/log-viewer-1.0.5-SNAPSHOT.tar.gz.
I'm going to make a release on weekend, after implementation of several features.

Hi, i've never used maven before so i took me a while to try it but i get some error messages
[[ERROR] Failed to execute goal on project log-viewer-cli: Could not resolve dependencies for project io.github.sevdokimov.logviewer:log-viewer-cli:jar:1.0.5-SNAPSHOT: Could not find artifact io.github.sevdokimov.logviewer:log-viewer:jar:tests:1.0.5-SNAPSHOT
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :log-viewer

But i will wait then till the new release

Done. 1.0.5 release has been published.


Make Checksum-Update downwards compatible

Search first

[X] I searched and no similar issues were found

Description
We updated our Spring Boot Server from Liquibase 4.20.0 to 4.24.0. There was no new db.changelog file. So this update wasn't expected to have modified the DB.
But apparently the checksum algorithm was changed to a checksum starting with 9: instead of 8:.
Due to other issues, we had to rollback and deploy the previous version of the server.
But it failed to start, because of a lot of checksum issues. I assume, that it just didn't know the 9: checksum.
In https://github.com/liquibase/liquibase/issues/1681#issuecomment-782253190 @molivasdat suggested two solutions:

to use validCheckSum: Must be followed backwards for all changesets in foresight. But we just trained our devs to NOT change changesets.
Clear checksums in DB: You can do that easily in a test or dev-System. But in production system it is not that easy to get the permission to modify the DB in a manual untested way. Especially with time pressure.

Steps To Reproduce

Write a Spring Boot server application with spring 3.1.10, an oracle DB and a changelog. It will use Liquibase 4.20.0. Let's call it version X.
Deploy Version X so that it's liquibase changelog is applied.
Update the application dependency to spring 3.2.3. It will use liquibase 4.24.0. No changelog is touched. Let's call it version Y.
Deploy Version Y and let liquibase run automatically. This shouldn't modify the DB, but update only the checksums.
Deploy Version X. You will receive a warning about checksum issues.

Expected/Desired Behavior

Recalculated changeset-checksums should not overwrite old checksums but append a list of existing checksums.
E.g. liquibase 4.20.0 writes

changelogX   8:abcdef

and liquibase 4.24.0 should add
changelogX   8:abcdef
changelogX   9:345abc

When verifying the checksum, liquibase should check only the highest existing checksum version it knows:
liquibase 4.20.0 (after server version rollback) should check 8:abcdef and ignore 9:345abc.

If only unknown checksum versions are available for a changeset, then I would expect liquibase to behave as it does now (check validCheckSum, fail)

Liquibase Version
4.24.0
Database Vendor & Version
com.oracle.database.jdbc:ojdbc10 v<IP_ADDRESS>
Liquibase Integration
spring boot
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
RedHat
Additional Context
I don't know anything about the internal behaviour of liquibase. So some wording/behaviour might be wrong. I would be glad if you try to understand the general issue and feature request.
Are you willing to submit a PR?

[ ] I'm willing to submit a PR (Thank you!)

@robert-gdv - I have an update for you from the engineering team:
Liquibase now manages both the v8 and v9 checksum versions. Moving forward, this will not be a problem. If you need to revert back to a version before 4.24.0, then you will need to use clearChecksums.

@kevin-atx : Thank you for your information. Although it is not totally clear. Are you informing me about a new feature or do you want to tell me how to solve the issue with the current system?
Downwards compatiblity was already working. AFAIK the checksums were simply updated to a newer version.
But is the current version upwards-compatible to a future v10 checksum?
Can v9 checksums be calculated and stored without deleting v8 checksums from the DB?
Will the roundtrip 4.20.0 -> 4.x.0 (x > 24) -> 4.20.0 require a manual operation on the DB?
My issue is that manual intervention with the DB is in production more costly to organize. Only very few have the permission to modify the DB. And because of the checksum-rewrite a liquibase minor version update requires a DB-Admin support.

We are faing the same issue - https://github.com/spinnaker/spinnaker/issues/6941
We upgraded liquibase from 3.10.3 to 4.24.0 in Spinnaker and started seeing errors like this - 8:f0bfebd55de9168e38a8ef9c7217c610 but is now: 8:d41d8cd98f00b204e9800998ecf8427e.
Manual overwriting of md5sum is not an option in production.

@kirangodishala : You made quite a Version jump. This enhancement is about how different versions of checksums are stored.
When you seach the issues, you can find some entries where the same checksum version 8 was recalculated with a different result. e.g. #4156

@robert-gdv - It's a big leap but we verified with the versions in between, and the checksum issue started with 4.23.0. Probably I need to raise a new issue then?

Same issue met when downgrading from 4.24 to 4.20. Using flyway most of the time, I don't see why upgrading liquibase version overwrites all history md5 checksum values. Shouldn't the new algorithm accomodate the old algorithm to ensure the check pass.

Hi guys,
With current support upgrade checksum is automatically when running an update family command, but unfortunately,  to downgrade checksum as @kevin-atx mentioned in its comment the only way or support Liquibase can offer you at the moment by running clearChecksums command, and then execute your update family command.
If you have any other comments or feedback please let us know.
Thanks,
Daniel.

Hi @Us0tsuki,
I am not a checksum expert, but I think that's not something trivial because to know if a changeset was already run we generate a checksum and then we compare it with its previous generation (you can see that here). I think doing a hack like that would make things complicate and that's why we think updating checksum to its latest version is the best thing to do here.
Thanks,
Daniel.

Hi @MalloD12,
I feel you ignre the liquibase-downgrade use-case: Update liquibase to a version with a newer checksum and then go back to the previous version. These situations happen often in modern container environments with distributed systems.
Here is the idea:

instead of having a single checksum per changeset, liquibase can store multiple checksums with different checksum-algorithms.
when liquibase is running an update, it selects from the stored checksum the highest version it supports and compares it. If it knows a newer version, it calculates a new checksum with the newest version afterwards and adds it to the table (instead of overwriting).

Alternative fix would be to conditionally disable the paranoia "was it really applied"-check:

If the stored checksum for a changeset has a higher version than the latest supported checksum version, liquibase assumes a library-downgrade and skips the check.

/reopen
@MalloD12
I am not happy, that this issue is closed, because you "think that's not something trivial".

Hi @robert-gdv,
Thank you for your feedback and for proposing some ideas.  I understand your frustration, I'm not ignoring the liquibase-downgrade use case, but I think it could be done following the approach suggested by Kevin (executing clear-checksums command). Have you tried using that command for this purpose, or for some reason this is not possible?
I can reopen this ticket and discuss your ideas with the rest of the team (dev & product) to see what they think about it. Ideally, we would prefer not touch checksum area (unless it's needed) because it's a sensitive area that could lead us to lot of bugs.
I'll let you know team's thoughts about it soon.
Thanks,
Daniel.

I am currently working with a kubernetes environment.
That means, that the libraries and commands executed and fixed. Also the services, their services and how they can interact. The only thing I can do is to trigger a deploy.
Now if I do that, and some tests show an issue (not liquibase related) or a service is not starting, the only thing I can do is deploying the previous version of services and configuration.
With liquibase there is a good chance, that the rollback will also fail - even if the update had no new changeset.
A solution would be, to disable the changeset checksum test completely. But that is an indicator for me, that this feature has unsolved flaws. That is why I opened this issue.
I totally understand that you don't want to touch the checksum area. And I also don't have an idea how to implement a checksum table change in a downgrade compatible manner. But that was not the only solution and your team might have additional ideas.

We are upgrading hundreds of microservices in our organisation from Spring Boot 3.1 to 3.3 and this Liquibase change has totally broken our downgrade approach. Similar to what @robert-gdv described, we run our microservices in a Kubernetes environment and we rarely touch the production databases, heck, we won't even have access to it!
In the release notes for 4.23.0 it says:

This release is backwards compatible with v8 checksums (found in 3.5 to 4.21.1 releases)

Which is misleading not entirely true in a rollback scenario.
Can we please prioritise this issue and have a version released so that at least Spring Boot 3.4 can make use of it.

@filipelautert

Regarding checksums v9 to v8 migration: people with this problem and using Springboot, I would suggest using clearChecksums parameter:
spring:
    liquibase:
        clear-checksums: true

Setting this flag will advise Liquibase to run clear-checksums command before the update, thus you don't need to have access to the database to clear this column. I understand that there is a manual intervention as you need to set this flag once during the rollback process (be it on Spring properties files or adding a new k8s parameter or etc), but seems to be the less intrusive approach so far.
Going forward: there is no v10 planned and I hope it will take a long time until we need to bump it again. v8 reigned for ~8 years, and it was bumped as we had to fix many checksum flaws to prevent more checksum issues.
But we can improve to allow rolling back liquibase version, so our future selves won't have to come to this issue tracker again.  Changing the way we store checksums could be an issue, as it would break versions prior to it (as the checksum column would have a lot more information that it has today). But making liquibase aware that this is a future version and I need to recalculate it for my own latest version (alternative option) would be nice and transparent to everyone I guess.
@lbadam can we prioritize this issue?

Thank you @filipelautert. The problem with using clearChecksums with Spring Boot is that unless it is done in a temporary manner during the rollback scenario only, it will end up always clearing the md5sum column. Doing this kind of temporary workaround for several microservices, especially in production environments will be cumbersome and attracts a lot of attention.
In order to avoid this problem, ideally we should only clear checksums if there is a problem. Not just any problem, but the specific exception thrown by Liquibase due to checksum mismatch.
Therefore, this is what I am proposing to do in Spring Boot applications:
@Configuration(proxyBeanMethods = false)
public class LiquibaseConfiguration {

    @Bean
    SpringLiquibase liquibase(DataSource dataSource, LiquibaseProperties liquibaseProperties) {
        SpringLiquibase springLiquibase = new CustomSpringLiquibase();

        springLiquibase.setChangeLog(liquibaseProperties.getChangeLog());
        springLiquibase.setDropFirst(liquibaseProperties.isDropFirst());
        springLiquibase.setContexts(liquibaseProperties.getContexts());
        springLiquibase.setClearCheckSums(liquibaseProperties.isClearChecksums());
        springLiquibase.setDataSource(dataSource);

        // Copy any other properties from LiquibaseProperties to SpringLiquibase

        return springLiquibase;
    }

    public static class CustomSpringLiquibase extends SpringLiquibase {

        @Override
        public void afterPropertiesSet() throws LiquibaseException {
            try (Connection connection = getDataSource().getConnection();
                 Liquibase liquibase = createLiquibase(connection)) {

                try {
                    liquibase.validate();
                } catch (ValidationFailedException e) {
                    if (e.getInvalidMD5Sums().stream()
                        .anyMatch(message -> message.matches(".*was: 9:\\w{32} but is now: 8:\\w{32}"))) {

                        liquibase.clearCheckSums();
                    }
                }
            } catch (SQLException e) {
                throw new DatabaseException(e);
            }

            super.afterPropertiesSet();
        }
    }

In the above code, we perform a preemptive validation and if there are any checksum version mismatch errors, we clear the checksums. This allows the application to start successfully and once a roll forward is performed using Liquibase >= 4.23.0 (or an update is done to the existing changelog using Liquibase < 4.23.0), it will repopulate the checksums.
Having something like this allows me to distribute this functionality as part of a shared library so that all microservices that use Liquibase are prepared for any rollback issues.
In an ideal world, I would have preferred Liquibase to take care of this problem so that we don't have to worry about such contraptions.

@radarsh thanks for the additional context, and the example for Spring Boot. This is definitely something we will take a look at to see how we can improve the experience.

What is the recommended way of updating liquibase to version with checksum version 9 in case of blue/green deployment?
There are 2 production environments that share the same database. When all regression tests are there is switch of envs.
Is the only way to make it work is to use clear-checksums, so each time when a new instances is started checksums are cleared and calculated again?

Is there a setting to force in new versions of liquibase to still accept checksum V8 and do not update to V9?

@ragnor the only way to rn with V8 in a V9 version would be to force it using Liquibase library as set the scope parameter to change it - but then you would need to use liquibase as a library as this is not supported by Springboot integration.
So besides clearing checksum for every run, would it be an option to disable liquibase in the old version of the app using Spring flag spring.liquibase.enabled ?

@filipelautert thank you for the advice, disabling liquibase should work but I'd rather extract liquibase from my spring applications so Spring Boot upgrade doesn't impact used liquibase version.

@filipelautert thank you for the advice, disabling liquibase should work but I'd rather extract liquibase from my spring applications so Spring Boot upgrade doesn't impact used liquibase version.

you can also define liquibase-core dependency version in your pom.xml, this way you don't need to worry about it when upgrading springboot.


Abandoned?

I really like the ideas behind arcane, is this library still mantained and developed? For example, rspec helpers would be very nice to have...

@ngw not abandoned, recently included it in a new project so there should be some incentive to continue. Also moved the project to https://github.com/zeeraw/arcane


Use events, and tear down listeners

I've updated the syntax to a more correct one for events like didInsertElement. Also added some teardown code for cleanup of listeners on the slider when the component gets destroyed.

Should be all set. I also squashed the commits.

Thanks @blimmer

@knownasilya thanks for this! Since I merged #13 this one can't be merged cleanly... Any chance you could do a rebase for me?

@kennethkalmer all set.


Security issue with crypto-js

Bug Report
there is a security issue with crypto-js < 4.0.0
Description of the problem
https://app.snyk.io/vuln/SNYK-JS-CRYPTOJS-548472
Do you think it would be possible to migrate to crypto-js 4.0.0
Let me know if i could be of any help.
Code sample

Your environment

pdfkit version: 0.12.1
Node version: 16
Browser version (if applicable):
Operating System: Linux

https://app.snyk.io/vuln/SNYK-JS-CRYPTOJS-548472 say:

Remediation
Upgrade crypto-js to version 4.0.0, 3.2.1 or higher.

pdfkit 0.12.1 uses crypto-js version 3.3.0. Version is safe.


fix: resolve conflict

:tada: This PR is included in version 1.1.12 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


First-party imports not being sorted

myapp/main.py:
import myapp.module
import pydantic

print(pydantic.version)
print(myapp.module.hello)

pyproject.toml
[tool.ruff]
line-length = 120

# rules to enable/ignore
select = [
    # isort
    "I"
]
# first-party imports for sorting
src = ["myapp"]

fix = true

When I run ruff myapp/main.py it preserves the sort order above instead of sorting myapp last like isort does, eg:
import pydantic

import myapp.module

ruff 0.0.132

Confirmed bug!

I think in this case you actually want:
src = ["."]

Since those are really source roots, so if you have src = ["myapp"], and you import myapp.module, you're effectively looking for ./myapp/myapp/module.py. Does that fix it?

OIC, yes that works, thank you!

Sorry for the confusion!


Transfer documentation from website back into script comments

obvs do https://github.com/JujuAdams/Input/issues/332 first


Callback info about the 'Elixir.Mix.Task' behaviour is not available

Environment

Elixir & Erlang versions (elixir --version): latest
Operating system: macos
Client (editor or IDE): vscode

Sanity Check List

Create a new Mix project with mix new empty, then open that project with VS Code and open an Elixir file. Is your issue reproducible on the empty project? YES
Check the output log by opening View > Output and selecting "ElixirLS" in the dropdown. Please include any output that looks relevant. (If ElixirLS isn't in the dropdown, the server failed to launch.)

13:14:18.445 [error] Process #PID<0.15210.0> raised an exception
** (SyntaxError) nofile:11: syntax error before: 'Callback'
    (language_server) lib/language_server/providers/document_symbols.ex:41: ElixirLS.LanguageServer.Providers.DocumentSymbols.list_symbols/1
    (language_server) lib/language_server/providers/document_symbols.ex:35: ElixirLS.LanguageServer.Providers.DocumentSymbols.symbols/2
    (language_server) lib/language_server/server.ex:442: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2

Check the developer console by opening Help > Toggle Developer Tools and include any errors that look relevant.
Nothing relevant.

Comments
Based on the documentation for dialyzer, I believe that starting dialyzer with the option: --apps mix would resolve this matter. When I go to settings however, I am only able to provide warn options.
If my assessment is correct, could someone kindly share with me how I could customize the starting options for dialyzer manually for the time being?

I'm unable to reproduce your issue by just opening the empty.ex or mix.exs file. Are you taking some other action after opening those files?

Kindly open following in VSCode: https://github.com/Ajwah/dummy_task.
You should see:

Okay, I see. It looks like that error occurs if you run dialyzer in the project directly as well. The fix is to add dialyzer: [plt_add_apps: [:mix]] to the project/0 definition in your mix.exs: https://stackoverflow.com/a/51218081/
After adding that the error should go away.

In the project I shared, dialyzer is not included. I tried before adding: dialyzer: [plt_add_apps: [:mix]] to mix.exs but that did not help either.
What about:

Based on the documentation for dialyzer, I believe that starting dialyzer with the option: --apps mix would resolve this matter. When I go to settings however, I am only able to provide warn options.
If my assessment is correct, could someone kindly share with me how I could customize the starting options for dialyzer manually for the time being?

Oh, I see. I don't think there's currently a work-around without adding dialyxir to your project, but we can work on adding a new configuration option to the extension.

@axelson Let's add a note in the readme about a workaround

No longer reproducible, most likely fixed in https://github.com/elixir-lsp/elixir-ls/pull/225/commits/f5d441390af178c82f4fe2b2a49f8455523301e8


feat: Diffie-Hellman and elliptic curve DH

Since we have ECDSA now, it would be fascinating to see a toy implementation of Diffie-Hellman and ECDH.
Resources:

https://web.math.ucsb.edu/~kylehansen/Papers/Elliptic_Curve_Cryptography.pdf
http://koclab.cs.ucsb.edu/teaching/ecc/project/2015Projects/Haakegaard+Lang.pdf
https://www.gabriel.urdhr.fr/2021/10/19/diffie-hellman-intro/

i can give this a go tomorrow, maybe move src/ecdsa.rs into src/ecc/ecdsa.rs then add the ecdh

sir, if possible, do try tripartite DH using Tate pairings as well

gonna have to solidify my understanding of bilinear maps & G2+ a bit first, but will do 🫡

classic scary sounding thing for "take two things make new unique new thing"|

"Key Exchange", simple and better.
@jtriley-eth just ping me, would love to jam with you and help anywhere possible. Pairings was an amazing topic that I enjoyed battling with a lot (still don't understand it completely lol)

Pluto internal code has some magic ECDH that we depend on :).  Definitely recommend diving into and exploring this primitive.  It's key to how our web proofs works.
We will be open-sourcing something substantial in ~2 weeks for that.


What exactly does pred_time_limit refer to?

pred_time_limit sounds like a great way to limit complexity of models being fitted; but what time does it refer to: inference on one row, inference on the whole training dataset, or something else?

It refers to the average prediction time per row in validation data.
https://github.com/microsoft/FLAML/blob/85e21864ce20a323fefe297b18b8aa75f9a72f59/flaml/ml.py#L205
Adding it to docstr in #319

Thanks a lot! Where can I find some guidance as to reasonable values? Especially as I expect due to vectorization this doesn't scale linearly in dataset size.