Fix excessive memory use (#405)

Closes #405
Includes a number of changes to avoid Julia kernel crashing when running a high number of scenarios.

Only uses pmap in workloads that require multiprocessing, otherwises uses map
Does not create a reusable cache structure when using multiple cores (but does for single core workloads)
Explicit use of CachingPool() to avoid re-serialization of data structures to workers (default behavior in upcoming Julia v1.10 release)
Forces garbage collector (gc) to run if 95% of available memory is in use. Forcing the gc to run too often can increase runtimes and lead to other issues so I've opted to only run this when absolutely needed

In addition to the above, a key change resolving crashes in multi-processing contexts was (circa L 271 in scenarios.jl):
# dhw_scen::Matrix{Float64} = @view domain.dhw_scens[:, :, dhw_idx]

# Remove the use of array `view` and copy the data for the given DHW scenario instead:
dhw_scen::Matrix{Float64} = copy(domain.dhw_scens[:, :, dhw_idx])

I don't have a concrete explanation for this other than I suspect domain may be shared across workers and so multiple workers attempting to interact with a "big" object type like Domain may have led to issues...
@Rosejoycrocker @Zapiano I'm tagging you both in as reviewers for this, but only need approval from one of you. Just be aware of the changes here please.
I have successfully run 8,192 scenarios both using a single core (using the debug=true option) and multiple cores (i.e., two).
This is not a concrete fix: you should see large amounts of memory use still but at least Julia itself does not crash and the runs complete.

Hey @ConnectedSystems , should I also try running 8196 scenarios for testing ?

It would be good if you did, yes.

I'm still getting crashes for 8192 runs. I updated ADRIA and my sandbox environment- is there anything else I need to do?

Is Julia crashing or is it the run that crashes?

Julia crashes and I get the exception access violation error

Could you post the error message in full here please?

Sorry it's huge but here it is:
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ff9459453a5 -- getindex at .\essentials.jl:14 [inlined]
macro expansion at .\multidimensional.jl:889 [inlined]
macro expansion at .\cartesian.jl:64 [inlined]
_unsafe_getindex! at .\multidimensional.jl:884 [inlined]
_unsafe_getindex at .\multidimensional.jl:875
in expression starting at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\sandbox\mcda_alg_sensitivity.jl:49
getindex at .\essentials.jl:14 [inlined]
macro expansion at .\multidimensional.jl:889 [inlined]
macro expansion at .\cartesian.jl:64 [inlined]
_unsafe_getindex! at .\multidimensional.jl:884 [inlined]
_unsafe_getindex at .\multidimensional.jl:875
_getindex at .\multidimensional.jl:861 [inlined]
getindex at .\abstractarray.jl:1294 [inlined]
run_model at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:514
run_scenario at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:185
unknown function (ip: 00000279d14ae182)
#99 at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:137
#56 at C:\Users\rcrocker\.julia\packages\ProgressMeter\sN2xr\src\ProgressMeter.jl:1016
iterate at .\generator.jl:47 [inlined]
collect_to! at .\array.jl:840
collect_to_with_first! at .\array.jl:818 [inlined]
collect at .\array.jl:792
unknown function (ip: 00000279d1479796)
map at .\abstractarray.jl:3289
unknown function (ip: 00000279d147647a)
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
do_apply at C:/workdir/src\builtins.c:730
macro expansion at C:\Users\rcrocker\.julia\packages\ProgressMeter\sN2xr\src\ProgressMeter.jl:1015 [inlined]
macro expansion at .\task.jl:476 [inlined]
macro expansion at C:\Users\rcrocker\.julia\packages\ProgressMeter\sN2xr\src\ProgressMeter.jl:1014 [inlined]
macro expansion at .\task.jl:476 [inlined]
#progress_map#53 at C:\Users\rcrocker\.julia\packages\ProgressMeter\sN2xr\src\ProgressMeter.jl:1007
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
do_apply at C:/workdir/src\builtins.c:730
progress_map at C:\Users\rcrocker\.julia\packages\ProgressMeter\sN2xr\src\ProgressMeter.jl:999
#run_scenarios#97 at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:146
run_scenarios at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:68 [inlined]
#run_scenarios#96 at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:66 [inlined]
run_scenarios at C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:65
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:226
eval_stmt_value at C:/workdir/src\interpreter.c:177 [inlined]
eval_body at C:/workdir/src\interpreter.c:624
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:762
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:912
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:856
ijl_toplevel_eval at C:/workdir/src\toplevel.c:921 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:971
eval at .\boot.jl:370 [inlined]
include_string at .\loading.jl:1903
_include at .\loading.jl:1963
include at .\client.jl:478
unknown function (ip: 00000279f9830406)
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:226
eval_stmt_value at C:/workdir/src\interpreter.c:177 [inlined]
eval_body at C:/workdir/src\interpreter.c:624
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:762
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:912
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:856
eval_body at C:/workdir/src\interpreter.c:568
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:762
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:912
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:856
ijl_toplevel_eval at C:/workdir/src\toplevel.c:921 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:971
eval at .\boot.jl:370 [inlined]
eval_user_input at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:153
repl_backend_loop at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:249
#start_repl_backend#46 at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:234
start_repl_backend at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:231
#run_repl#59 at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:379
run_repl at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:365
jfptr_run_repl_61185.clone_1 at C:\Users\rcrocker\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
#1017 at .\client.jl:421
exec_options at .\client.jl:322
_start at .\client.jl:522
jfptr__start_47602.clone_1 at C:\Users\rcrocker\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
true_main at C:/workdir/src\jlapi.c:573
jl_repl_entrypoint at C:/workdir/src\jlapi.c:717
mainCRTStartup at C:/workdir/cli\loader_exe.c:59
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations:<PHONE_NUMBER>0 (Pool:<PHONE_NUMBER>4; Big: 9800096); GC: 5154```

I also forgot to say in the meeting- when I tried running on the remote desktop I got a similar exception access error so I  don't think it's my machine

I'm not seeing this happening, but could there are other issues and I was just lucky in my three runs.
Could you pull and try again?

I tried pulling again (it seems like maybe GitKraken was slow to update changes?) but now I'm getting this error when I try to precompile ADRIA:
julia> using ADRIA
[ Info: Precompiling ADRIA [7dc409a7-fbe5-4c9d-b3e2-b0c19a6ba600]
ERROR: LoadError: UndefVarError: `wave_scens` not defined
Stacktrace:
  [1] run_model(domain::ADRIA.ADRIADomain{NamedDims.NamedDimsArray{(:Source, :Receiving), Float64, 2, AxisKeys.KeyedArray{Float64, 2, SparseArrays.SparseMatrixCSC{Float64, Int64}, Tuple{Vector{String}, Vector{String}}}}, NamedDims.NamedDimsArray{(:species, :sites), Float32, 2, AxisKeys.KeyedArray{Float32, 2, Matrix{Float32}, Tuple{UnitRange{Int64}, Vector{String}}}}, Vector{Int64}, DataFrames.DataFrame, String, Vector{Float64}, Vector{String}, NamedDims.NamedDimsArray{(:timesteps, :sites, :scenarios), Float32, 3, AxisKeys.KeyedArray{Float32, 3, Array{Float32, 3}, Tuple{UnitRange{Int64}, Vector{String}, UnitRange{Int64}}}}, NamedDims.NamedDimsArray{(:timesteps, :sites, :scenarios), Float32, 3, AxisKeys.KeyedArray{Float32, 3, Array{Float32, 3}, Tuple{UnitRange{Int64}, Vector{String}, UnitRange{Int64}}}}, Matrix{Float64}}, param_set::NamedDims.NamedDimsArray{(:factors,), Any, 1, AxisKeys.KeyedArray{Any, 1, Vector{Any}, Base.RefValue{Vector{String}}}}, corals::DataFrames.DataFrame, cache::NamedTuple{(:sf, :fec_all, :fec_scope, :dhw_step, :cov_tmp, :depth_coeff, :site_area, :TP_data, :waves), Tuple{Matrix{Float64}, Matrix{Float64}, Matrix{Float64}, Vector{Float64}, Matrix{Float64}, Vector{Float64}, Matrix{Float64}, Matrix{Float64}, Array{Float64, 3}}})
    @ ADRIA C:\Users\rcrocker\Documents\GitHub\ADRIA.jl\src\scenario.jl:464 ...

Could you try pulling again please - sorry, it was a typo in the variable name. Issue with doing work while in a meeting.

That's all good, I'll pull again :)

Thanks Takuya, it's running now. I'll just make sure it doesn't crash then I'll review and merge

It's running without crashing and looks good to me.

Should I wait for Pedro's review or just merge?

Should I wait for Pedro's review or just merge?

@Rosejoycrocker you can go ahead and merge!

Thanks @Zapiano !


Support Vite 6

Vite 6 is out. I don't know whether there are any breaking changes for this plugin. But it works without any issues in my projects.

Agree, haven't found any issue so far with v6.


multi-line OCR output as single line text

Describe the bug
multi-line OCR output as single line text
Where is the bug

Fullscreen Grab "multi-line OCR"
OCR Output

Expected behavior
The multi-line OCR should output as multi-line text.
Screenshots

Where did you get Text Grab?

Microsoft Store

Desktop (please complete the following information):

OS: [Windows 11]
Version [23H2]
Text Grab Version [4.4.2]

Additional context

Fullscreen Grab "multi-line OCR" is more accurate than "OCR text as a table" maybe because "OCR as table" isn't using Tesseract engine?             (inside program description: Does not use Tesseract: Table Recogintion and the Grab Frame.)

This option from the Fullscreen Grab makes the output a single line. Are you sure you do not have that selected?

Yeah, pretty sure I selected multi-line, but language is set to traditional Chinese(Taiwan).
After retry, this issue seem only affect traditional Chinese. English works fine.


Documentation unclear regarding JSON Body

Hello,
After 3 days of troubleshooting and trying to injest a custom json object in my log analytics workspace using Log ingestion API via DCE & DCR I realised that the json we were trying to send was a json object instead of a json array. I didn't receive any error code (received http code 204) even though the data did not arrive in the log analytics under that custom table.
The documentation https://learn.microsoft.com/en-us/azure/azure-monitor/logs/logs-ingestion-api-overview#body, says the following: "The shape of the data must be a JSON object or array with a structure that matches the format expected by the stream in the DCR." However, if we send a json object instead of a json array it fails silently while if we add "[]" around the json object it works. This should be cleared up in the documentation as we were 3 people looking at it and no one realised this was the issue.
Kind regards,
Berkant

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

ID: 5c8978e5-b113-f200-10e6-19d63d313112
Version Independent ID: 4ad06e00-6266-931d-c5fc-afcffe2ee140
Content: Logs Ingestion API in Azure Monitor - Azure Monitor
Content Source: articles/azure-monitor/logs/logs-ingestion-api-overview.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @guywi-ms
Microsoft Alias: guywild

@BerkantKs Thanks for your comment! We will review and provide an update as appropriate.

This is taken care in recent pull request. Thanks.


Adding persistent data store to Siesta

I'm looking at using Siesta in an app where one of the major use cases is that the user can download content for offline use, and otherwise have a decent experience in the app offline or with a dodgy network.  I have a dream for this app!
In my dream, the model layer would be oblivious to network conditions and would receive either live data or stored data (with live updates, if they become available).  Would it make sense to add some kind of support for a persistent data store in Siesta, or is that better handled in a wrapper around Siesta?  I'm in my initial design phase; any pointers you can give me would be appreciated.

Siesta provides an interface but not an implementation for this.
This is exactly what EntityCache is for, and it does basically what you describe but one better: the model layer immediately gets the cached data (if any), and then gets a “new data” notification if a network call succeeds. In the offline state, you’ll see both the cached and the “no connection” error on the Siesta resource. Your UI can decide for itself what to do with that — for example, it could show the “no internet connection” error in a little banner at the top, then show the cached data underneath.
Alas, EntityCache is only a protocol for now. I plan on providing a public EntityCache implementation baked into Siesta, but I want to get the API changes in #32 vetted and released first, because the protocol will likely change when it’s done.


UploadSet: duplicate ID of the icons

OpenUI5 version: SAPUI5 1.108.14
Browser/version (+device/version): Chrome Version 114.0.5735.199 (Official Build) (64-bit)
The error:
adding element with duplicate id '__item84-application-app-tile-component---Attachments-Collapsed--us2-0-icon'
Error: adding element with duplicate id '__item84-application-app-tile-component---Attachments-Collapsed--us2-0-icon'
at onDuplicate (Element-dbg.js:219:12)
at p.e [as register] (ManagedObjectRegistry-dbg.js:44:5)
at ManagedObject-dbg.js:508:11
at p.constructor (ManagedObject-dbg.js:501:4)
at p.constructor (Element-dbg.js:201:18)
at p.constructor (Control-dbg.js:182:12)
at new p (Metadata-dbg.js:454:19)
at m._getIcon (UploadSetItem-dbg.js:526:19)
at m._getListItem (UploadSetItem-dbg.js:490:11)
at S._projectToNewListItem (UploadSet-dbg.js:1602:25)
The uploadSet in a shared block of an ObjectPage
<upload:UploadSet id="us2" fileTypes="pdf" items="{ path: 'to_attachments', templateShareable: false }" afterItemRemoved="AfterItemRemoved" beforeUploadStarts="onBeforeUploadStarts" >         <upload:items>         <upload:UploadSetItem                                  fileName="{FileName}"                                 mediaType="{mimeType}"                                 visibleEdit="false"                                 url="{Url}">             <upload:attributes>                 <ObjectAttribute                                      title="Type"                                      text="{Type}"                                      active="{active}"/>                 <ObjectAttribute                                      title="Uploaded on"                                      text="{DatetimeCr}"                                      active="{active}"/>             </upload:attributes>         </upload:UploadSetItem>     </upload:items> </upload:UploadSet>
The afteritemremoved handler
AfterItemRemoved: function (oEvent) {      let oItem = oEvent.getParameter("item");      let sPath = oItem.getBindingContext().getPath();      let oModel = this.getView().getModel();      oModel.remove(sPath, {          success: (oData) => { oItem.destroy() },          error: (oError) => { }      });  }
Steps to reproduce the problem:

The application has 2 main views: a list, and detail view. The detail view is an ObjectPageLayout. One of the blocks of the detail view contains an uploadSet bound to attachments (ODataModel). Displaying / Uploading / Removing attachments  in the UI and back-end works fine.
Removing an attachment in de detail view of one "dossier", then going back to the list, and going to another "dossier" detail view triggers the errors above. This happens if the other dossier has attachments.
Using oItem.destroy() or not does not matter. This worked for some ppl (https://answers.sap.com/questions/13398411/new-uploadset-implementation-throwing-duplicate-id.html). The error mentioned in this blogpost are on the uploadItems itself; the errors I mention are on the icon IDs of the uploaditems.

With the current description, it's difficult to reproduce the issue.

Could you please share a link to a small sample app?
Is the issue also reproducible with the latest OpenUI5 snapshot (e.g. when bootstrapping with src="https://sdk.openui5.org/nightly/resources/sap-ui-core.js")?
Is the application code using the API .removeXYZ instead of .destroyXYZ? Please see also https://stackoverflow.com/a/71131717/5846045

I will try to make one, but it will take some time (it's an extensive, old ui5 application).
I used the ui5.yaml and manifest.json to change the local running version to sapui5 1.115.1 and the error did not occur anymore.
I am using invalidate() now on the removed item in the attachments. To remove an attachment I just click the X button in the list of the attachment I want to remove. This triggers the "afterItemRemoved" event. The event handler AfterItemRemoved has already been posted above.

I have added you to a private repository with a demo project: https://github.com/jvanattedev/uploadset.

Click on an item in the worklist to a dossier which has attachments in the UploadSet.
Remove one of the attachments.
Go back to the worklist.
Click on another item in the worklist to a dossier that has attachments in the UploadSet.

The last step will trigger the following error:
adding element with duplicate id 'application-uploadset-display-component---object--attachment-Collapsed--_IDGenUploadSetItem1-application-uploadset-display-component---object--attachment-Collapsed--us2-0-icon'
datajs-dbg.js:1640  Uncaught Error: Error: adding element with duplicate id 'application-uploadset-display-component---object--attachment-Collapsed--_IDGenUploadSetItem1-application-uploadset-display-component---object--attachment-Collapsed--us2-0-icon'
at onDuplicate (Element-dbg.js:219:12)
at p.e [as register] (ManagedObjectRegistry-dbg.js:44:5)
at ManagedObject-dbg.js:508:11
at p.constructor (ManagedObject-dbg.js:501:4)
at p.constructor (Element-dbg.js:201:18)
at p.constructor (Control-dbg.js:182:12)
at new p (Metadata-dbg.js:454:19)
at m._getIcon (UploadSetItem-dbg.js:526:19)
at m._getListItem (UploadSetItem-dbg.js:490:11)
at S._projectToNewListItem (UploadSet-dbg.js:1602:25)

Unfortunately, there is no access to the real OData service ($metadata request results in a login page). And with mock server, there seems to be no item that has an attachment.
Could you please share either login credentials for a test user or a link to a minimal publicl sample with which we can reproduce the issue?

I have updated the project to use the Northwind service. There are no real attachments, but the UploadSet is still bound to a navigation. The behavior is similar. The error is the same, following the above procedure.

Should be already fixed with https://github.com/SAP/openui5/commit/7cf0c8c5964d7bd57c32ce14239d16323ddac93d (included since 1.110) which isn't downported to lower maintained UI5 releases (e.g. 1.108).
The issue is that, when the user presses the "Remove" icon, sap.m.upload.UploadSet#_handleClosedDeleteDialog calls:

this.removeItem(this._oItemToBeDeleted) which removes the item. But then ...
this.removeIncompleteItem(this._oItemToBeDeleted) in the next line leads to instantiating a new list item (incl. the new icon) with the same IDs right away.

https://github.com/SAP/openui5/blob/5a9b64af6d8ecdbb1c8c268cd3bc033987334962/src/sap.m/src/sap/m/upload/UploadSet.js#L1414-L1422
This results in the state where the item is seemingly removed from the UI, but internally, the framework has registered new controls with the same IDs.
When the user navigates to the object page again, the UploadSet creates a new list item, again, with the same IDs that are already registered in the core - causing the "duplicate id" error.

Hello @jvanattedev ,
Thank you for sharing this finding. I've created an internal incident<PHONE_NUMBER>. The status of the issue will be updated here in GitHub.

Hello.
Fix will be available with SAPUI5 version 1.108.22


i.MX RT700 DSP support

The i.MX RT700 has a Compute Subsystem which includes a primary ARM Cortex-M33 running at 325 MHz and Cadence Tensilica HiFi 4 DSP.
It also features an ultra-low power Sense Subsystem which includes a second ARM Cortex-M33 and Cadence Tensilica HiFi 1 DSP.
This pull request adds the soc and board support for the two HiFi cores.

The twister tests are failing because the CI is using zephyr_sdk 0.16.8 which doesn't include the hifi1 and hifi4 toolchain for imxrt700.
Configuration saved to '/__w/zephyr/zephyr/twister-out/mimxrt700_evk_mimxrt798s_hifi1/samples/kernel/condition_variables/simple/sample.kernel.cond_var.simple/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/mimxrt700_evk_mimxrt798s_hifi1/samples/kernel/condition_variables/simple/sample.kernel.cond_var.simple/zephyr/include/generated/zephyr/autoconf.h'
CMake Error at /__w/zephyr/zephyr/cmake/compiler/gcc/target.cmake:12 (message):
  C compiler
  /opt/toolchains/zephyr-sdk-0.16.8/xtensa-nxp_rt700_hifi1_zephyr-elf/bin/xtensa-nxp_rt700_hifi1_zephyr-elf-gcc
  not found - Please check your toolchain installation

Locally I used zephyr-sdk-0.16.9-rc2 which had the 2 toolchain.
I see now that 0.17.0 was released.
@stephanosio when will the new toolchain be included in the CI?
Can I do the update?

I see now that 0.17.0 was released.
@stephanosio when will the new toolchain be included in the CI?
Can I do the update?

I will send a PR for that in a few days after the CI image containing SDK 0.17.0 is ready and tested.

I see now that 0.17.0 was released.
@stephanosio when will the new toolchain be included in the CI?
Can I do the update?

I will send a PR for that in a few days after the CI image containing SDK 0.17.0 is ready and tested.

Great, thank you @stephanosio

Changes since previous version:

remove unused settings for debugging of DSP cores;
add index.rst for documentation.

2 tests are failing in the CI
1) tests/drivers/spi/spi_loopback/drivers.spi.s32z_dspi.loopback on s32z2xxdc2@B/s32z270/rtu0 error (Cmake build failure)
2) tests/drivers/spi/spi_loopback/drivers.spi.s32z_dspi.loopback on s32z2xxdc2@B/s32z270/rtu1 error (Cmake build failure)

because in the hal_nxp PR #444 is missing the newly included commit - https://github.com/zephyrproject-rtos/hal_nxp/commit/683c007c3b834012358b4adf96a532d18ce05646

Changes since previous version:

update west.yml with commit id for Xtensa HAL since the PR got merged;
fixed all CI checks and tests.

Waiting for hal_nxp to be updated.


Expose cookie store

I need to authenticate with server and store the cookie. Is there any way to add a cookie to Fetch so access will be granted? This is not Basic Auth so no header authorization. Thank you for any help!

Unfortunately no.

I'm looking at your Fetch2 sample and if I can drop in my own custom OkHttp client then that will solve this issue. Looking forward to giving it a try!
Fetch/fetch2sample/src/main/java/com/tonyodev/fetch2sample/GameFilesActivity.java
fetch = new Fetch.Builder(this)
                .name("GameFiles")
                .client(new OkHttpClient()) <-- Solution
                .build();


Graphhopper cannot find symbol method create(long,XMLStreamReader) iOS

I used to get latest released graphhopper-ios source:
git clone --recursive https://github.com/graphhopper/graphhopper-ios.git
I run to build and import all .jar files to
./graphhopper.sh build
I also get following:
 Downloaded: https://repo.maven.apache.org/maven2/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar (2465 KB at 876.0 KB/sec)
 [INFO]
 [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ graphhopper ---
 [INFO]
   [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ graphhopper ---
   [INFO] Using 'UTF-8' encoding to copy filtered resources.
   [INFO] Copying 2 resources
   [INFO] Copying 42 resources
   [INFO]
   [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ graphhopper ---

   [INFO] Changes detected - recompiling the module!
   [INFO] Compiling 206 source files to /Users/myuser/Desktop/graphhopper/graphhopper-ios/graphhopper/core/target/classes
   [INFO] -------------------------------------------------------------
   [ERROR] COMPILATION ERROR :
   [INFO] -------------------------------------------------------------
   [ERROR] /Users/myuser/Desktop/graphhopper/graphhopper-ios/graphhopper/core/src/main/java/com/graphhopper/reader/OSMInputFile.java:[223,46] error: cannot find symbol
   [ERROR]   symbol:   method create(long,XMLStreamReader)
   location: class OSMNode
   /Users/myuser/Desktop/graphhopper/graphhopper-ios/graphhopper/core/src/main/java/com/graphhopper/reader/OSMInputFile.java:[230,41] error: cannot find symbol
   [ERROR]   symbol:   method create(long,XMLStreamReader)
   location: class OSMWay
   /Users/myuser/Desktop/graphhopper/graphhopper-ios/graphhopper/core/src/main/java/com/graphhopper/reader/OSMInputFile.java:[234,46] error: cannot find symbol
  [INFO] 3 errors
  [INFO] -------------------------------------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] Reactor Summary:
  [INFO]
  [INFO] GraphHopper Parent Project ......................... SUCCESS [  2.243 s]
  [INFO] GraphHopper Tools LGPL licensed .................... SUCCESS [ 16.804 s]
  [INFO] GraphHopper ........................................ FAILURE [ 15.722 s]
  [INFO] GraphHopper Tools .................................. SKIPPED
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 35.209 s
  [INFO] Finished at: 2016-02-17T01:07:57-08:00
  [INFO] Final Memory: 13M/133M
  [INFO]   ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project graphhopper: Compilation failure: Compilation failure:
  [ERROR] /Users/myuser/Desktop/graphhopper/graphhopper-ios/graphhopper/core/src/main/java/com/graphhopper/reader/OSMInputFile.java:[223,46] error: cannot find symbol
  [ERROR] symbol:   method create(long,XMLStreamReader)
  [ERROR] location: class OSMNode
  [ERROR] /Users/myuser/Desktop/graphhopper/graphhopper-ios/graphhopper/core/src/main/java/com/graphhopper/reader/OSMInputFile.java:[230,41] error: cannot find symbol
  [ERROR] symbol:   method create(long,XMLStreamReader)
  [ERROR] location: class OSMWay
  [ERROR] /Users/myuser/Desktop/graphhopper/graphhopper-ios/graphhopper/core/src/main/java/com/graphhopper/reader/OSMInputFile.java:[234,46] error: cannot find symbol
  [ERROR] -> [Help 1]
  [ERROR]

I also noticed  graphhopper/pom.xml and  graphhopper/web/pom.xml has "<<<<<<< HEAD" text error in line 9.
Can someone make sure the graphhopper-ios and graphhopper-ios-sample are working projects?

./graphhopper.sh build should not be used with this project. The reason is there is some removed / commented out code in the GraphHopper sources in order for it to work with j2objc and iOS. For example XMLStreamReader is removed.
Instead, you should follow Usage - Xcode and to import data see Import data.
If you look at import-sample.sh, it does a git checkout 0.6.0-RC1 in ./graphhopper before running ./graphhopper.sh import, because originally GraphHopper is checked out on ios-compat.

I am trying to get the graphhopper-ios-sample from https://github.com/graphhopper/graphhopper-ios/tree/master/graphhopper-ios-sample compiling under ios 9.2 Xcode 7.2.
Do I need to run in this order:
./graphhopper.sh import  // import maven .jars
This command does do any imports. Why is that?
To create the sample romania gh file
./graphhopper-ios-sample/import-sample.sh

No, you don't need to run any graphhopper.sh commands. The order is:

clone the repository
git clone --recursive https://github.com/graphhopper/graphhopper-ios.git
cd graphhopper-ios

do the steps in Usage - Xcode

import data by following instructions in the sample app
./graphhopper-ios-sample/import-sample.sh

# or
FILE=germany-latest.osm.pbf JAVA_OPTS="-Xmx4096m -Xms1000m -server" ./graphhopper-ios-sample/import-sample.sh
# if a large file is imported, JAVA_OPTS may need to be changed

That's it.

Thank you.  I got it to compile.  How do I make import different country files to standalone zip files with graph-data.osm-gh folder and corresponding osm.pbf?

For discussion please use our forum: https://discuss.graphhopper.com/


Expose utilities for manually unpacking an object from an Event

Now that 3.6 is supported on AWS Lambda, I wanted to re-create the stream-based replication script without a running server.
Because updates to the same record are guaranteed to be processed in order, the following 30 lines (if an unpacking utility is exposed) are enough to replicate from one region to another:
https://gist.github.com/numberoverzero/0e34c8338a72f8605ac8bf6bbc1488be

Removing from 1.1 milestone

Going to resolve this since bloop.models.unpack_from_dynamodb supports the dict -> obj unpacking, and the event restructuring can be done easily by hand.


[feature] handle enums

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@5df3445). Click here to learn what that means.
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff            @@
##             master       #4   +/-   ##
=========================================
  Coverage          ?   54.48%
=========================================
  Files             ?       15
  Lines             ?      914
  Branches          ?        0
=========================================
  Hits              ?      498
  Misses            ?      331
  Partials          ?       85

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


请问openyurt支持边缘设备管理吗

如果支持边缘设备管理，支持哪些通信协议？
部署边缘端最小的资源要求是多少？
最多支持管理多少的边缘节点个数

边缘设备管理属于IOT场景范畴，边缘设备管理不和OpenYurt绑定，只是OpenYurt的其中一个使用场景。
目前已经有商业产品以OpenYurt为底座，支持IOT场景。具体可以参照物联网边缘计算

@mocunAce To support OpenYurt in github, please use English for further communication

@rambohe-ch Thank you for your reply.
Edge device management is done through the application of edge nodes, right?

@rambohe-ch Thank you for your reply.
Edge device management is done through the application of edge nodes, right?

yes, containerized applications that run on edge nodes will cover device management.

This issue has been addressed. Feel free to reopen it if more details need to be discussed.


Enable --list-harnesses flag

Description of changes:
Kani contains the harness metadata in a JSON file but it is only read temporarily before being deleted. The only way to retain this information was through the --keep-temps flag which stores these temporary files but is a bulky operation for information that's readily available. The --list-harnesses flag returns a JSON string which can be consumed as an API by any receiver.
The output with the flag looks like this -
$cargo kani --enable-unstable --list-harnesses
[
  {
    "pretty_name": "check_estimate_size_2",
    "mangled_name": "check_estimate_size_2",
    "original_file": "/home/ubuntu/test-cargo-kani/src/lib.rs",
    "original_start_line": 39,
    "original_end_line": 42,
    "unwind_value": null
  },
  {
    "pretty_name": "check_estimate_size",
    "mangled_name": "check_estimate_size",
    "original_file": "/home/ubuntu/test-cargo-kani/src/lib.rs",
    "original_start_line": 30,
    "original_end_line": 33,
    "unwind_value": null
  }
]

Resolved issues:
Resolves #1612
Call-outs:
The flag only runs with cargo kani and not the single script kani because the cargo kani output would always be a superset of the kani output.
Testing:

How is this change tested?

Is this a refactor change?

Checklist

[x] Each commit message has a non-empty body, explaining why the change was made
[x] Methods or procedures are documented
[x] Regression or unit tests are included, or existing tests cover the modified code
[x] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

I would expect --list-harnesses to be formatted as a user friendly output though. I would suggest to rename it to be --print-metadata or something like that if you want to keep that output.

Call-outs:
The flag only runs with cargo kani and not the single script kani because the cargo kani output would always be a superset of the kani output.

I don't understand what you mean here? What will happen if the user invokes:
kani --list-harnesses test.rs

You should also clarify that this will not run the verification.

Call-outs:
The flag only runs with cargo kani and not the single script kani because the cargo kani output would always be a superset of the kani output.

I don't understand what you mean here? What will happen if the user invokes:
kani --list-harnesses test.rs

You should also clarify that this will not run the verification.

Makes sense. Will clarify these in the PR.

PR came directly from a local branch by mistake.


Issue756 flat crystal etendue

Main changes:

None, except a minor extra piece of copy-pasted code to help that kind of cases debugging

Issues:

Issue #756  was due to wrong input, no bug detected

Example:
The outline of the crystal was provided such that the crystal was self-intersecting, resulting in reflected slit that was plummeting to 0 for central pixels

Indeed, the reflection of the slit on the crystal gradually disappears as we go from edge pixels to central pixels (index ii = 16)

A simple fix is to provide the outline in good order to avoid self-intersection of the polygon:

Which results in:

Thanks for catching my mistake!
My one question is what's the quantity you're plotting in the bottom right of your last plot? Etendue? I wasn't able to reproduce it flipping through the options but may have missed something.

Thanks for catching my mistake!
My one question is what's the quantity you're plotting in the bottom right of your last plot? Etendue? I wasn't able to reproduce it flipping through the options but may have missed something.

Yes, it is the etendue, are you sure you loaded the good branch ?

Yeah, I think I am. I do git checkout Issue756_FlatCrystalEtendue and then run the minimum working example I passed to you yesterday with only this identified error. I'm getting an etendue of ~5e-14.
I'm interested in what's going on here because what you've plotted for etendue is more similar to what's come out for the von Hamos. I would expect to get numbers like that.

After checking, running the von Hamos with the same detector pixel settings (33,1) is giving ~1.3e-13 so comparing against the flat's ~5e-14 is only about a factor 3 difference. Not sure how your ~2e-12 for flat pops up, but like we talked about more careful signal comparison coming up since you hashed out these coding bits

After checking, running the von Hamos with the same detector pixel settings (33,1) is giving ~1.3e-13 so comparing against the flat's ~5e-14 is only about a factor 3 difference. Not sure how your ~2e-12 for flat pops up, but like we talked about more careful signal comparison coming up since you hashed out these coding bits

OK, I got it, this 1e-12 etendue corresponds to the etendue without the rocking curve effects.
It's because after creating the PR I had shofted branches to a branch on which I had been temporarily deactivating the rocking curve , made the plots from there ((forgetting I had swithed branches).
So 5e-14 is the correct answer

OK, I got it, this 1e-12 etendue corresponds to the etendue without the rocking curve effects. It's because after creating the PR I had shofted branches to a branch on which I had been temporarily deactivating the rocking curve , made the plots from there ((forgetting I had swithed branches).
So 5e-14 is the correct answer

Damn, yeah that checks out.  Yeah, I think everything's good here


[IRGen] Exiting terminators don't alloc packs.

Function exiting terminators don't allocate on-stack pack metadata packs.  The packs would have been materialized when the value is defined.
Fixes a SILVerifier failure resulting from a sequence like
alloc_pack_metadata
dealloc_pack_metadata
return

resulting from inserting the alloc_pack_metadata on behalf of the return, inserting the dealloc_pack_metadata on the dominance frontier, and fixing up stack nesting.

@swift-ci please test


Deploy Checklist: New Expensify 2021-12-17

Release Version: 1.1.22-1
Compare Changes: https://github.com/Expensify/App/compare/production...staging
This release contains changes from the following pull requests:

https://github.com/Expensify/App/pull/6611

[x] QA
[x] Accessibility

https://github.com/Expensify/App/pull/6755

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6762

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6765

[x] QA
[x] Accessibility

https://github.com/Expensify/App/pull/6766

[ ] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6774

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6781

[x] QA
[x] Accessibility

https://github.com/Expensify/App/pull/6786

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6787

[x] QA
[x] Accessibility

https://github.com/Expensify/App/pull/6791

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6796

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6798

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6803

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6805

[x] QA
[ ] Accessibility

https://github.com/Expensify/App/pull/6810

[x] QA
[ ] Accessibility

Deploy Blockers:

[x] https://github.com/Expensify/App/issues/6822

cc @Expensify/applauseleads

📣 @applausebot You have been assigned to this job by @OSBotify!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖

starting QA

Regression is finished!
Issues found:

https://github.com/Expensify/App/issues/6822 - Expected behaviour
https://github.com/Expensify/App/issues/6828
https://github.com/Expensify/App/issues/6829
https://github.com/Expensify/App/issues/6836

Comments added:

https://github.com/Expensify/App/pull/6766#issuecomment-997087145 - Currently blocked from executing this

Thanks.

Removed DeployBlocker label for https://github.com/Expensify/App/issues/6836#issuecomment-998259861 so removing it from the description

just to confirm at the moment we don't have any deploy blockers?

@sketchydroide No deploy blockers open. However, we are blocked to validate this one https://github.com/Expensify/App/pull/6766#issuecomment-997068463

As stated here, I think we are good to check off #6766. Checking it off, meaning @sketchydroide I think we are good to run the production deploy

:shipit:

:shipit:


[MM-45003] Don't emit logged in event until mfa setup is complete

Summary
When setting up MFA on Desktop the webapp would emit a logged in signal to the other tabs once you have entered your login credentials but it wouldn't take into account whether you had completed your MFA setup or not. That signal caused the other tabs (playbooks & boards) to think they were logged in, they would get a 401 on their requests and you would get logged out from the MFA setup page.
Adding this check means we only emit the login signal after MFA setup.
Ticket Link
https://mattermost.atlassian.net/browse/MM-45003
Replication steps
Setup desktop and ensure you also have boards or playbooks tab active too.
Enable MFA and enforce on login.

Login using your credentials.
Follow the MFA setup steps

Observed: You get redirected back to the login page from the MFA setup
Expected: You can complete the MFA setup and all tabs get logged in afterwards
Release Note

NONE

/update-branch

E2E tests not automatically triggered, because the PR is not in a mergeable state. Please update the branch with the base branch and resolve outstanding conflicts.

/e2e-test

Successfully triggered E2E testing!
GitLab pipeline | Test dashboard

/e2e-cancel

Successfully canceled pipelines:
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/305410

/update-branch

/update-branch


Added Routes endpoints and Route Schema

@sunny3728 Is there a way to add/remove students from bus routes?


[fix] Fix wallet adapter auto reconnect

This PR fixes the wallet adapter losing its connection on page reload and repeatedly asking the user to reconfirm the connection on both explorer and ANS.
In particular this fixes GP-221 (and partially WAL-341) and makes the workaround introduced in https://github.com/aptos-labs/explorer/pull/476 obsolete. See also https://aptos-org.slack.com/archives/C04EXV6UTR7/p1681963789169939?thread_ts=1681962123.674429&cid=C04EXV6UTR7 .
Previously upon page reload a sequence of events triggered a disconnect:

The dApp successfully connected to the wallet via autoconnect (which simply calls connect(<walletName> )
A readyStateChange event from WalletCore triggered a state change in the wallets component state by calling setWallets here https://github.com/aptos-labs/aptos-wallet-adapter/pull/129/files#diff-976f6ce28f5861155298dbb0cfae197c7ba5f62c12fb8d6c51f603841b8bbcfdR173-R186 , even though none of the items actually changed (but a new array identity had been constructed).
This in turn triggered a 2nd auto-reconnect effect under https://github.com/aptos-labs/aptos-wallet-adapter/pull/129/files#diff-976f6ce28f5861155298dbb0cfae197c7ba5f62c12fb8d6c51f603841b8bbcfdR106-R112  which called connect(<walletName>) again.
The 2nd connect(<walletName>)` disconnected the wallet https://github.com/aptos-labs/aptos-wallet-adapter/pull/129/files#diff-8a76cc616d7961765eb7ff494b4e86bc0e56cce6d0273caaa57af714ac95757eR201 and asked the user to reconfirm the connection in a new connection prompt.

This PR fixes 2 things:

Double triggering the auto reconnection effect is avoided by using the items in the wallet component state as trigger dependency instead of the array identity. So unless actually any of the items or their order changed this won't trigger a reconnect.
When connect(<walletName>) is called with the same wallet name that is already connected we simply return early from this function and do nothing.

Thanks for looking into it! could you please make sure you follow our Contributing guide and add those changes using changesets.

[0707b2f](/aptos-labs/aptos-wallet-adapter/pull/129/commits/0707b2f73dc37ef5c2c822954a463330d6f89195)
 geekflyer force-pushed the fix-wallet-auto-reconnect branch from  e30ef08  to  0707b2f   Compare   April 22, 2023 22:23
Merge state
Add more commits by pushing to the [fix-wallet-auto-reconnect](/aptos-labs/aptos-wallet-adapter/tree/fix-wallet-auto-reconnect) branch on aptos-labs/aptos-wallet-adapter.

done

Thanks for looking into it! could you please make sure you follow our Contributing guide and add those changes using changesets.

done

btw, what's the intention behind this logic? https://github.com/aptos-labs/aptos-wallet-adapter/blob/30caf1ffa74deb16ef8dff60ce305411fe84b1bb/packages/wallet-adapter-react/src/WalletProvider.tsx#L175-L184

btw, what's the actual intention behind this logic?
https://github.com/aptos-labs/aptos-wallet-adapter/blob/30caf1ffa74deb16ef8dff60ce305411fe84b1bb/packages/wallet-adapter-react/src/WalletProvider.tsx#L174-L184
We can simplify this code actually to:
    setWallets((prevWallets) =>
      prevWallets.includes(wallet) ? [...prevWallets] : prevWallets
    );

but I still don't quit understand the intention.

the idea is to update the wallet.readyState and broadcast it to the dapp. We assign the readyState value here https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/packages/wallet-adapter-core/src/WalletCore.ts#L67, update the state in the snippet you shared and then dapps can use it like this https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/packages/wallet-adapter-mui-design/src/WalletModel.tsx#L47

fyi, https://github.com/aptos-labs/aptos-wallet-adapter/issues/130


7.3-rc-1 --project-cache-dir incompatible with org.gradle.vfs.watch=true

Expected Behavior
./gradlew :help should succeed even when passing --project-cache-dir somedir and setting org.gradle.vfs.watch=true.
Current Behavior
I observe that ./gradlew --project-cache-dir gradle-project-cache :help fails when setting org.gradle.vfs.watch=true:
/usr/local/google/workspace/gradle-samples/project-cache-dir-watch (master)$ ./gradlew --project-cache-dir gradle-project-cache :help

FAILURE: Build failed with an exception.

* What went wrong:
Should be in state Finished.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 642ms

Context
AndroidX uses both of these features and this causes our builds to fail with version 7.3-rc-1 of Gradle. Our builds succeed with Gradle 7.2, however.
Steps to Reproduce
See https://github.com/mathjeff/gradle-samples/tree/master/project-cache-dir-watch

This is a legitimate error, as with our current setup we cannot probe the build directory without a project cache directory right underneath it. What we'll do here is improve the error message to be clear what the user has to do to avoid it, see #18635.


'Convert to HCL2' issue with lists

Installation details
IntelliJ IDEA 2019.1 Snapshot (Ultimate Edition)
Build #IU-191.4738.6, built on January 29, 2019
macOS 10.14.2
intellij-hcl plugin version 0.6.210
Terraform Configuration Files
My HCL1 code has the next string:
size = "${data.vsphere_virtual_machine.base.disks.0.size}"

I apply Convert to HCL2 expression quick fix.
Expected Behavior
size = data.vsphere_virtual_machine.base.disks[0].size
Actual Behavior
size = data.vsphere_virtual_machine.base.disks

Fixed in next build


change user migration answer to point to user migration guide

@yoelhor @saraford

@spottedmahn : Thanks for your contribution to the Azure documentation! The author, @saeeda, has been notified to review your proposed change.

@PatAltimore Please review these changes. If these are good, contact PR reviewer team to get merged.

@spottedmahn Thanks for the contribution.  It looks good.
Approving the change on behalf of the author @saeeda
#sign-off


hello

Hello,
I'm looking for an open source online dashboard, so that users can configure their beacon directly from their home, through their laptop.
And if you already have integration code for the iOS and android app, thank you

check this project:
http://beekn.net/2015/11/beaconcontrol-open-source-beacon-management/


Fix folder creation

This PR fixes the following error:
...
----------------------------------------------------------------------------------------------------
/Users/valosek/code/balgrist-sci/file_loader.py finished successfully.
----------------------------------------------------------------------------------------------------
process_data.sh: line 219: cd: sub-001/ses-01: No such file or directory

This error was caused by a minor bug in process_data.sh in the following command:
cd "$results_folder"
cp -r "$bids_folder/$participant_id/$session_id" "$participant_id/"

By running cp in this way, only $session_id was copied to $results_folder. But not $participant_id.
So this PR fixes this issue by first creating $participant_id using mkdir:
# Go to folder where data will be copied and processed
cd "$results_folder"
# Copy source images
mkdir -p "$participant_id"
cp -r "$bids_folder/$participant_id/$session_id" "$participant_id/"

I'll retest and review the PR by myself later today and then merge it to be ready for tomorrow's meeting with collaborators.

Tested again and working fine. Merging.


Fix Ubuntu:14.04 install instructions.

I thought I had tested these, but obviously I did not because they did
not work :disappointed: I guess that is why we have CI builds.
This time I did run the build script.  I am looking forward to April when
Ubuntu:14.04 goes EOL and we can remove all these hacks.

This change is

PTAL.

I am going to merge this because at least it will fix the CI builds.  Do not hesitate to request additional fixes, I will just create a second PR.


[22.05] discourse: 2.9.0.beta10 -> 2.9.0.beta14

Description of changes
:warning: Note: I only checked if everything is building fine since I don't have a discourse running on 22.05 where I could test this, so I'd need a few testers!
Backport of #204251.
Fixes CVE-2022-41921, CVE-2022-41944, CVE-2022-46150, CVE-2022-46159.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Don't forget it has a nixos test.


How-to: Add custom grant type

A guide on how to add a custom flow to the provided core functionality would be very useful.
Context
This project does not support grant types that are not part of the OAuth2.1 spec (see https://github.com/spring-projects/spring-security/wiki/OAuth-2.0-Features-Matrix#authorization-server-support); Some potential users might still need to support some of these authorization flows, so a guide on how to they can add one by themselves would be nice.
Also, there can be other use cases to add your own custom grant types, e.g. in our current project there already exists a dedicated custom grant type which adds some additional custom functionality to the standard client credential flow.
Related: https://github.com/spring-projects/spring-authorization-server/issues/499

Hi @6S. There is documentation available for the project, in case you weren’t aware. If the docs don’t answer the question, you may want to ask on stackoverflow while waiting for this guide. Feel free to link to the question here so others can find it.

Hello, Reading this discussion I don't understand if it is possible to implement and to declare a non-supported grant type using this library. I understand there is no documentation available, but is it at least possible ? In other words, what is the level of extensibility of Spring Authorization Server ?

Hi 6S,
yes it is possible but not that easy. You basicly need an Implementation of org.springframework.security.oauth2.server.authorization.web.authentication.AuthenticationConverter and org.springframework.security.authentication.AuthenticationProvider which you have to add to the org.springframework.security.oauth2.server.authorization.web.OAuth2TokenEndpointFilter.
The last Point is the tricky part which you can read here: #417

@imaxkhan Please do not ask questions on an unrelated issue. As well, questions are better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements

sure srry for that
https://stackoverflow.com/questions/75856967/how-disable-federation-on-client-credential-flow-inside-spring-federated-authori


Strange REST API for Open Lineage Services Configuration

What is the purpose of the two different methods for configuring the open lineage services.
I see 2 endpoints:
   /**
     * @param userId             user that is issuing the request.
     * @param serverName         local server name.
     * @param openLineageServerConfig configuration properties for open lineage server
     * @return void response or
     * OMAGNotAuthorizedException     the supplied userId is not authorized to issue this command or
     * OMAGInvalidParameterException invalid serverName or accessServicesConfig parameter.
     */
    @PostMapping(path = "/open-lineage/configuration")
    public VoidResponse setAccessServicesConfig(@PathVariable String userId,
                                                @PathVariable String serverName,
                                                @RequestBody OpenLineageServerConfig openLineageServerConfig)
    {
        return adminAPI.setOpenLineageConfig(userId, serverName, openLineageServerConfig);
    }

    @PostMapping(path = "/open-lineage")
    public VoidResponse enableOpenLineageServices(@PathVariable String userId,
                                                  @PathVariable String serverName)
    {
        return adminAPI.enableOpenLineageService(userId, serverName);
    }

Neither has sufficient Javadoc to explain what they are for.  When I look at the implementation then adminAPI.setOpenLineageConfig looks reasonable.  However the adminAPI.enableOpenLineageService seems to retrieve the config from the store and then puts it back into the config store unchanged - what is the purpose of this?

adminAPI.enableOpenLineageService appears to be redundant. I will remove it.
Many other governance engines (e.g. security synch, dataplatform) seem to have the same implementation.

The method for setting a governance server config could maybe be moved to a common code base? It seems to be very similar between governance engines.

The enableOpenLineageServices call has been duplicated by many governance governance servers developers even though it is redundant. Having a common code base could help in preventing code quality issues like these.

There probably are common functions that can be added for governance servers - in the way that we have done for access services - however the Open Lineage Services is the first governance service that is scheduled for release - and so I would expect a greater level of maturity for it than other governance services - for example - how do you disable these services in a server?  What are the values that are valid in each field?


Multi-scale cropping based on density maps.

https://openaccess.thecvf.com/content_CVPRW_2020/papers/w11/Li_Density_Map_Guided_Object_Detection_in_Aerial_Images_CVPRW_2020_paper.pdf

We often have multi-scale challenges, especially as predict_tile just cuts images into uniform pieces. This an interesting idea for bird detection. with trees the images are often uniformly trees.

Sparse RCNN
https://github.com/PeizeSun/SparseR-CNN
worth exploring as well.

Hi @bw4sz, can I work on this issue?

@Om-Doiphode, Feel free to address any unresolved issues without needing explicit permission. If an issue remains unassigned, you are welcome to take initiative and work on it.

I have read the research paper on Density Map Guided Object Detection in Aerial Images. Shoudl I include the code for DMNet under deepforest/models folder?

This seems like a pretty complex topic that is unlikely to be easily added on a short time-frame, but could make a decent GSOC proposal. This would implement dynamic cropping, which would influence the behavior of predict_tile rather than replacing the detection model (though I'm not super clear on the double use of the detector yet).
@bw4sz - I'm assuming you were thinking about this as a more complex feature request project rather than a smaller issue. Is that right?

yes, anything with the machine learning label is going to be a pretty big lift.

Thanks @bw4sz.
So, @Om-Doiphode - it's great that you're excited about this one, but we think it's better to think of it as a GSOC project to propose (if you want; there are certainly other good options) not an initial contribution. We've done some issue cleanup and labeled a bunch of additional issues as good first issue which will be a little more manageable to engage with as you're getting familiar with the code base.

Thank you @ethanwhite


witness_gen  load_account_tree logic bug.

witness_generator use   load_account_tree function to reconstruct account tree. it prefer use  cache state to save cpu. But it load committed_state use last block on
https://github.com/matter-labs/zksync/blob/64cdd58c9b36bf16a64dec08f06c8807c9e86387/core/bin/zksync_witness_generator/src/witness_generator.rs#L114
I think it should use cached_block.

Sorry for the long response. We can use cached_block here indeed, but it won't change the stuff much.
This function is a subject for a bigger refactoring and we plan to rewrite it soon.


2nd update to readme

added instructions to use Instruqt with link

Ah yes, that's a great point.

You can reject this PR.

closing per consensus in comments


Export CDR Json document in session list

Back-end support for CDR export (OCPI Data Export)

@WillyLellouch: Conflicts to resolve.


Update set-default-timezone.md

Add instructions for browser UTC and Timezone setting

we have a note here https://day.js.org/docs/en/plugin/loading-into-browser


feat(wallet): remember last wallet address

Only generate a new wallet address after the last one has been used.
Fix #519

Tested ACK 2de1686

I've removed the unneeded async definition @Empact .
I think it is worth noting that with this approach it is possible that a user could be presented with an address that they have in fact already used.
The only way that we know wether an address has already been used is by checking the past transactions and comparing with the currently stored wallet address. We generate and store locally a new wallet address only in the following circumstances:

the first time the wallet has been opened
after a new onchain transaction has been received
after pulling the list of all past transactions from lnd and finding one that matches the one we have stored.

If you open up an existing wallet after having not used it for some time and there has been an on-chain transaction to your wallet address since you last synchronised it then we will show the used address until we have synced the data up until the point of your new transaction, at which point we detect it has already been used and generate a fresh one.
This could mean that is possible for the syncing screen to show an already used wallet address and then update it to show a new one mid-way through the syncing process. I'm not sure there is a way round this or wether it is a scenario that is likely to be encountered.

@mrfelton A little hack around is to only show the deposit address UI on the sync screen if the user has a wallet balance and/or channel balance of 0.
The only real user story supporting the deposit UI there is a brand new user syncing from scratch. Greatly improves overall UX if they can deposit funds while syncing. Especially if they enable autopilot. Then it's -> create wallet -> deposit while sync -> once fully synced channels start to open via autopilot
Once you've used Zap before and have on-chain funds the sync screen deposit address is rarely helpful.
So my suggestion is we have a dynamic sync screen design based on walletbalance and/or channelbalance.
The only small edge case here that could present reused address is a user that synced Zap, didn't deposit funds, closes Zap, then someone sends to that on-chain address while their node isn't online, then they launch Zap again. I think that's an acceptable edge case for the beta stage we are in. I'll continue to think about solutions to that

@jackmallers the change that you suggested re calling dispatch(fetchInfo()) in the grpcConnected callback has actually been made in https://github.com/LN-Zap/zap-desktop/pull/529 already.
I have updated this PR to also store a boolean named hasSynced in the wallets electron-store which get's set after the first time the wallet has fully synced and I use this to determine wether or not to show the funding address on the syncing page.
As this PR now depends on the changes from https://github.com/LN-Zap/zap-desktop/pull/529 I have rebased it from that. Once that PR gets merged, this can one can be more easily reviewed and merged.

You can review the changes for this PR only without seeing the rest of the changes from #529 here https://github.com/mrfelton/zap-desktop/compare/fix/sync-issues...mrfelton:feat/remember-wallet-address

Cool. I'll go test #529 again

rebased

Tested ACK a989c03

utACk a989c03


sub menus

When the sub-menus are opened it's a bit difficult to notice which are sub menus.
If these could be coloured slightly differently it might help?

When the sub-menus are opened it's a bit difficult to notice which are sub menus.

Do the sub-menu items need to be more noticeable than the other menu items?

not  necessarily more noticeable , but might be better if they were better differentiated.

Would it be possible (and interesting) to have a 3-levels menu, kind of like this :

but might be better if they were better differentiated.

We could indent them more?

For comparison, we have a nested menu in the documentation: https://www.pombase.org/downloads

Maybe we can discuss on the next call.

Link this ticket to the other suggestion

Link this ticket to the other suggestion

https://github.com/pombase/website/issues/1940#issue-1411301314
I think the plan is to highlight the menu item(s) as they scroll into view.

I think the plan is to highlight the menu item(s) as they scroll into view.

I've been working on this.  My desktop version has my work in progress.  There are many bugs still though:
https://desktop.kmr.nz/gene/SPBC216.07c

There are many bugs still though

There are fewer bugs now so I've released the changes.
For now the highlighting is quite subtle but it's easy to change.  Also all the sections that are on screen are highlighted in the menu, not just the first.  That was easier to implement so I thought we could give that a go first.
Let's chat about it on the call.

There are fewer bugs now so I've released the changes.

It's only implemented for gene pages so far.  I'll add it to the other pages (publications, terms, genotypes, alleles) once we've had a chat about it.

I think that's pretty neat too !
The highlighting seems clear enough with the darker edge on the right, maybe it could be stronger, but I don't think it needs to be as obvious as on SGD.
I noticed that sometimes a section is highlighted even though it doesn't appear on screen (like Modifications in the image below)

Hi Pascal.  Which browser is that?

In my desktop version I've made the sensitivity a little bit lower. Could you try my desktop version and see if you have the same issue?: https://desktop.kmr.nz/gene/SPAC20G8.05c

I think it worked, I couldn't replicate the issue on your desktop version. When the previous section highlights, it is already partially on screen. The image shows the point at which the previous section starts highlighting now:


[FLINK-2195] Configure Configurable Hadoop InputFormats

LGTM, except that one inline comment. Please check and remove if necessary.
Thanks!


Provide a recommended workflow

Adapt it from https://jump.dev/JuMP.jl/v0.21.8/manual/solutions/#Recommended-workflow

This should be transferred to JuliaConstraints Documentation


The wrap option in diff mode

I am enjoying to use diff mode.
But I am wondering why the wrap option always forced to be off.
I know its reason is to properly align text between diff windows,
but it is more important for some users (including me) to always wrap lines and see all text.
We have to reset the option every time in diff windows (or set autocmd).
Is it possible and reasonable to remain the wrap option in diff mode?

I am enjoying to use diff mode.
But I am wondering why the wrap option always forced to be off.
I know its reason is to properly align text between diff windows,
but it is more important for some users (including me) to always wrap lines and see all text.
We have to reset the option every time in diff windows (or set autocmd).
Is it possible and reasonable to remain the wrap option in diff mode?

It would be possible, but it's really a new display mode, thus it will
be work to implement.  Obviously a side-by-side view can only be in sync
at one point in the window (top or middle).  Or we would have to insert
filler lines where needed, there already is the "filler" item in
'diffopt'.
--
hundred-and-one symptoms of being an internet addict:
133. You communicate with people on other continents more than you
do with your own neighbors.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

It would be possible, but it's really a new display mode, thus it will be work to implement. Obviously a side-by-side view can only be in sync at one point in the window (top or middle). Or we would have to insert filler lines where needed, there already is the "filler" item in 'diffopt'.

Yes, to properly align text even when the wrap is on, more 'filler' lines might be necessary.
But it is OK if the alignment goes wrong in this case.
The issue here is that there is no choice and need to set wrap option again every time.
How do you think , like 'filler', to add another option in diffopt, to set wrap on/off/as-is?


feat(tokens)!: use latest spectrum-tokens package

Description

How and where has this been tested?

How this was tested:
Browser(s) and OS(s) this was tested with:

Screenshots

To-do list

[ ] If my change impacts other components, I have tested to make sure they don't break.
[ ] If my change impacts documentation, I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have tested these changes in Windows High Contrast mode.

[ ] This pull request is ready to merge.

Encompasses the following releases:

https://github.com/adobe/spectrum-tokens/releases/tag/v12.0.0-beta.60
https://github.com/adobe/spectrum-tokens/releases/tag/v12.0.0-beta.59
https://github.com/adobe/spectrum-tokens/releases/tag/v12.0.0-beta.58
https://github.com/adobe/spectrum-tokens/releases/tag/v12.0.0-beta.57


[Enhancement] Not annotated parameter overrides @NotNull parameter[tcp RetryContext]

Search before asking

[X] I had searched in the issues and found no similar issues.

Enhancement Request

located at:
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/session/retry/RetryContext.java line 41
Describe the solution you'd like
add @Nullable and use Objects.requireNonNull()

Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Is not @Nullable and Objects.requireNonNull contradictory to each other?

Is not @Nullable and Objects.requireNonNull contradictory to each other?

It maybe a clerical error. @NotNull should be added and no need Objects.requireNonNull, right? @Alonexc

@leopardrota @pandaapo  Yes, a little redundant, how about using the @Nonnull annotation?


Handling for large numbers, which cannot fit in int64_t or uint64_t

Very large numbers are currently accepted (2**200, 61 digits):
const auto res = glz::read_json<uint64_t>("1606938044258990275541962092341162602522202993782792835301376");
// no error , res = 0

Fixed with #378


Fix: Classname should end in Test

This PR

[x] renames TalksControllerTests to TalksControllerTest

@chartjes @mdwheele @pmeth
The build failing here indicates that the test has never actually been run before, doesn't it?
See https://travis-ci.org/opencfp/opencfp/builds/112438321.

That seems correct as the test-case previously ended with Tests rather than Test. See note at https://phpunit.de/manual/current/en/organizing-tests.html#organizing-tests.filesystem.
It'd probably be best to go ahead and resolve the issue as part of this PR after determining expected behaviour.

@mdwheele
Will have a look tomorrow!
Can you do me a big favour, though, and have a look at #368? Will make it a lot easier to run the tests locally!

Done!

Thank you, @mdwheele!

@mdwheele
Do you want to take a look again?

This has been hanging around long enough...


Support for RHEL 8 and Ubuntu 19

Any ETA on when RHEL 8 / Ubuntu 19 will be supported by ADE ?

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

ID: 358673f9-fd9a-3357-bf50-4d9b7fbe6cc6
Version Independent ID: a4978908-6539-17f7-8fb6-3d88cad7237c
Content: Enable Azure Disk Encryption for Linux VMs - Azure Linux Virtual Machines
Content Source: articles/virtual-machines/linux/disk-encryption-overview.md
Service: security
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@johanburati  Thanks for the question! We are investigating and will update you shortly.

@johanburati Currently this is a work in progress but we do not have a timeline on the same. We do have a feature request item already opened on user-voice for ADE support on RHEL 8.0 and I would suggest you to up-vote the same . the user-voice is monitored by product group periodically and is the best place for requesting new features. We will now close this issue . In case you have any further queries, feel free to let us know and we will be glad to continue the conversation here. In case you have an unrelated query , please open a new thread on the document you have query on and we will help you there.
Thank you.


LORA

An implementation of LORA and other tuning techniques would be nice.

Yeah that's what we've been planning to add. We are doing some cleanups on the current code base right now. Will start the Lora implementation in a week or two.

https://github.com/labmlai/annotated_deep_learning_paper_implementations/pull/266


Unrecoverable syntax error for (function(){}/0);

var g = function() {console.log(1);};
var x = (function(){}/0);
var y = (function(){}/0/g);
var z = (function(){}/0/g)/g(function(){}/0/g);
Try the above statements. It works, but jshint says there is an unrecoverable syntax error on line 2.
If you add a trailing comment to line 2, jhint will give a different error (the syntax highlighter in vscode also malfunctions).
The problem seems to be that jshint thinks the division slash is part of a regex literal.

Thanks for the report! While I appreciate the background, there's no need to explain. JSHint is a JavaScript parser, so it should parse valid JavaScript!
Further reduced:
void function () {} / 0


Add configuration for a Jenkins instance on AWS

This pull request:

sets up a Jenkins instance with a 20Gb EBS drive on digitalmarketplace-development
whitelists Aviation House IP addresses
adds a DNS record at https://jenkins.development.digitalmarketplace.service.gov.uk/
assigns it an Elastic IP address

:+1:


Support of primitive type declaration

It seems ppx_import.1.1 drops private flag from the imported type declaration.  For example, the following type definition of Primitive.description:
type description = private
    { prim_name: string;         (* Name of primitive  or C function *)
      prim_arity: int;           (* Number of arguments *)
      prim_alloc: bool;          (* Does it allocates or raise? *)
      prim_native_name: string;  (* Name of C function for the nat. code gen. *)
      prim_native_repr_args: native_repr list;
      prim_native_repr_res: native_repr }

type description = [%import: Primitive.description] seems to create the following type definition:
type description = Primitive.description = (* NO private *)
    { prim_name: string;         (* Name of primitive  or C function *)
      prim_arity: int;           (* Number of arguments *)
      prim_alloc: bool;          (* Does it allocates or raise? *)
      prim_native_name: string;  (* Name of C function for the nat. code gen. *)
      prim_native_repr_args: native_repr list;
      prim_native_repr_res: native_repr }

Are you saying this worked on 1.0? That seems odd... I don't remember altering those code paths.

No.  I mean it ignores private keyword by "drops".    (I have no idea ppx_import.1.0 worked with private data types.)

Oh... now I noticed the ticket title was "primitive" not "private"... Sorry if it confused you.

Oh I didn't even notice that...


Cleanup and idempotency issues

This is a list of resources that need cleanup:

S3 buckets (rootmail, control tower setup, canaries, config)
CWL Log Groups for all the embedded λ (either create explicitly or defer to CDK)
CW Dashboard
SES Domain Verification

Questionable:

sw created OpsItems

Not really a bug, more of a note for do-overs (potentially relevant as a note for brownfield installations). Currently only the backup component blocks do-overs through since EnableCloudFormationStacksetsOrgAccessReadyWaitCondition is never triggered by CfnStackSetsReady (since EnableOrganizationsAccess is not re-triggered). (see also #218)
Mitigation: just manually trigger the CfnStackSetsReady λ with any payload.

This ticket seems to describe at least two different issues: Cleanup issues and convergent/brownfield issues. We might want to split it up to decouple the issues.


Daedalus connect Error

[2018-03-28 11:05:24:0420] [error] AdaApi::syncProgress error: {
"stack": "Error: connect ECONNREFUSED <IP_ADDRESS>:8090\n    at Object.exports._errnoException (util.js:1050:11)\n    at exports._exceptionWithHostPort (util.js:1073:20)\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)",
"message": "connect ECONNREFUSED <IP_ADDRESS>:8090",
"code": "ECONNREFUSED",
"errno": "ECONNREFUSED",
"syscall": "connect",
"address": "<IP_ADDRESS>",
"port": 8090
}

is cardano-node running?

Getting the same error.
@cleverca22  The readme talks about running npm run dev only; how to start cardano-node ?

Cloned the cardano-sl repo - https://github.com/input-output-hk/cardano-sl
Built it from source
Entered the following commands to build connect-to-staging (macOS)
bash
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
nix-shell
nix-build -A cardano-sl-node-static --cores 0 --max-jobs 2 --no-build-output --out-link master
Then built for staging using the steps mentioned here - https://github.com/input-output-hk/cardano-sl/blob/master/docs/how-to/connect-to-cluster.md)
./connect-to-staging
Started Daedalus using the following commands
export NODE_TLS_REJECT_UNAUTHORIZED=0
npm run dev

Now, trying to create a newWallet and it keeps giving
[23:12:04.929] AdaApi::getWallets error: {
  "stack": "Error: SyntaxError: Unexpected end of JSON input\n    at IncomingMessage.eval (webpack-internal:///328:123:18)\n    at emitNone (events.js:91:20)\n    at IncomingMessage.emit (events.js:188:7)\n    at endReadableNT (_stream_readable.js:975:12)\n    at _combinedTickCallback (internal/process/next_tick.js:80:11)\n    at process._tickCallback (internal/process/next_tick.js:104:9)",
  "message": "SyntaxError: Unexpected end of JSON input"
}

Any idea what's going wrong ?


nanosleep(2) is not blocked

The answers expect the nanosleep(2) syscall to be blocked, but it isn't (and the sleep command can successfully be used).

does it actually sleep tho.... because when i try it doesnt actually sleep

Oh, indeed; I had used a small-ish number of seconds, and it seems I only observed the latency between contained.af and my laptop  :)

:) happens a lot, I was concerned when I first deployed as well haha
On Fri, Nov 17, 2017 at 11:03 AM, Nicolas Braud-Santoni <
<EMAIL_ADDRESS>wrote:

Oh, indeed; I had used a small-ish number of seconds, and it seems I only
observed the latency between contained.af and my laptop :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/jessfraz/contained.af/issues/18#issuecomment-345284740,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYNbOaQhsZiYOjB__Rks5IgwZve2idJks5s3a5agaJpZM4QbGOh
.

--
Jessie Frazelle
4096R / D4C4 DD60 0D66 F65A 8EFC  511E 18F3 685C 0022 BFF3
pgp.mit.edu http://pgp.mit.edu/pks/lookup?op=get&search=0x18F3685C0022BFF3


[DONOTCOMMIT] Integrate fix for c888a0ce8846e7ebf30914d4959125da80b3f566

@kuhar FYI

seems I missed a few BUILD dependences related to TF, not sure how to test this locally but it should be trivial to fix when you need it


This change saves the value of the method into a variable and the variable is instead
used in the constraint.
Signed-off-by: Srikrishna Iyer<EMAIL_ADDRESS>

this is already fixed by 13645


How can I chain write with the XML writer?

Greetings, since there is no Discussions tab, I am obliged to ask my question via an Issue.
My question is, is there a way to write via chain ?
For example
$writer = new XMLWriter();

$writer->write('root', 'customElement' => myElement];

// .... more code

$writer->write('root', 'customElement2' => myElement2);

// ... more code

$writer->gerenate

Hey @chatsikm thanks for your question! Yes the writer does currently support this. You can write multiple times with one instance but you can't partially write something, and then write the rest currently.


Adding obo sample

Purpose

This PR adds a new sample: 7-AdvancedScenarios/1-call-api-obo

Does this introduce a breaking change?

[ ] Yes
[ x ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe: **new sample**

How to Test

Get the code

git clone https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial.git
git checkout dev
cd ms-identity-javascript-react-tutorial/7-AdvancedScenarios/1-call-api-obo
cd SPA
npm install
cd ../MiddletierAPI
npm install
cd ../DownstreamAPI
npm install

What to Check
Verify that the following are valid

Run in Chrome, Firefox or Edge
Run in incognito mode

7-1 works as expected. Left a few reminder comments for you to resolve as you continue polishing the app.

Some observations for 5-AccessControl/1-call-api-roles:

In TodoList screen, Edit and Delete does not work.
Dashboard does not display new values.
Display logic on dashboard does not differentiate tasks created by other domain users.
UserName of the signed-in user can be displayed on home page or near sign-out button.

Edit and Delete fixed
For Dashboard, API now filters by domain

Looks good to me! Great work.


Add errors field in the /projects endpoint's sample response

Is your feature request related to a problem? Please describe
I was implementing the history website and the first view requires a bar chart showing the number of errors for each project related to a certain date.
Describe the solution you'd like
The current response is something like this:
      project_code: {
        '2024-03-29': {
          mean: 2323324,
          average: 1324112,
          stdev: 1212,
        },
        '2024-03-30': {
          mean: 2323324,
          average: 1324112,
          stdev: 1212,
        },
        '2024-03-31': {
          mean: 2323324,
          average: 1324112,
          stdev: 1212,
        },
      },
      another_project_code: {
        '2024-03-29': {
          mean: 1323324,
          average: 2324112,
         ... and so on

I think just adding a field 'errors' of type number could suffice.
Additional context
The file that contains the response is src/routes/projects.ts

error output:
errors: {
   total: 32,
   'my error message': 23,
   'secong': 9
}
``

added the error-rate instead, I think for a project that is more useful


Add images.Opacity filter

We should do this; I'm not sure how simple it is and not all formats would support it.


Update christian-weyer.yml

Adding Sessionize profile link

Docs Build status updates of commit ccc9b1d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

rd/christian-weyer.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


[BUG] v0.12.0 Doesn't update in real time anymore with equipped weight modifier

Module Version: v0.12.0
I'm using the option to decrease the weight of equipped items, set to 0.5. When I equip and unequip an item, it does not update in sync anymore, and seems to skip a step or two, so I wind up having to equip/unequip the same item multiple times for the item to register its encumbrance value. The WEIGHT will update in real time, however the Encumbrance Effect seems to only update every other time I equip/unequip it.

can you try with "0,5" instead "0.5" ?

I'm American. It doesn't even offer that as an option for me.

Try out 0.12.3 and let me know it, if the issue persist

Looks like is working as intended now. Thanks.

Not sure about 12.3, but as of 12.4 it still doesn't work.


Test for PNPM fix

This PR will never be merged. It is meant to test changes in (or relating to):

https://github.com/dependabot/dependabot-core/issues/7731
https://github.com/tinglesoftware/dependabot-azure-devops/issues/824
https://github.com/dependabot/dependabot-core/pull/8094
https://github.com/dependabot/dependabot-core/pull/8091

@mburumaxwell Did something happen to the image for this build? Several days ago our CI pipeline started receiving this error:

The images are cleanup to avoid people using old images which no one has time to support.
I just did a rebase of this branch on the master so you can use the 1.23.1-pullrequest0829-0002 tag.

No longer needed


Support for .exr files

Please add support to view .exr images

Hi,
I have created in repo vlivplugins a sample EXR plugin.
It uses the tinyexr.h single header file and might not work for all input files.
Here is the plugin you can put in vliv/plugins folder

exr.zip

No crash nor leak ...


Update Composer dependencies (2021-07-13-00-05)

Visual regression test passed!
View the visual regression test report


Fix tests in 4.future

This fixes 5 tests in build BotBuilder-JS-4.future-daily.
That leaves another 11 tests still failing.

4.future branch abandoned.


FIX-#4691: Fix binary operations between virtual partitions.

Signed-off-by: mvashishtha<EMAIL_ADDRESS>
What do these changes do?
FIX-#4691: Fix binary operations between virtual partitions.

[x] tests added and passing
[x] module layout described at docs/development/architecture.rst is up-to-date
[x] added (Issue Number: PR title (PR Number)) and github username to release notes for next major release

Thanks for fixing this. Since this only affects the case where a binary operator RHS has more than one partition, the only cases where there's extra materialization should be in cases where modin would previously error, right?

the only cases where there's extra materialization should be in cases where modin would previously error, right?

@noloerino I think that's right. Also we can reuse the materialized data in future operations that use the RHS.


Active Job

Add Active Job subscriber. Rails 4.2 introduced the Active Job framework, which subsequently created four events for instrumentation. The following events are being logged:

enqueue_at.active_job
enqueue.active_job
perform_start.active_job
perform.active_job

Metrics are incremented and grouped with the rails.job prefix, e.g., rails.job.enqueue. Active Job is an adapter layer on top of queuing systems like Sidekiq, Delayed Job, and more. As a result, adding support for Active Job also includes nine queuing backends with no additional configuration on our end.

Runtime Dependencies
This is the first hook that requires a specific Rails version (>= 4.2). As a result, PR introduces VersionSpecifier module to execute blocks of code based on a minimum and/or maximum version. This is inherently messy, so open to suggestions.
Opening PR so we can begin testing branch internally before merging.
@nextmat @obfuscurity

This would be pretty useful as I'm using Sidekiq. Especially the timing info and such.

Added job timing:

@nextmat refactored based on feedback, PTAL.
cc @bdehamer for any additional feedback on handling version specific code, etc.

LGTM

:+1:

@nextmat @bdehamer Any plans to cut a new release with this?


Number of lines inside fold

Fist off all, thank you for this plugin, I'm really enjoying it!
I've searched through the issues, but couldn't find something related.
What I'm looking for is a way to show the number of lines folded, something like this image ( and arrow symbol followed by 68):
Is that possible with this plugin?

If you want to show the number in the statuscolumn sure, that would be possible. But that will look confusing if 'number' or 'relative' number is also enabled. It could also result in a relatively wide statuscolumn. Are you sure that's what you want? Showing the number of lines through virt_text seems more appropriate.

Thanks for the reply, and yes, the goal is to have more or less like the screenshot.
I was probably not clear in my previous message, I'm sorry. It is not the line number (relative or absolute), it is the amount of lines that are inside of that chunk fold.

No I got that but if your intention is to have it look like the screenshot you that should be done through (a plugin) that adds virt_text through nvim_buf_set_extmark(). This plugin only modifies the area to the left of a window i.e. the 'statuscolumn'.


Desbord

Please describe the changes this PR makes and why it should be merged, as well as any and all proof of successful tests:
Semantic versioning classification:

[ ] This PR changes the framework's interface (methods or parameters added)

[ ] This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

[ ] This PR only includes non-code changes, like changes to README, etc.

No changes after 8 days at the time of writing this message, conflicting files are unresolved, and the copyright claim hasn't been fixed either.


Implement the 'textDocument/rename' command

Thanks! I will try to add some tests in the next days. I see that is possible to spin up a tests langserver.

@keegancsmith I added some tests for rename command. Please could you have a look? Thanks

Plus 1 for this. I actually just commented in https://github.com/sourcegraph/go-langserver/issues/220

@keegancsmith Any chance to get this merged soon? Thanks

ccojocar commented 19 days ago

Shit sorry, did not mean to ignore this. I'll take a look now.


patching failed

so everytime i open my patcher it does this Copying APK to patched location . . .
Copying files to patch APK . . .
Checking index for unstripped libunity.so . . .
Unstripped libunity found. Downloading . . .
Copying libmain.so and libmodloader.so . . .
Patching manifest . . .
Loading manifest as AXML . . .
Adding permission android.permission.READ_EXTERNAL_STORAGE
Adding permission android.permission.WRITE_EXTERNAL_STORAGE
Adding permission android.permission.MANAGE_EXTERNAL_STORAGE
Adding debuggable flag . . .
Adding legacy external storage flag . . .
Saving manifest as AXML . . .
Adding tag . . .
Closing APK archive . . .
Signing APK (this might take a while) . . .
Signing the APK failed with zipalign enabled. Falling back to non-zipalign . . .
Patching failed!: QuestPatcher.Core.SigningException: Signed APK at C:\Users\Jack Wagner\AppData\Local\Temp\QuestPatcher\patching\patched-debugSigned.apk was missing, signing must have failed
at QuestPatcher.Core.ApkTools.SignApk(String apkPath, Boolean useZipAlign)
at QuestPatcher.Core.Patching.PatchingManager.PatchApp()
at QuestPatcher.ViewModels.PatchingViewModel.StartPatching()

Please get a full log by pressing open logs folder in the tools tab, and uploading log.log here.

Ignoring due to no response and lack of info


[BUG] Custom model not able to detect ROIs after training on cyto3,

Describe the bug
I have been struggling with this for a few days. Please bear with me as I am not very good at coding yet and trying to fix this problem has tested the limits of my admittedly minimal knowledge of python, coding in general, etc.
I am trying to generate ROIs of simple, GFP-tranfected CHO cells which I can then load into FIJI to extract fluorescence intensity data from another channel.
The default cyto3 model works very well in general, HOWEVER: I have to set the diameter to between 95-107 to capture most of the ROIs. It detects very few ROIs with the default diameter of 30.
The problem is that sometimes it also detects miniscule ROIs with no area or that don't correspond to a cell at all. I thought that by annotating about 40 images where I remove these small ROIs, it would eventually learn not to detect them.
However, instead every trained model detects 0 ROIs, despite cyto3 detecting between 40 and 60 per image I'm using for training.
I have so far tried:
Training from scratch (ie, no default model): 0 ROIs detected
Training from models that aren't Cyto3 (namely, the bac_fluor model, which has worked as a training model w/ which to identify bacteria in a much more challenging set of images): 0 ROIs detected
Forcing the use of RAdam instead of SGD, as was suggested previously, which required me to run the training through the command line instead of the GUI, but I did eventually figure this out: 0 ROIs detected
Removing all images that have fewer than 20 ROIs from the training set: 0 ROIs detected
Increasing Epochs from 100 to 300 to 500 to 1000: 0 ROIs detected in all conditions.
Reproducing
Here is a google drive link containing the images I have been using for training + the _seg.npy outputs (https://drive.google.com/drive/folders/1884j88XyEyndEBN8BfIIyQk4b2wUc2lU?usp=sharing)
See if you can train on these using Cyto3 as a baseline?
Run log
Here is the terminal output from the last time I tried to train on cyto3 and make a model without those annoying little ROIs.
`2024-12-03 12:49:15,919 [WARNING] <tifffile.TiffFile 'scan_Plate_R_p00_0_C04f25d1.tif'> OME series is missing 1 frames. Missing data are zeroed
2024-12-03 12:49:15,976 [WARNING] <tifffile.TiffFile 'scan_Plate_R_p00_0_C04f26d1.tif'> OME series is missing 1 frames. Missing data are zeroed
2024-12-03 12:49:16,019 [WARNING] <tifffile.TiffFile 'scan_Plate_R_p00_0_C04f27d1.tif'> OME series is missing 1 frames. Missing data are zeroed
2024-12-03 12:49:16,063 [WARNING] <tifffile.TiffFile 'scan_Plate_R_p00_0_C04f28d1.tif'> OME series is missing 1 frames. Missing data are zeroed
2024-12-03 12:49:16,104 [WARNING] <tifffile.TiffFile 'scan_Plate_R_p00_0_C04f29d1.tif'> OME series is missing 1 frames. Missing data are zeroed
2024-12-03 12:49:16,145 [WARNING] <tifffile.TiffFile 'scan_Plate_R_p00_0_C04f30d1.tif'> OME series is missing 1 frames.  Missing data are zeroed
GUI_INFO: restore: None
GUI_INFO: normalization checked: computing saturation levels (and optionally filtered image)
{'lowhigh': None, 'percentile': [1.0, 99.0], 'normalize': True, 'norm3D': False, 'sharpen_radius': 0, 'smooth_radius': 0, 'tile_norm_blocksize': 0, 'tile_norm_smooth3D': 1, 'invert': False}
[0, 255.0]
(1, 1536, 2048, 3)
GUI_INFO: 42 masks found
GUI_INFO: creating cellcolors and drawing masks
GUI_INFO: loaded in previous changes
2024-12-03 12:58:29,389 [INFO] ** TORCH MPS version installed and working. **
2024-12-03 12:58:29,389 [INFO] >>>> using GPU (MPS)
2024-12-03 12:58:29,460 [INFO] >>>> loading model /Users/Alexander.Morano/.cellpose/models/CP_20241203_124811
2024-12-03 12:58:29,522 [INFO] >>>> model diam_mean =  30.000 (ROIs rescaled to this size during training)
2024-12-03 12:58:29,522 [INFO] >>>> model diam_labels =  97.534 (mean diameter of training ROIs)
{'lowhigh': None, 'percentile': [1.0, 99.0], 'normalize': True, 'norm3D': False, 'sharpen_radius': 0, 'smooth_radius': 0, 'tile_norm_blocksize': 0, 'tile_norm_smooth3D': 1, 'invert': False}
2024-12-03 12:58:29,957 [INFO] No cell pixels found.
2024-12-03 12:58:30,178 [INFO] 0 cells found with model in 0.814 sec
GUI_INFO: 0 masks found
GUI_INFO: creating cellcolors and drawing masks
2024-12-03 12:58:30,237 [INFO] !!! computed masks for scan_Plate_R_p00_0_C04f26d1.tif from new model !!!
`
I suspect the "train_loss=nan, test_loss=0.0000" output(s) have something to do with the failure, but I have no clue how to resolve that problem, or what could be causing it.

Hi,
I have similar training issue. I started with running cyto3 (the best performance model), then manually corrected the masks, and then train new model based on that. I did several iterations but still got no cell detection. I am not sure this is an innate bug or because of image features. Here is an example image used for training.

Looking forward to suggestions


Inconsistent hover state on selected language

What happened?
I have noticed some inconsistencies in the language dropdown. When I hover over the selected language, it shows like this:

While at other places, I have seen hover state style on selected options as

Please reproduce in steps

Go to user icon in the header
Choose the language option
Hover over the selected language

Expected Behavior
The background color should be black on the hover state for the selected language. So, It looks consistent.
What browsers are you seeing the problem on?
Chrome
At which address did you encounter bug?
beta.kodadot.xyz, kodadot.xyz
Are you logged in?
None
Which wallet you are using?
No response
At which chain did you encounter bug?
No response
Screenshots

Relevant log output
No response
Payment link for reward
https://kodadot.xyz/transfer?target=GhvqRXYu6pywEkdCzyuoUrEgaKkUML2mCW9dWz7wniQtcMw
Code of Conduct

[X] I agree to follow this project's Code of Conduct

👋

While at other places, I have seen hover state style on selected options as

I don't think that's right? we have the light pink background on all hover states in navbar dropdown, black is for the selected (chain or lang). I'm working on navbar overhaul in

#4446

https://user-images.githubusercontent.com/73316633/206473046-97472af1-d38f-486f-aa8a-d4c950f7ecd6.mp4

either on network or language is not right as it inconsistent @exezbcz can clear up clouds

Remove Network Switch  #4379
will go away tho as it's temporary now

yup, language selection was inconsistent

pay 20 usd

😍 Perfect, I’ve sent the payout
💵 $20 @ 29.92 USD/KSM ~ 0.668 $KSM
🧗 GhvqRXYu6pywEkdCzyuoUrEgaKkUML2mCW9dWz7wniQtcMw
🔗 0x707103fdcc1ba8c55821bb4f4294a8dd3177ae3284990a065318a7fa3e0eb661
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


new york times game's

about:blank

about:blank

rekmz  having a good crack 👏 👌

staghorn has been in operation since early days FB_IMG_2770808618701534538.jpg -->


Add methods to set predicates for filtered task list

Also renamed the methods to set comparator for sorted task list

Codecov Report

Merging #151 (f7a8f08) into master (c762fe2) will increase coverage by 1.24%.
The diff coverage is 41.66%.

@@             Coverage Diff              @@
##             master     #151      +/-   ##
============================================
+ Coverage     66.26%   67.51%   +1.24%
- Complexity      524      585      +61
============================================
  Files           101      105       +4
  Lines          1761     1933     +172
  Branches        212      240      +28
============================================
+ Hits           1167     1305     +138
- Misses          529      550      +21
- Partials         65       78      +13

Impacted Files
Coverage Δ

...taskbook/logic/commands/tasks/TaskFindCommand.java
0.00% <0.00%> (ø)

...mands/tasks/TaskSortAddedChronologicalCommand.java
0.00% <0.00%> (ø)

.../tasks/TaskSortDescriptionAlphabeticalCommand.java
0.00% <0.00%> (ø)

src/main/java/taskbook/model/Model.java
100.00% <ø> (ø)

src/main/java/taskbook/model/ModelManager.java
85.33% <100.00%> (-1.34%)
:arrow_down:

src/main/java/taskbook/model/TaskBook.java
71.83% <0.00%> (-8.66%)
:arrow_down:

...askbook/logic/parser/tasks/TaskCategoryParser.java
60.00% <0.00%> (-6.67%)
:arrow_down:

src/main/java/taskbook/model/task/Event.java
0.00% <0.00%> (ø)

... and 14 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more