The App Runner needs to support setting shm when running App package

Observed:
Often times AI inference app require more shared memory, and it has been observed that the example ai_spleen_seg_app failed when run by the App Runner due to not setting shm on spinning up the app docker.
Expected:
The App Package can be run
How to reproduce:
Get the named example app
Package it into App Package
Run the package with monai-deploy run, see below
mqin@mingq-dt:~/src/monai-app-sdk/examples/apps$ monai-deploy run spleen_seg_app:0.1.1 ai_spleen_seg_app/input output
Checking dependencies...
--> Verifying if "docker" is installed...

--> Verifying if "spleen_seg_app:0.1.1" is available...

Checking for MAP "spleen_seg_app:0.1.1" locally
"spleen_seg_app:0.1.1" found.

Reading MONAI App Package manifest...
 > export '/var/run/monai/export/' detected
DEBUG:__main__.AISpleenSegApp:Begin compose
DEBUG:__main__.AISpleenSegApp:End compose
DEBUG:__main__.AISpleenSegApp:App Path: /opt/monai/app/app.py,             Input: /opt/monai/app/input,             Output: /opt/monai/app/output,            Models: /opt/monai/models
DEBUG:__main__.AISpleenSegApp:Begin run
Going to initiate execution of operator DICOMDataLoaderOperator
Executing operator DICOMDataLoaderOperator (Process ID 1)
Done performing execution of operator DICOMDataLoaderOperator

Going to initiate execution of operator DICOMSeriesSelectorOperator
Executing operator DICOMSeriesSelectorOperator (Process ID 1)
Done performing execution of operator DICOMSeriesSelectorOperator

Going to initiate execution of operator DICOMSeriesToVolumeOperator
Executing operator DICOMSeriesToVolumeOperator (Process ID 1)
Done performing execution of operator DICOMSeriesToVolumeOperator

Going to initiate execution of operator SpleenSegOperator
Executing operator SpleenSegOperator (Process ID 1)
pre-transform:
{'transforms': (<monai.transforms.io.dictionary.LoadImaged object at 0x7f90d4632f40>, <monai.transforms.utility.dictionary.EnsureChannelFirstd object at 0x7f90d4632f70>, <monai.transforms.spatial.dictionary.Spacingd object at 0x7f90d465e310>, <monai.transforms.intensity.dictionary.ScaleIntensityRanged object at 0x7f90d465e340>, <monai.transforms.croppad.dictionary.CropForegroundd object at 0x7f90d465e580>, <monai.transforms.utility.dictionary.ToTensord object at 0x7f90d465e610>), 'map_items': True, 'unpack_items': False, 'R': RandomState(MT19937) at 0x7F90E41DD140}
post-transform:
{'transforms': (<monai.transforms.post.dictionary.Activationsd object at 0x7f90d465e730>, <monai.transforms.post.dictionary.AsDiscreted object at 0x7f90d465e8e0>, <monai.transforms.post.dictionary.Invertd object at 0x7f90d465eac0>, <monai.transforms.io.dictionary.SaveImaged object at 0x7f90d465eaf0>), 'map_items': True, 'unpack_items': False, 'R': RandomState(MT19937) at 0x7F90E41DD140}
Model path: /opt/monai/models/model/model.ts
Model name (expected None): model
ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memory (shm).
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 990, in _try_get_data
    data = self._data_queue.get(timeout=timeout)
  File "/opt/conda/lib/python3.8/multiprocessing/queues.py", line 107, in get
    if not self._poll(timeout):
  File "/opt/conda/lib/python3.8/multiprocessing/connection.py", line 257, in poll
    return self._poll(timeout)
  File "/opt/conda/lib/python3.8/multiprocessing/connection.py", line 424, in _poll
    r = wait([self], timeout)
  File "/opt/conda/lib/python3.8/multiprocessing/connection.py", line 931, in wait
    ready = selector.select(timeout)
  File "/opt/conda/lib/python3.8/selectors.py", line 415, in select
    fd_event_list = self._selector.poll(timeout)
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
    _error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 41) is killed by signal: Bus error. It is possible that dataloader's workers are out of shared memory. Please try to raise your shared memory limit.

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

Traceback (most recent call last):
  File "/opt/monai/app/app.py", line 72, in <module>
    app_instance.run()
  File "/opt/monai/app/app.py", line 39, in run
    super().run()
  File "/home/monai/.local/lib/python3.8/site-packages/monai/deploy/core/application.py", line 316, in run
    executor.run()
  File "/home/monai/.local/lib/python3.8/site-packages/monai/deploy/core/executors/single_process_executor.py", line 73, in run
    op.compute(op_exec_context.input, op_exec_context.output, op_exec_context)
  File "/opt/monai/app/spleen_seg_operator.py", line 87, in compute
    infer_operator.compute(input, output, context)
  File "/home/monai/.local/lib/python3.8/site-packages/monai/deploy/operators/monai_seg_inference_operator.py", line 171, in compute
    for d in dataloader:
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in __next__
    data = self._next_data()
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1186, in _next_data
    idx, data = self._get_data()
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1152, in _get_data
    success, data = self._try_get_data()
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1003, in _try_get_data
    raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str)) from e
RuntimeError: DataLoader worker (pid(s) 41) exited unexpectedly

ERROR: MONAI Application "spleen_seg_app:0.1.1" failed.

WIP PR to resolve:  MAR to specify shm-size present in MAP manifest when launching jobs.
(Blocked on @gigony's  and @KavinKrishnan's changes)
https://github.com/Project-MONAI/monai-deploy-app-sdk/pull/145


dart2js crashes when provided with --enable-experiment=non-nullable

This was discovered in https://github.com/flutter/flutter/pull/54617 while writing an integration test for enable-experiment support (https://github.com/flutter/flutter/issues/52819). The app is not using any null safety features.
    • Framework revision 7b44043f9f (33 minutes ago), 2020-04-14 19:09:25 -0700
    • Engine revision deef2663ac
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 c9710e5059)

PS C:\Users\Jonah\flutter\examples\hello_world> flutter build web --enable-experiment=non-nullable
Target dart2js failed: Exception: org-dartlang-sdk:///sdk/lib/_internal/js_runtime/lib/js_helper.dart@112647+1:
Internal Error: The member '_installSpecializedAsCheck' was not found in library 'rti'.
The compiler is broken.

When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.

The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.

Please include the following information:

* the name and version of your operating system,

* the Dart SDK build number (2.8.0-edge.c9710e5059ad94b7d4f1db951cc515a8d9d09ead), and

* the entire message you see here (including the full stack trace
  below as well as the source location above).

The compiler crashed: Assertion failure: The member '_installSpecializedAsCheck' was not found in library 'rti'.
#0      failedAt (package:compiler/src/diagnostics/invariant.dart:49:3)
#1      KernelElementEnvironment.lookupLibraryMember (package:compiler/src/kernel/element_map_impl.dart:1793:7)
#2      CommonElementsImpl._findLibraryMember (package:compiler/src/common_elements.dart:1003:17)
#3      CommonElementsImpl._findRtiFunction (package:compiler/src/common_elements.dart:1876:7)
#4      CommonElementsImpl.installSpecializedAsCheck (package:compiler/src/common_elements.dart:1961:7)
#5      BackendImpacts.newRtiImpact (package:compiler/src/js_backend/backend_impact.dart:817:29)
#6      BackendImpacts.typeCheck (package:compiler/src/js_backend/backend_impact.dart:477:54)
#7      JavaScriptImpactTransformer.onIsCheck (package:compiler/src/js_backend/impact_transformer.dart:333:29)
#8      JavaScriptImpactTransformer.transformResolutionImpact (package:compiler/src/js_backend/impact_transformer.dart:161:11)
#9      KernelWorkItem.run.<anonymous closure>.<anonymous closure> (package:compiler/src/kernel/kernel_strategy.dart:410:32)
#10     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#11     KernelWorkItem.run.<anonymous closure> (package:compiler/src/kernel/kernel_strategy.dart:402:28)
#12     CompilerTask.measure (package:compiler/src/common/tasks.dart:64:51)
#13     KernelWorkItem.run (package:compiler/src/kernel/kernel_strategy.dart:377:26)
#14     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>
(package:compiler/src/compiler.dart:460:70)
#15     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#16     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>
(package:compiler/src/compiler.dart:460:32)
#17     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#18     Compiler.emptyQueue.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:458:28)
#19     CompilerDiagnosticReporter.withCurrentElement (package:compiler/src/compiler.dart:743:15)
#20     Compiler.emptyQueue.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:456:18)
#21     ResolutionEnqueuer._forEach (package:compiler/src/enqueue.dart:449:12)
#22     ResolutionEnqueuer.forEach (package:compiler/src/enqueue.dart:465:5)
#23     Compiler.emptyQueue.<anonymous closure> (package:compiler/src/compiler.dart:452:16)
#24     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#25     Compiler.emptyQueue (package:compiler/src/compiler.dart:451:14)
#26     Compiler.processQueue.<anonymous closure> (package:compiler/src/compiler.dart:477:7)
#27     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#28     Compiler.processQueue (package:compiler/src/compiler.dart:470:14)
#29     Compiler.computeClosedWorld (package:compiler/src/compiler.dart:339:5)
#30     Compiler.compileFromKernel.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:407:17)
#31     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#32     Compiler.compileFromKernel.<anonymous closure> (package:compiler/src/compiler.dart:406:43)
#33     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#34     Compiler.compileFromKernel (package:compiler/src/compiler.dart:405:14)
#35     Compiler.runInternal (package:compiler/src/compiler.dart:257:13)
<asynchronous suspension>
#36     Compiler.run.<anonymous closure>.<anonymous closure> (package:compiler/src/compiler.dart:212:38)
#37     new Future.sync (dart:async/future.dart:224:31)
#38     Compiler.run.<anonymous closure> (package:compiler/src/compiler.dart:212:20)
#39     CompilerTask.measureSubtask (package:compiler/src/common/tasks.dart:179:35)
#40     Compiler.run (package:compiler/src/compiler.dart:209:41)
#41     CompilerImpl.run.<anonymous closure>.<anonymous closure> (package:compiler/src/apiimpl.dart:91:22)
#42     _RootZone.runUnary (dart:async/zone.dart:1439:54)
#43     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#44     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#45     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#46     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#47     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#48     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#49     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#50     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#51     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

Compiling lib\main.dart for the Web...                              3.7s
Exception: Failed to compile application for the Web.
PS C:\Users\Jonah\flutter\examples\hello_world>

xref https://github.com/flutter/flutter/issues/52819

In this case, the issue is that the experiment flag is not supported with the regular sdk, you need the nnbd sdk to be able to enable it. After we unfork, this will no longer be an issue.
The change that produces this crash was included in the 2.8 beta release, and it's totally possible that some users may try to pass the experiment flag on a 2.8 SDK and hit this crash.
@vsmenon - should consider creating a cherry pick to provide an error message if someone tries to use the non-nullable experiment before it is on preview?

I assume the fix is small / simple?  If so, I think it merits a cherry-pick given the crash.

Looks like this can be closed.  Any thing missing?

I think there is nothing left to do.
We already unforked, and at this time we decide what to do based on the input.dill file (so we no longer rely on the flag being present.)


Adaptive resources when injecting sidecars

Describe the feature request
I want to set resources (cpu and memory) adaptively, such as setting sidecar resources (cpu and memory) according to the resources of pod and so on.
Describe alternatives you've considered

Set some factors or flags in MeshConfig for resource levels.
Enhance the injector template, for example adding some annotations. It will bring much work when there are thousands of pods in k8s so it must be used together with global settings.

Affected product area (please put an X in all that apply)
[ ] Ambient
[ ] Docs
[ ] Dual Stack
[ ] Installation
[ ] Networking
[X] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[X] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

are you looking for sidecar.istio.io/proxyCPU?

are you looking for sidecar.istio.io/proxyCPU?

Yes. But is dosen't satisfy my requirments. I don't know the pod resources of users in advance.

How do you want to map the resources between sidecar and app container?

How do you want to map the resources between sidecar and app container?

Hi, there. I suppose there are three ways to implement.

just one factor in MeshConfig
resource of sidecar:
(resource of app container)*factor        (both request and limit of both cpu and mem )
This way is very simple and annotation in injection template (sidecar.istio.io/proxyCPU  etc.) can override it.

two factors  request_factor and limit_factor in MeshConfig
request of sidecar:
(request of app container)*request_factor        (both cpu and mem)
limit of sidecar:
(limit of app container)*limit_factor        (both cpu and mem)
and annotation in injection template (sidecar.istio.io/proxyCPU  etc.) can override it.

resource_level->request_factor,limit_factor map and default_level in MeshConfig, and level in injection template annotation to override
request of sidecar:
(request of app container)*map[default_level ][0]        (both cpu and mem)
limit of sidecar:
(limit of app container)*map[default_level ][1]        (both cpu and mem)
or there is annotation (may be sidecar.istio.io/resourceLevel) in pod template,  it can be
request of sidecar:
(request of app container)*map[pod resourceLevel][0]        (both cpu and mem)
limit of sidecar:
(limit of app container)*map[pod resourceLevel][1]   (both cpu and mem)
It can alse be overridden by existed anntations (sidecar.istio.io/proxyCPU  etc.)

In above ways we can also split the factor to cpu factor and mem factor.
In this situation, the resource will be (for example just suppose the map is resource_level
->cpu_request_factor,cpu_limit_factor,mem_request_factor,mem_limit_factor in the 3rd way.)
cpu request of sidecar:
(cpu request of app container)*map[pod resourceLevel][0]
cpu limit of sidecar:
(cpu limit of app container)*map[pod resourceLevel][1]
memory request of sidecar:
(memory request of app container)*map[pod resourceLevel][2]
memory limit of sidecar:
(memory limit of app container)*map[pod resourceLevel][3]
Any good advice? 3ks

I don't think we should do this. This is quite complex calculation given there can be many different app containers, some may be added after istio's dynamically, there is many cases, and its very often that sidecar resource usage has no correlation to app resource requests.
I would recommend instead solving this out of band by dynamically setting the resource annotations (In CI, a controller, whatever)


ci: allow for manual re-deploy's of deployment workflow via workflow_dispatch

It could be useful if one could force re-deployments via the github UI of for example:

all clusters
a cluster
a staging setup in a cluster
a support setup in a cluster
a prod hub in a cluster

If this was enabled:

We could do "manual" redeploys using the GitHub UI instead of manually from our own computers which can be helpful sometimes for one-off reasons that tend to happen
I could for example right now run a re-deploy manually to test if my recent change in a workflow succeeded.

This would add a bit of complexity though.

Since we now also make decisions on what to deploy based on what changed etc, this is a bit too complicated to have as an option. Deploying manually using our deployer script should be fine.


Faucet page style optimization

This PR Optimize the UI of faucet, and refactor many code.
DO NOT MERGE IT WITHOUT QA TESTING!, it is a large PR.

DO NOT MERGE IT WITHOUT QA TESTING!, it is a large PR.

It can be changed into a draft PR


AppCache removal delayed to Chrome 85

Following up #5291:
https://web.dev/appcache-removal/

Removal from secure contexts, except for those opted-in to the origin trial | Chrome 85

https://bugs.chromium.org/p/chromium/issues/detail?id=582750#c69

appcache: bump deprecation warnings from M82 to M85

https://bugs.chromium.org/p/chromium/issues/detail?id=582750#c73
For WebView technically

Because WebView apps can't use origin trials, AppCache will be allowed until the final removal in M90.  We still recommend that developers move off of AppCache as soon as possible.

but I don't think we should track => encourage that.

Thanks!


Feature/185789/a11y automation

BDD project for accessibility testing using Deque.Axecore.Playwright

Do we have some documentation for approach to accessibility testing? as well as developer documentation for running the tests locally?

I will be updating the Test Approach in a separate branch along with developer documentation as for some reasons i can not see the documentation folder in my rider currently.


[BUG] CSS Not Working in Other Projects directory

The colour was set to violet in CSS for the line after the heading, but after I removed the bullet point from text, and made it li and /li It became black again?

May I take a stab at this?

May I take a stab at this?

Yup ofc. Assigning you to this issue.

@JeffBucherDev Also while your at it, once the text is violet again, can you try to make the bullet point black, I tried making it black in #159 , but didn't manage to do so there.
Also, I feel like I didn't give enough details, so here's the preview before I changed it to li:
https://621fbb4104c3f80008b48a44--mogulchristmas.netlify.app/otherprojects/
The text colour requirements:
Lightmode: Violet
Darkmode: Purple

I have the bullet point and text fixed for light mode, for some reason darkmode isn't working on the other page for me though.
LightMode DarkMode
The dark mode for me does a weird shadow-like thing instead of applying the DM settings.

Ok, I'll see if I can fix that. Can you please make a PR?

@JeffBucherDev Oh that, That was the darkmode color before (now its black) I updated it and believe it was updated in the deploy preview link I gave you

@JeffBucherDev I updated the main homepage darkmode color to black, but not the Other projects one, you've fixed the issue please make a PR.... I will make the other projects directory black for darkmode, depending on how it looks.

@JeffBucherDev I updated the main homepage darkmode color to black, but not the Other projects one, you've fixed the issue please make a PR.... I will make the other projects directory black for darkmode, depending on how it looks.

Fixed in aa206d9. Jeff, please pull changes from latest commit and add the edits required, I'm sure that will fix the problem :D


Fix notification collapse on click

Clicking an item (2 times in total) in the notifications panel changes the page underneath, but does not close the panel.

For what it's worth this was intentional. This is also just a random experiment at this point so intended behavior is completely up for discussion. (Including whether clicking on a thing links you to a page at all or if clicking on the first time does it -- as opposed to the current second click doing it for an unread notification.)

Personally I don't like sequential clicks having different effects. Reasonable solutions IMO:
Maybe clicking the event always marks it read but doesn't redirect. Then we could have a 'View' link (or whatever) which does redirect and closes the notifications pane.

@briansteffens +1 I've been leaning toward that as well.


Bonus points can never be negative

I haven't dug too deeply into this, but in the exported .qbj file for the 2016 Illinois NAQT State Championship, two games have negative bonus points reported. This is never possible and should not be allowed to be entered or reported. I don't know if other games have faulty bonus points too.

Duplicate of #24, now that I wrote that all out


Provide search functionality for service providers in Carbon console

Currently, there is no search functionality is available for service providers in the Carbon console. So it becomes difficult to find a specific service provider when the numbers of service providers exceed one page.
As the first step, search by name is sufficient as it fits most use cases.

https://github.com/wso2/carbon-identity-framework/pull/1932

https://github.com/wso2-support/carbon-identity-framework/pull/330 (For IS 5.2.0)


add wCCX logo on BSC

add wCCX logo on BSC - 0x988c11625472340b7B36FF1534893780E0d8d841

Is there any ETA for merging this PR? Let us know if you need any assistance. Thank you,


add default "score" property to each entry in Results

The TRAPI standard defines a score property on result objects (https://github.com/NCATSTranslator/ReasonerAPI/blob/master/TranslatorReasonerAPI.yaml#L320). The current plan is that every ARA should return some score by 2021-06-15.  So, in the short term, we should simply add that score property with a default score of 1.0:
        "results": [
            {
                "node_bindings": {
                    "n1": [
                        {
                            "id": "NCBIGene:2911"
                        }
                    ],
                    "n0": [
                        {
                            "id": "CHEBI:43876"
                        }
                    ]
                },
                "edge_bindings": {
                    "e01": [
                        {
                            "id": "NCBIGene:2911-biolink:physically_interacts_with-CHEBI:43876"
                        }
                    ]
                },
                "score": "1.0"
            },

I think Marco has addressed this in the latest release.
See the screenshot below where the default score of 1 is there for each result.
The PK for BTE's response is 67713c24-9209-4d14-988d-b973cb8234cf; you can look at it here.


Logical relationships between multiple match condition in TrafficSplit resource

Hi, there.
As per the specification, people can define a match condition array in the TrafficSplit resource, but the relationship between each condition in this match array is not classified. This makes me confused.
So It's my understanding that a logical-OR relationship will be better, what do you think?

Any responses?


[V2] support for multiple vendors

(v6) - tools and all drivers except NetKVM
(Balloon, pvpanic, vioinput, vioserial, vioscsi, viostor, viorng)
Introduce $(VENDOR) property (rhel by default).
There is no way to make substitutions inside inf file
except custom MSBuild target imported from .vcxproj
WDK/LegacyDDK scenarios are slightly different:
In case of WDK all that is needed is to execute inf substitution task
just after StampInf target had stamped .inx/.inf and moved it into
$(OutDir) and before InfVerif target.
In case of LegacyDDK we need to do things in the middle of PostBuild event
that copyes inf files, calls stampinf and calls packone.bat
That's why this logic was translated into MSBuild targets
Driver.Common.targets contains inf substituion and copying/stampinf as it
was in PostBuildEvent
Driver.PackOne.targets replaces packone.bat
Features (all feature are false by default):
$(Feature_UsingWDF) - do we use WDF?
$(Feature_AdjustInf) and $(Feature_AdjustInfLegacy)
executes SubstituteFileContent task
to substitute vendor specific strings in .inf/.inx files
with @(Substitution) from Driver.$(VENDOR).props
$(SourceInfFile) is required for Legacy case
$(Feature_LegacyStampInf) - executes
stampinf tool for Legacy DDK
$(Feature_PackOne) - Import Driver.PackOne.targets
Removed rhel versioning from Driver.Common.props,
added import of Driver.Vendor.props,
and simplified InfArch definitions
Driver.Vendor.props introduces schema to support different vendors
Driver.RHEL.props contains versioning and inf substitutions for Red Hat
Driver.VZ.props contains same for Virtuozzo
Due to the fact that version info
in .rc files for all drivers is almost the same this patch introduces
a schema for simplifying them.
.rc files should only declare VENDOR_VIRTIO_PRODUCT,
VER_FILEDESCRIPTION_STR, VER_INTERNALNAME_STR
each .props contains RHEL_COPYRIGHT_STARTING_YEAR
and VZ_COPYRIGHT_STARTING_YEAR as well as vendor.props
contains COPYRIGHT_CURRENT_YEAR. this values applies both
to inx/inf and .rc files
Alexey V. Kostyushko (16):
tools: added support for multiple vendors
tools: added support for multiple vendors for .rc
tools: fix for VS internal rc viewer
tools: support for multiple vendors for .inx/.inf
tools: support for multiple vendors (substitutions)
tools: support multiple vendors (c) years
balloon: fix vcxproj.filters with missing files
balloon: support for multiple vendors
vioinput: support for multiple vendors
vioscsi: support for multiple vendors
vioserial: add support for multiple vendors
viostor: add support for multiple vendors
pvpanic: add multiple vendor support
added support for multiple vendors
viorng: add support for multiple vendors
all: added support for multiple vendors (c) years

Your patch elegantly fix inx copyright issue, but should be extended to propagate macros in *.ver to fix .rc too

I've figured that .ver doesn't requires any modifications. So if all is ok we'll add your patch to patchset and it can be applied?


Remove research request, change it back to hiring

Summary
Changing the notification on developers.mattermost.com back to the "We're hiring!" with a link to mattermost.com/careers.
Ticket Link
No Jira link

@dontoisme - Currently, the preview isn't working as expected. I've let @spirosoik' team know, and I'd like to hold off approving and merging this PR until his team has had a chance to investigate further.

@dontoisme - Currently, the preview isn't working as expected. I've let @spirosoik' team know, and I'd like to hold off approving and merging this PR until his team has had a chance to investigate further.

All good. Thanks for the heads up :D

/update-branch


Update inv.js

Do you have a clip/image that can show the value for gold bars is indeed $1500?

Closing this because the latest feature has this solved.


Detailed results: figures in ouput dir not found

The scoring program save a figure named figure.png inside the output directory. The detailed results file contains this:

Detailed results

In the detailed results page, the figure is not found:

However, when downloading the Output from scoring step of the submission and opening the file detailed_results.html, it works:

This can be reproduced by uploading the Mini-AutoML bundle and its sample code submission:
https://github.com/codalab/competition-examples/tree/master/codabench/mini-automl

<Error>
AccessDenied
<Message>Access Denied.</Message>
<Key>
detailed_result/2023-05-24-1684930673/9a91c3078d47/figure.png
</Key>
<BucketName>coda-v2-prod-private</BucketName>
<Resource>
/coda-v2-prod-private/detailed_result/2023-05-24-1684930673/9a91c3078d47/figure.png
</Resource>
<RequestId>176216D6BFB2BFB9</RequestId>
<HostId>016731cd-3863-432e-a55a-b6fcd5a9d447</HostId>
</Error>


CI: Add removal of old uploads

Resolves #4
Remove all but the last N_LATEST_UPLOADS (defaulted to 5) package version uploads to the package index to ensure space. To do this, reply on the output form of anaconda show to be able to filter on the item delimiter character sequence for each version currently uploaded.
As an explicit example:
$ anaconda show scientific-python-nightly-wheels/xarray
Using Anaconda API: https://api.anaconda.org
Name:    xarray
Summary:
Access:  public
Package Types:  Standard Python
Versions:
   + 2023.5.1.dev2+gd8ec3a3f
   + 2023.5.1.dev5+gf96aca45
   + 2023.5.1.dev6+g69445c62
   + 2023.5.1.dev9+g609a9016
   + 2023.5.1.dev10+gf45eb733
   + 2023.5.1.dev11+gfcb81756
   + 2023.5.1.dev12+gb319d867
   + 2023.5.1.dev14+ge3db6164

To install this package with pypi run:
     pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple xarray

shows that by filtering on +
$ anaconda show scientific-python-nightly-wheels/xarray &> >(grep '+')
   + 2023.5.1.dev2+gd8ec3a3f
   + 2023.5.1.dev5+gf96aca45
   + 2023.5.1.dev6+g69445c62
   + 2023.5.1.dev9+g609a9016
   + 2023.5.1.dev10+gf45eb733
   + 2023.5.1.dev11+gfcb81756
   + 2023.5.1.dev12+gb319d867
   + 2023.5.1.dev14+ge3db6164

and then stripping ' + '
$ anaconda show scientific-python-nightly-wheels/xarray &> >(grep '+') | \
    sed 's/.* + //'
2023.5.1.dev2+gd8ec3a3f
2023.5.1.dev5+gf96aca45
2023.5.1.dev6+g69445c62
2023.5.1.dev9+g609a9016
2023.5.1.dev10+gf45eb733
2023.5.1.dev11+gfcb81756
2023.5.1.dev12+gb319d867
2023.5.1.dev14+ge3db6164

one can obtain a newline separated list of all package uploads, where the most recent uploads are listed last. After stripping off the N_LATEST_UPLOADS lines that correspond to the package versions to keep for testing
$ anaconda show scientific-python-nightly-wheels/xarray &> >(grep '+') | \
    sed 's/.* + //' | \
    head --lines -5 > remove-package-versions.txt
$ cat remove-package-versions.txt
2023.5.1.dev2+gd8ec3a3f
2023.5.1.dev5+gf96aca45
2023.5.1.dev6+g69445c62

the remaining (older) package uploads can be removed with anaconda remove.
Most of this is taken from https://github.com/matplotlib/matplotlib/pull/23349 (c.f. https://github.com/scientific-python/upload-nightly-action/issues/4#issuecomment-1564749453).
To provide a local reproducible example of the behavior, curl the following attached Shell script into a continuumio/miniconda3:latest container with anaconda-client installed

example-pr-12.sh:
# example-pr-12.sh
#!/bin/bash

# fail on undefined variables
set -u
# Prevent pipe errors to be silenced
set -o pipefail
# Exit if any command exit as non-zero
set -e
# enable trace mode (print what it does)
set -x

# Input variables
ANACONDA_ORG="scientific-python-nightly-wheels"
INPUT_ARTIFACTS_PATH="dist"
INPUT_N_LATEST_UPLOADS=5

# Fake the equivalent of having multiple wheels in INPUT_ARTIFACTS_PATH by
# downloading all the xarray nightlies
anaconda download \
    --output "${INPUT_ARTIFACTS_PATH}" \
    "${ANACONDA_ORG}/xarray"

if [ -d "${INPUT_ARTIFACTS_PATH}" ]; then
    # Leave off *.whl in ls target to avoid directory name prefix on wheel_name
    wheel_name=$(ls --almost-all "${INPUT_ARTIFACTS_PATH}" | head --lines 1)
    IFS=- read package_name discard <<< "${wheel_name}"
    unset wheel_name
else
    echo "No ${INPUT_ARTIFACTS_PATH} directory found."
    exit 1
fi

echo "package_name: ${package_name}"

if [ ! -z "${INPUT_N_LATEST_UPLOADS}" ]; then
  # Remove all _but_ the last "${INPUT_N_LATEST_UPLOADS}" package versions
  # N.B.: `anaconda show` places the newest packages at the bottom of
  # the output of the 'Versions' section and package versions are
  # preceded with a '   + '.
  anaconda show "${ANACONDA_ORG}/${package_name}" &> >(grep '+') | \
      sed 's/.* + //' | \
      head --lines "-${INPUT_N_LATEST_UPLOADS}" > remove-package-versions.txt

  if [ -s remove-package-versions.txt ]; then
    while LANG=C IFS= read -r package_version ; do
        echo "Removing ${ANACONDA_ORG}/${package_name}/${package_version}"
        # anaconda --token "${ANACONDA_TOKEN}" remove \
        #   --force \
        #   "${ANACONDA_ORG}/${package_name}/${package_version}"
    done <remove-package-versions.txt
  fi
fi

$ docker run --rm -ti continuumio/miniconda3:latest /bin/bash
(base) root@5d1ea993cbe9:/# conda install -y anaconda-client -c conda-forge
(base) root@5d1ea993cbe9:/# apt update && apt install -y curl
(base) root@5d1ea993cbe9:/# curl -sL https://github.com/scientific-python/upload-nightly-action/files/11609120/example-pr-12.sh.txt -o example-pr-12.sh
(base) root@5d1ea993cbe9:/# bash example-pr-12.sh
+ ANACONDA_ORG=scientific-python-nightly-wheels
+ INPUT_ARTIFACTS_PATH=dist
+ INPUT_N_LATEST_UPLOADS=5
+ anaconda download --output dist scientific-python-nightly-wheels/xarray
Using Anaconda API: https://api.anaconda.org
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev2+gd8ec3a3f-py3-none-any.whl
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev5+gf96aca45-py3-none-any.whl
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev6+g69445c62-py3-none-any.whl
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev9+g609a9016-py3-none-any.whl
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev10+gf45eb733-py3-none-any.whl
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev11+gfcb81756-py3-none-any.whl
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev12+gb319d867-py3-none-any.whl
scientific-python-nightly-wheels/xarray has been downloaded as xarray-2023.5.1.dev14+ge3db6164-py3-none-any.whl
+ '[' -d dist ']'
++ ls --almost-all dist
++ head --lines 1
+ wheel_name=xarray-2023.5.1.dev10+gf45eb733-py3-none-any.whl
+ IFS=-
+ read package_name discard
+ unset wheel_name
+ echo 'package_name: xarray'
package_name: xarray
+ '[' '!' -z 5 ']'
+ anaconda show scientific-python-nightly-wheels/xarray
+ sed 's/.* + //'
+ head --lines -5
++ grep +
+ '[' -s remove-package-versions.txt ']'
+ LANG=C
+ IFS=
+ read -r package_version
+ echo 'Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev2+gd8ec3a3f'
Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev2+gd8ec3a3f
+ LANG=C
+ IFS=
+ read -r package_version
+ echo 'Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev5+gf96aca45'
Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev5+gf96aca45
+ LANG=C
+ IFS=
+ read -r package_version
+ echo 'Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev6+g69445c62'
Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev6+g69445c62
+ LANG=C
+ IFS=
+ read -r package_version
(base) root@5d1ea993cbe9:/#

example-pr-12.sh.txt
I'm marking this as closing Issue #4 despite that it doesn't include a time cutoff as described in https://github.com/scientific-python/upload-nightly-action/issues/4#issuecomment-1569278784 given that I do not know of a pip or anaconda-client API that gets upload date information from the index (Probably exists somewhere though?) and this PR resolves all other matters as far as I understand it. We can revise or extend this if desired.

The only thing to me is that, IIUC this is to be done per project right? On SciPy and NumPy at least, we are not using actions to do the upload but we rely on CirrusCI. So we would need to add another action that would not upload and just check for removal? (In practice we overwrite our upload and only have a single version. But other packages might do differently.)
Should we have a nightly action on this repo that would run this for all packages?

Ah I see that I have misunderstood what "centralise" meant in https://github.com/scientific-python/upload-nightly-action/issues/4#issuecomment-1569277569.
@tupui so for SciPy and NumPy you use CirrusCI for all the uploads to https://anaconda.org/scientific-python-nightly-wheels? If so, then yes, this would all need to be a separate action.
I think that it would be better to do a 1-action-per-repo policy, so in that case this PR should get closed and I could port the relevant logic to the new repo (I'm not very good at naming things so nightly-wheel-removal or something of that sort).

Let's continue the discussion on the issue before we make any decisions about closing etc. 😃

Agreed that querying the index for the list of packages would make this a bit more robust against future package additions.
Aside, an alternative to sed magic:
| awk '{print $2}'

Thanks for the review @jarrodmillman! Does your approval mean that you were able to setup the remove-old-wheels GitHub Actions environment with the Anaconda cloud API token as an environment restricted secret?

See https://github.com/scientific-python/upload-nightly-action/pull/12#discussion_r1223294435

Thanks @matthewfeickert !!!

Just did a manual run with workflow dispatch and all looks good!
# package: ipython

# package: matplotlib
# Removing scientific-python-nightly-wheels/matplotlib/3.6.0.dev3181+g9f17f3f851
Using Anaconda API: https://api.anaconda.org/
# Removing scientific-python-nightly-wheels/matplotlib/3.6.0.dev3182+gd6bad5f684
Using Anaconda API: https://api.anaconda.org/
# Removing scientific-python-nightly-wheels/matplotlib/3.8.0.dev1157+g2f778fda79
Using Anaconda API: https://api.anaconda.org/
# Removing scientific-python-nightly-wheels/matplotlib/3.8.0.dev1150+g3d3a1afd6d
Using Anaconda API: https://api.anaconda.org
# Removing scientific-python-nightly-wheels/matplotlib/3.8.0.dev1192+gbb335a115c
Using Anaconda API: https://api.anaconda.org
# Removing scientific-python-nightly-wheels/matplotlib/3.8.0.dev1211+gdcb8180edc
Using Anaconda API: https://api.anaconda.org
# Removing scientific-python-nightly-wheels/matplotlib/3.8.0.dev1228+g19d93b7876
Using Anaconda API: https://api.anaconda.org

# package: networkx

# package: numpy
# Removing scientific-python-nightly-wheels/numpy/1.25.0.dev0+1532.g5d6c7[44](https://github.com/scientific-python/upload-nightly-action/actions/runs/5224131691/jobs/9431935913#step:6:45)db
Using Anaconda API: https://api.anaconda.org

# package: pandas

# package: scikit-image

# package: scikit-learn

# package: scipy

# package: statsmodels

# package: xarray
# Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev9+g609a9016
Using Anaconda API: https://api.anaconda.org
# Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev10+gf[45](https://github.com/scientific-python/upload-nightly-action/actions/runs/5224131691/jobs/9431935913#step:6:46)eb733
Using Anaconda API: https://api.anaconda.org/
# Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev11+gfcb81756
Using Anaconda API: https://api.anaconda.org/
# Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev12+gb319d867
Using Anaconda API: https://api.anaconda.org/
# Removing scientific-python-nightly-wheels/xarray/2023.5.1.dev14+ge3db6164
Using Anaconda API: https://api.anaconda.org/

Should be good to go for nightly cron jobs now and then just need to make sure that the workflow doesn't get shut off due to lack of repo activity.

It could also push a timestamp of its last run, maybe in a separate, empty branch, or gh-pages?

It could also push a timestamp of its last run, maybe in a separate, empty branch, or gh-pages?

Yup, but then you're accumulating a daily commit history on that other branch that still lives in the repo for no real reason. Is it easy to ignore? Sure, but seems kinda unnecessary. As you point out though, you could use gh-pages as a way to throw this stuff into the void in some sense, but if for any reason in the future you want to use the gh-pages for an actual website then you need to shift things around.
Personally, I would put this problem in the "kick it down the road until it becomes a problem" bin, as for the multiple projects that I maintain that are are at this stage LTS Docker images this hasn't come up much. Though if anyone has been nerdsniped by this conversation please go for it! :wink:

I had repos where we run into this in practice, and wondered why the actions stopped working. So I would just like to avoid being on that road again :)

One commit every 50 days on a keepalive branch isn't too bad :)
https://github.com/marketplace/actions/keepalive-workflow

Ahh, nice, thanks for the link. I was starting to hack something together, but it's probably much easier to just do the action. I'll open a PR for this.


Removed redundant translation on language change

When the language is changed, the page is being translated redundantly on the front end:

When the language is changed, the front-end is triggered to translate the language.
When the page reloads, it is again translated.

Current behavior:

Patch:

Removed the l10n call to update the language on drop-down option change.

Good.


[ADD] cli to download T1 nifti files outside.

This will let us download T1 nifti files on cluster (e.g. Compute Canada) without having to spawn a Jupyter notebook.
Therefore, it requires fewer resources from the login node and speeds up the download.

Waiting for #39 to be merged to refactor this PR and add the CLI entry script to the pyproject.toml

Looks great, thanks @mathdugre!


Store indexes metadata

Description
Closes #3375.
In addition to unit tests, I also ran various integration tests locally, e.g.
task test-integration-postgresql SHARD_INDEX=0 SHARD_TOTAL=0 TEST_RUN="TestCollectionName"

Readiness checklist

[x] I added/updated unit tests (and they pass).
[ ] I added/updated integration/compatibility tests (and they pass).
[ ] I added/updated comments and checked rendering.
[x] I made spot refactorings.
[ ] I updated user documentation.
[ ] I ran task all, and it passed.
[x] I ensured that PR title is good enough for the changelog.
[x] (for maintainers only) I set Reviewers (@FerretDB/core), Milestone (Next), Labels, Project and project's Sprint fields.
[x] I marked all done items in this checklist.

@rumyantseva is it ready for review?

@AlekSi almost! a couple of last checks, and I'll re-request review


Add travis ci

closed via https://github.com/sedouard/slack-o365-calendar/commit/5961f815d62730864ea5e023fc362b82548e7c7a


 Please close it.
Wrote a small script to automate the reporting, Just like the spammer did.
Script here: https://gist.github.com/VISWESWARAN1998/cf74dd0890534ad3e72f326e46460cd3
Regards,
Visweswaran N

@VISWESWARAN1998 please, don't post comments on the spam, it just adds to the spam. You can instead report the user to Github, that could help banning them


Updating instructions for setting workspace in AZ CLI

I made edits directly into the file @SoniaLopezBravo, pleas check them out

Thank you so much @geduardo. I have a question, should we change dotnetcli for azurecli in other articles?

Yes, if they're referring to the Azure CLI it would be nice


Add info about loading data from your local computer

Right now we only show in our docs on loading data how to load from URL, but often people will have CSVs on their computers.
See here:
https://ibm-watson-data-lab.github.io/pixiedust/loaddata.html
Here's an example:
pixiedust.sampleData('file:///Users/bradfordnoble/pixiedust/data/nz.csv')

OK addressed in #543

Actually in #544 . Sorry about that.


length() not working as expected

For the given expression: $.store.book[?(@.price>10)].length(), while applying on example: http://jsonpath.herokuapp.com/?path=$..book.length(),  the result is
[
   4,
   5
]

which seems wrong to me. Shouldn't it be 2?

Yes I feel its wrong too, but just to explain how the length function works check below.
The function lenght() can be used to return the length when an array contains an array of objects.
For example the following path $.store.book[*] returns an array list containing 4 book objects. If you use the length() function on this it will return something like [4,4,5,5] but if you want the length of the books then you need to  change the path $.store.book.length();. The reason for this is that when you use  *  sign the function will look inside each object and gives the length of the specific object hence it returns [4,4,5,5] which means book[0] object contains 4 key value pairs. But this issue is for values within an object but it can be solved for situations where you have object arrays, for example if you want to get the length of the bicycle length then you can use something like  $.store["bicycle"].length()
Solution: most probably we might have to come up with a way to return the key value pair which in turn allows us to get the length easily.
Hopefully this paves you a path to some solution:) and hope I shed some light to your question

Thanks for your explanation, but your example doesn't work for me. In my case, I need to apply a filter on certain list, an get the length of the filtered data.
Currently, I need to remove the length() function from the expression, get a filtered list firstly, and then get the size/length in the second step. Something similar to:
returnAction.andExpect(jsonPath("$.store.book[?(@.price>10)]", hasSize(2)));

Yeah ! That would be the way forward
On Thu, Aug 29, 2019 at 2:46 PM thiner<EMAIL_ADDRESS>wrote:

Thanks for your explanation, but your example doesn't work for me. In my
case, I need to apply a filter on certain list, an get the length of the
filtered data.
Currently, I need to remove the length() function from the expression,
get a filtered list firstly, and then get the size/length in the second
step. Something similar to:
returnAction.andExpect(jsonPath("$.store.book[?(@.price>10)]", hasSize(2)));
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/json-path/JsonPath/issues/562?email_source=notifications&email_token=ACXO3ZMVEMLZNGWO5XFU5GLQG4Z7VA5CNFSM4IRB4PD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NBR7Q#issuecomment-525998334,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACXO3ZIDFR3O33AN3KJ7W23QG4Z7VANCNFSM4IRB4PDQ
.

--
~_ යුහාන් _~

Shouldn't this issue be marked as closed then? The length() function has been explained, and albeit it seems a bit weird (to me, too), I get the point, and it has its merits...

Just verified here: https://sumiya.page/jpath.html. The expression returns 9, which should the total number of object keys in the list.

I tend to agree with you @thiner with respect to how the length() function has been implemented in JsonPath; the results it yields may sometimes be VERY VERY confusing. Especially your last example that returns 9... WTH is 9 one may ask? :-)
Adding new result-transformation-function like result() that you have proposed may indeed be an option; because any other modification to the current implementation of length() (for example, do not let length() recurse into arrays) risks breaking someone's existing code or configuration out there.
Need some kind of democratic vote here, I guess...


correct use of required annotation in json-schema

https://tools.ietf.org/html/draft-handrews-json-schema-validation-02#section-6.5.3
as discussed in #matrix-spec:matrix.org

@Gnuxie can we get sign off on this please?

@turt2live
Signed-off-by: Gnuxie<EMAIL_ADDRESS>


added issue template

corresponds to issue-> #9

@rajpratyush kindly add dwoc and level tags

@rajpratyush kindly add dwoc and level tags

tags are already added you can check again

tags are already added you can check again

@rajpratyush you have to add the tags to the pr's adding to issue just shows the level but the level that are added to prs are counted as points and you have not added so kindly add the tags to the prs that you have merged already

@rajpratyush you have to add the tags to the pr's adding to issue just shows the level but the level that are added to prs are counted as points and you have not added so kindly add the tags to the prs that you have merged already


⚠ Bofrost.lu has degraded performance

In 773f0d0, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1288 ms

Resolved: Bofrost.lu performance has improved in c8b65a9 after 13 minutes.


[UI > QuickInstall] Init

Proxy prefix will need changing once we have the organization for that.
If you rewrite this I'm going to find you and explode you.

Proxy prefix will need changing once we have the organization for that.
If you rewrite this I'm going to find you and explode you.


Adding TestAdapter hardware support

One of the most wanted feature is to have hardware Unit Test working for nanoFramework: this PR is just about that!
Description
Adding TestAdapter hardware support
Motivation and Context

Add real hardware support in the Unit Test framework

How Has This Been Tested?
tested with an ESP32, both with the simple NFUnitTest template and also the nanoFramework.Json tests.

This will require to adjust the nuget, the target version has been changed for .NET 4.8. And adjust the path in the nuget as well.
Types of changes

[x] Improvement (non-breaking change that improves a feature, code or algorithm)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Config and build (change in the configuration and build system, has no impact on code or features)
[x] Dependencies (update dependencies and changes associated, has no impact on code or features)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

@nfbot updatedependencies

@nfbot  updatedependencies

@nfbot  updatedependencies

@nfbot updatedependencies

@nfbot updatedependencies


Uncaught TypeError: inst.setState.bind is not a function

I'm getting this error when running npm start, however it goes away when i do npm run build and serve that. Any ideas? I'm not exactly sure what's causing it, it's related to setState though, from a result of a UI interaction callback. It doesn't seem to cause problems... (famous last words).
 Which version are you using?

0.15.4, Chrome ver Version 53.0.2785.89 (64-bit), OSX

Can you share a project reproducing this?

I don't quite have the time to try and reproduce this in a form I can share publicly.
The error message is triggering after the render phase and componentDidUpdate has finished, I tried inserting logging to find at what point it was happening but the error always happened after any logging I was doing.
I'm using https://github.com/callemall/material-ui, and as part of the library it uses a second react 'render' to handle the popover/overlay ui elements. The error seems to be happening when this second react root is being created and destroyed. Here's what it looks like in dev tools (while the popover is active), don't know if that's helpful or not.

My last message was incorrect, the error triggers even when I'm just trying into an input field, it seems not related to the extra root div being rendered to.

This is also happening in firefox react dev tools.

Don't know whether it's worth moving this to react dev tools repo.

I think this should be filed in DevTools repo.

I'm getting this issue while not using create-react-app, might be from somewhere else

@savovs It's the react dev tools, not specifically related to create-react-app.

@tbillington Could you tell me how resolve the problem? Thanks.

@Acgsior Hey mate, unfortunately I don't have a good solution :) it went away after a while. I'm assuming updating my dev tools fixed this.

If you can consistently reproduce this please share your project in a react-devtools repo issue.

I had the same problem....,Is there a solution?

I got this and it was some serious user error!
this.setState = {
 ...
};

vs.
this.setState({
 ...
});

I blame 🍺

I'll lock this because the original bug is unrelated and now people googling this will read confusing threads that have nothing to do with their problem.


There is no "Execute / Debug in interactive" commands

VS 2015:

VS 2017 RC:

Closing as duplicate of #1633


mono is broken on aarch64-linux

Describe the bug
mono looks frequently (and currently) broken on aarch64:
https://hydra.nixos.org/job/nixpkgs/trunk/mono.aarch64-linux
Perhaps the build is flaky?

I see some stuff like this in the log in the failing cases:
mkdir -p -- build/deps
/nix/store/j1wvpskk5wkp5ji42in212csp8095k7k-bash-4.4-p23/bin/bash: mono: command not found
make[6]: *** [build/profiles/basic.make:121: build/deps/basic-profile-check.exe] Error 127
*** The runtime 'mono' doesn't appear to be usable.
*** Trying the 'monolite-linux/B886E13F-6276-4BE5-85F8-C6BF5EDBD200' directory.
Microsoft (R) Visual C# Compiler version <IP_ADDRESS>916 (2ad4aabc)
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Visual C# Compiler version <IP_ADDRESS>916 (2ad4aabc)
Copyright (C) Microsoft Corporation. All rights reserved.

rm: cannot remove './/build/gensources.exe': No such file or directory
mkdir -p -- ../../class/lib/basic/tmp/
CSC     [basic] Mono.Cecil.dll

Notify maintainers

@thoughtpolice @obadz

This would be fixed by https://github.com/NixOS/nixpkgs/pull/93043, at least on my machine.


Added Header for 'Invoke-ColorizedFileListing'

It bothered me to not the column headers when using
Invoke-ColorizedFileListing.

Hi @Stephanevg. I have reviewed your PR. I see where you are getting at with this, and I tried to make it work, but since you have the option of showing Owner and SizeOnDisk individually, the code just got too sloppy/hard. Your code does not work when using the show SizeOnDisk parameter for instance. At the moment I'm working on using a formats file to get colorization when you use the regular Get-ChildItem command (ls), so I thought Get-ColorizedFileListing would make a fine compact version, and I guess not having any headers fits nicely with this. If you really want this functionality in this function, and get the code to work for all parameter combinations feel free to create a new PR, but perhaps add a parameter to the function to optionally not show headers? I'll leave the PR open for a while in case you have anything to add :) I'm very glad for the PR btw, I think this is the first time someone have been interested enough to want to contribute to one of my projects on Github :)


getUniqueID() new UUID each type app reopened in ios simulator

A React-Native app I'm developing in IOS simulator, if I double home click and swipe close my app, then reopen it, getUniqueID() returns a brand new UUID.
Is this expected behaviour?
Is it just a quirk of the simulator / react environment?

FWIW im not seeing this behavior. I have relaunched the app/simulator many times and always get the same UUID

I will have to take a look in more detail sometime. Anyway I went round the issue by saving the first UUID generated into a localstorage database and using that from then on.

I have the same issue.

@skylarmb can you please send me your code, if possible

@MajidAzizSc I didn't do anything special.
import DeviceInfo from 'react-native-device-info';
...
const deviceId = DeviceInfo.getUniqueID();

can you do that for me if I send you my sample app code ?

can you do that for me please

Please have a look at the sample app.
thanks
On Wed, Apr 12, 2017 at 4:06 AM, Skylar Brown<EMAIL_ADDRESS>wrote:

@MajidAzizSc https://github.com/MajidAzizSc I didn't do anything
special.
import DeviceInfo from 'react-native-device-info';
...
const deviceId = DeviceInfo.getUniqueID();
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rebeccahughes/react-native-device-info/issues/99#issuecomment-293425619,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AaAoCdupdIcQGBfDA75y8p-e7k3eCv9Wks5rvAeOgaJpZM4KGC0g
.

Is this still happening with 0.14.0 ?

Closing this old issue, please open a new one if you're still facing this problem.


Only start using scientific notation below 0.001

Current behavior
As far as I can tell, all numbers <1 are represented using scientific notation. Example:

Expected/desired behavior
Scientific notation should only be used on very small numbers (< 0.0001), imo.

Let's do <0.001.

done. closing as complete. will be visible at next deployment


Access variable outside processor.addPacketCallback

I declared, global variable 'left_iris_depth'
public static float left_iris_depth;
Then assigned value to this variable in processor.addPacketCallback
processor.addPacketCallback(
LEFT_IRIS_DEPTH_MM,
(packet) -> {
left_iris_depth = PacketGetter.getFloat32(packet);
Log.v(TAG,"left depth in cm is: " + left_iris_depth/10);
});
but when i try to access this variable outside it gives value as 0 only and not the value assigned inside processor.addPacketCallback
So how could I access the variable values outside processor.addPacketCallback?

I think the overall design here is correct.  The static variable should contain a value assigned during a recent callback.  A few things to watch out for:
(1) thread synchronization: unless the callback thread and the thread reading the global variable are synchronized in some way, changes to the global variable may not appear consistent between the two threads.  Marking the global variable as "volatile" would ensure more consistency between threads.
(2) extra callbacks: if the callback is called multiple times, maybe even in parallel, it may overwrite the variable and hide some values that you expect to see.
(3) shadowing: maybe there is a local variable somehow shadowing the global variable.
(4) class loaders: maybe there are multiple copies of the global variable caused by multiple class loaders.

I think the overall design here is correct.  The static variable should contain a value assigned during a recent callback.  A few things to watch out for:
(1) thread synchronization: unless the callback thread and the thread reading the global variable are synchronized in some way, changes to the global variable may not appear consistent between the two threads.  Marking the global variable as "volatile" would ensure more consistency between threads.
(2) extra callbacks: if the callback is called multiple times, maybe even in parallel, it may overwrite the variable and hide some values that you expect to see.
(3) shadowing: maybe there is a local variable somehow shadowing the global variable.
(4) class loaders: maybe there are multiple copies of the global variable caused by multiple class loaders.

Closing this issue for now. Feel free to re-open it if more responses are needed.


bower.json: Remove font files from main

Per bower/bower.json-spec#43 :

font files [...] are not main files as they are not entry-points. [...]

Globs [...] are not allowed.

I'm unsure of the implications of this. The conversation on the github issues are little circular.  We definitely want to make sure the font files are included when Ionic is installed through bower.

They'll be included so long as they're not ignored. But they're not main because font files don't reference/"import" each other.
CC: @desandro of Team Bower who wrote the new spec

Yup. Font files should not be included in main. See spec https://github.com/bower/bower.json-spec#main

@perrygovier There's your confirmation ^^^

We're moving away from bower, thanks!

Is there a link or any details you can share about the move?


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_3465b1ff-4644-4092-96b3-13ecbbe146d3/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_3465b1ff-4644-4092-96b3-13ecbbe146d3.git

Docs Build status updates of commit a4f2793:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_main_2022-05-30-04-17-23 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Cannot get ffmpeg to work - An established connection was aborted by the software in your host machine (Solved)

I am using ffmpeg version 2024-09-22, go2rtc version=1.9.4
I have the following, which works:
   streams:
     cam3:
       type: rtsp
       url: rtsp://<IP_ADDRESS>:80/ch2_0.264
       control: false
       record: false
       options:
         reconnect: true
         reconnect_interval: 60 # seconds
         max_retries: 5

Now, I want to handle this with ffmpeg. According to the documentation, with the format being ffmpeg:{input}#{param1}#{param2}#{param3} the following simple stream should work:
test: ffmpeg:rtsp://localhost:8554/cam3
But I am getting the error: error="read tcp <IP_ADDRESS>:8554-><IP_ADDRESS>:50731: wsarecv: An established connection was aborted by the software in your host machine."
Now the following works:
  test:
     type: ffmpeg
     url: rtsp://localhost:8554/cam3

But I cant apply operations like #rotate=90 or `options: rotate: 90' to work
The following doesnt work either:
test: ffmpeg:rtsp://<IP_ADDRESS>:80/ch2_0.264
My end goal is to create a new rtsp stream by taking 4 camera streams, cam1, cam2, cam3 and cam4 and applying the following: -filter_complex "[0:v][1:v]hstack[top];[2:v][3:v]hstack[bottom];[top][bottom]vstack"
I want to use the camera stream created by go2rtc as opposed to from the camera source because I need the functionality of reconnect_interval.
I have ensured both go2rtc.exe and ffmpeg.exe are in windows antivirus and firewall exclusion list
But I'm failing at basically step two, getting ffmpeg to work

Okay so through lots of testing I figured it out. This stream formatting for ffmpeg works:
  test_scale: #native is 2560x1440
    - ffmpeg:cam1#video=h264#width=1280#height=720

You need to have video set to something otherwise you cant transcode a stream copy.
So then I started playing around with custom formats. Although I couldnt manage to create my new format, I could override existing ones.
Previously RTSP looked like this:
https://github.com/AlexxIT/go2rtc/blob/master/internal/ffmpeg/ffmpeg.go
This is what I turned it into, note that go2rtc doesn't actually handle multi-line strings right, so this would all be one line, i just added indentation so its legible:
ffmpeg:
  rtsp: >
		-fflags nobuffer
		-flags low_delay
		-timeout 5000000
		-thread_queue_size 512
		-user_agent go2rtc/ffmpeg
		-rtsp_flags prefer_tcp
	-i rtsp://localhost:8554/cam1
		-fflags nobuffer
		-flags low_delay
		-timeout 5000000
		-thread_queue_size 512
		-user_agent go2rtc/ffmpeg
		-rtsp_flags prefer_tcp
	-i rtsp://localhost:8554/cam2
		-fflags nobuffer
		-flags low_delay
		-timeout 5000000
		-thread_queue_size 512
		-user_agent go2rtc/ffmpeg
		-rtsp_flags prefer_tcp
	-i rtsp://localhost:8554/cam3
		-fflags nobuffer
		-flags low_delay
		-timeout 5000000
		-thread_queue_size 512
		-user_agent go2rtc/ffmpeg
		-rtsp_flags prefer_tcp
	-i rtsp://localhost:8554/cam4
	-filter_complex '[0:v][1:v]hstack[top];[2:v][3:v]hstack[bottom];[top][bottom]vstack'"

And this gives me exactly what I wanted:

Closing because solved. It's better to use exec source when you using so complex ffmpeg params.

I hope you can give me a tutorial to show me how to play multi-screen videos like the pictures in your message. Thank you


Bugfixed Visual Studio errors when compiled as C++ sources

Hello Yann,
Here you have a few missing casts.
They're not required in C, but library will fail to compile in C++ mode otherwise
(reproduce it by typìng cl.exe /Tp fse.c and cl.exe /Tp zstd.c)
Great library.
Keep up the good work.

r-lyeh

PS: I have kept your identation style when creating the type casts. Also, see errors bugfixed below:
fse.c(135) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(148) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(169) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(183) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(621) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const rank_t *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(622) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const rank_t *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(1008) : error C2440: 'initializing' : cannot convert from 'void *' to 'U32 *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(1026) : error C2440: 'initializing' : cannot convert from 'void *' to 'U32 *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(1145) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const U32 *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
fse.c(1514) : error C2440: 'initializing' : cannot convert from 'void *' to 'U32 *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast

zstd.c(205) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(206) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(213) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(230) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(279) : error C2440: 'initializing' : cannot convert from 'ZSTD_cctx_t' to 'refTables_t *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(440) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(461) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(954) : error C2664: 'size_t ZSTD_compressEntropy(BYTE *,size_t,const BYTE *,const BYTE *,const BYTE *,const BYTE *,const BYTE *,const U32 *,const BYTE *,const BYTE *,size_t,size_t)' : cannot convert argument 1 from 'void *' to 'BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1001) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1003) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1009) : error C2440: '=' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1013) : error C2440: '=' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1068) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1085) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1133) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1142) : error C2440: '=' : cannot convert from 'int' to 'blockType_t' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
zstd.c(1233) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1261) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1263) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1303) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1397) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1399) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1561) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1563) : error C2440: 'initializing' : cannot convert from 'void *' to 'BYTE *const ' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1640) : error C2440: 'initializing' : cannot convert from 'void *' to 'dctx_t *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast
zstd.c(1698) : error C2440: 'initializing' : cannot convert from 'const void *' to 'const BYTE *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast

Thanks, it's a straightforward and very useful patch for C++

:+1: :beer:


Add missing  [out, retval] for IAccessible::get_accHelp

@kant2002 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Karl-Bridge-Microsoft : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Always define X_ENABLED macro constants

Right now, macro constants for conditional compilation are only defined when enabled:
-DX_ENABLED (equivalent of #define X_ENABLED (1)).
I think it would be better to always define these constants, even when disabled:
#define X_ENABLED (1), #define X_ENABLED (0).
This allows the usage of such constants in code:
print_line(DEBUG_ENABLED ? "debug" : "release");

// VS

#ifdef DEBUG_ENABLED
print_line("debug");
#else
print_line("release");
#endif

// or

print_line(
#ifdef DEBUG_ENABLED
    "debug"
#else
    "release"
#endif
);

if (!NO_THREADS) mutex->lock();

// VS

#ifndef NO_THREADS
mutex->lock();
#endif

However, such a change would also require switching from #ifdef to #if. Fortunately, #if is less verbose than #ifdef, specially when checking for multiple constants:
#if WINDOWS_ENABLED && TOOLS_ENABLED
// ...
#endif

// VS

#if defined(WINDOWS_ENABLED) && defined(TOOLS_ENABLED)
// ...
#endif

// or

#ifdef WINDOWS_ENABLED
#ifdef TOOLS_ENABLED
// ...
#endif
#endif

Updated to make it more clear.
@aaronfranke #if does not require a certain C++ version. I can't think of any drawback in this proposal right now, other than the cost of converting existing code and the possibility of people accidentally using #ifdef instead.

I think the change is too unlikely to be accepted due to the amount of refactoring required and the fact the current way we do this is not broken. Also there has not been much sign of interest in this and not many comments. With all this in mind I'm closing this issue and I don't think I will re-open it as a more detailed proposal in godotengine/godot-proposals.


DatabaseRule doesn't work with enum

Laravel Version: 9.23.0
PHP Version: 8.1.0

Description:
DatabaseRule doesn't work with enum
Steps To Reproduce:
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;
use App\Enums\UnitType;

Validator::make([], ['type' => UnitType::weight]);

This code returns error PHP Error:  Object of class App\Enums\UnitType could not be converted to string in

Seems like a feature request.


Add CollectionNavigator support to TableView

Naive implementation:
public ITableSource Table {
	get => table;
	set {
		table = value;
		var firstColumnList = new List<object> ();
		for (var i = 0 ; i < table.Rows; i++) {
			firstColumnList.Add (table [i, 0]);
		}
		KeystrokeNavigator.Collection = firstColumnList;
		Update ();
	}
}

...

/// <summary>
/// Gets the <see cref="CollectionNavigator"/> that searches the <see cref="TableView.Table"/> collection as
/// the user types.
/// </summary>
public CollectionNavigator KeystrokeNavigator { get; private set; } = new CollectionNavigator ();

/// <inheritdoc/>
public override bool ProcessKey (KeyEvent keyEvent)
{
	if (TableIsNullOrInvisible ()) {
		PositionCursor ();
		return false;
	}

	var result = InvokeKeybindings (keyEvent);
	if (result != null) {
		PositionCursor ();
		return true;
	}

	// Enable user to find & select an item by typing text
	if (CollectionNavigator.IsCompatibleKey (keyEvent)) {
		var newItem = KeystrokeNavigator?.GetNextMatchingItem (SelectedRow, (char)keyEvent.KeyValue);
		if (newItem is int && newItem != -1) {
			SelectedRow = (int)newItem;
			EnsureSelectedCellIsVisible ();
			SetNeedsDisplay ();
			return true;
		}
	}

	return false;
}

A smarter implementation would
a) not have to copy the entire first column of the data source
b) let the dev choose which column to use
I think fixing a) requires an enhancement to CollectionNavigator where instead of providing a list to search, a call back function is provided.

Looks like we both created this oops.  Mine is in #2581
Do you want to merge the two?


Goldbach Number in Java

💥 Proposal
A Goldbachnumber is a positive even integer that can be expressed as the sum of two odd primes.
Write a program to accept an even integer . Find all the odd prime pairs whose sum is equal to the number .
Test your program with the following data and some random data:
Example 1:
INPUT: N = 14
OUTPUT: PRIME PAIRS ARE: 3, 11   7, 7
Example 2:
INPUT: N = 30
OUTPUT: PRIME PAIRS ARE: 7, 23   11, 19   13, 17
Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign


This experimental syntax requires enabling the parser plugin: "importAssertions"

Clone this reproduction gist then run jsdoc index.js. You get this error message:
$ jsdoc index.js
ERROR: Unable to parse import-assertions/index.js: This experimental syntax requires enabling the parser plugin: "importAssertions". (1:31)

What is the recommended way to resolve this issue?

Thanks for the heads up! I just published JSDoc 4.0.2, which upgrades the Babel parser and enables support for this ECMAScript syntax proposal (plus a bunch more). Your example should work in JSDoc 4.0.2.


Monorepo crash parsing unused sibling tsconfig.json

vite-tsconfig-paths crashes in a monorepo where one package uses vite-tsconfig-paths, and the other package has invalid tsconfig.json (even if the two packages are unrelated and don't refer to each other in any way).
This kind of setup occurs when a monorepo is used to build a particular micro service, and one of the (unused) sibling packages uses build-time generated tsconfig.json (in my case, that is a Nuxt.js app).
Reproduction
https://stackblitz.com/edit/node-wpwtp3
Run:
cd packages/api
pnpm vitest run

Expected result
The test runs normally.
Actual result
Even though api package doesn't refer to web package in any away, web/tsconfig.json is being loaded, parsed, and vite crashes:
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TSConfckParseError: failed to resolve "extends":".nuxt" in /home/projects/node-wpwtp3/packages/web/tsconfig.json
    at resolveExtends (file:///home/projects/node-wpwtp3/node_modules/.pnpm/tsconfck@2.1.1/node_modules/tsconfck/dist/index.cjs:539:9)
    at parseExtends (file:///home/projects/node-wpwtp3/node_modules/.pnpm/tsconfck@2.1.1/node_modules/tsconfck/dist/index.cjs:493:28)
    ... 5 lines matching cause stack trace ...
    at async Module.createServer (file://file:///home/projects/node-wpwtp3/node_modules/.pnpm/vite@4.2.1_@types+node@18.15.11/node_modules/vite/dist/node/chunks/dep-79892de8.js:62801:20)
    at async createVitest (file://file:///home/projects/node-wpwtp3/node_modules/.pnpm/vitest@0.29.8/node_modules/vitest/dist/chunk-node-pkg.30d8b37e.js:13867:18)
    at async Module.startVitest (file://file:///home/projects/node-wpwtp3/node_modules/.pnpm/vitest@0.29.8/node_modules/vitest/dist/chunk-node-pkg.30d8b37e.js:20259:15) {
  code: 'EXTENDS_RESOLVE',
  cause: Error: Cannot find module '.nuxt/tsconfig.json'
  Require stack:
  - /home/projects/node-wpwtp3/packages/web/tsconfig.json
      at Module._resolveFilename (https://nodewpwtp3-esof.w-credentialless.staticblitz.com/blitz.88d3a49b591611919d7d64c44b90ff5f8e939906.js:6:242305)
      at Function.resolve (https://nodewpwtp3-esof.w-credentialless.staticblitz.com/blitz.88d3a49b591611919d7d64c44b90ff5f8e939906.js:6:480406)
      at resolveExtends (file:///home/projects/node-wpwtp3/node_modules/.pnpm/tsconfck@2.1.1/node_modules/tsconfck/dist/index.cjs:534:53)
      at parseExtends (file:///home/projects/node-wpwtp3/node_modules/.pnpm/tsconfck@2.1.1/node_modules/tsconfck/dist/index.cjs:493:28)
      at Object.parse (file:///home/projects/node-wpwtp3/node_modules/.pnpm/tsconfck@2.1.1/node_modules/tsconfck/dist/index.cjs:431:24)
      at async Promise.all (index 1)
      at async configResolved (file:///home/projects/node-wpwtp3/node_modules/.pnpm/vite-tsconfig-paths@4.0.7/node_modules/vite-tsconfig-paths/dist/index.js:124:9)
      at async Promise.all (index 0)
      at async resolveConfig (file://file:///home/projects/node-wpwtp3/node_modules/.pnpm/vite@4.2.1_@types+node@18.15.11/node_modules/vite/dist/node/chunks/dep-79892de8.js:63765:5)
      at async Module.createServer (file://file:///home/projects/node-wpwtp3/node_modules/.pnpm/vite@4.2.1_@types+node@18.15.11/node_modules/vite/dist/node/chunks/dep-79892de8.js:62801:20) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/home/projects/node-wpwtp3/packages/web/tsconfig.json' ]
  },
  tsconfigFile: '/home/projects/node-wpwtp3/packages/web/tsconfig.json'
}

Thanks for the quick reply!
I seem to have gotten things working with the following:
tsConfigPaths({ projects: ['./', '../../packages/db'] })
Will report back if I discover any issues that bubble up with that approach.

Hello, I have a related issue! 😄
I'm in a monorepo containing "disconnected" packages with their own yarn.lock, and I don't want to install their dependency when in dev. But when using Vitest + vite-tsconfig-paths to run my tests, vite-tsconfig-paths is attempting to load all the tsconfig.json of the monorepo, which fails because I extend configurations from @tsconfig/node-lts-strictest-esm which isn't installed:
TSConfckParseError: failed to resolve<EMAIL_ADDRESS>in /Users/jgoux/Documents/code/snaplet/packages/cli/tsconfig.json
    at resolveExtends (/Users/jgoux/Documents/code/snaplet/node_modules/tsconfck/dist/index.cjs:539:9)
    at parseExtends (/Users/jgoux/Documents/code/snaplet/node_modules/tsconfck/dist/index.cjs:493:28)
    ... 5 lines matching cause stack trace ...
    at async _createServer (file:///Users/jgoux/Documents/code/snaplet/node_modules/vite/dist/node/chunks/dep-a36bfc56.js:63161:20)
    at async createVitest (file:///Users/jgoux/Documents/code/snaplet/node_modules/vitest/dist/vendor-cli-api.c04eaa34.js:14365:18)
    at async startVitest (file:///Users/jgoux/Documents/code/snaplet/node_modules/vitest/dist/vendor-cli-api.c04eaa34.js:20757:15) {
  code: 'EXTENDS_RESOLVE',
  cause: Error: Cannot find module<EMAIL_ADDRESS>  Require stack:
  - /Users/jgoux/Documents/code/snaplet/packages/cli/tsconfig.json
      at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
      at Function.resolve (node:internal/modules/cjs/helpers:116:19)
      at resolveExtends (/Users/jgoux/Documents/code/snaplet/node_modules/tsconfck/dist/index.cjs:534:53)
      at parseExtends (/Users/jgoux/Documents/code/snaplet/node_modules/tsconfck/dist/index.cjs:493:28)
      at Object.parse (/Users/jgoux/Documents/code/snaplet/node_modules/tsconfck/dist/index.cjs:431:24)
      at async Promise.all (index 4)
      at async configResolved (/Users/jgoux/Documents/code/snaplet/node_modules/vite-tsconfig-paths/dist/index.js:124:9)
      at async Promise.all (index 0)
      at async resolveConfig (file:///Users/jgoux/Documents/code/snaplet/node_modules/vite/dist/node/chunks/dep-a36bfc56.js:64138:5)
      at async _createServer (file:///Users/jgoux/Documents/code/snaplet/node_modules/vite/dist/node/chunks/dep-a36bfc56.js:63161:20) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
      '/Users/jgoux/Documents/code/snaplet/packages/cli/tsconfig.json'
    ]
  },
  tsconfigFile: '/Users/jgoux/Documents/code/snaplet/packages/cli/tsconfig.json'
}


Make library installation pathes more clean

Hi,
great work. I just found the places libraries where put (Linux: lib instead of lib64 on x86_64)
and the amount of file directly put into $prefix/include both could be improved.
Additionally this creates a pkgconfig file in $prefix/{lib,lib64}/pkgconfig so that this
library can be detected more easily.

Hi awernerdlr,
thanks for the effort!


Include an invalid config to custom LB test

This will verify that the configuration for a missing LB gets skipped
in favor of the valid one.

@sergiitk


Modified links to docs and learn

Closes #10285

Removed links to editor documentation present in Builder until we have its own docs ready.
Replaced Getting started links by Documentation.
Replaced Gallery links by Guides.

CR @xavijam cc @beloneys @saleiva

Hi!
This was not what I was expecting, sorry!
Getting started to /learn and gallery remain as it is. On the other hand, links to documentation only remain if they are not giving 404s.
I tagged you in a new issue where we will pu all the different scenarios together so we can foresee in future changes, thanks!!
B
https://github.com/CartoDB/docs/issues/1102

hey @beloneys, sorry for not specify these non expected changes.
@saleiva and I were talking offline about this issue and we decided that all links in Builder to documentation related to the Editor should be removed, and also Gallery links as they don't have maps created with the Builder. Getting started links are replaced with links to the guides as well.

Oki doky, go ahead then, thanks for telling me :)


Add GitHub token to checkout step

This commit adds token param to the checkout step.
The reason for that is to support pushing to GitHub protected branches within CI flow.
Updated checkout action to use 'v3'

@djspiewak For some reason, the windows workflow does not work.
It tries to find the yaml file in a non-existing location.
If you find this PR relevant, I would be glad if we can figure it out together :)

Hi @djspiewak, we use this great plugin at work and would be really glad to integrate this PR.
Any comment would be much appreciated :)


New Docs :  Write about Chat GPT.

Description : Under the Docs section create a markdown file which is about the blog about Chat GPT. Write it in markdown format and try to add some pictures.
It should contain:

[ ] What is Chat GPT.
[ ] Open AI.
[ ] Why is it so important.

[ ] Conclusion

Best of Luck and Happy Coding.
Debarshee.

I will do this thing, assign it to me

Best of luck @fahaad-abbadi . Happy Coding.

Thanks, I am in a diff country rn. It's almost midnight. I will do it by tomorrow.

Sounds cool to me✔

I was having problem with the PR thing. It ate lot of my time.
However, I did try some documentation. Have a look at this.

Just let me know, what more adjustments needs to be done. So, I can finalize and push it in my repo

Everything looks go to me, but what problem you are having with PR.

Yesterday, I had with the PR thing, despite trying and all. I was not able to open the file after pushing. However, today I tried in different fashion. It's working now.

OK.


fix(@angular/cli): Support cache-busting and hot-reload

I signed it!

No, it's not enough because webpack-dev-server adds two entries to every entry point dynamically.
With those scripts added "pure style" entry points aren't recognized as such anymore.

The CLI only adds the two additional entries to the main entry point.  The reload/HMR issue only surfaces with an ejected config as the webpack-dev-server command line tool adds them to all entry points.  That regex is unfortunately a maintainence concern though.  Leaving the no-op JS files is not technically correct in the context of the plugin but there's really not much of a downside in development mode.
@filipesilva Thoughts?


Compile List of Potential APIs

Compile a list of 3-5 APIs for each category, add list to Google Drive:

Rare Earth Element (REE) Mineral Data (Global)
Geological (regional)
Socioeconomic (regional)
Political (regional)

Converted story into an issue.
Please follow the following table when assigning a priority to an issue.
Priority Table

Immediate: The requirement is critical to the project’s success. The project will not be possible without fulfilling this requirement.
High: The requirement is high priority, but project can still be implemented in a MVP framework.
Moderate: The requirement provides value and will greatly improve the project’s success, but the project could still be implemented in a MVP scenario.
Low: Project success does not depend upon it.
Prospective: Requirement is out of project scope and is included as a possible component of a prospective release/feature.

MILESTONES
Milestones will be used to group and track issues and pull requests. You can add a new milestone to any task by navigating to the "issues" tab, and clicking "Milestones" and then "New Milestone".


Avoid saving autoencoder checkpoint each step

Similar to MeshTransformerTrainer, save the autoencoder checkpoint when required, and not each step, thus saving compute time

@Kurokabe oops, yes! thanks Farid


[Snyk] Upgrade com.fasterxml.jackson.core:jackson-databind from 2.14.3 to 2.15.2

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade com.fasterxml.jackson.core:jackson-databind from 2.14.3 to 2.15.2.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 6 versions ahead of your current version.
The recommended version was released 2 months ago, on 2023-05-30.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Ignoring this for now, as we need to verify that 2.15 is fine with our Kafka/Spark/etc connectors.


feat: add new feature: stream flow diagram

add 2 dependence '@antv/x6' and '@antv/x6-vue-shape'.
add new file /view/data-flow-diagram/store.js for data exchange..
add new file /utils/fs-graph.js.

too many conflicts and create a new PR #86


chore: allKeys computation is constrained by diff

Description
allKeys is previously computed from the complete unevalTree, we used to recursively traverse through the entire unevalTree during each evaluation update cycle. We are optimising this by leveraging the diff which we have previously computed and using the diff to directly update the allKeys result.
When delete based diffs detected are detected we are directly deleting the nodes in the previous allKeys result, for only new nodes we are recursively computing the allKeys for those nodes and merging it back to the previous allKeys result. The time complexity of the solution has improved by limiting iterations to the diff alone instead of computing the entire unevalTree.
Fixes #Issue Number
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!TIP]
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10178081675
Commit: 1bf925992a021fe837f00904df0bae3ba9a9ed96
Cypress dashboard.
Tags: @tag.All
Spec:
Wed, 31 Jul 2024 11:01:12 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

Summary by CodeRabbit

New Features

Introduced a new function for dynamic path management based on differential updates.
Enhanced data processing in the DataTreeEvaluator class to improve dependency tracking and efficiency.

Bug Fixes

Improved handling of data tree updates to ensure accurate addition and deletion of paths.

@vsvamsi1 Do we have plan for adding unit test cases  as well?


SPIKE declarative YAML for gitops run using the Devfile format

The Devfile specification is a good candidate for describing GitOps Run behaviour.
The specification allows a tool vendor to augment the devfile.yaml via the "attributes" field.
Here's an example of how we augment GitOps Run on top of the Devfile spec.
https://github.com/chanwit/spike-devfile
Acceptance

What do we gain from using this?
Will we be able to leverage this with product features such as "pull request" gitops run?
Are devfiles composable?  Can we use other projects within devfiles?  For example, can we define the docker build criteria for gitops run?

Another design

What do we gain from using this?

A standard parser, backed by RH

Will we be able to leverage this with product features such as "pull request" gitops run?

It's possible. May be a controller is required.


Some of the new proton features are causing elements to stop working

Sanity checks (must complete)

[x] I have read and followed the installation instructions in the README
[x] I have not modified the userChrome.css file
[x] I have tested the latest release for my Firefox version, or commit on master/beta branch (beta is for Firefox Beta only)

Describe the bug
Urlbar outline is not working in the latest nightly
To Reproduce
Steps to reproduce the behavior:
open nightly using the default or light theme, and click inside the urlbar and you will see no outline. the outline is there using the apaglow theme
Screenshots
not available
System info

OS: windows 10 enteerprise
Firefox version: nightly

Additional context
Add any other context about the problem here.

Fixed missing variable that was causing the border to no show on FF86+


Allow projects to provide a custom success message for AccountLinkVerify

Add a new AccountAdapter attribute,  ACCOUNT_LINK_VERIFY_MESSAGE, with the default "Thank you for linking your AnVIL account."
Use the AccountAdapter to retrieve the success message in AccountLinkVerify view.
Add tests to check that a user can change this setting in a custom AccountAdatper

Closed by #515


DocVQA fine-tuning example?

Are there any examples of how we can fine tune with the DocVQA dataset?

Here is a simple example of applying ERNIE on the VQA task.
Here is another complete repo of fine-tuning on DocVQA that I strongly recommend reading. You can replace the tokenizer and model with ERNIE I provided and see  train a model for your own task.


Entire Studio frozen when Preview is frozen

Background:
When Preview freezes the screen (e.g. expanded problem), the entire Studio also freezes and require browser refresh. Some time even that won't work as the problem will come back, preventing you from fixing the definition issue.
Task:
Figure out how to isolate the problem to Preview only so the user can fix the definition

put this -
View:
title: Home
Column:
children:
- Row:
children:
- TextInput:
value: abc
even after that you try -
View:
title: Home
Form:
children:
- TextInput:
value: abc
it's game over, you don't get any messages other than the stack traces

following definition freezes the whole browser and you can kill the browser and restart -
View:
  header:
    title: WebView (native) / iFrame (web)
  styles:
    scrollableView: false

  Column:
    styles: { gap: 16, padding: 24 0, expanded: true }

    children:
      - Column:
          styles: { padding: 0 24, gap: 16 }
          children:
            - Text:
                text: WebView widget appears as WebView (embedded browser) on native apps while it appears as an iFrame on webapps.

            - TextInput:
                label: URI
                id: uri
                value: https://ensembleui.com/
            - Button:
                label: Update
                onTap:
                  action: executeCode
                  body: |
                    //@code
                    webview.uri = uri.value;
      - WebView:
          id: webview
          uri: https://ensembleui.com/
          # styles:
          #   height: 400

@vinothvino42 this is still happening.

@hemish11 can you see if you can fix this. Basically if you run these definitions in debug mode Flutter will know to throw error. We need to detect the same thing in release mode and show these errors instead of hanging.

My bad for bouncing this around. I have fixed this a while back, though I added a similar fix for GridView/Listview just now.

@kmahmood74 @vinothvino42 @hemish11

This is not an exhaustive list - there might be others, and each check might be different. I did add the ability to only run these checks in Studio mode (release mode but runs on Studio), so we don't compromise on performance on real release mode (non-Studio)


not found plyfile

Thanks for the great work.
I am having trouble generating a ply file when I run this command
python geo_render.py ./datasets/kfusion_frog/ ./exp/kfusion_frog/result/ 120000

RuntimeError: File could not be read: ./exp/kfusion_frog/result/validations_meshes/00120000_0.ply

I'd like to know what the solution is.
Thanks.

'./geo_render.py' is a script for rendering reconstructed geometry to the image. So firstly you need to obtain the results, such as evaluating pre-trained model or training from the ground up.

I solved the problem by running this command first!
python pretrained_eval.py
Thanks!!
I Close this issue


ref.listen not invoked when state changed with the same value

Problem
I know that ref.listen will not invoked when state changed with the same value from Riverpod 2.x. This is a feature in most cases but it may lead to a bug in some cases. Let's assume we are implementing the pagination feature. We have to listen to state changes to add data to PagingController.
final provider = StateProvider<List<int>>((ref) => []);

ref.listen(
        provider,
        (previous, next) {
         if (next.isEmpty) pagingController.appendLastPage(next);
         else pagingController.appendPage(next);
        },
);

Of course, the default state is an empty list. When we fetch data of the first page, if it also returns an empty list, the ref.listen will not triggered and thus the pagingController.appendLastPage will never be called.
In another case, when data of the first page is [1,2,3] and data of the second page is [1,2,3] as well, the ref.listen will not triggered and we will lose data of the second page. It's a bug. Of course, we can fix them by using some flags but it make code so messy.
Solution
I think we should add a boolean parameter to ref.listen that allow us using it flexiblely or we create a new listen method to use in some special cases like these. Thanks.

This is unrelated to ref.listen. ref.listen doesn't filter anything.
Your issue is how you modify your state.  It's the provider that filters notification.
For that purpose, there's already ref.notifyListeners() which providers can call if they mutated their state instead of cloning it.   Sounds like you want a way to call notifyListeners when using StateProvider.
I'd suggest using Provider instead of StateProvider, and making a generic object that exposes notifyListeners.
class Box<T> {
  Box(this._ref, this.value);
  final Ref<T> _ref;

  T value;

  void notifyListeners() => _ref.notifyListeners();
}

Then used as:
final provider = Provider<Box<List<int>>>((ref) => Box(ref, []));

ref.read(provider)
  ..value.add(42)
  ..notifyListeners();