ColossalAI cannot run the shufflenet_v2_x1_0 model as torch do

🐛 Describe the bug
models.shufflenet_v2_x1_0 can be trained with BATCH_SIZE = 16384, which cannot be run successfully with ColossalAI.
The information is below:
(conda-general) user@user:~/research/Experiments/ColossalAI-Examples/image/resnet$ colossalai run --nproc_per_node 1 train.py
[06/16/22 13:30:42] INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Added key: store_based_barrier_key:1 to store
                             for rank: 0
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Rank 0: Completed store-based barrier for
                             key:store_based_barrier_key:1 with 1 nodes.
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Added key: store_based_barrier_key:2 to store
                             for rank: 0
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Rank 0: Completed store-based barrier for
                             key:store_based_barrier_key:2 with 1 nodes.
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Added key: store_based_barrier_key:3 to store
                             for rank: 0
                    ...
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Rank 0: Completed store-based barrier for
                             key:store_based_barrier_key:5 with 1 nodes.
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Added key: store_based_barrier_key:6 to store
                             for rank: 0
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Rank 0: Completed store-based barrier for
                             key:store_based_barrier_key:6 with 1 nodes.
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Added key: store_based_barrier_key:7 to store
                             for rank: 0
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Rank 0: Completed store-based barrier for
                             key:store_based_barrier_key:7 with 1 nodes.
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Added key: store_based_barrier_key:8 to store
                             for rank: 0
                    INFO     colossalai - torch.distributed.distributed_c10d -
                             INFO: Rank 0: Completed store-based barrier for
                             key:store_based_barrier_key:8 with 1 nodes.
                    INFO     colossalai - colossalai - INFO: /home/user/softw
                             are/python/anaconda/anaconda3/envs/conda-general/li
                             b/python3.10/site-packages/colossalai/context/paral
                             lel_context.py:521 set_device
                    INFO     colossalai - colossalai - INFO: process rank 0 is
                             bound to device 0
[06/16/22 13:30:43] INFO     colossalai - colossalai - INFO: /home/user/softw
                             are/python/anaconda/anaconda3/envs/conda-general/li
                             b/python3.10/site-packages/colossalai/context/paral
                             lel_context.py:557 set_seed
                    INFO     colossalai - colossalai - INFO: initialized seed on
                             rank 0, numpy: 1024, python random: 1024,
                             ParallelMode.DATA: 1024, ParallelMode.TENSOR:
                             1024,the default parallel seed is
                             ParallelMode.DATA.
                    INFO     colossalai - colossalai - INFO: /home/user/softw
                             are/python/anaconda/anaconda3/envs/conda-general/li
                             b/python3.10/site-packages/colossalai/initialize.py
                             :117 launch
                    INFO     colossalai - colossalai - INFO: Distributed
                             environment is initialized, data parallel size: 1,
                             pipeline parallel size: 1, tensor parallel size: 1
Files already downloaded and verified
[06/16/22 13:30:44] INFO     colossalai - colossalai - INFO: /home/user/softw
                             are/python/anaconda/anaconda3/envs/conda-general/li
                             b/python3.10/site-packages/colossalai/initialize.py
                             :266 initialize
                    INFO     colossalai - colossalai - INFO:
                             ========== Your Config ========
                             {'BATCH_SIZE': 16384,
                              'CONFIG': {'fp16': {'mode': <AMP_TYPE.TORCH:
                             'torch'>}},
                              'NUM_EPOCHS': 200}
                             ================================

                    INFO     colossalai - colossalai - INFO: /home/user/softw
                             are/python/anaconda/anaconda3/envs/conda-general/li
                             b/python3.10/site-packages/colossalai/initialize.py
                             :278 initialize
                    INFO     colossalai - colossalai - INFO: cuDNN benchmark =
                             True, deterministic = False
                    WARNING  colossalai - colossalai - WARNING: /home/user/so
                             ftware/python/anaconda/anaconda3/envs/conda-general
                             /lib/python3.10/site-packages/colossalai/initialize
                             .py:304 initialize
                    WARNING  colossalai - colossalai - WARNING: Initializing an
                             non ZeRO model with optimizer class
                    WARNING  colossalai - colossalai - WARNING: /home/user/so
                             ftware/python/anaconda/anaconda3/envs/conda-general
                             /lib/python3.10/site-packages/colossalai/initialize
                             .py:436 initialize
                    WARNING  colossalai - colossalai - WARNING: No PyTorch DDP
                             or gradient handler is set up, please make sure you
                             do not need to all-reduce the gradients after a
                             training step.
 25%|██▌       | 1/4 [00:05<00:16,  5.59s/it]
Traceback (most recent call last):
  File "/home/user/research/Experiments/ColossalAI-Examples/image/resnet/train.py", line 157, in <module>
    main()
  File "/home/user/research/Experiments/ColossalAI-Examples/image/resnet/train.py", line 103, in main
    output = engine(img)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/colossalai/engine/_base_engine.py", line 183, in __call__
    return self.model(*args, **kwargs)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torchvision/models/shufflenetv2.py", line 156, in forward
    return self._forward_impl(x)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torchvision/models/shufflenetv2.py", line 147, in _forward_impl
    x = self.stage2(x)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/container.py", line 141, in forward
    input = module(input)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torchvision/models/shufflenetv2.py", line 85, in forward
    out = torch.cat((x1, self.branch2(x2)), dim=1)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/container.py", line 141, in forward
    input = module(input)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1128, in _call_impl
    result = forward_call(*input, **kwargs)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 447, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 443, in _conv_forward
    return F.conv2d(input, weight, bias, self.stride,
RuntimeError: CUDA out of memory. Tried to allocate 58.00 MiB (GPU 0; 10.76 GiB total capacity; 9.54 GiB already allocated; 9.00 MiB free; 9.59 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 2549731) of binary: /home/user/software/python/anaconda/anaconda3/envs/conda-general/bin/python
Fatal Python error: Segmentation fault

Thread 0x00007ff209a3e700 (most recent call first):
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/threading.py", line 324 in wait
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/threading.py", line 600 in wait
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/rendezvous/utils.py", line 254 in _run
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/threading.py", line 946 in run
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/threading.py", line 1009 in _bootstrap_inner
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/threading.py", line 966 in _bootstrap

Current thread 0x00007ff2e1d5a740 (most recent call first):
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/utils/store.py", line 31 in get_all
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/utils/store.py", line 53 in synchronize
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/utils/store.py", line 67 in barrier
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/agent/server/api.py", line 906 in _exit_barrier
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/agent/server/api.py", line 877 in _invoke_run
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/agent/server/api.py", line 709 in run
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/metrics/api.py", line 125 in wrapper
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 236 in launch_agent
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 131 in __call__
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/run.py", line 715 in run
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/run.py", line 724 in main
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 345 in wrapper
  File "/home/user/software/python/anaconda/anaconda3/envs/conda-general/bin/torchrun", line 33 in <module>

Extension modules: torch._C, torch._C._fft, torch._C._linalg, torch._C._nn, torch._C._sparse, torch._C._special, mkl._mklinit, mkl._py_mkl_service, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg.lapack_lite, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator (total: 22)
Error: failed to run torchrun --nproc_per_node=1 --nnodes=1 --node_rank=0 --rdzv_backend=c10d --rdzv_endpoint=<IP_ADDRESS>:29500 --rdzv_id=colossalai-default-job train.py on <IP_ADDRESS>

Environment
CUDA: 11.4

Could you provide your training code?

I have tried our code with a simple change of model from resnet to shufflenet. It takes about 32521MiB withBATCH_SIZE = 16384.

Hi @songyuc, you can uninstall your current colossalai and install our latest version with
git clone https://github.com/hpcaitech/ColossalAI.git
cd ColossalAI

# install dependency
pip install -r requirements/requirements.txt

# install colossalai
pip install .

There was a bug in previous release that takes up extra GPU memory. With our latest version, BATCH_SIZE=16384 only takes about 10605MiB.

Hi @songyuc, you can uninstall your current colossalai and install our latest version with

git clone https://github.com/hpcaitech/ColossalAI.git

cd ColossalAI

# install dependency

pip install -r requirements/requirements.txt

# install colossalai

pip install .

There was a bug in previous release that takes up extra GPU memory. With our latest version, BATCH_SIZE=16384 only takes about 10605MiB. Hope this could solve your issue.

Thank you for the guide! I will try it later.


PublishError.InsufficientPeers when publishing the first block

When trying to run, I got an error in the beacon and the validator when it publishes its first block .
  Synced - slot: -1 - head: 0 0xdf3e…a887 - finalized: 0x0000…0000:0 - peers: 1
  Synced - slot: 0 - head: 0 0xdf3e…a887 - execution: valid(0xd21d…5656) - finalized: 0x0000…0000:0 - peers: 1
  Error on submitPoolSyncCommitteeSignatures [0] slot=1, validatorIndex=0 PublishError.InsufficientPeers
  Error: **PublishError.InsufficientPeers**
    at Eth2Gossipsub.publish (file:///root/building/lodestar/node_modules/@chainsafe/libp2p-gossipsub/src/index.ts:1957:13)
    at Eth2Gossipsub.publishObject (file:///root/building/lodestar/packages/beacon-node/src/network/gossip/gossipsub.ts:171:20)
    at Eth2Gossipsub.publishSyncCommitteeSignature (file:///root/building/lodestar/packages/beacon-node/src/network/gossip/gossipsub.ts:258:5)
    at async Promise.all (index 0)
    at file:///root/building/lodestar/packages/beacon-node/src/api/impl/beacon/pool/index.ts:181:13
    at async Promise.all (index 0)
    at Object.submitPoolSyncCommitteeSignatures (file:///root/building/lodestar/packages/beacon-node/src/api/impl/beacon/pool/index.ts:151:7)
    at Object.handler (file:///root/building/lodestar/packages/api/src/utils/server/genericJsonServer.ts:41:23)

And an error in geth
  Imported new chain segment               blocks=1 txs=0 mgas=0.000 elapsed="167.023µs" mgasps=0.000 number=1 hash=234448..4be06e dirty=0.00B
  **Beacon backfilling failed**                err="sync cancelled"
  Unexpected account range packet          peer=ae94a64a reqid=4,399,237,705,449,641,073

The 2 geth nodes are connected as peers (checked with admin.peers), the 2 beacon nodes are connected as peers (checked with eth/v1/node/peers), the validator is connected to the first beacon.
I used the validator_keys in the repository, did not generate new ones. Here are the full logs

Hi, you did everything correctly. I see the same messages.
The insufficient-peers error is currently being investigated. See https://github.com/ChainSafe/lodestar/issues/4764
However, if you check the logs on the second beacon node and second geth node, you will see that they normally progress the chain. So this error might be more of a warning than an error. The screenshot in my readme is from the secondary nodes. So unless your network fails to produce blocks and progress the chain, you can mildy ignore this for now.
Edit: apparently your geth node switches to syncing mode after two blocks. This could have a number of reasons. However, for the first 3 slots, everything was fine:
Dec-31 19:08:06.003[]                  [32minfo [39m: Synced - slot: 0 - head: 0 0xdf3e…a887 - execution: valid(0xd21d…5656) - finalized: 0x0000…0000:0 - peers: 1
Dec-31 19:08:18.002[]                  [32minfo [39m: Synced - slot: 1 - head: 1 0x1b1b…f2f0 - execution: syncing(0x2344…e06e) - finalized: 0x0000…0000:0 - peers: 1
Dec-31 19:08:30.002[]                  [32minfo [39m: Synced - slot: 2 - head: 2 0x8c69…6cd9 - execution: syncing(0x1d1c…92a7) - finalized: 0x0000…0000:0 - peers: 1

What you can try:

disable all fast and snap sync modes by forcing geth to use --syncmode full
change chain and network id to something random (maybe someone else is trying the same and your nodes discovered and peered each other)
double-check min genesis time and genesis delay to make sure every node is expecting a genesis event instead of syncing a chain
make sure to run the latest release of geth and lodestar

Hope that helps.

Hi,
The chain was stopping to reproduce blocks after a couple of blocks. I would ignore the issue if the chain was working fine.
Adding --syncmode full fixed my issue, and the chain is working smoothly since yesterday.
I am currently setting geth genisis to timestamp now, starting geth, setting beacon min genesis time to the same exact timestamp, and setting genesis delay to a minute from now, that's why the beacons start from slot -4
Using the latest geth release and lodestar latest code from the default unstable branch.
Thanks again for fixing the issue.


auto location detection, fix search search dialog

Re-did my old changes - search dialog close on selecting location as well as auto location detection for users. Fixed oversized search dialog by removing the extra top cities added in a previous commit by another contributor.
This version should produce no merge conflicts. I have self-tested the code that it produces no other side-effects on the app.

@Yasir761 any updates?

Hi, sorry to re-start this discussion again however you spelled hacktoberfest wrong when adding the topic to your repo (you spelled it hactoberfest). Kindly correct, thanks!


Plugin showing only isTesting = true

Hello,
When isTesting:true = no problem,
But if isTesting:false = "No ad to show"
I have 2 ads campaign in google DFP (they works fine if I test on html page with Publisher Tags) but nothing in my app...
Here is the code :
`function LoadPub() {
      // select the right Ad Id according to platform
          var admobid = {};
          if( /(android)/i.test(navigator.userAgent) ) {
            admobid = { // for Android
              banner: '/139897868/RCHYBRID1',
              interstitial: '/139897868/RCHYBRIDSPLASH'
            };
          } else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
            admobid = { // for iOS
              banner: '/139897868/RCHYBRID1',
              interstitial: '/139897868/RCHYBRIDSPLASH'
            };
          } else {
            admobid = { // for Windows Phone
              banner: '/139897868/RCHYBRID1',
              interstitial: '/139897868/RCHYBRIDSPLASH'
            };

          }

      if (! AdMob ) { console.log( 'admob plugin not ready' ); } else { console.log( 'admob plugin R E A D Y' );  }

      	// this will create a banner on startup
        AdMob.createBanner( {
              adId: admobid.banner,
              position: AdMob.AD_POSITION.BOTTOM_CENTER,
              isTesting: false, // TODO: remove this line when release
              overlap: false,
              offsetTopBar: false,
              bgColor: 'black',
              success: function(){
                $rootScope.CloseBannerButton = true;
                $rootScope.adDisplayed = true;
              },
              error: function(){
                $rootScope.CloseBannerButton = false;
                $rootScope.adDisplayed = false;
              }
            } );
            document.addEventListener('onAdLoaded',function(data){
                  if(data.adType == 'banner') {
                  	AdMob.showBanner();
                  	$rootScope.CloseBannerButton = true;
                  }
                  else if(data.adType == 'interstitial') {
                  	interstitialIsReady = true;
                  }
              });
              AdMob.prepareInterstitial({
                adId: admobid.interstitial,
                isTesting: false, // TODO: remove this line when release
                autoShow: true
              });

               document.addEventListener('onAdFailLoad',function(data){
                  if(data.adType == 'banner') $rootScope.CloseBannerButton = false;
              });

    }`

If someone have an idea....
Thx

If you can see the test Ad, it means the SDK and plugin are working fine.
Are you running test one a real device?

You're right, yes real iOS device, app from appStore (not from testflight)

I see that you are using the same ad unit ID for 3 platforms:
banner: '/139897868/RCHYBRID1',
interstitial: '/139897868/RCHYBRIDSPLASH'
I guess you cannot mix use it, and need create for each of the platforms.
At lease for AdMob, it's one of the major fail reason. Please double check.

Ok, it's done, nut no result :(
Here is a console message, no links ?
<Google:HTML> You are currently using version 7.7.0 of the SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be downloaded from http://goo.gl/iGzfsP. A full list of release notes is available at https://developers.google.com/admob/ios/rel-notes.

Then try upgrade the plugin to latest version (which is built with SDK v7.8.1), see:
https://github.com/floatinghotpot/cordova-admob-pro/commits/master


Automatic-questions

core gameplay loop. might interfere with tutorial

BUG! extra copies of events are being added.

bug solved

Branch is UTD with main. Approved.


Generate a Gallery demo transition-durations performance histogram

Save the duration of the first timeline Frame event that follows a 'Start Transition' event. The Gallery app adds a 'Start Transition' event when a demo is launched.
To run the benchmark app:
cd ./examples/flutter_gallery
flutter drive --trace-startup --profile --target=test_driver/transitions_perf.dart

The benchmark takes about 2 minutes to complete on a Nexus 5x.
The data is saved in examples/flutter_gallery/build/transition_durations.timeline.json.
Currently each gallery demo app is launched twice, both Frame durations (microseconds) are saved. Because of startup effects like dynamic compilation, we expect the second duration to be smaller than the first. We expect both durations to be less than 100ms.

@yjbanov

LGTM


xadapt or adapt?

The docs state that it's xt::adapt but the function is currently called xt::xadapt.

http://xtensor.readthedocs.io/en/latest/adaptor.html?highlight=xt%3A%3Aadapt#adapting-std-vector

To be consistent with the names of the other functions, it should be adapt. (Starting with an x is generally for the classes)

+1 on changing to adapt(


[BUG]

Message: Interface\AddOns\GSE\API\Storage.lua:1397: attempt to perform arithmetic on local 'clicks' (a string value)
Time: Fri Jul 30 10:09:02 2021
Count: 1
Stack: Interface\AddOns\GSE\API\Storage.lua:1397: attempt to perform arithmetic on local 'clicks' (a string value)
[string "=[C]"]: ?
[string "@Interface\AddOns\GSE\API\Storage.lua"]:1397: in function processAction' [string "@Interface\AddOns\GSE\API\Storage.lua"]:1322: in function processAction'
[string "@Interface\AddOns\GSE\API\Storage.lua"]:1517: in function CompileTemplate' [string "@Interface\AddOns\GSE\API\Storage.lua"]:515: in function OOCUpdateSequence'
[string "@Interface\AddOns\GSE\API\Events.lua"]:477: in function `?'
[string "@Interface\AddOns\Details\Libs\AceTimer-3.0\AceTimer-3.0.lua"]:55: in function <...ce\AddOns\Details\Libs\AceTimer-3.0\AceTimer-3.0.lua:50>
Locals:

Only get this error on one character.
Using GSE 3.0.41
Can not add or edit Macro this character only others allow adding and editing

Without your GSE.lua file there is nothing I can do to help you beyond saying.  There is a fault with a macro on a character. This may be a bug or it may just be that you need to fix a macro but you are not giving me the information I need to solve why this is happening.  (The bug template even says that the first thing I will ask for to help you is for your GSE.lua file)

Moving this to a discussion.


Can't save specific address with pt-dump

I'm trying to use pt-dump on a regular x64 environment,
I would like to save a specific address, however whenever I try to save one address I get the following error:
pt -save -addr 0xffff88813805f440

or
pt -addr 0xffff88813189e000

fail :/

Could you assist in solving this issue?
It sounds like there some weird parsing error there while parsing the address itself,
maybe I'm not using the tool correctly?
Thanks,
Guy

Hmm, I don't know why you get the exception, but the addr value must be a physical address, not a virtual address.
You can p /x $cr3 if you're on x86-64 to get the physical address.
I added this option cause I thought it would be neat to print the page tables from a specific physical address if you happen to be working with multiple different address spaces, for example Linux kernel and OVMF.
In my case:
pwndbg> p /x $cr3
$2 = 0x1a0a000
pwndbg> pt -save -addr 0x1a0a000 -filter x
Address :   Length   Permissions
0xffff98d08009a000 :   0x1000 | W:0 X:1 S:1 UC:0 WB:1
0xffffffffb1800000 : 0x7cf000 | W:0 X:1 S:1 UC:0 WB:1
0xffffffffc0073000 :   0x1000 | W:0 X:1 S:1 UC:0 WB:1
I think the parsing error you get happens when the scripts tries to translate the Guest Physical Address to the Host Virtual Address, but I may be mistaken.
Let me know if this helps :)


Fixed #32143 -- Used EXISTS to exclude multi-valued relationships.

ticket-32143

A bit of research I did on the subject for PostgreSQL and MySQL

https://www.percona.com/blog/2020/04/16/sql-optimizations-in-postgresql-in-vs-exists-vs-any-all-vs-join/
https://dev.mysql.com/doc/refman/8.0/en/subquery-optimization-with-exists.html

buildbot, test on oracle.

@charettes Thanks :star: I added small test to check that we use EXISTS.

We should probably also test the return NotImplemented branches that didn't exist before.

There are implicitly tested, I don't see much value in adding multiple assertions with mock.ANY. Especially for classes that are not used directly by users.

@charettes Thanks :+1:


475/simple sequential chain

addresses #475
Added SimpleSequentialChain implementation based on the one from the python version
This is my first PR here so please excuse me if I messed some conventions up. The functionality is there but due to some differences between Python and TS classes, I wasn't sure how should I proceed with the validation that is included in the Python version.
I also added the some example docs site for this specific class as it's done for the LLM.
Few things to consider:

I added both integration and unit tests for the implementation. I'm not sure if both of them are required because some of them cover the same scenario (i.e. joining two chains together).
The original implementation validates the chains before creating the SimpleSequentialChain object i.e. it checks whether there is a single input and output for each chain. In the case of the TS implementation, the property outputKey is not available on the BaseChain but as a part of some chains (for example LLMChain). Because I used BaseChain as a type of the chains that are passed to the SimpleSequentialChain the way to check for this would be to do some casting and then check if the property outputKey is available on each chain. I would appreciate some input on how I should proceed with this.
The original implementation assumes that both input and output are strings. Should this condition be also preserved when validating the chains?

I would appreciate some hints on this @nfcampos. Thanks in advance for any input!

This is great @kwkr I'm adding outputKeys to BaseChain here #843 once that's in you can rebase and finish the validation logic


AndroidInappPurchasePlugin.java uses or overrides a deprecated API.

When compiling a release build for Android, I get a Gradle warning that the plugin "uses or overrides a deprecated API".
Version of flutter_inapp_purchase
0.9.2
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
No warnings from Gradle
Actual behavior
/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inapp_purchase-0.9.2/android/src/main/java/com/dooboolab/flutterinapppurchase/AndroidInappPurchasePlugin.java:354: warning: [deprecation] addOldSku(String) in Builder has been deprecated
    builder.addOldSku(oldSku);

Tested environment (Emulator? Real Device?)
Emulator
Steps to reproduce the behavior
Create a flutter app, add the plugin and run android build apk --release (with Xlint:deprecated to get the details)

Thanks for reporting this. @magnuswikhog could you kindly add the newer API for the maintenance of the current repository?

Fixed from 2.0.0+4.

I got this message with 2.2.0

Note:   flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inapp_purchase-2.2.0/android/src/main/java/com/dooboolab/flutterinapppurchase/AndroidInappPurchasePlugin.java uses or overrides a deprecated API.

The same issue with 2.2.0 and only in Android

Hello @hyochan , looks like it still happens in 2.2.0.

I have the same issue with 2.2.0

It is caused by deprecated API - setOldSku(oldSku). I believe, it should be setOldSku(oldSku, purchaseToken).
But, I am not quite sure how I should get the token. Is it with
   final String token = call.argument("token"); ?


Add assert to check if confirmed is > 0

Somewhere after #207 the confirmed flag stopped getting computed properly.

LGTM


basecoin crash when no internet

I[06-08|09:10:56.734] Applying block                               module=consensus height=655
I[06-08|09:10:56.734] Applying block                               module=consensus height=656
I[06-08|09:10:56.735] Completed ABCI Handshake - Tendermint and App are synced module=consensus appHeight=0 appHash=
I[06-08|09:10:56.741] Starting EventSwitch                         module=types impl=EventSwitch
I[06-08|09:10:56.741] This node is a validator                     module=consensus
I[06-08|09:10:56.748] Starting Node                                module=node impl=Node
I[06-08|09:10:56.749] Local listener                               module=p2p ip=:: port=46656
I[06-08|09:10:56.749] Getting UPNP external address                module=p2p
I[06-08|09:10:59.750] Could not perform UPNP discover              module=p2p error="write udp4 <IP_ADDRESS>:62196-><IP_ADDRESS>:1900: i/o timeout"
panic: Panicked on a Crisis: Could not determine external address!

goroutine 1 [running]:
github.com/tendermint/tmlibs/common.PanicCrisis(0x16ea940, 0xc4216ee3d0)
	/Users/garie/gocode/src/github.com/tendermint/tmlibs/common/errors.go:33 +0xdd
github.com/tendermint/tendermint/p2p.NewDefaultListener(0xc4204b0040, 0x3, 0xc4204b0046, 0xd, 0x1c89000, 0x1c89040, 0xc4207a45a0, 0xd, 0x17f65dc)
	/Users/garie/gocode/src/github.com/tendermint/tendermint/p2p/listener.go:93 +0x72f
github.com/tendermint/tendermint/node.(*Node).OnStart(0xc420442360, 0xc4216ee030, 0xd)
	/Users/garie/gocode/src/github.com/tendermint/tendermint/node/node.go:237 +0x1f5
github.com/tendermint/tmlibs/common.(*BaseService).Start(0xc420442360, 0xc42046c820, 0x1c7f740, 0xc4204b9040)
	/Users/garie/gocode/src/github.com/tendermint/tmlibs/common/service.go:105 +0x482
github.com/tendermint/basecoin/cmd/commands.startTendermint(0xc42012cc00, 0x16, 0xc420468f60, 0xc4204b8640, 0x2)
	/Users/garie/gocode/src/github.com/tendermint/basecoin/cmd/commands/start.go:154 +0x356
github.com/tendermint/basecoin/cmd/commands.startCmd(0x1ccc840, 0x1cf3b68, 0x0, 0x0, 0x0, 0x0)
	/Users/garie/gocode/src/github.com/tendermint/basecoin/cmd/commands/start.go:104 +0xc56
github.com/spf13/cobra.(*Command).execute(0x1ccc840, 0x1cf3b68, 0x0, 0x0, 0x1ccc840, 0x1cf3b68)
	/Users/garie/gocode/src/github.com/spf13/cobra/command.go:647 +0x3f8
github.com/spf13/cobra.(*Command).ExecuteC(0xc42007c6c0, 0x2, 0x2, 0xc42012cca0)
	/Users/garie/gocode/src/github.com/spf13/cobra/command.go:726 +0x339
github.com/spf13/cobra.(*Command).Execute(0xc42007c6c0, 0xc420460310, 0x16)
	/Users/garie/gocode/src/github.com/spf13/cobra/command.go:685 +0x2b
github.com/tendermint/tmlibs/cli.Executor.Execute(0xc42007c6c0, 0x17f5a0b, 0x2)
	/Users/garie/gocode/src/github.com/tendermint/tmlibs/cli/setup.go:92 +0x4e
main.main()
	/Users/garie/gocode/src/github.com/tendermint/basecoin/cmd/basecoin/main.go:33 +0x1c3

This issue stems from Tendermint Core, agree that it would be nice to test code locally - aka do not crash here, although I think it makes sense that it crashes here generally right... In a production setting you don't want to start tendermint in isolation on your own computer and think everything is okay

@rigelrozanski no prob! I just hope tendermint will not crash because there is a connectivity issue at some point ;)

hmm... so if the network fails for a bit and then comes back on Tendermint will panic? That would bad

related: https://github.com/tendermint/go-p2p/issues/14

Closing this issue.  Please follow the issue in https://github.com/tendermint/tendermint/issues/537


Cache restore problem  (gzip: Cannot exec)

What is needed for cache restore ?
tar.exe can't extract cache.tgz
Restoring package cache...
  Received 0 of 726562720 (0.0%), 0.0 MBs/sec
  Received 0 of 726562720 (0.0%), 0.0 MBs/sec
  Received 33554432 of 726562720 (4.6%), 10.7 MBs/sec
  Received 62914560 of 726562720 (8.7%), 15.0 MBs/sec
  Received 88080384 of 726562720 (12.1%), 16.8 MBs/sec
  Received 121634816 of 726562720 (16.7%), 19.3 MBs/sec
  Received 142606336 of 726562720 (19.6%), 19.4 MBs/sec
  Received 167772160 of 726562720 (23.1%), 20.0 MBs/sec
  Received 188743680 of 726562720 (26.0%), 20.0 MBs/sec
  Received 201326592 of 726562720 (27.7%), 19.2 MBs/sec
  Received 222298112 of 726562720 (30.6%), 19.3 MBs/sec
  Received 234881024 of 726562720 (32.3%), 18.7 MBs/sec
  Received 251658240 of 726562720 (34.6%), 18.4 MBs/sec
  Received 272629760 of 726562720 (37.5%), 18.6 MBs/sec
  Received 293601280 of 726562720 (40.4%), 18.6 MBs/sec
  Received 310378496 of 726562720 (42.7%), 18.5 MBs/sec
  Received 322961408 of 726562720 (44.5%), 18.1 MBs/sec
  Received 343932928 of 726562720 (47.3%), 18.2 MBs/sec
  Received 364904448 of 726562720 (50.2%), 18.3 MBs/sec
  Received 385875968 of 726562720 (53.1%), 18.4 MBs/sec
  Received 406847488 of 726562720 (56.0%), 18.5 MBs/sec
  Received 432013312 of 726562720 (59.5%), 18.7 MBs/sec
  Received 452984832 of 726562720 (62.3%), 18.8 MBs/sec
  Received 486539264 of 726562720 (67.0%), 19.3 MBs/sec
  Received 511705088 of 726562720 (70.4%), 19.5 MBs/sec
  Received 532676608 of 726562720 (73.3%), 19.5 MBs/sec
  Received 562036736 of 726562720 (77.4%), 19.8 MBs/sec
  Received 587202560 of 726562720 (80.8%), 20.0 MBs/sec
  Received 616562688 of 726562720 (84.9%), 20.3 MBs/sec
  Received 633339904 of 726562720 (87.2%), 20.1 MBs/sec
  Received 658505728 of 726562720 (90.6%), 20.2 MBs/sec
  Received 696254464 of 726562720 (95.8%), 20.7 MBs/sec
  Received 718174112 of 726562720 (98.8%), 20.7 MBs/sec
  Received 722368416 of 726562720 (99.4%), 20.3 MBs/sec
  Cache Size: ~693 MB (726562720 B)
  "C:\Program Files\Git\usr\bin\tar.exe" -xf C:/actions-runner/_work/_temp/81a46d3f-90b0-4532-9afc-050c4a21f465/cache.tgz -P -C C:/actions-runner/_work/test/test --force-local -z
  tar (child): gzip: Cannot exec: No such file or directory
  tar (child): Error is not recoverable: exiting now
  /usr/bin/tar: Child returned status 2
  /usr/bin/tar: Error is not recoverable: exiting now
  Warning: Failed to restore: "C:\Program failed with error: The process 'C:\Program Files\Git\usr\bin\tar.exe' failed with exit code 2
  Cache restore for msys2-pkgs-upd:true-conf:c2ff7967, got undefined
  Cache restore for msys2-pkgs-upd:true-conf:c2ff7967, got undefined

https://github.com/actions/toolkit/issues/1311

Not much we can do here.
If all fails you can disable caching via https://github.com/msys2/setup-msys2?tab=readme-ov-file#cache


Tweaking profile to show products created

Hey Nick,
Thanks a ton for making this! Newbie question here:
How can I tweak the profiles to show both products a person creates & the ones they have voted on?
Thanks!

Change this line: https://github.com/meteoric/meteorhunt/blob/master/server/publications.js#L55 to something like this:
return Products.find({$or:[{_id: {$in: user.profile.votedProductIds}}, {userId: user._id}]});

Thank you, Nick.
I've been toying with it for the past few hours but to no avail. I've added that logic, but it seems like I need to make an adjustment to this line: https://github.com/meteoric/meteorhunt/blob/master/both/collections/users.js#L7
But unfortunately adding the {userId: user._id} doesn't update what shows.


react snapshot

How would you go about using something like React Snapshot for pre-rendering applications?
Currently mirror also overrides the render method:
https://github.com/mirrorjs/mirror/blob/master/src/render.js
and so does react snapshot:
https://github.com/geelen/react-snapshot/blob/master/src/index.js

In Mirror's render method, if you are in the browser env, your component will be rendered to the document; while if not, the Root component will be returned.
So, basically you can invoke reactSnapshot.render(mirror.render(YourComponent)) for pre-rendering (I haven't tried this, but it should be OK).

Basically it works but had to write something like this:
const Base = mirror.render(
  <LocaleProvider locale={enUS}>
    <Router>
      <App />
    </Router>
  </LocaleProvider>, document.getElementById('root')
)

snapshotRender(<Base/> , document.getElementById('root'))

Without having it in a constant and passing it separately React complains about.
"ReactDOM.render(): Invalid component element. Instead of passing a class like Foo, pass React.createElement(Foo) or ."
Or write this.
snapshotRender(
  React.createElement(
    mirror.render(
      <LocaleProvider locale={enUS}>
        <Router>
          <App />
        </Router>
      </LocaleProvider>, document.getElementById('root')
    ), document.getElementById('root')
  ), document.getElementById('root')
)

Works but not very nice looking :)

mirror.render returns a component (Root) if you are not in a browser, to render this component by snapshotRender, you should pass an element (<Root />) to it.
Sorry for the incorrectness in my last reply 😂


PDF Citation Cover Page feature no longer working

Describe the bug
When the PDF Citation Cover Page feature is enabled, PDF files fail to load. No error appears in the dspace.log file.
This was originally reported to me in version 7.6.2. I was able to reproduce the problem using the latest version of DSpace running locally as per https://wiki.lyrasis.org/display/DSPACE/Testing+DSpace+Github+Pull+Requests as of 11/12/24.
To Reproduce

Enable the feature with configuration similar to:

citation-page.enable_globally: true
citation-page.header1: "TEST Line One"
citation-page.header2: "test line 2"
citation-page.footer: "TEST Footer"

Restart DSpace
Open the dev tools in your browser
Access an item with a PDF bitstream
Observe the PDF tries to load in your browser, but eventually fails with an error:

NS_ERROR_NET_PARTIAL_TRANSFER

Expected behavior
The PDF loads with a cover page, generated on-the-fly.
Related work
Unknown

Hi @saschaszott ,
The person who reported the issue to me (in 7.6.2) said, "My testing was done in Chrome, but other colleagues have tested Edge/Firefox and similar results."
I personally confirmed the issue in the current version of the code in Firefox only.

UPDATE:
Just confirmed the issue in the latest DSpace using Chrome. Similar behavior, different error: "Failed to load PDF document."  Is the error reproduceable with different DSpace items?

@saschaszott
No errors or other messages appear in dspace.log. All PDFs tested exhibit the problem when the feature is enabled, unless I'm logged in as an admin. Here are screenshots of the errors in the browser's dev tools:
Firefox:

Chrome:

In the reporting client's 7.6.2 repo, The error did not occur when I was logged in as an admin, but did occur on the same file when I was not logged in. When I downloaded these files, the PDF with the cover sheet added was unopenable, labeled corrupt by my OS, and (when opened in a text editor) had changed to a different PDF version (original: PDF-1.6; cover sheet: PDF-1.4). The files are attached for comparison.
SAMPLE.pdf
SAMPLE_WITH_COVER.pdf

Seems like an authorization issue. @dheles , is the ORIGINAL bitstream access restricted?

@saschaszott None of the items I've tested have had access restrictions of any kind.


401 Client Error

Feature request template
Title: 401 Client Error
Bug Template
Title: One line description
Description:

in these day,I configure the catorgraphy according the skips you gave，install neoj4,cartograph，and there are no problems.But when I run cartography,I test about Github ,it showed 401 Client Error

Logs:

--- Logging error ---
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/intel/github/init.py", line 35, in start_github_ingestion
auth_data['name'],
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/intel/github/github.py", line 273, in sync_github
repos_json = get_github_repos(github_api_key, github_url, organization)
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/intel/github/github.py", line 87, in get_github_repos
results = call_github_api(query, variables, token, api_url)
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/intel/github/github.py", line 20, in call_github_api
response.raise_for_status()
File "/home/spy/.local/lib/python3.5/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/graphql
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/logging/init.py", line 980, in emit
msg = self.format(record)
File "/usr/lib/python3.5/logging/init.py", line 830, in format
return fmt.format(record)
File "/usr/lib/python3.5/logging/init.py", line 567, in format
record.message = record.getMessage()
File "/usr/lib/python3.5/logging/init.py", line 330, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/usr/local/bin/cartography", line 11, in
load_entry_point('cartography==0.19.2', 'console_scripts', 'cartography')()
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/cli.py", line 259, in main
return CLI(default_sync, prog='cartography').main(argv)
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/cli.py", line 239, in main
return cartography.sync.run_with_config(self.sync, config)
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/sync.py", line 136, in run_with_config
return sync.run(neo4j_driver, config)
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/sync.py", line 70, in run
stage_func(neo4j_session, config)
File "/usr/local/lib/python3.5/dist-packages/cartography-0.19.2-py3.5.egg/cartography/intel/github/init.py", line 38, in start_github_ingestion
logger.error("Could not complete request to the GitHub API: {}", e)
Message: 'Could not complete request to the GitHub API: {}'
Arguments: (HTTPError('401 Client Error: Unauthorized for url: https://api.github.com/graphql',),)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
and my configuraioin about Github is that:
str = json.dumps({"organization":[{"token":"1c13f384f07d9cb93f19fc3bd349182ca2ae3231","url":"https://api.github.com/graphql","name":"spandry"}]})
then encode it as env named gith_var  and use it in terminal:
cartography --github-config-env-var gith_var
as a result,it showed 401 Client Error .......
I am a beginner and very interested in this tool, hope someone can help me,thank everyone!!

@tayasteere Can you take a look?

@492917328 Also if that is a real token, please revoke it and use a new one :-)

@achantavy I tried to create a new one and use it but the result showed the same error.....

Can you make a successful request with your token using curl? The example from Github documentation (https://developer.github.com/v4/guides/forming-calls/#authenticating-with-graphql) is
curl -H "Authorization: bearer token" -X POST -d "
{
"query": "query { viewer { login }}"
}
" https://api.github.com/graphql

@tayasteere  the curl is successful,it showed me about my login name.But the error was still unsolved.Do you have any other solutions?  Thank your help！！

@492917328 Can you please provide a screenshot of the permissions for your token?

Ping @492917328


corpus(tinygo): add panic reproducer for tinygo with dependency

While testing the Chicory SDK I found an issue with initializing a TinyGo module with a dependency.
The issue is in the initializer, and it looks like it's an index out of bound (I tested with other runtimes and they initialize successfully).
Because this relies on an external dependency, I modified wasm-corpus so that the TinyGo files are organized as modules.
PR in draft, since this is only the reproducer, without the solution.

interesting, so compiling with -gc=leaking and adding a small tracing breakpoint logging the function name, we get:
_start
runtime.alloc
runtime.alloc
runtime.runqueuePushBack
tinygo_launch
runtime.run$1$gowrapper
runtime.run$1
__wasm_call_ctors
__wasilibc_populate_preopens
__wasi_fd_prestat_get
__imported_wasi_snapshot_preview1_fd_prestat_get
runtime.args_sizes_get
time.now
runtime.clock_time_get
errors.New
runtime.alloc
errors.New
runtime.alloc
errors.New
runtime.alloc
runtime.lookupPanic
runtime.runtimePanicAt
runtime.printstring
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.printstring
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.putchar
runtime.printnl
runtime.putchar
runtime.fd_write

oughh. So, the issue was that the default WasiOptions.Arguments is an empty list, but the C/UNIX convention is that args[0] should be defined as the executable. So, if you don't check the args you are fine, but if anyone by chance does 💥. I suppose that my import by transitive import ends up calling some initializer that peeks at the args.
Ok technically this is not a bug in Chicory, so I suppose we might close it.


Resize problems

I experienced some problems when using ColorPicker with storyboard and constraints. I managed to solve them, but not sure if it was a best way. So, either I can make a pull request, or you can fix by yourself.

Crash in CFDataSetLength(mutableData, size) in PickerImage.
I changed this line to
mutableData = CFDataCreateMutable(kCFAllocatorDefault, size)
and made all mutableData uses (changeSize and writeColorData) synchronized with a DispatchQueue.

ColorPicker and HuePicker store color data as absolute coordinates, which become wrong after resizing. I made coordinates to be relative, so that in ColorPicker x is exactly saturation and y is exactly brightness, while in HuePicker x is exactly hue.

That's indeed not implemented. Please make a pull request

Seems like you can close this issue now. Btw, are you going to update the pod?


397 excerpt search ui

Excerpt/article icon on search results (#397)
Add excerpt/article book/journal display on search results

I see that you've fixed the item type aria label so it is only included for non full works in your other branch, so I'm going to go ahead and merge these.


init-pants should not require a pants.ci.toml

Currently that is its default value for the pants-ci-config key, and it fails if that file doesn't exist.
We should probably allow that file to not to exist? At least if it wasn't explicitly set (do actions allow us to detect whether it was set explicitly?)

@cognifloyd thoughts?

Hmm. Good point.
We can add a workout step that processes the default. It could still use pants.ci.toml if it exists and fall back to pants.toml.

+1 to your proposal @cognifloyd

What do you think of #13?
I haven't tested it yet, but that's what I think will work.


[FEATURE] Snake Game

Description
This game is developed by html,css and js tech stacks and you can play it easily by using the arrows !
A snake is given to control which will change it length upon eating
there are fruits which appear randomly one after another.
Screenshots
No response
Additional information
No response

Description
This game is developed by html,css and js tech stacks and you can play it easily by using the arrows ! A snake is given to control which will change it length upon eating there are fruits which appear randomly one after another.
Screenshots
No response
Additional information
No response

@panwar8279

wave @SimranLahrani842
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.

Please assign me this @panwar8279

Hi @SimranLahrani842 , I am assigning this task to you. Kindly complete your work within a week. Make sure no any duplicacy of game will create. Good luck for your work!


Edit menu's position error in settings.json

VSCode Version: tested 1.35.1, 1.37, 1.38.1, probably also exists in earlier versions.
OS Version: Win10 and VM Win7.

Steps to Reproduce:

Open Settings.json
Click any edit menu which is on the bottom of the screen.
If you release your mouse, the entry will be selected immediately. Because the menu doesn't show up in the right place.

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

@imba-tjd I cannot repro it. Are there any specific steps to follow?

    "window.titleBarStyle": "custom",
    "workbench.settings.editor": "json",
    "workbench.settings.useSplitJSON": true,

These should be enough. What really matters is the first one.

On Sat, 21 Sep 2019 at 14:17, 谭九鼎<EMAIL_ADDRESS>wrote:

VSCode Version: tested 1.37-1.38.1, probably also exist in earlier
versions.
OS Version: Win10 and VM Win7.

Steps to Reproduce:

Open Settings.json
Click any edit menu which is on the bottom of the screen.
If you release your mouse, the entry will be selected immediately.
Because the menu doesn't show up in the right place.

[image: 图片]
Does this issue occur when all extensions are disabled?: Yes
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

--
null

I could reproduce this in windows. Even though we do not maintain the old settings editor, this looks to me a menu specific issue. Hence assigning to @sbatten


Trivial README change

Landing as TBR as part of the roll

Why not just do an empty commit?
git push --allow-empty -m "Pushing empty commit to trigger a build"


Plasma System Monitor

Plasma System Monitor
It's a new system monitor, replacement for KSysGuard.

homepage URL: https://apps.kde.org/en/plasma-systemmonitor
source URL: https://github.com/KDE/plasma-systemmonitor
license: LGPL-3.0-or-later
platforms: Linux

https://github.com/NixOS/nixpkgs/pull/117104


RaspiBlitz at IPv6 only

Is there a way to (re)configure an existing/already running RaspiBlitz to an IPv6 only configuration?
IPv4 wise I'm behind an ISP NAT so I get an external IPv4 address but will never be reachable by this.
I already configured my RaspiBlitz to use IPv6 and a DynDNS (also IPv6 only), but my Bitcoin- and Lightning-Node is only listed by the (unreachable) IPv4 address.

The idea is to go with TOR-by-default. IPv6 is would kind-of be the opposite direction.
Do you still feel a need for this?

The idea is to go with TOR-by-default. IPv6 is would kind-of be the opposite direction.
ok, I had not looked into the TOR option yet

But as I "suffer" from the CGNat my ISP is giving me I had recently looked into the raspiblitz source code during my update to v1.6.0.
I have a "hardcoded" solution which is surely not desirable but may be useful for reference
Perhaps a Setting/Option may be feasible
I would like to contribute but I'm not very keen with the way to collaborate on a public github project
So I may need some advice here

@PatrickScheich If its just some additional/modified lines just paste them here as example and then we can see how complex it would be to add that as an option.

@PatrickScheich If its just some additional/modified lines just paste them here as example and then we can see how complex it would be to add that as an option.

great, I attached a Zip containing the 4 files with changes
IPv6 changes.zip

_background.sh
_bootstrap.sh
00infoBlitz.sh
config.scripts/bonus.electrs.sh

basically I changed
freshPublicIP=$(curl -s http://v4.ipv6-test.com/api/myip.php 2>/dev/null)

by
freshPublicIP=$(curl -s http://v6.ipv6-test.com/api/myip.php 2>/dev/null)

and added the square brackets around the new IPv6 address as this is needed in lnd.service
unfortunately there are usages of publicIP with the netcat tool which does not like the square backets, so I introduces an additional (internal) variable to get an un-brackified-version at those points.

@PatrickScheich will take a look at your proposed changes and see if we can use them for v1.6.1 in any kind of way.

@PatrickScheich I added your changes, moved a lot of them into the internet.sh script. You can now test them by updating your v1.6 RaspiBlitz with: MENU > UPADTE > PATCH > PATCH-MENU > PATCH
Then you can on terminal switch on IPv6 with ./config.scripts/internet.sh ipv6 on (make sure TOR is off and reboot). Then you should see that the Bitcoin & LND pickup the IPv6 address.

@PatrickScheich I added your changes, moved a lot of them into the internet.sh script. You can now test them by updating your v1.6 RaspiBlitz with: MENU > UPADTE > PATCH > PATCH-MENU > PATCH
Then you can on terminal switch on IPv6 with ./config.scripts/internet.sh ipv6 on (make sure TOR is off and reboot). Then you should see that the Bitcoin & LND pickup the IPv6 address.

@rootzoll thanks, I have done as proposed but /home/admin/_background.sh seems broken
it terminates with a syntax error
Sep 23 14:47:39 DesertRetreatLN _background.sh[7910]: _background.sh STARTED
Sep 23 14:47:39 DesertRetreatLN _background.sh[7910]: /home/admin/_background.sh: line 139: syntax error near unexpected token `fi'
Sep 23 14:47:39 DesertRetreatLN _background.sh[7910]: /home/admin/_background.sh: line 139: `  fi'
Sep 23 14:47:39 DesertRetreatLN systemd[1]: background.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 23 14:47:39 DesertRetreatLN systemd[1]: background.service: Failed with result 'exit-code'.
Sep 23 14:47:49 DesertRetreatLN systemd[1]: background.service: Service RestartSec=10s expired, scheduling restart.
Sep 23 14:47:49 DesertRetreatLN systemd[1]: background.service: Scheduled restart job, restart counter is at 17760.
Sep 23 14:47:49 DesertRetreatLN systemd[1]: Stopped RaspiBlitz Background Monitoring Service.
Sep 23 14:47:49 DesertRetreatLN systemd[1]: Started RaspiBlitz Background Monitoring Service.
Sep 23 14:47:49 DesertRetreatLN _background.sh[8323]: _background.sh STARTED
Sep 23 14:47:49 DesertRetreatLN _background.sh[8323]: /home/admin/_background.sh: line 139: syntax error near unexpected token `fi'
Sep 23 14:47:49 DesertRetreatLN _background.sh[8323]: /home/admin/_background.sh: line 139: `  fi'
Sep 23 14:47:49 DesertRetreatLN systemd[1]: background.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 23 14:47:49 DesertRetreatLN systemd[1]: background.service: Failed with result 'exit-code'.
Sep 23 14:47:59 DesertRetreatLN systemd[1]: background.service: Service RestartSec=10s expired, scheduling restart.
Sep 23 14:47:59 DesertRetreatLN systemd[1]: background.service: Scheduled restart job, restart counter is at 17761.
Sep 23 14:47:59 DesertRetreatLN systemd[1]: Stopped RaspiBlitz Background Monitoring Service.
Sep 23 14:47:59 DesertRetreatLN systemd[1]: Started RaspiBlitz Background Monitoring Service.
Sep 23 14:47:59 DesertRetreatLN _background.sh[8587]: _background.sh STARTED

It turns out that there is an else...fi block which causes this syntax error, lines 135 to 137.
I attached the corrected _background.sh for your reference
_background.sh.txt

@PatrickScheich thanks .. fix is now merged into v1.6 brach. You can patch update if you want to continue testing.

OK not able to confirm the IPv6 but changes seem not breaking any IPv4 environment. So this will be part of v1.6.1 release. Closing issue.


Split the routing results to its own function.

This allows the core logic of the RoutingMiddleware to be extended, without having to copy & paste the core logic.

Coverage remained the same at 100.0% when pulling 8673c408b281bc8a58bb967cc95a3c5631422afb on dlundgren:split-resolve-routing into 61093d9ca95dfaa34025f49009e90b03c9cef03b on slimphp:4.x.

Thank you for your contribution @dlundgren!


[Feature] Restore Istio relative e2e back

Search before asking

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

Description
Those tests are important, I just disable them through https://github.com/apache/skywalking/pull/11371 to avoid PR being blocked.
Use case
No response
Related issues
No response
Are you willing to submit a pull request to implement this on your own?

[ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

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

Other tests disabled. https://github.com/apache/skywalking/pull/11384


Helm release tests did not catch fatal error in applicationautoscaling

Describe the bug
Prior to this pull request, the applicationautoscaling Helm charts contained an outdated file called "service.yaml". The file that replaced it, in the code-generator, was added ("metrics-service.yaml"), but this file was never deleted.
"service.yaml" references a ".Values.service.type" field, which is not present in "values.yaml", which causes the following fatal error when installing the chart:
Error: template: applicationautoscaling-chart/templates/service.yaml:24:18: executing "applicationautoscaling-chart/templates/service.yaml" at <.Values.service.type>: nil pointer evaluating interface {}.type

The commits prior to the fix all successfully passed the helm release pre-submit test (e.g. https://prow.ack.aws.dev/view/s3/ack-prow-logs/pr-logs/pull/aws-controllers-k8s_applicationautoscaling-controller/47/applicationautoscaling-release-test/1437698490867126272)
Steps to reproduce

Clone the application autoscaling repository prior to the #48 pull request
Navigate to the Helm directory
Attempt to install the chart using the default values.yaml file
Run the Helm release test on this same commit - it passes

Expected outcome
The Helm release test should throw a fatal error message when attempting to install the chart and return with a non-zero exit code

Solved! Thanks @vijtrip2


Ucx sst

Hi this is just a rebase to the current master so that we can merge your work into the main adios2 repository.
After accepting this PR, or doing rebase manually by yourself, please make a PR to the main repo.
Thank you
Norbert

Please note that cmake/FindUCX.cmake is missing from this branch, so I cannot even configure adios2 successfully. Please add the missing file.


Be able too let foo: ObjType.propType instead of let foo: ObjType["propType"]

Search Terms
I had no clue what to search for to find a duplicate of this feature request — I've tried these, along with variants of taking of words / etc.:
subscript type, reference type property, refer to interface property sub type, access product type member , type alias property access
Suggestion
At the moment, it's possible to:
type Foo = { pub: string, bar: Bar }
/* ... */
let a_bar: Foo["bar"]

Unless a conflict in syntax and parsing arise implementing it, I would find it more than reasonable for the syntax to mirror that of property access of objects, also mirroring namespace member accessing. Like so:
type Foo = { pub: string, bar: Bar }
/* ... */
let a_bar: Foo.bar

Use Cases & Examples
I've come to do these kinds of things A LOT:
export type UnionizePropTypes<T> = T[keyof T]

export const ThingRecordKind = {
    STATIC: 0 as 0,
    ARC: 1 as 1,
    EAVESDROPPER: 6 as 6,
}

export type ThingRecordKind = typeof ThingRecordKind & {
    ANY: UnionizePropTypes<typeof ThingRecordKind>
}

/*
DON'T REPEAT YOURSELF!

type ThingRecordKind = {
    STATIC: 0;
    ARC: 1;
    EAVESDROPPER: 6;
} & {
    ANY: 0 | 1 | 4 | 5 | 6 | 9;
}
*/

function make_thingie_record(thing_kind: ThingRecordKind["ANY"]) {
    // do stuff
}

make_thingie_record(ThingRecordKind.ARC) // const table used

Above example is simplistic, the style of using literal objects as source of auto derived types excels with React and especially Redux, where I can get fully typed dispatch-fn with IDE hints for actions and their arguments, etc. from only ever defining the default states, and the reducers hashed on objects, so don't say "use enums" because of above example.
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code — can't see how
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

The behavior here is that a dotted name a.b.c.d in a type context always refers to the type d in the a.b.c namespace. The distinction is already very important because e.g.
// foo.ts
export class C { }

// other file
import * as X from "./foo";
var t: X.C;

means the instance type of the C class, not the constructor function itself.
Changing the behavior here would either be a breaking change for code, or mean that a lookup like a.b.c would be ambiguous (which means code becomes fragile to the introduction of identifiers it shouldn't care about)

A missed. I saw the type ThingieRecord more like a "generalized form of enum", sort of, but of course, not enum - just looking into type the same way ;-)
@RyanCavanaugh  To be honest, and excuse my dumbness here, but I'm missing the conflict above, hmm :-/
Can there be anything else in a type Foo = {bar: Bar} that would conflict when doing Foo.bar? A namespace parallell to the Foo with the same name, is that it?

A namespace Foo parallel in lookup scope with the type, is that it?

Correct.


Enforce a few more rubocop guidelines, minor stylistic fixups

Only two casks (java and applepi-baker) had :cookies on three lines, moved 'em to one line for the sake of convenience and matching. (Technically not rubocop, but felt silly doing a PR for this by it's lonesome)1
Rubocop: Removed whitespace following the cask header in 29 casks, should enforce no_empty_lines in Style/EmptyLinesAroundBlockBody;   @jawshooah You were originally unsure if this was worthwhile, I rather think it's a good idea, if only for regex/parsing.
Rubocop: Tidied up casks based on Style/AlignHash and Style/AlignParameters (also one each from Style/CommentIndentation2,3 and Style/EmptyLineBetweenDefs)
Rubocop: Removed spaces found inside square brackets, should enforce Style/SpaceInsideBrackets
Rubocop: Enforce Style/Tab and Style/TrailingWhitespace (no current errors, intended from the start in #9921, they are indeed "gross")

Ping @jawshooah via #9921.

1: I couldn't get applepi-baker to fail without it, though, so perhaps it's no longer necessary?
2: Comments in soulver and gpgtools are waiting on glob support (#12991; see also #8202).
3: Comments in ableton-* are user-generated content being kept until :trash is properly implemented per https://github.com/caskroom/homebrew-cask/pull/11587#discussion_r31761341

I was actually waiting for them to release 0.36.0 before doing this, since there will be a couple of upcoming additions and fixes that will make things much nicer for us.

All that aside, the changes look fine (and won't prevent us from doing more once we get a new RuboCop release), except for one thing: AlignHash. I'm partial to the table style (align keys with keys, hashrockets with hashrockets, and values with values). Not a big deal either way, but we should come to a consensus on that before merging.
@vitorgalvao, you're a graphic designer (sorry, I stalked your website), so you probably have a better eye for this than me. What would you suggest? (examples of the different styles are here).

@jawshooah My thinking with the AlignHash changes was to just get those nine casks in line with the rest of them; the issue for them all was key alignment being way out of whack.
Personally I prefer the key design — less mucking about with spaces and aligning — but I was saving that conversation for later, to be had alongside Style/SingleSpaceBeforeFirstArg (per your comments at #9921)

(sorry, I stalked your website)

Well, it is public after all, but it is in dire need of an update in every respect (the website itself and the works in it). It was the first html/css (as opposed to flash) website I’ve made, though, so with that mind I guess it isn’t that bad (well, a bit, I should really get to it eventually).
As for layout, I’d say separator is the only “wrong” one. When we have a list of things, having them start at different points (since we’re reading left-to-right and they’re aligned right-to-left) makes it harder to scan with good comprehension.
Personally (as in a matter of taste) I like key better, but I think table works better for reading/skimming/comprehension and that is more important. Users seem to be somewhat partial to it when submitting, as well. Autocorrect support should take care of @Amorymeltzer’s concerns (i.e. no need to manually muck about with spacing) and popular text editors have plugins for this type of alignment. I say we go with table.
On a tangential note, I remember you (@jawshooah) asking about (months ago) why the heck do we only leave one space when indenting certain things:
:symbol => [
            'one',
            'two'
           ]

That is indeed a weird pattern, and I’d be in favour of changing that to two spaces.

I meant it more for contributors, manually spacing to make travis happy, but that is sort of the point of this whole thing.
One space is weird, weird, and so weird (speaking of manually spacing).

@vitorgalvao that particular oddity can't be fully rectified until a new release including this PR is pushed.
In any case, I say we wait on this for now. @bbatsov has alluded to a release coming out in the next week or so.

Mooted via #16317


'package:flutter/src/semantics/semantics.dart': Failed assertion: line 2446 pos 16: 'node.parent == flutter: null || !node.parent.isPartOfNodeMerging || node.isMergedIntoParent': is not true.

This seems to be the exact same issue described here:
https://github.com/flutter/flutter/issues/31437
This was marked as resolved 2-3 years ago, yet I see it happening in flutter 3.3.10 (did not test on flutter 3.7)
Steps to Reproduce
Can be found in the ticket mentioned previously. I have the exact same scenario as that one (checkbox list tile with rich text containing clickable text).

Flutter doctor -v

[✓] Flutter (Channel stable, 3.3.10, on macOS 13.1 22C65 darwin-arm, locale en-GB)
    • Flutter version 3.3.10 on channel stable at /usr/local/Caskroom/flutter/3.0.1/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (7 weeks ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/alexandrudochioiu/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • ANDROID_HOME = /Users/alexandrudochioiu/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Corretto-<IP_ADDRESS>.2 (build 11.0.12+7-LTS)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment Corretto-<IP_ADDRESS>.2 (build 11.0.12+7-LTS)

[✓] IntelliJ IDEA Community Edition (version 2022.3.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.74.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (4 available)
    • 2201116TG (mobile) • LN7DPFJ7MNZXPFFA                     • android-arm64  • Android 12 (API 31)
    • iPhone 14 (mobile) • EB7CF42D-BDAD-4963-B648-A00090FFA2EE • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)    • macos                                • darwin-arm64   • macOS 13.1 22C65 darwin-arm
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 109.0.5414.119

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

• No issues found!

Thanks for the report @AlexDochioiu
Although I do see the same error upon running the code sample mentioned in the linked issue using latest versions (stable and master), but I think the explaination given here could be useful for you as why it occurs.
Based on that comment, examples were introduced on how to use the CheckboxListTile and other widgets as mentioned in https://github.com/flutter/flutter/pull/32703 so I suggest you to please look at those examples and try to implement the same in your code and see if using the changes made, you still get same error or not.

@darshankawar While the reason makes sense, I still feel like maybe there should be some kind of better default handling when this happens.
Also, I tried to wrap the entire RichText into a Semantics widget with explicitChildNodes = false. I was still getting this same failure.
This is pretty much the first time looking into semantics (meaning my knowledge on flutter's accessibility is very low). And tbh, I feel like the interaction between semantic nodes is not really clear from the documentation itself and/or the description of the fields in the Semantics widget. While I am aware that it's really bad practice, I ended up wrapping the RichText with ExcludeSemantics.

Thanks for the feedback @AlexDochioiu

While I am aware that it's really bad practice, I ended up wrapping the RichText with ExcludeSemantics to get rid of the failure.

This doesn't seem to be the correct usage and implementation, ie, we probably don't need to do this.
The main reason as why we are seeing the error is probably because of the combination we used, ie, RichText being used as a child inside CheckboxListTile. Since both accepts tap gesture, it creates a conflict between the tap events and hence the error thrown by the framework.
In order to avoid this and as explained in the documentation, see Semantics in CheckboxListTile section in it, we probably need to create a custom list tile as mentioned in the code sample which helps to avoid the main error thrown.
https://api.flutter.dev/flutter/material/CheckboxListTile-class.html#material.CheckboxListTile.3
Using it, the app compiles properly and doesn't throw the error:

Xcode build done.                                           20.7s
Debug service listening on ws://<IP_ADDRESS>:50479/n05Aq0hv8MU=/ws
Syncing files to device iPhone 13...

See if above helps to understand the use case as why we need to use custom list tile and should not be using RichText inside any of the ListTile variants.

@darshankawar I already played with the ListTile + leading checkbox and alternatives. I am aware if solves the issue. I however did not like it from the ux perspective. I feel like people are used to click anywhere in those list tiles.

Thanks for the feedback. I am going ahead and labeling this based on our discussion in above threads and also the fact that using below code sample, the issue is replicable.  The documentation sample added as part of fix for this issue https://github.com/flutter/flutter/issues/31437 were verified, but per OP, it doesn't solve the underlying issue.

 runnable code sample
import 'package:flutter/material.dart';
import 'package:flutter/gestures.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  bool _isTermsReadChecked = false;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: CheckboxListTile(
        value: _isTermsReadChecked,
        selected: _isTermsReadChecked,
        onChanged: (val) {
          setState(
                () {
              _isTermsReadChecked = !_isTermsReadChecked;
            },
          );
        },
        title: RichText(
          text: TextSpan(
            children: [
              TextSpan(
                text: 'TERMO E CONDIÇÕES DE USO',
                style: TextStyle(
                  color: Colors.blueAccent,
                  decoration: TextDecoration.underline,
                ),
                recognizer: TapGestureRecognizer()
                  ..onTap = () {
                  },
              ),
            ],
          ),
        ),
      )
    );
  }
}

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.7.0, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.7.0 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b06b8b2710 (28 hours ago), 2023-01-23 16:55:55 -0800
    • Engine revision b24591ed32
    • Dart version 2.19.0
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.8.0-6.0.pre.6, on macOS 12.2.1 21D62 darwin-x64,
    locale en-GB)
    • Flutter version 3.8.0-6.0.pre.6 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 845f7bb42a (2 hours ago), 2023-02-06 22:10:30 -0500
    • Engine revision 165126e703
    • Dart version 3.0.0 (build 3.0.0-204.0.dev)
    • DevTools version 2.21.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

/cc @chunhtai for thoughts.

As far as I'm concerned, this is less of a CheckboxListTile issue and more of a Semantics interaction issue/consideration. It sounds to me like it would generally be a problem with clickable widgets containing other clickable elements (semantic nodes) within them. While it's often not ideal to do this, there are some valid scenarios for it (I do think mine is valid at the very least)
What I have is a checkbox list tile with an I accept the terms and conditions where the terms and conditions text is clickable. I believe there would be some other appropriate use-cases of nested clickable elements like this.
That raises the question: Is the assumption that there shouldn't be nested semantic nodes a valid one?

The goal for check box list tile is that the entire list tile including the label is tappable and the checkbox will respond to the tap. If you add a ontap gesture recognizer in the label, they would conflict each other. I think this is WAI, If you do really want a gesture recognizer in the label you should build your own list tile with a check box and label separately.


Not everything gets moved to GPU

(TCNTrainable pid=14192) INFO: Loading data
(TCNTrainable pid=14192) INFO: ---- Epoch 1 ----
2022-09-23 10:18:07,853 ERROR trial_runner.py:980 -- Trial TCNTrainable_8139afc9: Error processing event.
ray.exceptions.RayTaskError(RuntimeError): ray::ResourceTrainable.train() (pid=14192, ip=<IP_ADDRESS>, repr=<ray.tune.trainable.util.TCNTrainable object at 0x2ba27f95dd60>)
  File "/scratch/gpfs/kl5675/miniconda3/envs/gnn/lib/python3.9/site-packages/ray/tune/trainable/trainable.py", line 347, in train
    result = self.step()
  File "/home/kl5675/Documents/22/git_sync/gnn_tracking_experiments//scripts/tune.py", line 106, in step
    return self.trainer.step(max_batches=self.config.get("max_batches", None))
  File "/home/kl5675/Documents/22/git_sync/gnn_tracking/src/gnn_tracking/training/tcn_trainer.py", line 330, in step
    self.train_step(max_batches=max_batches)
  File "/home/kl5675/Documents/22/git_sync/gnn_tracking/src/gnn_tracking/training/tcn_trainer.py", line 254, in train_step
    batch_loss, batch_losses = self.get_batch_losses(model_output)
  File "/home/kl5675/Documents/22/git_sync/gnn_tracking/src/gnn_tracking/training/tcn_trainer.py", line 174, in get_batch_losses
    loss = loss_func(**model_output)
  File "/scratch/gpfs/kl5675/miniconda3/envs/gnn/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/kl5675/Documents/22/git_sync/gnn_tracking/src/gnn_tracking/utils/losses.py", line 130, in forward
    return self.condensation_loss(beta=beta, x=x, particle_id=particle_id)
  File "/home/kl5675/Documents/22/git_sync/gnn_tracking/src/gnn_tracking/utils/losses.py", line 109, in condensation_loss
    diff = x[:, :, None] - x_alphas[None, :, :]
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
wandb: Waiting for W&B process to finish... (success).

Solved, was missing device argument to trainer


Enhance custom hook

Also allow custom sync hooks to only sync "new" events

Thanks for taking your time to contribute. Unfortunately, I will reject and close the PR.
If we implement the suggested change, the request might fail and logs will be lost. They won't be sent on the next request. Developers have the option to control it inside the callback they provide. Also, the callback may contain async operations and delays, which could cause the logsToSync to not reflect the expected data.
Doing it for the "default" flow is acceptable for we're using navigator.sendBeacon which doesn't return request status.


onhoverPause - proposal

I'm Requesting new feature.
'
onhoverPause: true
'

You can custom a plugin with swiper.

https://github.com/nolimits4web/Swiper/blob/master/demos/31-custom-plugin.html#L78


CounterSets retain needs to be applied to 0x8a51

Had a user with the following GPU crash in initCounterSets with a very UAF-looking trace
		model: Intel(R) Iris(TM) Plus Graphics
		type: Integrated
		vendorID: 0x8086
		deviceID: 0x8a51

crash.txt
Probably just needs 0x8a51 added to the list here:
https://github.com/KhronosGroup/MoltenVK/blob/beee280ff8782b26b96fec9290d82dfd84eded52/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm#L2864
Edit: Wikipedia has a full list of GPUs with their device IDs.  Not sure which of these have been used in MacBooks:

PR #1645 fixes this. Please retest with the latest MoltenVK version, and close this issue if it fixes the problem you encountered.


containers: fix interfaces option bugs

The default should be [], no need to check it for INTERFACES
variable.

Thanks, second attempt...


add miri hiring doc

https://www.lesswrong.com/posts/y2qaZ7X2jHzqK84TZ/is-miri-actually-hiring-and-does-buck-shlegeris-still-work

This is already done.


feat: add mr-karan to list of supporters

Adding my name to the list. As someone who has been involved in the Hashicorp ecosystem and an advocate of Open Source, I find this move to be disingenuous.

Added in https://github.com/opentffoundation/manifesto/pull/203


Regression: Ambassador 1.7.2+ routes the / path even when redirection is requested

This is a regression in 1.7.2. A Host specifying
requestPolicy:
  insecure:
    action: Redirect

(which is the default) will still route requests to /.

This has been fixed in 1.7.4 by reverting the changes for https://github.com/datawire/ambassador/issues/2888 that shipped in 1.7.0.


[9.x] Use model route key when route parameter does not specifiy custom binding field but a different parameter does

Note: I'm unsure to which branch I should send this bugfix since the implementation of RouteUri has changed between 8.x and 9.x. 9.x uses str_contains instead of strpos. I might have to send two separate PRs to each respective branch? Help? 😅
Summary
This PR fixes a special circumstance where the wrong model route key would get used when substituting route parameters. For a tl;dr of what the bug is, check out the test I added to RoutingUrlGeneratorTest.php that reproduces the error. For the longer explanation, keep reading.
Reproducing the bug
Let's say I have two models, User and Post. The User model overrides the getRouteKeyName method so the user's username field gets used during route generation instead of the id. The Post model is kept vanilla.
class User extends Model
{
    public function getRouteKeyName()
    {
        return 'username';
    }
}

class Post extends Model
{
}

Now, let's define a route like this.
Route::get('/{user}/posts/{post:id}', UserPostsController::class)
    ->name('users.posts.show');

We specify an explicit binding field for the post so it gets scoped on the user. For the user, we don't specify an explicit binding key, so we expect it to use the username like we've configured. This works as expected if we generate the route url and pass the parameters as an associative array.
$user = new User(['username' => 'kai']);
$post = new Post(['id' => 5]);

route('users.posts.show', ['user' => $user, 'post' => $post], false);
// => /kai/posts/5

However, if we pass the parameters without explicit keys it breaks.
$user = new User(['username' => 'kai']);
$post = new Post(['id' => 5]);

route('users.posts.show', [$user, $post], false);
// => /1/posts/5

If we explicitly define the binding field for the user parameter as well, it works again as expected.
Route::get('/{user:username}/posts/{post:id}', UserPostsController::class)
    ->name('users.posts.show');

route('users.posts.show', [$user, $post], false);
// => /kai/posts/5

I have added a test to the RoutingUrlGeneratorTest file that reproduces this error.
Why the bug happens
When the RouteUri class parses the URI, it extracts all binding fields from the URI. This array then gets saved on the Route object's $bindingFields property. So our URI of
/{user}/posts/{post:id}

gets turned into
['post' => 'id']

So far so good, but note that the user parameter is missing since it doesn't define a an explicit binding field (no spoilers, but this is important).
When the UrlGenerator tries to resolve the route parameters, it loops of the parameters and calls the bindingFieldFor method of the Route object for each of them (https://github.com/laravel/framework/blob/9.x/src/Illuminate/Routing/UrlGenerator.php#L483).
This method is passed the key of the current parameter we're looping over. It then checks if that key is an integer, and if so, extracts the binding field from the route's bindingFields array by index.
// Routing/Route.php#536

public function bindingFieldFor($parameter)
{
    $fields = is_int($parameter) ? array_values($this->bindingFields) : $this->bindingFields;

    return $fields[$parameter] ?? null;
}

Going back to our route above, the bindingFields array currently looks like this.
['post' => 'id']

But since it's trying to look up the binding field by index, it ends doing this instead.
array_values(['post' => 'id'])
// => [0 => 'id']

Since user is the first parameter we passed to the route call, it tries to look up the binding field with index 0 in this array. Which is why the id field gets mistakenly used for the user parameter.
Also, at this point "binding fields" has stopped sounding like a word.
Changes
To fix this bug, I changed the parse method of the RouteUri class to keep track of all parameters, instead of only parameters with an explicit binding field. So when we first parse our URI, we get back this instead:
"/{user}/posts/{post:id}"

// turns into
['user' => null, 'post' => 'id']

Before returning, I check if this array contains any values that are not null, meaning we have at least one explicit binDinG fIeLd. In that case, we keep the whole array—including null values—so the index positions line up as expected when calling array_values on it. In any other case, we simply return an empty array (like before).
Other changes
I've refactored the tests for the RouteUri class to use a data provider instead of having all assertions in a single test. That made figuring out which test case actually broke quite a bit easier.

Thanks!

FYI: https://github.com/laravel/framework/pull/43255

Looks good. Sorry about all the issues this PR has caused 😞

@ksassnowski don't worry about it! :)


Container width and height not in pixels?

Hello,
I'm trying to render an image so that one pixel in the image buffer corresponds to exactly one pixel on the screen. However, the following code
fn view(&mut self) -> Element<Message> {
[...]
        let img = iced::image::Image::new(iced::image::Handle::from_pixels(
            200,
            200,
            pixels, // all pixels are black except for one at (100, 100) that is white
        ));

        Container::new(
            Container::new(img)
                .max_width(200 as u32)
                .max_height(200 as u32)
                .width(Length::Fill)
                .height(Length::Fill)
        )
        .width(Length::Fill)
        .height(Length::Fill)
        .style(Style) // blue background
        .into()
}

produces an incorrect result:

The documentation explicitly states that max_width and max_height take max container size in pixels, so I'm confused why the image turns out to be 222x222, and as a result instead of one white pixel we are seeing four gray ones.
OS: Debian 10, x86_64
Window manager: Xorg / i3wm
High-DPI display: yes

Full code
use iced::{
    container, executor, Application, Clipboard, Color, Column, Command, Container, Element,
    Length, Settings, Subscription,
};

const MAP_SIZE: usize = 200;

pub fn main() -> iced::Result {
    App::run(Settings {
        antialiasing: true,
        ..Settings::default()
    })
}

struct App {
    map: Map,
}

type Message = String;

pub struct Style;

impl container::StyleSheet for Style {
    fn style(&self) -> container::Style {
        container::Style {
            background: Color::from_rgb8(0x0, 0x0, 0xa0).into(),
            ..container::Style::default()
        }
    }
}

impl Application for App {
    type Executor = executor::Default;
    type Message = Message;
    type Flags = ();

    fn new(_flags: ()) -> (Self, Command<Message>) {
        (
            App {
                map: Map::default(),
            },
            Command::none(),
        )
    }

    fn title(&self) -> String {
        String::from("Demo")
    }

    fn update(&mut self, _message: Message, _clipboard: &mut Clipboard) -> Command<Message> {
        //self.map.iteration();

        Command::none()
    }

    fn subscription(&self) -> Subscription<Message> {
        iced::Subscription::none()
    }

    fn view(&mut self) -> Element<Message> {
        self.map.c(100, 100).height = 1.0;

        let pixels = self.map.to_pixels();

        let img = iced::image::Image::new(iced::image::Handle::from_pixels(
            MAP_SIZE as u32,
            MAP_SIZE as u32,
            pixels,
        ));

        Container::new(
            Container::new(img)
                .max_width(MAP_SIZE as u32)
                .max_height(MAP_SIZE as u32)
                .width(Length::Fill)
                .height(Length::Fill)
        )
        .width(Length::Fill)
        .height(Length::Fill)
        .style(Style) // blue background
        .into()
    }
}

#[derive(Clone, Copy)]
struct MapCell {
    height: f32,
}

impl Default for MapCell {
    fn default() -> MapCell {
        MapCell { height: 0.0 }
    }
}

impl MapCell {
    fn to_color(&self) -> (u8, u8, u8) {
        (
            (self.height * 255.0) as u8,
            (self.height * 255.0) as u8,
            (self.height * 255.0) as u8,
        )
    }
}

struct Map {
    cells: Vec<MapCell>,
}

impl Default for Map {
    fn default() -> Map {
        Map {
            cells: vec![MapCell::default(); MAP_SIZE * MAP_SIZE],
        }
    }
}

impl Map {
    pub fn c(&mut self, x: usize, y: usize) -> &mut MapCell {
        &mut self.cells[y * MAP_SIZE + x]
    }

    fn to_pixels(&mut self) -> Vec<u8> {
        let mut pixels = vec![128; MAP_SIZE * MAP_SIZE * 4];
        for y in 0..MAP_SIZE {
            for x in 0..MAP_SIZE {
                let color = self.c(x, y).to_color();
                pixels[(y * MAP_SIZE + x) * 4 + 0] = color.0;
                pixels[(y * MAP_SIZE + x) * 4 + 1] = color.1;
                pixels[(y * MAP_SIZE + x) * 4 + 2] = color.2;
                pixels[(y * MAP_SIZE + x) * 4 + 3] = 0xff;
            }
        }
        pixels
    }
}

iced length units represent logical pixels. Logical pixels are transformed to physical pixels using a scale factor.
This scale factor is determined by the display specifications (DPI) and the OS GUI scaling settings. Therefore, logical pixels will not necessarily map 1:1 to physical pixels on every environment.
We only allow using logical pixels because this way every iced application is able to adapt to any display while respecting the OS scaling settings.


[Global Request] Codeunit 99000787 "Create Prod. Order Lines".InitProdOrderLine

Describe the request
Please do function InitProdOrderLine as global.
Additional context
We need call this function from our solution.
Internal work item: AB#504101

Hello @fridrichovsky
Could you please provide us with more details related to your usage of this procedure.
Main concern is related to a fetching proper ProdOrder record.

Hello @AleksandricMarko,
I am sorry I missed one function. We need two function as global  InitProdOrderLine a InsertProdOrderLine. We have small integration and we would like create Prod. Order Lines with its standard init and insert functions.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 19986.


"Dynamic nodes" feature

The dynamic node functionality enables the user to specify the path segment not to be a static string but a dynamic value that is then passed to the context of the view.
Two implementation options:

as in yaas builder using a dedicated property "dynamic". Its value is used as the key in the context object.
convention in existing pathSegment property, e.g. ":"-prefix, so ":context_key"

See https://devportal.yaas.io/tools/buildersdk/index.html#IntegrateaBuildermodule, section "Dynamic nodes in navigation tree" for more info.

the dynamic segment value should be added to the context (not node params)
support  inheritance i.e /home/:project/:workspace (both dynamic values should be available for all child nodes)
dynamic node is the only node on its navigation level.. (avoid static nodes being matched as dynamic ). If static & dynamic node coexist on the same level, we should reject the static one and print a console.warning informing about misconfiguration.
suggested data structure - object within context

context : {
 pathParams: {
key1:"value",
key2: "value2"
}
}

Not included in normal context to avoid "nested merging" issues.
LuigiClient.getPathParams() // is used to fetch the params

Alternatively a custom context object can be used for enriching the context
{
  context: {
    environment: ':environment'
  }
}


OctopOS Prime Website Designs-2

Design the image requested from you by the web team with OctopOS Prime version.
You can find the image below.
2.zip