Dockerfile: appcontainer for every arch

Using a script found online,
it is easy to recompile apptainer
to ensure compatibility with the docker's architecture.
May fix #93

I would suggest two changes. Both of them assume that the installation through the deb package is more stable than the installation from source and will more likely work with future releases. I see the installation from source a bit as a workaround/fallback since there is no prepackaged arm release, but I could imagine that they'll add one in the future (once more mac users complain). So with this in mind, I would:

move the installation of additional packages into the script (they will not be needed anymore if there is an arm release).
for x64, leave the installation through the deb package.

This would mean the Dockerfile would do something like (the bash stuff is from memory, so might not work)
RUN if [ $(arch) == "x86_64" ]; \
    then \
        wget https://github.com/apptainer/apptainer/releases/download/v1.0.2/apptainer_1.0.2_amd64.deb \
        && dpkg -i apptainer_1.0.2_amd64.deb \
        && rm apptainer_1.0.2_amd64.deb ; \
    else; \
        ./install-apptainer-from-source.sh
    fi

This is for arch. Is this compatible with the ubuntu base image we are using? If so, it is probably preferable to an installation from source.

I do not agree. If it works, it would be by chance, and there is no good reason it keeps working. Whereas by building from source, you make sure it is compatible with the rest of the system.

Sorry for taking so long to react here. I think the changes in https://github.com/AI-Planning/planutils/commit/0d5a1d1af200efb64937f7efd1b37dd7cc972787 look good. I have two small comments:
First, if the script installs stuff through apt, and does apt update, it will leave some stuff in /var/lib/apt/lists. As I understand it, Dockerfiles usually clean this up to avoid large images. Even though it is cleaned up later in the Dockerfile, this happens in a different layer, which means it will increase the size of the final container. A simple solution would be to move the execution of the script from a separate run command into the apt-get update && apt apt-get install ... && rm -rf /var/lib/apt/lists/*  block. I think it also fits there because it is also installing a dependency.
Second, the script takes the deb from https://github.com/apptainer/apptainer but the sources from https://github.com/hpcng/singularity. Is there a reason not to take Apptainer for both? In particular, the hpcng repo has this note, in their "about" section: "Singularity has been EOL'ed, see Apptainer".

A simple solution would be to move the execution of the script from a separate run command into the apt-get update && apt apt-get install ... && rm -rf /var/lib/apt/lists/* block. I think it also fits there because it is also installing a dependency.

Ok why not. Then the setup of pip and planutils using several RUN commands also deserve to be regrouped. I won't do it here though.

Second, the script takes the deb from https://github.com/apptainer/apptainer but the sources from https://github.com/hpcng/singularity. Is there a reason not to take Apptainer for both? In particular, the hpcng repo has this note, in their "about" section: "Singularity has been EOL'ed, see Apptainer".

Woopsie my bad. I imported that script from a gist, I did not realize it was obsolete.

Hello, please note that the PR is ready for review.
There is no hurry, though.
I know the start of school year is challenging.

Thanks for the notification. I missed the one from Github.
I have one more quibble:
The package installation always installs 1.0.2:
wget https://github.com/apptainer/apptainer/releases/download/v1.0.2/apptainer_1.0.2_amd64.deb

while the installation from source takes its version from the script parameters:
APPTAINER_BASE_NAME=apptainer-$3
wget https://github.com/apptainer/apptainer/releases/download/v$3/$APPTAINER_BASE_NAME.tar.gz

It would make sense to unify this, so calling the script has a more consistent effect (either always installing 1.0.2 or always installing a version given as the parameter). In that direction, I would also change the order of the parameters to mention the apptainer version first (this is the main parameter of the script) and maybe hard-code "linux" as the target OS (the scriptname "install-apptainer-ubuntu.sh" already suggests that the target platform is Ubuntu and since we use apt inside, it is not clear what other parameter choices would make sense).
One more thing: After make install, can we safely clean up the directory containing the source code and the tar file? This would reduce the resulting image size.

There you go =)

I tried this locally and the build failed for me. So I fixed some things in the script (see details in the commit message) and pushed directly to your PR, I hope this is fine. The build on my PC works now. If it also works for you, I think we can merge this. Note that I removed curl because I think it is not used, so please test again to make sure.

It runs fine here, thanks for your test and fixes.

Merged. Thanks for the contribution!


proxy settings don't seem to be honored.

I'm not able to login to my tesla account.
It's a fresh setup, using docker on ubuntu.
I've configured the proxy settings in /root/.docker/config.json
logs from teslamate container:
2021-03-14 20:13:33.606 [info] GET /sign_in
2021-03-14 20:13:33.614 [info] Sent 200 in 6ms
2021-03-14 20:13:53.389 [error] GET https://auth.tesla.com/oauth2/v3/authorize -> error: "timeout" (5024.853 ms)
2021-03-14 20:17:15.318 [warn] Update check failed: %Mint.TransportError{reason: :timeout}

when I attach netshoot to the same container network as the tesla app it can reach the URL
baelen@ws-ubuntu:~$ sudo docker ps
CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                    NAMES
ea8a318d8f2c        postgres:13                  "docker-entrypoint.s…"   About an hour ago   Up About an hour    5432/tcp                 teslamate_database_1
3e07a12f36c8        teslamate/grafana:latest     "/run.sh"                About an hour ago   Up About an hour    <IP_ADDRESS>:3000->3000/tcp   teslamate_grafana_1
a72c6398af00        teslamate/teslamate:latest   "tini -- /bin/sh /en…"   About an hour ago   Up About an hour    <IP_ADDRESS>:4000->4000/tcp   teslamate_teslamate_1
1199f4ffe158        eclipse-mosquitto:1.6        "/docker-entrypoint.…"   About an hour ago   Up About an hour    <IP_ADDRESS>:1883->1883/tcp   teslamate_mosquitto_1
baelen@ws-ubuntu:~$ sudo docker run -it --net container:a72c6398af00 nicolaka/netshoot
                    dP            dP                           dP
                    88            88                           88
88d888b. .d8888b. d8888P .d8888b. 88d888b. .d8888b. .d8888b. d8888P
88'  `88 88ooood8   88   Y8ooooo. 88'  `88 88'  `88 88'  `88   88
88    88 88.  ...   88         88 88    88 88.  .88 88.  .88   88
dP    dP `88888P'   dP   `88888P' dP    dP `88888P' `88888P'   dP

Welcome to Netshoot! (github.com/nicolaka/netshoot)
root @ /
 [1] 🐳  → curl https://auth.tesla.com/oauth2/v3/authorize
<!doctype html>
<html lang="en">
<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">

  <title>Tesla - Error</title>

  <link rel="shortcut icon" href="/images/icons/favicon.ico" type="image/vnd.microsoft.icon" />
  <link rel="icon" type="image/png" href="/images/icons/favicon-196x196.png" sizes="196x196?2" />
  <link rel="icon" type="image/png" href="/images/icons/favicon-160x160.png" sizes="160x160?2" />
  <link rel="icon" type="image/png" href="/images/icons/favicon-96x96.png" sizes="96x96?2" />
  <link rel="icon" type="image/png" href="/images/icons/favicon-16x16.png" sizes="16x16?2" />
  <link rel="icon" type="image/png" href="/images/icons/favicon-32x32.png" sizes="32x32?2" />

The environment variables are passed correctly to the container:
baelen@ws-ubuntu:~$ sudo docker exec a72c6398af00 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=a72c6398af00
http_proxy=http://<IP_ADDRESS>:80
HTTP_PROXY=http://<IP_ADDRESS>:80
https_proxy=http://<IP_ADDRESS>:80
HTTPS_PROXY=http://<IP_ADDRESS>:80
no_proxy=<IP_ADDRESS>/24,<IP_ADDRESS>/24,<IP_ADDRESS>/16,localhost
NO_PROXY=<IP_ADDRESS>/24,<IP_ADDRESS>/24,<IP_ADDRESS>/16,localhost
....

Any idea why the app is not using the environment settings for the proxy?

I don't know how this Docker container proxying works, but if the application has to have explicit support for these environment variable, that's not supported by TeslaMate.

Yes the application would need to honor those environment settings.
I will move my VM to a network where I don't need a proxy.
Perhaps you could flag this as a feature request?
Thanks for all the great work btw !!

All right, I'll move this issue to Discussions then.


Meshing and Memory Problems

Describe the bug
First some sections are meshed incorrectly, with holes and flying faces. Then the memory consumption increases drastically and the game freezes.
To Reproduce
---unknown
Expected behavior
Both the meshing and memory problems should not occur.
System Information (please complete the following information):

OS: Win10
CPU: Ryzen 3700X
GPU: RTX 2060 SUPER
RAM: 32GB

Additional context
When freezed, the game is in the MeshFaceHolder class.

Reason appeared to be that MeshFaces where returned to pool and then used.


HTTP status code within exception

I am using this library, works great for mapping argument exceptions etc.
I have another exception type where I am calling another API. The HTTP status code is within a property in that exception. Is there or can there be a way to handle for this?

At the moment there isn't, but I'd be open to adding an overload to ReturnStatusCode(...)along the lines of:
ReturnStatusCode(Func<Exception, HttpStatusCode>)

Cool, should I work on a PR or is this something you would like to take?

I'm currently doing some work on the API so I can do it as a part of that 👍

Any idea when to expect this enhancement?

Just finishing off the last few bits (I'm working on a major release) so it should be done in the next few days.

I've now released a beta package which includes this functionality (it's included within a major version bump I was working on which includes some breaking changes, but they're just method renames). If you'd like to give it a try I'd love to hear how you get on with it.
The new version can be found here https://www.nuget.org/packages/GlobalExceptionHandler/4.0.0-beta1

I tried the beta. Agree with all the renames, they make a lot more sense.
x.Map<HttpStatusCodeException>().ToStatusCode(ex => (int)((HttpStatusCodeException)ex).StatusCode);

I'd love to be able to pass the generic type passed in at Map<T> all the way down to .ToStatusCode(Func<T, int> x) but unfortunately my GenericFu isn't up to scratch. I'd definitely welcome a PR if you can see some options for making this better?
Another option would also be to add the following overload for those that are using (by choice or necessity) System.Net.HttpStatusCode which would at the very least remove the need to cast the status code to an int?
IHandledFormatters ToStatusCode(Func<Exception, int> statusCodeResolver);
IHandledFormatters ToStatusCode(Func<Exception, HttpStatusCode> statusCodeResolver); // Could add this overload?

@shorbachuk New version with these changes have been uploaded to NuGet. Give it a whirl and let me know what you think.

I just tried it. Its working really great, exactly what I needed.

Great, I'll close this off then. Thanks for the feature suggestion(s)!

Any plans to take this out of beta?

@shorbachuk Yeah, can do it this weekend.

@shorbachuk Just realised I didn't do this! Will do it today, I promise!


Calls into object subclasses that are still floating can cause reference issues

For virtual methods we ensure that the object is still floating once the virtual method returns and not floating during the scope of the virtual method. However the same problem would happen if other callbacks with the floating object would happen, any kind of callback. The first use in the bindings in a transfer none context would sink the floating reference and cause memory leaks or worse.
Unclear how to handle this other than using the floating reference guard in all callbacks, signal handler trampolines, etc.

As this now actually causes crashes in practice and I have a plan that improves the situation at least, let's block the release on this too.


Revert changes from #839 and #846

Applyling labels via github workflow on PR approval ended up being fairly complex to implement and suffers from a race condition as decribed in #839.
Instead, we are going to implement the same functionality using a centralized TensorFlow bot account and GitHub App which is much more suited to what we need.
In summary, with this PR we are going back to the behavior that the reviewer will need to apply ci:run and ci:read_to_merge label manually to get presumit running and get the PR into the merge queue.
BUG=https://issuetracker.google.com/issues/210946861

NIT a bit. WDYT of adding the following at the end of the PR description:
" In summary, currently, the code owner still need to apply ci:run and ci:read_to_merge label manually to get presumit running and get the PR into the merge queue separately".

Good suggestion. Done.


[GTK] Disable this patch for now to fix crasher.

https://github.com/mono/mono/issues/9592
I don't have a proper fix yet, so for now can we just disable this patch?

@monojenkins backport 2018-06


Settings for HiDPI/Retina, fix aspect ratio

Although the documentation for
Multiple Settings
makes it sound like the Expand aspect ratio doesn't do
what we want, godotengine/godot#19912 states that this is the correct way.
~Further documentation may be warranted for the scene tree to
avoid having a clear-color bar at the top of a Retina game.~
~This commit does not yet address that documentation.~
It appears that it was a bug in Escoria that caused the problems with other aspect ratios.

I tested removing _check_screen() on OSX (Retina) and Linux (4k) and it works, but not exports or Windows.

Interestingly, this also make the hud canvas layer scale with the window size, which might it easier to keep positioning of dialogs when they are moved and if the window is scaled. I found no regressions in testing either, so this looks like a good improvement. Thanks, @mjtorn. 👍

No worries; easy mistake. :slightly_smiling_face:


Bidirectional search using BFS in an undirected graph in C++

💥 Proposal
Bidirectional search is an algorithm in which we find the Smallest Path from the source to the target vertex of a graph. In this algorithm, we perform the search operation from two sides, i,e. from the source vertex(Forward Search) and the target vertex(Backward Search) simultaneously. Here bidirectional search will be implemented using BFS.
Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign


Mysql always loading

I install hue 4.0.0 with github doc, but when i run it with build/env/bin/supervisor and log in, then click on Mysql button, it always loading, my pseudo-distributed.ini is:
[[[mysql]]]
name = MySQL
interface=jdbc
options='{"url": "jdbc:mysql:/localhost:3306/test", "driver": "com.mysql.jdbc.Driver", "user": "root", "password": "root"}'

It looks like there's a JS error. Please make sure you clear your browser cache and try to reload.
If not, can you please take a screenshot of the browser console too?
Thanks!

Hi enricoberti
the screenshot like

Thanks! Does this happen also after a clear cache of Chrome?

Yes, never success.

I just tried with a fresh 4.0.1 release and it works with no problems (after clearing the browser cache)


Asset not found

🐛 Bug Report
Image not seen when we have spaces in file name.
Detailed error:
Error: Asset not found: C:\projects\AwesomeProject\Images\img%20test.png for platform:
android
   at C:\projects\AwesomeProject\node_modules\metro\src\Assets.js:147:13
   at Generator.next (<anonymous>)
   at step (C:\projects\AwesomeProject\node_modules\metro\src\Assets.js:326:347)
   at C:\projects\AwesomeProject\node_modules\metro\src\Assets.js:326:507

To Reproduce
Just render Image component with source for an image with spaces in name.
Expected Behavior
Image should be rendered without errors.
Code Example

link to github example
Environment

React Native Environment Info:
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Memory: 4.18 GB / 23.88 GB
Binaries:
Yarn: 1.7.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD

👋there
This seems to be an issue with Metro, which has a dedicated repo: https://github.com/facebook/metro/ so can you please open an issue there?
That said - in general, if possible, I'd suggest you to not have spaces (and other special simbols) in file names when it comes to development in general. That can lead to weird behaviours in the most incredible ways (of which, this is just one).

Putting out the space of the file name fixed the issue for me. Thanks


Use cases for Underscore::constant()

I'm curious about when Underscore::constant() would be applicable? I'm out of the loop and have never seen something like this implemented before (to my knowledge). Thanks!

for example you have to pass in a dependency resolver as callable (read: closure fn) and it is very likely that this callable is invoked() in many places causing that dependency to be newly instantiated everytime.
however if you passed in constant resolver, no matter how many times the resolver callable is invoked you will get same instance.
class A
{
  function dbResolver(callable $fn)
  {
    $db = $fn();
  }
}

class B
{
  function dbResolver(callable $fn)
  {
    $db = $fn();
  }
}

// constant resolver
$dbResolver = underscore()->constant(new Db($dsn));

// send resolver out in the wild
(new A)->dbResolver($dbResolver);
(new B)->dbResolver($dbResolver);

// A, B ... Z will all always have same instance of `Db`


[ECS] 4.0alpha1 bug

 [ERROR] Argument 1 passed to Symplify\EasyCodingStandard\Yaml\CheckerTolerantYamlFileLoader::isReservedKey() must be of
         the type string, integer given, called in
         .../vendor/symplify/easy-coding-standard/src/Yaml/CheckerTolerantYamlFileLoader.php on line 114

Caused by this line - $key is 0 and $value is 'curly_brace_block'

I changed all three calls to $this->isReservedKey((string) $key) and everything works fine. Not completely sure if that's the fix you want.

I see.
Since the key can be integer, proper fix is  in isReservedKey(string $key) => isReservedKey($key).
And return early false on non-strings.


Typo fixed

🦆

Or is it not a typo? But vector is fixed-size, not length, so it won't work

It's intentional, you only want the sign in those, so aligning with BCL int makes sense.
Could consider having a copy sign method or changing it though

Discussion in discord


Added recipe for changing Groovy params

What's changed?

Added recipe for changing Groovy parameter value in method invocation.
What's your motivation?

To be used in Jenkins files (e.g. to update the JDK version).
Have you considered any alternatives or workarounds?

Preconditions for selecting a given method in Groovy did not work as expected (had to use if-statement instead).
Checklist

[x] I've added unit tests to cover both positive and negative cases
[x] I've read and applied the recipe conventions and best practices
[x] I've used the IntelliJ IDEA auto-formatter on affected files

Hi @timtebeek, I incorporated the suggested changes from the GH Action. I think this contribution matches your code styling now.

Hi @timtebeek, yes exactly that is what this recipe does. Thank you for your, feedback, I'll incorporate it now.

Hi, I've added 3 more tests. This tests:

Multiple params
Empty Methods
Parameters of other type.

As of now, this recipe only supports Strings and GStrings

@timtebeek

Hey @timtebeek ! Thank you for your extensive feedback. This is really valuable for me - so far I've only developed InHouse-Recipes for one Repo, where I didn't focus on clean code a lot.
Yes, you're right, this is intended for Jenkinsfiles on our end. We thought, it could be used in other Groovy Use-Cases too.
Initially, we thought we could decide between GString / J.String by using instanceof on mapEntry#getValue. However, we did notice that through all our tests, only J.Strings exist. Meaning, ", as well as ' quotes are represented by J.String. But I've removed extractQuoting() and replaced it by filtering through J.Literal#getType and just replacing the old value inside of J.Literal#getValueSource with the new one. This also replaced the constructor-call with just ".with*"-Operations.
However, I'm not that sure about using a MethodMatcher. I have to point out, that my groovy knowledge is close to zero. But how can types even be used in terms of stuff like a Jenkinsfile or other groovy stuff? You've mentioned other established ways to limit the scope, what would these be?
(PS I didn't mean to stress - I just forgot to ping you on the initial message)


Upgrade to embedded-graphics 0.7

Tracking issue for the breaking change to upgrade to the recently release e-g 0.7.

Closed by #154


Clarification needed : Remote path for background music supported ?

No, you need to download it locally and set it to sdk

@wlanjie sorry but i didn't get the statement 'set it to sdk' , after downloading do i need to move somewhere ?? what is the path or url for sdk ??? will it not accept file:// url ??

/sdcard/a.mp3

@wlanjie  thank you so much that worked, you are best man :) , one last query on this , what if device don't have mounted sdcard then will it work or not ?

If the file cannot be opened, the result is not 0, no music effect


Core - Add support for modules within modules

Support for nested modules is now added.
The following syntax can be used Module1::Module2::Module2::data or similar


oradoc documentation indexing

Hello, after a long period I have decided to update my documentation for Oracle DB and I wanted to use Vorax Indexing mechanism. But what is the problem, documentation for Oracle is no more accessible for download as a HTML https://docs.oracle.com/database/122/ (only epub,pdf, mobi format). I have downloaded it using wget, but I cannot index it.
I have unlet g:vorax_oradoc_index_only and tried to index doc in directories oradoc/ARPLS  , oradoc/SQLREF, oradoc/LNPLS and oradoc/ERRMG which contains SQL, PLSQL ref and ERROR messages documentation.
:VORAXDocIndex ~/oradoc
Done!
But VORAXDocSearch cannot find any suitable references for such a common keyword as SELECT.

Ok I have found a documentation pack in  HTML its little confusing on Oracle pages, unzip, index and the same problem.

Hello,
The documentation format for 12g has changed considerably. Unfortunately, there's no easy fix for this. Taking also into consideration the poor support for Ferret (see #79) I'm going to desupport this feature on future Vorax versions.

And have you got any other idea how to use inline documentation? I don't like flow like, google click click click back to vorax/tmux.

In the past, I used swish-e tool which I believe is not active anymore. Apparently, there's a tool called swish++ which claims to be a rewrite of swish-e. With some clever vim mappings, w3m, tmux and this swish++ you may reach the goal of searching the offline Oracle documentation without leaving the console.


Added team renaming

Added support for team renaming, closes #36

Well Renaming the branch closed the PR >.<


Single Pass Stereo Rendering only shows Teleport in one eye

Using any rendering method besides Multi Pass, results in the teleport area and laser only appearing in the left eye. Changes to the shaders will be required to allow for the improved performance gained from Single Pass rendering

I have this problem too, I'm using HoloLens in my project and Single Pass is a must for performance.

I saw the same issue when using SinglePass(Instanced). Regular SinglePass rendering did work however and still provided a performance bump over MultiPass.


feat: added test case, remove unnecessary optional chaining

PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[x] Other... Please describe: unit test

What is the current behavior?

Issue Number: N/A
Added test case for SearchRequestInterceptor.
Fixed typo in test name.
What is the new behavior?
Test coverage was improved
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
Hi there!
I was interested in your amazing work.
I added some test cases that appear to be missing.

Contributions are welcome


0.15.26 -> 0.15.27: SyntaxError: node_modules/eyes/lib/eyes.js: Octal literal in strict mode

After upgrading from 0.15.26 to 0.15.27 the builder.buildStatic() fails on my project.
I'm using quite old npm package (http://github.com/cloudhead/eyes.js) which uses octal literals inside it's code. I'm using strict mode for my code and "require('eyes')" goes inside it.
Up to 0.15.27 the project compiled successfully.
Is it possible to turn off this checking?
Or could you suggest how I can use legacy third party modules in my code?
Thank you!

It may be better to make a fork of the library?


Initial version of cloropleth map

@taggartgorman in the future can you name the jar with the sdk version instead of 1.0? So jarName-1.9.jar for sdk 1.9


Inverted keys in BatCal menu?

Hello, thank you so much for your firmware and for all your work on it (and all its documentation and videos too)!
I'm not sure it's a real bug, maybe it's the intended behavior, but I guess the up/down keys are inverted in the BatCal menu (tested on a Quansheng K6 with F4HWN v3.6): when I press the up key, the displayed voltage is decreased (and vice-versa, the down key increases the displayed voltage). It's really not a big deal, I just wondered if it was intended. ^^
Have a nice day!

Hello 🤗
When you use the up and down keys, you increase (up key) or decrease (down key) the second value (UNDER battery voltage). It's the change in this second value that affects the voltage.
Armel F4HWN.

Just want to add: it's done this way because pressing a button changes the calibration value, but the voltage does not always change with it. Therefore it's easier to get feedback of proper operation from the calibration value (up to increase, down to decrease)

Oooh my bad, sorry for the issue, and thanks for the explanation! :)


Update Rafiki to use new TB LSM and client

PR: https://github.com/interledger/rafiki/pull/396 / branch s2-update-tigerbeetle


Update README example with kill flag

Hi! Just trying this out, but I noticed that the example in the readme uses a short -k flag, which appears to be unsupported in the current version in favor of the long --kill flag.

Thanks for mentioning this! I should have added -k in when I was adding the SIGKILL option, so I went ahead and did that in 1.6.1. :)


Choosing the system of equations

Motivations:

Currently the system of equations is chosen by setting a class, which is hard-coded in Main.py
The use of classes is a good idea, but the user should probably not have to hard-code a choice.
Instead, an input keyword argument would a more flexible option to make sure the user does not have to dig into the code, also:

it would allow to save the choice of equations to solve as an input parameter, for reproducibility
it would allow to test dynamically all possible systems of equations from automated unit tests, which is not possible / much more complicated if the module has to be edited

I totally agree. How would you do that ? string keyword then SYS determined in an if loop depending of the string input ?
I think a lot of these "specificity" is that I only run my code through in Ipython terminal, so I mostly change the code inside then run some parts of it. A more classic workflow on my side could help

Should I write here or in the pull request ? The message ( initially in the pull request)
About dictionnaries
I really like your system, especially the way you plot it. It's an alternative/complement to what I've done with 'VariableDictionnary.py' (Which is for variables and plots)

I would add in this dictionnary a way to define the same type of notation for variables (as done in 'VariableDictionnary.py'
I would do a fusion between yours and my approach in 'VariableDictionnary.py' , adding a name column, and a category 'parameter' and 'variable' maybe on top of it ?
For the python-user, I would reduce what are inside these "megadictionnary" to only relevant variables/parameters (I've done a ugly but working version at the end of 'VariableDictionnary.py' )
I would print numerical parameters in a separate section of the print
I would use these informations inside the plots also to automatically generate them
I saw that you define variables in '_def_variables.py' for each class. The names of variables are already defined in the class ( in 'self.variables' for each), no need to redefine each time for each module.

About restructuration I tried to integrate what you've done in your code, but I think I would do it badly (I think you haven't finished comments and added to many functions that I could understand at once) so I let you finish the integration !
In the meantime I will work on the integration of new modules ( plots and set of equations )

As a reminder: I will deal with this issue (cf. PR #10  that was a first step) and then deal with issue #3 , but not today, probably sometime next week (sorry, presenting at a conference today)

This is still an issue I have found no elegant solution ( I talk about it in #28 which would be the right place to talk about I guess)

Issue solved with the new architecture !


Bug: reset filter fails when global search is not visible

Hello,
Firstly, thanks for this amazing component !
Just a minor bug, when the global_search is set to invisible, then the resetQuery function fails here (line 1038 of VueBootstrap4Table.vue)
            this.$refs.global_search.value = "";

since the ref does not exists if the global search is not visible. Because of the error, other filters are not reset.
Here is my config :
{
  show_reset_button: true,
  server_mode: true,
  global_search: {
    visibility: false
  }
},

I guess a simple test around the line should be do the trick.
Thanks !
Antoine

Hey @picakoch ,
Thanks for notifying me.. I will do the test and fix the bug.
Cheers,
Ruby.

Hey @picakoch
I fixed the bug in the new release.
Cheers,
Ruby.


Can we avoid multiple rules reporting errors for one regular expression?

For example, the regular expression is /[^a-zA-Z0-9_$]/g, the following error message will appear after checking.

But in fact, as long as I modify it according to the first error prompt, there will be no problem with the following prompts, so I wonder if I can only display the first error message in this case.

That is not possible, since it is impossible to know what each rule will report when processing it.

I think that it makes sense to propose to ESLint core something like /* eslint-disable-plugin %PLUGIN_NAME% */ and next-line version.


Migrate to dart 3.0

or extend SDK constraints

Dart 3 has been implemented in version 2.0.6. Please try that and let me know if any problems arise.


Image Directory through CDN: src URL is being converted to a relative URL

Discussed in https://github.com/thegetty/quire/discussions/861

Originally posted by rrolonNelson October 10, 2023
We are delivering our images from a CDN with images stored in a blob storage, but have encountered an issue where the src URL is being converted to a relative URL.
config.yaml
imageDir: 'https://blobcdn.nelson-atkins.org/wpmediablob/Starr'
figures.yaml
src: figs/5224_c1.png
desired outcome
https://blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png
actual outcome
https:/blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png
which resolves to {URL of current page}/https:/blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png
In build and preview, we have the same issue when you look at the image src URL but in preview, the images will be visible.  (We are using the fix for subdirectories in a build where we had to change the file in the node_modules)
Preview:

Build:

I think the issue comes from using path.join() which will remove any '//'.  Based on the code in image-tag.js it looks like there is a conditional that checks if the src from figures.yaml starts with an HTTP.  To resolve the issue in the light box and inline images we opted to have all the image sources in figures.yaml to have the absolute URL however this seems to break the images on the table of content cards since in table-of-contents/item/image.js the check for if the src starts with HTTP is not there so it will join the imageDir and src regardless of if it starts with an HTTP and make it a path also.

config.yaml
imageDir: 'https://blobcdn.nelson-atkins.org/wpmediablob/Starr'
figures.yaml
src: figs/5224_c1.png
desired outcome
https://blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png
actual outcome on table of contents
https:/blobcdn.nelson-atkins.org/wpmediablob/Starr/https:/blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png
which resolves to {URL of current page}https:/blobcdn.nelson-atkins.org/wpmediablob/Starr/https:/blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png
Build:

Is there a correct way to use images from a blob/cdn or should we endeavor to add the HTTP check to all the places where image src are generated or add a package to join an absolute URL with a path without turning them into relative URLs?

Thank you @rrolonNelson, for starting this discussion. I have now moved it to an official issue, which we will review with our software engineers.
Thank you also to @cbutcosk for your contribution to helping us understand this issue better:

+1, that section of image-tag.js also causes issues if you're pointing to an internal IIIF resource like a staticInlineImage, which also won't be in the asset-images directory and so joining the path produces image 404s

https://github.com/thegetty/quire/discussions/861#discussioncomment-7253418

As a straw man to capture requirements I wrote the following example test cases
const path = require('node:path')
const assert = require('node:assert')
const test = require('node:test')

// "mock" Quire configuration
const config = {
  baseURL: 'https://nelson-atkins.org',
  cdnURL: 'https://blobcdn.nelson-atkins.org/wpmediablob/',
  imageDir: '/assets/images/'
}

/**
 * Resolve the full path for an image
 * Any valid src URI, including using a 'file:' scheme, is passed through unchanged.
 * Relative src paths are qualified with a base URL: either the baseURL or cdnURL.
 *
 * Nota bene: this code is a "strawman" for handling image path use cases,
 * the pattern for integrating this into the current Quire code is TBD...
 */
function resolveImageSrc (src) {
  const cdn = src.startsWith('cdn:')
  src = cdn ? src.slice(4) : src
  let url;
  try {
    url = new URL(src)
  } catch (TypeError) {
    const base = cdn
      ? config.cdnURL
      : path.join(config.baseURL, config.imageDir);
    url = new URL(src, base)
  } finally {
    return url
  }
}

test('fully qualified URI', () => {
  const src = resolveImageSrc('https://blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png')
  assert.equal(src.href, 'https://blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png')
})

test('path using file: scheme', () => {
  const src = resolveImageSrc('file:Starr/figs/5224_c1.png')
  assert.equal(src.href, 'file:///Starr/figs/5224_c1.png')
})

test('relative path', () => {
  const src = resolveImageSrc('Starr/figs/5224_c1.png')
  assert.equal(src.href, 'https://nelson-atkins.org/assets/images/Starr/figs/5224_c1.png')
})

test('path using a pseudo-scheme', () => {
  const src = resolveImageSrc('cdn:Starr/figs/5224_c1.png')
  assert.equal(src.href, 'https://blobcdn.nelson-atkins.org/wpmediablob/Starr/figs/5224_c1.png')
})

@mphstudios Thanks for a peak into a possible solution. That said from my perspective this seems too much complexity for an img tag.
Amending the existing but buggy check in the image tag to only prepend the image asset path for relative file paths would have solved this issue for me when I encountered it (which coincidentally also involved a possibility of emitting actual file:// URLs in img tag src attributes, so please don't overload that URL protocol!).

I am working on this today.  I added the check from image-tag.js to  table-of-contents/item/image.js and am now able to have the images visible in the table of content images. I will get a PR up later today for review.  However I am unsure if there are other areas where the img src is being built like this that might cause issues in other places.

I made a pull request and am open to feedback.  I tried to also get the alt text to be added in but it doesn't seem to want to work https://github.com/thegetty/quire/pull/874

@rrolonNelson #874 looks good, thank you for submitting the fix; I opened #878 to set the figure image alt text.

Citing @mphstudios's comment in PR #874

@rrolonNelson reviewing this solution locally we discovered that the change will break images for the epub output; until we can revisit the solution, if you do not need epub output, the change in this pull-request can be made directly to a local Quire publication.
This issue has not been resolved and will remain on backlog for the time being.


SocketException on Arch Linux with Java 21

starting latest terasology on arch linux with java-21 results in an exception beeing thrown, but game seems to work:
19:26:11.443 [DISCORD-RPC-THREAD] ERROR o.t.s.discordrpc.DiscordRPCThread - Could not create or connect Discord client:
java.lang.RuntimeException: java.net.SocketException: No such file or directory; errno=2
	at com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:167)
	at com.jagrosh.discordipc.entities.pipe.Pipe.openPipe(Pipe.java:67)
	at com.jagrosh.discordipc.IPCClient.connect(IPCClient.java:116)
	at org.terasology.subsystem.discordrpc.DiscordRPCThread.run(DiscordRPCThread.java:170)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.net.SocketException: No such file or directory; errno=2
	at org.newsclub.net.unix.NativeUnixSocket.connect(Native Method)
	at org.newsclub.net.unix.AFUNIXSocketImpl.connect0(AFUNIXSocketImpl.java:317)
	at org.newsclub.net.unix.AFUNIXSocket.connect0(AFUNIXSocket.java:196)
	at org.newsclub.net.unix.AFUNIXSocket.connect(AFUNIXSocket.java:175)
	at org.newsclub.net.unix.AFUNIXSocket.connect(AFUNIXSocket.java:170)
	at com.jagrosh.discordipc.entities.pipe.UnixPipe.<init>(UnixPipe.java:46)
	at com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:163)
	... 4 common frames omitted

Could it be a permission issue regarding socket creation/access?

does it try to connect to discord @jdrueckert  ?


Set kvm.enable_virt_at_load to false by default

Fixes all virtualization solutions that are impacted by the new parameter+default
Can still be enabled manually

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This is would close #363887. The issue is caused by this kernel commit.
Tested this on a bare metal install via
# nixos-rebuild -I nixpkgs=<git_location> boot
on nixos-24.11(commit a0f3e10d9435). Can also test on master if required.
With this PR: VirtualBox works without any extra parameters and it is broken again by setting kvm.enable_virt_at_load=1. As described in #363887 VMs from any virtualization solution can be started in succession (not simultaneously, which is the cause of the issue).
The proposed fix is not the only possible one, but a viable one to get the ball rolling. Other possible solutions (among others):

Add the kernel parameter by default
Amend documentation to add boot.kernelParams = [ "kvm.enable_virt_at_load=0" ]; for all virtualization solutions beside KVM

IMO starting KVM at boot is the wrong default to begin with. It surely makes sense to add this option, but it breaks every other virtualization solution other than KVM by default.

It would be nice if someone could add a backport release-24.11 label. :slightly_smiling_face:


All dialog's title doesn't show from the top-left

Storage Explorer Version: 1.5.0
Platform/OS Version: MacOS High Sierra
Architecture: ia32/x64
Build Number:20180828.2
Commit: ca058b20
Regression From: Not a regression
Steps to Reproduce:

Expand one account.
Open on blob container -> Attempt to delete a blob -> Check the 'Delete Blobs' title.

Expected Experience:
The title starts from top-left on the dialog.

Actual Experience:
The title displays on the top-center of the dialog.

That's expected behavior for Macs. Every Mac window does that.


fix: Str.splitOn -> Str.split

Discovered the following error when attempting to import the Arg module.
── NOT EXPOSED in .../lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE/Arg/Help.roc ─

The Str module does not expose `splitOn`:

342│      |> Str.splitOn "\n"
             ^^^^^^^^^^^

Did you mean one of these?

    Str.split
    Str.splitLast
    Str.splitFirst
    Str.isEmpty

────────────────────────────────────────────────────────────────────────────────

1 error and 1 warning found in 47 ms

This PR fixes this and one other occurrence of the Str.splitOn function.
This error was triggered with the following compiler version:
roc nightly pre-release, built from commit 8dbc909 on Fr 15 Nov 2024 09:02:07 UTC

This was a recent change, and this PR is in the wrong direction. See here for details.


[Windows] After FlutterWnd is hidden and reshown, the FlutterViewController becomes 'blank'

Using Flutter on Windows Devices, if the FlutterWnd is hidden and then reshown, the FlutterViewController will be blank. The Widgets won't be drawn until we trigger the update manually.
The bug as shown in the video:
https://user-images.githubusercontent.com/3714809/161705869-82da5cd4-6faa-40e6-a2fe-8194f08ec411.mp4

Steps to Reproduce

Create a Windows demo
Copy and paste 'Code Sample' into main.cpp
flutter run
The  window will be displayed after the Demo started, and it will hidden after 13 seconds.
At then it will be reshown agin, but the FlutterViewController will be 'blank'.

Expected results:
The FlutterViewController should draw the Widgets.
Actual results:
Only blank page.

Code sample
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>

#include "flutter_window.h"
#include "utils.h"

#include <Windows.h>
#include <iostream>

static HWND sFlutterWnd = nullptr;
static void CALLBACK HideTimerProc(HWND hwnd, UINT nMsg, UINT_PTR nTimerId, DWORD dwTime)
{
    std::cout << "HideTimeProc fired" << std::endl;
    ::ShowWindow(sFlutterWnd, SW_HIDE);
    ::KillTimer(sFlutterWnd, 1);
}
static void CALLBACK ShowTimerProc(HWND hwnd, UINT nMsg, UINT_PTR nTimerId, DWORD dwTime)
{
    std::cout << "ShowTimeProc fired" << std::endl;
    ::ShowWindow(sFlutterWnd, SW_SHOWNORMAL);
    ::KillTimer(sFlutterWnd, 2);
}

int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
                      _In_ wchar_t *command_line, _In_ int show_command) {
    // Attach to console when present (e.g., 'flutter run') or create a
    // new console when running with a debugger.
    if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
        CreateAndAttachConsole();
    }

    // Initialize COM, so that it is available for use in the library and/or
    // plugins.
    ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);

    flutter::DartProject project(L"data");

    std::vector<std::string> command_line_arguments =
        GetCommandLineArguments();

    project.set_dart_entrypoint_arguments(std::move(command_line_arguments));

    FlutterWindow window(project);
    Win32Window::Point origin(10, 10);
    Win32Window::Size size(1280, 720);
    if (!window.CreateAndShow(L"example", origin, size)) {
        return EXIT_FAILURE;
    }
    window.SetQuitOnClose(true);

    sFlutterWnd = window.GetHandle();
    // hide
    SetTimer(sFlutterWnd, 1, 13 * 1000, HideTimerProc);
    // show
    SetTimer(sFlutterWnd, 2, 15 * 1000, ShowTimerProc);

    ::MSG msg;
    while (::GetMessage(&msg, nullptr, 0, 0)) {
        ::TranslateMessage(&msg);
        ::DispatchMessage(&msg);
    }

    ::CoUninitialize();
    return EXIT_SUCCESS;
}

Logs
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.4-0.0.pre.1, on Microsoft Windows [Version 10.0.19042.1586], locale zh-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.10)[√] Android Studio (version 2020.3)
[√] VS Code (version 1.66.0)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.

Hi @Taijuk, thanks for filing the issue. Can you please recheck the code sample in the main.cpp? The editor seems to complain
argument of type "void (__stdcall *)(HWND hwnd, UINT nMsg, UINT nTimerId, DWORD dwTime)" is incompatible with parameter of type "TIMERPROC"C/C++(

and the build fails with error
Launching lib\main.dart on Windows in debug mode...
C:\Users\mahesh\Downloads\crash_repro\windows\runner\main.cpp(55,54): error C2664: 'UINT_PTR SetTimer(HWND,UINT_PTR,UINT,TIMERPROC)': cannot convert argument 4 from 'void (__cdecl *)(HWND,UINT,UINT,DWORD)' to 'TIMERPROC' [C:\Users\mahesh\Downloads\crash_repro\build\windows\runner\crash_repro.vcxproj]
C:\Users\mahesh\Downloads\crash_repro\windows\runner\main.cpp(57,54): error C2664: 'UINT_PTR SetTimer(HWND,UINT_PTR,UINT,TIMERPROC)': cannot convert argument 4 from 'void (__cdecl *)(HWND,UINT,UINT,DWORD)' to 'TIMERPROC' [C:\Users\mahesh\Downloads\crash_repro\build\windows\runner\crash_repro.vcxproj]
Exception: Build process failed.
Exited (sigterm)

flutter doctor -v (windows)
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1586],
    locale en-US)
    • Flutter version 2.10.4 at C:\flutter_sdk\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (5 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.19044.1586]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 99.0.4844.82
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 99.0.1150.30

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hi @Taijuk, thanks for filing the issue. Can you please recheck the code sample in the main.cpp? The editor seems to complain
argument of type "void (__stdcall *)(HWND hwnd, UINT nMsg, UINT nTimerId, DWORD dwTime)" is incompatible with parameter of type "TIMERPROC"C/C++(

and the build fails with error
Launching lib\main.dart on Windows in debug mode...
C:\Users\mahesh\Downloads\crash_repro\windows\runner\main.cpp(55,54): error C2664: 'UINT_PTR SetTimer(HWND,UINT_PTR,UINT,TIMERPROC)': cannot convert argument 4 from 'void (__cdecl *)(HWND,UINT,UINT,DWORD)' to 'TIMERPROC' [C:\Users\mahesh\Downloads\crash_repro\build\windows\runner\crash_repro.vcxproj]
C:\Users\mahesh\Downloads\crash_repro\windows\runner\main.cpp(57,54): error C2664: 'UINT_PTR SetTimer(HWND,UINT_PTR,UINT,TIMERPROC)': cannot convert argument 4 from 'void (__cdecl *)(HWND,UINT,UINT,DWORD)' to 'TIMERPROC' [C:\Users\mahesh\Downloads\crash_repro\build\windows\runner\crash_repro.vcxproj]
Exception: Build process failed.
Exited (sigterm)

flutter doctor -v (windows)

@maheshmnj  Sorry my bad. I have updated the 'main.cpp', please try again.

Thanks for the update @Taijuk, I tried your reproducible steps with the updated code sample, But I was not able to reproduce the issue on the latest stable version of flutter 2.10.4. The app worked normally when the window was hidden and shown.
https://user-images.githubusercontent.com/31410839/161901310-994ff2ff-8c36-403d-a7c5-02cfe0426b34.mp4
Also looking at your flutter doctor Channel stable, 2.10.4-0.0.pre.1 this doesn't seem to be the official flutter version.
Can you please share the complete output of flutter doctor -v?

flutter doctor -v (windows)
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1586],
    locale en-US)
    • Flutter version 2.10.4 at C:\flutter_sdk\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (5 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.19044.1586]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 99.0.4844.82
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 99.0.1150.30

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Thanks for the update @Taijuk, I tried your reproducible steps with the updated code sample, But I was not able to reproduce the issue on the latest stable version of flutter 2.10.4. The app worked normally when the window was hidden and shown.
2022-04-06.05-13-48_Trim.mp4
Also looking at your flutter doctor Channel stable, 2.10.4-0.0.pre.1 this doesn't seem to be the official flutter version.
Can you please share the complete output of flutter doctor -v?
flutter doctor -v (windows)

Hi @maheshmnj, I have recheck my flutter version, it seems like I have a locally compiled version. But after switch to Channel stable, the issue still exists.
https://user-images.githubusercontent.com/3714809/162387202-01e0ad62-7f6f-4350-8ef0-086d0675ebad.mp4
My flutter doctor -v
`
[√] Flutter (Channel github/stable, 2.10.4, on Microsoft Windows [Version 10.0.19042.1586], locale zh-CN)
• Flutter version 2.10.4 at D:\work\flutter\flutter
• Upstream repository remotes
• Framework revision c860cba910 (2 weeks ago), 2022-03-25 00:23:12 -0500
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at C:\Users\nuliang\AppData\Local\Android\sdk
X cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.10)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.32126.315
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[√] VS Code (version 1.66.0)
• VS Code at C:\Users\nuliang\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.1586]
• Chrome (web)      • chrome  • web-javascript • Google Chrome 100.0.4896.75
• Edge (web)        • edge    • web-javascript • Microsoft Edge 100.0.1185.29
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
`
The reason why you can not reproduce this issue, I think it may have somethin to do with the state of Flutter widgets. Would you try keep the 'demo' and 'mouse cursor' stable during the test, it may help reproduce the issue.

Thanks for the update @Taijuk, I tried not to move the mouse or press any keys and I am still not able to reproduce it. Can you try running flutter counter app instead and see if it makes any difference (It shouldn;t though).
https://user-images.githubusercontent.com/31410839/162415865-6cba2434-72a2-451a-9656-32d5176a1e8b.mp4

flutter doctor -v (windows)
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1586],
    locale en-US)
    • Flutter version 2.10.4 at C:\flutter_sdk\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (5 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.19044.1586]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 99.0.4844.82
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 99.0.1150.30

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Thanks for the update @Taijuk, I tried not to move the mouse or press any keys and I am still not able to reproduce it. Can you try running flutter counter app instead and see if it makes any difference (It shouldn;t though).
2022-04-08.10-09-19_Trim.mp4
Also are you seeing this issue in any specific mode (debug/profile/release) or all modes?
flutter doctor -v (windows)

Hi @maheshmnj ,thiks for the reminding. It's true that I can't reproduce this issue either with Counter App.
But if I remove the _MyHomePageState's floatingActionButton(comment out lines 110 to 114), the  bug reshown again. I don't known why😂

@Taijuk  that's strange :), Can you please share the reproducible dart code?

@Taijuk that's strange :), Can you please share the reproducible dart code?

@maheshmnj OK, please replace the main.dart with this one:
main.zip

Thanks for the reproducible code @Taijuk, I am able to reproduce the issue on stable and the master channel.  The app goes blank when the window is hidden and reshown. Strangely the issue doesn't reproduce if the floating action button is present in the below code sample, same can be seen in the  above output
https://user-images.githubusercontent.com/31410839/162751811-8061f0ed-3634-4eb7-ad99-7c65bd0ff603.mp4
Steps to reproduce

Replace the code sample in main.dart and main.cpp with the below code sample
Run the app

code sample
windows/runner/main.cpp
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>

#include "flutter_window.h"
#include "utils.h"

#include <Windows.h>
#include <iostream>

static HWND sFlutterWnd = nullptr;
static void CALLBACK HideTimerProc(HWND hwnd, UINT nMsg, UINT_PTR nTimerId, DWORD dwTime)
{
    std::cout << "HideTimeProc fired" << std::endl;
    ::ShowWindow(sFlutterWnd, SW_HIDE);
    ::KillTimer(sFlutterWnd, 1);
}
static void CALLBACK ShowTimerProc(HWND hwnd, UINT nMsg, UINT_PTR nTimerId, DWORD dwTime)
{
    std::cout << "ShowTimeProc fired" << std::endl;
    ::ShowWindow(sFlutterWnd, SW_SHOWNORMAL);
    ::KillTimer(sFlutterWnd, 2);
}

int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
                      _In_ wchar_t *command_line, _In_ int show_command) {
    // Attach to console when present (e.g., 'flutter run') or create a
    // new console when running with a debugger.
    if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
        CreateAndAttachConsole();
    }

    // Initialize COM, so that it is available for use in the library and/or
    // plugins.
    ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);

    flutter::DartProject project(L"data");

    std::vector<std::string> command_line_arguments =
        GetCommandLineArguments();

    project.set_dart_entrypoint_arguments(std::move(command_line_arguments));

    FlutterWindow window(project);
    Win32Window::Point origin(10, 10);
    Win32Window::Size size(1280, 720);
    if (!window.CreateAndShow(L"example", origin, size)) {
        return EXIT_FAILURE;
    }
    window.SetQuitOnClose(true);

    sFlutterWnd = window.GetHandle();
    // hide
    SetTimer(sFlutterWnd, 1, 13 * 1000, HideTimerProc);
    // show
    SetTimer(sFlutterWnd, 2, 15 * 1000, ShowTimerProc);

    ::MSG msg;
    while (::GetMessage(&msg, nullptr, 0, 0)) {
        ::TranslateMessage(&msg);
        ::DispatchMessage(&msg);
    }

    ::CoUninitialize();
    return EXIT_SUCCESS;
}

main.dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    //return Container(color: Colors.red,);
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      // floatingActionButton: FloatingActionButton(
      //   onPressed: _incrementCounter,
      //   tooltip: 'Increment',
      //   child: const Icon(Icons.add),
      // ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

logs
Launching lib\main.dart on Windows in debug mode...
Connecting to VM Service at ws://<IP_ADDRESS>:52102/OhMwrAuhEV0=/ws
HideTimeProc fired
ShowTimeProc fired
Lost connection to device.
Exited (sigterm)

flutter doctor -v (windows)
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1586],
    locale en-US)
    • Flutter version 2.10.4 at C:\flutter_sdk\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (5 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.19044.1586]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 99.0.4844.82
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 99.0.1150.30

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[√] Flutter (Channel master, 2.13.0-0.0.pre.391, on Microsoft Windows [Version
    10.0.19044.1586], locale en-US)
    • Flutter version 2.13.0-0.0.pre.391 at C:\flutter_sdk\master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 08c46bcb58 (5 days ago), 2022-04-05 22:24:05 -0400
    • Engine revision 45bedbe841
    • Dart version 2.17.0 (build 2.17.0-266.0.dev)
    • DevTools version 2.12.1

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.38.1

[√] Connected device (4 available)
    • Windows (desktop)       • windows • windows-x64     • Microsoft Windows
      [Version 10.0.19044.1586]
    • Windows (UWP) (desktop) • winuwp  • windows-uwp-x64 •
    • Chrome (web)            • chrome  • web-javascript  • Google Chrome
      100.0.4896.75
    • Edge (web)              • edge    • web-javascript  • Microsoft Edge
      99.0.1150.30

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

I think adding the FAB helps because it has an animation associated with it.
Probably we're missing a place where we pump a frame when the window is shown.

Seems like a full repaint is missing when a window comes from some hidden state to a shown state.

I found that when the content is static, both the framework and engine will not trigger a new frame in these user cases, e.g., hide/show the app window.
I have created a PR, maybe you can take a look and see if it's the right approach to fix this.

This PR https://github.com/flutter/engine/pull/34306 will also fix a similar issue on Windows 7   https://github.com/flutter/flutter/issues/102030
cc @maheshmnj

This should be addressed in the next Flutter release by https://github.com/flutter/engine/pull/34306


[Startrail-735][Startrail-728][Startrail-729] v1.3.0 subgraph changes

[x] approval event added
[x] provenance modified
[x] bulk events modified

@chatch this PR is ready to review, please check.


Added string argument support for Model::validate() #11368

Q
A

Is bugfix?
yes/no

New feature?
yes/no

Breaks BC?
yes/no

Tests pass?
yes/no

Fixed issues
comma-separated list of tickets # fixed by the PR, if any

Q
A

Is bugfix?
parially

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
#11368

On hold until discussion end in #11368

it's merge :( after git fetch upstream

Breaks BC? 	no

i think it break BC

i think it break BC

Behavior for string is neither declared nor tested and brings unexpected result. I think it's not a BC

Sorry, this PR will not be merged


Cross val endpoint

Proposed changes:

fix https://github.com/RasaHQ/rasa/issues/7408
add option to use cross-validation to existing endpoint for intent evaluation /model/test/intents
add option to run evaluation asynchronously by supporting a callback url
correctly clean up used temporary directories (we didn't do this before)
enable a solution for https://github.com/RasaHQ/rasa-x/issues/4083 by adding support for async train requests in the HTTP API

Status (please check what you already did):

[x] added some tests for the functionality
[x] updated the documentation
[x] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

I tested the callback using https://mockoon.com/

Uff, just discovered that the intent reports etc. actually override each other on disk for the different folds. I assume that's not what we want, right @dakshvar22 ?

@joejuzl Seems I need to refactor more stuff tomorrow. Still means you could review everything except the actual cross-validation

Deleted my messages. Overlooked some indent

@joejuzl Please review everything except the call to the cross-validation itself. Currently refactoring the nlu.test.module

Done with the refactoring.

The decorators are very cool 😎


🐛 [Bug report]: An alert appears when the website loads

Describe the bug
An alert saying New Update Available, Click OK to update prompts on the screen whenever I open a website with a new session.
To Reproduce
Steps to reproduce the behavior:
try opening the website from a different browser or incognito mode
Expected behavior
An alert appearing on the screen like below
Screenshots

Desktop (please complete the following information):

OS: Windows 10 Pro 21H1
Browser: Microsoft Edge
Version: Edge 106.0.1370.42

Additional context

I tried this on Chrome and sometimes it works fine. but many times(mainly on edge) it shows the alert.

this is not a bug. it is the service worker which asks to update the cache whenever it detects content pushed.


[3.x] [tvOS] Basic tvOS Support

Added basic tvOS support.
Implements already closed but not implemented proposal: https://github.com/godotengine/godot-proposals/issues/224
Platform code is based on iOS platform code with minor changes (some iOS stuff isn't available on tvOS).
Audio interruption was also removed - AppleTV don't seem post interruption notification correctly or in right order, which results in game freezing after application loses focus.
Keyboard input backed was changed so keyboard input actually works.
Input is handled by controllers. Apple/Siri Remote are also considered controller (micro)
Export code (including plugins) is also based on iOS platform since both of them export into Xcode project.
But export is also simpler:

Launch screen is storyboard based (no need for launch images)
tvOS project supports empty Apple Team ID
Icons, Signatures and certificates are handled by Xcode project

Core code has been modified to address tvOS unsupported features - no fork and execvp.
Rendering code has been modified for tvOS to use same paths/methods as iOS's.
Mono haven't been ported.
GDNative uses same configuration as iOS platform.

[x] Exports correctly
[x] Runs correctly
[x] Handles input
[x] Plugins support (example https://github.com/naithar/godot-ios-plugins/tree/feature/tvos-support)
[x] GDNative support (https://github.com/godotengine/godot_headers/pull/85 https://github.com/godotengine/godot-cpp/pull/512)
[x] App Store upload

Build container and script PRs: https://github.com/godotengine/build-containers/pull/71, https://github.com/godotengine/godot-build-scripts/pull/21
Since linux-compiled binaries are required to use use_lto to pass App Store checks, I'll place macOS built tvOS templates and binaries here: unofficial tvOS templates

When i submit a version to apple (Apple TV) i got this problem. Can anyone check it this problem still?
https://github.com/godotengine/godot/issues/46565

@paulo-coutinho Please don't bump other people's pull requests to bring attention to your support question. The current Godot version doesn't support tvOS and that pull request is required for tvOS support to work.

Im not doing it. But Apple reviewer check that something is blocking menu button. After i sad to reviewers that it is working and make a video they review again and continue the process. Im only put here to advice. If we cannot discuss on pull-requests remove the comments, put some rules or make is private, since it is a community/opensource project i can comment where i want to try help the project.

Apple guys sad that menu button need be handled to back from game to stage menu, and after to main menu and after to exit. I don't see in this PR how to handle menu button. I tried start button, select button etc but don't see how to detect it. Without these things no make sense add support for tvos because will not pass on review.

I tried start button, select button etc but don't see how to detect it.

Menu button is mapped to JOY_START. You can use it to display in-game pause menu.
https://github.com/godotengine/godot/blob/2472f1bfb3b5b509441e54d4ea63206776a7e33f/platform/tvos/godot_view.mm#L244-L300

Without these things no make sense add support for tvos because will not pass on review.

tvOS wasn't even reviewed by the core team, and it might not be even merged in the end.
But passing the review has nothing to do with it - as I said, my project passed the review without an issue. And it seems like you don't have in-game pause menu.

Yes, i already tried it:
Input.is_joy_button_pressed(0, JOY_START):
    # my code

But it don't enter there.

You might want to try using _input(event) or _unhandled_input(event): with if event as InputEventJoypadButton and event.button_index == JOY_START:.
The problem is probably in int joy_id = OSAppleTV::get_singleton()->joy_id_for_name("Remote"); not returning correct id. It might happen if remote has some other name for some reason and I don't think using constant value like 0 is a good idea.

Hi,
For main action button from TV remote controller or PS4 controller on Apple TV this is working:
func _process(delta):
	var button_pressed = false

	if Input.is_joy_button_pressed(0, 0):
		button_pressed = true

	if button_pressed:
		_on_ButtonStart_pressed()

The only problem is with "menu button". I will try detect it.

As I said, use _input(event): or _unhandled_input(event): methods to detect JOY_START.

Nice. Now we need only a rebuild of it to test. rsrsrsrsrsrs

Nice. Now we need only a rebuild of it to test. rsrsrsrsrsrs

Just use _input(event): for now. I'll rebuilt only when RC4 is released.

Reverting this PR (as well as one for master branch) back to draft for now.
I'm working on simplifying code sharing between UIKit based platforms - iOS and tvOS. Progress is here: https://github.com/naithar/godot/commit/4c30d177218383e6e1e59237b5af2ef5f9f812d8
It's working, but I'm not happy with the overall code structure/cleanliness for now.

Hi,
Any news when it will be available?

Good day! Appeared in yours.
Is it enough just to merge into the 3.4 branch?

Good day! There was a need for tvOS Is it enough just to merge into the 3.4 branch?

This won't be merged in 3.4.x as patch releases are now dedicated to bug fixes only. This can be merged for 3.5 if this is rebased against the latest 3.x branch and tested again.

Good day! There was a need for tvOS Is it enough just to merge into the 3.4 branch?

This won't be merged in 3.4.x as patch releases are now dedicated to bug fixes only. This can be merged for 3.5 if this is rebased against the latest 3.x branch and tested again.

@naithar Can you rebase?

Good day! There was a need for tvOS Is it enough just to merge into the 3.4 branch?

This won't be merged in 3.4.x as patch releases are now dedicated to bug fixes only. This can be merged for 3.5 if this is rebased against the latest 3.x branch and tested again.

It was a question to the author of a branch.
I was unable to build a template for the emulator.
Also, the version worries me about the presence of errors in 3.4.beta.
Tomorrow I will try to merge locally with my branch 3.4. I will do this blindly. Without any understanding of the template device.

Good day! There was a need for tvOS
Is it enough just to merge into the 3.4 branch?

I'm planning to work on this PR and some other iOS issues, but I can't really give a time frame for when it will be ready.
You should be able to use this version of PR after some modifications, but I can't name them as I haven't been following development for some time.

problem control...
remote control uses axes for dpad

I added this to my dpad block.
Otherwise, it is not possible to make smooth control of the remote control.
The second generation console always uses two vectors.
Therefore, counting the pressure is meaningless. If we want to emulate dpad clicks, we need to read vectors.
It is also necessary to enter deadzone.
Try dpad control in a 2D game. be surprised)
InputDefault::JoyAxis jx = {-1, gamepad.dpad.xAxis.value};
OSAppleTV::get_singleton()->joy_axis(joy_id, JOY_ANALOG_LX, jx);

InputDefault::JoyAxis jy = {-1, -gamepad.dpad.yAxis.value}; //inverse y

OSAppleTV::get_singleton()->joy_axis(joy_id, JOY_AXIS_8, jx);
OSAppleTV::get_singleton()->joy_axis(joy_id, JOY_AXIS_9, jx);

//if axis over deadzone -0.5-0.5 - pressed button
if (jx.value < -0.5)
    OSAppleTV::get_singleton()->joy_button(joy_id, JOY_DPAD_LEFT, gamepad.dpad.left.isPressed);
elif (jx.value > 0.5)
    OSAppleTV::get_singleton()->joy_button(joy_id, JOY_DPAD_RIGHT, gamepad.dpad.left.isPressed);

tvOS unsupport NSDocumentDirectory directory.
tvOS prevents writing out of cache or NSUserDefaults
Need use NSUserDefaults (512kb limit)
Need use NSCachesDirectory

Superseded by https://github.com/godotengine/godot/pull/58976 and https://github.com/godotengine/godot/pull/58977


Store and utilize gate duration data

One of the core compilation routines in CL-Quil/quilc relies on knowing the duration of different gates. At present, these fields are filled in with dummy values that reflect rough estimates of what the relative duration between types of gates (e.g., RX vs CZ) is like. We actually have precise timing data for these, and now that we have a database table to store them in within the ISA, it would be nice to give CL-Quil access to the real values.
In some sense, this is highly dependent on changes to the Forest architecture, but we can set quilc up to receive this data ahead of time.

Closed in #210.


Make title optional for navbar_page like it is in the actual function

Fixes #233

Closed because #236 does this.


AGIC with VMSS

Hi, We have configured the AGIC with VMSS. The setup is done and by default the POD IPs are configured as backendpool in application gateway WAF_V2. Since we are using VMSS, we have updated the app gateway backendpool to point to vmss instead pod IPs.  The backend health is failing with error "unable to connect to the server". The NSGs are configured and app gateway and AKS both are in the same VNET. We are unable to fix the issue as there are no logs specific to health check failure.
Any help would be much appreciated.

Hi, Any update on this ? Why the POD IP is added under backendpool when VMSS is used in AKS for auto scale. Eventually, the communication should happen via VMSS to POD internally via route tables/ip tables . The similar setup works fine when we use without VMSS.
It would be great if you can provide more details about the issue.
The issue is explained in stackoverflow.  https://stackoverflow.com/questions/61734606/

Hi @ushabapat , did you mean to set up AppGw to be shared by your VMSS application and AKS services? if yes, please refer to the brownfield deployment


Search requests should probably be put in double quotes

👣 Steps to reproduce
Search "Design Systems" you get more than a thousand results because "Design" and "Systems" are common words, but they have a special meaning together. If you quote the phrase then you only get 29 results, but they are much better results.
🔬 Expected behavior
Fewer results, better results.
🌳 Environments
Any/All

Can I try this?

@Aditya-Kolla Sure, that would be great!


chef-server-ctl restore is not working as expected.

Chef Server Version
14.1.0
Standalone
Platform Details
ubuntu-18.04
Configuration
opscode_erchef['keygen_start_size'] = 30
opscode_erchef['keygen_cache_size']=60
nginx['ssl_dhparam']='/etc/opscode/dhparam.pem'
insecure_addon_compat false
data_collector['token'] = 'foobar' unless data_collector.nil?
profiles['root_url'] = 'https://localhost:9998' unless profiles.nil?
Scenario
Trying to test backup and restore, but after applying backup few services are not getting started(runsv)
Steps to Reproduce
1.Spinning up an ec2 instance and installing chef-server
2.Creating user and org.
3.Taking backup(sudo chef-server-ctl backup /var/opt/backup)
4.Creating another instance and installing chef-server without user and orgs.
5.Applying the backup like sudo chef-server-ctl restore  /tmp/chef-backup-2021-03-10-15-02-29.tgz
Expected Result
Restore should happen without any error.
Actual Result
Users and org is getting restored in database but Getting below error during restoration :
null_resource.chef_server_config (remote-exec): ERROR:  role "oc_id_ro" already exists
null_resource.chef_server_config (remote-exec): ALTER ROLE
null_resource.chef_server_config (remote-exec): ERROR:  role "opscode-pgsql" already exists
null_resource.chef_server_config (remote-exec): ALTER ROLE
null_resource.chef_server_config (remote-exec): ERROR:  role "opscode_chef" already exists
null_resource.chef_server_config (remote-exec): ALTER ROLE
null_resource.chef_server_config (remote-exec): ERROR:  role "opscode_chef_ro" already exists
null_resource.chef_server_config (remote-exec): ALTER ROLE
null_resource.chef_server_config (remote-exec): ERROR:  database "bifrost" already exists
null_resource.chef_server_config (remote-exec): GRANT
null_resource.chef_server_config (remote-exec): ERROR:  database "oc_id" already exists
null_resource.chef_server_config (remote-exec): GRANT
null_resource.chef_server_config (remote-exec): ERROR:  database "opscode-pgsql" already exists
null_resource.chef_server_config (remote-exec): ERROR:  database "opscode_chef" already exists
null_resource.chef_server_config (remote-exec): GRANT
null_resource.chef_server_config (remote-exec): REVOKE
null_resource.chef_server_config (remote-exec): GRANT
null_resource.chef_server_config (remote-exec): You are now connected to database "bifrost" as user "opscode-pgsql".
null_resource.chef_server_config (remote-exec): SET
On further debugging ....getting below error in the target instance:
Running handlers:
Running handlers complete
Chef Infra Client failed. 150 resources updated in 20 seconds
[2021-03-10T16:19:05+00:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2021-03-10T16:19:05+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-03-10T16:19:05+00:00] FATAL: Chef::Exceptions::MultipleFailures: Multiple failures occurred:

Mixlib::ShellOut::ShellCommandFailed occurred in Chef Infra Client run: runit_service[redis_lb] (private-chef::redis_lb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/redis_lb ----
STDOUT: fail: /opt/opscode/service/redis_lb: runsv not running
STDERR:
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/redis_lb ----
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/redis_lb returned 1
Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: component_runit_service[bookshelf] (private-chef::bookshelf line 93) had an error: Mixlib::ShellOut::ShellCommandFailed: runit_service[bookshelf] (/var/opt/opscode/local-mode-cache/cookbooks/enterprise/resources/component_runit_service.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/bookshelf ----
STDOUT: fail: /opt/opscode/service/bookshelf: runsv not running
STDERR:
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/bookshelf ----
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/bookshelf returned 1
Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: component_runit_service[opscode-erchef] (private-chef::opscode-erchef line 98) had an error: Mixlib::ShellOut::ShellCommandFailed: runit_service[opscode-erchef] (/var/opt/opscode/local-mode-cache/cookbooks/enterprise/resources/component_runit_service.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/opscode-erchef ----
STDOUT: fail: /opt/opscode/service/opscode-erchef: runsv not running
STDERR:
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/opscode-erchef ----
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/opscode-erchef returned 1
Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: component_runit_service[nginx] (private-chef::nginx line 246) had an error: Mixlib::ShellOut::ShellCommandFailed: runit_service[nginx] (/var/opt/opscode/local-mode-cache/cookbooks/enterprise/resources/component_runit_service.rb line 83) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx ----
STDOUT: fail: /opt/opscode/service/nginx: runsv not running
STDERR:
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx ----
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/nginx returned 1

I have tried in the local dev VM, found that nginx,opscode-erchef,bookshelf and redis_lb services are not running after restoring the backup.Need to do more investigation for finding the rootcause. @PrajaktaPurohit @tas50

Reproduced at Progress as well.

https://github.com/chef/chef-server/pull/2476

Related: https://github.com/chef/chef-server/issues/2496

PR - #2504

This fix should be available in 14.5 release of Chef Infra Server.


syntax highlighting wrong!

Issue Type: Bug
in the following C++ code:
int main(int argc, char* argv[])
{
    myFile myInput = myFile(argv[1]);
    myFile myOuput = myFile(argv[2]);
}

variable "myInput" is in cyan, but "myOuput" is in white. How could it be?
VS Code version: Code - Insiders 1.38.0-insider (c8d44e24dd250d416475a10efe64e35c9e2c65b3, 2019-08-19T12:53:09.586Z)
OS version: Linux x64 3.10.0-693.17.1.el7.x86_64

System Info

Item
Value

CPUs
Intel(R) Xeon(R) Gold 6130 CPU @ 2.10GHz (32 x 2100)

GPU Status
2d_canvas: unavailable_softwareflash_3d: disabled_softwareflash_stage3d: disabled_softwareflash_stage3d_baseline: disabled_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: disabled_softwareviz_display_compositor: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
0, 0, 0

Memory (System)
187.41GB (4.21GB free)

Process Argv
dio_extend_gather.cc

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

cpptools
ms-
0.24.1

same problem even with the latest ms-vscode.cpptools version 0.25.0-insiders2.

The issue doesn't reproduce if you disable the C++ extension. Please file the issue on the C++ extension.


doc images broken

after starting to use your great project I recognized that all images in your doc md are broken.

doc link path:
https://github.com/Badgerati/Pode.Web/blob/develop/images/button_dynamic.png
image path:
https://github.com/Badgerati/Pode.Web/blob/develop/docs/images/button_dynamic.png

my fault have used the github file explorer of the md files instead of the doc website:
https://badgerati.github.io/Pode.Web/


Remove the boot menu countdown for the production images

Also we need to not allow the boot process to be stopped

[ffissore] This issue has attached support thread https://jel.ly.fish/#/support-thread~738a95f8-5504-49fc-b063-e05667e8e2e2

This is fixed in 2.83.18+rev1


Update alpinejs.md

Updates the docs with what's on the README for permafrost-dev/alpinejs-ray to support Alpine.js version 3

@peterfox I was just about to PR an update to the docs for the new version of alpinejs-ray, but you beat me to it.  Thanks! :+1:

Thanks!

@patinthehat I just noticed the other night it wasn't working for me and the instructions were different today so pure luck in seeing it before you updated it. Thank you for the awesome addition to Alpine.js


Strips HTML from Signature

The HTML signature is stripped of HTML when enarmoring the mail body.

This is expected, we don't support html messages yet (to avoid XSS problems).


fix(Provider): use target in context

Why ❓
In #1252 we introduced ability to use specify target prop on Provider to specify where styles should be rendered. But as we discovered then, it's not enough. See CodeSandbox, for the issue: https://codesandbox.io/s/stardust-ui-example-6quzy?from-embed
Fix 🛠
Add target as a part of existing context.
Why use existing?
All of our components are class component and they can consume only single context without using Context.Consumer.

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS


Build for protobuf 4.25.3 and 5.27.5

Hardcode double protobuf pinning as a workaround for https://github.com/conda-forge/gz-common-feedstock/issues/48k, revert once https://github.com/conda-forge/openvino-feedstock/pull/106 is merged.
Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin please rerender


fix(wallet): filter non wallet dirs and files

Description:
Fix #1862

Motivation and Context:
Filter non-wallet directories when importing wallets

How Has This Been Tested?
Manually

Types of changes:
Bugfix

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes where needed.
[x] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage remained the same at 19.492% when pulling c7d3c0161dd6a9ed1eeb23ea5a5b7c202d1d8c8b on korhaliv:fix/wallet-import into 5e1107e83a1cf8b96670a76e46188137205070fa on LN-Zap:master.


Future release features

A list of features to be added in a future release:

[ ] Use boto3 for AWS backend (see #22)
[ ] Increase test coverage to 97%
[ ] Wrap all exceptions in cloudbridge equivalents
[ ] Add support for Snapshot sharing
[ ] Add Metadata service (see #23)

BONUS

[ ] Add Google Cloud as a new provider (see gce branch)

Wrap all exceptions in cloudbridge equivalents

I would vote for this to get a higher priority ;-)

Some possible strategies for wrapping exceptions and handling other cross-cutting concerns:

Do it individually at base class level

    def create(....):
        do_standard_logging()
        try:
             _create_impl()
        except Exception as e:
            if e instanceof CloudBridgeException:
               raise e
           else:
               raise CloudBridgeException(e)

Do it globally
https://stackoverflow.com/questions/16961914/python-logging-all-of-a-class-methods-without-decorating-each-one

Use an AOP library
https://stackoverflow.com/questions/286958/any-aop-support-library-for-python

Given my .NET background, I prefer:

implement a concrete logic as to avoid exceptions as much as possible; basically you prevent or have multiple backup plans for exceptions.
handle un-avoidable exceptions globally.