"No such file or directory" when unpacking previously saved cache on macOS

I'm having a cache restore issue on macOS (macos-latest, Linux cache restore works fine) where tar (gtar) complains that some files don't exist:
...
/usr/local/bin/gtar --use-compress-program unzstd -xf /Users/runner/work/_temp/01f4b74d-3951-47c6-959f-1999724c0803/cache.tzst -P -C /Users/runner/work/internet-identity/internet-identity --delay-directory-restore
[12](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:13)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/http-range-header-0.3.0.crate: Cannot open: No such file or directory
[13](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:14)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/subtle-2.4.1.crate: Cannot open: No such file or directory

The step was cached successfully previously and was fetched. Here are the full logs of the "save" step (edited):
Save logs (edited)
Post job cleanup.
[2](https://github.com/dfinity/internet-identity/actions/runs/3311557329/jobs/5467152212#step:43:2)
/usr/local/bin/gtar --posix --use-compress-program zstdmt -cf cache.tzst --exclude cache.tzst -P -C /Users/runner/work/internet-identity/internet-identity --files-from manifest.txt --delay-directory-restore
[3](https://github.com/dfinity/internet-identity/actions/runs/3311557329/jobs/5467152212#step:43:3)
Cache Size: ~653 MB (684343004 B)
[4](https://github.com/dfinity/internet-identity/actions/runs/3311557329/jobs/5467152212#step:43:4)
Cache saved successfully
[5](https://github.com/dfinity/internet-identity/actions/runs/3311557329/jobs/5467152212#step:43:5)
Cache saved with key: tmpp2-macOS-4752fbbd000ccf464102cb9b243eb21eb2477231-dot-cargo

And here are the logs for the "restore" step:
Restore logs
Received 88080384 of 684343004 (12.9%), 83.7 MBs/sec
[6](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:7)
Received 247463936 of 684343004 (36.2%), 116.8 MBs/sec
[7](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:8)
Received 406847488 of 684343004 (59.5%), 128.2 MBs/sec
[8](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:9)
Received 553648128 of 684343004 (80.9%), 130.4 MBs/sec
[9](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:10)
Received 684343004 of 684343004 (100.0%), 71.6 MBs/sec
[10](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:11)
Cache Size: ~653 MB (684343004 B)
[11](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:12)
/usr/local/bin/gtar --use-compress-program unzstd -xf /Users/runner/work/_temp/01f4b74d-3951-47c6-959f-1999724c0803/cache.tzst -P -C /Users/runner/work/internet-identity/internet-identity --delay-directory-restore
[12](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:13)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/http-range-header-0.3.0.crate: Cannot open: No such file or directory
[13](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:14)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/subtle-2.4.1.crate: Cannot open: No such file or directory
[14](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:15)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/multimap-0.8.3.crate: Cannot open: No such file or directory
[15](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:16)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/half-1.8.2.crate: Cannot open: No such file or directory
[16](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:17)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/bincode-1.3.3.crate: Cannot open: No such file or directory
[17](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:18)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/cache/github.com-1ecc6299db9ec823/proc-macro-crate-1.2.1.crate: Cannot open: No such file or directory
[18](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:19)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/index/github.com-1ecc6299db9ec823: Cannot mkdir: No such file or directory
[19](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:20)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/index/github.com-1ecc6299db9ec823/.cache/se/rd/serde_with_macros: Cannot open: No such file or directory
[20](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:21)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/index/github.com-1ecc6299db9ec823/.cache/fu/tu/futures-channel: Cannot open: No such file or directory
[21](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:22)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-x86_64-pc-windows-gnu-0.4.0/lib/libwinapi_mscms.a: Cannot open: No such file or directory
[22](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:23)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-x86_64-pc-windows-gnu-0.4.0/lib/libwinapi_msv1_0.a: Cannot open: No such file or directory
[23](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:24)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-x86_64-pc-windows-gnu-0.4.0/lib/libwinapi_onecore-api-ms-win-core-localization-ansi-l1-1-0.a: Cannot open: No such file or directory
[24](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:25)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-x86_64-pc-windows-gnu-0.4.0/lib/libwinapi_onecore-api-ms-win-core-calendar-l1-1-0.a: Cannot open: No such file or directory
[25](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:26)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/prost-derive-0.10.1/README.md: Cannot open: No such file or directory
[26](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:27)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/prost-derive-0.10.1/Cargo.toml.orig: Cannot open: No such file or directory
[27](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:28)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-codegen-0.87.1/src/isa/s390x/inst/imms.rs: Cannot open: No such file or directory
[28](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:29)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-codegen-0.87.1/src/isa/s390x/inst/unwind.rs: Cannot open: No such file or directory
[29](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:30)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.2.7/src/openbsd.rs: Cannot open: No such file or directory
[30](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:31)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/tower-http-0.3.4/src/metrics: Cannot mkdir: No such file or directory
[31](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:32)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/tower-http-0.3.4/src/decompression/service.rs: Cannot open: No such file or directory
[32](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:33)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/tower-http-0.3.4/src/auth/mod.rs: Cannot open: No such file or directory
[33](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:34)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/tower-http-0.3.4/src/compression/service.rs: Cannot open: No such file or directory
[34](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:35)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/tower-http-0.3.4/src/compression/future.rs: Cannot open: No such file or directory
[35](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:36)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/mockall-0.7.2/tests/automock_associated_types.rs: Cannot open: No such file or directory
[36](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:37)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/mockall-0.7.2/tests/automock_constructor_impl_trait.rs: Cannot open: No such file or directory
[37](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:38)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecoreuap-api-ms-win-core-fibers-l2-1-0.a: Cannot open: No such file or directory
[38](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:39)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_basesrv.a: Cannot open: No such file or directory
[39](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:40)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_mincore-api-ms-win-core-file-l1-1-0.a: Cannot open: No such file or directory
[40](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:41)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_windowsapp-api-ms-win-core-namedpipe-ansi-l1-1-1.a: Cannot open: No such file or directory
[41](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:42)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecore-api-ms-win-core-io-l1-1-1.a: Cannot open: No such file or directory
[42](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:43)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_rstrtmgr.a: Cannot open: No such file or directory
[43](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:44)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_imgutil.a: Cannot open: No such file or directory
[44](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:45)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_wlanui.a: Cannot open: No such file or directory
[45](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:46)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_sas.a: Cannot open: No such file or directory
[46](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:47)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecoreuap.a: Cannot open: No such file or directory
[47](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:48)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecoreuap-api-ms-win-service-winsvc-l1-1-0.a: Cannot open: No such file or directory
[48](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:49)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_scesrv.a: Cannot open: No such file or directory
[49](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:50)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecoreuap-api-ms-win-core-versionansi-l1-1-1.a: Cannot open: No such file or directory
[50](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:51)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_mfplat.a: Cannot open: No such file or directory
[51](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:52)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_slc.a: Cannot open: No such file or directory
[52](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:53)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecore-api-ms-win-core-kernel32-legacy-ansi-l1-1-0.a: Cannot open: No such file or directory
[53](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:54)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_windowsapp-api-ms-win-core-xstate-l2-1-0.a: Cannot open: No such file or directory
[54](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:55)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecore-api-ms-win-core-wow64-l1-1-1.a: Cannot open: No such file or directory
[55](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:56)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_windowsapp-xaudio2_9.a: Cannot open: No such file or directory
[56](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:57)
/usr/local/bin/gtar: ../../../../../tmp/dot-cargo/registry/src/github.com-1ecc6299db9ec823/lexical-core-0.7.6/src/atof/algorithm/format/traits.rs: Cannot open: No such file or directory
[57](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:58)
/usr/local/bin/gtar: Exiting with failure status due to previous errors
[58](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:59)
Warning: Failed to restore: Tar failed with error: The process '/usr/local/bin/gtar' failed with exit code 2
[59](https://github.com/dfinity/internet-identity/actions/runs/3312116492/jobs/5468398710#step:7:60)
Cache not found for input keys: tmpp2-macOS-4752fbbd000ccf464102cb9b243eb21eb2477231-dot-cargo

Here is how the cache is created:

      - uses: actions/cache@v3
        id: cache-dot-cargo
        with:
          path: /tmp/dot-cargo
          key: tmpp2-${{ runner.os }}-${{ steps.git_info.outputs.commit_deps }}-dot-cargo

...

      - name: Cargo cache
        if: steps.cache-dot-cargo.outputs.cache-hit != 'true'
        run: |
          cargo fetch --locked
          rsync -av "$HOME/.cargo/" "/tmp/dot-cargo/"

and the full file is here.
Any help is appreciated. Thanks!

@nmattia In the logs share by you the cache is  saved by key: Cache saved with key: tmpp2-macOS-4752fbbd000ccf464102cb9b243eb21eb2477231-deps while the cache is retored by key: tmpp2-macOS-4752fbbd000ccf464102cb9b243eb21eb2477231-dot-cargo. Can you  please ensure that the same cache key is being used for save and restore?

@anuragc617 my bad, I copied the wrong step logs, although the problem is as described. I've edited the issue.

@anuragc617 or @tiwarishub any suggestions for a fix or workaround? This is costing us a fair bit of CI time

I had the same problem. (I think) I resolved it by moving the cached files out of /tmp an into the home folder, i.e.
- uses: actions/cache@v3
  with:
    path: ~/data

Not sure if this is the root cause, but it seems to work fine now.
Maybe it helps.


[1.15.2] RP fluid pipes wont connect to RFTools Builder

Forge: 31.1.9
RefinedPipes: 0.4
None of the Fluid Pipes will connect to the rftools builder machine, which is a valid block for pumping out fluids.

The RFtools builder doesn't have a fluid inventory. It just places fluid in the tank above or below it. As such no fluid pipes will connect to it.


[Intellij plugin] add automation for icon

Context
In the current version the icon was copied and modified to accommodate the rules of the IntelliJ Plugin.
Proposal
We should have a step on the pipeline when the icon is changed to copy it in the meta-inf folder and edit the width and height properties to 40x40 to match the documentation.

While doing this automation, update also the one in 16x16 for the editor menu icon:
apps/intellij-extension/src/main/resources/menuIcon.svg


Always use XLA AllGather op for JAX all-gather primitive.

If the CPU implementation was recently fixed, you might need to keep the old implementation around (gated on the jaxlib version).

If the CPU implementation was recently fixed, you might need to keep the old implementation around (gated on the jaxlib version).


lets create a spring boot quickstart of a client which invokes a service

which we can then use to help demo service discovery, high availability, readiness checks etc like the @davsclaus demo he's done lately with 2 microservices

we could then use these quickstarts to show how folks could enable linkerd for client side discovery / circuit breakers / timeouts / auto-retries etc without code changes to the microservice

@jstrachan I am very interested in this if it has been worked on

there's a bunch of spring boot quickstarts being developed here https://github.com/snowdrop/ in addition to the ones we've got in the fabric8 quickstarts organisation https://github.com/fabric8-quickstarts?utf8=✓&q=spring-boot&type=&language=


Divider randomly has different colors

Why does the divider randomly has a different color in preview mode? Sometimes it is dark, sometimes it is white.

Would be great if it's always dark

Can you share the exact file that you demonstrated this on so I can try to reproduce?

This happens in any .md file when using the preview mode:

Here is the file:
Divider color.md

Interesting. It was supposed to be set to white for all occurences, but for me, it never showed white at all, instead falling back to the internal hr-color . I have just added all variants of hr to use the white color. Please see if it makes a difference for you.

yes this did the trick :+1:


Endorse as a feature the possibility to change the document root while the server is running

There's an interesting behaviour that allows us to change the document root while the server is running.
Once the server is running if you change httpd.router.doc_root the next request will use the new value as document root.
I would like to propose that this becomes a supported feature.
This is a web server created for running tests. Changing the document root without requiring a restart is a really nice feature.

This issue has been moved to https://github.com/w3c/web-platform-tests/issues/8358; please continue all discussion there.


Setup goreleaser with brew support

Coverage remained the same at 37.829% when pulling b514be101b3ae3c839cab367f7f77654b5428a0e on feature/goreleaser into 189dc6801c0ab6136adb9522eff72e194d3c0ac3 on main.


I want to know how the code works, so what's I need to learn ?

This project is a replica of ncmdump.
You can ask the original author for code details.


Add check spec for network list

Fixes # .
Motivation

Add check spec for network list
Solution

Open questions

Review Error for shiatcb @ 2022-06-09 17:06:06 UTC
User must have write permissions to review


Pass function to define()

Wicked Elements allows you to define an element via an object literal or a class. However, sometimes both of these feel a bit weighty, or it forces you to organize code in a way that is less functional in nature. For example, React Hooks demonstrates how appealing it is to organize code by concerns, rather than by lifecycle methods. This could be done if the following syntax was supported. This provides just two simple lifecycle methods: when the element was added to the DOM and when it was removed from the DOM.
wickedElements.define(selector, function (element) {
  // Initialize
  return function () {
    // Removed
  }
})

Most other features that Wicked Elements provides can be done manually with listeners if desired.
In the meantime, a function wrapper like the following (note, the code is untested) could provide a similar API.
function whenAdded (selector, callback) {
  wickedElements.define(selector, {
    init: function (event) {
      const returnedValue = callback(event.currentTarget)
      this.removedCallback = typeof returnedValue === 'function'
        ? returnedValue
        : () => {}
    },
    ondisconnected: function () {
      this.removedCallback()
    }
  })
}

This change would help make the API closer to a similar library, when-elements.

How would I distinguish between a class and a function?

Using .toString seems to be a way to distinguish a class from a function.
https://zaiste.net/javascript_is_it_a_class_or_a_function/
function isClass(func) {
  return typeof func === 'function'
    && /^class\s/.test(Function.prototype.toString.call(func));
}

class Human {}
isClass(Human) // true

function speak() {}
isClass(speak) // false

Transpilers are a thing though

After few thoughts on this, I think using a function that init the element and destroys it once the element won't match anymore the selector is against the purpose of this library, which is to mimic as close as possible custom elements definition and lifecycle.
Accordingly, I think it is OK for people to have a choice and use when-elements instead,so that even if the libraries will be similar underneath, the ergonomics/semantics will be purposely different, providing a wider choice to users.
I hope that's OK 👋

Dom nodes cannot change tag name, neither is attribute, once upgraded, so I'm not sure it's a valid example.

Perhaps the example I gave wasn't the best, as it relied on the is attribute. This new example is quite contrived, but imagine something like this. It upgrades the same element in two different ways. One, it makes the button behave like a disclosure. Two, it adds a custom tooltip to the button.
wickedElements.define('[aria-expanded]',
  // Clicking the element will
  // toggle the aria-expanded attribute and
  // toggle the visibility of the element referenced by data-expands.
)
wickedElements.define('[data-tooltip]',
  // Reveal a custom tooltip upon hover or focus.
  // Remove the tooltip if the element no longer has the attribute.
)

html`
  <button
    aria-expanded="false"
    data-expands="answer-1"
    data-tooltip="Ask me the questions, Bridgekeeper. I am not afraid.">
    What is your favorite color?
  </button>
  <div id="answer-1">
    Sir Galahad: Blue. No yellOOOOOOW!
  </div>
`

Both connected and disconnected work exactly like custom elements, so it looks like you want an attribute changed in the middle, but you're after a "destructor", which is weird cause that also means "init" might be invoked twice for the same element, and the same definition.

Yes, I could see it being odd for the case of wickedElements, if the presence of [data-tooltip] triggered init(), then the attribute was removed and added again, causing init() to be triggered again. Some different semantics would be needed for that to feel okay.
Nevertheless, if the primary purpose of onconnected(), init(), or whenAdded() is to upgrade an element, I'm struggling with finding compelling reasons to support a method for downgrading the element (by knowing when the element no longer matches the original selector and somehow undoing its setup). It's far easier to just destroy the element, do some clean up, and replace it with something new. And as you suggest, downgrading may just lead to the developer shooting themselves in the foot. I will likely remove this feature from when-elements, and that will happily simplify the whenRemoved() API. However, I could also see allowing the developer to register a custom when*-like callback, so they could integrate their own hooks into the system as needed. This expansion-ability is hinted at in the backlog.
Yes, I understand wanting to keep in symmetry with CustomElementsRegistry, and when-elements is purposely different from that that API. I'm glad we could clarify the goals of our respective projects.

Yes, I understand wanting to keep in symmetry with CustomElementsRegistry, and when-elements is purposely different than that API. I'm glad we could clarify the goals of our respective projects.
And if I want an API similar to whenAdded() but backed by wickedElements, it's easy to just use a one-off wrapper or utility like I suggested above.


Clarify post-GCC-6 support

Hello Vittorio,
I've just noticed this nice project of yours. Does it support GCC versions 7, 8 and 9? Or perhaps I should say - how useful is it with those versions?
The README.md should clarify this point.
(Also it wouldn't hurt to say if the project is abandoned, done/complete, or awaiting future work when you have the time.)

Hello,
I just tried it with g++ 9 using the example in the README and it still helps a lot. I am also not actively working on this, but I am more than happy to accept/review PRs.
Closing this issue, but feel free to re-open if you have any further question.
Cheers!


Unexpected templating type error occurred

Action:
running a new cluster installation using ansible
ansible-playbook site.yml -vvv
Ansible version: ansible 2.8.8
Pip / Python:
pip 20.0.2 from /usr/lib/python2.7/site-packages/pip (python 2.7)
Variables for monitor in all.yml
## Monitor options
#
# You must define either monitor_interface, monitor_address or monitor_address_block.
# These variables must be defined at least in all.yml and overrided if needed (inventory host file or group_vars/*.yml).
# Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable.
# Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
monitor_interface: public
#monitor_address: x.x.x.x
#monitor_address_block: subnet
# set to either ipv4 or ipv6, whichever your network is using
ip_version: ipv4
#mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf

#mon_host_v1:
#  enabled: True
#  suffix: ':6789'
mon_host_v2:
  suffix: ':3300'

Error experienced on all nodes:
fatal: [cnode01]: FAILED! =>
  msg: 'Unexpected templating type error occurred on ({{ _monitor_addresses | default([]) + [{ ''name'': item, ''addr'': hostvars[item][''ansible_'' + (hostvars[item][''monitor_interface'']|replace(''-'', ''_''))][ip_version][''address''] | ipwrap }]  }}): coercing to Unicode: need string or buffer, list found'

fatal: [cnode03]: FAILED! =>
  msg: 'Unexpected templating type error occurred on ({{ _monitor_addresses | default([]) + [{ ''name'': item, ''addr'': hostvars[item][''ansible_'' + (hostvars[item][''monitor_interface'']|replace(''-'', ''_''))][ip_version][''address''] | ipwrap }]  }}): coercing to Unicode: need string or buffer, list found'

fatal: [cnode02]: FAILED! =>
  msg: 'Unexpected templating type error occurred on ({{ _monitor_addresses | default([]) + [{ ''name'': item, ''addr'': hostvars[item][''ansible_'' + (hostvars[item][''monitor_interface'']|replace(''-'', ''_''))][ip_version][''address''] | ipwrap }]  }}): coercing to Unicode: need string or buffer, list found'

fatal: [cnode04]: FAILED! =>
  msg: 'Unexpected templating type error occurred on ({{ _monitor_addresses | default([]) + [{ ''name'': item, ''addr'': hostvars[item][''ansible_'' + (hostvars[item][''monitor_interface'']|replace(''-'', ''_''))][ip_version][''address''] | ipwrap }]  }}): coercing to Unicode: need string or buffer, list found'

fatal: [cnode05]: FAILED! =>
  msg: 'Unexpected templating type error occurred on ({{ _monitor_addresses | default([]) + [{ ''name'': item, ''addr'': hostvars[item][''ansible_'' + (hostvars[item][''monitor_interface'']|replace(''-'', ''_''))][ip_version][''address''] | ipwrap }]  }}): coercing to Unicode: need string or buffer, list found'

After reviewing my configurations and checking facts task for mons decided to have a look into my networking configuration for all 5 nodes.
On my configuration public was the name of network profile using nmcli not the adapter name shown while running ip address
After changing monitor_interface in all.yml from monitor_interface: public to monitor_interface: ens160 installation progressed
Odd, was never expecting using a network profile name would cause this error. Are they supported for ceph install using ansible??
Thanks

Odd, was never expecting using a network profile name would cause this error. Are they supported for ceph install using ansible??

It's not odd at all. The monitor_interface as the name mentioned is the name of the network interface. It's not related to the nmcli profile at all because some distributions could not use it.

If anbody arrives at this ticket due to a smilar error message, the fix in our case was to add the vlan to the interface definitiion, because the same interface name existed in several vlans, in format interfaz.vlan:
public_interface: ens3f0.1451


[23.11] kubernetes: 1.28.7 -> 1.28.9

Description of changes
Fixes CVE-2024-3177 (also CVE-2023-45288).
Changes:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.28.md#changelog-since-v1288

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 304897 run on x86_64-linux 1

11 packages built:

chart-testing
gsctl
kns
kubectl
kubectl-convert (kubectl-convert.convert ,kubectl-convert.man ,kubectl.convert)
kubectl.man
kubernetes
kubernetes.man
kubernetes.pause
kubetail
tubekit

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

Thanks for spotting my mistake!


hotfix: [M3-7234] Disable Tokyo in RegionSelect

Description 📝
This PR adds a fake Tokyo region menu item with a tooltip to our RegionSelect to show users that Tokyo is now disabled
Changes 🔄

Adds a fake menu item with a tooltip if user does not have the tokyo-enable flag on their account
Improve the API for declaring disabled regions
Puts the change behind the feature flag (soldOutTokyo) => currently off as a prod flag
Adds a Sold Out Tokyo mock entry in dev settings (can be removed later but helpful to test quickly)

Note: the code could be greatly improved given more time. The goal here remains to implement the proper functionality and UI for a hotfix
Preview 📷

How to test 🧪
Note: OBJ isn't available for anyone in Tokyo
The following scenari should be tested:
1. User has the tokyo-enable admin flag (soldOutTokyo on or off)

User should see the Tokyo region menu item
User should not see this option as disabled
User should not see the fake Tokyo option
User should be able to create a resource in Tokyo
User should not see Tokyo at /object-storage/buckets/create

2. User does not have the tokyo-enable admin flag
flag off:

User should not see the Tokyo option at all
User should not be able to create a resource in Tokyo
User should not see Tokyo at /object-storage/buckets/create

flagon:

User should see the fake (disabled) Tokyo menu option
User should be able to hover the option and see a tooltip with a description and a link
User should be able to navigate to https://www.linode.com/blog/linode/tokyo-region-availability-update/ by clicking on a link
User should not be able to create a resource in Tokyo
User should not see Tokyo at /object-storage/buckets/create

@abailly-akamai Mind if I push some changes to cypress/support/util/regions.ts to prevent the tests from trying to use Tokyo?

@jdamore-linode sure thing

Actually, never mind -- I was thinking Tokyo was still included in the regions API response. Since it's not, there shouldn't be any risk of the tests trying to spin up resources with Tokyo.
Sorry for the confusion! Following your testing steps now!

@jdamore-linode ah ok np
also, about to get a fix rolling for disabling the fake region display in OBJ CC @jcallahan-akamai

@jcallahan-akamai All feedback addressed so far

Will be checking these off as I go through them! Testing on prod env

User has the tokyo-enable admin flag (soldOutTokyo on or off)

[ ] User should see the Tokyo region menu item
[ ] User should not see this option as disabled
[ ] User should not see the fake Tokyo option
[x] User should be able to create a resource in Tokyo
[ ] User should not see Tokyo at /object-storage/buckets/create

User does not have the tokyo-enable admin flag

flag off:

[ ] User should not see the Tokyo option at all
[ ] User should not be able to create a resource in Tokyo
[ ] User should not see Tokyo at /object-storage/buckets/create

flag on:

[ ] User should see the fake (disabled) Tokyo menu option
[ ] User should be able to hover the option and see a tooltip with a description and a link
[ ] User should be able to navigate to https://www.linode.com/blog/linode/tokyo-region-availability-update/ by clicking on a link
[ ] User should not be able to create a resource in Tokyo
[ ] User should not see Tokyo at /object-storage/buckets/create

@bnussman-akamai all i know is that OBJ isn't available for anyone in Tokyo

I really hope there are plans for the API to continue to return sold out regions and just mark them as sold out in some way. I very much don't like the fact we have to "fake" the region.

@bnussman-akamai it's super gross

@bnussman-akamai unless the code changes are blocking we'll make those a follow up as needed


Add French translations

:fr:
@Antoine38660: @machour has asked to work on French translations, let us know if that's okay :)

Instructions to add a new language are [here](https://github.com/gitpoint/git-point/issues/233#issuecomment-321917690} 🎉

@Antoine38660 I did a first translation in my fork (I might have missed a spot or two, and some contexts).
Could you review it? I'll provide a PR if you're okay with my work on it:
https://github.com/machour/git-point/tree/230-add-french-translations
Some french translation that you might want to discuss:
Kept the english form for:

pull request
followers
following

Used franglishe for:

forké
squasher

Translated:

repository => dépôt
merge => fusionner

Nice, Good work ! 👍 😄
Could you submit the PR ? It'll be easier to comment line by line.

I agree with repository => dépôt mais fusionner pour merge ça fait bizarre... Je pense qu'on peux laisser celui-ci en Anglais 😄

The translation looks pretty good to me, and is in sync with last work conducted on #193
Maybe it's time to merge the first translation ? 😄


USART: Missing events

Copied from the internal issue tracker. By @martinmortsell:

The current implementation of the USART peripheral only supports at subset of the available interrupt sources.

pub enum Event {
    RxReady,
    TxReady,
    Overrun,
    TxEmpty,
}

The HAL should support more (all?) Event sources.
In particular, I was going to trigger an interrupt on NSSE in SPI mode.

I think we'll need to replace the usart::Event with one that takes usart::{spi,uart}::Events:

pub enum Event {
    Spi(spi::Event),
    Uart(uart::Event),
}

and derive strum::FromRepr on the latter. The generics::events::EventHandler implementation will probably have to query the hardware in order to return the correct usart::Event member.


VSIX won't install on Windows 10 nor Visual Studio 2015

Need to edit the version ranges of install targets and dependencies in the vsixmanifest to be less restrictive.

v4.1 VSIX installs successfully, but shelving throws a type cast error: Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt [Version 14] cannot be cast to [B]Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt [Version 12]


Error 404 when I use path params

Copied this exact usage when passing path params but I'm getting a 404 error.
sayHello: t.procedure
    .meta({ openapi: { method: 'GET', path: '/say-hello/{name}' /* 👈 */ } })
    .input(z.object({ name: z.string() /* 👈 */, greeting: z.string() }))
    .output(z.object({ greeting: z.string() }))
    .query(({ input }) => {
      return { greeting: `${input.greeting} ${input.name}!` };
    });

(I don't get a 404 error when I don't use path params).
(I'm using this on NextJS)

This is my bad!
I now realize I'm supposed to put my API handler inside [...trpc].ts. My bug was that I was putting my API handler inside [trpc].ts just like in the tRPC docs. In any case, great docs! I facepalmed so hard because I realized NextJS has a special way of handling dynamic API routes: docs here
Proper NextJS usage:
// pages/api/[...trpc].ts
import { createOpenApiNextHandler } from 'trpc-openapi';

import { appRouter } from '../../server/appRouter';

export default createOpenApiNextHandler({ router: appRouter });


Bluetooth: controller: GPIO PA/LNA support for nRF53x

Ported the GPIO PA/LNA support for nRF53x by using a DPPI
channel.
Fixes #24142.
Signed-off-by: Vinayak Kariappa Chettimada<EMAIL_ADDRESS>Contains cherry-picked commit from @auroraslb PR: https://github.com/zephyrproject-rtos/zephyr/pull/30732

superceded by https://github.com/zephyrproject-rtos/zephyr/pull/31336

superceded by https://github.com/zephyrproject-rtos/zephyr/pull/31336


max_depth does not work?

Hello,
I felt confused about the configuration option max_depth.
According to WiKi, the resulting constraints tree will in no case be deeper than max_depth. In the implementation, however, it seems max_depth is just ignored during the construction of constraints tree.
if(anaConf.maxDepthExceeded(current.depth)) {
      //System.err.println("DEPTH EXCEEDED");
      return BranchEffect.NORMAL; // just ignore it
 }

Alternatively, max_depth is used when finding the next valuation, i.e., skipping the node that is deeper than the max_depth.
if(anaConf.maxAltDepthExceeded(ad) || anaConf.maxDepthExceeded(currentTarget.depth)) {
      currentTarget.dontKnow();
      continue;
}

As a result, the construction of constraints tree can be get stuck for programs that have deep loops. For example, the iteration of a loop may depend on an input that could be 100,000,000.
for (int i = 0; i < n; i++) {
      ...
}

Am I understanding the implementation correctly?
Any ideas of avoiding the "stuck" in such cases?
Thank you.
Bihuan

Hi Bihuan,
The max_depth configuration will limit the depth of the constraints tree. If you look in the method that contains the condition you mention:
if(anaConf.maxDepthExceeded(current.depth)) {
  //System.err.println("DEPTH EXCEEDED");
  return BranchEffect.NORMAL; // just ignore it
}

DecisionData data;
try {
  if(!current.hasDecisionData())
    data = new DecisionData(current, insn, decisions, explore);
  else {
    data = current.decisionData();
    data.verifyDecision(insn, decisions);
  }

  current.setDecision(data);
}  catch(IllegalStateException e) {
//...
}

then it will simply return and not add a node to the constraints tree if max_depth is exceeded. If the max depth is not exceeded then a new DecisionData is constructed and added to the tree.
Regarding your second question:
To cut off the exploration depth in cases like you mention (or simply for cases with while(true) {...}), we rely on the jpf-core config:
search.depth_limit

Hope it helps.

Kasper

Hi Kasper,
Thank you for your reply.
Setting search.depth_limit does not work. It seems one path in the constraints tree is constructed within one invocation of vm.forward(), thus depth in the search class is not increased as more branches are explored.
As a result, for programs with deep loops, jdart could be stuck by keeping invoking the decision(...) method although it does not create any new DecisionData.
Any suggestions to avoid invoking that method when reaching the max_depth?
Thanks and Regards,
Bihuan

Hi Bihuan,
Thanks, for clarifying! It is true that jpf does not advance the state, because the constraints tree is a separate data structure that is maintained manually; not by JPF choice generators. I could explain more about why this is so, but let's stick to the topic :)
What you want to do is currently not possible, but I think it is not hard to add that feature -- we should do it.
Let me sketch the solution:

Create a JPF-listener (or possibly add to ConcolicListener) that listens on the executeInstruction event.
Obtain the current node in the constraints tree (class InternalConstraintsTree).
Test whether its depth is greater than the bound specified in the analysis config.
If it is, ignore the state (method VM.ignoreState())
Otherwise, continue

A crude implementation of the above (in ConcolicListener) could be the following:
@Override
public void instructionExecuted(VM vm, ThreadInfo ti, Instruction nextInsn, Instruction executedInsn) {
  ConcolicMethodExplorer ca = ConcolicMethodExplorer.getCurrentAnalysis(ti);
  if(ca == null)
    return;
  InternalConstraintsTree tree = ca.getInternalConstraintsTree();
  if(anaConf.maxDepthExceeded(tree.current.getDepth())) {
    vm.ignoreState();
  }
}

I will think a bit about how it can be better integrated, but for now, I think the above works. You will have to obtain a reference to the AnalysisConfig (i.e. anaConf) and change the visibility of the current node in the constraints tree.

Hi Kasper,
Thanks for the solution. I cannot try that now due to a strange problem.
JDart suddenly failed to work due to the following exception.
Exception in thread "main" java.lang.NoSuchMethodError: org.opt4j.start.Opt4JTask.<init>(ZLcoral/solvers/Solver$Guard;)V
	at coral.solvers.search.opt4j.pso.PSOSolver.call(PSOSolver.java:89)
	at coral.solvers.search.opt4j.pso.PSOSolver.call(PSOSolver.java:243)
	at coral.solvers.Solver.call(Solver.java:241)
	at coral.solvers.Solver$1.call(Solver.java:100)
	at coral.solvers.Solver$1.call(Solver.java:1)
	at gov.nasa.jpf.constraints.solvers.coral.CoralSolver.solve(CoralSolver.java:153)
	at gov.nasa.jpf.constraints.solvers.coral.CoralSolverContext.solve(CoralSolverContext.java:66)
	at gov.nasa.jpf.jdart.constraints.InternalConstraintsTree.findNext(InternalConstraintsTree.java:478)
	at gov.nasa.jpf.jdart.ConcolicMethodExplorer.hasMoreChoices(ConcolicMethodExplorer.java:206)
	at gov.nasa.jpf.jdart.ConcolicExplorer.hasMoreChoices(ConcolicExplorer.java:206)
	at gov.nasa.jpf.jdart.JDartChoiceGenerator.hasMoreChoices(JDartChoiceGenerator.java:64)
	at gov.nasa.jpf.vm.SystemState.advanceCurCg(SystemState.java:883)
	at gov.nasa.jpf.vm.SystemState.initializeNextTransition(SystemState.java:745)
	at gov.nasa.jpf.vm.VM.forward(VM.java:1709)
	at gov.nasa.jpf.search.Search.forward(Search.java:579)
	at gov.nasa.jpf.search.DFSearch.search(DFSearch.java:79)
	at gov.nasa.jpf.JPF.run(JPF.java:613)
	at gov.nasa.jpf.jdart.JDart.run(JDart.java:207)
	at gov.nasa.jpf.jdart.JDart.start(JDart.java:131)
	at gov.nasa.jpf.tool.RunJPF.main(RunJPF.java:108)

The coral solver passed all the tests when doing maven install. But it just didn't work with JDart.
It seems opt4j only has the method org.opt4j.start.Opt4JTask.(Z)V. Since I do not have the source code of coral, I do not know why it calls the not-found method.
Any clues about this?
Thank you.
Bihuan

I don't think I have seen that before. Can you provide an MWE?

Hi Kasper,
I have tested your suggested solution, and it works. Thanks for your great help.
I have also fixed the NoSuchMethodError bug. It turned out that, both coral.jar and opt4j-2.2.jar are in the classpath and contain the class Opt4JTask, but their construction methods have different parameters. Actually, the Opt4JTask from coral.jar is the right class to be loaded; but instead, the Opt4JTask from opt4j-2.2.jar is accidentally loaded and thus a NoSuchMethodError is thrown. According to JVM's class loading mechanism, if two jars contain the same class, this class will be loaded from the jar that appears first in the classpath. This means, if coral.jar is loaded before opt4j-2.2.jar, everything works fine (as in my old computer); and if opt4j-2.2.jar is loaded before coral.jar, a NoSuchMethodError is thrown (as in my new computer).
After diving into the implementation details of jconstraints, I found that this bug results from the method addJARS(...) in the class ExtensionLoader. It uses File.listFiles to load the jars (including coral.jar and opt4j-2.2.jar) from the extensions folder. As indicated by javadoc, however, for File.listFiles, there is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order.
private static void addJARs(File directory, List<File> jarList) {
	...
    Collections.addAll(jarList, directory.listFiles(JAR_FILTER));
}

To fix this bug, my simple solution is to sort the listed jars before adding to jarList to ensure that coral.jar is definitely loaded before opt4j-2.2.jar.
private static void addJARs(File directory, List<File> jarList) {
	...
    File[] files = directory.listFiles(JAR_FILTER);
	java.util.Arrays.sort(files);
	Collections.addAll(jarList, files);
}

Best wishes,
Bihuan

Hi Bihuan,
Great you got it working! I'll probably add the feature for limited path exploration this week.
Also great you got coral working! :) Now that you mention the problem, I think I had similar issues some time ago.
While sorting the files in this particular case solves the problem, it doesn't solve the more general problem of classpath conflicts. One way of partly solving the problem could be to monitor the classes being loaded by jconstraints, and issue warnings if classpath conflicts arise. In that case, we could resort to a manual (or semi-automatic) classpath setup by, e.g., priority-assignment to the entries.
Cheers,
Kasper


rustypaste: 0.12.0 -> 0.12.1

Diff: https://github.com/orhun/rustypaste/compare/v0.12.0...v0.12.1
Changelog: https://github.com/orhun/rustypaste/blob/v0.12.1/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 248542 run on x86_64-linux 1

1 package built:

rustypaste


Allow users to update non-password account attributes without their current password

A user should be able to update non-password account attributes (such as username or any other developer-added attributes to their Devise user model) without using their current password.
This is a standard practice on plenty of websites, and I believe this is a common enough use case that Devise should support it out-of-the-box.

Hi
Thanks for your pull request.
I found a small problem: I can change an e-mail without inputting a password. And, as a result, I can request a password reset and change your password. So I would password protect attributes used on login like e-mails or usernames.

Hi Rodrigo,
That's a really good point. Do you think we might need a config option to let the user specify what attributes should be protected?

Maybe I would use a white list instead of a black list, this is, I would put a config option to attributes that don't need to be protected. Using a black list can cause security problems to people that don't know about this.
What do you think @josevalim, @carlosantoniodasilva, @rafaelfranca?

Well, I think this has already been discussed several times related to Devise registration module, and we always agreed that this module would always require the current password to allow changes. I'm not still not convinced that we should allow it to be different, so I'm gonna wait for others input.

Thanks but Devise takes the more secure approach of only allowing the Devise related fields (e-mail and password) to be updated with password. That's how Devise handles it and we are not going to change it. If you want to provide a different schema, you just need to create your own action, it is only five lines of code. Adding such logic to Devise can only insert security breaches on update and make the code more complex.

Hey Jose,
I think the behavior you are describing is exactly what I'd like. Only Devise-related fields should be updated with a password.
Based on my experience, I am prevented from creating new, non-devise-related attributes, on my models and updating them without a password. Would I need to log a bug then?
Other than updating the controller update action, there were several other steps I needed to create something that seamlessly worked. The lines I submit here in the patch were necessary, but I also had to some awkward rearranging of views and updating routes.

No, it isn't a bug. You should create your own action then. It doesn't need to even be in Devise controller. I usually split my forms in two parts, one that needs password to change and another that doesn't.


Checking out v2.0.0 of raiden and deploying contracts gives error

@palango
To reproduce the error follow this guide here till the deployment of the SecretRegistry and TokenNetworkRegistry contracts
The genesis.json file is wrongly formatted in the readThedocs and will be corrected. meanwhile the genesis.json looks like this
This is a very trivial error. On observing the output we see that the contracts are deployed and it also generates the required deployment files but it fails somewhere at the end.
{
"config": {
"chainId": 4321,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"ByzantiumBlock": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"ConstantinopleBlock": 0,
"PetersburgBlock": 0
},
"alloc": {},
"difficulty" : "0x1",
"gasLimit"   : "0x9880000"
}

The actual command output while running the deployment.
(env) ubuntu@checkv2Raiden:~/priv_chain$ python -m raiden_contracts.deploy raiden --rpc-provider $PROVIDER --private-key $PRIV_KEY --gas-price 10 --gas-limit 6000000 --contracts-version $VERSION --max-token-networks $MAX_UINT256
Web3 provider is RPC connection http://<IP_ADDRESS>:8545
Enter the private key password:
DEBUG:raiden_contracts.deploy.contract_deployer:Deploying SecretRegistry txHash=0xdb537a1b3bbb3431cfce3ee68f1d0a22774bc635bb2ef2654b818db96ee6cb3a, contracts version 0.37.0
INFO:raiden_contracts.deploy.contract_deployer:SecretRegistry address: 0x06E64DE3a5c723fdde0EA754Af83fD21e46e5c13. Gas used: 292942
DEBUG:raiden_contracts.deploy.contract_deployer:Deploying TokenNetworkRegistry txHash=0x08a8d0742e8a969d020eec03396672beea6cd2daddfc1329a1e2c99aeb7f339c, contracts version 0.37.0
INFO:raiden_contracts.deploy.contract_deployer:TokenNetworkRegistry address: 0xcB3098A28d9842Bae485d943aC2CFdD548Cf56ea. Gas used: 4907650
Deployment information for chain id = 4321  has been updated at /home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/data_0.37.0/deployment_private_net.json.
SecretRegistry at 0x06E64DE3a5c723fdde0EA754Af83fD21e46e5c13 matches the compiled data from contracts.json
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/deploy/__main__.py", line 564, in <module>
    main()
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/click/core.py", line 1699, in invoke
    rv.append(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/deploy/__main__.py", line 89, in wrapper
    return func(*args, **kwargs)
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/deploy/__main__.py", line 241, in raiden
    deployed_contracts_info=deployed_contracts_info
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/deploy/contract_verifier.py", line 92, in store_and_verify_deployment_info_raiden
    self.verify_deployed_contracts_in_filesystem()
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/deploy/contract_verifier.py", line 52, in verify_deployed_contracts_in_filesystem
    if self.verify_deployment_data(deployment_data):
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/deploy/contract_verifier.py", line 135, in verify_deployment_data
    deployment_data=deployment_data, contract_name=CONTRACT_TOKEN_NETWORK_REGISTRY
  File "/home/ubuntu/priv_chain/env/lib/python3.7/site-packages/raiden_contracts/deploy/contract_verifier.py", line 212, in _verify_deployed_contract
    library_address=contracts[LIBRARY_TOKEN_NETWORK_UTILS]["address"],
KeyError: 'TokenNetworkUtils'

Yes, this is a bug that was introduced when the library was added.
Will be fixed with https://github.com/raiden-network/raiden-contracts/pull/1501

@palango i dont encounter this bug on the latest develop branch though, so after your PR are we going to make another release of raiden ?


Remove boost dependencies from ClientKit and anything it includes

Sorry this took so long!
Possible issues:

BoostDeletable.h is now StdDeletable.h. would 'SharedDeletable.h' or any other name make more sense?
CMake didn't like it when I provided 'osvr_cxx11_flags' as the target_compile_features, so I was forced to use cxx_range_for. Works, but not ideal, if anyone can figure out why that is.

I dug for includes or anything else that included Boost to a depth of six, so hopefully I caught everything. Let me know if there's anything else missing and I'll try to clean it up.

I think we still need a commit that removes boost as a CMake dependency when only the ClientKit is being compiled.

Ah, quite possibly. It appears as though I can't compile the current OSVR
branch of dolphin with or without these changes right now, due to system
lib changes, so testing will be a bit harder.
Is there a circumstance where we'd just want to compile the clientkit
though? Almost certainly what you'd have is OSVR installed system wide, and
just use its headers and precompiled clientkit lib.
On Nov 20, 2015 05:41, "Jules Blok"<EMAIL_ADDRESS>wrote:

I think we still need a commit that removes boost as a CMake dependency
when only the ClientKit is being compiled.
—
Reply to this email directly or view it on GitHub
https://github.com/OSVR/OSVR-Core/pull/280#issuecomment-158370601.

Brought Dolphin/OSVR up to date with master and compiled it on a system with this version of OSVR installed and no boost headers, built without issues!
I'll look into the CMakeLists.txt, it's probably best to use that for completeness.
(for documentation purposes: the plan is to pull OSVR-Core as a submodule into Dolphin's externals folder, and build just the clientkit as part of the Dolphin build)

Hmm, it will take more than just this to do that though, as this only removes boost from the ClientKit includes... not clientkit itself.
For ClientKit itself, the following files would need to have boost references removed:
osvr/Client/InternalInterfaceOwner.h
osvr/Client/ViewerEye.h
osvr/Common/ClientContext.h
osvr/Common/ClientInterface.h
osvr/Common/DegreesToRadians.h
osvr/Common/GetEnvironmentVariable.h
osvr/Common/InterfaceState.h
osvr/TypePack/And.h
osvr/TypePack/Contains.h
osvr/TypePack/Fold.h
osvr/TypePack/If.h
osvr/TypePack/List.h
osvr/TypePack/Not.h
osvr/TypePack/Quote.h
osvr/TypePack/T.h
osvr/TypePack/TypeKeyedTuple.h
osvr/Util/Angles.h
osvr/Util/KeyedOwnershipContainer.h
osvr/Util/SharedPtr.h
osvr/Util/TimeValueC.h

Liiiittle bit bigger job.


Text Tool: Add Font Size

Add possibility to  configure font size and symbols.

User can select font size of the text in the modal window with Text editing.
Font size is from 4 to 144 pt.
Default font size is 13 pt (as now).

User can change font size for the selected text.

Release/2.4 The issue is verified and closed.


chore(main): release 0.7.2

:robot: I have created a release beep boop
0.7.2 (2024-01-10)
Bug Fixes

deps: Update dependency go to v1.21.6 (#56) (8bbe68c)
deps: Update module golang.org/x/net to v0.20.0 (#55) (4a4badc)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/mikesmitty/mdns-mesh/releases/tag/v0.7.2 :sunflower:


Super crazy request from a non coder

I love your mod and use it all the time when playing Factorio, especially with friends. I'm wondering though, would it be possible to port it to Space Engineers? We recently started playing it and while we really enjoy it, no one has written a similar mod for it. I would be more than happy to donate a copy of the game or make some other similar donation!
Also I totally understand if this is not something y'all are interested in so please feel free to tell me to piss off!

hahah thanks :)
Unfortunately I barely have time to play Factorio and starting another game is not an option for me at the moment.
If you want to start a project there I happily give advice and explain design decisions, though :)
Thanks again for the request and good luck with your Spaceships!
Best,
Jonas


Discuss role hierarchies for data sharing with Snowflake profssional services

This issue from the CDSS project can also occur if/when we want to share any views with our setup. We have a couple of workarounds that are not hugely satisfying to me, and I'd like to discuss further with our Snowflake reps whether we can identify any alternative approaches.

Okay, so after some more conversation, I'm more-or-less convinced that the same solution as above is the least-bad option.
The basic problem is that functional vs access roles is an abstraction, and a leaky one. This is a case where we cannot maintain the purity of access roles. In order for a view to work, the view owner must have read access to the underlying table. If that underlying table exists in a different database or schema than the view owner can read, then the view will fail. This is despite the fact that view users only need to have SELECT access on the view, rather than the underlying table. This is described in more detail here. It's an annoying limitation, but appears to be expected behavior.
The problem we run into is that the owner of a view is the relevant access role for the database/schema (i.e., the read/write/control role). But if the view references a table in another database/schema, it will fail because, by design, the access role only has access to its own object. There appears to be no way around this, except for the following two compromises:

Grant TRANSFORM_READ to ANALYTICS_READWRITECONTROL. This gives the view owner read on the underlying db. Note that ANALYTICS_READ, and thus the dashboarding users, would still not have access. Though it does break the purity of access roles.
Create a new functional role for dashboarding users that has read access to both ANALYTICS and TRANSFORM. If there is any pre-aggregated sensitive data in TRANSFORM, then the dashboard users would theoretically have access.

Of these two options, I prefer one. This is just a place where the access vs functional role abstraction leaks.

Closing as complete.


Update Quickstart Guides

Updating the quickstart guides (mostly screenshot changes)

@ConnorLand doing some edits here to accommodate new Hello World quickstart and language reviews: https://github.com/mendix/docs/pull/6882 - shouldn't interfere with screenshot updates

I looked at fixing these conflicts, but it will be better if you do it while knowing the new screenshots and image file names you want to use. Please let me know if you have questions on my content edits.

I am going to resolve conflicts in this PR and then merge so that all the screenshots are updated. Ryan also has some text updates he wants to make to both docs in the next few days. Therefore, please ping me when you're ready to merge https://github.com/mendix/docs/pull/6889/files next week so I can coordinate Ryan's updates after yours merges.

@ConnorLand thanks will do, https://github.com/mendix/docs/pull/6889 is almost ready to go, I'll probably merge Monday


Is it plan to upload rocm into Debian ?

Hello, it would be great if out of the box peoples could have rocm uploaded into Debian.
So is it plan ?
Thanks
Frederic

rocm-dkms builds fine against Debian 9.4's 4.9 kernel; I get full OpenCL support.
It looks like the last parts needed for upstream kernel support will be upstreamed in 4.17, so the question will be on integrating the userspace.
+1 for ROCm userspace packages in the Debian repos.

Some issues for Debianization:

gpu detection for the installer, to know when to install ROCm
requires the package firmware-amd-graphics from the non-free repository

The http://repo.radeon.com/rocm/apt/debian/ repository currently only ships the debs, could you also publish the Debian source packages to allow custom builds?

Thanks @picca
As its very old issue, and no updates for the last 2 years, this issue is going to be closed.
Request to open a new ticket, if you found any.
Thank you.


Use the passed typescript object to look up the module codes

Currently, gulp-typescript looks up the available module options on the typescript object that it requires explicitly (currently 1.4.1). This means when new module options are added (like system and umd in the current typescript master), gulp-typescript doesn't learn about them even when the user passes a custom typescript object. As a result, no module system or the wrong module system is used.

It works. Thanks!


feat(transform): add pick

Checklist

[x] npm test passes
[x] tests and/or benchmarks are included
[x] commit message follows commit guidelines

Description of change

分支名用 feat-pick，不要用 --，也不要前面小写后面大写（feat--Pick❌）


I used html2canvas to turn the JSP page into a picture, but there are some function-like things in the picture（我用html2canvas把 jsp 页面转成图片，但是图片里面却出现了一些类似函数的东西）

Hello:
I used html2canvas to turn it into a picture, but there are some strange things in the picture, such as some functions. Please have a look at the screenshot I uploaded
Thank you very much!

可能是一些隐藏内容 入 noscript 之类的判断标签的内容，只是一个思路不一定真是

首先非常感谢你的建议，  我看了我的jsp页面，我没有用到的标签，不过我这个页面用了很多vue的组件，但是哪些奇怪的函数只出现在那一个组件的同一个位置，别的组件都是好的（First of all, thank you very much for your advice. I looked at my JSP page, I did not use  tag, but I used a lot of vue components in this page, but some strange functions only appear in the same place of one component, other components are good）

应该是 css border-radius 值太大，比元素得宽高都要大，浏览器会处理，这插件应该没有处理


Safari still does not support CORS for  in

Early testing of iOS 9 is not hopeful either:
https://bugs.webkit.org/show_bug.cgi?id=135379

Thanks! I don't think this is a common enough use case to make it worth partial support though, so I'm going to change it to just being a bug.

Works for me :+1:


[nextcloud] where's the config.php file?

Which addon?
Nextcloud
I see the config.php file is supposed to be in /config/www/nextcloud but it's not for me (there's no nextcloud folder at /config/www). NC runs fine but I'd like to add a trusted domain and I need the config.php file for that.
NC addon 26.0.0-12 running on HAOS 2023.4.2
Please advise, thanks.

Hi, please use the addon option to set the trusted domains. The config.php is in /data/config/www/nextcloud so surfin the container and therefore not accessible without tools such as portainer. But anyway the addon option will supersede any trusted domains manually added in the file

Hi, thank you! Done and working.


Page Logic classes should be called Page_

This is to avoid common page names, such as new.html or list.html clashing with PHP reserved keywords -- you can't have a class New {} for example, but you can have class Page_New {}

class Example_PageLogic extends \Gt\Page\Logic {
}#

Now part of the StyleGuide.
https://github.com/PhpGt/StyleGuide/blob/master/directories-files-namespaces/path-mapping.md#web-mapping-example


Update imagebackground.md

update link for ImageBackground source code

I believe we might want to backport this change to previous versions of the docs

closing since we are continuing the discussion and broader work over at https://github.com/facebook/react-native-website/pull/3634


Issue #84 -- emit esl::end on socket::close

net.Socket emits "end" only on successful closing, but it emits "close" in error conditions as well.

If you rebase this branch to the latest, it should run CI so we can check if it passes.

We think we are facing the same issue. The TCP connection was closed and the application does not receive any signal.
Can we do something to help fixing the problem?

you've got two PR's in different branches, can we move on with it?

A PR on the latest v1 branch with these changes that pass CI would allow me to merge it in.

come on, it's a one-liner patch, and you have the PR in two branches already

and this PR is actually against v1.x branch

@englercj Does it possible to merge this PR?


Merge Disc dumping into DuckStation and PCSX2 Emulators?

Hi there,
do you think you could add disc dumping features based on your tool to DuckStation and PCSX2 emulators?
I've described what I'd like to achieve here: https://github.com/PCSX2/pcsx2/issues/6910 but the idea was discarded.
Both emulators provide fullscreen / TV user interfaces and all I'd like to have is an option to install / dump inserted discs to the emulators game library.

I'm not interested in it.


Replacing tv4 with a faster validator

Is there a particular reason why tv4 is used as the JSON-schema validator? Its performance seems horrible, according to json-schema-benchmark and other similar benchmarks. Can it be replaced with e.g. ajv or is-my-json-valid?

When I selected tv4 it was the fastest JSON-schema validator on the market. Things seem to have changed :smile:.
Some of the faster validators seem to generate code based on the schema. This process is really slow since the generate code needs to be compiled and optimized by V8. These validators are only fast when the schema doesn't change (the validator doesn't have to be "recompiled").
In objection.js it is possible to modify the jsonSchema in the $beforeValidate method. Since this is allowed we would need to either check if the schema has changed after each $beforeValidate call or recompile the validator each time. Both would probably be slower than just using tv4.
The possibility to modify jsonSchema in $beforeValidate may be more of a bug than a feature, and I don't even know if anyone is using it. So we could consider changing this behaviour so that the jsonSchema would never change.
Do you actually have a real-life case where the validation performance is a bottleneck? I have never seen such a case. The validation is only run on insert and update and those are usually rare operations and the DB IO is the bottleneck.
If the validation performance is really a bottleneck and you can find a validator that works faster with the above restrictions in mind, I'd be happy to start using that one.

Forgot to mention that you can change the validator for your models by overriding $validate method. You just need to honor the flags in the options object since they are used internally.


Enable log/slog from Go v1.21 and migrate scheduler.

Go 1.21 added log/slog. This PR wires up Zap logger to slog, so that logs written to slog are handled by Zap.
This change also adds an slog.Handler for adding slog.Attrs to a context.

See #185


Build for the latest SageMath release

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender.


Add OpenSearch docs

Closes #596
I think 2.5.x is the correct branch for Micronaut 4.5.0...  But we also have a 2.6.x branch, which has confused me

You mean 2.5.x is for Micronaut 4.4, right?

You mean 2.5.x is for Micronaut 4.4, right?

Micronaut 4.3.8 released with 2.3.3 in the platform...
So 2.4.0 should be for Micronaut 4.4.0?
Which means 2.5.0 will be Micronaut 4.5.0?
I may be wrong, I'm using my module-version cli tool

❯ ~/bin/module-version micronaut-test-resources -m 4.3.8
Looking for micronaut-test-resources in Micronaut 4.3.8
Version: 2.3.3

documentation fixes should be consider as bug fixes @timyates. Thus, this should go into the same branch which is included in Micronaut Platform 4.4.0 which 2.5.x https://github.com/micronaut-projects/micronaut-platform/blob/4.4.x/gradle/libs.versions.toml#L71


Smooth scrollbar in iFrame first sluggish 15FPS, after click/tap the full 60FPS

When using smooth scrollbar 8.2.4. in an iFrame on an iPad iOs11 it does work. I can directly swipe the page and scroll with the default settings. The strange thing is that the scrolling is only smooth after i clicked / tapped the page.
So :

I open the page
Swipe down
The scroll feels sluggish like 15 FPS

Now i just tap/click the page once

The scroll feels smooth like 60FPS

Any ideas what is may causing this problem? I tried to auto-focus the iframe but this is not changing te behavior.
Testlink with iframe on iPad (Smooth-scrollbar) website included :
http://flextest-cd63cd.webflow.io/iframecheck

Iframe always behaves weird 😞. I'll keep an eye on this issue though I don't think it could be resolved.

When checking the page on older iOs versions everything seems ok. It looks like iOs11 needs a user-click to activate hardware acceleration inside the iframe. Strange that the swipe itself is not recognized as user input but a separate click does.
I can see it happening with other websites containing hardware accelerations. Animations run sluggish in the iframe, but after the click on the iframe running smooth.
We tried to fake the tap/click but this is not working. So i think your right, it's a new global iOs11 limitation where a user needs to activate the iframe before making use of hardware acceleration.


pachctl undeploy should have --force option

Currently pachctl undeploy requires interaction.
A flag should be added to skip interaction and remove everything without asking.

do you mean pachctl delete-all? I didn't think undeploy requires interaction

It does if you specify -a as well.

Ah true. @jdoliner or @derekchiang may be able to chime in about how easy that would be to add. I think it should be pretty easy so you can automate those commands

I'm not sure if adding a --force flag makes sense for this, especially since kubectl delete (which is what pachctl undeploy is using under the hood) already has a --force flag with a different meaning which we may want to push through at some point. If you're looking for a way to get around the interactive aspect of undeploy for the purposes of a script I'd recommend doing:
yes | pachctl undeploy -a

That works as a workaround. Didn't know that the yes commandline existed.
Should we at least document this somewhere?

@jdoliner Feel free to close this if we shouldn't document this anywhere.
Otherwise, it's probably best to add this to the documentation website which I can do.


Ignore Content Inside Script Tags

It would be for the best if we would ignore content within <<script>> tags, but our current 'parsing' method doesn't really allow that.

The issue I was thinking of was due to #90 , which would badly interact with script tags since they would not be put on one line.


reformatted navbar and pages to include a division and projects page,…

… used bootstrap 5 classes
Reformatted website structure to include a division and project page.

PR #28 addresses issue #18.


new jinja function: log var

Describe the feature
As I mention in https://github.com/bastienboutonnet/vscode-dbt/pull/14

in Python 3.8+ I'm now very dependent on the f-string and walrus-operator related move:
> foo = 'my string'
> print(f'{foo=}')
foo='my string'

I find myself doing be below in Jinja all the time and missing my Pythonic way of doing it. A snippet would is the lowest-hanging fruit, although I'd love a log_var() macro in dbt, someday!
{{ log('drop_script: ' ~ drop_script, info=True) }}

Describe alternatives you've considered
Making it available as a snippet for VSCode, Atom and/or dbtCloud?
Who will this benefit?
anyone who spends a lot of time writing dbt-jinja.
Are you interested in contributing this feature?
Yes! PR imminent...

@swanderz I like it! Thanks for the PR, too :)
Agree that it's not worth the trouble of back-porting exact support to python 3.6 or 3.7 (the former reaches its end of life in December). We'll just need to make sure that we're not breaking any existing functionality for folks using dbt with those older versions of python.

closing in favor of #4184


this PR fixes #177

I've kept your syntax convention for the GL variables.

(I've signed the CLA)

Hey Gregory, this looks good.

landed as 8921bec


Setuptools will install licenses if included in setup.cfg

Addressing #357
python setup.py sdist now includes the license file if license_file
is included in setup.cfg unless it is explicitly excluded in MANIFEST.in.
Co-Authored-By: Poyzan Nur Taneli<EMAIL_ADDRESS>

Summary of changes

Closes
Pull Request Checklist

[x] Changes have tests
[x] News fragment added in changelog.d. See documentation for details

@dtaneli Can you add some tests for this?

Hi @pganssle, I added some tests but I am not sure if it is better to merge these four test cases into a single test or not. Any preferences?
Also, does this change warrant a changelog update?

And yes, this is a behavior change, it definitely needs a changelog.

Made the tests parametrized, added a changelog entry and updated thesetup.cfg documentation.
@pganssle, during the London sprint, we discussed re-using license = file:<path> instead of license_file = <path> since the usage of these attributes kind of overlap. Or maybe we would like to support both?

Ok, I just wanted to make sure because we found that you could actually pass a file according to https://setuptools.readthedocs.io/en/latest/setuptools.html#metadata

Is there anything else that is missing for the scope of this issue?


Tuple error using authorizeWithCallbackURL

I can't get this method to compile. I get an error saying:
Tuple types '(credential: OAuthSwiftCredential, response: NSURLResponse?, parameters: NSDictionary)' and '(,)' have a different number of elements (3 vs. 2)
What am I doing wrong here?
let params = [String: String]()
let url = NSURL(string: REDIRECT_URI)
let oauthUber = OAuth2Swift(consumerKey: CLIENT_KEY, consumerSecret: CLIENT_SECRET, authorizeUrl: REGISTER_URL, responseType: "code")

oauthUber.authorizeWithCallbackURL(url!, scope: "profile history", state: "", params: params, success: {
        credentials, response in
            println("Success")
            println(credentials.oauth_token) },

        failure: { (error: NSError) -> Void in
            println("Fail")
 })

Nevermind, I realized I left out parameters in the success closure. On to the next issue....

Please close
Check if parameters must be the last after response

Neither order it's in seems to make it launch any URL in Safari...

You create an issue for that, please close this one about the tuple...


Make task pool types opaque.

Change the task pool public API to support opaque types.

/bot run checks

/bot run checks


handle unsuccessful write

Exceeding provisioned throughput aka "busting limits"
Will make AWS reject writes and respond back with UnprocessedItems in write response.

[ ] by default we should soft-merge these items back in the queue

In case its bad

we might exceed throughput by such a large margin that we can't realistically store everything eventually.
It's possible to lose connection to AWS for a prolonged period where it becomes impossible to store everything eventually.
[ ] where / how do we draw the line?

check on queue length every time we send it out

if length > 1 000 000: stop?

[ ] whats the behavior?

emit error
shut down queuing mechanism
keep checking to see if we can resume functionality

@mstdokumaci I believe you are working on this is that correct?

didn't start yet but sure i can pick it up.


No import autocomplete with Typescript

In new release, there's no path autocomplete on modules like it used to be on September 2016 release.

VSCode Version: 1.14.0
OS Version: Windows 10

Steps to Reproduce:

Create a Typescript project with "baseUrl": "./" in compiler options
Create some basic module
Try import Foo from "folder/module". There's no autocomplete

Reproduces without extensions: No

If you manually trigger suggestions using ctrlspace (editor.action.triggerSuggest keybinding) do you see the suggestions?

@mjbvz Yes I do. Isn't there a way to automatically show them for import ?

Thanks @Ikderrr. This is a duplicate of #23962
Try setting:
"editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": true
    }

to restore the old behavior. You may still have to manually trigger suggestions if you have not yet typed any characters of the import path

I am not getting path suggestions when typing relative import path with this config: I can only get suggestions when manually pressing ctrl + space after every folder :/ Any idea? @mjbvz
{
  "editor.quickSuggestions": {
    "other": true,
    "comments": false,
    "strings": true
  }
}

Here is also my jsconfig
{
  "compilerOptions": {
    "target": "es6"
  },
  "include": ["src/**/*"]
}


Not really an issue, but I see what your problem is....

response = request.PostFromString(full_params)
Async doesn't work because the request leaves scope before the request itself actually completes.
You can store that request in a global object somewhere, if you do one request at a time.

Thanks!  The code needs some updating... I think doing the request synchronously keeps the library simple and usable.  I'll remove the comments for now, though I'm open to someone submitting a pull request with added async functionality.

Removed the comments in https://github.com/veeta-tv/roku-gamp/commit/7a5257cdd97b9d9cf70f92c80e4fc411ca0e6a52
Thanks for the review and feedback!


Change mex symbol visibility in matlab/CMakeLists

This PR addresses a Invalid MEX-file: Gateway function is missing error encountered in MATLAB r2018b.  Apparently the mexFunction symbol is not generated with the correct visibility settings by default, as of r2018b.  See this GitHub discussion:
https://github.com/DIPlib/diplib/issues/13
and this related discussion on GitLab:
https://gitlab.dune-project.org/duneuro/duneuro-matlab/commit/8d3d06c691f48d5528e562473d4967d7de77e834
Other information: Ubuntu 18.04, compiling mex with g++ 7.4.0.

Thanks! Merged


fossho.st is down

My request to https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst resolves to https://mirrors.fossho.st/garuda/repos/chaotic-aur/chaotic-keyring.pkg.tar.zst which shows:
Error 503 Backend unavailable, connection timeout
Backend unavailable, connection timeout

Error 54113
Details: cache-fra-eddf8230135-FRA<PHONE_NUMBER><PHONE_NUMBER>

Varnish cache server

Closing as duplicate of https://github.com/chaotic-aur/chaotic-uptimes/issues/175#issue-1605919383. Thanks for reporting!


Add class to slides inside visible part of swiper container

[ ] bug
[ ] enhancement
[x] feature-discussion (RFC)

This is a feature request to add some class to slides that are visible (say positioned inside visible part of .swiper-container or any other container set by API). For example, if there is four slides visible inside some wrapper, then add to all the four something like .swiper-slide-visible. That will be a good alternative to .swiper-slide-active in case if there are more than one slide shown.

Check watchSlidesVisibility parameter https://swiperjs.com/api/


Update bot-builder-python-quickstart.md

Include "aiohttp" as a pre-req Python package, this is required for the sample to run.

Change applied to the private repo. Closing this PR.


Fix tip's place from bottom to top for Windows and Linux

What's this PR do?
This PR fix tip's place from bottom to top for Windows and Linux and align the tip's text in the center.
Any background context you want to provide?
Settings QA:  #566, Rishi Gupta suggested a change for TIP in Settings: Shortcuts, the changes are only made for MacOs, though the work for Windows and Linux is remaining.
Screenshots?

You have tested this PR on:

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

Thanks, @rrhythmsharma.


native multiple row implementation

Hi,
I was wondering if there is any chance that you will be supporting multiple rows any time soon. I've tried both faking multiple rows as you suggested somewhere by adding multiple items per list element, as well as the solution posted here
http://stackoverflow.com/questions/213680/multiple-rows-with-jcarousel. However I keep running into weird quirks that happen because jcarousel was not built for multiple rows. For example when you remove out-of-range placeholders, with multiple rows it removes visible elements.
Thanks!

What do you mean by "multiple rows" ? Does that mean that an object leaving on the left the row 2 should enter right the row 1 ? Do you have a live example (even a flash one) of what you ask for ?

Hi,
No I meant so it will show say 5 items per row on 3 rows (total 15 items). Then when the user clicks on the right/next button, the whole 15 items will be replaced by 15 new items.
Also it is important that the items will not follow the normal flow in the DOM from left to right and then top to bottom, because then the first 5 items will be shown on the first page, and then the next 5 items on the second page and so on. This means that the first page will shows items 1 to 5 and then on the row below for example items 31 to 35 and then on the row below that items 61 to 65.
I will try to add a link later today that will show the behaviour I am looking for (with bugs). Do be able to break the normal flow I started working with absolute positioning.


c11_atomics: fix uninitialized member accesses

Initialize the _memoryOrder and _memoryScope members to avoid CBasicTestMemOrderScope::MaxHostThreads() accessing uninitialized data.

Merging as discussed in the November 7th teleconference.


Got a crash shortly after disconnecting my laptop....

I don't do this very often, so I'm not sure how often this issue occurs:

Was using laptop in open position attached to 27" Ultrafine.
Disconnected and used laptop for an hour.
Closed laptop and set down (still disconnected).
Several hours later I plugged it back in to the monitor and found that it had crashed in IOKit (which I believe this app uses):

panic(cpu 0 caller 0xffffff8018291b2c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.driver.AppleIntelCFLGraphicsFramebuffer. Thread 0x1035d08.
Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff922be53900 : 0xffffff8017c471e8
0xffffff922c52bbc0 : 0xffffff8017b433f1
0xffffff922c52bc30 : 0xffffff8017b41c2f
0xffffff922c52bc80 : 0xffffff8017b32800
0xffffff922c52bcc0 : 0xffffff801822d20c
0xffffff922c52bd00 : 0xffffff801822e6eb
0xffffff922c52bd30 : 0xffffff7f9b931d08
0xffffff922c52bdb0 : 0xffffff8018230048
0xffffff922c52be10 : 0xffffff7f9b9317a1
0xffffff922c52be30 : 0xffffff8018214e04
0xffffff922c52bea0 : 0xffffff8018214c0a
0xffffff922c52bec0 : 0xffffff8017b63545
0xffffff922c52bf40 : 0xffffff8017b63071
0xffffff922c52bfa0 : 0xffffff8017ac713e
Kernel Extensions in backtrace:
com.apple.driver.AppleIntelCFLGraphicsFramebuffer(14.0.5)[3A72441D-C2C5-3828-A5AB-B0EE077B7918]@0xffffff7f9b8c3000->0xffffff7f9baf5fff
dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7f98511000
dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7f98508000
dependency: com.apple.iokit.IOAcceleratorFamily2(438.4.5)[33DA860E-90A6-3224-A944-93FA125B054E]@0xffffff7f9b7f5000
dependency: com.apple.iokit.IOReportFamily(47)[337B24B2-0261-3521-8D1B-23387FC1D657]@0xffffff7f98449000
dependency: com.apple.AppleGraphicsDeviceControl(5.1.16)[56FDE242-D4A6-3E8F-A81C-CE9BA61E3828]@0xffffff7f9b8b9000
dependency: com.apple.iokit.IOGraphicsFamily(575.1)[D47CA481-C5E5-3F03-9B04-6634DF5F3121]@0xffffff7f9b7a4000
BSD process name corresponding to current thread: kernel_task
Boot args: chunklist-security-epoch=0 -chunklist-no-rev2-dev
Mac OS version:
19E287
Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide:     0x0000000017800000
Kernel text base: 0xffffff8017a00000
__HIB  text base: 0xffffff8017900000
System model name: MacBookPro15,2 (Mac-827FB448E656EC26)
System shutdown begun: NO
System uptime in nanoseconds:<PHONE_NUMBER>024524
last loaded kext at<PHONE_NUMBER>9973: >usb.cdc.acm	5.0.0 (addr 0xffffff7f9bf25000, size 32768)
loaded kexts:
@filesystems.smbfs	3.4.2

!AGraphicsDevicePolicy	5.1.16
@fileutil	20.036.15
@AGDCPluginDisplayMetrics	5.1.16
!AHV	1
|IOUserEthernet	1.0.1
|IO!BSerialManager	7.0.4f6
AGPM	111.4.4
!APlatformEnabler	2.7.0d0
X86PlatformShim	1.0.0
pmtelemetry	1
!AUpstreamUserClient	3.6.8
AudioAUUC	1.70
AGDCBacklightControl	5.1.16
@Dont_Steal_Mac_OS_X	7.0.0
!A!IKBLGraphics	14.0.5
!ABacklight	180.3
ACPI_SMC_PlatformPlugin	1.0.0
!AThunderboltIP	3.1.4
BridgeAudioCommunication	6.70.3
!AGFXHDA	100.1.426
!AMCCSControl	1.11
!AFIVRDriver	4.1.0
!A!ISlowAdaptiveClocking	4.0.0
!ABridgeAudio!C	6.70.3
!ATopCaseHIDEventDriver	3430.1
!AHIDALSService	1
!A!ICFLGraphicsFramebuffer	14.0.5
!AAVEBridge	6.1
!A!IPCHPMC	2.0.1
@filesystems.autofs	3.0
@filesystems.apfs	1412.101.1
BCMWLANFirmware4355.Hashstore	1
BCMWLANFirmware4364.Hashstore	1
BCMWLANFirmware4377.Hashstore	1
!AFileSystemDriver	3.0.1
@filesystems.hfs.kext	522.100.5
@BootCache	40
@!AFSCompression.!AFSCompressionTypeDataless	1.0.0d1
@!AFSCompression.!AFSCompressionTypeZlib	1.0.0
!AVirtIO	1.0
!ABCMWLANBusInterfacePCIe	1
@private.KextAudit	1.0
!ASmartBatteryManager	161.0.0
!AACPIButtons	6.1
!ASMBIOS	2.1
!AACPIEC	6.1
!AAPIC	1.7
$!AImage4	1
@nke.applicationfirewall	303
$TMSafetyNet	8
@!ASystemPolicy	2.0.0
|EndpointSecurity	1
usb.cdc.acm	5.0.0
usb.serial	6.0.0
!UMergeNub	900.4.2
!AGraphicsControl	5.1.16
|IOAVB!F	840.3
!ASSE	1.0
!ABacklightExpert	1.1.0
IOPlatformPluginLegacy	1.0.0
@!AGPUWrangler	5.1.16
!AHDA!C	283.15
|IOHDA!F	283.15
!UAudio	322.2
|IONDRVSupport	575.1
!ASMBus!C	1.0.18d1
X86PlatformPlugin	1.0.0
|IOSlowAdaptiveClocking!F	1.0.0
!AThunderboltEDMSink	4.2.3
!AHIDKeyboard	209
!AHS!BDriver	3430.1
IO!BHIDDriver	7.0.4f6
!AActuatorDriver	3440.1
!AMultitouchDriver	3440.1
!AInputDeviceSupport	3440.8
!ASMBusPCI	1.0.14d1
|IO!BHost!CUARTTransport	7.0.4f6
|IO!BHost!CTransport	7.0.4f6
!A!ILpssUARTv1	3.0.60
!A!ILpssUARTCommon	3.0.60
!AOnboardSerial	1.0
@!AGraphicsDeviceControl	5.1.16
|IOAccelerator!F2	438.4.5
|IOGraphics!F	575.1
IOPlatformPlugin!F	6.0.0d8
@plugin.IOgPTPPlugin	840.3
|IOEthernetAVB!C	1.1.0
@kext.triggers	1.0
usb.IOUSBHostHIDDevice	1.2
usb.cdc.ecm	5.0.0
usb.cdc.ncm	5.0.0
usb.cdc	5.0.0
usb.networking	5.0.0
usb.!UHostCompositeDevice	1.2
!AThunderboltDPOutAdapter	6.2.6
!AThunderboltPCIUpAdapter	2.5.4
usb.!UHub	1.2
!AXsanScheme	3
usb.!UVHCIBCE	1.2
usb.!UVHCI	1.2
usb.!UVHCICommonBCE	1.0
usb.!UVHCICommon	1.0
!AEffaceableNOR	1.0
|IOBufferCopy!C	1.1.0
|IOBufferCopyEngine!F	1
|IONVMe!F	2.1.0
!AThunderboltPCIDownAdapter	2.5.4
!AThunderboltDPInAdapter	6.2.6
!AThunderboltDPAdapter!F	6.2.6
!AHPM	3.4.4
!A!ILpssI2C!C	3.0.60
!A!ILpssDmac	3.0.60
|IOSurface	269.11
@filesystems.hfs.encodings.kext	1
|IOAudio!F	300.2
@vecLib.kext	1.2.0
!AThunderboltNHI	5.8.6
|IOThunderbolt!F	7.6.0
!ABCMWLANCore	1.0.0
mDNSOffloadUserClient	1.0.1b8
IOImageLoader	1.0.0
|IOSerial!F	11
|IO80211!FV2	1200.12.2b1
corecapture	1.0.4
|IOSkywalk!F	1
usb.!UHostPacketFilter	1.0
|IOUSB!F	900.4.2
!A!ILpssI2C	3.0.60
!A!ILpssGspi	3.0.60
usb.!UXHCIPCI	1.2
usb.!UXHCI	1.2
!AEFINVRAM	2.1
!AEFIRuntime	2.1
!ASMCRTC	1.0
|IOSMBus!F	1.1
|IOHID!F	2.0.0
$quarantine	4
$sandbox	300.0
@kext.!AMatch	1.0.0d1
!AKeyStore	2
!UTDM	489.101.1
|IOSCSIBlockCommandsDevice	422.101.1
!ACredentialManager	1.0
KernelRelayHost	1
!ASEPManager	1.0.1
IOSlaveProcessor	1
!AFDEKeyStore	28.30
!AEffaceable!S	1.0
!AMobileFileIntegrity	1.0.5
@kext.CoreTrust	1
|CoreAnalytics!F	1
|IOTimeSync!F	840.3
|IONetworking!F	3.4
DiskImages	493.0.0
|IO!B!F	7.0.4f6
|IO!BPacketLogger	7.0.4f6
|IOUSBMass!SDriver	157.101.3
|IOSCSIArchitectureModel!F	422.101.1
|IO!S!F	2.1
|IOUSBHost!F	1.2
usb.!UCommon	1.0
!UHostMergeProperties	1.2
!ABusPower!C	1.0
|IOReport!F	47
!AACPIPlatform	6.1
!ASMC	3.1.9
watchdog	1
|IOPCI!F	2.9
|IOACPI!F	1.4
@kec.pthread	1
@kec.corecrypto	1.0
@kec.Libm	1

Thank you for reporting, but to be honest this could be anything and it's very hard for me to do anything with it.
For what it's worth, similar kernel panics are quite widespread as far as I know, way beyond the small user base of this app. IOSomethingFamily is usually in the crash reports.
Also for what it's worth, this app doesn't really do much weird or intrusive things, it only calls these two functions of a private framework to read/write brightness, but the fact that it's private doesn't necessarily mean I'm hacking the system in any weird way. It's just like any other framework accept Apple doesn't want to release it to developers (yet) because it's subject to change or for other reasons.
I'm not saying it's impossible this app has anything to do with the crash, maybe it's a timing issue and the kernel just doesn't expect a certain function to be called at a certain time, but in the end if a user-space app is able to cause a kernel panic it's a bug in the kernel.
If the app does have anything to do with it I would want to find out of course so I can think about ways to fix it, but that's going to be hard. For now, see if you get this crash more often and if you do, try going without the app for a while and see if it changes.
If you keep having this problem with or without the app, I heard that disabling Power Nap often helps.

Further to the @OCJvanDijk's comment above, I have experienced this issue constantly when using 2x UltraFine's and plugging/unplugging them, or just waking up the MBP from sleep. This is a known issue with these monitors in combination with the MBP, and I've experienced this both with and without the brightness sync app running - as initially I had the same thought, that it could be the app. @rsaid99, if you Google for this error you'll find multiple reports in relation to the UF screens and the MBP. The only way I've got round this is to prevent the MBP from sleeping when I have the screens connected - far from an ideal solution, but it works. For this I use the Amphetamine app from the App Store and create a trigger which will detect when I have 2 screens connected, and will allow the screens themselves to sleep, but will prevent the MBP from sleeping. This is the best "solution" I have come up with over 2 years of searching!

Good info, thanks guys.  Closing for now.  This isn't a common workflow for me, and indeed there appears to be many citations of this issue outside the universe of this app.  Will re-open if more specific pattern of crashing can be established.


map doesn't show

Subject: map doesn't show
Description:
show on map
Results:
using brave browser (chromium)
Backend version: develop-b1817b42
Frontend version: develop-b1817b42
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36
Page: https://couchers.org/search?location=Stadt+Lienz%2C+Tyrol%2C+Austria&lat=46.82958615&lng=12.750316209629112#loc=1.28/1.3/9.1
User: topago (10113)

Can't reproduce


Use new "export" style for codegen rules

Skylark style guide discourages intentionally using a "load" as an
export. Instead load into a private name and then explicitly show it
with a public name.
Also

Don't expose dart_codegen_action anymore. It's only needed within
dart_codegen_rule.
Shorten the "internal" names by dropping the leading "dart_".

This might also help with some cases where xrefs don't work right...


voxelization with reverse_index

Thanks for the great work!
I saw the voxelization use reverse_index=True to get coordinate in zyx-format and get dense feature in NCDHW finally. I'm curious about this setting, why use xyz-format？Is there some interpretation？
If I use xyz-format to generate voxel, what should I do to suit this setting except the following manipulations：
1. remove “sparse_shape = np.array(input_shape[::-1]) + [1, 0, 0]”
2. manully permute channels:
N, C, H, W, D, = ret_dense.shape
ret_dense=ret_dense.permute(0,1,4,3,2).contiguous()
ret_dense = ret_dense.view(N, C * D, H, W)

why use xyz-format？Is there some interpretation

I think you mean why using zyx? TBH, I don't know. I asked in the original spconv library a while ago but there was no reply. I simply follow this setting to ensure that it won't mess us some later computation.

If I use xyz-format to generate voxel

This sounds super complicated. Why can't you simply reverse the index at the beginning? https://github.com/tianweiy/CenterPoint/blob/8fcdc944bbb455bd25943b331aaf961aa0ab32cd/det3d/models/readers/dynamic_voxel_encoder.py#L13

Thanks a lot !
Yes, I mean zyx.  Because I found other works that I followed use xyz-format, so I try to unify the setting.
I do set reverse_index=False in voxelization.generation() to generate coors in xyz-format before making a sparse tensor.
I will still try. If I succeed, I will let you know my modifications.  : )


Fix for spotify 1.2.4

As spotify has totally changed the URI methods _base62Id and getBase62Id() wont be available here after Spotify 1.2.3. So fixing your ext in adavance with backwards compatibility for spicetify/spicetify-cli@93893021694d441a22f9dbf01dc91ae50ae14458

Thanks @Tetrax-10


Compute CoR code is corrupted..

It must be implement in paper, but i implement in my opinion.

cor compuation need smooth-similarity mesh(all vertex has 2 more bone index within adjacent vertex)..
if i get smooth-smilarity mesh, it will be tested & fixed..