[WIP] Make retention options a per Namespace construct

Large pending chunks:

[x] builds are :(
[x] rethink persistManager, persist/fs/Options usage of RetentionOptions
[x] cleanup manager handling of commit log cleanup
[ ] commit log bootstrapper handling of multiple retentions
[ ] more unit tests
[ ] more integration tests
[ ] ensure metrics are observable per namespace
[ ] repairer needs to track state per namespace

Changes Unknown when pulling c7155ae61a2d88b13f2df929bff869a1b79dea88 on prateek/ns-isolation into ** on master**.

Changes Unknown when pulling 9b6e7117f3f664b97bc94f4bce6b77f86c434383 on prateek/ns-isolation into ** on master**.

Coverage increased (+0.2%) to 77.535% when pulling 37dd13bf84a4fdd857b62b4241643ae260fcfd6e on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.4%) to 77.681% when pulling b8d8a4367b40c0616a1588911987015972381f83 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.2%) to 77.503% when pulling b8d8a4367b40c0616a1588911987015972381f83 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.2%) to 77.534% when pulling b1347085eefffc85de8dbb6284ad90ee4aab44a2 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.586% when pulling 5c0c68dabe8af15fec1b1262a7f116ec12623a08 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.573% when pulling 8d615fcba69b1ab18fee9341176ea94c543f1d82 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.64% when pulling 364c7206d1d278a99e78005ce7394dd7c8d5084d on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.03%) to 77.339% when pulling d230d23b95317b70363eaf91b80c0150b30aad3f on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.07%) to 77.38% when pulling 1e242ad6b12866b4a65fdcbb152f5776b0884d4d on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.04%) to 77.265% when pulling 81415759e1253bbe3f399fcce1df99c13ca0ace7 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.004%) to 77.304% when pulling 355a0cc80fb3805b1448bf5dd5338f7198758d8c on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.05%) to 77.259% when pulling 09f2888e84148ef6a089add050176d1f84247057 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.04%) to 77.271% when pulling 09f2888e84148ef6a089add050176d1f84247057 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.03%) to 77.277% when pulling 9de58e0ba34a94fce9adf41c38e6a523c19146f9 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.009%) to 77.317% when pulling 3e9fc02ab18efa92788e03d433ae7437815be222 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 76.983% when pulling fcba430420c274be9c2e3e536d7ceef8e215ed75 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 76.983% when pulling 509ffb5e14802f9cc3922e250705ddcdbe8876a7 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 77.043% when pulling eb8ee1e3e9038843a87e73f612ab4077aa80d6ba on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 77.001% when pulling 60609cf4ca975984b56d58c24857999877c3531c on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 76.965% when pulling 855f7cac9e3d1f11035b7e4283fef93a74348515 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 76.965% when pulling 855f7cac9e3d1f11035b7e4283fef93a74348515 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 76.965% when pulling 855f7cac9e3d1f11035b7e4283fef93a74348515 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.3%) to 77.001% when pulling 8c8752e4c7b47be607ff9ccef3409d641ed81544 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.07%) to 77.38% when pulling c2d6efd3acb7fe44a3845716704887df80dd3831 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.1%) to 77.416% when pulling 722a6d53a613e57f097475e1cdb8b943eb0159c4 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.05%) to 77.26% when pulling 91fdc09adb344f7408a0b9d785ddfe6a6dfc19a4 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.05%) to 77.26% when pulling 91fdc09adb344f7408a0b9d785ddfe6a6dfc19a4 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.008%) to 77.3% when pulling a7da3afa0e221e5e05ea90e7101ef307b1750a41 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.09%) to 77.396% when pulling 83546dbb6127baa1a1ff83755513c9b3170985d3 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.09%) to 77.396% when pulling 83546dbb6127baa1a1ff83755513c9b3170985d3 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.004%) to 77.304% when pulling 91c64fc8baa70fb1b4d06af2cbc7603ab09c5af9 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.08%) to 77.393% when pulling 28e2440f0850c65ca2c23b995930874093f84297 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.08%) to 77.393% when pulling 28e2440f0850c65ca2c23b995930874093f84297 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-0.09%) to 77.218% when pulling 57bf572634f7985a18fe052d413b13542cb2f9d4 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-10.7%) to 66.624% when pulling 8b08de5741b7664c02ea3d5285640801f74f2a6e on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.2%) to 77.465% when pulling 82d0f22434d59bf6a87da3f3eb08d08b4613e6b4 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.2%) to 77.465% when pulling 82d0f22434d59bf6a87da3f3eb08d08b4613e6b4 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.1%) to 77.404% when pulling e27ae7c64e80562f9e0059049b3d98a607ae934d on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.006%) to 77.314% when pulling e27ae7c64e80562f9e0059049b3d98a607ae934d on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.006%) to 77.314% when pulling e27ae7c64e80562f9e0059049b3d98a607ae934d on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-10.7%) to 66.624% when pulling 5b62f2d70aabbb54740f2432baa29326376d8ccb on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.05%) to 77.358% when pulling 2d8ee0916883545838011d0f17db3eec80fc9786 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.05%) to 77.358% when pulling 2d8ee0916883545838011d0f17db3eec80fc9786 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.2%) to 77.521% when pulling 9b1c11c7398280623debd62b54bd539b5398a2eb on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.2%) to 77.521% when pulling 9b1c11c7398280623debd62b54bd539b5398a2eb on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.1%) to 77.455% when pulling cf7e3a6fc03e0ca102c67a15cc4c99945251178b on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.1%) to 77.43% when pulling 82b4c38549638783dff09b7955a2c56cc09b0095 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.2%) to 77.541% when pulling a42ea252722fd80b5af43e5714b83dcf5977a86d on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage decreased (-10.7%) to 66.565% when pulling 83346e5162df06567f60f94bc1d6079ff7350629 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.629% when pulling 9c21805cae4e129f7d171745ebd472496eaff385 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.617% when pulling c2682bf2a7cb987a105eb28e88f4f6b4dd7756f2 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.599% when pulling 0489b1f1f4f4f30be3679c642be10374c833c9a9 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.563% when pulling 1f311067affa65eb99a363363e9398da58cdb563 on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Spoke to @robskillington offline, adding the following to the scope for this change:

remove namespace registry from more packages (persist,fs)
make the namespace registry m3kv backed, mimic'ing client.Topology (Static|Dynamic|etc..)

Coverage increased (+0.4%) to 77.734% when pulling bb239ecaf7c7e60f374effed99de92318eba79fb on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.62% when pulling 98357aa335b4efd448dd12f1d73d36b1c463026c on prateek/ns-isolation into 786293a2fc5164dba1609472533f15f49916e4a6 on master.

Coverage increased (+0.3%) to 77.596% when pulling 1dd58dee3e329eb742e0b3f8ac3953d88814fc0c on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.675% when pulling 1dd58dee3e329eb742e0b3f8ac3953d88814fc0c on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.681% when pulling 86287a5c1cd582fa3cd5fc9458f6863c248d9ce2 on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.673% when pulling f95902d4385a00bb7cdf07bb6dd5192ae68c67ae on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.679% when pulling f95902d4385a00bb7cdf07bb6dd5192ae68c67ae on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.621% when pulling 8e4a11106c9db301a52838f56cb4dcd596adeeb0 on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.635% when pulling f9d47f3a0b7aeecf184911953b8831697f8a8841 on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.5%) to 77.768% when pulling f9d47f3a0b7aeecf184911953b8831697f8a8841 on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.5%) to 77.719% when pulling d3a2a37ddf72ca815a3c9844a6c052b64dd6b0dd on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.644% when pulling d80c42b0c1a933f5ec72ba075851e0ccfa2dc0ab on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.4%) to 77.615% when pulling 0ce89e2b178cea90e630ff10e1e01a9fe9c4e7f4 on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.2%) to 77.487% when pulling 4bf88eb55ebebc1b8d69724ea3c69cd57aba0d1e on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.02%) to 77.285% when pulling 9c2ad0621a05ede13c49e3166cd10f80432c4dce on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage decreased (-0.02%) to 77.246% when pulling fb53b2bd77d5fbe60706455fea40ce429cce19c7 on prateek/ns-isolation into 9710806c9b514d11fa67d339a03aabe0b8d26948 on master.

Coverage increased (+0.2%) to 77.506% when pulling 087d571015f00f798604723e329731dd2e967db7 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.3%) to 77.572% when pulling cd68bfd175329702588d6c10de65e8e32f50a232 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.626% when pulling cd68bfd175329702588d6c10de65e8e32f50a232 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.643% when pulling 8546ee4740e24ed753b040acd5c5a7b7fc9d4e05 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.3%) to 77.572% when pulling bcddfb590b6296f92a9a7f65e7d02cffb93789f6 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.643% when pulling d91a5c01d6b90cf79e7def3efa24c2148e46a0fe on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.62% when pulling aaa96b5d177be238f114362d91e5d2b11e64bd8c on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.3%) to 77.608% when pulling 7b90247ff129641c007a7ccc31f4b28012f68489 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.691% when pulling 18b39d2ef4d49df38a731999d37df3ac32001a62 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.3%) to 77.608% when pulling b80747543d006393b3ef39e77c32c7c242a855ec on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.62% when pulling 1c14f36830383a9910d038b6c56b65d7e29856bc on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.644% when pulling ecc1f7f20b2fc2e224cfeda4f03c0e457aea343b on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.3%) to 77.56% when pulling dac86a972c142694debbd829a045a1a373200b4b on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.3%) to 77.59% when pulling 46502a39ddcbc8bfee29d1805614aea58045d810 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.632% when pulling a7de84e913e4a4489f48e692d9aaaaa2d248640f on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.3%) to 77.549% when pulling 883b929342dd8cdbde7568372d46a54894b320fc on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.669% when pulling 1f16b63f24094646aa1b1f0500cfe267a513b71f on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.4%) to 77.67% when pulling 2b7da9d698e6cdf90f43ca79f7d9fe30a99f0511 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.2%) to 77.472% when pulling 03bab201eaecf664f7fef75dcea594aa13d29a64 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.2%) to 77.484% when pulling 3cfc4513f06cb260a6af8ac535e3f75666ef65aa on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage decreased (-0.3%) to 76.982% when pulling 48b3d66273f63a5ec383d4ea846adb1bb216ca0e on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.858% when pulling 5f56f1ee94e1de9d51bc27f95460ac94d35ca942 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.871% when pulling 0e1190e1fd60b004b35f5496d53f1e0993532f92 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.847% when pulling 8ab2de8f28901e5d3d4b289193ee79d2c0dbcad0 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.853% when pulling be7654e75c11ae50008228adc87c01e7cd02a4ef on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.5%) to 77.759% when pulling 1fbb87b997b61bb22419f0f86ce411f6a8d6660d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.5%) to 77.794% when pulling 9d817b0903ab6b1fe98db1a1266c061830f26d04 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.883% when pulling f5ce0d3c1b11c7ab3d2d0e2273d4b2a345a854ed on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.5%) to 77.719% when pulling 84084706af1245ce99d62306f8d7ca2079d8676c on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.878% when pulling af9bf249d0d6f9a4442c2083689ba9bfbf5b4fb2 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.872% when pulling c826734c1c2c77fe80303683d5d8b81f58fb0113 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.86% when pulling 342e197bb8a674c5419d5fb53a0b28afd84d9aaf on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.849% when pulling f02a38debaccb9c1fe387ce9ac33a5d20f3498ad on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 77.966% when pulling 069c8fe03125cd86e8d92a42adb51f5ca5f0ed90 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.872% when pulling 6f23165f9ba775e42d5fd3d04e5af5b807d06737 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.89% when pulling bc8c1f0112cf1766a4e92d0d885e41e5e6e04c5c on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 77.931% when pulling 0118f3264667c77d3a3fa4c813991a258ccea4db on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.879% when pulling 0cd9c779cfd81dc9af2acb152dab464c3a7d6865 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.891% when pulling 0e46558e8ed4af500b2c7160a5f05739bb9fa1db on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.873% when pulling a5333bc1e351ac45893669e00eeb0c0abd58e93e on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.91% when pulling 75233a8ef23bd456c4b71ee846877fdb4ca46a8a on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.91% when pulling 75233a8ef23bd456c4b71ee846877fdb4ca46a8a on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.873% when pulling 2b8b244616e8d1ff38f68c0b92e0441d52e205a9 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.909% when pulling 04801c7eecd3611feac21810c44f86dfeff28fe9 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.909% when pulling 04801c7eecd3611feac21810c44f86dfeff28fe9 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+1.6%) to 78.873% when pulling 429c7061c088032f455e295902a846319f944a55 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.02% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.02% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.908% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.908% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 77.955% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 78.002% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 78.002% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 77.973% when pulling e7bf6763c96604308e94cc3322245e0c99f1e92d on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 78.014% when pulling 27e2e6c5c56f152dbf9a3a992358985aa7389db5 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 77.926% when pulling 9c4bbd957e2e3d97e17f56c21cddefb011e4cbf4 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 77.926% when pulling 9c4bbd957e2e3d97e17f56c21cddefb011e4cbf4 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.016% when pulling 936c8bdff8bb169d6bed5be24b4a8db244499121 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.016% when pulling 936c8bdff8bb169d6bed5be24b4a8db244499121 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.7%) to 77.975% when pulling fa2b6a3f035dea1b4898ae82ba4eea491bb18841 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.6%) to 77.888% when pulling 92f22db93cd6e57e5aa54fd48db0195ce8e4f5ba on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.087% when pulling 2032bc816e7c28a6da8ef7b4533813473d7a7a13 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.088% when pulling cf5476f20998b8bdb905503b75def152bee3ceca on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.088% when pulling cf5476f20998b8bdb905503b75def152bee3ceca on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.106% when pulling 62b2e8b62b599d5bf1b222a2a7a52c28ec288fea on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.106% when pulling 62b2e8b62b599d5bf1b222a2a7a52c28ec288fea on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.9%) to 78.152% when pulling 8be8b83e78880ab4b1f675d8419733c527f9d475 on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.9%) to 78.164% when pulling c5fb2abe620c15b1d045d7b08bb82bed95333d2b on prateek/ns-isolation into 0376c4d2f4624e723c9b442044b9d944dbbaf032 on master.

Coverage increased (+0.8%) to 78.134% when pulling d731411886bf3df954bbaf1b15eba829a1076f50 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.8%) to 78.134% when pulling d731411886bf3df954bbaf1b15eba829a1076f50 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.9%) to 78.199% when pulling 35b8b004afe23da0447626370dc76f9b342e4782 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.9%) to 78.164% when pulling 9c2a6ebc1673fffbe7ea3525b43d9d03dbb81efd on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.7%) to 78.002% when pulling 3d07c74e6e6aec7951632208ebe3ccbfb4d01384 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.9%) to 78.167% when pulling 045b8a9a70de6477ee400ea4420330d4e3665ec2 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.9%) to 78.167% when pulling 045b8a9a70de6477ee400ea4420330d4e3665ec2 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.8%) to 78.097% when pulling af4dcc6e88605276959346432d82cd36ef1d6732 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.8%) to 78.097% when pulling af4dcc6e88605276959346432d82cd36ef1d6732 on prateek/ns-isolation into 9cf74653da948296c1c5c412228f9e28a68d48f9 on master.

Coverage increased (+0.9%) to 78.21% when pulling 2ae02904d75c7a05342787e8a6d0b1be452af4e4 on prateek/ns-isolation into d927fd583ef9a9be01e2c383bf6fa08b3c29380e on master.

Coverage increased (+0.8%) to 78.279% when pulling fa5ee9e50605d345af6dc283b3778eea50a2912e on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.37% when pulling ec067befce950625e5b6c1969e7c22e489ee0807 on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.364% when pulling aa7bbd06d0c3d716bf3f8a81584f17249390ca10 on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.7%) to 78.232% when pulling a7575a81a161ecd30d767606ce3d51a439e7a23e on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.392% when pulling c1babe8c72d31c7b8a599c87ec1b6f18e88cc380 on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.403% when pulling c1babe8c72d31c7b8a599c87ec1b6f18e88cc380 on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.403% when pulling c1babe8c72d31c7b8a599c87ec1b6f18e88cc380 on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.367% when pulling 7041802e6afccddf4821e5ad2c5bfd0c609601ee on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.376% when pulling 2d9d1d45390d14f0f1ab2378879bfdae2de27a5a on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.9%) to 78.376% when pulling 2d9d1d45390d14f0f1ab2378879bfdae2de27a5a on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.

Coverage increased (+0.8%) to 78.334% when pulling 5ead7ac98514ae9b5ed45e52dfe0353576a08a79 on prateek/ns-isolation into e19bc7aaaa505add8f9235248207db309a0caa5c on master.


Fix get/set speed of purifier for new models.

This fixes issue #85 for newer models. Newer models don't have mode M, but they have modes A, S, T for modes Auto, Sleep, Turbo. For backward compatibility, I've created new config option, which will be by default unchecked.

I have no idea how should I properly fix this issue. @Sunoo any help?

I’ll take a look.

@Sunoo any news?

Sorry, day job has kept me busy. Hoping to deal with this this week.

Working on this now, ended up upgrading my laptop so it took a bit to get everything set up on the new one.

@phm46 do you want to take over this repo?

@donavanbecker I won't be able to maintain this repo - I have no spare time now

@phm46 Hello. I added support for humidifier and new mods.
Check the readme file

I tried it, however it still doesn't work for my air purifier. I had to perform code changes in this pull request again to control it through homekit and to fix bug with duplicate speed.

I tried it, however it still doesn't work for my air purifier. I had to perform code changes in this pull request again to control it through homekit and to fix bug with duplicate speed.

Fan speed control sleep, manual 1 to 3 and turbo.
The new models have allergic and automatic modes.
To change the automatic or allergic model, use the button, not the fan speed.

@phm46 give me usage and optional arguments from airctrl
try this:
airctrl --ipaddr <IP_ADDRESS> --protocol coap --help
I need this one output data:
usage: airctrl [-h] [--ipaddr IPADDR] [--protocol {http,coap,plain_coap}] [-d] [--om {1,2,3,s,t,a}] [--pwr {0,1}] [--mode {P,A,S,M,B,N,T}] [--rhset {40,50,60,70}] [--func {P,PH}]
               [--aqil {0,25,50,75,100}] [--uil {0,1}] [--ddp {0,1,2,3}] [--dt {0,1,2,3,4,5,6,7,8,9,10,11,12}] [--cl {True,False}] [--wifi] [--wifi-ssid WIFI_SSID] [--wifi-pwd WIFI_PWD] [--firmware]
               [--filters]

optional arguments:
  -h, --help            show this help message and exit
  --ipaddr IPADDR       IP address of air purifier
  --protocol {http,coap,plain_coap}
                        set the communication protocol
  -d, --debug           show debug output
  --om {1,2,3,s,t,a}    set fan speed
  --pwr {0,1}           power on/off
  --mode {P,A,S,M,B,N,T}
                        set mode
  --rhset {40,50,60,70}
                        set target humidity
  --func {P,PH}         set function
  --aqil {0,25,50,75,100}
                        set light brightness
  --uil {0,1}           set button lights on/off
  --ddp {0,1,2,3}       set indicator IAI/PM2.5/Gas/Humidity
  --dt {0,1,2,3,4,5,6,7,8,9,10,11,12}
                        set timer
  --cl {True,False}     set child lock
  --wifi                read wifi options
  --wifi-ssid WIFI_SSID
                        set wifi ssid
  --wifi-pwd WIFI_PWD   set wifi password
  --firmware            read firmware
  --filters             read filters status

Sure, here it is
usage: airctrl [-h] [--ipaddr IPADDR] [--protocol {http,coap,plain_coap}] [-d] [--om {1,2,3,s,t,a}] [--pwr {0,1}] [--mode {P,A,AG,F,S,M,B,N,T}] [--rhset {40,50,60,70}] [--func {P,PH}]
               [--aqil {0,25,50,75,100}] [--uil {0,1}] [--ddp {0,1,2,3}] [--dt {0,1,2,3,4,5,6,7,8,9,10,11,12}] [--cl {True,False}] [--wifi] [--wifi-ssid WIFI_SSID] [--wifi-pwd WIFI_PWD] [--firmware]
               [--filters]

optional arguments:
  -h, --help            show this help message and exit
  --ipaddr IPADDR       IP address of air purifier
  --protocol {http,coap,plain_coap}
                        set the communication protocol
  -d, --debug           show debug output
  --om {1,2,3,s,t,a}    set fan speed
  --pwr {0,1}           power on/off
  --mode {P,A,AG,F,S,M,B,N,T}
                        set mode
  --rhset {40,50,60,70}
                        set target humidity
  --func {P,PH}         set function
  --aqil {0,25,50,75,100}
                        set light brightness
  --uil {0,1}           set button lights on/off
  --ddp {0,1,2,3}       set indicator IAI/PM2.5/Gas/Humidity
  --dt {0,1,2,3,4,5,6,7,8,9,10,11,12}
                        set timer
  --cl {True,False}     set child lock
  --wifi                read wifi options
  --wifi-ssid WIFI_SSID
                        set wifi ssid
  --wifi-pwd WIFI_PWD   set wifi password
  --firmware            read firmware
  --filters             read filters status

Sure, here it is
usage: airctrl [-h] [--ipaddr IPADDR] [--protocol {http,coap,plain_coap}] [-d] [--om {1,2,3,s,t,a}] [--pwr {0,1}] [--mode {P,A,AG,F,S,M,B,N,T}] [--rhset {40,50,60,70}] [--func {P,PH}]
               [--aqil {0,25,50,75,100}] [--uil {0,1}] [--ddp {0,1,2,3}] [--dt {0,1,2,3,4,5,6,7,8,9,10,11,12}] [--cl {True,False}] [--wifi] [--wifi-ssid WIFI_SSID] [--wifi-pwd WIFI_PWD] [--firmware]
               [--filters]

optional arguments:
  -h, --help            show this help message and exit
  --ipaddr IPADDR       IP address of air purifier
  --protocol {http,coap,plain_coap}
                        set the communication protocol
  -d, --debug           show debug output
  --om {1,2,3,s,t,a}    set fan speed
  --pwr {0,1}           power on/off
  --mode {P,A,AG,F,S,M,B,N,T}
                        set mode
  --rhset {40,50,60,70}
                        set target humidity
  --func {P,PH}         set function
  --aqil {0,25,50,75,100}
                        set light brightness
  --uil {0,1}           set button lights on/off
  --ddp {0,1,2,3}       set indicator IAI/PM2.5/Gas/Humidity
  --dt {0,1,2,3,4,5,6,7,8,9,10,11,12}
                        set timer
  --cl {True,False}     set child lock
  --wifi                read wifi options
  --wifi-ssid WIFI_SSID
                        set wifi ssid
  --wifi-pwd WIFI_PWD   set wifi password
  --firmware            read firmware
  --filters             read filters status

@phm46 you have the same config data as mine.
And everything works fine for me
Only 1 differents  here --mode {P,A,AG,F,S,M,B,N,T}
I don't have AG and F mode function

From my model the auto mode is reported in fan speed.
"Mode: auto" is always reported, if I change the fan speed of the purifier the plugin always show the purifier is in auto mode when the fan is in manual mode. (and I can't see the correct fan speed in homekit)

I understood
I have no "A" speed
Can you make a new version for the current version?
I will add to master repo later

@NikDevx I think that help section is based on airctrl version, but I could be wrong. However, official build is not working for me because it is using "M" mode instead of A, S or T is I wrote at the beginning of this pull request. That's why I made changes in code (see commits).
Manual fan speed was introduced in recent updates but It has only fan speed 1 and 2.

I understood
I have no "A" speed
Can you make a new pull for the current version?
I will add to master repo later
Add new config for you model
model: you model
And check like this
if (purifier.config.model == 'you model') {

ok, thank you

Will you pull request?
I will realease new update today.


Combobox Lost display information

Windows Terminal version
1.17.1023
Windows build number
10.0.22000.1761]
Other Software
Software：Visual stuidio 2022
Project：Window Terminal
Steps to reproduce
I am using visual studio 2022 to do new development on window terminal, but I encountered a problem that I don't know how to explain, so I had to seek an answer here，The steps are as follows:
Doing what
I tried to add a new combobox on the profile_base.xaml and manually set the combobox's SelectedItem and ItemsSource
Every time a Profile is opened, I update the value of the ItemsSource and notify the UI of the update
Here's the problem:
For example, the last time profile opened, the combobox itemsource has 7 values and the user choosed item6, the combobox display curr value is item6;
this time,  the combobox itemsource has 5 values, but I want the UI to currently present the value that the user selected last time, that is item6. so, I manually set the SelectedItem  still to be item6
However, when I update the content to 5 values(respectively item1, item2, item3, item4, item5), the current value displayed by the UI disappears, nothing
It looks like the SelectedItem display is missing because the ItemsSource does not contain this ite, is it because of this?
What should I do to achieve the results I want？
I don't have a deep understanding of the content of conbobox, so I hope you can give me some answers, thanks
Expected Behavior
When I update ItemsSource, the display keeps the last value
Actual Behavior
When I set SelectedItem manually, the display is empty

Do you have a diff I could take a look at/? That might be the easiest way to investigate.
Kinda just sounds like a WinUI bug to be totally honest, but a diff would help me validate locally that it's not something unique to the Terminal's codebase 😄

Do you have a diff I could take a look at/? That might be the easiest way to investigate.
Kinda just sounds like a WinUI bug to be totally honest, but a diff would help me validate locally that it's not something unique to the Terminal's codebase 😄

Setting of combobox when opening a file for the first time (it showed it was right)
 itemsource:     std::vector<winrt::hstring> List{ L"COM1", L"COM3"}
 SelectedItem:   box_value(L"COM3)

Setting of combobox when opening a file for the second time (it showed it was wrong)
 itemsource:     std::vector<winrt::hstring> List{ L"COM1"}
 SelectedItem:   box_value(L"COM3)


Update README.md

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: eaa71aca4e41ca9311649fa8d6859abdae5b760b
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v1
Commit ID: eaa71aca4e41ca9311649fa8d6859abdae5b760b
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Removing Last FC layer & manual looping

I need to insert custom layers between the transformer modules and classify among K(!=1000) classes.
For that, If I try to remove last FC layer and loop over other modules manually, it yields the output of size (batch_size, 196, 768) instead of expected (batch_size, 768):
Removing last layer:
self.model = torch.hub.load('facebookresearch/deit:main', 'deit_base_patch16_224', pretrained=True)
self.model = nn.Sequential(*list(self.model.children())[:-1])

Manual looping:
input: (batch_size, 3, 224, 224)
output = self.model[1](self.model[0](input))    # (patch_embed & pos_drop;   output_size: (batch_size, 196, 768))
for i in range(0, 12):
    output = self.model[2][i](output)     # transformer blocks;   output_size: (batch_size, 196, 768)
output = self.model[3](output)    # LayerNorm;   output_size: (batch_size, 196, 768)

Doing self.model(input) works as expected. (i.e. no manual looping).
Am I doing something wrong? This usually works for other torchvision models.

Hi @jaideepmurkute,
I think it works with torchvision models because they should be sequential models.
To be able to make the changes you need, I think you'll have to rewrite the forward of the model.
I hope I have answered your question, don't hesitate if you have any other questions.
Best,
Hugo

Hi,
As @TouvronHugo mentioned, the implementation for removing the last layer of the model as you have specified only works in a small subset of the PyTorch models.
DeiT models are based on timm VisionTransformer. If you want to remove the classifier output and add your own custom layers, you can see how the forward  of the model is implemented.
In this case, I would recommend you doing something like the following:
output = self.model.forward_features(input)

I believe I've answered your question and as such I'm closing this issue, but let us know if you have further questions.


ng build --watch --watch-matcher="Compiled successfully" --watch-script=sayhi.js

Command
build
Description
Hello, it would be really cool to be able to execute some code once project has been built again.
ng build --watch --watch-matcher="Compiled successfully" --watch-script=sayhi.js

After each change, the application gets built, and if --watch-matcher="Compiled successfully" is successful, call the .js file.
Describe the solution you'd like
if I am in the root of my project, and we have a file called sayhi.js.
// /root/of/app/sayhi.js
console.log('hi');

and I start
ng build --watch --watch-matcher="Compiled successfully" --watch-script=sayhi.js

then, when I change something in my app, app gest built, and if successful, I must see
hi

Describe alternatives you've considered
No response

Duplicate of https://github.com/angular/angular-cli/issues/11787


fix: fix nonce derivation in encryptLocalMessage and decryptLocalMessage methods

Fixes #17
See https://github.com/digidem/mapeo-crypto/commit/40511a0e0698fdcfcda467ac89770097ee8c26c6 for changes relevant to fix. Second commit just contains prettier-formatting applied to changed files.

I'm wondering that maybe it makes sense to just change the arg here to be a nonce eg a buffer of nonce bytes long? Rather than hard-coding knowledge of the project key into @mapeo/crypto what do you think?

I'm wondering that maybe it makes sense to just change the arg here to be a nonce eg a buffer of nonce bytes long? Rather than hard-coding knowledge of the project key into @mapeo/crypto what do you think?

Yeah was thinking along similar lines after my initial comment! Let the consumer decide what the nonce is 😄

wasn't sure if running npm run docs is the proper way to update the API docs. seemed to give me a rather large diff so I updated the docs manually in https://github.com/digidem/mapeo-crypto/pull/18/commits/20fbec3ee00512f83acd51d103f33a696ee77897

wasn't sure if running npm run docs is the proper way to update the API docs. seemed to give me a rather large diff so I updated the docs manually in 6b3ac8c

Yeah I remember I couldn't get it to format the docs how I wanted, so I generally run it then copy and paste into the actual readme manually


Implement support for the upcoming Threads

General Troubleshooting

[x] I have checked for similar issues.
[x] I have updated to the latest JDA version.
[x] I have checked the branches or the maintainers' PRs for upcoming features.

Feature Request

Discord has announced the Threads, which will be released in about 2 months. More information can be found in the PR in the docs repository.
https://github.com/discord/discord-api-docs/pull/2855
Example Use-Case

This is a new feature of Discord, so example code or use cases can't be mentioned here as we don't know, how we will integrate Bots with it.

We have seen this and will be building support for it.

A general rule of thumb in JDA is, that features are only implemented once official Docs are released/available for them, because features (in this case Threads) can still change a lot before they're finalized and available for others, so now working on support that may or may not change in the future could cause extra commits where it isn't needed.

Progress on this can be tracked on https://github.com/DV8FromTheWorld/JDA/pull/1613

Threads are now implemented (mostly, and not fully documented) in 5.0.0-alpha.1

Closing this as threads are implemented and we're actively working on documentation.


nmos-cpp-node accepts IS-05 PATCH request with "" transport_file results in 200 SUCCESS

I ran into this strange edge case: I had to chase down a bug in my code because empty transport_file data injected by my code was causing exceptions in the JSON parser. When I use empty data via the API, on the other hand, nmos-cpp-node thinks everything's fine, going so far as to report back the zero-length SDP:
The request:

curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X PATCH http://d13:3215/x-nmos/connection/v1.0/single/receivers/1e6ee63a-3d30-5788-b0c2-07e97d77e375/staged -d '{"activation":{"mode":"activate_immediate"},"master_enable":true, "sender_id":"855c19a5-5ee8-5c7b-86b3-6d1f4b7f70d8","transport_file":{"data": "", "type":"application/sdp"}}'

The response;

{"activation":{"activation_time":"1551397926:995761753","mode":"activate_immediate","requested_time":null},"master_enable":true,"sender_id":"855c19a5-5ee8-5c7b-86b3-6d1f4b7f70d8","transport_file":{"data":"","type":"application/sdp"},"transport_params":[{"destination_port":"auto","interface_ip":"auto","multicast_ip":null,"rtp_enabled":true,"source_ip":null},{"destination_port":"auto","interface_ip":"auto","multicast_ip":null,"rtp_enabled":true,"source_ip":null}]}

OK, so this behavior looks to be deliberate in connection_api.cpp:
if (!transport_file.is_null() && !transport_file.as_object().empty())

Looking at ConnectionAPI.raml, I see that the is_null() part is required, but it isn't obvious from the spec that an empty string should receive special treatment. Not obvious it shouldn't, either....

Yes, I suspect that's a flaw. Empty string should get rejected, but gets treated the same as null (which is valid).

FWIW, the as_object().empty() check is for empty json object for the top-level "transport_file" attribute, not the inner "data" being an empty string. That is due to the get_transport_type_data function and the code two lines later:
if (!transport_type_data.second.empty())

Looks good. Thanks, Gareth!

Sorry, @billt-hlit, I missed a related case of a mistakenly accepted PATCH with
{
  "transport_file": {
    "data": "foobar",
    "type": ""
  }
}

Now fixed.


Save all mess up code

VSCode Version:1.8.1
OS Version: windows 10 Pro 10.0.14393 Build 14393

Steps to Reproduce:

change more than 2 files without save,
save all

then application start to become crazy... copy all content from one file to another. mess up everything, complaining the file on the disk actually newer that the one opened..
I tried to disable all extensions and it still behave funny. PLEASE FIX THIS!
I disabled all the extensions except this one, when it is disabled. everything back to normal.

VSCode Version: 1.8.1
OS Version: MacOS 10.12.2
Steps to Reproduce:
Open two existing files in the editor
Make a small change to one, do not save
Move to the tab of the unchanged file
Hit cmd-alt-s
The files are saved, and the contents of the changed file pasted into the unchanged file.
See attached screen capture for example on newly created project
VSCodeSaveAllError.mov.zip

Wow, this still isn't fixed?!?!?!?  This is a horrible issue and was reported a long time ago.  I'm going to uninstall this extension now and I advise no one to use it until (if ever) this issue is fixed, it has led several times to loss of work now and having to retrieve from git damaged files.

I agree on the above comment. It messes up the entire code and i have to find a way to restore it. Please fix this!


Not working anymore?

Even if I’m the last one using this widget I’m interested why ist not working anymore.
The error messeng is:
Error: Die Daten konnten nicht gelesen werden, da sie nicht das korrekte Format haben.
[Error: The data could not be read because it is not in the correct format.]
So what’s the reason? It’s the end? Delete it?

COVID Trend Widget

I took a look into this and it seems like the API I was using has been taken down or at least isn't working right now. Has this stopped working some time ago?

Yes it was fine 1 or 2 day before my first post.

Seems the api owner needs to fix it or maybe they intentionally shut it down. I searched for quite a while yesterday looking for a new source for the info but wasn't able to find one with current data

Thx a lot for your effort. I have, as yourself, not much hope this could be fixed.
Which API have you used so far? Is there a contact person at this institution? If desired, I can be assistant, e.g. with inquiries in native German.

 I tried a few different APIs but they didn't look to
be promising due to the latest data being over a year old already and many
others that were shutdown for some reason or another
On Wed, Dec 7, 2022 at 6:02 AM permaMonk @.***> wrote:

Thx a lot for your effort. I have, as yourself, not much hope this could
be fixed.
Which API have you used so far? Is there a contact person at this
institution? If desired, I can be assistant, e.g. with inquiries in native
German.
—
Reply to this email directly, view it on GitHub
https://github.com/mvan231/Scriptable/issues/21#issuecomment-1340796991,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMENLEVZIWQXPLCQ6VD6RRDWMBVDHANCNFSM6AAAAAASSWFEE4
.
You are receiving this because you commented.Message ID:
@.***>

Uncomprehending: unfortunately, that sounds like COVID-19 is over because no more data is being collected. 🙄

Absolutely agree with you. It's weird that the data for this seems to be more difficult to gather now. On Dec 10, 2022, at 05:28, permaMonk @.***> wrote:
Uncomprehending: unfortunately, that sounds like COVID-19 is over because no more data is being collected. 🙄
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Do you know which institution put the API in at heroku site or who is the source of the API?


shiki on vite ,await fetch(_resolvePath("dist/onig.wasm")) error

Describe the bug
i use  shiki on vite get error ，I'm not sure if this is a vite issue or a shiki issue
https://stackblitz.com/edit/vitejs-vite-gqv1wz?file=package.json,src%2Fcomponents%2FHelloWorld.vue,index.html&terminal=dev

Uncaught (in promise) CompileError: WebAssembly.instantiate(): BufferSource argument is empty

Reproduction
https://stackblitz.com/edit/vitejs-vite-gqv1wz?file=package.json,src%2Fcomponents%2FHelloWorld.vue,index.html&terminal=dev
System Info
  "dependencies": {
    "@element-plus/icons-vue": "^2.0.9",
    "@mdi/font": "^7.0.96",
    "axios": "^0.27.2",
    "clipboard": "^2.0.11",
    "element-plus": "^2.2.13",
    "github-markdown-css": "^5.1.0",
    "highlight.js": "^11.6.0",
    "i": "^0.3.7",
    "markdown-it-anchor": "^8.6.4",
    "markdown-it-code-copy": "^0.1.1",
    "markdown-it-copy": "^1.2.0",
    "markdown-it-github-headings": "^2.0.1",
    "marked": "^4.0.18",
    "npm": "^8.18.0",
    "rollup-plugin-md": "^1.0.1",
    "shiki": "^0.11.1",
    "vue": "^3.2.37",
    "vue-router": "^4.1.3",
    "vue3-json-viewer": "^2.2.2"
  },

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

https://github.com/vitejs/vite/issues/5148
I'm not sure if this issues is relation of #5148

[Shiki] no CDN provider found, use setCDN() to specify the CDN for loading the resources before calling getHighlighter()

This warning is output.
You'll need to add setCDN() before getHighlighter().
Closing as it's not a bug in Vite.


Fixes to the credit card form keyboard

This PR updates the credit card form in the bidding flow to:

Focus on the cc form when the component is rendered
Have a button that slides up with the keyboard and is disabled when the inputs aren't valid.

Screenshot:

gif:

Fails

:no_entry_sign:

Missing Test Files:

src/lib/Components/Consignments/Components/__tests__/DoneButton-tests.tsx
src/lib/Components/Buttons/__tests__/BottomAlignedButtonWrapper-tests.tsx

If these files are supposed to not exist, please update your PR body to include "#skip_new_tests".

  Generated by :no_entry_sign: dangerJS


Initial version of Flink Streaming Splittable DoFn support

There are still two tests in error:
Tests in error:
  SplittableDoFnTest.testLateData:334 » UnsupportedOperation The transform TestS...
  SplittableDoFnTest.testSideInputsAndOutputs:291 » NullPointer

the first one fails because TestStream is not supported in the Flink runner. The second one fails because I didn't yet wire in the code for side outputs.
This is a first draft and could maybe benefit from some code cleanups. Just putting it out there for you to have a look at and because I thought you might like more SDF support. 😉
R: @jkff

This reuses all of the existing special transform replacements. There's probably a lot of potential in doing the The Flink Way™ but I like reusing common stuff.

Run Flink RunnableOnService

Oh, one more thing. I think in Flink it might be unnecessary to make this streaming-specific, WDYT?
(in Dataflow runner, the code of batch and streaming runners are rather different and I have so far implemented only streaming support)

Run Flink RunnableOnService

Run Flink RunnableOnService

About implementing SDF support for both batch and streaming at the same time: I'm afraid that's not possible. Underneath, there are two separate APIs in Flink.

Run Flink RunnableOnService

@jkff please don't bother looking at this yet. It works, but I want to refactor and put the DoFnOperator creation in a factory so that we can reuse most of the code between splittable DoFn translation and normal DoFn translation.

Ack, thanks! Let me know when it's ready for a review.

Hi! Any updates here / anything that I can help with?

@jkff and @JingsongLi I think this is ready for review now. I refactored the ParDo and SplittableParDo translation into a translation helper.

Coverage increased (+0.01%) to 70.178% when pulling fd2dc01322b57199d584f91f563c3b233b3dbb22 on aljoscha:flink-splittable-dofn into 70aa0a4a43b09aeed0d85609cb479922b3958aff on apache:master.

@jkff It was rebased on the state of roughly two days ago and I just rebased again. I forgot to remove the unnecessary single-output ParDo override.
SplittableDoFnTest is executed, I had to add category UsesTestStream to SplittableDoFnTest.testLateData() because that's not supported on the Flink Runner.

Run Flink ValidatesRunner

Coverage increased (+0.01%) to 70.33% when pulling 79b2642c4db26e7d6c9b74835358919dda096e34 on aljoscha:flink-splittable-dofn into 935ecd4e032e18e428ee33cbf5484c5fce726b4f on apache:master.

Run Flink ValidatesRunner

I created https://issues.apache.org/jira/browse/BEAM-1850 for the problematic interplay between GroupAlsoByWindowViaWindowSetDoFn/GroupAlsoByWindowViaWindowSetNewDoFn and PushbackSideInputDoFnRunner. It's linked in the code now.
I'll merge as soon as Jenkins is green.
Thanks for reviewing! 😃

Coverage increased (+0.01%) to 70.333% when pulling ab53467080e3a05ff1665718fe5581b54b49dbc9 on aljoscha:flink-splittable-dofn into 935ecd4e032e18e428ee33cbf5484c5fce726b4f on apache:master.

These tests are already flaky, feel free to merge.

retest this please

Coverage decreased (-0.0005%) to 70.32% when pulling ab53467080e3a05ff1665718fe5581b54b49dbc9 on aljoscha:flink-splittable-dofn into 935ecd4e032e18e428ee33cbf5484c5fce726b4f on apache:master.

I got so excited that I merged this myself. Thanks again, Aljoscha!
Also tagged commit with JIRA https://issues.apache.org/jira/browse/BEAM-1855

Hehe, thanks 👍


[2.8 Backport]Adding repository and image as a param

Backport of https://github.com/rancher/rancher/pull/44078

Does this need a v2.7 backport?


all instances have label operator=zookeeper

What happened:
All instances have hardcoded the label operator=zookeeper
What you expected to happen:
That instances have their own operator name as the label.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Kubernetes version (use kubectl version):
Kudo version (use kubectl kudo version):
Operator:
operatorVersion:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

I noticed something similar when running instances within other operators. E.g. Zookeeper first, then Kafka, suddenly Kafka has the Zookeeper operator label as part of the Flink Demo. How did you replicate it?
When looking at https://github.com/kudobuilder/kudo/blob/master/pkg/controller/planexecution/planexecution_controller.go#L387-L391 we don't add that label here, is Kustomize adding those?

@fabianbaier its the KUDO cli, I can open the tiny PR to fix this


How to reference DLL created with DllExport into Excel VBA

. . .
The question is related to:

DllExport - latest:

Hi, my goal is to create a windows unmanaged DLL to be loaded into Excel VBA, without the need to select "Register for COM Interop" in Visual Studio, and without having to use regasm to register the DLL. This because the DLL I intend to create needs to be deployed on a machine where I cannot install Visual Studio, and where I probably won't have administrator's privileges.
I have a single project in VB.NET, where I have installed the DllExport NuGet package, and set "x86" anywhere in my solution rather than "AnyCPU".
Here is the code:
`
  Imports System.Runtime.InteropServices
  Imports net.r_eg.DllExport
  Public Class Matrix

  <DllExport>
  Public Shared Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC(ByRef DATA_RNG As Double(,))

      Dim i As Long
      Dim j As Long

      Dim NROWS As Long
      Dim NCOLUMNS As Long

      Dim TEMP_SUM As Double
      Dim DATA_MATRIX As Double(,)

      On Error GoTo ERROR_LABEL

      DATA_MATRIX = DATA_RNG

      NROWS = UBound(DATA_MATRIX, 1)
      NCOLUMNS = UBound(DATA_MATRIX, 2)

      TEMP_SUM = 0
      For j = 1 To NCOLUMNS
          For i = 1 To NROWS
              TEMP_SUM = TEMP_SUM + DATA_MATRIX(i, j)
          Next i
      Next j

      MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC = TEMP_SUM

      Exit Function
  ERROR_LABEL:
      MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC = Err.Number
  End Function
End Class

`
I followed the indications in the first 1:34 minutes of this video:
https://www.youtube.com/watch?v=sBWt-KdQtoc
And then built the solution. No errors till this point.
Eventually, I added this delcaration on top of a VBA module:
Public Declare Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC Lib "C:\path\to\file.dll" (ByRef DATA_RNG As Variant)
I am trying to test this function, but I can't seem to be able to make it work.
Unfortunately I have no experience with VBA, can anyone tell me what am I doing wrong?

Hello,

I am trying to test this function, but I can't seem to be able to make it work.

What error?

Unfortunately I have no experience with VBA, can anyone tell me what am I doing wrong?

I only have LibreOffice to test something but I'm not sure about compatibility or similarity to MS products regarding VBA.
Anyway, did you try something from other issues about VBA https://github.com/3F/DllExport/issues?q=is%3Aissue+vba

Plus, they are about C#, not VB.NET.

C# and VB.NET both are CLR based thus it does not matter because it just frontend.

Can't find DLL entry point

What result for the following command ?

DllExport -pe-exp-list MonteCarlo\bin\x86\Debug\MonteCarlo.dll

C# and VB.NET both are CLR based thus it does not matter because it just frontend.

My bad, I am still a Junior :)

Can't find DLL entry point

What result for the following command ?

DllExport -pe-exp-list MonteCarlo\bin\x86\Debug\MonteCarlo.dll

Here is the result:

@supertrip86 I'm a little confused with your code. Here you're trying to call MonteCarlo() declared function that looks like it must return some specified object because you're calling later MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC on its state.
But your initial code just declares a simple static function as
<DllExport>
Public Shared Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC(ByRef DATA_RNG As Double(,))

DllExport -pe-exp-list confirms export
So, I'm not really sure what are you trying here. Can you attach any complete src or project example?
Isn't this is what you need ?
Declare Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC Lib ...

Also,
About ByRef. Do not pass arrays like here. Either configure marshaling or use pointer to allocated region; maybe manually or using something like Conari etc. Please read this https://github.com/3F/DllExport/wiki/Quick-start#about-data-types

My bad, I am still a Junior :)

I suggest you MSDN or any Dev Q&A such as stackoverflow

Hi, thank your your patience. What I need is to be able to call several functions from the MonteCarlo DLL within VBA (MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC is only one of those functions). Nothing more than that.
So far, I only added MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC as a static method, just to to see if I can manage to call it from within VBA. If I succeed, I will add the rest.
The ultimate goal is to be able to call each of these functions from within Excel ( pass a range of cells to MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC as arguments and return the result, for example).
Now, I followed your advice and tried the code below, but if I run it all Excel crashes... No errors are provided, the entire Excel freezes and I have to manually terminate it.
Declare Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC Lib "C:\path\to\MonteCarlo.dll" (ByRef DATA_RNG As Variant) As Double

Sub RunTest()

      Dim result As Double
      Dim DATA_RNG(2, 2) As Variant

      DATA_RNG(1, 1) = 1
      DATA_RNG(1, 2) = 2
      DATA_RNG(2, 1) = 1
      DATA_RNG(2, 2) = 2

      result = MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC(DATA_RNG)

End Sub

Is it because I am using ByRef? I understand you adviced me not to use it. Is this the reason?

Is it because I am using ByRef? I understand you adviced me not to use it. Is this the reason?

Quite possible

if I run it all Excel crashes... No errors are provided, the entire Excel freezes and I have to manually terminate it.

So what exactly, crashes or freezes ?
Can you also copy everything from DllExport window Data tab just to exclude some problems like this. But I think it may freeze due to an incorrect values from memory according UBound use.
In any case just marshal it correctly IF it cannot be marshaled automatically by CLR.
MarshalAs attribute, or custom implementation around Marshal.Alloc and so on

As you can see from the screenshot below, MS Excel and the VBA editor gets stuck (not responding), and I have to terminate them.

Here is the log from the Data tab:
Installed: True; 1.7.4+c1cc52f; invoked: 1.7.4
Project type: Vb
Storage: ProjectFiles
Compiler.Platform: x86
Compiler.ordinalsBase: 1
Compiler.rSysObj: False
Compiler.ourILAsm: False
Compiler.customILAsm:
Compiler.genExpLib: False
Compiler.peCheck: PeIl
Compiler.patches: None
PreProc.Type: None
PreProc.Cmd:
PostProc.Type: None
PostProc.ProcEnv: $(SolutionPath);$(MSBuildThisFileFullPath)
PostProc.Cmd:
SignAssembly:
Identifier: 9959C632-8E6F-4981-8736-E6BCAED4778F
Instance: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\amd64\MSBuild.exe
Project path: C:\Users\giogi\path\to\MonteCarlo\MonteCarlo.vbproj
Action: Configure
PlatformTarget: x86
TargetFramework:
TargetFrameworks:
TargetFrameworkVersion: v4.7.2
RootNamespace: MonteCarlo
AssemblyName: MonteCarlo
MgrArgs:
MetaLib: tools\raw\lib\net20\DllExport.dll
MetaCor: tools\raw\lib\netstd\DllExport.dll
Proxy:
StoragePath: .net.dllexport.targets
ddNS: net.r_eg.DllExport
ddNS max buffer: 500
UseCecil: True
intermediateFiles: False
timeout: 30000
Options: None
RootPath: C:\Users\giogi\path\to\MonteCarlo\
PkgPath: C:\Users\giogi\path\to\MonteCarlo\packages\\DllExport.1.7.4\
SlnFile:
SlnDir: C:\Users\giogi\path\to\MonteCarlo\
DxpTarget: tools\net.r_eg.DllExport.targets
MsgGuiLevel: -1
LockIfError:

If you confirm there is nothing else that can be wrong, I will start studying about marshaling using the link you provided me.
Many thanks!

Hi, thank you again for your patience.
I read about marshaling and why it needs to be used, however it seems quite complicated to use...
These are the modifications I made to my code. Here is VB.NET:
Imports System.Runtime.InteropServices
Imports net.r_eg.DllExport

Public Class Matrix
    <DllExport>
    Public Shared Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC(<MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.R8, SizeConst:=4)> ByVal r As Double()) As Double

        Dim i As Long
        Dim j As Long

        Dim NROWS As Long
        Dim NCOLUMNS As Long

        Dim DATA_RNG As Double(,) = {{r(0), r(1)}, {r(2), r(3)}}

        Dim TEMP_SUM As Double
        Dim DATA_MATRIX As Double(,)

        On Error GoTo ERROR_LABEL

        DATA_MATRIX = DATA_RNG

        'NROWS = UBound(DATA_MATRIX, 1)
        'NCOLUMNS = UBound(DATA_MATRIX, 2)

        NROWS = 2
        NCOLUMNS = 2

        TEMP_SUM = 0
        For j = 1 To NCOLUMNS
            For i = 1 To NROWS
                TEMP_SUM = TEMP_SUM + DATA_MATRIX(i, j)
            Next i
        Next j

        MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC = TEMP_SUM

        Exit Function
ERROR_LABEL:
        MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC = Err.Number
    End Function

End Class

And here is VBA:
Declare PtrSafe Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC Lib "C:\Users\path\to\MonteCarlo.dll" (ByRef DATA_RNG As LongPtr) As Double

Option Explicit     'Requires that all variables to be declared explicitly.
Option Base 1       'The "Option Base" statement allows to specify 0 or 1 as the
                    'default first index of arrays.

Sub RunTest()
  Dim result As Double
  Dim DATA_RNG(2, 2) As LongPtr

  DATA_RNG(1, 1) = 1

  DATA_RNG(1, 2) = 2
  DATA_RNG(2, 1) = 1
  DATA_RNG(2, 2) = 2

  result = MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC(DATA_RNG)

End Sub

Not sure why, even though I declared DATA_RNG as LongPtr, it gives me "data mismatch"...

Try
Dim DATA_RNG(2, 2) As Double
' ...
result = MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC(DATA_RNG)

continue to keep ByRef LongPtr + Marshalable ByVal r As Double declaration
Declare PtrSafe ... (ByRef DATA_RNG As LongPtr) As Double

Public Shared Function MATRIX_ELEMENTS_CUMULATIVE_SUM_FUNC(
	<MarshalAs(UnmanagedType.LPArray,...> ByVal r As Double()) As Double

I'm not sure about VBA but without COM you need obviously pass it as address to its allocated memory in the heap.
But after, CLR will marshal ByVal Double according some information, for example, configured through MarshalAs attribute. There, however, you can also marshal it independently through some other technic but I think for VBA this will be hard.
Alternatively you can also try to get address to allocated DATA_RNG manually to work only with LongPtr/IntPtr but this is another level for ascetic VBA.

@supertrip86, You have two options:

Net functions' input parameter type must ByVal Object. This is safe. Or,
VBA array data type and Net function's input type must same with ByRef.


Update Changelog Guidance

In order to have consistent CHANGELOG.md format, I am updating the changelog guidance using input I have gotten from several people. This PR is to give all language leads an opportunity to agree on how changelogs should be formatted so that it can properly be enforced be Doc Warden for all languages.
@weshaggard @ramya-rao-a @mayurid @lmazuel @praveenkuttappan @AlexGhiondea @scbedd @joshfree @jonathangiles
General guidance is takenfrom https://keepachangelog.com/en/1.0.0/

cc @xirzec to represent JavaScript


App reset at second launch on iOS 12.1.2

Hi there.
I followed the instructions to integrate Firebase notifications in my app. Everything work well on iOS 10, 11 and 12.0, but the behaviour under iOS 12.1.2 is weird.
At first launch, things go well, a FCM token is generated and I can send push to it.
But when killing the app and relaunching it, it acts like it was a fresh intall: on [FIRApp configure], the app is reset and the token is disabled, but Firebase never gives me a new valid token. The didReceiveRegistrationToken callback is called with the same token as during first launch, but when I send a push to it, it never arrives and the API returns me a notRegistered error.
The result is the same if I send the push via the API or the Firebase Console.
Here are the debug logs of the second launch, where the app is reset.
5.16.0 - [Firebase/InstanceID][I-IID023000] No info is retrieved from Keychain OSStatus: -25300 with the keychain query {
    atag = <636f6d2e 676f6f67 6c652e69 69642d7c 4b7c>;
    class = keys;
    "r_Ref" = 1;
    type = 42;
}
5.16.0 - [Firebase/InstanceID][I-IID023000] No info is retrieved from Keychain OSStatus: -25300 with the keychain query {
    atag = <636f6d2e 676f6f67 6c652e69 69642d7c 507c>;
    class = keys;
    "r_Ref" = 1;
    type = 42;
}
5.16.0 - [Firebase/InstanceID][I-IID009000] No keypair info is retrieved with tag com.google.iid-|K|
5.16.0 - [Firebase/Messaging][I-FCM002000] FIRMessaging library version 3.3.0
5.16.0 - [Firebase/InstanceID][I-IID007006] Checkin parameters: {
    checkin =     {
        iosbuild =         {
            model = "iPhone11,2";
            "os_version" = "IOS_12.1.2";
        };
        "last_checkin_msec" = 0;
        type = 2;
        "user_number" = 0;
    };
    digest = "";
    fragment = 0;
    id = 0;
    locale = "fr_FR";
    "logging_id" = 969327929;
    "security_token" = 0;
    timezone = "Europe/Paris";
    "user_serial_number" = 0;
    version = 2;
}
5.16.0 - [Firebase/InstanceID][I-IID013002] Removed cached checkin preferences from Keychain.
5.16.0 - [Firebase/InstanceID][I-IID013006] App reset detected. Will delete server registrations.
5.16.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query {
    acct = "com.google.iid.checkin-account";
    class = genp;
    gena = "com.google.iid";
    svce = "com.google.iid.checkin-service";
}
5.16.0 - [Firebase/InstanceID][I-IID003012] Provisioning profile has specifically provisioned devices, most likely a Dev profile.
5.16.0 - [Firebase/InstanceID][I-IID003013] APNS Environment in profile: development
5.16.0 - [Firebase/InstanceID][I-IID021000] Unregister request to https://iid.googleapis.com/iid/register content: X-osv=12.1.2&device=...&plat=2&app=...&app_ver=2.7.0&X-cliv=fiid-3.3.0&delete=true
5.16.0 - [Firebase/InstanceID][I-IID014007] Successfully deleted GCM server registrations on app reset
5.16.0 - [Firebase/InstanceID][I-IID007002] Invalid last checkin timestamp in future.
5.16.0 - [Firebase/InstanceID][I-IID007003] Checkin successful with authId:<PHONE_NUMBER>410576815, digest: dKLj6wvX7g8BHtVBLSruwQ==, lastCheckinTimestamp:<PHONE_NUMBER>000
5.16.0 - [Firebase/InstanceID][I-IID005004] Successfully got checkin credentials
5.16.0 - [Firebase/InstanceID][I-IID023002] Couldn't delete item from Keychain OSStatus: -25300 with the keychain query {
    acct = "...";
    class = genp;
    gena = "com.google.iid";
    svce = "com.google.iid.checkin";
}
5.16.0 - [Firebase/InstanceID][I-IID005002] Checkin success.

Tested on iPhone XS, iOS 12.1.2, with Firebase 5.16.0 (Firebase Messaging 3.3.0).

It's hard to tell what your issue might be without being able to look at your implementation, but this sounds similar to the issue described here: https://github.com/firebase/firebase-ios-sdk/issues/1339

Concerning the Firebase part, my implementation is the exact same code as in the instructions (and in the example project).
The issue you linked to is not the same, as in my case, the didReceiveRegistrationToken is called with a token. The only problem being that this token has just been unregistered and is not valid anymore.
On what conditions does the framework think it's a fresh install? Is the app reset triggered because of missing info in the keychain (as seen in the logs above)?

Thanks for you help!
After further investigation, the issue seemed to come from the UserVoice framework, which I was initializing after the [FIRApp configure]. For some reason (don't know why though), it made Firebase unregister the token.
I removed it and everything works fine now.
The fact that Firebase unregisters the token but doesn't give me a new valid one is still weird though.


Is there some tool to automate CSS Browser support?

Hi, can someone tell me if there is something like caniuse.com, but with the ability to just feed him the URL of the site and he would give that the CSS of this site (whether it is SPA or not) requires at least such and such browser versions for stable work? Or how are such compatibility checks automated at all?

I believe you're looking for this tool: http://doiuse.herokuapp.com/

I believe you're looking for this tool: http://doiuse.herokuapp.com/

@Fyrd thanks, that exactly what I meant🙏

@Fyrd thanks, that exactly what I meant🙏


Specify target JVM version

Exposes a target property to the rules and test compiler, specifying the target Java version to generate for.
This fixes an issue during cross compilation where the source generated is valid for the JVM running the test suite but not for the JVM being targeted.  For instance, auto boxing a cast like (int)value works in Java7 but not in Java6.
Interface Changes:

Maven: adds a target config property, with a default value of maven.compiler.target.
Gradle: adds a target property, with a default value of 1.6
Ant: adds a target property, with a default value of 1.6
CLI: adds options -tv and --target-version, with a default value of 1.6

Limitations:  This patch does not set the bootclasspath from toolchains.xml.  So, there can still be issues where Java7 classes and methods are referenced when generating code for Java6.  I attempted to add support using classes from Maven, but there is a classpath conflict with the testing for Ant.  -Xlint:-options has been set during testing, to suppress warnings related to this.
The changes here were taken from #386.

@joelittlejohn this change adds a new configuration option.  The naming is strange for the Ant task and I am not very proficient at Gradle, so any notes around those items would be appreciated.

@joelittlejohn I think the PR that adds the target option is ready to merge.

Looks like I forgot getTarget( String target ) in the ant task and associated documentation.

Looking good to me. One thing, I think target here is a little confusing as it's easy to confuse this with the target directory. I prefer targetVersion everywhere, as you've used in the CLI.

Other than that change, I can't see anything else to comment on. Nice work, I'll merge when you're ready.

@joelittlejohn target has been changed to targetVersion.  I also made the documentation consistent across all the interfaces.  This is ready to merge.


Import lxc containers

Hi,
I have a couple of lxc container created with 1.0.8-0ubuntu0.3. Is there a way to import this lxc container into lxd?

Hi, see the /scripts/lxc-to-lxd script in the LXD tree.

Doesnt start on:

Distribution: Ubuntu
Distribution version: 14.04
Kernel version: 3.19.0-25-generic
LXC version:
LXD version: 2.0.3
Storage backend in use: dir

Traceback (most recent call last):
  File "./lxc-to-lxd.py", line 5, in <module>
    import lxc
ImportError: No module named 'lxc'

As the error says, you're missing the "lxc" python3 module.
sudo apt install python3-lxc
Should fix that one for you.

Thank you for your reply. Well this doesnt work because I´ve installed lxd from the backport
 sudo apt -t trusty-backports install lxd
and now there are some unresolved dependencies:
The following packages have unmet dependencies:
 python3-lxc : Depends: liblxc1 (= 1.0.8-0ubuntu0.3) but 2.0.3-0ubuntu1~ubuntu14.04.1 is to be installed
               Recommends: lxc-templates (>= 0.8.0~rc1-4ubuntu43) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt -t trusty-backports install python3-lxc

:+1:
Traceback (most recent call last):
  File "./lxc-to-lxd.py", line 8, in <module>
    from pylxd.client import Client
ImportError: No module named 'pylxd'

pip install pylxd

root@nas-10-cluster:~# pip install pylxd
Downloading/unpacking pylxd
  Downloading pylxd-2.0.3.tar.gz (58kB): 58kB downloaded
  Running setup.py (path:/tmp/pip_build_root/pylxd/setup.py) egg_info for package pylxd

    Installed /tmp/easy_install-K_ofGS/requests-unixsocket-0.1.5/.eggs/pbr-1.10.0-py2.7.egg

    Installed /tmp/pip_build_root/pylxd/.eggs/requests_unixsocket-0.1.5-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/pylxd/setup.py", line 34, in <module>
        pbr=True)
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 269, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 825, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1063, in best_match
        dist = working_set.find(req)
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 700, in find
        raise VersionConflict(dist, req)
    pkg_resources.VersionConflict: (requests 2.2.1 (/usr/lib/python2.7/dist-packages), Requirement.parse('requests!=2.8.0,>=2.5.2'))
    Complete output from command python setup.py egg_info:

Installed /tmp/easy_install-K_ofGS/requests-unixsocket-0.1.5/.eggs/pbr-1.10.0-py2.7.egg

Installed /tmp/pip_build_root/pylxd/.eggs/requests_unixsocket-0.1.5-py2.7.egg

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/pylxd/setup.py", line 34, in <module>

    pbr=True)

  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup

    _setup_distribution = dist = klass(attrs)

  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 269, in __init__

    self.fetch_build_eggs(attrs['setup_requires'])

  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs

    replace_conflicting=True,

  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 825, in resolve

    dist = best[req.key] = env.best_match(req, ws, installer)

  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1063, in best_match

    dist = working_set.find(req)

  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 700, in find

    raise VersionConflict(dist, req)

pkg_resources.VersionConflict: (requests 2.2.1 (/usr/lib/python2.7/dist-packages), Requirement.parse('requests!=2.8.0,>=2.5.2'))

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pylxd
Storing debug log for failure in /root/.pip/pip.log

:(

Looks like it's unhappy about the version of python requests.
@rockstar any suggestion?

So I think the answer is to use Ubuntu 16.04 if you want all that stuff to work properly.
You can probably workaround it with:
apt update
apt dist-upgrade
apt -t trusty-backports install python-virtualenv python3-dev libffi-dev libssl-dev git lxc-dev pkg-config
virtualenv -p /usr/bin/python3 py3env
source py3env/bin/activate
pip install pylxd
git clone git://github.com/lxc/lxc
cd lxc/src/python-lxc
pip install .
cd
wget https://raw.githubusercontent.com/lxc/lxd/master/scripts/lxc-to-lxd
python3 lxc-to-lxd

Which does appear to work for me inside a LXD 14.04 container.

Only thing I see we can improve on the LXD side is changing the shebang of our python3 scripts to work better with virtualenv, I'll send a patch.

Thank you


Add instructions to change sbt settings based on scala binary version

Hi @luca-battistelli,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:
https://www.lightbend.com/contribute/cla

Recently run into this issue and spent too much time figuring it out, would be nice to have it in the official docs

Thanks for getting this started. I'm closing this in favor of https://github.com/sbt/website/pull/918.