SerializeLinqExpressionSerializer.cs - no matching element

Using the latest release I'm getting an error when attempting to instantiate the worker through RunAsync:
var service = await worker.CreateBackgroundServiceAsync<DataLoader>(
                              options => options
                              .AddAssemblies("IMS36.dll", "IMS36.Shared.dll", "System.Net.Http.dll", "System.Net.Primitives.dll", "System.Security.Cryptography.X509Certificates.dll",
                              "System.Diagnostics.Tracing.dll", "Microsoft.Extensions.DependencyInjection.dll").AddHttpClient()
                          );

var result = await service.RunAsync(s => s.UpdateAllTablesAsync(_state,""));
The worker:
   public async Task<ManifestBox<State>> UpdateAllTablesAsync(State _state, string table = "") {
Console:
3e8d9e9d-515f-4de4-b444-0c9b87f230c8:66 WASM-WORKER: BlazorWorker.WorkerBackgroundService.WorkerInstanceManager.PostMessage(): {"MessageType":"InitWorkerComplete"}.
13:08:18.110 3e8d9e9d-515f-4de4-b444-0c9b87f230c8:66 WASM-WORKER: BlazorWorker.WorkerBackgroundService.WorkerInstanceManager.Init(): Done.
13:08:18.276 blazor.webassembly.js:1 WorkerBackgroundServiceProxy.InitAsync(): 1 {"WorkerId":1,"InstanceId":1,"AssemblyName":"IMS36, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null","TypeName":"IMS36.DataLoader","CallId":1,"MessageType":"InitInstance"}
13:08:18.389 3e8d9e9d-515f-4de4-b444-0c9b87f230c8:66 WASM-WORKER: BlazorWorker.WorkerBackgroundService.WorkerInstanceManager.PostMessage(): {"CallId":1,"IsSuccess":true,"Exception":null,"MessageType":"InitInstanceComplete"}.
13:08:18.390 3e8d9e9d-515f-4de4-b444-0c9b87f230c8:66 WASM-WORKER: MessageService.OnMessage: {"WorkerId":1,"InstanceId":1,"AssemblyName":"IMS36, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null","TypeName":"IMS36.DataLoader","CallId":1,"MessageType":"InitInstance"}

blazor.webassembly.js:1

       crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Sequence contains no matching element
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at System.Linq.Enumerable.Single[FieldInfo](IEnumerable`1 source, Func`2 predicate)
   at Serialize.Linq.Factories.TypeResolverNodeFactory.TryToInlineExpression(MemberExpression memberExpression, Expression& inlineExpression)
   at Serialize.Linq.Factories.TypeResolverNodeFactory.ResolveMemberExpression(MemberExpression memberExpression)
   at Serialize.Linq.Factories.TypeResolverNodeFactory.Create(Expression expression)
   at System.Linq.Enumerable.SelectIListIterator`2[[System.Linq.Expressions.Expression, System.Linq.Expressions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[Serialize.Linq.Nodes.ExpressionNode, Serialize.Linq, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=25bcc11ba213b377]].MoveNext()
   at System.Collections.Generic.List`1[[Serialize.Linq.Nodes.ExpressionNode, Serialize.Linq, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=25bcc11ba213b377]].InsertRange(Int32 index, IEnumerable`1 collection)
   at System.Collections.Generic.List`1[[Serialize.Linq.Nodes.ExpressionNode, Serialize.Linq, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=25bcc11ba213b377]].AddRange(IEnumerable`1 collection)
   at Serialize.Linq.Nodes.ExpressionNodeList..ctor(INodeFactory factory, IEnumerable`1 items)
   at Serialize.Linq.Nodes.MethodCallExpressionNode.Initialize(MethodCallExpression expression)
   at Serialize.Linq.Nodes.ExpressionNode`1[[System.Linq.Expressions.MethodCallExpression, System.Linq.Expressions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]..ctor(INodeFactory factory, MethodCallExpression expression)
   at Serialize.Linq.Nodes.MethodCallExpressionNode..ctor(INodeFactory factory, MethodCallExpression expression)
   at Serialize.Linq.Factories.NodeFactory.Create(Expression expression)
   at Serialize.Linq.Factories.TypeResolverNodeFactory.ResolveMethodCallExpression(MethodCallExpression methodCallExpression)
   at Serialize.Linq.Factories.TypeResolverNodeFactory.Create(Expression expression)
   at Serialize.Linq.Nodes.LambdaExpressionNode.Initialize(LambdaExpression expression)
   at Serialize.Linq.Nodes.ExpressionNode`1[[System.Linq.Expressions.LambdaExpression, System.Linq.Expressions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]..ctor(INodeFactory factory, LambdaExpression expression)
   at Serialize.Linq.Nodes.LambdaExpressionNode..ctor(INodeFactory factory, LambdaExpression expression)
   at Serialize.Linq.Factories.NodeFactory.Create(Expression expression)
   at Serialize.Linq.Factories.TypeResolverNodeFactory.Create(Expression expression)
   at Serialize.Linq.Factories.DefaultNodeFactory.Create(Expression expression)
   at Serialize.Linq.Serializers.ExpressionConverter.Convert(Expression expression, FactorySettings factorySettings)
   at Serialize.Linq.Serializers.ExpressionSerializer.SerializeText(Expression expression, FactorySettings factorySettings)
   at BlazorWorker.WorkerBackgroundService.SerializeLinqExpressionSerializer.Serialize(Expression expression) in C:\Users\microDevBox\source\repos\IMS36\BlazorWorker3.1.0\src\BlazorWorker.WorkerBackgroundService\SerializeLinqExpressionSerializer.cs:line 22
   at BlazorWorker.BackgroundServiceFactory.WorkerBackgroundServiceProxy`1.<InvokeAsyncInternal>d__45`1[[IMS36.DataLoader, IMS36, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null],[IMS36.Shared.Models.ManifestBox`1[[IMS36.StateContainer.State, IMS36, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]], IMS36.Shared, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]].MoveNext() in C:\Users\microDevBox\source\repos\IMS36\BlazorWorker3.1.0\src\BlazorWorker.ServiceFactory\WorkerBackgroundServiceProxy.cs:line 379
   at BlazorWorker.BackgroundServiceFactory.WorkerBackgroundServiceProxy`1.<RunAsync>d__41`1[[IMS36.DataLoader, IMS36, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null],[IMS36.Shared.Models.ManifestBox`1[[IMS36.StateContainer.State, IMS36, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]], IMS36.Shared, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]].MoveNext() in C:\Users\microDevBox\source\repos\IMS36\BlazorWorker3.1.0\src\BlazorWorker.ServiceFactory\WorkerBackgroundServiceProxy.cs:line 307
   at IMS36.StateDataManager.InitiateDataLoad(Int32 chunkSize, Int32 delay) in C:\Users\microDevBox\source\repos\IMS36\IMS36\State\StateDataManager.cs:line 55
   at IMS36.Shared.MainLayout.OnInitializedAsync() in C:\Users\microDevBox\source\repos\IMS36\IMS36\Shared\MainLayout.razor:line 168
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Hi - thanks for the rapid response.  State is a cache of my db held locally (6 tables presently) - the worker above issues requests to the API to populate it.  I guess I could totally flatten it by creating separate workers for each table... I'll try this and report back!

Right!  So this works!  I stripped the worker down to being a simple httpClient request:
       public async Task<ApiResponse<List<T>>> Worker<T>(string endPoint, int lastRecordId, int chunkSize)
        {
            return await _httpClient.GetFromJsonAsync<ApiResponse<List<T>>>($"{endPoint}/{lastRecordId}/{chunkSize}");
        }

called from my 'dataloader':
 public async Task<ApiResponse<List<T>>> WorkerGetData<T>(string endPoint,int lastRecordId,int chunkSize)
        {
            var worker = await _workerFactory.CreateAsync();
            var service = await worker.CreateBackgroundServiceAsync<WorkerDataLoader>(
                          options => options
                          .AddAssemblies("IMS36.dll", "IMS36.Shared.dll", "System.Net.Http.Json.dll" ,"System.Net.Http.dll", "System.Text.Encodings.Web.dll",
                          "System.Net.Primitives.dll", "System.Security.Cryptography.X509Certificates.dll", "System.Text.Json.dll",
                          "System.Diagnostics.Tracing.dll", "Microsoft.Extensions.DependencyInjection.dll")
                      );

            var fullURI = xbaseURLs.api + endPoint;
            var result = await service.RunAsync(s => s.Worker<T>(fullURI, lastRecordId, chunkSize));
            return result;
        }

The data 'fetch' (100,000 rows in this case) worked perfectly in the background, taking 5 seconds, the UI being fully usable...
Thanks for your help on this - much appreciated.

Following on - I found a caveat to the above... the 'handover' of the data received from the Worker to the UI thread is taking longer than the httpClient routine itself.  I've put timers on the various parts of the 'WorkerGetData' method and also inside the worker:
Generating Worker Background Service
blazor.webassembly.js:1 Service created in 540ms
blazor.webassembly.js:1 Worker External: Beginning Manifest load
1a7688f1-31c9-4c65-846e-b6092e209560:66 WASM-WORKER: Worker internal: Beginning manifest load
1a7688f1-31c9-4c65-846e-b6092e209560:66 WASM-WORKER: Worker internal: Manifest load finished - in 241
blazor.webassembly.js:1 Worker External: Manifest load finished - in 561ms
dotnet.6.0.2-mauipre.1.22054.8.pfzxtngldm.js:1 [Violation] 'setTimeout' handler took 182ms

This is for a very small dataset (about 20 items, 470Bytes).  Is this to be expected?  The UI is feeling a bit 'jittery' as a result and on occasions locks solid during the worker->ui handover (when I load a larger dataset).

A larger dataset!:
Worker External: Beginning data load
719d0957-5849-4b23-ad4d-1ad481d63ffd:66 WASM-WORKER: Worker internal: Beginning data load
719d0957-5849-4b23-ad4d-1ad481d63ffd:66 WASM-WORKER: Worker internal: Data load finished - 10000 items in 1562
blazor.webassembly.js:1 Worker External: Data load finished - 10000 items in 12125ms
44f2405e-413f-40c4-9f5c-70be620d1a03:287 [Violation] 'message' handler took 8340ms

The transfer of large messages is not something this library does very well. You have to serialize to string, pass it from wasm to js, pass to UI thread, pass the string back to wasm and then deserialize.
"pass to UI thread, pass the string back to wasm and then deserialize" is done on the UI thread.
You could implement streaming/chunking for this part by chunking up the result somehow. It will be less jittery, but smoother for the user, but it certainly won't be faster.
Lots of options on how to implement this, but the simplest one:
Expose events from your treatment. Declare an event on your service, the event listener being on the UI thread, getting back one item at a time. This is probably the easiest way of chunking back a result.
If you manage to use a streaming deserializer from your http call that would be the fastest way, as you can start treating items on the UI thread even before the worker has finished.

Many thanks for this - your chunking solution does sound like the most straightforward way of doing this (raw performance isn't probably so much of an issue as the data probably won't be needed immediately and if it is I can then block the UI with an appropriate 'loading' message and max-speed it).

Closing due to inactivity


setup.py install error when building pytorch extensions

Hello,
I got the following error while running python setup.py install on a Mac Studio Ultra :
/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/extension.py:134: UserWarning: Unknown Extension options: 'verbose'
  warnings.warn(msg)
running install
/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing cosypose.egg-info/PKG-INFO
writing dependency_links to cosypose.egg-info/dependency_links.txt
writing top-level names to cosypose.egg-info/top_level.txt
/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/torch/utils/cpp_extension.py:478: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
  warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'cosypose.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'cosypose.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-11.0-arm64/egg
running install_lib
running build_py
running build_ext
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    setup(
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
    return distutils.core.setup(**attrs)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
    super().run_command(command)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/install.py", line 74, in run
    self.do_egg_install()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/install.py", line 123, in do_egg_install
    self.run_command('bdist_egg')
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
    super().run_command(command)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 164, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
    self.run_command(cmdname)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
    super().run_command(command)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 111, in build
    self.run_command('build_ext')
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
    super().run_command(command)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 487, in build_extensions
    compiler_name, compiler_version = self._check_abi()
  File "/Users/<username>/micromamba/envs/ros_cosypose/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 868, in _check_abi
    compiler = self.compiler.compiler_cxx[0]
IndexError: list index out of range

I managed to solve it by commenting this line in the setup.py file :
# Use correct conda compiler used to build pytorch
os.environ['CXX'] = os.environ.get('GXX', '')

I am not sure if this error is specific to my environment or if I should open a PR.
What's your opinion ?

I'm on Ubuntu 22.04.3 LTS, had the same issue and the solution you provided worked also for me.
Thanks @EtienneAr !


Add Windows platform view class

Add the class for a windows platform view, and a method handler for flutter/platform_views:navigatedOut
https://github.com/flutter/flutter/issues/143375
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

I am still working on testing. That will be pushed soon.

@yaakovschectman From my understanding, these APIs won't work if end users try to use them right now. I would rather not expose APIs that don't work.
Is the Windows platform view work blocked until we land this?
Could these APIs be in a package for now? Or perhaps a long-running branch?

@loic-sharma The main thing that I think must be in the framework that would block further progress is handling the navigatedOut method from the engine, as it will need to be able to issue that method to return keyboard focus to the proper location on the widget tree when navigating out of a platform view.
Aside from that, I think the only thing that would get in the way of moving the relevant new classes to a separate package for now would be that PlatformViewsService.initWindowsView adds entries to its callbacks lists whenever a new win32 platform view is initialized. I do not think we could very easily replicate this without adding it to the framework. Do you have any further thoughts?


Update Nurture.py

🚀 Changes
1. Speech Engine Initialization  (Enhancement)
Issue: The speech engine is initialized every time the program runs, which can lead to delays when starting the speech.
Improvement: Move the engine = pyttsx3.init() line outside the speak function to initialize it only once during program startup.
2. Microphone Input (Bug)
Issue: The microphone is not being configured to adjust for ambient noise, which might lead to inaccuracies in voice recognition.
Improvement: Add recognizer.adjust_for_ambient_noise(source) before listening to improve recognition accuracy.
3.Sleep Duration in Exercises  (Enhancement)
Issue: Using time.sleep() pauses the entire program and can make it feel unresponsive.
Improvement: Use a countdown mechanism with a non-blocking sleep, or provide users the option to control the duration.
4. User Feedback on Command Recognition  (Enhancement)
Issue: There is no feedback if the user's command is recognized, which might lead to confusion.
Improvement: After recognizing a command, acknowledge it by repeating it back to the user before executing the corresponding function.
5. Error Handling in Speech Recognition  (Enhancement)
Issue: If the speech recognition fails, the program will continue to loop without giving the user a chance to retry.
Improvement: Implement a retry mechanism after a recognition error, perhaps with a limit on retries.
6. Randomness in Mindfulness Reminders  (Enhancement)
Issue: Users might find the same reminders repetitive after several sessions.
Improvement: Track the reminders already used in the session and exclude them from the random selection until all have been used.
7. Graceful Exit  (Enhancement)
Issue: The program exits abruptly without giving the user a moment to process the exit message.
Improvement: Add a small delay before the program terminates to allow the exit message to be fully heard.
@suryanshsk  I've made the necessary changes

Please add my profile and number and contributions done in contributor list ! I cannot find mine. @suryanshsk

We will update readme very soon after we merged all PR's of every contributora


no output when a check is correctly done

hello!
i made a check on a client, and this check exit 0, so no problem, and on the client i see the check in green, but i the output is blank.
Uchiwa only display outputs when warning, alert or uknow.

I too have found this to be somewhat frustrating, and while it may not go anywhere, I have raised a ticket in Sensu to store only the last message from the monitors such that it becomes viable to display that information in Uchiwa.
https://github.com/sensu/sensu/issues/860

Client check history (e.g. /clients/:client/history) will soon include the last check result (even if OK). https://github.com/sensu/sensu/blob/master/CHANGELOG.md#0180---tbd

Sensu 0.18 has been released - any plans to include "green light" checks in Uchiwa's views using this new feature?

@andytinycat I created https://github.com/sensu/uchiwa/issues/322 in order to support this new feature in Uchiwa


Sorting results at search time

Add Sort feature
https://www.meilisearch.com/docs/learn/fine_tuning_results/sorting

@Avey777 Sort at search time feature had been added in early version already.


Fix setup error on windows environment

Fixes #9, discussion about the approach fixing this issue can be found in the issue thread.

To avoid running into similar issues in the future, it would be great to run some smoke tests as part of the CI for both lunix and windows environments. Something like:

create a new SFDX project
setup the project
run a component test

@trevor-bliss I am not familiar with the release process of SFDX plugin. Is releasing a new version to NPM sufficient? Or anything else needs to be done to make the new release available.

We'll need help from the SFDX devops folks to make sure it gets integrated into the core CLI. I'll ping them separately.

Is there a solution for this error yet?


[Question] Documentation on which files zappa packages

I'm trying to figure out how zappa determines which file/folders to add to the zip archive.
This section in the readme only seems to cover the virtualenv part and not the actual project repo https://github.com/Miserlou/Zappa#how-zappa-makes-packages .
I think the easiest way would be for me to inspect the archive, but I don't know in what temporary folder zappa creates it before uploading it to s3.
I'd like to know either where the temporary package is created or how zappa determines which files to to include in the zip.
Thanks
Your Environment

Zappa version used: 0.45.1
Operating System and Python version: python 3.6.3 on ubuntu 16.04

You can dump the zip to a path of you choosing with zappa package mystage -o path/to/output.zip.
Also it seems to mostly just copy everything over https://github.com/Miserlou/Zappa/blob/master/zappa/core.py#L515 note that ZIP_EXCLUDES near the top of that file excludes a bunch of dot and generated files. Then copies stuff from site-packages in the venv up too.

Feel free to PR

@paulclarkaranz Thanks for the info, I'll try zappa package mystage -o path/to/output.zip


wrong with pre-train model

There is a problem on the mobilenetV1X0.25_pretrain.tar, Can you update the download link?Thanks

You can clone newest project,  then
git reset --hard f7e3515afec5b036df2ed15e745f6385e3d81770

You will get "model_best.pth.tar" which is mobilenetV1X0.25_pretrain.tar.

You can clone newest project, then
git reset --hard f7e3515afec5b036df2ed15e745f6385e3d81770

You will get "model_best.pth.tar" which is mobilenetV1X0.25_pretrain.tar.

thanks,it works


Getting “A module cannot have multiple default exports” error when  building

The types file has two default exports and this is not supported by TypeScript:
https://github.com/hl037/vue-contenteditable/blob/2b0dc16ba6d77193a717e1b97ac6b6007d07ab03/index.d.ts#L4
https://github.com/hl037/vue-contenteditable/blob/2b0dc16ba6d77193a717e1b97ac6b6007d07ab03/index.d.ts#L41
This could be addressed by making only one of them the default export?

Indeed...
What is even weirder is that it's auto-generated. But It's been quite some time I haven't touched the project, and maybe there was some bug corrected dts-bundle.
I will look into it when I get some times. In the mean time, I think you can safely remove the 2 first lines of this file

yeah. i had to remove the package, though, because my build process does some build processes automatically which prevented me from just including the altered file.

I am upgrading the package to using vite instead of vue-cli. Hopefully, this bug will disappear then...

Should be fixed in v4.0.0


Updates to QA jenkins jobs

rename, update and fix cct job and how it's being triggered
improve magnum QA job
activate testing ISOs for milestones in qa_crowbarsetup.sh
improve QA tempest jobs

All changes successfully tested, magnum job result here: https://ci.suse.de/view/Cloud/view/QA/job/cloud-mkphyscloud-qa-scenario-6a/123/


IsInFrustum not working for active camera while in VR (Edge/Windows MR)

Repro steps:
1.) Open this playground in Edge (Windows MR)
3.) Click the view in headset button
4.) Move head around to look
Normally you'd see the spheres in the scene turn red as the frustum moves around, but in this case they mostly stay yellow because the frustum check is failing in VR.

Because the camera contains rig cameras they need to be checked as well this is not done by default but can be done by passing true as the second param to isInFrustum. Let me know if this pg doesnt work for you https://playground.babylonjs.com/index.html#Z570N8#15

Ahh I see - the playground works for me.  Will use the flag, thank you!


How it works - settings - point 3 has a spelling mistake

[https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/what-if-tool#how-it-works

The configures should be configured.]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ff3f7178-bbd2-cff2-28a4-76a169823522
Version Independent ID: 6cd796b0-a31f-bc36-ee50-23af9e950fd0
Content: The Conditional Access What If tool - Azure Active Directory
Content Source: articles/active-directory/conditional-access/what-if-tool.md
Service: active-directory
Sub-service: conditional-access
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@singhnishant40
Thanks for your feedback! We will investigate and update as appropriate.

@singhnishant40
I have created a PR to update the documentation and will now close out this issue. Please allow some time for the changes to reflect and if you don't see the document update, please let me know.
I will be more than happy to re-open this issue and look into what happened.
Thank you for your time and patience!


dockable layers list

Description
This PR builds on #695 and #714 to now make the layers list and controls dockable. I put the layer creation and viewer buttons on the layer list widget - i think it would get too confusing if we had them all be separate dockable ones. I also restrict these widgets to be on the left and right, and now restrict the console to be on the top and bottom otherwise it's very easy to accidentally drop them in the wrong place.
The styles might need a little bit of work but aren't terrible. We might want to revisit the foreground colouring of the layer controls, I'm very open to that.
Finally if you close either of these dock widgets then you can re-open it from the window, but they aren't redockable!! I really think that is a Qt bug, that can be fixed by triggering a call like
        if self.dockConsole.isFloating():
            self.dockConsole.setFloating(True)

but we'll probably have to intercept the events on our custom QtViewerDockWidget class to get this done.
Curious for feedback @tlambert03 @AhmetCanSolak
Type of change

[x] New feature (non-breaking change which adds functionality)

How has this been tested?

[ ] no tests have been added

Final checklist:

[x] My PR is the minimum possible work for the desired functionality
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works

@tlambert03 I've just tried to do a round of style improvements, but I can't figure out the minimum but expandable width for the dock widget. Also not all the alignments are fixed. Can you take this PR over and bring it to the finish line with better styles, shouldn't be too much more to go at this point.

sure, I'll take a look later today and let you know if I have any questions

@sofroniewn, did you have an idea about where to apply the fix for closed floated windows not redocking?

not really to be honest. Should we also add keybindings to open / close these? Or maybe these ones are so important they shouldn't be closable! I know it punts on the issue, but maybe that's ok here.

How anxious are you to get this in?  I'm running into issues getting the titlebar styles to be acceptable that require me to dig into the docs a bit more than I expected.  I was hoping to wrap up some stuff on #726 while it's fresh in my mind.  OK with you to wait on this a day?

Definitely finish up #726, didn’t mean to pull you away from that. I think we’ll want this to be part of our next release, but there are still a couple more other things to get in too. Thanks for picking this up!!

Just hit on some things that I think will work here.  Will update in a day or so

just pushed some updated styles for you to consider.  Basically, made a new "QtMinimalDockWidget" class (happy to change the name) that has a slim titlebar, with a 1px line, a slight hover effect, and a hand cursor when hovered.  Currently, even when floated it keeps that style (no native window even when floated).  There is a close button that avoids the "permanently-floating" bug by triggering the toggleViewAction() instead of the closeEvent (which strangely enough does the trick).  To slim it down even further, we could remove that close button altogether (or just remove when docked).  Double-clicking on the title bar toggles its floating status.  Here's what it looks like:

@tlambert03 this looks amazing. What was the thinking behind not allowing the controls widget to widen when docked? I was unsure at first, but actually think it makes sense if the layer widget can't widen, though you could imaging allowing that to widen at the name edit box level so you could see longer names. I don't have super strong opinions on this though.
Also can you make the widget with the thumbnail + layer name + icon a tiny bit wider so the right edge is aligned with the right edge of the trashcan and controls - see here:

Then I think it's good for @jni to take a look over and hopefully merge :-)

@tlambert03 this looks amazing. What was the thinking behind not allowing the controls widget to widen when docked? I was unsure at first, but actually think it makes sense if the layer widget can't widen, though you could imaging allowing that to widen at the name edit box level so you could see longer names. I don't have super strong opinions on this though.

Some additional resizing handles show up in that case that I think are ugly.  I think my preference at the moment would be to address more flexible layer-list width in another PR if we find ourselves wishing for it.

Also can you make the widget with the thumbnail + layer name + icon a tiny bit wider so the right edge is aligned with the right edge of the trashcan and controls

That space is there for the scrollbar.  I think the best case scenario would be that the scrollbar steals the space from the layers list,  but could be a bit complicated and/or computationally busy (would need to check whether the scrollbar was visible on both window resize and layer_change events).

Ah forgot about the scroll bar, makes total sense, let’s leave the width as is.
Also makes sense for the widening when docked, let’s leave as is.
Great that you’re going to explore moving all dock widgets over to the new style, I don’t think that will be cleaner

I'd love for the width to be adjustable, but it's not a hill I'm willing to die on (unlike the native titlebar =P), and if it makes things uglier that can certainly come in a later PR.

Hey @sofroniewn, when you have a moment take another look at this.  I made some changes that should allow the QtMinimalDockWidget to just be the general dock widget  (with the close button and 1px solid line handle in the titlebar).  It switches orientation depending on the aspect ratio of the dockwidget and handles the closeEvent well without preventing redocking later:

I went back to the native menubar for floated windows, and was able prevent the permanently-floating problem there too.  I think I might be with @jni on this one that I prefer the native feeling when possible.  Additionally, window resizing seems to work better with the native windows, for some reason...

lastly, I made the vertical scrollbar on the layers list a bit thinner, so that alignment issue with the trash bin is slightly less noticeable when the scrollbar is not visible:

Don't worry too much about the exact code at the moment, but if you like the general behavior feel free to make suggestions for a little refactoring to clean it up.  Note also that the console is temporarily allowed to dock anywhere (just to have something to be able to move around freely).
I think it's pretty close otherwise.  The main questions are: 1) do we want the "minimal widget" here to just be the "always" dockwidget style. and 2) does anyone have any suggestions for style improvements (nit-picky is fine, a pixel here or there certainly can matter).

Loving it. I think it's very close. I think we should only support the "minimal widget" and that should be renamed to be just the QtViewerDockWidget.
Is there any way to get the yellow and green buttons for redock / expand working here:

I actually wouldn't mind having the undock button back here again, next to the x, the icon was quite nice and it will be small. i think i'll find it easier than grabbing and dragging and nicer just to click:

Otherwise looking great. I havn't gone through the code but will wait till the next round of refactors

I can add an additional icon,  but note also that you can double click the title bar to toggle dock state, both when docked and when floating.  Which, though it is less obvious, would make for three different ways to float/dock

Hmm, I did not realize the double click. I think I’d prefer the button as more explicit, but if looks bad we could always drop again. I’d also be fine dropping the double click, but if it comes for free then maybe people will be expecting it

ok I incorporated all the requested changes.  unified a single DockWidget class, added a float button and removed the background from the buttons just to keep them a bit more low-key (would like to make them a bit dimmer... but that seems linked to the svg itself).  Fixed the missing colorbar.  here's how it looks.

Is there any way to get the yellow and green buttons for redock / expand working here

haven't figured out how to enable those...  double-clicking on the title bar still redocks the window, though it's not immediately obvious.
I'm about to jump on a plane.  I think this is ready for a "regular" review whenever anyone is able.

Looks amazing guys! Congrats! Really, wow...

Thanks for taking this to the finish line @tlambert03 - it looks good to go from my perspective, but I'll leave it till tomorrow in case @jni or @kne42 want to weigh in and request changes.
Note that the windows fail is due to a openssl.light problem that is independent from this PR

I don't have time to do a proper code review but the latest status on the interactivity and look makes me super happy. I like the double click, even if it is not very discoverable, just like I liked 3D touch until Apple decided to do away with it. 😭
Currently the Windows tests are failing, not sure if it is related to this PR... But, as I said, functionally, imho this is ready to go, and super awesome.

I like the double click, even if it is not very discoverable

I added a tooltip, "drag to move. double-click to float" that might eventually help some people discover it if they rest their mouse long enough

Thanks for taking a quick look @jni, and glad you like the new functionality. I am going to merge now, @tlambert03 and I have been through this one quite thoroughly. The windows failures are unrelated.

here's hoping for some slightly more "surgical" PRs in the near future :)


[2201.5.0] Fix new-line support for config environment variables

Purpose
$subject
Fixes #40084
Approach
Convert the \\n character sequence into \n when parsing environment variable content.
Samples
Execute following
export BAL_CONFIG_DATA=[ballerina.log]\nformat = \"json\""

And use any log function inside the code.
error:
error: [BAL_CONFIG_DATA:(1:25,1:33)] unused configuration value 'ballerina.log.'

Remarks
Related https://github.com/ballerina-platform/ballerina-lang/issues/40096
CheckList

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[x] Integration Tests
[ ] Ballerina By Example Tests

[x] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

closing as the fix is sent to 2201.5.x
https://github.com/ballerina-platform/ballerina-lang/pull/40203


Python: Chunked array FFI

We want to support chunked array FFI via the PyCapsule interface to interop chunked arrays in the GeoArrow ecosystem.
This is slightly more involved than plain array and Table objects because support doesn't exist natively in arrow-rs. There are two pycapsule methods: __arrow_c_array__ which returns data structures conforming to the Arrow C Data Interface and __arrow_c_stream__ which returns data conforming to the Arrow C Stream Interface. arrow-rs supports both but its ArrowArrayStreamReader assumes that the input over an __arrow_c_stream__ will always represent record batches.
This is because the array and stream interfaces can be overloaded to support both arrays and record batches and both chunked arrays and tables. Usually, a stream will contain a single Struct data type and will represent batches. However in geoarrow we actually have a complicating use case, because sharing a chunked point array with separated encoding will have a struct at the top level (including x and y children).
This begs the question: for a struct-typed stream? When do we interpret it as a table vs a chunked array? While it is possible to have a heuristic, such as "if the struct has geoarrow extension metadata, assume it's a chunked array", I think it would be better to infer it from context.
How many times will we have a function that allows array, chunked array, and table input? I think very rarely, especially since we want to support multiple geometry columns in a table, and so we accepting a table into, say, area would mean we'd either have to assume which input geometry to use or return multiple outputs. I think it's simpler to tell the user to access a chunked array first.
 I think it might be good to have a separate GeometryInput that has only Array and Chunked variants. Then a function like area will take in GeometryInput instead of GeoArrowInput.
Separately, I think it should be possible to implement FromPyObject for GeoTable (well, it's already implemented), meaning that we should be able to accept a GeoTable type in any function and it should work equally well on anything with a __arrow_c_stream__ dunder.
Unless we have a function that accepts both geometries and a table, we can then remove GeoArrowInput.
Implementation-wise, we'll need a custom implementation of ArrowArrayStreamReader since upstream Arrow-rs assumes the stream always contains record batches.

Closed via https://github.com/geoarrow/geoarrow-rs/pull/507


JS/TS: Support language highlight in string literals

JS/TS: Can you add support language highlight in string literals

const myVarWithHLSLCodeInside = /* codeHighlightLanguage: hlsl */ `
HLSL code goes here and is highlighted by VS Code as comment before forced it
`;

const myVarWithCPPCodeInside = /* codeHighlightLanguage: cpp */ `
void main() {
C++ code goes here and is highlighted by VS Code as comment before forced it
}
`;

I might look into doing something like this
is codeHighlightLanguage a standard feature in some ide's etc?
do you know what is typically used to denote the languageId?

This is just proposition, sometimes string literals (in example for JS / TS) consists of some other language (HLSL, GLSL, CPP, Bash etc) and it is very useful if at least highlight this string with already present in IDE language highlight features and I proposed to do special comment right before string literals. But keyword can be any

Try https://marketplace.visualstudio.com/items?itemName=bierner.comment-tagged-templates. I believe it does what you're after

Try https://marketplace.visualstudio.com/items?itemName=bierner.comment-tagged-templates. I believe it does what you're after

Awesome! That is what I want! Thanks!


spec-file validation workflows

Description
added jobs to the github workflows to validate the spec file is matching the openapi specifications.
note that this will only validate that the syntax is correct, it will not validate that the spec-file matches the API behavior
What is it?

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ x] Tests update

Codecov Report

Merging #421 (42f74a3) into main (4f9713d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #421   +/-   ##
=======================================
  Coverage   30.97%   30.97%
=======================================
  Files          31       31
  Lines        3112     3112
=======================================
  Hits          964      964
  Misses       2065     2065
  Partials       83       83

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f9713d...42f74a3. Read the comment docs.


Problem with Plasma 6 display-manager.service on stable (affected: Plasma 6 stable ISO and Gnome ISO - Plasma option during instalation)

Steps To Reproduce
Select iso from official site (Plasma 6) and boot from iso. Display Manger will crash
Select iso from official site (Gnome version) during instalation select Plasma version (Plasma 5 is working), Display manager will crash.
Workaround:

Choose Gnome Iso and during instalation select Plasma 5
Switch to ustable and rebuild
Change related settings from plasma 5 to 6

Please remove Plasma 6 iso from the website and gnome installer. Looks like there is still issue on stable with Plasma 6

@ElvishJerrico we got another one.
Could you share your system specs? CPU/GPU? Have you ever used Plymouth boot on your own configurations? Do you usually use Wayland or X11? Was it difficult to setup Wayland/X11 or was it OOTB?

"Could you share your system specs?"
lshw.log
"Have you ever used Plymouth boot on your own configurations?"
Plymouth option currently not enabled and was not setup
"Do you usually use Wayland or X11? Was it difficult to setup Wayland/X11 or was it OOTB?"
Not to difficult but not ootb (looks like Plasma 6 doesn't work on stable again)
I follow this guides:
https://discourse.nixos.org/t/enable-plasma-6/40541
https://nixos.wiki/wiki/KDE
@Frontear

@Frontear @ElvishJerricco @RossComputerGuy

Looks like problem was fixed on gnome iso
Gnome: nixos-gnome-24.05.6565.689fed12a013-x86_64-linux.iso

@Frontear @ElvishJerricco @RossComputerGuy

Chill with the mass pings, please.


adding carspec tests

I have rebased on main
The problem was that we tested on an illegal action (decelaration zero)
To solve the problem I used generators to use instances.enumAction to only test on legal actions
I also added an assertion test (a precondition) in the step function to ensure it is only called with legal actions. Perhaps this should be done more generally at the interface level.  This is a general test for a learning algo:  step is only called on legal actions.

This is ready to merge.  The general problem is tracked in issue #70.


Volume field in CoreData.xlsx - what is it exactly?

Mentioned this on Slack, putting it here so we don't forget.

Volume of the soil


How to drain worker node for new instance type ?

I have issues
How can I drain old worker nodes to migrate to new instance type ?
I'm submitting a...

[*] support request

What is the current behavior?
Hello, now my instance type has been changed to bigger one.
Launch Configuration and ASG are also updated with new instance type,
hence I checked that cluster-autoscaler makes new node to unscheduled, new pod with new and bigger instance type.
However, the previously run nodes have not been replaced with new instance type.
Searching the solution, I found following issue.[1]

If you want to replace all instances in the cluster with the new type then you need to scale up the amount of instances in the ASG, then drain the old smaller instances, then terminate them.

But how old nodes can be drained ..?
If I terminate EC2 instances with AWS console in gui way, I might be able to, but I'd like to get code layer solution using terraform if there is any.
[1] https://github.com/terraform-aws-modules/terraform-aws-eks/issues/241
If this is a bug, how to reproduce? Please include a code sample if relevant.
What's the expected behavior?
Old worker node instance type can be replaced with new instance type automatically.
Are you able to fix this problem and submit a PR? Link here if you have already.
Environment details

Affected module version:
OS: Ubuntu LTS 16.04
Terraform version: v0.11.11

provider.aws v2.2.0
provider.local v1.1.0
provider.null v2.1.0
provider.template v2.1.0

Any other relevant info

Hi @shindanim
You can drain a node like this: kubectl drain --ignore-daemonsets --delete-local-data --timeout=600s <node name>
Once this completes, you should have only daemonset pods on the node and then you can terminate it in the EC2 console.
Enjoy!

@max-rocket-internet Thank you for your help :)


✨ FEATURE: Lighthouse CLI to list existing host IPs

Motivation
I'm trying to create a means to dynamically add hosts to Nebula. The intentions are to use the pubkey of a host to create the associated cert. I'd like to give the responsibility of determining the hosts IP and groups to the lighthouse instance. The latter for the time being could be static (only these hosts groups can be dynamically added for example) but the IP is more important.
Suggestions
A) The sign function of nebula-cert could default to the next available IP address if the -ip flag was omitted when the -in-pub flag is used.
B) Provide a new CLI command for nebula that will print all existing hosts IP addresses known to the lighthouse
The first option would be the ideal approach for me but I'm not sure how realistic it is.
To implement the above, the DNS feature could be leveraged. Maybe the database/store used for DNS could be populated by default. Just the DNS server would need to be enabled to function. Then nebula-cert could leverage that database/store for this feature/command.

Nebula has an ssh interface that will give you part of this today. list-lighthouse-addrmap will give you information about what the lighthouse knows. This is information learned or provided by clients to a node with lighthouse.am_lighthouse: true or information learned or provided to clients from a configured lighthouse.
https://github.com/slackhq/nebula/blob/master/examples/config.yml#L161-L175
For the signing part, nebula can't participate in a mesh without a certificate to start with. You will need to find a way to sign certs before you can get a client connected to a lighthouse.
In general this sounds a bit like a "provisional" mesh, where less-than-secret ca keys are used to give access to a certificate authority where a client can then provide more information about itself to get the certificate authority to sign a real certificate. The primary point of which is to keep the signing infrastructure off the internet as much as possible.

The intention is to create the certs via https://nebula.defined.net/docs/guides/sign-certificates-with-public-keys/ where the host wanting to join will use a public (Auth 2.0 enabled) RPC call with their pubkey to the lighthouse. The lighthouse will than use a similar command;
nebula-cert sign -in-pub [pubkey] -name [hostname] -ip [private_ip_for_network] -groups [groups]

Where the lighthouse will generate the cert using the provided pubkey. This cert will be returned to the host to then join the network. In doing so I want the lighthouse to assign the next available IP address for the host. I'll take a look into the ssh interface and see if that'll work for me. Can that list-lighthouse-addrmap be called locally or only via that interface?
Right now I'm intending on using rabbitmq to create this RPC call but a built in version would be even better! But I'm sure that's easier said then done...

Can that list-lighthouse-addrmap be called locally or only via that interface?

Only via the ssh interface

B) Provide a new CLI command for nebula that will print all existing hosts IP addresses known to the lighthouse

Keep in mind that the Lighthouse has no persistent storage of nodes it talks to. The Lighthouse also has no inherent ties to CA key material. Typically, CA key material is not stored on Lighthouse hosts (ideally it is stored somewhere encrypted, like Ansible Vault or using an HSM, or AWS KMS, etc.) Therefore, the Lighthouse only knows about hosts with which it has handshaked with since its last boot. It is highly likely that such a system would reuse IP addresses for multiple hosts, causing connectivity issues.
It sounds like you want a signing oracle which authenticates requests via OAuth 2.0 and invokes nebula-sign on the caller's behalf using the CA key material. It seems that this service could also track IP addresses it assigns, e.g. in a SQLite or MySQL database.

Keep in mind that the Lighthouse has no persistent storage of nodes it talks to.

Huh, I didn't know this. I figured it would have some sort of persistent storage..

The Lighthouse also has no inherent ties to CA key material.

Appears that I've been doing this wrong. I've had my lighthouse hold the networks ca.crt and ca.key for signing purposes.

It sounds like you want a signing oracle which authenticates requests via OAuth 2.0 and invokes nebula-sign on the caller's behalf using the CA key material. It seems that this service could also track IP addresses it assigns, e.g. in a SQLite or MySQL database.

This pretty well sums up what is needed. I'm currently trying to build it out myself and was hoping that there would be a way to leverage the lighthouse in ensuring already handed out IP's would be captured. The other thought is if Lighthouse would have this feature baked into it, it could also blocklist certs easier if a host needs to be replaced or removed.

This pretty well sums up what is needed. I'm currently trying to build it out myself and was hoping that there would be a way to leverage the lighthouse in ensuring already handed out IP's would be captured. The other thought is if Lighthouse would have this feature baked into it, it could also blocklist certs easier if a host needs to be replaced or removed.

We don't have plans to include a signing oracle as a feature of Nebula OSS. Our goal is on keeping the Nebula project related to the actual mesh networking protocol, while allowing the community or users to build their own provisioning story around it.
There are other challenges with trying to repurpose a Lighthouse for this task at all: some nodes may not have connectivity to all Lighthouses (of which there can be many), and therefore a Lighthouse may not know about all nodes on the network. Or, a keypair may be generated but unused for a long period of time before finally coming online - during this time the Lighthouse is unaware of the keypair's existence and may re-assign its IP address.
You may want to take a look Defined Networking [full disclosure: I am en employee] for a hosted offering that handles key management and authentication for you. Alternatively, unreality/nebula-mesh-admin and b177y/starship are open-source projects in this vein.


Flatten /err

Summary
Continuing the flatten by flattening the stan/math/{prim,rev,fwd,mix}/*/err folder to stan/math/{prim,rev,fwd,mix}/err. Only 2 files (check_ordered and check_finite) needed actual merging. The rest of the changes are just fixes of includes, removing the /scal/,/mat/ or /arr/ parts.
Tests
/
Side Effects
/
Checklist

[x] Math issue #937

[x] Copyright holder: Rok Češnovar
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

This also merges in changes from #1545 that touch the /err folder. So this will be ready for review once that is merged to develop.

This PR is running on Jenkins with the branch of the Stan PR https://github.com/stan-dev/stan/pull/2872
These 2 PRs need to be merged together to keep develop stable.


NativeLibraryLoader should check the result of ClassLoader#getResourc…

…e method
Motivation:
NativeLibraryLoader uses ClassLoader#getResource method that can return nulls when the resource cannot be found. The returned url variable should be checked for nullity and fail in a more usable manner than a NullPointerException
Modifications:
Fail with a FileNotFoundException
Result:
Fixes [#7222].

Added a unit test FTW

Cherry-picked into 4.1 (4d5f0e7ad5d20a754a484d0ce9ae2d771c0f8c1e) and 4.0 (8fafb316a989818518eb31f709e7d0eed7e4c8f7) as it was an easy one...


Remove template provider

what

Remove unused and deprecated template provider

why

hashicorp/template is now deprecated
hashicorp/template has not been compiled and shared for M1 processors (Macbook Air M1, Macbook Pro, ...)

references

see: https://registry.terraform.io/providers/hashicorp/template/latest/docs

/test all

@morganseznec I believe this is already merged by a previous PR https://github.com/cloudposse/terraform-aws-rds/pull/129/files


Correction for raw affiliation INSERM, Imagerie et Cerveau, Univ. Francois-Rabelais, Tours, France

Correction needed for raw affiliation INSERM, Imagerie et Cerveau, Univ. Francois-Rabelais, Tours, France
raw_affiliation_name: INSERM, Imagerie et Cerveau, Univ. Francois-Rabelais, Tours, France
new_rors: 02vjkv261;01eem7c55;02wwzvj46
previous_rors: 02vjkv261
works_examples: W2007031471
contact: e7d3e5123c9fb1e9c020887e99f99d9b:ba7c7cc90c184d33edb0e69111b97ba23386ee558c @ recherche.gouv.fr

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


feat: GraphQL server OpenShift template

Description
OpenShift template for GraphQL Server.
Verification steps

Spin up Minishift locally or target OpenShift instance
Clone this branch
Create new project and run oc new-app -f server/openshift-template.yml
Verify that created server route in your OpenShift project + GraphQL endpoint (http://<ionic-route-url>/graphql) is accessible

I have verified the template on an OpenShift cluster and it works fine.

Hi @wei-lee, thanks for review.
I was not thinking about this template as about something a real customer would use. This is more of a template for our devs to quickly deploy latest version of GraphQL server with DB on remote OpenShift (possibly with valid SSL certs) and continuously work on it.

@psturc ok, understood.

@psturc Absolutely love this changes. It is an real game changer in terms of usability.
What will be purpose of this template? Internal? Lightweight getting started?
It will be cool to add minimal documentation or mention that in README.md.
I'm hoping to play with this template as it is something that could be shared

@wtrocki Purpose of this is in my previous comment. I just found it more comfortable to have this bundled in the template. Maybe some devs will find it useful too.
I added some docs.

@psturc Perfect! Yes this is really really important feature that may help students and people to get things running fast and easy!

@wtrocki are you ok with merging this?


FramedTransport::Header not serialized?!

Why is not the erpc header (FramedTransport::Header) serialized? E.g. do htons on the 16 bit members m_messageSize and m_crc.

I experienced problems due to lack of serialized header, and added some code to framed transport class to serialize header. I can share the code on request.

Maybe you can raise a PR so that it can be included in master branch of erpc? I don't want to maintain a fix on my own.

Hi, Could you  explain why you need serialize framedTransport header? Currently it is send to other side before serialized message as it contains extra data in compare with other possible transports.

Hi @Hadatko , using the term serialize may be wrong here. Sometimes the transferred header may be corrupted due to lack of frame and CRC. So I have to add an extra frame and CRC to check header integrity into header.

So the issue is related to sending receiving message size. As second receive call is using size from first call. Sounds reasonable to me to have crc of header.

Yes, it is related to message size. The second side wait for message with incorrect size. So the transfer is aborted if there is a timeout for the transfer. In our particular situation, the content of message were coded as ASCII and added framing characters. May be the measures other than CRC are not needed.

@Hadatko Why is it not needed to serialize and deserialize header? Representing header in network byte order would be the only way to let little-endian and big-endian exchange header before receiving the payload.

So we have two issues here. Serializing header and validate header. If you can create PR for both of them it should be great ;) Thank you guys.

I will take a look on theese.

Didn't it solved enough at #276 ?
If someone want he can use htons as implementation of the endiannes agnostic defines.
Maybe we can consider add such implementation.

https://github.com/EmbeddedRPC/erpc/blob/b3951d834d446b87e6e9a3b47dca71c36f5b37cf/erpc_c/infra/erpc_framed_transport.cpp#L128

@amgross :D That is crc of next message (serialized data). But there is no check if sended header data are correct. From what i understand here we need add crcHeader into Header struct. This one will be computed from header crc and length.
Other side then need firstly check header crc and then receive body and check body crc. This way you know that length and crc in header struct was received correctly

The first message here talked about 'E.g. do htons on the 16 bit members m_messageSize and m_crc', so I thought we are talking on endianness issue

I think @infn-ke (which opened the issue) talked here on endianness and @ierturk talked about length issue (which I also faced once)


Background APK updating

Could this library be used to update apks in the background without any user interactions?
It looks like it should now be possible using the features:
https://developer.android.com/about/versions/12/features#automatic-app-updates
Also can this be used to update ones own app silently using those same features?
I've been tinkering around with your SimpleInstaller where that functionality doesn't seem to be supported because of its use of notifications to then have the activity trigger a session.commit, but I'm hoping it might be possible in this library, though I'm unclear how I'd trigger that behavior.
Thanks for writing libraries trying to reduce the complexity/edge cases around the packageinstaller, there seems to be many pitfalls with it (especially around different os versions).

@apkinvestigation Yes, it's certainly possible. This option is mentioned in docs: https://solrudev.github.io/Ackpine/configuration/#users-confirmation
Library's user is responsible for moving to and reliably maintaining the work in background/foreground service.
Activity starts from background are restricted, so I'll rewrite handling of IMMEDIATE confirmation for Android's PackageInstaller sessions to directly call Session.commit().

Could you have also used a notification to get around the limitation on starting activity's from the background?
https://developer.android.com/guide/components/activities/background-starts

@apkinvestigation What do you mean exactly?
Heads-up notification is displayed when using DEFERRED confirmation, which is the default. It is explained on the docs page linked above.

@apkinvestigation Do you have any questions left?

Closing due to inactivity.


Java extractor: add JavaDetails to each CompilationUnit [phab:D417]

Created by schroederc at 2015-07-21 22:12:38:

schroederc wrote at 2015-07-21 22:25:55:
Use JavaDetails in indexer

shahms commented inline (context lost during migration) at 2015-07-21 23:14:18:
Shouldn't this be type.googleapis.com/kythe.proto.JavaDetails ? (I'm not terribly familiar with Any, but I thought it was supposed to resemble a URL more closely).

schroederc wrote at 2015-07-22 16:47:52:
Give the URL some slashes.  URLs loooove slashes.

schroederc commented inline (context lost during migration) at 2015-07-22 16:48:51:
I've made it match the C++ details proto type URL.

shahms wrote at 2015-07-22 17:17:27:
Thanks! (I can't re-accept and already accepted revision) :-)

schroederc closed via commit 8362e137d72e5c135125257370550bda7648642f at 2015-07-22 17:19:44


Symphony v2 WIP

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


The error output is bad formatted when it has newlines

Is it because newlines or because html is not propertly generated when an excepcion occurs?

I think that \n's are being ignored

An even better hack is to wrap everything with a <pre>... I'm doing that now :stuck_out_tongue_winking_eye:


Autoupdate tweaks

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same change?
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew tests with your changes locally?

Details in the commit messages. Inspired by discussion in #429. CC @ilovezfs @UniqMartin.

Haven't had a chance to test this just yet, but pointed out one major and a few minor issues. Overall, the changes are looking pretty solid and will be a huge step in the right direction. Thanks for transforming our discussion into code!

@UniqMartin Let me know if/when you have any further thoughts here or you're 👍

One minor comment, but otherwise I think this is a fairly straightforward and solid improvement, that speeds up brew update for all users (independently of whether it is used in the auto-update or not.)

DAMNIT I squashed again without meaning to 😭.

DAMNIT I squashed again without meaning to 😭.

Feature request for GitHub: Warn when you're about to squash several commits from a PR or allow disabling squash merge for PRs that consist of multiple commits (though in the tap repositories that's almost always what we want in case contributors are not comfortable with squashing/rebasing). :wink:

Perhaps we just disable squash commits in favour of merge commits for this repo?

Or perhaps we just stop merging from the web UI and go back to brew pull entirely? Sadly, it's not possible to completely disable the merge button in the web UI. The reason is that I'm still very fond of our almost completely linear Git history and we don't merge this many pull requests per day in this repository that switching to the command line for this task is a noticeable burden (in my opinion). A lot more time is devoted to actually developing the features and reviewing them. Just a thought …

Yeah not having any merge commits is really nice.


Translate file path to URI on LSP symbol requests

When an external client sends a symbols request, the LSP currently responds with a filepath that starts res://, which external editors have no idea how to handle. This PR fixes this issue by translating the filepath into a URI.
Fixes #49686 . Cherry-pickable for 3.x.

Thanks!

Cherry-picked for 3.4.

Cherry-picked for 3.3.3.


MeasureText appears to return wrong values

Consider this...
var SpaceRect: TRectF;
var LFont1: ISkFont;
LFont1 := TSkFont.Create(TSkTypeface.MakeFromFile('RobotoMono-Regular.ttf'), 32);
LFont1.MeasureText(' ', SpaceRect);

i.e. Measurung a Space char. After this call SpaceRect is Empty (all zero) and while it's true that a space is empty it does occupy some area so the TRectF should be > 0
Skia API implies something is wrong...

@peardox I think it is working as expected, or at least the issue is on Google Skia side. I made a small example on Google Skia (removing Skia4Delphi from the table just for test purpose): https://fiddle.skia.org/c/a58d7fb3f863768a7b5ee622f2019e73 and the output is left:0  top:0  right:0  bottom:0
Text manipulations in general are complex as there are several variants, like WordWrap, Lines, Trimming, MaxWidth, MultipleStyles, RightToLeft, HorizontalAlignment (including justified), Locale and much more. There are a couple of text apis on Google Skia, and the most robust (and recommended) is the SkParagraph.
I really recommend you to use the SkParagraph in case of Vcl or FMX.Skia.Canvas.TSkTextLayout in case of FMX (that use SkParagraph but in a simple way).

Thanks
I've got a partial solution using something like ...
APosBuf := LFont1.GetHorizontalPositions(LGlyphs); // LGlyphs is a sequential list of character set codes e.g. 32..127
The returned array gives the correct value for a space
I can't use any Paragraph or TestLayout stuff as I'm trying to create bitmaps from font glyphs (for microcontrollers to display)
Today I discovered that sometimes the vertical pixels of adjacent chars can overlap e.g. i+j in some fonts the end of j is direclty under the i. Going to examine if GetBounds can help next...
There's nothing I can find in Skia to do with kerning (which may have helped)
Got it mostly working with a few niggling little issues to resolve like above

@peardox Great! In this case I'm closing the issue as there is nothing wrong on our side.


Data Quality - Custom Metric & Tests

Feature
Based on https://github.com/open-metadata/OpenMetadata/issues/3326
Describe the task
Support custom metrics definition. We need to allow users to give us an SQL query that we can associate to a specific column and link to a test.
We should also prepare the abstraction to support custom python code to be executed.
Also, these custom tests might not be directly related to a metric, so let's update the test framework to allow this easily -> execution vs report-only

Hey, one question about ir?
With this feature, will we be able do push tests from a simple interface?
Like, there’re some tools that we use, such soda, dbt test and custom tests using spark with GE.
If we have a simple interface, we could easily push this results and centralize everything into one page.

@mariotaddeucci yes thats the plan. We are already support pushing tests and test results from GreatExpectations.
With this ticket our goal is to allow creating custom tests through UI & Api and let the clients push results of those tests onto OpenMetadata

Awesome


Blueprint apply error between commits

What Git revision are you using?
The lastest commit gives the error
ff290bc5829f2a1beec93795e769565cb7e3dd50
but this commit works as expected
8fad5b77c6bdf71af049d74ea2c7de0448e8e10c
What operating system are you using, and which version?

[ x] Linux / Ubuntu
[ ] Linux / Other
[ ] macOS
[ ] Windows

Describe what the problem is?
When using commit ff290bc5829f2a1beec93795e769565cb7e3dd50 blueprint apply gives an invalid hex error
NEWM_KEY_CBOR="581ce6f85717b932788e3b1e57b11e9f8bf190d257c57d369979c18a02dd"
aiken blueprint apply -v fractional_minter.fractional_minter . "(con data #${NEWM_KEY_CBOR})"

      Parsing inputs

aiken::blueprint::parse::parameter

  × I failed to convert some input into a valid parameter
  help: Invalid hex-encoded string: Odd number of digits

What should be the expected behavior?
The blueprint apply function should work as expected.
When on commit 8fad5b77c6bdf71af049d74ea2c7de0448e8e10c the function works correctly.

Closing this as the blueprint apply function was changed in https://github.com/aiken-lang/aiken/pull/477


Cli fixes

Fixes https://github.com/influxdb/influxdb/issues/2602
Also renames the -output flag to -format for consistency.
Adds -pretty flag for use with json output.
Introduces a custom Usage func

:+1:

+1


NotImplementedError: Platform does not define a GLUT font retrieval function

I've done this and still get an error, do you have any other solutions?
$ sudo apt-get install libosmesa6
$ export PYOPENGL_PLATFORM=osmesa

hey, how did you fix it?

Commented out the "GLUT" in "psbody/mesh/meshviewer.py ,line49", like from OpenGL import GL, GLU #GLUT

https://github.com/eth-siplab/AvatarPoser/issues/11
Here you go


Returning "NaN" values from fetch function

Hi all
I downloaded "Rao2014-HMEC-MboI-allreps-filtered.1000kb.cool" file from cooler ftp site "ftp://cooler.csail.mit.edu/coolers/hg19/" and executed simple fetch command.
Fetch command returned "NaN" values for both interacting chromosomal regions and balance column, but a numeric value for count column. I feel that receiving "NaN" for chromosomal regions with non-zero interaction count is strange and would be thankful if someone can help me to understand this result.
My python code is as following
cool_file = "/Users/pubudu/Documents/RefData/HiCData/COOLER/Dixon2012-H1hESC-HindIII-allreps-filtered.1000kb.cool"
c = cooler.Cooler(cool_file)
print (c.matrix(as_pixels=True, join=True, balance=True).fetch("chr10:6052652-6104288", "chr10:7052652-8104288"))

output
chrom1  start1  end1 chrom2  start2  end2  count  balanced
0    NaN     NaN   NaN    NaN     NaN   NaN  11119       NaN
1    NaN     NaN   NaN    NaN     NaN   NaN   1601       NaN

Best

Hi Pubudu,
That's due to a bug with the combination of as_pixels and join options. Will fix right away, but as an immediate workaround you can simply do the following, which is completely equivalent:
df = c.matrix(as_pixels=True, balance=True).fetch("chr10:6052652-6104288", "chr10:7052652-8104288"))
df = cooler.annotate(df, c.bins()[['chrom', 'start', 'end]])

Thanks for catching this!

Fixed by a5c6ef80dc

Thank you Nezar for giving an alternative way.
All the best...


[RFC] environment variable based, target side log filter

(less hand-way, more fleshed out version of the "RFC" in PR #519, which is a Proof of Concept of this feature)
Changelog

2021-09-13 DEFMT_LOG defaults to ERROR log level when unset, which matches RUST_LOG, so there's no divergence between the 2 as it was wrongly indicated in original the RFC text (this behavior was also already implemented and tested in the PoC PR)

Summary

Remove the existing Cargo feature based, target side log filter
Add an environment variable based, target side log filter (a la env_logger / RUST_LOG)

Rationale
The existing Cargo featured based log filter has several usability issues:

It requires setting up Cargo features in a library or application (modifying the crate's Cargo.toml) to use it. This is rather unusual in the crate ecosystem. The author is not aware of any other crate that requires this so this is a "minus" in terms of learnability / familiarity.
The above point leads to Cargo feature proliferation (see #255), which has been perceived as a downside
If you add defmt as a dependency, use the log macros in your library but forget to add the Cargo features then the log filtering mechanism will not only not work for you but you will also make it impossible for downstream users to enable / disable the logs that your library has. So in that sense, the feature is error-prone.
This filter has crate-level granularity: i.e. you cannot select INFO messages from krate::module_a AND ERROR messages from krate::module_b; you can only pick either INFO messages from krate OR ERROR messages from krate. See #459

On the other hand, moving to RUST_LOG-like log filter has the following advantages:

Familiarity. People that have done Rust development for the desktop have very likely used the env_logger crate, either directly as an integrator of log + env_lolgger or indirectly as an end-user. For instance, probe-run uses env_logger and supports the RUST_LOG env var.
No extra setup = impossible to misuse = interoperability just works. No Cargo features need to be added to your library, which means it will interoperate with other crates as soon as you use one of the defmt log macros.
It can filter log messages with module level granularity: i.e. you will be able to select INFO messages from krate::module_a AND ERROR messages from krate::module_b

Detailed design
User-facing interface
The design of the env-var based log filter will closely match env_logger's user-facing API, with the main difference being that defmt will use the DEFMT_LOG env var, instead of RUST_LOG. That way both env vars can be used in a project: e.g. RUST_LOG applies to probe-run tool, DEFMT_LOG applies to the firmware itself.
In terms of features, DEFMT_LOG will expose all of RUST_LOG log level-filtering features. Example below:
$ export DEFMT_LOG=warn,krate::noisy=off,krate::important=trace

When the DEFMT_LOG env var is unset, only ERROR level log messages will be emitted. This behavior matches RUST_LOG's.
DEFMT_LOG will not support RUST_LOG regex filtering as this is better served by a host side display filter in probe-run itself (see https://github.com/knurling-rs/probe-run/issues/74#issuecomment-880625766)
$ # '/' is NOT supported; this is invalid syntax
$ export DEFMT_LOG=krate::haystack/needle

Compile-time, binary-size effect
Unlike RUST_LOG which filters log messages at runtime. DEFMT_LOG will filter log messages at compile time. The upside is that only the messages for the log levels you have chosen will be included in your firmware message: this results in binary size savings compared to env_logger which leaves all the logging code in the image. The downside is that changing the contents of the DEFMT_LOG env var will cause part of your dependency graph to be recompiled; in contrast, changing RUST_LOG does not recompile anything so it's instantaneous.
Library changes
No changes will be made to the API of the defmt library as part of this proposal.
defmt-test
In the current implementation, defmt-test uses defmt::trace! to report progress. With the move to DEFMT_LOG, this will result in no progress being reported because leaving DEFMT_LOG unset disables trace-level log messages.
As part of this proposal, defmt-test will be modified to report its test progress messages with defmt::println! (see #541): these messages cannot be filtered.
Downsides
The switch to DEFMT_LOG is not without downsides: one won't be able to set a default log level for a crate, which was possible to do with the Cargo feature based log filter. That being said, that particular use case could be served by a separate feature: for example, an item-level macro that sets a default log level for the whole crate but that default level can be overridden with DEFMT_LOG, e.g. DEFMT_LOG=krate=off or DEFMT_LOG=krate=error. Sample syntax -- not part of this proposal:
#[cfg(test)]
defmt::default_log_level!(trace);

#[cfg(not(test))]
defmt::default_log_level!(info);

How to teach this

The 'setup' section of the book will be simplified to not mention Cargo features
The 'filtering' section of the book will be updated to use DEFMT_LOG
The 0.2.x -> 0.3.x migration guide will

instruct users to remove defmt-* Cargo features
tell them about DEFMT_LOG and mention that it has the same syntax as and behaves similarly to RUST_LOG
point to the updated 'filtering' section of the book for more details

Alternatives
Co-existence
Instead of removing the Cargo featured based log filter it could be kept and co-exist with DEFMT_LOG. This results in several complications, however:

it won't solve the Cargo feature proliferation issue
user documentation will need to elaborate on when to use one over the other and when to use both
users of 0.3.x may gravitate towards only using DEFMT_LOG and not add defmt-* Cargo features to their libraries, rendering them unusable with the Cargo feature based mechanism

This would have been worthwhile as a transition phase in which DEFMT_LOG is added to v0.2.x and then Cargo features are phased out in 0.3.0 but there are no more 0.2.x releases planned so co-existence in 0.3.x is not worth the trouble in the author's opinion

Updated a mistake of mine in the text (also noted in the changelog section):
DEFMT_LOG defaults to ERROR log level when unset, which matches RUST_LOG, so there's no divergence between the 2 as it was wrongly indicated in original the RFC text (this behavior was also already implemented and tested in the PoC PR)


move foreman relations to parent classes

this fixes issues with reporting and STI
https://bugzilla.redhat.com/show_bug.cgi?id=1216969
have another PR to move configuration_tags
/cc @brandondunne @gmcculloug

@AparnaKarve Can you verify this fix?  Thx, Dan

@dclarizio @kbrock Verified this fix.


Write Test for Quiz

Summary:
Write tests for Quiz package classes.
Would you like to work on the issue?
Yes

@misaochan While writing test for QuizController I noticed that context.getResources().getString() is used to get Strings instead we can directly use context.getString() on context, this makes it easier to mock during the test, should I change this in the class?

Yes, feel free to make this change. It won't affect the behavior.


Update Composer dependencies (2021-09-21-00-12)

Visual regression test passed!
View the visual regression test report


Extraordinary number of draw calls for 3d particle emitter

Bugsquad edit: Seen in 1.1 stable.
The amount of draw calls for 3d particle emitter is directly related to number of particles. (300 particles == 300 draw calls). Also these draw calls are in power even if emitter is not emitting any particles (emit = false).
It's little troublesome since the only way to make explosion with 3d particle emitter is to set hight number of particles with small "emit timeout" parameter...
Sample project: https://dl.dropboxusercontent.com/u/168251/godot/some/issues/3DParticleDrawCalls.7z

@kubecz3k Now that you had a go at porting your game to the current master branch, can you still reproduce the bug there?

@akien-mga yes, the bug reproducible in 2.0 alpha ae3d4ac193a261c8bed28e22304ccfa2c86ccf48 commit

yeah there is nothing to do about it, GLES2 limitation

@reduz so maybe it could be added an "ugly  temporary workaround" with some additional "guard" parameter something like to "force maximal number of particles"? As I said this bug is  the most disturbing when trying to make explosion effects with 3d particle emiter (you are setting 500 particles with "long" lifetime and emission time to 0.3 in hope to emit only  ~40 particles in this time)

Since there will be complete rendering code rewrite in 3.0 anyway I will close this issue.
Note2futureSelf: If someone is struggling with similar issues to mine (trying to create 3d explosions for example) then I would suggest to try setting a lot of particles in runtime with set_amount(),  only for very small amount of time when explosion starts together with very short Emit Timeout.
tip: it can be done via animation player.


Update to Blender 2.91

Newer versions of blender's api changed slightly, and I took the opportunity to separate the apx (xml) from the python code by creating a separate template which the script then fills. numpy was used to improve speed / efficiency for the  getClosest function.

Hi, i'm not the original owner of this repo, i can't review your work but if you want i can merge it  ...

Hi, i'm not the original owner of this repo, i can't review your work but if you want i can merge it ...

Well, in all honesty I don't know much at all about blender or hairworks either, but I was on a bit of a roll making python based tools for modding The Witcher 3 on the wkit modding discord: https://discord.gg/WRwJ8hAy
I made a few assumptions on how it probably ought to work, and from there basically just copied the rest of the functionality with (imao) cleaner code. I never did find any real documentation for apx files other than just making assumptions of what various things do from the original.


when clause ignores nil check

In Crystal, nil checks for nilable object are detected automatically if it is checked with if or unless expression.  However case ... when expression doesn't.  Is this a bug? Or is there any reasons that case ... when expression can't detect nil check?

unless expression example

foo = "blah blah blah" as String?

unless foo
  puts "nil!"
else
  puts foo.size
end

# => Size of foo was shown correctly

case ... when expression example

foo = "blah blah blah" as String?

case foo
when nil then puts "nil!"
else          puts foo.size
end

# => Oops, 'undefined method 'size' for Nil' error occurred

Thanks in advance :dog:

Try when Nil (capital N).

@Exilor
Thanks.  Yes, I know it works.  But if and unless expression checks value nil.  Why when clause can't detect the check by value?

I guess it's because when calls the #=== method whose result is not known at compile time.

It's because of what @Exilor says. However, since when has some specific rules (for example, if you do when Foo the compiler rewrites that to an is_a?(...) we can also make when nil work, I think. It's a very simple and small rule to add.

@Exilor @asterite
Thank you for discussion!
I got the point by @Exilor 's explanation, but accepting check by value is also reasonable, I think.

Thanks a lot!


Additional query values

Please add the ability to query for activity and observation_group to the search items list.

Add JSON generator (et al.) to this list

Completed in v0.3.2


release 0.2.3

Support  GetPublicKey.
Support GenerateDataKey.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.fanyu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Options Input - 2 way data binding

Hi,
Is there any chance that the options input accepts two way data binding?
Regards
Kevin

Hi,
Sorry but i run a test, and apparently it works with 2 two data binding. Cheers for implementing this in the latest releases, as with the angular 2 rc4 version it was not working.
Kevin


[$250] Taxes - Edited tax is not grayed out in Tax list in submit manual flow

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.78-2
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:

Go to staging.new.expensify.com
Go to workspace settings.
Go offline.
Go to Categories > Edit a category name.
Go to Tags > Edit a tag name.
Go to Taxes > Edit a tax name and rate.
Go to workspace chat.
Go to + > Submit expense > Manual.
Proceed to confirmation page.
Look for the edited items in Category, Tag and Tax list.

Expected Result:
All the edited items in Category, Tag and Tax list will be grayed out.
Actual Result:
The edited items in Category and Tag list are grayed outm but the edited item in Tax list is not grayed out.
in production : None of the items are grayed out
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/43996225/a5e3ecde-e2b8-4187-a11c-5966ca546c15

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0132c9043b25b1d684
Upwork Job ID:<PHONE_NUMBER>817881600
Last Price Increase: 2024-05-31

Issue OwnerCurrent Issue Owner: @ishpaul777

@sonialiap FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

Commented on the offending PR https://github.com/Expensify/App/pull/42620#issuecomment-2142239882

Not worth blocking deploy

@Krishna2323 introduced this here https://github.com/Expensify/App/issues/41066

Actually reverted it here https://github.com/Expensify/App/pull/42953

Proposal
Please re-state the problem that we are trying to solve in this issue.
The edited Tax rate items in the workspace are not grayed out in offline mode.
What is the root cause of that problem?
The graying out is based on the property pendingAction which is missing in the tax rates data.
What changes do you think we should make in order to solve the problem?
Add the pendingAction property to the updatePolicyTaxValue, renamePolicyTax and other setters of the tax rate data.
                  taxRates: {
                      taxes: {
                          [taxID]: {
                              value: stringTaxValue,
                              pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
                              pendingFields: {value: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE},
                              errorFields: {value: null},
                          },
                      },
                  }

What alternative solutions did you explore? (Optional)
None.

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/~01fded0233eaf38db6?mp_source=share

⚠ Invalid email. Please make sure to create an Expensify account with this email first here.

Update the email in the last reply.

Please share if there's any update on the proposal.

Closing issue since no payment is needed


LHN– New chat with draft message reappears when refresh page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.9-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:

Go to FAB> Start chat> Add email address of user you have no previous comunication with> Complete the chat creating flow process
Type any message into chat composer but don't send the message
Navigate to other chat and verify that drafted chat from step 2 disappears
Refresh the page
Take a look at LHN chats

Expected Result:
Chat with draft message shoud not appear
Actual Result:
New chat with draft message disappears when user switch to other chat and reappears when refresh page
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/user-attachments/assets/ed2d539b-2fbe-4101-b663-eb897435958f
View all open jobs on GitHub

@OfstadC  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to #vip-vsp

Proposal
Please re-state the problem that we are trying to solve in this issue.
LHN - New chat with draft message dissappears after navigate to other chat
What is the root cause of that problem?
Here:
https://github.com/Expensify/App/blob/567627d3598df57f66e28e41d52e930687fbd226/src/libs/SidebarUtils.ts#L139-L142
The new chat has notification hidden and shouldOverrideHidden should consider if the report has draft.
so we should add check on the report draft.
What changes do you think needed to solve this issue?
we should change the shouldOverrideHidden into:
const shouldOverrideHidden = hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || report.isPinned || hasValidDraftComment(report?.reportID ?? '-1');
`

I misread the expected result. I thought the expected result was to prevent the chat from disappearing from LHN.If the expected result changes to "the new chat with draft shouldn't disappear," here is my proposal.

I'm not able to reproduce - my draft remains after a refresh

Oh - wait you're saying it disappears - not that the draft disappears. I think this would be expected if not pinned? Or do drafts get pinned automatically - going to dig more...

Since VIP VSB is on hold and this is likely a polish - I think we can close this for now.


Made last set of positional arguments available in DynamicMap

This PR is intended to address issue #705
@philippjfr It is a simple change but it would be good if you could review it anyways.

Not sure I'm entirely happy with the name args, it really doesn't tell me anything, last_args might be okay but really it's the last generated key, calling it args seems confusing. Maybe it would make sense to change the semantics of last and last_key on DynamicMaps to point to the most recently generated objects rather than the last one in the sorting order?

Maybe it would make sense to change the semantics of last and last_key on DynamicMaps to point to the most recently generated objects rather than the last one in the sorting order?

I would prefer to keep DynamicMap as similar to HoloMap as possible. I'm happy to call it last_args if you prefer.
The reason I think args is the correct name is that args and kwargs are the standard names when considering callables. Talking about 'keys' in this case seems like it would be confusing to me...

The reason I think args is the correct name is that args and kwargs are the standard names when considering callables. Talking about 'keys' in this case seems like it would be confusing to me...

Don't really agree, our NdMapping based datastructures are about keys and adding another name for what is really just the last generated tuple key makes it seem like a separate concept when it really isn't. The DynamicMap is asked for a key and that key is passed as the args to the callback, so the args is a concept the callback worries about but at the DynamicMap level we should be talking about keys.

... at the DynamicMap level we should be talking about keys.

If you like, but I don't think should change the semantics of last or last_key. Do you have another suggestion for a name?

If you like, but I don't think we should change the semantics of last or last_key.

Yea, you're right, probably not a good idea. I'll think about it.

most_recent_key?  current_key?

last_executed_key?

I think that streams make this a bit more complicated as there are now *args (anything in kdims, whether streams or not) or **kwargs which are streams not in the kdims. Only the *args part could be considered a key...

Should we close this? With addition of Callables this is probably quite out of date. I wouldn't mind if we made the last key and stream values available on the Callable though.

I wouldn't mind if we made the last key and stream values available on the Callable though.

That would be reasonable and yes, I agree this original approach is now out-of-date. I don't think the Callable should know about keys versus streams but the arguments for the last call should be made available somehow.

Opened an issue for the suggestion and closing this PR as outdated.


documentation page no exists any more

why documentation page not exists?
my save game variables on ICloud not saved and gets error. do you have any documentation to describe how to config icloud for cloudonce?
thanks

The documentation links where outdated because I recently moved the GitHub repository. Thanks for making me aware of the problem! I've fixed the links now.
For any further assistance, I would recommend StackOverflow.


kubefwd does not write all services on hosts file

This is a great tool and thank you for your effort!
I am currently using version 1.9.1 and I face the following issue:
When I port forward to a specific namespace, all services show up on the hosts file apart from one.
Here are the logs of kubefwd and as you can see there are 6 services and all of them are assigned a loopback IP address:
INFO[10:31:12] Version 1.9.1
INFO[10:31:12] https://github.com/txn2/kubefwd
INFO[10:31:12]
INFO[10:31:12] Press [Ctrl-C] to stop forwarding.
INFO[10:31:12] 'cat /etc/hosts' to see all host entries.
INFO[10:31:12] Loaded hosts file /etc/hosts
INFO[10:31:12] Hostfile management: Backing up your original hosts file /etc/hosts to /Users/michalis/hosts.original
INFO[10:31:13] Resolving:  api-1api-1 to <IP_ADDRESS>
INFO[10:31:13] Forwarding: api-1:80 to pod api-1-5f79b5b84c-9wlp4:8080
INFO[10:31:13] Resolving:  api-2api-2 to <IP_ADDRESS>
INFO[10:31:13] Forwarding: api-2:80 to pod api-2-68d5bb5d87-trkfw:8080
INFO[10:31:13] Resolving:  api-3api-3 to <IP_ADDRESS>
INFO[10:31:13] Forwarding: api-3:80 to pod api-3-85695d96f-lqrnq:8080
INFO[10:31:13] Resolving:  api-4api-4 to <IP_ADDRESS>
INFO[10:31:13] Forwarding: api-4:80 to pod api-4-558469fc85-95z77:8080
INFO[10:31:13] Resolving:  api-5api-5 to <IP_ADDRESS>
INFO[10:31:13] Forwarding: api-5:80 to pod api-5-859675b7c4-fb2fk:8080
INFO[10:31:13] Resolving:  api-6api-6 to <IP_ADDRESS>
INFO[10:31:13] Forwarding: api-6:80 to pod api-6-98cc46646-wcndz:8080
INFO[10:31:13] Saving hosts file

Then when I check my /etc/hosts file, there are only 5 records, instead of 6:
<IP_ADDRESS>       api-1 api-1.uk.svc.cluster.local api-1.uk
<IP_ADDRESS>       api-2 api-2.uk.svc.cluster.local api-2.uk
<IP_ADDRESS>       api-3 api-3.uk.svc.cluster.local api-3.uk
<IP_ADDRESS>       api-4 api-4.uk.svc.cluster.local api-4.uk
<IP_ADDRESS>       api-5 api-5.uk.svc.cluster.local api-5.uk

The interesting thing is that if use the IP address <IP_ADDRESS>, I can access the missing service. The issue is that it just does not appear on the hosts file. I have noticed that it is always api-6 missing from the hosts file.
On an unrelated note, I have noticed that a few times, when I shutdown kubefwd it leaves behind one record on the hosts file.

Thanks for the report I can take a look at it this weekend

@michalis-vitos I am not able to reproduce this. Can you provide more details? Are you able to port forward api-6 with kubectl?

Hi @cjimti, thanks for checking this out.
Yes, I am able to port forward to that service with kubectl. Even with kubefwd, if I use the allocated loopback IP address e.g. <IP_ADDRESS>, I can access the missing service. The issue is that it just does not appear on the hosts file. For some weird issue it is always api-6 missing from the hosts file.

@michalis-vitos this is a race condition as a consequence of https://github.com/txn2/kubefwd/pull/76
I will push a quick fix that saves again after a two-second delay. I hope to revisit this in the future and add a more stable solution.

Thanks @cjimti, the two seconds delay seems to solve the issue, at least on my case!


Feature Aliasing

Added the ability to add arrays of commands to the AUDIO_COMMANDS array for alasing.
This allows !honk and !quack to both reference the same audio file.
Implements enhancement listed in #66

Thanks for the work! I am always on the side of optimizing later and try not to get to meta to remain as beginner friendly as possible.


fix: require a project toml for ftl dev and ftl serve

Fixes #1669 by maintaining the list of configuration files that generated a project's Config, and adding a non-empty pre-condition for ftl dev and ftl serve.
This seemed cleaner than plumbing through the ConfigFlag to sub-commands, but I could use another opinion..

Going a different route