Cardano db sync takes extremely long to revert a fork block

It takes db-sync more than 3 minutes to revert a fork block, here are db sync's logs:
[db-sync-node:Info:96] [2021-01-22 09:20:35.58 UTC] insertShelleyBlock(Allegra): epoch 243, slot 19740942, block 5242014, hash 649d3a63e41d94003b6d6a1d43325d99b2017042536b48a7dcdf3fb2e66d0f56
[db-sync-node:Info:96] [2021-01-22 09:21:15.68 UTC] insertShelleyBlock(Allegra): epoch 243, slot 19740984, block 5242015, hash 8b601c5e732ee1b0746f21503a4f4741ac072abd920dc2248404d2d5e772e81a
[db-sync-node:Info:96] [2021-01-22 09:21:19.89 UTC] Rolling back to slot 19740942, hash 649d3a63e41d94003b6d6a1d43325d99b2017042536b48a7dcdf3fb2e66d0f56
[db-sync-node:Info:96] [2021-01-22 09:21:19.89 UTC] Deleting slots numbered: [19740984]
[db-sync-node:Info:96] [2021-01-22 09:24:40.42 UTC] insertShelleyBlock(Allegra): epoch 243, slot 19740984, block 5242015, hash 95687df531f8098a0a6aa8d995cb10abcae8e03263157c7bf69298b142a9ff72

On the other hand, cardano node recovers almost instantly:
[af752952:cardano.node.ChainDB:Notice:310] [2021-01-22 09:21:15.36 UTC] Chain extended, new tip: 8b601c5e732ee1b0746f21503a4f4741ac072abd920dc2248404d2d5e772e81a at slot 19740984
[af752952:cardano.node.Mempool:Info:318] [2021-01-22 09:21:15.38 UTC] fromList [("kind",String "TraceMempoolRemoveTxs"),("mempoolSize",Object (fromList [("numTxs",Number 0.0),("bytes",Number 0.0)])),("txs",Array [Object (fromList [("txid",String "txid: TxId {_unTxId = \"bb954b78d19a76a30296275c91dca434b1e10dc6f5bde883ac30f7f85d0fe8d7\"}")]),Object (fromList [("txid",String "txid: TxId {_unTxId = \"ac27e19e84df3207be35ac40855f10b7b7189ba847fefe990e4d6fb16377f1e4\"}")]),Object (fromList [("txid",String "txid: TxId {_unTxId = \"b7068bc1ffcab956c1330cedb1cdc91d00d0ba7de8e800e3b27b2f889e33ebf9\"}")]),Object (fromList [("txid",String "txid: TxId {_unTxId = \"cd7afed7b8a800cdaf6021a151190338f01984570fcda7d4d99b0412a153366c\"}")]),Object (fromList [("txid",String "txid: TxId {_unTxId = \"657968defcc7407b1d39559cce6aecca6f7f33cff1c457519e8c3b8697c5a7f6\"}")]),Object (fromList [("txid",String "txid: TxId {_unTxId = \"844883270d7ab2da8b6cc3874584257567b254bdab03d3b7124199006f05bc5f\"}")])])]
[af752952:cardano.node.ChainDB:Info:310] [2021-01-22 09:21:15.38 UTC] Block fits onto some fork: 95687df531f8098a0a6aa8d995cb10abcae8e03263157c7bf69298b142a9ff72 at slot 19740984
[af752952:cardano.node.ChainDB:Info:310] [2021-01-22 09:21:15.38 UTC] Valid candidate 95687df531f8098a0a6aa8d995cb10abcae8e03263157c7bf69298b142a9ff72 at slot 19740984
[af752952:cardano.node.ChainDB:Notice:310] [2021-01-22 09:21:15.65 UTC] Switched to a fork, new tip: 95687df531f8098a0a6aa8d995cb10abcae8e03263157c7bf69298b142a9ff72 at slot 19740984
[af752952:cardano.node:Info:154672] [2021-01-22 09:21:19.33 UTC] fromList [("time(ps)",Number 3.629532492654353e18),("kind",String "MeasureTxsTimeStart"),("mempoolNumBytes",Number 288.0),("mempoolNumTxs",Number 1.0)]
[af752952:cardano.node.Mempool:Info:154672] [2021-01-22 09:21:19.33 UTC] fromList [("tx",Object (fromList [("txid",String "txid: TxId {_unTxId = \"8ca37de36f49b9d19955f5111827ec0ef7a4ca3f8259d27d95b7671415ce072e\"}")])),("kind",String "TraceMempoolAddedTx"),("mempoolSize",Object (fromList [("numTxs",Number 1.0),("bytes",Number 288.0)]))]
[af752952:cardano.node.Mempool:Info:333687] [2021-01-22 09:21:19.33 UTC] fromList [("tx",Object (fromList [("txid",String "txid: TxId {_unTxId = \"8ca37de36f49b9d19955f5111827ec0ef7a4ca3f8259d27d95b7671415ce072e\"}")])),("kind",String "TraceMempoolRejectedTx"),("mempoolSize",Object (fromList [("numTxs",Number 1.0),("bytes",Number 288.0)])),("err",Object (fromList [("kind",String "BadInputsUTxO"),("error",String "The transaction contains inputs that do not exist in the UTxO set."),("consumed",Number 0.0),("badInputs",Array [Array [String "657968defcc7407b1d39559cce6aecca6f7f33cff1c457519e8c3b8697c5a7f6",Number 23.0]]),("produced",Number 4.9999e10)]))]
[af752952:cardano.node.ChainDB:Notice:310] [2021-01-22 09:21:20.28 UTC] Chain extended, new tip: 930451bb268a5b6933494d8c97f11a32fbbe47d5bc419a58076243e61fb028f9 at slot 19740988
[af752952:cardano.node.ChainDB:Notice:310] [2021-01-22 09:21:24.71 UTC] Chain extended, new tip: 2635bbc5da85ca331437492d1a59d438818fb0b679d459964e46eb5a866df372 at slot 19740993
[af752952:cardano.node.Mempool:Info:318] [2021-01-22 09:21:24.71 UTC] fromList [("kind",String "TraceMempoolRemoveTxs"),("mempoolSize",Object (fromList [("numTxs",Number 0.0),("bytes",Number 0.0)])),("txs",Array [Object (fromList [("txid",String "txid: TxId {_unTxId = \"8ca37de36f49b9d19955f5111827ec0ef7a4ca3f8259d27d95b7671415ce072e\"}")])])]

This has been happening for around 2 weeks, increasing in intensity.

The upcoming 8.0.0 release (should be released early next week) has vastly improved rollbacks (rollbacks as done in PostgreSQL without any Haskell doing any processing). I have seen it roll back from chain tip, right back to the Byron era (over a year of blocks) in under 10 minutes.

The upcoming 8.0.0 release (should be released early next week) has vastly improved rollbacks (rollbacks as done in PostgreSQL without any Haskell doing any processing). I have seen it roll back from chain tip, right back to the Byron era (over a year of blocks) in under 10 minutes.

Here is a rollback with the current improved rolbacks:
[db-sync-node:Info:50] [2021-01-23 09:49:22.66 UTC] Rolling back to slot 19829014, hash 1369c36907c449da8232ee746da9a392feeb0ad114db8ff565981922e54735c9
[db-sync-node:Info:50] [2021-01-23 09:49:22.66 UTC] Deleting slots numbered: [19829066]
[db-sync-node:Info:50] [2021-01-23 09:49:22.68 UTC] Slots deleted

So according to the logs, the rollback happened in less than a second.

Here is a rollback with the current improved rolbacks:
[db-sync-node:Info:50] [2021-01-23 09:49:22.66 UTC] Rolling back to slot 19829014, hash 1369c36907c449da8232ee746da9a392feeb0ad114db8ff565981922e54735c9
[db-sync-node:Info:50] [2021-01-23 09:49:22.66 UTC] Deleting slots numbered: [19829066]
[db-sync-node:Info:50] [2021-01-23 09:49:22.68 UTC] Slots deleted

So according to the logs, the rollback happened in less than a second.

This is fixed in the 8.0.0 release (probably today).

This is fixed in the 8.0.0 release (probably today).


Merge protocols for the same page

Goaccess shows that the pages were accessed via HTTP/1.0 or HTTP/1.1 protocols. As a result, there are two lines for the same page in the tables (I generate static html files).
How can I have a single line for a single page, where are visits and hits for both protocols are counted?

Hi @pozitron57
You can be this with a option -H no or --http-protocol=no in command-line
or add option into goaccess.conf.
You can see more details into manual here.

Hi @pozitron57
You can be this with a option -H no or --http-protocol=no in command-line
or add option into goaccess.conf.
You can see more details into manual here.

@0bi-w6n-K3nobi oh, i missed it in the manual. Thanks!

@0bi-w6n-K3nobi oh, i missed it in the manual. Thanks!


[Feature] More metrics for flink table store

Search before asking

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

Motivation
TODO add more metrics, we should the detail requirement.
Solution
No response
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Hi @JingsongLi I'm willing to take this, and we're planning this also.

We can add some metrics on Paimon's memory usage.

Thanks @wg1026688210 for your suggestion, is there any memory usage problem in Paimon you encounterd?

Create a PIP here https://cwiki.apache.org/confluence/display/PAIMON/PIP-3%3A+Introduce+metrics+for+Paimon, update in progress...

hi~ @schnappi17  I encountered an OOM problem during the compaction, it was resolved later. Therefore, I think users can more easily discover issues, if Paimon has  memory-related metrics.

DONE


Remove need to use cookbook: prefix when specifying recipe

Fixes #13

Nice. Good job checking into this. Not sure what I tried earlier that wasn't working, because I really didn't want to to add the 'name' field.


Thread 1: Fatal error: init(coder:) has not been implemented

Hi,
I try to run the example, but I got a fatal error (see the subject) Any idea why? swift 4, xcode 9.2

try to run in viewDidAppear


GH2560 missing runtime property

closes #2560

Breaking build checks seem not to be related to this PR. Can somebody help out here?

@daveMueller your changes have been merged, thanks for your contribution 👍


Add weather information page with user input forma

Description:
This pull request adds a new feature to our Streamlit application, introducing a weather information page where users can input their location. After submitting the form, the application fetches and displays the current weather data for the specified location.
Changes Made:

[x] Developed a new Streamlit page for weather information (weather_info_st.py).
[x] Integrated a weather API to retrieve real-time weather data based on user input.
[x] Displayed essential weather information, including temperature, weather conditions, and a short forecast.
[x] Implemented error handling to manage invalid inputs or API request failures.
[x] Enhanced the user interface for better usability and aesthetics.

Testing:

[x] Conducted tests with various valid and invalid inputs to ensure robust error handling.
[x] Verified that the correct weather information is displayed for valid inputs.
[x] Ensured that the application runs smoothly without errors and maintains responsiveness.

Notes:

Ensure you have the required API key for the weather service, and set it in your environment variables for seamless functionality.
Users are encouraged to explore the interface and provide feedback for further improvements.

@suryanshsk you can review it now, and add gssoc tags


What are new features of version 2.0.0?

Hello,
I saw on JDSP's website that there is a new version of JDSP available.  Would you please tell me what are the newest features available on this version that distinguishes it from version 1.0.0?  I didn't see such a description on the website and so I am curious.  Also, does the new version have a feature to provide the actual frequency values when doing FFTs?  One of my previous challenges as a newbie to the DSP world was manually calculating the "x-axis" values that correspond to the plot/graph of the DFT from my data.
Thanks and it's really exciting to see the newest version of JDSP available.  I can't wait to use the new features and please keep this amazing project going.
LM

Details of this release are provided under releases in Github. Please follow this link to find the release notes for v2.0.0.


-[UnobstructedPlatformViewTests testMultiplePlatformViewsWithOverlays] test flaky on macOS 13.6.1

Test Case '-[UnobstructedPlatformViewTests testMultiplePlatformViewsWithOverlays]' started.
    t =     0.00s Start Test at 2023-11-09 14:08:19.883
    t =     0.00s Set Up
    t =     0.00s Open dev.flutter.Scenarios
    t =     0.01s     Launch dev.flutter.Scenarios
    t =     0.01s         Terminate dev.flutter.Scenarios:20233
    t =     1.30s         Setting up automation session
    t =     1.37s         Wait for dev.flutter.Scenarios to idle
    t =     2.42s Waiting 1.0s for "platform_view[0]" Other to exist
    t =     3.42s     Checking `Expect predicate `exists == 1` for object "platform_view[0]" Other`
    t =     3.42s         Checking existence of `"platform_view[0]" Other`
    t =     3.46s Checking existence of `"platform_view[0]" Other`
    t =     3.48s Find the "platform_view[0]" Other
/Volumes/Work/s/w/ir/cache/builder/src/out/ios_debug_sim_arm64_extension_safe/scenario_app/Scenarios/ScenariosUITests/UnobstructedPlatformViewTests.m:225: error: -[UnobstructedPlatformViewTests testMultiplePlatformViewsWithOverlays] : ((platform_view1.frame.origin.x) equal to (25)) failed: ("0") is not equal to ("25")
    t =     3.53s Tear Down
Test Case '-[UnobstructedPlatformViewTests testMultiplePlatformViewsWithOverlays]' failed (3.743 seconds).

https://ci.chromium.org/ui/p/flutter/builders/try/Mac Engine Drone/508239/overview
Fails on ios_debug_sim_arm64 and ios_debug_sim_arm64_extension_safe.

Since I disabled the test, I'm downgrading this to P1

Looks like this is still occurring on macOS 13: https://ci.chromium.org/ui/p/flutter/builders/try/Mac Engine Drone/543232/overview


Encode memcached cache key

This is a fix for https://github.com/ask/celery/issues/503
Tests pass with Python 2.7.1.  Didn't test with 3.x since I don't have environment configured right now.

Thank  you! I changed it a bit so it supports py3k too


Procedure editor changes to wrong name when saving

Description
When saving after editing a procedure (but before committing), if the procedure name has quotes and the inner text contains procedure \w+\s (either as comment or code), DBeaver will identify the \w+ as the name of the procedure, causing problems until the procedure list is refreshed.
This has been happening for months, but I didn't identify what exactly was happening until now, because the name was being changed to a mysterious "WILL". Logs only show errors that happen due to the name being replaced, but don't help identify why.
DBeaver Version
<IP_ADDRESS>303040621
Operating System
Windows 11
Database and driver
OraClient19Home1
Steps to reproduce
Reproduction (MYSCHEMA does not have to exist for this test and can also be removed):
CREATE OR REPLACE PROCEDURE MYSCHEMA."TEST_PROC"
-- SomeProcedure Wrongname
IS
BEGIN
    null;
END;

The quotes around "TEST_PROC" are by DBeaver. The bug won't be triggered if they are removed.
The same thing happens when editing functions, but you need to use the "FUNCTION" keyword instead.
CREATE OR REPLACE FUNCTION MYSCHEMA."TEST_FUNC"
-- SomeFunction Wrongname
IS
BEGIN
    null;
END;

Additional context
No response

Thanks for the report @ftsfranklin

Regexp issue:
https://github.com/dbeaver/dbeaver/blob/0bd65525f0cc795d58b3cc1502ba7cd0e8f287fa/plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/model/OracleUtils.java#L257-L285


Question - Does this discover peers that are not also running this software?

Does this discover peers that are not also running this software, or do all peers need to be running this in some sort of "listening" mode?

There is a specific port and address specified, so it will discover anyone broadcasting on with that address and port

I skimmed the example and didn't see where those are specified. Are you saying that the address and port are configurable, or that there is a hardcoded port and/or address range that it checks? Additionally, does it require a particular response payload, or is it basically just looking for an ACK?

They are specified in the settings: https://github.com/schollz/peerdiscovery/blob/master/peerdiscovery.go#L25
In the example I used the defaults.
The payload is optional

Google translating the abive questions:

Is it limited to LAN?
Does it need a server to relay the broadcast?

@zxbit2011 @nathanpaulyoung

Yes.
No - each instance does "broadcasting" and "listening" so in that sense, each instance is a server and a client.


Teckin SP20 not flashing

Before opening a new issue, please read the following
Are you reporting a successful flash?  NO
Do you have a question about configuring your newly flashed device? NO
Did you have issues getting a device to flash?  YES
Please be sure to include your device name, model, and firmware version as well as your logs!
I have similar problems to other issues I have reviewed.  The fash flash blue lights, start tuya-convert, see the device connect and then the light goes off and tuya-convert says the device did not appear with intermediate firmware and no backup done.
I will attach logs but found this particular bit in the smarthack-web.log which seems to point to the core of the issue:
POST /d.json?a=tuya.device.config.get&et=1&other={"token":"00000000","region":"US"}&t=21&uuid=185eedb5cba866bf&v=4.1&sign=bd68076fe18d05a95733cbfcd2c8adbb
Host: a2.tuyaus.com
User-Agent: TUYA_IOT_SDK
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload 6253098D9A26EAAC038A3AF53218969C
WARNING: it appears this device does not use an ESP82xx and therefore cannot install ESP based firmware
Answer tuya.device.dynamic.config.get
reply {"result":"fn8oBaEAaJe3I+enO7OkYdd0LkD9WHnY6k8vmvctrJbpRIwZnmiwsIEV71EL0JI+9F2VBmqNqTqJcWuiX4YubPMRUNYBQEZA7PwY0dZSNsu7mevrGF2WUpAllBDW/Q5l","t":1585456761,"sign":"a5f9a827495cc207"}
[I 200328 23:39:21 web:2250] 200 POST /d.json?a=tuya.device.config.get&et=1&other={"token":"00000000","region":"US"}&t=21&uuid=185eedb5cba866bf&v=4.1&sign=bd68076fe18d05a95733cbfcd2c8adbb (<IP_ADDRESS>) 3.59ms

I got a 4-pack of Teckin SP20 plugs today from Amazon and one is connected to the smart app but the one I am trying to convert is fresh out of the box.  The connected device shows firmware as:
No updates available
Wi-Fi Modules: 1.0.2
MCU Module: 1.0.2

Logs
smarthack-mqtt.log
smarthack-psk.log
smarthack-udp.log
smarthack-web.log
smarthack-wifi.log

Looks like you answered your own question

WARNING: it appears this device does not use an ESP82xx and therefore cannot install ESP based firmware

tuya-convert, Tasmota, Espurna, etc, only support ESP8266 devices


Import Reference Image

Would it be useful to allow a reference image to be imported? This image would then be displayed as a semi-transparent layer behind the main canvas, allowing them to better get perspectives and ratios when trying to match a more detailed reference.

Would it be useful to allow a reference image to be imported? This image would then be displayed as a semi-transparent layer behind the main canvas, allowing them to better get perspectives and ratios when trying to match a more detailed reference.

I honestly don't love this idea as it makes the application more complicated than it was intended to be. It also would require some more thought about how to execute properly.
I am open to be convinced and happy to discuss.
If you have a vision of how this would look or have seen this in other app's, I'd be happy to see a screenshot or two.

allowing them to better get perspectives and ratios when trying to match a more detailed reference.

When you say "a more detailed reference", are you thinking the image would have a higher pixel density than the grid in the app right now? If this is the case, I would strongly push back. If we have two grids on top of each other with different resolutions, that would probably be confusing from a user's perspective.


When compiled on Alpine Linux, libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE covers UI

What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty 0.31.0
Yazi version
yazi 0.1.5
Did you try the latest main branch to see if the problem has already been fixed?
Not tried, and I'll explain why below
Describe the bug

Compiled yazi on my Alpine machine as yazi is not available in the Alpine repositories
Seeing the above message in either the header or the footer of yazi's UI (libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE)
yazi remains mostly functional, but sometimes the UI glitches enough where it's no longer usable and needs to be restarted

I didn't try the latest main branch because my laptop is very slow and it takes a very long time to compile yazi.
Expected Behavior
The message doesn't appear in the yazi UI.
To Reproduce

Compile yazi: cargo install --path .
Open yazi

Configuration
No response
Anything else?
Default config

Could you please paste the full error log here?

There is no full error log - that's all that shows up. Is there somewhere yazi dumps error logs?

Hmm seems to be a compiler bug, https://github.com/llvm/llvm-project/issues/86, I'm not sure how to fix it...

Close as not Yazi


Remove always present scrollbar, fix build documentation

There is a scrollbar that is always visible, even if there is no need to scroll.
I also adjusted the information in the README.md that you only need to run npm run build when JS components were modified. It's also necessary when you change LESS files.

Should be fixed with this commit https://github.com/agentejo/cockpit/commit/ca1fd8d6fc1868f0252a20127bbeed477ffcb2f5


Question TensorRT deployment

Hi @Haiyang-W ,
Thank you for sharing the deployment script for trt! I have successfully trained a model with PCDET and generated an ONNX file. However, I encountered a problem when using trtexec to generate the engine file.export_dsvt_dynamic.log
ckpt file
onnx
config.yaml
According to my own data, I modified the dimensions of the input and output like this. Are there any questions?
I hope for your help! Looking forward to your reply!
[01/29/2024-18:08:40] [V] [TRT] >>>>>>>>>>>>>>> Chose Runner Type: ShapeHostToDevice Tactic: 0
[01/29/2024-18:08:40] [V] [TRT] =============== Computing costs for
[01/29/2024-18:08:40] [V] [TRT] *************** Autotuning format combination: Int32(E0,36,1), Float((* 384 (# 0 (SHAPE src))),(* 192 (# 0 (SHAPE src))),192,1), Int32(E1,36,1), Bool(E0,36,1), Bool(E1,36,1), Float(192,1), Int32(), Int32(), Int32(), Int32(), Int32() -> Float(192,1) where E0=(* 36 (# 1 (SHAPE set_voxel_inds_tensor_shift_0))) E1=(* 36 (# 1 (SHAPE set_voxel_inds_tensor_shift_1))) ***************
[01/29/2024-18:08:40] [V] [TRT] --------------- Timing Runner: {ForeignNode[Slice_72...Add_1851]} (Myelin)
[01/29/2024-18:08:40] [W] [TRT] Myelin graph with multiple dynamic values may have poor performance if they differ. Dynamic values are:
[01/29/2024-18:08:40] [W] [TRT]  (# 1 (SHAPE set_voxel_inds_tensor_shift_1))
[01/29/2024-18:08:40] [W] [TRT]  (# 0 (SHAPE src))
[01/29/2024-18:08:40] [W] [TRT]  (# 1 (SHAPE set_voxel_inds_tensor_shift_0))
[01/29/2024-18:09:10] [E] Error[1]: Unexpected exception
[01/29/2024-18:09:10] [E] Error[2]: [builder.cpp::buildSerializedNetwork::561] Error Code 2: Internal Error (Assertion enginePtr != nullptr failed. )
[01/29/2024-18:09:10] [E] Engine could not be created from network
[01/29/2024-18:09:10] [E] Building engine failed
[01/29/2024-18:09:11] [E] Failed to create engine from model.
[01/29/2024-18:09:11] [E] Engine set up failed
&&&& FAILED TensorRT.trtexec [TensorRT v8200] # trtexec --onnx=/model_dsvt_0109/model_dsvt_0109_dynamic.onnx --saveEngine=/model_dsvt_0109/model_dsvt_0109_dynamic.engine --workspace=4096 --verbose --buildOnly --device=0 --tacticSources=+CUDNN,+CUBLAS,-CUBLAS_LT --minShapes=src:10000x192,set_voxel_inds_tensor_shift_0:2x1000x36,set_voxel_inds_tensor_shift_1:2x800x36,set_voxel_masks_tensor_shift_0:2x1000x36,set_voxel_masks_tensor_shift_1:2x800x36,pos_embed_tensor:4x2x10000x192 --optShapes=src:50000x192,set_voxel_inds_tensor_shift_0:2x4500x36,set_voxel_inds_tensor_shift_1:2x4000x36,set_voxel_masks_tensor_shift_0:2x4500x36,set_voxel_masks_tensor_shift_1:2x4000x36,pos_embed_tensor:4x2x50000x192 --maxShapes=src:110000x192,set_voxel_inds_tensor_shift_0:2x5500x36,set_voxel_inds_tensor_shift_1:2x5000x36,set_voxel_masks_tensor_shift_0:2x5500x36,set_voxel_masks_tensor_shift_1:2x5000x36,pos_embed_tensor:4x2x110000x192

        input_shapes = {
            "src": {
                "min_shape": [10000, 192],
                "opt_shape": [50000, 192],
                "max_shape": [110000, 192],
            },
            "set_voxel_inds_tensor_shift_0": {
                "min_shape": [2, 1000, 36],
                "opt_shape": [2, 4500, 36],
                "max_shape": [2, 5500, 36],
            },
            "set_voxel_inds_tensor_shift_1": {
                "min_shape": [2, 800, 36],
                "opt_shape": [2, 3500, 36],
                "max_shape": [2, 4500, 36],
            },
            "set_voxel_masks_tensor_shift_0": {
                "min_shape": [2, 1000, 36],
                "opt_shape": [2, 4500, 36],
                "max_shape": [2, 5500, 36],
            },
            "set_voxel_masks_tensor_shift_1": {
                "min_shape": [2, 800, 36],
                "opt_shape": [2, 3500, 36],
                "max_shape": [2, 4500, 36],
            },
            "pos_embed_tensor": {
                "min_shape": [4, 2, 10000, 192],
                "opt_shape": [4, 2, 50000, 192],
                "max_shape": [4, 2, 110000, 192],
            },

model config like this:

DATA_CONFIG:
    _BASE_CONFIG_: tools/cfgs/dataset_configs/ownwz_dataset_5c.yaml
    # SAMPLED_INTERVAL: {'train': 1, 'test': 1}
    POINT_CLOUD_RANGE: [-51.2, -25.6, -4.0, 51.2, 25.6, 2.0]
    DATA_AUGMENTOR:
         DISABLE_AUG_LIST: ['placeholder']

    VFE:
        NAME: DynamicVoxelVFE
        WITH_DISTANCE: False
        USE_ABSLOTE_XYZ: True
        USE_NORM: True
        NUM_FILTERS: [ 192, 192 ]

    BACKBONE_3D:
        NAME: DSVT
        INPUT_LAYER:
            sparse_shape: [512, 256, 1] #grid size
            downsample_stride: []
            d_model: [192]  # input token dim, len mean stage num
            set_info: [[36, 4]] # max num of voxel per set, block num per stage
            window_shape: [[12, 12, 1]] # win num
            hybrid_factor: [2, 2, 1] # x, y, z hybird win param
            shifts_list: [[[0, 0, 0], [6, 6, 0]]] # shift stride
            normalize_pos: False

        block_name: ['DSVTBlock']
        set_info: [[36, 4]]
        d_model: [192]
        nhead: [8]
        dim_feedforward: [384]
        dropout: 0.0
        activation: gelu
        output_shape: [512, 256]
        conv_out_channel: 192
        # You can enable torch.utils.checkpoint to save GPU memory
        # USE_CHECKPOINT: True

    MAP_TO_BEV:
        NAME: PointPillarScatter3d
        INPUT_SHAPE: [512, 256, 1]
        NUM_BEV_FEATURES: 192

    BACKBONE_2D:
        NAME: BaseBEVResBackbone
        LAYER_NUMS: [ 1, 2, 2 ]
        LAYER_STRIDES: [ 1, 2, 2 ]
        NUM_FILTERS: [ 128, 128, 256 ]
        UPSAMPLE_STRIDES: [ 1, 2, 4 ]
        NUM_UPSAMPLE_FILTERS: [ 128, 128, 128 ]

I'm not quite certain what the issue is, as I'm not an expert in deployment.


Update PKGBUILD

The download file is wrong in package step.

Fixed in d6c043c4348c80f62cefea8fc0f26ad43f7628c5 (keeping upstream url)


Downscale pasted PNG images based on metadata (#29123)

Backport #29123 to 1.21.
Some images like MacOS screenshots contain
pHYs data which we can use to downscale uploaded images so they render in the same dppx ratio in which they were taken.
Before:

After:

Ah, can not backport easily because of BigInt requirement.


Add section on how to add credentials to authenticate with private repository

Checks

[X] I have checked for existing issues.

Description
I spent some time trying to get a custom private image working which included my python packages, because I couldn't find where to set my registry credentials.
It was obvious when I found it in the values.yaml at:
# Auth secret for a private registry
# This is used if pulling airflow images from a private registry
registry:
  secretName:

  # Example:
  # connection:
  #   user: ~
  #   pass: ~
  #   host: ~
  #   email: ~

but when I was reading through the docs I didn't manage to find any reference to including/updating this.
A section on setting this might be beneficial for others getting started- maybe on the Production Guide or Configuring Airflow pages?
Are you willing & able to help?

[ ] I am able to submit a PR!
[ ] I can provide feedback!

@upliftertom I believe this issue is for another chart, as this chart uses values like the following:
airflow:
  image:
    pullSecret: ""


ActivityIndicator Example ES6 classes migration and TimerMixin removal

**This is the first part of React.createClass -> ES2015 classes migration.

Rewritten UI Explorer ActivityIndicator example to ES2015 classes
Removed TimerMixin from example.

Motivation:

ES2015 classes do not support mixins so due to the classes / pure functions as "best practices" it would be better to avoid mixins in examples.

TimerMixin is covered later and is out of scope of current example.

By analyzing the blame information on this pull request, we identified @janicduplessis and @sebmarkbage to be potential reviewers.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

React Native repo ESLint passes with no errors, should i fix this errors from eslint-bot?

 Once i'll start changing React.createClass to ES6 classes Flow will trow this type of errors.

Yes, pretty much every example in UIExploerer uses flow.

@janicduplessis done

done

any update here? I want to start rewriting UI Explorer examples to ES6 classes but want to merge this first

@artyomtrityak I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

rebased.
/cc @janicduplessis

@facebook-github-bot shipit

Thanks for importing.


an error occurred when trying to rename a file in the destination directory movefile failed

Not working

Does this happen when you try to install VS Code or when you try to update it?

Yes.. i had vscode before only that i updated my vscode and an error occur about my extension i wasnt able to use them again to i uninstall and install back then i have getting that error

/duplicate #47841
As a workaround, please disable Windows background updates by setting update.enableWindowsBackgroundUpdates to false.

it hang to a point anytime i try to install it again and agin


alcom: 1.8.2 -> 0.1.17

We were using the wrong tag as pointed out in https://github.com/NixOS/nixpkgs/pull/348118#issuecomment-2563921040
@anatawa12 Our builds in Nixpkgs do not expose the .git directory because of reproducibility issues, which is why I have opted to hijack git rev-parse HEAD to print nixpkgs-<GIT_TAG> instead. That should help you identify user issues on NixOS/Nixpkgs. Feel free to direct people to our bug tracker in case their issues seem very odd.

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

have opted to hijack git rev-parse HEAD to print nixpkgs-<GIT_TAG> instead.

Can you hijack to print actual commit hash used when download instead? the purpose of the commit hash is to determine which version actually user is using.
Version name is shared between multiple commits and if some builds between tag and tag.
If it's not possible it's OK.

I will add support for non-git environment build in the future version


use SFont_Len syscall

I didn't know about SFont_Len when writing zwin.z80, so I found the sfont table in ROM myself. However, it is preferable to use the SFont_Len syscall for portability.

Fixed.


Conditional dependency features don't work with dev-dependencies

When cookie is a dev-dependency, this does not work:
# cookie/Cargo.toml
[features]
session = []

# awesome/Cargo.toml
[features]
session = ["cookie/session"]

[dev-dependencies.cookie]
path = "../cookie"

# app/Cargo.toml
[dependencies.awesome]
path = "../awesome"
features = ["session"]

The error message is this:
error: failed to select a version for `awesome`.
    ... required by package `app v0.1.0 (/home/$USER/git/app)`
versions that meet the requirements `=0.1.0` are: 0.1.0

the package `app` depends on `awesome`, with features: `cookie` but `awesome` does not have these features.

failed to select a version for `awesome` which could resolve this conflict

Notes
Output of cargo version: cargo 1.49.0-nightly (2af662e22 2020-11-12)

#5139

#5139

dev-dependencies only exist when building the crate that defines them, right? When building app the awesome crate does not have any dependency named cookie, not even an optional one.

dev-dependencies only exist when building the crate that defines them, right? When building app the awesome crate does not have any dependency named cookie, not even an optional one.

Oh, that explains this. But then I can't use features of crates which conditionally enable features in their dev-dependencies, right? In this case, awesome might want to run different tests using cookie/session when the feature session is enabled. But when awesome/session is set by a downstream crate, cookie is not a dependency and cookie/session can't be set, resulting in this error.
I don't know if this approach should be encouraged, maybe it would be better if cargo test would just test all features somehow. Maybe something like dev-features need a story? The purpose of this is obviously to test the session feature, which depends on a feature in a dev-dependency.
I think we should either

ignore dev-dependencies in features when the crate itself is a dependency (or dev-dependency), allowing authors to configure dev-dependencies with features
provide an alternative approach to testing different features and disallow dev-dependency features in the "exported" features section

Oh, that explains this. But then I can't use features of crates which conditionally enable features in their dev-dependencies, right? In this case, awesome might want to run different tests using cookie/session when the feature session is enabled. But when awesome/session is set by a downstream crate, cookie is not a dependency and cookie/session can't be set, resulting in this error.
I don't know if this approach should be encouraged, maybe it would be better if cargo test would just test all features somehow. Maybe something like dev-features need a story? The purpose of this is obviously to test the session feature, which depends on a feature in a dev-dependency.
I think we should either

ignore dev-dependencies in features when the crate itself is a dependency (or dev-dependency), allowing authors to configure dev-dependencies with features
provide an alternative approach to testing different features and disallow dev-dependency features in the "exported" features section

Maybe the problem becomes more clear when awesome/session does actually change something for downstream crates aswell:
# cookie/Cargo.toml
[features]
session = []

# awesome/Cargo.toml
[features]
session = ["cookie/session", "tide"]

[dependencies.tide]
path = "../tide"

[dev-dependencies.cookie]
path = "../cookie"

# app/Cargo.toml
[dependencies.awesome]
path = "../awesome"
features = ["session"]

Now awesome behaves differently when session is enabled, and cookie/session is needed in the dev-dependencies to test this feature.

Maybe the problem becomes more clear when awesome/session does actually change something for downstream crates aswell:
# cookie/Cargo.toml
[features]
session = []

# awesome/Cargo.toml
[features]
session = ["cookie/session", "tide"]

[dependencies.tide]
path = "../tide"

[dev-dependencies.cookie]
path = "../cookie"

# app/Cargo.toml
[dependencies.awesome]
path = "../awesome"
features = ["session"]

Now awesome behaves differently when session is enabled, and cookie/session is needed in the dev-dependencies to test this feature.

One workaround is for awesome to have two features session = ["tide"] for users to use, and session-testing = ["cookie/session", "tide"] for developers of awesome to use while testing.

One workaround is for awesome to have two features session = ["tide"] for users to use, and session-testing = ["cookie/session", "tide"] for developers of awesome to use while testing.

This bug is now blocking me, because I need to enable a feature of a dependency which depends on my crate itself. This means I can only use dev-dependencies, because otherwise it would be a dependency cycle. But the features don't work correctly for dev-dependencies.
# riker
[features]
default = []
tokio_executor = ["riker-macros/tokio_executor"]

[dependencies]
riker-macros = { path = "riker-macros" }

riker/riker-macros
[features]
default = []
tokio_executor = ["riker/tokio_executor"]
[dev-dependencies]
riker = { path = ".." }

So I guess the solution to this would be to ignore "cookie/session" as a feature switch when building "awsome" as a dependency because it is a feature of dev-dependency, which is not available when building as a dependency. I will see if I can make a PR for this.


Migrations not working on startup

Note: still had issues with migrations - I managed to start the server doing three things:

docker-compose down and then running migrations with docker-compose run backend alembic upgrade head
I commented out the alembic upgrade head from server startup
Made the load_plugin_tables() a noop, returning nothing

Fixed by #53.


Computer Architecture

https://www.video.ethz.ch/lectures/d-infk/2017/autumn/263-2210-00L.html

https://users.ece.cmu.edu/~omutlu/

https://safari.ethz.ch/architecture/fall2017/doku.php?id=schedule


Fix logo redirect

Closes #15921
Fix tested and confirmed. Issue #15921 was posted on the main FCC repository.

Corrected mistake. Branch should be ready now!

@RyanGPalmer thanks! This should be live as shortly
Happy Coding!


Sign up

Just a specific question so I can at least learn or get started.
Hi,
First of all thanks for making this!
Second, I understand how to make this but I  need at least some example code so that I can experiment on it.
Can you please give an example code for a sign up form cause I'm not sure how to do it but I have an idea how to make it but still I won't work...
Please give example..

The example in the readme might be able to get you started with creating an account: https://github.com/HansAdema/mofh-client#example
I've thought of writing a full signup form example, but there are a lot of questions which this library cannot answer, like:

Will users sign up with custom domains or subdomain or both?
How are error messages handled? Are the verbose, typo riddled messages echo-ed verbose or do they need to be parsed? If so, how?
Will users choose their own alt username or can they enter their own ones?
What about a CAPTCHA?
What about email verification (VERY IMPORTANT - DON'T SKIP THIS)?

I'm not sure exactly how we could make a simple example script, which does not contain security holes some ignorant rookie is going to expose to spammers.


CU-85zrw4k5c_Create-tests-for-defer-method

CU-85zrw4k5c - Create tests for defer() method

Task linked: CU-85zrw4k5c Create tests for defer() method


FIX: TypeError: Cannot read property 'length' of null.

This error occurs when you are requesting related table by sqlBatch and the foreign key in parent table is null. In this case method util.maybeQuote access property of value that is null (i.e., value.length) and fails.

@marazt Thanks!


Login Method

I was not able to login.
But I checked their API.
So if you send the cookie and all other headers correctly to https://apidgp-gameplayer.games.dmm.com/v5/loginurl
You will get a json in the response code.
The json will contain an url with the correct login token.
If you again send the cookie correctly with all other headers it will have two 302 redirect.
The one where the URI contains /service/login/token/ is the one with login_secure_id and login_session_id.
Also, I think the reason that you mentioned DMMGamePlayer must re-login everytime this app is used is because you never write the cookie the server response provide to the db.
Basically, server will return cookies with "set-cookie" key.
These key and value should be used to update the Cookies db under Network folder.
This will ensure every auto login uses the last cookie retrieve from the server.

I went an implemented this.
So there are basically 3 API involved in the auto login process with a few redirection.
https://apidgp-gameplayer.games.dmm.com/v5/loginurl

This API is responsible for generating a tokenized login url.
I gave it the proper headers; however, I think the headers don't matter with this API.
You can just open this in any browser and get a working tokenized login url with result code 100.
https://accounts.dmm.com/service/login/password/=/path={Token}?device=games-player

This API is responsible for automatic password authentication.
This API if handle properly will result in a 302 result code with URI to the next API.
You will need to add all cookies related to the host of this API from the cookie database.
You get three login cookies back from properly handling this API:
Set-Cookie: ckcy=2; path=/; expires={removed_for_privacy}; domain=dmm.com; samesite=none; secure
Set-Cookie: cklg=ja; path=/; expires={removed_for_privacy}; domain=dmm.com; samesite=none; secure
Set-Cookie: connect.sid={removed_for_privacy}; Path=/; HttpOnly; Secure; SameSite=None

You then update the cookie database with these if it exists.
Based on my observation, connect.sid is the only one that does not exist.
https://accounts.dmm.com/service/login/token/=/path={Token}/is_app=false

This API is responsible for the actual authentication.
This API if handle properly will result in a 302 result code with URI to the next API.
You will need to add all cookies related to the host of this API from the cookie database.
This API required not only cookies read from the cookie db but also "Set-Cookie" from the previous API.
Similar to the previous API, this API if handle properly will return 12 "Set-Cookie" key value pairs.
These include "login_secure_id" and "login_session_id".
You then update the cookie database with these if it exists.
https://www.dmm.com/my/-/redirect/=/rurl={Token}

This API indicates login success.
This API if handle properly will result in a 200 result code.
You will need to add all cookies related to the host of this API from the cookie database.
This API required not only cookies read from the cookie db but also "Set-Cookie" from the previous API.
Note, this API has a different Host URI comparing to the previous two API which indicates the cookies read from db is different.
Similar to the previous API, this API if handle properly will return 3 "Set-Cookie" key value pairs.
You then update the cookie database with these if it exists.
https://apidgp-gameplayer.games.dmm.com/v5/launch/cl

This API returns the execution argument for the requested product.
This API if handle properly will result in a 200 result code.
This API requires 3 cookies.
age_check_done=0
login_secure_id={secure_id}
login_session_id={session_id}

Based on my observation, both age_check_done and login_session_id does not get saved to the cookie database from the previous APIs.
I just assign age_check_done as 0 and pass login_session_id from the /servicee/login/token/ API.
These are all it takes for auto login as long as dmmgameplayer5 is installed and username and password is saved and the actually client is not signed out.
I also check their non auto login API.
Which is the:
https://accounts.dmm.com/service/login/password/authenticate

But it seems like it is using Google's reCaptcha to generate a specific token.
Also the tokenized login url's path parameter seems to instead be generated by the client.
Unlike the auto login method where you just get a tokenized login url by requesting a specific API.
There is also another random token which seems to be gerated by the client.
I judge the path parameter and the non Google reCaptcha token to be random because it is not in the response header or content of the Google reCaptcha API and there is no other API being accessed before the autenticate API.
These three along with unencrypted username and password are included in the content of the request.
I tried to dissambled the client but the decompiled javascrirpt code is obfuscated and also a big nasty chunck so I just gave up on the login process.

Thank you for sending your Issue!

I was not able to login.

Hmmm, I can log in in my environment.
This problem has already been reported, but unfortunately I can't reproduce it in my environment #34

Also, I think the reason that you mentioned DMMGamePlayer must re-login everytime this app is used is because you never write the cookie the server response provide to the db.

This will be implemented.

This API is responsible for generating a tokenized login url.

This software does not use this endpoint
Retrieved from #auto-login on https://www.dmm.com/
source
However, we are considering using this endpoint.
The request library used by this software automatically handles redirection and cookie management
https://requests.readthedocs.io/en/latest/

We have released v4.5.0 which fixes this.
Please check.

I just tried v4.5.1.
Although I wasn't able to start DFL while fiddler is running to inspect the request and response, but the new version works flawless without login out the genuine DMMGamePlayer.
It seems like v4.5.1 loads all the cookie first and let request library handles redirection and cookie automatically, finally saving the cookies to database after all the request has completed.
I handle cookie and redirection manually because HttpClient in .Net faultly set duplicated cookies upon redirection and "set-cookie".
Might just be because the library has an issue or I wasn't using it correctly.


Transforms can't use task outputs as an input

Expected Behavior
Using a subproject task's output as the input to an artifact transform should not crash. It should also add a dependency so the transform runs after the task.
Current Behavior
* What went wrong:
Execution failed for task ':compileTestJava'.
> Cannot isolate parameters org.minimallycorrect.mixinplugin.transform.MixinTransform$Parameters_Decorated@ab11013 of artifact transform MixinTransform
   > Could not isolate value: [org.minimallycorrect.mixinplugin.transform.MixinTransform$Parameters_Decorated@ab11013] of type: [class org.minimallycorrect.mixinplugin.transform.MixinTransform$Parameters_Decorated]
      > Could not serialize value of type 'org.minimallycorrect.mixinplugin.ApplyMixins'

Crashes.
Using a task's getOutputs() as part of the inputs to a transform isn't possible as it can't be serialized.
Context
A transform depends on the output of a subproject's build to run. This transform's inputs are set using that task's outputs.
This transform is applying patches to a dependency from mixins in the subproject.
Further discussion on context here: https://github.com/MinimallyCorrect/Mixin/issues/6
Steps to Reproduce
This commit has an example of the problem. gradlew check demonstrates the issue.
https://github.com/MinimallyCorrect/Mixin/tree/8daf68287cfcd86f954d0de04ad4f5ff37234aab/
It currently has a workaround using static! state, so doesn't fail. Remove that by unmarking this field https://github.com/MinimallyCorrect/Mixin/blob/8daf68287cfcd86f954d0de04ad4f5ff37234aab/gradle-plugin/src/main/java/org/minimallycorrect/mixinplugin/ApplyMixins.java#L55 as transient and it will crash.
Your Environment
Environment: A gradle plugin test, on JDK 13 or 8. Gradle 6.0.1
Build scan URL: https://scans.gradle.com/s/fm4lz3ji7x4ks

Thank you for reporting.
The short answer to your question: transforms can already use task outputs as inputs as shown by this test: https://github.com/gradle/gradle/blob/cc392c15aad43287b8a9572c2172c30d8c014fca/subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformWithFileInputsIntegrationTest.groovy#L175-L204
For your use-case:
You need to use @Nested on inputs which are also annotated with input annotations. So this should work:
public interface Parameters extends TransformParameters {
 	@Nested
 	Map<String, ApplyMixins> getPerDependencyApplyMixins();
}

I would suggest using a MapProperty instead of a mutable Map property.
As a note for ApplyMixins: You shouldn't store the configuration in the object. Use a property or FileCollection which does the mapping instead. A file collection is also lazy, so it won't be resolved when registering the transform.
Regarding using the outputs of the Jar task: better use Jar.archiveFile. This is a RegularFileProperty, only one file, and will also add the task dependency.
In general, there shouldn't be any transient fields on your parameter object.

Thanks for the help @wolfs!

You need to use @Nested

Unfortunately this doesn't make any difference, it still crashes with the same NotSerializableException.
Caused by: org.gradle.internal.operations.BuildOperationQueueFailure: There was a failure while populating the build operation queue: Cannot isolate parameters org.minimallycorrect.mixinplugin.transform.MixinTransform$Parameters_Decorated@72d866a0 of artifact transform MixinTransform
...
Caused by: java.io.NotSerializableException: org.gradle.api.internal.tasks.DefaultTaskOutputs$TaskOutputUnionFileCollection
	at org.gradle.internal.snapshot.impl.DefaultValueSnapshotter.serialize(DefaultValueSnapshotter.java:171)

In general, there shouldn't be any transient fields on your parameter object.

Are transient @Internal caches created from values of other fields still okay?

Regarding using the outputs of the Jar task: better use Jar.archiveFile. This is a RegularFileProperty, only one file, and will also add the task dependency.

It also gets used with sourceSet.getAllJava().getSourceDirectories() in another place, so hope that makes sense to keep using the FileCollection?

You shouldn't store the configuration in the object. Use a property or FileCollection which does the mapping instead

Is there an example of doing this? We care about the dependency's ID's. It could just be a list of dependencies, but there's no way to make a detached configuration at this point to do the resolution so it seemed the only way to get it to work was to pass the configuration through.

@wolfs
Making a single FileCollection with @Classpath works. A @Nested with something containing a FileCollection with @Classpath causes the java.io.NotSerializableException.

How do you create ApplyMixins? You need to create it using ObjectFactory and the same rules as for the parameters apply. So you probably should declare an abstract getter for the FileCollection and then use fileCollection.from(...) to set it to an actual value.

@wolfs
🎉
Finally kinda working:

Older gradle versions' ObjectFactory can't create the abstract get methods, but if you use your own fields you still get the serialize exception. For backwards compatibility this means shipping an extra class which has the properties, and deciding which one to use based on gradle version.
Compatibility back to 4.2 is right out as you can't use properties.
The errors gradle produces here are extremely unclear, without your messages it would have been very difficult to get this working.
Still don't really understand why it works now. What's the difference between gradle making getters for the properties and properties made with ObjectFactory.property? Why don't the latter work?!

The difference is that, when Gradle generates the fields, it knows how to create copies of the parameters object to isolate it when running the transforms in parallel. When you create the getter, Gradle currently doesn't know how to create copies of your parameters object and then fails.


Require scheme in origins

This "upgrades" the change in #388 to require scheme, rather than going through a deprecation period. It simplifies the code greatly.
I added checks as well to ensure that CORS_ORIGIN_WHITELIST is well-formed, so that users upgrading will see some obvious errors.

@wgonczaronek do you want to give this a check?

Perfect! I'll just fix up the code style, do some other tidy up I have planned, merge and release!

Hi, I just wanted to thank you for adding the check and error corsheaders.E013 error. Having upgraded from the previous version this warned me that something needed to change and made it very easy to update the config.
👍

@leibowitz no worries, thanks for your message of encouragement!


Add ReadRef

Allows reading from Read + Seek instead of &[u8].
Todo:

[ ] maybe completely remove Bytes, since ReadRef now implements most of what it did
[x] archive and Mach-O fat members are still completely read into memory. ReadRef probably needs to become more like a cursor to support this.
[ ] change usize to u64 for file offsets

Replaced by #284


Upgrade Spock to 1.3

See: http://spockframework.org/spock/docs/1.3/release_notes.html#_what_s_new_in_this_release

What’s New In This release

Add implicit assertions for CodeArgument constraints (https://github.com/spockframework/spock/pull/956)
Add power assertion output to asserts with explicit message (https://github.com/spockframework/spock/pull/928)
Add support for mixed named and positional arguments in mocks (https://github.com/spockframework/spock/pull/919)
Add NamedParam support for groovy-2.5 with backport to 2.4 (https://github.com/spockframework/spock/pull/921)
Add special rendering for Set comparisons (https://github.com/spockframework/spock/pull/925)
Add identity hash code to type hints in comparison failures if they are identical
Fix erroneous regex where an optional colon was defined instead of a non-capturing group (https://github.com/spockframework/spock/pull/931)
Improve CodeArgumentConstraint by supporting assertions (https://github.com/spockframework/spock/pull/918)
Improve IDE type inference in MockingApi (https://github.com/spockframework/spock/pull/920)
Improve reporting of TooFewInvocationsError (https://github.com/spockframework/spock/pull/912)
Improve render class loader for classes in comparison failures (https://github.com/spockframework/spock/pull/932)
Improve record class literal values to display FQCN in comparison failures (https://github.com/spockframework/spock/pull/935)
Improve filter Java 9+ reflection stack frames
Improve show stacktrace of throwables in comparison failure result
Improve use canonical class name in comparison failure results if present
Improve render otherwise irrelevant expressions if they get a type hint in comparison failure (https://github.com/spockframework/spock/pull/936)
Fix do not convert implicit "this" expression like when calling the constructor of a non-static inner class (https://github.com/spockframework/spock/pull/930)
Fix class expression recording when there are comments with dots in the same line (https://github.com/spockframework/spock/pull/937)

Reverted test dependencies.

Build passed, and checked it in Idea (2019.1.3 only, since 2019.2 EAP has trouble resolving Spock 1.3) that the mock navigations work after the inline (cc: @marcphilipp)

@paplorinc What's the issue in IDEA?

@marcphilipp The inner mocks weren't seen by the IDE before. Thanks to your change, now we could get rid of the customized Specifiation and the IDE still sees them correctly.


SAK-29550 Gradebook should use the global transaction manager

Out of interest to we know why it had it's own transaction manager in the first place?

Gradebook tool has a duplicate of everything so I'm not surprised about this one.

that was just a dig, I am not sure :p


Frame and Truss to VTKLine export

Closes a subtask of https://github.com/ONSAS/ONSAS.jl/issues/519.
Closes a subtask of https://github.com/ONSAS/ONSAS.jl/issues/520

Note: Cross-sections extrusion will be postponed as it is a nice-to-have feature but not essential for visualizing the solution.

great improvement!

Thanks for the prompt review


bug: Firebase not working in the background

TODO, investigate with kotlin SDK team why firebase isn't working in the background for them.

Working.


TableView Doesn't Work With MotionLayout?

Describe the bug
Trying to do a collapsing header type of animation with MotionLayout but it doesn't seem like the TableView's touch listener is being propagated to the MotionLayout. It may be related to how there's multiple RecyclerViews set up in here overriding their touch listeners. Any possible solutions to this?
To Reproduce
To be specific, in my layout I have a MotionLayout holding a View, Tablayout, and ViewPager2 (which inflates the TableView).
Expected behavior
DragUp transition on MotionLayout works when user is dragging the TableView but it only works on Views outside of it.
Tools:

TableView version: <IP_ADDRESS>
Android version: 29

To have a hope of anybody looking at this problem you really need include or link to a minimum reproducible example app so the interaction between the components can debugged.


upload component muiltype is no support in android

Please follow the issue template. We need more issue details.


PR: Make Variable Explorer column headers movable

Issue(s) Resolved

Fixes #16423. See also #17022, for which this is an identical PR but on a different branch as requested.
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: Mike Battaglia

@battaglia01, one of our tests is failing due to this change. Do you want me to help you with that?

I'm not sure what the problem is; I literally only added that one line. What is failing?

I looked at this again; it looks like something isn't sorting correctly. I haven't seen any such sorting issue on the patched version of Spyder I am running. Do we have any insight into what is causing this and what, in particular, isn't being sorted correctly?

I'll take a look at the test to see what's causing the failure.

Hey @battaglia01, I discovered the issue: we had to use a pytest fixture for of our Variable Explorer tests. Then the failing test pass without problems.
Since you didn't create a branch for your pull request, I had to create a new one to push the necessary changes (see #17127).
Thanks again for your contribution!

Hey @battaglia01, I discovered the issue: we had to use a pytest fixture for of our Variable Explorer tests. Then the failing test pass without problems.
Since you didn't create a branch for your pull request, I had to create a new one to push the necessary changes (see #17127).
Thanks again for your contribution!

Closing in favor of #17127.

Closing in favor of #17127.


【Hackathon No.70】为神经网络编译器 CINN 增加 clip 算子

add doc fot clip_op

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

请参考其他pr修改下标题哈~

请参考其他pr修改下标题哈~

好的已修改

好滴，已完成

PR approve了，但是CLA好像PR提示还没签署。麻烦签署一下开源协议。签署一下，设计文档我们就可以合入了

好滴，已完成


Delete duplicated plugin properties

Potential fix for #498

@koral-- thank you. I'll try to get this in this weekend :)


[Security Question] - Security question regrading encryption

Question 1
Hello, we are currently working on a password manager app, I would like to ask as if the encryption provided by this library is reliable for storing a Secret key  and Sensitive data for local usage?
Question 2
I know that data is persistent  when app installed and in usage, what happens if user uninstall the app, dose the storage gets deleted ? if not, how can it be deleted?

Question 1

MMKV uses AES CFB-128 for encryption of your data. This library manages encryption for you by using Platform Keychain on iOS and Android. All you have to do is call 1 function and everything else is handled automatically from creating and storing encryption keys in Keychain to decrypting data on app launch. The encryption used is reliable enough for storing sensitive data.

Question 2

Once you uninstall the app, the data is automatically deleted from the phone since it is stored in App's data/ directory.

Question 1

MMKV uses AES CFB-128 for encryption of your data. This library manages encryption for you by using Platform Keychain on iOS and Android. All you have to do is call 1 function and everything else is handled automatically from creating and storing encryption keys in Keychain to decrypting data on app launch. The encryption used is reliable enough for storing sensitive data.

Question 2

Once you uninstall the app, the data is automatically deleted from the phone since it is stored in App's data/ directory.

Thank you for information, One more question, I can see that there are async and sync functions for getting storage values, not sure when to use what and when ?
For example I have to get if user has lunched the app for first time,
Shall I use it with async:
MMKV.getBoolAsync(isFirstLunch)
or is it enough with
MMKV.getBool(isFirstLunch)
what makes a difference?

@KJA-Tsx Async and Sync functions exist for backward compatibility with older versions of this library. If you want more performance, use Sync functions. In the above case for example, use MMKV.getBool(isFirstLunch)

Thank you for support.


ASP Core 6 samples issue

Hello, this does not run on ASP Core 6, can you please update the sample

I don't currently have the time unfortunately. If anyone else wants to
update them feel free to submit a pull request.
On Fri, 21 Jan 2022, 14:40 fasteddys, @.***> wrote:

Hello, this does not run on ASP Core 6, can you please update the sample
—
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract-samples/issues/14, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAB7HSGNWMYNF5RKHQC4ZVLUXDIR3ANCNFSM5MOORDVA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[Documentation] Typo in the documentation for MenuItem.onClose

The docs for MenuItem.onClose have a typo where the wrong value is mentioned.
Returns a callback, if any, to be invoked if the platform menu receives a "Menu.opened" method call from the platform for this item.
It should be Menu.closed per the docs in SystemChannels.
Menu.closed: Called when a submenu is closed, along with the unique ID of the submenu.
https://api.flutter.dev/flutter/widgets/MenuItem/onClose.html
https://api.flutter.dev/flutter/services/SystemChannels/menu-constant.html

Thanks for the report. Looks like this is already fixed on master: https://master-api.flutter.dev/flutter/widgets/MenuItem/onClose.html


About common-domain module

Hi thanks for a great sample about modular application with compose. I'm curious about why are you seperate common-domain instead of adding domain package in every feature modules?

common-domain & common-data exist purely out of the reason that two or more features require access to the same use cases. Putting them inside the domain & data module of some feature will require importing the whole feature, including domain, data, and presentation subpackages. This is not ideal, since we want to just have access to the use cases & don't really care about the presentation.
feature-discovery & feature-category both use Observe*GamesUseCase & Refresh*GamesUseCase. Therefore, they are put into the common-domain that is included then into both feature-discovery & feature-category modules.
Hope it helps.

Btw, common-domain & common-data modules are also not ideal, in my opiniom. The reason being is that, sooner or later, they are bound to become monoliths, since quite a lot of use cases may be reused across features when the app grows.
The better idea is having some common module (e.g., common-games) that will have two subpackages called domain & data. Then it'll be quite easy to plug them into features that actually use them. In that scenario, common-domain and common-data won't exist at all, since everything will be extracted into corresponding reusable modules (e.g., common-games, common-auth, common-news, etc.) & the monolith problem is resolved. However, I haven't tried that yet, but that's definitely looks much better than the current approach of having just common-domain and common-data modules.


Development

1st version of Plotous for final review.

Hello @RSWilson1! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file Ploutos/Ploutos/settings.py:

Line 22:20: E221 multiple spaces before operator
Line 126:80: E501 line too long (91 > 79 characters)
Line 129:80: E501 line too long (81 > 79 characters)
Line 132:80: E501 line too long (82 > 79 characters)
Line 135:80: E501 line too long (83 > 79 characters)
Line 177:25: E127 continuation line over-indented for visual indent

In the file Ploutos/Ploutos/urls.py:

Line 25:2: W292 no newline at end of file

In the file Ploutos/dashboard/forms.py:

Line 34:80: E501 line too long (84 > 79 characters)
Line 64:1: E302 expected 2 blank lines, found 1

In the file Ploutos/dashboard/models.py:

Line 5:1: E302 expected 2 blank lines, found 1
Line 12:1: E302 expected 2 blank lines, found 1
Line 20:1: E302 expected 2 blank lines, found 1

In the file Ploutos/dashboard/views.py:

Line 680:80: E501 line too long (80 > 79 characters)
Line 698:80: E501 line too long (80 > 79 characters)
Line 715:80: E501 line too long (80 > 79 characters)
Line 741:80: E501 line too long (93 > 79 characters)
Line 776:80: E501 line too long (80 > 79 characters)
Line 792:80: E501 line too long (80 > 79 characters)
Line 807:80: E501 line too long (80 > 79 characters)

In the file Ploutos/scripts/DNAnexus_queries.py:

Line 406:80: E501 line too long (81 > 79 characters)
Line 408:80: E501 line too long (81 > 79 characters)
Line 409:80: E501 line too long (81 > 79 characters)
Line 410:80: E501 line too long (81 > 79 characters)
Line 794:9: E128 continuation line under-indented for visual indent
Line 796:9: E128 continuation line under-indented for visual indent
Line 866:80: E501 line too long (80 > 79 characters)
Line 1007:80: E501 line too long (81 > 79 characters)
Line 1008:80: E501 line too long (82 > 79 characters)
Line 1014:80: E501 line too long (81 > 79 characters)
Line 1033:80: E501 line too long (81 > 79 characters)
Line 1034:80: E501 line too long (82 > 79 characters)
Line 1040:80: E501 line too long (81 > 79 characters)
Line 1060:80: E501 line too long (81 > 79 characters)
Line 1224:80: E501 line too long (84 > 79 characters)
Line 1226:80: E501 line too long (84 > 79 characters)
Line 1227:80: E501 line too long (84 > 79 characters)
Line 1270:80: E501 line too long (94 > 79 characters)
Line 1280:80: E501 line too long (93 > 79 characters)
Line 1320:80: E501 line too long (87 > 79 characters)
Line 1329:80: E501 line too long (86 > 79 characters)
Line 1344:80: E501 line too long (86 > 79 characters)
Line 1350:80: E501 line too long (85 > 79 characters)
Line 1353:80: E501 line too long (85 > 79 characters)
Line 1362:80: E501 line too long (85 > 79 characters)
Line 1376:80: E501 line too long (85 > 79 characters)
Line 1385:1: E302 expected 2 blank lines, found 1
Line 1487:80: E501 line too long (80 > 79 characters)

In the file Ploutos/scripts/executions_plots.py:

Line 430:80: E501 line too long (80 > 79 characters)
Line 459:80: E501 line too long (87 > 79 characters)
Line 537:80: E501 line too long (80 > 79 characters)
Line 633:80: E501 line too long (83 > 79 characters)
Line 868:80: E501 line too long (90 > 79 characters)

In the file Ploutos/scripts/leaderboard_plots.py:

Line 362:80: E501 line too long (85 > 79 characters)
Line 404:80: E501 line too long (85 > 79 characters)
Line 1068:80: E501 line too long (83 > 79 characters)
Line 1290:80: E501 line too long (83 > 79 characters)
Line 1442:80: E501 line too long (82 > 79 characters)

In the file Ploutos/scripts/populate_db.py:

Line 254:80: E501 line too long (81 > 79 characters)
Line 255:80: E501 line too long (81 > 79 characters)
Line 266:80: E501 line too long (81 > 79 characters)
Line 267:80: E501 line too long (85 > 79 characters)
Line 280:80: E501 line too long (81 > 79 characters)
Line 281:80: E501 line too long (81 > 79 characters)
Line 292:80: E501 line too long (81 > 79 characters)
Line 293:80: E501 line too long (81 > 79 characters)

In the file Ploutos/scripts/storage_plots.py:

Line 16:1: E302 expected 2 blank lines, found 1
Line 298:80: E501 line too long (92 > 79 characters)
Line 300:80: E501 line too long (92 > 79 characters)
Line 301:80: E501 line too long (92 > 79 characters)


Fix broken tests

Fixes some broken tests.
Fixes: #272

Rebased on main to use the latest AWS Neuron SDK.

cc @Wauplin


Saving images with data urls doesn't work in Notebooks

Version: 1.53.0-insider
OS: Darwin x64 20.2.0

Steps to Reproduce:

Install Jupyter extension (download VSIX with support for widgets from here https://pvsc.blob.core.windows.net/extension-builds-jupyter-public/ms-toolsai-jupyter-insiders-with-widgets.vsix)
Install extension in VS Code Insiders
Create a notebook & select a Python kernel
Run the following in a cell to install required dependencies
(Ensure cell language is python)

!pip install matplotlib

Run the following in a cell to install required dependencies

!pip install ipympl

Run the following in a cell to view the plot

import matplotlib.pyplot as plt
%matplotlib widget
plt.plot([1,2,3,4],[1,2,3,4])

Click the last (bottom most) icon in the toolbar to save the plot (see screenshot or hover to see tooltip of icon).
Nothing happens.

Try the same in old notebooks in Jupyter Extension (stable VS Code or just create a python file and run the python code against a python environment with required dependencies), when the plot viewer appears you can click on the save icon & you'll be able to save the plot to a png file.
I believe the issue is vscode is ignoring window navigate events when attempting to save files with a blob url.
I believe the following is not working in VS Code native notebook https://github.com/matplotlib/ipympl/blob/bd477f537464a3cc7e3196cb820a8531d97c7f97/js/src/mpl_widget.js#L90-L97
See here for how we added support for this in old notebooks & interactive window https://github.com/microsoft/vscode-jupyter/blob/main/src/datascience-ui/interactive-common/handlers.ts#L25-L45

Does this issue occur when all extensions are disabled?: Yes/No

I remember @roblourens had similar fixes before for blob url.

I remember @roblourens had similar fixes before for blob url.

Validated, thanks.

Validated, thanks.


Huggingface downloader / cache, offline mode

It would be nice to have an option for the downloader so that it isn't pulling git from huggingface if the model is already downloaded on the disk and cached. Right now, even if the model is cached a query to huggingface is made. Also if there is no internet or no connection to huggingface, there seems to be no timeout and the downloder hangs.

I'll implement it (if i have time)


[tool_crash] FileSystemException: Cannot copy file to 'C:\Users\matsheka\Documents\eltigrehealth\android\app\src\main\res\mipmap-hdpi\ic_launcher.png', OS Error: Access is denied., errno = 5

Command
flutter create eltigrehealth

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot copy file to 'C:\Users\matsheka\Documents\eltigrehealth\android\app\src\main\res\mipmap-hdpi\ic_launcher.png', OS Error: Access is denied.
, errno = 5
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.copySync (dart:io/file_impl.dart:340:5)
#2      ForwardingFile.copySync (package:file/src/forwarding/forwarding_file.dart:30:50)
#3      ForwardingFile.copySync (package:file/src/forwarding/forwarding_file.dart:30:50)
#4      Template.render.<anonymous closure> (package:flutter_tools/src/template.dart:267:18)
#5      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#6      Template.render (package:flutter_tools/src/template.dart:190:24)
#7      CreateCommand._renderTemplate (package:flutter_tools/src/commands/create.dart:799:21)
#8      _rootRunUnary (dart:async/zone.dart:1198:47)
#9      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#10     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#11     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#12     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#13     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#14     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#15     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#16     Template.fromName (package:flutter_tools/src/template.dart)
#17     _rootRunUnary (dart:async/zone.dart:1198:47)
#18     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#19     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#20     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#21     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#22     Future._completeWithValue (dart:async/future_impl.dart:529:5)
#23     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#24     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)

[✓] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.18363.1316], locale en-US)
    • Flutter version 1.22.6 at C:\flutter\flutter
    • Framework revision 9b2d32b605 (13 days ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\matsheka\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.52.1)
    • VS Code at C:\Users\matsheka\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.19.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Flutter Application Metadata
No pubspec in working directory.

Hi @elguerrero1
I see there's an open issue (https://github.com/flutter/flutter/issues/69116) addressing the case you described.
Please follow up on that issue, I'm closing the current one as a duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you


Undo/Redo unit tests

Reference: #122
Fixes #115 as well

Coverage increased (+3.03%) to 80.779% when pulling 84f525db6ffb692d9468c16fa63437aca1ba6d16 on features/undo_redo_unit_test into 38e86f5b83d11c94b0cf8d17ec64c9450c2bb9ce on master_V0.5rc.


add tag_foreach to repo (#594)

closes #594

Thanks! Should this perhaps yield &[u8] instead of Option<&str> to make sure we can yield everything?

@alexcrichton updated

Thanks!

@alexcrichton thank a bunch! As usual I would love to have a release to give it a spin in https://github.com/extrawurst/gitui/issues/206 :)

Sure thing, done now!


mammogram orientation

Hi there,
I am trying to convert mammogram to png.
however mammogram can be left or right, the right mammogram have the correct orientation but the left mammogram are reversed..

the breast should be to the left and the text should be LMLO but it is reversed
thanks.

Hi @hassane11, thank you for reporting this issue. It looks like there might be some orientation data that mritopng is not being sensitive to.
Would it possible to get the original two scans i.e. the DICOM files of both left and right? I completely understand if that's not possible since I know DICOM files contains patient data.

Hi Danish,
Thanks for the reply.
unfortunately I cannot send you the dicom files. I know it is useless to you, but as you said it contains sensitive patient data...
If there is a way to strip patient data from the files I would gladly send it to you.

From: Danish Mujeeb<EMAIL_ADDRESS>Sent: Wednesday, May 1, 2019 1:56 PM
To: danishm/mritopng
Cc: hassane11; Mention
Subject: Re: [danishm/mritopng] mammogram orientation (#27)
Hi @hassane11https://github.com/hassane11, thank you for reporting this issue. It looks like there might be some orientation data that mritopng is not being sensitive to.
Would it possible to get the original two scans i.e. the DICOM files of both left and right? I completely understand if that's not possible since I know DICOM files contains patient data.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/danishm/mritopng/issues/27#issuecomment-488288621, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL3MNPKIDETNS4KG56M4G7DPTGOPPANCNFSM4HI6Q5VA.

@hassane11 Right, it's important to keep patient data secure!
Stripping away patient data from DICOM files could be a feature in this project!
I'll try to look into it. I think there is some orientation information in the file that I need to be sensitive to. If you're using a DICOM viewer that you can use to extract only the orientation information for both files, that would help too.
In the mean time, if this is one off, you can use an image editing program to mirror flip the PNG vertically


Upgrade the dataformat-rdf module to RC02

https://github.com/eclipse-digitaltwin/aas4j/commit/89694e953e5dfeaf4b82233f4dffaae590f56068 has a fixed version of the JSON-LD unit tests. However, I have only fixed the mixins and the main test file. I assume the other rdf files under src/test/resources need to be upgraded, too.

the updates are in the Pull Request https://github.com/eclipse-digitaltwin/aas4j/pull/17, please review.

The issue can be closed because of the merge of PR.


We need standard way of postprocess data

One customer want to generate json data (to use it as mocks in testing his system)...
Maybe we can provide easy way to:

export as json
export as xml
export to rational DB
...

These would be custom writers. They would need to take some type of argument specifying structure.
Is there still a request/need for these?

We are tracking this in #213 . Closing this one as dup


Hydration Issues with NextJS 14 App Router

🐛 Current behavior
I have been following the documentation for react-instantsearch-next here
When using this and going to a search page via a hard refresh or directly to the URL. There are hydration errors, which end up displaying the wrong data from Algolia. At first, I thought this may be my setup, but I still receive these errors when setting it up exactly like the docs. This is my current component:
'use client'

import algoliasearch from 'algoliasearch/lite'
import { Configure } from 'react-instantsearch'
import { InstantSearchNext } from 'react-instantsearch-nextjs'
import { useMediaQuery } from '@mantine/hooks'

import type { Category, CategoryFacets } from '@/types'
import { algoliaConfig } from '@/config'
import {
    AlgoliaHitsHeading,
    AlgoliaFacetDrawer,
    AlgoliaCurrentRefinementsHorizontal,
    AlgoliaSortBy,
    AlgoliaHits,
    AlgoliaPagination,
} from '@/components/Algolia'

const searchClient = algoliasearch(algoliaConfig.applicationId, algoliaConfig.searchApiKey)

type AlgoliaListPageWithDrawerProps = {
    isLoggedIn: boolean
    category?: Category
    query?: string
    filters: string
    facets: CategoryFacets
}

export function AlgoliaListPageWithDrawer(props: AlgoliaListPageWithDrawerProps) {
    const { isLoggedIn = true, category, query = '', filters, facets } = props

    const isMobile = useMediaQuery('(max-width: 767px)')

    return (
        <InstantSearchNext
            searchClient={searchClient}
            indexName={algoliaConfig.indexName}
            routing={algoliaConfig.routing}
            insights={algoliaConfig.insights}
            future={{ preserveSharedStateOnUnmount: true }}
        >

                <Configure hitsPerPage={16} query={query} filters={filters} />

                <AlgoliaHitsHeading category={category} query={query} />

                <AlgoliaCurrentRefinementsHorizontal className="mb-[15px] lg:hidden" />

                            <AlgoliaFacetDrawer facets={facets} />

                        <AlgoliaCurrentRefinementsHorizontal className="hidden lg:flex" />

                        <AlgoliaSortBy
                            items={[
                                {
                                    label: isMobile ? 'Default' : 'Sort By: Default',
                                    value: algoliaConfig.indexName,
                                },
                                {
                                    label: isMobile
                                        ? 'Price - low to high'
                                        : 'Sort By: Price - low to high',
                                    value: algoliaConfig.indexNamePriceAscending,
                                },
                                {
                                    label: isMobile
                                        ? 'Price - high to low'
                                        : 'Sort By: Price - high to low',
                                    value: algoliaConfig.indexNamePriceDescending,
                                },
                            ]}
                        />

                    <AlgoliaHits isLoggedIn={isLoggedIn} />
                    <AlgoliaPagination />

        </InstantSearchNext>
    )
}

And the page rendering it (page.tsx)
import type { Metadata } from 'next'
import { notFound } from 'next/navigation'

import { featureConfig, metaConfig } from '@/config'
import { getSession } from '@/data/auth'
import { AlgoliaListPageWithDrawer } from '@/components/Algolia'

export const dynamic = 'force-dynamic'

export const metadata: Metadata = {
    title: `Search | ${metaConfig.baseMetaTitle}`,
    description: 'Here are the results for your search query.',
}

type SearchProps = {
    searchParams: { q: string }
}

export default async function Search(props: SearchProps) {
    const { searchParams } = props

    if (!featureConfig.search.enabled) {
        return notFound()
    }

    const session = await getSession()
    const isLoggedIn = session?.guest_user === false
    const query = searchParams.q
    const filters = 'NOT availability:"withdrawn"'
    const facets = [
        { label: 'Brand', code: 'brand' },
        { label: 'Product Type', code: 'product_type' },
    ]

    return (
        <AlgoliaListPageWithDrawer
            isLoggedIn={isLoggedIn}
            query={query}
            filters={filters}
            facets={facets}
        />
    )
}

This is making the whole package unusable with SSR for my project, as it is displaying incorrect results and crashing with hydration errors. Any assistance would be greatly appreciated.
package.json
"next": "^14.2.5",
"react": "^18.3.1",
"react-instantsearch": "^7.11.4",
"react-instantsearch-nextjs": "^0.3.7",

🔍 Steps to reproduce

Visit the search page
Hard refresh
See lots of hydration errors

Live reproduction
N/A
💭 Expected behavior
There are no hydration errors and the correct data is displaying.
Package version
"react-instantsearch": "^7.11.4","react-instantsearch-nextjs": "^0.3.7",
Operating system
macOS
Browser
Chrome
Code of Conduct

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

Hi @KallendJack,
Can't reproduce without a link, but where exactly does the hydration problem occur ? I think later versions of React now help with visualization, but you can compare the DOM markup between the initial HTTP request and what's rendered after hydration, this would help pinpoint where the problem lies exactly.
It could be due to other libraries you're using like Mantine which may render differently on the server. Without a reproduction and exact pinpointing of the DOM diffs between server and client it's hard to tell.

Hi @KallendJack,
Can't reproduce without a link, but where exactly does the hydration problem occur ? I think later versions of React now help with visualization, but you can compare the DOM markup between the initial HTTP request and what's rendered after hydration, this would help pinpoint where the problem lies exactly.
It could be due to other libraries you're using like Mantine which may render differently on the server (if isMobile is true on the server and false on the client, you'd have an error like this). Without a reproduction and exact pinpointing of the DOM diffs between server and client it's hard to tell.

Hi @aymeric-giraudet. Thanks for your response. Here is the link to the two pages I am seeing the issues:
https://feature-app-dir.peracto3carbon.pub/category/simple-products
https://feature-app-dir.peracto3carbon.pub/search?q=s
I have also tried it without Mantine but I have tried removing lots of things with no luck.
Locally it comes up saying the hit count doesn't match:

However this component only contains the following:
`'use client'
import { useStats } from 'react-instantsearch'
export function AlgoliaHitCount() {
const { nbHits } = useStats()
return (

        ({nbHits})

)

}
`

Hi @KallendJack,
This is due to having two different InstantSearchNext components on the page which is not supported.
I can think of two ways to fix this :

Can you use InstantSearch instead of InstantSearchNext for the autocomplete ? I'm not sure this needs to be rendered on the server and is even relevant for SEO. This could even be a browser-only component. I see it loads and saves hits on the page on the server even though it's not used in markup. This would make the page perform better too.
Haven't tried it, but having a single InstantSearchNext around the root may work ?

Hi @aymeric-giraudet, thanks for this I'll give it a go

Hi @KallendJack,
This is due to having two different InstantSearchNext components on the page which is not supported.
I can think of two ways to fix this, in order of simplicity/relevance :

Can you use InstantSearch instead of InstantSearchNext for the autocomplete ? I'm not sure this needs to be rendered on the server and is even relevant for SEO. This could even be a browser-only component. I see it loads and injects hits on the page on the server even though it's not used in markup. This would make the page perform better too.
Haven't tried it, but having a single InstantSearchNext around the root may work ?

Hi @aymeric-giraudet, thanks for this I'll give it a go

@aymeric-giraudet This fixes it... kind of 😆. I am now using InstantSearch for the autocomplete and ** InstantSearchNext** for the category page. However, when the Autocomplete loads in it seems to overwrite the results on the category page. It also seems to use the  component from the Autocomplete, which would explain why it kept only showing 3 results in the previous issue I had. Is there a way to have both a InstantSearch and InstantSearchNext on the same page without this problem?
Thanks again.

Is it an option to use

the same instance for both
use autocomplete, not InstantSearch for the autocomplete

InstantSearch is designed to be used only once per page, so it's also designed to have only one set of server side rendering results for example

This is now resolved for me. Thanks for all the help. Please see comments above to see how I resolved.


feat(pre-receive): try to diff against HEAD

On remote bare repositories, HEAD is the main branch (result of git ls-remote origin HEAD).
We can use this to try and get a rev-list between the two

Codecov Report

Merging #127 (267c89c) into main (146d982) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
- Coverage   92.01%   92.00%   -0.01%
==========================================
  Files          29       29
  Lines        1552     1551       -1
==========================================
- Hits         1428     1427       -1
  Misses        124      124

Flag
Coverage Δ

unittests
92.00% <100.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

ggshield/pre_receive_cmd.py
93.75% <100.00%> (-0.08%)
:arrow_down:

Continue to review full report at Codecov.

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


Remove invalid duplicated CSS declarations

This CSS is invalid due to the media query not being closed. It looks like the code is a copy of statements a bit further below.

 Thank you 🙏


Inconsistent 4th order grating dispersion

4th order dispersion calculated by eqn and symbolically are different. Need to remedy - I believe symbolic calc is correct. Also see cpkm/laserdynamics#3.

Fixed in 1045c4a


Arch Linux 3.10.18 ARM V7 --  command Bundle init crash

[aperfeito@alarm /]$ ./home/aperfeito/.gem/bin/bundle init
--- ERROR REPORT TEMPLATE -------------------------------------------------------
Error Report
Questions
Please fill out answers to these questions, it'll help us figure out
why things are going wrong.

What did you do?
I ran the command ./home/aperfeito/.gem/bin/bundle init

What did you expect to happen?
I expected Bundler to...

What happened instead?
Instead, what happened was...

Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?
I tried...

Have you read our issues document, https://github.com/bundler/bundler/blob/master/doc/contributing/ISSUES.md?
...

Backtrace
Errno::EACCES: Permission denied @ rb_sysopen - Gemfile
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1290:in `initialize'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1290:in `open'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1290:in `block in copy_file'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1289:in `open'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1289:in `copy_file'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:430:in `copy_file'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:357:in `block in cp'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1461:in `block in fu_each_src_dest'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1477:in `fu_each_src_dest0'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:1459:in `fu_each_src_dest'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/fileutils/lib/fileutils.rb:356:in `cp'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/cli/init.rb:30:in `run'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/cli.rb:148:in `init'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
  /home/aperfeito/.gem/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
  /home/aperfeito/.gem/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
  /home/aperfeito/.gem/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
  ./home/aperfeito/.gem/bin/bundle:23:in `load'
  ./home/aperfeito/.gem/bin/bundle:23:in `<main>'

Environment
Bundler       1.16.1
  Platforms   ruby, armv7l-linux
Ruby          2.4.3p205 (2017-12-14 revision 61247) [armv7l-linux-eabihf]
  Full Path   /usr/bin/ruby
  Config Dir  /etc
RubyGems      2.6.14
  Gem Home    /home/aperfeito/.gem
  Gem Path    /home/aperfeito/.gem/ruby/2.4.0:/usr/lib/ruby/gems/2.4.0:/home/aperfeito/.gem
  User Path   /home/aperfeito/.gem/ruby/2.4.0
  Bin Dir     /home/aperfeito/.gem/bin
Tools
  Git         2.15.1
  RVM         not installed
  rbenv       not installed
  chruby      not installed

Bundler Build Metadata
Built At          2017-12-21
Git SHA           0034ef341
Released Version  true

--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=Permission+denied+%40+rb_sysopen+-+Gemfile&type=Issues
If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data!

It looks like you don't have permission to read the Gemfile template inside the Bundler gem. I suggest checking the user permissions inside the gem and set them appropriately

We should probably be printing a better error here, though

Hi Swandale,
Thanks for reply .
  The question is HOW ?

Regrads
Happy new Year
Perfeito, Alexander

De: Colby Swandale<EMAIL_ADDRESS>Enviado: sexta-feira, 22 de dezembro de 2017 19:46:44
Para: bundler/bundler
Cc: Alexander Nunes Perfeito; Author
Assunto: Re: [bundler/bundler] Arch Linux 3.10.18 ARM V7 -- command Bundle init crash (#6219)
It looks like you don't have permission to read the Gemfile template inside the Bundler gem. I suggest checking the user permissions inside the gem and set them appropriately
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/bundler/bundler/issues/6219#issuecomment-353679537, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANbdjzSEVnE2ypQiKxEPAGJOf3MOqdYfks5tDCNEgaJpZM4RKYWn.

Can we close this as https://github.com/bundler/bundler/pull/6266 was merged?


Unexpected error in Python debugger Debug Interactive

I had typed in 'webpage' and was waiting for the value to be displayed, when I received the error.  I see the value is actually there:
[Window Title]
devenv.exe
[Main Instruction]
An unexpected error occurred
[Content]
Please press Ctrl+C to copy the contents of this dialog and report this error to our issue tracker.
[^] Hide details  [Close]
[Expanded Information]
Build: 15.9.18254.1

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Microsoft.PythonTools.Repl.PythonDebugProcessReplEvaluator..ctor(IServiceProvider serviceProvider, PythonProcess process, IThreadIdMapper threadIdMapper)
   at Microsoft.PythonTools.Repl.PythonDebugReplEvaluator.<AttachProcessAsync>d__80.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.PythonTools.Repl.PythonDebugReplEvaluator.<OnReadyForInputAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.PythonTools.Infrastructure.VSTaskExtensions.<HandleAllExceptions>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

@RaymonGulati1, Please check if this is legacy. If it is, please close

PythonDebugProcessReplEvaluator is legacy debugger. Please disable legacy debugger in tools/options to get around this.