isAdmin is buggy

I've noticed it runs twice for some reason, also acts rather oddly for MUC isadmin requests.

Fixed by fe9036b and configuring the MUC to allow users to discover JIDs.
Also fixed by 05bb27a1 if the MUC does not allow the previous.


Add information about minimum hardware requirement for build

In a Ubuntu 20.04 VM with 3 GB RAM memory cmake return error:
g++: internal compiler error: Killed (program cc1plus)
The problem above occurs when your system runs out of memory.
With same configuration, but with 4GB, the build process finish with success.

Any feedback on this ?
Can we close ?

like write  the body, with 4GB, the build process finish with success.

I remember we had to bump machine class in our gcc CI builds; that was also probably related to memory. So I'd say it's a valid issue, we should probably specify that we need at least 4GB of RAM to build Silkworm.

I resume this thread to add some information:  machine with 6 GB RAM and 4 CPU core, make -j1 failed with the same error. My solution was to increase the swap file (in a Ubuntu 21.04 was only 755 MB; sudo swapon --show)
sudo swapoff /swapfile
sudo rm /swapfile
sudo fallocate -l 6G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

@silkPK could you please try completely removing the -j argument ?
What is the memory requirement then ?

@silkPK could you please try completely removing the -j argument ? What is the memory requirement then ?

The behavior is the same:
g++: internal compiler error: Killed (program cc1plus)
from my tests, 4 GB per core is the minimum (with adequate swap file)


[YUNIKORN-1064] Doc changes for YUNIKORN-958 & YUNIKORN-960

FYI @manirajv06

doc changes looks good. In addition, can see some stack trace changes as well. Are these changes intentional?

@manirajv06 The stack trace changes weren't intentional. It just auto-formatted upon pushing the commit. If I copy the Content examples block from here and paste it in my editor, I can't see any changes in git status. But it seems to automatically delete a tab from most of these indents on the github diff view.

Something is different here as I can see a clean code diff in another doc related PR you done recently. Can you please check this in detail and fix?

@manirajv06 Fixed.


ModuleNotFoundError: No module named 'tensorflow.keras.applications.efficientnet'

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):
TensorFlow version (use command below):
Python version:
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
Cannot get EfficientNet models from tf.keras.applications
Describe the expected behavior
from tensorflow.keras.applications.efficientnet import *
should not produce an error. All other pretrained networks can be loaded.
Standalone code to reproduce the issue
%tensorflow_version 2.x
from tensorflow.keras.applications.efficientnet import *
run the above in Colab with tenso
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

Update your version to TF 2.2 if you haven't. EfficientNet is only available under tf.keras.applications as part of TF 2.2 (reference: https://github.com/tensorflow/tensorflow/blob/r2.2/tensorflow/python/keras/applications/efficientnet.py)

@DanielMorton,
As per the documentation, tf.keras.applications.efficientnet API is available only in TF-nightly.
With the latest TF-nightly, I was able to import the API without any issues. Please find the gist of it here. Thanks!

This should work:
from tensorflow.python.keras.applications.efficientnet import *

@amahendrakar A well hidden bit of documentation, but that does seem to be correct.

@DanielMorton,
Could you please create a new issue from this link and fill in the template with the error you are facing, so that we can track the issue there. Thanks!

@DanielMorton,
Could you please create a new issue from this link and fill in the template with the error you are facing, so that we can track the issue there. Thanks!

Any updates regarding this issue? Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


feat: added react output parser and tests

Moved the formatForOpenAIFunctions function from
/agents/format_scratchpad --> /agents/format_scratchpad/openai_functions (match py)
but entry point is still agents/format_scratchpad to satisfy backwards compatibility
added format to xml, string, and base message utils

Thanks! And still good practice to keep backcompat for anything we have documented, so let's keep

Otherwise looks good, thanks!


Jlab

Updated version of #324 for demo. Superseeded by #337.

Is this still superseded by #337?

Is this still superseded by #337?

Looking at the commits: yes, yes it is.

Superseeded by #337


Possible regression in ZManaged to scoped ZIO migration

A simple test that starts echo Server and performs a single Client call runs forever.
This looks like regression: runs forever on 2.0.0-RC7, works as expected on 2.0.0-RC4 (with ZManaged instead of Scope).
To Reproduce
See this project with a single test: https://github.com/senia-psm/zhttp-bug
This test runs forever:
test("Server should be able to start on an unoccupied port") {

  val dummyRoute = Http.collect[Request] { case req @ Method.POST -> !! / "echo" =>
    Response(status = Status.Ok, data = req.data)
  }

  val layer: ZLayer[ServerChannelFactory & EventLoopGroup, Nothing, Server.Start] = ZLayer.scoped {
    Server(dummyRoute).withBinding("localhost", 0).make.orDie
  }
  val env                                                                         = ZLayer
    .make[Server.Start & EventLoopGroup & ChannelFactory](
      layer,
      EventLoopGroup.auto(0),
      ServerChannelFactory.auto,
      ChannelFactory.auto,
    )

  val action = for {
    port           <- ZIO.serviceWith[Server.Start](_.port)
    resp           <- Client.request(
                        s"http://localhost:$port/echo",
                        method = Method.POST,
                        content = HttpData.fromString("echo string"),
                      )
    responseString <- resp.bodyAsString
  } yield assertTrue(port > 0, responseString == "echo string")

  action.provideLayer(env)
},

Expected behaviour
Test above should complete in finite amount of time (< 1 second).
Desktop:

OS: Linux
Version: 5.4.179-gentoo

Additional context
Might be related to https://github.com/zio/interop-cats/issues/533

Replacing Response(status = Status.Ok, data = req.data) with req.data.toByteBuf.map(bb => Response(status = Status.Ok, data = HttpData.fromByteBuf(bb))) solves an issue, though it prevents streaming. Can be used as a workaround.

@adamgfraser tracked down the issue:
The reason is unsafe cast: msg.data.asInstanceOf[HttpData.Complete] in ServerResponseHandler::writeResponse.

Yeah this is a regression. Will take this up. Let me know if you want to give it a shot. I can point you to the exact place where changes are required.

@tusharmath I can try to fix it if you gave me a hint on how to process UnsafeAsync in writeResponse. Should I convert it to Complete with something like BinaryStream(unsafeAsync.toByteBufStream)?

@senia-psm Basically you just want to read data piece by piece and write it on the channel.
Look at the code here — https://github.com/dream11/zio-http/blob/main/zio-http/src/main/scala/zhttp/http/HttpData.scala#L160
In our case, instead of creating a stream we will write it on the channel. Hope this helps.

@tusharmath it seems like I don't understand zio-http internals good enough to fix it - even the most obvious and straight forward fix fails for me. See #1236 - fromStream test fails and I have no idea how to fix it.

@tusharmath actually it seems like there is another bug - see #1237


PBR: use attenuation instead of base_color for attenuation

Objective

Copy paste error in #12163

Solution

Fix it

Merging as trivial. Thank you <3


fix typespecs, replace mentat with cachex, fix flaky test, improve docs

Hi! First, thank you so much for this library! ODBC is a real pain, and it doesn't work with non-ASCII characters in a query.
I wanted to submit this to you because I know Keathley can be a bit slow, and since people have been waiting months for a proper Mentat release that matches main, I don't want to hold my breath about it. I've used Cachex, and it's a perfectly usable replacement. I've set the cache options to match Mentat, so it won't change any behavior of the janitor timing.
I also fixed a few typespecs (token was listed as only binary when it could also be keyword), updated the docs for the token auth parameter, and I fixed a flaky test caused by using Mimic across process boundaries.
Please let me know if you're interested in accepting any of these changes! Thanks again!

@andyleclair, thanks for the contributions. I have been thinking we need to replace Mentat.

I saw that linting step failed, it may be a few days until I can resolve that, my wife and I are about to go to the hospital to have a baby 😅

my wife and I are about to go to the hospital to have a baby 😅

We got you!
Congrats on the baby! ❤

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

Thank you both!


tests(e2e): add various e2e health check and functional tests incl. github actions

Description
Add following e2e health check and functional tests:

Interface Partner Health Check (BPDM, ClearingHouse, SdFactory, Wallet),
System Health Check (DB API tests and BaseDataLoadCheck),
Notification init scenario,
Registration scenarios,
Service account CUD scenarios,
Create app scenario.

Documentation
PR for documentation: https://github.com/eclipse-tractusx/portal-assets/pull/55
Why
We were asked to create first e2e health check and functional tests with RestAssured in order to have a better safety net and  to avoid regressions.
Issue
Link to Github issue: not available.
Link to Jira issue:
Checklist

[x] I have followed the contributing guidelines
[] I have performed IP checks for added or updated 3rd party libraries
[] I have created and linked IP issues or requested their creation by a committer
[x] I have performed a self-review of my own code (also mutual reviews by @chaupkatng and @irinamesh )
[x] I have successfully tested my changes locally
[x] I have added tests that prove my changes work
[x] I have checked that new and existing tests pass locally with my changes
[x] I have commented my code, particularly in hard-to-understand areas

I suggest to add a link to the pr of the "assets" repo

@evegufy: Thanks for the hints. nuget/nuget/-/Bitmap.Net/1.0.1 is not required anymore such that we will remove it.
For nuget/nuget/-/RestAssured.Net/2.8.1 the case is much more difficult. RestAssured is the base library for all the tests and I haven't found an easy alternative with similar syntax. However, we could ask the repo owner to create the required tags.
For nuget/nuget/-/Newtonsoft.Json.Schema/3.0.15, would it be an option to exclude the dependency from being transitively excluded? (might also cause RestAssured to not work properly anymore) @irinamesh @chaupkatng or do we need JSON schema functionality?

@irinamesh good! there are now much less findings from dotnet format. Could you please take care of the remaining ones?:
https://github.com/eclipse-tractusx/portal-backend/actions/runs/5465127825/jobs/9950217213?pr=110

I created the following IP issues:
[main] INFO A review is required for nuget/nuget/-/HtmlAgilityPack/1.11.49.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9293 .
[main] INFO A review is required for nuget/nuget/-/RestAssured.Net/4.0.0-beta.1.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9294 .
[main] INFO A review is required for nuget/nuget/-/SixLabors.ImageSharp/3.0.1.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9295 .
[main] INFO A review is required for nuget/nuget/-/ReportPortal.XUnit/2.4.5.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9296 .
[main] INFO A review is required for nuget/nuget/-/Stubble.Core/1.10.8.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9297 .
[main] INFO A review is required for nuget/nuget/-/ReportPortal.Client/3.4.0.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9298 .
[main] INFO A review is required for nuget/nuget/-/NHamcrest/3.2.0.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9299 .
[main] INFO A review is required for nuget/nuget/-/NJsonSchema/10.9.0.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9300 .
[main] INFO A review is required for nuget/nuget/-/ReportPortal.Shared/3.5.0.
[main] INFO A review request was created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9301 .
The IP Issue for nuget/nuget/-/Namotion.Reflection/2.1.2 wasn't created yet due to open issue for the source: https://github.com/RicoSuter/Namotion.Reflection/issues/131
If the source isn't provided with a tag, I'll create the IP issue anyways and upload the current state from the master branch to the issue as we're using the latest version and in the hopes that the IP Team is fine with that.

@irinamesh Here is the first workflow run from the fork: https://github.com/catenax-ng/tx-portal-backend/actions/runs/5486098873
I didn't look into it more deeply, could you please check out the issues?
IMO the connection to the reportportal didn't work among other.
cc: @jjeroch

I adjusted the ReportPortal config stuff, but cannot retrigger the test case. Even though, most tests run successfully, I think 2-4 should not fail normally. Irina and I will have a look at them tomorrow.

@aaschmid just fyi, I created the IP Issue for nuget/nuget/-/Namotion.Reflection/2.1.2 and uploaded to current state of the release branch as tag wasn't pushed up to now.
https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9320#note_1178543

@aaschmid @irinamesh I did a test run with the current state https://github.com/catenax-ng/tx-portal-backend/actions/runs/5517320395
could you please check?
the connection to reportportal is working now.

Thanks for the run, we will have a look tomorrow.

Just an FYI for @aaschmid and @evegufy: RestAssured .Net now has an official 4.0.0 release, so you won't need to use a beta anymore: https://www.nuget.org/packages/RestAssured.Net/4.0.0

@irinamesh I was able to check regarding assertions, could you please change to fluent assertion? as this appears to be our mainstream

Regarding connection to the ReportPortal and test results in it it works as expected, but i need to check why registration scenarios fail. I'll be back with an update on this issue till Friday.

@irinamesh is there a reason you extracted the deserialization of response payloads in the E2E tests into a separate class in https://github.com/eclipse-tractusx/portal-backend/pull/110/commits/f1a1b7ff2d12f2f67019a805c6dd9dea58b980da and https://github.com/eclipse-tractusx/portal-backend/pull/110/commits/84ff27e12c9806d08e4e779a66e3d11f246a3cfd ?
Not because I want to question your decision, but because RestAssured does support (de-)serialization using DeserializeTo(), and you can even pass in custom Newtonsoft.Json.JsonSerializerSettings. DeserializeTo() replaces As() and works the same, I see you used As() before.
See also https://github.com/basdijkstra/rest-assured-net/wiki/Usage-Guide#deserializing-a-response-payload-into-a-c-object
Just curious to see if there's anything that you think should be improved in RestAssured .Net, that's all! Thanks :)

Tag for Namotion.Reflection/2.1.2 has been pushed and IP issue has been updated https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/9320#note_1181119

@basdijkstra hi and first thank you for a great framework! I really enjoy working with it as it covers a lot of functionality and really straight forward for understanding!
As<type>() seems not to work appropriate for us as System.Text.Json.Serialization is used for data models. In this case json property names seem to be not parsed correctly. So we make a workaround:
private static readonly JsonSerializerOptions JsonSerializerOptions = new()
    {
        PropertyNameCaseInsensitive = true, Converters = { new JsonStringEnumConverter() }
    };

    public static T? DeserializeData<T>(string jsonString)
    {
        var deserializedData = JsonSerializer.Deserialize<T>(jsonString, JsonSerializerOptions);
        return deserializedData;
    }
```
If you have a better solution, I would appreciate information on it.

@evegufy @aaschmid @jjeroch
As discussed yesterday I implement the following changes:

remove SixLabors.ImageSharp library -> only documents and images from test data directory are now used for the tests;
fix registration scenarios: it seems that there was an update in the structure of the invitation email. I adjust search of password in that way that we search for the password in the first paragraph after the paragraph with the phrase "Below you can find your password". I hope that it will be a sustainable solution against possible adjustments in the invitation email;
partly fix registration scenario with bpn and add test data file for it - it seems that the endpoint for getting application detail by company name doesn't provide the information if company name contains a special character, for example "&" (i provide more information per email);
add a separate step to workflow to run all tests;
update documentation (s. link to PR).

@basdijkstra hi and first thank you for a great framework! I really enjoy working with it as it covers a lot of functionality and really straight forward for understanding!
As<type>() seems not to work appropriate for us as System.Text.Json.Serialization is used for data models. In this case json property names seem to be not parsed correctly. So we make a workaround:
private static readonly JsonSerializerOptions JsonSerializerOptions = new()
    {
        PropertyNameCaseInsensitive = true, Converters = { new JsonStringEnumConverter() }
    };

    public static T? DeserializeData<T>(string jsonString)
    {
        var deserializedData = JsonSerializer.Deserialize<T>(jsonString, JsonSerializerOptions);
        return deserializedData;
    }

If you have a better solution, I would appreciate information on it.

Hey @irinamesh, the challenge here is that you're using System.Text.Json for (de-)serialization while RestAssured.Net uses Newtonsoft.Json :)
I think Newtonsoft.Json use case insensitive (de-)serialization by default, but I don't know exactly how it handles converting enum values to strings and vice versa. If you can configure that using JsonSerializerSettings in Newtonsoft.Json you can set those using UsingJsonSerializerSettings(), see https://github.com/basdijkstra/rest-assured-net/wiki/Usage-Guide#deserializing-a-response-payload-into-a-c-object
But I can't guarantee that you'll be able to do exactly what you want with Newtonsoft.Json, so I think your safest bet is to keep things as they are right now.
I'll raise an issue on the RestAssured.Net repo to remind myself to dive deeper into this when I return from my holidays.
Maybe at some point I'll switch from Newtonsoft.Json to System.Text.Json, as that's built into .NET instead of being an external dependency. Even better would be if I can find a way to support both, but that might make things a little more complex.
Thank you so much for your explanation, gives me some food for thought. And thank you, too, for the kind words. It means a lot to me seeing people use this library in their projects.

@jjeroch due to test names, I can create something like $CHOOSEN_NAME(testEntry: $SOME_VALUE_FROM_TEST_DATA), e.g. Scenario Create New App(testEntry: TestAutomation - MyTestApp) whereas "TestAutomation - MyTestApp" is the title in TestDataCreateApp.json.

I also might have found a solution for not prefixing by namespace and test class names (here Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests and CreateNewTestAppSzenario), but this needs further investigation if affecting also unit test cases ...
Would this satisfy your requirements? And if yes, do you have any preference of the names?

@irinamesh as discussed this morning here a new workflow run: https://github.com/catenax-ng/tx-portal-backend/actions/runs/5587068138
All dependencies are approved now :) could you please download the updated DEPENDENCIES file from the workflow artifact here and commit it (replace of existing DEPENDENCIES file on root level)?
https://github.com/catenax-ng/tx-portal-backend/actions/runs/5586903202
Then the check by workflow should run successfully.

@jjeroch due to test names, I can create something like $CHOOSEN_NAME(testEntry: $SOME_VALUE_FROM_TEST_DATA), e.g. Scenario Create New App(testEntry: TestAutomation - MyTestApp) whereas "TestAutomation - MyTestApp" is the title in TestDataCreateApp.json.

I also might have found a solution for not prefixing by namespace and test class names (here Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests and CreateNewTestAppSzenario), but this needs further investigation if affecting also unit test cases ...
Would this satisfy your requirements? And if yes, do you have any preference of the names?

@aaschmid thank you
@jjeroch here are screenshots that show how can it look in ReportPortal:
Test scenarios without test data:

Test scenario with test data:

Do you have any suggestions for improvement?

BUG
Please check the report portal - https://portal-reportportal.dev.demo.catena-x.net/ui/#superadmin_personal/launches/all/12/330/332/log
Looks broken:

Yes, looks broken also by me. As I see it affects only this page and reload does not help. If it is needed, we can create an issue here: https://github.com/reportportal/reportportal/issues, but I'm not sure if they can reproduce this.

But I can't guarantee that you'll be able to do exactly what you want with Newtonsoft.Json, so I think your safest bet is to keep things as they are right now.
I've raised basdijkstra/rest-assured-net#99 to remind myself to dive deeper into this when I return from my holidays. Feel free to add a comment there if you've got specific ideas or suggestions around this.
Maybe at some point I'll switch from Newtonsoft.Json to System.Text.Json, as that's built into .NET instead of being an external dependency. Even better would be if I can find a way to support both, but that might make things a little more complex.
Thank you so much for your explanation, gives me some food for thought. And thank you, too, for the kind words. It means a lot to me seeing people use this library in their projects.

@basdijkstra thank you too! yes, we want to be on the safe side, that's why I've decided on this implementation. We'd love to hear about updates and new releases. Have a good holiday! You're doing a great job!

Test scenarios without test data:

@irinamesh  thanks. Lets take "Test scenarios without test data" the test data itself should be stored in the logs (means when clicking on the Test Scenario and looking up the details.

@irinamesh @jjeroch here the 1rst run with int env https://github.com/catenax-ng/tx-portal-backend/actions/runs/5630519459

@Phil91 thanks for your feedback. I now also cherry-picked my changes due to fluent assertion and pushed it here - just didn't want to interrupt the review process with a lot of new changes -, see commit hash d8d9f2b38.
The remaining cherry-pick is about test names which I also prepared as separate branch to cherry-pick from. My first version was already reviewed, and I incorporated the changes in here. Remaining question is about the displaying of test data, see first commit and comments there.

@Phil91 as discussed today, I rebased and squashed everything onto current dev branch. In addition, I cherry-picked the changed test names on request of Julia in commit 704eb9f368c6e9a8353bcaeeb26bbfbff953bd79.
The squash also contains the small changes requested by Julia. Unfortunately, I squashed them as well such that I will describe them shortly here. If that is not sufficient please let me now:

Test case: CreateNewTestAppScenario.CreateAppRequest
Instead of calling three different methods (one would have been now) for three different document types, I created UploadAppDocumentOrImage taking the documentType directly from the available enum and call this method three times with different parameters.


Usage of pseudo css selectors

I was wondering whether pseudo selectors are supported in the ppx.
When using material-ui, you can do:
container: {
  '&:hover': {
     background: "#fff",
  },
}

but I couldn't find any similar examples in the repository.
Thanks!

I figured how to do it by looking at the examples in the repository. For someone who might be looking for the solution:
external styleToString: ReactDOMRe.Style.t => string = "%identity";
[%mui.withStyles
  "RootStyles"(theme => {
      link:
        ReactDOMRe.Style.make(~textDecoration="none", ())
        ->ReactDOMRe.Style.unsafeAddProp(
            "&:hover",
             ReactDOMRe.Style.make(~textDecoration="underline", ())-> styleToString,
          ),
    })
];

Thank you for all the work on this library! Looking forward to the official release with hooks (even though I am already using it and it is amazing 🙂).


Min SDK version become 21 ?

I saw in a recent commit:
buildSrc/src/main/java/Version.kt
@@ -1,5 +1,5 @@
object Version {
val targetSdkVersion = 28
val minSdkVersion = 21
val compileSdkVersion = 28
}
Could you tell me why and will you stop support for android api 17-20 devices?

Before api Level 21, the WebView was shipped with the OS (see https://developer.chrome.com/multidevice/webview/overview). This WebView was updated less often and caused some compatibility issues with the player.
Starting with api level 21, we can ensure the player has appropriate support from the WebView.


Animate elements based on container rather than page

When I want to animate a specific element in a specific section of a page, I have to create a really long-winded code solution to allow me to do so.
For example, I have to use the viewportscroll whilst calculating my sections offset from the top of the page and my sections height too, to be able to work out when to run the desired animation on an element either inside the section or on the page in general.
In short: Im wanting to tie an animation to a specific section of my page.
Heres my current code solution that is working - but it is messy and constantly means I have to repeat the code for every component:
    const ref = useRef();
    const [elementTop, setElementTop] = useState(null);
    const [elementBottom, setElementBottom] = useState(null);
    const [elementHeight, setElementHeight]= useState(null);

    useEffect(() => {
        if (!ref.current) return;

        function setValues() {
            setElementTop(ref.current.offsetTop);
            setElementHeight(ref.current.offsetHeight);
            setElementBottom(elementTop + elementHeight);
            scrollY.current = scrollY.current + elementHeight;
        };

        setValues();
        document.addEventListener("load", setValues);
        window.addEventListener("resize", setValues);

    },[elementTop, elementBottom, elementHeight,]);

    let start = elementTop - elementHeight;
    let end = elementBottom - elementHeight;

    const closedRotate = useTransform(scrollY, [start, end], [0, -20], { clamp: true });
    const closedPosL = useTransform(scrollY, [start, end], [200, -300], { clamp: true });
    const closedPosY = useTransform(scrollY, [start, end], [-100, 300], { clamp: true });

I would like a solution that is written the same way as useElementScroll - as i was unaware that useElementScroll was only made for a scrollable (overflowed) div.
I want to be able to specify a REF of my section container and only animate from within that ref when the section is within the vewport.

In addition to this - can you not animate based on percentage valeus rather than pixels?

Hey @joebentaylor1995, Im wondering if my approach in this works for you too. I had to figure out the location of the element from the top in order to animate only when the section reaches the top of the viewport. Is this kind of what you're looking for?

Hey @joebentaylor1995, Im wondering if my approach in this works for you too. I had to figure out the location of the element from the top in order to animate only when the section reaches the top of the viewport. Is this kind of what you're looking for?

Closing this out as useScroll can track elements within a page

Hello, I have a particular issue with useScroll({container}) option.
If you are on a child component and you want to track its scroll progress based on a container ref that it's from the parent component, it will not trigger any value change.
I tried passing the parent ref as a prop or getting the div with getElementById but it didn't work.
I have a list of Card that should parallax but are contained into a scrolling div instead window.

Hello, I have a particular issue with useScroll({container}) option. If you are on a child component and you want to track its scroll progress based on a container ref that it's from the parent component, it will not trigger any value change. I tried passing the parent ref as a prop or getting the div with getElementById but it didn't work. I have a list of Card that should parallax but are contained into a scrolling div instead window.

Have you managed to solve this issue?

Hello, I have a particular issue with useScroll({container}) option. If you are on a child component and you want to track its scroll progress based on a container ref that it's from the parent component, it will not trigger any value change. I tried passing the parent ref as a prop or getting the div with getElementById but it didn't work. I have a list of Card that should parallax but are contained into a scrolling div instead window.

Have you managed to solve this issue?

You can not pass refs as a prop. Use the forwardRef hoc to pass the ref to the child.

Hello, I have a particular issue with useScroll({container}) option. If you are on a child component and you want to track its scroll progress based on a container ref that it's from the parent component, it will not trigger any value change. I tried passing the parent ref as a prop or getting the div with getElementById but it didn't work. I have a list of Card that should parallax but are contained into a scrolling div instead window.

Have you managed to solve this issue?

Before React 19 you couldn't pass a ref as a prop, but you had to use the forwardRef hoc instead. Since forwardRef is now deprecated, you can use props to pass the parent's ref. Make sure to also set the layoutEffect option to false, so the useScroll hook is set up after your reference already has a value.


Implement ASP servers in cakeml AM.

Similar in spirit to  handle_asp_* handlers from here.
cakeml AM JSON libraries here.
See ASP Request and Response Message JSON schemas documentation here.

Closing as no longer planned, ASP invocation has taken a very different turn and the servers are no longer necessary


compile error on macOS

Hello,
I try to install Mako-1.1.4 on macOS 11.5, but I get an error :-(
I am not a python programmer at all, but I am installing Mako, because libvolk (https://www.libvolk.org) seems to depend on it.
At first, I had no idea, how to compile it, but then I found https://docs.python.org/2/install/index.html.
Here is what I am trying:
$ PYTHONPATH=$HOME/tmp/Mako/lib/python2.7/site-packages/
$ export PYTHONPATH
$ python setup.py install --prefix $HOME/tmp/Mako
running install
running bdist_egg
running egg_info
writing requirements to Mako.egg-info/requires.txt
writing Mako.egg-info/PKG-INFO
writing top-level names to Mako.egg-info/top_level.txt
writing dependency_links to Mako.egg-info/dependency_links.txt
writing entry points to Mako.egg-info/entry_points.txt
reading manifest file 'Mako.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.mako' under directory 'doc'
warning: no files found matching '*.xml' under directory 'examples'
warning: no files found matching '*.mako' under directory 'examples'
no previously-included directories found matching 'doc/build/output'
writing manifest file 'Mako.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-11.5-x86_64/egg
running install_lib
running build_py
creating build/bdist.macosx-11.5-x86_64/egg
creating build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/pyparser.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/cmd.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/compat.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/util.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/_ast_util.py -> build/bdist.macosx-11.5-x86_64/egg/mako
creating build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/linguaplugin.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/__init__.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/preprocessors.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/beaker_cache.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/autohandler.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/babelplugin.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/extract.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/pygmentplugin.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/ext/turbogears.py -> build/bdist.macosx-11.5-x86_64/egg/mako/ext
copying build/lib/mako/lookup.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/cache.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/__init__.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/runtime.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/lexer.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/template.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/ast.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/exceptions.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/parsetree.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/codegen.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/filters.py -> build/bdist.macosx-11.5-x86_64/egg/mako
copying build/lib/mako/pygen.py -> build/bdist.macosx-11.5-x86_64/egg/mako
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/pyparser.py to pyparser.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/cmd.py to cmd.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/compat.py to compat.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/util.py to util.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/_ast_util.py to _ast_util.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/linguaplugin.py to linguaplugin.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/preprocessors.py to preprocessors.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/beaker_cache.py to beaker_cache.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/autohandler.py to autohandler.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/babelplugin.py to babelplugin.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/extract.py to extract.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/pygmentplugin.py to pygmentplugin.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ext/turbogears.py to turbogears.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/lookup.py to lookup.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/cache.py to cache.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/runtime.py to runtime.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/lexer.py to lexer.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/template.py to template.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/ast.py to ast.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/exceptions.py to exceptions.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/parsetree.py to parsetree.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/codegen.py to codegen.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/filters.py to filters.pyc
byte-compiling build/bdist.macosx-11.5-x86_64/egg/mako/pygen.py to pygen.pyc
creating build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
copying Mako.egg-info/PKG-INFO -> build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
copying Mako.egg-info/SOURCES.txt -> build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
copying Mako.egg-info/dependency_links.txt -> build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
copying Mako.egg-info/entry_points.txt -> build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
copying Mako.egg-info/not-zip-safe -> build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
copying Mako.egg-info/requires.txt -> build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
copying Mako.egg-info/top_level.txt -> build/bdist.macosx-11.5-x86_64/egg/EGG-INFO
creating 'dist/Mako-1.1.4-py2.7.egg' and adding 'build/bdist.macosx-11.5-x86_64/egg' to it
removing 'build/bdist.macosx-11.5-x86_64/egg' (and everything under it)
Creating /Users/mario/tmp/Mako/lib/python2.7/site-packages/site.py
Processing Mako-1.1.4-py2.7.egg
creating /Users/mario/tmp/Mako/lib/python2.7/site-packages/Mako-1.1.4-py2.7.egg
Extracting Mako-1.1.4-py2.7.egg to /Users/mario/tmp/Mako/lib/python2.7/site-packages
Adding Mako 1.1.4 to easy-install.pth file
Installing mako-render script to /Users/mario/tmp/Mako/bin

Installed /Users/mario/tmp/Mako/lib/python2.7/site-packages/Mako-1.1.4-py2.7.egg
Processing dependencies for Mako==1.1.4
Searching for MarkupSafe>=0.9.2
Reading https://pypi.org/simple/MarkupSafe/
Downloading https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz#sha256=594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a
Best match: MarkupSafe 2.0.1
Processing MarkupSafe-2.0.1.tar.gz
Writing /var/folders/cz/nypc0v0s4tg8fmm2jwb6lmm80000gn/T/easy_install-9s8cXq/MarkupSafe-2.0.1/setup.cfg
Running MarkupSafe-2.0.1/setup.py -q bdist_egg --dist-dir /var/folders/cz/nypc0v0s4tg8fmm2jwb6lmm80000gn/T/easy_install-9s8cXq/MarkupSafe-2.0.1/egg-dist-tmp-y3MAP_
Traceback (most recent call last):
  File "setup.py", line 96, in <module>
    'lingua',
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.py", line 117, in do_egg_install
    cmd.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 418, in run
    self.easy_install(spec, not self.no_deps)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 660, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 707, in install_item
    self.process_distribution(spec, dist, deps)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 752, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 782, in resolve
    replace_conflicting=replace_conflicting
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1077, in obtain
    return installer(requirement)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 679, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 705, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 890, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1158, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1144, in run_setup
    run_setup(setup_script, args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/cz/nypc0v0s4tg8fmm2jwb6lmm80000gn/T/easy_install-9s8cXq/MarkupSafe-2.0.1/setup.py", line 61, in <module>
    url="https://www.makotemplates.org/",
  File "/var/folders/cz/nypc0v0s4tg8fmm2jwb6lmm80000gn/T/easy_install-9s8cXq/MarkupSafe-2.0.1/setup.py", line 44, in run_setup
    classifiers=[
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 124, in setup
    dist.parse_config_files()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 698, in parse_config_files
    ignore_option_errors=ignore_option_errors)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/config.py", line 120, in parse_configuration
    meta.parse()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/config.py", line 425, in parse
    section_parser_method(section_options)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/config.py", line 398, in parse_section
    self[name] = value
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/config.py", line 183, in __setitem__
    value = parser(value)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/config.py", line 513, in _parse_version
    version = self._parse_attr(value, self.package_dir)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/config.py", line 349, in _parse_attr
    value = getattr(module, attr_name)
AttributeError: 'module' object has no attribute '__version__'
$

Can anyone help my?
73, Mario

This isn't an issue with Mako, but with how Python is currently installed on your operating system.  The actual issue is happening when installing MarkupSafe, a dependent library.
You're going to get the best help on this from the libvolk people.  What I can tell you that may work or help you get in the right direction:

you're using python2, which is basically EOL. there may be some libraries and tools that are severely out of date.  i would try the following commands:
pip install --upgrade pip
pip install --upgrade setuptools
pip install MarkupSafe

that will upgrade the package manager, upgrade the installation manager, and try to install Markupsafe, which is failing.  If that works, you may be set to finish installing whatever else you need.

libvolk seems to support and prefer Python3. I would install the newest Python3 interpreter.  you can get it here:  https://www.python.org/downloads/macos/

installing Python3 will keep the Python2 system in place, but just add a python3 directory and framework.  you should be left with a python2 + pip2 and python3 + pip3 executables. python and pip will be symlinks to either the v2 or v3 installation, but I have no idea what that installer will do.

Adding:
$ PYTHONPATH=$HOME/tmp/Mako/lib/python2.7/site-packages/
$ export PYTHONPATH
$ python setup.py install --prefix $HOME/tmp/Mako

those lines are having you install Python into a tmp directory. I would not do that.  You should either leave out the pythonpath, or use virtualenv if you want to sequester everything https://virtualenv.pypa.io/en/latest/

those lines are having you install Python into a tmp directory. I would not do that.

I was using a temp directory just to demonstrate the problem installing Mako.


[core] CPU usage when idle - SUPPORT_EVENTS_WAITING

I'm using raylib for a desktop app - it's going well. One issue is CPU and GPU usage when idle. I'm looking for very low power usage when the app is inactive and the full 60fps when in use.
I just tried compiling with SUPPORT_EVENTS_WAITING. It's good for low power usage - less than 1% for CPU and GPU when idle. And it wakes up nicely when input events come in. The problem with this mode is the render loop depends on events to keep ticking so the FPS is never high enough when active.
I'm thinking about a hybrid approach where glfwWaitEvents is used when idle and glfwPollEvents when active. Is this feasible? Is there a better idea? How to know when the window is inactive is one immediate question.
By the way, I'm using SUPPORT_HALFBUSY_WAIT_LOOP for all tests.

Hi @frithrah, I think this option is only possible if being controlled by user, enabling/disabling active mode when required.
raylib does not expose this option at the moment and, actually, events waiting is only available on desktop platform...
No plans to change this but you can check core.c -> PollInputEvents() implementation, probably it can be tweaked in some way.

Aye. I will play with this. Expect a pull request one day.


[tabs] Problem with initial selection if not first tab ( >= 7.0.0)

Using Nativescript 8.2.3, Android emulator (Pixel 5 API 30)
When the initial tab is not the first, then the incorrect (first) tab is selected though the tab content is selected correctly. This was working fine up to version 6.2.24.

To reproduce, create an Angular, "hello world" test project and modify items.component.ts + items.component.html as follows... Example project attached: uitabs7-0.zip
Add to ``items.component.ts`:
  private _currentTab = 1; // Set initial tab to the second one

  get currentTab(): number {
    return this._currentTab;
  }

  tabChanged(tab: number) {
    this._currentTab = tab;
  }

Change <GridLayout> in items.component.html to be:
<GridLayout>
  <MDTabs [selectedIndex]="currentTab" (selectedIndexChanged)="tabChanged($event.newIndex)">
    <MDTabStrip>
      <MDTabStripItem>

      </MDTabStripItem>
      <MDTabStripItem>

      </MDTabStripItem>
      <MDTabStripItem>

      </MDTabStripItem>
    </MDTabStrip>

    <MDTabContentItem>
      <StackLayout verticalAlignment="center" horizontalAlignment="center">

      </StackLayout>
    </MDTabContentItem>

    <MDTabContentItem>
      <StackLayout verticalAlignment="center" horizontalAlignment="center">

      </StackLayout>
    </MDTabContentItem>

    <MDTabContentItem>
      <StackLayout verticalAlignment="center" horizontalAlignment="center">

      </StackLayout>
    </MDTabContentItem>
  </MDTabs>
</GridLayout>

(NB sometimes the problem doesn't manifest itself visually, but in this case the first tab is unselectable until another tab is selected.)

@timbell i tried here with a basic example like this one https://github.com/NativeScript/NativeScript/files/8910031/android_frame_crash_demo.zip and it works just fine.
You need to investigate this a bit more to see what makes it not work in your case

@timbell indeed I misplaced bottom navigation for tabs
did not have time to test your app no. don't have much time those days

@timbell can you try 7.0.21 and tell me if it fixes your issue?

@farfromrefug yes, that fixes it - thanks!
(there's a continuous setSelectedPosition console log message now - maybe left in by mistake?)

@timbell my bad will remove it


Kanban Board Review

The following are details of our Recipe-App project and responsibilities:
Project link: https://github.com/Tumworobere/Recipe-App/projects/1

The project has a team of three ( @AnselemOdims, @Tumworobere, and @Mosams
Team A: @AnselemOdims
Team B: @Tumworobere
Team C: @Mosams

Hi Team,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


The number of options doesn't match the number of widgets

In a document with a checkbox field with one widget but multiple export values with the same actual value:
java.lang.IllegalArgumentException: The number of options doesn't match the number of widgets
	at org.sejda.sambox.pdmodel.interactive.form.PDButton.updateByOption(PDButton.java:437)
	at org.sejda.sambox.pdmodel.interactive.form.PDButton.setValue(PDButton.java:162)

Seems this exception should not be raised if the export values are the same on the checkbox.

In a document with a radio button with one widget but multiple export values which are different:
The number of options doesn't match the number of widgets
java.lang.IllegalArgumentException: The number of options doesn't match the number of widgets
	at org.sejda.sambox.pdmodel.interactive.form.PDButton.updateByOption(PDButton.java:446)
	at org.sejda.sambox.pdmodel.interactive.form.PDButton.constructAppearances(PDButton.java:281)
	at org.sejda.sambox.pdmodel.interactive.form.PDTerminalField.applyChange(PDTerminalField.java:172)
	at org.sejda.sambox.pdmodel.interactive.form.PDButton.setValueIgnoreExportOptions(PDButton.java:177)

Seems this exception should not be raised if the first value is selected, since the widget exists in that scenario.
One solution would be to raise the exception later on, if no widget matches the supplied value.


chore: update DAB to latest devel - b309891

Update DAB to latest devel - b309891
Change to using dashes (-) in place of underscores (_)

See corresponding PR https://github.com/ansible/awx/pull/15677


xargs: wget: No such file or directory

when i first run the bash 2_download_from_urls.sh in my mac, i got
Class: neutral. Total # of urls:    20960
Downloading images...
xargs: wget: No such file or directory
Class: drawings. Total # of urls:    25732
Downloading images...
xargs: wget: No such file or directory
Class: sexy. Total # of urls:    19554
Downloading images...
xargs: wget: No such file or directory
Class: porn. Total # of urls:   116521
Downloading images...
xargs: wget: No such file or directory
Class: hentai. Total # of urls:    45228
Downloading images...
xargs: wget: No such file or directory

thanks for your answer

How to solve this problem？

@xqtbox did you find the answer?


Create donations page

The website currently has a link in its header pointing to a donations page. A donations page which is not complete.
I wouldn't know what to put there, so I'm leaving it up to @odysseywestra

@odysseywestra  can we have a discussion about this? I want to push through and get the website published so I can focus on the app


lock_winrt_module() to prevent C++/WinRT host module from unloading

Active coroutines normally prevent the C++/WinRT host module from unloading because they employ one or more of these techniques:

They are part of an IAsyncAction or IAsyncOperation, which retains a reference to the host module until they are destructed.
They explicitly take a reference to their parent object via get_strong().

The missing case is a fire_and_forget coroutine that is not an instance member function. (Either a free function or a static member function.) These things are not attached to COM objects and therefore cannot prevent the host DLL from unloading.
The new wil::lock_winrt_module() method acquires a reference count on the C++/WinRT host object's module lock (winrt::get_module_lock()) and returns an RAII type that releases the reference upon destruction.
Example usage
winrt::fire_and_forget DoSomethingInBackground()
{
    // take a strong reference to the host module
    // to prevent premature unload.
    auto module_strong = wil::lock_winrt_module();

    co_await DoStuffThatUpdatesGlobals();

    // module_strong destructor release the reference,
    // allowing the module to be unloaded.
}

This is a common problem even for non-COM/WinRT DLLs as well.  A dll that uses coroutines (or threadpool, or createthread) needs to acquire and pin a module handle and then free it when the work item terminates.
Should the coroutine mechanics also bump the loader's refcount with GetModuleHandleEx using the handler function's address to map to a module handle?

@Jonwis, my understanding is you must call FreeLibraryAndExitThread for that to work. is that possible in the cases you are thinking of?

Why not add this to C++/WinRT? Or maybe even make it built-in to fire_and_forget?

Why not add this to C++/WinRT? Or maybe even make it built-in to fire_and_forget?

C++/WinRT should be focused on the projection. It was not intended to be a general-purpose coroutine library.
Helper functions like this can be provided by outside libraries, just like how System.Threading.Tasks is not part of the Windows Runtime C# projection, but is rather a separate library in the BCL.

Being part of wil certainly makes the discoverability for non-MS employees harder, as wil being public is still relatively recent, and the documentation for C++/WinRT never mentions it.

This seems genuinely useful and solves a problem.  As-is it is not a lot of code and gets the job done.  It does rely on cppwinrt to do the heavy lifting so I wonder if it would make sense to have an open backlog item to create a version of this that can be used by code bases that don't otherwise rely on cppwinrt.  If that is not widely needed then it can go un-implemented.  If others do need it then someone can add it in the future.

I wonder if it would make sense to have an open backlog item to create a version of this that can be used by code bases that don't otherwise rely on cppwinrt.

Good point. I'll add a WRL version to cppwinrt_wrl.h. (Could in theory also add an ATL version, but it looks like WIL doesn't bother supporting ATL, so why start now.)

Gonna solve this a different way when I add WRL support. Abandoning this one.


Added video decoding in  ALCustomPickerViewController.swift to 480p.

Added video decoding in  ALCustomPickerViewController.swift to 480p. Added flag to ALApplozicSettings to limit selected video to 5 minutes.

@Sander-Kornev Thanks for PR, Closing this PR we have added this changes in our internal repo  it will be added in our release.


Server plain text password security

I'm a little uneasy with plain text passwords in orientdb-server-config.xml and propose some minor changes in the current dev branch.  I'm also a little uneasy about use of unencrypted binary and text sockets for the server, but I can see how you expect a user to manage their own SSL layer, or use OpenVPN on your commerical service, which I don't know much about.
You already have the encryption machinery in the code so what I've added is basically:

a passphrase hasher invoked by starting ./server.sh with a "-p" argument (only for the linux script).  The server is started and asks twice for a passphrase, then displays your existing digest2String SHA-256 hash, before quitting.  The user pastes the hash into the pass value in the xml config file.
a request for the root passphrase on server startup and shutdown.  At least then the jvm instance invocation is somewhat secure.  This will present a problem when automated spawning of instances, which I'm not doing just at the moment.
the same hash-based authentication when a client tries to log into the server over the http socket.  The password is still transmitted plain, but at least it is stored in the xml as a hash.

Further details at https://groups.google.com/d/msg/orient-database/lYzosWxyYzo/SIk6QbegnaYJ
hoogs

this is already partially fixed, keeping open to make stronger security.

This is a duplicate o #2811 already fixed.


Respect fallback also without json flag in getValue

Allows the following usage:
flagsmith.getValue('refresh_interval', { fallback: 10000 });

Fixes #212

Thanks! This is now in 3.22.1 of flagsmith,flagsmith-es and react-native-flagsmith


API instability

debonding_delegations throws storage error for some accounts
Largest validators:

https://index.oasislabs.com/v1/consensus/accounts/oasis1qqekv2ymgzmd8j2s2u7g0hhc7e77e654kvwqtjwm/debonding_delegations
{"msg":"internal storage error"}

https://index.oasislabs.com/v1/consensus/accounts/oasis1qq3xrq0urs8qcffhvmhfhz4p0mu7ewc8rscnlwxe/debonding_delegations
{"debonding_delegations":null} :heavy_check_mark:

https://index.oasislabs.com/v1/consensus/accounts/oasis1qpn83e8hm3gdhvpfv66xj3qsetkj3ulmkugmmxn3/debonding_delegations
{"debonding_delegations":null} :heavy_check_mark:

https://index.oasislabs.com/v1/consensus/accounts/oasis1qz0ea28d8p4xk8xztems60wq22f9pm2yyyd82tmt/debonding_delegations
{"msg":"internal storage error"}

https://index.oasislabs.com/v1/consensus/accounts/oasis1qzv2rktycpcykhudyvg5l6u75v08lpfcw5nt7aj5/debonding_delegations
{"msg":"internal storage error"}

Hm, also sometimes in delegations:
https://index.oasislabs.com/v1/consensus/accounts/oasis1qz78ap0456g2rk7j6rmtvasc9v2kjhz2s58qgj90/delegations
{"msg":"internal storage error"}

https://index.oasislabs.com/v1/consensus/epochs is also erroring

https://index.oasislabs.com/v1/consensus/transactions?sender=oasis1qz78ap0456g2rk7j6rmtvasc9v2kjhz2s58qgj90
is timeouting  Error 524

Technically, we will need a redeploy and a re-index to clean up bad data. That should be batched with other changes.

Redeployed and re-indexed. The above endpoints work for me.

Seems like lots broke again now that indexer caught up :/

https://index.oasislabs.com/v1/consensus/transactions?sender=oasis1qz78ap0456g2rk7j6rmtvasc9v2kjhz2s58qgj90 is timeouting Error 524

Let's address in https://github.com/oasisprotocol/oasis-indexer/issues/118

Indexer has caught up. The above 5 endpoints work for me.

[ ] oasis1qqekv2ymgzmd8j2s2u7g0hhc7e77e654kvwqtjwm
[ ] oasis1qq3xrq0urs8qcffhvmhfhz4p0mu7ewc8rscnlwxe
[ ]  oasis1qpn83e8hm3gdhvpfv66xj3qsetkj3ulmkugmmxn3
[ ]  oasis1qz0ea28d8p4xk8xztems60wq22f9pm2yyyd82tmt
[ ] oasis1qzv2rktycpcykhudyvg5l6u75v08lpfcw5nt7aj5

https://index.oasislabs.com/v1/consensus/accounts/oasis1qqekv2ymgzmd8j2s2u7g0hhc7e77e654kvwqtjwm/debonding_delegations looks like it has duplicated data:
    {
      "amount": 4337851,
      "shares": 4337851,
      "address": "oasis1qqekv2ymgzmd8j2s2u7g0hhc7e77e654kvwqtjwm",
      "debond_end": 14177
    },
    {
      "amount":<PHONE_NUMBER>065922,
      "shares":<PHONE_NUMBER>065922,
      "address": "oasis1qqekv2ymgzmd8j2s2u7g0hhc7e77e654kvwqtjwm",
      "debond_end": 14177
    }

but others look okay

oh, looks like that is accurate - there were two reclaim txs

https://index.oasislabs.com/v1/consensus/transactions?sender=oasis1qz78ap0456g2rk7j6rmtvasc9v2kjhz2s58qgj90 is timeouting Error 524

moved into https://github.com/oasisprotocol/oasis-indexer/issues/121


benchmarks for Nano 33 BLE Sense

Running "bench" on a Nano 33 BLE Sense.
("Struct Stat" compile error error fixed using https://github.com/ARMmbed/mbed-os/pull/12607/files)
I am wondering if 46.84 KB/Sec write and 47.28 KB/Sec read is the best this board can do, due to the implementation on top of MBED. (See https://forum.arduino.cc/index.php?topic=642496.0)
I tried with Toshiba and a SandDisk 16GB SD Cards.
Benchmark output:

FreeStack: -5092
Type is FAT32
Card size: 15.55 GB (GB = 1E9 bytes)
Manufacturer ID: 0X2
OEM ID: TM
Product: SA16G
Version: 3.1
Serial number: 0X30279627
Manufacturing date: 10/2011
FILE_SIZE_MB = 1
BUF_SIZE = 512 bytes
Starting write test, please wait.
write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
46.84,11017,10864,10921
46.85,11016,10864,10920
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
47.28,10865,10742,10819
47.25,10865,10742,10828

I am wondering if 46.84 KB/Sec write and 47.28 KB/Sec read is the best this board can do, due to the implementation on top of MBED.

I looked at the NANO 33 BLE SPI library. It will be very slow as implemented.
It might be possible to increase the speed but will be tricky and might not work since it would require direct access to the MBED SPI driver, not the Arduino wrapper.
I have ordered a NANO 33 BLE and will see what is possible.

Thanks for looking into this.
And thank you for a great library; I've had the pleasure of using it successfully on a variety of AVR boards.

Hi @greiman
I was wondering if there were any discoveries that can improve the sd card performance for this board?
Thanks in advance!

You could try editing SdFatConfig.h and set USE_SPI_ARRAY_TRANSFER  to one in this section.
/**
 * If USE_SPI_ARRAY_TRANSFER is non-zero and the standard SPI library is
 * use, the array transfer function, transfer(buf, size), will be used.
 * This option will allocate up to a 512 byte temporary buffer for send.
 * This may be faster for some boards.  Do not use this with AVR boards.
 */
#ifndef USE_SPI_ARRAY_TRANSFER
#define USE_SPI_ARRAY_TRANSFER 0
#endif  // USE_SPI_ARRAY_TRANSFER

By coincidence, I was recently reviewing my project from last year. Using fresh copies of most of the libraries, I was wondering why a small SD card write was benching at about 130ms. Changing USE_SPI_ARRAY_TRANSFER to 1 reduced the time to 25~30ms. So, thanks for the confirmation.
I'm not aware of any improvements in the Arduino SPI implementation on top of MBED; I get the impression online that there isn't must love for the Nano 33 BLE; the RP2040 seems to be where the interest is.

The RP2040 is great for a $4 board.  I get about 2 MB/sec with SdFat using array transfer.  Too bad its ADC has a major fault.  Only about 8.5 bits accuracy.  Hope the ADC is corrected with new masks to remove the errata.  I used the second core and it is nice to have two threads.
I have the Arduino Nano version but have not had time to play with it.

There seems to be official acknowledgement of the RP2040 issue, so it looks likely that there will be a fix in future versions. I'll definitely explore them then. I've looked at the ESP32, but that apparently has a noisy ADC. The search for perfection continues...

Here are the results running bench using SDFAT 2.0.7 on the Arduino Nano 33 BLE Sense with USE_SPI_ARRAY_TRANSFER 1 and FILE_SIZE_MB = 1. Looking a lot better than my first post above.
FreeStack: -6064
Type is FAT32
Card size: 15.55 GB (GB = 1E9 bytes)

Manufacturer ID: 0X2
OEM ID: TM
Product: SA16G
Version: 3.1
Serial number: 0X30279627
Manufacturing date: 10/2011

FILE_SIZE_MB = 1
BUF_SIZE = 512 bytes
Starting write test, please wait.

write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
408.50,127134,1165,1247
430.48,1306,1165,1182

Starting read test, please wait.

read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
459.56,1139,1093,1107
459.56,1139,1093,1107

Still less than an Uno but acceptable for many applications.
Uno:

write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
644.66,107836,728,788
678.79,2584,728,748
Starting read test, please wait.
read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
671.14,768,752,756
671.14,768,752,756


Redirect uri and cookie consent

Let's keep pull requests to one issue per. Could you remove the GDPR stuff?

Am gonna create separate pull request.


[Don't Merge] Refactoring

I'll be adding some commits to this PR based on the points laid out in issue #14.
All changes here will be non-functional, and will not affect the behavior of the codebase. Basically just replacing C stuff with C++11/14 stuff and getting rid of some warnings.

Smaller refactors are better than big ones...
Try not to stuff everything in at once. :)
Looks like there is a conflict... rebase!

Smaller refactors are better than big ones...
Right! I was thinking I could separate them by commit, but would you prefer I do each one in a separate branch?

It was my original intent to have each set of logical changes in its own group, and now it is clear to me that my definition of "group" here means branch (or pull request), not commit :smile:
Since a lot of changes in the near future may be project-wide, they will be somewhat large until things level out, but again, I'll keep them in logically-separated components, which should be easy.

Let us know when the PR is ready... I'm assuming it's ready because there is no [do not merge] or other such preamble in the title. :)

Ready! I have one other for virtual/override/default that I'll need to rebase.


Other wiktionaries

Is it planned to support other Wiktionaries besides English Wiktionary?

Unfortunately the api that this addon uses is only available for the English Wiktionary.
And the API development (by Wiktionary/Wikimedia) has pretty much stalled, as far as I know. So I wouldn't hold my hopes up right now.
https://en.wiktionary.org/api/rest_v1/
under wiki page of the /page/definition/{term} section

Status (as of 2016)
The feature is an experimental MVP and enabled only for articles on English Wikipedia. Due to the time cost of expanding the feature to other languages (see Obstacles), further work on the feature is pending based on user engagement.

All right… In the “Obstacles” section:

Wiktionary content is unstructured, and presenting a concise set of definitions requires parsing them from the page HTML.

Then how about using the HTML API? That one is available in every language.

For non-English languages, It's better than I thought it'd be. However, that api gives off pretty odd looking documents sometimes. Still, it might be better than nothing. Using it is very simple as it gives the full page, so that's a plus.
https://zh.wiktionary.org/api/rest_v1/page/html/moi
https://pl.wiktionary.org/api/rest_v1/page/html/moi
I'd just display them as they come, and inject some CSS on top to get the popup colors. But there's no way I'd be doing any sort of parsing there. That's just an impossible task, seeing that every wiktionary is so different.
I might give it a shot in the near future (next week probably) and see how it turns out.

Totally agree. Trying parsing it will break here and there (there is no consensus about page structure in Chinese Wiktionary, for instance), so injecting CSS is the way to go. If there is an issue, it's probably the Wiktionary page itself that broke.

Chose to instead open the associated full Wiktionary page. Firefox has some slight issues displaying pages in the popup (the bug tracker has like a gorillion issues about this), but it's pretty ok.

https://github.com/losnappas/Context-menu-Wiktionary/blob/95c0c6b20217e52159c8037b2ec6ce7129fb0492/background.js#L14
I prefer /api/rest_v1/page/html/ over /wiki/. The sidebar, header and footer in a full page may look bloated.

I didn't realize how easy it is to do that too. But injecting the CSS is tricky. There's not really any good way of knowing when the popup has opened that I can think of.
I'm gonna wait and see for the CSS. I'll make an option for using the api/rest_v1.../html api.

Clicking links is "broken".. Didn't even test before uploading.

One work-around is to wrap the pop-up in an <iframe>, but I’m not sure whether that worth the hassle…

Yeah, that is a possibility. But quite the hassle as you mentioned. However, right now the links are pretty uhh.. rough. I'll see what the discussion in the bug report yields before committing to doing anything.


Fix ignored jupyter-book web accessibility issues (and remove ignore)

Existing issue check

[X] I found no existing issues covering this topic.

Description
When implementing #7 several web accessibility issues were discovered which stem from jupyter-book template-related HTML. This issue focuses on resolving those issues and removing the need for the ignore rules from pa11y.
Ignored rules (within pa11y.json):
// search form has no submit button
"WCAG2AA.Principle3.Guideline3_2.3_2_2.H32.2",
// heading tags detected with no content
"WCAG2AA.Principle1.Guideline1_3.1_3_1.H42.2",
// search form duplicate id
"WCAG2AA.Principle4.Guideline4_1.4_1_1.F77"

Reproducible example
n/a
Versions
Any
Would you like to work on a solution for this?

[X] Yes I am willing to submit a PR!

I've opened https://github.com/executablebooks/jupyter-book/issues/2135 based on the current status here and what was mentioned in #7 .


Question - How can I view the full json payload?

I need some help/guidance in inspect/view the full json payload in the dispatch event documented in the README.md.
My goal is to get the pull request number of the repository that has triggered the workflow.
I have tried a few options in vain
echo ${{ github.event.client_payload }}  # just prints Object
echo ${{ github.event.client_payload.pull_request_url }}  # does not output anything
echo ${{ github.event.client_payload.event.pull_request.number }} # does not output anything

Hi Vikas. This has to do with that it sends the push payload and not the pull_request payload. https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
You could however try to leverage the GitHub API to find which PR a commit belongs to: https://docs.github.com/en/rest/commits/commits#list-pull-requests-associated-with-a-commit


Add Streams.close_stream function.

Functions append_to_stream, stream_forward, read_stream_forward open a stream but never close it, so it occupy memory for process.
Closing stream function gives me the ability to create event_handler in commanded and manually close streams which no longer will be accessed.
It's fragile because if where are will be a subscriber, it wakes up stream, and no one stops it after subscriber unsubscribes. But for me, it's rare to use single_subscriber.

When you look at function signature read_stream_forward(uid, start, count), you don't expect it occupies memory if you have many different uids, and you can close them if you don't expect to access to them anymore, so it's kind of workaround.

Thanks for the pull request @astery.


Add a scheduled workflow to perform smoke test

If this runs successfully in the morning, then I'm planning to templatize it.


add __traits getBitfieldOffset and getBitfieldWidth

Spec for https://github.com/dlang/dmd/pull/17043

I clicked through all 578 instances of "traits" in the DAutoTest log and cannot find any errors.

The DMD PR has not been merged yet, why would you expect the documentation SPEC_RUNNABLE_EXAMPLE_COMPILE to compile successfully ?

---
struct S
{
    int a,b;
    int :2, c:3;
}

static assert(__traits(getBitfieldOffset, S.b) == 0);
static assert(__traits(getBitfieldOffset, S.c) == 2);

---
__stdin.d(4): Error: variable `__stdin.S.__anonBitField1` use -preview=bitfields for bitfield support
__stdin.d(4): Error: variable `__stdin.S.c` use -preview=bitfields for bitfield support
__stdin.d(7): Error: unrecognized trait `getBitfieldOffset`
__stdin.d(7):        while evaluating: `static assert(__traits(getBitfieldOffset, b) == 0)`
__stdin.d(8): Error: unrecognized trait `getBitfieldOffset`
__stdin.d(8):        while evaluating: `static assert(__traits(getBitfieldOffset, c) == 2)`

though I'm not sure how to add -preview=bitfields to a SPEC_RUNNABLE_EXAMPLE_COMPILE

Of course you're right, @thewilsonator . My beef is being unable to find the problem by reading the log file.

though I'm not sure how to add -preview=bitfields to a SPEC_RUNNABLE_EXAMPLE_COMPILE

Grepping the doc files for "preview" shows a hackish way to do it, which I implemented

As always, start at the bottom.

I did, and paged up a few times.

This should not have been merged until the DMD PR has been accepted.


'NORECOMPUTE' is not a recognized UPDATE STATISTICS option.

I update to version ‘Version: 2018-06-27 20:44:12’ and now there is error:
'NORECOMPUTE' is not a recognized UPDATE STATISTICS option.
Date and time: 2018-07-17 18:00:00
Server: TESTSQL
Version: 14.0.3029.16
Edition: Enterprise Edition: Core-based Licensing (64-bit)
Platform: Windows
Procedure: [MaintenanceSolution].[dbo].[IndexOptimize]
Parameters: @Databases = 'USER_DATABASES, -Db2, -Db3', @FragmentationLow = NULL, @FragmentationMedium = NULL, @FragmentationHigh = NULL, @FragmentationLevel1 = 5, @FragmentationLevel2 = 30, @MinNumberOfPages = 1000, @MaxNumberOfPages = NULL, @SortInTempdb = 'N', @MaxDOP = NULL, @FillFactor = NULL, @PadIndex = NULL, @LOBCompaction = 'Y', @UpdateStatistics = 'ALL', @OnlyModifiedStatistics = 'Y', @StatisticsModificationLevel = NULL, @StatisticsSample = NULL, @StatisticsResample = 'N', @PartitionLevel = 'Y', @MSShippedObjects = 'N', @Indexes = NULL, @TimeLimit = NULL, @Delay = NULL, @WaitAtLowPriorityMaxDuration = NULL, @WaitAtLowPriorityAbortAfterWait = NULL, @Resumable = 'N', @AvailabilityGroups = NULL, @LockTimeout = NULL, @LockMessageSeverity = 16, @DatabaseOrder = NULL, @DatabasesInParallel = 'N', @LogToTable = 'Y', @Execute = 'Y'
Version: 2018-06-27 20:44:12
Source: https://ola.hallengren.com
Date and time: 2018-07-17 18:09:31
Command: UPDATE STATISTICS [Database1].[dbo].[Table1] [_WA_Sys_00000008_74EE4BDE] WITH RESAMPLE, NORECOMPUTE ON PARTITIONS(16)
Comment: ObjectType: Table, IndexType: Column, Incremental: Y, RowCount: 2480098, ModificationCounter: 9478979
Msg 50000, Level 16, State 1, Server TESTSQL, Procedure dbo.CommandExecute, Line 173
Msg 155, 'NORECOMPUTE' is not a recognized UPDATE STATISTICS option.
Outcome: Failed
Duration: 00:00:00
Date and time: 2018-07-17 18:09:31
Microsoft SQL Server 2017 (RTM-CU8) (KB4338363) - 14.0.3029.16 (X64)   Jun 13 2018 13:35:56   Copyright (C) 2017 Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Datacenter 10.0  (Build 14393: ) (Hypervisor)

I have reproduced this issue.
It happens for incremental statistics that has no_recompute = 1, when you update the statistics for a partition.
I am working on a fix.

There's a working fix suggested by a community member in issue #285


Disease Restored (Reimagined) Crash during play after October 2023 update

The game crashes during play, with the following error:
Player.log

Looks like the Mod Updater didn't run properly, upon manually forced update, it seemed to stop crashing.


Extend context timeout window for "all" endpoint variants

The "all" variants of the endpoints (i.e. CourseAll in the course controller) currently tend not to have long enough context timeouts to complete without timing out due to the large amount of data they need to supply.
This should be a relatively simple fix, which just involves increasing the timeout on these endpoints to something reasonable yet long enough for the data to be passed back consistently. This will involve some local testing.

I would like to resolve this issue


Quote special chars in login, password in BasicAuth

What do these changes do?
Current  implementation of BasicAuth cannot handle a colon in login/username. This change improves it by using urllb.parse.quote/unquote to escape special chars before/after b64 encoding/decoding.
Are there changes in behavior for the user?
Yes. Eliminates edge case errors when using BasicAuth to encode colon in usernames.
Related issue number
None.
Checklist

[*] I think the code is well written
[*] Unit tests for the changes exist
[ ] Documentation reflects the changes
[* ] Add yourself to CONTRIBUTORS.txt
[ ] Add a new entry to CHANGES.rst

Choose any open position to avoid merge conflicts with other PRs.
Add a link to the issue you are fixing (if any) using #isuue_number format at the end of changelog message. Use Pull Request number if there are no issues for PR or PR covers the issue only partially.

Current coverage is 98.50% (diff: 100%)

Merging #1304 into master will increase coverage by <.01%

@@             master      #1304   diff @@
==========================================
  Files            29         29
  Lines          6497       6501     +4
  Methods           0          0
  Messages          0          0
  Branches       1090       1090
==========================================
+ Hits           6400       6404     +4
  Misses           47         47
  Partials         50         50

Powered by Codecov. Last update d9d4d12...fa18ec8

Checked the RFC again: https://tools.ietf.org/html/rfc1945#section-11.1
Apparently BasicAuth headers should not be quoted. A ":" is not allowed in the usernames. So the right thing to do is for BasicAuth to raise ValueError if given a username with a ":" in it.

Agree with closing the PR and adding a check for colon character.


VoronoiRelaxation

Hi
I have a set of vertices which make a polygon. I created the polygon as follows:
private static VertexPolygon simplePolygon;
private List points;
simplePolygon = new VertexPolygon(points.toArray(new Vector2D[0]));
I need to distribute a specific number (say n) of points over the polygon with the equal distance or fair distribution (or select n points within the polygon). As far as I know, to do this one approach is to split the original polygon into 'n' equal area sub-polygons and select their center as the intended points. And the other one is VoronoiRelaxation. I tried the second solution using your library. But the method "relax" only accepts (GraphType graph, Rectangle boundingBox) and (VoronoiDiagram) which I do not know how can I convert my original polygon to this types. I probed internet and javadoc for any code example of related to my problem but I could not find anything useful.
I would be great if you guide me in this case with code examples or anything useful.
Thank you.

Hi Znbe,
sorry for the delayed answer.
Are you looking for is the arrangement of points in arbitrary polygons? Currently, SiNGA only offers Voronoi relaxation for rectangular bounding boxes. You can achive that by using the following code:
// create new rectangle from point (0,0) to (200,200)
Rectangle boundingBox = new Rectangle(200, 200);
// create random points within the rectangle
List<Vector2D> points = Vectors2D.generateMultipleRandom2DVectors(25, boundingBox);
// generate initial voronoi diagram from the points
VoronoiDiagram voronoiDiagram = VoronoiGenerator.generateVoronoiDiagram(points, boundingBox);
// run relaxation 10 times
int runs = 10;
for (int i = 0; i < runs; i++) {
    // perform one round of relaxation
    List<Vector2D> relaxRelaxedSites = VoronoiRelaxation.relax(voronoiDiagram);
    // create new voronoi diagram using the relaxed sites
    voronoiDiagram = VoronoiGenerator.generateVoronoiDiagram(relaxRelaxedSites, boundingBox);
}
```
All the best
Christoph

Thank you Christoph for your guidance. Exactly I want to distribute n points with equal distances in a polygon.


Unexpected quotations when dumping

When dumping the following JSON, it seems there are some specific situations where strings are not held between quotation marks. For example when a certain string starts with 0, or "08" and "09" strings. Also, strings are not properly indented when containing \t or \r.
Input:
{
  "start-with-0" : {
    "fails": "015678",
    "ok": "115678"
  },
  "number-list" : [
    "01",
    "02",
    "03",
    "04",
    "05",
    "06",
    "07",
    "08",
    "09",
    "10",
    "11"
  ],
  "white-spaces": {
    "string1": "**Hello World**\n\n**Sample Text.** \t End of text.",
    "string2": "**Hello World**\n\n**Sample Text.** \r End of text.",
    "string3": "**Hello World**\n\n**Sample Text.**  End of text.",
  }
}

Output:
start-with-0:
  fails: 015678
  ok: '115678'
number-list:
  - '01'
  - '02'
  - '03'
  - '04'
  - '05'
  - '06'
  - '07'
  - 08
  - 09
  - '10'
  - '11'
white-spaces:
  string1: "**Hello World**\n\n**Sample Text.** \t End of text."
  string2: "**Hello World**\n\n**Sample Text.** \r End of text."
  string3: |-
    **Hello World**

    **Sample Text.**  End of text.

Did you tried online demo with your sample?
Dumper keeps minimal possible quoting, and tries to beautify strings when possible for readability. As far as i see, loading dumed yaml (from your message) is equal to original. Did i missed something?

As the author of the current scalar dumper, I hope this helps:

Numbers beginning with 0 are octals under YAML 1.1. By default the dumper tries to remain backward-compatible, so it escapes strings that could be misinterpreted. In your example the strings that aren't escaped are exactly the ones that aren't valid octals: 015678, 08, and 09 contain the digits 8 and 9. Cf. http://yaml.org/type/int.html. It looks like Ruby's YAML module does something similar: https://stackoverflow.com/questions/33097353.

Escaping tabs was a simplification to avoid potential problems like issue 80. It may have been overly cautious though. I could try adding it if there's demand. (For future reference, some changes would be needed in block indent indicators and line folding.)

The primary goal of the dumper is to preserve content. To preserve a carriage return \r in YAML, it has to be escaped, which necessitates double-quoted style. Otherwise it will be normalized into a \n the next time it's parsed.

Line breaks inside scalar content must be normalized by the YAML processor. Each such line break must be parsed into a single line feed character.
http://yaml.org/spec/1.2/spec.html#id2774608

You could use something like stringvalue.replace(/\r\n?/g, '\n') to normalize each string first if you would rather have a nicely-formatted output and don't mind losing the distinction between \r, \r\n, and \n.

Thank you very much for the quick response.
About the octal numbers, you said:

By default the dumper tries to remain backward-compatible, so it enquotes strings that could be misinterpreted.

Is there a way to avoid this default behavior then? If there is not, would you consider this to be a bug?

I don't see enougth added value to change current behaviour.


Improves groups edit dialog

Disables the Add button when the name input is empty.

Currently, clicking the Add button when the name input is empty does nothing.

In the GroupsEditor (dock panel), clears the name input when trying to add the node to a group that the node is already a member of.

This behavior is already used by the GroupDialog.
A successful add operation clears the name input.
The current behavior is doing nothing.

Removed GroupsEditor::_close() declaration, the implementation has been gone for a long time.
Cleaned up unused headers included in editor/groups_editor.h, and changed some inclusions to forward declaration when possible.

Close as this is an old PR I submitted for master before the vulkan merge. It is now hard to rebase due to various refactoring on master. I'll do a new PR later 🙃


[BUG] When creating new folder in a space it doesnt show up in the space

I need to restart obsidian for the folder to show up. It does not alway happens but more often than not. I've checked the file and it's there just not being picked up by the space.

Ignore this plugin, it's a bag of bugs. Probably the most popular non-functioning plugin every created in the history of plugins.


Specifying a string value in fields should not attempt to autoconvert to integer

See this codepen: https://codesandbox.io/s/oq899oy076
You'll notice that when I type something into the third field, it attempts to turn friends into an array. Strict type-checking should occur, and if a number was not passed (1 !== '1'), it should not attempt to convert to an array.

Haha yup i knew about this and forgot to update docs. As it stands you cant use numbers as field names. We have had some discussion about this exact thing and i dont know if we are going to support it.

It's considered bad practice generally in javascript to use sequenced numbers as keys in objects. 99% of the time, you should be using an array for the data, or if you absolutely need to keep track of random numbers, it's easy enough to simply prefix your key with something like item_1 or n1.

We're able to pass javascript numbers to the field via react, so ideally, I think we should typecheck to see if it's being passed as a string or as a number. (This ideally should be the default stance).
For compatibility: I suggest we add a strict parameter (or similar), that if set to true, will typecheck as intended.
Ideally: If it's a string, it's an object. If it's a number, it's an array. Perhaps add a strict parameter, that will default to true, but when set to false will fallback to current functionality. How many people are currently passing '0' to this? Every example mostly uses idx or similar, so this shouldn't be a huge impact.
You say 99% of the time, but this was my first project and I'm already running into this issue. We have a number system that was changed at a certain point to allow for letters prepended. Having to prepend 'item_' or similar seems like a wonky workaround, as I then need to strip it out later down the line.

Hmm.. while I do agree with @tannerlinsley the number system is a good example of where numbers could make sense for field names.

I would like to see your use-case, as though your example shows a technical use-case, that doesn't provide the whole story.
I will attempt to refactor the internal field path generating functions to allow this. Stay tuned.

Fixe via #170

This is now supported in the latest version!


Huoran/ddqn and prio memory

Description
DDQN & Priority replay memory

Linked issue(s)/Pull request(s)

issue_number

Type of Change

[ ] Non-breaking bug fix
[ ] Breaking bug fix
[ ] New feature
[ ] Test
[ ] Doc update
[ ] Docker update

Related Component

[ ] Simulation toolkit
[ ] RL toolkit
[ ] Distributed toolkit

Has Been Tested

OS:

[ ] Windows
[ ] Mac OS
[ ] Linux

Python version:

[ ] 3.7
[ ] 3.8
[ ] 3.9

Key information snapshot(s):

Needs Follow Up Actions

[ ] New release package
[ ] New docker image

Checklist

[ ] Add/update the related comments
[ ] Add/update the related tests
[ ] Add/update the related documentations
[ ] Update the dependent downstream modules usage

Update the title and description of this PR


Does not install on Ubuntu 16.04.1

Does not install on Ubuntu 16.04.1:
sudo gem install taskwarrior-web
Building native extensions.  This could take a while...
ERROR:  Error installing taskwarrior-web:
	ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/json-1.7.7/ext/json/ext/generator
/usr/bin/ruby2.3 -r ./siteconf20161102-7009-9kuuup.rb extconf.rb
creating Makefile

current directory: /var/lib/gems/2.3.0/gems/json-1.7.7/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /var/lib/gems/2.3.0/gems/json-1.7.7/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function ‘fbuffer_to_s’:
../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
     VALUE result = rb_str_new(FBUFFER_PAIR(fb));
                                               ^
../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
     VALUE result = rb_str_new(FBUFFER_PAIR(fb));
                    ^
Makefile:239: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /var/lib/gems/2.3.0/gems/json-1.7.7 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/json-1.7.7/gem_make.out

Yes, I get the same problem.

Deployed to rubygems, should be fixed.


how to get "tile" (HPoint) updated value with UnityRoomUsers

The "tile" attribute of HUnityEntity class returns only the initial HPoint of an user which is not updated, unless you make a new room_users.request() which is not available with UnityRoomUsers.
Am i right? Is there a solution for this without intercepting a RoomUserMove package?
Alternatively, how can i update the tile attribute of an user inside the room_users.room_users list?
Thanks for helping.

You are right, request is not available in Unity. I'd have to figure out if theres a new alternative packet for this.
I will write something that will allow you to keep track of current user position.

You are right, request is not available in Unity. I'd have to figure out if theres a new alternative packet for this.
I will write something that will allow you to keep track of current user position.

Refs: https://github.com/sirjonasxx/G-Python/pull/9
This pull request resolves the issue

Refs: https://github.com/sirjonasxx/G-Python/pull/9
This pull request resolves the issue

Thank you!

Thank you!